1 2014-07-23 Tom Tromey <tromey@redhat.com>
3 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4 ($INTRO_PART): Don't match whitespace.
5 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
7 ($METHOD): Add $METHOD_TRAILER.
9 (scan_target_h): New sub.
10 Change main loop not to collect state.
11 * target-delegates.c: Rebuild.
13 2014-07-23 Gary Benson <gbenson@redhat.com>
15 * cp-support.c (gdb_demangle): Fix build on systems without
18 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
20 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
21 for reference entry value target data value.
23 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
25 * stack.c (read_frame_arg): Verify value_optimized_out before calling
26 value_available_contents_eq.
28 2014-07-22 Pedro Alves <palves@redhat.com>
30 * value.c (allocate_optimized_out_value): Don't mark value as
33 2014-07-22 Jiong Wang <jiong.wang@arm.com>
35 * MAINTAINERS (Write After Approval): Update my email address.
37 2014-07-20 Doug Evans <dje@google.com>
40 * remote.c (putpkt_binary): Add text to error message.
42 2014-07-20 Yao Qi <yao@codesourcery.com>
44 * eval.c: Remove "Chill" from comments.
45 * gdbtypes.h: Likewise.
48 2014-07-20 Yao Qi <yao@codesourcery.com>
50 * std-operator.def: Update comments to TERNOP_SLICE.
52 2014-07-20 Yao Qi <yao@codesourcery.com>
54 * std-operator.def: Remove BINOP_RANGE.
55 * breakpoint.c (watchpoint_exp_is_const): Update.
56 * expprint.c (dump_subexp_body_standard): Likewise.
57 * eval.c (init_array_element): Remove dead code.
58 (evaluate_subexp_standard): Likewise.
60 2014-07-20 Yao Qi <yao@codesourcery.com>
62 * std-operator.def: Remove BINOP_IN.
63 * breakpoint.c (watchpoint_exp_is_const): Update.
64 * eval.c (evaluate_subexp_standard): Likewise.
65 * expprint.c (dump_subexp_body_standard): Likewise.
67 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
69 * microblaze-tdep.c (microblaze_register_names): Add
70 the rshr and rslr register names.
71 (microblaze_gdbarch_init): Use of tdesc_has_registers.
72 Use of tdesc_find_feature. Use of tdesc_data_alloc.
73 Use of tdesc_numbered_register. Use of
74 microblaze_register_g_packet_guesses. Use of
75 tdesc_use_registers. Use of set_gdbarch_register_type.
76 (microblaze_register_g_packet_guesses): New.
77 * microblaze-tdep.h (microblaze_reg_num): Add
78 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
79 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
80 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
81 * features/microblaze-core.xml: New file.
82 * features/microblaze-stack-protect.xml: New file.
83 * features/microblaze-with-stack-protect.c: New file.
84 * features/microblaze-with-stack-protect.xml: New file.
85 * features/microblaze.xml: New file.
86 * features/microblaze.c: New file.
87 * features/Makefile (microblaze-with-stack-protect): Add
88 microblaze-with-stack-protect microblaze and microblaze-expedite.
89 * regformats/microblaze-with-stack-protect.dat: New file.
90 * regformats/microblaze.dat: New file.
91 * doc/gdb.texinfo (MicroBlaze Features): Added.
93 2014-07-18 Tom Tromey <tromey@redhat.com>
95 * exec.c (exec_ops): Now static.
96 * exec.h (exec_ops): Don't declare.
98 2014-07-18 Tom Tromey <tromey@redhat.com>
100 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
101 to find_target_beneath.
102 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
104 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
106 2014-07-18 Tom Tromey <tromey@redhat.com>
109 * utils.c (quit): Use target_supports_terminal_ours.
110 * target.h (target_supports_terminal_ours): Declare.
111 * target.c (target_supports_delete_record): Don't check
112 to_delete_record against NULL.
113 (target_supports_terminal_ours): New function.
115 2014-07-18 Tom Tromey <tromey@redhat.com>
118 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
119 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
120 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
121 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
122 * windows-nat.c (windows_xfer_partial): Always delegate.
123 * record-btrace.c (record_btrace_xfer_partial): Simplify
125 (record_btrace_fetch_registers, record_btrace_store_registers)
126 (record_btrace_prepare_to_store, record_btrace_resume)
127 (record_btrace_wait, record_btrace_find_new_threads)
128 (record_btrace_thread_alive): Likewise.
129 * procfs.c (procfs_xfer_partial): Always delegate.
130 * corelow.c (core_xfer_partial): Always delegate.
131 * sol-thread.c (sol_find_new_threads): Simplify delegation.
133 2014-07-18 Tom Tromey <tromey@redhat.com>
135 * exec.c (exec_make_note_section): Move earlier.
137 2014-07-17 Doug Evans <dje@google.com>
140 * maint.c (count_symtabs_and_blocks): Handle NULL
141 current_program_space.
142 (report_command_stats): Check global enabled flag in addition to
143 recorded enabled flag.
144 (make_command_stats_cleanup): Handle msg_type == 0, startup.
146 2014-07-16 Pedro Alves <palves@redhat.com>
148 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
150 2014-07-16 Tom Tromey <tromey@redhat.com>
152 * target.h (struct target_ops) <to_delete_record>: Reformat
155 2014-07-16 Tom Tromey <tromey@redhat.com>
157 * target-delegates.c: Rebuild.
159 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
161 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
162 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
163 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
164 (avr_pointer_to_address): Likewise.
165 (avr_address_class_type_flags): New function.
166 (avr_address_class_type_flags_to_name): Likewise.
167 (avr_address_class_name_to_type_flags): Likewise.
168 (avr_gdbarch_init): Set address_class_type_flags,
169 address_class_type_flags_to_name and
170 address_class_name_to_type_flags.
172 2014-07-15 Pedro Alves <palves@redhat.com>
174 * linux-nat.c (kill_callback): Save errno and work with saved
177 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
179 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
181 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
183 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
184 breakpoint support correctly.
186 2014-07-14 Pedro Alves <palves@redhat.com>
188 * utils.c (prompt_for_continue): Call target_terminal_ours.
190 2014-07-14 Pedro Alves <palves@redhat.com>
192 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
193 catch_errors. Don't re-enable stdin or notify observers where,
195 (fetch_inferior_event_wrapper): Delete.
197 2014-07-14 Pedro Alves <palves@redhat.com>
200 * top.c: Include "inf-loop.h".
201 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
203 (gdb_readline_wrapper_cleanup): Make the target async again, if it
205 (gdb_readline_wrapper): Store whether the target is async, and
208 2014-07-14 Pedro Alves <palves@redhat.com>
211 * top.c (gdb_readline_wrapper_line): Tweak comment.
212 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
213 the input handler callback.
215 2014-07-14 Pedro Alves <palves@redhat.com>
218 * main.c: Include event-top.h.
219 (handle_command_errors): New function.
220 (catch_command_errors, catch_command_errors_const): Use it.
222 2014-07-14 Pedro Alves <palves@redhat.com>
224 * exceptions.c (catch_command_errors, catch_command_errors_const):
226 * exceptions.h (catch_command_errors_ftype)
227 (catch_command_errors_const_ftype): Moved to main.c.
228 (catch_command_errors, catch_command_errors_const): Delete
230 * main.c (catch_command_errors_ftype)
231 (catch_command_errors_const_ftype): Moved here from exceptions.h.
232 (catch_command_errors, catch_command_errors_const)): Moved here
233 from exceptions.c and make static.
235 2014-07-14 Pedro Alves <palves@redhat.com>
237 * exceptions.c (print_any_exception): Delete.
238 (catch_exceptions_with_msg): Use exception_print instead of
240 (catch_errors): Use exception_fprintf instead of
242 (catch_command_errors, catch_command_errors_const): Use
243 exception_print instead of print_any_exception.
245 2014-07-14 Pedro Alves <palves@redhat.com>
247 * infcall.c (run_inferior_call): Set 'sync_execution' while
248 running the inferior call.
250 2014-07-14 Pedro Alves <palves@redhat.com>
252 * value.c (value_contents_equal): Delete function.
253 * value.h (value_contents_equal): Delete declaration.
255 2014-07-14 Tom Tromey <tromey@redhat.com>
258 * gdbtypes.c (is_dynamic_type_internal): New function, from
260 (is_dynamic_type): Rewrite.
261 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
262 (resolve_dynamic_struct): Likewise.
263 (resolve_dynamic_type_internal): New function, from
264 resolve_dynamic_type.
265 (resolve_dynamic_type): Rewrite.
267 2014-07-14 Tom Tromey <tromey@redhat.com>
269 * target.c (target_require_runnable): Also check record_stratum.
272 2014-07-11 Yao Qi <yao@codesourcery.com>
274 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
275 thumb_instruction_restores_sp return true.
277 2014-07-11 Yao Qi <yao@codesourcery.com>
279 * arm-tdep.c (thumb_instruction_restores_sp): New function.
280 (thumb_in_function_epilogue_p): Call
281 thumb_instruction_restores_sp.
283 2014-07-11 Yao Qi <yao@codesourcery.com>
285 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
287 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
289 2014-07-11 Gary Benson <gbenson@redhat.com>
291 * amd64-linux-nat.c (gdbcore.h): Remove include.
292 (regset.h): Likewise.
293 (nat/linux-btrace.h): Likewise.
294 (btrace.h): Likewise.
295 (gdb_assert.h): Likewise.
296 (string.h): Likewise.
297 (sys/uio.h): Likewise.
298 (sys/debugreg.h): Likewise.
299 (sys/syscall.h): Likewise.
300 (sys/procfs.h): Likewise.
301 (sys/user.h): Likewise.
302 (asm/ptrace.h): Likewise.
303 (i386-nat.h): Likewise.
304 * i386-linux-nat.c (i386-nat.h): Likewise.
305 (regset.h): Likewise.
306 (target.h): Likewise.
307 (linux-nat.h): Likewise.
308 (nat/linux-btrace.h): Likewise.
309 (btrace.h): Likewise.
310 (gdb_assert.h): Likewise.
311 (string.h): Likewise.
312 (sys/uio.h): Likewise.
313 (sys/user.h): Likewise.
314 (sys/procfs.h): Likewise.
315 (sys/reg.h): Likewise.
316 (sys/debugreg.h): Likewise.
317 (ORIG_EAX): Remove definition.
319 2014-07-11 Gary Benson <gbenson@redhat.com>
321 * i386-linux-nat.h: New file.
322 * x86-linux-nat.h: Likewise.
323 * x86-linux-nat.c: Likewise.
324 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
325 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
326 * config/i386/linux64.mh (NATDEPFILES): Likewise.
327 * amd64-linux-nat.c (x86-linux-nat.h): New include.
328 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
329 (PTRACE_SETREGSET): Likewise.
330 (arch_lwp_info): Now in x86-linux-nat.c.
331 (have_ptrace_getregset): Now in x86-linux-nat.h.
332 (x86_linux_dr_get): Now in x86-linux-nat.c.
333 (x86_linux_dr_set): Likewise.
334 (x86_linux_dr_get_addr): Likewise.
335 (x86_linux_dr_get_control): Likewise.
336 (x86_linux_dr_get_status): Likewise.
337 (update_debug_registers_callback): Likewise.
338 (x86_linux_dr_set_control): Likewise.
339 (x86_linux_dr_set_addr): Likewise.
340 (x86_linux_prepare_to_resume): Likewise.
341 (x86_linux_new_thread): Likewise.
342 (x86_linux_new_fork): Likewise.
343 (x86_linux_get_thread_area): Likewise.
344 (super_post_startup_inferior): Likewise.
345 (x86_linux_child_post_startup_inferior): Likewise.
346 (AMD64_LINUX_USER64_CS): Likewise.
347 (AMD64_LINUX_X32_DS): Likewise.
348 (x86_linux_read_description): Likewise.
349 (x86_linux_enable_btrace): Likewise.
350 (x86_linux_disable_btrace): Likewise.
351 (x86_linux_teardown_btrace): Likewise.
352 (x86_linux_read_btrace): Likewise.
353 (x86_linux_create_target): Likewise.
354 (x86_linux_add_target): Likewise.
355 * i386-linux-nat.c (x86-linux-nat.h): New include.
356 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
357 (PTRACE_SETREGSET): Likewise.
358 (arch_lwp_info): Now in x86-linux-nat.c.
359 (have_ptrace_getregset): Now in x86-linux-nat.h.
360 (x86_linux_dr_get): Now in x86-linux-nat.c.
361 (x86_linux_dr_set): Likewise.
362 (x86_linux_dr_get_addr): Likewise.
363 (x86_linux_dr_get_control): Likewise.
364 (x86_linux_dr_get_status): Likewise.
365 (update_debug_registers_callback): Likewise.
366 (x86_linux_dr_set_control): Likewise.
367 (x86_linux_dr_set_addr): Likewise.
368 (x86_linux_prepare_to_resume): Likewise.
369 (x86_linux_new_thread): Likewise.
370 (x86_linux_new_fork): Likewise.
371 (x86_linux_get_thread_area): Likewise.
372 (super_post_startup_inferior): Likewise.
373 (x86_linux_child_post_startup_inferior): Likewise.
374 (AMD64_LINUX_USER64_CS): Likewise.
375 (AMD64_LINUX_X32_DS): Likewise.
376 (x86_linux_read_description): Likewise.
377 (x86_linux_enable_btrace): Likewise.
378 (x86_linux_disable_btrace): Likewise.
379 (x86_linux_teardown_btrace): Likewise.
380 (x86_linux_read_btrace): Likewise.
381 (x86_linux_create_target): Likewise.
382 (x86_linux_add_target): Likewise.
384 2014-07-11 Gary Benson <gbenson@redhat.com>
386 * amd64-linux-nat.c: Comment and whitespace changes.
387 * i386-linux-nat.c: Comment and whitespace changes.
389 2014-07-11 Gary Benson <gbenson@redhat.com>
391 * amd64-linux-nat.c (x86_linux_create_target): New function.
392 (x86_linux_add_target): Likewise.
393 (_initialize_amd64_linux_nat): Delegate to the above new functions.
394 * i386-linux-nat.c (x86_linux_create_target): New function.
395 (x86_linux_add_target): Likewise.
396 (_initialize_i386_linux_nat): Delegate to the above new functions.
398 2014-07-11 Gary Benson <gbenson@redhat.com>
400 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
401 (ps_get_thread_area): Delegate to the above in 32-bit mode.
402 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
403 (ps_get_thread_area): Delegate to the above.
405 2014-07-11 Gary Benson <gbenson@redhat.com>
407 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
408 x86_linux_read_description. All uses updated. amd64-specific
409 code conditionalized. Conditionalized i386-specific code added.
410 Redundant cast removed.
411 * i386-linux-nat.c (i386_linux_read_description): Renamed to
412 x86_linux_read_description. All uses updated. i386-specific
413 code conditionalized. Conditionalized amd64-specific code added.
414 One sizeof replaced with the actual type it is describing.
416 2014-07-11 Gary Benson <gbenson@redhat.com>
418 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
419 x86_linux_dr_get. All uses updated.
420 (amd64_linux_dr_set): Renamed to
421 x86_linux_dr_set. All uses updated.
422 (amd64_linux_dr_get_addr): Renamed to
423 x86_linux_dr_get_addr. All uses updated.
424 (amd64_linux_dr_get_control): Renamed to
425 x86_linux_dr_get_control. All uses updated.
426 (amd64_linux_dr_get_status): Renamed to
427 x86_linux_dr_get_status. All uses updated.
428 (amd64_linux_dr_set_control): Renamed to
429 x86_linux_dr_set_control. All uses updated.
430 (amd64_linux_dr_set_addr): Renamed to
431 x86_linux_dr_set_addr. All uses updated.
432 (amd64_linux_prepare_to_resume): Renamed to
433 x86_linux_prepare_to_resume. All uses updated.
434 (amd64_linux_new_thread): Renamed to
435 x86_linux_new_thread. All uses updated.
436 (amd64_linux_new_fork): Renamed to
437 x86_linux_new_fork. All uses updated.
438 (amd64_linux_child_post_startup_inferior): Renamed to
439 x86_linux_child_post_startup_inferior. All uses updated.
440 (amd64_linux_enable_btrace): Renamed to
441 x86_linux_enable_btrace. All uses updated.
442 (amd64_linux_disable_btrace): Renamed to
443 x86_linux_disable_btrace. All uses updated.
444 (amd64_linux_teardown_btrace): Renamed to
445 x86_linux_teardown_btrace. All uses updated.
446 (amd64_linux_read_btrace): Renamed to
447 x86_linux_read_btrace. All uses updated.
448 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
449 x86_linux_dr_get. All uses updated.
450 (i386_linux_dr_set): Renamed to
451 x86_linux_dr_set. All uses updated.
452 (i386_linux_dr_get_addr): Renamed to
453 x86_linux_dr_get_addr. All uses updated.
454 (i386_linux_dr_get_control): Renamed to
455 x86_linux_dr_get_control. All uses updated.
456 (i386_linux_dr_get_status): Renamed to
457 x86_linux_dr_get_status. All uses updated.
458 (i386_linux_dr_set_control): Renamed to
459 x86_linux_dr_set_control. All uses updated.
460 (i386_linux_dr_set_addr): Renamed to
461 x86_linux_dr_set_addr. All uses updated.
462 (i386_linux_prepare_to_resume): Renamed to
463 x86_linux_prepare_to_resume. All uses updated.
464 (i386_linux_new_thread): Renamed to
465 x86_linux_new_thread. All uses updated.
466 (i386_linux_new_fork): Renamed to
467 x86_linux_new_fork. All uses updated.
468 (i386_linux_child_post_startup_inferior): Renamed to
469 x86_linux_child_post_startup_inferior. All uses updated.
470 (i386_linux_enable_btrace): Renamed to
471 x86_linux_enable_btrace. All uses updated.
472 (i386_linux_disable_btrace): Renamed to
473 x86_linux_disable_btrace. All uses updated.
474 (i386_linux_teardown_btrace): Renamed to
475 x86_linux_teardown_btrace. All uses updated.
476 (i386_linux_read_btrace): Renamed to
477 x86_linux_read_btrace. All uses updated.
479 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
481 * remote.c (extended_remote_post_attach): New function.
482 (init_extended_remote_ops): Install it as to_post_attach method.
484 2014-07-09 Pedro Alves <palves@redhat.com>
486 * infcmd.c (attach_command_post_wait): Don't call
487 target_terminal_inferior here.
488 (attach_command): Call it here instead.
490 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
492 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
494 * c-varobj.c (c_is_path_expr_parent): New function, moved core
495 from varobj.c, with additional checks.
496 (c_varobj_ops): Fill in is_path_expr_parent field.
497 (cplus_varobj_ops): Fill in is_path_expr_parent field.
498 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
500 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
502 (varobj_default_is_path_expr_parent): New function.
503 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
504 (varobj_default_is_path_expr_parent): Declare new function.
506 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
508 * infcmd.c (finish_backward): Turn internal error into normal error.
510 2014-07-07 Pedro Alves <palves@redhat.com>
513 * remote.c (async_handle_remote_sigint)
514 (async_handle_remote_sigint_twice): Call
515 gdb_call_async_signal_handler instead of
516 mark_async_signal_handler.
518 2014-07-07 Tom Tromey <tromey@redhat.com>
520 * target-delegates.c: Rebuild.
521 * target.c (target_info_record): Remove.
522 * record.c (info_record_command): Unconditionally call
524 * target.h (struct target_ops) <to_info_record>: Use
525 TARGET_DEFAULT_IGNORE.
526 (target_info_record): Remove.
528 2014-07-07 Tom Tromey <tromey@redhat.com>
530 * target.h (struct target_ops) <to_get_thread_local_address>: Use
531 TARGET_DEFAULT_NORETURN.
532 * target.c (generic_tls_error): New function.
533 (target_translate_tls_address): Don't search target stack.
534 * target-delegates.c: Rebuild.
535 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
537 * linux-thread-db.c (thread_db_get_thread_local_address):
538 Unconditionally call beneath target.
540 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
542 * cli/cli-logging.c (pop_output_files): Assign targerr to
545 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
547 * MAINTAINERS (Write After Approval): Update my email address.
549 2014-07-02 Gary Benson <gbenson@redhat.com>
551 * proc-service.c (ps_xfer_memory): Update comment.
552 (ps_pstop): Remove unused function.
553 (ps_pcontinue): Likewise.
554 (ps_lstop): Likewise.
555 (ps_lcontinue): Likewise.
556 (ps_lgetxregsize): Likewise.
557 (ps_lgetxregs): Likewise.
558 (ps_lsetxregs): Likewise.
560 (ps_ptread): Likewise.
561 (ps_ptwrite): Likewise.
563 2014-07-01 Mark Wielaard <mjw@redhat.com>
565 * dwarf2read.c (add_array_cv_type): New function.
566 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
567 (read_tag_volatile_type): Likewise.
569 2014-07-01 Tom Tromey <tromey@redhat.com>
571 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
572 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
573 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
574 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
575 * command.h (cmd_cfunc_ftype): Move earlier.
576 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
577 (add_com, add_info): Use cmd_cfunc_ftype.
579 2014-06-30 Tom Tromey <tromey@redhat.com>
581 * symtab.c (operator_chars): Make parameters and return type
583 (file_matches): Make "files" const.
584 (struct search_symbols_data) <files>: Now const.
585 (search_symbols): Make "regexp" and "files" parameters const.
587 (symtab_symbol_info): Remove cast.
588 (rbreak_command): Update.
589 * symtab.h (search_symbols): Update.
591 2014-06-27 Yao Qi <yao@codesourcery.com>
593 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
594 Change parameter type to 'struct thread_info *'. Caller
596 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
598 * dummy-frame.c (struct dummy_frame_id): New.
599 (dummy_frame_id_eq): New function.
600 (struct dummy_frame) <id>: Change its type to 'struct
602 (dummy_frame_push): Add parameter ptid and save it in
604 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
606 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
608 (lookup_dummy_frame): Change parameter type to 'struct
609 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
610 instead of frame_id_eq.
611 (dummy_frame_pop): Add parameter ptid. Callers updated.
612 Update comments. Compose dummy_frame_id and pass it to
614 (dummy_frame_discard): Add parameter ptid.
615 (dummy_frame_sniffer): Compose dummy_frame_id and call
616 dummy_frame_id_eq instead of frame_id_eq.
617 (fprint_dummy_frames): Print ptid.
618 * dummy-frame.h: Remove comments.
619 (dummy_frame_push): Add ptid in declaration.
620 (dummy_frame_pop, dummy_frame_discard): Likewise.
622 2014-06-26 Tom Tromey <tromey@redhat.com>
624 * cli/cli-cmds.c (error_no_arg): Make "why" const.
625 * command.h (error_no_arg): Update.
627 2014-06-26 Tom Tromey <tromey@redhat.com>
629 * cli/cli-setshow.c (do_set_command): Make "arg" const.
630 (do_show_command): Make "arg" const.
631 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
633 2014-06-26 Tom Tromey <tromey@redhat.com>
635 * record-full.c (record_full_get_bookmark): Make "args" const.
636 (record_full_goto_bookmark): Make "raw_bookmark" const.
637 * record.c (record_goto): New function.
638 (cmd_record_goto): Use it. Now static.
639 * record.h (record_goto): Declare.
640 (cmd_record_goto): Remove declaration.
641 * target-delegates.c: Rebuild.
642 * target.h (struct target_ops) <to_get_bookmark,
643 to_goto_bookmark>: Make parameter const.
645 2014-06-26 Tom Tromey <tromey@redhat.com>
647 * defs.h (generic_load): Update.
648 * m32r-rom.c (m32r_load_gen): Make "filename" const.
649 * monitor.c (monitor_load): Make "args" const.
650 * remote-m32r-sdi.c (m32r_load): Make "args" const.
651 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
653 (mips_load): Make "file" const.
654 * remote-sim.c (gdbsim_load): Make "args" const.
655 * remote.c (remote_load): Make "name" const.
656 * symfile.c (generic_load): Make "args" const.
657 * target-delegates.c: Rebuild.
658 * target.c (target_load): Make "arg" const.
659 (debug_to_load): Make "args" const.
660 * target.h (struct target_ops) <to_load>: Make parameter const.
661 (target_load): Update.
663 2014-06-26 Tom Tromey <tromey@redhat.com>
666 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
667 (dwarf2_physname, read_partial_die)
668 (guess_partial_die_structure_name, fixup_partial_die)
669 (guess_full_die_structure_name, anonymous_struct_prefix)
670 (dwarf2_name): Use per-BFD obstack.
672 2014-06-26 Yao Qi <yao@codesourcery.com>
674 * dummy-frame.c (dummy_frame_sniffer): Move local variables
675 dummyframe and this_id into inner block below.
677 2014-06-26 Yao Qi <yao@codesourcery.com>
679 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
680 with "signal_pass[0]" in the initialization of signal_pass.
682 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
684 * record-btrace.c (record_btrace_generating_corefile)
685 (record_btrace_prepare_to_generate_core)
686 (record_btrace_done_generating_core): New.
687 (record_btrace_xfer_partial, record_btrace_fetch_registers)
688 (record_btrace_store_registers, record_btrace_prepare_to_store):
689 Forward request when generating a core file.
690 (record_btrace_open): Set record_btrace_generating_corefile to zero.
691 (init_record_btrace_ops): Set to_prepare_to_generate_core and
692 to_done_generating_core.
694 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
696 * target.h (target_ops) <to_prepare_to_generate_core>
697 <to_done_generating_core>: New.
698 (target_prepare_to_generate_core, target_done_generating_core): New.
699 * target.c (target_prepare_to_generate_core)
700 (target_done_generating_core): New.
701 * target-delegates.c: Regenerate.
702 * gcore.c: (write_gcore_file): Rename to ...
703 (write_gcore_file_1): ...this.
704 (write_gcore_file): Call target_prepare_to_generate_core
705 and target_done_generating_core.
707 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
709 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
710 * gcore.c (write_gcore_file): Free memory returned from
712 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
713 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
715 2014-06-24 Yao Qi <yao@codesourcery.com>
717 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
718 (arm_linux_init_abi): Set skip_trampoline_code with
719 gdbarch_skip_trampoline_code instead of
720 find_solib_trampoline_target.
722 2014-06-24 Yao Qi <yao@codesourcery.com>
724 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
725 arm_skip_bx_reg returns non-zero.
727 2014-06-24 Yao Qi <yao@codesourcery.com>
729 * arm-tdep.c (arm_skip_bx_reg): New function.
730 (arm_skip_stub): Call arm_skip_bx_reg.
732 2014-06-23 Don Breazeal <donb@codesourcery.com>
734 * MAINTAINERS: Add myself as write-after-approval maintainer.
736 2014-06-23 Pedro Alves <palves@redhat.com>
738 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
739 DR_CONTROL before setting DR0..DR3.
740 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
741 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
742 bits of DR_CONTROL related to the debug register slot being
743 disabled. If all slots are vacant, clear local slowdown as well,
744 and assert DR_CONTROL is 0.
746 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
748 * python/lib/gdb/command/xmethods.py
749 (get_method_matchers_in_loci): Lookup xmethod matchers in the
750 current progspace only if the string "progspace" matches LOCUS_RE.
752 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
754 Fix --with-system-readline with readline-6.3 patch 5.
755 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
756 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
759 2014-06-20 Tom Tromey <tromey@redhat.com>
761 * dwarf2read.c (dw2_get_real_path): Use correct type in
763 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
765 2014-06-20 Gary Benson <gbenson@redhat.com>
767 * common/gdb_thread_db.h: Moved to nat. All includes updated.
768 * common/glibc_thread_db.h: Likewise.
769 * common/i386-cpuid.h: Likewise.
770 * common/i386-gcc-cpuid.h: Likewise.
771 * common/linux-btrace.h: Likewise.
772 * common/linux-osdata.h: Likewise.
773 * common/linux-procfs.h: Likewise.
774 * common/linux-ptrace.h: Likewise.
775 * common/mips-linux-watch.h: Likewise.
776 * common/linux-btrace.c: Moved to nat.
777 * common/linux-osdata.c: Likewise.
778 * common/linux-procfs.c: Likewise.
779 * common/linux-ptrace.c: Likewise.
780 * common/mips-linux-watch.c: Likewise.
781 * nat/gdb_thread_db.h: Moved from common.
782 * nat/glibc_thread_db.h: Likewise.
783 * nat/i386-cpuid.h: Likewise.
784 * nat/i386-gcc-cpuid.h: Likewise.
785 * nat/linux-btrace.c: Likewise.
786 * nat/linux-btrace.h: Likewise.
787 * nat/linux-osdata.c: Likewise.
788 * nat/linux-osdata.h: Likewise.
789 * nat/linux-procfs.c: Likewise.
790 * nat/linux-procfs.h: Likewise.
791 * nat/linux-ptrace.c: Likewise.
792 * nat/linux-ptrace.h: Likewise.
793 * nat/mips-linux-watch.c: Likewise.
794 * nat/mips-linux-watch.h: Likewise.
795 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
796 (object file files): Reordered.
797 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
798 of glibc_thread_db.h.
800 2014-06-20 Gary Benson <gbenson@redhat.com>
802 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
803 (i386_dr_low_type): Moved to nat/i386-dregs.h.
804 (i386_dr_low): Likewise.
805 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
806 (i386_dr_low_set_addr): Likewise.
807 (i386_dr_low_get_addr): Likewise.
808 (i386_dr_low_can_set_control): Likewise.
809 (i386_dr_low_set_control): Likewise.
810 (i386_dr_low_get_control): Likewise.
811 (i386_dr_low_get_status): Likewise.
812 (i386_get_debug_register_length): Likewise.
813 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
814 (i386_dr_low): Likewise.
815 * nat/i386-dregs.c (i386-low.h): Remove include.
816 (i386-nat.h): Likewise.
817 (nat/i386-dregs.h): New include.
818 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
819 (i386_dr_low_set_addr): Likewise.
820 (i386_dr_low_get_addr): Likewise.
821 (i386_dr_low_can_set_control): Likewise.
822 (i386_dr_low_set_control): Likewise.
823 (i386_dr_low_get_control): Likewise.
824 (i386_dr_low_get_status): Likewise.
825 (i386_get_debug_register_length): Likewise.
826 (debug_hw_points): Likewise.
828 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
830 * Makefile.in (SFILES): Add d-exp.y.
831 (YYFILES): Add d-exp.c.
832 (YYOBJ): Add d-exp.o.
833 (local-maintainer-clean): Delete d-exp.c.
835 * d-lang.h (d_parse): New declaration.
836 (d_error): New declaration.
837 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
838 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
839 PREC_ORDER operators.
840 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
842 2014-06-19 Yao Qi <yao@codesourcery.com>
844 * gdbthread.h (any_running): Remove the declaration.
845 * thread.c (any_running): Remove.
847 2014-06-19 Yao Qi <yao@codesourcery.com>
849 * gdbthread.h (struct thread_info) <state>: Change its type to
850 'enum thread_state'. Update comments.
852 2014-06-19 Pedro Alves <palves@redhat.com>
854 * gdbthread.h (ALL_THREADS): Delete.
855 (ALL_NON_EXITED_THREADS): New macro.
856 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
857 instead of ALL_THREADS.
858 * infrun.c (find_thread_needs_step_over)
859 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
860 instead of ALL_THREADS.
861 * record-btrace.c (record_btrace_open)
862 (record_btrace_stop_recording, record_btrace_close)
863 (record_btrace_is_replaying, record_btrace_resume)
864 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
865 * remote.c (append_pending_thread_resumptions): Likewise.
866 * thread.c (thread_apply_all_command): Likewise.
868 2014-06-19 Gary Benson <gbenson@redhat.com>
870 * i386-nat.c (i386_stopped_by_watchpoint):
871 Use i386_dr_stopped_by_watchpoint.
872 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
873 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
875 2014-06-19 Gary Benson <gbenson@redhat.com>
877 * nat/i386-dregs.c: New file.
878 * Makefile.in (i386-dregs.o): New rule.
879 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
880 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
881 * config/i386/darwin.mh (NATDEPFILES): Likewise.
882 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
883 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
884 * config/i386/go32.mh (NATDEPFILES): Likewise.
885 * config/i386/linux.mh (NATDEPFILES): Likewise.
886 * config/i386/linux64.mh (NATDEPFILES): Likewise.
887 * config/i386/mingw.mh (NATDEPFILES): Likewise.
888 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
889 * i386-nat.h (debug_hw_points): New declaration.
890 * i386-nat.c (breakpoint.h): Remove include.
891 (command.h): Likewise.
892 (target.h): Likewise.
893 (gdb_assert.h): Likewise.
894 (debug_hw_points): Made nonstatic.
895 (debug_printf): Now in i386-dregs.c.
896 (TARGET_HAS_DR_LEN_8): Likewise.
897 (DR_CONTROL_SHIFT): Likewise.
898 (DR_CONTROL_SIZE): Likewise.
899 (DR_RW_EXECUTE): Likewise.
900 (DR_RW_WRITE): Likewise.
901 (DR_RW_READ): Likewise.
902 (DR_RW_IORW): Likewise.
903 (DR_LEN_1): Likewise.
904 (DR_LEN_2): Likewise.
905 (DR_LEN_4): Likewise.
906 (DR_LEN_8): Likewise.
907 (DR_LOCAL_ENABLE_SHIFT): Likewise.
908 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
909 (DR_ENABLE_SIZE): Likewise.
910 (DR_LOCAL_SLOWDOWN): Likewise.
911 (DR_GLOBAL_SLOWDOWN): Likewise.
912 (DR_CONTROL_RESERVED): Likewise.
913 (I386_DR_CONTROL_MASK): Likewise.
914 (I386_DR_VACANT): Likewise.
915 (I386_DR_LOCAL_ENABLE): Likewise.
916 (I386_DR_GLOBAL_ENABLE): Likewise.
917 (I386_DR_DISABLE): Likewise.
918 (I386_DR_SET_RW_LEN): Likewise.
919 (I386_DR_GET_RW_LEN): Likewise.
920 (I386_DR_WATCH_HIT): Likewise.
921 (i386_wp_op_t): Likewise.
922 (i386_show_dr): Likewise.
923 (i386_length_and_rw_bits): Likewise.
924 (i386_insert_aligned_watchpoint): Likewise.
925 (i386_remove_aligned_watchpoint): Likewise.
926 (i386_handle_nonaligned_watchpoint): Likewise.
927 (i386_update_inferior_debug_regs): Likewise.
928 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
929 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
930 (i386_region_ok_for_watchpoint):
931 Use i386_dr_region_ok_for_watchpoint.
932 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
934 2014-06-19 Gary Benson <gbenson@redhat.com>
936 * i386-nat.c (i386_insert_hw_breakpoint): Use
937 i386_insert_watchpoint.
938 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
940 2014-06-19 Gary Benson <gbenson@redhat.com>
942 * i386-nat.c (i386_dr_show): Renamed to
943 i386_show_dr and made static. All uses updated.
944 (i386_dr_length_and_rw_bits): Renamed to
945 i386_length_and_rw_bits and made static.
947 (i386_dr_insert_aligned_watchpoint): Renamed to
948 i386_insert_aligned_watchpoint and made static.
950 (i386_dr_remove_aligned_watchpoint): Renamed to
951 i386_remove_aligned_watchpoint and made static.
953 (i386_dr_update_inferior_debug_regs): Renamed to
954 i386_update_inferior_debug_regs and made static.
956 * nat/i386-dregs.h (i386_dr_show): Removed.
957 (i386_dr_length_and_rw_bits): Likewise.
958 (i386_dr_insert_aligned_watchpoint): Likewise.
959 (i386_dr_remove_aligned_watchpoint): Likewise.
960 (i386_dr_update_inferior_debug_regs): Likewise.
962 2014-06-19 Gary Benson <gbenson@redhat.com>
964 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
965 * configure: Regenerate.
966 * config.in: Likewise.
967 * main.c (signal.h): New include.
968 (setup_alternate_signal_stack): New function.
969 (captured_main): Call the above.
970 * cp-support.c (signal.h): New include.
971 (catch_demangler_crashes): New flag.
972 (SIGJMP_BUF): New define.
973 (SIGSETJMP): Likewise.
974 (SIGLONGJMP): Likewise.
975 (gdb_demangle_jmp_buf): New static global.
976 (gdb_demangle_attempt_core_dump): Likewise.
977 (gdb_demangle_signal_handler): New function.
978 (gdb_demangle): If catch_demangler_crashes is set, install the
979 above signal handler before calling bfd_demangle, and restore
980 the original signal handler afterwards. Display the offending
981 symbol and call demangler_warning the first time a segmentation
983 (_initialize_cp_support): New maint set/show command.
985 2014-06-19 Gary Benson <gbenson@redhat.com>
987 * utils.h (resource_limit_kind): New enum.
988 (can_dump_core): New declaration.
989 (warn_cant_dump_core): Likewise.
990 (dump_core): Likewise.
991 * utils.c (dump_core): Made nonstatic. Added new
992 parameter "limit_kind".
993 (can_dump_core): Made nonstatic. Moved printing code to...
994 (warn_cant_dump_core): New function.
995 (can_dump_core_warn): Likewise.
996 (internal_vproblem): Replace calls to can_dump_core with
997 calls to can_dump_core_warn. Supply new argument to each.
999 2014-06-19 Gary Benson <gbenson@redhat.com>
1001 * utils.h (demangler_vwarning): New declaration.
1002 (demangler_warning): Likewise.
1003 * utils.c (struct internal_problem)
1004 <user_settable_should_quit>: New field.
1005 <user_settable_should_dump_core>: Likewise
1006 (internal_error_problem): Add values for above new fields.
1007 (internal_warning_problem): Likewise.
1008 (demangler_warning_problem): New static global.
1009 (demangler_vwarning): New function.
1010 (demangler_warning): Likewise.
1011 (add_internal_problem_command): Selectively add commands.
1012 (_initialize_utils): New internal problem command.
1013 * maint.c (maintenance_demangler_warning): New function.
1014 (_initialize_maint_cmds): New command.
1016 2014-06-18 Tom Tromey <tromey@redhat.com>
1018 * f-valprint.c (info_common_command_for_block): Update.
1019 * symtab.h (struct general_symbol_info) <common_block>: Now
1022 2014-06-18 Tom Tromey <tromey@redhat.com>
1024 * symtab.h (struct symtab) <blockvector>: Now const.
1025 * ada-lang.c (ada_add_global_exceptions): Update.
1026 * buildsym.c (augment_type_symtab): Update.
1027 * dwarf2read.c (dw2_lookup_symbol): Update.
1028 * jit.c (finalize_symtab): Update.
1029 * jv-lang.c (add_class_symtab_symbol): Update.
1030 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1032 * objfiles.c (objfile_relocate1): Update.
1033 * psymtab.c (lookup_symbol_aux_psymtabs)
1034 (maintenance_check_psymtabs): Update.
1035 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1037 * spu-tdep.c (spu_catch_start): Update.
1038 * symmisc.c (dump_symtab_1): Update.
1039 * symtab.c (lookup_global_symbol_from_objfile)
1040 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1041 (basic_lookup_transparent_type_quick)
1042 (basic_lookup_transparent_type, find_pc_sect_symtab)
1043 (find_pc_sect_line, search_symbols): Update.
1044 * block.c (find_block_in_blockvector): Make "bl" const.
1045 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1047 (blockvector_contains_pc): Make "bv" const.
1048 (block_for_pc_sect): Update.
1049 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1050 (blockvector_contains_pc): Update.
1051 * breakpoint.c (resolve_sal_pc): Update.
1052 * inline-frame.c (block_starting_point_at): Update.
1054 2014-06-18 Tom Tromey <tromey@redhat.com>
1056 * completer.c (complete_line): Make "line_buffer" const.
1057 * completer.h (complete_line): Update.
1059 2014-06-18 Tom Tromey <tromey@redhat.com>
1061 * symtab.c (add_macro_name): Remove unneeded cast.
1063 2014-06-18 Tom Tromey <tromey@redhat.com>
1065 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1066 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1068 2014-06-18 Tom Tromey <tromey@redhat.com>
1070 * probe.c (info_probes_for_ops): Make "arg" const.
1071 * probe.h (info_probes_for_ops): Update.
1073 2014-06-18 Tom Tromey <tromey@redhat.com>
1075 * varobj.c (varobj_create): Update.
1076 * valops.c (value_of_this): Update.
1077 * tracepoint.c (add_local_symbols, scope_info): Update.
1078 * symtab.h (struct general_symbol_info) <block>: Now const.
1079 * symtab.c (skip_prologue_sal)
1080 (default_make_symbol_completion_list_break_on)
1081 (skip_prologue_using_sal): Update.
1082 * stack.h (iterate_over_block_locals)
1083 (iterate_over_block_local_vars): Update.
1084 * stack.c (print_frame_args): Update.
1085 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1087 (get_selected_block): Make return type const.
1088 * python/py-frame.c (frapy_block): Update.
1089 * python/py-block.c (gdbpy_block_for_pc): Update.
1090 * p-exp.y (%union) <bval>: Now const.
1091 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1092 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1093 * m2-exp.y (%union) <bval>: Now const.
1094 * linespec.c (get_current_search_block): Make return type const.
1095 (create_sals_line_offset, find_label_symbols): Update.
1096 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1098 (block_starting_point_at): Make "block" const.
1099 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1100 (check_exception_resume): Update.
1101 * guile/scm-frame.c (gdbscm_frame_block): Update.
1102 * guile/scm-block.c (gdbscm_lookup_block): Update.
1103 * frame.h (get_frame_block): Update.
1104 (get_selected_block): Make return type const.
1105 * frame.c (frame_id_inner): Update.
1106 * f-valprint.c (info_common_command_for_block)
1107 (info_common_command): Update.
1108 * dwarf2loc.c (dwarf2_find_location_expression)
1109 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1110 (locexpr_describe_location_piece): Update.
1111 * c-exp.y (%union) <bval>: Now const.
1112 * breakpoint.c (resolve_sal_pc): Update.
1113 * blockframe.c (get_frame_block):Make return type const.
1114 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1115 (block_innermost_frame): Update.
1116 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1117 (block_for_pc, block_for_pc_sect): Update.
1118 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1120 (block_for_pc_sect, block_for_pc): Make return type const.
1121 * ax-gdb.c (gen_expr): Update.
1122 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1123 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1124 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1125 (ada_read_var_value): Update.
1126 * ada-exp.y (struct name_info) <block>: Now const.
1128 (block_lookup): Constify.
1130 2014-06-18 Gary Benson <gbenson@redhat.com>
1132 * nat/i386-dregs.h: New file.
1133 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1134 * i386-nat.h (i386-dregs.h): New include.
1135 (DR_FIRSTADDR): Now in i386-dregs.h.
1136 (DR_LASTADDR): Likewise.
1137 (DR_NADDR): Likewise.
1138 (DR_STATUS): Likewise.
1139 (DR_CONTROL): Likewise.
1140 (i386_debug_reg_state): Likewise.
1141 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1143 2014-06-18 Don Breazeal <donb@codesourcery.com>
1145 * breakpoint.c (set_longjmp_breakpoint): Call
1146 momentary_breakpoint_from_master with additional argument.
1147 (set_longjmp_breakpoint_for_call_dummy): Call
1148 momentary_breakpoint_from_master with additional argument.
1149 (set_std_terminate_breakpoint): Call
1150 momentary_breakpoint_from_master with additional argument.
1151 (momentary_breakpoint_from_master): Add argument to function
1152 definition and use it to initialize structure member flag.
1153 (clone_momentary_breakpoint): Call
1154 momentary_breakpoint_from_master with additional argument.
1155 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1156 member flags set in momentary_breakpoint_from_master.
1158 2014-06-18 Gary Benson <gbenson@redhat.com>
1160 * i386-nat.c (i386_show_dr): Renamed to
1161 i386_dr_show and made nonstatic. All uses updated.
1162 (i386_length_and_rw_bits): Renamed to
1163 i386_dr_length_and_rw_bits and made nonstatic.
1165 (i386_insert_aligned_watchpoint): Renamed to
1166 i386_dr_insert_aligned_watchpoint and made nonstatic.
1168 (i386_remove_aligned_watchpoint): Renamed to
1169 i386_dr_remove_aligned_watchpoint and made nonstatic.
1171 (i386_update_inferior_debug_regs): Renamed to
1172 i386_dr_update_inferior_debug_regs and made nonstatic.
1175 2014-06-18 Gary Benson <gbenson@redhat.com>
1177 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1178 (i386_dr_low_can_set_control): Likewise.
1179 (i386_dr_low_set_addr): Likewise.
1180 (i386_dr_low_set_control): Likewise.
1181 (i386_dr_low_get_addr): Likewise.
1182 (i386_dr_low_get_status): Likewise.
1183 (i386_dr_low_get_control): Likewise.
1184 (i386_insert_aligned_watchpoint): Use new macros.
1185 (i386_update_inferior_debug_regs): Likewise.
1186 (i386_stopped_data_address): Likewise.
1188 2014-06-18 Gary Benson <gbenson@redhat.com>
1190 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1191 New parameter. All uses updated.
1193 2014-06-18 Gary Benson <gbenson@redhat.com>
1195 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1198 2014-06-18 Gary Benson <gbenson@redhat.com>
1200 * i386-nat.c (debug_printf): New macro.
1201 (i386_get_debug_register_length): Likewise.
1202 (TARGET_HAS_DR_LEN_8): Use above macro.
1203 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1204 and printf_unfiltered. Use phex to format values.
1206 2014-06-18 Gary Benson <gbenson@redhat.com>
1208 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1211 2014-06-18 Gary Benson <gbenson@redhat.com>
1213 * i386-nat.c: Comment changes.
1215 2014-06-18 Gary Benson <gbenson@redhat.com>
1217 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1219 2014-06-18 Gary Benson <gbenson@redhat.com>
1221 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1222 (i386_insert_aligned_watchpoint): Likewise.
1223 (i386_remove_aligned_watchpoint): Likewise.
1224 (i386_handle_nonaligned_watchpoint): Likewise.
1226 2014-06-18 Gary Benson <gbenson@redhat.com>
1228 * i386-nat.c: Whitespace changes.
1230 2014-06-17 Samuel Bronson <naesten@gmail.com>
1232 * MAINTAINERS: Update Roland McGrath's email address.
1233 Thanks to Sergio Durigan Junior for pointing out that he left
1234 Red Hat a while ago, and giving me a current address.
1236 2014-06-17 Tom Tromey <tromey@redhat.com>
1238 * utils.h (savestring): Remove declaration.
1240 2014-06-17 Tom Tromey <tromey@redhat.com>
1242 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1244 2014-06-16 Keith Seitz <keiths@redhat.com>
1247 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1248 to update the varobj if inferior_ptid is null_ptid.
1250 2014-06-16 Tom Tromey <tromey@redhat.com>
1252 * target.h (struct target_ops) <to_info_proc>: Make parameter
1254 (target_info_proc): Update.
1255 * target.c (target_info_proc): Make "args" const.
1256 * procfs.c (procfs_info_proc): Update.
1257 * linux-tdep.c (linux_info_proc): Update.
1258 (linux_core_info_proc_mappings): Make "args" const.
1259 (linux_core_info_proc): Update.
1260 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1261 * gdbarch.c: Rebuild.
1262 * gdbarch.h: Rebuild.
1263 * corelow.c (core_info_proc): Update.
1265 2014-06-16 Tom Tromey <tromey@redhat.com>
1267 * target.h (struct target_ops) <to_disconnect>: Make parameter
1269 (target_disconnect): Update.
1270 * target.c (target_disconnect): Make "args" const.
1271 * target-delegates.c: Rebuild.
1272 * remote.c (remote_disconnect): Update.
1273 * record.h (record_disconnect): Update.
1274 * record.c (record_disconnect): Update.
1275 * inf-child.c (inf_child_disconnect): Update.
1277 2014-06-16 Tom Tromey <tromey@redhat.com>
1279 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1280 * target.c (debug_to_rcmd, default_rcmd): Update.
1281 * target-delegates.c: Rebuild.
1282 * remote.c (remote_rcmd): Update.
1283 * monitor.c (monitor_rcmd): Update.
1285 2014-06-16 Pedro Alves <palves@redhat.com>
1287 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1288 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1289 have OBJF_SHARED set.
1290 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1291 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1292 instead of OBJF_USERLOADED.
1293 * objfiles.h (OBJF_SHARED): Update comment.
1294 (userloaded_objfile_contains_address_p): Rename to ...
1295 (shared_objfile_contains_address_p): ... this, and update
1297 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1299 (remove_symbol_file_command): Skip objfiles that don't have
1302 2014-06-16 Tom Tromey <tromey@redhat.com>
1304 * minsyms.h (prim_record_minimal_symbol)
1305 (prim_record_minimal_symbol_and_info): Update comments.
1307 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1309 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1310 or --without-guile, according to how GDB was built.
1312 2014-06-13 Tom Tromey <tromey@redhat.com>
1314 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1316 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1318 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1320 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1321 help_list.Pass all_commands, not -1, to help_list.
1322 * cli/cli-dump.c (dump_command, append_command)
1323 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1324 (binary_dump_command, binary_append_command): Pass all_commands,
1325 not -1, to help_list.
1326 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1328 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1330 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1332 * top.c (set_history): Pass all_commands, not -1, to help_list.
1333 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1334 all_commands, not -1, to help_list.
1335 * symfile.c (overlay_command): Pass all_commands, not -1, to
1337 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1339 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1341 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1343 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1344 not -1, to help_list.
1345 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1346 not -1, to help_list.
1347 * maint.c (maintenance_command, maintenance_info_command)
1348 (maintenance_print_command, maintenance_set_cmd): Pass
1349 all_commands, not -1, to help_list.
1350 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1352 * language.c (set_check): Pass all_commands, not -1, to help_list.
1353 * infcmd.c (unset_command): Pass all_commands, not -1, to
1355 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1357 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1359 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1361 * breakpoint.c (save_command): Pass all_commands, not -1, to
1363 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1364 all_commands, not -1, to help_list.
1366 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1368 * regcache.c (struct register_to_invalidate): New structure.
1369 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1371 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1373 2014-06-12 Yao Qi <yao@codesourcery.com>
1375 * varobj.c (varobj_get_num_children): Call
1376 varobj_is_dynamic_p.
1377 (varobj_list_children): Likewise.
1378 (varobj_update): Likewise. Update comments.
1380 2014-06-12 Yao Qi <yao@codesourcery.com>
1382 * varobj.c (varobj_pretty_printed_p): Rename to ...
1383 (varobj_is_dynamic_p): ... this. New function.
1384 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1385 (varobj_is_dynamic_p): Declare.
1386 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1387 (mi_print_value_p, varobj_update_one): Likewise.
1389 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1390 Yao Qi <yao@codesourcery.com>
1392 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1393 (varobj_get_iterator): Wrap up code for pretty-printer by
1394 "#if HAVE_PYTHON" and "#endif".
1395 (update_dynamic_varobj_children): Likewise.
1397 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1398 Yao Qi <yao@codesourcery.com>
1400 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1401 gdb_python_initialized is false. Move some code from varobj.c.
1402 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1403 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1404 (struct varobj_item): Moved to varobj-iter.h".
1405 (varobj_clear_saved_item): New function.
1406 (update_dynamic_varobj_children): Move python-related code to
1408 (free_variable): Call varobj_clear_saved_item and
1411 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1412 Yao Qi <yao@codesourcery.com>
1414 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1415 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1416 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1417 (py-varobj.o): New rule.
1418 * python/py-varobj.c: New file.
1419 * python/python-internal.h (py_varobj_get_iterator): Declare.
1420 * varobj-iter.h: New file.
1421 * varobj.c: Include "varobj-iter.h"
1422 (struct varobj) <child_iter>: Change its type from "PyObject *"
1423 to "struct varobj_iter *".
1424 <saved_item>: Likewise.
1425 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1426 [HAVE_PYTHON] (varobj_get_iterator): New function.
1427 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1428 python-specific code to python/py-varobj.c.
1429 (install_visualizer): Call varobj_iter_delete instead of
1431 * varobj.h (varobj_ensure_python_env): Declare.
1433 2014-06-12 Yao Qi <yao@codesourcery.com>
1435 * varobj.c (struct varobj_item): New structure.
1436 (create_child_with_value): Update declaration.
1437 (varobj_add_child): Replace arguments 'name' and 'value' with
1438 'item'. All callers updated.
1439 (install_dynamic_child): Likewise.
1440 (update_dynamic_varobj_children): Likewise.
1441 (varobj_add_child): Likewise.
1442 (create_child_with_value): Likewise.
1444 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1446 * NEWS: Create a new section for the next release branch.
1447 Rename the section of the current branch, now that it has
1450 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1452 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1453 * version.in: Bump version to 7.8.50.DATE-cvs.
1455 2014-06-11 Pedro Alves <palves@redhat.com>
1458 * ser-mingw.c (net_windows_socket_check_pending): New function.
1459 (net_windows_select_thread): Ignore spurious wakeups. Use
1460 net_windows_socket_check_pending.
1461 (net_windows_wait_handle): Check for pending events with
1462 ioctlsocket, through net_windows_socket_check_pending, instead of
1463 checking the socket's event.
1465 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1467 * python/python-internal.h (gdb_PyObject_GetAttrString)
1468 (gdb_PyObject_HasAttrString): New inline function definitions.
1469 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1470 char * of the second argument to PyObject_GetAttrString.
1472 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1474 * serial.c (serial_write): Fix index of character to be printed
1475 in call to serial_logchar when serial debug traces are enabled.
1477 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1479 * gdbtypes (resolve_dynamic_range): Add function description.
1481 2014-06-09 Pedro Alves <palves@redhat.com>
1483 * linux-nat.c (linux_child_follow_fork): Initialize status with
1484 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1485 inner block. Only pass the signal to PTRACE_DETACH if in pass
1488 2014-06-09 Gary Benson <gbenson@redhat.com>
1490 * common/signals.c (gdb_signal_from_host): Reorder to separate
1491 the always-available ANSI-standard signals from the signals that
1493 (do_gdb_signal_to_host): Likewise.
1494 * proc-events.c (signal_table): Likewise.
1496 2014-06-08 Hui Zhu <hui@codesourcery.com>
1498 * common/linux-ptrace.c (linux_disable_event_reporting): New
1500 * common/linux-ptrace.h (linux_disable_event_reporting): New
1502 * linux-nat.c (linux_child_follow_fork): Do a single step before
1505 2014-06-07 Keith Seitz <keiths@redhat.com>
1509 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1510 from symbol_matches_domain in symtab.c. All local callers
1511 of symbol_matches_domain updated.
1512 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1513 search STRUCT_DOMAIN.
1514 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1515 independently. standard_lookup will do that automatically.
1516 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1517 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1518 (cp_lookup_symbol_in_namespace): Likewise.
1519 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1520 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1521 may return a STRUCT_DOMAIN match.
1522 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1523 * cp-support.c: Include language.h.
1524 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1526 * psymtab.c (match_partial_symbol): Compare the requested
1527 domain with the symbol's domain directly.
1528 (lookup_partial_symbol): Likewise.
1529 * symtab.c (lookup_symbol_in_language): Explain when/why
1530 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1531 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1532 appropriate languages.
1533 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1534 and moved to ada-lang.c
1535 (lookup_block_symbol): Explain that this function only returns
1536 symbol matching the requested DOMAIN.
1537 Compare the requested domain with the symbol's domain directly.
1538 (iterate_over_symbols): Compare the requested domain with the
1539 symbol's domain directly.
1540 * symtab.h (symbol_matches_domain): Remove.
1542 2014-06-06 Doug Evans <xdje42@gmail.com>
1544 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1545 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1546 (gdbscm_guile_version_is_at_least): Declare.
1547 (gdbscm_scm_string_to_int): Declare.
1548 * guile/guile.c (gdbscm_guile_major_version): New global.
1549 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1550 (guile_datadir): New static global.
1551 (gdbscm_guile_data_directory): New function.
1552 (initialize_scheme_side): Update.
1553 (misc_guile_functions): Add guile-data-directory.
1554 (initialize_gdb_module): Fetch guile version number.
1555 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1556 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1557 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1558 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1560 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1561 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1562 * guile/scm-value.c (gdbscm_value_to_string): Only call
1563 scm_port_conversion_strategy if Guile version >= 2.0.6.
1565 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1567 * main.c (print_gdb_help): Add -q and --silent.
1569 2014-06-06 Gary Benson <gbenson@redhat.com>
1571 * common/signals.c: Remove preprocessor conditionals for
1572 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1573 SIGSEGV and SIGTERM.
1574 * proc-events.c: Likewise.
1576 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1578 * symfile.c (symfile_free_objfile): Remove restriction to
1580 * symfile-mem.c (symbol_file_add_from_memory): Call
1581 add_target_sections_of_objfile.
1583 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1585 * guile/scm-value.c (gdbscm_history_append_x): Use
1586 'vlscm_get_value_smob_arg_unsafe' instead of
1587 'vlscm_scm_to_value'.
1589 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1592 * utils.c (printchar): Don't escape at all if quoter is NUL.
1593 Update function documentation to clarify effect of parameter
1595 * remote.c (escape_buffer): Pass '\\' as the quoter to
1596 fputstrn_unfiltered.
1597 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1598 generate the output.
1599 (mi_solib_unloaded): Same.
1601 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1603 * development.sh: Delete.
1604 * Makefile.in (config.status): Adjust dependency on development.sh.
1605 * configure.ac: Adjust development.sh source call.
1606 * configure: Regenerate.
1608 2014-06-04 Doug Evans <xdje42@gmail.com>
1610 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1611 is_scheme_bkpt, spec.
1612 (bpscm_make_breakpoint_smob): Initialize new members.
1613 (gdbscm_create_breakpoint_x): Split into two ...
1614 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1615 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1616 (scheme_function breakpoint_functions): Update.
1617 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1618 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1619 register-breakpoint!.
1621 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1624 * mem-break.c (z_type_supported): Return zero if
1625 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1627 2014-06-04 Tom Tromey <tromey@redhat.com>
1629 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1630 value_from_contents_and_address_unresolved.
1631 (ada_template_to_fixed_record_type_1): Likewise.
1632 (ada_which_variant_applies): Likewise.
1633 * value.h (value_from_contents_and_address_unresolved): Declare.
1634 * value.c (value_from_contents_and_address_unresolved): New
1636 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1637 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1638 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1640 2014-06-04 Tom Tromey <tromey@redhat.com>
1642 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1644 2014-06-04 Tom Tromey <tromey@redhat.com>
1646 * procfs.c (procfs_attach): Make "args" const.
1647 * windows-nat.c (windows_attach): Make "args" const.
1648 * nto-procfs.c (procfs_attach): Make "args" const.
1649 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1650 * go32-nat.c (go32_attach): Make "args" const.
1651 * gnu-nat.c (gnu_attach): Make "args" const.
1652 * darwin-nat.c (darwin_attach): Make "args" const.
1653 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1654 * linux-nat.c (linux_nat_attach): Make "args" const.
1655 * remote.c (extended_remote_attach_1, extended_remote_attach):
1657 * target.h (struct target_ops) <to_attach>: Make "args" const.
1658 (find_default_attach): Likewise.
1659 * utils.c (parse_pid_to_attach): Make "args" const.
1660 * utils.h (parse_pid_to_attach): Update.
1662 2014-06-04 Tom Tromey <tromey@redhat.com>
1664 * target-delegates.c: Rebuild.
1665 * target.c (default_thread_address_space): New function.
1666 (target_thread_address_space): Simplify.
1667 * target.h (struct target_ops) <to_thread_address_space>: Add
1668 TARGET_DEFAULT_FUNC.
1670 2014-06-04 Doug Evans <xdje42@gmail.com>
1672 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1674 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1676 * record-btrace.c: Include event-loop.h and inf-loop.h.
1677 (record_btrace_resume_exec_dir)
1678 (record_btrace_async_inferior_event_handler)
1679 (record_btrace_handle_async_inferior_event): New.
1680 (record_btrace_open): Create async event handler.
1681 (record_btrace_close): Delete async event handler.
1682 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1683 Mark async event handler.
1684 (record_btrace_execution_direction): New.
1685 (init_record_btrace_ops): Initialize to_execution_direction.
1687 2014-06-03 Doug Evans <xdje42@gmail.com>
1689 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1690 (gdbscm_make_parameter): Ditto.
1692 2014-06-03 Doug Evans <dje@google.com>
1694 * exec.c (exec_close_1): Call clear_section_table instead of
1695 resize_section_table.
1696 (clear_section_table): New function.
1697 (resize_section_table): Make static. Rename arg num_added to
1699 * exec.h (clear_section_table): Declare.
1700 (resize_section_table): Delete.
1701 * progspace.c (release_program_space): Call clear_section_table
1702 instead of resize_section_table.
1704 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1706 * NEWS (Python Scripting): Add entry about the new xmethods
1709 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1711 * python/py-xmethods.c: New file.
1712 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1713 (objfpy_dealloc): XDECREF on the new xmethods field.
1714 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1716 (objfpy_get_xmethods): New function.
1717 (objfile_getset): New entry 'xmethods'.
1718 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1719 (pspy_dealloc): XDECREF on the new xmethods field.
1720 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1722 (pspy_get_xmethods): New function.
1723 (pspace_getset): New entry 'xmethods'.
1724 * python/python-internal.h: Add declarations for new functions.
1725 * python/python.c (_initialize_python): Invoke
1726 gdbpy_initialize_xmethods.
1727 * python/lib/gdb/__init__.py (xmethods): New
1729 * python/lib/gdb/xmethod.py: New file.
1730 * python/lib/gdb/command/xmethods.py: New file.
1732 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1734 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1735 best match method returned by find_overload_match is an xmethod.
1736 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1737 the best matching operator returned by find_overload_match is an
1739 * valops.c: #include "extension.h".
1740 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1741 Return void. The list of matching source methods is returned in
1742 "fn_list" and a vector of matching debug method workers is
1743 returned in "xm_worker_vec". Update all callers.
1744 (value_find_oload_method_list): Likewise.
1745 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1746 non-NULL, then the index of the best matching method in this
1747 vector is returned. Update all callers.
1748 (find_overload_match): Include xmethods while performing overload
1751 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1753 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1754 * extension-priv.h (struct extension_language_ops): Add the
1756 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1757 get_matching_xmethod_workers, get_xmethod_argtypes,
1758 invoke_xmethod, free_xmethod_worker,
1759 free_xmethod_worker_vec): New functions.
1760 * extension.h: #include "common/vec.h".
1761 New function declarations.
1762 (struct xmethod_worker): New struct.
1763 (VEC (xmethod_worker_ptr)): New vector type.
1764 (xmethod_worker_ptr): New typedef.
1765 (xmethod_worker_vec): Likewise.
1766 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1768 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1769 (struct builtin_type): New field "xmethod".
1770 * valarith.c (value_ptradd): Assert that the value argument is not
1772 * valops.c (value_must_coerce_to_target): Return 0 for
1773 lval_xcallable values.
1774 * value.c (struct value): New field XM_WORKER in the field
1776 (value_address, value_raw_address): Return 0 for lval_xcallable
1778 (set_value_address): Assert that the value is not an
1780 (value_free): Free the associated xmethod worker when freeing
1781 lval_xcallable values.
1782 (set_value_component_location): Assert that the WHOLE value is not
1784 (value_of_xmethod, call_xmethod): New functions.
1785 * value.h: Declare "struct xmethod_worker".
1786 Declare new functions value_of_xmethod, call_xmethod.
1788 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1789 Pedro Alves <palves@redhat.com>
1791 PR breakpoints/17000
1792 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1793 New function, extracted from software_breakpoint_inserted_here_p.
1794 (software_breakpoint_inserted_here_p): Replace factored out code
1795 by call to find_non_raw_software_breakpoint_inserted_here.
1796 (bp_target_info_copy_insertion_state): New function.
1797 (bkpt_insert_location): Handle the case of a single-step
1798 breakpoint already inserted at the same address.
1799 (bkpt_remove_location): Handle the case of a single-step
1800 breakpoint still inserted at the same address.
1801 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1802 breakpoint already inserted at the same address.
1803 (deprecated_remove_raw_breakpoint): Handle the case of a
1804 non-raw breakpoint still inserted at the same address.
1805 (find_single_step_breakpoint): New function, extracted from
1806 single_step_breakpoint_inserted_here_p.
1807 (find_single_step_breakpoint): New function,
1808 factored out from single_step_breakpoint_inserted_here_p.
1809 (single_step_breakpoint_inserted_here_p): Reimplement.
1811 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1813 Pushed by Joel Brobecker <brobecker@adacore.com>
1814 * source.c (show_substitute_path_command): Fix display of matching
1817 2014-06-03 Gary Benson <gbenson@redhat.com>
1819 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1821 2014-06-02 Doug Evans <xdje42@gmail.com>
1823 Add parameter support for Guile.
1824 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1825 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1826 (scm-param.o): New rule.
1827 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1828 (gdbscm_misc_error): Declare.
1829 (gdbscm_canonicalize_command_name): Declare.
1830 (gdbscm_scm_to_host_string): Declare.
1831 (gdbscm_scm_from_host_string): Declare.
1832 (gdbscm_initialize_parameters): Declare.
1833 * guile/guile.c (initialize_gdb_module): Call
1834 gdbscm_initialize_parameters.
1835 * guile/lib/gdb.scm: Export parameter symbols.
1836 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1837 cmdscm_canonicalize_name and made public. All callers updated.
1838 * guile/scm-exception.c (gdbscm_misc_error): New function.
1839 * guile/scm-param.c: New file.
1840 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1841 (gdbscm_scm_to_host_string): New function.
1842 (gdbscm_scm_from_host_string): New function.
1843 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1845 2014-06-02 Doug Evans <xdje42@gmail.com>
1847 Add command support for Guile.
1848 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1849 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1850 (scm-cmd.o): New rule.
1851 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1852 (gdbscm_user_error_p): Declare.
1853 (gdbscm_parse_command_name): Declare.
1854 (gdbscm_valid_command_class_p): Declare.
1855 (gdbscm_initialize_commands): Declare.
1856 * guile/guile.c (initialize_gdb_module): Call
1857 gdbscm_initialize_commands.
1858 * guile/lib/gdb.scm: Export command symbols.
1859 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1860 (throw-user-error): New function.
1861 * guile/scm-cmd.c: New file.
1862 * guile/scm-exception.c (user_error_symbol): New static global.
1863 (gdbscm_user_error_p): New function.
1864 (gdbscm_initialize_exceptions): Set user_error_symbol.
1865 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1867 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1869 * top.c (command_loop): Handle comments here...
1870 (command_line_input): ... not here.
1872 2014-06-02 Doug Evans <xdje42@gmail.com>
1874 Add progspace support for Guile.
1875 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1876 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1877 (scm-progspace.o): New rule.
1878 * guile/guile-internal.h (pspace_smob): New typedef.
1879 (psscm_pspace_smob_pretty_printers): Declare.
1880 (psscm_pspace_smob_from_pspace): Declare.
1881 (psscm_scm_from_pspace): Declare.
1882 * guile/guile.c (initialize_gdb_module): Call
1883 gdbscm_initialize_pspaces.
1884 * guile/lib/gdb.scm: Export progspace symbols.
1885 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1887 (append-pretty-printer!): Ditto.
1888 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1890 * guile/scm-progspace.c: New file.
1892 2014-06-03 Alan Modra <amodra@gmail.com>
1894 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1895 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1897 2014-06-02 Doug Evans <dje@google.com>
1899 Add support for skeletonless type units.
1900 * dwarf2read.c (struct dwarf2_per_objfile): New member
1901 n_allocated_type_units.
1902 (struct dwarf2_per_objfile) <tu_stats>: New member
1903 nr_all_type_units_reallocs.
1904 (create_signatured_type_table_from_index): Initialize
1905 n_allocated_type_units
1906 (create_all_type_units): Ditto.
1907 (add_type_unit): Move up in file. New arg slot.
1908 All callers updated. Increase space for all_type_units more
1910 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1911 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1912 (lookup_dwp_signatured_type): Ditto.
1913 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1914 All callers updated.
1915 (build_type_psymtabs_1): Leave type_unit_groups as
1916 NULL if no TUs present.
1917 (print_tu_stats): New function.
1918 (process_skeletonless_type_unit): New function.
1919 (process_dwo_file_for_skeletonless_type_units): New
1921 (process_skeletonless_type_units): New function.
1922 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1923 Call print tu_stats if debugging enabled.
1925 2014-06-02 Pedro Alves <palves@redhat.com>
1927 * breakpoint.c (build_target_command_list): Don't build a command
1928 list if we have any duplicate location that isn't a dprintf.
1930 2014-06-02 Pedro Alves <palves@redhat.com>
1932 * breakpoint.c (dprintf_breakpoint_hit): New function.
1933 (initialize_breakpoint_ops): Install it as dprintf's
1934 breakpoint_hit method.
1936 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1938 * source.c (substitute_path_rule_matches): Simplify using
1939 filename_ncmp instead of FILENAME_CMP.
1941 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1943 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1945 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1947 * configure.ac: When Guile is available, check for the
1948 availability of 'scm_new_smob'.
1949 * configure, config.h.in: Regenerate.
1950 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1953 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1955 * frame.c (struct frame_info): Add stop_string field.
1956 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1957 (get_prev_frame_always): Old content moved into
1958 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1959 TRY_CATCH, handle MEMORY_ERROR exceptions.
1960 (frame_stop_reason_string): New function definition.
1961 * frame.h (unwind_stop_reason_to_string): Extend comment to
1962 mention frame_stop_reason_string.
1963 (frame_stop_reason_string): New function declaration.
1964 * stack.c (frame_info): Switch to frame_stop_reason_string.
1965 (backtrace_command_1): Switch to frame_stop_reason_string.
1966 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1967 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1968 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1970 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1972 * frame.c (frame_stop_reason_string): Rename to ...
1973 (unwind_stop_reason_to_string): this.
1974 * frame.h (frame_stop_reason_string): Rename to ...
1975 (unwind_stop_reason_to_string): this.
1976 * stack.c (frame_info): Update call to frame_stop_reason_string.
1977 (backtrace_command_1): Likewise.
1978 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1979 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1981 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1983 * frame.c (remove_prev_frame): New function.
1984 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1987 2014-05-29 Pedro Alves <palves@redhat.com>
1989 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1990 and make it const. When a single-step decays to a continue,
1991 clear 'step', not 'hw_step'. Pass whether the caller wanted
1992 to step to user_visible_resume_ptid, not what we ask the
1995 2014-05-29 Pedro Alves <palves@redhat.com>
1997 * infrun.c (process_event_stop_test, handle_step_into_function)
1998 (handle_step_into_function_backward): Adjust.
1999 Don't set the even thread's stop_step and call stop_waiting before
2000 calling end_stepping_range. Instead do that ...
2001 (end_stepping_range): ... here. Take an ecs pointer parameter.
2003 2014-05-29 Pedro Alves <palves@redhat.com>
2005 * infrun.c (stop_stepping): Rename to ...
2006 (stop_waiting): ... this.
2007 (proceed): Update comment.
2008 (process_event_stop_test, handle_inferior_event)
2009 (handle_signal_stop, handle_step_into_function)
2010 (handle_step_into_function_backward): Update.
2012 2014-05-29 Pedro Alves <palves@redhat.com>
2014 * infcall.c (run_inferior_call): Don't check whether the current
2015 thread is running after the proceed call.
2017 2014-05-29 Pedro Alves <palves@redhat.com>
2018 Tom Tromey <tromey@redhat.com>
2020 * NEWS: Mention "maint set target-async", "set mi-async", and that
2021 background execution commands are now always available.
2022 * target.h (target_async_permitted): Update comment.
2023 * target.c (target_async_permitted, target_async_permitted_1):
2025 (set_target_async_command): Rename to ...
2026 (maint_set_target_async_command): ... this.
2027 (show_target_async_command): Rename to ...
2028 (maint_show_target_async_command): ... this.
2029 (_initialize_target): Adjust.
2030 * infcmd.c (prepare_execution_command): Make extern.
2031 * inferior.h (prepare_execution_command): Declare.
2032 * infrun.c (set_observer_mode): Leave target async alone.
2033 * mi/mi-interp.c (mi_interpreter_init): Install
2034 mi_on_sync_execution_done as sync_execution_done observer.
2035 (mi_on_sync_execution_done): New function.
2036 (mi_execute_command_input_handler): Don't print the prompt if we
2037 just started a synchronous command with an async target.
2038 (mi_on_resume): Check sync_execution before printing prompt.
2039 * mi/mi-main.h (mi_async_p): Declare.
2040 * mi/mi-main.c: Include gdbcmd.h.
2041 (mi_async_p): New function.
2042 (mi_async, mi_async_1): New globals.
2043 (set_mi_async_command, show_mi_async_command, mi_async): New
2045 (exec_continue): Call prepare_execution_command.
2046 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2047 (mi_execute_async_cli_command): Use mi_async_p.
2048 (_initialize_mi_main): Install "set mi-async". Make
2049 "target-async" a deprecated alias.
2051 2014-05-29 Pedro Alves <palves@redhat.com>
2053 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2054 (_initialize_cli_interp): Adjust.
2055 * event-loop.c: Include "observer.h".
2056 (start_event_loop): Notify 'command_error' observers instead of
2057 calling display_gdb_prompt. Remove FIXME comment.
2058 * event-top.c (display_gdb_prompt): Remove call into the
2060 * inf-loop.c: Include "observer.h".
2061 (inferior_event_handler): Notify 'command_error' observers instead
2062 of calling display_gdb_prompt.
2063 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2064 observers instead of calling display_gdb_prompt.
2065 * interps.c (interp_set): Don't call display_gdb_prompt.
2066 (current_interp_display_prompt_p): Delete.
2067 * interps.h (interp_prompt_p): Delete declaration.
2068 (interp_prompt_p_ftype): Delete.
2069 (struct interp_procs) <prompt_proc_p>: Delete field.
2070 (current_interp_display_prompt_p): Delete declaration.
2071 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2072 (_initialize_mi_interp): Adjust.
2073 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2074 'command_error' observers.
2075 (tui_on_sync_execution_done, tui_on_command_error): New
2077 (tui_display_prompt_p): Delete.
2078 (_initialize_tui_interp): Adjust.
2080 2014-05-29 Pedro Alves <palves@redhat.com>
2083 * cli/cli-interp.c: Include infrun.h and observer.h.
2084 (cli_uiout, cli_interp): New globals.
2085 (cli_on_signal_received, cli_on_end_stepping_range)
2086 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2088 (cli_interpreter_init): Install them as 'end_stepping_range',
2089 'signal_received' 'signal_exited', 'exited' and 'no_history'
2091 (_initialize_cli_interp): Remove cli_interp local.
2092 * infrun.c (handle_inferior_event): Call the several stop reason
2093 observers instead of printing the stop reason directly.
2094 (end_stepping_range): New function.
2095 (print_end_stepping_range_reason, print_signal_exited_reason)
2096 (print_exited_reason, print_signal_received_reason)
2097 (print_no_history_reason): Make static, and add an uiout
2098 parameter. Print to that instead of to CURRENT_UIOUT.
2099 * infrun.h (print_end_stepping_range_reason)
2100 (print_signal_exited_reason, print_exited_reason)
2101 (print_signal_received_reason print_no_history_reason): New
2103 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2105 <cli_uiout>: New field.
2106 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2107 uiout for CLI output. Install 'signal_received',
2108 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2110 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2111 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2112 (mi_on_no_history): New functions.
2113 (ui_out_free_cleanup): Delete function.
2114 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2115 instead use the one already stored in the MI interpreter data.
2116 (mi_ui_out): Adjust.
2117 * tui/tui-interp.c: Include infrun.h and observer.h.
2118 (tui_interp): New global.
2119 (tui_on_signal_received, tui_on_end_stepping_range)
2120 (tui_on_signal_exited, tui_on_exited)
2121 (tui_on_no_history): New functions.
2122 (tui_init): Install them as 'end_stepping_range',
2123 'signal_received' 'signal_exited', 'exited' and 'no_history'
2125 (_initialize_tui_interp): Delete tui_interp local.
2127 2014-05-29 Pedro Alves <palves@redhat.com>
2130 * linux-nat.c (linux_nat_resume_callback): Rename the second
2131 parameter to 'except'. Skip LP if it points to EXCEPT.
2132 (linux_nat_resume): Don't mark the event lwp as not stopped
2133 before resuming sibling lwps. Instead ask
2134 linux_nat_resume_callback to skip the event lwp. Mark it as not
2135 stopped after actually resuming it.
2136 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2138 (wait_lwp): Mark the lwp as stopped here.
2139 (stop_wait_callback): Mark the lwp as not stopped right after
2140 resuming it. Don't mark lwps as stopped here.
2141 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2142 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2144 2014-05-29 Pedro Alves <palves@redhat.com>
2147 * infrun.c (resume): Determine how much to resume depending on
2148 whether the caller wanted a step, not whether we can hardware step
2149 the target. Mark all threads that we intend to run as running,
2150 unless we're calling an inferior function.
2151 (normal_stop): If the thread is running an infcall, don't finish
2153 * target.c (target_resume): Don't mark threads as running here.
2155 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2157 * serial.c (_initialize_serial): Remove support for
2158 the "set remotebaud" and "show remotebaud" commands.
2159 * NEWS: Add entry documenting the removal of that command.
2161 2014-05-28 Yao Qi <yao@codesourcery.com>
2163 * charset.c: Fix typo in comments.
2165 2014-05-27 Gary Benson <gbenson@redhat.com>
2167 * utils.c (internal_vproblem): Prompt for a bug report.
2169 2014-05-26 Andy Wingo <wingo@igalia.com>
2171 * guile/scm-arch.c (arscm_mark_arch_smob):
2172 * guile/scm-block.c (bkscm_mark_block_smob)
2173 (bkscm_mark_block_syms_progress_smob):
2174 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2175 * guile/scm-exception.c (exscm_mark_exception_smob):
2176 * guile/scm-frame.c (frscm_mark_frame_smob):
2177 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2178 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2179 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2180 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2181 (ppscm_mark_pretty_printer_worker_smob):
2182 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2183 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2184 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2185 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2187 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2190 2014-05-26 Andy Wingo <wingo@igalia.com>
2191 Doug Evans <xdje42@gmail.com>
2193 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2194 empty_base_class. All uses updated.
2195 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2196 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2198 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2199 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2200 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2201 (gdbscm_gsmob_has_property_p, add_property_name)
2202 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2203 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2204 (gdb-object-has-property?, gdb-object-properties): Remove.
2205 (gdb-object-kind): Renamed from gsmob-kind.
2207 2014-05-26 Andy Wingo <wingo@igalia.com>
2209 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2210 * configure: Regenerate.
2212 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2214 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2216 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2218 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2219 (replay_memory_access_read_only, replay_memory_access_read_write)
2220 (replay_memory_access_types, replay_memory_access)
2221 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2222 (cmd_set_record_btrace, cmd_show_record_btrace)
2223 (cmd_show_replay_memory_access): New.
2224 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2225 (record_btrace_remove_breakpoint): Replace
2226 record_btrace_allow_memory_access with replay_memory_access.
2227 (_initialize_record_btrace): Add commands.
2228 * NEWS: Announce it.
2230 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2232 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2234 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2236 * MAINTAINERS (Write After Approval): Move self back from
2239 2014-05-22 Pedro Alves <palves@redhat.com>
2241 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2242 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2243 (disable_randomization, enum exec_direction_kind)
2244 (execution_direction, stop_registers, start_remote)
2245 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2246 (wait_for_inferior, normal_stop, get_last_target_status)
2247 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2248 (insert_step_resume_breakpoint_at_sal)
2249 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2250 (set_step_info, print_stop_event, signal_stop_state)
2251 (signal_print_state, signal_pass_state, signal_stop_update)
2252 (signal_print_update, signal_pass_update)
2253 (update_signals_program_target, clear_exit_convenience_vars)
2254 (displaced_step_dump_bytes, update_observer_mode)
2255 (signal_catch_update, gdb_signal_from_command): Move
2257 * infrun.h: ... to this new file.
2258 * amd64-tdep.c: Include infrun.h.
2259 * annotate.c: Include infrun.h.
2260 * arch-utils.c: Include infrun.h.
2261 * arm-linux-tdep.c: Include infrun.h.
2262 * arm-tdep.c: Include infrun.h.
2263 * break-catch-sig.c: Include infrun.h.
2264 * breakpoint.c: Include infrun.h.
2265 * common/agent.c: Include infrun.h instead of inferior.h.
2266 * corelow.c: Include infrun.h.
2267 * event-top.c: Include infrun.h.
2268 * go32-nat.c: Include infrun.h.
2269 * i386-tdep.c: Include infrun.h.
2270 * inf-loop.c: Include infrun.h.
2271 * infcall.c: Include infrun.h.
2272 * infcmd.c: Include infrun.h.
2273 * infrun.c: Include infrun.h.
2274 * linux-fork.c: Include infrun.h.
2275 * linux-nat.c: Include infrun.h.
2276 * linux-thread-db.c: Include infrun.h.
2277 * monitor.c: Include infrun.h.
2278 * nto-tdep.c: Include infrun.h.
2279 * procfs.c: Include infrun.h.
2280 * record-btrace.c: Include infrun.h.
2281 * record-full.c: Include infrun.h.
2282 * remote-m32r-sdi.c: Include infrun.h.
2283 * remote-mips.c: Include infrun.h.
2284 * remote-notif.c: Include infrun.h.
2285 * remote-sim.c: Include infrun.h.
2286 * remote.c: Include infrun.h.
2287 * reverse.c: Include infrun.h.
2288 * rs6000-tdep.c: Include infrun.h.
2289 * s390-linux-tdep.c: Include infrun.h.
2290 * solib-irix.c: Include infrun.h.
2291 * solib-osf.c: Include infrun.h.
2292 * solib-svr4.c: Include infrun.h.
2293 * target.c: Include infrun.h.
2294 * top.c: Include infrun.h.
2295 * windows-nat.c: Include infrun.h.
2296 * mi/mi-interp.c: Include infrun.h.
2297 * mi/mi-main.c: Include infrun.h.
2298 * python/py-threadevent.c: Include infrun.h.
2300 2014-05-22 Pedro Alves <palves@redhat.com>
2302 * infrun.c (handle_inferior_event): Store the exit code for
2303 --return-child-result here, instead of ...
2304 (print_exited_reason): ... here.
2306 2014-05-21 Pedro Alves <palves@redhat.com>
2309 * gdbthread.h (struct thread_control_state): New field
2311 * infrun.c (follow_fork): Copy the new thread control field to the
2313 (clear_proceed_status_thread): Clear the new thread control field.
2314 (proceed): Set the new thread control field.
2315 * interps.h (command_interp): Declare.
2316 * interps.c (command_interpreter): New global.
2317 (command_interp): New function.
2318 (interp_exec): Set `command_interpreter' while here.
2319 * cli-out.c (cli_uiout_dtor): New function.
2320 (cli_ui_out_impl): Install it.
2321 * mi/mi-interp.c: Include cli-out.h.
2322 (mi_cmd_interpreter_exec): Add comment.
2323 (restore_current_uiout_cleanup): New function.
2324 (ui_out_free_cleanup): New function.
2325 (mi_on_normal_stop): If finishing an execution command started by
2326 a CLI command, or any kind of breakpoint-like event triggered,
2327 print the stop event to the output (CLI) stream.
2328 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2330 2014-05-21 Pedro Alves <palves@redhat.com>
2332 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2333 current source line having changed.
2334 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2335 * infrun.c (normal_stop): Adjust call to
2336 set_current_sal_from_frame.
2337 * source.c (clear_lines_listed_range): New function.
2338 (set_current_source_symtab_and_line, identify_source_line): Clear
2339 the lines listed range.
2340 (line_info): Handle the first "info line" after the current source
2341 line having changed.
2342 * stack.c (print_stack_frame): Remove center handling.
2343 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2346 2014-05-21 Pedro Alves <palves@redhat.com>
2348 * inf-child.c (inf_child_mourn_inferior): New function.
2349 * inf-child.h (inf_child_mourn_inferior): New declaration.
2350 * darwin-nat.c (darwin_mourn_inferior): Use
2351 inf_child_mourn_inferior.
2352 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2353 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2354 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2355 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2356 * windows-nat.c (windows_mourn_inferior): Likewise.
2358 2014-05-21 Doug Evans <xdje42@gmail.com>
2360 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2362 2014-05-21 Doug Evans <xdje42@gmail.com>
2364 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2365 (gdbscm_out_of_range_error): Ditto.
2366 (gdbscm_memory_error): Ditto.
2367 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2368 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2369 (gdbscm_out_of_range_error): Update.
2370 (gdbscm_memory_error): Update.
2371 (gdbscm_scm_to_target_string_unsafe): Delete.
2373 2014-05-21 Pedro Alves <palves@redhat.com>
2375 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2377 (inf_child_open_target): New function.
2378 (inf_child_open): Use inf_child_open_target to push the target
2379 instead of erroring out.
2380 (inf_child_disconnect, inf_child_close)
2381 (inf_child_maybe_unpush_target): New functions.
2382 (inf_child_target): Install inf_child_disconnect and
2383 inf_child_close. Store a pointer to the returned object.
2384 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2386 * target.c (auto_connect_native_target): New global.
2387 (show_default_run_target): New function.
2388 (find_default_run_target): Return NULL if automatically connecting
2389 to the native target is disabled.
2390 (_initialize_target): Install set/show auto-connect-native-target.
2391 * NEWS: Mention "set auto-connect-native-target", and "target
2393 * linux-nat.c (super_close): New global.
2394 (linux_nat_close): Call super_close.
2395 (linux_nat_add_target): Store a pointer to the base class's
2397 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2398 inf_child_maybe_unpush.
2399 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2401 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2402 the inferior. Use inf_child_maybe_unpush_target.
2403 (inf_ttrace_attach): Don't push the target if it is already
2405 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2406 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2407 after mourning the inferior. Use inf_child_maybe_unpush_target.
2408 (darwin_attach_pid): Don't push the target if it is already
2410 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2411 mourning the inferior. Use inf_child_maybe_unpush_target.
2412 (gnu_detach): Use inf_child_maybe_unpush_target.
2413 * go32-nat.c (go32_create_inferior): Don't push the target if it
2415 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2416 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2417 (procfs_open): Rename to ...
2418 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2419 comments. Can target_preopen before changing node. Call
2420 inf_child_open_target to push the target explicitly.
2421 (procfs_attach): Don't push the target if it is already pushed.
2422 (procfs_detach): Use inf_child_maybe_unpush_target.
2423 (procfs_create_inferior): Don't push the target if it is already
2425 (nto_native_ops): New global.
2426 (procfs_open): Reimplement.
2427 (procfs_native_open): New function.
2428 (init_procfs_targets): Install procfs_native_open as to_open of
2429 "target native". Store a pointer to the "native" target in
2431 * procfs.c (procfs_attach): Don't push the target if it is already
2433 (procfs_detach): Use inf_child_maybe_unpush_target.
2434 (procfs_mourn_inferior): Only unpush the target after mourning the
2435 inferior. Use inf_child_maybe_unpush_target.
2436 (procfs_init_inferior): Don't push the target if it is already
2438 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2439 if it is already pushed.
2441 2014-05-21 Pedro Alves <palves@redhat.com>
2443 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2444 and "procfs" targets are now called "native" instead.
2446 2014-05-21 Pedro Alves <palves@redhat.com>
2448 * go32-nat.c (go32_open): Delete.
2449 (go32_target): Don't override the to_open method.
2451 2014-05-21 Pedro Alves <palves@redhat.com>
2453 * nto-procfs.c (procfs_can_run): New function.
2454 (nto_procfs_ops): New global.
2455 (init_procfs_targets): New, based on procfs_target. Install
2456 "target native" in addition to "target procfs".
2457 (_initialize_procfs): Call init_procfs_targets instead of adding
2460 2014-05-21 Pedro Alves <palves@redhat.com>
2462 * windows-nat.c (windows_target): Don't override to_shortname,
2463 to_longname or to_doc.
2465 2014-05-21 Pedro Alves <palves@redhat.com>
2467 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2470 2014-05-21 Pedro Alves <palves@redhat.com>
2472 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2473 to_shortname, to_longname or to_doc.
2475 2014-05-21 Pedro Alves <palves@redhat.com>
2477 * go32-nat.c (go32_target): Don't override to_shortname,
2478 to_longname or to_doc.
2480 2014-05-21 Pedro Alves <palves@redhat.com>
2482 * inf-child.c (inf_child_open): Remove mention of "child".
2483 (inf_child_target): Rename target to "native" instead of "child".
2485 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487 * Makefile.in (SFILES): Delete "regset.c".
2488 (COMMON_OBS): Delete "regset.o".
2490 * regset.h (regset_alloc): Delete prototype.
2492 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2494 * sparc-linux-tdep.c (sparc32_linux_gregset)
2495 (sparc32_linux_fpregset): New static regset structures.
2496 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2497 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2499 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2500 (sparc64_linux_fpregset): New static regset structures.
2501 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2502 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2503 New static regset structures.
2504 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2505 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2506 New static regset structures.
2507 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2508 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2509 New static regset structures.
2510 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2511 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2512 New static regset structures.
2513 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2515 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2517 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2518 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2519 register maps ("regmaps") from "*regset" to "*regmap". Do this
2520 for all regmap types and variables.
2521 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2522 (sparc32_linux_supply_core_gregset)
2523 (sparc32_linux_collect_core_gregset)
2524 (sparc32_linux_supply_core_fpregset)
2525 (sparc32_linux_collect_core_fpregset): Likewise.
2526 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2527 (sparc_gregmap, sparc_fpregmap): ... these.
2528 (sparc_supply_gregset, sparc_collect_gregset)
2529 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2530 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2531 (_initialize_sparc_nat): Rename regmaps.
2532 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2533 (sparc_gregmap, sparc_fpregmap): ... these.
2534 (sparc_supply_gregset, sparc_collect_gregset)
2535 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2536 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2538 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2539 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2541 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2543 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2544 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2545 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2547 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2548 (sparc32_bsd_fpregset): Rename to...
2549 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2550 (sparc32_bsd_fpregmap): ... these.
2551 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2552 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2553 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2554 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2555 (struct sparc_gregmap, struct sparc_fpregmap)
2556 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2557 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2558 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2559 (sparc32_supply_regset, sparc32_collect_gregset)
2560 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2562 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2563 (sparc64_linux_ptrace_gregmap): ... this.
2564 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2565 (_initialize_sparc64_linux_nat): Rename regmaps.
2566 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2567 (sparc64_linux_core_gregmap): ... this.
2568 (sparc64_linux_supply_core_gregset)
2569 (sparc64_linux_collect_core_gregset)
2570 (sparc64_linux_supply_core_fpregset)
2571 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2572 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2573 (sparc64_sol2_fpregset): Rename to...
2574 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2575 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2576 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2578 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2579 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2580 (sparc64_bsd_fpregset): Rename to...
2581 (struct sparc_gregmap, sparc64_sol2_gregmap)
2582 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2583 (sparc64_bsd_fpregmap): ... these.
2584 (sparc64_supply_gregset, sparc64_collect_gregset)
2585 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2587 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2588 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2589 (sparc64fbsd_gregmap): ... this.
2590 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2591 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2593 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2594 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2595 (sparc64nbsd_collect_fpregset): Likewise.
2596 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2597 (sparc64nbsd_gregmap): ... this.
2598 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2600 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2601 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2602 (sparc64obsd_gregmap): ... this.
2603 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2605 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2606 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2607 (sparc32nbsd_gregmap): ... this.
2608 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2613 * score-tdep.c (score7_linux_gregset): New static regset
2615 (score7_linux_regset_from_core_section): Remove dynamic regset
2617 (score_gdbarch_init): Drop allocation of tdep structure.
2618 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2620 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2622 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2624 (am33_regset_from_core_section): Remove dynamic regset
2627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2630 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2632 (mips_linux_regset_from_core_section): Remove dynamic regset
2634 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2635 'gregset64', 'fpregset', and 'fpregset64'.
2636 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2637 deleted tdep fields.
2639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2643 (amd64_regset_from_core_section): Remove dynamic regset
2645 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2647 (amd64obsd_regset_from_core_section): Remove dynamic regset
2649 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2651 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2652 x86-common regset supply function.
2653 * i386-tdep.c (i386_collect_gregset): Make static.
2654 (i386_gregset): New global regset structure.
2655 (i386_fpregset, i386_xstateregset): New static regset structures.
2656 (i386_regset_from_core_section): Remove dynamic regset
2658 (i386_gdbarch_init): Remove initialization of tdep fields
2659 'gregset', 'fpregset', and 'xstateregset'.
2660 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2661 'fpregset', and 'xstateregset'.
2662 (i386_collect_gregset): Remove prototype.
2663 (i386_gregset): New declaration.
2664 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2666 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2669 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2672 (arm_linux_vfpregset): New static regset structures.
2673 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2675 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2676 and 'vfpregset' fields.
2678 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2681 (aarch64_linux_fpregset): New static regset structures.
2682 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2683 of regset structures.
2684 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2687 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2689 * regset.h (struct regset): Remove gdbarch field.
2690 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2691 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2692 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2694 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2695 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2696 (ppc32_linux_vsxregset): Likewise.
2697 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2698 via the regcache instead of the regset.
2699 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2700 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2701 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2702 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2705 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2707 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2708 Constify structures.
2709 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2710 (alphanbsd_aout_gregset): Likewise.
2711 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2712 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2714 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2715 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2717 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2718 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2719 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2720 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2721 * m88k-tdep.c (m88k_gregset): Likewise.
2722 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2723 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2724 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2725 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2726 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2727 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2728 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2729 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2730 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2732 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2733 * sh-tdep.h (sh_corefile_gregset): Likewise.
2734 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2735 * vax-tdep.c (vax_gregset): Likewise.
2737 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2739 Fix TLS access for -static -pthread.
2740 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2741 (try_thread_db_load_1): Initialize it.
2742 (thread_db_get_thread_local_address): Call it if LM is zero.
2743 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2744 * target.h (struct target_ops) (to_get_thread_local_address): Add
2745 load_module_addr comment.
2747 2014-05-21 Pedro Alves <palves@redhat.com>
2749 * dcache.c (dcache_read_memory_partial): If reading the cache line
2750 fails, fallback to reading just the memory the caller wanted.
2752 2014-05-20 Doug Evans <dje@google.com>
2754 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2755 instead of get_current_arch.
2757 2014-05-20 Pedro Alves <palves@redhat.com>
2759 * NEWS: Mention that compare-sections now works with all targets.
2761 * remote.c (PACKET_qCRC): New enum value.
2762 (remote_verify_memory): Don't send qCRC if the target has no
2763 execution. Use packet_support/packet_ok. If the target doesn't
2764 support the qCRC packet, fallback to a deep memory copy.
2765 (compare_sections_command): Say "target image" instead of "remote
2767 (_initialize_remote): Add PACKET_qCRC to the list of config
2768 packets that have no associated command. Extend comment.
2769 * target.c (simple_verify_memory, default_verify_memory): New
2771 * target.h (struct target_ops) <to_verify_memory>: Default to
2772 default_verify_memory.
2773 (simple_verify_memory): New declaration.
2774 * target-delegates.c: Regenerate.
2776 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2778 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2780 2014-05-20 Hui Zhu <hui@codesourcery.com>
2781 Yao Qi <yao@codesourcery.com>
2784 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2785 and change address of sp and pc.
2787 2014-05-19 Tom Tromey <tromey@redhat.com>
2789 * gdbtypes.c (rank_function): Use XNEWVEC.
2790 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2792 2014-05-19 Doug Evans <dje@google.com>
2794 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2795 build_type_unit_groups and moved closer to only caller. Remove
2796 arguments. All references updated. Remove outdated .gdb_index
2798 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2799 build_type_psymtabs_1.
2801 2014-05-19 Doug Evans <dje@google.com>
2803 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2804 n_type_unit_groups, all_type_unit_groups. All uses removed.
2805 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2806 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2807 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2808 (add_type_unit_group_to_table): Delete.
2810 2014-05-19 Doug Evans <dje@google.com>
2812 * eval.c (evaluate_subexp_standard): Add some comments.
2814 2014-05-17 Doug Evans <xdje42@gmail.com>
2816 * progspace.c (remove_program_space): Delete, unused.
2817 * progspace.h (remove_program_space): Ditto.
2819 2014-05-17 Doug Evans <xdje42@gmail.com>
2821 * inferior.c (prune_inferiors): Fix comment.
2822 (remove_inferior_command): Call prune_program_spaces.
2824 2014-05-16 Doug Evans <dje@google.com>
2826 New command line option -D.
2828 * main.c (set_gdb_data_directory): New function.
2829 (captured_main): Recognize -D. Flag error for --data-directory "".
2830 Call set_gdb_data_directory.
2831 (print_gdb_help): Print --data-directory, -D.
2832 * main.h (set_gdb_data_directory): Declare.
2833 * top.c (staged_gdb_datadir): New static global.
2834 (set_gdb_datadir): Call set_gdb_data_directory
2835 (show_gdb_datadir): New function.
2836 (init_main): Update init of data-directory parameter.
2838 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2840 Import the "dirfd" gnulib module.
2841 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2842 * gnulib/aclocal.m4: Update.
2843 * gnulib/config.in: Update.
2844 * gnulib/configure: Update.
2845 * gnulib/import/Makefile.am: Update.
2846 * gnulib/import/Makefile.in: Update.
2847 * gnulib/import/dirfd.c: New.
2848 * gnulib/import/m4/dirfd.m4: New.
2849 * gnulib/import/m4/gnulib-cache.m4: Update.
2850 * gnulib/import/m4/gnulib-comp.m4: Update.
2852 2014-05-16 Pierre Muller <muller@sourceware.org>
2853 Yao Qi <yao@codesourcery.com>
2855 * valprint.c (print_wchar): Move the code on checking whether
2856 W is a printable wide char to the default branch of switch
2857 statement below. Call wchar_printable instead of gdb_iswprint.
2859 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2861 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2862 ldr.w and ldrd instructions.
2864 2014-05-15 Doug Evans <dje@google.com>
2866 * dwarf2read.c (read_structure_type): Delete outdated comments.
2868 2014-05-14 Tom Tromey <tromey@redhat.com>
2870 * macrocmd.c (print_macro_definition): Reindent.
2872 2014-05-13 Doug Evans <xdje42@gmail.com>
2874 * python/py-cmd.c (cmdpy_completer): Add comment.
2875 (completers): Make const.
2877 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2879 * infrun.c (resume): Remove should_resume (unused). Move up
2880 declaration of resume_ptid.
2882 2014-05-13 Tom Tromey <tromey@redhat.com>
2884 * language.h (unop_type_check): Remove.
2885 (binop_type_check): Don't declare.
2887 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2889 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2890 call to regcache_raw_collect.
2892 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2894 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2895 mi_console->quote as the quoting character.
2897 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2899 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2901 2014-04-29 Tom Tromey <tromey@redhat.com>
2903 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2904 "show debug varobj".
2906 2014-05-07 Kyle McMartin <kyle@redhat.com>
2908 Pushed by Joel Brobecker <brobecker@adacore.com>.
2909 * aarch64-tdep.c (aarch64_software_single_step): New function.
2910 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2911 with aarch64_software_single_step.
2913 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2917 2014-05-05 Keith Seitz <keiths@redhat.com>
2919 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2920 variable or history value is successfully parsed.
2922 2014-05-05 Yao Qi <yao@codesourcery.com>
2923 Pedro Alves <palves@redhat.com>
2925 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2926 address of blocks that intersects the requested range. Trim
2927 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2929 * ctf.c (ctf_xfer_partial): Likewise.
2931 2014-05-05 Yao Qi <yao@codesourcery.com>
2933 * printcmd.c (display_command): Remove the check to
2934 target_has_execution.
2936 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2938 * ppcobsd-nat.c: Include "obsd-nat.h".
2939 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2941 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2943 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2945 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2946 and 16-bit signed and unsigned arguments. Update comment.
2947 (stap_parse_probe_arguments): Extend code to handle such
2948 arguments. Use warning instead of complaint to notify about
2949 unrecognized bitness.
2951 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2953 PR breakpoints/16889
2954 * stap-probe.c (stap_parse_probe_arguments): Simplify
2955 check for non-prefixed probes (i.e., probes whose
2956 arguments do not start with "N@"). Always set the
2957 argument type to a sane value.
2959 2014-05-01 David Taylor <dtaylor@emc.com>
2961 * remote.c (compare_sections_command): Add -r option to compare
2962 all loadable read-only sections.
2964 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2966 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2967 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2969 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2970 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2971 Remove unused CORE_ADDR argument. Update all callers.
2973 2014-04-29 Pedro Alves <palves@redhat.com>
2975 * remote.c (struct packet_config) <detect>: Extend comment.
2976 (add_packet_config_cmd): Don't set the config's detect or support
2978 (init_all_packet_configs): Also initialize the config's 'detect'
2980 (reset_all_packet_configs_support): New function.
2981 (remote_open_1): Call reset_all_packet_configs_support instead of
2982 init_all_packet_configs.
2983 (_initialize_remote): Initialize all packet configs. Assert that
2984 all packets have an associated command, except a few known
2987 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2989 * dwarf2read.c (read_subrange_type): Handle dynamic
2990 DW_AT_lower_bound attributes.
2992 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2994 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2995 dynamic bounds before computing its upper bound.
2996 (ada_discrete_type_low_bound): Same as above with the lower bound.
2998 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3000 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3001 range types. Adjust the array handling implementation to
3002 take advantage of this change.
3003 (resolve_dynamic_range): New function, mostly extracted from
3004 resolve_dynamic_bounds.
3005 (resolve_dynamic_array): New function, mostly extracted from
3006 resolve_dynamic_bounds.
3007 (resolve_dynamic_bounds): Delete.
3008 (resolve_dynamic_type): Reimplement. Add handling of
3009 TYPE_CODE_RANGE types.
3011 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3013 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3014 handling of parallel ___XA types.
3016 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3018 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3019 unnecessary second call to static_unwrap_type.
3021 2014-04-27 Hui Zhu <hui@codesourcery.com>
3023 * stack.c (print_frame_info): Call do_gdb_disassembly with
3024 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3026 2014-04-26 Doug Evans <xdje42@gmail.com>
3028 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3030 2014-04-25 Pedro Alves <palves@redhat.com>
3033 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3034 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3035 and newline from built string.
3036 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3037 (linux_ptrace_attach_fail_reason): ... this.
3038 * linux-nat.c (linux_nat_attach): Adjust to use
3039 linux_ptrace_attach_fail_reason.
3041 2014-04-25 Pedro Alves <palves@redhat.com>
3043 * remote.c (struct remote_state): Remove multi_process_aware,
3044 non_stop_aware, cond_tracepoints, cond_breakpoints,
3045 breakpoint_commands, fast_tracepoints, static_tracepoints,
3046 install_in_trace, disconnected_tracing,
3047 enable_disable_tracepoints, string_tracing, and
3048 augmented_libraries_svr4_read fields.
3049 (remote_multi_process_p): Move further below in the file.
3050 (struct packet_config): Add comments.
3051 (update_packet_config): Delete function.
3052 (show_packet_config_cmd): Use packet_config_support.
3053 (add_packet_config_cmd): Use NULL as set callback.
3054 (packet_ok): "set remote foo-packet"-style commands no longer
3055 change config->supported -- adjust.
3056 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3057 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3058 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3059 (PACKET_QNonStop, PACKET_multiprocess_feature)
3060 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3061 (PACKET_DisconnectedTracing_feature)
3062 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3063 (set_remote_protocol_packet_cmd): Delete function.
3064 (packet_config_support, packet_support): New functions.
3065 (set_remote_protocol_Z_packet_cmd): Don't call
3066 update_packet_config.
3067 (remote_query_attached, remote_pass_signals)
3068 (remote_program_signals, remote_threads_info)
3069 (remote_threads_extra_info, remote_start_remote): Use
3071 (remote_start_remote): Use packet_config_support and
3073 (init_all_packet_configs): Set all packets to unknown support,
3074 instead of calling update_packet_config.
3075 (remote_check_symbols): Use packet_support.
3076 (remote_supported_packet): Unconditionally set the packet config's
3078 (remote_multi_process_feature, remote_non_stop_feature)
3079 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3080 (remote_breakpoint_commands_feature)
3081 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3082 (remote_install_in_trace_feature)
3083 (remote_disconnected_tracing_feature)
3084 (remote_enable_disable_tracepoint_feature)
3085 (remote_string_tracing_feature)
3086 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3087 (remote_protocol_features): Adjust to use remote_supported_packet
3088 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3089 "ConditionalTracepoints", "ConditionalBreakpoints",
3090 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3091 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3092 "EnableDisableTracepoints", and "tracenz".
3093 (remote_query_supported): Use packet_support.
3094 (remote_open_1): Adjust.
3095 (extended_remote_attach_1): Use packet_support. Switch on the
3096 result of packet_ok instead of checking whether the packet ended
3098 (remote_vcont_resume): Use packet_support.
3099 (remote_resume, remote_stop_ns, fetch_register_using_p)
3100 (remote_prepare_to_store, store_register_using_P)
3101 (check_binary_download, remote_write_bytes): Use packet_support.
3102 (remote_vkill): Use packet_support. Switch on the result of
3103 packet_ok instead of checking whether the packet ended up
3105 (extended_remote_supports_disable_randomization): Use
3107 (extended_remote_run): Switch on the result of packet_ok instead
3108 of checking whether the packet ended up disabled.
3109 (remote_insert_breakpoint, remote_remove_breakpoint)
3110 (remote_insert_watchpoint, remote_remove_watchpoint)
3111 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3113 (remote_search_memory): Use packet_config_support.
3114 (remote_get_thread_local_address, remote_get_tib_address)
3115 (remote_hostio_send_command, remote_can_execute_reverse): Use
3117 (remote_supports_cond_tracepoints)
3118 (remote_supports_cond_breakpoints)
3119 (remote_supports_fast_tracepoints)
3120 (remote_supports_static_tracepoints)
3121 (remote_supports_install_in_trace)
3122 (remote_supports_enable_disable_tracepoint)
3123 (remote_supports_string_tracing)
3124 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3125 the packet config says the feature is enabled or disabled.
3126 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3127 (remote_get_trace_status): Use packet_support.
3128 (remote_set_disconnected_tracing): Adjust to check whether the
3129 feature is enabled with packet_support.
3130 (remote_set_trace_buffer_size, remote_use_agent)
3131 (remote_can_use_agent, remote_supports_btrace): Use
3133 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3134 Use packet_config_support.
3135 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3136 the packet config says the feature is enabled or disabled.
3137 (set_range_stepping): Use packet_support.
3139 2014-04-25 Tom Tromey <tromey@redhat.com>
3141 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3144 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3146 * NEWS: Mention support for C99 variable length arrays.
3148 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3150 * ada-lang.c (standard_exc): Expand introductory comment.
3152 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3153 Walfred Tedeschi <walfred.tedeschi@intel.com>
3155 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3157 (amd64_linux_read_description): Add code to handle AVX512 xstate
3158 mask and return respective tdesc.
3159 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3160 and features/i386/x32-avx512-linux.c.
3161 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3162 (amd64_linux_core_read_description): Add code to handle AVX512
3163 xstate mask and return respective tdesc.
3164 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3165 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3167 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3168 (tdesc_amd64_avx512_linux): New prototype.
3169 (tdesc_x32_avx512_linux): Likewise.
3170 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3171 features/i386/x32-avx512.c.
3172 (amd64_ymm_avx512_names): New register names for pseudo
3174 (amd64_ymmh_avx512_names): New register names for raw registers
3176 (amd64_k_names): New register names for K registers.
3177 (amd64_zmmh_names): New register names for ZMM raw registers.
3178 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3179 (amd64_xmm_avx512_names): New register names for XMM16-31
3181 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3183 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3184 if feature is present.
3185 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3186 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3187 (AMD64_NUM_REGS): Adjust to new number of registers.
3188 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3189 registers supplied via XSTATE by AVX512 registers.
3190 (i386_linux_read_description): Add case for AVX512.
3191 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3192 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3193 (i386_linux_core_read_description): Add case for AVX512.
3194 (i386_linux_init_abi): Install supported register note section
3196 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3198 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3199 registers to be number of zmm7h + 1.
3200 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3201 * i386-tdep.c: Include features/i386/i386-avx512.c.
3202 (i386_zmm_names): Add ZMM pseudo register names array.
3203 (i386_zmmh_names): Add ZMM raw register names array.
3204 (i386_k_names): Add K raw register names array.
3205 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3206 registers. AVX512 has 16 more ZMM registers than there are YMM
3208 (i386_zmmh_regnum_p): Add function to look up register number of
3210 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3211 (i386_k_regnum_p): Likewise for K raw registers.
3212 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3213 registers added by AVX512.
3214 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3215 registers added by AVX512.
3216 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3218 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3219 (i386_pseudo_register_name): Add ZMM pseudo registers.
3220 (i386_zmm_type): Construct and return vector registers type for ZMM
3222 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3223 ZMM0-31 pseudo registers and K registers.
3224 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3225 and YMM16-31 registers from register cache.
3226 (i386_pseudo_register_write): Add code to write K, ZMM and
3228 (i386_register_reggroup_p): Add code to include/exclude AVX512
3229 registers in/from respective register groups.
3230 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3231 registers if feature is present in xcr0.
3232 (i386_gdbarch_init): Add code to initialize AVX512 feature
3233 variables in tdep structure, wire in pseudo registers and call
3234 initialize_tdesc_i386_avx512.
3235 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3237 (i386_regnum): Add AVX512 registers.
3238 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3239 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3240 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3241 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3243 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3244 (i386_ymm_avx512_regnum_p): Likewise.
3245 (i386_k_regnum_p): Likewise.
3246 (i386_zmm_regnum_p): Likewise.
3247 (i386_zmmh_regnum_p): Likewise.
3248 * i387-tdep.c : Update year in copyright notice.
3249 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3251 (XSAVE_YMM_AVX512_ADDR): New macro.
3252 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3254 (XSAVE_XMM_AVX512_ADDR): New macro.
3255 (xsave_avx512_k_offset): New table for K register offsets in
3257 (XSAVE_AVX512_K_ADDR): New macro.
3258 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3260 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3261 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3263 (i387_collect_xsave): Add code to collect AVX512 registers from
3265 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3266 of XMM16-31 registers.
3267 (I387_NUM_K_REGS): New define for number of K registers.
3268 (I387_K0_REGNUM): New define for K0 register number.
3269 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3270 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3271 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3273 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3274 (I387_XMM16_REGNUM): New define for XMM16 register number.
3275 (I387_YMM0_REGNUM): New define for YMM0 register number.
3276 (I387_KEND_REGNUM): New define for last K register number.
3277 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3278 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3280 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3282 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3284 * features/Makefile: Add AVX512 related files.
3285 * features/i386/32bit-avx512.xml: New file.
3286 * features/i386/64bit-avx512.xml: Likewise.
3287 * features/i386/amd64-avx512-linux.c: Likewise.
3288 * features/i386/amd64-avx512-linux.xml: Likewise.
3289 * features/i386/amd64-avx512.c: Likewise.
3290 * features/i386/amd64-avx512.xml: Likewise.
3291 * features/i386/i386-avx512-linux.c: Likewise.
3292 * features/i386/i386-avx512-linux.xml: Likewise.
3293 * features/i386/i386-avx512.c: Likewise.
3294 * features/i386/i386-avx512.xml: Likewise.
3295 * features/i386/x32-avx512-linux.c: Likewise.
3296 * features/i386/x32-avx512-linux.xml: Likewise.
3297 * features/i386/x32-avx512.c: Likewise.
3298 * features/i386/x32-avx512.xml: Likewise.
3299 * regformats/i386/amd64-avx512-linux.dat: New file.
3300 * regformats/i386/amd64-avx512.dat: Likewise.
3301 * regformats/i386/i386-avx512-linux.dat: Likewise.
3302 * regformats/i386/i386-avx512.dat: Likewise.
3303 * regformats/i386/x32-avx512-linux.dat: Likewise.
3304 * regformats/i386/x32-avx512.dat: Likewise.
3305 * NEWS: Add note about new support for AVX512.
3308 2014-04-23 Pedro Alves <palves@redhat.com>
3310 * breakpoint.c (insert_bp_location): Tolerate errors if the
3311 breakpoint is set in a user-loaded objfile.
3312 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3313 location is marked shlib_disabled. If the breakpoint is set in a
3314 user-loaded objfile is a GDB-side memory breakpoint, validate it
3315 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3316 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3318 * mem-break.c (memory_validate_breakpoint): New function.
3319 * objfiles.c (userloaded_objfile_contains_address_p): New
3321 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3322 * target.h (memory_validate_breakpoint): New declaration.
3324 2014-04-23 Pedro Alves <palves@redhat.com>
3326 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3327 the breakpoint is set in a shared library, only suppress
3328 errors for software breakpoints, not hardware breakpoints.
3330 2014-04-22 Pedro Alves <palves@redhat.com>
3332 * infrun.c (schedlock_applies): New function, factored out from
3333 find_thread_needs_step_over.
3334 (find_thread_needs_step_over): Use it.
3335 (switch_back_to_stepped_thread): Always clear trap_expected if the
3336 step over is finished. Return early if scheduler locking applies.
3337 Look for the stepping thread and a potential step-over thread with
3339 (currently_stepping_or_nexting_callback): Delete.
3341 2014-04-22 Nick Clifton <nickc@redhat.com>
3343 * NEWS: Mention that ARM sim now supports tracing.
3345 2014-04-22 Yao Qi <yao@codesourcery.com>
3347 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3349 * tracefile.c (tracefile_fetch_registers): ... it. New
3351 * tracefile.h (tracefile_fetch_registers): Declare.
3352 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3353 tracefile_fetch_registers.
3355 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3358 * windows-nat.c (thread_rec): Don't display a warning when
3359 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3360 fails for any reason, set th->suspended to -1, so that we don't
3361 try to resume such a thread. Also, don't return NULL in these
3362 cases, to avoid completely ruin the session due to "PC register is
3363 not available" error.
3364 (do_windows_fetch_inferior_registers): Check errors in
3365 GetThreadContext call.
3366 (windows_continue): Accept an additional argument KILLED; if not
3367 zero, ignore errors in the SetThreadContext call, since the
3368 inferior was killed and is shutting down.
3369 (windows_resume, get_windows_debug_event)
3370 (windows_create_inferior, windows_mourn_inferior)
3371 (windows_kill_inferior): All callers of windows_continue changed
3372 to adjust to its new calling sequence.
3374 2014-04-19 Yao Qi <yao@codesourcery.com>
3376 * ctf.c (ctf_open): Call post_create_inferior.
3378 2014-04-19 Yao Qi <yao@codesourcery.com>
3380 * ctf.c (handle_id): New static variable.
3381 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3382 value. Get the declaration of event "register" and get length
3383 of field "contents".
3385 2014-04-19 Yao Qi <yao@codesourcery.com>
3387 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3389 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3391 * valops.c (oload_method_static): Remove unnecessary argument
3392 METHOD. Update all callers.
3394 2014-04-18 Pedro alves <palves@redhat.com>
3395 Tom Tromey <tromey@redhat.com>
3398 * frame.c (get_prev_frame_1): Rename to ...
3399 (get_prev_frame_always): ... this, and make extern. Adjust.
3400 (skip_artificial_frames): Use get_prev_frame_always.
3401 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3402 (get_frame_unwind_stop_reason): Adjust to rename.
3403 * frame.h (get_prev_frame_always): Declare.
3404 * inline-frame.c: Include frame.h.
3405 (inline_frame_this_id): Use get_prev_frame_always.
3407 2014-04-18 Tristan Gingold <gingold@adacore.com>
3409 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3410 code by using bfd_mach_o_get_base_address.
3412 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3414 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3415 (spu_ax_pseudo_register_collect): New function.
3416 (spu_ax_pseudo_register_push_stack): Likewise.
3417 (spu_dwarf_reg_to_regnum): Likewise.
3418 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3420 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3422 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3423 Replace FRAME argument with FRAME_ID.
3424 * gdbarch.c, gdbarch.h: Regenerate.
3425 * findvar.c (default_value_from_register): Add GDBARCH argument;
3426 replace FRAME by FRAME_ID. No longer call get_frame_id.
3427 (value_from_register): Update call to gdbarch_value_from_register.
3428 * value.h (default_value_from_register): Update prototype.
3429 * s390-linux-tdep.c (s390_value_from_register): Update interface
3430 and call to default_value_from_register.
3431 * spu-tdep.c (spu_value_from_register): Likewise.
3433 * findvar.c (address_from_register): Remove TYPE argument.
3434 Do not call value_from_register; use gdbarch_value_from_register
3435 with null_frame_id instead.
3436 * value.h (address_from_register): Update prototype.
3437 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3438 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3439 address_from_register interface change.
3441 2014-04-17 Yao Qi <yao@codesourcery.com>
3443 * gdbtypes.h: Update comments to link to types and macros'
3446 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3448 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3450 2014-04-16 Keith Seitz <keiths@redhat.com>
3453 * dwarf2read.c (skip_one_die): Check that all relative-offset
3454 sibling DIEs fall within range of the current reader's buffer.
3455 (read_partial_die): Likewise.
3457 2014-04-16 Keith Seitz <keiths@redhat.com>
3460 * cp-namespace.c (lookup_symbol_file): If the type name of
3461 `this' is NULL, return immediately.
3463 2014-04-14 Keith Seitz <keiths@redhat.com>
3466 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3467 from symbol_matches_domain in symtab.c. All local callers
3468 of symbol_matches_domain updated.
3469 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3470 search STRUCT_DOMAIN.
3471 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3472 independently. standard_lookup will do that automatically.
3473 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3474 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3475 (cp_lookup_symbol_in_namespace): Likewise.
3476 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3477 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3478 may return a STRUCT_DOMAIN match.
3479 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3480 * cp-support.c: Include language.h.
3481 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3483 * psymtab.c (match_partial_symbol): Compare the requested
3484 domain with the symbol's domain directly.
3485 (lookup_partial_symbol): Likewise.
3486 * symtab.c (lookup_symbol_in_language): Explain when/why
3487 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3488 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3489 appropriate languages.
3490 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3491 and moved to ada-lang.c
3492 (lookup_block_symbol): Explain that this function only returns
3493 symbol matching the requested DOMAIN.
3494 Compare the requested domain with the symbol's domain directly.
3495 (iterate_over_symbols): Compare the requested domain with the
3496 symbol's domain directly.
3497 * symtab.h (symbol_matches_domain): Remove.
3499 2014-04-14 Tom Tromey <tromey@redhat.com>
3502 * c-exp.y (type_aggregate_p): New function.
3503 (qualified_name, classify_inner_name): Use it.
3504 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3505 and TYPE_TARGET_TYPE of an enum type.
3506 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3508 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3509 handle TYPE_DECLARED_CLASS.
3510 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3512 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3513 * valops.c (enum_constant_from_type): New function.
3514 (value_aggregate_elt): Use it.
3515 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3518 2014-04-14 Tom Tromey <tromey@redhat.com>
3520 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3521 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3523 * value.h (value_aggregate_elt): Update.
3525 2014-04-14 Tom Tromey <tromey@redhat.com>
3527 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3529 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3531 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3532 (evaluate_subexp_standard): Pass noside argument.
3533 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3534 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3535 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3536 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3537 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3539 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3541 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3542 points to a constant blob.
3544 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3546 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3547 property and store it as the high bound and flag the range accordingly.
3548 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3549 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3550 * gdbtypes.h (enum range_flags): New enum.
3551 (struct range_bounds): Add flags member.
3553 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3555 * c-typeprint.c (c_type_print_varspec_suffix): Added
3556 check for not yet resolved high bound. If unresolved, print
3557 "variable length" string to the console instead of random
3560 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3562 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3564 (ada_template_to_fixed_record_type_1): Likewise.
3565 (ada_to_fixed_type_1): Likewise.
3566 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3567 (cp_print_value): Likewise.
3568 * d-valprint.c (dynamic_array_type): Likewise.
3569 * findvar.c (address_of_variable): Likewise.
3570 * jv-valprint.c (java_value_print): Likewise.
3571 * valops.c (value_ind): Likewise.
3572 * value.c (coerce_ref): Likewise.
3574 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3576 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3577 value and retrieve the dynamic type size.
3579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3581 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3582 passed to sizeof is dynamic evaluate the argument to compute the length.
3584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3585 Joel Brobecker <brobecker@adacore.com>
3587 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3588 (dwarf2_evaluate_property): New function.
3589 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3590 * dwarf2read.c (attr_to_dynamic_prop): New function.
3591 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3593 * gdbtypes.c: Include dwarf2loc.h.
3594 (is_dynamic_type): New function.
3595 (resolve_dynamic_type): New function.
3596 (resolve_dynamic_bounds): New function.
3597 (get_type_length): New function.
3598 (check_typedef): Use get_type_length to compute type length.
3599 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3600 (TYPE_LOW_BOUND_KIND): New macro.
3601 (is_dynamic_type): New function prototype.
3602 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3603 to resolve dynamic properties of the type. Update comment.
3604 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3606 2014-04-14 Richard Henderson <rth@redhat.com>
3608 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3610 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3611 Doug Evans <xdje42@gmail.com>
3613 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3614 dereference TYPE_CODE_REF values.
3616 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3618 Revert the following changes due to regressions:
3620 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3621 (dwarf2_evaluate_property): New function.
3622 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3623 * dwarf2read.c (attr_to_dynamic_prop): New function.
3624 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3626 * gdbtypes.c: Include dwarf2loc.h.
3627 (is_dynamic_type): New function.
3628 (resolve_dynamic_type): New function.
3629 (resolve_dynamic_bounds): New function.
3630 (get_type_length): New function.
3631 (check_typedef): Use get_type_length to compute type length.
3632 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3633 (TYPE_LOW_BOUND_KIND): New macro.
3634 (is_dynamic_type): New function prototype.
3635 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3636 to resolve dynamic properties of the type. Update comment.
3637 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3639 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3640 passed to sizeof is dynamic evaluate the argument to compute the length.
3642 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3643 value and retrieve the dynamic type size.
3645 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3646 (ada_template_to_fixed_record_type_1): Likewise.
3647 (ada_to_fixed_type_1): Likewise.
3648 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3649 (cp_print_value): Likewise.
3650 * d-valprint.c (dynamic_array_type): Likewise.
3651 * eval.c (evaluate_subexp_with_coercion): Likewise.
3652 * findvar.c (address_of_variable): Likewise.
3653 * jv-valprint.c (java_value_print): Likewise.
3654 * valops.c (value_ind): Likewise.
3655 * value.c (coerce_ref): Likewise.
3657 * c-typeprint.c (c_type_print_varspec_suffix): Added
3658 check for not yet resolved high bound. If unresolved, print
3659 "variable length" string to the console instead of random
3662 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3663 property and store it as the high bound and flag the range accordingly.
3664 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3665 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3666 * gdbtypes.h (enum range_flags): New enum.
3667 (struct range_bounds): Add flags member.
3669 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3670 points to a constant blob.
3672 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3673 (evaluate_subexp_standard): Pass noside argument.
3674 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3675 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3676 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3677 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3678 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3680 2014-04-11 Keith Seitz <keiths@redhat.com>
3683 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3684 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3687 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3689 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3690 (evaluate_subexp_standard): Pass noside argument.
3691 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3692 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3693 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3694 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3695 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3697 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3699 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3700 points to a constant blob.
3702 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3704 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3705 property and store it as the high bound and flag the range accordingly.
3706 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3707 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3708 * gdbtypes.h (enum range_flags): New enum.
3709 (struct range_bounds): Add flags member.
3711 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3713 * c-typeprint.c (c_type_print_varspec_suffix): Added
3714 check for not yet resolved high bound. If unresolved, print
3715 "variable length" string to the console instead of random
3718 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3720 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3721 (ada_template_to_fixed_record_type_1): Likewise.
3722 (ada_to_fixed_type_1): Likewise.
3723 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3724 (cp_print_value): Likewise.
3725 * d-valprint.c (dynamic_array_type): Likewise.
3726 * eval.c (evaluate_subexp_with_coercion): Likewise.
3727 * findvar.c (address_of_variable): Likewise.
3728 * jv-valprint.c (java_value_print): Likewise.
3729 * valops.c (value_ind): Likewise.
3730 * value.c (coerce_ref): Likewise.
3732 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3734 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3735 value and retrieve the dynamic type size.
3737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3739 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3740 passed to sizeof is dynamic evaluate the argument to compute the length.
3742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3744 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3745 (dwarf2_evaluate_property): New function.
3746 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3747 * dwarf2read.c (attr_to_dynamic_prop): New function.
3748 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3750 * gdbtypes.c: Include dwarf2loc.h.
3751 (is_dynamic_type): New function.
3752 (resolve_dynamic_type): New function.
3753 (resolve_dynamic_bounds): New function.
3754 (get_type_length): New function.
3755 (check_typedef): Use get_type_length to compute type length.
3756 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3757 (TYPE_LOW_BOUND_KIND): New macro.
3758 (is_dynamic_type): New function prototype.
3759 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3760 to resolve dynamic properties of the type. Update comment.
3761 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3763 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3765 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3766 declaring high/low bounds and change uses accordingly. Call
3767 create_range_type instead of create_static_range_type.
3768 * gdbtypes.c (create_range_type): New function.
3769 (create_range_type): Convert bounds into struct bound_prop and pass
3770 them to create_range_type.
3771 * gdbtypes.h (struct bound_prop): New struct.
3772 (create_range_type): New function prototype.
3773 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3774 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3775 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3777 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3779 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3781 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3782 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3783 * ada-lang.c: All uses of create_range_type updated.
3784 * coffread.c: All uses of create_range_type updated.
3785 * dwarf2read.c: All uses of create_range_type updated.
3786 * f-exp.y: All uses of create_range_type updated.
3787 * m2-valprint.c: All uses of create_range_type updated.
3788 * mdebugread.c: All uses of create_range_type updated.
3789 * stabsread.c: All uses of create_range_type updated.
3790 * valops.c: All uses of create_range_type updated.
3791 * valprint.c: All uses of create_range_type updated.
3793 2014-04-10 Pedro Alves <palves@redhat.com>
3795 * breakpoint.c (single_step_breakpoints)
3796 (single_step_gdbarch): Move up in the file.
3797 (one_breakpoint_xfer_memory): New function, factored out from ...
3798 (breakpoint_xfer_memory): ... here. Also process single-step
3801 2014-04-09 Tristan Gingold <gingold@adacore.com>
3803 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3805 (darwin_decode_exception_message): Free port only after use.
3807 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3809 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3810 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3811 when setting the size of call_length.
3813 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3815 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3816 dereference TYPE_CODE_REF values.
3818 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3820 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3821 end of warning message.
3823 2014-04-03 Doug Evans <dje@google.com>
3825 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3826 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3828 2014-04-02 Alan Modra <amodra@gmail.com>
3830 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3831 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3832 (struct symbol_file_add_from_memory_args): Add size field.
3833 (find_vdso_size): New function.
3834 (add_vsyscall_page): Attempt to find vdso size.
3836 2014-04-01 Doug Evans <dje@google.com>
3838 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3840 2014-04-01 Tristan Gingold <gingold@adacore.com>
3842 * darwin-nat.c (darwin_encode_reply): Add prototype.
3843 (darwin_decode_exception_message): Reply to unknown inferiors.
3844 (darwin_decode_message): Handle message by id. Ignore message
3845 to unknown inferior.
3846 (darwin_wait): Discard unknown messages, add debug trace.
3848 2014-03-31 Doug Evans <dje@google.com>
3850 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3853 2014-03-31 Doug Evans <dje@google.com>
3855 New option "set print symbol-loading".
3857 * solib.c (solib_read_symbols): Only print symbol loading messages
3859 (solib_add): If symbol loading is in "brief" mode, notify user
3860 symbols are being loaded.
3861 (reload_shared_libraries_1): Ditto.
3862 * symfile.c (print_symbol_loading_off): New static global.
3863 (print_symbol_loading_brief): New static global.
3864 (print_symbol_loading_full): New static global.
3865 (print_symbol_loading_enums): New static global.
3866 (print_symbol_loading): New static global.
3867 (print_symbol_loading_p): New function.
3868 (symbol_file_add_with_addrs): Only print symbol loading messages
3870 (_initialize_symfile): Register "print symbol-loading" set/show
3872 * symfile.h (print_symbol_loading_p): Declare.
3874 2014-03-30 Doug Evans <xdje42@gmail.com>
3876 * infrun.c (set_last_target_status): New function.
3877 (handle_inferior_event): Call it.
3879 2014-03-30 Doug Evans <xdje42@gmail.com>
3881 * inferior.h (enum stop_kind): Improve comment.
3883 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3885 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3886 a reference, strip the reference layer before calling
3887 the lang_ops value_has_mutated callback.
3889 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3891 Remove some globals from our parser.
3892 * language.c (unk_lang_parser): Add "struct parser_state"
3894 * language.h (struct language_defn) <la_parser>: Likewise.
3895 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3896 (initialize_expout): Add "struct parser_state" argument.
3897 Rewrite function to use the parser state.
3898 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3899 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3900 write_exp_elt_longcst, write_exp_elt_dblcst,
3901 write_exp_elt_decfloatcst, write_exp_elt_type,
3902 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3903 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3904 write_dollar_variable): Likewise.
3905 (parse_exp_in_context_1): Use parser state.
3906 (insert_type_address_space): Add "struct parser_state" argument.
3908 (increase_expout_size): New function.
3909 * parser-defs.h: Forward declare "struct language_defn" and
3910 "struct parser_state".
3911 (expout, expout_size, expout_ptr): Remove extern declarations.
3912 (parse_gdbarch, parse_language): Rewrite macro declarations to
3913 accept the parser state.
3914 (struct parser_state): New struct.
3915 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3916 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3917 write_exp_elt_decfloatcst, write_exp_elt_type,
3918 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3919 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3920 write_exp_msymbol, write_dollar_variable,
3921 mark_struct_expression, insert_type_address_space): Add "struct
3922 parser_state" argument.
3923 (increase_expout_size): New function.
3924 * utils.c (do_clear_parser_state): New function.
3925 (make_cleanup_clear_parser_state): Likewise.
3926 * utils.h (make_cleanup_clear_parser_state): New function
3928 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3929 Update calls to write_exp* in order to pass the parser state.
3930 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3931 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3932 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3933 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3934 * stap-probe.c (stap_parse_register_operand): Likewise.
3935 (stap_parse_single_operand): Likewise.
3936 (stap_parse_argument_1): Likewise.
3937 (stap_parse_argument): Use parser state.
3938 * stap-probe.h: Include "parser-defs.h".
3939 (struct stap_parse_info) <pstate>: New field.
3940 * c-exp.y (parse_type): Rewrite to use parser state.
3941 (yyparse): Redefine to c_parse_internal.
3942 (pstate): New global variable.
3943 (parse_number): Add "struct parser_state" argument.
3944 (write_destructor_name): Likewise.
3945 (type_exp): Update calls to write_exp* and similars in order to
3947 (exp1, exp, variable, qualified_name, space_identifier,
3948 typename, typebase): Likewise.
3949 (write_destructor_name, parse_number, lex_one_token,
3950 classify_name, classify_inner_name, c_parse): Add "struct
3951 parser_state" argument. Update function to use parser state.
3952 * c-lang.h: Forward declare "struct parser_state".
3953 (c_parse): Add "struct parser_state" argument.
3954 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3955 (yyparse): Redefine macro to ada_parse_internal.
3956 (pstate): New variable.
3957 (write_int, write_object_renaming, write_var_or_type,
3958 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3959 type_int, type_long, type_long_long, type_float, type_double,
3960 type_long_double, type_char, type_boolean, type_system_address):
3961 Add "struct parser_state" argument.
3962 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3963 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3964 var_or_type, aggregate, aggregate_component_list,
3965 positional_list, others, component_group,
3966 component_associations): Update calls to write_exp* and similar
3967 functions in order to use parser state.
3968 (ada_parse, write_var_from_sym, write_int,
3969 write_exp_op_with_string, write_object_renaming,
3970 find_primitive_type, write_selectors, write_ambiguous_var,
3971 write_var_or_type, write_name_assoc, type_int, type_long,
3972 type_long_long, type_float, type_double, type_long_double,
3973 type_char, type_boolean, type_system_address): Add "struct
3974 parser_state" argument. Adjust function to use parser state.
3975 * ada-lang.c (parse): Likewise.
3976 * ada-lang.h: Forward declare "struct parser_state".
3977 (ada_parse): Add "struct parser_state" argument.
3978 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3979 calls to both functions.
3980 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3982 (yyparse): Redefine macro to f_parse_internal.
3983 (pstate): New variable.
3984 (parse_number): Add "struct parser_state" argument.
3985 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3986 and similars in order to use parser state.
3987 (parse_number): Adjust code to use parser state.
3989 (f_parse): New function.
3990 * f-lang.h: Forward declare "struct parser_state".
3991 (f_parse): Add "struct parser_state" argument.
3992 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3994 (yyparse): Redefine macro for java_parse_internal.
3995 (pstate): New variable.
3996 (push_expression_name, push_expression_name, insert_exp): Add
3997 "struct parser_state" argument.
3998 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3999 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4000 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4001 PostIncrementExpression, PostDecrementExpression,
4002 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4003 UnaryExpressionNotPlusMinus, CastExpression,
4004 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4005 RelationalExpression, EqualityExpression, AndExpression,
4006 ExclusiveOrExpression, InclusiveOrExpression,
4007 ConditionalAndExpression, ConditionalOrExpression,
4008 ConditionalExpression, Assignment, LeftHandSide): Update
4009 calls to write_exp* and similars in order to use parser state.
4010 (parse_number): Ajust code to use parser state.
4012 (java_parse): New function.
4013 (push_variable): Add "struct parser_state" argument. Adjust
4014 code to user parser state.
4015 (push_fieldnames, push_qualified_expression_name,
4016 push_expression_name, insert_exp): Likewise.
4017 * jv-lang.h: Forward declare "struct parser_state".
4018 (java_parse): Add "struct parser_state" argument.
4019 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4021 (yyparse): Redefine macro to m2_parse_internal.
4022 (pstate): New variable.
4023 (type_exp, exp, fblock, variable, type): Update calls to
4024 write_exp* and similars to use parser state.
4026 (m2_parse): New function.
4027 * m2-lang.h: Forward declare "struct parser_state".
4028 (m2_parse): Add "struct parser_state" argument.
4029 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4030 * objc-lang.h: Forward declare "struct parser_state".
4031 (end_msglist): Add "struct parser_state" argument.
4032 * p-exp.y (parse_type): Rewrite macro to use parser state.
4033 (yyparse): Redefine macro to pascal_parse_internal.
4034 (pstate): New variable.
4035 (parse_number): Add "struct parser_state" argument.
4036 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4037 write_exp* and similars in order to use parser state.
4038 (parse_number, yylex): Adjust code to use parser state.
4039 (pascal_parse): New function.
4040 * p-lang.h: Forward declare "struct parser_state".
4041 (pascal_parse): Add "struct parser_state" argument.
4042 * go-exp.y (parse_type): Rewrite macro to use parser state.
4043 (yyparse): Redefine macro to go_parse_internal.
4044 (pstate): New variable.
4045 (parse_number): Add "struct parser_state" argument.
4046 (type_exp, exp1, exp, variable, type): Update calls to
4047 write_exp* and similars in order to use parser state.
4048 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4049 to use parser state.
4050 (go_parse): Likewise.
4051 * go-lang.h: Forward declare "struct parser_state".
4052 (go_parse): Add "struct parser_state" argument.
4054 2014-03-27 Doug Evans <dje@google.com>
4056 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4058 2014-03-27 Doug Evans <dje@google.com>
4060 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4061 Remove argument abbrev_section. All callers updated.
4063 2014-03-27 Doug Evans <dje@google.com>
4065 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4066 addr_base, ranges_base.
4068 2014-03-26 Keith Seitz <keiths@redhat.com>
4070 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4071 types, not VAR_DOMAIN.
4073 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4075 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4077 * features/nios2-linux.c: Regenerated.
4078 * features/nios2.c: Regenerated.
4080 2014-03-25 Pedro Alves <palves@redhat.com>
4082 * cli/cli-script.c (script_from_file): Force the interpreter to
4085 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4087 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4088 small stack allocation.
4090 2014-03-24 Tristan Gingold <gingold@adacore.com>
4092 * darwin-nat.c (exc_server): Remove unused prototype.
4093 (darwin_dump_message): Correctly display data on x86_64.
4094 (darwin_encode_reply): Fix style.
4095 Add comments and fix indentation.
4097 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4099 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4101 2014-03-22 Doug Evans <xdje42@gmail.com>
4103 * infcmd.c: Whitespace fixes.
4104 (interrupt_command): Merge two function comments into one.
4106 2014-03-22 Doug Evans <xdje42@gmail.com>
4108 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4111 2014-03-22 Yao Qi <yao@codesourcery.com>
4113 * remote.c (target_read_live_memory): Remove.
4114 (memory_xfer_live_readonly_partial): Rename it to
4115 remote_xfer_live_readonly_partial. Remove argument 'object'.
4116 All callers updated. Call remote_read_bytes_1
4117 instead of target_read_live_memory.
4118 * tracepoint.c (set_traceframe_number): Remove.
4119 (make_cleanup_restore_traceframe_number): Likewise .
4120 * tracepoint.h (set_traceframe_number): Remove declaration.
4121 (make_cleanup_restore_traceframe_number): Likewise.
4123 2014-03-22 Yao Qi <yao@codesourcery.com>
4125 * remote.c (remote_read_bytes): Move code on reading from the
4127 (remote_read_bytes_1): ... here. New function.
4129 2014-03-22 Yao Qi <yao@codesourcery.com>
4131 * ctf.c (ctf_xfer_partial): Check the return value of
4132 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4133 return TARGET_XFER_UNAVAILABLE.
4134 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4135 * target.c (target_read_live_memory): Move it to remote.c.
4136 (memory_xfer_live_readonly_partial): Likewise.
4137 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4138 * remote.c (target_read_live_memory): Moved from target.c.
4139 (memory_xfer_live_readonly_partial): Likewise.
4140 (remote_read_bytes): Factored out from
4141 memory_xfer_partial_1.
4143 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4145 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4148 2014-03-21 Pedro Alves <palves@redhat.com>
4150 * infrun.c (normal_stop): Extend comment.
4152 2014-03-21 Hui Zhu <hui@codesourcery.com>
4153 Pedro Alves <palves@redhat.com>
4155 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4157 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4158 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4159 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4161 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4163 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4164 `z' formatted output modifier.
4166 2014-03-20 Tom Tromey <tromey@redhat.com>
4167 Sergio Durigan Junior <sergiodj@redhat.com>
4169 * probe.c (parse_probes): Turn assert into an ordinary error.
4170 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4171 exceptions when parsing probes. Rearrange the code for clarity.
4173 2014-03-20 Tom Tromey <tromey@redhat.com>
4176 * top.c (execute_command): Only dispatch events if the command
4179 2014-03-20 Tom Tromey <tromey@redhat.com>
4182 * infcall.c: Include event-top.h.
4183 (run_inferior_call): Call async_disable_stdin if needed.
4185 2014-03-20 Pedro Alves <palves@redhat.com>
4187 * infrun.c (prepare_to_proceed): Delete.
4188 (thread_still_needs_step_over): New function.
4189 (find_thread_needs_step_over): New function.
4190 (proceed): If the current thread needs a step-over, set its
4191 steping_over_breakpoint flag. Adjust to use
4192 find_thread_needs_step_over instead of prepare_to_proceed.
4193 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4194 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4196 (switch_back_to_stepped_thread): Step over breakpoints of all
4197 threads not the stepping thread, before switching back to the
4200 2014-03-20 Pedro Alves <palves@redhat.com>
4202 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4204 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4205 * infrun.c (saved_singlestep_ptid)
4206 (stepping_past_singlestep_breakpoint): Delete.
4207 (resume): Remove stepping_past_singlestep_breakpoint handling.
4208 (proceed): Store the prev_pc of the stepping thread too.
4209 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4211 (enum infwait_states): Delete infwait_thread_hop_state.
4212 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4214 (handle_inferior_event): Adjust.
4215 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4216 handling and the thread-hop code. Before removing single-step
4217 breakpoints, check whether the thread hit a single-step breakpoint
4218 of another thread. If it did, the trap is not a random signal.
4219 (switch_back_to_stepped_thread): If the event thread hit a
4220 single-step breakpoint, unblock it before switching to the
4221 stepping thread. Handle the case of the stepped thread having
4223 (keep_going): Handle the case of the current thread moving past a
4224 single-step breakpoint.
4226 2014-03-20 Pedro Alves <palves@redhat.com>
4229 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4230 are being stepped over.
4231 (breakpoint_address_match): Make extern.
4232 * breakpoint.h (breakpoint_address_match): New declaration.
4233 * inferior.h (stepping_past_instruction_at): New declaration.
4234 * infrun.c (struct step_over_info): New type.
4235 (step_over_info): New global.
4236 (set_step_over_info, clear_step_over_info)
4237 (stepping_past_instruction_at): New functions.
4238 (handle_inferior_event): Clear the step-over info when
4239 trap_expected is cleared.
4240 (resume): Remove now stale comment.
4241 (clear_proceed_status): Clear step-over info.
4242 (proceed): Adjust step-over handling to set or clear the step-over
4243 info instead of removing all breakpoints.
4244 (handle_signal_stop): When setting up a thread-hop, don't remove
4246 (stop_stepping): Clear step-over info.
4247 (keep_going): Adjust step-over handling to set or clear step-over
4248 info and then always inserting breakpoints, instead of removing
4249 all breakpoints when stepping over one.
4251 2014-03-20 Pedro Alves <palves@redhat.com>
4253 * infrun.c (previous_inferior_ptid): Adjust comment.
4254 (deferred_step_ptid): Delete.
4255 (infrun_thread_ptid_changed, prepare_to_proceed)
4256 (init_wait_for_inferior): Adjust.
4257 (handle_signal_stop): Delete deferred_step_ptid handling.
4259 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4262 * defs.h (sync_quit_force_run): New declaration.
4263 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4264 * event-top.c (async_sigterm_handler): New declaration.
4265 (async_sigterm_token): New variable.
4266 (async_init_signals): Create also async_sigterm_token.
4267 (async_sigterm_handler): New function.
4268 (sync_quit_force_run): New variable.
4269 (handle_sigterm): Replace quit_force call by other calls.
4270 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4272 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4274 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4275 offset into SPE pseudo registers.
4277 2014-03-18 Pedro Alves <palves@redhat.com>
4280 * inferior.h (print_stop_event): Declare.
4281 * infrun.c (print_stop_event): New, factored out from ...
4282 (normal_stop): ... this.
4283 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4284 of bpstat_print/print_stack_frame.
4286 2014-03-17 Tom Tromey <tromey@redhat.com>
4288 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4290 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4292 * ada-lang.c (decode_constrained_packed_array): Perform a
4293 minimal coercion for reference with coerce_ref instead of
4296 2014-03-17 Tristan Gingold <gingold@adacore.com>
4298 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4299 (darwin_solib_create_inferior_hook): Emit a warning if version
4302 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4304 * python/py-value.c (get_field_flag): Cast flag_name argument to
4305 PyObject_GetAttrString to support Python 2.4.
4307 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4309 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4310 (Global Maintainers): Remove Jan Kratochvil.
4312 2014-03-14 Pedro Alves <palves@redhat.com>
4314 * inferior.h (terminal_ours_for_output): Rename to ...
4315 (child_terminal_ours_for_output): ... this.
4316 (terminal_save_ours): Rename to ...
4317 (child_terminal_save_ours): ... this.
4318 (terminal_ours): Rename to ...
4319 (child_terminal_ours): ... this.
4320 (terminal_inferior): Rename to ...
4321 (child_terminal_inferior): ... this.
4322 (terminal_init_inferior): Rename to ...
4323 (child_terminal_init_inferior): ... this.
4324 (terminal_init_inferior_with_pgrp): Rename to ...
4325 (child_terminal_init_inferior_with_pgrp): ... this.
4326 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4327 (child_terminal_init_with_pgrp): ... this.
4328 (terminal_save_ours): Rename to ...
4329 (child_terminal_save_ours): ... this.
4330 (terminal_init_inferior): Rename to ...
4331 (child_terminal_init): ... this. Adjust.
4332 (terminal_inferior): Rename to ...
4333 (child_terminal_inferior): ... this.
4334 (terminal_ours_for_output): Rename to ...
4335 (child_terminal_ours_for_output): ... this. Adjust.
4336 (terminal_ours): Rename to ...
4337 (child_terminal_ours): ... this.
4338 (terminal_ours_1): Rename to ...
4339 (child_terminal_ours_1): ... this. Adjust.
4340 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4341 * windows-nat.c (do_initial_windows_stuff): Adjust.
4342 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4343 (gnu_terminal_init): ... this. Adjust.
4344 (gnu_target): Adjust.
4345 * inf-child.c (inf_child_target): Adjust.
4347 2014-03-13 Doug Evans <xdje42@gmail.com>
4350 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4353 2014-03-13 Doug Evans <xdje42@gmail.com>
4355 * value.c (record_latest_value): Call release_value_or_incref
4356 instead of release_value.
4358 2014-03-13 Pedro Alves <palves@redhat.com>
4360 * procfs.c (procfs_target): Don't override to_shortname,
4361 to_longname or to_doc.
4363 2014-03-13 Pedro Alves <palves@redhat.com>
4365 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4366 Unix in user visible strings.
4368 2014-03-12 Stan Shebs <stan@codesourcery.com>
4370 * gdbtypes.h: Annotate comments for Doxygen, add a page
4371 block comment with some general info.
4373 2014-03-12 Pedro Alves <palves@redhat.com>
4375 * infcmd.c (prepare_execution_command): New function, factored out
4376 from several execution commands.
4377 (run_command_1, continue_command, step_1, jump_command)
4378 (signal_command, until_command, advance_command, finish_command)
4379 (attach_command): Use prepare_execution_command.
4381 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4383 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4386 (struct arm_linux_thread_points): Removed.
4387 (struct arm_linux_process_info): New.
4388 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4389 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4390 (arm_linux_find_breakpoints_by_tid): Removed.
4391 (struct arch_lwp_info): New.
4392 (arm_linux_find_process_pid): New functions.
4393 (arm_linux_add_process): New functions.
4394 (arm_linux_process_info_get): New functions.
4395 (arm_linux_forget_process): New function.
4396 (arm_linux_get_debug_reg_state): New function.
4397 (struct update_registers_data): New.
4398 (update_registers_callback): New function.
4399 (arm_linux_insert_hw_breakpoint1): Updated.
4400 (arm_linux_remove_hw_breakpoint1): Updated.
4401 (arm_linux_insert_hw_breakpoint): Updated.
4402 (arm_linux_remove_hw_breakpoint): Updated.
4403 (arm_linux_insert_watchpoint): Updated.
4404 (arm_linux_remove_watchpoint): Updated.
4405 (arm_linux_new_thread): Updated.
4406 (arm_linux_prepare_to_resume): New function.
4407 (arm_linux_new_fork): New function.
4408 (_initialize_arm_linux_nat): Updated.
4410 2014-03-12 Pedro Alves <palves@redhat.com>
4412 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4414 2014-03-12 Tom Tromey <tromey@redhat.com>
4416 * inf-child.c (return_zero): New function.
4417 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4418 * aix-thread.c (aix_thread_inferior_created): New function.
4419 (aix_thread_attach): Remove.
4420 (init_aix_thread_ops): Don't set to_attach.
4421 (_initialize_aix_thread): Register inferior_created observer.
4422 * corelow.c (init_core_ops): Don't set to_attach or
4424 * exec.c (init_exec_ops): Don't set to_attach or
4426 * infcmd.c (run_command_1): Use find_run_target. Make direct
4428 (attach_command): Use find_attach_target. Make direct target
4430 * record-btrace.c (init_record_btrace_ops): Don't set
4432 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4434 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4435 set to_create_inferior.
4436 * target.c (complete_target_initialization): Add assertion.
4437 (target_create_inferior): Remove.
4438 (find_default_attach, find_default_create_inferior): Remove.
4439 (find_attach_target, find_run_target): New functions.
4440 (find_default_is_async_p, find_default_can_async_p)
4441 (target_supports_non_stop, target_attach): Remove.
4442 (init_dummy_target): Don't set to_create_inferior or
4443 to_supports_non_stop.
4444 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4445 TARGET_DEFAULT_FUNC.
4446 <to_create_inferior>: Add comment.
4447 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4448 TARGET_DEFAULT_RETURN.
4449 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4450 (find_attach_target, find_run_target): Declare.
4451 (target_create_inferior): Remove.
4452 (target_has_execution_1): Update comment.
4453 (target_supports_non_stop): Remove.
4454 * target-delegates.c: Rebuild.
4456 2014-03-12 Pedro Alves <palves@redhat.com>
4458 * inf-child.h: Update comment to not mention Unix.
4460 2014-03-12 Pedro Alves <palves@redhat.com>
4462 * inf-child.c: Update top comment to not mention Unix. Add
4463 generic comment describing how this target is meant to be used.
4464 (inf_child_post_attach, inf_child_post_startup_inferior)
4465 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4468 2014-03-12 Pedro Alves <palves@redhat.com>
4470 * nto-procfs.c: Include inf-child.h.
4471 (procfs_ops): Delete global.
4472 (procfs_can_run): Delete method.
4473 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4474 target pointer instead of referencing procfs_ops.
4475 (procfs_prepare_to_store): Delete.
4476 (init_procfs_ops): Delete function.
4477 (procfs_target): New function, based on init_procfs_ops, but
4478 inherit inf_child_target.
4479 (_initialize_procfs): Use procfs_target.
4481 2014-03-12 Pedro Alves <palves@redhat.com>
4483 * windows-nat.c: Include inf-child.h.
4484 (windows_ops): Delete global.
4485 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4487 (init_windows_ops): Delete function.
4488 (windows_target): New function, based on init_windows_ops, but
4489 inherit inf_child_target.
4490 (_initialize_windows_nat): Use windows_target. Install x86
4491 specific target methods here.
4493 2014-03-10 Doug Evans <xdje42@gmail.com>
4495 * guile/guile.c (call_initialize_gdb_module): New function.
4496 (initialize_guile): Replace call to scm_init_guile with call to
4499 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4501 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4502 in call to TYPE_CODE macro.
4504 2014-03-10 Jerome Guitton <guitton@adacore.com>
4506 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4507 Resolve tagged types to full view.
4509 2014-03-10 Hui Zhu <hui@codesourcery.com>
4511 * target.h (target_insert_breakpoint): Remove "hardware" from its
4514 2014-03-07 Doug Evans <dje@google.com>
4516 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4518 2014-03-07 Doug Evans <dje@google.com>
4520 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4521 Remove unused local comp_dir_attr. Assert exactly one of
4522 stub_comp_unit_die, stub_comp_dir is non-NULL.
4524 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4526 * target.h (complete_target_initialization, add_target):
4529 2014-03-07 Pedro Alves <palves@redhat.com>
4531 * go32-nat.c: Include inf-child.h.
4532 (go32_ops): Delete global.
4533 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4535 (go32_create_inferior): Push the passed in target pointer instead
4536 of referencing go32_ops.
4537 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4538 (go32_target): New function, based on init_go32_ops, but inherit
4540 (_initialize_go32_nat): Use go32_target. Move parts of
4543 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4545 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4546 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4547 SYMBOL_VALUE_ADDRESS.
4548 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4550 2014-03-06 Yao Qi <yao@codesourcery.com>
4552 * breakpoint.c (get_tracepoint_by_number): Remove argument
4553 optional_p. All callers updated. Adjust comments. Update
4555 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4557 2014-03-06 Yao Qi <yao@codesourcery.com>
4559 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4560 early if get_number returns zero. Use 'p' instead of 'args'.
4562 2014-03-06 Yao Qi <yao@codesourcery.com>
4564 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4567 2014-03-06 Yao Qi <yao@codesourcery.com>
4569 PR breakpoints/16508
4570 * tracepoint.c (check_trace_running): New function.
4571 (trace_find_command): Move code to check_trace_running and
4572 call check_trace_running.
4573 (trace_find_pc_command): Likewise.
4574 (trace_find_tracepoint_command): Likewise.
4575 (trace_find_line_command): Likewise.
4576 (trace_find_range_command): Likewise.
4577 * tracepoint.h (check_trace_running): Likewise.
4578 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4580 2014-03-06 Yao Qi <yao@codesourcery.com>
4582 * target.h (struct target_ops) <to_traceframe_info>: Use
4583 TARGET_DEFAULT_NORETURN (tcomplain ()).
4584 * target-delegates.c: Regenerated.
4586 2014-03-05 Pedro Alves <palves@redhat.com>
4589 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4590 void. Update comment.
4591 (dcache_xfer_memory): Delete.
4592 (dcache_read_memory_partial): New, based on the read bits of
4594 (dcache_update): Add status parameter. Use ULONGEST for len, and
4595 adjust. Discard cache lines if the reason for the update was
4597 * dcache.h (dcache_xfer_memory): Delete declaration.
4598 (dcache_read_memory_partial): New declaration.
4599 (dcache_update): Update prototype.
4600 * target.c (raw_memory_xfer_partial): Update the dcache here.
4601 (memory_xfer_partial_1): Don't handle dcache writes here.
4603 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4605 * remote-sim.c (gdbsim_load): Add const to prog.
4607 2014-03-03 Tom Tromey <tromey@redhat.com>
4609 * elfread.c (probe_key): Change to bfd_data.
4610 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4611 now per-BFD, not per-objfile.
4612 * stap-probe.c (stap_probe_destroy): Update comment.
4613 (handle_stap_probe): Allocate on the per-BFD obstack.
4615 2014-03-03 Tom Tromey <tromey@redhat.com>
4617 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4618 * breakpoint.c (create_longjmp_master_breakpoint): Use
4620 (add_location_to_breakpoint, bkpt_probe_insert_location)
4621 (bkpt_probe_remove_location): Update.
4622 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4623 * elfread.c (elf_symfile_relocate_probe): Remove.
4624 (elf_probe_fns): Update.
4625 (insert_exception_resume_breakpoint): Change type of "probe"
4626 parameter to bound_probe.
4627 (check_exception_resume): Update.
4628 * objfiles.c (objfile_relocate1): Don't relocate probes.
4629 * probe.c (bound_probe_s): New typedef.
4630 (parse_probes): Use get_probe_address. Set sal's objfile.
4631 (find_probe_by_pc): Return a bound_probe.
4632 (collect_probes): Return a VEC(bound_probe_s).
4633 (compare_probes): Update.
4634 (gen_ui_out_table_header_info): Change type of "probes"
4636 (info_probes_for_ops): Update.
4637 (get_probe_address): New function.
4638 (probe_safe_evaluate_at_pc): Update.
4639 * probe.h (struct probe_ops) <get_probe_address>: New field.
4640 <set_semaphore, clear_semaphore>: Add objfile parameter.
4641 (struct probe) <objfile>: Remove field.
4643 <address>: Update comment.
4644 (struct bound_probe): New.
4645 (find_probe_by_pc): Return a bound_probe.
4646 (get_probe_address): Declare.
4647 * solib-svr4.c (struct probe_and_action) <address>: New field.
4648 (hash_probe_and_action, equal_probe_and_action): Update.
4649 (register_solib_event_probe): Add address parameter.
4650 (solib_event_probe_at): Update.
4651 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4653 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4654 (stap_get_probe_address): New function.
4655 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4656 (compile_probe_arg): Update.
4657 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4659 (handle_stap_probe): Don't relocate the probe.
4660 (stap_relocate): Remove.
4661 (stap_gen_info_probes_table_values): Update.
4662 (stap_probe_ops): Remove stap_relocate.
4663 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4664 (debug_sym_probe_fns): Update.
4665 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4666 * symtab.c (init_sal): Use memset.
4667 * symtab.h (struct symtab_and_line) <objfile>: New field.
4668 * tracepoint.c (start_tracing, stop_tracing): Update.
4670 2014-03-03 Tom Tromey <tromey@redhat.com>
4672 * probe.h (parse_probes, find_probe_by_pc)
4673 (find_probes_in_objfile): Fix comments.
4675 2014-03-02 Doug Evans <xdje42@gmail.com>
4677 * infrun.c (handle_signal_stop): Replace test for
4678 TARGET_WAITKIND_STOPPED with an assert.
4680 2014-03-02 Doug Evans <xdje42@gmail.com>
4682 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4684 2014-03-02 Doug Evans <xdje42@gmail.com>
4686 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4688 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4690 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4692 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4694 * i386obsd-nat.c: Include "obsd-nat.h".
4695 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4697 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4699 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4701 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4703 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4705 * mips64obsd-nat.c: Include "obsd-nath".
4706 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4708 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4710 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4712 * amd64obsd-nat.c: Include "obsd-nat,h.
4713 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4715 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4717 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4719 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4720 (find_overload_match): Update call to find_oload_champ.
4721 (find_oload_champ_namespace_loop): Likewise
4723 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4725 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4727 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4728 * config/sparc/obsd64.mh: New file.
4729 * sparc64obsd-nat.c: New file.
4731 * obsd-nat.h: New file.
4732 * obsd-nat.c: New file.
4733 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4734 (ALLDEPFILES): Add obsd-nat.c.
4736 2014-02-28 Tom Tromey <tromey@redhat.com>
4738 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4739 * cli-out.h (cli_ui_out_impl): Now const.
4740 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4741 * ui-out.c (struct ui_out) <impl>: Now const.
4742 (default_ui_out_impl): Now const.
4743 (ui_out_new): Make 'impl' parameter const.
4744 * ui-out.h (ui_out_new): Update.
4746 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4748 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4750 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4752 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4754 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4756 Additional PR 8882 fix.
4757 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4759 2014-02-27 Pedro Alves <palves@redhat.com>
4761 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4764 2014-02-27 Pedro Alves <palves@redhat.com>
4767 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4768 * nat/linux-waitpid.c: Include string.h.
4769 (status_to_str): Moved here and made extern.
4770 * nat/linux-waitpid.h (status_to_str): New declaration.
4772 2014-02-27 Hui Zhu <hui@codesourcery.com>
4775 * infrun.c (ptid_match): Move ...
4776 * common/ptid.c (ptid_match): ... here.
4777 * inferior.h (ptid_match): Move ...
4778 * common/ptid.h (ptid_match): ... here.
4780 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4782 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4783 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4786 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4788 * obsd-tdep.c (obsd_auxv_parse): New function.
4789 (obsd_init_abi): Set auxv_parse.
4791 * gdbarch.sh (auxv_parse): New.
4792 * gdbarch.h: Regenerated.
4793 * gdbarch.c: Regenerated.
4794 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4796 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4798 * guile/scm-value.c (gdbscm_history_append_x): New function.
4799 (value_functions): Add it.
4801 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4803 * dwarf2read.c (attr_value_as_address): New function.
4804 (dwarf2_find_base_address, read_call_site_scope): Use
4805 attr_value_as_address in place of DW_ADDR.
4806 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4807 the low and high addresses. Slight rework of the handling
4808 of the high pc being a constant form, and limit it to
4809 DWARF verson 4 or higher.
4810 (dwarf2_record_block_ranges): Likewise.
4811 (read_partial_die): Likewise.
4812 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4814 2014-02-26 Tom Tromey <tromey@redhat.com>
4816 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4818 2014-02-26 Tom Tromey <tromey@redhat.com>
4820 * elfread.c (elf_read_minimal_symbols): Return early if
4821 minimal symbols have already been read. Add "ei" parameter.
4822 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4823 * minsyms.c (prim_record_minimal_symbol_full): Update.
4824 * objfiles.h (struct objstats) <n_minsyms>: Move...
4825 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4826 * symmisc.c (print_objfile_statistics): Update.
4828 2014-02-26 Tom Tromey <tromey@redhat.com>
4830 * elfread.c (elf_read_minimal_symbols): New function, from
4832 (elf_symfile_read): Call it.
4834 2014-02-26 Tom Tromey <tromey@redhat.com>
4836 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4837 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4838 (lookup_minimal_symbol_solib_trampoline)
4839 (lookup_minimal_symbol_by_pc_section_1)
4840 (lookup_minimal_symbol_and_objfile): Update.
4841 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4842 Don't allocate a minimal symbol if minsyms have already been read.
4843 (build_minimal_symbol_hash_tables): Update.
4844 (install_minimal_symbols): Do nothing if minsyms already read.
4845 Use the per-BFD obstack.
4846 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4847 * objfiles.c (allocate_objfile): Call
4848 terminate_minimal_symbol_table later.
4849 (have_minimal_symbols): Update.
4850 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4851 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4852 Move from struct objfile.
4853 <minsyms_read>: New field.
4854 (struct objfile) <msymbols, minimal_symbol_count,
4855 msymbol_hash, msymbol_demangled_hash>: Move.
4856 (ALL_OBJFILE_MSYMBOLS): Update.
4857 * symfile.c (read_symbols): Set minsyms_read.
4858 (reread_symbols): Update.
4859 * symmisc.c (dump_objfile, dump_msymbols): Update.
4861 2014-02-26 Tom Tromey <tromey@redhat.com>
4863 * minsyms.c (msymbols_sort): Remove.
4864 * minsyms.h (msymbols_sort): Remove.
4865 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4866 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4867 * elfread.c (elf_symtab_read): Don't add section offsets.
4868 * xcoffread.c (record_minimal_symbol): Don't add section offset
4869 to minimal symbol address.
4870 * somread.c (text_offset, data_offset): Remove.
4871 (som_symtab_read): Don't add section offsets to minimal symbol
4873 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4874 Don't add section offsets to minimal symbols.
4875 * coffread.c (coff_symtab_read): Don't add section offsets
4876 to minimal symbol addresses.
4877 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4878 to minimal symbol addresses.
4879 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4880 section offset to minimal symbol addresses.
4881 * mdebugread.c (parse_partial_symbols): Don't add section
4882 offset to minimal symbol addresses.
4883 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4884 offset to minimal symbol addresses.
4886 2014-02-26 Tom Tromey <tromey@redhat.com>
4888 * ada-lang.c (ada_main_name): Update.
4889 (ada_add_standard_exceptions): Update.
4890 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4891 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4892 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4893 * auxv.c (ld_so_xfer_auxv): Update.
4894 * avr-tdep.c (avr_scan_prologue): Update.
4895 * ax-gdb.c (gen_var_ref): Update.
4896 * blockframe.c (get_pc_function_start)
4897 (find_pc_partial_function_gnu_ifunc): Update.
4898 * breakpoint.c (create_overlay_event_breakpoint)
4899 (create_longjmp_master_breakpoint)
4900 (create_std_terminate_master_breakpoint)
4901 (create_exception_master_breakpoint): Update.
4902 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4903 * c-valprint.c (c_val_print): Update.
4904 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4905 * common/agent.c (agent_look_up_symbols): Update.
4906 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4907 * dwarf2loc.c (call_site_to_target_addr): Update.
4908 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4909 * elfread.c (elf_gnu_ifunc_record_cache)
4910 (elf_gnu_ifunc_resolve_by_got): Update.
4911 * findvar.c (default_read_var_value): Update.
4912 * frame.c (inside_main_func): Update.
4913 * frv-tdep.c (frv_frame_this_id): Update.
4914 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4915 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4917 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4918 (hppa_hpux_find_dummy_bpaddr): Update.
4919 * hppa-tdep.c (hppa_symbol_address): Update.
4920 * infcmd.c (until_next_command): Update.
4921 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4923 * linespec.c (minsym_found, add_minsym): Update.
4924 * linux-nat.c (get_signo): Update.
4925 * linux-thread-db.c (inferior_has_bug): Update.
4926 * m32c-tdep.c (m32c_return_value)
4927 (m32c_m16c_address_to_pointer): Update.
4928 * m32r-tdep.c (m32r_frame_this_id): Update.
4929 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4930 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4931 * maint.c (maintenance_translate_address): Update.
4932 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4933 (frob_address): New function.
4934 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4935 frob_address. Rename parameter to "pc_in".
4936 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4938 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4940 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4941 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4942 * objc-lang.c (find_objc_msgsend): Update.
4943 * objfiles.c (objfile_relocate1): Update.
4944 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4945 * p-valprint.c (pascal_val_print): Update.
4946 * parse.c (write_exp_msymbol): Update.
4947 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4948 (ppc_elfv2_skip_entrypoint): Update.
4949 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4950 * printcmd.c (build_address_symbolic, msym_info)
4951 (address_info): Update.
4952 * proc-service.c (ps_pglobal_lookup): Update.
4953 * psymtab.c (find_pc_sect_psymtab_closer)
4954 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4955 Change msymbol parameter to bound_minimal_symbol.
4956 * ravenscar-thread.c (get_running_thread_id): Update.
4957 * remote.c (remote_check_symbols): Update.
4958 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4960 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4961 * solib-dsbt.c (lm_base): Update.
4962 * solib-frv.c (lm_base, main_got): Update.
4963 * solib-irix.c (locate_base): Update.
4964 * solib-som.c (som_solib_create_inferior_hook)
4965 (link_map_start): Update.
4966 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4967 * solib-svr4.c (elf_locate_base, enable_break): Update.
4968 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4969 (flush_ea_cache): Update.
4970 * stabsread.c (define_symbol, scan_file_globals): Update.
4971 * stack.c (find_frame_funname): Update.
4972 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4973 (debug_qf_find_pc_sect_symtab): Update.
4974 * symfile.c (simple_read_overlay_table)
4975 (simple_overlay_update): Update.
4976 * symfile.h (struct quick_symbol_functions)
4977 <find_pc_sect_symtab>: Change type of msymbol to
4978 bound_minimal_symbol.
4979 * symmisc.c (dump_msymbols): Update.
4980 * symtab.c (find_pc_sect_symtab_via_partial)
4981 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4982 (search_symbols, print_msymbol_info): Update.
4983 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4984 (MSYMBOL_VALUE_ADDRESS): Redefine.
4985 (BMSYMBOL_VALUE_ADDRESS): New macro.
4986 * tracepoint.c (scope_info): Update.
4987 * tui/tui-disasm.c (tui_find_disassembly_address)
4988 (tui_get_begin_asm_address): Update.
4989 * valops.c (find_function_in_inferior): Update.
4990 * value.c (value_static_field, value_fn_field): Update.
4992 2014-02-26 Tom Tromey <tromey@redhat.com>
4994 * ada-lang.c (ada_update_initial_language): Update.
4995 (ada_main_name, ada_has_this_exception_support): Update.
4996 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4997 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4998 * arm-tdep.c (arm_skip_stub): Update.
4999 * auxv.c (ld_so_xfer_auxv): Update.
5000 * avr-tdep.c (avr_scan_prologue): Update.
5001 * ax-gdb.c (gen_var_ref): Update.
5002 * breakpoint.c (struct breakpoint_objfile_data)
5003 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5004 type to bound_minimal_symbol.
5005 (create_overlay_event_breakpoint)
5006 (create_longjmp_master_breakpoint)
5007 (create_std_terminate_master_breakpoint)
5008 (create_exception_master_breakpoint): Update.
5009 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5010 * c-exp.y (classify_name): Update.
5011 * coffread.c (coff_symfile_read): Update.
5012 * common/agent.c (agent_look_up_symbols): Update.
5013 * d-lang.c (d_main_name): Update.
5014 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5015 * dec-thread.c (enable_dec_thread): Update.
5016 * dwarf2loc.c (call_site_to_target_addr): Update.
5017 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5018 * eval.c (evaluate_subexp_standard): Update.
5019 * findvar.c (struct minsym_lookup_data) <result>: Change type
5020 to bound_minimal_symbol.
5022 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5023 * frame.c (inside_main_func): Update.
5024 * frv-tdep.c (frv_frame_this_id): Update.
5025 * gcore.c (call_target_sbrk): Update.
5026 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5027 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5029 * go-lang.c (go_main_name): Update.
5030 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5031 (hppa_hpux_find_import_stub_for_addr): Update.
5032 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5033 Update. Change return type.
5034 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5036 * jit.c (jit_breakpoint_re_set_internal): Update.
5037 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5039 * linux-nat.c (get_signo): Update.
5040 * linux-thread-db.c (inferior_has_bug): Update
5041 * m32c-tdep.c (m32c_return_value)
5042 (m32c_m16c_address_to_pointer): Update.
5043 * m32r-tdep.c (m32r_frame_this_id): Update.
5044 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5045 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5046 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5047 lookup_minimal_symbol. Change return type.
5048 (lookup_minimal_symbol): Remove.
5049 (lookup_bound_minimal_symbol): Update.
5050 (lookup_minimal_symbol_text): Change return type.
5051 (lookup_minimal_symbol_solib_trampoline): Change return type.
5052 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5053 (lookup_minimal_symbol_solib_trampoline): Change return type.
5054 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5055 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5056 (value_nsstring, find_imps): Update.
5057 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5058 * p-lang.c (pascal_main_name): Update.
5059 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5060 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5061 * proc-service.c (ps_pglobal_lookup): Update.
5062 * ravenscar-thread.c (get_running_thread_msymbol): Change
5064 (has_ravenscar_runtime, get_running_thread_id): Update.
5065 * remote.c (remote_check_symbols): Update.
5066 * sol-thread.c (ps_pglobal_lookup): Update.
5067 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5068 * solib-dsbt.c (lm_base): Update.
5069 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5071 * solib-irix.c (locate_base): Update.
5072 * solib-som.c (som_solib_create_inferior_hook)
5073 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5075 * solib-spu.c (spu_enable_break): Update.
5076 * solib-svr4.c (elf_locate_base, enable_break): Update.
5077 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5078 (flush_ea_cache): Update.
5079 * stabsread.c (define_symbol): Update.
5080 * symfile.c (simple_read_overlay_table): Update.
5081 * symtab.c (find_pc_sect_line): Update.
5082 * tracepoint.c (scope_info): Update.
5083 * tui-disasm.c (tui_get_begin_asm_address): Update.
5084 * value.c (value_static_field): Update.
5086 2014-02-26 Tom Tromey <tromey@redhat.com>
5088 * minsyms.c (prim_record_minimal_symbol_full): Use
5089 SET_MSYMBOL_VALUE_ADDRESS.
5090 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5091 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5092 SET_MSYMBOL_VALUE_ADDRESS.
5093 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5094 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5096 2014-02-26 Tom Tromey <tromey@redhat.com>
5098 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5099 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5100 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5101 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5102 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5103 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5104 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5105 * ada-lang.c (ada_main_name): Update.
5106 (ada_lookup_simple_minsym): Update.
5107 (ada_make_symbol_completion_list): Update.
5108 (ada_add_standard_exceptions): Update.
5109 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5110 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5111 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5112 * arm-tdep.c (skip_prologue_function): Update.
5113 (arm_skip_stack_protector, arm_skip_stub): Update.
5114 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5115 (arm_wince_skip_main_prologue): Update.
5116 * auxv.c (ld_so_xfer_auxv): Update.
5117 * avr-tdep.c (avr_scan_prologue): Update.
5118 * ax-gdb.c (gen_var_ref): Update.
5119 * block.c (call_site_for_pc): Update.
5120 * blockframe.c (get_pc_function_start): Update.
5121 (find_pc_partial_function_gnu_ifunc): Update.
5122 * breakpoint.c (create_overlay_event_breakpoint): Update.
5123 (create_longjmp_master_breakpoint): Update.
5124 (create_std_terminate_master_breakpoint): Update.
5125 (create_exception_master_breakpoint): Update.
5126 (resolve_sal_pc): Update.
5127 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5128 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5130 * c-valprint.c (c_val_print): Update.
5131 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5132 * coffread.c (coff_symfile_read): Update.
5133 * common/agent.c (agent_look_up_symbols): Update.
5134 * dbxread.c (find_stab_function_addr): Update.
5135 (end_psymtab): Update.
5136 * dwarf2loc.c (call_site_to_target_addr): Update.
5137 (func_verify_no_selftailcall): Update.
5138 (tailcall_dump): Update.
5139 (call_site_find_chain_1): Update.
5140 (dwarf_expr_reg_to_entry_parameter): Update.
5141 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5142 (elf_gnu_ifunc_resolve_by_got): Update.
5143 * f-valprint.c (info_common_command): Update.
5144 * findvar.c (read_var_value): Update.
5145 * frame.c (get_prev_frame_1): Update.
5146 (inside_main_func): Update.
5147 * frv-tdep.c (frv_skip_main_prologue): Update.
5148 (frv_frame_this_id): Update.
5149 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5150 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5151 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5152 (gnuv3_skip_trampoline): Update.
5153 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5154 (hppa64_hpux_in_solib_call_trampoline): Update.
5155 (hppa_hpux_skip_trampoline_code): Update.
5156 (hppa64_hpux_search_dummy_call_sequence): Update.
5157 (hppa_hpux_find_import_stub_for_addr): Update.
5158 (hppa_hpux_find_dummy_bpaddr): Update.
5159 * hppa-tdep.c (hppa_symbol_address)
5160 (hppa_lookup_stub_minimal_symbol): Update.
5161 * i386-tdep.c (i386_skip_main_prologue): Update.
5162 (i386_pe_skip_trampoline_code): Update.
5163 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5164 * infcall.c (get_function_name): Update.
5165 * infcmd.c (until_next_command): Update.
5166 * jit.c (jit_breakpoint_re_set_internal): Update.
5167 (jit_inferior_init): Update.
5168 * linespec.c (minsym_found): Update.
5169 (add_minsym): Update.
5170 * linux-fork.c (info_checkpoints_command): Update.
5171 * linux-nat.c (get_signo): Update.
5172 * linux-thread-db.c (inferior_has_bug): Update.
5173 * m32c-tdep.c (m32c_return_value): Update.
5174 (m32c_m16c_address_to_pointer): Update.
5175 (m32c_m16c_pointer_to_address): Update.
5176 * m32r-tdep.c (m32r_frame_this_id): Update.
5177 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5178 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5179 * maint.c (maintenance_translate_address): Update.
5180 * minsyms.c (add_minsym_to_hash_table): Update.
5181 (add_minsym_to_demangled_hash_table): Update.
5182 (msymbol_objfile): Update.
5183 (lookup_minimal_symbol): Update.
5184 (iterate_over_minimal_symbols): Update.
5185 (lookup_minimal_symbol_text): Update.
5186 (lookup_minimal_symbol_by_pc_name): Update.
5187 (lookup_minimal_symbol_solib_trampoline): Update.
5188 (lookup_minimal_symbol_by_pc_section_1): Update.
5189 (lookup_minimal_symbol_and_objfile): Update.
5190 (prim_record_minimal_symbol_full): Update.
5191 (compare_minimal_symbols): Update.
5192 (compact_minimal_symbols): Update.
5193 (build_minimal_symbol_hash_tables): Update.
5194 (install_minimal_symbols): Update.
5195 (terminate_minimal_symbol_table): Update.
5196 (find_solib_trampoline_target): Update.
5197 (minimal_symbol_upper_bound): Update.
5198 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5199 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5200 (mips_skip_pic_trampoline_code): Update.
5201 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5202 * objc-lang.c (selectors_info): Update.
5203 (classes_info): Update.
5204 (find_methods): Update.
5205 (find_imps): Update.
5206 (find_objc_msgsend): Update.
5207 * objfiles.c (objfile_relocate1): Update.
5208 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5209 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5210 * p-valprint.c (pascal_val_print): Update.
5211 * parse.c (write_exp_msymbol): Update.
5212 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5213 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5214 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5215 * printcmd.c (build_address_symbolic): Update.
5217 (address_info): Update.
5218 * proc-service.c (ps_pglobal_lookup): Update.
5219 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5220 (find_pc_sect_psymtab): Update.
5221 * python/py-framefilter.c (py_print_frame): Update.
5222 * ravenscar-thread.c (get_running_thread_id): Update.
5223 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5225 * remote.c (remote_check_symbols): Update.
5226 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5227 (rs6000_skip_trampoline_code): Update.
5228 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5229 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5230 * solib-dsbt.c (lm_base): Update.
5231 * solib-frv.c (lm_base): Update.
5233 * solib-irix.c (locate_base): Update.
5234 * solib-som.c (som_solib_create_inferior_hook): Update.
5235 (som_solib_desire_dynamic_linker_symbols): Update.
5236 (link_map_start): Update.
5237 * solib-spu.c (spu_enable_break): Update.
5238 (ocl_enable_break): Update.
5239 * solib-svr4.c (elf_locate_base): Update.
5240 (enable_break): Update.
5241 * spu-tdep.c (spu_get_overlay_table): Update.
5242 (spu_catch_start): Update.
5243 (flush_ea_cache): Update.
5244 * stabsread.c (define_symbol): Update.
5245 (scan_file_globals): Update.
5246 * stack.c (find_frame_funname): Update.
5247 (frame_info): Update.
5248 * symfile.c (simple_read_overlay_table): Update.
5249 (simple_overlay_update): Update.
5250 * symmisc.c (dump_msymbols): Update.
5251 * symtab.c (fixup_section): Update.
5252 (find_pc_sect_line): Update.
5253 (skip_prologue_sal): Update.
5254 (search_symbols): Update.
5255 (print_msymbol_info): Update.
5256 (rbreak_command): Update.
5257 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5258 (completion_list_objc_symbol): Update.
5259 (default_make_symbol_completion_list_break_on): Update.
5260 * tracepoint.c (scope_info): Update.
5261 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5262 (tui_get_begin_asm_address): Update.
5263 * valops.c (find_function_in_inferior): Update.
5264 * value.c (value_static_field): Update.
5265 (value_fn_field): Update.
5267 2014-02-26 Tom Tromey <tromey@redhat.com>
5269 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5270 bound minimal symbols. Move code that knows about minsym
5272 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5274 * minsyms.h (minimal_symbol_upper_bound): Declare.
5275 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5276 minimal_symbol_upper_bound.
5278 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5280 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5281 Use the type's name if its basic type does not have a tag.
5283 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5285 * dwarf2read.c (read_subrange_type): Add comment.
5287 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5289 * dwarf2read.c (update_enumeration_type_from_children): New
5290 function, mostly extracted from process_structure_scope.
5291 (read_enumeration_type): Call update_enumeration_type_from_children.
5292 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5293 and flag_flag_enum fields.
5295 2014-02-26 Pedro Alves <palves@redhat.com>
5297 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5298 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5299 to_xfer_partial method.
5301 2014-02-26 Pedro Alves <palves@redhat.com>
5303 * target.c (complete_target_initialization): Don't install
5304 default_xfer_partial as to_xfer_partial hook.
5306 (update_current_target): Don't INHERIT nor de_fault
5307 deprecated_xfer_memory. Delete de_fault macro.
5308 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5309 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5310 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5313 2014-02-26 Pedro Alves <palves@redhat.com>
5315 * go32-nat.c (my_write_child): New function.
5316 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5317 (go32_xfer_partial): New function.
5318 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5319 Instead install a to_xfer_partial hook.
5321 2014-02-26 Pedro Alves <palves@redhat.com>
5323 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5324 to_xfer_partial helper. Rewrite.
5325 (procfs_xfer_partial): New function.
5326 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5327 Install a to_xfer_partial hook.
5329 2014-02-26 Pedro Alves <palves@redhat.com>
5331 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5332 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5333 (m32r_xfer_partial): New function.
5334 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5335 Install a to_xfer_partial hook.
5337 2014-02-26 Pedro Alves <palves@redhat.com>
5339 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5341 (mips_xfer_partial): New function.
5342 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5343 hook. Install a to_xfer_partial hook.
5345 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5347 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5348 * gdbtypes.c (create_array_type_with_stride): New function,
5349 renaming create_array_type, but with an added parameter
5350 called "bit_stride".
5351 (create_array_type): Re-implement using
5352 create_array_type_with_stride.
5353 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5354 and DW_AT_bit_stride attributes.
5356 2014-02-26 Pedro Alves <palves@redhat.com>
5358 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5359 task-specific breakpoints.
5361 2014-02-25 Pedro Alves <palves@redhat.com>
5363 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5364 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5366 2014-02-25 Stan Shebs <stan@codesourcery.com>
5368 * defs.h: Annotate comments for Doxygen.
5370 2014-02-25 Tom Tromey <tromey@redhat.com>
5372 * target.h (target_ignore): Don't declare.
5373 * target.c (target_ignore): Remove.
5375 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5378 * auto-load.c (auto_load_objfile_script_1): Change filename to
5381 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5383 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5384 documentation. Adjust prototype to match the target_ops
5385 to_xfer_partial method. Adjust implementation accordingly.
5387 2014-02-25 Hui Zhu <hui@codesourcery.com>
5389 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5392 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5394 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5395 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5396 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5397 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5398 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5399 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5400 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5401 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5403 (rl78_register_type): Use a data pointer type for SP and
5404 new pseudo registers mentioned above. Use a 16 bit integer
5405 type for all other register pairs.
5406 (rl78_register_name, rl78_g10_register_name): Update for
5407 new pseudo registers.
5408 (rl78_pseudo_register_read): Likewise.
5409 (rl78_pseudo_register_write): Likewise.
5410 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5411 to the newly added pseudo registers.
5413 2014-02-24 Doug Evans <dje@google.com>
5415 * value.c (record_latest_value): Fix comment.
5416 * printcmd.c (print_command_1): Remove code to handle -1 return from
5417 record_latest_value.
5419 2014-02-24 Pedro Alves <palves@redhat.com>
5421 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5422 deprecated_xfer_memory hook.
5423 (procfs_xfer_partial): Call procfs_xfer_memory instead
5424 of the deprecated_xfer_memory target hook.
5425 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5428 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5430 * windows-nat.c (windows_xfer_shared_libraries): Return
5431 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5432 requested object is TARGET_OBJECT_LIBRARIES.
5434 2014-02-24 Yao Qi <yao@codesourcery.com>
5436 * target.h (enum target_xfer_status)
5437 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5438 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5440 * corefile.c (memory_error_message): User updated.
5441 * exec.c (section_table_read_available_memory): Likewise.
5442 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5443 * target.c (target_xfer_status_to_string): Likewise.
5444 (raw_memory_xfer_partial): Likewise.
5445 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5446 * valops.c (read_value_memory): Likewise.
5447 * exec.h: Update comments.
5449 2014-02-24 Yao Qi <yao@codesourcery.com>
5451 * target.c (target_xfer_status_to_string): Rename argument err
5453 * target.h (target_xfer_status_to_string): Update declaration.
5454 Replace target_xfer_error_to_string with
5455 target_xfer_status_to_string in comment.
5457 2014-02-24 Yao Qi <yao@codesourcery.com>
5459 * mips-linux-nat.c (super_close): Update its type.
5460 (mips_linux_close): Pass 'self' to super_close.
5462 2014-02-24 Yao Qi <yao@codesourcery.com>
5464 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5465 * corefile.c (read_memory): Adjusted.
5466 * target.c (target_write_with_progress): Adjusted.
5468 2014-02-23 Yao Qi <yao@codesourcery.com>
5472 2013-10-25 Yao Qi <yao@codesourcery.com>
5474 * remote.c (remote_traceframe_info): Return early if
5475 traceframe is not selected.
5477 2013-07-19 Yao Qi <yao@codesourcery.com>
5479 * target.c (update_current_target): Change the default action
5480 of 'to_traceframe_info' from tcomplain to return_zero.
5481 * target.h (struct target_ops) <to_traceframe_info>: Add more
5484 2014-02-23 Yao Qi <yao@codesourcery.com>
5486 * valops.c (read_value_memory): Rewrite it. Call
5487 target_xfer_partial in a loop.
5488 * exec.h (section_table_available_memory): Remove declaration.
5489 Move comments to ...
5490 * exec.c (section_table_available_memory): ... here. Make it
5493 2014-02-23 Yao Qi <yao@codesourcery.com>
5495 * exec.c (section_table_read_available_memory): New function.
5496 * exec.h (section_table_read_available_memory): Declare.
5497 * ctf.c (ctf_xfer_partial): Call
5498 section_table_read_available_memory.
5499 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5501 2014-02-23 Yao Qi <yao@codesourcery.com>
5503 * ctf.c (ctf_xfer_partial): Move code to ...
5504 * exec.c (exec_read_partial_read_only): ... it. New function.
5505 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5506 * tracefile.c: Include "exec.h".
5507 * exec.h (exec_read_partial_read_only): Declare.
5509 2014-02-23 Yao Qi <yao@codesourcery.com>
5511 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5512 (tfile_has_memory): Remove.
5513 (init_tfile_ops): Don't set fields to_has_all_memory and
5514 to_has_memory of tfile_ops.
5515 * tracefile.c (tracefile_has_all_memory): New function.
5516 (tracefile_has_memory): New function.
5517 (init_tracefile_ops): Initialize fields to_has_all_memory and
5518 to_has_memory of 'ops'.
5520 2014-02-23 Yao Qi <yao@codesourcery.com>
5522 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5523 (ctf_thread_alive, ctf_get_trace_status): Remove.
5524 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5526 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5527 (tfile_has_stack, tfile_has_registers): Remove.
5528 (tfile_thread_alive): Remove.
5529 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5531 * tracefile.c (tracefile_has_stack): New function.
5532 (tracefile_has_registers): New function.
5533 (tracefile_thread_alive): New function.
5534 (tracefile_get_trace_status): New function.
5535 (init_tracefile_ops): New function.
5536 * tracefile.h (init_tracefile_ops): Declare.
5538 2014-02-23 Yao Qi <yao@codesourcery.com>
5540 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5541 (O_LARGEFILE): Likewise.
5542 (tfile_ops): Likewise.
5543 (TRACE_HEADER_SIZE): Likewise.
5544 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5545 (cur_data_size): Likewise.
5546 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5547 (tfile_close, tfile_files_info): Likewise.
5548 (tfile_get_trace_status): Likewise.
5549 (tfile_get_tracepoint_status): Likewise.
5550 (tfile_get_traceframe_address): Likewise.
5551 (tfile_trace_find, match_blocktype): Likewise.
5552 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5553 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5554 (tfile_get_trace_state_variable_value): Likewise.
5555 (tfile_has_all_memory, tfile_has_memory): Likewise.
5556 (tfile_has_stack, tfile_has_registers): Likewise.
5557 (tfile_thread_alive, build_traceframe_info): Likewise.
5558 (tfile_traceframe_info, init_tfile_ops): Likewise.
5559 (_initialize_tracepoint): Don't call init_tfile_ops
5560 and add_target_with_completer.
5561 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5562 exec.h, completer.h and filenames.h.
5563 (_initialize_tracefile_tfile): New function.
5565 2014-02-23 Yao Qi <yao@codesourcery.com>
5567 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5569 (HFILES_NO_SRCDIR): Add tracefile.h.
5570 * ctf.c: Include "tracefile.h".
5571 * tracefile.h: New file.
5572 * tracefile.c: New file
5573 * tracefile-tfile.c: New file.
5574 * tracepoint.c: Include "tracefile.h".
5575 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5576 (stop_reason_names): Add const.
5577 (trace_file_writer_xfree): Move it to tracefile.c.
5578 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5579 (trace_save_ctf): Likewise.
5580 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5581 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5582 (tfile_write_header, tfile_write_regblock_type): Likewise.
5583 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5584 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5585 (tfile_write_raw_data, tfile_end): Likewise.
5586 (tfile_trace_file_writer_new): Likewise.
5587 (free_uploaded_tp): Make it extern.
5588 (free_uploaded_tsv): Make it extern.
5589 (_initialize_tracepoint): Move code to register command 'tsave'
5591 * tracepoint.h (stop_reason_names): Declare.
5592 (struct trace_frame_write_ops): Move it to tracefile.h.
5593 (struct trace_file_write_ops): Likewise.
5594 (struct trace_file_writer): Likewise.
5595 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5597 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5600 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5602 (get_cores_used_by_process): New parameter num_cores, use it.
5603 (linux_xfer_osdata_processes): Pass num_cores to it.
5604 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5607 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5609 * target.c (memory_xfer_partial): Fix length arg in call to
5610 breakpoint_xfer_memory.
5612 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5615 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5616 number comes after the + or - signs. Adjust length of register
5617 name to be extracted.
5619 2014-02-20 Tom Tromey <tromey@redhat.com>
5621 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5622 (ada_varobj_ops): Mark "extern".
5624 2014-02-20 Tom Tromey <tromey@redhat.com>
5626 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5628 2014-02-20 Doug Evans <xdje42@gmail.com>
5630 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5631 All callers updated.
5632 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5633 All callers updated.
5634 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5635 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5637 2014-02-20 lin zuojian <manjian2006@gmail.com>
5638 Joel Brobecker <brobecker@adacore.com>
5639 Doug Evans <xdje42@gmail.com>
5642 * dwarf2read.c (struct die_info): New member in_process.
5643 (reset_die_in_process): New function.
5644 (process_die): Set it at the start, reset when returning.
5645 (inherit_abstract_dies): Only call process_die if origin_child_die
5646 not already being processed.
5648 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5650 * windows-nat.c (handle_unload_dll): Add function documentation.
5651 (do_initial_windows_stuff): Add comment explaining why we wait
5652 until after inferior initialization has finished before
5653 processing all DLLs.
5655 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5657 * windows-nat.c (get_module_name): Delete.
5658 (windows_get_exec_module_filename): New function, mostly
5659 inspired from get_module_name.
5660 (windows_pid_to_exec_file): Replace call to get_module_name
5661 by call to windows_get_exec_module_filename.
5663 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5665 * windows-nat.c (handle_load_dll): Rewrite this function's
5666 introductory comment. Remove code using get_module_name
5667 to get the DLL's name.
5669 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5671 * windows-nat.c (get_windows_debug_event): Ignore
5672 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5673 if windows_initialization_done == 0.
5674 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5675 Adjust implementation to always load all DLLs.
5676 (do_initial_windows_stuff): Replace call to
5677 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5679 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5681 * windows-nat.c (_initialize_windows_nat): Deprecate the
5682 "dll-symbols" command. Turn the "add-shared-symbol-files"
5683 and "assf" aliases into commands, and deprecate them as well.
5684 * NEWS: Add entry explaining that "dll-symbols" and its two
5685 aliases are now deprecated.
5687 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5689 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5690 new-line in debug string. Remove trailing spaces.
5692 2014-02-19 Stan Shebs <stan@codesourcery.com>
5694 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5696 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5698 * NEWS: Add entry for the new feature
5699 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5702 2014-02-19 Stan Shebs <stan@codesourcery.com>
5704 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5706 2014-02-19 Pedro Alves <palves@redhat.com>
5708 * common/ptid.h (struct ptid): Mention that process_stratum
5709 targets should prefer ptid.lwp.
5711 2014-02-19 Pedro Alves <palves@redhat.com>
5713 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5714 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5715 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5716 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5717 store remote thread ids rather than ptid.tid.
5718 (_initialize_remote): Adjust.
5720 2014-02-19 Tom Tromey <tromey@redhat.com>
5722 * target.c (target_get_unwinder): Rewrite.
5723 (target_get_tailcall_unwinder): Rewrite.
5724 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5725 (record_btrace_to_get_tailcall_unwinder): New function.
5726 (init_record_btrace_ops): Update.
5727 * target.h (struct target_ops) <to_get_unwinder,
5728 to_get_tailcall_unwinder>: Now function pointers. Use
5729 TARGET_DEFAULT_RETURN.
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5733 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5735 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5741 * target-delegates.c: Rebuild.
5742 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5743 TARGET_DEFAULT_FUNC.
5744 * target.c (default_target_decr_pc_after_break): Rename from
5745 forward_target_decr_pc_after_break. Simplify.
5746 (target_decr_pc_after_break): Rely on delegation.
5748 2014-02-19 Tom Tromey <tromey@redhat.com>
5750 * target.c (update_current_target): Do not INHERIT to_doc or
5751 to_magic. Do not de_fault to_open or to_close.
5753 2014-02-19 Tom Tromey <tromey@redhat.com>
5755 * gcore.h (objfile_find_memory_regions): Declare.
5756 * gcore.c (objfile_find_memory_regions): No longer static. Add
5758 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5759 * exec.c: Include gcore.h.
5760 (exec_set_find_memory_regions): Remove.
5761 (exec_find_memory_regions): Remove.
5762 (exec_do_find_memory_regions): Remove.
5763 (init_exec_ops): Update.
5764 * defs.h (exec_set_find_memory_regions): Remove.
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target-delegates.c: Rebuild.
5769 * target.h (struct target_ops) <to_extra_thread_info,
5770 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5771 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5772 not 0, in TARGET_DEFAULT_RETURN.
5774 2014-02-19 Tom Tromey <tromey@redhat.com>
5776 * target.c (complete_target_initialization): Remove casts. Use
5777 return_zero_has_execution.
5778 (return_zero): Add "ignore" argument.
5779 (return_zero_has_execution): New function.
5780 (init_dummy_target): Remove casts. Use
5781 return_zero_has_execution.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * target.c (update_current_target): Update comments. Do not
5788 2014-02-19 Tom Tromey <tromey@redhat.com>
5790 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5792 * corelow.c (core_read_description): Delegate when needed.
5793 * remote.c (remote_read_description): Delegate when needed.
5794 * target-delegates.c: Rebuild.
5795 * target.c (target_read_description): Rewrite.
5796 * target.h (struct target_ops) <to_read_description>: Update
5797 comment. Use TARGET_DEFAULT_RETURN.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target-delegates.c: Rebuild.
5802 * target.c (update_current_target): Don't inherit or default
5804 (find_default_run_target): Check against delegate_can_run.
5805 * target.h (struct target_ops) <to_can_run>: Use
5806 TARGET_DEFAULT_RETURN.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (target_disconnect): Unconditionally delegate.
5812 * target.h (struct target_ops) <to_disconnect>: Use
5813 TARGET_DEFAULT_NORETURN.
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * record.c (record_stop): Unconditionally delegate.
5818 * target-delegates.c: Rebuild.
5819 * target.c (target_stop_recording): Unconditionally delegate.
5820 * target.h (struct target_ops) <to_stop_recording>: Use
5821 TARGET_DEFAULT_IGNORE.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target-delegates.c: Rebuild.
5826 * target.c (target_enable_btrace): Unconditionally delegate.
5827 * target.h (struct target_ops) <to_enable_btrace>: Use
5828 TARGET_DEFAULT_NORETURN.
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * target-delegates.c: Rebuild.
5833 * target.c (target_read_btrace): Unconditionally delegate.
5834 * target.h (struct target_ops) <to_read_btrace>: Use
5835 TARGET_DEFAULT_NORETURN.
5837 2014-02-19 Tom Tromey <tromey@redhat.com>
5839 * target-delegates.c: Rebuild.
5840 * target.c (target_teardown_btrace): Unconditionally delegate.
5841 * target.h (struct target_ops) <to_teardown_btrace>: Use
5842 TARGET_DEFAULT_NORETURN.
5844 2014-02-19 Tom Tromey <tromey@redhat.com>
5846 * target-delegates.c: Rebuild.
5847 * target.c (target_disable_btrace): Unconditionally delegate.
5848 * target.h (struct target_ops) <to_disable_btrace>: Use
5849 TARGET_DEFAULT_NORETURN.
5851 2014-02-19 Tom Tromey <tromey@redhat.com>
5853 * target-delegates.c: Rebuild.
5854 * target.c (default_search_memory): New function.
5855 (simple_search_memory): Update comment.
5856 (target_search_memory): Unconditionally delegate.
5857 * target.h (struct target_ops) <to_search_memory>: Use
5858 TARGET_DEFAULT_FUNC.
5860 2014-02-19 Tom Tromey <tromey@redhat.com>
5862 * auxv.c (default_auxv_parse): No longer static.
5863 (target_auxv_parse): Unconditionally delegate.
5864 * auxv.h (default_auxv_parse): Declare.
5865 * target-delegates.c: Rebuild.
5866 * target.c: Include auxv.h.
5867 * target.h (struct target_ops) <to_auxv_parse>: Use
5868 TARGET_DEFAULT_FUNC.
5870 2014-02-19 Tom Tromey <tromey@redhat.com>
5872 * target-delegates.c: Rebuild.
5873 * target.c (target_memory_map): Unconditionally delegate.
5874 * target.h (struct target_ops) <to_memory_map>: Use
5875 TARGET_DEFAULT_RETURN.
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5879 * target-delegates.c: Rebuild.
5880 * target.c (target_thread_alive): Unconditionally delegate.
5881 * target.h (struct target_ops) <to_thread_alive>: Use
5882 TARGET_DEFAULT_RETURN.
5884 2014-02-19 Tom Tromey <tromey@redhat.com>
5886 * target-delegates.c: Rebuild.
5887 * target.c (target_save_record): Unconditionally delegate.
5888 * target.h (struct target_ops) <to_save_record>: Use
5889 TARGET_DEFAULT_NORETURN.
5891 2014-02-19 Tom Tromey <tromey@redhat.com>
5893 * target-delegates.c: Rebuild.
5894 * target.c (target_delete_record): Unconditionally delegate.
5895 * target.h (struct target_ops) <to_delete_record>: Use
5896 TARGET_DEFAULT_NORETURN.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target-delegates.c: Rebuild.
5901 * target.c (target_record_is_replaying): Unconditionally
5903 * target.h (struct target_ops) <to_record_is_replaying>: Use
5904 TARGET_DEFAULT_RETURN.
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target-delegates.c: Rebuild.
5909 * target.c (target_goto_record_begin): Unconditionally delegate.
5910 * target.h (struct target_ops) <to_goto_record_begin>: Use
5911 TARGET_DEFAULT_NORETURN.
5913 2014-02-19 Tom Tromey <tromey@redhat.com>
5915 * target-delegates.c: Rebuild.
5916 * target.c (target_goto_record_end): Unconditionally delegate.
5917 * target.h (struct target_ops) <to_goto_record_end>: Use
5918 TARGET_DEFAULT_NORETURN.
5920 2014-02-19 Tom Tromey <tromey@redhat.com>
5922 * target-delegates.c: Rebuild.
5923 * target.c (target_goto_record): Unconditionally delegate.
5924 * target.h (struct target_ops) <to_goto_record>: Use
5925 TARGET_DEFAULT_NORETURN.
5927 2014-02-19 Tom Tromey <tromey@redhat.com>
5929 * target-delegates.c: Rebuild.
5930 * target.c (target_insn_history): Unconditionally delegate.
5931 * target.h (struct target_ops) <to_insn_history>: Use
5932 TARGET_DEFAULT_NORETURN.
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * target-delegates.c: Rebuild.
5937 * target.c (target_insn_history_from): Unconditionally delegate.
5938 * target.h (struct target_ops) <to_insn_history_from>: Use
5939 TARGET_DEFAULT_NORETURN.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target-delegates.c: Rebuild.
5944 * target.c (target_insn_history_range): Unconditionally delegate.
5945 * target.h (struct target_ops) <to_insn_history_range>: Use
5946 TARGET_DEFAULT_NORETURN.
5948 2014-02-19 Tom Tromey <tromey@redhat.com>
5950 * target-delegates.c: Rebuild.
5951 * target.c (target_call_history): Unconditionally delegate.
5952 * target.h (struct target_ops) <to_call_history>: Use
5953 TARGET_DEFAULT_NORETURN.
5955 2014-02-19 Tom Tromey <tromey@redhat.com>
5957 * target-delegates.c: Rebuild.
5958 * target.c (target_call_history_from): Unconditionally delegate.
5959 * target.h (struct target_ops) <to_call_history_from>: Use
5960 TARGET_DEFAULT_NORETURN.
5962 2014-02-19 Tom Tromey <tromey@redhat.com>
5964 * target-delegates.c: Rebuild.
5965 * target.c (target_call_history_range): Unconditionally delegate.
5966 * target.h (struct target_ops) <to_call_history_range>: Use
5967 TARGET_DEFAULT_NORETURN.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target-delegates.c: Rebuild.
5972 * target.c (target_verify_memory): Unconditionally delegate.
5973 * target.h (struct target_ops) <to_verify_memory>: Use
5974 TARGET_DEFAULT_NORETURN.
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target-delegates.c: Rebuild.
5979 * target.c (target_core_of_thread): Unconditionally delegate.
5980 * target.h (struct target_ops) <to_core_of_thread>: Use
5981 TARGET_DEFAULT_RETURN.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target-delegates.c: Rebuild.
5986 * target.c (target_flash_done): Unconditionally delegate.
5987 * target.h (struct target_ops) <to_flash_done>: Use
5988 TARGET_DEFAULT_NORETURN.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target-delegates.c: Rebuild.
5993 * target.c (target_flash_erase): Unconditionally delegate.
5994 * target.h (struct target_ops) <to_flash_erase>: Use
5995 TARGET_DEFAULT_NORETURN.
5997 2014-02-19 Tom Tromey <tromey@redhat.com>
5999 * target-delegates.c: Rebuild.
6000 * target.c (target_get_section_table): Unconditionally delegate.
6001 * target.h (struct target_ops) <to_get_section_table>: Use
6002 TARGET_DEFAULT_RETURN.
6004 2014-02-19 Tom Tromey <tromey@redhat.com>
6006 * target-delegates.c: Rebuild.
6007 * target.c (target_pid_to_str): Unconditionally delegate.
6008 (init_dummy_target): Don't initialize to_pid_to_str.
6009 (default_pid_to_str): Rename from dummy_pid_to_str.
6010 * target.h (struct target_ops) <to_pid_to_str>: Use
6011 TARGET_DEFAULT_FUNC.
6013 2014-02-19 Tom Tromey <tromey@redhat.com>
6015 * target-delegates.c: Rebuild.
6016 * target.c (target_find_new_threads): Unconditionally delegate.
6017 * target.h (struct target_ops) <to_find_new_threads>: Use
6018 TARGET_DEFAULT_RETURN.
6020 2014-02-19 Tom Tromey <tromey@redhat.com>
6022 * target-delegates.c: Rebuild.
6023 * target.c (target_program_signals): Unconditionally delegate.
6024 * target.h (struct target_ops) <to_program_signals>: Use
6025 TARGET_DEFAULT_IGNORE.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target-delegates.c: Rebuild.
6030 * target.c (target_pass_signals): Unconditionally delegate.
6031 * target.h (struct target_ops) <to_pass_signals>: Use
6032 TARGET_DEFAULT_IGNORE.
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target-delegates.c: Rebuild.
6037 * target.c (default_mourn_inferior): New function.
6038 (target_mourn_inferior): Unconditionally delegate.
6039 * target.h (struct target_ops) <to_mourn_inferior>: Use
6040 TARGET_DEFAULT_FUNC.
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target-delegates.c: Rebuild.
6045 * target.c (default_follow_fork): New function.
6046 (target_follow_fork): Unconditionally delegate.
6047 * target.h (struct target_ops) <to_follow_fork>: Use
6048 TARGET_DEFAULT_FUNC.
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * target-delegates.c: Rebuild.
6053 * target.c (target_kill): Unconditionally delegate.
6054 * target.h (struct target_ops) <to_kill>: Use
6055 TARGET_DEFAULT_NORETURN.
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6059 * target-delegates.c: Rebuild.
6060 * target.c (target_masked_watch_num_registers): Unconditionally
6062 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6063 Use TARGET_DEFAULT_RETURN.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target-delegates.c: Rebuild.
6068 * target.c (target_remove_mask_watchpoint): Unconditionally
6070 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6071 TARGET_DEFAULT_RETURN.
6073 2014-02-19 Tom Tromey <tromey@redhat.com>
6075 * target-delegates.c: Rebuild.
6076 * target.c (target_insert_mask_watchpoint): Unconditionally
6078 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6079 TARGET_DEFAULT_RETURN.
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * target-delegates.c: Rebuild.
6084 * target.c (target_ranged_break_num_registers): Unconditionally
6086 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6087 Use TARGET_DEFAULT_RETURN.
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target-delegates.c: Rebuild.
6092 * target.c (target_fetch_registers): Unconditionally delegate.
6093 * target.h (struct target_ops) <to_fetch_registers>: Use
6094 TARGET_DEFAULT_NORETURN.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * target-delegates.c: Rebuild.
6099 * target.c (update_current_target): Don't inherit or default
6101 * target.h (struct target_ops) <to_stop>: Use
6102 TARGET_DEFAULT_IGNORE.
6104 2014-02-19 Tom Tromey <tromey@redhat.com>
6106 * target-delegates.c: Rebuild.
6107 * target.c (update_current_target): Don't inherit or default
6108 to_can_run_breakpoint_commands.
6109 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6110 Use TARGET_DEFAULT_RETURN.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target-delegates.c: Rebuild.
6115 * target.c (update_current_target): Don't inherit or default
6116 to_supports_evaluation_of_breakpoint_conditions.
6117 * target.h (struct target_ops)
6118 <to_supports_evaluation_of_breakpoint_conditions>: Use
6119 TARGET_DEFAULT_RETURN.
6121 2014-02-19 Tom Tromey <tromey@redhat.com>
6123 * target-delegates.c: Rebuild.
6124 * target.c (update_current_target): Don't inherit or default
6125 to_augmented_libraries_svr4_read.
6126 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6127 Use TARGET_DEFAULT_RETURN.
6129 2014-02-19 Tom Tromey <tromey@redhat.com>
6131 * target-delegates.c: Rebuild.
6132 * target.c (update_current_target): Don't inherit or default
6134 * target.h (struct target_ops) <to_can_use_agent>: Use
6135 TARGET_DEFAULT_RETURN.
6137 2014-02-19 Tom Tromey <tromey@redhat.com>
6139 * target-delegates.c: Rebuild.
6140 * target.c (update_current_target): Don't inherit or default
6142 * target.h (struct target_ops) <to_use_agent>: Use
6143 TARGET_DEFAULT_NORETURN.
6145 2014-02-19 Tom Tromey <tromey@redhat.com>
6147 * target-delegates.c: Rebuild.
6148 * target.c (update_current_target): Don't inherit or default
6150 (return_null): Remove.
6151 * target.h (struct target_ops) <to_traceframe_info>: Use
6152 TARGET_DEFAULT_RETURN.
6154 2014-02-19 Tom Tromey <tromey@redhat.com>
6156 * target-delegates.c: Rebuild.
6157 * target.c (update_current_target): Don't inherit or default
6158 to_static_tracepoint_markers_by_strid.
6159 * target.h (struct target_ops)
6160 <to_static_tracepoint_markers_by_strid>: Use
6161 TARGET_DEFAULT_NORETURN.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target-delegates.c: Rebuild.
6166 * target.c (update_current_target): Don't inherit or default
6167 to_static_tracepoint_marker_at.
6168 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6169 Use TARGET_DEFAULT_RETURN.
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * target-delegates.c: Rebuild.
6174 * target.c (update_current_target): Don't inherit or default
6176 * target.h (struct target_ops) <to_set_permissions>: Use
6177 TARGET_DEFAULT_IGNORE.
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * target-delegates.c: Rebuild.
6182 * target.c (update_current_target): Don't inherit or default
6184 * target.h (struct target_ops) <to_get_tib_address>: Use
6185 TARGET_DEFAULT_NORETURN.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target-delegates.c: Rebuild.
6190 * target.c (update_current_target): Don't inherit or default
6192 * target.h (struct target_ops) <to_set_trace_notes>: Use
6193 TARGET_DEFAULT_RETURN.
6195 2014-02-19 Tom Tromey <tromey@redhat.com>
6197 * target-delegates.c: Rebuild.
6198 * target.c (update_current_target): Don't initialize
6199 to_set_trace_buffer_size.
6200 * target.h (struct target_ops) <to_set_trace_buffer_size>: 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_set_circular_trace_buffer.
6208 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6209 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
6216 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6217 TARGET_DEFAULT_IGNORE.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * target-delegates.c: Rebuild.
6222 * target.c (update_current_target): Don't inherit or default
6223 to_get_min_fast_tracepoint_insn_len.
6224 (return_minus_one): Remove.
6225 * target.h (struct target_ops)
6226 <to_get_min_fast_tracepoint_insn_len>: 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
6232 to_get_raw_trace_data.
6233 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6234 TARGET_DEFAULT_NORETURN.
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
6240 to_upload_trace_state_variables.
6241 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6242 Use TARGET_DEFAULT_RETURN.
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
6248 to_upload_tracepoints.
6249 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6250 TARGET_DEFAULT_RETURN.
6252 2014-02-19 Tom Tromey <tromey@redhat.com>
6254 * target-delegates.c: Rebuild.
6255 * target.c (update_current_target): Don't inherit or default
6257 * target.h (struct target_ops) <to_save_trace_data>: Use
6258 TARGET_DEFAULT_NORETURN.
6260 2014-02-19 Tom Tromey <tromey@redhat.com>
6262 * target-delegates.c: Rebuild.
6263 * target.c (update_current_target): Don't inherit or default
6264 to_get_trace_state_variable_value.
6265 * target.h (struct target_ops)
6266 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6268 2014-02-19 Tom Tromey <tromey@redhat.com>
6270 * target-delegates.c: Rebuild.
6271 * target.c (update_current_target): Don't inherit or default
6273 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target-delegates.c: Rebuild.
6278 * target.c (update_current_target): Don't inherit or default
6280 * target.h (struct target_ops) <to_trace_stop>: Use
6281 TARGET_DEFAULT_NORETURN.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * target-delegates.c: Rebuild.
6286 * target.c (update_current_target): Don't inherit or default
6287 to_get_tracepoint_status.
6288 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6289 TARGET_DEFAULT_NORETURN.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target-delegates.c: Rebuild.
6294 * target.c (update_current_target): Don't inherit or default
6295 to_get_trace_status.
6296 * target.h (struct target_ops) <to_get_trace_status>: Use
6297 TARGET_DEFAULT_RETURN.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target-delegates.c: Rebuild.
6302 * target.c (update_current_target): Don't inherit or default
6304 * target.h (struct target_ops) <to_trace_start>: Use
6305 TARGET_DEFAULT_NORETURN.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * target-delegates.c: Rebuild.
6310 * target.c (update_current_target): Don't inherit or default
6311 to_trace_set_readonly_regions.
6312 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6313 Use TARGET_DEFAULT_NORETURN.
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6317 * target-delegates.c: Rebuild.
6318 * target.c (update_current_target): Don't inherit or default
6319 to_disable_tracepoint.
6320 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6321 TARGET_DEFAULT_NORETURN.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target-delegates.c: Rebuild.
6326 * target.c (update_current_target): Don't inherit or default
6327 to_enable_tracepoint.
6328 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6329 TARGET_DEFAULT_NORETURN.
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target-delegates.c: Rebuild.
6334 * target.c (update_current_target): Don't inherit or default
6335 to_download_trace_state_variable.
6336 * target.h (struct target_ops) <to_download_trace_state_variable>:
6337 Use TARGET_DEFAULT_NORETURN.
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * target-delegates.c: Rebuild.
6342 * target.c (update_current_target): Don't inherit or default
6343 to_can_download_tracepoint.
6344 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6345 TARGET_DEFAULT_RETURN.
6347 2014-02-19 Tom Tromey <tromey@redhat.com>
6349 * target-delegates.c: Rebuild.
6350 * target.c (update_current_target): Don't inherit or default
6351 to_download_tracepoint.
6352 * target.h (struct target_ops) <to_download_tracepoint>: Use
6353 TARGET_DEFAULT_NORETURN.
6355 2014-02-19 Tom Tromey <tromey@redhat.com>
6357 * target-delegates.c: Rebuild.
6358 * target.c (update_current_target): Don't inherit or default
6360 * target.h (struct target_ops) <to_trace_init>: Use
6361 TARGET_DEFAULT_RETURN.
6363 2014-02-19 Tom Tromey <tromey@redhat.com>
6365 * target-delegates.c: Rebuild.
6366 * target.c (update_current_target): Don't inherit or default
6367 to_supports_string_tracing.
6368 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6369 TARGET_DEFAULT_RETURN.
6371 2014-02-19 Tom Tromey <tromey@redhat.com>
6373 * target-delegates.c: Rebuild.
6374 * target.c (update_current_target): Don't inherit or default
6375 to_supports_enable_disable_tracepoint.
6376 * target.h (struct target_ops)
6377 <to_supports_enable_disable_tracepoint>: Use
6378 TARGET_DEFAULT_RETURN.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (update_current_target): Don't inherit or default
6384 to_supports_multi_process.
6385 * target.h (struct target_ops) <to_supports_multi_process>: Use
6386 TARGET_DEFAULT_RETURN.
6388 2014-02-19 Tom Tromey <tromey@redhat.com>
6390 * target-delegates.c: Rebuild.
6391 * target.c (update_current_target): Don't inherit or default
6392 to_get_ada_task_ptid.
6393 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6394 TARGET_DEFAULT_FUNC.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target-delegates.c: Rebuild.
6399 * target.c (update_current_target): Don't inherit or default
6400 to_thread_architecture.
6401 * target.h (struct target_ops) <to_thread_architecture>: Use
6402 TARGET_DEFAULT_FUNC.
6404 2014-02-19 Tom Tromey <tromey@redhat.com>
6406 * target-delegates.c: Rebuild.
6407 * target.c (update_current_target): Don't inherit or default
6408 to_execution_direction.
6409 * target.h (struct target_ops) <to_execution_direction>: Use
6410 TARGET_DEFAULT_FUNC.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target-delegates.c: Rebuild.
6415 * target.c (update_current_target): Don't inherit or default
6416 to_can_execute_reverse.
6417 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6418 TARGET_DEFAULT_RETURN.
6419 (target_can_execute_reverse): Unconditionally delegate.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (update_current_target): Don't inherit or default
6426 (dummy_goto_bookmark): Remove.
6427 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6428 * target.h (struct target_ops) <to_goto_bookmark>: Use
6429 TARGET_DEFAULT_NORETURN.
6431 2014-02-19 Tom Tromey <tromey@redhat.com>
6433 * target-delegates.c: Rebuild.
6434 * target.c (update_current_target): Don't inherit or default
6436 (dummy_get_bookmark): Remove.
6437 (init_dummy_target): Don't inherit or default to_get_bookmark.
6438 * target.h (struct target_ops) <to_get_bookmark>: Use
6439 TARGET_DEFAULT_NORETURN
6441 2014-02-19 Tom Tromey <tromey@redhat.com>
6443 * target-delegates.c: Rebuild.
6444 * target.c (update_current_target): Don't inherit or default
6445 to_make_corefile_notes.
6446 (init_dummy_target): Don't initialize to_make_corefile_notes.
6447 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6448 TARGET_DEFAULT_FUNC.
6450 2014-02-19 Tom Tromey <tromey@redhat.com>
6452 * target-delegates.c: Rebuild.
6453 * target.c (update_current_target): Don't inherit or default
6454 to_find_memory_regions.
6455 (init_dummy_target): Don't initialize to_find_memory_regions.
6456 * target.h (struct target_ops) <to_find_memory_regions>: Use
6457 TARGET_DEFAULT_FUNC.
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target-delegates.c: Rebuild.
6462 * target.c (update_current_target): Don't inherit or default
6464 * target.h (struct target_ops) <to_log_command>: Use
6465 TARGET_DEFAULT_IGNORE.
6466 (target_log_command): Unconditionally delegate.
6468 2014-02-19 Tom Tromey <tromey@redhat.com>
6470 * target-delegates.c: Rebuild.
6471 * target.c (update_current_target): Don't inherit or default
6472 to_pid_to_exec_file.
6473 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6474 TARGET_DEFAULT_RETURN.
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6478 * target-delegates.c: Rebuild.
6479 * target.c (update_current_target): Don't inherit or default
6481 (target_thread_name): Unconditionally delegate.
6482 * target.h (struct target_ops) <to_thread_name>: Use
6483 TARGET_DEFAULT_RETURN.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (update_current_target): Don't inherit or default
6489 to_extra_thread_info.
6490 * target.h (struct target_ops) <to_extra_thread_info>: Use
6491 TARGET_DEFAULT_RETURN.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target-delegates.c: Rebuild.
6496 * target.c (update_current_target): Don't inherit or default
6498 * target.h (struct target_ops) <to_has_exited>: Use
6499 TARGET_DEFAULT_RETURN..
6501 2014-02-19 Tom Tromey <tromey@redhat.com>
6503 * target-delegates.c: Rebuild.
6504 * target.c (update_current_target): Don't inherit or default
6505 to_set_syscall_catchpoint.
6506 (return_one): Remove.
6507 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6508 TARGET_DEFAULT_RETURN.
6510 2014-02-19 Tom Tromey <tromey@redhat.com>
6512 * target-delegates.c: Rebuild.
6513 * target.c (update_current_target): Don't inherit or default
6514 to_insert_exec_catchpoint.
6515 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6516 TARGET_DEFAULT_RETURN.
6518 2014-01-08 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (update_current_target): Don't inherit or default
6522 to_insert_exec_catchpoint.
6523 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6524 TARGET_DEFAULT_RETURN.
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * target-delegates.c: Rebuild.
6529 * target.c (update_current_target): Don't inherit or default
6530 to_remove_vfork_catchpoint.
6531 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6532 TARGET_DEFAULT_RETURN.
6534 2014-02-19 Tom Tromey <tromey@redhat.com>
6536 * target-delegates.c: Rebuild.
6537 * target.c (update_current_target): Don't inherit or default
6538 to_insert_vfork_catchpoint.
6539 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6540 TARGET_DEFAULT_RETURN.
6542 2014-02-19 Tom Tromey <tromey@redhat.com>
6544 * target-delegates.c: Rebuild.
6545 * target.c (update_current_target): Don't inherit or default
6546 to_remove_fork_catchpoint.
6547 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6548 TARGET_DEFAULT_RETURN.
6550 2014-02-19 Tom Tromey <tromey@redhat.com>
6552 * target-delegates.c: Rebuild.
6553 * target.c (update_current_target): Don't inherit or default
6554 to_insert_fork_catchpoint.
6555 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6556 TARGET_DEFAULT_RETURN.
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
6562 to_post_startup_inferior.
6563 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6564 TARGET_DEFAULT_IGNORE.
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * target-delegates.c: Rebuild.
6569 * target.c (update_current_target): Don't inherit or default
6571 * target.h (struct target_ops) <to_load>: Use
6572 TARGET_DEFAULT_NORETURN.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target-delegates.c: Rebuild.
6577 * target.c (update_current_target): Don't inherit or default
6579 * target.h (struct target_ops) <to_terminal_info>: Use
6580 TARGET_DEFAULT_FUNC.
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target-delegates.c: Rebuild.
6585 * target.c (update_current_target): Don't inherit or default
6586 to_terminal_save_ours.
6587 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6588 TARGET_DEFAULT_IGNORE.
6590 2014-02-19 Tom Tromey <tromey@redhat.com>
6592 * target-delegates.c: Rebuild.
6593 * target.c (update_current_target): Don't inherit or default
6595 * target.h (struct target_ops) <to_terminal_ours>: Use
6596 TARGET_DEFAULT_IGNORE.
6598 2014-02-19 Tom Tromey <tromey@redhat.com>
6600 * target-delegates.c: Rebuild.
6601 * target.c (update_current_target): Don't inherit or default
6602 to_terminal_ours_for_output.
6603 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6604 TARGET_DEFAULT_IGNORE.
6606 2014-02-19 Tom Tromey <tromey@redhat.com>
6608 * target-delegates.c: Rebuild.
6609 * target.c (update_current_target): Don't inherit or default
6610 to_terminal_inferior.
6611 * target.h (struct target_ops) <to_terminal_inferior>: Use
6612 TARGET_DEFAULT_IGNORE.
6614 2014-02-19 Tom Tromey <tromey@redhat.com>
6616 * target-delegates.c: Rebuild.
6617 * target.c (update_current_target): Don't inherit or default
6619 * target.h (struct target_ops) <to_terminal_init>: Use
6620 TARGET_DEFAULT_IGNORE.
6622 2014-02-19 Tom Tromey <tromey@redhat.com>
6624 * target-delegates.c: Rebuild.
6625 * target.c (update_current_target): Don't inherit or default
6626 to_can_accel_watchpoint_condition.
6627 * target.h (struct target_ops)
6628 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6630 2014-02-19 Tom Tromey <tromey@redhat.com>
6632 * target-delegates.c: Rebuild.
6633 * target.c (update_current_target): Don't inherit or default
6634 to_region_ok_for_hw_watchpoint.
6635 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6636 Use TARGET_DEFAULT_FUNC.
6638 2014-02-19 Tom Tromey <tromey@redhat.com>
6640 * target-delegates.c: Rebuild.
6641 * target.c (update_current_target): Don't inherit or default
6642 to_watchpoint_addr_within_range.
6643 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6644 Use TARGET_DEFAULT_FUNC.
6646 2014-02-19 Tom Tromey <tromey@redhat.com>
6648 * target-delegates.c: Rebuild.
6649 * target.c (update_current_target): Don't inherit or default
6650 to_remove_watchpoint.
6651 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6652 TARGET_DEFAULT_NORETURN.
6654 2014-02-19 Tom Tromey <tromey@redhat.com>
6656 * target-delegates.c: Rebuild.
6657 * target.c (update_current_target): Don't inherit or default
6658 to_insert_watchpoint.
6659 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6660 TARGET_DEFAULT_RETURN.
6662 2014-02-19 Tom Tromey <tromey@redhat.com>
6664 * target-delegates.c: Rebuild.
6665 * target.c (update_current_target): Don't inherit or default
6666 to_remove_hw_breakpoint.
6667 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6668 TARGET_DEFAULT_RETURN.
6670 2014-02-19 Tom Tromey <tromey@redhat.com>
6672 * target-delegates.c: Rebuild.
6673 * target.c (update_current_target): Don't inherit or default
6674 to_insert_hw_breakpoint.
6675 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6676 TARGET_DEFAULT_RETURN.
6678 2014-02-19 Tom Tromey <tromey@redhat.com>
6680 * target-delegates.c: Rebuild.
6681 * target.c (update_current_target): Don't inherit or default
6682 to_can_use_hw_breakpoint.
6683 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6684 TARGET_DEFAULT_RETURN.
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * target-delegates.c: Rebuild.
6689 * target.c (update_current_target): Don't inherit or default
6691 * target.h (struct target_ops) <to_files_info>: Use
6692 TARGET_DEFAULT_IGNORE.
6694 2014-02-19 Tom Tromey <tromey@redhat.com>
6696 * target-delegates.c: Rebuild.
6697 * target.c (update_current_target): Don't inherit or default
6699 * target.h (struct target_ops) <to_store>: Use
6700 TARGET_DEFAULT_NORETURN.
6702 2014-02-19 Tom Tromey <tromey@redhat.com>
6704 * target-delegates.c: Rebuild.
6705 * target.c (update_current_target): Don't inherit or default
6707 * target.h (struct target_ops) <to_post_attach>: Use
6708 TARGET_DEFAULT_IGNORE.
6710 2014-02-19 Tom Tromey <tromey@redhat.com>
6712 * target-delegates.c: Rebuild.
6713 * target.c (update_current_target): Don't inherit or default
6715 (default_rcmd): New function.
6716 (do_monitor_command): Unconditionally delegate.
6717 * target.h (struct target_ops) <to_rmcd>: Use
6718 TARGET_DEFAULT_FUNC.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target-delegates.c: Rebuild.
6723 * target.c (init_dummy_target): Don't initialize to_attach.
6724 (target_attach): Unconditionally delegate.
6725 * target.h (struct target_ops) <to_attach>: Use
6726 TARGET_DEFAULT_FUNC.
6728 2014-02-19 Tom Tromey <tromey@redhat.com>
6730 * target-delegates.c: Rebuild.
6731 * target.c (target_detach): Unconditionally delegate.
6732 (init_dummy_target): Don't initialize to_detach.
6733 * target.h (struct target_ops) <to_detach>: Use
6734 TARGET_DEFAULT_IGNORE.
6736 2014-02-19 Tom Tromey <tromey@redhat.com>
6738 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6740 (target_augmented_libraries_svr4_read): Add argument.
6741 * target.c (update_current_target): Update.
6742 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6745 2014-02-19 Tom Tromey <tromey@redhat.com>
6747 * target.h (struct target_ops) <to_call_history_range>: Add
6749 * target.c (target_call_history_range): Add argument.
6750 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6752 (record_btrace_call_history_from): Update.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target.h (struct target_ops) <to_call_history_from>: Add
6758 * target.c (target_call_history_from): Add argument.
6759 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6762 2014-02-19 Tom Tromey <tromey@redhat.com>
6764 * target.h (struct target_ops) <to_call_history>: Add argument.
6765 * target.c (target_call_history): Add argument.
6766 * record-btrace.c (record_btrace_call_history): Add 'self'
6769 2014-02-19 Tom Tromey <tromey@redhat.com>
6771 * target.h (struct target_ops) <to_insn_history_range>: Add
6773 * target.c (target_insn_history_range): Add argument.
6774 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6776 (record_btrace_insn_history_from): Update.
6778 2014-02-19 Tom Tromey <tromey@redhat.com>
6780 * target.h (struct target_ops) <to_insn_history_from>: Add
6782 * target.c (target_insn_history_from): Add argument.
6783 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6786 2014-02-19 Tom Tromey <tromey@redhat.com>
6788 * target.h (struct target_ops) <to_insn_history>: Add argument.
6789 * target.c (target_insn_history): Add argument.
6790 * record-btrace.c (record_btrace_insn_history): Add 'self'
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * target.h (struct target_ops) <to_goto_record>: Add argument.
6796 * target.c (target_goto_record): Add argument.
6797 * record-full.c (record_full_goto): Add 'self' argument.
6798 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6802 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6803 * target.c (target_goto_record_end): Add argument.
6804 * record-full.c (record_full_goto_end): Add 'self' argument.
6805 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6807 2014-02-19 Tom Tromey <tromey@redhat.com>
6809 * target.h (struct target_ops) <to_goto_record_begin>: Add
6811 * target.c (target_goto_record_begin): Add argument.
6812 * record-full.c (record_full_goto_begin): Add 'self' argument.
6813 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6816 2014-02-19 Tom Tromey <tromey@redhat.com>
6818 * target.h (struct target_ops) <to_record_is_replaying>: Add
6820 * target.c (target_record_is_replaying): Add argument.
6821 * record-full.c (record_full_is_replaying): Add 'self' argument.
6822 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6824 (record_btrace_xfer_partial, record_btrace_store_registers)
6825 (record_btrace_prepare_to_store, record_btrace_resume)
6826 (record_btrace_wait, record_btrace_decr_pc_after_break)
6827 (record_btrace_find_new_threads, record_btrace_thread_alive):
6830 2014-02-19 Tom Tromey <tromey@redhat.com>
6832 * target.h (struct target_ops) <to_delete_record>: Add argument.
6833 * target.c (target_delete_record): Add argument.
6834 * record-full.c (record_full_delete): Add 'self' argument.
6836 2014-02-19 Tom Tromey <tromey@redhat.com>
6838 * target.h (struct target_ops) <to_save_record>: Add argument.
6839 * target.c (target_save_record): Add argument.
6840 * record-full.c (record_full_save): Add 'self' argument.
6841 (record_full_save): Add 'self' argument.
6843 2014-02-19 Tom Tromey <tromey@redhat.com>
6845 * target.h (struct target_ops) <to_info_record>: Add argument.
6846 * target.c (target_info_record): Add argument.
6847 * record.c (info_record_command): Add argument.
6848 * record-full.c (record_full_info): Add 'self' argument.
6849 * record-btrace.c (record_btrace_info): Add 'self' argument.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6854 * target.c (target_stop_recording): Add argument.
6855 * record.c (record_stop): Add argument.
6856 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6859 2014-02-19 Tom Tromey <tromey@redhat.com>
6861 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6862 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6863 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6865 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6866 (_initialize_amd64_linux_nat): Use it.
6867 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6868 (_initialize_i386_linux_nat): Use it.
6870 2014-02-19 Tom Tromey <tromey@redhat.com>
6872 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6873 * target.c (target_teardown_btrace): Add argument.
6874 * remote.c (remote_teardown_btrace): Add 'self' argument.
6875 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6877 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6883 * target.c (target_disable_btrace): Add argument.
6884 * remote.c (remote_disable_btrace): Add 'self' argument.
6885 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6887 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6890 2014-02-19 Tom Tromey <tromey@redhat.com>
6892 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6893 * target.c (target_enable_btrace): Add argument.
6894 * remote.c (remote_enable_btrace): Add 'self' argument.
6895 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6897 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6900 2014-02-19 Tom Tromey <tromey@redhat.com>
6902 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6903 (target_can_use_agent): Add argument.
6904 * target.c (update_current_target): Update.
6905 * remote.c (remote_can_use_agent): Add 'self' argument.
6906 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6908 2014-02-19 Tom Tromey <tromey@redhat.com>
6910 * target.h (struct target_ops) <to_use_agent>: Add argument.
6911 (target_use_agent): Add argument.
6912 * target.c (update_current_target): Update.
6913 * remote.c (remote_use_agent): Add 'self' argument.
6914 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6916 2014-02-19 Tom Tromey <tromey@redhat.com>
6918 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6919 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6920 (target_traceframe_info): Add argument.
6921 * target.c (update_current_target): Update.
6922 * remote.c (remote_traceframe_info): Add 'self' argument.
6923 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * target.h (target_static_tracepoint_markers_by_strid): Add
6929 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6931 * target.c (update_current_target): Update.
6932 * remote.c (struct target_ops)
6933 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6934 * linux-nat.c (struct target_ops)
6935 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6937 2014-02-19 Tom Tromey <tromey@redhat.com>
6939 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6941 (target_static_tracepoint_marker_at): Add argument.
6942 * target.c (update_current_target): Update.
6943 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6946 2014-02-19 Tom Tromey <tromey@redhat.com>
6948 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6949 (target_set_permissions): Add argument.
6950 * target.c (update_current_target): Update.
6951 * remote.c (remote_set_permissions): Add 'self' argument.
6952 (remote_start_remote): Update.
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6957 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6958 (target_get_tib_address): Add argument.
6959 * target.c (update_current_target): Update.
6960 * remote.c (remote_get_tib_address): Add 'self' argument.
6962 2014-02-19 Tom Tromey <tromey@redhat.com>
6964 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6965 (target_set_trace_notes): Add argument.
6966 * target.c (update_current_target): Update.
6967 * remote.c (remote_set_trace_notes): Add 'self' argument.
6969 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6973 (target_set_trace_buffer_size): Add argument.
6974 * target.c (update_current_target): Update.
6975 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6977 2014-02-19 Tom Tromey <tromey@redhat.com>
6979 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6981 (target_set_circular_trace_buffer): Add argument.
6982 * target.c (update_current_target): Update.
6983 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6990 (target_set_disconnected_tracing): Add argument.
6991 * target.c (update_current_target): Update.
6992 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6994 2014-02-19 Tom Tromey <tromey@redhat.com>
6996 * target.h (struct target_ops)
6997 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6998 (target_get_min_fast_tracepoint_insn_len): Add argument.
6999 * target.c (update_current_target): Update.
7000 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7005 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7007 (target_get_raw_trace_data): Add argument.
7008 * target.c (update_current_target): Update.
7009 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7015 (target_upload_trace_state_variables): Add argument.
7016 * target.c (update_current_target): Update.
7017 * remote.c (remote_upload_trace_state_variables): Add 'self'
7019 (remote_start_remote): Update.
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7025 (target_upload_tracepoints): Add argument.
7026 * target.c (update_current_target): Update.
7027 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7028 (remote_start_remote): Update.
7030 2014-02-19 Tom Tromey <tromey@redhat.com>
7032 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7033 (target_save_trace_data): Add argument.
7034 * target.c (update_current_target): Update.
7035 * remote.c (remote_save_trace_data): Add 'self' argument.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7041 * target.h (struct target_ops)
7042 <to_get_trace_state_variable_value>: Add argument.
7043 (target_get_trace_state_variable_value): Add argument.
7044 * target.c (update_current_target): Update.
7045 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7047 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7049 2014-02-19 Tom Tromey <tromey@redhat.com>
7051 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7052 * target.h (struct target_ops) <to_trace_find>: Add argument.
7053 (target_trace_find): Add argument.
7054 * target.c (update_current_target): Update.
7055 * remote.c (remote_trace_find): Add 'self' argument.
7056 * ctf.c (ctf_trace_find): Add 'self' argument.
7058 2014-02-19 Tom Tromey <tromey@redhat.com>
7060 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7061 (target_trace_stop): Add argument.
7062 * target.c (update_current_target): Update.
7063 * remote.c (remote_trace_stop): Add 'self' argument.
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7067 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7068 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7070 (target_get_tracepoint_status): Add argument.
7071 * target.c (update_current_target): Update.
7072 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7074 2014-02-19 Tom Tromey <tromey@redhat.com>
7076 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7077 * target.h (struct target_ops) <to_get_trace_status>: Add
7079 (target_get_trace_status): Add argument.
7080 * target.c (update_current_target): Update.
7081 * remote.c (remote_get_trace_status): Add 'self' argument.
7082 (remote_start_remote, remote_can_download_tracepoint): Update.
7083 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target.h (struct target_ops) <to_trace_start>: Add argument.
7088 (target_trace_start): Add argument.
7089 * target.c (update_current_target): Update.
7090 * remote.c (remote_trace_start): Add 'self' argument.
7092 2014-02-19 Tom Tromey <tromey@redhat.com>
7094 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7096 (target_trace_set_readonly_regions): Add argument.
7097 * target.c (update_current_target): Update.
7098 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7101 2014-02-19 Tom Tromey <tromey@redhat.com>
7103 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7105 (target_disable_tracepoint): Add argument.
7106 * target.c (update_current_target): Update.
7107 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7113 (target_enable_tracepoint): Add argument.
7114 * target.c (update_current_target): Update.
7115 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7117 2014-02-19 Tom Tromey <tromey@redhat.com>
7119 * target.h (struct target_ops) <to_download_trace_state_variable>:
7121 (target_download_trace_state_variable): Add argument.
7122 * target.c (update_current_target): Update.
7123 * remote.c (remote_download_trace_state_variable): Add 'self'
7126 2014-02-19 Tom Tromey <tromey@redhat.com>
7128 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7130 (target_can_download_tracepoint): Add argument.
7131 * target.c (update_current_target): Update.
7132 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7134 2014-02-19 Tom Tromey <tromey@redhat.com>
7136 * target.h (struct target_ops) <to_download_tracepoint>: Add
7138 (target_download_tracepoint): Add argument.
7139 * target.c (update_current_target): Update.
7140 * remote.c (remote_download_tracepoint): Add 'self' argument.
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7144 * target.h (struct target_ops) <to_trace_init>: Add argument.
7145 (target_trace_init): Add argument.
7146 * target.c (update_current_target): Update.
7147 * remote.c (remote_trace_init): Add 'self' argument.
7149 2014-02-19 Tom Tromey <tromey@redhat.com>
7151 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7152 * target.c (target_fileio_readlink): Add argument.
7153 * remote.c (remote_hostio_readlink): Add 'self' argument.
7154 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7156 2014-02-19 Tom Tromey <tromey@redhat.com>
7158 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7159 * target.c (target_fileio_unlink): Add argument.
7160 * remote.c (remote_hostio_unlink): Add 'self' argument.
7161 (remote_file_delete): Update.
7162 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7167 * target.c (target_fileio_close): Add argument.
7168 * remote.c (remote_hostio_close): Add 'self' argument.
7169 (remote_hostio_close_cleanup): Update.
7170 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7172 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7174 2014-02-19 Tom Tromey <tromey@redhat.com>
7176 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7177 * target.c (target_fileio_pread): Add argument.
7178 * remote.c (remote_hostio_pread): Add 'self' argument.
7179 (remote_bfd_iovec_pread, remote_file_get): Update.
7180 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7185 * target.c (target_fileio_pwrite): Add argument.
7186 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7187 (remote_file_put): Update.
7188 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7192 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7193 * target.c (target_fileio_open): Add argument.
7194 * remote.c (remote_hostio_open): Add 'self' argument.
7195 (remote_bfd_iovec_open): Add 'self' argument.
7196 (remote_file_put): Add 'self' argument.
7197 (remote_file_get): Add 'self' argument.
7198 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7204 (target_can_run_breakpoint_commands): Add argument.
7205 * target.c (update_current_target): Update.
7206 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7208 (remote_insert_breakpoint): Add 'self' argument.
7209 (remote_insert_hw_breakpoint): Add 'self' argument.
7210 (remote_can_run_breakpoint_commands): Add 'self' argument.
7212 2014-02-19 Tom Tromey <tromey@redhat.com>
7214 * target.h (struct target_ops)
7215 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7216 (target_supports_evaluation_of_breakpoint_conditions): Add
7218 * target.c (update_current_target): Update.
7219 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7221 (remote_insert_breakpoint): Add 'self' argument.
7222 (remote_insert_hw_breakpoint): Add 'self' argument.
7223 (remote_supports_cond_breakpoints): Add 'self' argument.
7225 2014-02-19 Tom Tromey <tromey@redhat.com>
7227 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7229 (target_supports_string_tracing): Add argument.
7230 * target.c (update_current_target): Update.
7231 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7233 2014-02-19 Tom Tromey <tromey@redhat.com>
7235 * target.h (struct target_ops)
7236 <to_supports_disable_randomization>: Add argument.
7237 * target.c (find_default_supports_disable_randomization): Add
7239 (target_supports_disable_randomization): Add argument.
7240 (find_default_supports_disable_randomization): Add 'self'
7242 * remote.c (extended_remote_supports_disable_randomization): Add
7244 (remote_supports_disable_randomization): Add 'self' argument.
7245 (extended_remote_create_inferior): Update.
7246 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7249 2014-02-19 Tom Tromey <tromey@redhat.com>
7251 * target.h (struct target_ops)
7252 <to_supports_enable_disable_tracepoint>: Add argument.
7253 (target_supports_enable_disable_tracepoint): Add argument.
7254 * target.c (update_current_target): Update.
7255 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target.h (struct target_ops) <to_supports_multi_process>: Add
7262 (target_supports_multi_process): Add argument.
7263 * target.c (update_current_target): Update.
7264 * remote.c (remote_supports_multi_process): Add 'self' argument.
7265 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7267 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7272 * target.h (struct target_ops) <to_execution_direction>: Add
7274 (target_execution_direction): Add argument.
7275 * target.c (default_execution_direction): Add 'self' argument.
7276 * record-full.c (record_full_execution_direction): Add 'self'
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7283 (target_can_execute_reverse): Add argument.
7284 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7285 * record-full.c (record_full_can_execute_reverse): Add 'self'
7287 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7290 2014-02-19 Tom Tromey <tromey@redhat.com>
7292 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7293 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7295 (target_get_ada_task_ptid): Add argument.
7296 * target.c (update_current_target): Update.
7297 (default_get_ada_task_ptid): Add 'self' argument.
7298 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7299 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7300 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7302 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7304 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7306 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7308 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7309 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7312 2014-02-19 Tom Tromey <tromey@redhat.com>
7314 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7315 (target_goto_bookmark): Add argument.
7316 * target.c (dummy_goto_bookmark): Add 'self' argument.
7317 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7319 2014-02-19 Tom Tromey <tromey@redhat.com>
7321 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7322 (target_get_bookmark): Add argument.
7323 * target.c (dummy_get_bookmark): Add 'self' argument.
7324 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7330 (target_make_corefile_notes): Add argument.
7331 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7332 * procfs.c (procfs_make_note_section): Add 'self' argument.
7333 (procfs_make_note_section): Add 'self' argument.
7334 (procfs_make_note_section): Add 'self' argument.
7335 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7337 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7338 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7339 * exec.c (exec_make_note_section): Add 'self' argument.
7340 (exec_make_note_section): Add 'self' argument.
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7344 * target.h (struct target_ops) <to_find_memory_regions>: Add
7346 (target_find_memory_regions): Add argument.
7347 * target.c (dummy_find_memory_regions): Add 'self' argument.
7348 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7349 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7350 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7351 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7352 * exec. (exec_do_find_memory_regions): New global.
7353 (exec_set_find_memory_regions): Rewrite.
7354 (exec_find_memory_regions): New function.
7355 (init_exec_ops): Use exec_find_memory_regions.
7357 2014-02-19 Tom Tromey <tromey@redhat.com>
7359 * target.h (struct target_ops) <to_supports_non_stop>: Add
7361 * target.c (find_default_supports_non_stop): Add argument.
7362 (target_supports_non_stop): Add argument.
7363 (find_default_supports_non_stop): Add 'self' argument.
7364 * remote.c (remote_supports_non_stop): Add 'self' argument.
7365 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7367 2014-02-19 Tom Tromey <tromey@redhat.com>
7369 * target.h (struct target_ops) <to_log_command>: Add argument.
7370 (target_log_command): Add argument.
7371 * serial.h (serial_log_command): Add 'self' argument.
7372 * serial.c (serial_log_command): Add 'self' argument.
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7376 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7377 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7379 (target_pid_to_exec_file): Add argument.
7380 * target.c (debug_to_pid_to_exec_file): Add argument.
7381 (update_current_target): Update.
7382 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7383 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7384 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7385 (linux_handle_extended_wait): Update.
7386 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7387 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7388 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7389 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target.h (struct target_ops) <to_rcmd>: Add argument.
7394 (target_rcmd): Add argument.
7395 * target.c (debug_to_rcmd): Add argument.
7396 (update_current_target, do_monitor_command): Update.
7397 * remote.c (remote_rcmd): Add 'self' argument.
7398 * monitor.c (monitor_rcmd): Add 'self' argument.
7400 2014-02-19 Tom Tromey <tromey@redhat.com>
7402 * windows-nat.c (windows_stop): Add 'self' argument.
7403 * target.h (struct target_ops) <to_stop>: Add argument.
7404 * target.c (target_stop): Add argument.
7405 (debug_to_stop): Add argument.
7406 (update_current_target): Update.
7407 * remote.c (remote_stop): Add 'self' argument.
7408 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7409 (gdbsim_cntrl_c): Update.
7410 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7411 * procfs.c (procfs_stop): Add 'self' argument.
7412 * nto-procfs.c (procfs_stop): Add 'self' argument.
7413 * monitor.c (monitor_stop): Add 'self' argument.
7414 (monitor_open): Update.
7415 * linux-nat.c (linux_nat_stop): Add argument.
7416 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7417 * gnu-nat.c (gnu_stop): Add 'self' argument.
7418 * darwin-nat.c (darwin_stop): Add 'self' argument.
7420 2014-02-19 Tom Tromey <tromey@redhat.com>
7422 * target.h (struct target_ops) <to_thread_name>: Add argument.
7423 * target.c (target_thread_name): Add argument.
7424 (update_current_target): Update.
7425 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7427 2014-02-19 Tom Tromey <tromey@redhat.com>
7429 * target.h (struct target_ops) <to_extra_thread_info>: Add
7431 (target_extra_thread_info): Add argument.
7432 * target.c (update_current_target): Update.
7433 * remote.c (remote_threads_extra_info): Add 'self' argument.
7434 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7436 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7437 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7438 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7440 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7442 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7444 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7447 2014-02-19 Tom Tromey <tromey@redhat.com>
7449 * target.h (struct target_ops) <to_program_signals>: Add argument.
7450 * target.c (target_program_signals): Add argument.
7451 * remote.c (remote_program_signals): Add 'self' argument.
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7456 * target.c (target_pass_signals): Add argument.
7457 * remote.c (remote_pass_signals): Add 'self' argument.
7458 (remote_start_remote): Update.
7459 * procfs.c (procfs_pass_signals): Add 'self' argument.
7460 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7461 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7462 (linux_nat_create_inferior, linux_nat_attach): Update.
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7466 * windows-nat.c (windows_can_run): Add 'self' argument.
7467 * target.h (struct target_ops) <to_can_run>: Add argument.
7468 (target_can_run): Add argument.
7469 * target.c (debug_to_can_run): Add argument.
7470 (update_current_target): Update.
7471 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7472 * inf-child.c (inf_child_can_run): Add 'self' argument.
7473 * go32-nat.c (go32_can_run): Add 'self' argument.
7475 2014-02-19 Tom Tromey <tromey@redhat.com>
7477 * target.h (struct target_ops) <to_has_exited>: Add argument.
7478 (target_has_exited): Add argument.
7479 * target.c (debug_to_has_exited): Add argument.
7480 (update_current_target): Update.
7482 2014-02-19 Tom Tromey <tromey@redhat.com>
7484 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7486 (target_set_syscall_catchpoint): Add argument.
7487 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7489 * target.c (update_current_target): Update.
7491 2014-02-19 Tom Tromey <tromey@redhat.com>
7493 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7495 (target_remove_exec_catchpoint): Add argument.
7496 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7497 (update_current_target): Update.
7498 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7501 2014-02-19 Tom Tromey <tromey@redhat.com>
7503 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7505 (target_insert_exec_catchpoint): Add argument.
7506 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7507 (update_current_target): Update.
7508 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7511 2014-02-19 Tom Tromey <tromey@redhat.com>
7513 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7515 (target_remove_vfork_catchpoint): Add argument.
7516 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7517 (update_current_target): Update.
7518 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7525 (target_insert_vfork_catchpoint): Add argument.
7526 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7527 (update_current_target): Update.
7528 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7531 2014-02-19 Tom Tromey <tromey@redhat.com>
7533 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7535 (target_remove_fork_catchpoint): Add argument.
7536 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7537 (update_current_target): Update.
7538 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7545 (target_insert_fork_catchpoint): Add argument.
7546 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7547 (update_current_target): Update.
7548 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7551 2014-02-19 Tom Tromey <tromey@redhat.com>
7553 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7555 (target_post_startup_inferior): Add argument.
7556 * target.c (debug_to_post_startup_inferior): Add argument.
7557 (update_current_target): Update.
7558 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7560 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7562 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7564 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7566 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7568 (super_post_startup_inferior): Likewise.
7569 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7571 (super_post_startup_inferior): Likewise.
7572 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7573 Add 'self' argument.
7574 (super_post_startup_inferior): Likewise.
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7578 * target.h (struct target_ops) <to_load>: Add argument.
7579 * target.c (target_load): Add argument.
7580 (debug_to_load): Add argument.
7581 (update_current_target): Update.
7582 * remote.c (remote_load): Add 'self' argument.
7583 * remote-sim.c (gdbsim_load): Add 'self' argument.
7584 * remote-mips.c (mips_load): Add 'self' argument.
7585 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7586 * monitor.c (monitor_load): Add 'self' argument.
7587 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7591 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7592 (target_terminal_info): Add argument.
7593 * target.c (debug_to_terminal_info): Add argument.
7594 (default_terminal_info): Likewise.
7595 * inflow.c (child_terminal_info): Add 'self' argument.
7596 * inferior.h (child_terminal_info): Add 'self' argument.
7597 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7601 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7603 (target_terminal_save_ours): Add argument.
7604 * target.c (debug_to_terminal_save_ours): Add argument.
7605 (update_current_target): Update.
7606 * inflow.c (terminal_save_ours): Add 'self' argument.
7607 * inferior.h (terminal_save_ours): Add 'self' argument.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7612 (target_terminal_ours): Add argument.
7613 * target.c (debug_to_terminal_ours): Add argument.
7614 (update_current_target): Update.
7615 * remote.c (remote_terminal_ours): Add 'self' argument.
7616 (remote_close): Update.
7617 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7618 * inflow.c (terminal_ours): Add 'self' argument.
7619 * inferior.h (terminal_ours): Add 'self' argument.
7620 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7622 2014-02-19 Pedro Alves <palves@redhat.com>
7623 Tom Tromey <tromey@redhat.com>
7625 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7627 (target_terminal_ours_for_output): Add argument.
7628 * target.c (debug_to_terminal_ours_for_output): Add argument.
7629 (update_current_target): Update.
7630 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7631 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7632 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7636 * target.h (struct target_ops) <to_terminal_inferior>: Add
7638 * target.c (target_terminal_inferior): Add argument.
7639 (update_current_target): Update.
7640 * remote.c (remote_terminal_inferior): Add 'self' argument.
7641 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7642 * inflow.c (terminal_inferior): Add 'self' argument.
7643 * inferior.h (terminal_inferior): Add 'self' argument.
7644 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7645 (go32_terminal_inferior): Add 'self' argument.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7650 (target_terminal_init): Add argument.
7651 * target.c (debug_to_terminal_init): Add argument.
7652 (update_current_target): Update.
7653 * inflow.c (terminal_init_inferior): Add 'self' argument.
7654 * inferior.h (terminal_init_inferior): Add 'self' argument.
7655 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7656 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7660 * target.h (struct target_ops)
7661 <to_can_accel_watchpoint_condition>: Add argument.
7662 (target_can_accel_watchpoint_condition): Add argument.
7663 * target.c (debug_to_can_accel_watchpoint_condition): Add
7665 (update_current_target): Update.
7666 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7669 2014-02-19 Tom Tromey <tromey@redhat.com>
7671 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7673 (target_region_ok_for_hw_watchpoint): Add argument.
7674 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7675 (default_region_ok_for_hw_watchpoint): Add argument.
7676 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7677 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7679 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7681 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7683 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7685 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7687 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7689 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7690 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7692 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7693 Add 'self' argument.
7695 2014-02-19 Tom Tromey <tromey@redhat.com>
7697 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7699 (target_insert_watchpoint): Add argument.
7700 * target.c (debug_to_insert_watchpoint): Add argument.
7701 (update_current_target): Update.
7702 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7703 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7704 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7705 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7706 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7707 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7709 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7710 (procfs_insert_hw_watchpoint): Add 'self' argument.
7711 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7713 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7715 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7717 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7718 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7720 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7725 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7727 (target_remove_watchpoint): Add argument.
7728 * target.c (debug_to_remove_watchpoint): Add argument.
7729 (update_current_target): Update.
7730 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7731 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7732 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7733 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7734 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7735 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7737 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7738 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7740 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7742 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7744 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7745 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7747 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7754 (target_remove_hw_breakpoint): Add argument.
7755 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7756 (update_current_target): Update.
7757 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7758 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7760 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7761 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7763 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7770 (target_insert_hw_breakpoint): Add argument.
7771 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7772 (update_current_target): Update.
7773 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7774 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7776 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7777 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7778 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7780 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7783 2014-02-19 Tom Tromey <tromey@redhat.com>
7785 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7787 (target_can_use_hardware_watchpoint): Add argument.
7788 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7789 (update_current_target): Update.
7790 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7792 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7794 * remote.c (remote_check_watch_resources): Add 'self' argument.
7795 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7796 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7798 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7799 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7801 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7803 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7805 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7807 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7809 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7811 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7812 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7814 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7817 2014-02-19 Tom Tromey <tromey@redhat.com>
7819 * target.h (struct target_ops) <to_post_attach>: Add argument.
7820 (target_post_attach): Add argument.
7821 * target.c (debug_to_post_attach): Add argument.
7822 (update_current_target): Update.
7823 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7824 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7825 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7826 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7827 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * windows-nat.c (windows_close): Add 'self' argument.
7832 * tracepoint.c (tfile_close): Add 'self' argument.
7833 * target.h (struct target_ops) <to_close>: Add argument.
7834 * target.c (target_close): Add argument.
7835 (update_current_target): Update.
7836 * remote.c (remote_close): Add 'self' argument.
7837 * remote-sim.c (gdbsim_close): Add 'self' argument.
7838 * remote-mips.c (mips_close): Add 'self' argument.
7839 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7840 * record-full.c (record_full_close): Add 'self' argument.
7841 * record-btrace.c (record_btrace_close): Add 'self' argument.
7842 * monitor.h (monitor_close): Add 'self' argument.
7843 * monitor.c (monitor_close): Add 'self' argument.
7844 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7845 * linux-nat.c (linux_nat_close): Add argument.
7846 * go32-nat.c (go32_close): Add 'self' argument.
7847 * exec.c (exec_close_1): Add 'self' argument.
7848 * ctf.c (ctf_close): Add 'self' argument.
7849 * corelow.c (core_close): Add 'self' argument.
7850 (core_close_cleanup): Update.
7851 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7852 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * remote.c (remote_load): New function.
7857 (init_remote_ops): Use it.
7859 2014-02-19 Tom Tromey <tromey@redhat.com>
7861 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7863 * common/linux-btrace.h (linux_supports_btrace): Update.
7864 * remote.c (remote_supports_btrace): Add "self" argument.
7865 * target-delegates.c: Rebuild.
7866 * target.c (target_supports_btrace): Remove.
7867 * target.h (struct target_ops) <to_supports_btrace>: Add
7868 target_ops argument.
7869 (target_supports_btrace): New define.
7871 2014-02-19 Tom Tromey <tromey@redhat.com>
7873 * record-full.c (record_full_beneath_to_resume_ops)
7874 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7875 (record_full_beneath_to_wait)
7876 (record_full_beneath_to_store_registers_ops)
7877 (record_full_beneath_to_store_registers)
7878 (record_full_beneath_to_xfer_partial_ops)
7879 (record_full_beneath_to_xfer_partial)
7880 (record_full_beneath_to_insert_breakpoint_ops)
7881 (record_full_beneath_to_insert_breakpoint)
7882 (record_full_beneath_to_remove_breakpoint_ops)
7883 (record_full_beneath_to_remove_breakpoint)
7884 (record_full_beneath_to_stopped_by_watchpoint)
7885 (record_full_beneath_to_stopped_data_address)
7886 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7887 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7888 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7889 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7890 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7891 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7892 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7893 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7894 (record_full_resume, record_full_wait_1)
7895 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7896 (record_full_store_registers, record_full_xfer_partial)
7897 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7898 (record_full_async, record_full_core_xfer_partial): Use target
7900 * target-delegates.c: Rebuild.
7901 * target.c (current_xfer_partial): Remove.
7902 (update_current_target): Do not INHERIT or de_fault
7903 to_insert_breakpoint, to_remove_breakpoint,
7904 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7905 to_is_async_p, to_async. Do not set to_xfer_partial field.
7906 (default_xfer_partial): Simplify.
7907 (current_xfer_partial): Remove.
7908 (target_wait, target_resume): Simplify.
7909 (find_default_can_async_p, find_default_is_async_p): Update.
7910 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7911 to_xfer_partial, to_stopped_by_watchpoint,
7912 to_stopped_data_address.
7913 (target_store_registers): Simplify.
7914 (forward_target_remove_breakpoint)
7915 (forward_target_insert_breakpoint): Remove.
7916 (target_remove_breakpoint, target_insert_breakpoint)
7917 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7918 * target.h (struct target_ops) <to_resume, to_wait,
7919 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7920 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7921 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7923 (forward_target_remove_breakpoint)
7924 (forward_target_insert_breakpoint): Remove.
7925 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7927 (record_btrace_insert_breakpoint): Delegate directly.
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7932 * target-delegates.c: New file.
7933 * target.c: Include target-delegates.c.
7934 (init_dummy_target): Call install_dummy_methods.
7935 (complete_target_initialization): Call install_delegators.
7936 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7937 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7938 * make-target-delegates: New file.
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * record.c (find_record_target): Use find_target_at.
7943 * target.c (find_target_at): New function.
7944 * target.h (find_target_at): Declare.
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7948 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7950 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7952 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7953 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7955 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7957 * linux-nat.c (save_sigtrap): Update.
7958 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7959 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7960 (linux_nat_close): Update.
7961 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7963 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7965 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7966 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7967 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7968 (tmp_to_async): Add 'ops' argument.
7969 (record_full_stopped_by_watchpoint, record_full_async)
7970 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7972 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7973 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7974 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7975 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7976 (remote_is_async_p, remote_async): Add 'ops' argument.
7977 (remote_stopped_data_address): Update.
7978 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7979 * target.c (update_current_target)
7980 (find_default_can_async_p, find_default_is_async_p): Update.
7981 (init_dummy_target): Update.
7982 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7983 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7984 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7985 (target_can_async_p, target_is_async_p, target_async)
7986 (target_stopped_by_watchpoint): Update.
7988 2014-02-19 Yao Qi <yao@codesourcery.com>
7991 * gdbarch.sh: Remove startup_gdbarch.
7992 * gdbarch.c: Regenerated.
7993 * gdbarch.h: Likewise.
7995 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7997 * rl78-tdep.c (rl78_g10_register_name): New function.
7998 (rl78_return_value): Add g10 support.
7999 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8002 2014-02-17 Doug Evans <xdje42@gmail.com>
8004 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8005 (SUBDIR_GUILE_SRCS): Ditto.
8006 (scm-gsmob.o): Ditto.
8008 2014-02-17 Yao Qi <yao@codesourcery.com>
8010 * gnu-nat.c (ILL_RPC): Declare defined function.
8012 2014-02-17 Yao Qi <yao@codesourcery.com>
8014 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8015 mach_msg_type_number_t.
8016 (gnu_write_inferior): Likewise.
8018 2014-02-17 Yao Qi <yao@codesourcery.com>
8020 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8022 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8023 (inf_validate_procs, inf_signal): Likewise.
8024 (S_exception_raise_request): Likewise.
8025 (do_mach_notify_dead_name): Likewise.
8026 (steal_exc_port): Likewise.
8027 (gnu_read_inferior): Change 'copy_count''s type to
8028 mach_msg_type_number_t.
8029 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8032 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8034 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8035 flag. Adjust all users; in particular...
8036 (gnu_wait): ..., don't decrement its value in here...
8037 (gnu_create_inferior): ..., and instead set the flag in here,
8038 around the startup_inferior call, and call that one with
8039 START_INFERIOR_TRAPS_EXPECTED.
8041 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8042 (ILL_RPC): ... new macro.
8043 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8044 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8045 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8046 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8047 functions with ILL_RPC macro.
8048 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8049 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8050 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8051 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8052 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8053 (S_proc_getlogin_reply, S_proc_getsid_reply)
8054 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8055 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8056 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8057 (S_proc_getnports_reply, S_proc_is_important_reply)
8058 (S_proc_get_code_reply): New stub functions, generated with
8061 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8062 collected the type check structures.
8064 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8066 2014-02-14 Doug Evans <dje@google.com>
8068 * target.c (target_write_partial): Fix result type.
8070 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8072 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8073 the proper offsets to access fpregset_t.
8075 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8077 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8078 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8079 * h8300-tdep.c (setmachinelist): Remove global.
8080 * hppa-tdep.c (hppa_sigtramp): Remove global.
8081 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8082 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8083 * ravenscar-thread.c (update_target_observer): Remove global.
8084 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8086 2014-02-12 Tom Tromey <tromey@redhat.com>
8088 * common/rsp-low.c: Update comments.
8089 * common/rsp-low.h: Update comments.
8091 2014-02-12 Tom Tromey <tromey@redhat.com>
8093 * common/rsp-low.c (convert_ascii_to_int): Remove.
8094 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8096 2014-02-12 Tom Tromey <tromey@redhat.com>
8098 * common/rsp-low.h (unhexify): Don't declare.
8099 * common/rsp-low.c (unhexify): Remove.
8101 2014-02-12 Tom Tromey <tromey@redhat.com>
8103 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8104 * common/rsp-low.c (convert_int_to_ascii): Remove.
8106 2014-02-12 Tom Tromey <tromey@redhat.com>
8108 * common/rsp-low.h (hexify): Don't declare.
8109 * common/rsp-low.c (hexify): Remove.
8111 2014-02-12 Tom Tromey <tromey@redhat.com>
8113 * common/rsp-low.c (hexify): Never take strlen of argument.
8115 2014-02-12 Tom Tromey <tromey@redhat.com>
8117 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8118 * remote.c (extended_remote_run, remote_rcmd)
8119 (remote_download_trace_state_variable, remote_save_trace_data)
8120 (remote_set_trace_notes): Update.
8121 * tracepoint.c (encode_source_string, tfile_write_status)
8122 (tfile_write_uploaded_tsv): Update.
8124 2014-02-12 Tom Tromey <tromey@redhat.com>
8126 * tracepoint.c: Include rsp-low.h.
8127 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8128 * remote.c: Include rsp-low.h.
8129 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8130 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8131 (remote_unescape_input): Move to common/rsp-low.c.
8132 * common/rsp-low.h: New file.
8133 * common/rsp-low.c: New file.
8134 * Makefile.in (SFILES): Add common/rsp-low.c.
8135 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8136 (COMMON_OBS): Add rsp-low.o.
8137 (rsp-low.o): New target.
8139 2014-02-12 Tom Tromey <tromey@redhat.com>
8141 * utils.h: Include print-utils.h.
8142 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8143 (int_string, core_addr_to_string, core_addr_to_string_nz)
8144 (hex_string, hex_string_custom): Don't declare.
8145 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8146 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8147 (hex_string_custom, int_string, core_addr_to_string)
8148 (core_addr_to_string_nz, host_address_to_string): Move to
8149 common/print-utils.c.
8150 * common/print-utils.h: New file.
8151 * common/print-utils.c: New file
8152 * Makefile.in (SFILES): Add common/print-utils.c.
8153 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8154 (COMMON_OBS): Add print-utils.o.
8155 (print-utils.o): New target.
8157 2014-02-12 Tom Tromey <tromey@redhat.com>
8159 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8161 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8163 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8165 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8167 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8168 if a PT_IO ptrace request returns sucessfully but indicates that 0
8169 bytes were transferred.
8171 2014-02-12 Pedro Alves <palves@redhat.com>
8172 Kevin Buettner <kevinb@redhat.com>
8174 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8175 TYPE_INSTANCE_FLAG_CODE_SPACE.
8177 2014-02-12 Pedro Alves <palves@redhat.com>
8179 * h8300-tdep.c (pseudo_from_raw_register)
8180 (raw_from_pseudo_register): New functions.
8181 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8184 2014-02-12 Pedro Alves <palves@redhat.com>
8186 * h8300-tdep.c (h8300_register_sim_regno): New function.
8187 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8188 gdbarch_register_sim_regno hook.
8190 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8192 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8194 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8196 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8198 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8200 * obsd-tdep.h (obsd_init_abi): New prototype.
8201 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8202 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8203 (obsd_init_abi): New functions.
8204 * i386obsd-tdep.c: Include "obsd-tdep.h".
8205 (i386obsd_init_abi): Call obsd_init_abi.
8206 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8207 (amd64obsd_init_abi): Call obsd_init_abi.
8208 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8209 obsd-tdep.c to gdb_target_obs.
8211 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8213 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8214 double float arguments to 16-byte in the argument slots.
8216 2014-02-11 Doug Evans <xdje42@gmail.com>
8218 * configure.ac: Don't crash if pkg-config is not found and guile
8219 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8221 * configure: Regenerate.
8223 2014-02-11 Yao Qi <yao@codesourcery.com>
8225 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8226 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8227 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8228 * gnu-nat.c (gnu_xfer_memory): Likewise.
8229 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8230 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8231 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8232 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8234 2014-02-11 Yao Qi <yao@codesourcery.com>
8236 * target.h (enum target_xfer_error): Rename to ...
8237 (enum target_xfer_status): ... it. New. All users updated.
8238 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8240 (TARGET_XFER_STATUS_ERROR_P): New macro.
8241 (target_xfer_error_to_string): Remove declaration.
8242 (target_xfer_status_to_string): Declare.
8243 (target_xfer_partial_ftype): Adjust it.
8244 (struct target_ops) <to_xfer_partial>: Return
8245 target_xfer_status. Add argument xfered_len. Update
8247 * target.c (target_xfer_error_to_string): Rename to ...
8248 (target_xfer_status_to_string): ... it. New. All callers
8250 (target_read_live_memory): Likewise. Call target_xfer_partial
8251 instead of target_read.
8252 (memory_xfer_live_readonly_partial): Return
8253 target_xfer_status. Add argument xfered_len.
8254 (raw_memory_xfer_partial): Likewise.
8255 (memory_xfer_partial_1): Likewise.
8256 (memory_xfer_partial): Likewise.
8257 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8258 properly. Update debug message.
8259 (default_xfer_partial, current_xfer_partial): Likewise.
8260 (target_write_partial): Likewise.
8261 (target_read_partial): Likewise. All callers updated.
8262 (read_whatever_is_readable): Likewise.
8263 (target_write_with_progress): Likewise.
8264 (target_read_alloc_1): Likewise.
8266 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8267 * auxv.c (procfs_xfer_auxv): Likewise.
8268 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8269 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8270 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8271 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8272 * corefile.c (read_memory): Adjust.
8273 * corelow.c (core_xfer_partial): Likewise.
8274 * ctf.c (ctf_xfer_partial): Likewise.
8275 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8277 (darwin_xfer_partial): Likewise.
8278 * exec.c (section_table_xfer_memory_partial): Likewise. All
8280 (exec_xfer_partial): Likewise.
8281 * exec.h (section_table_xfer_memory_partial): Update
8283 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8285 (gnu_xfer_partial): Likewise.
8286 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8287 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8288 (ia64_hpux_xfer_solib_got): Likewise.
8289 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8290 type of 'partial_len' to ULONGEST.
8291 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8292 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8293 (linux_nat_xfer_partial): Likewise.
8294 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8295 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8296 * monitor.c (monitor_xfer_memory): Likewise.
8297 (monitor_xfer_partial): Likewise.
8298 * procfs.c (procfs_xfer_partial): Likewise.
8299 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8300 * record-full.c (record_full_xfer_partial): Likewise.
8301 (record_full_core_xfer_partial): Likewise.
8302 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8303 (gdbsim_xfer_partial): Likewise.
8304 * remote.c (remote_write_bytes_aux): Likewise. All callers
8306 (remote_write_bytes, remote_read_bytes): Likewise. All
8308 (remote_flash_erase): Likewise. All callers updated.
8309 (remote_write_qxfer): Likewise. All callers updated.
8310 (remote_read_qxfer): Likewise. All callers updated.
8311 (remote_xfer_partial): Likewise.
8312 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8313 (rs6000_xfer_shared_libraries): Likewise.
8314 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8315 (sol_thread_xfer_partial): Likewise.
8316 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8317 (sparc_xfer_partial): Likewise.
8318 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8320 (spu_xfer_partial): Likewise.
8321 * spu-multiarch.c (spu_xfer_partial): Likewise.
8322 * tracepoint.c (tfile_xfer_partial): Likewise.
8323 * windows-nat.c (windows_xfer_memory): Likewise.
8324 (windows_xfer_shared_libraries): Likewise.
8325 (windows_xfer_partial): Likewise.
8326 * valprint.c: Replace 'target_xfer_error' with
8327 'target_xfer_status' in comments.
8329 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8331 Checked in by Joel Brobecker <brobecker@adacore.com>.
8332 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8334 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8336 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8337 function parameters.
8339 2014-02-10 Will Newton <will.newton@linaro.org>
8341 * elfread.c (elf_rel_plt_read): Look for a .got section if
8342 looking up .got.plt fails.
8343 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8344 on address passed to elf_gnu_ifunc_record_cache.
8345 (elf_gnu_ifunc_resolve_addr): Likewise.
8346 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8348 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8350 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8351 (X_RETTURN): New macro.
8352 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8354 * sparc64-tdep.c (sparc64_init_abi): Hook
8355 sparc_in_function_epilogue_p.
8357 2014-02-10 Gary Benson <gbenson@redhat.com>
8359 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8360 Rename name_matcher to symbol_matcher.
8362 2014-02-10 Gary Benson <gbenson@redhat.com>
8364 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8365 Use expand_symtabs_file_matcher_ftype and
8366 expand_symtabs_symbol_matcher_ftype.
8368 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8370 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8371 (struct ada_symbol_cache): New.
8372 (ada_free_symbol_cache): Forward declare.
8373 (struct ada_pspace_data): New.
8374 (ada_pspace_data_handle): New static global.
8375 (get_ada_pspace_data, ada_pspace_data_cleanup)
8376 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8377 (cache_space, cache): Delete, now folded inside struct
8379 (ada_get_symbol_cache): New function.
8380 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8382 (_initialize_ada_language): Remove initialization of cache_space.
8383 Move call to observer_attach_inferior_exit up, grouping it
8384 with the other observer registrations inside this function.
8385 Rename command to be more general. Add call to
8386 register_program_space_data_with_cleanup.
8388 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8390 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8391 ada_new_objfile_observer.
8392 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8393 (_initialize_tasks): Update uses of ada_new_objfile_observer
8394 and ada_tasks_normal_stop_observer.
8396 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8398 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8399 returned by the 'Length attribute to integer.
8401 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8403 * ada-lang.c (_initialize_ada_language): Initialize
8404 cache_space obstack.
8406 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8408 * ada-lang.c (HASH_SIZE): New macro.
8409 (struct cache_entry): New type.
8410 (cache_space, cache): New static globals.
8411 (ada_clear_symbol_cache, find_entry): New functions.
8412 (lookup_cached_symbol, cache_symbol): Implement.
8413 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8414 (_initialize_ada_language): Attach ada_new_objfile_observer
8415 and ada_free_objfile_observer.
8417 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8419 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8420 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8421 struct block * parameter.
8422 (ada_lookup_symbol_list_worker): Constify local variable "block".
8423 Remove cast which is no longer necessary.
8425 2014-02-10 Doug Evans <xdje42@gmail.com>
8427 Add Guile as an extension language.
8428 * NEWS: Mention Guile scripting.
8429 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8430 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8431 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8432 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8433 (CLIBS): Add GUILE_LIBS.
8434 (install-guile): New rule.
8435 (guile.o): New rule.
8436 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8437 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8438 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8439 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8440 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8441 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8442 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8443 * configure.ac: New option --with-guile.
8444 * configure: Regenerate.
8445 * config.in: Regenerate.
8446 * auto-load.c: Remove #include "python/python.h". Add #include
8447 "gdb/section-scripts.h".
8448 (source_section_scripts): Handle Guile scripts.
8449 (_initialize_auto_load): Add name of Guile objfile script to
8450 scripts-directory help text.
8451 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8452 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8453 (struct breakpoint): New member scm_bp_object.
8454 * defs.h (enum command_control_type): New value guile_control.
8455 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8457 (show_user): Update comment.
8458 (_initialize_cli_cmds): Update help text for "show user". Update help
8459 text for max-user-call-depth.
8460 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8462 (multi_line_command_p): Add guile_control.
8463 (print_command_lines): Handle guile_control.
8464 (execute_control_command, recurse_read_control_structure): Ditto.
8465 (process_next_line): Recognize "guile" commands.
8466 * disasm.c (gdb_disassemble_info): Make non-static.
8467 * disasm.h: #include "dis-asm.h".
8468 (struct gdbarch): Add forward decl.
8469 (gdb_disassemble_info): Declare.
8470 * extension.c: #include "guile/guile.h".
8471 (extension_languages): Add guile.
8472 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8473 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8474 * gdbtypes.c (get_unsigned_type_max): New function.
8475 (get_signed_type_minmax): New function.
8476 * gdbtypes.h (get_unsigned_type_max): Declare.
8477 (get_signed_type_minmax): Declare.
8478 * guile/README: New file.
8479 * guile/guile-internal.h: New file.
8480 * guile/guile.c: New file.
8481 * guile/guile.h: New file.
8482 * guile/scm-arch.c: New file.
8483 * guile/scm-auto-load.c: New file.
8484 * guile/scm-block.c: New file.
8485 * guile/scm-breakpoint.c: New file.
8486 * guile/scm-disasm.c: New file.
8487 * guile/scm-exception.c: New file.
8488 * guile/scm-frame.c: New file.
8489 * guile/scm-gsmob.c: New file.
8490 * guile/scm-iterator.c: New file.
8491 * guile/scm-lazy-string.c: New file.
8492 * guile/scm-math.c: New file.
8493 * guile/scm-objfile.c: New file.
8494 * guile/scm-ports.c: New file.
8495 * guile/scm-pretty-print.c: New file.
8496 * guile/scm-safe-call.c: New file.
8497 * guile/scm-string.c: New file.
8498 * guile/scm-symbol.c: New file.
8499 * guile/scm-symtab.c: New file.
8500 * guile/scm-type.c: New file.
8501 * guile/scm-utils.c: New file.
8502 * guile/scm-value.c: New file.
8503 * guile/lib/gdb.scm: New file.
8504 * guile/lib/gdb/boot.scm: New file.
8505 * guile/lib/gdb/experimental.scm: New file.
8506 * guile/lib/gdb/init.scm: New file.
8507 * guile/lib/gdb/iterator.scm: New file.
8508 * guile/lib/gdb/printing.scm: New file.
8509 * guile/lib/gdb/types.scm: New file.
8510 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8511 (VPATH): Add $(GUILE_SRCDIR).
8512 (GUILE_DIR): New variable.
8513 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8514 (all): Add stamp-guile dependency.
8515 (stamp-guile): New rule.
8516 (clean-guile, install-guile, uninstall-guile): New rules.
8517 (install-only): Add install-guile dependency.
8518 (uninstall): Add uninstall-guile dependency.
8519 (clean): Add clean-guile dependency.
8521 2014-02-09 Doug Evans <xdje42@gmail.com>
8523 Revert this patch (which I approved, mea culpa).
8525 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8527 * Makefile.in (all-lib): Remove.
8528 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8530 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8532 Fix Python stack corruption.
8533 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8536 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8538 * Makefile.in (all-lib): Remove.
8539 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8541 2014-02-07 Doug Evans <dje@google.com>
8543 * extension-priv.h (extension_language_script_ops): Add comment.
8544 (extension_language_ops): Add comment.
8545 (active_ext_lang_state): Fix typo in comment.
8547 2014-02-07 Pedro Alves <palves@redhat.com>
8549 PR breakpoints/16292
8550 * infrun.c (handle_signal_stop) <signal arrives while stepping
8551 over a breakpoint>: Switch back to the stepping thread.
8553 2014-02-07 Yao Qi <yao@codesourcery.com>
8555 * target.c (target_xfer_partial): Return zero if LEN is zero.
8557 2014-02-07 Yao Qi <yao@codesourcery.com>
8559 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8560 (ld_so_xfer_auxv): Likewise.
8561 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8562 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8563 * corelow.c (core_xfer_partial): Likewise.
8564 * ctf.c (ctf_xfer_partial): Likewise.
8565 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8566 (darwin_xfer_partial): Likewise.
8567 * exec.c (exec_xfer_partial): Likewise.
8568 * gnu-nat.c (gnu_xfer_partial): Likewise.
8569 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8570 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8571 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8572 * linux-nat.c (linux_xfer_siginfo): Likewise.
8573 (linux_proc_xfer_spu): Likewise.
8574 * procfs.c (procfs_xfer_partial): Likewise.
8575 * record-full.c (record_full_xfer_partial): Likewise.
8576 (record_full_core_xfer_partial): Likewise.
8577 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8578 * remote.c (remote_write_qxfer): Likewise.
8579 (remote_write_qxfer, remote_read_qxfer): Likewise.
8580 (remote_xfer_partial): Likewise.
8581 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8582 (rs6000_xfer_shared_libraries): Likewise.
8583 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8584 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8585 (spu_xfer_partial): Likewise.
8586 * target.c (memory_xfer_partial_1): Likewise.
8587 * tracepoint.c (tfile_xfer_partial): Likewise.
8588 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8589 (windows_xfer_partial): Likewise.
8591 2014-02-07 Yao Qi <yao@codesourcery.com>
8593 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8595 (core_xfer_shared_libraries_aix): Likewise.
8596 * gdbarch.c, gdbarch.h: Regenerated.
8597 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8598 ULONGEST. Change 'len_avail' type to ULONGEST.
8599 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8600 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8602 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8604 2014-02-07 Yao Qi <yao@codesourcery.com>
8606 * corefile.c (memory_error): Get 'exception' from ERR and pass
8607 'exception' to throw_error.
8609 2014-02-06 Doug Evans <xdje42@gmail.com>
8611 * configure.ac (libpython checking): Remove all but python.o from
8612 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8613 * configure: Regenerate.
8615 * Makefile.in (SFILES): Add extension.c.
8616 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8617 (COMMON_OBS): Add extension.o.
8618 * extension.h: New file.
8619 * extension-priv.h: New file.
8620 * extension.c: New file.
8622 * python/python-internal.h: #include "extension.h".
8623 (gdbpy_auto_load_enabled): Declare.
8624 (gdbpy_apply_val_pretty_printer): Declare.
8625 (gdbpy_apply_frame_filter): Declare.
8626 (gdbpy_preserve_values): Declare.
8627 (gdbpy_breakpoint_cond_says_stop): Declare.
8628 (gdbpy_breakpoint_has_cond): Declare.
8629 (void source_python_script_for_objfile): Delete.
8630 * python/python.c: #include "extension-priv.h".
8631 Delete inclusion of "observer.h".
8632 (extension_language_python): Moved here and renamed from
8633 script_language_python in py-auto-load.c.
8634 Redefined to be of type extension_language_defn.
8635 (python_extension_script_ops): New global.
8636 (python_extension_ops): New global.
8637 (struct python_env): New member previous_active.
8638 (restore_python_env): Call restore_active_ext_lang.
8639 (ensure_python_env): Call set_active_ext_lang.
8640 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8642 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8644 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8646 (gdbpy_eval_from_control_command): Renamed from
8647 eval_python_from_control_command, made static. New arg extlang.
8648 (gdbpy_source_script) Renamed from source_python_script, made static.
8650 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8651 result to int. New arg extlang.
8652 (gdbpy_source_objfile_script): Renamed from
8653 source_python_script_for_objfile, made static. New arg extlang.
8654 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8655 static. New args extlang, extlang_printers. Change result type to
8657 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8658 static. New arg extlang. Rename arg printers to extlang_printers
8659 and change type to ext_lang_type_printers *.
8660 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8661 static. Replace argument arg with extlang, extlang_printers.
8662 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8663 (!HAVE_PYTHON, source_python_script): Delete.
8664 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8665 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8666 (!HAVE_PYTHON, start_type_printers): Delete.
8667 (!HAVE_PYTHON, apply_type_printers): Delete.
8668 (!HAVE_PYTHON, free_type_printers): Delete.
8669 (_initialize_python): Delete call to observer_attach_before_prompt.
8670 (finalize_python): Set/restore active extension language.
8671 (gdbpy_finish_initialization) Renamed from
8672 finish_python_initialization, made static. New arg extlang.
8673 (gdbpy_initialized): New function.
8674 * python/python.h: #include "extension.h". Delete #include
8675 "value.h", "mi/mi-cmds.h".
8676 (extension_language_python): Declare.
8677 (GDBPY_AUTO_FILE_NAME): Delete.
8678 (enum py_bt_status): Moved to extension.h and renamed to
8680 (enum frame_filter_flags): Moved to extension.h.
8681 (enum py_frame_args): Moved to extension.h and renamed to
8682 ext_lang_frame_args.
8683 (finish_python_initialization): Delete.
8684 (eval_python_from_control_command): Delete.
8685 (source_python_script): Delete.
8686 (apply_val_pretty_printer): Delete.
8687 (apply_frame_filter): Delete.
8688 (preserve_python_values): Delete.
8689 (gdbpy_script_language_defn): Delete.
8690 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8691 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8693 * auto-load.c: #include "extension.h".
8694 (GDB_AUTO_FILE_NAME): Delete.
8695 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8696 (script_language_gdb): Delete, moved to extension.c and renamed to
8697 extension_language_gdb.
8698 (source_gdb_script_for_objfile): Delete.
8699 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8700 (loaded_script): Change type of language member to
8701 struct extension_language_defn *.
8702 (init_loaded_scripts_info): Initialize
8703 unsupported_script_warning_printed.
8704 (maybe_add_script): Make static. Change type of language arg to
8705 struct extension_language_defn *.
8706 (clear_section_scripts): Reset unsupported_script_warning_printed.
8707 (auto_load_objfile_script_1): Rewrite to use extension language API.
8708 (auto_load_objfile_script): Make public. Remove support-compiled-in
8709 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8710 (source_section_scripts): Rewrite to use extension language API.
8711 (load_auto_scripts_for_objfile): Rewrite to use
8712 auto_load_scripts_for_objfile.
8713 (collect_matching_scripts_data): Change type of language member to
8714 struct extension_language_defn *.
8715 (auto_load_info_scripts): Change type of language arg to
8716 struct extension_language_defn *.
8717 (unsupported_script_warning_print): New function.
8718 (script_not_found_warning_print): Make static.
8719 (_initialize_auto_load): Rewrite construction of scripts-directory
8721 * auto-load.h (struct objfile): Add forward decl.
8722 (struct script_language): Delete.
8723 (struct auto_load_pspace_info): Add forward decl.
8724 (struct extension_language_defn): Add forward decl.
8725 (maybe_add_script): Delete.
8726 (auto_load_objfile_script): Declare.
8727 (script_not_found_warning_print): Delete.
8728 (auto_load_info_scripts): Update prototype.
8729 (auto_load_gdb_scripts_enabled): Declare.
8730 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8731 auto_load_python_scripts_enabled and made public.
8732 (script_language_python): Delete, moved to python.c.
8733 (gdbpy_script_language_defn): Delete.
8734 (info_auto_load_python_scripts): Update to use
8735 extension_language_python.
8737 * breakpoint.c (condition_command): Replace call to
8738 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8739 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8740 with call to breakpoint_ext_lang_cond_says_stop.
8741 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8742 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8743 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8744 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8746 (local_setattro): Print name of extension language with existing
8749 * valprint.c (val_print, value_print): Update to call
8750 apply_ext_lang_val_pretty_printer.
8751 * cp-valprint.c (cp_print_value): Update call to
8752 apply_ext_lang_val_pretty_printer.
8753 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8754 (gdbpy_apply_val_pretty_printer): Renamed from
8755 apply_val_pretty_printer. New arg extlang.
8756 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8758 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8759 extension language API.
8760 * cli/cli-script.c (execute_control_command): Update to call
8761 eval_ext_lang_from_control_command.
8763 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8764 enum ext_lang_bt_status values. Update call to
8765 apply_ext_lang_frame_filter.
8766 (mi_cmd_stack_list_locals): Ditto.
8767 (mi_cmd_stack_list_args): Ditto.
8768 (mi_cmd_stack_list_variables): Ditto.
8769 * mi/mi-main.c: Delete #include "python/python-internal.h".
8770 Add #include "extension.h".
8771 (mi_cmd_list_features): Replace reference to python internal variable
8772 gdb_python_initialized with call to ext_lang_initialized_p.
8774 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8775 Update to use enum ext_lang_frame_args. Update to call
8776 apply_ext_lang_frame_filter.
8777 * python/py-framefilter.c (extract_sym): Update to use enum
8779 (extract_value, py_print_type, py_print_value): Ditto.
8780 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8781 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8782 (py_print_frame): Ditto.
8783 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8784 New arg extlang. Update to use enum ext_lang_bt_status.
8786 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8787 finish_python_initialization. Replace with call to
8788 finish_ext_lang_initialization.
8790 * typeprint.c (do_free_global_table): Update to call
8791 free_ext_lang_type_printers.
8792 (create_global_typedef_table): Update to call
8793 start_ext_lang_type_printers.
8794 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8795 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8796 (type_print_options): Change type of global_printers from "void *"
8797 to "struct ext_lang_type_printers *".
8799 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8800 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8801 (gdbpy_preserve_values): Renamed from preserve_python_values.
8803 (!HAVE_PYTHON, preserve_python_values): Delete.
8805 * utils.c (quit_flag): Delete, moved to extension.c.
8806 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8809 * eval.c: Delete #include "python/python.h".
8810 * main.c: Delete #include "python/python.h".
8812 * defs.h: Update comment.
8814 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8818 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8820 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8823 2014-02-05 Yao Qi <yao@codesourcery.com>
8825 * remote.c (remote_pass_signals): Remove local 'buf' and use
8827 (remote_program_signals): Likewise.
8829 2014-02-05 Yao Qi <yao@codesourcery.com>
8831 * ctf.c: Include "inferior.h" and "gdbthread.h".
8832 (CTF_PID): A new macro.
8833 (ctf_open): Call inferior_appeared and add_thread_silent.
8834 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8835 (ctf_thread_alive): New function.
8836 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8838 2014-02-05 Yao Qi <yao@codesourcery.com>
8842 2013-05-24 Yao Qi <yao@codesourcery.com>
8844 * tracepoint.c (TFILE_PID): Remove.
8845 (tfile_open): Don't add thread and inferior.
8846 (tfile_close): Don't set 'inferior_ptid'. Don't call
8847 exit_inferior_silent.
8848 (tfile_thread_alive): Remove.
8849 (init_tfile_ops): Don't set field 'to_thread_alive' of
8852 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8854 * remote.c (remote_start_remote): Call remote_check_symbols even
8855 if only symbol-file (not file) has been given.
8857 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8859 * gdbarch.sh (skip_entrypoint): New callback.
8860 * gdbarch.c, gdbarch.h: Regenerate.
8861 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8862 * infrun.c (fill_in_stop_func): Likewise.
8863 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8864 (ppc_elfv2_elf_make_msymbol_special): New function.
8865 (ppc_elfv2_skip_entrypoint): Likewise.
8866 (ppc_linux_init_abi): Install them for ELFv2.
8868 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8870 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8871 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8872 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8873 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8874 structures returned in GPRs.
8876 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8878 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8879 offset to the stack parameter list for the ELFv2 ABI.
8881 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8883 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8884 set_gdbarch_convert_from_func_ptr_addr and
8885 set_gdbarch_elf_make_msymbol_special for ELFv1.
8886 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8887 function descriptors on ELFv1.
8888 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8889 set up r12 at function entry.
8891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8893 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8894 (struct gdbarch_tdep): New member elf_abi.
8896 * rs6000-tdep.c: Include "elf/ppc64.h".
8897 (rs6000_gdbarch_init): Detect ELF ABI version.
8899 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8901 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8902 within a register pair holding a DFP 128-bit value on little-endian.
8903 (ppc64_sysv_abi_return_value_base): Likewise.
8904 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8905 (dfp_pseudo_register_write): Likewise.
8907 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8909 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8910 offset on little-endian when passing _Decimal32.
8911 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8913 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8915 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8916 of the overlapped FP register within the VSX register on little-
8918 (efpr_pseudo_register_write): Likewise.
8920 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8922 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8923 offset on little-endian when passing small structures.
8925 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8927 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8928 (struct ppc64_sysv_argpos): New data structure.
8929 (ppc64_sysv_abi_push_float): Remove.
8930 (ppc64_sysv_abi_push_val): New function.
8931 (ppc64_sysv_abi_push_integer): Likewise.
8932 (ppc64_sysv_abi_push_freg): Likewise.
8933 (ppc64_sysv_abi_push_vreg): Likewise.
8934 (ppc64_sysv_abi_push_param): Likewise.
8935 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8936 (ppc64_sysv_abi_return_value_base): New function.
8937 (ppc64_sysv_abi_return_value): Refactor to use it.
8939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8941 * NEWS: Document new target powerpc64le-*-linux*.
8943 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8945 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8946 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8948 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8949 register set used in ELF core dumps. Add floating-point register set.
8951 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8953 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8954 dwarf2_to_gdb[] table using symbolic constants. Adjust
8955 penultimate entry from number representing the PC register
8956 to symbolic constant representing the MDR register. Add
8957 constant for the PC register to the end of the table.
8959 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8961 * bsd-kvm.c: Include <sys/param.h>
8963 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8965 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8967 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8969 * ada-lang.h (clear_ada_sym_cache): Delete.
8971 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8973 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8975 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8977 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8978 the sigreturn register save area only if the syscall is
8981 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8983 * valops.c (value_slice): Minor reformatting.
8985 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8987 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8989 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8991 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8993 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8994 (ada_ignore_descriptive_types_p): New static global.
8995 (find_parallel_type_by_descriptive_type): Return immediately
8996 if ada_ignore_descriptive_types_p is set.
8997 (_initialize_ada_language): Register new commands "maintenance
8998 set ada", "maintenance show ada", "maintenance set ada
8999 ignore-descriptive-types" and "maintenance show ada
9000 ignore-descriptive-types".
9001 * NEWS: Add entry for new "maint ada set/show
9002 ignore-descriptive-types" commands.
9004 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9006 * record-btrace.c (record_btrace_close): Call btrace_teardown
9009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9011 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9016 * ada-typeprint (type_is_full_subrange_of_target_type):
9018 (print_range): Add parameter bounds_prefered_p. If not set,
9019 try printing range types using the name of their base type.
9020 (print_range_type): Add parameter bounds_prefered_p.
9021 Use it in call to print_range.
9022 (print_array_type, ada_print_type): Update calls to print_range
9023 and print_range_type.
9025 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9027 * ada-typeprint.c (print_array_type, print_choices, print_range)
9028 (print_range_bound, print_dynamic_range_bound, print_range_type):
9031 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9033 * ada-typeprint.c (print_range): Add missing empty line
9034 after local declaration.
9036 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9038 * ada-valprint.c (print_optional_low_bound): Get index_type's
9039 target type for as long as it is a TYPE_CODE_RANGE.
9041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9043 * procfs.c (procfs_make_note_section): Remove assertion and
9046 2014-01-24 Yao Qi <yao@codesourcery.com>
9048 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9049 * corelow.c (get_core_siginfo): Likewise.
9051 2014-01-24 Yao Qi <yao@codesourcery.com>
9053 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9054 ULONGEST. Don't check 'len' is negative.
9055 (remote_write_bytes): Change type of 'len' to ULONGEST.
9057 2014-01-23 Tom Tromey <tromey@redhat.com>
9060 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9061 Handle exception from frame.block.
9062 (FrameVars.fetch_frame_locals): Likewise.
9064 2014-01-23 Tom Tromey <tromey@redhat.com>
9067 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9068 on a NULL pointer. Move "goto error" to correct place.
9070 2014-01-23 Tom Tromey <tromey@redhat.com>
9073 * python/py-framefilter.c (apply_frame_filter): Call
9074 ensure_python_env after computing gdbarch.
9076 2014-01-23 Yao Qi <yao@codesourcery.com>
9078 * target.c (raw_memory_xfer_partial): Change argument type
9079 from void * to gdb_byte *.
9080 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9082 2014-01-22 Doug Evans <dje@google.com>
9084 New gdbserver option --debug-format=timestamp.
9087 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9089 * syscalls/s390x-linux.xml: New file.
9090 * syscalls/s390-linux.xml: New file.
9091 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9092 (XML_SYSCALL_FILENAME_S390X): Likewise.
9093 (op_svc): New enum value for SVC opcode.
9094 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9095 (s390_linux_get_syscall_number): New function.
9096 (s390_gdbarch_init): Register '*get_syscall_number' and the
9097 syscall xml file name.
9098 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9099 "s390-linux.xml" and "s390x-linux.xml".
9100 * NEWS: Announce new feature.
9102 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9104 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9106 2014-01-22 Pedro Alves <palves@redhat.com>
9108 * xtensa-config.c: Include defs.h.
9110 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9112 * common/common-utils.h: Add "ARI:" comment beside __func__
9115 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9117 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9118 documentation a bit.
9120 2014-01-21 Roland McGrath <mcgrathr@google.com>
9122 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9123 * configure: Regenerate.
9124 * aclocal.m4: Regenerate.
9125 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9126 New substituted variables.
9127 (install-strip): New target.
9128 (INSTALL_SCRIPT): New substituted variable.
9129 (FLAGS_TO_PASS): Add it.
9130 (install-only): Use $(INSTALL_SCRIPT) rather than
9131 $(INSTALL_PROGRAM) for gcore.
9133 2014-01-20 Tom Tromey <tromey@redhat.com>
9135 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9138 2014-01-20 Tom Tromey <tromey@redhat.com>
9140 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9141 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9142 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9143 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9144 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9145 (struct cmd_list_element) <flags>: Remove.
9146 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9147 doc_allocated>: New fields.
9148 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9150 * maint.c (maintenance_do_deprecate): Update.
9151 * top.c (execute_command): Update.
9153 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9155 * xtensa-linux-nat.c: Include asm/ptrace.h.
9157 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9159 * Makefile.in (SFILES): Add d-support.c.
9160 (COMMON_OBS): Add d-support.o.
9161 * d-lang.h (d_parse_symbol): Add comment, now defined in
9163 * d-lang.c (parse_call_convention)
9164 (parse_attributes, parse_function_types)
9165 (parse_function_args, parse_type, parse_identifier)
9166 (call_convention_p, d_parse_symbol): Move functions to ...
9167 * d-support.c: ... New file.
9169 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9171 * d-lang.h (d_parse_symbol): Add declaration.
9172 * d-lang.c (extract_identifiers)
9173 (extract_type_info): Remove functions.
9174 (parse_call_convention, parse_attributes)
9175 (parse_function_types, parse_function_args)
9176 (parse_type, parse_identifier, call_convention_p)
9177 (d_parse_symbol): New functions.
9178 (d_demangle): Use d_parse_symbol to demangle D symbols.
9180 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9182 * d-lang.h (struct builtin_d_type): New data type.
9183 (builtin_d_type): Add declaration.
9184 * d-lang.c (d_language_arch_info, build_d_types)
9185 (builtin_d_type): New functions.
9186 (enum d_primitive_types): New data type.
9187 (d_language_defn): Change c_language_arch_info to
9188 d_language_arch_info.
9189 (d_type_data): New static variable.
9190 (_initialize_d_language): Initialize d_type_data.
9192 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9194 * d-lang.h (d_main_name): Add declaration.
9195 * d-lang.c (d_main_name): New function.
9196 * symtab.c (find_main_name): Add call to d_main_name.
9198 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9200 * d-lang.c (d_language_defn): Change macro_expansion_c to
9203 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9205 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9207 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9209 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9210 gdb_exception" declaration.
9211 * remote.c (getpkt_or_notif_sane): Likewise.
9213 2014-01-17 Doug Evans <dje@google.com>
9215 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9216 function, contents of dirnames_to_char_ptr_vec_append moved here.
9217 (delim_string_to_char_ptr_vec): New function.
9218 (dirnames_to_char_ptr_vec_append): Rewrite.
9219 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9221 2014-01-17 Doug Evans <dje@google.com>
9223 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9225 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9226 #include "common-utils.h".
9227 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9228 * common/vec.h (VEC_ASSERT_PASS): Update.
9229 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9230 (MACH_CHECK_ERROR): Update.
9232 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9234 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9236 * gdbarch.h: Regenerate.
9238 2014-01-16 Tom Tromey <tromey@redhat.com>
9240 * value.c (struct value) <regnum>: Move earlier.
9242 2014-01-16 Tom Tromey <tromey@redhat.com>
9244 * remote.c (extended_remote_create_inferior): Rename from
9245 extended_remote_create_inferior_1. Add "ops" argument. Remove
9248 2014-01-16 Pedro Alves <palves@redhat.com>
9250 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9251 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9254 2014-01-16 Doug Evans <dje@google.com>
9256 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9258 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9260 * btrace.h (btrace_thread_flag): New.
9261 (struct btrace_thread_info) <flags>: New.
9262 * record-btrace.c (record_btrace_resume_thread)
9263 (record_btrace_find_thread_to_move, btrace_step_no_history)
9264 (btrace_step_stopped, record_btrace_start_replaying)
9265 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9266 (record_btrace_find_resume_thread): New.
9267 (record_btrace_resume, record_btrace_wait): Extend.
9268 (record_btrace_can_execute_reverse): New.
9269 (record_btrace_open): Fail in non-stop mode.
9270 (record_btrace_set_replay): Split into this, ...
9271 (record_btrace_stop_replaying): ... this, ...
9272 (record_btrace_clear_histories): ... and this.
9273 (init_record_btrace_ops): Init to_can_execute_reverse.
9274 * NEWS: Announce it.
9276 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9278 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9279 (forward_target_decr_pc_after_break)
9280 (target_decr_pc_after_break): New.
9281 * target.c (forward_target_decr_pc_after_break)
9282 (target_decr_pc_after_break): New.
9283 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9284 instead of gdbarch_decr_pc_after_break.
9285 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9286 instead of gdbarch_decr_pc_after_break.
9287 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9288 instead of gdbarch_decr_pc_after_break.
9289 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9290 instead of gdbarch_decr_pc_after_break.
9291 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9292 instead of gdbarch_decr_pc_after_break.
9293 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9294 instead of gdbarch_decr_pc_after_break.
9296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9298 * btrace.c: Include regcache.h.
9299 (btrace_add_pc): New.
9300 (btrace_enable): Call btrace_add_pc.
9301 (btrace_is_empty): New.
9302 * btrace.h (btrace_is_empty): New.
9303 * record-btrace.c (require_btrace, record_btrace_info): Call
9306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9308 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9309 Support delta reads.
9310 (linux_disable_btrace): Change return type.
9311 * common/linux-btrace.h (linux_read_btrace): Change parameters
9312 and return type to allow error reporting. Update users.
9313 (linux_disable_btrace): Change return type. Update users.
9314 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9316 (btrace_error): New.
9317 (btrace_block) <begin>: Comment on BEGIN == 0.
9318 * btrace.c (btrace_compute_ftrace): Start from the end of
9320 (btrace_stitch_trace, btrace_clear_history): New.
9321 (btrace_fetch): Read delta trace, return if replaying.
9322 (btrace_clear): Move clear history code to btrace_clear_history.
9323 (parse_xml_btrace): Throw an error if parsing failed.
9324 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9325 and return type to allow error reporting.
9326 (target_read_btrace): Change parameters and return type to allow
9328 * target.c (target_read_btrace): Update.
9329 * remote.c (remote_read_btrace): Support delta reads. Pass
9331 * NEWS: Announce it.
9333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9335 * record.h (record_btrace_frame_unwind)
9336 (record_btrace_tailcall_frame_unwind): New declarations.
9337 * dwarf2-frame: Include record.h
9338 (dwarf2_frame_cfa): Throw an error for btrace frames.
9339 * record-btrace.c: Include hashtab.h.
9340 (btrace_get_bfun_name): New.
9341 (btrace_call_history): Call btrace_get_bfun_name.
9342 (struct btrace_frame_cache): New.
9344 (bfcache_hash, bfcache_eq, bfcache_new): New.
9345 (btrace_get_frame_function): New.
9346 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9347 (record_btrace_frame_this_id): Compute own id.
9348 (record_btrace_frame_prev_register): Provide PC, throw_error
9349 for all other registers.
9350 (record_btrace_frame_sniffer): Detect btrace frames.
9351 (record_btrace_tailcall_frame_sniffer): New.
9352 (record_btrace_frame_dealloc_cache): New.
9353 (record_btrace_frame_unwind): Add new functions.
9354 (record_btrace_tailcall_frame_unwind): New.
9355 (_initialize_record_btrace): Allocate cache.
9356 * btrace.c (btrace_clear): Call reinit_frame_cache.
9357 * NEWS: Announce it.
9359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9361 * record-btrace.c (record_btrace_set_replay)
9362 (record_btrace_goto_begin, record_btrace_goto_end)
9363 (record_btrace_goto): New.
9364 (init_record_btrace_ops): Initialize them.
9365 * NEWS: Announce it.
9367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9369 * record-btrace.c (record_btrace_find_new_threads)
9370 (record_btrace_thread_alive): New.
9371 (init_record_btrace_ops): Initialize to_find_new_threads and
9374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9376 * record-btrace.c (record_btrace_resume): New.
9377 (record_btrace_wait): New.
9378 (init_record_btrace_ops): Initialize to_wait and to_resume.
9380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9382 * record-btrace.c (record_btrace_xfer_partial)
9383 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9384 (record_btrace_allow_memory_access): New.
9385 (init_record_btrace_ops): Initialize new methods.
9386 * target.c (raw_memory_xfer_partial): Bail out if target reports
9387 that this memory is not available.
9389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9391 * target.h (target_ops) <to_insert_breakpoint>
9392 <to_remove_breakpoint>: Add target_ops parameter.
9393 (forward_target_insert_breakpoint): New.
9394 (forward_target_remove_breakpoint): New.
9395 (memory_remove_breakpoint, memory_insert_breakpoint):
9396 Add target_ops parameter.
9397 * target.c (target_insert_breakpoint): Split into this and ...
9398 (forward_target_insert_breakpoint): ... this.
9399 (target_remove_breakpoint): Split into this and ...
9400 (forward_target_remove_breakpoint): ... this.
9401 (debug_to_insert_breakpoint): Add target_ops parameter.
9402 Call forward_target_insert_breakpoint.
9403 (debug_to_remove_breakpoint): Add target_ops parameter.
9404 Call forward_target_remove_breakpoint.
9405 (update_current_target): Do not inherit or default to_insert_breakpoint
9406 and to_remove_breakpoint.
9407 * corelow.c (ignore): Add target_ops parameter.
9408 * exec.c (ignore): Add target_ops parameter.
9409 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9410 Add target_ops parameter.
9411 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9412 Add target_ops parameter.
9413 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9414 Add target_ops parameter.
9415 * record-full.c (record_full_beneath_to_insert_breakpoint)
9416 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9417 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9418 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9419 (record_full_core_remove_breakpoint): Add target_ops parameter.
9421 (record_full_beneath_to_insert_breakpoint_ops)
9422 (record_full_beneath_to_remove_breakpoint_ops)
9423 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9424 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9425 tmp_to_remove_breakpoint_ops,
9426 record_full_beneath_to_insert_breakpoint_ops, and
9427 record_full_beneath_to_remove_breakpoint_ops.
9428 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9429 (m32r_remove_breakpoint): Add target_ops parameter.
9430 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9431 Add target_ops parameter.
9432 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9433 Add target_ops parameter.
9435 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9436 Markus Metzger <markus.t.metzger@intel.com>
9438 * record-btrace.c: Include frame-unwind.h.
9439 (record_btrace_frame_unwind_stop_reason)
9440 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9441 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9443 (init_record_btrace_ops): Install it.
9445 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9447 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9450 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9452 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9455 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9457 * frame-unwind.c: Include target.h.
9458 (frame_unwind_try_unwinder): New function with code from ...
9459 (frame_unwind_find_by_frame): ... here. New variable
9460 unwinder_from_target, call also target_get_unwinder)
9461 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9462 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9463 * target.h (struct target_ops): New fields to_get_unwinder and
9464 to_get_tailcall_unwinder.
9465 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9469 * record-btrace.c (record_btrace_fetch_registers)
9470 (record_btrace_store_registers)
9471 (record_btrace_to_prepare_to_store): New.
9472 (init_record_btrace_ops): Add the above.
9474 2014-01-16 Tom Tromey <tromey@redhat.com>
9476 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9477 * target.h (struct target_ops) <to_prepare_to_store>: Add
9479 (target_prepare_to_store): Add argument.
9480 * target.c (debug_to_prepare_to_store): Add argument.
9481 (update_current_target): Update.
9482 * remote.c (remote_prepare_to_store): Add 'self' argument.
9483 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9484 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9485 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9486 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9488 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9489 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9490 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9491 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9492 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9496 * btrace.h (replay) <replay>: New.
9497 (btrace_is_replaying): New.
9498 * btrace.c (btrace_clear): Free replay iterator.
9499 (btrace_is_replaying): New.
9500 * record-btrace.c (record_btrace_is_replaying): New.
9501 (record_btrace_info): Print insn number if replaying.
9502 (record_btrace_insn_history): Start at replay position.
9503 (record_btrace_call_history): Start at replay position.
9504 (init_record_btrace_ops): Init to_record_is_replaying.
9506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9508 * record-btrace.c (record_btrace_insn_history_range): Include
9510 (record_btrace_insn_history_from): Adjust range.
9511 (record_btrace_call_history_range): Include
9513 (record_btrace_call_history_from): Adjust range.
9514 * NEWS: Announce changes.
9516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9518 * record.h (enum record_print_flag)
9519 <record_print_indent_calls>: New.
9520 * record.c (get_call_history_modifiers): Recognize /c modifier.
9521 (_initialize_record): Document /c modifier.
9522 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9523 Reorder fields. Optionally indent the function name. Update
9525 * NEWS: Announce changes.
9527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9529 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9533 * btrace.c (ftrace_new_function): Start counting at one.
9534 * record-btrace.c (record_btrace_info): Adjust number of calls
9536 * NEWS: Announce it.
9538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9540 * record-btrace.c (btrace_call_history_insn_range): Print
9541 insn range as [begin, end].
9543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9545 * btrace.h (struct btrace_func_link): New.
9546 (enum btrace_function_flag): New.
9547 (struct btrace_inst): Rename to ...
9548 (struct btrace_insn): ...this. Update all users.
9549 (struct btrace_func) <ibegin, iend>: Remove.
9550 (struct btrace_func_link): New.
9551 (struct btrace_func): Rename to ...
9552 (struct btrace_function): ...this. Update all users.
9553 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9554 (number, level, flags>: New.
9555 (struct btrace_insn_iterator): Rename to ...
9556 (struct btrace_insn_history): ...this.
9558 (struct btrace_insn_iterator, btrace_call_iterator): New.
9559 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9560 (struct btrace_target_info) <begin, end, level>
9561 <insn_history, call_history>: New.
9562 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9563 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9564 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9565 (btrace_call_number, btrace_call_begin, btrace_call_end)
9566 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9567 (btrace_find_function_by_number, btrace_set_insn_history)
9568 (btrace_set_call_history): New.
9569 * btrace.c (btrace_init_insn_iterator)
9570 (btrace_init_func_iterator, compute_itrace): Remove.
9571 (ftrace_print_function_name, ftrace_print_filename)
9572 (ftrace_skip_file): Change
9574 (ftrace_init_func): Remove.
9575 (ftrace_debug): Use new btrace_function fields.
9576 (ftrace_function_switched): Also consider gaining and
9577 losing symbol information).
9578 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9579 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9580 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9582 (ftrace_new_function): Move. Remove debug print.
9583 (ftrace_update_lines, ftrace_update_insns): New.
9584 (ftrace_update_function): Check for call, ret, and jump.
9585 (compute_ftrace): Renamed to ...
9586 (btrace_compute_ftrace): ...this. Rewritten to compute call
9588 (btrace_fetch, btrace_clear): Updated.
9589 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9590 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9591 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9592 (btrace_call_number, btrace_call_begin, btrace_call_end)
9593 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9594 (btrace_find_function_by_number, btrace_set_insn_history)
9595 (btrace_set_call_history): New.
9596 * record-btrace.c (require_btrace): Use new btrace thread
9598 (record_btrace_info, btrace_insn_history)
9599 (record_btrace_insn_history, record_btrace_insn_history_range):
9600 Use new btrace thread info fields and new iterator.
9601 (btrace_func_history_src_line): Rename to ...
9602 (btrace_call_history_src_line): ...this. Use new btrace
9604 (btrace_func_history): Rename to ...
9605 (btrace_call_history): ...this. Use new btrace thread info
9606 fields and new iterator.
9607 (record_btrace_call_history, record_btrace_call_history_range):
9608 Use new btrace thread info fields and new iterator.
9610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9612 * frame.h (frame_id_build_unavailable_stack_special): New.
9613 * frame.c (frame_id_build_unavailable_stack_special): New.
9615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9617 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9618 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9619 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9621 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9622 (i386_insn_is_jump, i386_jmp_p): New.
9623 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9624 insn_is_jump to gdbarch.
9625 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9626 * gdbarch.h: Regenerated.
9627 * gdbarch.c: Regenerated.
9628 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9629 (default_insn_is_jump): New.
9630 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9631 (default_insn_is_jump): New.
9633 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9635 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9637 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9638 (btrace_read_type) <btrace_read_new>: Change to ...
9639 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9643 * common/linux-btrace.c (linux_read_btrace): Free trace from
9646 2014-01-15 Doug Evans <dje@google.com>
9648 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9651 2014-01-15 Tom Tromey <tromey@redhat.com>
9653 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9654 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9655 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9656 (set_objfile_main_name): New function.
9657 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9658 language_of_main>: New fields.
9659 (set_objfile_main_name): Declare.
9660 * symtab.c (find_main_name): Loop over objfiles to find the main
9662 (set_main_name): Now static.
9663 (get_main_info): Add comment.
9664 * symtab.h (set_main_name): Don't declare.
9666 2014-01-15 Tom Tromey <tromey@redhat.com>
9668 * symtab.c (main_progspace_key): New global.
9669 (struct main_info): New.
9670 (name_of_main, language_of_main): Remove.
9671 (get_main_info, main_info_cleanup): New function.
9672 (set_main_name, main_name, main_language): Use get_main_info.
9673 (_initialize_symtab): Initialize main_progspace_key.
9675 2014-01-15 Tom Tromey <tromey@redhat.com>
9677 * dbxread.c (process_one_symbol): Update.
9678 * dwarf2read.c (read_partial_die): Update.
9679 * symfile.c (set_initial_language): Call main_language.
9680 * symtab.c (language_of_main): Now static.
9681 (set_main_name): Add 'lang' parameter.
9682 (find_main_name): Update.
9683 (main_language): New function.
9684 (symtab_observer_executable_changed): Update.
9685 * symtab.h (set_main_name): Update.
9686 (language_of_main): Remove.
9687 (main_language): Declare.
9689 2014-01-15 Tom Tromey <tromey@redhat.com>
9691 * symfile.c (init_entry_point_info): Use new "initialized" field.
9693 * objfiles.h (struct entry_point) <initialized>: New field.
9694 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9695 (struct objfile) <ei>: ...here. Remove.
9696 * objfiles.c (entry_point_address_query): Update.
9698 2014-01-15 Tom Tromey <tromey@redhat.com>
9700 * objfiles.c (entry_point_address_query): Relocate entry point
9702 (objfile_relocate1): Do not relocate entry point address.
9703 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9704 <the_bfd_section_index>: New field.
9705 * symfile.c (init_entry_point_info): Find the entry point's
9708 2014-01-15 Tom Tromey <tromey@redhat.com>
9710 * solib-frv.c (enable_break): Use entry_point_address_query.
9712 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9714 * NEWS: Add note on improved process record-replay on
9715 arm*-linux* targets.
9717 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9719 * arm-tdep.c (enum arm_record_result): New enum.
9720 (arm_record_unsupported_insn): New function.
9721 (arm_record_coproc_data_proc): Removed.
9722 (thumb2_record_ld_st_multiple): New function.
9723 (thumb2_record_ld_st_dual_ex_tbb): New function.
9724 (thumb2_record_data_proc_sreg_mimm): New function.
9725 (thumb2_record_ps_dest_generic): New function.
9726 (thumb2_record_branch_misc_cntrl): New function.
9727 (thumb2_record_str_single_data): New function.
9728 (thumb2_record_ld_mem_hints): New function.
9729 (thumb2_record_ld_word): New function.
9730 (thumb2_record_lmul_lmla_div): New function.
9731 (thumb2_record_decode_insn_handler): New function.
9732 (decode_insn): Add thumb32 instruction handlers.
9734 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9736 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9737 (struct arm_linux_record_tdep): Declare.
9738 (arm_canonicalize_syscall): New function.
9739 (arm_all_but_pc_registers_record): New function.
9740 (arm_linux_syscall_record): New function.
9741 (arm_linux_init_abi): Add syscall recording constructs.
9742 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9743 decoding. (arm_record_coproc_data_proc): Update arm syscall
9745 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9746 <arm_syscall_record>: New field.
9747 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9750 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9752 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9753 register for push instruction recording.
9755 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9757 * arm-tdep.c (thumb_record_misc): Update to correct logical
9758 error while recording ldm, ldmia and pop instructions.
9760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9762 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9764 2014-01-15 Pedro Alves <palves@redhat.com>
9766 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9767 (go32_resume, go32_fetch_registers, store_register)
9768 (go32_store_registers, go32_prepare_to_store)
9769 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9770 (go32_create_inferior, go32_can_run, go32_terminal_init)
9771 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9774 2014-01-15 Tom Tromey <tromey@redhat.com>
9776 * target.h (async_callback_ftype): New typedef.
9777 (struct target_ops) <to_async>: Use it.
9779 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9781 * python/py-value.c (get_field_type): Remove unnecessary curly
9782 braces for single-statement if block.
9784 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9786 * python/py-type.c (convert_field): Add missing empty line
9789 2014-01-14 Doug Evans <dje@google.com>
9791 * symfile.h (expand_symtabs_matching): Renamed from
9792 expand_partial_symbol_names. Update prototype.
9793 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9794 * symfile.c (expand_symtabs_matching): Renamed from
9795 expand_partial_symbol_names. New args file_matcher, kind.
9796 Rename arg fun to symbol_matcher.
9797 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9798 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9799 ada_expand_partial_symbol_name.
9800 (ada_make_symbol_completion_list): Update to call
9801 expand_symtabs_matching.
9802 (ada_add_global_exceptions): Call expand_symtabs_matching.
9803 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9804 call map_symbol_filenames.
9805 * symtab.c (sources_info): Update to call map_symbol_filenames.
9806 (search_symbols): Call expand_symtabs_matching.
9807 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9808 (default_make_symbol_completion_list_break_on): Update to call
9809 expand_symtabs_matching.
9810 (make_source_files_completion_list): Update to call
9811 map_symbol_filenames.
9813 2014-01-14 Doug Evans <dje@google.com>
9815 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9816 (expand_symtabs_symbol_matcher_ftype): New typedef.
9817 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9818 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9819 * symfile.c (expand_partial_symbol_names): Update to use
9820 expand_symtabs_symbol_matcher_ftype.
9821 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9822 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9823 Arg name_matcher renamed to symbol_matcher.
9824 * psymtab.c (recursively_search_psymtabs): Update to use
9825 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9827 (expand_symtabs_matching_via_partial): Update to use
9828 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9829 Arg name_matcher renamed to symbol_matcher.
9831 2014-01-14 Doug Evans <dje@google.com>
9833 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9834 (map_partial_symbol_filenames): Ditto.
9835 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9836 (map_partial_symbol_filenames): Ditto.
9837 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9838 (map_partial_symbol_filenames): Ditto.
9839 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9840 (map_partial_symbol_filenames): Ditto.
9841 * symtab.c: Delete #include "psymtab.h".
9843 2014-01-14 Pedro Alves <palves@redhat.com>
9844 Tom Tromey <tromey@redhat.com>
9846 * infrun.c (use_displaced_stepping): Use find_record_target
9847 instead of RECORD_IS_USED.
9848 (adjust_pc_after_break): Use record_full_is_used instead of
9850 * record-btrace.c (record_btrace_open): Call record_preopen
9851 instead of checking RECORD_IS_USED.
9852 * record-full.c (record_full_shortname)
9853 (record_full_core_shortname): New globals.
9854 (record_full_is_used): New function.
9855 (find_full_open): Call record_preopen instead of checking
9857 (init_record_full_ops): Set the target's shortname to
9858 record_full_shortname.
9859 (init_record_full_core_ops): Set the target's shortname to
9860 record_full_core_shortname.
9861 * record-full.h (record_full_is_used): Declare.
9862 * record.c (find_record_target): Make extern.
9863 (record_preopen): New function.
9864 * record.h (RECORD_IS_USED): Delete macro.
9865 (find_record_target, record_preopen): Declare functions.
9867 2014-01-14 Yao Qi <yao@codesourcery.com>
9869 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9870 'len''s type to ULONGEST.
9871 (core_xfer_shared_libraries_aix): Likewise.
9872 * gdbarch.c, gdbarch.h: Regenerated.
9873 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9874 Change type of 'len' to ULONGEST.
9875 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9876 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9878 2014-01-14 Yao Qi <yao@codesourcery.com>
9880 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9881 type of 'len' to ULONGEST.
9882 (linux_xfer_osdata_processgroups): Likewise.
9883 (linux_xfer_osdata_threads): Likewise.
9884 (linux_xfer_osdata_fds): Likewise.
9885 (linux_xfer_osdata_isockets): Likewise.
9886 (linux_xfer_osdata_shm): Likewise.
9887 (linux_xfer_osdata_sem): Likewise.
9888 (linux_xfer_osdata_msg): Likewise.
9889 (linux_common_xfer_osdata): Likewise.
9890 (struct osdata_type) <getter>: Likewise.
9891 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9894 2014-01-14 Yao Qi <yao@codesourcery.com>
9896 * target.h (target_xfer_partial_ftype): Update.
9897 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9899 * aix-thread.c (aix_thread_xfer_partial): Change type of
9900 argument 'len' to ULONGEST.
9901 * auxv.c (procfs_xfer_auxv): Likewise.
9902 (ld_so_xfer_auxv): Likewise.
9903 (memory_xfer_auxv): Likewise.
9904 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9905 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9906 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9907 * corelow.c (core_xfer_partial): Likewise.
9908 * ctf.c (ctf_xfer_partial): Likewise.
9909 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9911 (darwin_read_dyld_info): Likewise.
9912 (darwin_xfer_partial): Likewise.
9913 * exec.c (section_table_xfer_memory_partial): Likewise.
9914 (exec_xfer_partial): Likewise.
9915 * exec.h (section_table_xfer_memory_partial): Update
9917 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9918 instead of plongest.
9919 (gnu_xfer_partial): Likewise.
9920 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9921 (ia64_hpux_xfer_solib_got): Likewise.
9922 (ia64_hpux_xfer_partial): Likewise.
9923 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9924 * inf-ptrace.c (inf_ptrace_xfer_partial):
9925 * inf-ttrace.c (inf_ttrace_xfer_partial):
9926 * linux-nat.c (linux_xfer_siginfo): Likewise.
9927 (linux_nat_xfer_partial): Likewise.
9928 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9929 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9930 * monitor.c (monitor_xfer_memory): Likewise.
9931 (monitor_xfer_partial): Likewise.
9932 * procfs.c (procfs_xfer_partial): Likewise.
9933 * record-full.c (record_full_xfer_partial): Likewise.
9934 (record_full_core_xfer_partial): Likewise.
9935 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9936 instead of plongest.
9937 (gdbsim_xfer_partial): Likewise.
9938 * remote.c (remote_xfer_partial): Likewise.
9939 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9940 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9942 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9943 (rs6000_xfer_shared_libraries): Likewise.
9944 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9945 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9946 (sparc_xfer_partial): Likewise.
9947 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9948 (spu_xfer_partial): Likewise.
9949 * spu-multiarch.c (spu_xfer_partial): Likewise.
9950 * target.c (target_read_live_memory): Likewise.
9951 (memory_xfer_live_readonly_partial): Likewise.
9952 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9953 (target_xfer_partial, default_xfer_partial): Likewise.
9954 (current_xfer_partial): Likewise.
9955 * tracepoint.c (tfile_xfer_partial): Likewise.
9956 * windows-nat.c (windows_xfer_memory): Likewise. Call
9957 pulongest instead of plongest.
9958 (windows_xfer_partial): Likewise.
9959 (windows_xfer_shared_libraries): Likewise.
9961 2014-01-14 Yao Qi <yao@codesourcery.com>
9963 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9964 target_xfer_partial_ftype.
9966 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9970 * valops.c (value_struct_elt_bitpos): New function
9971 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9972 object to 'None' if the field name is an empty string ("").
9973 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9974 attribute to look for a field when 'name' is 'None'.
9975 (get_field_type): New function
9977 2014-01-13 Doug Evans <dje@google.com>
9980 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9981 (try_open_dwop_file): Ditto.
9982 * gdb_bfd.c: #include "vec.h".
9983 (bfdp): New typedef.
9984 (struct gdb_bfd_data): New member included_bfds.
9985 (gdb_bfd_unref): Unref all included bfds.
9986 (gdb_bfd_record_inclusion): New function.
9987 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9989 2014-01-13 Tom Tromey <tromey@redhat.com>
9991 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9993 2014-01-13 Tom Tromey <tromey@redhat.com>
9995 * defs.h (use_windows): Remove.
9996 * gdb.c (main): Update.
9997 * main.c (captured_main, gdb_main): Update.
9998 * main.h (struct captured_main_args) <use_windows>: Remove.
9999 * top.c (use_windows): Remove.
10001 2014-01-13 Tom Tromey <tromey@redhat.com>
10003 * defs.h (deprecated_flush_hook): Remove.
10005 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10008 * linux-thread-db.c (try_thread_db_load): Add parameter
10009 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10010 (try_thread_db_load_from_pdir_1): Move it there from here.
10011 (try_thread_db_load_from_sdir): Update caller.
10012 (try_thread_db_load_from_dir): Move it there from here.
10014 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10016 * regformats/regdat.sh: Always rewrite the register file.
10018 2014-01-13 Pedro Alves <palves@redhat.com>
10020 * Makefile.in (CHECK_HEADERS): New variable.
10021 (check-headers:): New rule.
10023 2014-01-13 Tom Tromey <tromey@redhat.com>
10025 * cli/cli-setshow.c (do_set_command): Update.
10026 * defs.h (deprecated_set_hook): Remove.
10027 * top.c (deprecated_set_hook): Remove.
10029 2014-01-13 Pedro Alves <palves@redhat.com>
10031 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10032 the tracepoint if the PC is a pseudo-register.
10034 2014-01-13 Tom Tromey <tromey@redhat.com>
10036 * defs.h (XCALLOC): Remove.
10037 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10038 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10039 * dwarf2loc.c (allocate_piece_closure): Likewise.
10040 * elfread.c (elf_symfile_segments): Likewise.
10041 (elf_symfile_segments): Likewise.
10042 * gdbtypes.c (copy_type_recursive): Likewise.
10043 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10044 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10045 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10047 * mt-tdep.c (mt_gdbarch_init): Likewise.
10048 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10050 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10051 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10052 * registry.c (registry_alloc_data): Likewise.
10053 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10054 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10055 * serial.c (serial_fdopen_ops): Likewise.
10056 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10058 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10059 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10062 2014-01-13 Tom Tromey <tromey@redhat.com>
10064 * defs.h (XMALLOC): Remove.
10065 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10066 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10067 * cli-out.c (struct ui_out *): Likewise.
10068 * cli/cli-dump.c (add_dump_command): Likewise.
10069 (add_dump_command): Likewise.
10070 * complaints.c (get_complaints): Likewise.
10071 (find_complaint): Likewise.
10072 * dwarf2-frame.c (execute_cfa_program): Likewise.
10073 * dwarf2read.c (abbrev_table_read_table): Likewise.
10074 * gdbarch.sh: Likewise.
10075 * gdbarch.c: Rebuild.
10076 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10077 * interps.c (interp_new): Likewise.
10078 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10079 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10080 * mi/mi-console.c (mi_console_file_new): Likewise.
10081 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10082 * mi/mi-out.c (mi_out_new): Likewise.
10083 * mi/mi-parse.c (mi_parse): Likewise.
10084 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10085 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10086 * observer.c (xalloc_observer_list_node): Likewise.
10087 * regcache.c (regcache_xmalloc_1): Likewise.
10088 * reggroups.c (reggroup_new): Likewise.
10089 (_initialize_reggroup): Likewise.
10090 * registry.c (register_data_with_cleanup): Likewise.
10091 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10092 * ser-base.c (serial_ttystate): Likewise.
10093 * ser-mingw.c (make_pipe_state): Likewise.
10094 * ser-pipe.c (pipe_open): Likewise.
10095 * serial.c (serial_open): Likewise.
10096 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10097 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10098 (tui_alloc_win_info): Likewise.
10099 (tui_add_content_elements): Likewise.
10100 * tui/tui-file.c (tui_file_new): Likewise.
10101 * tui/tui-out.c (tui_out_new): Likewise.
10102 * ui-file.c (mem_file_new): Likewise.
10103 * ui-out.c (push_level): Likewise.
10104 (make_cleanup_ui_out_end): Likewise.
10105 (append_header_to_list): Likewise.
10106 (ui_out_new): Likewise.
10107 * user-regs.c (user_reg_add_builtin): Likewise.
10109 2014-01-13 Tom Tromey <tromey@redhat.com>
10111 * defs.h (XZALLOC): Remove.
10112 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10113 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10114 (get_ada_tasks_inferior_data): Likewise.
10115 * auto-load.c (get_auto_load_pspace_data): Likewise.
10116 * auxv.c (get_auxv_inferior_data): Likewise.
10117 * bfd-target.c (target_bfd_reopen): Likewise.
10118 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10119 (deprecated_insert_raw_breakpoint): Likewise.
10120 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10121 * corelow.c (core_open): Likewise.
10122 * darwin-nat.c (darwin_check_new_threads): Likewise.
10123 (darwin_attach_pid): Likewise.
10124 * dummy-frame.c (dummy_frame_push): Likewise.
10125 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10126 * dwarf2loc.c (allocate_piece_closure): Likewise.
10127 * elfread.c (elf_symfile_segments): Likewise.
10128 * eval.c (ptrmath_type_p): Likewise.
10129 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10130 * gdbtypes.c (alloc_type_arch): Likewise.
10131 (alloc_type_instance): Likewise.
10132 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10133 * inf-child.c (inf_child_can_use_agent): Likewise.
10134 * inflow.c (get_inflow_inferior_data): Likewise.
10135 * infrun.c (save_infcall_suspend_state): Likewise.
10136 * jit.c (jit_reader_load): Likewise.
10137 (get_jit_objfile_data): Likewise.
10138 (get_jit_program_space_data): Likewise.
10139 (jit_object_open_impl): Likewise.
10140 (jit_symtab_open_impl): Likewise.
10141 (jit_block_open_impl): Likewise.
10142 (jit_frame_sniffer): Likewise.
10143 * linux-fork.c (add_fork): Likewise.
10144 * maint.c (make_command_stats_cleanup): Likewise.
10145 * objfiles.c (get_objfile_pspace_data): Likewise.
10146 * opencl-lang.c (struct lval_closure): Likewise.
10147 * osdata.c (osdata_start_osdata): Likewise.
10148 * progspace.c (new_address_space): Likewise.
10149 (add_program_space): Likewise.
10150 * remote-sim.c (get_sim_inferior_data): Likewise.
10151 * sh-tdep.c (sh_gdbarch_init): Likewise.
10152 * skip.c (Ignore): Likewise.
10153 (skip_delete_command): Likewise.
10154 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10155 (library_list_start_library): Likewise.
10156 (solib_aix_current_sos): Likewise.
10157 * solib-darwin.c (get_darwin_info): Likewise.
10158 (darwin_current_sos): Likewise.
10159 * solib-dsbt.c (get_dsbt_info): Likewise.
10160 * solib-ia64-hpux.c (new_so_list): Likewise.
10161 (ia64_hpux_get_solib_linkage_addr): Likewise.
10162 * solib-spu.c (append_ocl_sos): Likewise.
10163 (spu_current_sos): Likewise.
10164 * solib-svr4.c (get_svr4_info): Likewise.
10165 (svr4_keep_data_in_core): Likewise.
10166 (library_list_start_library): Likewise.
10167 (svr4_default_sos): Likewise.
10168 (svr4_read_so_list): Likewise.
10169 * solib-target.c (library_list_start_library): Likewise.
10170 (solib_target_current_sos): Likewise.
10171 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10172 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10173 * symfile.c (default_symfile_segments): Likewise.
10174 * target-descriptions.c (tdesc_data_init): Likewise.
10175 (tdesc_create_reg): Likewise.
10176 (struct tdesc_type *): Likewise.
10177 (tdesc_create_vector): Likewise.
10178 (tdesc_set_struct_size): Likewise.
10179 (struct tdesc_type *): Likewise.
10180 (tdesc_free_feature): Likewise.
10181 (tdesc_create_feature): Likewise.
10182 * windows-nat.c (windows_add_thread): Likewise.
10183 (windows_make_so): Likewise.
10184 * xml-support.c (gdb_xml_body_text): Likewise.
10185 (gdb_xml_create_parser_and_cleanup): Likewise.
10186 (xml_process_xincludes): Likewise.
10187 * xml-syscall.c (allocate_syscalls_info): Likewise.
10188 (syscall_create_syscall_desc): Likewise.
10190 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10192 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10193 function, with code from i386_stap_parse_special_token.
10194 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10195 (i386_stap_parse_special_token): Move code to the two functions
10196 above; simplify it.
10198 2014-01-09 Pedro Alves <palves@redhat.com>
10199 Hui Zhu <hui@codesourcery.com>
10202 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10203 bp_err_string. Don't mark the location shlib_disabled if the
10204 error thrown wasn't a generic or memory error. Catch errors
10205 thrown while inserting breakpoints in overlayed code. Output
10206 error message of software breakpoints.
10207 * remote.c (remote_insert_breakpoint): If this breakpoint has
10208 target-side commands but this stub doesn't support Z0 packets,
10209 throw NOT_SUPPORTED_ERROR error.
10210 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10211 * target.h (target_insert_breakpoint): Extend comment.
10212 (target_insert_hw_breakpoint): Add comment.
10214 2014-01-08 Pedro Alves <palves@redhat.com>
10216 * remote.c (remote_add_thread): Add threads silently if starting
10218 (remote_notice_new_inferior): If in all-stop, and starting up,
10219 don't call notice_new_inferior.
10220 (get_current_thread): New function, factored out from ...
10221 (add_current_inferior_and_thread): ... this. Adjust.
10222 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10223 found any thread, then select the remote's current thread as GDB's
10224 current thread too.
10226 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10228 * NEWS: Create a new section for the next release branch.
10229 Rename the section of the current branch, now that it has
10232 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10234 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10235 * version.in: Bump version to 7.7.50.DATE-cvs.
10237 2014-01-08 Yao Qi <yao@codesourcery.com>
10239 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10240 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10241 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10243 2014-01-08 Yao Qi <yao@codesourcery.com>
10245 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10246 return value of bfd_get_filename to symbol_file_add_from_bfd.
10248 2014-01-08 Pierre Muller <muller@sourceware.org>
10251 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10252 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10253 to prim_record_mininal_symbol_and_info.
10254 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10255 in call to prim_record_minimal_symbol_and_info.
10256 (read_pe_exported_syms): Set index field of section_data.
10258 2014-01-07 Andrew Pinski <apinski@cavium.com>
10260 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10261 * features/aarch64.c: Regenerate.
10263 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10265 * target.c (return_null): Define.
10266 (update_current_target): Use it instead of return_zero for
10267 functions that return a pointer.
10269 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10271 * source.c (add_path): Fix check for duplicated paths in the previously
10274 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10276 * ada-lang.c: Remove duplicated include statements.
10277 * alphabsd-nat.c: Ditto.
10278 * amd64-darwin-tdep.c: Ditto.
10279 * amd64fbsd-nat.c: Ditto.
10280 * auto-load.c: Ditto.
10282 * breakpoint.c: Ditto.
10283 * dbxread.c: Ditto.
10284 * fork-child.c: Ditto.
10285 * gdb_usleep.c: Ditto.
10286 * i386-darwin-tdep.c: Ditto.
10287 * i386fbsd-nat.c: Ditto.
10289 * inferior.c: Ditto.
10290 * jv-lang.c: Ditto.
10291 * linux-nat.c: Ditto.
10292 * linux-tdep.c: Ditto.
10293 * m68kbsd-nat.c: Ditto.
10294 * m68klinux-nat.c: Ditto.
10295 * microblaze-tdep.c: Ditto.
10296 * mips-linux-tdep.c: Ditto.
10297 * mn10300-tdep.c: Ditto.
10298 * nto-tdep.c: Ditto.
10299 * opencl-lang.c: Ditto.
10301 * printcmd.c: Ditto.
10302 * regcache.c: Ditto.
10303 * remote-m32r-sdi.c: Ditto.
10305 * symfile.c: Ditto.
10307 * tilegx-linux-nat.c: Ditto.
10308 * tilegx-tdep.c: Ditto.
10309 * tracepoint.c: Ditto.
10311 * vaxbsd-nat.c: Ditto.
10312 * windows-nat.c: Ditto.
10313 * xtensa-tdep.c: Ditto.
10315 2014-01-07 Yao Qi <yao@codesourcery.com>
10317 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10319 2014-01-07 Yao Qi <yao@codesourcery.com>
10320 Joel Brobecker <brobecker@adacore.com>
10322 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10323 (pdc_write_regs): Likewise.
10324 (fetch_regs_kernel_thread): Likewise.
10325 (store_regs_kernel_thread): Likewise.
10327 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10329 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10330 tagged type objects to their actual type.
10332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10334 * ada-valprint.c (print_field_values): Add "language" parameter.
10335 Update calls to print_field_values and print_variant_part.
10336 Pass new parameter "language" in call to val_print instead
10337 of "current_language". Replace call to ada_val_print by call
10339 (print_variant_part): Add "language" parameter.
10340 (ada_val_print_struct_union): Update call to print_field_values.
10342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10344 * ada-valprint.c (ui_memcpy): Delete.
10345 (ada_print_floating): Update documentation. Add empty line
10346 between between function documentation and implementation.
10347 Delete variable "buffer". Use ui_file_xstrdup in place of
10348 ui_file_put. Minor adjustments following this change.
10350 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10352 * ada-valprint.c (ada_val_print_string): New function,
10353 extracted from ada_val_print_array.
10354 (ada_val_print_array): Replace extracted code by call
10355 to ada_val_print_string followed by a return. Move
10356 "else" branch to the function's top block.
10358 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10360 * ada-valprint.c (ada_val_print_array): Move implementation
10361 down. Rename parameter "offset" and "val" into "offset_aligned"
10362 and "original_value" respectively. Add parameter "offset".
10364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10366 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10367 re-organizing the code. Change the "???" message printed
10368 when target type is a TYPE_CODE_UNDEF into
10369 "<ref to undefined type>".
10371 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10373 * ada-valprint.c (print_record): Delete, implementation inlined...
10374 (ada_val_print_struct_union): ... here. Remove call to
10375 ada_check_typedef in inlined implementation.
10377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10379 * ada-valprint.c (ada_val_print_gnat_array): New function,
10380 extracted from ada_val_print_1;
10381 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10382 (ada_val_print_flt, ada_val_print_struct_union)
10383 (ada_val_print_ref): Likewise.
10384 (ada_val_print_1): Delete variables i and elttype.
10385 Replace extracted-out code by call to corresponding
10388 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10390 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10392 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10394 * ada-valprint.c (ada_val_print_1): Replace calls to
10395 ada_val_print_1 by calls to val_print.
10397 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10399 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10400 Update calls to self accordingly. Replace calls to c_val_print
10401 by calls to val_print.
10403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10405 * ada-valprint.c (print_record): Delete declaration.
10406 (adjust_type_signedness, ada_val_print_1): Likewise.
10407 (ada_val_print): Move function implementation down.
10408 (print_variant_part, print_field_values, print_record):
10409 Move function implementation up.
10411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10413 * python/py-type.c (typy_get_name): New function.
10414 (type_object_getset): Add entry for attribute "name".
10415 * NEWS: Add entry mentioning this new attribute.
10417 2014-01-07 Yao Qi <yao@codesourcery.com>
10419 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10422 2014-01-07 Yao Qi <yao@codesourcery.com>
10424 * gnu-nat.c (info_port_rights): Add qualifier const to
10427 2014-01-07 Yao Qi <yao@codesourcery.com>
10429 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10431 2014-01-07 Yao Qi <yao@codesourcery.com>
10433 * gnu-nat.c (make_inf) Update declaration.
10434 (make_inf): Make it static.
10435 (inf_set_traced): Likewise.
10436 (inf_port_to_thread, inf_task_died_status): Likewise.
10438 2014-01-07 Yao Qi <yao@codesourcery.com>
10440 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10442 2014-01-07 Yao Qi <yao@codesourcery.com>
10444 * gnu-nat.c (_initialize_gnu_nat): Declare.
10446 2014-01-07 Yao Qi <yao@codesourcery.com>
10448 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10450 (struct gdbarch_info) <byte_order>: Change type to
10452 <byte_order_for_code>: Likewise.
10453 * gdbarch.c, gdbarch.h: Regenerated.
10455 2014-01-06 Sasha Smundak <asmundak@google.com>
10457 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10459 2014-01-06 Tom Tromey <tromey@redhat.com>
10461 * doublest.c (convert_doublest_to_floatformat): Use const, not
10463 * somread.c (som_symtab_read): Likewise.
10465 2014-01-07 Hui Zhu <hui@codesourcery.com>
10467 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10468 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10469 (gdb_bfd_fopen): Ditto.
10470 (gdb_bfd_openr): Ditto.
10471 (gdb_bfd_openw): Ditto.
10472 (gdb_bfd_openr_iovec): Ditto.
10473 (gdb_bfd_fdopenr): Ditto.
10474 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10475 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10477 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10479 * symfile-mem.c (symbol_file_add_from_memory): Removed
10480 gdb_bfd_stash_filename.
10482 2014-01-03 Doug Evans <dje@google.com>
10484 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10487 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10489 Update year range in copyright notice of all files.
10491 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10493 * top.c (print_gdb_version): Set copyright year to 2014.
10495 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10497 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10499 For older changes see ChangeLog-2013.
10505 version-control: never