1 2014-07-24 Tom Tromey <tromey@redhat.com>
3 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5 (scan_filename_with_cleanup): Likewise.
6 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
8 (restore_command): Update.
10 2014-07-24 Pedro Alves <palves@redhat.com>
12 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
14 2014-07-24 Tom Tromey <tromey@redhat.com>
15 Gary Benson <gbenson@redhat.com>
17 * nat/linux-ptrace.c (additional_flags): New global.
18 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
19 additional_flags; don't check GDBSERVER.
20 (linux_ptrace_set_additional_flags): New function.
21 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
23 * linux-nat.c (_initialize_linux_nat): Call
24 linux_ptrace_set_additional_flags.
26 2014-07-24 Tom Tromey <tromey@redhat.com>
28 * make-target-delegates (munge_type, write_debugmethod): New
30 (debug_names): New global.
31 ($TARGET_DEBUG_PRINTER): New global.
32 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
34 Write debug methods. Generate init_debug_target.
35 * target-debug.h: New file.
36 * target-delegates.c: Rebuild.
37 * target.c: Include target-debug.h.
38 (debug_target): Hoist definition.
39 (target_kill, target_get_section_table, target_memory_map)
40 (target_flash_erase, target_flash_done, target_detach)
41 (target_disconnect, target_wait, target_resume)
42 (target_pass_signals, target_program_signals, target_follow_fork)
43 (target_mourn_inferior, target_search_memory)
44 (target_thread_address_space, target_close)
45 (target_find_new_threads, target_core_of_thread)
46 (target_verify_memory, target_insert_mask_watchpoint)
47 (target_remove_mask_watchpoint): Remove targetdebug code.
48 (debug_to_post_attach, debug_to_prepare_to_store)
49 (debug_to_files_info, debug_to_insert_breakpoint)
50 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
51 (debug_to_region_ok_for_hw_watchpoint)
52 (debug_to_can_accel_watchpoint_condition)
53 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
54 (debug_to_watchpoint_addr_within_range)
55 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
56 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
57 (debug_to_terminal_init, debug_to_terminal_inferior)
58 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
59 (debug_to_terminal_save_ours, debug_to_terminal_info)
60 (debug_to_load, debug_to_post_startup_inferior)
61 (debug_to_insert_fork_catchpoint)
62 (debug_to_remove_fork_catchpoint)
63 (debug_to_insert_vfork_catchpoint)
64 (debug_to_remove_vfork_catchpoint)
65 (debug_to_insert_exec_catchpoint)
66 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
67 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
68 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
69 (setup_target_debug): Call init_debug_target.
70 * target.h (TARGET_DEBUG_PRINTER): New macro.
71 (struct target_ops) <to_resume, to_wait, to_pass_signals,
72 to_program_signals>: Use TARGET_DEBUG_PRINTER.
74 2014-07-24 Gary Benson <gbenson@redhat.com>
76 * exceptions.h (throw_vfatal): Renamed to...
77 (throw_vquit): New declaration.
78 (throw_quit): Likewise.
79 * exceptions.c (throw_vfatal): Renamed to...
80 (throw_vquit): New function.
81 (throw_quit): Likewise.
82 (throw_error): Call throw_verror rather than throw_it.
83 * utils.h (vfatal): Removed.
85 * utils.c (vfatal): Removed.
87 (internal_verror): Replaced call to fatal with call to throw_quit.
88 (quit): Replaced calls to fatal with calls to throw_quit.
90 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
92 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
95 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
97 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
98 less than zero in conditional expression.
100 2014-07-23 Tom Tromey <tromey@redhat.com>
102 * make-target-delegates ($ARGS_PART): Match trailing close paren.
103 ($INTRO_PART): Don't match whitespace.
104 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
106 ($METHOD): Add $METHOD_TRAILER.
108 (scan_target_h): New sub.
109 Change main loop not to collect state.
110 * target-delegates.c: Rebuild.
112 2014-07-23 Gary Benson <gbenson@redhat.com>
114 * cp-support.c (gdb_demangle): Fix build on systems without
117 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
119 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
120 for reference entry value target data value.
122 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
124 * stack.c (read_frame_arg): Verify value_optimized_out before calling
125 value_available_contents_eq.
127 2014-07-22 Pedro Alves <palves@redhat.com>
129 * value.c (allocate_optimized_out_value): Don't mark value as
132 2014-07-22 Jiong Wang <jiong.wang@arm.com>
134 * MAINTAINERS (Write After Approval): Update my email address.
136 2014-07-20 Doug Evans <dje@google.com>
139 * remote.c (putpkt_binary): Add text to error message.
141 2014-07-20 Yao Qi <yao@codesourcery.com>
143 * eval.c: Remove "Chill" from comments.
144 * gdbtypes.h: Likewise.
145 * symtab.h: Likewise.
147 2014-07-20 Yao Qi <yao@codesourcery.com>
149 * std-operator.def: Update comments to TERNOP_SLICE.
151 2014-07-20 Yao Qi <yao@codesourcery.com>
153 * std-operator.def: Remove BINOP_RANGE.
154 * breakpoint.c (watchpoint_exp_is_const): Update.
155 * expprint.c (dump_subexp_body_standard): Likewise.
156 * eval.c (init_array_element): Remove dead code.
157 (evaluate_subexp_standard): Likewise.
159 2014-07-20 Yao Qi <yao@codesourcery.com>
161 * std-operator.def: Remove BINOP_IN.
162 * breakpoint.c (watchpoint_exp_is_const): Update.
163 * eval.c (evaluate_subexp_standard): Likewise.
164 * expprint.c (dump_subexp_body_standard): Likewise.
166 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
168 * microblaze-tdep.c (microblaze_register_names): Add
169 the rshr and rslr register names.
170 (microblaze_gdbarch_init): Use of tdesc_has_registers.
171 Use of tdesc_find_feature. Use of tdesc_data_alloc.
172 Use of tdesc_numbered_register. Use of
173 microblaze_register_g_packet_guesses. Use of
174 tdesc_use_registers. Use of set_gdbarch_register_type.
175 (microblaze_register_g_packet_guesses): New.
176 * microblaze-tdep.h (microblaze_reg_num): Add
177 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
178 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
179 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
180 * features/microblaze-core.xml: New file.
181 * features/microblaze-stack-protect.xml: New file.
182 * features/microblaze-with-stack-protect.c: New file.
183 * features/microblaze-with-stack-protect.xml: New file.
184 * features/microblaze.xml: New file.
185 * features/microblaze.c: New file.
186 * features/Makefile (microblaze-with-stack-protect): Add
187 microblaze-with-stack-protect microblaze and microblaze-expedite.
188 * regformats/microblaze-with-stack-protect.dat: New file.
189 * regformats/microblaze.dat: New file.
190 * doc/gdb.texinfo (MicroBlaze Features): Added.
192 2014-07-18 Tom Tromey <tromey@redhat.com>
194 * exec.c (exec_ops): Now static.
195 * exec.h (exec_ops): Don't declare.
197 2014-07-18 Tom Tromey <tromey@redhat.com>
199 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
200 to find_target_beneath.
201 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
203 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
205 2014-07-18 Tom Tromey <tromey@redhat.com>
208 * utils.c (quit): Use target_supports_terminal_ours.
209 * target.h (target_supports_terminal_ours): Declare.
210 * target.c (target_supports_delete_record): Don't check
211 to_delete_record against NULL.
212 (target_supports_terminal_ours): New function.
214 2014-07-18 Tom Tromey <tromey@redhat.com>
217 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
218 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
219 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
220 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
221 * windows-nat.c (windows_xfer_partial): Always delegate.
222 * record-btrace.c (record_btrace_xfer_partial): Simplify
224 (record_btrace_fetch_registers, record_btrace_store_registers)
225 (record_btrace_prepare_to_store, record_btrace_resume)
226 (record_btrace_wait, record_btrace_find_new_threads)
227 (record_btrace_thread_alive): Likewise.
228 * procfs.c (procfs_xfer_partial): Always delegate.
229 * corelow.c (core_xfer_partial): Always delegate.
230 * sol-thread.c (sol_find_new_threads): Simplify delegation.
232 2014-07-18 Tom Tromey <tromey@redhat.com>
234 * exec.c (exec_make_note_section): Move earlier.
236 2014-07-17 Doug Evans <dje@google.com>
239 * maint.c (count_symtabs_and_blocks): Handle NULL
240 current_program_space.
241 (report_command_stats): Check global enabled flag in addition to
242 recorded enabled flag.
243 (make_command_stats_cleanup): Handle msg_type == 0, startup.
245 2014-07-16 Pedro Alves <palves@redhat.com>
247 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
249 2014-07-16 Tom Tromey <tromey@redhat.com>
251 * target.h (struct target_ops) <to_delete_record>: Reformat
254 2014-07-16 Tom Tromey <tromey@redhat.com>
256 * target-delegates.c: Rebuild.
258 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
260 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
261 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
262 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
263 (avr_pointer_to_address): Likewise.
264 (avr_address_class_type_flags): New function.
265 (avr_address_class_type_flags_to_name): Likewise.
266 (avr_address_class_name_to_type_flags): Likewise.
267 (avr_gdbarch_init): Set address_class_type_flags,
268 address_class_type_flags_to_name and
269 address_class_name_to_type_flags.
271 2014-07-15 Pedro Alves <palves@redhat.com>
273 * linux-nat.c (kill_callback): Save errno and work with saved
276 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
278 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
280 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
282 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
283 breakpoint support correctly.
285 2014-07-14 Pedro Alves <palves@redhat.com>
287 * utils.c (prompt_for_continue): Call target_terminal_ours.
289 2014-07-14 Pedro Alves <palves@redhat.com>
291 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
292 catch_errors. Don't re-enable stdin or notify observers where,
294 (fetch_inferior_event_wrapper): Delete.
296 2014-07-14 Pedro Alves <palves@redhat.com>
299 * top.c: Include "inf-loop.h".
300 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
302 (gdb_readline_wrapper_cleanup): Make the target async again, if it
304 (gdb_readline_wrapper): Store whether the target is async, and
307 2014-07-14 Pedro Alves <palves@redhat.com>
310 * top.c (gdb_readline_wrapper_line): Tweak comment.
311 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
312 the input handler callback.
314 2014-07-14 Pedro Alves <palves@redhat.com>
317 * main.c: Include event-top.h.
318 (handle_command_errors): New function.
319 (catch_command_errors, catch_command_errors_const): Use it.
321 2014-07-14 Pedro Alves <palves@redhat.com>
323 * exceptions.c (catch_command_errors, catch_command_errors_const):
325 * exceptions.h (catch_command_errors_ftype)
326 (catch_command_errors_const_ftype): Moved to main.c.
327 (catch_command_errors, catch_command_errors_const): Delete
329 * main.c (catch_command_errors_ftype)
330 (catch_command_errors_const_ftype): Moved here from exceptions.h.
331 (catch_command_errors, catch_command_errors_const)): Moved here
332 from exceptions.c and make static.
334 2014-07-14 Pedro Alves <palves@redhat.com>
336 * exceptions.c (print_any_exception): Delete.
337 (catch_exceptions_with_msg): Use exception_print instead of
339 (catch_errors): Use exception_fprintf instead of
341 (catch_command_errors, catch_command_errors_const): Use
342 exception_print instead of print_any_exception.
344 2014-07-14 Pedro Alves <palves@redhat.com>
346 * infcall.c (run_inferior_call): Set 'sync_execution' while
347 running the inferior call.
349 2014-07-14 Pedro Alves <palves@redhat.com>
351 * value.c (value_contents_equal): Delete function.
352 * value.h (value_contents_equal): Delete declaration.
354 2014-07-14 Tom Tromey <tromey@redhat.com>
357 * gdbtypes.c (is_dynamic_type_internal): New function, from
359 (is_dynamic_type): Rewrite.
360 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
361 (resolve_dynamic_struct): Likewise.
362 (resolve_dynamic_type_internal): New function, from
363 resolve_dynamic_type.
364 (resolve_dynamic_type): Rewrite.
366 2014-07-14 Tom Tromey <tromey@redhat.com>
368 * target.c (target_require_runnable): Also check record_stratum.
371 2014-07-11 Yao Qi <yao@codesourcery.com>
373 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
374 thumb_instruction_restores_sp return true.
376 2014-07-11 Yao Qi <yao@codesourcery.com>
378 * arm-tdep.c (thumb_instruction_restores_sp): New function.
379 (thumb_in_function_epilogue_p): Call
380 thumb_instruction_restores_sp.
382 2014-07-11 Yao Qi <yao@codesourcery.com>
384 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
386 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
388 2014-07-11 Gary Benson <gbenson@redhat.com>
390 * amd64-linux-nat.c (gdbcore.h): Remove include.
391 (regset.h): Likewise.
392 (nat/linux-btrace.h): Likewise.
393 (btrace.h): Likewise.
394 (gdb_assert.h): Likewise.
395 (string.h): Likewise.
396 (sys/uio.h): Likewise.
397 (sys/debugreg.h): Likewise.
398 (sys/syscall.h): Likewise.
399 (sys/procfs.h): Likewise.
400 (sys/user.h): Likewise.
401 (asm/ptrace.h): Likewise.
402 (i386-nat.h): Likewise.
403 * i386-linux-nat.c (i386-nat.h): Likewise.
404 (regset.h): Likewise.
405 (target.h): Likewise.
406 (linux-nat.h): Likewise.
407 (nat/linux-btrace.h): Likewise.
408 (btrace.h): Likewise.
409 (gdb_assert.h): Likewise.
410 (string.h): Likewise.
411 (sys/uio.h): Likewise.
412 (sys/user.h): Likewise.
413 (sys/procfs.h): Likewise.
414 (sys/reg.h): Likewise.
415 (sys/debugreg.h): Likewise.
416 (ORIG_EAX): Remove definition.
418 2014-07-11 Gary Benson <gbenson@redhat.com>
420 * i386-linux-nat.h: New file.
421 * x86-linux-nat.h: Likewise.
422 * x86-linux-nat.c: Likewise.
423 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
424 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
426 * amd64-linux-nat.c (x86-linux-nat.h): New include.
427 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
428 (PTRACE_SETREGSET): Likewise.
429 (arch_lwp_info): Now in x86-linux-nat.c.
430 (have_ptrace_getregset): Now in x86-linux-nat.h.
431 (x86_linux_dr_get): Now in x86-linux-nat.c.
432 (x86_linux_dr_set): Likewise.
433 (x86_linux_dr_get_addr): Likewise.
434 (x86_linux_dr_get_control): Likewise.
435 (x86_linux_dr_get_status): Likewise.
436 (update_debug_registers_callback): Likewise.
437 (x86_linux_dr_set_control): Likewise.
438 (x86_linux_dr_set_addr): Likewise.
439 (x86_linux_prepare_to_resume): Likewise.
440 (x86_linux_new_thread): Likewise.
441 (x86_linux_new_fork): Likewise.
442 (x86_linux_get_thread_area): Likewise.
443 (super_post_startup_inferior): Likewise.
444 (x86_linux_child_post_startup_inferior): Likewise.
445 (AMD64_LINUX_USER64_CS): Likewise.
446 (AMD64_LINUX_X32_DS): Likewise.
447 (x86_linux_read_description): Likewise.
448 (x86_linux_enable_btrace): Likewise.
449 (x86_linux_disable_btrace): Likewise.
450 (x86_linux_teardown_btrace): Likewise.
451 (x86_linux_read_btrace): Likewise.
452 (x86_linux_create_target): Likewise.
453 (x86_linux_add_target): Likewise.
454 * i386-linux-nat.c (x86-linux-nat.h): New include.
455 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
456 (PTRACE_SETREGSET): Likewise.
457 (arch_lwp_info): Now in x86-linux-nat.c.
458 (have_ptrace_getregset): Now in x86-linux-nat.h.
459 (x86_linux_dr_get): Now in x86-linux-nat.c.
460 (x86_linux_dr_set): Likewise.
461 (x86_linux_dr_get_addr): Likewise.
462 (x86_linux_dr_get_control): Likewise.
463 (x86_linux_dr_get_status): Likewise.
464 (update_debug_registers_callback): Likewise.
465 (x86_linux_dr_set_control): Likewise.
466 (x86_linux_dr_set_addr): Likewise.
467 (x86_linux_prepare_to_resume): Likewise.
468 (x86_linux_new_thread): Likewise.
469 (x86_linux_new_fork): Likewise.
470 (x86_linux_get_thread_area): Likewise.
471 (super_post_startup_inferior): Likewise.
472 (x86_linux_child_post_startup_inferior): Likewise.
473 (AMD64_LINUX_USER64_CS): Likewise.
474 (AMD64_LINUX_X32_DS): Likewise.
475 (x86_linux_read_description): Likewise.
476 (x86_linux_enable_btrace): Likewise.
477 (x86_linux_disable_btrace): Likewise.
478 (x86_linux_teardown_btrace): Likewise.
479 (x86_linux_read_btrace): Likewise.
480 (x86_linux_create_target): Likewise.
481 (x86_linux_add_target): Likewise.
483 2014-07-11 Gary Benson <gbenson@redhat.com>
485 * amd64-linux-nat.c: Comment and whitespace changes.
486 * i386-linux-nat.c: Comment and whitespace changes.
488 2014-07-11 Gary Benson <gbenson@redhat.com>
490 * amd64-linux-nat.c (x86_linux_create_target): New function.
491 (x86_linux_add_target): Likewise.
492 (_initialize_amd64_linux_nat): Delegate to the above new functions.
493 * i386-linux-nat.c (x86_linux_create_target): New function.
494 (x86_linux_add_target): Likewise.
495 (_initialize_i386_linux_nat): Delegate to the above new functions.
497 2014-07-11 Gary Benson <gbenson@redhat.com>
499 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
500 (ps_get_thread_area): Delegate to the above in 32-bit mode.
501 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
502 (ps_get_thread_area): Delegate to the above.
504 2014-07-11 Gary Benson <gbenson@redhat.com>
506 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
507 x86_linux_read_description. All uses updated. amd64-specific
508 code conditionalized. Conditionalized i386-specific code added.
509 Redundant cast removed.
510 * i386-linux-nat.c (i386_linux_read_description): Renamed to
511 x86_linux_read_description. All uses updated. i386-specific
512 code conditionalized. Conditionalized amd64-specific code added.
513 One sizeof replaced with the actual type it is describing.
515 2014-07-11 Gary Benson <gbenson@redhat.com>
517 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
518 x86_linux_dr_get. All uses updated.
519 (amd64_linux_dr_set): Renamed to
520 x86_linux_dr_set. All uses updated.
521 (amd64_linux_dr_get_addr): Renamed to
522 x86_linux_dr_get_addr. All uses updated.
523 (amd64_linux_dr_get_control): Renamed to
524 x86_linux_dr_get_control. All uses updated.
525 (amd64_linux_dr_get_status): Renamed to
526 x86_linux_dr_get_status. All uses updated.
527 (amd64_linux_dr_set_control): Renamed to
528 x86_linux_dr_set_control. All uses updated.
529 (amd64_linux_dr_set_addr): Renamed to
530 x86_linux_dr_set_addr. All uses updated.
531 (amd64_linux_prepare_to_resume): Renamed to
532 x86_linux_prepare_to_resume. All uses updated.
533 (amd64_linux_new_thread): Renamed to
534 x86_linux_new_thread. All uses updated.
535 (amd64_linux_new_fork): Renamed to
536 x86_linux_new_fork. All uses updated.
537 (amd64_linux_child_post_startup_inferior): Renamed to
538 x86_linux_child_post_startup_inferior. All uses updated.
539 (amd64_linux_enable_btrace): Renamed to
540 x86_linux_enable_btrace. All uses updated.
541 (amd64_linux_disable_btrace): Renamed to
542 x86_linux_disable_btrace. All uses updated.
543 (amd64_linux_teardown_btrace): Renamed to
544 x86_linux_teardown_btrace. All uses updated.
545 (amd64_linux_read_btrace): Renamed to
546 x86_linux_read_btrace. All uses updated.
547 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
548 x86_linux_dr_get. All uses updated.
549 (i386_linux_dr_set): Renamed to
550 x86_linux_dr_set. All uses updated.
551 (i386_linux_dr_get_addr): Renamed to
552 x86_linux_dr_get_addr. All uses updated.
553 (i386_linux_dr_get_control): Renamed to
554 x86_linux_dr_get_control. All uses updated.
555 (i386_linux_dr_get_status): Renamed to
556 x86_linux_dr_get_status. All uses updated.
557 (i386_linux_dr_set_control): Renamed to
558 x86_linux_dr_set_control. All uses updated.
559 (i386_linux_dr_set_addr): Renamed to
560 x86_linux_dr_set_addr. All uses updated.
561 (i386_linux_prepare_to_resume): Renamed to
562 x86_linux_prepare_to_resume. All uses updated.
563 (i386_linux_new_thread): Renamed to
564 x86_linux_new_thread. All uses updated.
565 (i386_linux_new_fork): Renamed to
566 x86_linux_new_fork. All uses updated.
567 (i386_linux_child_post_startup_inferior): Renamed to
568 x86_linux_child_post_startup_inferior. All uses updated.
569 (i386_linux_enable_btrace): Renamed to
570 x86_linux_enable_btrace. All uses updated.
571 (i386_linux_disable_btrace): Renamed to
572 x86_linux_disable_btrace. All uses updated.
573 (i386_linux_teardown_btrace): Renamed to
574 x86_linux_teardown_btrace. All uses updated.
575 (i386_linux_read_btrace): Renamed to
576 x86_linux_read_btrace. All uses updated.
578 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
580 * remote.c (extended_remote_post_attach): New function.
581 (init_extended_remote_ops): Install it as to_post_attach method.
583 2014-07-09 Pedro Alves <palves@redhat.com>
585 * infcmd.c (attach_command_post_wait): Don't call
586 target_terminal_inferior here.
587 (attach_command): Call it here instead.
589 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
591 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
593 * c-varobj.c (c_is_path_expr_parent): New function, moved core
594 from varobj.c, with additional checks.
595 (c_varobj_ops): Fill in is_path_expr_parent field.
596 (cplus_varobj_ops): Fill in is_path_expr_parent field.
597 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
599 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
601 (varobj_default_is_path_expr_parent): New function.
602 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
603 (varobj_default_is_path_expr_parent): Declare new function.
605 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
607 * infcmd.c (finish_backward): Turn internal error into normal error.
609 2014-07-07 Pedro Alves <palves@redhat.com>
612 * remote.c (async_handle_remote_sigint)
613 (async_handle_remote_sigint_twice): Call
614 gdb_call_async_signal_handler instead of
615 mark_async_signal_handler.
617 2014-07-07 Tom Tromey <tromey@redhat.com>
619 * target-delegates.c: Rebuild.
620 * target.c (target_info_record): Remove.
621 * record.c (info_record_command): Unconditionally call
623 * target.h (struct target_ops) <to_info_record>: Use
624 TARGET_DEFAULT_IGNORE.
625 (target_info_record): Remove.
627 2014-07-07 Tom Tromey <tromey@redhat.com>
629 * target.h (struct target_ops) <to_get_thread_local_address>: Use
630 TARGET_DEFAULT_NORETURN.
631 * target.c (generic_tls_error): New function.
632 (target_translate_tls_address): Don't search target stack.
633 * target-delegates.c: Rebuild.
634 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
636 * linux-thread-db.c (thread_db_get_thread_local_address):
637 Unconditionally call beneath target.
639 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
641 * cli/cli-logging.c (pop_output_files): Assign targerr to
644 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
646 * MAINTAINERS (Write After Approval): Update my email address.
648 2014-07-02 Gary Benson <gbenson@redhat.com>
650 * proc-service.c (ps_xfer_memory): Update comment.
651 (ps_pstop): Remove unused function.
652 (ps_pcontinue): Likewise.
653 (ps_lstop): Likewise.
654 (ps_lcontinue): Likewise.
655 (ps_lgetxregsize): Likewise.
656 (ps_lgetxregs): Likewise.
657 (ps_lsetxregs): Likewise.
659 (ps_ptread): Likewise.
660 (ps_ptwrite): Likewise.
662 2014-07-01 Mark Wielaard <mjw@redhat.com>
664 * dwarf2read.c (add_array_cv_type): New function.
665 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
666 (read_tag_volatile_type): Likewise.
668 2014-07-01 Tom Tromey <tromey@redhat.com>
670 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
671 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
672 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
673 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
674 * command.h (cmd_cfunc_ftype): Move earlier.
675 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
676 (add_com, add_info): Use cmd_cfunc_ftype.
678 2014-06-30 Tom Tromey <tromey@redhat.com>
680 * symtab.c (operator_chars): Make parameters and return type
682 (file_matches): Make "files" const.
683 (struct search_symbols_data) <files>: Now const.
684 (search_symbols): Make "regexp" and "files" parameters const.
686 (symtab_symbol_info): Remove cast.
687 (rbreak_command): Update.
688 * symtab.h (search_symbols): Update.
690 2014-06-27 Yao Qi <yao@codesourcery.com>
692 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
693 Change parameter type to 'struct thread_info *'. Caller
695 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
697 * dummy-frame.c (struct dummy_frame_id): New.
698 (dummy_frame_id_eq): New function.
699 (struct dummy_frame) <id>: Change its type to 'struct
701 (dummy_frame_push): Add parameter ptid and save it in
703 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
705 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
707 (lookup_dummy_frame): Change parameter type to 'struct
708 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
709 instead of frame_id_eq.
710 (dummy_frame_pop): Add parameter ptid. Callers updated.
711 Update comments. Compose dummy_frame_id and pass it to
713 (dummy_frame_discard): Add parameter ptid.
714 (dummy_frame_sniffer): Compose dummy_frame_id and call
715 dummy_frame_id_eq instead of frame_id_eq.
716 (fprint_dummy_frames): Print ptid.
717 * dummy-frame.h: Remove comments.
718 (dummy_frame_push): Add ptid in declaration.
719 (dummy_frame_pop, dummy_frame_discard): Likewise.
721 2014-06-26 Tom Tromey <tromey@redhat.com>
723 * cli/cli-cmds.c (error_no_arg): Make "why" const.
724 * command.h (error_no_arg): Update.
726 2014-06-26 Tom Tromey <tromey@redhat.com>
728 * cli/cli-setshow.c (do_set_command): Make "arg" const.
729 (do_show_command): Make "arg" const.
730 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
732 2014-06-26 Tom Tromey <tromey@redhat.com>
734 * record-full.c (record_full_get_bookmark): Make "args" const.
735 (record_full_goto_bookmark): Make "raw_bookmark" const.
736 * record.c (record_goto): New function.
737 (cmd_record_goto): Use it. Now static.
738 * record.h (record_goto): Declare.
739 (cmd_record_goto): Remove declaration.
740 * target-delegates.c: Rebuild.
741 * target.h (struct target_ops) <to_get_bookmark,
742 to_goto_bookmark>: Make parameter const.
744 2014-06-26 Tom Tromey <tromey@redhat.com>
746 * defs.h (generic_load): Update.
747 * m32r-rom.c (m32r_load_gen): Make "filename" const.
748 * monitor.c (monitor_load): Make "args" const.
749 * remote-m32r-sdi.c (m32r_load): Make "args" const.
750 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
752 (mips_load): Make "file" const.
753 * remote-sim.c (gdbsim_load): Make "args" const.
754 * remote.c (remote_load): Make "name" const.
755 * symfile.c (generic_load): Make "args" const.
756 * target-delegates.c: Rebuild.
757 * target.c (target_load): Make "arg" const.
758 (debug_to_load): Make "args" const.
759 * target.h (struct target_ops) <to_load>: Make parameter const.
760 (target_load): Update.
762 2014-06-26 Tom Tromey <tromey@redhat.com>
765 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
766 (dwarf2_physname, read_partial_die)
767 (guess_partial_die_structure_name, fixup_partial_die)
768 (guess_full_die_structure_name, anonymous_struct_prefix)
769 (dwarf2_name): Use per-BFD obstack.
771 2014-06-26 Yao Qi <yao@codesourcery.com>
773 * dummy-frame.c (dummy_frame_sniffer): Move local variables
774 dummyframe and this_id into inner block below.
776 2014-06-26 Yao Qi <yao@codesourcery.com>
778 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
779 with "signal_pass[0]" in the initialization of signal_pass.
781 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
783 * record-btrace.c (record_btrace_generating_corefile)
784 (record_btrace_prepare_to_generate_core)
785 (record_btrace_done_generating_core): New.
786 (record_btrace_xfer_partial, record_btrace_fetch_registers)
787 (record_btrace_store_registers, record_btrace_prepare_to_store):
788 Forward request when generating a core file.
789 (record_btrace_open): Set record_btrace_generating_corefile to zero.
790 (init_record_btrace_ops): Set to_prepare_to_generate_core and
791 to_done_generating_core.
793 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
795 * target.h (target_ops) <to_prepare_to_generate_core>
796 <to_done_generating_core>: New.
797 (target_prepare_to_generate_core, target_done_generating_core): New.
798 * target.c (target_prepare_to_generate_core)
799 (target_done_generating_core): New.
800 * target-delegates.c: Regenerate.
801 * gcore.c: (write_gcore_file): Rename to ...
802 (write_gcore_file_1): ...this.
803 (write_gcore_file): Call target_prepare_to_generate_core
804 and target_done_generating_core.
806 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
808 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
809 * gcore.c (write_gcore_file): Free memory returned from
811 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
812 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
814 2014-06-24 Yao Qi <yao@codesourcery.com>
816 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
817 (arm_linux_init_abi): Set skip_trampoline_code with
818 gdbarch_skip_trampoline_code instead of
819 find_solib_trampoline_target.
821 2014-06-24 Yao Qi <yao@codesourcery.com>
823 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
824 arm_skip_bx_reg returns non-zero.
826 2014-06-24 Yao Qi <yao@codesourcery.com>
828 * arm-tdep.c (arm_skip_bx_reg): New function.
829 (arm_skip_stub): Call arm_skip_bx_reg.
831 2014-06-23 Don Breazeal <donb@codesourcery.com>
833 * MAINTAINERS: Add myself as write-after-approval maintainer.
835 2014-06-23 Pedro Alves <palves@redhat.com>
837 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
838 DR_CONTROL before setting DR0..DR3.
839 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
840 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
841 bits of DR_CONTROL related to the debug register slot being
842 disabled. If all slots are vacant, clear local slowdown as well,
843 and assert DR_CONTROL is 0.
845 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
847 * python/lib/gdb/command/xmethods.py
848 (get_method_matchers_in_loci): Lookup xmethod matchers in the
849 current progspace only if the string "progspace" matches LOCUS_RE.
851 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
853 Fix --with-system-readline with readline-6.3 patch 5.
854 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
855 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
858 2014-06-20 Tom Tromey <tromey@redhat.com>
860 * dwarf2read.c (dw2_get_real_path): Use correct type in
862 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
864 2014-06-20 Gary Benson <gbenson@redhat.com>
866 * common/gdb_thread_db.h: Moved to nat. All includes updated.
867 * common/glibc_thread_db.h: Likewise.
868 * common/i386-cpuid.h: Likewise.
869 * common/i386-gcc-cpuid.h: Likewise.
870 * common/linux-btrace.h: Likewise.
871 * common/linux-osdata.h: Likewise.
872 * common/linux-procfs.h: Likewise.
873 * common/linux-ptrace.h: Likewise.
874 * common/mips-linux-watch.h: Likewise.
875 * common/linux-btrace.c: Moved to nat.
876 * common/linux-osdata.c: Likewise.
877 * common/linux-procfs.c: Likewise.
878 * common/linux-ptrace.c: Likewise.
879 * common/mips-linux-watch.c: Likewise.
880 * nat/gdb_thread_db.h: Moved from common.
881 * nat/glibc_thread_db.h: Likewise.
882 * nat/i386-cpuid.h: Likewise.
883 * nat/i386-gcc-cpuid.h: Likewise.
884 * nat/linux-btrace.c: Likewise.
885 * nat/linux-btrace.h: Likewise.
886 * nat/linux-osdata.c: Likewise.
887 * nat/linux-osdata.h: Likewise.
888 * nat/linux-procfs.c: Likewise.
889 * nat/linux-procfs.h: Likewise.
890 * nat/linux-ptrace.c: Likewise.
891 * nat/linux-ptrace.h: Likewise.
892 * nat/mips-linux-watch.c: Likewise.
893 * nat/mips-linux-watch.h: Likewise.
894 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
895 (object file files): Reordered.
896 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
897 of glibc_thread_db.h.
899 2014-06-20 Gary Benson <gbenson@redhat.com>
901 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
902 (i386_dr_low_type): Moved to nat/i386-dregs.h.
903 (i386_dr_low): Likewise.
904 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
905 (i386_dr_low_set_addr): Likewise.
906 (i386_dr_low_get_addr): Likewise.
907 (i386_dr_low_can_set_control): Likewise.
908 (i386_dr_low_set_control): Likewise.
909 (i386_dr_low_get_control): Likewise.
910 (i386_dr_low_get_status): Likewise.
911 (i386_get_debug_register_length): Likewise.
912 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
913 (i386_dr_low): Likewise.
914 * nat/i386-dregs.c (i386-low.h): Remove include.
915 (i386-nat.h): Likewise.
916 (nat/i386-dregs.h): New include.
917 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
918 (i386_dr_low_set_addr): Likewise.
919 (i386_dr_low_get_addr): Likewise.
920 (i386_dr_low_can_set_control): Likewise.
921 (i386_dr_low_set_control): Likewise.
922 (i386_dr_low_get_control): Likewise.
923 (i386_dr_low_get_status): Likewise.
924 (i386_get_debug_register_length): Likewise.
925 (debug_hw_points): Likewise.
927 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
929 * Makefile.in (SFILES): Add d-exp.y.
930 (YYFILES): Add d-exp.c.
931 (YYOBJ): Add d-exp.o.
932 (local-maintainer-clean): Delete d-exp.c.
934 * d-lang.h (d_parse): New declaration.
935 (d_error): New declaration.
936 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
937 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
938 PREC_ORDER operators.
939 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
941 2014-06-19 Yao Qi <yao@codesourcery.com>
943 * gdbthread.h (any_running): Remove the declaration.
944 * thread.c (any_running): Remove.
946 2014-06-19 Yao Qi <yao@codesourcery.com>
948 * gdbthread.h (struct thread_info) <state>: Change its type to
949 'enum thread_state'. Update comments.
951 2014-06-19 Pedro Alves <palves@redhat.com>
953 * gdbthread.h (ALL_THREADS): Delete.
954 (ALL_NON_EXITED_THREADS): New macro.
955 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
956 instead of ALL_THREADS.
957 * infrun.c (find_thread_needs_step_over)
958 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
959 instead of ALL_THREADS.
960 * record-btrace.c (record_btrace_open)
961 (record_btrace_stop_recording, record_btrace_close)
962 (record_btrace_is_replaying, record_btrace_resume)
963 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
964 * remote.c (append_pending_thread_resumptions): Likewise.
965 * thread.c (thread_apply_all_command): Likewise.
967 2014-06-19 Gary Benson <gbenson@redhat.com>
969 * i386-nat.c (i386_stopped_by_watchpoint):
970 Use i386_dr_stopped_by_watchpoint.
971 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
972 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
974 2014-06-19 Gary Benson <gbenson@redhat.com>
976 * nat/i386-dregs.c: New file.
977 * Makefile.in (i386-dregs.o): New rule.
978 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
979 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
980 * config/i386/darwin.mh (NATDEPFILES): Likewise.
981 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
982 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
983 * config/i386/go32.mh (NATDEPFILES): Likewise.
984 * config/i386/linux.mh (NATDEPFILES): Likewise.
985 * config/i386/linux64.mh (NATDEPFILES): Likewise.
986 * config/i386/mingw.mh (NATDEPFILES): Likewise.
987 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
988 * i386-nat.h (debug_hw_points): New declaration.
989 * i386-nat.c (breakpoint.h): Remove include.
990 (command.h): Likewise.
991 (target.h): Likewise.
992 (gdb_assert.h): Likewise.
993 (debug_hw_points): Made nonstatic.
994 (debug_printf): Now in i386-dregs.c.
995 (TARGET_HAS_DR_LEN_8): Likewise.
996 (DR_CONTROL_SHIFT): Likewise.
997 (DR_CONTROL_SIZE): Likewise.
998 (DR_RW_EXECUTE): Likewise.
999 (DR_RW_WRITE): Likewise.
1000 (DR_RW_READ): Likewise.
1001 (DR_RW_IORW): Likewise.
1002 (DR_LEN_1): Likewise.
1003 (DR_LEN_2): Likewise.
1004 (DR_LEN_4): Likewise.
1005 (DR_LEN_8): Likewise.
1006 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1007 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1008 (DR_ENABLE_SIZE): Likewise.
1009 (DR_LOCAL_SLOWDOWN): Likewise.
1010 (DR_GLOBAL_SLOWDOWN): Likewise.
1011 (DR_CONTROL_RESERVED): Likewise.
1012 (I386_DR_CONTROL_MASK): Likewise.
1013 (I386_DR_VACANT): Likewise.
1014 (I386_DR_LOCAL_ENABLE): Likewise.
1015 (I386_DR_GLOBAL_ENABLE): Likewise.
1016 (I386_DR_DISABLE): Likewise.
1017 (I386_DR_SET_RW_LEN): Likewise.
1018 (I386_DR_GET_RW_LEN): Likewise.
1019 (I386_DR_WATCH_HIT): Likewise.
1020 (i386_wp_op_t): Likewise.
1021 (i386_show_dr): Likewise.
1022 (i386_length_and_rw_bits): Likewise.
1023 (i386_insert_aligned_watchpoint): Likewise.
1024 (i386_remove_aligned_watchpoint): Likewise.
1025 (i386_handle_nonaligned_watchpoint): Likewise.
1026 (i386_update_inferior_debug_regs): Likewise.
1027 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1028 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1029 (i386_region_ok_for_watchpoint):
1030 Use i386_dr_region_ok_for_watchpoint.
1031 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1033 2014-06-19 Gary Benson <gbenson@redhat.com>
1035 * i386-nat.c (i386_insert_hw_breakpoint): Use
1036 i386_insert_watchpoint.
1037 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1039 2014-06-19 Gary Benson <gbenson@redhat.com>
1041 * i386-nat.c (i386_dr_show): Renamed to
1042 i386_show_dr and made static. All uses updated.
1043 (i386_dr_length_and_rw_bits): Renamed to
1044 i386_length_and_rw_bits and made static.
1046 (i386_dr_insert_aligned_watchpoint): Renamed to
1047 i386_insert_aligned_watchpoint and made static.
1049 (i386_dr_remove_aligned_watchpoint): Renamed to
1050 i386_remove_aligned_watchpoint and made static.
1052 (i386_dr_update_inferior_debug_regs): Renamed to
1053 i386_update_inferior_debug_regs and made static.
1055 * nat/i386-dregs.h (i386_dr_show): Removed.
1056 (i386_dr_length_and_rw_bits): Likewise.
1057 (i386_dr_insert_aligned_watchpoint): Likewise.
1058 (i386_dr_remove_aligned_watchpoint): Likewise.
1059 (i386_dr_update_inferior_debug_regs): Likewise.
1061 2014-06-19 Gary Benson <gbenson@redhat.com>
1063 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1064 * configure: Regenerate.
1065 * config.in: Likewise.
1066 * main.c (signal.h): New include.
1067 (setup_alternate_signal_stack): New function.
1068 (captured_main): Call the above.
1069 * cp-support.c (signal.h): New include.
1070 (catch_demangler_crashes): New flag.
1071 (SIGJMP_BUF): New define.
1072 (SIGSETJMP): Likewise.
1073 (SIGLONGJMP): Likewise.
1074 (gdb_demangle_jmp_buf): New static global.
1075 (gdb_demangle_attempt_core_dump): Likewise.
1076 (gdb_demangle_signal_handler): New function.
1077 (gdb_demangle): If catch_demangler_crashes is set, install the
1078 above signal handler before calling bfd_demangle, and restore
1079 the original signal handler afterwards. Display the offending
1080 symbol and call demangler_warning the first time a segmentation
1082 (_initialize_cp_support): New maint set/show command.
1084 2014-06-19 Gary Benson <gbenson@redhat.com>
1086 * utils.h (resource_limit_kind): New enum.
1087 (can_dump_core): New declaration.
1088 (warn_cant_dump_core): Likewise.
1089 (dump_core): Likewise.
1090 * utils.c (dump_core): Made nonstatic. Added new
1091 parameter "limit_kind".
1092 (can_dump_core): Made nonstatic. Moved printing code to...
1093 (warn_cant_dump_core): New function.
1094 (can_dump_core_warn): Likewise.
1095 (internal_vproblem): Replace calls to can_dump_core with
1096 calls to can_dump_core_warn. Supply new argument to each.
1098 2014-06-19 Gary Benson <gbenson@redhat.com>
1100 * utils.h (demangler_vwarning): New declaration.
1101 (demangler_warning): Likewise.
1102 * utils.c (struct internal_problem)
1103 <user_settable_should_quit>: New field.
1104 <user_settable_should_dump_core>: Likewise
1105 (internal_error_problem): Add values for above new fields.
1106 (internal_warning_problem): Likewise.
1107 (demangler_warning_problem): New static global.
1108 (demangler_vwarning): New function.
1109 (demangler_warning): Likewise.
1110 (add_internal_problem_command): Selectively add commands.
1111 (_initialize_utils): New internal problem command.
1112 * maint.c (maintenance_demangler_warning): New function.
1113 (_initialize_maint_cmds): New command.
1115 2014-06-18 Tom Tromey <tromey@redhat.com>
1117 * f-valprint.c (info_common_command_for_block): Update.
1118 * symtab.h (struct general_symbol_info) <common_block>: Now
1121 2014-06-18 Tom Tromey <tromey@redhat.com>
1123 * symtab.h (struct symtab) <blockvector>: Now const.
1124 * ada-lang.c (ada_add_global_exceptions): Update.
1125 * buildsym.c (augment_type_symtab): Update.
1126 * dwarf2read.c (dw2_lookup_symbol): Update.
1127 * jit.c (finalize_symtab): Update.
1128 * jv-lang.c (add_class_symtab_symbol): Update.
1129 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1131 * objfiles.c (objfile_relocate1): Update.
1132 * psymtab.c (lookup_symbol_aux_psymtabs)
1133 (maintenance_check_psymtabs): Update.
1134 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1136 * spu-tdep.c (spu_catch_start): Update.
1137 * symmisc.c (dump_symtab_1): Update.
1138 * symtab.c (lookup_global_symbol_from_objfile)
1139 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1140 (basic_lookup_transparent_type_quick)
1141 (basic_lookup_transparent_type, find_pc_sect_symtab)
1142 (find_pc_sect_line, search_symbols): Update.
1143 * block.c (find_block_in_blockvector): Make "bl" const.
1144 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1146 (blockvector_contains_pc): Make "bv" const.
1147 (block_for_pc_sect): Update.
1148 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1149 (blockvector_contains_pc): Update.
1150 * breakpoint.c (resolve_sal_pc): Update.
1151 * inline-frame.c (block_starting_point_at): Update.
1153 2014-06-18 Tom Tromey <tromey@redhat.com>
1155 * completer.c (complete_line): Make "line_buffer" const.
1156 * completer.h (complete_line): Update.
1158 2014-06-18 Tom Tromey <tromey@redhat.com>
1160 * symtab.c (add_macro_name): Remove unneeded cast.
1162 2014-06-18 Tom Tromey <tromey@redhat.com>
1164 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1165 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1167 2014-06-18 Tom Tromey <tromey@redhat.com>
1169 * probe.c (info_probes_for_ops): Make "arg" const.
1170 * probe.h (info_probes_for_ops): Update.
1172 2014-06-18 Tom Tromey <tromey@redhat.com>
1174 * varobj.c (varobj_create): Update.
1175 * valops.c (value_of_this): Update.
1176 * tracepoint.c (add_local_symbols, scope_info): Update.
1177 * symtab.h (struct general_symbol_info) <block>: Now const.
1178 * symtab.c (skip_prologue_sal)
1179 (default_make_symbol_completion_list_break_on)
1180 (skip_prologue_using_sal): Update.
1181 * stack.h (iterate_over_block_locals)
1182 (iterate_over_block_local_vars): Update.
1183 * stack.c (print_frame_args): Update.
1184 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1186 (get_selected_block): Make return type const.
1187 * python/py-frame.c (frapy_block): Update.
1188 * python/py-block.c (gdbpy_block_for_pc): Update.
1189 * p-exp.y (%union) <bval>: Now const.
1190 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1191 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1192 * m2-exp.y (%union) <bval>: Now const.
1193 * linespec.c (get_current_search_block): Make return type const.
1194 (create_sals_line_offset, find_label_symbols): Update.
1195 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1197 (block_starting_point_at): Make "block" const.
1198 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1199 (check_exception_resume): Update.
1200 * guile/scm-frame.c (gdbscm_frame_block): Update.
1201 * guile/scm-block.c (gdbscm_lookup_block): Update.
1202 * frame.h (get_frame_block): Update.
1203 (get_selected_block): Make return type const.
1204 * frame.c (frame_id_inner): Update.
1205 * f-valprint.c (info_common_command_for_block)
1206 (info_common_command): Update.
1207 * dwarf2loc.c (dwarf2_find_location_expression)
1208 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1209 (locexpr_describe_location_piece): Update.
1210 * c-exp.y (%union) <bval>: Now const.
1211 * breakpoint.c (resolve_sal_pc): Update.
1212 * blockframe.c (get_frame_block):Make return type const.
1213 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1214 (block_innermost_frame): Update.
1215 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1216 (block_for_pc, block_for_pc_sect): Update.
1217 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1219 (block_for_pc_sect, block_for_pc): Make return type const.
1220 * ax-gdb.c (gen_expr): Update.
1221 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1222 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1223 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1224 (ada_read_var_value): Update.
1225 * ada-exp.y (struct name_info) <block>: Now const.
1227 (block_lookup): Constify.
1229 2014-06-18 Gary Benson <gbenson@redhat.com>
1231 * nat/i386-dregs.h: New file.
1232 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1233 * i386-nat.h (i386-dregs.h): New include.
1234 (DR_FIRSTADDR): Now in i386-dregs.h.
1235 (DR_LASTADDR): Likewise.
1236 (DR_NADDR): Likewise.
1237 (DR_STATUS): Likewise.
1238 (DR_CONTROL): Likewise.
1239 (i386_debug_reg_state): Likewise.
1240 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1242 2014-06-18 Don Breazeal <donb@codesourcery.com>
1244 * breakpoint.c (set_longjmp_breakpoint): Call
1245 momentary_breakpoint_from_master with additional argument.
1246 (set_longjmp_breakpoint_for_call_dummy): Call
1247 momentary_breakpoint_from_master with additional argument.
1248 (set_std_terminate_breakpoint): Call
1249 momentary_breakpoint_from_master with additional argument.
1250 (momentary_breakpoint_from_master): Add argument to function
1251 definition and use it to initialize structure member flag.
1252 (clone_momentary_breakpoint): Call
1253 momentary_breakpoint_from_master with additional argument.
1254 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1255 member flags set in momentary_breakpoint_from_master.
1257 2014-06-18 Gary Benson <gbenson@redhat.com>
1259 * i386-nat.c (i386_show_dr): Renamed to
1260 i386_dr_show and made nonstatic. All uses updated.
1261 (i386_length_and_rw_bits): Renamed to
1262 i386_dr_length_and_rw_bits and made nonstatic.
1264 (i386_insert_aligned_watchpoint): Renamed to
1265 i386_dr_insert_aligned_watchpoint and made nonstatic.
1267 (i386_remove_aligned_watchpoint): Renamed to
1268 i386_dr_remove_aligned_watchpoint and made nonstatic.
1270 (i386_update_inferior_debug_regs): Renamed to
1271 i386_dr_update_inferior_debug_regs and made nonstatic.
1274 2014-06-18 Gary Benson <gbenson@redhat.com>
1276 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1277 (i386_dr_low_can_set_control): Likewise.
1278 (i386_dr_low_set_addr): Likewise.
1279 (i386_dr_low_set_control): Likewise.
1280 (i386_dr_low_get_addr): Likewise.
1281 (i386_dr_low_get_status): Likewise.
1282 (i386_dr_low_get_control): Likewise.
1283 (i386_insert_aligned_watchpoint): Use new macros.
1284 (i386_update_inferior_debug_regs): Likewise.
1285 (i386_stopped_data_address): Likewise.
1287 2014-06-18 Gary Benson <gbenson@redhat.com>
1289 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1290 New parameter. All uses updated.
1292 2014-06-18 Gary Benson <gbenson@redhat.com>
1294 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1297 2014-06-18 Gary Benson <gbenson@redhat.com>
1299 * i386-nat.c (debug_printf): New macro.
1300 (i386_get_debug_register_length): Likewise.
1301 (TARGET_HAS_DR_LEN_8): Use above macro.
1302 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1303 and printf_unfiltered. Use phex to format values.
1305 2014-06-18 Gary Benson <gbenson@redhat.com>
1307 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1310 2014-06-18 Gary Benson <gbenson@redhat.com>
1312 * i386-nat.c: Comment changes.
1314 2014-06-18 Gary Benson <gbenson@redhat.com>
1316 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1318 2014-06-18 Gary Benson <gbenson@redhat.com>
1320 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1321 (i386_insert_aligned_watchpoint): Likewise.
1322 (i386_remove_aligned_watchpoint): Likewise.
1323 (i386_handle_nonaligned_watchpoint): Likewise.
1325 2014-06-18 Gary Benson <gbenson@redhat.com>
1327 * i386-nat.c: Whitespace changes.
1329 2014-06-17 Samuel Bronson <naesten@gmail.com>
1331 * MAINTAINERS: Update Roland McGrath's email address.
1332 Thanks to Sergio Durigan Junior for pointing out that he left
1333 Red Hat a while ago, and giving me a current address.
1335 2014-06-17 Tom Tromey <tromey@redhat.com>
1337 * utils.h (savestring): Remove declaration.
1339 2014-06-17 Tom Tromey <tromey@redhat.com>
1341 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1343 2014-06-16 Keith Seitz <keiths@redhat.com>
1346 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1347 to update the varobj if inferior_ptid is null_ptid.
1349 2014-06-16 Tom Tromey <tromey@redhat.com>
1351 * target.h (struct target_ops) <to_info_proc>: Make parameter
1353 (target_info_proc): Update.
1354 * target.c (target_info_proc): Make "args" const.
1355 * procfs.c (procfs_info_proc): Update.
1356 * linux-tdep.c (linux_info_proc): Update.
1357 (linux_core_info_proc_mappings): Make "args" const.
1358 (linux_core_info_proc): Update.
1359 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1360 * gdbarch.c: Rebuild.
1361 * gdbarch.h: Rebuild.
1362 * corelow.c (core_info_proc): Update.
1364 2014-06-16 Tom Tromey <tromey@redhat.com>
1366 * target.h (struct target_ops) <to_disconnect>: Make parameter
1368 (target_disconnect): Update.
1369 * target.c (target_disconnect): Make "args" const.
1370 * target-delegates.c: Rebuild.
1371 * remote.c (remote_disconnect): Update.
1372 * record.h (record_disconnect): Update.
1373 * record.c (record_disconnect): Update.
1374 * inf-child.c (inf_child_disconnect): Update.
1376 2014-06-16 Tom Tromey <tromey@redhat.com>
1378 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1379 * target.c (debug_to_rcmd, default_rcmd): Update.
1380 * target-delegates.c: Rebuild.
1381 * remote.c (remote_rcmd): Update.
1382 * monitor.c (monitor_rcmd): Update.
1384 2014-06-16 Pedro Alves <palves@redhat.com>
1386 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1387 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1388 have OBJF_SHARED set.
1389 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1390 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1391 instead of OBJF_USERLOADED.
1392 * objfiles.h (OBJF_SHARED): Update comment.
1393 (userloaded_objfile_contains_address_p): Rename to ...
1394 (shared_objfile_contains_address_p): ... this, and update
1396 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1398 (remove_symbol_file_command): Skip objfiles that don't have
1401 2014-06-16 Tom Tromey <tromey@redhat.com>
1403 * minsyms.h (prim_record_minimal_symbol)
1404 (prim_record_minimal_symbol_and_info): Update comments.
1406 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1408 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1409 or --without-guile, according to how GDB was built.
1411 2014-06-13 Tom Tromey <tromey@redhat.com>
1413 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1415 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1417 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1419 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1420 help_list.Pass all_commands, not -1, to help_list.
1421 * cli/cli-dump.c (dump_command, append_command)
1422 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1423 (binary_dump_command, binary_append_command): Pass all_commands,
1424 not -1, to help_list.
1425 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1427 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1429 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1431 * top.c (set_history): Pass all_commands, not -1, to help_list.
1432 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1433 all_commands, not -1, to help_list.
1434 * symfile.c (overlay_command): Pass all_commands, not -1, to
1436 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1438 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1440 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1442 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1443 not -1, to help_list.
1444 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1445 not -1, to help_list.
1446 * maint.c (maintenance_command, maintenance_info_command)
1447 (maintenance_print_command, maintenance_set_cmd): Pass
1448 all_commands, not -1, to help_list.
1449 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1451 * language.c (set_check): Pass all_commands, not -1, to help_list.
1452 * infcmd.c (unset_command): Pass all_commands, not -1, to
1454 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1456 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1458 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1460 * breakpoint.c (save_command): Pass all_commands, not -1, to
1462 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1463 all_commands, not -1, to help_list.
1465 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1467 * regcache.c (struct register_to_invalidate): New structure.
1468 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1470 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1472 2014-06-12 Yao Qi <yao@codesourcery.com>
1474 * varobj.c (varobj_get_num_children): Call
1475 varobj_is_dynamic_p.
1476 (varobj_list_children): Likewise.
1477 (varobj_update): Likewise. Update comments.
1479 2014-06-12 Yao Qi <yao@codesourcery.com>
1481 * varobj.c (varobj_pretty_printed_p): Rename to ...
1482 (varobj_is_dynamic_p): ... this. New function.
1483 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1484 (varobj_is_dynamic_p): Declare.
1485 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1486 (mi_print_value_p, varobj_update_one): Likewise.
1488 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1489 Yao Qi <yao@codesourcery.com>
1491 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1492 (varobj_get_iterator): Wrap up code for pretty-printer by
1493 "#if HAVE_PYTHON" and "#endif".
1494 (update_dynamic_varobj_children): Likewise.
1496 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1497 Yao Qi <yao@codesourcery.com>
1499 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1500 gdb_python_initialized is false. Move some code from varobj.c.
1501 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1502 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1503 (struct varobj_item): Moved to varobj-iter.h".
1504 (varobj_clear_saved_item): New function.
1505 (update_dynamic_varobj_children): Move python-related code to
1507 (free_variable): Call varobj_clear_saved_item and
1510 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1511 Yao Qi <yao@codesourcery.com>
1513 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1514 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1515 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1516 (py-varobj.o): New rule.
1517 * python/py-varobj.c: New file.
1518 * python/python-internal.h (py_varobj_get_iterator): Declare.
1519 * varobj-iter.h: New file.
1520 * varobj.c: Include "varobj-iter.h"
1521 (struct varobj) <child_iter>: Change its type from "PyObject *"
1522 to "struct varobj_iter *".
1523 <saved_item>: Likewise.
1524 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1525 [HAVE_PYTHON] (varobj_get_iterator): New function.
1526 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1527 python-specific code to python/py-varobj.c.
1528 (install_visualizer): Call varobj_iter_delete instead of
1530 * varobj.h (varobj_ensure_python_env): Declare.
1532 2014-06-12 Yao Qi <yao@codesourcery.com>
1534 * varobj.c (struct varobj_item): New structure.
1535 (create_child_with_value): Update declaration.
1536 (varobj_add_child): Replace arguments 'name' and 'value' with
1537 'item'. All callers updated.
1538 (install_dynamic_child): Likewise.
1539 (update_dynamic_varobj_children): Likewise.
1540 (varobj_add_child): Likewise.
1541 (create_child_with_value): Likewise.
1543 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1545 * NEWS: Create a new section for the next release branch.
1546 Rename the section of the current branch, now that it has
1549 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1551 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1552 * version.in: Bump version to 7.8.50.DATE-cvs.
1554 2014-06-11 Pedro Alves <palves@redhat.com>
1557 * ser-mingw.c (net_windows_socket_check_pending): New function.
1558 (net_windows_select_thread): Ignore spurious wakeups. Use
1559 net_windows_socket_check_pending.
1560 (net_windows_wait_handle): Check for pending events with
1561 ioctlsocket, through net_windows_socket_check_pending, instead of
1562 checking the socket's event.
1564 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1566 * python/python-internal.h (gdb_PyObject_GetAttrString)
1567 (gdb_PyObject_HasAttrString): New inline function definitions.
1568 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1569 char * of the second argument to PyObject_GetAttrString.
1571 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1573 * serial.c (serial_write): Fix index of character to be printed
1574 in call to serial_logchar when serial debug traces are enabled.
1576 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1578 * gdbtypes (resolve_dynamic_range): Add function description.
1580 2014-06-09 Pedro Alves <palves@redhat.com>
1582 * linux-nat.c (linux_child_follow_fork): Initialize status with
1583 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1584 inner block. Only pass the signal to PTRACE_DETACH if in pass
1587 2014-06-09 Gary Benson <gbenson@redhat.com>
1589 * common/signals.c (gdb_signal_from_host): Reorder to separate
1590 the always-available ANSI-standard signals from the signals that
1592 (do_gdb_signal_to_host): Likewise.
1593 * proc-events.c (signal_table): Likewise.
1595 2014-06-08 Hui Zhu <hui@codesourcery.com>
1597 * common/linux-ptrace.c (linux_disable_event_reporting): New
1599 * common/linux-ptrace.h (linux_disable_event_reporting): New
1601 * linux-nat.c (linux_child_follow_fork): Do a single step before
1604 2014-06-07 Keith Seitz <keiths@redhat.com>
1608 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1609 from symbol_matches_domain in symtab.c. All local callers
1610 of symbol_matches_domain updated.
1611 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1612 search STRUCT_DOMAIN.
1613 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1614 independently. standard_lookup will do that automatically.
1615 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1616 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1617 (cp_lookup_symbol_in_namespace): Likewise.
1618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1619 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1620 may return a STRUCT_DOMAIN match.
1621 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1622 * cp-support.c: Include language.h.
1623 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1625 * psymtab.c (match_partial_symbol): Compare the requested
1626 domain with the symbol's domain directly.
1627 (lookup_partial_symbol): Likewise.
1628 * symtab.c (lookup_symbol_in_language): Explain when/why
1629 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1630 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1631 appropriate languages.
1632 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1633 and moved to ada-lang.c
1634 (lookup_block_symbol): Explain that this function only returns
1635 symbol matching the requested DOMAIN.
1636 Compare the requested domain with the symbol's domain directly.
1637 (iterate_over_symbols): Compare the requested domain with the
1638 symbol's domain directly.
1639 * symtab.h (symbol_matches_domain): Remove.
1641 2014-06-06 Doug Evans <xdje42@gmail.com>
1643 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1644 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1645 (gdbscm_guile_version_is_at_least): Declare.
1646 (gdbscm_scm_string_to_int): Declare.
1647 * guile/guile.c (gdbscm_guile_major_version): New global.
1648 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1649 (guile_datadir): New static global.
1650 (gdbscm_guile_data_directory): New function.
1651 (initialize_scheme_side): Update.
1652 (misc_guile_functions): Add guile-data-directory.
1653 (initialize_gdb_module): Fetch guile version number.
1654 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1655 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1656 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1657 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1659 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1660 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1661 * guile/scm-value.c (gdbscm_value_to_string): Only call
1662 scm_port_conversion_strategy if Guile version >= 2.0.6.
1664 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1666 * main.c (print_gdb_help): Add -q and --silent.
1668 2014-06-06 Gary Benson <gbenson@redhat.com>
1670 * common/signals.c: Remove preprocessor conditionals for
1671 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1672 SIGSEGV and SIGTERM.
1673 * proc-events.c: Likewise.
1675 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1677 * symfile.c (symfile_free_objfile): Remove restriction to
1679 * symfile-mem.c (symbol_file_add_from_memory): Call
1680 add_target_sections_of_objfile.
1682 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1684 * guile/scm-value.c (gdbscm_history_append_x): Use
1685 'vlscm_get_value_smob_arg_unsafe' instead of
1686 'vlscm_scm_to_value'.
1688 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1691 * utils.c (printchar): Don't escape at all if quoter is NUL.
1692 Update function documentation to clarify effect of parameter
1694 * remote.c (escape_buffer): Pass '\\' as the quoter to
1695 fputstrn_unfiltered.
1696 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1697 generate the output.
1698 (mi_solib_unloaded): Same.
1700 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1702 * development.sh: Delete.
1703 * Makefile.in (config.status): Adjust dependency on development.sh.
1704 * configure.ac: Adjust development.sh source call.
1705 * configure: Regenerate.
1707 2014-06-04 Doug Evans <xdje42@gmail.com>
1709 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1710 is_scheme_bkpt, spec.
1711 (bpscm_make_breakpoint_smob): Initialize new members.
1712 (gdbscm_create_breakpoint_x): Split into two ...
1713 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1714 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1715 (scheme_function breakpoint_functions): Update.
1716 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1717 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1718 register-breakpoint!.
1720 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1723 * mem-break.c (z_type_supported): Return zero if
1724 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1726 2014-06-04 Tom Tromey <tromey@redhat.com>
1728 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1729 value_from_contents_and_address_unresolved.
1730 (ada_template_to_fixed_record_type_1): Likewise.
1731 (ada_which_variant_applies): Likewise.
1732 * value.h (value_from_contents_and_address_unresolved): Declare.
1733 * value.c (value_from_contents_and_address_unresolved): New
1735 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1736 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1737 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1739 2014-06-04 Tom Tromey <tromey@redhat.com>
1741 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1743 2014-06-04 Tom Tromey <tromey@redhat.com>
1745 * procfs.c (procfs_attach): Make "args" const.
1746 * windows-nat.c (windows_attach): Make "args" const.
1747 * nto-procfs.c (procfs_attach): Make "args" const.
1748 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1749 * go32-nat.c (go32_attach): Make "args" const.
1750 * gnu-nat.c (gnu_attach): Make "args" const.
1751 * darwin-nat.c (darwin_attach): Make "args" const.
1752 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1753 * linux-nat.c (linux_nat_attach): Make "args" const.
1754 * remote.c (extended_remote_attach_1, extended_remote_attach):
1756 * target.h (struct target_ops) <to_attach>: Make "args" const.
1757 (find_default_attach): Likewise.
1758 * utils.c (parse_pid_to_attach): Make "args" const.
1759 * utils.h (parse_pid_to_attach): Update.
1761 2014-06-04 Tom Tromey <tromey@redhat.com>
1763 * target-delegates.c: Rebuild.
1764 * target.c (default_thread_address_space): New function.
1765 (target_thread_address_space): Simplify.
1766 * target.h (struct target_ops) <to_thread_address_space>: Add
1767 TARGET_DEFAULT_FUNC.
1769 2014-06-04 Doug Evans <xdje42@gmail.com>
1771 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1773 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1775 * record-btrace.c: Include event-loop.h and inf-loop.h.
1776 (record_btrace_resume_exec_dir)
1777 (record_btrace_async_inferior_event_handler)
1778 (record_btrace_handle_async_inferior_event): New.
1779 (record_btrace_open): Create async event handler.
1780 (record_btrace_close): Delete async event handler.
1781 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1782 Mark async event handler.
1783 (record_btrace_execution_direction): New.
1784 (init_record_btrace_ops): Initialize to_execution_direction.
1786 2014-06-03 Doug Evans <xdje42@gmail.com>
1788 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1789 (gdbscm_make_parameter): Ditto.
1791 2014-06-03 Doug Evans <dje@google.com>
1793 * exec.c (exec_close_1): Call clear_section_table instead of
1794 resize_section_table.
1795 (clear_section_table): New function.
1796 (resize_section_table): Make static. Rename arg num_added to
1798 * exec.h (clear_section_table): Declare.
1799 (resize_section_table): Delete.
1800 * progspace.c (release_program_space): Call clear_section_table
1801 instead of resize_section_table.
1803 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1805 * NEWS (Python Scripting): Add entry about the new xmethods
1808 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1810 * python/py-xmethods.c: New file.
1811 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1812 (objfpy_dealloc): XDECREF on the new xmethods field.
1813 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1815 (objfpy_get_xmethods): New function.
1816 (objfile_getset): New entry 'xmethods'.
1817 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1818 (pspy_dealloc): XDECREF on the new xmethods field.
1819 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1821 (pspy_get_xmethods): New function.
1822 (pspace_getset): New entry 'xmethods'.
1823 * python/python-internal.h: Add declarations for new functions.
1824 * python/python.c (_initialize_python): Invoke
1825 gdbpy_initialize_xmethods.
1826 * python/lib/gdb/__init__.py (xmethods): New
1828 * python/lib/gdb/xmethod.py: New file.
1829 * python/lib/gdb/command/xmethods.py: New file.
1831 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1833 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1834 best match method returned by find_overload_match is an xmethod.
1835 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1836 the best matching operator returned by find_overload_match is an
1838 * valops.c: #include "extension.h".
1839 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1840 Return void. The list of matching source methods is returned in
1841 "fn_list" and a vector of matching debug method workers is
1842 returned in "xm_worker_vec". Update all callers.
1843 (value_find_oload_method_list): Likewise.
1844 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1845 non-NULL, then the index of the best matching method in this
1846 vector is returned. Update all callers.
1847 (find_overload_match): Include xmethods while performing overload
1850 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1852 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1853 * extension-priv.h (struct extension_language_ops): Add the
1855 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1856 get_matching_xmethod_workers, get_xmethod_argtypes,
1857 invoke_xmethod, free_xmethod_worker,
1858 free_xmethod_worker_vec): New functions.
1859 * extension.h: #include "common/vec.h".
1860 New function declarations.
1861 (struct xmethod_worker): New struct.
1862 (VEC (xmethod_worker_ptr)): New vector type.
1863 (xmethod_worker_ptr): New typedef.
1864 (xmethod_worker_vec): Likewise.
1865 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1867 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1868 (struct builtin_type): New field "xmethod".
1869 * valarith.c (value_ptradd): Assert that the value argument is not
1871 * valops.c (value_must_coerce_to_target): Return 0 for
1872 lval_xcallable values.
1873 * value.c (struct value): New field XM_WORKER in the field
1875 (value_address, value_raw_address): Return 0 for lval_xcallable
1877 (set_value_address): Assert that the value is not an
1879 (value_free): Free the associated xmethod worker when freeing
1880 lval_xcallable values.
1881 (set_value_component_location): Assert that the WHOLE value is not
1883 (value_of_xmethod, call_xmethod): New functions.
1884 * value.h: Declare "struct xmethod_worker".
1885 Declare new functions value_of_xmethod, call_xmethod.
1887 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1888 Pedro Alves <palves@redhat.com>
1890 PR breakpoints/17000
1891 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1892 New function, extracted from software_breakpoint_inserted_here_p.
1893 (software_breakpoint_inserted_here_p): Replace factored out code
1894 by call to find_non_raw_software_breakpoint_inserted_here.
1895 (bp_target_info_copy_insertion_state): New function.
1896 (bkpt_insert_location): Handle the case of a single-step
1897 breakpoint already inserted at the same address.
1898 (bkpt_remove_location): Handle the case of a single-step
1899 breakpoint still inserted at the same address.
1900 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1901 breakpoint already inserted at the same address.
1902 (deprecated_remove_raw_breakpoint): Handle the case of a
1903 non-raw breakpoint still inserted at the same address.
1904 (find_single_step_breakpoint): New function, extracted from
1905 single_step_breakpoint_inserted_here_p.
1906 (find_single_step_breakpoint): New function,
1907 factored out from single_step_breakpoint_inserted_here_p.
1908 (single_step_breakpoint_inserted_here_p): Reimplement.
1910 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1912 Pushed by Joel Brobecker <brobecker@adacore.com>
1913 * source.c (show_substitute_path_command): Fix display of matching
1916 2014-06-03 Gary Benson <gbenson@redhat.com>
1918 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1920 2014-06-02 Doug Evans <xdje42@gmail.com>
1922 Add parameter support for Guile.
1923 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1924 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1925 (scm-param.o): New rule.
1926 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1927 (gdbscm_misc_error): Declare.
1928 (gdbscm_canonicalize_command_name): Declare.
1929 (gdbscm_scm_to_host_string): Declare.
1930 (gdbscm_scm_from_host_string): Declare.
1931 (gdbscm_initialize_parameters): Declare.
1932 * guile/guile.c (initialize_gdb_module): Call
1933 gdbscm_initialize_parameters.
1934 * guile/lib/gdb.scm: Export parameter symbols.
1935 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1936 cmdscm_canonicalize_name and made public. All callers updated.
1937 * guile/scm-exception.c (gdbscm_misc_error): New function.
1938 * guile/scm-param.c: New file.
1939 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1940 (gdbscm_scm_to_host_string): New function.
1941 (gdbscm_scm_from_host_string): New function.
1942 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1944 2014-06-02 Doug Evans <xdje42@gmail.com>
1946 Add command support for Guile.
1947 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1948 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1949 (scm-cmd.o): New rule.
1950 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1951 (gdbscm_user_error_p): Declare.
1952 (gdbscm_parse_command_name): Declare.
1953 (gdbscm_valid_command_class_p): Declare.
1954 (gdbscm_initialize_commands): Declare.
1955 * guile/guile.c (initialize_gdb_module): Call
1956 gdbscm_initialize_commands.
1957 * guile/lib/gdb.scm: Export command symbols.
1958 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1959 (throw-user-error): New function.
1960 * guile/scm-cmd.c: New file.
1961 * guile/scm-exception.c (user_error_symbol): New static global.
1962 (gdbscm_user_error_p): New function.
1963 (gdbscm_initialize_exceptions): Set user_error_symbol.
1964 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1966 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1968 * top.c (command_loop): Handle comments here...
1969 (command_line_input): ... not here.
1971 2014-06-02 Doug Evans <xdje42@gmail.com>
1973 Add progspace support for Guile.
1974 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1975 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1976 (scm-progspace.o): New rule.
1977 * guile/guile-internal.h (pspace_smob): New typedef.
1978 (psscm_pspace_smob_pretty_printers): Declare.
1979 (psscm_pspace_smob_from_pspace): Declare.
1980 (psscm_scm_from_pspace): Declare.
1981 * guile/guile.c (initialize_gdb_module): Call
1982 gdbscm_initialize_pspaces.
1983 * guile/lib/gdb.scm: Export progspace symbols.
1984 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1986 (append-pretty-printer!): Ditto.
1987 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1989 * guile/scm-progspace.c: New file.
1991 2014-06-03 Alan Modra <amodra@gmail.com>
1993 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1994 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1996 2014-06-02 Doug Evans <dje@google.com>
1998 Add support for skeletonless type units.
1999 * dwarf2read.c (struct dwarf2_per_objfile): New member
2000 n_allocated_type_units.
2001 (struct dwarf2_per_objfile) <tu_stats>: New member
2002 nr_all_type_units_reallocs.
2003 (create_signatured_type_table_from_index): Initialize
2004 n_allocated_type_units
2005 (create_all_type_units): Ditto.
2006 (add_type_unit): Move up in file. New arg slot.
2007 All callers updated. Increase space for all_type_units more
2009 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2010 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2011 (lookup_dwp_signatured_type): Ditto.
2012 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2013 All callers updated.
2014 (build_type_psymtabs_1): Leave type_unit_groups as
2015 NULL if no TUs present.
2016 (print_tu_stats): New function.
2017 (process_skeletonless_type_unit): New function.
2018 (process_dwo_file_for_skeletonless_type_units): New
2020 (process_skeletonless_type_units): New function.
2021 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2022 Call print tu_stats if debugging enabled.
2024 2014-06-02 Pedro Alves <palves@redhat.com>
2026 * breakpoint.c (build_target_command_list): Don't build a command
2027 list if we have any duplicate location that isn't a dprintf.
2029 2014-06-02 Pedro Alves <palves@redhat.com>
2031 * breakpoint.c (dprintf_breakpoint_hit): New function.
2032 (initialize_breakpoint_ops): Install it as dprintf's
2033 breakpoint_hit method.
2035 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2037 * source.c (substitute_path_rule_matches): Simplify using
2038 filename_ncmp instead of FILENAME_CMP.
2040 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2042 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2044 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2046 * configure.ac: When Guile is available, check for the
2047 availability of 'scm_new_smob'.
2048 * configure, config.h.in: Regenerate.
2049 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2052 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2054 * frame.c (struct frame_info): Add stop_string field.
2055 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2056 (get_prev_frame_always): Old content moved into
2057 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2058 TRY_CATCH, handle MEMORY_ERROR exceptions.
2059 (frame_stop_reason_string): New function definition.
2060 * frame.h (unwind_stop_reason_to_string): Extend comment to
2061 mention frame_stop_reason_string.
2062 (frame_stop_reason_string): New function declaration.
2063 * stack.c (frame_info): Switch to frame_stop_reason_string.
2064 (backtrace_command_1): Switch to frame_stop_reason_string.
2065 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2066 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2067 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2069 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2071 * frame.c (frame_stop_reason_string): Rename to ...
2072 (unwind_stop_reason_to_string): this.
2073 * frame.h (frame_stop_reason_string): Rename to ...
2074 (unwind_stop_reason_to_string): this.
2075 * stack.c (frame_info): Update call to frame_stop_reason_string.
2076 (backtrace_command_1): Likewise.
2077 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2078 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2080 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2082 * frame.c (remove_prev_frame): New function.
2083 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2086 2014-05-29 Pedro Alves <palves@redhat.com>
2088 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2089 and make it const. When a single-step decays to a continue,
2090 clear 'step', not 'hw_step'. Pass whether the caller wanted
2091 to step to user_visible_resume_ptid, not what we ask the
2094 2014-05-29 Pedro Alves <palves@redhat.com>
2096 * infrun.c (process_event_stop_test, handle_step_into_function)
2097 (handle_step_into_function_backward): Adjust.
2098 Don't set the even thread's stop_step and call stop_waiting before
2099 calling end_stepping_range. Instead do that ...
2100 (end_stepping_range): ... here. Take an ecs pointer parameter.
2102 2014-05-29 Pedro Alves <palves@redhat.com>
2104 * infrun.c (stop_stepping): Rename to ...
2105 (stop_waiting): ... this.
2106 (proceed): Update comment.
2107 (process_event_stop_test, handle_inferior_event)
2108 (handle_signal_stop, handle_step_into_function)
2109 (handle_step_into_function_backward): Update.
2111 2014-05-29 Pedro Alves <palves@redhat.com>
2113 * infcall.c (run_inferior_call): Don't check whether the current
2114 thread is running after the proceed call.
2116 2014-05-29 Pedro Alves <palves@redhat.com>
2117 Tom Tromey <tromey@redhat.com>
2119 * NEWS: Mention "maint set target-async", "set mi-async", and that
2120 background execution commands are now always available.
2121 * target.h (target_async_permitted): Update comment.
2122 * target.c (target_async_permitted, target_async_permitted_1):
2124 (set_target_async_command): Rename to ...
2125 (maint_set_target_async_command): ... this.
2126 (show_target_async_command): Rename to ...
2127 (maint_show_target_async_command): ... this.
2128 (_initialize_target): Adjust.
2129 * infcmd.c (prepare_execution_command): Make extern.
2130 * inferior.h (prepare_execution_command): Declare.
2131 * infrun.c (set_observer_mode): Leave target async alone.
2132 * mi/mi-interp.c (mi_interpreter_init): Install
2133 mi_on_sync_execution_done as sync_execution_done observer.
2134 (mi_on_sync_execution_done): New function.
2135 (mi_execute_command_input_handler): Don't print the prompt if we
2136 just started a synchronous command with an async target.
2137 (mi_on_resume): Check sync_execution before printing prompt.
2138 * mi/mi-main.h (mi_async_p): Declare.
2139 * mi/mi-main.c: Include gdbcmd.h.
2140 (mi_async_p): New function.
2141 (mi_async, mi_async_1): New globals.
2142 (set_mi_async_command, show_mi_async_command, mi_async): New
2144 (exec_continue): Call prepare_execution_command.
2145 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2146 (mi_execute_async_cli_command): Use mi_async_p.
2147 (_initialize_mi_main): Install "set mi-async". Make
2148 "target-async" a deprecated alias.
2150 2014-05-29 Pedro Alves <palves@redhat.com>
2152 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2153 (_initialize_cli_interp): Adjust.
2154 * event-loop.c: Include "observer.h".
2155 (start_event_loop): Notify 'command_error' observers instead of
2156 calling display_gdb_prompt. Remove FIXME comment.
2157 * event-top.c (display_gdb_prompt): Remove call into the
2159 * inf-loop.c: Include "observer.h".
2160 (inferior_event_handler): Notify 'command_error' observers instead
2161 of calling display_gdb_prompt.
2162 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2163 observers instead of calling display_gdb_prompt.
2164 * interps.c (interp_set): Don't call display_gdb_prompt.
2165 (current_interp_display_prompt_p): Delete.
2166 * interps.h (interp_prompt_p): Delete declaration.
2167 (interp_prompt_p_ftype): Delete.
2168 (struct interp_procs) <prompt_proc_p>: Delete field.
2169 (current_interp_display_prompt_p): Delete declaration.
2170 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2171 (_initialize_mi_interp): Adjust.
2172 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2173 'command_error' observers.
2174 (tui_on_sync_execution_done, tui_on_command_error): New
2176 (tui_display_prompt_p): Delete.
2177 (_initialize_tui_interp): Adjust.
2179 2014-05-29 Pedro Alves <palves@redhat.com>
2182 * cli/cli-interp.c: Include infrun.h and observer.h.
2183 (cli_uiout, cli_interp): New globals.
2184 (cli_on_signal_received, cli_on_end_stepping_range)
2185 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2187 (cli_interpreter_init): Install them as 'end_stepping_range',
2188 'signal_received' 'signal_exited', 'exited' and 'no_history'
2190 (_initialize_cli_interp): Remove cli_interp local.
2191 * infrun.c (handle_inferior_event): Call the several stop reason
2192 observers instead of printing the stop reason directly.
2193 (end_stepping_range): New function.
2194 (print_end_stepping_range_reason, print_signal_exited_reason)
2195 (print_exited_reason, print_signal_received_reason)
2196 (print_no_history_reason): Make static, and add an uiout
2197 parameter. Print to that instead of to CURRENT_UIOUT.
2198 * infrun.h (print_end_stepping_range_reason)
2199 (print_signal_exited_reason, print_exited_reason)
2200 (print_signal_received_reason print_no_history_reason): New
2202 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2204 <cli_uiout>: New field.
2205 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2206 uiout for CLI output. Install 'signal_received',
2207 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2209 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2210 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2211 (mi_on_no_history): New functions.
2212 (ui_out_free_cleanup): Delete function.
2213 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2214 instead use the one already stored in the MI interpreter data.
2215 (mi_ui_out): Adjust.
2216 * tui/tui-interp.c: Include infrun.h and observer.h.
2217 (tui_interp): New global.
2218 (tui_on_signal_received, tui_on_end_stepping_range)
2219 (tui_on_signal_exited, tui_on_exited)
2220 (tui_on_no_history): New functions.
2221 (tui_init): Install them as 'end_stepping_range',
2222 'signal_received' 'signal_exited', 'exited' and 'no_history'
2224 (_initialize_tui_interp): Delete tui_interp local.
2226 2014-05-29 Pedro Alves <palves@redhat.com>
2229 * linux-nat.c (linux_nat_resume_callback): Rename the second
2230 parameter to 'except'. Skip LP if it points to EXCEPT.
2231 (linux_nat_resume): Don't mark the event lwp as not stopped
2232 before resuming sibling lwps. Instead ask
2233 linux_nat_resume_callback to skip the event lwp. Mark it as not
2234 stopped after actually resuming it.
2235 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2237 (wait_lwp): Mark the lwp as stopped here.
2238 (stop_wait_callback): Mark the lwp as not stopped right after
2239 resuming it. Don't mark lwps as stopped here.
2240 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2241 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2243 2014-05-29 Pedro Alves <palves@redhat.com>
2246 * infrun.c (resume): Determine how much to resume depending on
2247 whether the caller wanted a step, not whether we can hardware step
2248 the target. Mark all threads that we intend to run as running,
2249 unless we're calling an inferior function.
2250 (normal_stop): If the thread is running an infcall, don't finish
2252 * target.c (target_resume): Don't mark threads as running here.
2254 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2256 * serial.c (_initialize_serial): Remove support for
2257 the "set remotebaud" and "show remotebaud" commands.
2258 * NEWS: Add entry documenting the removal of that command.
2260 2014-05-28 Yao Qi <yao@codesourcery.com>
2262 * charset.c: Fix typo in comments.
2264 2014-05-27 Gary Benson <gbenson@redhat.com>
2266 * utils.c (internal_vproblem): Prompt for a bug report.
2268 2014-05-26 Andy Wingo <wingo@igalia.com>
2270 * guile/scm-arch.c (arscm_mark_arch_smob):
2271 * guile/scm-block.c (bkscm_mark_block_smob)
2272 (bkscm_mark_block_syms_progress_smob):
2273 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2274 * guile/scm-exception.c (exscm_mark_exception_smob):
2275 * guile/scm-frame.c (frscm_mark_frame_smob):
2276 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2277 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2278 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2279 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2280 (ppscm_mark_pretty_printer_worker_smob):
2281 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2282 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2283 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2284 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2286 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2289 2014-05-26 Andy Wingo <wingo@igalia.com>
2290 Doug Evans <xdje42@gmail.com>
2292 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2293 empty_base_class. All uses updated.
2294 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2295 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2297 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2298 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2299 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2300 (gdbscm_gsmob_has_property_p, add_property_name)
2301 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2302 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2303 (gdb-object-has-property?, gdb-object-properties): Remove.
2304 (gdb-object-kind): Renamed from gsmob-kind.
2306 2014-05-26 Andy Wingo <wingo@igalia.com>
2308 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2309 * configure: Regenerate.
2311 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2313 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2315 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2317 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2318 (replay_memory_access_read_only, replay_memory_access_read_write)
2319 (replay_memory_access_types, replay_memory_access)
2320 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2321 (cmd_set_record_btrace, cmd_show_record_btrace)
2322 (cmd_show_replay_memory_access): New.
2323 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2324 (record_btrace_remove_breakpoint): Replace
2325 record_btrace_allow_memory_access with replay_memory_access.
2326 (_initialize_record_btrace): Add commands.
2327 * NEWS: Announce it.
2329 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2331 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2333 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2335 * MAINTAINERS (Write After Approval): Move self back from
2338 2014-05-22 Pedro Alves <palves@redhat.com>
2340 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2341 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2342 (disable_randomization, enum exec_direction_kind)
2343 (execution_direction, stop_registers, start_remote)
2344 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2345 (wait_for_inferior, normal_stop, get_last_target_status)
2346 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2347 (insert_step_resume_breakpoint_at_sal)
2348 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2349 (set_step_info, print_stop_event, signal_stop_state)
2350 (signal_print_state, signal_pass_state, signal_stop_update)
2351 (signal_print_update, signal_pass_update)
2352 (update_signals_program_target, clear_exit_convenience_vars)
2353 (displaced_step_dump_bytes, update_observer_mode)
2354 (signal_catch_update, gdb_signal_from_command): Move
2356 * infrun.h: ... to this new file.
2357 * amd64-tdep.c: Include infrun.h.
2358 * annotate.c: Include infrun.h.
2359 * arch-utils.c: Include infrun.h.
2360 * arm-linux-tdep.c: Include infrun.h.
2361 * arm-tdep.c: Include infrun.h.
2362 * break-catch-sig.c: Include infrun.h.
2363 * breakpoint.c: Include infrun.h.
2364 * common/agent.c: Include infrun.h instead of inferior.h.
2365 * corelow.c: Include infrun.h.
2366 * event-top.c: Include infrun.h.
2367 * go32-nat.c: Include infrun.h.
2368 * i386-tdep.c: Include infrun.h.
2369 * inf-loop.c: Include infrun.h.
2370 * infcall.c: Include infrun.h.
2371 * infcmd.c: Include infrun.h.
2372 * infrun.c: Include infrun.h.
2373 * linux-fork.c: Include infrun.h.
2374 * linux-nat.c: Include infrun.h.
2375 * linux-thread-db.c: Include infrun.h.
2376 * monitor.c: Include infrun.h.
2377 * nto-tdep.c: Include infrun.h.
2378 * procfs.c: Include infrun.h.
2379 * record-btrace.c: Include infrun.h.
2380 * record-full.c: Include infrun.h.
2381 * remote-m32r-sdi.c: Include infrun.h.
2382 * remote-mips.c: Include infrun.h.
2383 * remote-notif.c: Include infrun.h.
2384 * remote-sim.c: Include infrun.h.
2385 * remote.c: Include infrun.h.
2386 * reverse.c: Include infrun.h.
2387 * rs6000-tdep.c: Include infrun.h.
2388 * s390-linux-tdep.c: Include infrun.h.
2389 * solib-irix.c: Include infrun.h.
2390 * solib-osf.c: Include infrun.h.
2391 * solib-svr4.c: Include infrun.h.
2392 * target.c: Include infrun.h.
2393 * top.c: Include infrun.h.
2394 * windows-nat.c: Include infrun.h.
2395 * mi/mi-interp.c: Include infrun.h.
2396 * mi/mi-main.c: Include infrun.h.
2397 * python/py-threadevent.c: Include infrun.h.
2399 2014-05-22 Pedro Alves <palves@redhat.com>
2401 * infrun.c (handle_inferior_event): Store the exit code for
2402 --return-child-result here, instead of ...
2403 (print_exited_reason): ... here.
2405 2014-05-21 Pedro Alves <palves@redhat.com>
2408 * gdbthread.h (struct thread_control_state): New field
2410 * infrun.c (follow_fork): Copy the new thread control field to the
2412 (clear_proceed_status_thread): Clear the new thread control field.
2413 (proceed): Set the new thread control field.
2414 * interps.h (command_interp): Declare.
2415 * interps.c (command_interpreter): New global.
2416 (command_interp): New function.
2417 (interp_exec): Set `command_interpreter' while here.
2418 * cli-out.c (cli_uiout_dtor): New function.
2419 (cli_ui_out_impl): Install it.
2420 * mi/mi-interp.c: Include cli-out.h.
2421 (mi_cmd_interpreter_exec): Add comment.
2422 (restore_current_uiout_cleanup): New function.
2423 (ui_out_free_cleanup): New function.
2424 (mi_on_normal_stop): If finishing an execution command started by
2425 a CLI command, or any kind of breakpoint-like event triggered,
2426 print the stop event to the output (CLI) stream.
2427 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2429 2014-05-21 Pedro Alves <palves@redhat.com>
2431 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2432 current source line having changed.
2433 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2434 * infrun.c (normal_stop): Adjust call to
2435 set_current_sal_from_frame.
2436 * source.c (clear_lines_listed_range): New function.
2437 (set_current_source_symtab_and_line, identify_source_line): Clear
2438 the lines listed range.
2439 (line_info): Handle the first "info line" after the current source
2440 line having changed.
2441 * stack.c (print_stack_frame): Remove center handling.
2442 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2445 2014-05-21 Pedro Alves <palves@redhat.com>
2447 * inf-child.c (inf_child_mourn_inferior): New function.
2448 * inf-child.h (inf_child_mourn_inferior): New declaration.
2449 * darwin-nat.c (darwin_mourn_inferior): Use
2450 inf_child_mourn_inferior.
2451 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2452 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2453 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2454 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2455 * windows-nat.c (windows_mourn_inferior): Likewise.
2457 2014-05-21 Doug Evans <xdje42@gmail.com>
2459 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2461 2014-05-21 Doug Evans <xdje42@gmail.com>
2463 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2464 (gdbscm_out_of_range_error): Ditto.
2465 (gdbscm_memory_error): Ditto.
2466 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2467 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2468 (gdbscm_out_of_range_error): Update.
2469 (gdbscm_memory_error): Update.
2470 (gdbscm_scm_to_target_string_unsafe): Delete.
2472 2014-05-21 Pedro Alves <palves@redhat.com>
2474 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2476 (inf_child_open_target): New function.
2477 (inf_child_open): Use inf_child_open_target to push the target
2478 instead of erroring out.
2479 (inf_child_disconnect, inf_child_close)
2480 (inf_child_maybe_unpush_target): New functions.
2481 (inf_child_target): Install inf_child_disconnect and
2482 inf_child_close. Store a pointer to the returned object.
2483 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2485 * target.c (auto_connect_native_target): New global.
2486 (show_default_run_target): New function.
2487 (find_default_run_target): Return NULL if automatically connecting
2488 to the native target is disabled.
2489 (_initialize_target): Install set/show auto-connect-native-target.
2490 * NEWS: Mention "set auto-connect-native-target", and "target
2492 * linux-nat.c (super_close): New global.
2493 (linux_nat_close): Call super_close.
2494 (linux_nat_add_target): Store a pointer to the base class's
2496 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2497 inf_child_maybe_unpush.
2498 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2500 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2501 the inferior. Use inf_child_maybe_unpush_target.
2502 (inf_ttrace_attach): Don't push the target if it is already
2504 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2505 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2506 after mourning the inferior. Use inf_child_maybe_unpush_target.
2507 (darwin_attach_pid): Don't push the target if it is already
2509 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2510 mourning the inferior. Use inf_child_maybe_unpush_target.
2511 (gnu_detach): Use inf_child_maybe_unpush_target.
2512 * go32-nat.c (go32_create_inferior): Don't push the target if it
2514 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2515 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2516 (procfs_open): Rename to ...
2517 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2518 comments. Can target_preopen before changing node. Call
2519 inf_child_open_target to push the target explicitly.
2520 (procfs_attach): Don't push the target if it is already pushed.
2521 (procfs_detach): Use inf_child_maybe_unpush_target.
2522 (procfs_create_inferior): Don't push the target if it is already
2524 (nto_native_ops): New global.
2525 (procfs_open): Reimplement.
2526 (procfs_native_open): New function.
2527 (init_procfs_targets): Install procfs_native_open as to_open of
2528 "target native". Store a pointer to the "native" target in
2530 * procfs.c (procfs_attach): Don't push the target if it is already
2532 (procfs_detach): Use inf_child_maybe_unpush_target.
2533 (procfs_mourn_inferior): Only unpush the target after mourning the
2534 inferior. Use inf_child_maybe_unpush_target.
2535 (procfs_init_inferior): Don't push the target if it is already
2537 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2538 if it is already pushed.
2540 2014-05-21 Pedro Alves <palves@redhat.com>
2542 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2543 and "procfs" targets are now called "native" instead.
2545 2014-05-21 Pedro Alves <palves@redhat.com>
2547 * go32-nat.c (go32_open): Delete.
2548 (go32_target): Don't override the to_open method.
2550 2014-05-21 Pedro Alves <palves@redhat.com>
2552 * nto-procfs.c (procfs_can_run): New function.
2553 (nto_procfs_ops): New global.
2554 (init_procfs_targets): New, based on procfs_target. Install
2555 "target native" in addition to "target procfs".
2556 (_initialize_procfs): Call init_procfs_targets instead of adding
2559 2014-05-21 Pedro Alves <palves@redhat.com>
2561 * windows-nat.c (windows_target): Don't override to_shortname,
2562 to_longname or to_doc.
2564 2014-05-21 Pedro Alves <palves@redhat.com>
2566 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2569 2014-05-21 Pedro Alves <palves@redhat.com>
2571 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2572 to_shortname, to_longname or to_doc.
2574 2014-05-21 Pedro Alves <palves@redhat.com>
2576 * go32-nat.c (go32_target): Don't override to_shortname,
2577 to_longname or to_doc.
2579 2014-05-21 Pedro Alves <palves@redhat.com>
2581 * inf-child.c (inf_child_open): Remove mention of "child".
2582 (inf_child_target): Rename target to "native" instead of "child".
2584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2586 * Makefile.in (SFILES): Delete "regset.c".
2587 (COMMON_OBS): Delete "regset.o".
2589 * regset.h (regset_alloc): Delete prototype.
2591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2593 * sparc-linux-tdep.c (sparc32_linux_gregset)
2594 (sparc32_linux_fpregset): New static regset structures.
2595 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2596 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2598 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2599 (sparc64_linux_fpregset): New static regset structures.
2600 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2601 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2602 New static regset structures.
2603 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2604 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2605 New static regset structures.
2606 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2607 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2608 New static regset structures.
2609 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2610 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2611 New static regset structures.
2612 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2614 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2616 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2617 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2618 register maps ("regmaps") from "*regset" to "*regmap". Do this
2619 for all regmap types and variables.
2620 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2621 (sparc32_linux_supply_core_gregset)
2622 (sparc32_linux_collect_core_gregset)
2623 (sparc32_linux_supply_core_fpregset)
2624 (sparc32_linux_collect_core_fpregset): Likewise.
2625 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2626 (sparc_gregmap, sparc_fpregmap): ... these.
2627 (sparc_supply_gregset, sparc_collect_gregset)
2628 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2629 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2630 (_initialize_sparc_nat): Rename regmaps.
2631 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2632 (sparc_gregmap, sparc_fpregmap): ... these.
2633 (sparc_supply_gregset, sparc_collect_gregset)
2634 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2635 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2637 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2638 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2640 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2642 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2643 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2644 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2646 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2647 (sparc32_bsd_fpregset): Rename to...
2648 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2649 (sparc32_bsd_fpregmap): ... these.
2650 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2651 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2652 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2653 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2654 (struct sparc_gregmap, struct sparc_fpregmap)
2655 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2656 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2657 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2658 (sparc32_supply_regset, sparc32_collect_gregset)
2659 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2661 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2662 (sparc64_linux_ptrace_gregmap): ... this.
2663 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2664 (_initialize_sparc64_linux_nat): Rename regmaps.
2665 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2666 (sparc64_linux_core_gregmap): ... this.
2667 (sparc64_linux_supply_core_gregset)
2668 (sparc64_linux_collect_core_gregset)
2669 (sparc64_linux_supply_core_fpregset)
2670 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2671 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2672 (sparc64_sol2_fpregset): Rename to...
2673 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2674 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2675 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2677 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2678 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2679 (sparc64_bsd_fpregset): Rename to...
2680 (struct sparc_gregmap, sparc64_sol2_gregmap)
2681 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2682 (sparc64_bsd_fpregmap): ... these.
2683 (sparc64_supply_gregset, sparc64_collect_gregset)
2684 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2686 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2687 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2688 (sparc64fbsd_gregmap): ... this.
2689 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2690 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2692 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2693 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2694 (sparc64nbsd_collect_fpregset): Likewise.
2695 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2696 (sparc64nbsd_gregmap): ... this.
2697 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2699 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2700 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2701 (sparc64obsd_gregmap): ... this.
2702 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2704 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2705 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2706 (sparc32nbsd_gregmap): ... this.
2707 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2710 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2712 * score-tdep.c (score7_linux_gregset): New static regset
2714 (score7_linux_regset_from_core_section): Remove dynamic regset
2716 (score_gdbarch_init): Drop allocation of tdep structure.
2717 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2721 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2723 (am33_regset_from_core_section): Remove dynamic regset
2726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2729 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2731 (mips_linux_regset_from_core_section): Remove dynamic regset
2733 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2734 'gregset64', 'fpregset', and 'fpregset64'.
2735 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2736 deleted tdep fields.
2738 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2740 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2742 (amd64_regset_from_core_section): Remove dynamic regset
2744 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2746 (amd64obsd_regset_from_core_section): Remove dynamic regset
2748 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2750 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2751 x86-common regset supply function.
2752 * i386-tdep.c (i386_collect_gregset): Make static.
2753 (i386_gregset): New global regset structure.
2754 (i386_fpregset, i386_xstateregset): New static regset structures.
2755 (i386_regset_from_core_section): Remove dynamic regset
2757 (i386_gdbarch_init): Remove initialization of tdep fields
2758 'gregset', 'fpregset', and 'xstateregset'.
2759 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2760 'fpregset', and 'xstateregset'.
2761 (i386_collect_gregset): Remove prototype.
2762 (i386_gregset): New declaration.
2763 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2765 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2771 (arm_linux_vfpregset): New static regset structures.
2772 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2774 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2775 and 'vfpregset' fields.
2777 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2779 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2780 (aarch64_linux_fpregset): New static regset structures.
2781 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2782 of regset structures.
2783 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2788 * regset.h (struct regset): Remove gdbarch field.
2789 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2790 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2791 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2793 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2794 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2795 (ppc32_linux_vsxregset): Likewise.
2796 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2797 via the regcache instead of the regset.
2798 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2799 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2800 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2801 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2804 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2806 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2807 Constify structures.
2808 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2809 (alphanbsd_aout_gregset): Likewise.
2810 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2811 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2813 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2814 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2816 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2817 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2818 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2819 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2820 * m88k-tdep.c (m88k_gregset): Likewise.
2821 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2822 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2823 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2824 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2825 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2826 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2827 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2828 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2829 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2831 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2832 * sh-tdep.h (sh_corefile_gregset): Likewise.
2833 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2834 * vax-tdep.c (vax_gregset): Likewise.
2836 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 Fix TLS access for -static -pthread.
2839 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2840 (try_thread_db_load_1): Initialize it.
2841 (thread_db_get_thread_local_address): Call it if LM is zero.
2842 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2843 * target.h (struct target_ops) (to_get_thread_local_address): Add
2844 load_module_addr comment.
2846 2014-05-21 Pedro Alves <palves@redhat.com>
2848 * dcache.c (dcache_read_memory_partial): If reading the cache line
2849 fails, fallback to reading just the memory the caller wanted.
2851 2014-05-20 Doug Evans <dje@google.com>
2853 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2854 instead of get_current_arch.
2856 2014-05-20 Pedro Alves <palves@redhat.com>
2858 * NEWS: Mention that compare-sections now works with all targets.
2860 * remote.c (PACKET_qCRC): New enum value.
2861 (remote_verify_memory): Don't send qCRC if the target has no
2862 execution. Use packet_support/packet_ok. If the target doesn't
2863 support the qCRC packet, fallback to a deep memory copy.
2864 (compare_sections_command): Say "target image" instead of "remote
2866 (_initialize_remote): Add PACKET_qCRC to the list of config
2867 packets that have no associated command. Extend comment.
2868 * target.c (simple_verify_memory, default_verify_memory): New
2870 * target.h (struct target_ops) <to_verify_memory>: Default to
2871 default_verify_memory.
2872 (simple_verify_memory): New declaration.
2873 * target-delegates.c: Regenerate.
2875 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2877 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2879 2014-05-20 Hui Zhu <hui@codesourcery.com>
2880 Yao Qi <yao@codesourcery.com>
2883 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2884 and change address of sp and pc.
2886 2014-05-19 Tom Tromey <tromey@redhat.com>
2888 * gdbtypes.c (rank_function): Use XNEWVEC.
2889 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2891 2014-05-19 Doug Evans <dje@google.com>
2893 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2894 build_type_unit_groups and moved closer to only caller. Remove
2895 arguments. All references updated. Remove outdated .gdb_index
2897 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2898 build_type_psymtabs_1.
2900 2014-05-19 Doug Evans <dje@google.com>
2902 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2903 n_type_unit_groups, all_type_unit_groups. All uses removed.
2904 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2905 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2906 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2907 (add_type_unit_group_to_table): Delete.
2909 2014-05-19 Doug Evans <dje@google.com>
2911 * eval.c (evaluate_subexp_standard): Add some comments.
2913 2014-05-17 Doug Evans <xdje42@gmail.com>
2915 * progspace.c (remove_program_space): Delete, unused.
2916 * progspace.h (remove_program_space): Ditto.
2918 2014-05-17 Doug Evans <xdje42@gmail.com>
2920 * inferior.c (prune_inferiors): Fix comment.
2921 (remove_inferior_command): Call prune_program_spaces.
2923 2014-05-16 Doug Evans <dje@google.com>
2925 New command line option -D.
2927 * main.c (set_gdb_data_directory): New function.
2928 (captured_main): Recognize -D. Flag error for --data-directory "".
2929 Call set_gdb_data_directory.
2930 (print_gdb_help): Print --data-directory, -D.
2931 * main.h (set_gdb_data_directory): Declare.
2932 * top.c (staged_gdb_datadir): New static global.
2933 (set_gdb_datadir): Call set_gdb_data_directory
2934 (show_gdb_datadir): New function.
2935 (init_main): Update init of data-directory parameter.
2937 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2939 Import the "dirfd" gnulib module.
2940 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2941 * gnulib/aclocal.m4: Update.
2942 * gnulib/config.in: Update.
2943 * gnulib/configure: Update.
2944 * gnulib/import/Makefile.am: Update.
2945 * gnulib/import/Makefile.in: Update.
2946 * gnulib/import/dirfd.c: New.
2947 * gnulib/import/m4/dirfd.m4: New.
2948 * gnulib/import/m4/gnulib-cache.m4: Update.
2949 * gnulib/import/m4/gnulib-comp.m4: Update.
2951 2014-05-16 Pierre Muller <muller@sourceware.org>
2952 Yao Qi <yao@codesourcery.com>
2954 * valprint.c (print_wchar): Move the code on checking whether
2955 W is a printable wide char to the default branch of switch
2956 statement below. Call wchar_printable instead of gdb_iswprint.
2958 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2960 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2961 ldr.w and ldrd instructions.
2963 2014-05-15 Doug Evans <dje@google.com>
2965 * dwarf2read.c (read_structure_type): Delete outdated comments.
2967 2014-05-14 Tom Tromey <tromey@redhat.com>
2969 * macrocmd.c (print_macro_definition): Reindent.
2971 2014-05-13 Doug Evans <xdje42@gmail.com>
2973 * python/py-cmd.c (cmdpy_completer): Add comment.
2974 (completers): Make const.
2976 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2978 * infrun.c (resume): Remove should_resume (unused). Move up
2979 declaration of resume_ptid.
2981 2014-05-13 Tom Tromey <tromey@redhat.com>
2983 * language.h (unop_type_check): Remove.
2984 (binop_type_check): Don't declare.
2986 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2988 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2989 call to regcache_raw_collect.
2991 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2993 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2994 mi_console->quote as the quoting character.
2996 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2998 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3000 2014-04-29 Tom Tromey <tromey@redhat.com>
3002 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3003 "show debug varobj".
3005 2014-05-07 Kyle McMartin <kyle@redhat.com>
3007 Pushed by Joel Brobecker <brobecker@adacore.com>.
3008 * aarch64-tdep.c (aarch64_software_single_step): New function.
3009 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3010 with aarch64_software_single_step.
3012 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3016 2014-05-05 Keith Seitz <keiths@redhat.com>
3018 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3019 variable or history value is successfully parsed.
3021 2014-05-05 Yao Qi <yao@codesourcery.com>
3022 Pedro Alves <palves@redhat.com>
3024 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3025 address of blocks that intersects the requested range. Trim
3026 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3028 * ctf.c (ctf_xfer_partial): Likewise.
3030 2014-05-05 Yao Qi <yao@codesourcery.com>
3032 * printcmd.c (display_command): Remove the check to
3033 target_has_execution.
3035 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3037 * ppcobsd-nat.c: Include "obsd-nat.h".
3038 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3040 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3042 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3044 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3045 and 16-bit signed and unsigned arguments. Update comment.
3046 (stap_parse_probe_arguments): Extend code to handle such
3047 arguments. Use warning instead of complaint to notify about
3048 unrecognized bitness.
3050 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3052 PR breakpoints/16889
3053 * stap-probe.c (stap_parse_probe_arguments): Simplify
3054 check for non-prefixed probes (i.e., probes whose
3055 arguments do not start with "N@"). Always set the
3056 argument type to a sane value.
3058 2014-05-01 David Taylor <dtaylor@emc.com>
3060 * remote.c (compare_sections_command): Add -r option to compare
3061 all loadable read-only sections.
3063 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3065 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3066 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3068 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3069 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3070 Remove unused CORE_ADDR argument. Update all callers.
3072 2014-04-29 Pedro Alves <palves@redhat.com>
3074 * remote.c (struct packet_config) <detect>: Extend comment.
3075 (add_packet_config_cmd): Don't set the config's detect or support
3077 (init_all_packet_configs): Also initialize the config's 'detect'
3079 (reset_all_packet_configs_support): New function.
3080 (remote_open_1): Call reset_all_packet_configs_support instead of
3081 init_all_packet_configs.
3082 (_initialize_remote): Initialize all packet configs. Assert that
3083 all packets have an associated command, except a few known
3086 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3088 * dwarf2read.c (read_subrange_type): Handle dynamic
3089 DW_AT_lower_bound attributes.
3091 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3093 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3094 dynamic bounds before computing its upper bound.
3095 (ada_discrete_type_low_bound): Same as above with the lower bound.
3097 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3099 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3100 range types. Adjust the array handling implementation to
3101 take advantage of this change.
3102 (resolve_dynamic_range): New function, mostly extracted from
3103 resolve_dynamic_bounds.
3104 (resolve_dynamic_array): New function, mostly extracted from
3105 resolve_dynamic_bounds.
3106 (resolve_dynamic_bounds): Delete.
3107 (resolve_dynamic_type): Reimplement. Add handling of
3108 TYPE_CODE_RANGE types.
3110 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3112 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3113 handling of parallel ___XA types.
3115 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3117 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3118 unnecessary second call to static_unwrap_type.
3120 2014-04-27 Hui Zhu <hui@codesourcery.com>
3122 * stack.c (print_frame_info): Call do_gdb_disassembly with
3123 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3125 2014-04-26 Doug Evans <xdje42@gmail.com>
3127 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3129 2014-04-25 Pedro Alves <palves@redhat.com>
3132 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3133 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3134 and newline from built string.
3135 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3136 (linux_ptrace_attach_fail_reason): ... this.
3137 * linux-nat.c (linux_nat_attach): Adjust to use
3138 linux_ptrace_attach_fail_reason.
3140 2014-04-25 Pedro Alves <palves@redhat.com>
3142 * remote.c (struct remote_state): Remove multi_process_aware,
3143 non_stop_aware, cond_tracepoints, cond_breakpoints,
3144 breakpoint_commands, fast_tracepoints, static_tracepoints,
3145 install_in_trace, disconnected_tracing,
3146 enable_disable_tracepoints, string_tracing, and
3147 augmented_libraries_svr4_read fields.
3148 (remote_multi_process_p): Move further below in the file.
3149 (struct packet_config): Add comments.
3150 (update_packet_config): Delete function.
3151 (show_packet_config_cmd): Use packet_config_support.
3152 (add_packet_config_cmd): Use NULL as set callback.
3153 (packet_ok): "set remote foo-packet"-style commands no longer
3154 change config->supported -- adjust.
3155 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3156 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3157 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3158 (PACKET_QNonStop, PACKET_multiprocess_feature)
3159 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3160 (PACKET_DisconnectedTracing_feature)
3161 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3162 (set_remote_protocol_packet_cmd): Delete function.
3163 (packet_config_support, packet_support): New functions.
3164 (set_remote_protocol_Z_packet_cmd): Don't call
3165 update_packet_config.
3166 (remote_query_attached, remote_pass_signals)
3167 (remote_program_signals, remote_threads_info)
3168 (remote_threads_extra_info, remote_start_remote): Use
3170 (remote_start_remote): Use packet_config_support and
3172 (init_all_packet_configs): Set all packets to unknown support,
3173 instead of calling update_packet_config.
3174 (remote_check_symbols): Use packet_support.
3175 (remote_supported_packet): Unconditionally set the packet config's
3177 (remote_multi_process_feature, remote_non_stop_feature)
3178 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3179 (remote_breakpoint_commands_feature)
3180 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3181 (remote_install_in_trace_feature)
3182 (remote_disconnected_tracing_feature)
3183 (remote_enable_disable_tracepoint_feature)
3184 (remote_string_tracing_feature)
3185 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3186 (remote_protocol_features): Adjust to use remote_supported_packet
3187 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3188 "ConditionalTracepoints", "ConditionalBreakpoints",
3189 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3190 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3191 "EnableDisableTracepoints", and "tracenz".
3192 (remote_query_supported): Use packet_support.
3193 (remote_open_1): Adjust.
3194 (extended_remote_attach_1): Use packet_support. Switch on the
3195 result of packet_ok instead of checking whether the packet ended
3197 (remote_vcont_resume): Use packet_support.
3198 (remote_resume, remote_stop_ns, fetch_register_using_p)
3199 (remote_prepare_to_store, store_register_using_P)
3200 (check_binary_download, remote_write_bytes): Use packet_support.
3201 (remote_vkill): Use packet_support. Switch on the result of
3202 packet_ok instead of checking whether the packet ended up
3204 (extended_remote_supports_disable_randomization): Use
3206 (extended_remote_run): Switch on the result of packet_ok instead
3207 of checking whether the packet ended up disabled.
3208 (remote_insert_breakpoint, remote_remove_breakpoint)
3209 (remote_insert_watchpoint, remote_remove_watchpoint)
3210 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3212 (remote_search_memory): Use packet_config_support.
3213 (remote_get_thread_local_address, remote_get_tib_address)
3214 (remote_hostio_send_command, remote_can_execute_reverse): Use
3216 (remote_supports_cond_tracepoints)
3217 (remote_supports_cond_breakpoints)
3218 (remote_supports_fast_tracepoints)
3219 (remote_supports_static_tracepoints)
3220 (remote_supports_install_in_trace)
3221 (remote_supports_enable_disable_tracepoint)
3222 (remote_supports_string_tracing)
3223 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3224 the packet config says the feature is enabled or disabled.
3225 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3226 (remote_get_trace_status): Use packet_support.
3227 (remote_set_disconnected_tracing): Adjust to check whether the
3228 feature is enabled with packet_support.
3229 (remote_set_trace_buffer_size, remote_use_agent)
3230 (remote_can_use_agent, remote_supports_btrace): Use
3232 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3233 Use packet_config_support.
3234 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3235 the packet config says the feature is enabled or disabled.
3236 (set_range_stepping): Use packet_support.
3238 2014-04-25 Tom Tromey <tromey@redhat.com>
3240 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3243 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3245 * NEWS: Mention support for C99 variable length arrays.
3247 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3249 * ada-lang.c (standard_exc): Expand introductory comment.
3251 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3252 Walfred Tedeschi <walfred.tedeschi@intel.com>
3254 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3256 (amd64_linux_read_description): Add code to handle AVX512 xstate
3257 mask and return respective tdesc.
3258 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3259 and features/i386/x32-avx512-linux.c.
3260 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3261 (amd64_linux_core_read_description): Add code to handle AVX512
3262 xstate mask and return respective tdesc.
3263 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3264 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3266 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3267 (tdesc_amd64_avx512_linux): New prototype.
3268 (tdesc_x32_avx512_linux): Likewise.
3269 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3270 features/i386/x32-avx512.c.
3271 (amd64_ymm_avx512_names): New register names for pseudo
3273 (amd64_ymmh_avx512_names): New register names for raw registers
3275 (amd64_k_names): New register names for K registers.
3276 (amd64_zmmh_names): New register names for ZMM raw registers.
3277 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3278 (amd64_xmm_avx512_names): New register names for XMM16-31
3280 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3282 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3283 if feature is present.
3284 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3285 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3286 (AMD64_NUM_REGS): Adjust to new number of registers.
3287 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3288 registers supplied via XSTATE by AVX512 registers.
3289 (i386_linux_read_description): Add case for AVX512.
3290 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3291 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3292 (i386_linux_core_read_description): Add case for AVX512.
3293 (i386_linux_init_abi): Install supported register note section
3295 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3297 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3298 registers to be number of zmm7h + 1.
3299 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3300 * i386-tdep.c: Include features/i386/i386-avx512.c.
3301 (i386_zmm_names): Add ZMM pseudo register names array.
3302 (i386_zmmh_names): Add ZMM raw register names array.
3303 (i386_k_names): Add K raw register names array.
3304 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3305 registers. AVX512 has 16 more ZMM registers than there are YMM
3307 (i386_zmmh_regnum_p): Add function to look up register number of
3309 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3310 (i386_k_regnum_p): Likewise for K raw registers.
3311 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3312 registers added by AVX512.
3313 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3314 registers added by AVX512.
3315 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3317 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3318 (i386_pseudo_register_name): Add ZMM pseudo registers.
3319 (i386_zmm_type): Construct and return vector registers type for ZMM
3321 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3322 ZMM0-31 pseudo registers and K registers.
3323 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3324 and YMM16-31 registers from register cache.
3325 (i386_pseudo_register_write): Add code to write K, ZMM and
3327 (i386_register_reggroup_p): Add code to include/exclude AVX512
3328 registers in/from respective register groups.
3329 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3330 registers if feature is present in xcr0.
3331 (i386_gdbarch_init): Add code to initialize AVX512 feature
3332 variables in tdep structure, wire in pseudo registers and call
3333 initialize_tdesc_i386_avx512.
3334 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3336 (i386_regnum): Add AVX512 registers.
3337 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3338 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3339 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3340 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3342 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3343 (i386_ymm_avx512_regnum_p): Likewise.
3344 (i386_k_regnum_p): Likewise.
3345 (i386_zmm_regnum_p): Likewise.
3346 (i386_zmmh_regnum_p): Likewise.
3347 * i387-tdep.c : Update year in copyright notice.
3348 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3350 (XSAVE_YMM_AVX512_ADDR): New macro.
3351 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3353 (XSAVE_XMM_AVX512_ADDR): New macro.
3354 (xsave_avx512_k_offset): New table for K register offsets in
3356 (XSAVE_AVX512_K_ADDR): New macro.
3357 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3359 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3360 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3362 (i387_collect_xsave): Add code to collect AVX512 registers from
3364 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3365 of XMM16-31 registers.
3366 (I387_NUM_K_REGS): New define for number of K registers.
3367 (I387_K0_REGNUM): New define for K0 register number.
3368 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3369 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3370 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3372 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3373 (I387_XMM16_REGNUM): New define for XMM16 register number.
3374 (I387_YMM0_REGNUM): New define for YMM0 register number.
3375 (I387_KEND_REGNUM): New define for last K register number.
3376 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3377 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3379 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3381 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3383 * features/Makefile: Add AVX512 related files.
3384 * features/i386/32bit-avx512.xml: New file.
3385 * features/i386/64bit-avx512.xml: Likewise.
3386 * features/i386/amd64-avx512-linux.c: Likewise.
3387 * features/i386/amd64-avx512-linux.xml: Likewise.
3388 * features/i386/amd64-avx512.c: Likewise.
3389 * features/i386/amd64-avx512.xml: Likewise.
3390 * features/i386/i386-avx512-linux.c: Likewise.
3391 * features/i386/i386-avx512-linux.xml: Likewise.
3392 * features/i386/i386-avx512.c: Likewise.
3393 * features/i386/i386-avx512.xml: Likewise.
3394 * features/i386/x32-avx512-linux.c: Likewise.
3395 * features/i386/x32-avx512-linux.xml: Likewise.
3396 * features/i386/x32-avx512.c: Likewise.
3397 * features/i386/x32-avx512.xml: Likewise.
3398 * regformats/i386/amd64-avx512-linux.dat: New file.
3399 * regformats/i386/amd64-avx512.dat: Likewise.
3400 * regformats/i386/i386-avx512-linux.dat: Likewise.
3401 * regformats/i386/i386-avx512.dat: Likewise.
3402 * regformats/i386/x32-avx512-linux.dat: Likewise.
3403 * regformats/i386/x32-avx512.dat: Likewise.
3404 * NEWS: Add note about new support for AVX512.
3407 2014-04-23 Pedro Alves <palves@redhat.com>
3409 * breakpoint.c (insert_bp_location): Tolerate errors if the
3410 breakpoint is set in a user-loaded objfile.
3411 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3412 location is marked shlib_disabled. If the breakpoint is set in a
3413 user-loaded objfile is a GDB-side memory breakpoint, validate it
3414 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3415 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3417 * mem-break.c (memory_validate_breakpoint): New function.
3418 * objfiles.c (userloaded_objfile_contains_address_p): New
3420 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3421 * target.h (memory_validate_breakpoint): New declaration.
3423 2014-04-23 Pedro Alves <palves@redhat.com>
3425 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3426 the breakpoint is set in a shared library, only suppress
3427 errors for software breakpoints, not hardware breakpoints.
3429 2014-04-22 Pedro Alves <palves@redhat.com>
3431 * infrun.c (schedlock_applies): New function, factored out from
3432 find_thread_needs_step_over.
3433 (find_thread_needs_step_over): Use it.
3434 (switch_back_to_stepped_thread): Always clear trap_expected if the
3435 step over is finished. Return early if scheduler locking applies.
3436 Look for the stepping thread and a potential step-over thread with
3438 (currently_stepping_or_nexting_callback): Delete.
3440 2014-04-22 Nick Clifton <nickc@redhat.com>
3442 * NEWS: Mention that ARM sim now supports tracing.
3444 2014-04-22 Yao Qi <yao@codesourcery.com>
3446 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3448 * tracefile.c (tracefile_fetch_registers): ... it. New
3450 * tracefile.h (tracefile_fetch_registers): Declare.
3451 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3452 tracefile_fetch_registers.
3454 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3457 * windows-nat.c (thread_rec): Don't display a warning when
3458 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3459 fails for any reason, set th->suspended to -1, so that we don't
3460 try to resume such a thread. Also, don't return NULL in these
3461 cases, to avoid completely ruin the session due to "PC register is
3462 not available" error.
3463 (do_windows_fetch_inferior_registers): Check errors in
3464 GetThreadContext call.
3465 (windows_continue): Accept an additional argument KILLED; if not
3466 zero, ignore errors in the SetThreadContext call, since the
3467 inferior was killed and is shutting down.
3468 (windows_resume, get_windows_debug_event)
3469 (windows_create_inferior, windows_mourn_inferior)
3470 (windows_kill_inferior): All callers of windows_continue changed
3471 to adjust to its new calling sequence.
3473 2014-04-19 Yao Qi <yao@codesourcery.com>
3475 * ctf.c (ctf_open): Call post_create_inferior.
3477 2014-04-19 Yao Qi <yao@codesourcery.com>
3479 * ctf.c (handle_id): New static variable.
3480 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3481 value. Get the declaration of event "register" and get length
3482 of field "contents".
3484 2014-04-19 Yao Qi <yao@codesourcery.com>
3486 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3488 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3490 * valops.c (oload_method_static): Remove unnecessary argument
3491 METHOD. Update all callers.
3493 2014-04-18 Pedro alves <palves@redhat.com>
3494 Tom Tromey <tromey@redhat.com>
3497 * frame.c (get_prev_frame_1): Rename to ...
3498 (get_prev_frame_always): ... this, and make extern. Adjust.
3499 (skip_artificial_frames): Use get_prev_frame_always.
3500 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3501 (get_frame_unwind_stop_reason): Adjust to rename.
3502 * frame.h (get_prev_frame_always): Declare.
3503 * inline-frame.c: Include frame.h.
3504 (inline_frame_this_id): Use get_prev_frame_always.
3506 2014-04-18 Tristan Gingold <gingold@adacore.com>
3508 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3509 code by using bfd_mach_o_get_base_address.
3511 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3513 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3514 (spu_ax_pseudo_register_collect): New function.
3515 (spu_ax_pseudo_register_push_stack): Likewise.
3516 (spu_dwarf_reg_to_regnum): Likewise.
3517 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3519 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3521 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3522 Replace FRAME argument with FRAME_ID.
3523 * gdbarch.c, gdbarch.h: Regenerate.
3524 * findvar.c (default_value_from_register): Add GDBARCH argument;
3525 replace FRAME by FRAME_ID. No longer call get_frame_id.
3526 (value_from_register): Update call to gdbarch_value_from_register.
3527 * value.h (default_value_from_register): Update prototype.
3528 * s390-linux-tdep.c (s390_value_from_register): Update interface
3529 and call to default_value_from_register.
3530 * spu-tdep.c (spu_value_from_register): Likewise.
3532 * findvar.c (address_from_register): Remove TYPE argument.
3533 Do not call value_from_register; use gdbarch_value_from_register
3534 with null_frame_id instead.
3535 * value.h (address_from_register): Update prototype.
3536 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3537 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3538 address_from_register interface change.
3540 2014-04-17 Yao Qi <yao@codesourcery.com>
3542 * gdbtypes.h: Update comments to link to types and macros'
3545 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3547 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3549 2014-04-16 Keith Seitz <keiths@redhat.com>
3552 * dwarf2read.c (skip_one_die): Check that all relative-offset
3553 sibling DIEs fall within range of the current reader's buffer.
3554 (read_partial_die): Likewise.
3556 2014-04-16 Keith Seitz <keiths@redhat.com>
3559 * cp-namespace.c (lookup_symbol_file): If the type name of
3560 `this' is NULL, return immediately.
3562 2014-04-14 Keith Seitz <keiths@redhat.com>
3565 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3566 from symbol_matches_domain in symtab.c. All local callers
3567 of symbol_matches_domain updated.
3568 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3569 search STRUCT_DOMAIN.
3570 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3571 independently. standard_lookup will do that automatically.
3572 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3573 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3574 (cp_lookup_symbol_in_namespace): Likewise.
3575 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3576 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3577 may return a STRUCT_DOMAIN match.
3578 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3579 * cp-support.c: Include language.h.
3580 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3582 * psymtab.c (match_partial_symbol): Compare the requested
3583 domain with the symbol's domain directly.
3584 (lookup_partial_symbol): Likewise.
3585 * symtab.c (lookup_symbol_in_language): Explain when/why
3586 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3587 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3588 appropriate languages.
3589 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3590 and moved to ada-lang.c
3591 (lookup_block_symbol): Explain that this function only returns
3592 symbol matching the requested DOMAIN.
3593 Compare the requested domain with the symbol's domain directly.
3594 (iterate_over_symbols): Compare the requested domain with the
3595 symbol's domain directly.
3596 * symtab.h (symbol_matches_domain): Remove.
3598 2014-04-14 Tom Tromey <tromey@redhat.com>
3601 * c-exp.y (type_aggregate_p): New function.
3602 (qualified_name, classify_inner_name): Use it.
3603 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3604 and TYPE_TARGET_TYPE of an enum type.
3605 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3607 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3608 handle TYPE_DECLARED_CLASS.
3609 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3611 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3612 * valops.c (enum_constant_from_type): New function.
3613 (value_aggregate_elt): Use it.
3614 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3617 2014-04-14 Tom Tromey <tromey@redhat.com>
3619 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3620 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3622 * value.h (value_aggregate_elt): Update.
3624 2014-04-14 Tom Tromey <tromey@redhat.com>
3626 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3628 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3630 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3631 (evaluate_subexp_standard): Pass noside argument.
3632 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3633 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3634 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3635 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3636 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3638 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3640 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3641 points to a constant blob.
3643 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3645 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3646 property and store it as the high bound and flag the range accordingly.
3647 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3648 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3649 * gdbtypes.h (enum range_flags): New enum.
3650 (struct range_bounds): Add flags member.
3652 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3654 * c-typeprint.c (c_type_print_varspec_suffix): Added
3655 check for not yet resolved high bound. If unresolved, print
3656 "variable length" string to the console instead of random
3659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3661 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3663 (ada_template_to_fixed_record_type_1): Likewise.
3664 (ada_to_fixed_type_1): Likewise.
3665 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3666 (cp_print_value): Likewise.
3667 * d-valprint.c (dynamic_array_type): Likewise.
3668 * findvar.c (address_of_variable): Likewise.
3669 * jv-valprint.c (java_value_print): Likewise.
3670 * valops.c (value_ind): Likewise.
3671 * value.c (coerce_ref): Likewise.
3673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3675 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3676 value and retrieve the dynamic type size.
3678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3680 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3681 passed to sizeof is dynamic evaluate the argument to compute the length.
3683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3684 Joel Brobecker <brobecker@adacore.com>
3686 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3687 (dwarf2_evaluate_property): New function.
3688 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3689 * dwarf2read.c (attr_to_dynamic_prop): New function.
3690 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3692 * gdbtypes.c: Include dwarf2loc.h.
3693 (is_dynamic_type): New function.
3694 (resolve_dynamic_type): New function.
3695 (resolve_dynamic_bounds): New function.
3696 (get_type_length): New function.
3697 (check_typedef): Use get_type_length to compute type length.
3698 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3699 (TYPE_LOW_BOUND_KIND): New macro.
3700 (is_dynamic_type): New function prototype.
3701 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3702 to resolve dynamic properties of the type. Update comment.
3703 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3705 2014-04-14 Richard Henderson <rth@redhat.com>
3707 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3709 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3710 Doug Evans <xdje42@gmail.com>
3712 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3713 dereference TYPE_CODE_REF values.
3715 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3717 Revert the following changes due to regressions:
3719 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3720 (dwarf2_evaluate_property): New function.
3721 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3722 * dwarf2read.c (attr_to_dynamic_prop): New function.
3723 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3725 * gdbtypes.c: Include dwarf2loc.h.
3726 (is_dynamic_type): New function.
3727 (resolve_dynamic_type): New function.
3728 (resolve_dynamic_bounds): New function.
3729 (get_type_length): New function.
3730 (check_typedef): Use get_type_length to compute type length.
3731 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3732 (TYPE_LOW_BOUND_KIND): New macro.
3733 (is_dynamic_type): New function prototype.
3734 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3735 to resolve dynamic properties of the type. Update comment.
3736 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3738 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3739 passed to sizeof is dynamic evaluate the argument to compute the length.
3741 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3742 value and retrieve the dynamic type size.
3744 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3745 (ada_template_to_fixed_record_type_1): Likewise.
3746 (ada_to_fixed_type_1): Likewise.
3747 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3748 (cp_print_value): Likewise.
3749 * d-valprint.c (dynamic_array_type): Likewise.
3750 * eval.c (evaluate_subexp_with_coercion): Likewise.
3751 * findvar.c (address_of_variable): Likewise.
3752 * jv-valprint.c (java_value_print): Likewise.
3753 * valops.c (value_ind): Likewise.
3754 * value.c (coerce_ref): Likewise.
3756 * c-typeprint.c (c_type_print_varspec_suffix): Added
3757 check for not yet resolved high bound. If unresolved, print
3758 "variable length" string to the console instead of random
3761 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3762 property and store it as the high bound and flag the range accordingly.
3763 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3764 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3765 * gdbtypes.h (enum range_flags): New enum.
3766 (struct range_bounds): Add flags member.
3768 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3769 points to a constant blob.
3771 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3772 (evaluate_subexp_standard): Pass noside argument.
3773 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3774 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3775 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3776 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3777 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3779 2014-04-11 Keith Seitz <keiths@redhat.com>
3782 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3783 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3786 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3788 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3789 (evaluate_subexp_standard): Pass noside argument.
3790 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3791 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3792 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3793 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3794 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3796 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3798 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3799 points to a constant blob.
3801 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3803 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3804 property and store it as the high bound and flag the range accordingly.
3805 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3806 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3807 * gdbtypes.h (enum range_flags): New enum.
3808 (struct range_bounds): Add flags member.
3810 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3812 * c-typeprint.c (c_type_print_varspec_suffix): Added
3813 check for not yet resolved high bound. If unresolved, print
3814 "variable length" string to the console instead of random
3817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3819 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3820 (ada_template_to_fixed_record_type_1): Likewise.
3821 (ada_to_fixed_type_1): Likewise.
3822 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3823 (cp_print_value): Likewise.
3824 * d-valprint.c (dynamic_array_type): Likewise.
3825 * eval.c (evaluate_subexp_with_coercion): Likewise.
3826 * findvar.c (address_of_variable): Likewise.
3827 * jv-valprint.c (java_value_print): Likewise.
3828 * valops.c (value_ind): Likewise.
3829 * value.c (coerce_ref): Likewise.
3831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3833 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3834 value and retrieve the dynamic type size.
3836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3838 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3839 passed to sizeof is dynamic evaluate the argument to compute the length.
3841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3843 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3844 (dwarf2_evaluate_property): New function.
3845 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3846 * dwarf2read.c (attr_to_dynamic_prop): New function.
3847 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3849 * gdbtypes.c: Include dwarf2loc.h.
3850 (is_dynamic_type): New function.
3851 (resolve_dynamic_type): New function.
3852 (resolve_dynamic_bounds): New function.
3853 (get_type_length): New function.
3854 (check_typedef): Use get_type_length to compute type length.
3855 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3856 (TYPE_LOW_BOUND_KIND): New macro.
3857 (is_dynamic_type): New function prototype.
3858 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3859 to resolve dynamic properties of the type. Update comment.
3860 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3862 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3864 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3865 declaring high/low bounds and change uses accordingly. Call
3866 create_range_type instead of create_static_range_type.
3867 * gdbtypes.c (create_range_type): New function.
3868 (create_range_type): Convert bounds into struct bound_prop and pass
3869 them to create_range_type.
3870 * gdbtypes.h (struct bound_prop): New struct.
3871 (create_range_type): New function prototype.
3872 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3873 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3874 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3876 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3878 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3880 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3881 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3882 * ada-lang.c: All uses of create_range_type updated.
3883 * coffread.c: All uses of create_range_type updated.
3884 * dwarf2read.c: All uses of create_range_type updated.
3885 * f-exp.y: All uses of create_range_type updated.
3886 * m2-valprint.c: All uses of create_range_type updated.
3887 * mdebugread.c: All uses of create_range_type updated.
3888 * stabsread.c: All uses of create_range_type updated.
3889 * valops.c: All uses of create_range_type updated.
3890 * valprint.c: All uses of create_range_type updated.
3892 2014-04-10 Pedro Alves <palves@redhat.com>
3894 * breakpoint.c (single_step_breakpoints)
3895 (single_step_gdbarch): Move up in the file.
3896 (one_breakpoint_xfer_memory): New function, factored out from ...
3897 (breakpoint_xfer_memory): ... here. Also process single-step
3900 2014-04-09 Tristan Gingold <gingold@adacore.com>
3902 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3904 (darwin_decode_exception_message): Free port only after use.
3906 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3908 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3909 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3910 when setting the size of call_length.
3912 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3914 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3915 dereference TYPE_CODE_REF values.
3917 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3919 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3920 end of warning message.
3922 2014-04-03 Doug Evans <dje@google.com>
3924 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3925 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3927 2014-04-02 Alan Modra <amodra@gmail.com>
3929 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3930 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3931 (struct symbol_file_add_from_memory_args): Add size field.
3932 (find_vdso_size): New function.
3933 (add_vsyscall_page): Attempt to find vdso size.
3935 2014-04-01 Doug Evans <dje@google.com>
3937 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3939 2014-04-01 Tristan Gingold <gingold@adacore.com>
3941 * darwin-nat.c (darwin_encode_reply): Add prototype.
3942 (darwin_decode_exception_message): Reply to unknown inferiors.
3943 (darwin_decode_message): Handle message by id. Ignore message
3944 to unknown inferior.
3945 (darwin_wait): Discard unknown messages, add debug trace.
3947 2014-03-31 Doug Evans <dje@google.com>
3949 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3952 2014-03-31 Doug Evans <dje@google.com>
3954 New option "set print symbol-loading".
3956 * solib.c (solib_read_symbols): Only print symbol loading messages
3958 (solib_add): If symbol loading is in "brief" mode, notify user
3959 symbols are being loaded.
3960 (reload_shared_libraries_1): Ditto.
3961 * symfile.c (print_symbol_loading_off): New static global.
3962 (print_symbol_loading_brief): New static global.
3963 (print_symbol_loading_full): New static global.
3964 (print_symbol_loading_enums): New static global.
3965 (print_symbol_loading): New static global.
3966 (print_symbol_loading_p): New function.
3967 (symbol_file_add_with_addrs): Only print symbol loading messages
3969 (_initialize_symfile): Register "print symbol-loading" set/show
3971 * symfile.h (print_symbol_loading_p): Declare.
3973 2014-03-30 Doug Evans <xdje42@gmail.com>
3975 * infrun.c (set_last_target_status): New function.
3976 (handle_inferior_event): Call it.
3978 2014-03-30 Doug Evans <xdje42@gmail.com>
3980 * inferior.h (enum stop_kind): Improve comment.
3982 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3984 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3985 a reference, strip the reference layer before calling
3986 the lang_ops value_has_mutated callback.
3988 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3990 Remove some globals from our parser.
3991 * language.c (unk_lang_parser): Add "struct parser_state"
3993 * language.h (struct language_defn) <la_parser>: Likewise.
3994 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3995 (initialize_expout): Add "struct parser_state" argument.
3996 Rewrite function to use the parser state.
3997 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3998 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3999 write_exp_elt_longcst, write_exp_elt_dblcst,
4000 write_exp_elt_decfloatcst, write_exp_elt_type,
4001 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4002 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4003 write_dollar_variable): Likewise.
4004 (parse_exp_in_context_1): Use parser state.
4005 (insert_type_address_space): Add "struct parser_state" argument.
4007 (increase_expout_size): New function.
4008 * parser-defs.h: Forward declare "struct language_defn" and
4009 "struct parser_state".
4010 (expout, expout_size, expout_ptr): Remove extern declarations.
4011 (parse_gdbarch, parse_language): Rewrite macro declarations to
4012 accept the parser state.
4013 (struct parser_state): New struct.
4014 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4015 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4016 write_exp_elt_decfloatcst, write_exp_elt_type,
4017 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4018 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4019 write_exp_msymbol, write_dollar_variable,
4020 mark_struct_expression, insert_type_address_space): Add "struct
4021 parser_state" argument.
4022 (increase_expout_size): New function.
4023 * utils.c (do_clear_parser_state): New function.
4024 (make_cleanup_clear_parser_state): Likewise.
4025 * utils.h (make_cleanup_clear_parser_state): New function
4027 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4028 Update calls to write_exp* in order to pass the parser state.
4029 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4030 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4031 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4032 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4033 * stap-probe.c (stap_parse_register_operand): Likewise.
4034 (stap_parse_single_operand): Likewise.
4035 (stap_parse_argument_1): Likewise.
4036 (stap_parse_argument): Use parser state.
4037 * stap-probe.h: Include "parser-defs.h".
4038 (struct stap_parse_info) <pstate>: New field.
4039 * c-exp.y (parse_type): Rewrite to use parser state.
4040 (yyparse): Redefine to c_parse_internal.
4041 (pstate): New global variable.
4042 (parse_number): Add "struct parser_state" argument.
4043 (write_destructor_name): Likewise.
4044 (type_exp): Update calls to write_exp* and similars in order to
4046 (exp1, exp, variable, qualified_name, space_identifier,
4047 typename, typebase): Likewise.
4048 (write_destructor_name, parse_number, lex_one_token,
4049 classify_name, classify_inner_name, c_parse): Add "struct
4050 parser_state" argument. Update function to use parser state.
4051 * c-lang.h: Forward declare "struct parser_state".
4052 (c_parse): Add "struct parser_state" argument.
4053 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4054 (yyparse): Redefine macro to ada_parse_internal.
4055 (pstate): New variable.
4056 (write_int, write_object_renaming, write_var_or_type,
4057 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4058 type_int, type_long, type_long_long, type_float, type_double,
4059 type_long_double, type_char, type_boolean, type_system_address):
4060 Add "struct parser_state" argument.
4061 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4062 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4063 var_or_type, aggregate, aggregate_component_list,
4064 positional_list, others, component_group,
4065 component_associations): Update calls to write_exp* and similar
4066 functions in order to use parser state.
4067 (ada_parse, write_var_from_sym, write_int,
4068 write_exp_op_with_string, write_object_renaming,
4069 find_primitive_type, write_selectors, write_ambiguous_var,
4070 write_var_or_type, write_name_assoc, type_int, type_long,
4071 type_long_long, type_float, type_double, type_long_double,
4072 type_char, type_boolean, type_system_address): Add "struct
4073 parser_state" argument. Adjust function to use parser state.
4074 * ada-lang.c (parse): Likewise.
4075 * ada-lang.h: Forward declare "struct parser_state".
4076 (ada_parse): Add "struct parser_state" argument.
4077 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4078 calls to both functions.
4079 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4081 (yyparse): Redefine macro to f_parse_internal.
4082 (pstate): New variable.
4083 (parse_number): Add "struct parser_state" argument.
4084 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4085 and similars in order to use parser state.
4086 (parse_number): Adjust code to use parser state.
4088 (f_parse): New function.
4089 * f-lang.h: Forward declare "struct parser_state".
4090 (f_parse): Add "struct parser_state" argument.
4091 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4093 (yyparse): Redefine macro for java_parse_internal.
4094 (pstate): New variable.
4095 (push_expression_name, push_expression_name, insert_exp): Add
4096 "struct parser_state" argument.
4097 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4098 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4099 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4100 PostIncrementExpression, PostDecrementExpression,
4101 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4102 UnaryExpressionNotPlusMinus, CastExpression,
4103 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4104 RelationalExpression, EqualityExpression, AndExpression,
4105 ExclusiveOrExpression, InclusiveOrExpression,
4106 ConditionalAndExpression, ConditionalOrExpression,
4107 ConditionalExpression, Assignment, LeftHandSide): Update
4108 calls to write_exp* and similars in order to use parser state.
4109 (parse_number): Ajust code to use parser state.
4111 (java_parse): New function.
4112 (push_variable): Add "struct parser_state" argument. Adjust
4113 code to user parser state.
4114 (push_fieldnames, push_qualified_expression_name,
4115 push_expression_name, insert_exp): Likewise.
4116 * jv-lang.h: Forward declare "struct parser_state".
4117 (java_parse): Add "struct parser_state" argument.
4118 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4120 (yyparse): Redefine macro to m2_parse_internal.
4121 (pstate): New variable.
4122 (type_exp, exp, fblock, variable, type): Update calls to
4123 write_exp* and similars to use parser state.
4125 (m2_parse): New function.
4126 * m2-lang.h: Forward declare "struct parser_state".
4127 (m2_parse): Add "struct parser_state" argument.
4128 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4129 * objc-lang.h: Forward declare "struct parser_state".
4130 (end_msglist): Add "struct parser_state" argument.
4131 * p-exp.y (parse_type): Rewrite macro to use parser state.
4132 (yyparse): Redefine macro to pascal_parse_internal.
4133 (pstate): New variable.
4134 (parse_number): Add "struct parser_state" argument.
4135 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4136 write_exp* and similars in order to use parser state.
4137 (parse_number, yylex): Adjust code to use parser state.
4138 (pascal_parse): New function.
4139 * p-lang.h: Forward declare "struct parser_state".
4140 (pascal_parse): Add "struct parser_state" argument.
4141 * go-exp.y (parse_type): Rewrite macro to use parser state.
4142 (yyparse): Redefine macro to go_parse_internal.
4143 (pstate): New variable.
4144 (parse_number): Add "struct parser_state" argument.
4145 (type_exp, exp1, exp, variable, type): Update calls to
4146 write_exp* and similars in order to use parser state.
4147 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4148 to use parser state.
4149 (go_parse): Likewise.
4150 * go-lang.h: Forward declare "struct parser_state".
4151 (go_parse): Add "struct parser_state" argument.
4153 2014-03-27 Doug Evans <dje@google.com>
4155 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4157 2014-03-27 Doug Evans <dje@google.com>
4159 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4160 Remove argument abbrev_section. All callers updated.
4162 2014-03-27 Doug Evans <dje@google.com>
4164 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4165 addr_base, ranges_base.
4167 2014-03-26 Keith Seitz <keiths@redhat.com>
4169 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4170 types, not VAR_DOMAIN.
4172 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4174 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4176 * features/nios2-linux.c: Regenerated.
4177 * features/nios2.c: Regenerated.
4179 2014-03-25 Pedro Alves <palves@redhat.com>
4181 * cli/cli-script.c (script_from_file): Force the interpreter to
4184 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4186 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4187 small stack allocation.
4189 2014-03-24 Tristan Gingold <gingold@adacore.com>
4191 * darwin-nat.c (exc_server): Remove unused prototype.
4192 (darwin_dump_message): Correctly display data on x86_64.
4193 (darwin_encode_reply): Fix style.
4194 Add comments and fix indentation.
4196 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4198 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4200 2014-03-22 Doug Evans <xdje42@gmail.com>
4202 * infcmd.c: Whitespace fixes.
4203 (interrupt_command): Merge two function comments into one.
4205 2014-03-22 Doug Evans <xdje42@gmail.com>
4207 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4210 2014-03-22 Yao Qi <yao@codesourcery.com>
4212 * remote.c (target_read_live_memory): Remove.
4213 (memory_xfer_live_readonly_partial): Rename it to
4214 remote_xfer_live_readonly_partial. Remove argument 'object'.
4215 All callers updated. Call remote_read_bytes_1
4216 instead of target_read_live_memory.
4217 * tracepoint.c (set_traceframe_number): Remove.
4218 (make_cleanup_restore_traceframe_number): Likewise .
4219 * tracepoint.h (set_traceframe_number): Remove declaration.
4220 (make_cleanup_restore_traceframe_number): Likewise.
4222 2014-03-22 Yao Qi <yao@codesourcery.com>
4224 * remote.c (remote_read_bytes): Move code on reading from the
4226 (remote_read_bytes_1): ... here. New function.
4228 2014-03-22 Yao Qi <yao@codesourcery.com>
4230 * ctf.c (ctf_xfer_partial): Check the return value of
4231 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4232 return TARGET_XFER_UNAVAILABLE.
4233 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4234 * target.c (target_read_live_memory): Move it to remote.c.
4235 (memory_xfer_live_readonly_partial): Likewise.
4236 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4237 * remote.c (target_read_live_memory): Moved from target.c.
4238 (memory_xfer_live_readonly_partial): Likewise.
4239 (remote_read_bytes): Factored out from
4240 memory_xfer_partial_1.
4242 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4244 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4247 2014-03-21 Pedro Alves <palves@redhat.com>
4249 * infrun.c (normal_stop): Extend comment.
4251 2014-03-21 Hui Zhu <hui@codesourcery.com>
4252 Pedro Alves <palves@redhat.com>
4254 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4256 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4257 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4258 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4260 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4262 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4263 `z' formatted output modifier.
4265 2014-03-20 Tom Tromey <tromey@redhat.com>
4266 Sergio Durigan Junior <sergiodj@redhat.com>
4268 * probe.c (parse_probes): Turn assert into an ordinary error.
4269 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4270 exceptions when parsing probes. Rearrange the code for clarity.
4272 2014-03-20 Tom Tromey <tromey@redhat.com>
4275 * top.c (execute_command): Only dispatch events if the command
4278 2014-03-20 Tom Tromey <tromey@redhat.com>
4281 * infcall.c: Include event-top.h.
4282 (run_inferior_call): Call async_disable_stdin if needed.
4284 2014-03-20 Pedro Alves <palves@redhat.com>
4286 * infrun.c (prepare_to_proceed): Delete.
4287 (thread_still_needs_step_over): New function.
4288 (find_thread_needs_step_over): New function.
4289 (proceed): If the current thread needs a step-over, set its
4290 steping_over_breakpoint flag. Adjust to use
4291 find_thread_needs_step_over instead of prepare_to_proceed.
4292 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4293 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4295 (switch_back_to_stepped_thread): Step over breakpoints of all
4296 threads not the stepping thread, before switching back to the
4299 2014-03-20 Pedro Alves <palves@redhat.com>
4301 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4303 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4304 * infrun.c (saved_singlestep_ptid)
4305 (stepping_past_singlestep_breakpoint): Delete.
4306 (resume): Remove stepping_past_singlestep_breakpoint handling.
4307 (proceed): Store the prev_pc of the stepping thread too.
4308 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4310 (enum infwait_states): Delete infwait_thread_hop_state.
4311 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4313 (handle_inferior_event): Adjust.
4314 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4315 handling and the thread-hop code. Before removing single-step
4316 breakpoints, check whether the thread hit a single-step breakpoint
4317 of another thread. If it did, the trap is not a random signal.
4318 (switch_back_to_stepped_thread): If the event thread hit a
4319 single-step breakpoint, unblock it before switching to the
4320 stepping thread. Handle the case of the stepped thread having
4322 (keep_going): Handle the case of the current thread moving past a
4323 single-step breakpoint.
4325 2014-03-20 Pedro Alves <palves@redhat.com>
4328 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4329 are being stepped over.
4330 (breakpoint_address_match): Make extern.
4331 * breakpoint.h (breakpoint_address_match): New declaration.
4332 * inferior.h (stepping_past_instruction_at): New declaration.
4333 * infrun.c (struct step_over_info): New type.
4334 (step_over_info): New global.
4335 (set_step_over_info, clear_step_over_info)
4336 (stepping_past_instruction_at): New functions.
4337 (handle_inferior_event): Clear the step-over info when
4338 trap_expected is cleared.
4339 (resume): Remove now stale comment.
4340 (clear_proceed_status): Clear step-over info.
4341 (proceed): Adjust step-over handling to set or clear the step-over
4342 info instead of removing all breakpoints.
4343 (handle_signal_stop): When setting up a thread-hop, don't remove
4345 (stop_stepping): Clear step-over info.
4346 (keep_going): Adjust step-over handling to set or clear step-over
4347 info and then always inserting breakpoints, instead of removing
4348 all breakpoints when stepping over one.
4350 2014-03-20 Pedro Alves <palves@redhat.com>
4352 * infrun.c (previous_inferior_ptid): Adjust comment.
4353 (deferred_step_ptid): Delete.
4354 (infrun_thread_ptid_changed, prepare_to_proceed)
4355 (init_wait_for_inferior): Adjust.
4356 (handle_signal_stop): Delete deferred_step_ptid handling.
4358 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4361 * defs.h (sync_quit_force_run): New declaration.
4362 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4363 * event-top.c (async_sigterm_handler): New declaration.
4364 (async_sigterm_token): New variable.
4365 (async_init_signals): Create also async_sigterm_token.
4366 (async_sigterm_handler): New function.
4367 (sync_quit_force_run): New variable.
4368 (handle_sigterm): Replace quit_force call by other calls.
4369 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4371 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4373 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4374 offset into SPE pseudo registers.
4376 2014-03-18 Pedro Alves <palves@redhat.com>
4379 * inferior.h (print_stop_event): Declare.
4380 * infrun.c (print_stop_event): New, factored out from ...
4381 (normal_stop): ... this.
4382 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4383 of bpstat_print/print_stack_frame.
4385 2014-03-17 Tom Tromey <tromey@redhat.com>
4387 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4389 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4391 * ada-lang.c (decode_constrained_packed_array): Perform a
4392 minimal coercion for reference with coerce_ref instead of
4395 2014-03-17 Tristan Gingold <gingold@adacore.com>
4397 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4398 (darwin_solib_create_inferior_hook): Emit a warning if version
4401 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4403 * python/py-value.c (get_field_flag): Cast flag_name argument to
4404 PyObject_GetAttrString to support Python 2.4.
4406 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4408 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4409 (Global Maintainers): Remove Jan Kratochvil.
4411 2014-03-14 Pedro Alves <palves@redhat.com>
4413 * inferior.h (terminal_ours_for_output): Rename to ...
4414 (child_terminal_ours_for_output): ... this.
4415 (terminal_save_ours): Rename to ...
4416 (child_terminal_save_ours): ... this.
4417 (terminal_ours): Rename to ...
4418 (child_terminal_ours): ... this.
4419 (terminal_inferior): Rename to ...
4420 (child_terminal_inferior): ... this.
4421 (terminal_init_inferior): Rename to ...
4422 (child_terminal_init_inferior): ... this.
4423 (terminal_init_inferior_with_pgrp): Rename to ...
4424 (child_terminal_init_inferior_with_pgrp): ... this.
4425 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4426 (child_terminal_init_with_pgrp): ... this.
4427 (terminal_save_ours): Rename to ...
4428 (child_terminal_save_ours): ... this.
4429 (terminal_init_inferior): Rename to ...
4430 (child_terminal_init): ... this. Adjust.
4431 (terminal_inferior): Rename to ...
4432 (child_terminal_inferior): ... this.
4433 (terminal_ours_for_output): Rename to ...
4434 (child_terminal_ours_for_output): ... this. Adjust.
4435 (terminal_ours): Rename to ...
4436 (child_terminal_ours): ... this.
4437 (terminal_ours_1): Rename to ...
4438 (child_terminal_ours_1): ... this. Adjust.
4439 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4440 * windows-nat.c (do_initial_windows_stuff): Adjust.
4441 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4442 (gnu_terminal_init): ... this. Adjust.
4443 (gnu_target): Adjust.
4444 * inf-child.c (inf_child_target): Adjust.
4446 2014-03-13 Doug Evans <xdje42@gmail.com>
4449 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4452 2014-03-13 Doug Evans <xdje42@gmail.com>
4454 * value.c (record_latest_value): Call release_value_or_incref
4455 instead of release_value.
4457 2014-03-13 Pedro Alves <palves@redhat.com>
4459 * procfs.c (procfs_target): Don't override to_shortname,
4460 to_longname or to_doc.
4462 2014-03-13 Pedro Alves <palves@redhat.com>
4464 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4465 Unix in user visible strings.
4467 2014-03-12 Stan Shebs <stan@codesourcery.com>
4469 * gdbtypes.h: Annotate comments for Doxygen, add a page
4470 block comment with some general info.
4472 2014-03-12 Pedro Alves <palves@redhat.com>
4474 * infcmd.c (prepare_execution_command): New function, factored out
4475 from several execution commands.
4476 (run_command_1, continue_command, step_1, jump_command)
4477 (signal_command, until_command, advance_command, finish_command)
4478 (attach_command): Use prepare_execution_command.
4480 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4482 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4485 (struct arm_linux_thread_points): Removed.
4486 (struct arm_linux_process_info): New.
4487 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4488 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4489 (arm_linux_find_breakpoints_by_tid): Removed.
4490 (struct arch_lwp_info): New.
4491 (arm_linux_find_process_pid): New functions.
4492 (arm_linux_add_process): New functions.
4493 (arm_linux_process_info_get): New functions.
4494 (arm_linux_forget_process): New function.
4495 (arm_linux_get_debug_reg_state): New function.
4496 (struct update_registers_data): New.
4497 (update_registers_callback): New function.
4498 (arm_linux_insert_hw_breakpoint1): Updated.
4499 (arm_linux_remove_hw_breakpoint1): Updated.
4500 (arm_linux_insert_hw_breakpoint): Updated.
4501 (arm_linux_remove_hw_breakpoint): Updated.
4502 (arm_linux_insert_watchpoint): Updated.
4503 (arm_linux_remove_watchpoint): Updated.
4504 (arm_linux_new_thread): Updated.
4505 (arm_linux_prepare_to_resume): New function.
4506 (arm_linux_new_fork): New function.
4507 (_initialize_arm_linux_nat): Updated.
4509 2014-03-12 Pedro Alves <palves@redhat.com>
4511 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4513 2014-03-12 Tom Tromey <tromey@redhat.com>
4515 * inf-child.c (return_zero): New function.
4516 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4517 * aix-thread.c (aix_thread_inferior_created): New function.
4518 (aix_thread_attach): Remove.
4519 (init_aix_thread_ops): Don't set to_attach.
4520 (_initialize_aix_thread): Register inferior_created observer.
4521 * corelow.c (init_core_ops): Don't set to_attach or
4523 * exec.c (init_exec_ops): Don't set to_attach or
4525 * infcmd.c (run_command_1): Use find_run_target. Make direct
4527 (attach_command): Use find_attach_target. Make direct target
4529 * record-btrace.c (init_record_btrace_ops): Don't set
4531 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4533 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4534 set to_create_inferior.
4535 * target.c (complete_target_initialization): Add assertion.
4536 (target_create_inferior): Remove.
4537 (find_default_attach, find_default_create_inferior): Remove.
4538 (find_attach_target, find_run_target): New functions.
4539 (find_default_is_async_p, find_default_can_async_p)
4540 (target_supports_non_stop, target_attach): Remove.
4541 (init_dummy_target): Don't set to_create_inferior or
4542 to_supports_non_stop.
4543 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4544 TARGET_DEFAULT_FUNC.
4545 <to_create_inferior>: Add comment.
4546 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4547 TARGET_DEFAULT_RETURN.
4548 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4549 (find_attach_target, find_run_target): Declare.
4550 (target_create_inferior): Remove.
4551 (target_has_execution_1): Update comment.
4552 (target_supports_non_stop): Remove.
4553 * target-delegates.c: Rebuild.
4555 2014-03-12 Pedro Alves <palves@redhat.com>
4557 * inf-child.h: Update comment to not mention Unix.
4559 2014-03-12 Pedro Alves <palves@redhat.com>
4561 * inf-child.c: Update top comment to not mention Unix. Add
4562 generic comment describing how this target is meant to be used.
4563 (inf_child_post_attach, inf_child_post_startup_inferior)
4564 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4567 2014-03-12 Pedro Alves <palves@redhat.com>
4569 * nto-procfs.c: Include inf-child.h.
4570 (procfs_ops): Delete global.
4571 (procfs_can_run): Delete method.
4572 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4573 target pointer instead of referencing procfs_ops.
4574 (procfs_prepare_to_store): Delete.
4575 (init_procfs_ops): Delete function.
4576 (procfs_target): New function, based on init_procfs_ops, but
4577 inherit inf_child_target.
4578 (_initialize_procfs): Use procfs_target.
4580 2014-03-12 Pedro Alves <palves@redhat.com>
4582 * windows-nat.c: Include inf-child.h.
4583 (windows_ops): Delete global.
4584 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4586 (init_windows_ops): Delete function.
4587 (windows_target): New function, based on init_windows_ops, but
4588 inherit inf_child_target.
4589 (_initialize_windows_nat): Use windows_target. Install x86
4590 specific target methods here.
4592 2014-03-10 Doug Evans <xdje42@gmail.com>
4594 * guile/guile.c (call_initialize_gdb_module): New function.
4595 (initialize_guile): Replace call to scm_init_guile with call to
4598 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4600 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4601 in call to TYPE_CODE macro.
4603 2014-03-10 Jerome Guitton <guitton@adacore.com>
4605 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4606 Resolve tagged types to full view.
4608 2014-03-10 Hui Zhu <hui@codesourcery.com>
4610 * target.h (target_insert_breakpoint): Remove "hardware" from its
4613 2014-03-07 Doug Evans <dje@google.com>
4615 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4617 2014-03-07 Doug Evans <dje@google.com>
4619 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4620 Remove unused local comp_dir_attr. Assert exactly one of
4621 stub_comp_unit_die, stub_comp_dir is non-NULL.
4623 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4625 * target.h (complete_target_initialization, add_target):
4628 2014-03-07 Pedro Alves <palves@redhat.com>
4630 * go32-nat.c: Include inf-child.h.
4631 (go32_ops): Delete global.
4632 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4634 (go32_create_inferior): Push the passed in target pointer instead
4635 of referencing go32_ops.
4636 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4637 (go32_target): New function, based on init_go32_ops, but inherit
4639 (_initialize_go32_nat): Use go32_target. Move parts of
4642 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4644 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4645 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4646 SYMBOL_VALUE_ADDRESS.
4647 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4649 2014-03-06 Yao Qi <yao@codesourcery.com>
4651 * breakpoint.c (get_tracepoint_by_number): Remove argument
4652 optional_p. All callers updated. Adjust comments. Update
4654 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4656 2014-03-06 Yao Qi <yao@codesourcery.com>
4658 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4659 early if get_number returns zero. Use 'p' instead of 'args'.
4661 2014-03-06 Yao Qi <yao@codesourcery.com>
4663 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4666 2014-03-06 Yao Qi <yao@codesourcery.com>
4668 PR breakpoints/16508
4669 * tracepoint.c (check_trace_running): New function.
4670 (trace_find_command): Move code to check_trace_running and
4671 call check_trace_running.
4672 (trace_find_pc_command): Likewise.
4673 (trace_find_tracepoint_command): Likewise.
4674 (trace_find_line_command): Likewise.
4675 (trace_find_range_command): Likewise.
4676 * tracepoint.h (check_trace_running): Likewise.
4677 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4679 2014-03-06 Yao Qi <yao@codesourcery.com>
4681 * target.h (struct target_ops) <to_traceframe_info>: Use
4682 TARGET_DEFAULT_NORETURN (tcomplain ()).
4683 * target-delegates.c: Regenerated.
4685 2014-03-05 Pedro Alves <palves@redhat.com>
4688 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4689 void. Update comment.
4690 (dcache_xfer_memory): Delete.
4691 (dcache_read_memory_partial): New, based on the read bits of
4693 (dcache_update): Add status parameter. Use ULONGEST for len, and
4694 adjust. Discard cache lines if the reason for the update was
4696 * dcache.h (dcache_xfer_memory): Delete declaration.
4697 (dcache_read_memory_partial): New declaration.
4698 (dcache_update): Update prototype.
4699 * target.c (raw_memory_xfer_partial): Update the dcache here.
4700 (memory_xfer_partial_1): Don't handle dcache writes here.
4702 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4704 * remote-sim.c (gdbsim_load): Add const to prog.
4706 2014-03-03 Tom Tromey <tromey@redhat.com>
4708 * elfread.c (probe_key): Change to bfd_data.
4709 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4710 now per-BFD, not per-objfile.
4711 * stap-probe.c (stap_probe_destroy): Update comment.
4712 (handle_stap_probe): Allocate on the per-BFD obstack.
4714 2014-03-03 Tom Tromey <tromey@redhat.com>
4716 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4717 * breakpoint.c (create_longjmp_master_breakpoint): Use
4719 (add_location_to_breakpoint, bkpt_probe_insert_location)
4720 (bkpt_probe_remove_location): Update.
4721 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4722 * elfread.c (elf_symfile_relocate_probe): Remove.
4723 (elf_probe_fns): Update.
4724 (insert_exception_resume_breakpoint): Change type of "probe"
4725 parameter to bound_probe.
4726 (check_exception_resume): Update.
4727 * objfiles.c (objfile_relocate1): Don't relocate probes.
4728 * probe.c (bound_probe_s): New typedef.
4729 (parse_probes): Use get_probe_address. Set sal's objfile.
4730 (find_probe_by_pc): Return a bound_probe.
4731 (collect_probes): Return a VEC(bound_probe_s).
4732 (compare_probes): Update.
4733 (gen_ui_out_table_header_info): Change type of "probes"
4735 (info_probes_for_ops): Update.
4736 (get_probe_address): New function.
4737 (probe_safe_evaluate_at_pc): Update.
4738 * probe.h (struct probe_ops) <get_probe_address>: New field.
4739 <set_semaphore, clear_semaphore>: Add objfile parameter.
4740 (struct probe) <objfile>: Remove field.
4742 <address>: Update comment.
4743 (struct bound_probe): New.
4744 (find_probe_by_pc): Return a bound_probe.
4745 (get_probe_address): Declare.
4746 * solib-svr4.c (struct probe_and_action) <address>: New field.
4747 (hash_probe_and_action, equal_probe_and_action): Update.
4748 (register_solib_event_probe): Add address parameter.
4749 (solib_event_probe_at): Update.
4750 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4752 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4753 (stap_get_probe_address): New function.
4754 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4755 (compile_probe_arg): Update.
4756 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4758 (handle_stap_probe): Don't relocate the probe.
4759 (stap_relocate): Remove.
4760 (stap_gen_info_probes_table_values): Update.
4761 (stap_probe_ops): Remove stap_relocate.
4762 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4763 (debug_sym_probe_fns): Update.
4764 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4765 * symtab.c (init_sal): Use memset.
4766 * symtab.h (struct symtab_and_line) <objfile>: New field.
4767 * tracepoint.c (start_tracing, stop_tracing): Update.
4769 2014-03-03 Tom Tromey <tromey@redhat.com>
4771 * probe.h (parse_probes, find_probe_by_pc)
4772 (find_probes_in_objfile): Fix comments.
4774 2014-03-02 Doug Evans <xdje42@gmail.com>
4776 * infrun.c (handle_signal_stop): Replace test for
4777 TARGET_WAITKIND_STOPPED with an assert.
4779 2014-03-02 Doug Evans <xdje42@gmail.com>
4781 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4783 2014-03-02 Doug Evans <xdje42@gmail.com>
4785 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4787 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4789 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4791 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4793 * i386obsd-nat.c: Include "obsd-nat.h".
4794 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4796 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4798 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4800 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4802 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4804 * mips64obsd-nat.c: Include "obsd-nath".
4805 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4807 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4809 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4811 * amd64obsd-nat.c: Include "obsd-nat,h.
4812 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4814 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4816 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4818 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4819 (find_overload_match): Update call to find_oload_champ.
4820 (find_oload_champ_namespace_loop): Likewise
4822 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4824 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4826 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4827 * config/sparc/obsd64.mh: New file.
4828 * sparc64obsd-nat.c: New file.
4830 * obsd-nat.h: New file.
4831 * obsd-nat.c: New file.
4832 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4833 (ALLDEPFILES): Add obsd-nat.c.
4835 2014-02-28 Tom Tromey <tromey@redhat.com>
4837 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4838 * cli-out.h (cli_ui_out_impl): Now const.
4839 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4840 * ui-out.c (struct ui_out) <impl>: Now const.
4841 (default_ui_out_impl): Now const.
4842 (ui_out_new): Make 'impl' parameter const.
4843 * ui-out.h (ui_out_new): Update.
4845 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4847 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4849 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4851 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4853 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4855 Additional PR 8882 fix.
4856 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4858 2014-02-27 Pedro Alves <palves@redhat.com>
4860 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4863 2014-02-27 Pedro Alves <palves@redhat.com>
4866 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4867 * nat/linux-waitpid.c: Include string.h.
4868 (status_to_str): Moved here and made extern.
4869 * nat/linux-waitpid.h (status_to_str): New declaration.
4871 2014-02-27 Hui Zhu <hui@codesourcery.com>
4874 * infrun.c (ptid_match): Move ...
4875 * common/ptid.c (ptid_match): ... here.
4876 * inferior.h (ptid_match): Move ...
4877 * common/ptid.h (ptid_match): ... here.
4879 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4881 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4882 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4885 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4887 * obsd-tdep.c (obsd_auxv_parse): New function.
4888 (obsd_init_abi): Set auxv_parse.
4890 * gdbarch.sh (auxv_parse): New.
4891 * gdbarch.h: Regenerated.
4892 * gdbarch.c: Regenerated.
4893 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4895 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4897 * guile/scm-value.c (gdbscm_history_append_x): New function.
4898 (value_functions): Add it.
4900 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4902 * dwarf2read.c (attr_value_as_address): New function.
4903 (dwarf2_find_base_address, read_call_site_scope): Use
4904 attr_value_as_address in place of DW_ADDR.
4905 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4906 the low and high addresses. Slight rework of the handling
4907 of the high pc being a constant form, and limit it to
4908 DWARF verson 4 or higher.
4909 (dwarf2_record_block_ranges): Likewise.
4910 (read_partial_die): Likewise.
4911 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4913 2014-02-26 Tom Tromey <tromey@redhat.com>
4915 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4917 2014-02-26 Tom Tromey <tromey@redhat.com>
4919 * elfread.c (elf_read_minimal_symbols): Return early if
4920 minimal symbols have already been read. Add "ei" parameter.
4921 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4922 * minsyms.c (prim_record_minimal_symbol_full): Update.
4923 * objfiles.h (struct objstats) <n_minsyms>: Move...
4924 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4925 * symmisc.c (print_objfile_statistics): Update.
4927 2014-02-26 Tom Tromey <tromey@redhat.com>
4929 * elfread.c (elf_read_minimal_symbols): New function, from
4931 (elf_symfile_read): Call it.
4933 2014-02-26 Tom Tromey <tromey@redhat.com>
4935 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4936 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4937 (lookup_minimal_symbol_solib_trampoline)
4938 (lookup_minimal_symbol_by_pc_section_1)
4939 (lookup_minimal_symbol_and_objfile): Update.
4940 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4941 Don't allocate a minimal symbol if minsyms have already been read.
4942 (build_minimal_symbol_hash_tables): Update.
4943 (install_minimal_symbols): Do nothing if minsyms already read.
4944 Use the per-BFD obstack.
4945 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4946 * objfiles.c (allocate_objfile): Call
4947 terminate_minimal_symbol_table later.
4948 (have_minimal_symbols): Update.
4949 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4950 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4951 Move from struct objfile.
4952 <minsyms_read>: New field.
4953 (struct objfile) <msymbols, minimal_symbol_count,
4954 msymbol_hash, msymbol_demangled_hash>: Move.
4955 (ALL_OBJFILE_MSYMBOLS): Update.
4956 * symfile.c (read_symbols): Set minsyms_read.
4957 (reread_symbols): Update.
4958 * symmisc.c (dump_objfile, dump_msymbols): Update.
4960 2014-02-26 Tom Tromey <tromey@redhat.com>
4962 * minsyms.c (msymbols_sort): Remove.
4963 * minsyms.h (msymbols_sort): Remove.
4964 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4965 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4966 * elfread.c (elf_symtab_read): Don't add section offsets.
4967 * xcoffread.c (record_minimal_symbol): Don't add section offset
4968 to minimal symbol address.
4969 * somread.c (text_offset, data_offset): Remove.
4970 (som_symtab_read): Don't add section offsets to minimal symbol
4972 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4973 Don't add section offsets to minimal symbols.
4974 * coffread.c (coff_symtab_read): Don't add section offsets
4975 to minimal symbol addresses.
4976 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4977 to minimal symbol addresses.
4978 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4979 section offset to minimal symbol addresses.
4980 * mdebugread.c (parse_partial_symbols): Don't add section
4981 offset to minimal symbol addresses.
4982 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4983 offset to minimal symbol addresses.
4985 2014-02-26 Tom Tromey <tromey@redhat.com>
4987 * ada-lang.c (ada_main_name): Update.
4988 (ada_add_standard_exceptions): Update.
4989 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4990 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4991 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4992 * auxv.c (ld_so_xfer_auxv): Update.
4993 * avr-tdep.c (avr_scan_prologue): Update.
4994 * ax-gdb.c (gen_var_ref): Update.
4995 * blockframe.c (get_pc_function_start)
4996 (find_pc_partial_function_gnu_ifunc): Update.
4997 * breakpoint.c (create_overlay_event_breakpoint)
4998 (create_longjmp_master_breakpoint)
4999 (create_std_terminate_master_breakpoint)
5000 (create_exception_master_breakpoint): Update.
5001 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5002 * c-valprint.c (c_val_print): Update.
5003 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5004 * common/agent.c (agent_look_up_symbols): Update.
5005 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5006 * dwarf2loc.c (call_site_to_target_addr): Update.
5007 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5008 * elfread.c (elf_gnu_ifunc_record_cache)
5009 (elf_gnu_ifunc_resolve_by_got): Update.
5010 * findvar.c (default_read_var_value): Update.
5011 * frame.c (inside_main_func): Update.
5012 * frv-tdep.c (frv_frame_this_id): Update.
5013 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5014 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5016 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5017 (hppa_hpux_find_dummy_bpaddr): Update.
5018 * hppa-tdep.c (hppa_symbol_address): Update.
5019 * infcmd.c (until_next_command): Update.
5020 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5022 * linespec.c (minsym_found, add_minsym): Update.
5023 * linux-nat.c (get_signo): Update.
5024 * linux-thread-db.c (inferior_has_bug): Update.
5025 * m32c-tdep.c (m32c_return_value)
5026 (m32c_m16c_address_to_pointer): Update.
5027 * m32r-tdep.c (m32r_frame_this_id): Update.
5028 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5029 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5030 * maint.c (maintenance_translate_address): Update.
5031 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5032 (frob_address): New function.
5033 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5034 frob_address. Rename parameter to "pc_in".
5035 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5037 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5039 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5040 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5041 * objc-lang.c (find_objc_msgsend): Update.
5042 * objfiles.c (objfile_relocate1): Update.
5043 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5044 * p-valprint.c (pascal_val_print): Update.
5045 * parse.c (write_exp_msymbol): Update.
5046 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5047 (ppc_elfv2_skip_entrypoint): Update.
5048 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5049 * printcmd.c (build_address_symbolic, msym_info)
5050 (address_info): Update.
5051 * proc-service.c (ps_pglobal_lookup): Update.
5052 * psymtab.c (find_pc_sect_psymtab_closer)
5053 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5054 Change msymbol parameter to bound_minimal_symbol.
5055 * ravenscar-thread.c (get_running_thread_id): Update.
5056 * remote.c (remote_check_symbols): Update.
5057 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5059 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5060 * solib-dsbt.c (lm_base): Update.
5061 * solib-frv.c (lm_base, main_got): Update.
5062 * solib-irix.c (locate_base): Update.
5063 * solib-som.c (som_solib_create_inferior_hook)
5064 (link_map_start): Update.
5065 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5066 * solib-svr4.c (elf_locate_base, enable_break): Update.
5067 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5068 (flush_ea_cache): Update.
5069 * stabsread.c (define_symbol, scan_file_globals): Update.
5070 * stack.c (find_frame_funname): Update.
5071 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5072 (debug_qf_find_pc_sect_symtab): Update.
5073 * symfile.c (simple_read_overlay_table)
5074 (simple_overlay_update): Update.
5075 * symfile.h (struct quick_symbol_functions)
5076 <find_pc_sect_symtab>: Change type of msymbol to
5077 bound_minimal_symbol.
5078 * symmisc.c (dump_msymbols): Update.
5079 * symtab.c (find_pc_sect_symtab_via_partial)
5080 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5081 (search_symbols, print_msymbol_info): Update.
5082 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5083 (MSYMBOL_VALUE_ADDRESS): Redefine.
5084 (BMSYMBOL_VALUE_ADDRESS): New macro.
5085 * tracepoint.c (scope_info): Update.
5086 * tui/tui-disasm.c (tui_find_disassembly_address)
5087 (tui_get_begin_asm_address): Update.
5088 * valops.c (find_function_in_inferior): Update.
5089 * value.c (value_static_field, value_fn_field): Update.
5091 2014-02-26 Tom Tromey <tromey@redhat.com>
5093 * ada-lang.c (ada_update_initial_language): Update.
5094 (ada_main_name, ada_has_this_exception_support): Update.
5095 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5096 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5097 * arm-tdep.c (arm_skip_stub): Update.
5098 * auxv.c (ld_so_xfer_auxv): Update.
5099 * avr-tdep.c (avr_scan_prologue): Update.
5100 * ax-gdb.c (gen_var_ref): Update.
5101 * breakpoint.c (struct breakpoint_objfile_data)
5102 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5103 type to bound_minimal_symbol.
5104 (create_overlay_event_breakpoint)
5105 (create_longjmp_master_breakpoint)
5106 (create_std_terminate_master_breakpoint)
5107 (create_exception_master_breakpoint): Update.
5108 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5109 * c-exp.y (classify_name): Update.
5110 * coffread.c (coff_symfile_read): Update.
5111 * common/agent.c (agent_look_up_symbols): Update.
5112 * d-lang.c (d_main_name): Update.
5113 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5114 * dec-thread.c (enable_dec_thread): Update.
5115 * dwarf2loc.c (call_site_to_target_addr): Update.
5116 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5117 * eval.c (evaluate_subexp_standard): Update.
5118 * findvar.c (struct minsym_lookup_data) <result>: Change type
5119 to bound_minimal_symbol.
5121 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5122 * frame.c (inside_main_func): Update.
5123 * frv-tdep.c (frv_frame_this_id): Update.
5124 * gcore.c (call_target_sbrk): Update.
5125 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5126 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5128 * go-lang.c (go_main_name): Update.
5129 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5130 (hppa_hpux_find_import_stub_for_addr): Update.
5131 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5132 Update. Change return type.
5133 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5135 * jit.c (jit_breakpoint_re_set_internal): Update.
5136 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5138 * linux-nat.c (get_signo): Update.
5139 * linux-thread-db.c (inferior_has_bug): Update
5140 * m32c-tdep.c (m32c_return_value)
5141 (m32c_m16c_address_to_pointer): Update.
5142 * m32r-tdep.c (m32r_frame_this_id): Update.
5143 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5144 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5145 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5146 lookup_minimal_symbol. Change return type.
5147 (lookup_minimal_symbol): Remove.
5148 (lookup_bound_minimal_symbol): Update.
5149 (lookup_minimal_symbol_text): Change return type.
5150 (lookup_minimal_symbol_solib_trampoline): Change return type.
5151 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5152 (lookup_minimal_symbol_solib_trampoline): Change return type.
5153 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5154 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5155 (value_nsstring, find_imps): Update.
5156 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5157 * p-lang.c (pascal_main_name): Update.
5158 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5159 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5160 * proc-service.c (ps_pglobal_lookup): Update.
5161 * ravenscar-thread.c (get_running_thread_msymbol): Change
5163 (has_ravenscar_runtime, get_running_thread_id): Update.
5164 * remote.c (remote_check_symbols): Update.
5165 * sol-thread.c (ps_pglobal_lookup): Update.
5166 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5167 * solib-dsbt.c (lm_base): Update.
5168 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5170 * solib-irix.c (locate_base): Update.
5171 * solib-som.c (som_solib_create_inferior_hook)
5172 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5174 * solib-spu.c (spu_enable_break): Update.
5175 * solib-svr4.c (elf_locate_base, enable_break): Update.
5176 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5177 (flush_ea_cache): Update.
5178 * stabsread.c (define_symbol): Update.
5179 * symfile.c (simple_read_overlay_table): Update.
5180 * symtab.c (find_pc_sect_line): Update.
5181 * tracepoint.c (scope_info): Update.
5182 * tui-disasm.c (tui_get_begin_asm_address): Update.
5183 * value.c (value_static_field): Update.
5185 2014-02-26 Tom Tromey <tromey@redhat.com>
5187 * minsyms.c (prim_record_minimal_symbol_full): Use
5188 SET_MSYMBOL_VALUE_ADDRESS.
5189 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5190 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5191 SET_MSYMBOL_VALUE_ADDRESS.
5192 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5193 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5195 2014-02-26 Tom Tromey <tromey@redhat.com>
5197 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5198 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5199 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5200 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5201 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5202 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5203 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5204 * ada-lang.c (ada_main_name): Update.
5205 (ada_lookup_simple_minsym): Update.
5206 (ada_make_symbol_completion_list): Update.
5207 (ada_add_standard_exceptions): Update.
5208 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5209 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5210 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5211 * arm-tdep.c (skip_prologue_function): Update.
5212 (arm_skip_stack_protector, arm_skip_stub): Update.
5213 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5214 (arm_wince_skip_main_prologue): Update.
5215 * auxv.c (ld_so_xfer_auxv): Update.
5216 * avr-tdep.c (avr_scan_prologue): Update.
5217 * ax-gdb.c (gen_var_ref): Update.
5218 * block.c (call_site_for_pc): Update.
5219 * blockframe.c (get_pc_function_start): Update.
5220 (find_pc_partial_function_gnu_ifunc): Update.
5221 * breakpoint.c (create_overlay_event_breakpoint): Update.
5222 (create_longjmp_master_breakpoint): Update.
5223 (create_std_terminate_master_breakpoint): Update.
5224 (create_exception_master_breakpoint): Update.
5225 (resolve_sal_pc): Update.
5226 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5227 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5229 * c-valprint.c (c_val_print): Update.
5230 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5231 * coffread.c (coff_symfile_read): Update.
5232 * common/agent.c (agent_look_up_symbols): Update.
5233 * dbxread.c (find_stab_function_addr): Update.
5234 (end_psymtab): Update.
5235 * dwarf2loc.c (call_site_to_target_addr): Update.
5236 (func_verify_no_selftailcall): Update.
5237 (tailcall_dump): Update.
5238 (call_site_find_chain_1): Update.
5239 (dwarf_expr_reg_to_entry_parameter): Update.
5240 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5241 (elf_gnu_ifunc_resolve_by_got): Update.
5242 * f-valprint.c (info_common_command): Update.
5243 * findvar.c (read_var_value): Update.
5244 * frame.c (get_prev_frame_1): Update.
5245 (inside_main_func): Update.
5246 * frv-tdep.c (frv_skip_main_prologue): Update.
5247 (frv_frame_this_id): Update.
5248 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5249 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5250 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5251 (gnuv3_skip_trampoline): Update.
5252 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5253 (hppa64_hpux_in_solib_call_trampoline): Update.
5254 (hppa_hpux_skip_trampoline_code): Update.
5255 (hppa64_hpux_search_dummy_call_sequence): Update.
5256 (hppa_hpux_find_import_stub_for_addr): Update.
5257 (hppa_hpux_find_dummy_bpaddr): Update.
5258 * hppa-tdep.c (hppa_symbol_address)
5259 (hppa_lookup_stub_minimal_symbol): Update.
5260 * i386-tdep.c (i386_skip_main_prologue): Update.
5261 (i386_pe_skip_trampoline_code): Update.
5262 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5263 * infcall.c (get_function_name): Update.
5264 * infcmd.c (until_next_command): Update.
5265 * jit.c (jit_breakpoint_re_set_internal): Update.
5266 (jit_inferior_init): Update.
5267 * linespec.c (minsym_found): Update.
5268 (add_minsym): Update.
5269 * linux-fork.c (info_checkpoints_command): Update.
5270 * linux-nat.c (get_signo): Update.
5271 * linux-thread-db.c (inferior_has_bug): Update.
5272 * m32c-tdep.c (m32c_return_value): Update.
5273 (m32c_m16c_address_to_pointer): Update.
5274 (m32c_m16c_pointer_to_address): Update.
5275 * m32r-tdep.c (m32r_frame_this_id): Update.
5276 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5277 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5278 * maint.c (maintenance_translate_address): Update.
5279 * minsyms.c (add_minsym_to_hash_table): Update.
5280 (add_minsym_to_demangled_hash_table): Update.
5281 (msymbol_objfile): Update.
5282 (lookup_minimal_symbol): Update.
5283 (iterate_over_minimal_symbols): Update.
5284 (lookup_minimal_symbol_text): Update.
5285 (lookup_minimal_symbol_by_pc_name): Update.
5286 (lookup_minimal_symbol_solib_trampoline): Update.
5287 (lookup_minimal_symbol_by_pc_section_1): Update.
5288 (lookup_minimal_symbol_and_objfile): Update.
5289 (prim_record_minimal_symbol_full): Update.
5290 (compare_minimal_symbols): Update.
5291 (compact_minimal_symbols): Update.
5292 (build_minimal_symbol_hash_tables): Update.
5293 (install_minimal_symbols): Update.
5294 (terminate_minimal_symbol_table): Update.
5295 (find_solib_trampoline_target): Update.
5296 (minimal_symbol_upper_bound): Update.
5297 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5298 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5299 (mips_skip_pic_trampoline_code): Update.
5300 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5301 * objc-lang.c (selectors_info): Update.
5302 (classes_info): Update.
5303 (find_methods): Update.
5304 (find_imps): Update.
5305 (find_objc_msgsend): Update.
5306 * objfiles.c (objfile_relocate1): Update.
5307 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5308 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5309 * p-valprint.c (pascal_val_print): Update.
5310 * parse.c (write_exp_msymbol): Update.
5311 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5312 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5313 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5314 * printcmd.c (build_address_symbolic): Update.
5316 (address_info): Update.
5317 * proc-service.c (ps_pglobal_lookup): Update.
5318 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5319 (find_pc_sect_psymtab): Update.
5320 * python/py-framefilter.c (py_print_frame): Update.
5321 * ravenscar-thread.c (get_running_thread_id): Update.
5322 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5324 * remote.c (remote_check_symbols): Update.
5325 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5326 (rs6000_skip_trampoline_code): Update.
5327 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5328 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5329 * solib-dsbt.c (lm_base): Update.
5330 * solib-frv.c (lm_base): Update.
5332 * solib-irix.c (locate_base): Update.
5333 * solib-som.c (som_solib_create_inferior_hook): Update.
5334 (som_solib_desire_dynamic_linker_symbols): Update.
5335 (link_map_start): Update.
5336 * solib-spu.c (spu_enable_break): Update.
5337 (ocl_enable_break): Update.
5338 * solib-svr4.c (elf_locate_base): Update.
5339 (enable_break): Update.
5340 * spu-tdep.c (spu_get_overlay_table): Update.
5341 (spu_catch_start): Update.
5342 (flush_ea_cache): Update.
5343 * stabsread.c (define_symbol): Update.
5344 (scan_file_globals): Update.
5345 * stack.c (find_frame_funname): Update.
5346 (frame_info): Update.
5347 * symfile.c (simple_read_overlay_table): Update.
5348 (simple_overlay_update): Update.
5349 * symmisc.c (dump_msymbols): Update.
5350 * symtab.c (fixup_section): Update.
5351 (find_pc_sect_line): Update.
5352 (skip_prologue_sal): Update.
5353 (search_symbols): Update.
5354 (print_msymbol_info): Update.
5355 (rbreak_command): Update.
5356 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5357 (completion_list_objc_symbol): Update.
5358 (default_make_symbol_completion_list_break_on): Update.
5359 * tracepoint.c (scope_info): Update.
5360 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5361 (tui_get_begin_asm_address): Update.
5362 * valops.c (find_function_in_inferior): Update.
5363 * value.c (value_static_field): Update.
5364 (value_fn_field): Update.
5366 2014-02-26 Tom Tromey <tromey@redhat.com>
5368 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5369 bound minimal symbols. Move code that knows about minsym
5371 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5373 * minsyms.h (minimal_symbol_upper_bound): Declare.
5374 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5375 minimal_symbol_upper_bound.
5377 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5379 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5380 Use the type's name if its basic type does not have a tag.
5382 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5384 * dwarf2read.c (read_subrange_type): Add comment.
5386 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5388 * dwarf2read.c (update_enumeration_type_from_children): New
5389 function, mostly extracted from process_structure_scope.
5390 (read_enumeration_type): Call update_enumeration_type_from_children.
5391 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5392 and flag_flag_enum fields.
5394 2014-02-26 Pedro Alves <palves@redhat.com>
5396 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5397 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5398 to_xfer_partial method.
5400 2014-02-26 Pedro Alves <palves@redhat.com>
5402 * target.c (complete_target_initialization): Don't install
5403 default_xfer_partial as to_xfer_partial hook.
5405 (update_current_target): Don't INHERIT nor de_fault
5406 deprecated_xfer_memory. Delete de_fault macro.
5407 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5408 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5409 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5412 2014-02-26 Pedro Alves <palves@redhat.com>
5414 * go32-nat.c (my_write_child): New function.
5415 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5416 (go32_xfer_partial): New function.
5417 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5418 Instead install a to_xfer_partial hook.
5420 2014-02-26 Pedro Alves <palves@redhat.com>
5422 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5423 to_xfer_partial helper. Rewrite.
5424 (procfs_xfer_partial): New function.
5425 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5426 Install a to_xfer_partial hook.
5428 2014-02-26 Pedro Alves <palves@redhat.com>
5430 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5431 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5432 (m32r_xfer_partial): New function.
5433 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5434 Install a to_xfer_partial hook.
5436 2014-02-26 Pedro Alves <palves@redhat.com>
5438 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5440 (mips_xfer_partial): New function.
5441 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5442 hook. Install a to_xfer_partial hook.
5444 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5446 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5447 * gdbtypes.c (create_array_type_with_stride): New function,
5448 renaming create_array_type, but with an added parameter
5449 called "bit_stride".
5450 (create_array_type): Re-implement using
5451 create_array_type_with_stride.
5452 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5453 and DW_AT_bit_stride attributes.
5455 2014-02-26 Pedro Alves <palves@redhat.com>
5457 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5458 task-specific breakpoints.
5460 2014-02-25 Pedro Alves <palves@redhat.com>
5462 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5463 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5465 2014-02-25 Stan Shebs <stan@codesourcery.com>
5467 * defs.h: Annotate comments for Doxygen.
5469 2014-02-25 Tom Tromey <tromey@redhat.com>
5471 * target.h (target_ignore): Don't declare.
5472 * target.c (target_ignore): Remove.
5474 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5477 * auto-load.c (auto_load_objfile_script_1): Change filename to
5480 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5482 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5483 documentation. Adjust prototype to match the target_ops
5484 to_xfer_partial method. Adjust implementation accordingly.
5486 2014-02-25 Hui Zhu <hui@codesourcery.com>
5488 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5491 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5493 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5494 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5495 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5496 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5497 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5498 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5499 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5500 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5502 (rl78_register_type): Use a data pointer type for SP and
5503 new pseudo registers mentioned above. Use a 16 bit integer
5504 type for all other register pairs.
5505 (rl78_register_name, rl78_g10_register_name): Update for
5506 new pseudo registers.
5507 (rl78_pseudo_register_read): Likewise.
5508 (rl78_pseudo_register_write): Likewise.
5509 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5510 to the newly added pseudo registers.
5512 2014-02-24 Doug Evans <dje@google.com>
5514 * value.c (record_latest_value): Fix comment.
5515 * printcmd.c (print_command_1): Remove code to handle -1 return from
5516 record_latest_value.
5518 2014-02-24 Pedro Alves <palves@redhat.com>
5520 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5521 deprecated_xfer_memory hook.
5522 (procfs_xfer_partial): Call procfs_xfer_memory instead
5523 of the deprecated_xfer_memory target hook.
5524 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5527 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5529 * windows-nat.c (windows_xfer_shared_libraries): Return
5530 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5531 requested object is TARGET_OBJECT_LIBRARIES.
5533 2014-02-24 Yao Qi <yao@codesourcery.com>
5535 * target.h (enum target_xfer_status)
5536 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5537 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5539 * corefile.c (memory_error_message): User updated.
5540 * exec.c (section_table_read_available_memory): Likewise.
5541 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5542 * target.c (target_xfer_status_to_string): Likewise.
5543 (raw_memory_xfer_partial): Likewise.
5544 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5545 * valops.c (read_value_memory): Likewise.
5546 * exec.h: Update comments.
5548 2014-02-24 Yao Qi <yao@codesourcery.com>
5550 * target.c (target_xfer_status_to_string): Rename argument err
5552 * target.h (target_xfer_status_to_string): Update declaration.
5553 Replace target_xfer_error_to_string with
5554 target_xfer_status_to_string in comment.
5556 2014-02-24 Yao Qi <yao@codesourcery.com>
5558 * mips-linux-nat.c (super_close): Update its type.
5559 (mips_linux_close): Pass 'self' to super_close.
5561 2014-02-24 Yao Qi <yao@codesourcery.com>
5563 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5564 * corefile.c (read_memory): Adjusted.
5565 * target.c (target_write_with_progress): Adjusted.
5567 2014-02-23 Yao Qi <yao@codesourcery.com>
5571 2013-10-25 Yao Qi <yao@codesourcery.com>
5573 * remote.c (remote_traceframe_info): Return early if
5574 traceframe is not selected.
5576 2013-07-19 Yao Qi <yao@codesourcery.com>
5578 * target.c (update_current_target): Change the default action
5579 of 'to_traceframe_info' from tcomplain to return_zero.
5580 * target.h (struct target_ops) <to_traceframe_info>: Add more
5583 2014-02-23 Yao Qi <yao@codesourcery.com>
5585 * valops.c (read_value_memory): Rewrite it. Call
5586 target_xfer_partial in a loop.
5587 * exec.h (section_table_available_memory): Remove declaration.
5588 Move comments to ...
5589 * exec.c (section_table_available_memory): ... here. Make it
5592 2014-02-23 Yao Qi <yao@codesourcery.com>
5594 * exec.c (section_table_read_available_memory): New function.
5595 * exec.h (section_table_read_available_memory): Declare.
5596 * ctf.c (ctf_xfer_partial): Call
5597 section_table_read_available_memory.
5598 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5600 2014-02-23 Yao Qi <yao@codesourcery.com>
5602 * ctf.c (ctf_xfer_partial): Move code to ...
5603 * exec.c (exec_read_partial_read_only): ... it. New function.
5604 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5605 * tracefile.c: Include "exec.h".
5606 * exec.h (exec_read_partial_read_only): Declare.
5608 2014-02-23 Yao Qi <yao@codesourcery.com>
5610 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5611 (tfile_has_memory): Remove.
5612 (init_tfile_ops): Don't set fields to_has_all_memory and
5613 to_has_memory of tfile_ops.
5614 * tracefile.c (tracefile_has_all_memory): New function.
5615 (tracefile_has_memory): New function.
5616 (init_tracefile_ops): Initialize fields to_has_all_memory and
5617 to_has_memory of 'ops'.
5619 2014-02-23 Yao Qi <yao@codesourcery.com>
5621 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5622 (ctf_thread_alive, ctf_get_trace_status): Remove.
5623 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5625 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5626 (tfile_has_stack, tfile_has_registers): Remove.
5627 (tfile_thread_alive): Remove.
5628 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5630 * tracefile.c (tracefile_has_stack): New function.
5631 (tracefile_has_registers): New function.
5632 (tracefile_thread_alive): New function.
5633 (tracefile_get_trace_status): New function.
5634 (init_tracefile_ops): New function.
5635 * tracefile.h (init_tracefile_ops): Declare.
5637 2014-02-23 Yao Qi <yao@codesourcery.com>
5639 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5640 (O_LARGEFILE): Likewise.
5641 (tfile_ops): Likewise.
5642 (TRACE_HEADER_SIZE): Likewise.
5643 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5644 (cur_data_size): Likewise.
5645 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5646 (tfile_close, tfile_files_info): Likewise.
5647 (tfile_get_trace_status): Likewise.
5648 (tfile_get_tracepoint_status): Likewise.
5649 (tfile_get_traceframe_address): Likewise.
5650 (tfile_trace_find, match_blocktype): Likewise.
5651 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5652 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5653 (tfile_get_trace_state_variable_value): Likewise.
5654 (tfile_has_all_memory, tfile_has_memory): Likewise.
5655 (tfile_has_stack, tfile_has_registers): Likewise.
5656 (tfile_thread_alive, build_traceframe_info): Likewise.
5657 (tfile_traceframe_info, init_tfile_ops): Likewise.
5658 (_initialize_tracepoint): Don't call init_tfile_ops
5659 and add_target_with_completer.
5660 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5661 exec.h, completer.h and filenames.h.
5662 (_initialize_tracefile_tfile): New function.
5664 2014-02-23 Yao Qi <yao@codesourcery.com>
5666 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5668 (HFILES_NO_SRCDIR): Add tracefile.h.
5669 * ctf.c: Include "tracefile.h".
5670 * tracefile.h: New file.
5671 * tracefile.c: New file
5672 * tracefile-tfile.c: New file.
5673 * tracepoint.c: Include "tracefile.h".
5674 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5675 (stop_reason_names): Add const.
5676 (trace_file_writer_xfree): Move it to tracefile.c.
5677 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5678 (trace_save_ctf): Likewise.
5679 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5680 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5681 (tfile_write_header, tfile_write_regblock_type): Likewise.
5682 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5683 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5684 (tfile_write_raw_data, tfile_end): Likewise.
5685 (tfile_trace_file_writer_new): Likewise.
5686 (free_uploaded_tp): Make it extern.
5687 (free_uploaded_tsv): Make it extern.
5688 (_initialize_tracepoint): Move code to register command 'tsave'
5690 * tracepoint.h (stop_reason_names): Declare.
5691 (struct trace_frame_write_ops): Move it to tracefile.h.
5692 (struct trace_file_write_ops): Likewise.
5693 (struct trace_file_writer): Likewise.
5694 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5696 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5699 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5701 (get_cores_used_by_process): New parameter num_cores, use it.
5702 (linux_xfer_osdata_processes): Pass num_cores to it.
5703 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5706 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5708 * target.c (memory_xfer_partial): Fix length arg in call to
5709 breakpoint_xfer_memory.
5711 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5714 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5715 number comes after the + or - signs. Adjust length of register
5716 name to be extracted.
5718 2014-02-20 Tom Tromey <tromey@redhat.com>
5720 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5721 (ada_varobj_ops): Mark "extern".
5723 2014-02-20 Tom Tromey <tromey@redhat.com>
5725 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5727 2014-02-20 Doug Evans <xdje42@gmail.com>
5729 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5730 All callers updated.
5731 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5732 All callers updated.
5733 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5734 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5736 2014-02-20 lin zuojian <manjian2006@gmail.com>
5737 Joel Brobecker <brobecker@adacore.com>
5738 Doug Evans <xdje42@gmail.com>
5741 * dwarf2read.c (struct die_info): New member in_process.
5742 (reset_die_in_process): New function.
5743 (process_die): Set it at the start, reset when returning.
5744 (inherit_abstract_dies): Only call process_die if origin_child_die
5745 not already being processed.
5747 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5749 * windows-nat.c (handle_unload_dll): Add function documentation.
5750 (do_initial_windows_stuff): Add comment explaining why we wait
5751 until after inferior initialization has finished before
5752 processing all DLLs.
5754 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5756 * windows-nat.c (get_module_name): Delete.
5757 (windows_get_exec_module_filename): New function, mostly
5758 inspired from get_module_name.
5759 (windows_pid_to_exec_file): Replace call to get_module_name
5760 by call to windows_get_exec_module_filename.
5762 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5764 * windows-nat.c (handle_load_dll): Rewrite this function's
5765 introductory comment. Remove code using get_module_name
5766 to get the DLL's name.
5768 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5770 * windows-nat.c (get_windows_debug_event): Ignore
5771 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5772 if windows_initialization_done == 0.
5773 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5774 Adjust implementation to always load all DLLs.
5775 (do_initial_windows_stuff): Replace call to
5776 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5778 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5780 * windows-nat.c (_initialize_windows_nat): Deprecate the
5781 "dll-symbols" command. Turn the "add-shared-symbol-files"
5782 and "assf" aliases into commands, and deprecate them as well.
5783 * NEWS: Add entry explaining that "dll-symbols" and its two
5784 aliases are now deprecated.
5786 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5788 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5789 new-line in debug string. Remove trailing spaces.
5791 2014-02-19 Stan Shebs <stan@codesourcery.com>
5793 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5795 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5797 * NEWS: Add entry for the new feature
5798 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5801 2014-02-19 Stan Shebs <stan@codesourcery.com>
5803 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5805 2014-02-19 Pedro Alves <palves@redhat.com>
5807 * common/ptid.h (struct ptid): Mention that process_stratum
5808 targets should prefer ptid.lwp.
5810 2014-02-19 Pedro Alves <palves@redhat.com>
5812 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5813 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5814 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5815 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5816 store remote thread ids rather than ptid.tid.
5817 (_initialize_remote): Adjust.
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * target.c (target_get_unwinder): Rewrite.
5822 (target_get_tailcall_unwinder): Rewrite.
5823 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5824 (record_btrace_to_get_tailcall_unwinder): New function.
5825 (init_record_btrace_ops): Update.
5826 * target.h (struct target_ops) <to_get_unwinder,
5827 to_get_tailcall_unwinder>: Now function pointers. Use
5828 TARGET_DEFAULT_RETURN.
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5834 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5836 2014-02-19 Tom Tromey <tromey@redhat.com>
5838 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5840 * target-delegates.c: Rebuild.
5841 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5842 TARGET_DEFAULT_FUNC.
5843 * target.c (default_target_decr_pc_after_break): Rename from
5844 forward_target_decr_pc_after_break. Simplify.
5845 (target_decr_pc_after_break): Rely on delegation.
5847 2014-02-19 Tom Tromey <tromey@redhat.com>
5849 * target.c (update_current_target): Do not INHERIT to_doc or
5850 to_magic. Do not de_fault to_open or to_close.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * gcore.h (objfile_find_memory_regions): Declare.
5855 * gcore.c (objfile_find_memory_regions): No longer static. Add
5857 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5858 * exec.c: Include gcore.h.
5859 (exec_set_find_memory_regions): Remove.
5860 (exec_find_memory_regions): Remove.
5861 (exec_do_find_memory_regions): Remove.
5862 (init_exec_ops): Update.
5863 * defs.h (exec_set_find_memory_regions): Remove.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target-delegates.c: Rebuild.
5868 * target.h (struct target_ops) <to_extra_thread_info,
5869 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5870 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5871 not 0, in TARGET_DEFAULT_RETURN.
5873 2014-02-19 Tom Tromey <tromey@redhat.com>
5875 * target.c (complete_target_initialization): Remove casts. Use
5876 return_zero_has_execution.
5877 (return_zero): Add "ignore" argument.
5878 (return_zero_has_execution): New function.
5879 (init_dummy_target): Remove casts. Use
5880 return_zero_has_execution.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * target.c (update_current_target): Update comments. Do not
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5891 * corelow.c (core_read_description): Delegate when needed.
5892 * remote.c (remote_read_description): Delegate when needed.
5893 * target-delegates.c: Rebuild.
5894 * target.c (target_read_description): Rewrite.
5895 * target.h (struct target_ops) <to_read_description>: Update
5896 comment. Use TARGET_DEFAULT_RETURN.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target-delegates.c: Rebuild.
5901 * target.c (update_current_target): Don't inherit or default
5903 (find_default_run_target): Check against delegate_can_run.
5904 * target.h (struct target_ops) <to_can_run>: Use
5905 TARGET_DEFAULT_RETURN.
5907 2014-02-19 Tom Tromey <tromey@redhat.com>
5909 * target-delegates.c: Rebuild.
5910 * target.c (target_disconnect): Unconditionally delegate.
5911 * target.h (struct target_ops) <to_disconnect>: Use
5912 TARGET_DEFAULT_NORETURN.
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * record.c (record_stop): Unconditionally delegate.
5917 * target-delegates.c: Rebuild.
5918 * target.c (target_stop_recording): Unconditionally delegate.
5919 * target.h (struct target_ops) <to_stop_recording>: Use
5920 TARGET_DEFAULT_IGNORE.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target-delegates.c: Rebuild.
5925 * target.c (target_enable_btrace): Unconditionally delegate.
5926 * target.h (struct target_ops) <to_enable_btrace>: Use
5927 TARGET_DEFAULT_NORETURN.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target-delegates.c: Rebuild.
5932 * target.c (target_read_btrace): Unconditionally delegate.
5933 * target.h (struct target_ops) <to_read_btrace>: Use
5934 TARGET_DEFAULT_NORETURN.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: Rebuild.
5939 * target.c (target_teardown_btrace): Unconditionally delegate.
5940 * target.h (struct target_ops) <to_teardown_btrace>: Use
5941 TARGET_DEFAULT_NORETURN.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (target_disable_btrace): Unconditionally delegate.
5947 * target.h (struct target_ops) <to_disable_btrace>: Use
5948 TARGET_DEFAULT_NORETURN.
5950 2014-02-19 Tom Tromey <tromey@redhat.com>
5952 * target-delegates.c: Rebuild.
5953 * target.c (default_search_memory): New function.
5954 (simple_search_memory): Update comment.
5955 (target_search_memory): Unconditionally delegate.
5956 * target.h (struct target_ops) <to_search_memory>: Use
5957 TARGET_DEFAULT_FUNC.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * auxv.c (default_auxv_parse): No longer static.
5962 (target_auxv_parse): Unconditionally delegate.
5963 * auxv.h (default_auxv_parse): Declare.
5964 * target-delegates.c: Rebuild.
5965 * target.c: Include auxv.h.
5966 * target.h (struct target_ops) <to_auxv_parse>: Use
5967 TARGET_DEFAULT_FUNC.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target-delegates.c: Rebuild.
5972 * target.c (target_memory_map): Unconditionally delegate.
5973 * target.h (struct target_ops) <to_memory_map>: Use
5974 TARGET_DEFAULT_RETURN.
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target-delegates.c: Rebuild.
5979 * target.c (target_thread_alive): Unconditionally delegate.
5980 * target.h (struct target_ops) <to_thread_alive>: Use
5981 TARGET_DEFAULT_RETURN.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target-delegates.c: Rebuild.
5986 * target.c (target_save_record): Unconditionally delegate.
5987 * target.h (struct target_ops) <to_save_record>: Use
5988 TARGET_DEFAULT_NORETURN.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target-delegates.c: Rebuild.
5993 * target.c (target_delete_record): Unconditionally delegate.
5994 * target.h (struct target_ops) <to_delete_record>: Use
5995 TARGET_DEFAULT_NORETURN.
5997 2014-02-19 Tom Tromey <tromey@redhat.com>
5999 * target-delegates.c: Rebuild.
6000 * target.c (target_record_is_replaying): Unconditionally
6002 * target.h (struct target_ops) <to_record_is_replaying>: Use
6003 TARGET_DEFAULT_RETURN.
6005 2014-02-19 Tom Tromey <tromey@redhat.com>
6007 * target-delegates.c: Rebuild.
6008 * target.c (target_goto_record_begin): Unconditionally delegate.
6009 * target.h (struct target_ops) <to_goto_record_begin>: Use
6010 TARGET_DEFAULT_NORETURN.
6012 2014-02-19 Tom Tromey <tromey@redhat.com>
6014 * target-delegates.c: Rebuild.
6015 * target.c (target_goto_record_end): Unconditionally delegate.
6016 * target.h (struct target_ops) <to_goto_record_end>: Use
6017 TARGET_DEFAULT_NORETURN.
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target-delegates.c: Rebuild.
6022 * target.c (target_goto_record): Unconditionally delegate.
6023 * target.h (struct target_ops) <to_goto_record>: Use
6024 TARGET_DEFAULT_NORETURN.
6026 2014-02-19 Tom Tromey <tromey@redhat.com>
6028 * target-delegates.c: Rebuild.
6029 * target.c (target_insn_history): Unconditionally delegate.
6030 * target.h (struct target_ops) <to_insn_history>: Use
6031 TARGET_DEFAULT_NORETURN.
6033 2014-02-19 Tom Tromey <tromey@redhat.com>
6035 * target-delegates.c: Rebuild.
6036 * target.c (target_insn_history_from): Unconditionally delegate.
6037 * target.h (struct target_ops) <to_insn_history_from>: Use
6038 TARGET_DEFAULT_NORETURN.
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target-delegates.c: Rebuild.
6043 * target.c (target_insn_history_range): Unconditionally delegate.
6044 * target.h (struct target_ops) <to_insn_history_range>: Use
6045 TARGET_DEFAULT_NORETURN.
6047 2014-02-19 Tom Tromey <tromey@redhat.com>
6049 * target-delegates.c: Rebuild.
6050 * target.c (target_call_history): Unconditionally delegate.
6051 * target.h (struct target_ops) <to_call_history>: Use
6052 TARGET_DEFAULT_NORETURN.
6054 2014-02-19 Tom Tromey <tromey@redhat.com>
6056 * target-delegates.c: Rebuild.
6057 * target.c (target_call_history_from): Unconditionally delegate.
6058 * target.h (struct target_ops) <to_call_history_from>: Use
6059 TARGET_DEFAULT_NORETURN.
6061 2014-02-19 Tom Tromey <tromey@redhat.com>
6063 * target-delegates.c: Rebuild.
6064 * target.c (target_call_history_range): Unconditionally delegate.
6065 * target.h (struct target_ops) <to_call_history_range>: Use
6066 TARGET_DEFAULT_NORETURN.
6068 2014-02-19 Tom Tromey <tromey@redhat.com>
6070 * target-delegates.c: Rebuild.
6071 * target.c (target_verify_memory): Unconditionally delegate.
6072 * target.h (struct target_ops) <to_verify_memory>: Use
6073 TARGET_DEFAULT_NORETURN.
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target-delegates.c: Rebuild.
6078 * target.c (target_core_of_thread): Unconditionally delegate.
6079 * target.h (struct target_ops) <to_core_of_thread>: Use
6080 TARGET_DEFAULT_RETURN.
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * target-delegates.c: Rebuild.
6085 * target.c (target_flash_done): Unconditionally delegate.
6086 * target.h (struct target_ops) <to_flash_done>: Use
6087 TARGET_DEFAULT_NORETURN.
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target-delegates.c: Rebuild.
6092 * target.c (target_flash_erase): Unconditionally delegate.
6093 * target.h (struct target_ops) <to_flash_erase>: Use
6094 TARGET_DEFAULT_NORETURN.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * target-delegates.c: Rebuild.
6099 * target.c (target_get_section_table): Unconditionally delegate.
6100 * target.h (struct target_ops) <to_get_section_table>: Use
6101 TARGET_DEFAULT_RETURN.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target-delegates.c: Rebuild.
6106 * target.c (target_pid_to_str): Unconditionally delegate.
6107 (init_dummy_target): Don't initialize to_pid_to_str.
6108 (default_pid_to_str): Rename from dummy_pid_to_str.
6109 * target.h (struct target_ops) <to_pid_to_str>: Use
6110 TARGET_DEFAULT_FUNC.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target-delegates.c: Rebuild.
6115 * target.c (target_find_new_threads): Unconditionally delegate.
6116 * target.h (struct target_ops) <to_find_new_threads>: Use
6117 TARGET_DEFAULT_RETURN.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target-delegates.c: Rebuild.
6122 * target.c (target_program_signals): Unconditionally delegate.
6123 * target.h (struct target_ops) <to_program_signals>: Use
6124 TARGET_DEFAULT_IGNORE.
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target-delegates.c: Rebuild.
6129 * target.c (target_pass_signals): Unconditionally delegate.
6130 * target.h (struct target_ops) <to_pass_signals>: Use
6131 TARGET_DEFAULT_IGNORE.
6133 2014-02-19 Tom Tromey <tromey@redhat.com>
6135 * target-delegates.c: Rebuild.
6136 * target.c (default_mourn_inferior): New function.
6137 (target_mourn_inferior): Unconditionally delegate.
6138 * target.h (struct target_ops) <to_mourn_inferior>: Use
6139 TARGET_DEFAULT_FUNC.
6141 2014-02-19 Tom Tromey <tromey@redhat.com>
6143 * target-delegates.c: Rebuild.
6144 * target.c (default_follow_fork): New function.
6145 (target_follow_fork): Unconditionally delegate.
6146 * target.h (struct target_ops) <to_follow_fork>: Use
6147 TARGET_DEFAULT_FUNC.
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6151 * target-delegates.c: Rebuild.
6152 * target.c (target_kill): Unconditionally delegate.
6153 * target.h (struct target_ops) <to_kill>: Use
6154 TARGET_DEFAULT_NORETURN.
6156 2014-02-19 Tom Tromey <tromey@redhat.com>
6158 * target-delegates.c: Rebuild.
6159 * target.c (target_masked_watch_num_registers): Unconditionally
6161 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6162 Use TARGET_DEFAULT_RETURN.
6164 2014-02-19 Tom Tromey <tromey@redhat.com>
6166 * target-delegates.c: Rebuild.
6167 * target.c (target_remove_mask_watchpoint): Unconditionally
6169 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6170 TARGET_DEFAULT_RETURN.
6172 2014-02-19 Tom Tromey <tromey@redhat.com>
6174 * target-delegates.c: Rebuild.
6175 * target.c (target_insert_mask_watchpoint): Unconditionally
6177 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6178 TARGET_DEFAULT_RETURN.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * target-delegates.c: Rebuild.
6183 * target.c (target_ranged_break_num_registers): Unconditionally
6185 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6186 Use TARGET_DEFAULT_RETURN.
6188 2014-02-19 Tom Tromey <tromey@redhat.com>
6190 * target-delegates.c: Rebuild.
6191 * target.c (target_fetch_registers): Unconditionally delegate.
6192 * target.h (struct target_ops) <to_fetch_registers>: Use
6193 TARGET_DEFAULT_NORETURN.
6195 2014-02-19 Tom Tromey <tromey@redhat.com>
6197 * target-delegates.c: Rebuild.
6198 * target.c (update_current_target): Don't inherit or default
6200 * target.h (struct target_ops) <to_stop>: Use
6201 TARGET_DEFAULT_IGNORE.
6203 2014-02-19 Tom Tromey <tromey@redhat.com>
6205 * target-delegates.c: Rebuild.
6206 * target.c (update_current_target): Don't inherit or default
6207 to_can_run_breakpoint_commands.
6208 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6209 Use TARGET_DEFAULT_RETURN.
6211 2014-02-19 Tom Tromey <tromey@redhat.com>
6213 * target-delegates.c: Rebuild.
6214 * target.c (update_current_target): Don't inherit or default
6215 to_supports_evaluation_of_breakpoint_conditions.
6216 * target.h (struct target_ops)
6217 <to_supports_evaluation_of_breakpoint_conditions>: Use
6218 TARGET_DEFAULT_RETURN.
6220 2014-02-19 Tom Tromey <tromey@redhat.com>
6222 * target-delegates.c: Rebuild.
6223 * target.c (update_current_target): Don't inherit or default
6224 to_augmented_libraries_svr4_read.
6225 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6226 Use TARGET_DEFAULT_RETURN.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target-delegates.c: Rebuild.
6231 * target.c (update_current_target): Don't inherit or default
6233 * target.h (struct target_ops) <to_can_use_agent>: Use
6234 TARGET_DEFAULT_RETURN.
6236 2014-02-19 Tom Tromey <tromey@redhat.com>
6238 * target-delegates.c: Rebuild.
6239 * target.c (update_current_target): Don't inherit or default
6241 * target.h (struct target_ops) <to_use_agent>: Use
6242 TARGET_DEFAULT_NORETURN.
6244 2014-02-19 Tom Tromey <tromey@redhat.com>
6246 * target-delegates.c: Rebuild.
6247 * target.c (update_current_target): Don't inherit or default
6249 (return_null): Remove.
6250 * target.h (struct target_ops) <to_traceframe_info>: Use
6251 TARGET_DEFAULT_RETURN.
6253 2014-02-19 Tom Tromey <tromey@redhat.com>
6255 * target-delegates.c: Rebuild.
6256 * target.c (update_current_target): Don't inherit or default
6257 to_static_tracepoint_markers_by_strid.
6258 * target.h (struct target_ops)
6259 <to_static_tracepoint_markers_by_strid>: Use
6260 TARGET_DEFAULT_NORETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (update_current_target): Don't inherit or default
6266 to_static_tracepoint_marker_at.
6267 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6268 Use TARGET_DEFAULT_RETURN.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target-delegates.c: Rebuild.
6273 * target.c (update_current_target): Don't inherit or default
6275 * target.h (struct target_ops) <to_set_permissions>: Use
6276 TARGET_DEFAULT_IGNORE.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target-delegates.c: Rebuild.
6281 * target.c (update_current_target): Don't inherit or default
6283 * target.h (struct target_ops) <to_get_tib_address>: Use
6284 TARGET_DEFAULT_NORETURN.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target-delegates.c: Rebuild.
6289 * target.c (update_current_target): Don't inherit or default
6291 * target.h (struct target_ops) <to_set_trace_notes>: Use
6292 TARGET_DEFAULT_RETURN.
6294 2014-02-19 Tom Tromey <tromey@redhat.com>
6296 * target-delegates.c: Rebuild.
6297 * target.c (update_current_target): Don't initialize
6298 to_set_trace_buffer_size.
6299 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6300 TARGET_DEFAULT_IGNORE.
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * target-delegates.c: Rebuild.
6305 * target.c (update_current_target): Don't inherit or default
6306 to_set_circular_trace_buffer.
6307 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6308 TARGET_DEFAULT_IGNORE.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target-delegates.c: Rebuild.
6313 * target.c (update_current_target): Don't inherit or default
6314 to_set_disconnected_tracing.
6315 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6316 TARGET_DEFAULT_IGNORE.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target-delegates.c: Rebuild.
6321 * target.c (update_current_target): Don't inherit or default
6322 to_get_min_fast_tracepoint_insn_len.
6323 (return_minus_one): Remove.
6324 * target.h (struct target_ops)
6325 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target-delegates.c: Rebuild.
6330 * target.c (update_current_target): Don't inherit or default
6331 to_get_raw_trace_data.
6332 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6333 TARGET_DEFAULT_NORETURN.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * target-delegates.c: Rebuild.
6338 * target.c (update_current_target): Don't inherit or default
6339 to_upload_trace_state_variables.
6340 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6341 Use TARGET_DEFAULT_RETURN.
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target-delegates.c: Rebuild.
6346 * target.c (update_current_target): Don't inherit or default
6347 to_upload_tracepoints.
6348 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6349 TARGET_DEFAULT_RETURN.
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target-delegates.c: Rebuild.
6354 * target.c (update_current_target): Don't inherit or default
6356 * target.h (struct target_ops) <to_save_trace_data>: Use
6357 TARGET_DEFAULT_NORETURN.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target-delegates.c: Rebuild.
6362 * target.c (update_current_target): Don't inherit or default
6363 to_get_trace_state_variable_value.
6364 * target.h (struct target_ops)
6365 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6367 2014-02-19 Tom Tromey <tromey@redhat.com>
6369 * target-delegates.c: Rebuild.
6370 * target.c (update_current_target): Don't inherit or default
6372 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target-delegates.c: Rebuild.
6377 * target.c (update_current_target): Don't inherit or default
6379 * target.h (struct target_ops) <to_trace_stop>: Use
6380 TARGET_DEFAULT_NORETURN.
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target-delegates.c: Rebuild.
6385 * target.c (update_current_target): Don't inherit or default
6386 to_get_tracepoint_status.
6387 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6388 TARGET_DEFAULT_NORETURN.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target-delegates.c: Rebuild.
6393 * target.c (update_current_target): Don't inherit or default
6394 to_get_trace_status.
6395 * target.h (struct target_ops) <to_get_trace_status>: Use
6396 TARGET_DEFAULT_RETURN.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target-delegates.c: Rebuild.
6401 * target.c (update_current_target): Don't inherit or default
6403 * target.h (struct target_ops) <to_trace_start>: Use
6404 TARGET_DEFAULT_NORETURN.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target-delegates.c: Rebuild.
6409 * target.c (update_current_target): Don't inherit or default
6410 to_trace_set_readonly_regions.
6411 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6412 Use TARGET_DEFAULT_NORETURN.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (update_current_target): Don't inherit or default
6418 to_disable_tracepoint.
6419 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6420 TARGET_DEFAULT_NORETURN.
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target-delegates.c: Rebuild.
6425 * target.c (update_current_target): Don't inherit or default
6426 to_enable_tracepoint.
6427 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6428 TARGET_DEFAULT_NORETURN.
6430 2014-02-19 Tom Tromey <tromey@redhat.com>
6432 * target-delegates.c: Rebuild.
6433 * target.c (update_current_target): Don't inherit or default
6434 to_download_trace_state_variable.
6435 * target.h (struct target_ops) <to_download_trace_state_variable>:
6436 Use TARGET_DEFAULT_NORETURN.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target-delegates.c: Rebuild.
6441 * target.c (update_current_target): Don't inherit or default
6442 to_can_download_tracepoint.
6443 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6444 TARGET_DEFAULT_RETURN.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target-delegates.c: Rebuild.
6449 * target.c (update_current_target): Don't inherit or default
6450 to_download_tracepoint.
6451 * target.h (struct target_ops) <to_download_tracepoint>: Use
6452 TARGET_DEFAULT_NORETURN.
6454 2014-02-19 Tom Tromey <tromey@redhat.com>
6456 * target-delegates.c: Rebuild.
6457 * target.c (update_current_target): Don't inherit or default
6459 * target.h (struct target_ops) <to_trace_init>: Use
6460 TARGET_DEFAULT_RETURN.
6462 2014-02-19 Tom Tromey <tromey@redhat.com>
6464 * target-delegates.c: Rebuild.
6465 * target.c (update_current_target): Don't inherit or default
6466 to_supports_string_tracing.
6467 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6468 TARGET_DEFAULT_RETURN.
6470 2014-02-19 Tom Tromey <tromey@redhat.com>
6472 * target-delegates.c: Rebuild.
6473 * target.c (update_current_target): Don't inherit or default
6474 to_supports_enable_disable_tracepoint.
6475 * target.h (struct target_ops)
6476 <to_supports_enable_disable_tracepoint>: Use
6477 TARGET_DEFAULT_RETURN.
6479 2014-02-19 Tom Tromey <tromey@redhat.com>
6481 * target-delegates.c: Rebuild.
6482 * target.c (update_current_target): Don't inherit or default
6483 to_supports_multi_process.
6484 * target.h (struct target_ops) <to_supports_multi_process>: Use
6485 TARGET_DEFAULT_RETURN.
6487 2014-02-19 Tom Tromey <tromey@redhat.com>
6489 * target-delegates.c: Rebuild.
6490 * target.c (update_current_target): Don't inherit or default
6491 to_get_ada_task_ptid.
6492 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6493 TARGET_DEFAULT_FUNC.
6495 2014-02-19 Tom Tromey <tromey@redhat.com>
6497 * target-delegates.c: Rebuild.
6498 * target.c (update_current_target): Don't inherit or default
6499 to_thread_architecture.
6500 * target.h (struct target_ops) <to_thread_architecture>: Use
6501 TARGET_DEFAULT_FUNC.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (update_current_target): Don't inherit or default
6507 to_execution_direction.
6508 * target.h (struct target_ops) <to_execution_direction>: Use
6509 TARGET_DEFAULT_FUNC.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (update_current_target): Don't inherit or default
6515 to_can_execute_reverse.
6516 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6517 TARGET_DEFAULT_RETURN.
6518 (target_can_execute_reverse): Unconditionally delegate.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (update_current_target): Don't inherit or default
6525 (dummy_goto_bookmark): Remove.
6526 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6527 * target.h (struct target_ops) <to_goto_bookmark>: Use
6528 TARGET_DEFAULT_NORETURN.
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
6535 (dummy_get_bookmark): Remove.
6536 (init_dummy_target): Don't inherit or default to_get_bookmark.
6537 * target.h (struct target_ops) <to_get_bookmark>: Use
6538 TARGET_DEFAULT_NORETURN
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target-delegates.c: Rebuild.
6543 * target.c (update_current_target): Don't inherit or default
6544 to_make_corefile_notes.
6545 (init_dummy_target): Don't initialize to_make_corefile_notes.
6546 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6547 TARGET_DEFAULT_FUNC.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target-delegates.c: Rebuild.
6552 * target.c (update_current_target): Don't inherit or default
6553 to_find_memory_regions.
6554 (init_dummy_target): Don't initialize to_find_memory_regions.
6555 * target.h (struct target_ops) <to_find_memory_regions>: Use
6556 TARGET_DEFAULT_FUNC.
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target-delegates.c: Rebuild.
6561 * target.c (update_current_target): Don't inherit or default
6563 * target.h (struct target_ops) <to_log_command>: Use
6564 TARGET_DEFAULT_IGNORE.
6565 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
6572 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6573 TARGET_DEFAULT_RETURN.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * target-delegates.c: Rebuild.
6578 * target.c (update_current_target): Don't inherit or default
6580 (target_thread_name): Unconditionally delegate.
6581 * target.h (struct target_ops) <to_thread_name>: Use
6582 TARGET_DEFAULT_RETURN.
6584 2014-02-19 Tom Tromey <tromey@redhat.com>
6586 * target-delegates.c: Rebuild.
6587 * target.c (update_current_target): Don't inherit or default
6588 to_extra_thread_info.
6589 * target.h (struct target_ops) <to_extra_thread_info>: Use
6590 TARGET_DEFAULT_RETURN.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target-delegates.c: Rebuild.
6595 * target.c (update_current_target): Don't inherit or default
6597 * target.h (struct target_ops) <to_has_exited>: Use
6598 TARGET_DEFAULT_RETURN..
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6604 to_set_syscall_catchpoint.
6605 (return_one): Remove.
6606 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6607 TARGET_DEFAULT_RETURN.
6609 2014-02-19 Tom Tromey <tromey@redhat.com>
6611 * target-delegates.c: Rebuild.
6612 * target.c (update_current_target): Don't inherit or default
6613 to_insert_exec_catchpoint.
6614 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6615 TARGET_DEFAULT_RETURN.
6617 2014-01-08 Tom Tromey <tromey@redhat.com>
6619 * target-delegates.c: Rebuild.
6620 * target.c (update_current_target): Don't inherit or default
6621 to_insert_exec_catchpoint.
6622 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6623 TARGET_DEFAULT_RETURN.
6625 2014-02-19 Tom Tromey <tromey@redhat.com>
6627 * target-delegates.c: Rebuild.
6628 * target.c (update_current_target): Don't inherit or default
6629 to_remove_vfork_catchpoint.
6630 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6631 TARGET_DEFAULT_RETURN.
6633 2014-02-19 Tom Tromey <tromey@redhat.com>
6635 * target-delegates.c: Rebuild.
6636 * target.c (update_current_target): Don't inherit or default
6637 to_insert_vfork_catchpoint.
6638 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6639 TARGET_DEFAULT_RETURN.
6641 2014-02-19 Tom Tromey <tromey@redhat.com>
6643 * target-delegates.c: Rebuild.
6644 * target.c (update_current_target): Don't inherit or default
6645 to_remove_fork_catchpoint.
6646 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6647 TARGET_DEFAULT_RETURN.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target-delegates.c: Rebuild.
6652 * target.c (update_current_target): Don't inherit or default
6653 to_insert_fork_catchpoint.
6654 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6655 TARGET_DEFAULT_RETURN.
6657 2014-02-19 Tom Tromey <tromey@redhat.com>
6659 * target-delegates.c: Rebuild.
6660 * target.c (update_current_target): Don't inherit or default
6661 to_post_startup_inferior.
6662 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6663 TARGET_DEFAULT_IGNORE.
6665 2014-02-19 Tom Tromey <tromey@redhat.com>
6667 * target-delegates.c: Rebuild.
6668 * target.c (update_current_target): Don't inherit or default
6670 * target.h (struct target_ops) <to_load>: Use
6671 TARGET_DEFAULT_NORETURN.
6673 2014-02-19 Tom Tromey <tromey@redhat.com>
6675 * target-delegates.c: Rebuild.
6676 * target.c (update_current_target): Don't inherit or default
6678 * target.h (struct target_ops) <to_terminal_info>: Use
6679 TARGET_DEFAULT_FUNC.
6681 2014-02-19 Tom Tromey <tromey@redhat.com>
6683 * target-delegates.c: Rebuild.
6684 * target.c (update_current_target): Don't inherit or default
6685 to_terminal_save_ours.
6686 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6687 TARGET_DEFAULT_IGNORE.
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target-delegates.c: Rebuild.
6692 * target.c (update_current_target): Don't inherit or default
6694 * target.h (struct target_ops) <to_terminal_ours>: Use
6695 TARGET_DEFAULT_IGNORE.
6697 2014-02-19 Tom Tromey <tromey@redhat.com>
6699 * target-delegates.c: Rebuild.
6700 * target.c (update_current_target): Don't inherit or default
6701 to_terminal_ours_for_output.
6702 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6703 TARGET_DEFAULT_IGNORE.
6705 2014-02-19 Tom Tromey <tromey@redhat.com>
6707 * target-delegates.c: Rebuild.
6708 * target.c (update_current_target): Don't inherit or default
6709 to_terminal_inferior.
6710 * target.h (struct target_ops) <to_terminal_inferior>: Use
6711 TARGET_DEFAULT_IGNORE.
6713 2014-02-19 Tom Tromey <tromey@redhat.com>
6715 * target-delegates.c: Rebuild.
6716 * target.c (update_current_target): Don't inherit or default
6718 * target.h (struct target_ops) <to_terminal_init>: Use
6719 TARGET_DEFAULT_IGNORE.
6721 2014-02-19 Tom Tromey <tromey@redhat.com>
6723 * target-delegates.c: Rebuild.
6724 * target.c (update_current_target): Don't inherit or default
6725 to_can_accel_watchpoint_condition.
6726 * target.h (struct target_ops)
6727 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target-delegates.c: Rebuild.
6732 * target.c (update_current_target): Don't inherit or default
6733 to_region_ok_for_hw_watchpoint.
6734 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6735 Use TARGET_DEFAULT_FUNC.
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6739 * target-delegates.c: Rebuild.
6740 * target.c (update_current_target): Don't inherit or default
6741 to_watchpoint_addr_within_range.
6742 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6743 Use TARGET_DEFAULT_FUNC.
6745 2014-02-19 Tom Tromey <tromey@redhat.com>
6747 * target-delegates.c: Rebuild.
6748 * target.c (update_current_target): Don't inherit or default
6749 to_remove_watchpoint.
6750 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6751 TARGET_DEFAULT_NORETURN.
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * target-delegates.c: Rebuild.
6756 * target.c (update_current_target): Don't inherit or default
6757 to_insert_watchpoint.
6758 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6759 TARGET_DEFAULT_RETURN.
6761 2014-02-19 Tom Tromey <tromey@redhat.com>
6763 * target-delegates.c: Rebuild.
6764 * target.c (update_current_target): Don't inherit or default
6765 to_remove_hw_breakpoint.
6766 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6767 TARGET_DEFAULT_RETURN.
6769 2014-02-19 Tom Tromey <tromey@redhat.com>
6771 * target-delegates.c: Rebuild.
6772 * target.c (update_current_target): Don't inherit or default
6773 to_insert_hw_breakpoint.
6774 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6775 TARGET_DEFAULT_RETURN.
6777 2014-02-19 Tom Tromey <tromey@redhat.com>
6779 * target-delegates.c: Rebuild.
6780 * target.c (update_current_target): Don't inherit or default
6781 to_can_use_hw_breakpoint.
6782 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6783 TARGET_DEFAULT_RETURN.
6785 2014-02-19 Tom Tromey <tromey@redhat.com>
6787 * target-delegates.c: Rebuild.
6788 * target.c (update_current_target): Don't inherit or default
6790 * target.h (struct target_ops) <to_files_info>: Use
6791 TARGET_DEFAULT_IGNORE.
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * target-delegates.c: Rebuild.
6796 * target.c (update_current_target): Don't inherit or default
6798 * target.h (struct target_ops) <to_store>: Use
6799 TARGET_DEFAULT_NORETURN.
6801 2014-02-19 Tom Tromey <tromey@redhat.com>
6803 * target-delegates.c: Rebuild.
6804 * target.c (update_current_target): Don't inherit or default
6806 * target.h (struct target_ops) <to_post_attach>: Use
6807 TARGET_DEFAULT_IGNORE.
6809 2014-02-19 Tom Tromey <tromey@redhat.com>
6811 * target-delegates.c: Rebuild.
6812 * target.c (update_current_target): Don't inherit or default
6814 (default_rcmd): New function.
6815 (do_monitor_command): Unconditionally delegate.
6816 * target.h (struct target_ops) <to_rmcd>: Use
6817 TARGET_DEFAULT_FUNC.
6819 2014-02-19 Tom Tromey <tromey@redhat.com>
6821 * target-delegates.c: Rebuild.
6822 * target.c (init_dummy_target): Don't initialize to_attach.
6823 (target_attach): Unconditionally delegate.
6824 * target.h (struct target_ops) <to_attach>: Use
6825 TARGET_DEFAULT_FUNC.
6827 2014-02-19 Tom Tromey <tromey@redhat.com>
6829 * target-delegates.c: Rebuild.
6830 * target.c (target_detach): Unconditionally delegate.
6831 (init_dummy_target): Don't initialize to_detach.
6832 * target.h (struct target_ops) <to_detach>: Use
6833 TARGET_DEFAULT_IGNORE.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6839 (target_augmented_libraries_svr4_read): Add argument.
6840 * target.c (update_current_target): Update.
6841 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6844 2014-02-19 Tom Tromey <tromey@redhat.com>
6846 * target.h (struct target_ops) <to_call_history_range>: Add
6848 * target.c (target_call_history_range): Add argument.
6849 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6851 (record_btrace_call_history_from): Update.
6853 2014-02-19 Tom Tromey <tromey@redhat.com>
6855 * target.h (struct target_ops) <to_call_history_from>: Add
6857 * target.c (target_call_history_from): Add argument.
6858 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6861 2014-02-19 Tom Tromey <tromey@redhat.com>
6863 * target.h (struct target_ops) <to_call_history>: Add argument.
6864 * target.c (target_call_history): Add argument.
6865 * record-btrace.c (record_btrace_call_history): Add 'self'
6868 2014-02-19 Tom Tromey <tromey@redhat.com>
6870 * target.h (struct target_ops) <to_insn_history_range>: Add
6872 * target.c (target_insn_history_range): Add argument.
6873 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6875 (record_btrace_insn_history_from): Update.
6877 2014-02-19 Tom Tromey <tromey@redhat.com>
6879 * target.h (struct target_ops) <to_insn_history_from>: Add
6881 * target.c (target_insn_history_from): Add argument.
6882 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6885 2014-02-19 Tom Tromey <tromey@redhat.com>
6887 * target.h (struct target_ops) <to_insn_history>: Add argument.
6888 * target.c (target_insn_history): Add argument.
6889 * record-btrace.c (record_btrace_insn_history): Add 'self'
6892 2014-02-19 Tom Tromey <tromey@redhat.com>
6894 * target.h (struct target_ops) <to_goto_record>: Add argument.
6895 * target.c (target_goto_record): Add argument.
6896 * record-full.c (record_full_goto): Add 'self' argument.
6897 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6899 2014-02-19 Tom Tromey <tromey@redhat.com>
6901 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6902 * target.c (target_goto_record_end): Add argument.
6903 * record-full.c (record_full_goto_end): Add 'self' argument.
6904 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target.h (struct target_ops) <to_goto_record_begin>: Add
6910 * target.c (target_goto_record_begin): Add argument.
6911 * record-full.c (record_full_goto_begin): Add 'self' argument.
6912 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6915 2014-02-19 Tom Tromey <tromey@redhat.com>
6917 * target.h (struct target_ops) <to_record_is_replaying>: Add
6919 * target.c (target_record_is_replaying): Add argument.
6920 * record-full.c (record_full_is_replaying): Add 'self' argument.
6921 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6923 (record_btrace_xfer_partial, record_btrace_store_registers)
6924 (record_btrace_prepare_to_store, record_btrace_resume)
6925 (record_btrace_wait, record_btrace_decr_pc_after_break)
6926 (record_btrace_find_new_threads, record_btrace_thread_alive):
6929 2014-02-19 Tom Tromey <tromey@redhat.com>
6931 * target.h (struct target_ops) <to_delete_record>: Add argument.
6932 * target.c (target_delete_record): Add argument.
6933 * record-full.c (record_full_delete): Add 'self' argument.
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6937 * target.h (struct target_ops) <to_save_record>: Add argument.
6938 * target.c (target_save_record): Add argument.
6939 * record-full.c (record_full_save): Add 'self' argument.
6940 (record_full_save): Add 'self' argument.
6942 2014-02-19 Tom Tromey <tromey@redhat.com>
6944 * target.h (struct target_ops) <to_info_record>: Add argument.
6945 * target.c (target_info_record): Add argument.
6946 * record.c (info_record_command): Add argument.
6947 * record-full.c (record_full_info): Add 'self' argument.
6948 * record-btrace.c (record_btrace_info): Add 'self' argument.
6950 2014-02-19 Tom Tromey <tromey@redhat.com>
6952 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6953 * target.c (target_stop_recording): Add argument.
6954 * record.c (record_stop): Add argument.
6955 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6958 2014-02-19 Tom Tromey <tromey@redhat.com>
6960 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6961 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6962 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6964 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6965 (_initialize_amd64_linux_nat): Use it.
6966 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6967 (_initialize_i386_linux_nat): Use it.
6969 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6972 * target.c (target_teardown_btrace): Add argument.
6973 * remote.c (remote_teardown_btrace): Add 'self' argument.
6974 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6976 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6982 * target.c (target_disable_btrace): Add argument.
6983 * remote.c (remote_disable_btrace): Add 'self' argument.
6984 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6986 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6992 * target.c (target_enable_btrace): Add argument.
6993 * remote.c (remote_enable_btrace): Add 'self' argument.
6994 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6996 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6999 2014-02-19 Tom Tromey <tromey@redhat.com>
7001 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7002 (target_can_use_agent): Add argument.
7003 * target.c (update_current_target): Update.
7004 * remote.c (remote_can_use_agent): Add 'self' argument.
7005 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7007 2014-02-19 Tom Tromey <tromey@redhat.com>
7009 * target.h (struct target_ops) <to_use_agent>: Add argument.
7010 (target_use_agent): Add argument.
7011 * target.c (update_current_target): Update.
7012 * remote.c (remote_use_agent): Add 'self' argument.
7013 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7015 2014-02-19 Tom Tromey <tromey@redhat.com>
7017 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7018 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7019 (target_traceframe_info): Add argument.
7020 * target.c (update_current_target): Update.
7021 * remote.c (remote_traceframe_info): Add 'self' argument.
7022 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7024 2014-02-19 Tom Tromey <tromey@redhat.com>
7026 * target.h (target_static_tracepoint_markers_by_strid): Add
7028 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7030 * target.c (update_current_target): Update.
7031 * remote.c (struct target_ops)
7032 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7033 * linux-nat.c (struct target_ops)
7034 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7036 2014-02-19 Tom Tromey <tromey@redhat.com>
7038 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7040 (target_static_tracepoint_marker_at): Add argument.
7041 * target.c (update_current_target): Update.
7042 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7048 (target_set_permissions): Add argument.
7049 * target.c (update_current_target): Update.
7050 * remote.c (remote_set_permissions): Add 'self' argument.
7051 (remote_start_remote): Update.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7056 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7057 (target_get_tib_address): Add argument.
7058 * target.c (update_current_target): Update.
7059 * remote.c (remote_get_tib_address): Add 'self' argument.
7061 2014-02-19 Tom Tromey <tromey@redhat.com>
7063 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7064 (target_set_trace_notes): Add argument.
7065 * target.c (update_current_target): Update.
7066 * remote.c (remote_set_trace_notes): Add 'self' argument.
7068 2014-02-19 Tom Tromey <tromey@redhat.com>
7070 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7072 (target_set_trace_buffer_size): Add argument.
7073 * target.c (update_current_target): Update.
7074 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7076 2014-02-19 Tom Tromey <tromey@redhat.com>
7078 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7080 (target_set_circular_trace_buffer): Add argument.
7081 * target.c (update_current_target): Update.
7082 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7089 (target_set_disconnected_tracing): Add argument.
7090 * target.c (update_current_target): Update.
7091 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7093 2014-02-19 Tom Tromey <tromey@redhat.com>
7095 * target.h (struct target_ops)
7096 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7097 (target_get_min_fast_tracepoint_insn_len): Add argument.
7098 * target.c (update_current_target): Update.
7099 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7102 2014-02-19 Tom Tromey <tromey@redhat.com>
7104 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7106 (target_get_raw_trace_data): Add argument.
7107 * target.c (update_current_target): Update.
7108 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7110 2014-02-19 Tom Tromey <tromey@redhat.com>
7112 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7114 (target_upload_trace_state_variables): Add argument.
7115 * target.c (update_current_target): Update.
7116 * remote.c (remote_upload_trace_state_variables): Add 'self'
7118 (remote_start_remote): Update.
7120 2014-02-19 Tom Tromey <tromey@redhat.com>
7122 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7124 (target_upload_tracepoints): Add argument.
7125 * target.c (update_current_target): Update.
7126 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7127 (remote_start_remote): Update.
7129 2014-02-19 Tom Tromey <tromey@redhat.com>
7131 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7132 (target_save_trace_data): Add argument.
7133 * target.c (update_current_target): Update.
7134 * remote.c (remote_save_trace_data): Add 'self' argument.
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7140 * target.h (struct target_ops)
7141 <to_get_trace_state_variable_value>: Add argument.
7142 (target_get_trace_state_variable_value): Add argument.
7143 * target.c (update_current_target): Update.
7144 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7146 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7148 2014-02-19 Tom Tromey <tromey@redhat.com>
7150 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7151 * target.h (struct target_ops) <to_trace_find>: Add argument.
7152 (target_trace_find): Add argument.
7153 * target.c (update_current_target): Update.
7154 * remote.c (remote_trace_find): Add 'self' argument.
7155 * ctf.c (ctf_trace_find): Add 'self' argument.
7157 2014-02-19 Tom Tromey <tromey@redhat.com>
7159 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7160 (target_trace_stop): Add argument.
7161 * target.c (update_current_target): Update.
7162 * remote.c (remote_trace_stop): Add 'self' argument.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7167 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7169 (target_get_tracepoint_status): Add argument.
7170 * target.c (update_current_target): Update.
7171 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7176 * target.h (struct target_ops) <to_get_trace_status>: Add
7178 (target_get_trace_status): Add argument.
7179 * target.c (update_current_target): Update.
7180 * remote.c (remote_get_trace_status): Add 'self' argument.
7181 (remote_start_remote, remote_can_download_tracepoint): Update.
7182 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target.h (struct target_ops) <to_trace_start>: Add argument.
7187 (target_trace_start): Add argument.
7188 * target.c (update_current_target): Update.
7189 * remote.c (remote_trace_start): Add 'self' argument.
7191 2014-02-19 Tom Tromey <tromey@redhat.com>
7193 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7195 (target_trace_set_readonly_regions): Add argument.
7196 * target.c (update_current_target): Update.
7197 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7204 (target_disable_tracepoint): Add argument.
7205 * target.c (update_current_target): Update.
7206 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7208 2014-02-19 Tom Tromey <tromey@redhat.com>
7210 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7212 (target_enable_tracepoint): Add argument.
7213 * target.c (update_current_target): Update.
7214 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7216 2014-02-19 Tom Tromey <tromey@redhat.com>
7218 * target.h (struct target_ops) <to_download_trace_state_variable>:
7220 (target_download_trace_state_variable): Add argument.
7221 * target.c (update_current_target): Update.
7222 * remote.c (remote_download_trace_state_variable): Add 'self'
7225 2014-02-19 Tom Tromey <tromey@redhat.com>
7227 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7229 (target_can_download_tracepoint): Add argument.
7230 * target.c (update_current_target): Update.
7231 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7233 2014-02-19 Tom Tromey <tromey@redhat.com>
7235 * target.h (struct target_ops) <to_download_tracepoint>: Add
7237 (target_download_tracepoint): Add argument.
7238 * target.c (update_current_target): Update.
7239 * remote.c (remote_download_tracepoint): Add 'self' argument.
7241 2014-02-19 Tom Tromey <tromey@redhat.com>
7243 * target.h (struct target_ops) <to_trace_init>: Add argument.
7244 (target_trace_init): Add argument.
7245 * target.c (update_current_target): Update.
7246 * remote.c (remote_trace_init): Add 'self' argument.
7248 2014-02-19 Tom Tromey <tromey@redhat.com>
7250 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7251 * target.c (target_fileio_readlink): Add argument.
7252 * remote.c (remote_hostio_readlink): Add 'self' argument.
7253 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7255 2014-02-19 Tom Tromey <tromey@redhat.com>
7257 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7258 * target.c (target_fileio_unlink): Add argument.
7259 * remote.c (remote_hostio_unlink): Add 'self' argument.
7260 (remote_file_delete): Update.
7261 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7266 * target.c (target_fileio_close): Add argument.
7267 * remote.c (remote_hostio_close): Add 'self' argument.
7268 (remote_hostio_close_cleanup): Update.
7269 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7271 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7273 2014-02-19 Tom Tromey <tromey@redhat.com>
7275 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7276 * target.c (target_fileio_pread): Add argument.
7277 * remote.c (remote_hostio_pread): Add 'self' argument.
7278 (remote_bfd_iovec_pread, remote_file_get): Update.
7279 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7281 2014-02-19 Tom Tromey <tromey@redhat.com>
7283 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7284 * target.c (target_fileio_pwrite): Add argument.
7285 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7286 (remote_file_put): Update.
7287 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7289 2014-02-19 Tom Tromey <tromey@redhat.com>
7291 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7292 * target.c (target_fileio_open): Add argument.
7293 * remote.c (remote_hostio_open): Add 'self' argument.
7294 (remote_bfd_iovec_open): Add 'self' argument.
7295 (remote_file_put): Add 'self' argument.
7296 (remote_file_get): Add 'self' argument.
7297 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7301 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7303 (target_can_run_breakpoint_commands): Add argument.
7304 * target.c (update_current_target): Update.
7305 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7307 (remote_insert_breakpoint): Add 'self' argument.
7308 (remote_insert_hw_breakpoint): Add 'self' argument.
7309 (remote_can_run_breakpoint_commands): Add 'self' argument.
7311 2014-02-19 Tom Tromey <tromey@redhat.com>
7313 * target.h (struct target_ops)
7314 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7315 (target_supports_evaluation_of_breakpoint_conditions): Add
7317 * target.c (update_current_target): Update.
7318 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7320 (remote_insert_breakpoint): Add 'self' argument.
7321 (remote_insert_hw_breakpoint): Add 'self' argument.
7322 (remote_supports_cond_breakpoints): Add 'self' argument.
7324 2014-02-19 Tom Tromey <tromey@redhat.com>
7326 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7328 (target_supports_string_tracing): Add argument.
7329 * target.c (update_current_target): Update.
7330 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7332 2014-02-19 Tom Tromey <tromey@redhat.com>
7334 * target.h (struct target_ops)
7335 <to_supports_disable_randomization>: Add argument.
7336 * target.c (find_default_supports_disable_randomization): Add
7338 (target_supports_disable_randomization): Add argument.
7339 (find_default_supports_disable_randomization): Add 'self'
7341 * remote.c (extended_remote_supports_disable_randomization): Add
7343 (remote_supports_disable_randomization): Add 'self' argument.
7344 (extended_remote_create_inferior): Update.
7345 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7348 2014-02-19 Tom Tromey <tromey@redhat.com>
7350 * target.h (struct target_ops)
7351 <to_supports_enable_disable_tracepoint>: Add argument.
7352 (target_supports_enable_disable_tracepoint): Add argument.
7353 * target.c (update_current_target): Update.
7354 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7357 2014-02-19 Tom Tromey <tromey@redhat.com>
7359 * target.h (struct target_ops) <to_supports_multi_process>: Add
7361 (target_supports_multi_process): Add argument.
7362 * target.c (update_current_target): Update.
7363 * remote.c (remote_supports_multi_process): Add 'self' argument.
7364 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7366 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7369 2014-02-19 Tom Tromey <tromey@redhat.com>
7371 * target.h (struct target_ops) <to_execution_direction>: Add
7373 (target_execution_direction): Add argument.
7374 * target.c (default_execution_direction): Add 'self' argument.
7375 * record-full.c (record_full_execution_direction): Add 'self'
7378 2014-02-19 Tom Tromey <tromey@redhat.com>
7380 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7382 (target_can_execute_reverse): Add argument.
7383 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7384 * record-full.c (record_full_can_execute_reverse): Add 'self'
7386 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7391 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7392 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7394 (target_get_ada_task_ptid): Add argument.
7395 * target.c (update_current_target): Update.
7396 (default_get_ada_task_ptid): Add 'self' argument.
7397 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7398 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7399 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7401 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7403 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7405 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7407 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7408 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7411 2014-02-19 Tom Tromey <tromey@redhat.com>
7413 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7414 (target_goto_bookmark): Add argument.
7415 * target.c (dummy_goto_bookmark): Add 'self' argument.
7416 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7418 2014-02-19 Tom Tromey <tromey@redhat.com>
7420 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7421 (target_get_bookmark): Add argument.
7422 * target.c (dummy_get_bookmark): Add 'self' argument.
7423 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7429 (target_make_corefile_notes): Add argument.
7430 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7431 * procfs.c (procfs_make_note_section): Add 'self' argument.
7432 (procfs_make_note_section): Add 'self' argument.
7433 (procfs_make_note_section): Add 'self' argument.
7434 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7436 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7437 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7438 * exec.c (exec_make_note_section): Add 'self' argument.
7439 (exec_make_note_section): Add 'self' argument.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target.h (struct target_ops) <to_find_memory_regions>: Add
7445 (target_find_memory_regions): Add argument.
7446 * target.c (dummy_find_memory_regions): Add 'self' argument.
7447 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7448 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7449 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7450 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7451 * exec. (exec_do_find_memory_regions): New global.
7452 (exec_set_find_memory_regions): Rewrite.
7453 (exec_find_memory_regions): New function.
7454 (init_exec_ops): Use exec_find_memory_regions.
7456 2014-02-19 Tom Tromey <tromey@redhat.com>
7458 * target.h (struct target_ops) <to_supports_non_stop>: Add
7460 * target.c (find_default_supports_non_stop): Add argument.
7461 (target_supports_non_stop): Add argument.
7462 (find_default_supports_non_stop): Add 'self' argument.
7463 * remote.c (remote_supports_non_stop): Add 'self' argument.
7464 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7466 2014-02-19 Tom Tromey <tromey@redhat.com>
7468 * target.h (struct target_ops) <to_log_command>: Add argument.
7469 (target_log_command): Add argument.
7470 * serial.h (serial_log_command): Add 'self' argument.
7471 * serial.c (serial_log_command): Add 'self' argument.
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7475 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7476 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7478 (target_pid_to_exec_file): Add argument.
7479 * target.c (debug_to_pid_to_exec_file): Add argument.
7480 (update_current_target): Update.
7481 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7482 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7483 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7484 (linux_handle_extended_wait): Update.
7485 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7486 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7487 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7488 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7490 2014-02-19 Tom Tromey <tromey@redhat.com>
7492 * target.h (struct target_ops) <to_rcmd>: Add argument.
7493 (target_rcmd): Add argument.
7494 * target.c (debug_to_rcmd): Add argument.
7495 (update_current_target, do_monitor_command): Update.
7496 * remote.c (remote_rcmd): Add 'self' argument.
7497 * monitor.c (monitor_rcmd): Add 'self' argument.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * windows-nat.c (windows_stop): Add 'self' argument.
7502 * target.h (struct target_ops) <to_stop>: Add argument.
7503 * target.c (target_stop): Add argument.
7504 (debug_to_stop): Add argument.
7505 (update_current_target): Update.
7506 * remote.c (remote_stop): Add 'self' argument.
7507 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7508 (gdbsim_cntrl_c): Update.
7509 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7510 * procfs.c (procfs_stop): Add 'self' argument.
7511 * nto-procfs.c (procfs_stop): Add 'self' argument.
7512 * monitor.c (monitor_stop): Add 'self' argument.
7513 (monitor_open): Update.
7514 * linux-nat.c (linux_nat_stop): Add argument.
7515 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7516 * gnu-nat.c (gnu_stop): Add 'self' argument.
7517 * darwin-nat.c (darwin_stop): Add 'self' argument.
7519 2014-02-19 Tom Tromey <tromey@redhat.com>
7521 * target.h (struct target_ops) <to_thread_name>: Add argument.
7522 * target.c (target_thread_name): Add argument.
7523 (update_current_target): Update.
7524 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7526 2014-02-19 Tom Tromey <tromey@redhat.com>
7528 * target.h (struct target_ops) <to_extra_thread_info>: Add
7530 (target_extra_thread_info): Add argument.
7531 * target.c (update_current_target): Update.
7532 * remote.c (remote_threads_extra_info): Add 'self' argument.
7533 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7535 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7536 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7537 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7539 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7541 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7543 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.h (struct target_ops) <to_program_signals>: Add argument.
7549 * target.c (target_program_signals): Add argument.
7550 * remote.c (remote_program_signals): Add 'self' argument.
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7554 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7555 * target.c (target_pass_signals): Add argument.
7556 * remote.c (remote_pass_signals): Add 'self' argument.
7557 (remote_start_remote): Update.
7558 * procfs.c (procfs_pass_signals): Add 'self' argument.
7559 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7560 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7561 (linux_nat_create_inferior, linux_nat_attach): Update.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * windows-nat.c (windows_can_run): Add 'self' argument.
7566 * target.h (struct target_ops) <to_can_run>: Add argument.
7567 (target_can_run): Add argument.
7568 * target.c (debug_to_can_run): Add argument.
7569 (update_current_target): Update.
7570 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7571 * inf-child.c (inf_child_can_run): Add 'self' argument.
7572 * go32-nat.c (go32_can_run): Add 'self' argument.
7574 2014-02-19 Tom Tromey <tromey@redhat.com>
7576 * target.h (struct target_ops) <to_has_exited>: Add argument.
7577 (target_has_exited): Add argument.
7578 * target.c (debug_to_has_exited): Add argument.
7579 (update_current_target): Update.
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7583 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7585 (target_set_syscall_catchpoint): Add argument.
7586 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7588 * target.c (update_current_target): Update.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7594 (target_remove_exec_catchpoint): Add argument.
7595 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7596 (update_current_target): Update.
7597 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7600 2014-02-19 Tom Tromey <tromey@redhat.com>
7602 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7604 (target_insert_exec_catchpoint): Add argument.
7605 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7606 (update_current_target): Update.
7607 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7610 2014-02-19 Tom Tromey <tromey@redhat.com>
7612 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7614 (target_remove_vfork_catchpoint): Add argument.
7615 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7616 (update_current_target): Update.
7617 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7620 2014-02-19 Tom Tromey <tromey@redhat.com>
7622 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7624 (target_insert_vfork_catchpoint): Add argument.
7625 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7626 (update_current_target): Update.
7627 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7634 (target_remove_fork_catchpoint): Add argument.
7635 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7636 (update_current_target): Update.
7637 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7640 2014-02-19 Tom Tromey <tromey@redhat.com>
7642 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7644 (target_insert_fork_catchpoint): Add argument.
7645 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7646 (update_current_target): Update.
7647 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7652 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7654 (target_post_startup_inferior): Add argument.
7655 * target.c (debug_to_post_startup_inferior): Add argument.
7656 (update_current_target): Update.
7657 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7659 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7661 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7663 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7665 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7667 (super_post_startup_inferior): Likewise.
7668 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7670 (super_post_startup_inferior): Likewise.
7671 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7672 Add 'self' argument.
7673 (super_post_startup_inferior): Likewise.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target.h (struct target_ops) <to_load>: Add argument.
7678 * target.c (target_load): Add argument.
7679 (debug_to_load): Add argument.
7680 (update_current_target): Update.
7681 * remote.c (remote_load): Add 'self' argument.
7682 * remote-sim.c (gdbsim_load): Add 'self' argument.
7683 * remote-mips.c (mips_load): Add 'self' argument.
7684 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7685 * monitor.c (monitor_load): Add 'self' argument.
7686 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7691 (target_terminal_info): Add argument.
7692 * target.c (debug_to_terminal_info): Add argument.
7693 (default_terminal_info): Likewise.
7694 * inflow.c (child_terminal_info): Add 'self' argument.
7695 * inferior.h (child_terminal_info): Add 'self' argument.
7696 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7698 2014-02-19 Tom Tromey <tromey@redhat.com>
7700 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7702 (target_terminal_save_ours): Add argument.
7703 * target.c (debug_to_terminal_save_ours): Add argument.
7704 (update_current_target): Update.
7705 * inflow.c (terminal_save_ours): Add 'self' argument.
7706 * inferior.h (terminal_save_ours): Add 'self' argument.
7708 2014-02-19 Tom Tromey <tromey@redhat.com>
7710 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7711 (target_terminal_ours): Add argument.
7712 * target.c (debug_to_terminal_ours): Add argument.
7713 (update_current_target): Update.
7714 * remote.c (remote_terminal_ours): Add 'self' argument.
7715 (remote_close): Update.
7716 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7717 * inflow.c (terminal_ours): Add 'self' argument.
7718 * inferior.h (terminal_ours): Add 'self' argument.
7719 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7721 2014-02-19 Pedro Alves <palves@redhat.com>
7722 Tom Tromey <tromey@redhat.com>
7724 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7726 (target_terminal_ours_for_output): Add argument.
7727 * target.c (debug_to_terminal_ours_for_output): Add argument.
7728 (update_current_target): Update.
7729 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7730 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7731 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target.h (struct target_ops) <to_terminal_inferior>: Add
7737 * target.c (target_terminal_inferior): Add argument.
7738 (update_current_target): Update.
7739 * remote.c (remote_terminal_inferior): Add 'self' argument.
7740 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7741 * inflow.c (terminal_inferior): Add 'self' argument.
7742 * inferior.h (terminal_inferior): Add 'self' argument.
7743 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7744 (go32_terminal_inferior): Add 'self' argument.
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7749 (target_terminal_init): Add argument.
7750 * target.c (debug_to_terminal_init): Add argument.
7751 (update_current_target): Update.
7752 * inflow.c (terminal_init_inferior): Add 'self' argument.
7753 * inferior.h (terminal_init_inferior): Add 'self' argument.
7754 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7755 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * target.h (struct target_ops)
7760 <to_can_accel_watchpoint_condition>: Add argument.
7761 (target_can_accel_watchpoint_condition): Add argument.
7762 * target.c (debug_to_can_accel_watchpoint_condition): Add
7764 (update_current_target): Update.
7765 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7770 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7772 (target_region_ok_for_hw_watchpoint): Add argument.
7773 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7774 (default_region_ok_for_hw_watchpoint): Add argument.
7775 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7776 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7778 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7780 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7782 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7784 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7786 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7788 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7789 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7791 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7792 Add 'self' argument.
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7796 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7798 (target_insert_watchpoint): Add argument.
7799 * target.c (debug_to_insert_watchpoint): Add argument.
7800 (update_current_target): Update.
7801 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7802 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7803 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7804 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7805 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7806 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7808 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7809 (procfs_insert_hw_watchpoint): Add 'self' argument.
7810 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7812 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7814 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7816 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7817 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7819 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7826 (target_remove_watchpoint): Add argument.
7827 * target.c (debug_to_remove_watchpoint): Add argument.
7828 (update_current_target): Update.
7829 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7830 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7831 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7832 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7833 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7834 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7836 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7837 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7839 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7841 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7843 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7844 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7846 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7851 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7853 (target_remove_hw_breakpoint): Add argument.
7854 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7855 (update_current_target): Update.
7856 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7857 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7859 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7860 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7862 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7869 (target_insert_hw_breakpoint): Add argument.
7870 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7871 (update_current_target): Update.
7872 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7873 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7875 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7876 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7877 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7879 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7882 2014-02-19 Tom Tromey <tromey@redhat.com>
7884 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7886 (target_can_use_hardware_watchpoint): Add argument.
7887 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7888 (update_current_target): Update.
7889 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7891 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7893 * remote.c (remote_check_watch_resources): Add 'self' argument.
7894 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7895 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7897 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7898 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7900 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7902 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7904 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7906 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7908 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7910 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7911 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7913 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target.h (struct target_ops) <to_post_attach>: Add argument.
7919 (target_post_attach): Add argument.
7920 * target.c (debug_to_post_attach): Add argument.
7921 (update_current_target): Update.
7922 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7923 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7924 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7925 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7926 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7930 * windows-nat.c (windows_close): Add 'self' argument.
7931 * tracepoint.c (tfile_close): Add 'self' argument.
7932 * target.h (struct target_ops) <to_close>: Add argument.
7933 * target.c (target_close): Add argument.
7934 (update_current_target): Update.
7935 * remote.c (remote_close): Add 'self' argument.
7936 * remote-sim.c (gdbsim_close): Add 'self' argument.
7937 * remote-mips.c (mips_close): Add 'self' argument.
7938 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7939 * record-full.c (record_full_close): Add 'self' argument.
7940 * record-btrace.c (record_btrace_close): Add 'self' argument.
7941 * monitor.h (monitor_close): Add 'self' argument.
7942 * monitor.c (monitor_close): Add 'self' argument.
7943 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7944 * linux-nat.c (linux_nat_close): Add argument.
7945 * go32-nat.c (go32_close): Add 'self' argument.
7946 * exec.c (exec_close_1): Add 'self' argument.
7947 * ctf.c (ctf_close): Add 'self' argument.
7948 * corelow.c (core_close): Add 'self' argument.
7949 (core_close_cleanup): Update.
7950 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7951 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * remote.c (remote_load): New function.
7956 (init_remote_ops): Use it.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7962 * common/linux-btrace.h (linux_supports_btrace): Update.
7963 * remote.c (remote_supports_btrace): Add "self" argument.
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_supports_btrace): Remove.
7966 * target.h (struct target_ops) <to_supports_btrace>: Add
7967 target_ops argument.
7968 (target_supports_btrace): New define.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * record-full.c (record_full_beneath_to_resume_ops)
7973 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7974 (record_full_beneath_to_wait)
7975 (record_full_beneath_to_store_registers_ops)
7976 (record_full_beneath_to_store_registers)
7977 (record_full_beneath_to_xfer_partial_ops)
7978 (record_full_beneath_to_xfer_partial)
7979 (record_full_beneath_to_insert_breakpoint_ops)
7980 (record_full_beneath_to_insert_breakpoint)
7981 (record_full_beneath_to_remove_breakpoint_ops)
7982 (record_full_beneath_to_remove_breakpoint)
7983 (record_full_beneath_to_stopped_by_watchpoint)
7984 (record_full_beneath_to_stopped_data_address)
7985 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7986 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7987 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7988 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7989 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7990 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7991 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7992 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7993 (record_full_resume, record_full_wait_1)
7994 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7995 (record_full_store_registers, record_full_xfer_partial)
7996 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7997 (record_full_async, record_full_core_xfer_partial): Use target
7999 * target-delegates.c: Rebuild.
8000 * target.c (current_xfer_partial): Remove.
8001 (update_current_target): Do not INHERIT or de_fault
8002 to_insert_breakpoint, to_remove_breakpoint,
8003 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8004 to_is_async_p, to_async. Do not set to_xfer_partial field.
8005 (default_xfer_partial): Simplify.
8006 (current_xfer_partial): Remove.
8007 (target_wait, target_resume): Simplify.
8008 (find_default_can_async_p, find_default_is_async_p): Update.
8009 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8010 to_xfer_partial, to_stopped_by_watchpoint,
8011 to_stopped_data_address.
8012 (target_store_registers): Simplify.
8013 (forward_target_remove_breakpoint)
8014 (forward_target_insert_breakpoint): Remove.
8015 (target_remove_breakpoint, target_insert_breakpoint)
8016 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8017 * target.h (struct target_ops) <to_resume, to_wait,
8018 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8019 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8020 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8022 (forward_target_remove_breakpoint)
8023 (forward_target_insert_breakpoint): Remove.
8024 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8026 (record_btrace_insert_breakpoint): Delegate directly.
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8031 * target-delegates.c: New file.
8032 * target.c: Include target-delegates.c.
8033 (init_dummy_target): Call install_dummy_methods.
8034 (complete_target_initialization): Call install_delegators.
8035 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8036 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8037 * make-target-delegates: New file.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * record.c (find_record_target): Use find_target_at.
8042 * target.c (find_target_at): New function.
8043 * target.h (find_target_at): Declare.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8049 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8051 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8052 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8054 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8056 * linux-nat.c (save_sigtrap): Update.
8057 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8058 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8059 (linux_nat_close): Update.
8060 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8062 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8064 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8065 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8066 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8067 (tmp_to_async): Add 'ops' argument.
8068 (record_full_stopped_by_watchpoint, record_full_async)
8069 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8071 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8072 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8073 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8074 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8075 (remote_is_async_p, remote_async): Add 'ops' argument.
8076 (remote_stopped_data_address): Update.
8077 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8078 * target.c (update_current_target)
8079 (find_default_can_async_p, find_default_is_async_p): Update.
8080 (init_dummy_target): Update.
8081 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8082 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8083 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8084 (target_can_async_p, target_is_async_p, target_async)
8085 (target_stopped_by_watchpoint): Update.
8087 2014-02-19 Yao Qi <yao@codesourcery.com>
8090 * gdbarch.sh: Remove startup_gdbarch.
8091 * gdbarch.c: Regenerated.
8092 * gdbarch.h: Likewise.
8094 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8096 * rl78-tdep.c (rl78_g10_register_name): New function.
8097 (rl78_return_value): Add g10 support.
8098 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8101 2014-02-17 Doug Evans <xdje42@gmail.com>
8103 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8104 (SUBDIR_GUILE_SRCS): Ditto.
8105 (scm-gsmob.o): Ditto.
8107 2014-02-17 Yao Qi <yao@codesourcery.com>
8109 * gnu-nat.c (ILL_RPC): Declare defined function.
8111 2014-02-17 Yao Qi <yao@codesourcery.com>
8113 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8114 mach_msg_type_number_t.
8115 (gnu_write_inferior): Likewise.
8117 2014-02-17 Yao Qi <yao@codesourcery.com>
8119 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8121 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8122 (inf_validate_procs, inf_signal): Likewise.
8123 (S_exception_raise_request): Likewise.
8124 (do_mach_notify_dead_name): Likewise.
8125 (steal_exc_port): Likewise.
8126 (gnu_read_inferior): Change 'copy_count''s type to
8127 mach_msg_type_number_t.
8128 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8131 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8133 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8134 flag. Adjust all users; in particular...
8135 (gnu_wait): ..., don't decrement its value in here...
8136 (gnu_create_inferior): ..., and instead set the flag in here,
8137 around the startup_inferior call, and call that one with
8138 START_INFERIOR_TRAPS_EXPECTED.
8140 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8141 (ILL_RPC): ... new macro.
8142 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8143 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8144 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8145 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8146 functions with ILL_RPC macro.
8147 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8148 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8149 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8150 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8151 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8152 (S_proc_getlogin_reply, S_proc_getsid_reply)
8153 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8154 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8155 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8156 (S_proc_getnports_reply, S_proc_is_important_reply)
8157 (S_proc_get_code_reply): New stub functions, generated with
8160 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8161 collected the type check structures.
8163 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8165 2014-02-14 Doug Evans <dje@google.com>
8167 * target.c (target_write_partial): Fix result type.
8169 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8171 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8172 the proper offsets to access fpregset_t.
8174 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8176 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8177 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8178 * h8300-tdep.c (setmachinelist): Remove global.
8179 * hppa-tdep.c (hppa_sigtramp): Remove global.
8180 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8181 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8182 * ravenscar-thread.c (update_target_observer): Remove global.
8183 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8185 2014-02-12 Tom Tromey <tromey@redhat.com>
8187 * common/rsp-low.c: Update comments.
8188 * common/rsp-low.h: Update comments.
8190 2014-02-12 Tom Tromey <tromey@redhat.com>
8192 * common/rsp-low.c (convert_ascii_to_int): Remove.
8193 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8195 2014-02-12 Tom Tromey <tromey@redhat.com>
8197 * common/rsp-low.h (unhexify): Don't declare.
8198 * common/rsp-low.c (unhexify): Remove.
8200 2014-02-12 Tom Tromey <tromey@redhat.com>
8202 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8203 * common/rsp-low.c (convert_int_to_ascii): Remove.
8205 2014-02-12 Tom Tromey <tromey@redhat.com>
8207 * common/rsp-low.h (hexify): Don't declare.
8208 * common/rsp-low.c (hexify): Remove.
8210 2014-02-12 Tom Tromey <tromey@redhat.com>
8212 * common/rsp-low.c (hexify): Never take strlen of argument.
8214 2014-02-12 Tom Tromey <tromey@redhat.com>
8216 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8217 * remote.c (extended_remote_run, remote_rcmd)
8218 (remote_download_trace_state_variable, remote_save_trace_data)
8219 (remote_set_trace_notes): Update.
8220 * tracepoint.c (encode_source_string, tfile_write_status)
8221 (tfile_write_uploaded_tsv): Update.
8223 2014-02-12 Tom Tromey <tromey@redhat.com>
8225 * tracepoint.c: Include rsp-low.h.
8226 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8227 * remote.c: Include rsp-low.h.
8228 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8229 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8230 (remote_unescape_input): Move to common/rsp-low.c.
8231 * common/rsp-low.h: New file.
8232 * common/rsp-low.c: New file.
8233 * Makefile.in (SFILES): Add common/rsp-low.c.
8234 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8235 (COMMON_OBS): Add rsp-low.o.
8236 (rsp-low.o): New target.
8238 2014-02-12 Tom Tromey <tromey@redhat.com>
8240 * utils.h: Include print-utils.h.
8241 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8242 (int_string, core_addr_to_string, core_addr_to_string_nz)
8243 (hex_string, hex_string_custom): Don't declare.
8244 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8245 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8246 (hex_string_custom, int_string, core_addr_to_string)
8247 (core_addr_to_string_nz, host_address_to_string): Move to
8248 common/print-utils.c.
8249 * common/print-utils.h: New file.
8250 * common/print-utils.c: New file
8251 * Makefile.in (SFILES): Add common/print-utils.c.
8252 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8253 (COMMON_OBS): Add print-utils.o.
8254 (print-utils.o): New target.
8256 2014-02-12 Tom Tromey <tromey@redhat.com>
8258 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8260 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8262 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8264 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8266 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8267 if a PT_IO ptrace request returns sucessfully but indicates that 0
8268 bytes were transferred.
8270 2014-02-12 Pedro Alves <palves@redhat.com>
8271 Kevin Buettner <kevinb@redhat.com>
8273 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8274 TYPE_INSTANCE_FLAG_CODE_SPACE.
8276 2014-02-12 Pedro Alves <palves@redhat.com>
8278 * h8300-tdep.c (pseudo_from_raw_register)
8279 (raw_from_pseudo_register): New functions.
8280 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8283 2014-02-12 Pedro Alves <palves@redhat.com>
8285 * h8300-tdep.c (h8300_register_sim_regno): New function.
8286 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8287 gdbarch_register_sim_regno hook.
8289 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8291 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8293 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8295 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8297 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8299 * obsd-tdep.h (obsd_init_abi): New prototype.
8300 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8301 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8302 (obsd_init_abi): New functions.
8303 * i386obsd-tdep.c: Include "obsd-tdep.h".
8304 (i386obsd_init_abi): Call obsd_init_abi.
8305 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8306 (amd64obsd_init_abi): Call obsd_init_abi.
8307 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8308 obsd-tdep.c to gdb_target_obs.
8310 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8312 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8313 double float arguments to 16-byte in the argument slots.
8315 2014-02-11 Doug Evans <xdje42@gmail.com>
8317 * configure.ac: Don't crash if pkg-config is not found and guile
8318 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8320 * configure: Regenerate.
8322 2014-02-11 Yao Qi <yao@codesourcery.com>
8324 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8325 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8326 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8327 * gnu-nat.c (gnu_xfer_memory): Likewise.
8328 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8329 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8330 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8331 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8333 2014-02-11 Yao Qi <yao@codesourcery.com>
8335 * target.h (enum target_xfer_error): Rename to ...
8336 (enum target_xfer_status): ... it. New. All users updated.
8337 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8339 (TARGET_XFER_STATUS_ERROR_P): New macro.
8340 (target_xfer_error_to_string): Remove declaration.
8341 (target_xfer_status_to_string): Declare.
8342 (target_xfer_partial_ftype): Adjust it.
8343 (struct target_ops) <to_xfer_partial>: Return
8344 target_xfer_status. Add argument xfered_len. Update
8346 * target.c (target_xfer_error_to_string): Rename to ...
8347 (target_xfer_status_to_string): ... it. New. All callers
8349 (target_read_live_memory): Likewise. Call target_xfer_partial
8350 instead of target_read.
8351 (memory_xfer_live_readonly_partial): Return
8352 target_xfer_status. Add argument xfered_len.
8353 (raw_memory_xfer_partial): Likewise.
8354 (memory_xfer_partial_1): Likewise.
8355 (memory_xfer_partial): Likewise.
8356 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8357 properly. Update debug message.
8358 (default_xfer_partial, current_xfer_partial): Likewise.
8359 (target_write_partial): Likewise.
8360 (target_read_partial): Likewise. All callers updated.
8361 (read_whatever_is_readable): Likewise.
8362 (target_write_with_progress): Likewise.
8363 (target_read_alloc_1): Likewise.
8365 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8366 * auxv.c (procfs_xfer_auxv): Likewise.
8367 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8368 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8369 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8370 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8371 * corefile.c (read_memory): Adjust.
8372 * corelow.c (core_xfer_partial): Likewise.
8373 * ctf.c (ctf_xfer_partial): Likewise.
8374 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8376 (darwin_xfer_partial): Likewise.
8377 * exec.c (section_table_xfer_memory_partial): Likewise. All
8379 (exec_xfer_partial): Likewise.
8380 * exec.h (section_table_xfer_memory_partial): Update
8382 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8384 (gnu_xfer_partial): Likewise.
8385 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8386 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8387 (ia64_hpux_xfer_solib_got): Likewise.
8388 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8389 type of 'partial_len' to ULONGEST.
8390 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8391 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8392 (linux_nat_xfer_partial): Likewise.
8393 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8394 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8395 * monitor.c (monitor_xfer_memory): Likewise.
8396 (monitor_xfer_partial): Likewise.
8397 * procfs.c (procfs_xfer_partial): Likewise.
8398 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8399 * record-full.c (record_full_xfer_partial): Likewise.
8400 (record_full_core_xfer_partial): Likewise.
8401 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8402 (gdbsim_xfer_partial): Likewise.
8403 * remote.c (remote_write_bytes_aux): Likewise. All callers
8405 (remote_write_bytes, remote_read_bytes): Likewise. All
8407 (remote_flash_erase): Likewise. All callers updated.
8408 (remote_write_qxfer): Likewise. All callers updated.
8409 (remote_read_qxfer): Likewise. All callers updated.
8410 (remote_xfer_partial): Likewise.
8411 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8412 (rs6000_xfer_shared_libraries): Likewise.
8413 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8414 (sol_thread_xfer_partial): Likewise.
8415 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8416 (sparc_xfer_partial): Likewise.
8417 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8419 (spu_xfer_partial): Likewise.
8420 * spu-multiarch.c (spu_xfer_partial): Likewise.
8421 * tracepoint.c (tfile_xfer_partial): Likewise.
8422 * windows-nat.c (windows_xfer_memory): Likewise.
8423 (windows_xfer_shared_libraries): Likewise.
8424 (windows_xfer_partial): Likewise.
8425 * valprint.c: Replace 'target_xfer_error' with
8426 'target_xfer_status' in comments.
8428 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8430 Checked in by Joel Brobecker <brobecker@adacore.com>.
8431 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8433 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8435 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8436 function parameters.
8438 2014-02-10 Will Newton <will.newton@linaro.org>
8440 * elfread.c (elf_rel_plt_read): Look for a .got section if
8441 looking up .got.plt fails.
8442 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8443 on address passed to elf_gnu_ifunc_record_cache.
8444 (elf_gnu_ifunc_resolve_addr): Likewise.
8445 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8447 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8449 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8450 (X_RETTURN): New macro.
8451 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8453 * sparc64-tdep.c (sparc64_init_abi): Hook
8454 sparc_in_function_epilogue_p.
8456 2014-02-10 Gary Benson <gbenson@redhat.com>
8458 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8459 Rename name_matcher to symbol_matcher.
8461 2014-02-10 Gary Benson <gbenson@redhat.com>
8463 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8464 Use expand_symtabs_file_matcher_ftype and
8465 expand_symtabs_symbol_matcher_ftype.
8467 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8469 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8470 (struct ada_symbol_cache): New.
8471 (ada_free_symbol_cache): Forward declare.
8472 (struct ada_pspace_data): New.
8473 (ada_pspace_data_handle): New static global.
8474 (get_ada_pspace_data, ada_pspace_data_cleanup)
8475 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8476 (cache_space, cache): Delete, now folded inside struct
8478 (ada_get_symbol_cache): New function.
8479 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8481 (_initialize_ada_language): Remove initialization of cache_space.
8482 Move call to observer_attach_inferior_exit up, grouping it
8483 with the other observer registrations inside this function.
8484 Rename command to be more general. Add call to
8485 register_program_space_data_with_cleanup.
8487 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8489 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8490 ada_new_objfile_observer.
8491 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8492 (_initialize_tasks): Update uses of ada_new_objfile_observer
8493 and ada_tasks_normal_stop_observer.
8495 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8497 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8498 returned by the 'Length attribute to integer.
8500 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8502 * ada-lang.c (_initialize_ada_language): Initialize
8503 cache_space obstack.
8505 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8507 * ada-lang.c (HASH_SIZE): New macro.
8508 (struct cache_entry): New type.
8509 (cache_space, cache): New static globals.
8510 (ada_clear_symbol_cache, find_entry): New functions.
8511 (lookup_cached_symbol, cache_symbol): Implement.
8512 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8513 (_initialize_ada_language): Attach ada_new_objfile_observer
8514 and ada_free_objfile_observer.
8516 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8518 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8519 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8520 struct block * parameter.
8521 (ada_lookup_symbol_list_worker): Constify local variable "block".
8522 Remove cast which is no longer necessary.
8524 2014-02-10 Doug Evans <xdje42@gmail.com>
8526 Add Guile as an extension language.
8527 * NEWS: Mention Guile scripting.
8528 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8529 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8530 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8531 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8532 (CLIBS): Add GUILE_LIBS.
8533 (install-guile): New rule.
8534 (guile.o): New rule.
8535 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8536 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8537 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8538 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8539 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8540 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8541 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8542 * configure.ac: New option --with-guile.
8543 * configure: Regenerate.
8544 * config.in: Regenerate.
8545 * auto-load.c: Remove #include "python/python.h". Add #include
8546 "gdb/section-scripts.h".
8547 (source_section_scripts): Handle Guile scripts.
8548 (_initialize_auto_load): Add name of Guile objfile script to
8549 scripts-directory help text.
8550 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8551 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8552 (struct breakpoint): New member scm_bp_object.
8553 * defs.h (enum command_control_type): New value guile_control.
8554 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8556 (show_user): Update comment.
8557 (_initialize_cli_cmds): Update help text for "show user". Update help
8558 text for max-user-call-depth.
8559 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8561 (multi_line_command_p): Add guile_control.
8562 (print_command_lines): Handle guile_control.
8563 (execute_control_command, recurse_read_control_structure): Ditto.
8564 (process_next_line): Recognize "guile" commands.
8565 * disasm.c (gdb_disassemble_info): Make non-static.
8566 * disasm.h: #include "dis-asm.h".
8567 (struct gdbarch): Add forward decl.
8568 (gdb_disassemble_info): Declare.
8569 * extension.c: #include "guile/guile.h".
8570 (extension_languages): Add guile.
8571 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8572 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8573 * gdbtypes.c (get_unsigned_type_max): New function.
8574 (get_signed_type_minmax): New function.
8575 * gdbtypes.h (get_unsigned_type_max): Declare.
8576 (get_signed_type_minmax): Declare.
8577 * guile/README: New file.
8578 * guile/guile-internal.h: New file.
8579 * guile/guile.c: New file.
8580 * guile/guile.h: New file.
8581 * guile/scm-arch.c: New file.
8582 * guile/scm-auto-load.c: New file.
8583 * guile/scm-block.c: New file.
8584 * guile/scm-breakpoint.c: New file.
8585 * guile/scm-disasm.c: New file.
8586 * guile/scm-exception.c: New file.
8587 * guile/scm-frame.c: New file.
8588 * guile/scm-gsmob.c: New file.
8589 * guile/scm-iterator.c: New file.
8590 * guile/scm-lazy-string.c: New file.
8591 * guile/scm-math.c: New file.
8592 * guile/scm-objfile.c: New file.
8593 * guile/scm-ports.c: New file.
8594 * guile/scm-pretty-print.c: New file.
8595 * guile/scm-safe-call.c: New file.
8596 * guile/scm-string.c: New file.
8597 * guile/scm-symbol.c: New file.
8598 * guile/scm-symtab.c: New file.
8599 * guile/scm-type.c: New file.
8600 * guile/scm-utils.c: New file.
8601 * guile/scm-value.c: New file.
8602 * guile/lib/gdb.scm: New file.
8603 * guile/lib/gdb/boot.scm: New file.
8604 * guile/lib/gdb/experimental.scm: New file.
8605 * guile/lib/gdb/init.scm: New file.
8606 * guile/lib/gdb/iterator.scm: New file.
8607 * guile/lib/gdb/printing.scm: New file.
8608 * guile/lib/gdb/types.scm: New file.
8609 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8610 (VPATH): Add $(GUILE_SRCDIR).
8611 (GUILE_DIR): New variable.
8612 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8613 (all): Add stamp-guile dependency.
8614 (stamp-guile): New rule.
8615 (clean-guile, install-guile, uninstall-guile): New rules.
8616 (install-only): Add install-guile dependency.
8617 (uninstall): Add uninstall-guile dependency.
8618 (clean): Add clean-guile dependency.
8620 2014-02-09 Doug Evans <xdje42@gmail.com>
8622 Revert this patch (which I approved, mea culpa).
8624 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8626 * Makefile.in (all-lib): Remove.
8627 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8629 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8631 Fix Python stack corruption.
8632 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8635 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8637 * Makefile.in (all-lib): Remove.
8638 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8640 2014-02-07 Doug Evans <dje@google.com>
8642 * extension-priv.h (extension_language_script_ops): Add comment.
8643 (extension_language_ops): Add comment.
8644 (active_ext_lang_state): Fix typo in comment.
8646 2014-02-07 Pedro Alves <palves@redhat.com>
8648 PR breakpoints/16292
8649 * infrun.c (handle_signal_stop) <signal arrives while stepping
8650 over a breakpoint>: Switch back to the stepping thread.
8652 2014-02-07 Yao Qi <yao@codesourcery.com>
8654 * target.c (target_xfer_partial): Return zero if LEN is zero.
8656 2014-02-07 Yao Qi <yao@codesourcery.com>
8658 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8659 (ld_so_xfer_auxv): Likewise.
8660 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8661 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8662 * corelow.c (core_xfer_partial): Likewise.
8663 * ctf.c (ctf_xfer_partial): Likewise.
8664 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8665 (darwin_xfer_partial): Likewise.
8666 * exec.c (exec_xfer_partial): Likewise.
8667 * gnu-nat.c (gnu_xfer_partial): Likewise.
8668 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8669 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8670 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8671 * linux-nat.c (linux_xfer_siginfo): Likewise.
8672 (linux_proc_xfer_spu): Likewise.
8673 * procfs.c (procfs_xfer_partial): Likewise.
8674 * record-full.c (record_full_xfer_partial): Likewise.
8675 (record_full_core_xfer_partial): Likewise.
8676 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8677 * remote.c (remote_write_qxfer): Likewise.
8678 (remote_write_qxfer, remote_read_qxfer): Likewise.
8679 (remote_xfer_partial): Likewise.
8680 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8681 (rs6000_xfer_shared_libraries): Likewise.
8682 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8683 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8684 (spu_xfer_partial): Likewise.
8685 * target.c (memory_xfer_partial_1): Likewise.
8686 * tracepoint.c (tfile_xfer_partial): Likewise.
8687 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8688 (windows_xfer_partial): Likewise.
8690 2014-02-07 Yao Qi <yao@codesourcery.com>
8692 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8694 (core_xfer_shared_libraries_aix): Likewise.
8695 * gdbarch.c, gdbarch.h: Regenerated.
8696 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8697 ULONGEST. Change 'len_avail' type to ULONGEST.
8698 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8699 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8701 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8703 2014-02-07 Yao Qi <yao@codesourcery.com>
8705 * corefile.c (memory_error): Get 'exception' from ERR and pass
8706 'exception' to throw_error.
8708 2014-02-06 Doug Evans <xdje42@gmail.com>
8710 * configure.ac (libpython checking): Remove all but python.o from
8711 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8712 * configure: Regenerate.
8714 * Makefile.in (SFILES): Add extension.c.
8715 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8716 (COMMON_OBS): Add extension.o.
8717 * extension.h: New file.
8718 * extension-priv.h: New file.
8719 * extension.c: New file.
8721 * python/python-internal.h: #include "extension.h".
8722 (gdbpy_auto_load_enabled): Declare.
8723 (gdbpy_apply_val_pretty_printer): Declare.
8724 (gdbpy_apply_frame_filter): Declare.
8725 (gdbpy_preserve_values): Declare.
8726 (gdbpy_breakpoint_cond_says_stop): Declare.
8727 (gdbpy_breakpoint_has_cond): Declare.
8728 (void source_python_script_for_objfile): Delete.
8729 * python/python.c: #include "extension-priv.h".
8730 Delete inclusion of "observer.h".
8731 (extension_language_python): Moved here and renamed from
8732 script_language_python in py-auto-load.c.
8733 Redefined to be of type extension_language_defn.
8734 (python_extension_script_ops): New global.
8735 (python_extension_ops): New global.
8736 (struct python_env): New member previous_active.
8737 (restore_python_env): Call restore_active_ext_lang.
8738 (ensure_python_env): Call set_active_ext_lang.
8739 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8741 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8743 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8745 (gdbpy_eval_from_control_command): Renamed from
8746 eval_python_from_control_command, made static. New arg extlang.
8747 (gdbpy_source_script) Renamed from source_python_script, made static.
8749 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8750 result to int. New arg extlang.
8751 (gdbpy_source_objfile_script): Renamed from
8752 source_python_script_for_objfile, made static. New arg extlang.
8753 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8754 static. New args extlang, extlang_printers. Change result type to
8756 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8757 static. New arg extlang. Rename arg printers to extlang_printers
8758 and change type to ext_lang_type_printers *.
8759 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8760 static. Replace argument arg with extlang, extlang_printers.
8761 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8762 (!HAVE_PYTHON, source_python_script): Delete.
8763 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8764 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8765 (!HAVE_PYTHON, start_type_printers): Delete.
8766 (!HAVE_PYTHON, apply_type_printers): Delete.
8767 (!HAVE_PYTHON, free_type_printers): Delete.
8768 (_initialize_python): Delete call to observer_attach_before_prompt.
8769 (finalize_python): Set/restore active extension language.
8770 (gdbpy_finish_initialization) Renamed from
8771 finish_python_initialization, made static. New arg extlang.
8772 (gdbpy_initialized): New function.
8773 * python/python.h: #include "extension.h". Delete #include
8774 "value.h", "mi/mi-cmds.h".
8775 (extension_language_python): Declare.
8776 (GDBPY_AUTO_FILE_NAME): Delete.
8777 (enum py_bt_status): Moved to extension.h and renamed to
8779 (enum frame_filter_flags): Moved to extension.h.
8780 (enum py_frame_args): Moved to extension.h and renamed to
8781 ext_lang_frame_args.
8782 (finish_python_initialization): Delete.
8783 (eval_python_from_control_command): Delete.
8784 (source_python_script): Delete.
8785 (apply_val_pretty_printer): Delete.
8786 (apply_frame_filter): Delete.
8787 (preserve_python_values): Delete.
8788 (gdbpy_script_language_defn): Delete.
8789 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8790 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8792 * auto-load.c: #include "extension.h".
8793 (GDB_AUTO_FILE_NAME): Delete.
8794 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8795 (script_language_gdb): Delete, moved to extension.c and renamed to
8796 extension_language_gdb.
8797 (source_gdb_script_for_objfile): Delete.
8798 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8799 (loaded_script): Change type of language member to
8800 struct extension_language_defn *.
8801 (init_loaded_scripts_info): Initialize
8802 unsupported_script_warning_printed.
8803 (maybe_add_script): Make static. Change type of language arg to
8804 struct extension_language_defn *.
8805 (clear_section_scripts): Reset unsupported_script_warning_printed.
8806 (auto_load_objfile_script_1): Rewrite to use extension language API.
8807 (auto_load_objfile_script): Make public. Remove support-compiled-in
8808 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8809 (source_section_scripts): Rewrite to use extension language API.
8810 (load_auto_scripts_for_objfile): Rewrite to use
8811 auto_load_scripts_for_objfile.
8812 (collect_matching_scripts_data): Change type of language member to
8813 struct extension_language_defn *.
8814 (auto_load_info_scripts): Change type of language arg to
8815 struct extension_language_defn *.
8816 (unsupported_script_warning_print): New function.
8817 (script_not_found_warning_print): Make static.
8818 (_initialize_auto_load): Rewrite construction of scripts-directory
8820 * auto-load.h (struct objfile): Add forward decl.
8821 (struct script_language): Delete.
8822 (struct auto_load_pspace_info): Add forward decl.
8823 (struct extension_language_defn): Add forward decl.
8824 (maybe_add_script): Delete.
8825 (auto_load_objfile_script): Declare.
8826 (script_not_found_warning_print): Delete.
8827 (auto_load_info_scripts): Update prototype.
8828 (auto_load_gdb_scripts_enabled): Declare.
8829 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8830 auto_load_python_scripts_enabled and made public.
8831 (script_language_python): Delete, moved to python.c.
8832 (gdbpy_script_language_defn): Delete.
8833 (info_auto_load_python_scripts): Update to use
8834 extension_language_python.
8836 * breakpoint.c (condition_command): Replace call to
8837 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8838 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8839 with call to breakpoint_ext_lang_cond_says_stop.
8840 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8841 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8842 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8843 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8845 (local_setattro): Print name of extension language with existing
8848 * valprint.c (val_print, value_print): Update to call
8849 apply_ext_lang_val_pretty_printer.
8850 * cp-valprint.c (cp_print_value): Update call to
8851 apply_ext_lang_val_pretty_printer.
8852 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8853 (gdbpy_apply_val_pretty_printer): Renamed from
8854 apply_val_pretty_printer. New arg extlang.
8855 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8857 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8858 extension language API.
8859 * cli/cli-script.c (execute_control_command): Update to call
8860 eval_ext_lang_from_control_command.
8862 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8863 enum ext_lang_bt_status values. Update call to
8864 apply_ext_lang_frame_filter.
8865 (mi_cmd_stack_list_locals): Ditto.
8866 (mi_cmd_stack_list_args): Ditto.
8867 (mi_cmd_stack_list_variables): Ditto.
8868 * mi/mi-main.c: Delete #include "python/python-internal.h".
8869 Add #include "extension.h".
8870 (mi_cmd_list_features): Replace reference to python internal variable
8871 gdb_python_initialized with call to ext_lang_initialized_p.
8873 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8874 Update to use enum ext_lang_frame_args. Update to call
8875 apply_ext_lang_frame_filter.
8876 * python/py-framefilter.c (extract_sym): Update to use enum
8878 (extract_value, py_print_type, py_print_value): Ditto.
8879 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8880 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8881 (py_print_frame): Ditto.
8882 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8883 New arg extlang. Update to use enum ext_lang_bt_status.
8885 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8886 finish_python_initialization. Replace with call to
8887 finish_ext_lang_initialization.
8889 * typeprint.c (do_free_global_table): Update to call
8890 free_ext_lang_type_printers.
8891 (create_global_typedef_table): Update to call
8892 start_ext_lang_type_printers.
8893 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8894 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8895 (type_print_options): Change type of global_printers from "void *"
8896 to "struct ext_lang_type_printers *".
8898 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8899 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8900 (gdbpy_preserve_values): Renamed from preserve_python_values.
8902 (!HAVE_PYTHON, preserve_python_values): Delete.
8904 * utils.c (quit_flag): Delete, moved to extension.c.
8905 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8908 * eval.c: Delete #include "python/python.h".
8909 * main.c: Delete #include "python/python.h".
8911 * defs.h: Update comment.
8913 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8917 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8919 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8922 2014-02-05 Yao Qi <yao@codesourcery.com>
8924 * remote.c (remote_pass_signals): Remove local 'buf' and use
8926 (remote_program_signals): Likewise.
8928 2014-02-05 Yao Qi <yao@codesourcery.com>
8930 * ctf.c: Include "inferior.h" and "gdbthread.h".
8931 (CTF_PID): A new macro.
8932 (ctf_open): Call inferior_appeared and add_thread_silent.
8933 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8934 (ctf_thread_alive): New function.
8935 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8937 2014-02-05 Yao Qi <yao@codesourcery.com>
8941 2013-05-24 Yao Qi <yao@codesourcery.com>
8943 * tracepoint.c (TFILE_PID): Remove.
8944 (tfile_open): Don't add thread and inferior.
8945 (tfile_close): Don't set 'inferior_ptid'. Don't call
8946 exit_inferior_silent.
8947 (tfile_thread_alive): Remove.
8948 (init_tfile_ops): Don't set field 'to_thread_alive' of
8951 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8953 * remote.c (remote_start_remote): Call remote_check_symbols even
8954 if only symbol-file (not file) has been given.
8956 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8958 * gdbarch.sh (skip_entrypoint): New callback.
8959 * gdbarch.c, gdbarch.h: Regenerate.
8960 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8961 * infrun.c (fill_in_stop_func): Likewise.
8962 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8963 (ppc_elfv2_elf_make_msymbol_special): New function.
8964 (ppc_elfv2_skip_entrypoint): Likewise.
8965 (ppc_linux_init_abi): Install them for ELFv2.
8967 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8969 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8970 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8971 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8972 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8973 structures returned in GPRs.
8975 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8977 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8978 offset to the stack parameter list for the ELFv2 ABI.
8980 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8982 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8983 set_gdbarch_convert_from_func_ptr_addr and
8984 set_gdbarch_elf_make_msymbol_special for ELFv1.
8985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8986 function descriptors on ELFv1.
8987 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8988 set up r12 at function entry.
8990 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8992 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8993 (struct gdbarch_tdep): New member elf_abi.
8995 * rs6000-tdep.c: Include "elf/ppc64.h".
8996 (rs6000_gdbarch_init): Detect ELF ABI version.
8998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9001 within a register pair holding a DFP 128-bit value on little-endian.
9002 (ppc64_sysv_abi_return_value_base): Likewise.
9003 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9004 (dfp_pseudo_register_write): Likewise.
9006 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9009 offset on little-endian when passing _Decimal32.
9010 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9012 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9014 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9015 of the overlapped FP register within the VSX register on little-
9017 (efpr_pseudo_register_write): Likewise.
9019 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9021 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9022 offset on little-endian when passing small structures.
9024 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9026 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9027 (struct ppc64_sysv_argpos): New data structure.
9028 (ppc64_sysv_abi_push_float): Remove.
9029 (ppc64_sysv_abi_push_val): New function.
9030 (ppc64_sysv_abi_push_integer): Likewise.
9031 (ppc64_sysv_abi_push_freg): Likewise.
9032 (ppc64_sysv_abi_push_vreg): Likewise.
9033 (ppc64_sysv_abi_push_param): Likewise.
9034 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9035 (ppc64_sysv_abi_return_value_base): New function.
9036 (ppc64_sysv_abi_return_value): Refactor to use it.
9038 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9040 * NEWS: Document new target powerpc64le-*-linux*.
9042 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9044 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9045 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9047 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9048 register set used in ELF core dumps. Add floating-point register set.
9050 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9052 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9053 dwarf2_to_gdb[] table using symbolic constants. Adjust
9054 penultimate entry from number representing the PC register
9055 to symbolic constant representing the MDR register. Add
9056 constant for the PC register to the end of the table.
9058 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9060 * bsd-kvm.c: Include <sys/param.h>
9062 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9064 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9066 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9068 * ada-lang.h (clear_ada_sym_cache): Delete.
9070 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9072 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9074 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9076 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9077 the sigreturn register save area only if the syscall is
9080 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9082 * valops.c (value_slice): Minor reformatting.
9084 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9086 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9088 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9090 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9092 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9093 (ada_ignore_descriptive_types_p): New static global.
9094 (find_parallel_type_by_descriptive_type): Return immediately
9095 if ada_ignore_descriptive_types_p is set.
9096 (_initialize_ada_language): Register new commands "maintenance
9097 set ada", "maintenance show ada", "maintenance set ada
9098 ignore-descriptive-types" and "maintenance show ada
9099 ignore-descriptive-types".
9100 * NEWS: Add entry for new "maint ada set/show
9101 ignore-descriptive-types" commands.
9103 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9105 * record-btrace.c (record_btrace_close): Call btrace_teardown
9108 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9110 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9113 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9115 * ada-typeprint (type_is_full_subrange_of_target_type):
9117 (print_range): Add parameter bounds_prefered_p. If not set,
9118 try printing range types using the name of their base type.
9119 (print_range_type): Add parameter bounds_prefered_p.
9120 Use it in call to print_range.
9121 (print_array_type, ada_print_type): Update calls to print_range
9122 and print_range_type.
9124 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9126 * ada-typeprint.c (print_array_type, print_choices, print_range)
9127 (print_range_bound, print_dynamic_range_bound, print_range_type):
9130 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9132 * ada-typeprint.c (print_range): Add missing empty line
9133 after local declaration.
9135 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9137 * ada-valprint.c (print_optional_low_bound): Get index_type's
9138 target type for as long as it is a TYPE_CODE_RANGE.
9140 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9142 * procfs.c (procfs_make_note_section): Remove assertion and
9145 2014-01-24 Yao Qi <yao@codesourcery.com>
9147 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9148 * corelow.c (get_core_siginfo): Likewise.
9150 2014-01-24 Yao Qi <yao@codesourcery.com>
9152 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9153 ULONGEST. Don't check 'len' is negative.
9154 (remote_write_bytes): Change type of 'len' to ULONGEST.
9156 2014-01-23 Tom Tromey <tromey@redhat.com>
9159 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9160 Handle exception from frame.block.
9161 (FrameVars.fetch_frame_locals): Likewise.
9163 2014-01-23 Tom Tromey <tromey@redhat.com>
9166 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9167 on a NULL pointer. Move "goto error" to correct place.
9169 2014-01-23 Tom Tromey <tromey@redhat.com>
9172 * python/py-framefilter.c (apply_frame_filter): Call
9173 ensure_python_env after computing gdbarch.
9175 2014-01-23 Yao Qi <yao@codesourcery.com>
9177 * target.c (raw_memory_xfer_partial): Change argument type
9178 from void * to gdb_byte *.
9179 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9181 2014-01-22 Doug Evans <dje@google.com>
9183 New gdbserver option --debug-format=timestamp.
9186 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9188 * syscalls/s390x-linux.xml: New file.
9189 * syscalls/s390-linux.xml: New file.
9190 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9191 (XML_SYSCALL_FILENAME_S390X): Likewise.
9192 (op_svc): New enum value for SVC opcode.
9193 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9194 (s390_linux_get_syscall_number): New function.
9195 (s390_gdbarch_init): Register '*get_syscall_number' and the
9196 syscall xml file name.
9197 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9198 "s390-linux.xml" and "s390x-linux.xml".
9199 * NEWS: Announce new feature.
9201 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9203 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9205 2014-01-22 Pedro Alves <palves@redhat.com>
9207 * xtensa-config.c: Include defs.h.
9209 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9211 * common/common-utils.h: Add "ARI:" comment beside __func__
9214 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9216 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9217 documentation a bit.
9219 2014-01-21 Roland McGrath <mcgrathr@google.com>
9221 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9222 * configure: Regenerate.
9223 * aclocal.m4: Regenerate.
9224 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9225 New substituted variables.
9226 (install-strip): New target.
9227 (INSTALL_SCRIPT): New substituted variable.
9228 (FLAGS_TO_PASS): Add it.
9229 (install-only): Use $(INSTALL_SCRIPT) rather than
9230 $(INSTALL_PROGRAM) for gcore.
9232 2014-01-20 Tom Tromey <tromey@redhat.com>
9234 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9237 2014-01-20 Tom Tromey <tromey@redhat.com>
9239 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9240 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9241 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9242 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9243 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9244 (struct cmd_list_element) <flags>: Remove.
9245 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9246 doc_allocated>: New fields.
9247 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9249 * maint.c (maintenance_do_deprecate): Update.
9250 * top.c (execute_command): Update.
9252 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9254 * xtensa-linux-nat.c: Include asm/ptrace.h.
9256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9258 * Makefile.in (SFILES): Add d-support.c.
9259 (COMMON_OBS): Add d-support.o.
9260 * d-lang.h (d_parse_symbol): Add comment, now defined in
9262 * d-lang.c (parse_call_convention)
9263 (parse_attributes, parse_function_types)
9264 (parse_function_args, parse_type, parse_identifier)
9265 (call_convention_p, d_parse_symbol): Move functions to ...
9266 * d-support.c: ... New file.
9268 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9270 * d-lang.h (d_parse_symbol): Add declaration.
9271 * d-lang.c (extract_identifiers)
9272 (extract_type_info): Remove functions.
9273 (parse_call_convention, parse_attributes)
9274 (parse_function_types, parse_function_args)
9275 (parse_type, parse_identifier, call_convention_p)
9276 (d_parse_symbol): New functions.
9277 (d_demangle): Use d_parse_symbol to demangle D symbols.
9279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9281 * d-lang.h (struct builtin_d_type): New data type.
9282 (builtin_d_type): Add declaration.
9283 * d-lang.c (d_language_arch_info, build_d_types)
9284 (builtin_d_type): New functions.
9285 (enum d_primitive_types): New data type.
9286 (d_language_defn): Change c_language_arch_info to
9287 d_language_arch_info.
9288 (d_type_data): New static variable.
9289 (_initialize_d_language): Initialize d_type_data.
9291 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9293 * d-lang.h (d_main_name): Add declaration.
9294 * d-lang.c (d_main_name): New function.
9295 * symtab.c (find_main_name): Add call to d_main_name.
9297 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9299 * d-lang.c (d_language_defn): Change macro_expansion_c to
9302 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9304 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9306 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9308 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9309 gdb_exception" declaration.
9310 * remote.c (getpkt_or_notif_sane): Likewise.
9312 2014-01-17 Doug Evans <dje@google.com>
9314 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9315 function, contents of dirnames_to_char_ptr_vec_append moved here.
9316 (delim_string_to_char_ptr_vec): New function.
9317 (dirnames_to_char_ptr_vec_append): Rewrite.
9318 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9320 2014-01-17 Doug Evans <dje@google.com>
9322 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9324 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9325 #include "common-utils.h".
9326 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9327 * common/vec.h (VEC_ASSERT_PASS): Update.
9328 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9329 (MACH_CHECK_ERROR): Update.
9331 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9333 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9335 * gdbarch.h: Regenerate.
9337 2014-01-16 Tom Tromey <tromey@redhat.com>
9339 * value.c (struct value) <regnum>: Move earlier.
9341 2014-01-16 Tom Tromey <tromey@redhat.com>
9343 * remote.c (extended_remote_create_inferior): Rename from
9344 extended_remote_create_inferior_1. Add "ops" argument. Remove
9347 2014-01-16 Pedro Alves <palves@redhat.com>
9349 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9350 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9353 2014-01-16 Doug Evans <dje@google.com>
9355 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9359 * btrace.h (btrace_thread_flag): New.
9360 (struct btrace_thread_info) <flags>: New.
9361 * record-btrace.c (record_btrace_resume_thread)
9362 (record_btrace_find_thread_to_move, btrace_step_no_history)
9363 (btrace_step_stopped, record_btrace_start_replaying)
9364 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9365 (record_btrace_find_resume_thread): New.
9366 (record_btrace_resume, record_btrace_wait): Extend.
9367 (record_btrace_can_execute_reverse): New.
9368 (record_btrace_open): Fail in non-stop mode.
9369 (record_btrace_set_replay): Split into this, ...
9370 (record_btrace_stop_replaying): ... this, ...
9371 (record_btrace_clear_histories): ... and this.
9372 (init_record_btrace_ops): Init to_can_execute_reverse.
9373 * NEWS: Announce it.
9375 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9377 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9378 (forward_target_decr_pc_after_break)
9379 (target_decr_pc_after_break): New.
9380 * target.c (forward_target_decr_pc_after_break)
9381 (target_decr_pc_after_break): New.
9382 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9383 instead of gdbarch_decr_pc_after_break.
9384 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9385 instead of gdbarch_decr_pc_after_break.
9386 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9387 instead of gdbarch_decr_pc_after_break.
9388 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9389 instead of gdbarch_decr_pc_after_break.
9390 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9391 instead of gdbarch_decr_pc_after_break.
9392 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9393 instead of gdbarch_decr_pc_after_break.
9395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9397 * btrace.c: Include regcache.h.
9398 (btrace_add_pc): New.
9399 (btrace_enable): Call btrace_add_pc.
9400 (btrace_is_empty): New.
9401 * btrace.h (btrace_is_empty): New.
9402 * record-btrace.c (require_btrace, record_btrace_info): Call
9405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9407 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9408 Support delta reads.
9409 (linux_disable_btrace): Change return type.
9410 * common/linux-btrace.h (linux_read_btrace): Change parameters
9411 and return type to allow error reporting. Update users.
9412 (linux_disable_btrace): Change return type. Update users.
9413 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9415 (btrace_error): New.
9416 (btrace_block) <begin>: Comment on BEGIN == 0.
9417 * btrace.c (btrace_compute_ftrace): Start from the end of
9419 (btrace_stitch_trace, btrace_clear_history): New.
9420 (btrace_fetch): Read delta trace, return if replaying.
9421 (btrace_clear): Move clear history code to btrace_clear_history.
9422 (parse_xml_btrace): Throw an error if parsing failed.
9423 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9424 and return type to allow error reporting.
9425 (target_read_btrace): Change parameters and return type to allow
9427 * target.c (target_read_btrace): Update.
9428 * remote.c (remote_read_btrace): Support delta reads. Pass
9430 * NEWS: Announce it.
9432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9434 * record.h (record_btrace_frame_unwind)
9435 (record_btrace_tailcall_frame_unwind): New declarations.
9436 * dwarf2-frame: Include record.h
9437 (dwarf2_frame_cfa): Throw an error for btrace frames.
9438 * record-btrace.c: Include hashtab.h.
9439 (btrace_get_bfun_name): New.
9440 (btrace_call_history): Call btrace_get_bfun_name.
9441 (struct btrace_frame_cache): New.
9443 (bfcache_hash, bfcache_eq, bfcache_new): New.
9444 (btrace_get_frame_function): New.
9445 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9446 (record_btrace_frame_this_id): Compute own id.
9447 (record_btrace_frame_prev_register): Provide PC, throw_error
9448 for all other registers.
9449 (record_btrace_frame_sniffer): Detect btrace frames.
9450 (record_btrace_tailcall_frame_sniffer): New.
9451 (record_btrace_frame_dealloc_cache): New.
9452 (record_btrace_frame_unwind): Add new functions.
9453 (record_btrace_tailcall_frame_unwind): New.
9454 (_initialize_record_btrace): Allocate cache.
9455 * btrace.c (btrace_clear): Call reinit_frame_cache.
9456 * NEWS: Announce it.
9458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9460 * record-btrace.c (record_btrace_set_replay)
9461 (record_btrace_goto_begin, record_btrace_goto_end)
9462 (record_btrace_goto): New.
9463 (init_record_btrace_ops): Initialize them.
9464 * NEWS: Announce it.
9466 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9468 * record-btrace.c (record_btrace_find_new_threads)
9469 (record_btrace_thread_alive): New.
9470 (init_record_btrace_ops): Initialize to_find_new_threads and
9473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9475 * record-btrace.c (record_btrace_resume): New.
9476 (record_btrace_wait): New.
9477 (init_record_btrace_ops): Initialize to_wait and to_resume.
9479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9481 * record-btrace.c (record_btrace_xfer_partial)
9482 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9483 (record_btrace_allow_memory_access): New.
9484 (init_record_btrace_ops): Initialize new methods.
9485 * target.c (raw_memory_xfer_partial): Bail out if target reports
9486 that this memory is not available.
9488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9490 * target.h (target_ops) <to_insert_breakpoint>
9491 <to_remove_breakpoint>: Add target_ops parameter.
9492 (forward_target_insert_breakpoint): New.
9493 (forward_target_remove_breakpoint): New.
9494 (memory_remove_breakpoint, memory_insert_breakpoint):
9495 Add target_ops parameter.
9496 * target.c (target_insert_breakpoint): Split into this and ...
9497 (forward_target_insert_breakpoint): ... this.
9498 (target_remove_breakpoint): Split into this and ...
9499 (forward_target_remove_breakpoint): ... this.
9500 (debug_to_insert_breakpoint): Add target_ops parameter.
9501 Call forward_target_insert_breakpoint.
9502 (debug_to_remove_breakpoint): Add target_ops parameter.
9503 Call forward_target_remove_breakpoint.
9504 (update_current_target): Do not inherit or default to_insert_breakpoint
9505 and to_remove_breakpoint.
9506 * corelow.c (ignore): Add target_ops parameter.
9507 * exec.c (ignore): Add target_ops parameter.
9508 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9509 Add target_ops parameter.
9510 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9511 Add target_ops parameter.
9512 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9513 Add target_ops parameter.
9514 * record-full.c (record_full_beneath_to_insert_breakpoint)
9515 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9516 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9517 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9518 (record_full_core_remove_breakpoint): Add target_ops parameter.
9520 (record_full_beneath_to_insert_breakpoint_ops)
9521 (record_full_beneath_to_remove_breakpoint_ops)
9522 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9523 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9524 tmp_to_remove_breakpoint_ops,
9525 record_full_beneath_to_insert_breakpoint_ops, and
9526 record_full_beneath_to_remove_breakpoint_ops.
9527 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9528 (m32r_remove_breakpoint): Add target_ops parameter.
9529 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9530 Add target_ops parameter.
9531 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9532 Add target_ops parameter.
9534 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9535 Markus Metzger <markus.t.metzger@intel.com>
9537 * record-btrace.c: Include frame-unwind.h.
9538 (record_btrace_frame_unwind_stop_reason)
9539 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9540 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9542 (init_record_btrace_ops): Install it.
9544 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9546 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9549 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9551 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9554 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9556 * frame-unwind.c: Include target.h.
9557 (frame_unwind_try_unwinder): New function with code from ...
9558 (frame_unwind_find_by_frame): ... here. New variable
9559 unwinder_from_target, call also target_get_unwinder)
9560 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9561 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9562 * target.h (struct target_ops): New fields to_get_unwinder and
9563 to_get_tailcall_unwinder.
9564 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9568 * record-btrace.c (record_btrace_fetch_registers)
9569 (record_btrace_store_registers)
9570 (record_btrace_to_prepare_to_store): New.
9571 (init_record_btrace_ops): Add the above.
9573 2014-01-16 Tom Tromey <tromey@redhat.com>
9575 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9576 * target.h (struct target_ops) <to_prepare_to_store>: Add
9578 (target_prepare_to_store): Add argument.
9579 * target.c (debug_to_prepare_to_store): Add argument.
9580 (update_current_target): Update.
9581 * remote.c (remote_prepare_to_store): Add 'self' argument.
9582 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9583 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9584 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9585 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9587 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9588 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9589 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9590 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9591 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9595 * btrace.h (replay) <replay>: New.
9596 (btrace_is_replaying): New.
9597 * btrace.c (btrace_clear): Free replay iterator.
9598 (btrace_is_replaying): New.
9599 * record-btrace.c (record_btrace_is_replaying): New.
9600 (record_btrace_info): Print insn number if replaying.
9601 (record_btrace_insn_history): Start at replay position.
9602 (record_btrace_call_history): Start at replay position.
9603 (init_record_btrace_ops): Init to_record_is_replaying.
9605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9607 * record-btrace.c (record_btrace_insn_history_range): Include
9609 (record_btrace_insn_history_from): Adjust range.
9610 (record_btrace_call_history_range): Include
9612 (record_btrace_call_history_from): Adjust range.
9613 * NEWS: Announce changes.
9615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9617 * record.h (enum record_print_flag)
9618 <record_print_indent_calls>: New.
9619 * record.c (get_call_history_modifiers): Recognize /c modifier.
9620 (_initialize_record): Document /c modifier.
9621 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9622 Reorder fields. Optionally indent the function name. Update
9624 * NEWS: Announce changes.
9626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9628 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9632 * btrace.c (ftrace_new_function): Start counting at one.
9633 * record-btrace.c (record_btrace_info): Adjust number of calls
9635 * NEWS: Announce it.
9637 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9639 * record-btrace.c (btrace_call_history_insn_range): Print
9640 insn range as [begin, end].
9642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9644 * btrace.h (struct btrace_func_link): New.
9645 (enum btrace_function_flag): New.
9646 (struct btrace_inst): Rename to ...
9647 (struct btrace_insn): ...this. Update all users.
9648 (struct btrace_func) <ibegin, iend>: Remove.
9649 (struct btrace_func_link): New.
9650 (struct btrace_func): Rename to ...
9651 (struct btrace_function): ...this. Update all users.
9652 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9653 (number, level, flags>: New.
9654 (struct btrace_insn_iterator): Rename to ...
9655 (struct btrace_insn_history): ...this.
9657 (struct btrace_insn_iterator, btrace_call_iterator): New.
9658 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9659 (struct btrace_target_info) <begin, end, level>
9660 <insn_history, call_history>: New.
9661 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9662 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9663 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9664 (btrace_call_number, btrace_call_begin, btrace_call_end)
9665 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9666 (btrace_find_function_by_number, btrace_set_insn_history)
9667 (btrace_set_call_history): New.
9668 * btrace.c (btrace_init_insn_iterator)
9669 (btrace_init_func_iterator, compute_itrace): Remove.
9670 (ftrace_print_function_name, ftrace_print_filename)
9671 (ftrace_skip_file): Change
9673 (ftrace_init_func): Remove.
9674 (ftrace_debug): Use new btrace_function fields.
9675 (ftrace_function_switched): Also consider gaining and
9676 losing symbol information).
9677 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9678 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9679 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9681 (ftrace_new_function): Move. Remove debug print.
9682 (ftrace_update_lines, ftrace_update_insns): New.
9683 (ftrace_update_function): Check for call, ret, and jump.
9684 (compute_ftrace): Renamed to ...
9685 (btrace_compute_ftrace): ...this. Rewritten to compute call
9687 (btrace_fetch, btrace_clear): Updated.
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 * record-btrace.c (require_btrace): Use new btrace thread
9697 (record_btrace_info, btrace_insn_history)
9698 (record_btrace_insn_history, record_btrace_insn_history_range):
9699 Use new btrace thread info fields and new iterator.
9700 (btrace_func_history_src_line): Rename to ...
9701 (btrace_call_history_src_line): ...this. Use new btrace
9703 (btrace_func_history): Rename to ...
9704 (btrace_call_history): ...this. Use new btrace thread info
9705 fields and new iterator.
9706 (record_btrace_call_history, record_btrace_call_history_range):
9707 Use new btrace thread info fields and new iterator.
9709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9711 * frame.h (frame_id_build_unavailable_stack_special): New.
9712 * frame.c (frame_id_build_unavailable_stack_special): New.
9714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9716 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9717 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9718 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9720 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9721 (i386_insn_is_jump, i386_jmp_p): New.
9722 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9723 insn_is_jump to gdbarch.
9724 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9725 * gdbarch.h: Regenerated.
9726 * gdbarch.c: Regenerated.
9727 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9728 (default_insn_is_jump): New.
9729 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9730 (default_insn_is_jump): New.
9732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9734 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9736 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9737 (btrace_read_type) <btrace_read_new>: Change to ...
9738 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9742 * common/linux-btrace.c (linux_read_btrace): Free trace from
9745 2014-01-15 Doug Evans <dje@google.com>
9747 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9750 2014-01-15 Tom Tromey <tromey@redhat.com>
9752 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9753 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9754 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9755 (set_objfile_main_name): New function.
9756 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9757 language_of_main>: New fields.
9758 (set_objfile_main_name): Declare.
9759 * symtab.c (find_main_name): Loop over objfiles to find the main
9761 (set_main_name): Now static.
9762 (get_main_info): Add comment.
9763 * symtab.h (set_main_name): Don't declare.
9765 2014-01-15 Tom Tromey <tromey@redhat.com>
9767 * symtab.c (main_progspace_key): New global.
9768 (struct main_info): New.
9769 (name_of_main, language_of_main): Remove.
9770 (get_main_info, main_info_cleanup): New function.
9771 (set_main_name, main_name, main_language): Use get_main_info.
9772 (_initialize_symtab): Initialize main_progspace_key.
9774 2014-01-15 Tom Tromey <tromey@redhat.com>
9776 * dbxread.c (process_one_symbol): Update.
9777 * dwarf2read.c (read_partial_die): Update.
9778 * symfile.c (set_initial_language): Call main_language.
9779 * symtab.c (language_of_main): Now static.
9780 (set_main_name): Add 'lang' parameter.
9781 (find_main_name): Update.
9782 (main_language): New function.
9783 (symtab_observer_executable_changed): Update.
9784 * symtab.h (set_main_name): Update.
9785 (language_of_main): Remove.
9786 (main_language): Declare.
9788 2014-01-15 Tom Tromey <tromey@redhat.com>
9790 * symfile.c (init_entry_point_info): Use new "initialized" field.
9792 * objfiles.h (struct entry_point) <initialized>: New field.
9793 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9794 (struct objfile) <ei>: ...here. Remove.
9795 * objfiles.c (entry_point_address_query): Update.
9797 2014-01-15 Tom Tromey <tromey@redhat.com>
9799 * objfiles.c (entry_point_address_query): Relocate entry point
9801 (objfile_relocate1): Do not relocate entry point address.
9802 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9803 <the_bfd_section_index>: New field.
9804 * symfile.c (init_entry_point_info): Find the entry point's
9807 2014-01-15 Tom Tromey <tromey@redhat.com>
9809 * solib-frv.c (enable_break): Use entry_point_address_query.
9811 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9813 * NEWS: Add note on improved process record-replay on
9814 arm*-linux* targets.
9816 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9818 * arm-tdep.c (enum arm_record_result): New enum.
9819 (arm_record_unsupported_insn): New function.
9820 (arm_record_coproc_data_proc): Removed.
9821 (thumb2_record_ld_st_multiple): New function.
9822 (thumb2_record_ld_st_dual_ex_tbb): New function.
9823 (thumb2_record_data_proc_sreg_mimm): New function.
9824 (thumb2_record_ps_dest_generic): New function.
9825 (thumb2_record_branch_misc_cntrl): New function.
9826 (thumb2_record_str_single_data): New function.
9827 (thumb2_record_ld_mem_hints): New function.
9828 (thumb2_record_ld_word): New function.
9829 (thumb2_record_lmul_lmla_div): New function.
9830 (thumb2_record_decode_insn_handler): New function.
9831 (decode_insn): Add thumb32 instruction handlers.
9833 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9835 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9836 (struct arm_linux_record_tdep): Declare.
9837 (arm_canonicalize_syscall): New function.
9838 (arm_all_but_pc_registers_record): New function.
9839 (arm_linux_syscall_record): New function.
9840 (arm_linux_init_abi): Add syscall recording constructs.
9841 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9842 decoding. (arm_record_coproc_data_proc): Update arm syscall
9844 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9845 <arm_syscall_record>: New field.
9846 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9849 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9851 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9852 register for push instruction recording.
9854 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9856 * arm-tdep.c (thumb_record_misc): Update to correct logical
9857 error while recording ldm, ldmia and pop instructions.
9859 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9861 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9863 2014-01-15 Pedro Alves <palves@redhat.com>
9865 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9866 (go32_resume, go32_fetch_registers, store_register)
9867 (go32_store_registers, go32_prepare_to_store)
9868 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9869 (go32_create_inferior, go32_can_run, go32_terminal_init)
9870 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9873 2014-01-15 Tom Tromey <tromey@redhat.com>
9875 * target.h (async_callback_ftype): New typedef.
9876 (struct target_ops) <to_async>: Use it.
9878 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9880 * python/py-value.c (get_field_type): Remove unnecessary curly
9881 braces for single-statement if block.
9883 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9885 * python/py-type.c (convert_field): Add missing empty line
9888 2014-01-14 Doug Evans <dje@google.com>
9890 * symfile.h (expand_symtabs_matching): Renamed from
9891 expand_partial_symbol_names. Update prototype.
9892 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9893 * symfile.c (expand_symtabs_matching): Renamed from
9894 expand_partial_symbol_names. New args file_matcher, kind.
9895 Rename arg fun to symbol_matcher.
9896 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9897 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9898 ada_expand_partial_symbol_name.
9899 (ada_make_symbol_completion_list): Update to call
9900 expand_symtabs_matching.
9901 (ada_add_global_exceptions): Call expand_symtabs_matching.
9902 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9903 call map_symbol_filenames.
9904 * symtab.c (sources_info): Update to call map_symbol_filenames.
9905 (search_symbols): Call expand_symtabs_matching.
9906 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9907 (default_make_symbol_completion_list_break_on): Update to call
9908 expand_symtabs_matching.
9909 (make_source_files_completion_list): Update to call
9910 map_symbol_filenames.
9912 2014-01-14 Doug Evans <dje@google.com>
9914 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9915 (expand_symtabs_symbol_matcher_ftype): New typedef.
9916 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9917 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9918 * symfile.c (expand_partial_symbol_names): Update to use
9919 expand_symtabs_symbol_matcher_ftype.
9920 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9921 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9922 Arg name_matcher renamed to symbol_matcher.
9923 * psymtab.c (recursively_search_psymtabs): Update to use
9924 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9926 (expand_symtabs_matching_via_partial): Update to use
9927 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9928 Arg name_matcher renamed to symbol_matcher.
9930 2014-01-14 Doug Evans <dje@google.com>
9932 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9933 (map_partial_symbol_filenames): Ditto.
9934 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9935 (map_partial_symbol_filenames): Ditto.
9936 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9937 (map_partial_symbol_filenames): Ditto.
9938 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9939 (map_partial_symbol_filenames): Ditto.
9940 * symtab.c: Delete #include "psymtab.h".
9942 2014-01-14 Pedro Alves <palves@redhat.com>
9943 Tom Tromey <tromey@redhat.com>
9945 * infrun.c (use_displaced_stepping): Use find_record_target
9946 instead of RECORD_IS_USED.
9947 (adjust_pc_after_break): Use record_full_is_used instead of
9949 * record-btrace.c (record_btrace_open): Call record_preopen
9950 instead of checking RECORD_IS_USED.
9951 * record-full.c (record_full_shortname)
9952 (record_full_core_shortname): New globals.
9953 (record_full_is_used): New function.
9954 (find_full_open): Call record_preopen instead of checking
9956 (init_record_full_ops): Set the target's shortname to
9957 record_full_shortname.
9958 (init_record_full_core_ops): Set the target's shortname to
9959 record_full_core_shortname.
9960 * record-full.h (record_full_is_used): Declare.
9961 * record.c (find_record_target): Make extern.
9962 (record_preopen): New function.
9963 * record.h (RECORD_IS_USED): Delete macro.
9964 (find_record_target, record_preopen): Declare functions.
9966 2014-01-14 Yao Qi <yao@codesourcery.com>
9968 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9969 'len''s type to ULONGEST.
9970 (core_xfer_shared_libraries_aix): Likewise.
9971 * gdbarch.c, gdbarch.h: Regenerated.
9972 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9973 Change type of 'len' to ULONGEST.
9974 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9975 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9977 2014-01-14 Yao Qi <yao@codesourcery.com>
9979 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9980 type of 'len' to ULONGEST.
9981 (linux_xfer_osdata_processgroups): Likewise.
9982 (linux_xfer_osdata_threads): Likewise.
9983 (linux_xfer_osdata_fds): Likewise.
9984 (linux_xfer_osdata_isockets): Likewise.
9985 (linux_xfer_osdata_shm): Likewise.
9986 (linux_xfer_osdata_sem): Likewise.
9987 (linux_xfer_osdata_msg): Likewise.
9988 (linux_common_xfer_osdata): Likewise.
9989 (struct osdata_type) <getter>: Likewise.
9990 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9993 2014-01-14 Yao Qi <yao@codesourcery.com>
9995 * target.h (target_xfer_partial_ftype): Update.
9996 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9998 * aix-thread.c (aix_thread_xfer_partial): Change type of
9999 argument 'len' to ULONGEST.
10000 * auxv.c (procfs_xfer_auxv): Likewise.
10001 (ld_so_xfer_auxv): Likewise.
10002 (memory_xfer_auxv): Likewise.
10003 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10004 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10005 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10006 * corelow.c (core_xfer_partial): Likewise.
10007 * ctf.c (ctf_xfer_partial): Likewise.
10008 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10010 (darwin_read_dyld_info): Likewise.
10011 (darwin_xfer_partial): Likewise.
10012 * exec.c (section_table_xfer_memory_partial): Likewise.
10013 (exec_xfer_partial): Likewise.
10014 * exec.h (section_table_xfer_memory_partial): Update
10016 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10017 instead of plongest.
10018 (gnu_xfer_partial): Likewise.
10019 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10020 (ia64_hpux_xfer_solib_got): Likewise.
10021 (ia64_hpux_xfer_partial): Likewise.
10022 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10023 * inf-ptrace.c (inf_ptrace_xfer_partial):
10024 * inf-ttrace.c (inf_ttrace_xfer_partial):
10025 * linux-nat.c (linux_xfer_siginfo): Likewise.
10026 (linux_nat_xfer_partial): Likewise.
10027 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10028 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10029 * monitor.c (monitor_xfer_memory): Likewise.
10030 (monitor_xfer_partial): Likewise.
10031 * procfs.c (procfs_xfer_partial): Likewise.
10032 * record-full.c (record_full_xfer_partial): Likewise.
10033 (record_full_core_xfer_partial): Likewise.
10034 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10035 instead of plongest.
10036 (gdbsim_xfer_partial): Likewise.
10037 * remote.c (remote_xfer_partial): Likewise.
10038 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10039 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10041 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10042 (rs6000_xfer_shared_libraries): Likewise.
10043 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10044 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10045 (sparc_xfer_partial): Likewise.
10046 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10047 (spu_xfer_partial): Likewise.
10048 * spu-multiarch.c (spu_xfer_partial): Likewise.
10049 * target.c (target_read_live_memory): Likewise.
10050 (memory_xfer_live_readonly_partial): Likewise.
10051 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10052 (target_xfer_partial, default_xfer_partial): Likewise.
10053 (current_xfer_partial): Likewise.
10054 * tracepoint.c (tfile_xfer_partial): Likewise.
10055 * windows-nat.c (windows_xfer_memory): Likewise. Call
10056 pulongest instead of plongest.
10057 (windows_xfer_partial): Likewise.
10058 (windows_xfer_shared_libraries): Likewise.
10060 2014-01-14 Yao Qi <yao@codesourcery.com>
10062 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10063 target_xfer_partial_ftype.
10065 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10069 * valops.c (value_struct_elt_bitpos): New function
10070 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10071 object to 'None' if the field name is an empty string ("").
10072 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10073 attribute to look for a field when 'name' is 'None'.
10074 (get_field_type): New function
10076 2014-01-13 Doug Evans <dje@google.com>
10079 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10080 (try_open_dwop_file): Ditto.
10081 * gdb_bfd.c: #include "vec.h".
10082 (bfdp): New typedef.
10083 (struct gdb_bfd_data): New member included_bfds.
10084 (gdb_bfd_unref): Unref all included bfds.
10085 (gdb_bfd_record_inclusion): New function.
10086 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10088 2014-01-13 Tom Tromey <tromey@redhat.com>
10090 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10092 2014-01-13 Tom Tromey <tromey@redhat.com>
10094 * defs.h (use_windows): Remove.
10095 * gdb.c (main): Update.
10096 * main.c (captured_main, gdb_main): Update.
10097 * main.h (struct captured_main_args) <use_windows>: Remove.
10098 * top.c (use_windows): Remove.
10100 2014-01-13 Tom Tromey <tromey@redhat.com>
10102 * defs.h (deprecated_flush_hook): Remove.
10104 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10107 * linux-thread-db.c (try_thread_db_load): Add parameter
10108 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10109 (try_thread_db_load_from_pdir_1): Move it there from here.
10110 (try_thread_db_load_from_sdir): Update caller.
10111 (try_thread_db_load_from_dir): Move it there from here.
10113 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10115 * regformats/regdat.sh: Always rewrite the register file.
10117 2014-01-13 Pedro Alves <palves@redhat.com>
10119 * Makefile.in (CHECK_HEADERS): New variable.
10120 (check-headers:): New rule.
10122 2014-01-13 Tom Tromey <tromey@redhat.com>
10124 * cli/cli-setshow.c (do_set_command): Update.
10125 * defs.h (deprecated_set_hook): Remove.
10126 * top.c (deprecated_set_hook): Remove.
10128 2014-01-13 Pedro Alves <palves@redhat.com>
10130 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10131 the tracepoint if the PC is a pseudo-register.
10133 2014-01-13 Tom Tromey <tromey@redhat.com>
10135 * defs.h (XCALLOC): Remove.
10136 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10137 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10138 * dwarf2loc.c (allocate_piece_closure): Likewise.
10139 * elfread.c (elf_symfile_segments): Likewise.
10140 (elf_symfile_segments): Likewise.
10141 * gdbtypes.c (copy_type_recursive): Likewise.
10142 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10143 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10144 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10146 * mt-tdep.c (mt_gdbarch_init): Likewise.
10147 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10149 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10150 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10151 * registry.c (registry_alloc_data): Likewise.
10152 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10153 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10154 * serial.c (serial_fdopen_ops): Likewise.
10155 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10157 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10158 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10161 2014-01-13 Tom Tromey <tromey@redhat.com>
10163 * defs.h (XMALLOC): Remove.
10164 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10165 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10166 * cli-out.c (struct ui_out *): Likewise.
10167 * cli/cli-dump.c (add_dump_command): Likewise.
10168 (add_dump_command): Likewise.
10169 * complaints.c (get_complaints): Likewise.
10170 (find_complaint): Likewise.
10171 * dwarf2-frame.c (execute_cfa_program): Likewise.
10172 * dwarf2read.c (abbrev_table_read_table): Likewise.
10173 * gdbarch.sh: Likewise.
10174 * gdbarch.c: Rebuild.
10175 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10176 * interps.c (interp_new): Likewise.
10177 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10178 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10179 * mi/mi-console.c (mi_console_file_new): Likewise.
10180 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10181 * mi/mi-out.c (mi_out_new): Likewise.
10182 * mi/mi-parse.c (mi_parse): Likewise.
10183 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10184 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10185 * observer.c (xalloc_observer_list_node): Likewise.
10186 * regcache.c (regcache_xmalloc_1): Likewise.
10187 * reggroups.c (reggroup_new): Likewise.
10188 (_initialize_reggroup): Likewise.
10189 * registry.c (register_data_with_cleanup): Likewise.
10190 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10191 * ser-base.c (serial_ttystate): Likewise.
10192 * ser-mingw.c (make_pipe_state): Likewise.
10193 * ser-pipe.c (pipe_open): Likewise.
10194 * serial.c (serial_open): Likewise.
10195 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10196 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10197 (tui_alloc_win_info): Likewise.
10198 (tui_add_content_elements): Likewise.
10199 * tui/tui-file.c (tui_file_new): Likewise.
10200 * tui/tui-out.c (tui_out_new): Likewise.
10201 * ui-file.c (mem_file_new): Likewise.
10202 * ui-out.c (push_level): Likewise.
10203 (make_cleanup_ui_out_end): Likewise.
10204 (append_header_to_list): Likewise.
10205 (ui_out_new): Likewise.
10206 * user-regs.c (user_reg_add_builtin): Likewise.
10208 2014-01-13 Tom Tromey <tromey@redhat.com>
10210 * defs.h (XZALLOC): Remove.
10211 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10212 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10213 (get_ada_tasks_inferior_data): Likewise.
10214 * auto-load.c (get_auto_load_pspace_data): Likewise.
10215 * auxv.c (get_auxv_inferior_data): Likewise.
10216 * bfd-target.c (target_bfd_reopen): Likewise.
10217 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10218 (deprecated_insert_raw_breakpoint): Likewise.
10219 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10220 * corelow.c (core_open): Likewise.
10221 * darwin-nat.c (darwin_check_new_threads): Likewise.
10222 (darwin_attach_pid): Likewise.
10223 * dummy-frame.c (dummy_frame_push): Likewise.
10224 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10225 * dwarf2loc.c (allocate_piece_closure): Likewise.
10226 * elfread.c (elf_symfile_segments): Likewise.
10227 * eval.c (ptrmath_type_p): Likewise.
10228 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10229 * gdbtypes.c (alloc_type_arch): Likewise.
10230 (alloc_type_instance): Likewise.
10231 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10232 * inf-child.c (inf_child_can_use_agent): Likewise.
10233 * inflow.c (get_inflow_inferior_data): Likewise.
10234 * infrun.c (save_infcall_suspend_state): Likewise.
10235 * jit.c (jit_reader_load): Likewise.
10236 (get_jit_objfile_data): Likewise.
10237 (get_jit_program_space_data): Likewise.
10238 (jit_object_open_impl): Likewise.
10239 (jit_symtab_open_impl): Likewise.
10240 (jit_block_open_impl): Likewise.
10241 (jit_frame_sniffer): Likewise.
10242 * linux-fork.c (add_fork): Likewise.
10243 * maint.c (make_command_stats_cleanup): Likewise.
10244 * objfiles.c (get_objfile_pspace_data): Likewise.
10245 * opencl-lang.c (struct lval_closure): Likewise.
10246 * osdata.c (osdata_start_osdata): Likewise.
10247 * progspace.c (new_address_space): Likewise.
10248 (add_program_space): Likewise.
10249 * remote-sim.c (get_sim_inferior_data): Likewise.
10250 * sh-tdep.c (sh_gdbarch_init): Likewise.
10251 * skip.c (Ignore): Likewise.
10252 (skip_delete_command): Likewise.
10253 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10254 (library_list_start_library): Likewise.
10255 (solib_aix_current_sos): Likewise.
10256 * solib-darwin.c (get_darwin_info): Likewise.
10257 (darwin_current_sos): Likewise.
10258 * solib-dsbt.c (get_dsbt_info): Likewise.
10259 * solib-ia64-hpux.c (new_so_list): Likewise.
10260 (ia64_hpux_get_solib_linkage_addr): Likewise.
10261 * solib-spu.c (append_ocl_sos): Likewise.
10262 (spu_current_sos): Likewise.
10263 * solib-svr4.c (get_svr4_info): Likewise.
10264 (svr4_keep_data_in_core): Likewise.
10265 (library_list_start_library): Likewise.
10266 (svr4_default_sos): Likewise.
10267 (svr4_read_so_list): Likewise.
10268 * solib-target.c (library_list_start_library): Likewise.
10269 (solib_target_current_sos): Likewise.
10270 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10271 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10272 * symfile.c (default_symfile_segments): Likewise.
10273 * target-descriptions.c (tdesc_data_init): Likewise.
10274 (tdesc_create_reg): Likewise.
10275 (struct tdesc_type *): Likewise.
10276 (tdesc_create_vector): Likewise.
10277 (tdesc_set_struct_size): Likewise.
10278 (struct tdesc_type *): Likewise.
10279 (tdesc_free_feature): Likewise.
10280 (tdesc_create_feature): Likewise.
10281 * windows-nat.c (windows_add_thread): Likewise.
10282 (windows_make_so): Likewise.
10283 * xml-support.c (gdb_xml_body_text): Likewise.
10284 (gdb_xml_create_parser_and_cleanup): Likewise.
10285 (xml_process_xincludes): Likewise.
10286 * xml-syscall.c (allocate_syscalls_info): Likewise.
10287 (syscall_create_syscall_desc): Likewise.
10289 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10291 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10292 function, with code from i386_stap_parse_special_token.
10293 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10294 (i386_stap_parse_special_token): Move code to the two functions
10295 above; simplify it.
10297 2014-01-09 Pedro Alves <palves@redhat.com>
10298 Hui Zhu <hui@codesourcery.com>
10301 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10302 bp_err_string. Don't mark the location shlib_disabled if the
10303 error thrown wasn't a generic or memory error. Catch errors
10304 thrown while inserting breakpoints in overlayed code. Output
10305 error message of software breakpoints.
10306 * remote.c (remote_insert_breakpoint): If this breakpoint has
10307 target-side commands but this stub doesn't support Z0 packets,
10308 throw NOT_SUPPORTED_ERROR error.
10309 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10310 * target.h (target_insert_breakpoint): Extend comment.
10311 (target_insert_hw_breakpoint): Add comment.
10313 2014-01-08 Pedro Alves <palves@redhat.com>
10315 * remote.c (remote_add_thread): Add threads silently if starting
10317 (remote_notice_new_inferior): If in all-stop, and starting up,
10318 don't call notice_new_inferior.
10319 (get_current_thread): New function, factored out from ...
10320 (add_current_inferior_and_thread): ... this. Adjust.
10321 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10322 found any thread, then select the remote's current thread as GDB's
10323 current thread too.
10325 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10327 * NEWS: Create a new section for the next release branch.
10328 Rename the section of the current branch, now that it has
10331 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10333 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10334 * version.in: Bump version to 7.7.50.DATE-cvs.
10336 2014-01-08 Yao Qi <yao@codesourcery.com>
10338 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10339 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10340 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10342 2014-01-08 Yao Qi <yao@codesourcery.com>
10344 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10345 return value of bfd_get_filename to symbol_file_add_from_bfd.
10347 2014-01-08 Pierre Muller <muller@sourceware.org>
10350 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10351 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10352 to prim_record_mininal_symbol_and_info.
10353 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10354 in call to prim_record_minimal_symbol_and_info.
10355 (read_pe_exported_syms): Set index field of section_data.
10357 2014-01-07 Andrew Pinski <apinski@cavium.com>
10359 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10360 * features/aarch64.c: Regenerate.
10362 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10364 * target.c (return_null): Define.
10365 (update_current_target): Use it instead of return_zero for
10366 functions that return a pointer.
10368 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10370 * source.c (add_path): Fix check for duplicated paths in the previously
10373 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10375 * ada-lang.c: Remove duplicated include statements.
10376 * alphabsd-nat.c: Ditto.
10377 * amd64-darwin-tdep.c: Ditto.
10378 * amd64fbsd-nat.c: Ditto.
10379 * auto-load.c: Ditto.
10381 * breakpoint.c: Ditto.
10382 * dbxread.c: Ditto.
10383 * fork-child.c: Ditto.
10384 * gdb_usleep.c: Ditto.
10385 * i386-darwin-tdep.c: Ditto.
10386 * i386fbsd-nat.c: Ditto.
10388 * inferior.c: Ditto.
10389 * jv-lang.c: Ditto.
10390 * linux-nat.c: Ditto.
10391 * linux-tdep.c: Ditto.
10392 * m68kbsd-nat.c: Ditto.
10393 * m68klinux-nat.c: Ditto.
10394 * microblaze-tdep.c: Ditto.
10395 * mips-linux-tdep.c: Ditto.
10396 * mn10300-tdep.c: Ditto.
10397 * nto-tdep.c: Ditto.
10398 * opencl-lang.c: Ditto.
10400 * printcmd.c: Ditto.
10401 * regcache.c: Ditto.
10402 * remote-m32r-sdi.c: Ditto.
10404 * symfile.c: Ditto.
10406 * tilegx-linux-nat.c: Ditto.
10407 * tilegx-tdep.c: Ditto.
10408 * tracepoint.c: Ditto.
10410 * vaxbsd-nat.c: Ditto.
10411 * windows-nat.c: Ditto.
10412 * xtensa-tdep.c: Ditto.
10414 2014-01-07 Yao Qi <yao@codesourcery.com>
10416 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10418 2014-01-07 Yao Qi <yao@codesourcery.com>
10419 Joel Brobecker <brobecker@adacore.com>
10421 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10422 (pdc_write_regs): Likewise.
10423 (fetch_regs_kernel_thread): Likewise.
10424 (store_regs_kernel_thread): Likewise.
10426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10428 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10429 tagged type objects to their actual type.
10431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10433 * ada-valprint.c (print_field_values): Add "language" parameter.
10434 Update calls to print_field_values and print_variant_part.
10435 Pass new parameter "language" in call to val_print instead
10436 of "current_language". Replace call to ada_val_print by call
10438 (print_variant_part): Add "language" parameter.
10439 (ada_val_print_struct_union): Update call to print_field_values.
10441 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10443 * ada-valprint.c (ui_memcpy): Delete.
10444 (ada_print_floating): Update documentation. Add empty line
10445 between between function documentation and implementation.
10446 Delete variable "buffer". Use ui_file_xstrdup in place of
10447 ui_file_put. Minor adjustments following this change.
10449 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10451 * ada-valprint.c (ada_val_print_string): New function,
10452 extracted from ada_val_print_array.
10453 (ada_val_print_array): Replace extracted code by call
10454 to ada_val_print_string followed by a return. Move
10455 "else" branch to the function's top block.
10457 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10459 * ada-valprint.c (ada_val_print_array): Move implementation
10460 down. Rename parameter "offset" and "val" into "offset_aligned"
10461 and "original_value" respectively. Add parameter "offset".
10463 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10465 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10466 re-organizing the code. Change the "???" message printed
10467 when target type is a TYPE_CODE_UNDEF into
10468 "<ref to undefined type>".
10470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10472 * ada-valprint.c (print_record): Delete, implementation inlined...
10473 (ada_val_print_struct_union): ... here. Remove call to
10474 ada_check_typedef in inlined implementation.
10476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10478 * ada-valprint.c (ada_val_print_gnat_array): New function,
10479 extracted from ada_val_print_1;
10480 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10481 (ada_val_print_flt, ada_val_print_struct_union)
10482 (ada_val_print_ref): Likewise.
10483 (ada_val_print_1): Delete variables i and elttype.
10484 Replace extracted-out code by call to corresponding
10487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10489 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10493 * ada-valprint.c (ada_val_print_1): Replace calls to
10494 ada_val_print_1 by calls to val_print.
10496 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10498 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10499 Update calls to self accordingly. Replace calls to c_val_print
10500 by calls to val_print.
10502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10504 * ada-valprint.c (print_record): Delete declaration.
10505 (adjust_type_signedness, ada_val_print_1): Likewise.
10506 (ada_val_print): Move function implementation down.
10507 (print_variant_part, print_field_values, print_record):
10508 Move function implementation up.
10510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10512 * python/py-type.c (typy_get_name): New function.
10513 (type_object_getset): Add entry for attribute "name".
10514 * NEWS: Add entry mentioning this new attribute.
10516 2014-01-07 Yao Qi <yao@codesourcery.com>
10518 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10521 2014-01-07 Yao Qi <yao@codesourcery.com>
10523 * gnu-nat.c (info_port_rights): Add qualifier const to
10526 2014-01-07 Yao Qi <yao@codesourcery.com>
10528 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10530 2014-01-07 Yao Qi <yao@codesourcery.com>
10532 * gnu-nat.c (make_inf) Update declaration.
10533 (make_inf): Make it static.
10534 (inf_set_traced): Likewise.
10535 (inf_port_to_thread, inf_task_died_status): Likewise.
10537 2014-01-07 Yao Qi <yao@codesourcery.com>
10539 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10541 2014-01-07 Yao Qi <yao@codesourcery.com>
10543 * gnu-nat.c (_initialize_gnu_nat): Declare.
10545 2014-01-07 Yao Qi <yao@codesourcery.com>
10547 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10549 (struct gdbarch_info) <byte_order>: Change type to
10551 <byte_order_for_code>: Likewise.
10552 * gdbarch.c, gdbarch.h: Regenerated.
10554 2014-01-06 Sasha Smundak <asmundak@google.com>
10556 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10558 2014-01-06 Tom Tromey <tromey@redhat.com>
10560 * doublest.c (convert_doublest_to_floatformat): Use const, not
10562 * somread.c (som_symtab_read): Likewise.
10564 2014-01-07 Hui Zhu <hui@codesourcery.com>
10566 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10567 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10568 (gdb_bfd_fopen): Ditto.
10569 (gdb_bfd_openr): Ditto.
10570 (gdb_bfd_openw): Ditto.
10571 (gdb_bfd_openr_iovec): Ditto.
10572 (gdb_bfd_fdopenr): Ditto.
10573 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10574 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10576 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10578 * symfile-mem.c (symbol_file_add_from_memory): Removed
10579 gdb_bfd_stash_filename.
10581 2014-01-03 Doug Evans <dje@google.com>
10583 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10586 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10588 Update year range in copyright notice of all files.
10590 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10592 * top.c (print_gdb_version): Set copyright year to 2014.
10594 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10596 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10598 For older changes see ChangeLog-2013.
10604 version-control: never