1 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
8 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
9 less than zero in conditional expression.
11 2014-07-23 Tom Tromey <tromey@redhat.com>
13 * make-target-delegates ($ARGS_PART): Match trailing close paren.
14 ($INTRO_PART): Don't match whitespace.
15 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
17 ($METHOD): Add $METHOD_TRAILER.
19 (scan_target_h): New sub.
20 Change main loop not to collect state.
21 * target-delegates.c: Rebuild.
23 2014-07-23 Gary Benson <gbenson@redhat.com>
25 * cp-support.c (gdb_demangle): Fix build on systems without
28 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
30 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
31 for reference entry value target data value.
33 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
35 * stack.c (read_frame_arg): Verify value_optimized_out before calling
36 value_available_contents_eq.
38 2014-07-22 Pedro Alves <palves@redhat.com>
40 * value.c (allocate_optimized_out_value): Don't mark value as
43 2014-07-22 Jiong Wang <jiong.wang@arm.com>
45 * MAINTAINERS (Write After Approval): Update my email address.
47 2014-07-20 Doug Evans <dje@google.com>
50 * remote.c (putpkt_binary): Add text to error message.
52 2014-07-20 Yao Qi <yao@codesourcery.com>
54 * eval.c: Remove "Chill" from comments.
55 * gdbtypes.h: Likewise.
58 2014-07-20 Yao Qi <yao@codesourcery.com>
60 * std-operator.def: Update comments to TERNOP_SLICE.
62 2014-07-20 Yao Qi <yao@codesourcery.com>
64 * std-operator.def: Remove BINOP_RANGE.
65 * breakpoint.c (watchpoint_exp_is_const): Update.
66 * expprint.c (dump_subexp_body_standard): Likewise.
67 * eval.c (init_array_element): Remove dead code.
68 (evaluate_subexp_standard): Likewise.
70 2014-07-20 Yao Qi <yao@codesourcery.com>
72 * std-operator.def: Remove BINOP_IN.
73 * breakpoint.c (watchpoint_exp_is_const): Update.
74 * eval.c (evaluate_subexp_standard): Likewise.
75 * expprint.c (dump_subexp_body_standard): Likewise.
77 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
79 * microblaze-tdep.c (microblaze_register_names): Add
80 the rshr and rslr register names.
81 (microblaze_gdbarch_init): Use of tdesc_has_registers.
82 Use of tdesc_find_feature. Use of tdesc_data_alloc.
83 Use of tdesc_numbered_register. Use of
84 microblaze_register_g_packet_guesses. Use of
85 tdesc_use_registers. Use of set_gdbarch_register_type.
86 (microblaze_register_g_packet_guesses): New.
87 * microblaze-tdep.h (microblaze_reg_num): Add
88 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
89 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
90 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
91 * features/microblaze-core.xml: New file.
92 * features/microblaze-stack-protect.xml: New file.
93 * features/microblaze-with-stack-protect.c: New file.
94 * features/microblaze-with-stack-protect.xml: New file.
95 * features/microblaze.xml: New file.
96 * features/microblaze.c: New file.
97 * features/Makefile (microblaze-with-stack-protect): Add
98 microblaze-with-stack-protect microblaze and microblaze-expedite.
99 * regformats/microblaze-with-stack-protect.dat: New file.
100 * regformats/microblaze.dat: New file.
101 * doc/gdb.texinfo (MicroBlaze Features): Added.
103 2014-07-18 Tom Tromey <tromey@redhat.com>
105 * exec.c (exec_ops): Now static.
106 * exec.h (exec_ops): Don't declare.
108 2014-07-18 Tom Tromey <tromey@redhat.com>
110 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
111 to find_target_beneath.
112 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
114 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
116 2014-07-18 Tom Tromey <tromey@redhat.com>
119 * utils.c (quit): Use target_supports_terminal_ours.
120 * target.h (target_supports_terminal_ours): Declare.
121 * target.c (target_supports_delete_record): Don't check
122 to_delete_record against NULL.
123 (target_supports_terminal_ours): New function.
125 2014-07-18 Tom Tromey <tromey@redhat.com>
128 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
129 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
130 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
131 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
132 * windows-nat.c (windows_xfer_partial): Always delegate.
133 * record-btrace.c (record_btrace_xfer_partial): Simplify
135 (record_btrace_fetch_registers, record_btrace_store_registers)
136 (record_btrace_prepare_to_store, record_btrace_resume)
137 (record_btrace_wait, record_btrace_find_new_threads)
138 (record_btrace_thread_alive): Likewise.
139 * procfs.c (procfs_xfer_partial): Always delegate.
140 * corelow.c (core_xfer_partial): Always delegate.
141 * sol-thread.c (sol_find_new_threads): Simplify delegation.
143 2014-07-18 Tom Tromey <tromey@redhat.com>
145 * exec.c (exec_make_note_section): Move earlier.
147 2014-07-17 Doug Evans <dje@google.com>
150 * maint.c (count_symtabs_and_blocks): Handle NULL
151 current_program_space.
152 (report_command_stats): Check global enabled flag in addition to
153 recorded enabled flag.
154 (make_command_stats_cleanup): Handle msg_type == 0, startup.
156 2014-07-16 Pedro Alves <palves@redhat.com>
158 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
160 2014-07-16 Tom Tromey <tromey@redhat.com>
162 * target.h (struct target_ops) <to_delete_record>: Reformat
165 2014-07-16 Tom Tromey <tromey@redhat.com>
167 * target-delegates.c: Rebuild.
169 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
171 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
172 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
173 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
174 (avr_pointer_to_address): Likewise.
175 (avr_address_class_type_flags): New function.
176 (avr_address_class_type_flags_to_name): Likewise.
177 (avr_address_class_name_to_type_flags): Likewise.
178 (avr_gdbarch_init): Set address_class_type_flags,
179 address_class_type_flags_to_name and
180 address_class_name_to_type_flags.
182 2014-07-15 Pedro Alves <palves@redhat.com>
184 * linux-nat.c (kill_callback): Save errno and work with saved
187 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
189 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
191 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
193 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
194 breakpoint support correctly.
196 2014-07-14 Pedro Alves <palves@redhat.com>
198 * utils.c (prompt_for_continue): Call target_terminal_ours.
200 2014-07-14 Pedro Alves <palves@redhat.com>
202 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
203 catch_errors. Don't re-enable stdin or notify observers where,
205 (fetch_inferior_event_wrapper): Delete.
207 2014-07-14 Pedro Alves <palves@redhat.com>
210 * top.c: Include "inf-loop.h".
211 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
213 (gdb_readline_wrapper_cleanup): Make the target async again, if it
215 (gdb_readline_wrapper): Store whether the target is async, and
218 2014-07-14 Pedro Alves <palves@redhat.com>
221 * top.c (gdb_readline_wrapper_line): Tweak comment.
222 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
223 the input handler callback.
225 2014-07-14 Pedro Alves <palves@redhat.com>
228 * main.c: Include event-top.h.
229 (handle_command_errors): New function.
230 (catch_command_errors, catch_command_errors_const): Use it.
232 2014-07-14 Pedro Alves <palves@redhat.com>
234 * exceptions.c (catch_command_errors, catch_command_errors_const):
236 * exceptions.h (catch_command_errors_ftype)
237 (catch_command_errors_const_ftype): Moved to main.c.
238 (catch_command_errors, catch_command_errors_const): Delete
240 * main.c (catch_command_errors_ftype)
241 (catch_command_errors_const_ftype): Moved here from exceptions.h.
242 (catch_command_errors, catch_command_errors_const)): Moved here
243 from exceptions.c and make static.
245 2014-07-14 Pedro Alves <palves@redhat.com>
247 * exceptions.c (print_any_exception): Delete.
248 (catch_exceptions_with_msg): Use exception_print instead of
250 (catch_errors): Use exception_fprintf instead of
252 (catch_command_errors, catch_command_errors_const): Use
253 exception_print instead of print_any_exception.
255 2014-07-14 Pedro Alves <palves@redhat.com>
257 * infcall.c (run_inferior_call): Set 'sync_execution' while
258 running the inferior call.
260 2014-07-14 Pedro Alves <palves@redhat.com>
262 * value.c (value_contents_equal): Delete function.
263 * value.h (value_contents_equal): Delete declaration.
265 2014-07-14 Tom Tromey <tromey@redhat.com>
268 * gdbtypes.c (is_dynamic_type_internal): New function, from
270 (is_dynamic_type): Rewrite.
271 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
272 (resolve_dynamic_struct): Likewise.
273 (resolve_dynamic_type_internal): New function, from
274 resolve_dynamic_type.
275 (resolve_dynamic_type): Rewrite.
277 2014-07-14 Tom Tromey <tromey@redhat.com>
279 * target.c (target_require_runnable): Also check record_stratum.
282 2014-07-11 Yao Qi <yao@codesourcery.com>
284 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
285 thumb_instruction_restores_sp return true.
287 2014-07-11 Yao Qi <yao@codesourcery.com>
289 * arm-tdep.c (thumb_instruction_restores_sp): New function.
290 (thumb_in_function_epilogue_p): Call
291 thumb_instruction_restores_sp.
293 2014-07-11 Yao Qi <yao@codesourcery.com>
295 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
297 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
299 2014-07-11 Gary Benson <gbenson@redhat.com>
301 * amd64-linux-nat.c (gdbcore.h): Remove include.
302 (regset.h): Likewise.
303 (nat/linux-btrace.h): Likewise.
304 (btrace.h): Likewise.
305 (gdb_assert.h): Likewise.
306 (string.h): Likewise.
307 (sys/uio.h): Likewise.
308 (sys/debugreg.h): Likewise.
309 (sys/syscall.h): Likewise.
310 (sys/procfs.h): Likewise.
311 (sys/user.h): Likewise.
312 (asm/ptrace.h): Likewise.
313 (i386-nat.h): Likewise.
314 * i386-linux-nat.c (i386-nat.h): Likewise.
315 (regset.h): Likewise.
316 (target.h): Likewise.
317 (linux-nat.h): Likewise.
318 (nat/linux-btrace.h): Likewise.
319 (btrace.h): Likewise.
320 (gdb_assert.h): Likewise.
321 (string.h): Likewise.
322 (sys/uio.h): Likewise.
323 (sys/user.h): Likewise.
324 (sys/procfs.h): Likewise.
325 (sys/reg.h): Likewise.
326 (sys/debugreg.h): Likewise.
327 (ORIG_EAX): Remove definition.
329 2014-07-11 Gary Benson <gbenson@redhat.com>
331 * i386-linux-nat.h: New file.
332 * x86-linux-nat.h: Likewise.
333 * x86-linux-nat.c: Likewise.
334 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
335 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
336 * config/i386/linux64.mh (NATDEPFILES): Likewise.
337 * amd64-linux-nat.c (x86-linux-nat.h): New include.
338 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
339 (PTRACE_SETREGSET): Likewise.
340 (arch_lwp_info): Now in x86-linux-nat.c.
341 (have_ptrace_getregset): Now in x86-linux-nat.h.
342 (x86_linux_dr_get): Now in x86-linux-nat.c.
343 (x86_linux_dr_set): Likewise.
344 (x86_linux_dr_get_addr): Likewise.
345 (x86_linux_dr_get_control): Likewise.
346 (x86_linux_dr_get_status): Likewise.
347 (update_debug_registers_callback): Likewise.
348 (x86_linux_dr_set_control): Likewise.
349 (x86_linux_dr_set_addr): Likewise.
350 (x86_linux_prepare_to_resume): Likewise.
351 (x86_linux_new_thread): Likewise.
352 (x86_linux_new_fork): Likewise.
353 (x86_linux_get_thread_area): Likewise.
354 (super_post_startup_inferior): Likewise.
355 (x86_linux_child_post_startup_inferior): Likewise.
356 (AMD64_LINUX_USER64_CS): Likewise.
357 (AMD64_LINUX_X32_DS): Likewise.
358 (x86_linux_read_description): Likewise.
359 (x86_linux_enable_btrace): Likewise.
360 (x86_linux_disable_btrace): Likewise.
361 (x86_linux_teardown_btrace): Likewise.
362 (x86_linux_read_btrace): Likewise.
363 (x86_linux_create_target): Likewise.
364 (x86_linux_add_target): Likewise.
365 * i386-linux-nat.c (x86-linux-nat.h): New include.
366 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
367 (PTRACE_SETREGSET): Likewise.
368 (arch_lwp_info): Now in x86-linux-nat.c.
369 (have_ptrace_getregset): Now in x86-linux-nat.h.
370 (x86_linux_dr_get): Now in x86-linux-nat.c.
371 (x86_linux_dr_set): Likewise.
372 (x86_linux_dr_get_addr): Likewise.
373 (x86_linux_dr_get_control): Likewise.
374 (x86_linux_dr_get_status): Likewise.
375 (update_debug_registers_callback): Likewise.
376 (x86_linux_dr_set_control): Likewise.
377 (x86_linux_dr_set_addr): Likewise.
378 (x86_linux_prepare_to_resume): Likewise.
379 (x86_linux_new_thread): Likewise.
380 (x86_linux_new_fork): Likewise.
381 (x86_linux_get_thread_area): Likewise.
382 (super_post_startup_inferior): Likewise.
383 (x86_linux_child_post_startup_inferior): Likewise.
384 (AMD64_LINUX_USER64_CS): Likewise.
385 (AMD64_LINUX_X32_DS): Likewise.
386 (x86_linux_read_description): Likewise.
387 (x86_linux_enable_btrace): Likewise.
388 (x86_linux_disable_btrace): Likewise.
389 (x86_linux_teardown_btrace): Likewise.
390 (x86_linux_read_btrace): Likewise.
391 (x86_linux_create_target): Likewise.
392 (x86_linux_add_target): Likewise.
394 2014-07-11 Gary Benson <gbenson@redhat.com>
396 * amd64-linux-nat.c: Comment and whitespace changes.
397 * i386-linux-nat.c: Comment and whitespace changes.
399 2014-07-11 Gary Benson <gbenson@redhat.com>
401 * amd64-linux-nat.c (x86_linux_create_target): New function.
402 (x86_linux_add_target): Likewise.
403 (_initialize_amd64_linux_nat): Delegate to the above new functions.
404 * i386-linux-nat.c (x86_linux_create_target): New function.
405 (x86_linux_add_target): Likewise.
406 (_initialize_i386_linux_nat): Delegate to the above new functions.
408 2014-07-11 Gary Benson <gbenson@redhat.com>
410 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
411 (ps_get_thread_area): Delegate to the above in 32-bit mode.
412 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
413 (ps_get_thread_area): Delegate to the above.
415 2014-07-11 Gary Benson <gbenson@redhat.com>
417 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
418 x86_linux_read_description. All uses updated. amd64-specific
419 code conditionalized. Conditionalized i386-specific code added.
420 Redundant cast removed.
421 * i386-linux-nat.c (i386_linux_read_description): Renamed to
422 x86_linux_read_description. All uses updated. i386-specific
423 code conditionalized. Conditionalized amd64-specific code added.
424 One sizeof replaced with the actual type it is describing.
426 2014-07-11 Gary Benson <gbenson@redhat.com>
428 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
429 x86_linux_dr_get. All uses updated.
430 (amd64_linux_dr_set): Renamed to
431 x86_linux_dr_set. All uses updated.
432 (amd64_linux_dr_get_addr): Renamed to
433 x86_linux_dr_get_addr. All uses updated.
434 (amd64_linux_dr_get_control): Renamed to
435 x86_linux_dr_get_control. All uses updated.
436 (amd64_linux_dr_get_status): Renamed to
437 x86_linux_dr_get_status. All uses updated.
438 (amd64_linux_dr_set_control): Renamed to
439 x86_linux_dr_set_control. All uses updated.
440 (amd64_linux_dr_set_addr): Renamed to
441 x86_linux_dr_set_addr. All uses updated.
442 (amd64_linux_prepare_to_resume): Renamed to
443 x86_linux_prepare_to_resume. All uses updated.
444 (amd64_linux_new_thread): Renamed to
445 x86_linux_new_thread. All uses updated.
446 (amd64_linux_new_fork): Renamed to
447 x86_linux_new_fork. All uses updated.
448 (amd64_linux_child_post_startup_inferior): Renamed to
449 x86_linux_child_post_startup_inferior. All uses updated.
450 (amd64_linux_enable_btrace): Renamed to
451 x86_linux_enable_btrace. All uses updated.
452 (amd64_linux_disable_btrace): Renamed to
453 x86_linux_disable_btrace. All uses updated.
454 (amd64_linux_teardown_btrace): Renamed to
455 x86_linux_teardown_btrace. All uses updated.
456 (amd64_linux_read_btrace): Renamed to
457 x86_linux_read_btrace. All uses updated.
458 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
459 x86_linux_dr_get. All uses updated.
460 (i386_linux_dr_set): Renamed to
461 x86_linux_dr_set. All uses updated.
462 (i386_linux_dr_get_addr): Renamed to
463 x86_linux_dr_get_addr. All uses updated.
464 (i386_linux_dr_get_control): Renamed to
465 x86_linux_dr_get_control. All uses updated.
466 (i386_linux_dr_get_status): Renamed to
467 x86_linux_dr_get_status. All uses updated.
468 (i386_linux_dr_set_control): Renamed to
469 x86_linux_dr_set_control. All uses updated.
470 (i386_linux_dr_set_addr): Renamed to
471 x86_linux_dr_set_addr. All uses updated.
472 (i386_linux_prepare_to_resume): Renamed to
473 x86_linux_prepare_to_resume. All uses updated.
474 (i386_linux_new_thread): Renamed to
475 x86_linux_new_thread. All uses updated.
476 (i386_linux_new_fork): Renamed to
477 x86_linux_new_fork. All uses updated.
478 (i386_linux_child_post_startup_inferior): Renamed to
479 x86_linux_child_post_startup_inferior. All uses updated.
480 (i386_linux_enable_btrace): Renamed to
481 x86_linux_enable_btrace. All uses updated.
482 (i386_linux_disable_btrace): Renamed to
483 x86_linux_disable_btrace. All uses updated.
484 (i386_linux_teardown_btrace): Renamed to
485 x86_linux_teardown_btrace. All uses updated.
486 (i386_linux_read_btrace): Renamed to
487 x86_linux_read_btrace. All uses updated.
489 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
491 * remote.c (extended_remote_post_attach): New function.
492 (init_extended_remote_ops): Install it as to_post_attach method.
494 2014-07-09 Pedro Alves <palves@redhat.com>
496 * infcmd.c (attach_command_post_wait): Don't call
497 target_terminal_inferior here.
498 (attach_command): Call it here instead.
500 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
502 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
504 * c-varobj.c (c_is_path_expr_parent): New function, moved core
505 from varobj.c, with additional checks.
506 (c_varobj_ops): Fill in is_path_expr_parent field.
507 (cplus_varobj_ops): Fill in is_path_expr_parent field.
508 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
510 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
512 (varobj_default_is_path_expr_parent): New function.
513 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
514 (varobj_default_is_path_expr_parent): Declare new function.
516 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
518 * infcmd.c (finish_backward): Turn internal error into normal error.
520 2014-07-07 Pedro Alves <palves@redhat.com>
523 * remote.c (async_handle_remote_sigint)
524 (async_handle_remote_sigint_twice): Call
525 gdb_call_async_signal_handler instead of
526 mark_async_signal_handler.
528 2014-07-07 Tom Tromey <tromey@redhat.com>
530 * target-delegates.c: Rebuild.
531 * target.c (target_info_record): Remove.
532 * record.c (info_record_command): Unconditionally call
534 * target.h (struct target_ops) <to_info_record>: Use
535 TARGET_DEFAULT_IGNORE.
536 (target_info_record): Remove.
538 2014-07-07 Tom Tromey <tromey@redhat.com>
540 * target.h (struct target_ops) <to_get_thread_local_address>: Use
541 TARGET_DEFAULT_NORETURN.
542 * target.c (generic_tls_error): New function.
543 (target_translate_tls_address): Don't search target stack.
544 * target-delegates.c: Rebuild.
545 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
547 * linux-thread-db.c (thread_db_get_thread_local_address):
548 Unconditionally call beneath target.
550 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
552 * cli/cli-logging.c (pop_output_files): Assign targerr to
555 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
557 * MAINTAINERS (Write After Approval): Update my email address.
559 2014-07-02 Gary Benson <gbenson@redhat.com>
561 * proc-service.c (ps_xfer_memory): Update comment.
562 (ps_pstop): Remove unused function.
563 (ps_pcontinue): Likewise.
564 (ps_lstop): Likewise.
565 (ps_lcontinue): Likewise.
566 (ps_lgetxregsize): Likewise.
567 (ps_lgetxregs): Likewise.
568 (ps_lsetxregs): Likewise.
570 (ps_ptread): Likewise.
571 (ps_ptwrite): Likewise.
573 2014-07-01 Mark Wielaard <mjw@redhat.com>
575 * dwarf2read.c (add_array_cv_type): New function.
576 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
577 (read_tag_volatile_type): Likewise.
579 2014-07-01 Tom Tromey <tromey@redhat.com>
581 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
582 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
583 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
584 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
585 * command.h (cmd_cfunc_ftype): Move earlier.
586 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
587 (add_com, add_info): Use cmd_cfunc_ftype.
589 2014-06-30 Tom Tromey <tromey@redhat.com>
591 * symtab.c (operator_chars): Make parameters and return type
593 (file_matches): Make "files" const.
594 (struct search_symbols_data) <files>: Now const.
595 (search_symbols): Make "regexp" and "files" parameters const.
597 (symtab_symbol_info): Remove cast.
598 (rbreak_command): Update.
599 * symtab.h (search_symbols): Update.
601 2014-06-27 Yao Qi <yao@codesourcery.com>
603 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
604 Change parameter type to 'struct thread_info *'. Caller
606 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
608 * dummy-frame.c (struct dummy_frame_id): New.
609 (dummy_frame_id_eq): New function.
610 (struct dummy_frame) <id>: Change its type to 'struct
612 (dummy_frame_push): Add parameter ptid and save it in
614 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
616 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
618 (lookup_dummy_frame): Change parameter type to 'struct
619 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
620 instead of frame_id_eq.
621 (dummy_frame_pop): Add parameter ptid. Callers updated.
622 Update comments. Compose dummy_frame_id and pass it to
624 (dummy_frame_discard): Add parameter ptid.
625 (dummy_frame_sniffer): Compose dummy_frame_id and call
626 dummy_frame_id_eq instead of frame_id_eq.
627 (fprint_dummy_frames): Print ptid.
628 * dummy-frame.h: Remove comments.
629 (dummy_frame_push): Add ptid in declaration.
630 (dummy_frame_pop, dummy_frame_discard): Likewise.
632 2014-06-26 Tom Tromey <tromey@redhat.com>
634 * cli/cli-cmds.c (error_no_arg): Make "why" const.
635 * command.h (error_no_arg): Update.
637 2014-06-26 Tom Tromey <tromey@redhat.com>
639 * cli/cli-setshow.c (do_set_command): Make "arg" const.
640 (do_show_command): Make "arg" const.
641 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
643 2014-06-26 Tom Tromey <tromey@redhat.com>
645 * record-full.c (record_full_get_bookmark): Make "args" const.
646 (record_full_goto_bookmark): Make "raw_bookmark" const.
647 * record.c (record_goto): New function.
648 (cmd_record_goto): Use it. Now static.
649 * record.h (record_goto): Declare.
650 (cmd_record_goto): Remove declaration.
651 * target-delegates.c: Rebuild.
652 * target.h (struct target_ops) <to_get_bookmark,
653 to_goto_bookmark>: Make parameter const.
655 2014-06-26 Tom Tromey <tromey@redhat.com>
657 * defs.h (generic_load): Update.
658 * m32r-rom.c (m32r_load_gen): Make "filename" const.
659 * monitor.c (monitor_load): Make "args" const.
660 * remote-m32r-sdi.c (m32r_load): Make "args" const.
661 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
663 (mips_load): Make "file" const.
664 * remote-sim.c (gdbsim_load): Make "args" const.
665 * remote.c (remote_load): Make "name" const.
666 * symfile.c (generic_load): Make "args" const.
667 * target-delegates.c: Rebuild.
668 * target.c (target_load): Make "arg" const.
669 (debug_to_load): Make "args" const.
670 * target.h (struct target_ops) <to_load>: Make parameter const.
671 (target_load): Update.
673 2014-06-26 Tom Tromey <tromey@redhat.com>
676 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
677 (dwarf2_physname, read_partial_die)
678 (guess_partial_die_structure_name, fixup_partial_die)
679 (guess_full_die_structure_name, anonymous_struct_prefix)
680 (dwarf2_name): Use per-BFD obstack.
682 2014-06-26 Yao Qi <yao@codesourcery.com>
684 * dummy-frame.c (dummy_frame_sniffer): Move local variables
685 dummyframe and this_id into inner block below.
687 2014-06-26 Yao Qi <yao@codesourcery.com>
689 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
690 with "signal_pass[0]" in the initialization of signal_pass.
692 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
694 * record-btrace.c (record_btrace_generating_corefile)
695 (record_btrace_prepare_to_generate_core)
696 (record_btrace_done_generating_core): New.
697 (record_btrace_xfer_partial, record_btrace_fetch_registers)
698 (record_btrace_store_registers, record_btrace_prepare_to_store):
699 Forward request when generating a core file.
700 (record_btrace_open): Set record_btrace_generating_corefile to zero.
701 (init_record_btrace_ops): Set to_prepare_to_generate_core and
702 to_done_generating_core.
704 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
706 * target.h (target_ops) <to_prepare_to_generate_core>
707 <to_done_generating_core>: New.
708 (target_prepare_to_generate_core, target_done_generating_core): New.
709 * target.c (target_prepare_to_generate_core)
710 (target_done_generating_core): New.
711 * target-delegates.c: Regenerate.
712 * gcore.c: (write_gcore_file): Rename to ...
713 (write_gcore_file_1): ...this.
714 (write_gcore_file): Call target_prepare_to_generate_core
715 and target_done_generating_core.
717 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
719 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
720 * gcore.c (write_gcore_file): Free memory returned from
722 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
723 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
725 2014-06-24 Yao Qi <yao@codesourcery.com>
727 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
728 (arm_linux_init_abi): Set skip_trampoline_code with
729 gdbarch_skip_trampoline_code instead of
730 find_solib_trampoline_target.
732 2014-06-24 Yao Qi <yao@codesourcery.com>
734 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
735 arm_skip_bx_reg returns non-zero.
737 2014-06-24 Yao Qi <yao@codesourcery.com>
739 * arm-tdep.c (arm_skip_bx_reg): New function.
740 (arm_skip_stub): Call arm_skip_bx_reg.
742 2014-06-23 Don Breazeal <donb@codesourcery.com>
744 * MAINTAINERS: Add myself as write-after-approval maintainer.
746 2014-06-23 Pedro Alves <palves@redhat.com>
748 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
749 DR_CONTROL before setting DR0..DR3.
750 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
751 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
752 bits of DR_CONTROL related to the debug register slot being
753 disabled. If all slots are vacant, clear local slowdown as well,
754 and assert DR_CONTROL is 0.
756 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
758 * python/lib/gdb/command/xmethods.py
759 (get_method_matchers_in_loci): Lookup xmethod matchers in the
760 current progspace only if the string "progspace" matches LOCUS_RE.
762 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
764 Fix --with-system-readline with readline-6.3 patch 5.
765 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
766 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
769 2014-06-20 Tom Tromey <tromey@redhat.com>
771 * dwarf2read.c (dw2_get_real_path): Use correct type in
773 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
775 2014-06-20 Gary Benson <gbenson@redhat.com>
777 * common/gdb_thread_db.h: Moved to nat. All includes updated.
778 * common/glibc_thread_db.h: Likewise.
779 * common/i386-cpuid.h: Likewise.
780 * common/i386-gcc-cpuid.h: Likewise.
781 * common/linux-btrace.h: Likewise.
782 * common/linux-osdata.h: Likewise.
783 * common/linux-procfs.h: Likewise.
784 * common/linux-ptrace.h: Likewise.
785 * common/mips-linux-watch.h: Likewise.
786 * common/linux-btrace.c: Moved to nat.
787 * common/linux-osdata.c: Likewise.
788 * common/linux-procfs.c: Likewise.
789 * common/linux-ptrace.c: Likewise.
790 * common/mips-linux-watch.c: Likewise.
791 * nat/gdb_thread_db.h: Moved from common.
792 * nat/glibc_thread_db.h: Likewise.
793 * nat/i386-cpuid.h: Likewise.
794 * nat/i386-gcc-cpuid.h: Likewise.
795 * nat/linux-btrace.c: Likewise.
796 * nat/linux-btrace.h: Likewise.
797 * nat/linux-osdata.c: Likewise.
798 * nat/linux-osdata.h: Likewise.
799 * nat/linux-procfs.c: Likewise.
800 * nat/linux-procfs.h: Likewise.
801 * nat/linux-ptrace.c: Likewise.
802 * nat/linux-ptrace.h: Likewise.
803 * nat/mips-linux-watch.c: Likewise.
804 * nat/mips-linux-watch.h: Likewise.
805 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
806 (object file files): Reordered.
807 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
808 of glibc_thread_db.h.
810 2014-06-20 Gary Benson <gbenson@redhat.com>
812 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
813 (i386_dr_low_type): Moved to nat/i386-dregs.h.
814 (i386_dr_low): Likewise.
815 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
816 (i386_dr_low_set_addr): Likewise.
817 (i386_dr_low_get_addr): Likewise.
818 (i386_dr_low_can_set_control): Likewise.
819 (i386_dr_low_set_control): Likewise.
820 (i386_dr_low_get_control): Likewise.
821 (i386_dr_low_get_status): Likewise.
822 (i386_get_debug_register_length): Likewise.
823 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
824 (i386_dr_low): Likewise.
825 * nat/i386-dregs.c (i386-low.h): Remove include.
826 (i386-nat.h): Likewise.
827 (nat/i386-dregs.h): New include.
828 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
829 (i386_dr_low_set_addr): Likewise.
830 (i386_dr_low_get_addr): Likewise.
831 (i386_dr_low_can_set_control): Likewise.
832 (i386_dr_low_set_control): Likewise.
833 (i386_dr_low_get_control): Likewise.
834 (i386_dr_low_get_status): Likewise.
835 (i386_get_debug_register_length): Likewise.
836 (debug_hw_points): Likewise.
838 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
840 * Makefile.in (SFILES): Add d-exp.y.
841 (YYFILES): Add d-exp.c.
842 (YYOBJ): Add d-exp.o.
843 (local-maintainer-clean): Delete d-exp.c.
845 * d-lang.h (d_parse): New declaration.
846 (d_error): New declaration.
847 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
848 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
849 PREC_ORDER operators.
850 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
852 2014-06-19 Yao Qi <yao@codesourcery.com>
854 * gdbthread.h (any_running): Remove the declaration.
855 * thread.c (any_running): Remove.
857 2014-06-19 Yao Qi <yao@codesourcery.com>
859 * gdbthread.h (struct thread_info) <state>: Change its type to
860 'enum thread_state'. Update comments.
862 2014-06-19 Pedro Alves <palves@redhat.com>
864 * gdbthread.h (ALL_THREADS): Delete.
865 (ALL_NON_EXITED_THREADS): New macro.
866 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
867 instead of ALL_THREADS.
868 * infrun.c (find_thread_needs_step_over)
869 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
870 instead of ALL_THREADS.
871 * record-btrace.c (record_btrace_open)
872 (record_btrace_stop_recording, record_btrace_close)
873 (record_btrace_is_replaying, record_btrace_resume)
874 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
875 * remote.c (append_pending_thread_resumptions): Likewise.
876 * thread.c (thread_apply_all_command): Likewise.
878 2014-06-19 Gary Benson <gbenson@redhat.com>
880 * i386-nat.c (i386_stopped_by_watchpoint):
881 Use i386_dr_stopped_by_watchpoint.
882 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
883 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
885 2014-06-19 Gary Benson <gbenson@redhat.com>
887 * nat/i386-dregs.c: New file.
888 * Makefile.in (i386-dregs.o): New rule.
889 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
890 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
891 * config/i386/darwin.mh (NATDEPFILES): Likewise.
892 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
893 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
894 * config/i386/go32.mh (NATDEPFILES): Likewise.
895 * config/i386/linux.mh (NATDEPFILES): Likewise.
896 * config/i386/linux64.mh (NATDEPFILES): Likewise.
897 * config/i386/mingw.mh (NATDEPFILES): Likewise.
898 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
899 * i386-nat.h (debug_hw_points): New declaration.
900 * i386-nat.c (breakpoint.h): Remove include.
901 (command.h): Likewise.
902 (target.h): Likewise.
903 (gdb_assert.h): Likewise.
904 (debug_hw_points): Made nonstatic.
905 (debug_printf): Now in i386-dregs.c.
906 (TARGET_HAS_DR_LEN_8): Likewise.
907 (DR_CONTROL_SHIFT): Likewise.
908 (DR_CONTROL_SIZE): Likewise.
909 (DR_RW_EXECUTE): Likewise.
910 (DR_RW_WRITE): Likewise.
911 (DR_RW_READ): Likewise.
912 (DR_RW_IORW): Likewise.
913 (DR_LEN_1): Likewise.
914 (DR_LEN_2): Likewise.
915 (DR_LEN_4): Likewise.
916 (DR_LEN_8): Likewise.
917 (DR_LOCAL_ENABLE_SHIFT): Likewise.
918 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
919 (DR_ENABLE_SIZE): Likewise.
920 (DR_LOCAL_SLOWDOWN): Likewise.
921 (DR_GLOBAL_SLOWDOWN): Likewise.
922 (DR_CONTROL_RESERVED): Likewise.
923 (I386_DR_CONTROL_MASK): Likewise.
924 (I386_DR_VACANT): Likewise.
925 (I386_DR_LOCAL_ENABLE): Likewise.
926 (I386_DR_GLOBAL_ENABLE): Likewise.
927 (I386_DR_DISABLE): Likewise.
928 (I386_DR_SET_RW_LEN): Likewise.
929 (I386_DR_GET_RW_LEN): Likewise.
930 (I386_DR_WATCH_HIT): Likewise.
931 (i386_wp_op_t): Likewise.
932 (i386_show_dr): Likewise.
933 (i386_length_and_rw_bits): Likewise.
934 (i386_insert_aligned_watchpoint): Likewise.
935 (i386_remove_aligned_watchpoint): Likewise.
936 (i386_handle_nonaligned_watchpoint): Likewise.
937 (i386_update_inferior_debug_regs): Likewise.
938 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
939 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
940 (i386_region_ok_for_watchpoint):
941 Use i386_dr_region_ok_for_watchpoint.
942 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
944 2014-06-19 Gary Benson <gbenson@redhat.com>
946 * i386-nat.c (i386_insert_hw_breakpoint): Use
947 i386_insert_watchpoint.
948 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
950 2014-06-19 Gary Benson <gbenson@redhat.com>
952 * i386-nat.c (i386_dr_show): Renamed to
953 i386_show_dr and made static. All uses updated.
954 (i386_dr_length_and_rw_bits): Renamed to
955 i386_length_and_rw_bits and made static.
957 (i386_dr_insert_aligned_watchpoint): Renamed to
958 i386_insert_aligned_watchpoint and made static.
960 (i386_dr_remove_aligned_watchpoint): Renamed to
961 i386_remove_aligned_watchpoint and made static.
963 (i386_dr_update_inferior_debug_regs): Renamed to
964 i386_update_inferior_debug_regs and made static.
966 * nat/i386-dregs.h (i386_dr_show): Removed.
967 (i386_dr_length_and_rw_bits): Likewise.
968 (i386_dr_insert_aligned_watchpoint): Likewise.
969 (i386_dr_remove_aligned_watchpoint): Likewise.
970 (i386_dr_update_inferior_debug_regs): Likewise.
972 2014-06-19 Gary Benson <gbenson@redhat.com>
974 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
975 * configure: Regenerate.
976 * config.in: Likewise.
977 * main.c (signal.h): New include.
978 (setup_alternate_signal_stack): New function.
979 (captured_main): Call the above.
980 * cp-support.c (signal.h): New include.
981 (catch_demangler_crashes): New flag.
982 (SIGJMP_BUF): New define.
983 (SIGSETJMP): Likewise.
984 (SIGLONGJMP): Likewise.
985 (gdb_demangle_jmp_buf): New static global.
986 (gdb_demangle_attempt_core_dump): Likewise.
987 (gdb_demangle_signal_handler): New function.
988 (gdb_demangle): If catch_demangler_crashes is set, install the
989 above signal handler before calling bfd_demangle, and restore
990 the original signal handler afterwards. Display the offending
991 symbol and call demangler_warning the first time a segmentation
993 (_initialize_cp_support): New maint set/show command.
995 2014-06-19 Gary Benson <gbenson@redhat.com>
997 * utils.h (resource_limit_kind): New enum.
998 (can_dump_core): New declaration.
999 (warn_cant_dump_core): Likewise.
1000 (dump_core): Likewise.
1001 * utils.c (dump_core): Made nonstatic. Added new
1002 parameter "limit_kind".
1003 (can_dump_core): Made nonstatic. Moved printing code to...
1004 (warn_cant_dump_core): New function.
1005 (can_dump_core_warn): Likewise.
1006 (internal_vproblem): Replace calls to can_dump_core with
1007 calls to can_dump_core_warn. Supply new argument to each.
1009 2014-06-19 Gary Benson <gbenson@redhat.com>
1011 * utils.h (demangler_vwarning): New declaration.
1012 (demangler_warning): Likewise.
1013 * utils.c (struct internal_problem)
1014 <user_settable_should_quit>: New field.
1015 <user_settable_should_dump_core>: Likewise
1016 (internal_error_problem): Add values for above new fields.
1017 (internal_warning_problem): Likewise.
1018 (demangler_warning_problem): New static global.
1019 (demangler_vwarning): New function.
1020 (demangler_warning): Likewise.
1021 (add_internal_problem_command): Selectively add commands.
1022 (_initialize_utils): New internal problem command.
1023 * maint.c (maintenance_demangler_warning): New function.
1024 (_initialize_maint_cmds): New command.
1026 2014-06-18 Tom Tromey <tromey@redhat.com>
1028 * f-valprint.c (info_common_command_for_block): Update.
1029 * symtab.h (struct general_symbol_info) <common_block>: Now
1032 2014-06-18 Tom Tromey <tromey@redhat.com>
1034 * symtab.h (struct symtab) <blockvector>: Now const.
1035 * ada-lang.c (ada_add_global_exceptions): Update.
1036 * buildsym.c (augment_type_symtab): Update.
1037 * dwarf2read.c (dw2_lookup_symbol): Update.
1038 * jit.c (finalize_symtab): Update.
1039 * jv-lang.c (add_class_symtab_symbol): Update.
1040 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1042 * objfiles.c (objfile_relocate1): Update.
1043 * psymtab.c (lookup_symbol_aux_psymtabs)
1044 (maintenance_check_psymtabs): Update.
1045 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1047 * spu-tdep.c (spu_catch_start): Update.
1048 * symmisc.c (dump_symtab_1): Update.
1049 * symtab.c (lookup_global_symbol_from_objfile)
1050 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1051 (basic_lookup_transparent_type_quick)
1052 (basic_lookup_transparent_type, find_pc_sect_symtab)
1053 (find_pc_sect_line, search_symbols): Update.
1054 * block.c (find_block_in_blockvector): Make "bl" const.
1055 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1057 (blockvector_contains_pc): Make "bv" const.
1058 (block_for_pc_sect): Update.
1059 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1060 (blockvector_contains_pc): Update.
1061 * breakpoint.c (resolve_sal_pc): Update.
1062 * inline-frame.c (block_starting_point_at): Update.
1064 2014-06-18 Tom Tromey <tromey@redhat.com>
1066 * completer.c (complete_line): Make "line_buffer" const.
1067 * completer.h (complete_line): Update.
1069 2014-06-18 Tom Tromey <tromey@redhat.com>
1071 * symtab.c (add_macro_name): Remove unneeded cast.
1073 2014-06-18 Tom Tromey <tromey@redhat.com>
1075 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1076 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1078 2014-06-18 Tom Tromey <tromey@redhat.com>
1080 * probe.c (info_probes_for_ops): Make "arg" const.
1081 * probe.h (info_probes_for_ops): Update.
1083 2014-06-18 Tom Tromey <tromey@redhat.com>
1085 * varobj.c (varobj_create): Update.
1086 * valops.c (value_of_this): Update.
1087 * tracepoint.c (add_local_symbols, scope_info): Update.
1088 * symtab.h (struct general_symbol_info) <block>: Now const.
1089 * symtab.c (skip_prologue_sal)
1090 (default_make_symbol_completion_list_break_on)
1091 (skip_prologue_using_sal): Update.
1092 * stack.h (iterate_over_block_locals)
1093 (iterate_over_block_local_vars): Update.
1094 * stack.c (print_frame_args): Update.
1095 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1097 (get_selected_block): Make return type const.
1098 * python/py-frame.c (frapy_block): Update.
1099 * python/py-block.c (gdbpy_block_for_pc): Update.
1100 * p-exp.y (%union) <bval>: Now const.
1101 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1102 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1103 * m2-exp.y (%union) <bval>: Now const.
1104 * linespec.c (get_current_search_block): Make return type const.
1105 (create_sals_line_offset, find_label_symbols): Update.
1106 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1108 (block_starting_point_at): Make "block" const.
1109 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1110 (check_exception_resume): Update.
1111 * guile/scm-frame.c (gdbscm_frame_block): Update.
1112 * guile/scm-block.c (gdbscm_lookup_block): Update.
1113 * frame.h (get_frame_block): Update.
1114 (get_selected_block): Make return type const.
1115 * frame.c (frame_id_inner): Update.
1116 * f-valprint.c (info_common_command_for_block)
1117 (info_common_command): Update.
1118 * dwarf2loc.c (dwarf2_find_location_expression)
1119 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1120 (locexpr_describe_location_piece): Update.
1121 * c-exp.y (%union) <bval>: Now const.
1122 * breakpoint.c (resolve_sal_pc): Update.
1123 * blockframe.c (get_frame_block):Make return type const.
1124 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1125 (block_innermost_frame): Update.
1126 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1127 (block_for_pc, block_for_pc_sect): Update.
1128 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1130 (block_for_pc_sect, block_for_pc): Make return type const.
1131 * ax-gdb.c (gen_expr): Update.
1132 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1133 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1134 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1135 (ada_read_var_value): Update.
1136 * ada-exp.y (struct name_info) <block>: Now const.
1138 (block_lookup): Constify.
1140 2014-06-18 Gary Benson <gbenson@redhat.com>
1142 * nat/i386-dregs.h: New file.
1143 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1144 * i386-nat.h (i386-dregs.h): New include.
1145 (DR_FIRSTADDR): Now in i386-dregs.h.
1146 (DR_LASTADDR): Likewise.
1147 (DR_NADDR): Likewise.
1148 (DR_STATUS): Likewise.
1149 (DR_CONTROL): Likewise.
1150 (i386_debug_reg_state): Likewise.
1151 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1153 2014-06-18 Don Breazeal <donb@codesourcery.com>
1155 * breakpoint.c (set_longjmp_breakpoint): Call
1156 momentary_breakpoint_from_master with additional argument.
1157 (set_longjmp_breakpoint_for_call_dummy): Call
1158 momentary_breakpoint_from_master with additional argument.
1159 (set_std_terminate_breakpoint): Call
1160 momentary_breakpoint_from_master with additional argument.
1161 (momentary_breakpoint_from_master): Add argument to function
1162 definition and use it to initialize structure member flag.
1163 (clone_momentary_breakpoint): Call
1164 momentary_breakpoint_from_master with additional argument.
1165 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1166 member flags set in momentary_breakpoint_from_master.
1168 2014-06-18 Gary Benson <gbenson@redhat.com>
1170 * i386-nat.c (i386_show_dr): Renamed to
1171 i386_dr_show and made nonstatic. All uses updated.
1172 (i386_length_and_rw_bits): Renamed to
1173 i386_dr_length_and_rw_bits and made nonstatic.
1175 (i386_insert_aligned_watchpoint): Renamed to
1176 i386_dr_insert_aligned_watchpoint and made nonstatic.
1178 (i386_remove_aligned_watchpoint): Renamed to
1179 i386_dr_remove_aligned_watchpoint and made nonstatic.
1181 (i386_update_inferior_debug_regs): Renamed to
1182 i386_dr_update_inferior_debug_regs and made nonstatic.
1185 2014-06-18 Gary Benson <gbenson@redhat.com>
1187 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1188 (i386_dr_low_can_set_control): Likewise.
1189 (i386_dr_low_set_addr): Likewise.
1190 (i386_dr_low_set_control): Likewise.
1191 (i386_dr_low_get_addr): Likewise.
1192 (i386_dr_low_get_status): Likewise.
1193 (i386_dr_low_get_control): Likewise.
1194 (i386_insert_aligned_watchpoint): Use new macros.
1195 (i386_update_inferior_debug_regs): Likewise.
1196 (i386_stopped_data_address): Likewise.
1198 2014-06-18 Gary Benson <gbenson@redhat.com>
1200 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1201 New parameter. All uses updated.
1203 2014-06-18 Gary Benson <gbenson@redhat.com>
1205 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1208 2014-06-18 Gary Benson <gbenson@redhat.com>
1210 * i386-nat.c (debug_printf): New macro.
1211 (i386_get_debug_register_length): Likewise.
1212 (TARGET_HAS_DR_LEN_8): Use above macro.
1213 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1214 and printf_unfiltered. Use phex to format values.
1216 2014-06-18 Gary Benson <gbenson@redhat.com>
1218 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1221 2014-06-18 Gary Benson <gbenson@redhat.com>
1223 * i386-nat.c: Comment changes.
1225 2014-06-18 Gary Benson <gbenson@redhat.com>
1227 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1229 2014-06-18 Gary Benson <gbenson@redhat.com>
1231 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1232 (i386_insert_aligned_watchpoint): Likewise.
1233 (i386_remove_aligned_watchpoint): Likewise.
1234 (i386_handle_nonaligned_watchpoint): Likewise.
1236 2014-06-18 Gary Benson <gbenson@redhat.com>
1238 * i386-nat.c: Whitespace changes.
1240 2014-06-17 Samuel Bronson <naesten@gmail.com>
1242 * MAINTAINERS: Update Roland McGrath's email address.
1243 Thanks to Sergio Durigan Junior for pointing out that he left
1244 Red Hat a while ago, and giving me a current address.
1246 2014-06-17 Tom Tromey <tromey@redhat.com>
1248 * utils.h (savestring): Remove declaration.
1250 2014-06-17 Tom Tromey <tromey@redhat.com>
1252 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1254 2014-06-16 Keith Seitz <keiths@redhat.com>
1257 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1258 to update the varobj if inferior_ptid is null_ptid.
1260 2014-06-16 Tom Tromey <tromey@redhat.com>
1262 * target.h (struct target_ops) <to_info_proc>: Make parameter
1264 (target_info_proc): Update.
1265 * target.c (target_info_proc): Make "args" const.
1266 * procfs.c (procfs_info_proc): Update.
1267 * linux-tdep.c (linux_info_proc): Update.
1268 (linux_core_info_proc_mappings): Make "args" const.
1269 (linux_core_info_proc): Update.
1270 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1271 * gdbarch.c: Rebuild.
1272 * gdbarch.h: Rebuild.
1273 * corelow.c (core_info_proc): Update.
1275 2014-06-16 Tom Tromey <tromey@redhat.com>
1277 * target.h (struct target_ops) <to_disconnect>: Make parameter
1279 (target_disconnect): Update.
1280 * target.c (target_disconnect): Make "args" const.
1281 * target-delegates.c: Rebuild.
1282 * remote.c (remote_disconnect): Update.
1283 * record.h (record_disconnect): Update.
1284 * record.c (record_disconnect): Update.
1285 * inf-child.c (inf_child_disconnect): Update.
1287 2014-06-16 Tom Tromey <tromey@redhat.com>
1289 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1290 * target.c (debug_to_rcmd, default_rcmd): Update.
1291 * target-delegates.c: Rebuild.
1292 * remote.c (remote_rcmd): Update.
1293 * monitor.c (monitor_rcmd): Update.
1295 2014-06-16 Pedro Alves <palves@redhat.com>
1297 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1298 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1299 have OBJF_SHARED set.
1300 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1301 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1302 instead of OBJF_USERLOADED.
1303 * objfiles.h (OBJF_SHARED): Update comment.
1304 (userloaded_objfile_contains_address_p): Rename to ...
1305 (shared_objfile_contains_address_p): ... this, and update
1307 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1309 (remove_symbol_file_command): Skip objfiles that don't have
1312 2014-06-16 Tom Tromey <tromey@redhat.com>
1314 * minsyms.h (prim_record_minimal_symbol)
1315 (prim_record_minimal_symbol_and_info): Update comments.
1317 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1319 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1320 or --without-guile, according to how GDB was built.
1322 2014-06-13 Tom Tromey <tromey@redhat.com>
1324 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1326 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1328 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1330 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1331 help_list.Pass all_commands, not -1, to help_list.
1332 * cli/cli-dump.c (dump_command, append_command)
1333 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1334 (binary_dump_command, binary_append_command): Pass all_commands,
1335 not -1, to help_list.
1336 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1338 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1340 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1342 * top.c (set_history): Pass all_commands, not -1, to help_list.
1343 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1344 all_commands, not -1, to help_list.
1345 * symfile.c (overlay_command): Pass all_commands, not -1, to
1347 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1349 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1351 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1353 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1354 not -1, to help_list.
1355 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1356 not -1, to help_list.
1357 * maint.c (maintenance_command, maintenance_info_command)
1358 (maintenance_print_command, maintenance_set_cmd): Pass
1359 all_commands, not -1, to help_list.
1360 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1362 * language.c (set_check): Pass all_commands, not -1, to help_list.
1363 * infcmd.c (unset_command): Pass all_commands, not -1, to
1365 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1367 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1369 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1371 * breakpoint.c (save_command): Pass all_commands, not -1, to
1373 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1374 all_commands, not -1, to help_list.
1376 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1378 * regcache.c (struct register_to_invalidate): New structure.
1379 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1381 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1383 2014-06-12 Yao Qi <yao@codesourcery.com>
1385 * varobj.c (varobj_get_num_children): Call
1386 varobj_is_dynamic_p.
1387 (varobj_list_children): Likewise.
1388 (varobj_update): Likewise. Update comments.
1390 2014-06-12 Yao Qi <yao@codesourcery.com>
1392 * varobj.c (varobj_pretty_printed_p): Rename to ...
1393 (varobj_is_dynamic_p): ... this. New function.
1394 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1395 (varobj_is_dynamic_p): Declare.
1396 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1397 (mi_print_value_p, varobj_update_one): Likewise.
1399 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1400 Yao Qi <yao@codesourcery.com>
1402 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1403 (varobj_get_iterator): Wrap up code for pretty-printer by
1404 "#if HAVE_PYTHON" and "#endif".
1405 (update_dynamic_varobj_children): Likewise.
1407 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1408 Yao Qi <yao@codesourcery.com>
1410 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1411 gdb_python_initialized is false. Move some code from varobj.c.
1412 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1413 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1414 (struct varobj_item): Moved to varobj-iter.h".
1415 (varobj_clear_saved_item): New function.
1416 (update_dynamic_varobj_children): Move python-related code to
1418 (free_variable): Call varobj_clear_saved_item and
1421 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1422 Yao Qi <yao@codesourcery.com>
1424 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1425 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1426 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1427 (py-varobj.o): New rule.
1428 * python/py-varobj.c: New file.
1429 * python/python-internal.h (py_varobj_get_iterator): Declare.
1430 * varobj-iter.h: New file.
1431 * varobj.c: Include "varobj-iter.h"
1432 (struct varobj) <child_iter>: Change its type from "PyObject *"
1433 to "struct varobj_iter *".
1434 <saved_item>: Likewise.
1435 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1436 [HAVE_PYTHON] (varobj_get_iterator): New function.
1437 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1438 python-specific code to python/py-varobj.c.
1439 (install_visualizer): Call varobj_iter_delete instead of
1441 * varobj.h (varobj_ensure_python_env): Declare.
1443 2014-06-12 Yao Qi <yao@codesourcery.com>
1445 * varobj.c (struct varobj_item): New structure.
1446 (create_child_with_value): Update declaration.
1447 (varobj_add_child): Replace arguments 'name' and 'value' with
1448 'item'. All callers updated.
1449 (install_dynamic_child): Likewise.
1450 (update_dynamic_varobj_children): Likewise.
1451 (varobj_add_child): Likewise.
1452 (create_child_with_value): Likewise.
1454 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1456 * NEWS: Create a new section for the next release branch.
1457 Rename the section of the current branch, now that it has
1460 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1462 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1463 * version.in: Bump version to 7.8.50.DATE-cvs.
1465 2014-06-11 Pedro Alves <palves@redhat.com>
1468 * ser-mingw.c (net_windows_socket_check_pending): New function.
1469 (net_windows_select_thread): Ignore spurious wakeups. Use
1470 net_windows_socket_check_pending.
1471 (net_windows_wait_handle): Check for pending events with
1472 ioctlsocket, through net_windows_socket_check_pending, instead of
1473 checking the socket's event.
1475 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1477 * python/python-internal.h (gdb_PyObject_GetAttrString)
1478 (gdb_PyObject_HasAttrString): New inline function definitions.
1479 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1480 char * of the second argument to PyObject_GetAttrString.
1482 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1484 * serial.c (serial_write): Fix index of character to be printed
1485 in call to serial_logchar when serial debug traces are enabled.
1487 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1489 * gdbtypes (resolve_dynamic_range): Add function description.
1491 2014-06-09 Pedro Alves <palves@redhat.com>
1493 * linux-nat.c (linux_child_follow_fork): Initialize status with
1494 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1495 inner block. Only pass the signal to PTRACE_DETACH if in pass
1498 2014-06-09 Gary Benson <gbenson@redhat.com>
1500 * common/signals.c (gdb_signal_from_host): Reorder to separate
1501 the always-available ANSI-standard signals from the signals that
1503 (do_gdb_signal_to_host): Likewise.
1504 * proc-events.c (signal_table): Likewise.
1506 2014-06-08 Hui Zhu <hui@codesourcery.com>
1508 * common/linux-ptrace.c (linux_disable_event_reporting): New
1510 * common/linux-ptrace.h (linux_disable_event_reporting): New
1512 * linux-nat.c (linux_child_follow_fork): Do a single step before
1515 2014-06-07 Keith Seitz <keiths@redhat.com>
1519 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1520 from symbol_matches_domain in symtab.c. All local callers
1521 of symbol_matches_domain updated.
1522 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1523 search STRUCT_DOMAIN.
1524 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1525 independently. standard_lookup will do that automatically.
1526 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1527 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1528 (cp_lookup_symbol_in_namespace): Likewise.
1529 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1530 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1531 may return a STRUCT_DOMAIN match.
1532 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1533 * cp-support.c: Include language.h.
1534 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1536 * psymtab.c (match_partial_symbol): Compare the requested
1537 domain with the symbol's domain directly.
1538 (lookup_partial_symbol): Likewise.
1539 * symtab.c (lookup_symbol_in_language): Explain when/why
1540 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1541 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1542 appropriate languages.
1543 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1544 and moved to ada-lang.c
1545 (lookup_block_symbol): Explain that this function only returns
1546 symbol matching the requested DOMAIN.
1547 Compare the requested domain with the symbol's domain directly.
1548 (iterate_over_symbols): Compare the requested domain with the
1549 symbol's domain directly.
1550 * symtab.h (symbol_matches_domain): Remove.
1552 2014-06-06 Doug Evans <xdje42@gmail.com>
1554 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1555 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1556 (gdbscm_guile_version_is_at_least): Declare.
1557 (gdbscm_scm_string_to_int): Declare.
1558 * guile/guile.c (gdbscm_guile_major_version): New global.
1559 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1560 (guile_datadir): New static global.
1561 (gdbscm_guile_data_directory): New function.
1562 (initialize_scheme_side): Update.
1563 (misc_guile_functions): Add guile-data-directory.
1564 (initialize_gdb_module): Fetch guile version number.
1565 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1566 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1567 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1568 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1570 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1571 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1572 * guile/scm-value.c (gdbscm_value_to_string): Only call
1573 scm_port_conversion_strategy if Guile version >= 2.0.6.
1575 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1577 * main.c (print_gdb_help): Add -q and --silent.
1579 2014-06-06 Gary Benson <gbenson@redhat.com>
1581 * common/signals.c: Remove preprocessor conditionals for
1582 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1583 SIGSEGV and SIGTERM.
1584 * proc-events.c: Likewise.
1586 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1588 * symfile.c (symfile_free_objfile): Remove restriction to
1590 * symfile-mem.c (symbol_file_add_from_memory): Call
1591 add_target_sections_of_objfile.
1593 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1595 * guile/scm-value.c (gdbscm_history_append_x): Use
1596 'vlscm_get_value_smob_arg_unsafe' instead of
1597 'vlscm_scm_to_value'.
1599 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1602 * utils.c (printchar): Don't escape at all if quoter is NUL.
1603 Update function documentation to clarify effect of parameter
1605 * remote.c (escape_buffer): Pass '\\' as the quoter to
1606 fputstrn_unfiltered.
1607 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1608 generate the output.
1609 (mi_solib_unloaded): Same.
1611 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1613 * development.sh: Delete.
1614 * Makefile.in (config.status): Adjust dependency on development.sh.
1615 * configure.ac: Adjust development.sh source call.
1616 * configure: Regenerate.
1618 2014-06-04 Doug Evans <xdje42@gmail.com>
1620 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1621 is_scheme_bkpt, spec.
1622 (bpscm_make_breakpoint_smob): Initialize new members.
1623 (gdbscm_create_breakpoint_x): Split into two ...
1624 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1625 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1626 (scheme_function breakpoint_functions): Update.
1627 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1628 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1629 register-breakpoint!.
1631 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1634 * mem-break.c (z_type_supported): Return zero if
1635 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1637 2014-06-04 Tom Tromey <tromey@redhat.com>
1639 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1640 value_from_contents_and_address_unresolved.
1641 (ada_template_to_fixed_record_type_1): Likewise.
1642 (ada_which_variant_applies): Likewise.
1643 * value.h (value_from_contents_and_address_unresolved): Declare.
1644 * value.c (value_from_contents_and_address_unresolved): New
1646 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1647 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1648 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1650 2014-06-04 Tom Tromey <tromey@redhat.com>
1652 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1654 2014-06-04 Tom Tromey <tromey@redhat.com>
1656 * procfs.c (procfs_attach): Make "args" const.
1657 * windows-nat.c (windows_attach): Make "args" const.
1658 * nto-procfs.c (procfs_attach): Make "args" const.
1659 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1660 * go32-nat.c (go32_attach): Make "args" const.
1661 * gnu-nat.c (gnu_attach): Make "args" const.
1662 * darwin-nat.c (darwin_attach): Make "args" const.
1663 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1664 * linux-nat.c (linux_nat_attach): Make "args" const.
1665 * remote.c (extended_remote_attach_1, extended_remote_attach):
1667 * target.h (struct target_ops) <to_attach>: Make "args" const.
1668 (find_default_attach): Likewise.
1669 * utils.c (parse_pid_to_attach): Make "args" const.
1670 * utils.h (parse_pid_to_attach): Update.
1672 2014-06-04 Tom Tromey <tromey@redhat.com>
1674 * target-delegates.c: Rebuild.
1675 * target.c (default_thread_address_space): New function.
1676 (target_thread_address_space): Simplify.
1677 * target.h (struct target_ops) <to_thread_address_space>: Add
1678 TARGET_DEFAULT_FUNC.
1680 2014-06-04 Doug Evans <xdje42@gmail.com>
1682 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1684 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1686 * record-btrace.c: Include event-loop.h and inf-loop.h.
1687 (record_btrace_resume_exec_dir)
1688 (record_btrace_async_inferior_event_handler)
1689 (record_btrace_handle_async_inferior_event): New.
1690 (record_btrace_open): Create async event handler.
1691 (record_btrace_close): Delete async event handler.
1692 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1693 Mark async event handler.
1694 (record_btrace_execution_direction): New.
1695 (init_record_btrace_ops): Initialize to_execution_direction.
1697 2014-06-03 Doug Evans <xdje42@gmail.com>
1699 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1700 (gdbscm_make_parameter): Ditto.
1702 2014-06-03 Doug Evans <dje@google.com>
1704 * exec.c (exec_close_1): Call clear_section_table instead of
1705 resize_section_table.
1706 (clear_section_table): New function.
1707 (resize_section_table): Make static. Rename arg num_added to
1709 * exec.h (clear_section_table): Declare.
1710 (resize_section_table): Delete.
1711 * progspace.c (release_program_space): Call clear_section_table
1712 instead of resize_section_table.
1714 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1716 * NEWS (Python Scripting): Add entry about the new xmethods
1719 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1721 * python/py-xmethods.c: New file.
1722 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1723 (objfpy_dealloc): XDECREF on the new xmethods field.
1724 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1726 (objfpy_get_xmethods): New function.
1727 (objfile_getset): New entry 'xmethods'.
1728 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1729 (pspy_dealloc): XDECREF on the new xmethods field.
1730 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1732 (pspy_get_xmethods): New function.
1733 (pspace_getset): New entry 'xmethods'.
1734 * python/python-internal.h: Add declarations for new functions.
1735 * python/python.c (_initialize_python): Invoke
1736 gdbpy_initialize_xmethods.
1737 * python/lib/gdb/__init__.py (xmethods): New
1739 * python/lib/gdb/xmethod.py: New file.
1740 * python/lib/gdb/command/xmethods.py: New file.
1742 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1744 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1745 best match method returned by find_overload_match is an xmethod.
1746 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1747 the best matching operator returned by find_overload_match is an
1749 * valops.c: #include "extension.h".
1750 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1751 Return void. The list of matching source methods is returned in
1752 "fn_list" and a vector of matching debug method workers is
1753 returned in "xm_worker_vec". Update all callers.
1754 (value_find_oload_method_list): Likewise.
1755 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1756 non-NULL, then the index of the best matching method in this
1757 vector is returned. Update all callers.
1758 (find_overload_match): Include xmethods while performing overload
1761 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1763 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1764 * extension-priv.h (struct extension_language_ops): Add the
1766 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1767 get_matching_xmethod_workers, get_xmethod_argtypes,
1768 invoke_xmethod, free_xmethod_worker,
1769 free_xmethod_worker_vec): New functions.
1770 * extension.h: #include "common/vec.h".
1771 New function declarations.
1772 (struct xmethod_worker): New struct.
1773 (VEC (xmethod_worker_ptr)): New vector type.
1774 (xmethod_worker_ptr): New typedef.
1775 (xmethod_worker_vec): Likewise.
1776 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1778 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1779 (struct builtin_type): New field "xmethod".
1780 * valarith.c (value_ptradd): Assert that the value argument is not
1782 * valops.c (value_must_coerce_to_target): Return 0 for
1783 lval_xcallable values.
1784 * value.c (struct value): New field XM_WORKER in the field
1786 (value_address, value_raw_address): Return 0 for lval_xcallable
1788 (set_value_address): Assert that the value is not an
1790 (value_free): Free the associated xmethod worker when freeing
1791 lval_xcallable values.
1792 (set_value_component_location): Assert that the WHOLE value is not
1794 (value_of_xmethod, call_xmethod): New functions.
1795 * value.h: Declare "struct xmethod_worker".
1796 Declare new functions value_of_xmethod, call_xmethod.
1798 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1799 Pedro Alves <palves@redhat.com>
1801 PR breakpoints/17000
1802 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1803 New function, extracted from software_breakpoint_inserted_here_p.
1804 (software_breakpoint_inserted_here_p): Replace factored out code
1805 by call to find_non_raw_software_breakpoint_inserted_here.
1806 (bp_target_info_copy_insertion_state): New function.
1807 (bkpt_insert_location): Handle the case of a single-step
1808 breakpoint already inserted at the same address.
1809 (bkpt_remove_location): Handle the case of a single-step
1810 breakpoint still inserted at the same address.
1811 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1812 breakpoint already inserted at the same address.
1813 (deprecated_remove_raw_breakpoint): Handle the case of a
1814 non-raw breakpoint still inserted at the same address.
1815 (find_single_step_breakpoint): New function, extracted from
1816 single_step_breakpoint_inserted_here_p.
1817 (find_single_step_breakpoint): New function,
1818 factored out from single_step_breakpoint_inserted_here_p.
1819 (single_step_breakpoint_inserted_here_p): Reimplement.
1821 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1823 Pushed by Joel Brobecker <brobecker@adacore.com>
1824 * source.c (show_substitute_path_command): Fix display of matching
1827 2014-06-03 Gary Benson <gbenson@redhat.com>
1829 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1831 2014-06-02 Doug Evans <xdje42@gmail.com>
1833 Add parameter support for Guile.
1834 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1835 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1836 (scm-param.o): New rule.
1837 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1838 (gdbscm_misc_error): Declare.
1839 (gdbscm_canonicalize_command_name): Declare.
1840 (gdbscm_scm_to_host_string): Declare.
1841 (gdbscm_scm_from_host_string): Declare.
1842 (gdbscm_initialize_parameters): Declare.
1843 * guile/guile.c (initialize_gdb_module): Call
1844 gdbscm_initialize_parameters.
1845 * guile/lib/gdb.scm: Export parameter symbols.
1846 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1847 cmdscm_canonicalize_name and made public. All callers updated.
1848 * guile/scm-exception.c (gdbscm_misc_error): New function.
1849 * guile/scm-param.c: New file.
1850 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1851 (gdbscm_scm_to_host_string): New function.
1852 (gdbscm_scm_from_host_string): New function.
1853 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1855 2014-06-02 Doug Evans <xdje42@gmail.com>
1857 Add command support for Guile.
1858 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1859 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1860 (scm-cmd.o): New rule.
1861 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1862 (gdbscm_user_error_p): Declare.
1863 (gdbscm_parse_command_name): Declare.
1864 (gdbscm_valid_command_class_p): Declare.
1865 (gdbscm_initialize_commands): Declare.
1866 * guile/guile.c (initialize_gdb_module): Call
1867 gdbscm_initialize_commands.
1868 * guile/lib/gdb.scm: Export command symbols.
1869 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1870 (throw-user-error): New function.
1871 * guile/scm-cmd.c: New file.
1872 * guile/scm-exception.c (user_error_symbol): New static global.
1873 (gdbscm_user_error_p): New function.
1874 (gdbscm_initialize_exceptions): Set user_error_symbol.
1875 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1877 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1879 * top.c (command_loop): Handle comments here...
1880 (command_line_input): ... not here.
1882 2014-06-02 Doug Evans <xdje42@gmail.com>
1884 Add progspace support for Guile.
1885 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1886 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1887 (scm-progspace.o): New rule.
1888 * guile/guile-internal.h (pspace_smob): New typedef.
1889 (psscm_pspace_smob_pretty_printers): Declare.
1890 (psscm_pspace_smob_from_pspace): Declare.
1891 (psscm_scm_from_pspace): Declare.
1892 * guile/guile.c (initialize_gdb_module): Call
1893 gdbscm_initialize_pspaces.
1894 * guile/lib/gdb.scm: Export progspace symbols.
1895 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1897 (append-pretty-printer!): Ditto.
1898 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1900 * guile/scm-progspace.c: New file.
1902 2014-06-03 Alan Modra <amodra@gmail.com>
1904 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1905 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1907 2014-06-02 Doug Evans <dje@google.com>
1909 Add support for skeletonless type units.
1910 * dwarf2read.c (struct dwarf2_per_objfile): New member
1911 n_allocated_type_units.
1912 (struct dwarf2_per_objfile) <tu_stats>: New member
1913 nr_all_type_units_reallocs.
1914 (create_signatured_type_table_from_index): Initialize
1915 n_allocated_type_units
1916 (create_all_type_units): Ditto.
1917 (add_type_unit): Move up in file. New arg slot.
1918 All callers updated. Increase space for all_type_units more
1920 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1921 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1922 (lookup_dwp_signatured_type): Ditto.
1923 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1924 All callers updated.
1925 (build_type_psymtabs_1): Leave type_unit_groups as
1926 NULL if no TUs present.
1927 (print_tu_stats): New function.
1928 (process_skeletonless_type_unit): New function.
1929 (process_dwo_file_for_skeletonless_type_units): New
1931 (process_skeletonless_type_units): New function.
1932 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1933 Call print tu_stats if debugging enabled.
1935 2014-06-02 Pedro Alves <palves@redhat.com>
1937 * breakpoint.c (build_target_command_list): Don't build a command
1938 list if we have any duplicate location that isn't a dprintf.
1940 2014-06-02 Pedro Alves <palves@redhat.com>
1942 * breakpoint.c (dprintf_breakpoint_hit): New function.
1943 (initialize_breakpoint_ops): Install it as dprintf's
1944 breakpoint_hit method.
1946 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1948 * source.c (substitute_path_rule_matches): Simplify using
1949 filename_ncmp instead of FILENAME_CMP.
1951 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1953 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1955 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1957 * configure.ac: When Guile is available, check for the
1958 availability of 'scm_new_smob'.
1959 * configure, config.h.in: Regenerate.
1960 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1963 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1965 * frame.c (struct frame_info): Add stop_string field.
1966 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1967 (get_prev_frame_always): Old content moved into
1968 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1969 TRY_CATCH, handle MEMORY_ERROR exceptions.
1970 (frame_stop_reason_string): New function definition.
1971 * frame.h (unwind_stop_reason_to_string): Extend comment to
1972 mention frame_stop_reason_string.
1973 (frame_stop_reason_string): New function declaration.
1974 * stack.c (frame_info): Switch to frame_stop_reason_string.
1975 (backtrace_command_1): Switch to frame_stop_reason_string.
1976 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1977 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1978 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1980 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1982 * frame.c (frame_stop_reason_string): Rename to ...
1983 (unwind_stop_reason_to_string): this.
1984 * frame.h (frame_stop_reason_string): Rename to ...
1985 (unwind_stop_reason_to_string): this.
1986 * stack.c (frame_info): Update call to frame_stop_reason_string.
1987 (backtrace_command_1): Likewise.
1988 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1989 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1991 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1993 * frame.c (remove_prev_frame): New function.
1994 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1997 2014-05-29 Pedro Alves <palves@redhat.com>
1999 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2000 and make it const. When a single-step decays to a continue,
2001 clear 'step', not 'hw_step'. Pass whether the caller wanted
2002 to step to user_visible_resume_ptid, not what we ask the
2005 2014-05-29 Pedro Alves <palves@redhat.com>
2007 * infrun.c (process_event_stop_test, handle_step_into_function)
2008 (handle_step_into_function_backward): Adjust.
2009 Don't set the even thread's stop_step and call stop_waiting before
2010 calling end_stepping_range. Instead do that ...
2011 (end_stepping_range): ... here. Take an ecs pointer parameter.
2013 2014-05-29 Pedro Alves <palves@redhat.com>
2015 * infrun.c (stop_stepping): Rename to ...
2016 (stop_waiting): ... this.
2017 (proceed): Update comment.
2018 (process_event_stop_test, handle_inferior_event)
2019 (handle_signal_stop, handle_step_into_function)
2020 (handle_step_into_function_backward): Update.
2022 2014-05-29 Pedro Alves <palves@redhat.com>
2024 * infcall.c (run_inferior_call): Don't check whether the current
2025 thread is running after the proceed call.
2027 2014-05-29 Pedro Alves <palves@redhat.com>
2028 Tom Tromey <tromey@redhat.com>
2030 * NEWS: Mention "maint set target-async", "set mi-async", and that
2031 background execution commands are now always available.
2032 * target.h (target_async_permitted): Update comment.
2033 * target.c (target_async_permitted, target_async_permitted_1):
2035 (set_target_async_command): Rename to ...
2036 (maint_set_target_async_command): ... this.
2037 (show_target_async_command): Rename to ...
2038 (maint_show_target_async_command): ... this.
2039 (_initialize_target): Adjust.
2040 * infcmd.c (prepare_execution_command): Make extern.
2041 * inferior.h (prepare_execution_command): Declare.
2042 * infrun.c (set_observer_mode): Leave target async alone.
2043 * mi/mi-interp.c (mi_interpreter_init): Install
2044 mi_on_sync_execution_done as sync_execution_done observer.
2045 (mi_on_sync_execution_done): New function.
2046 (mi_execute_command_input_handler): Don't print the prompt if we
2047 just started a synchronous command with an async target.
2048 (mi_on_resume): Check sync_execution before printing prompt.
2049 * mi/mi-main.h (mi_async_p): Declare.
2050 * mi/mi-main.c: Include gdbcmd.h.
2051 (mi_async_p): New function.
2052 (mi_async, mi_async_1): New globals.
2053 (set_mi_async_command, show_mi_async_command, mi_async): New
2055 (exec_continue): Call prepare_execution_command.
2056 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2057 (mi_execute_async_cli_command): Use mi_async_p.
2058 (_initialize_mi_main): Install "set mi-async". Make
2059 "target-async" a deprecated alias.
2061 2014-05-29 Pedro Alves <palves@redhat.com>
2063 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2064 (_initialize_cli_interp): Adjust.
2065 * event-loop.c: Include "observer.h".
2066 (start_event_loop): Notify 'command_error' observers instead of
2067 calling display_gdb_prompt. Remove FIXME comment.
2068 * event-top.c (display_gdb_prompt): Remove call into the
2070 * inf-loop.c: Include "observer.h".
2071 (inferior_event_handler): Notify 'command_error' observers instead
2072 of calling display_gdb_prompt.
2073 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2074 observers instead of calling display_gdb_prompt.
2075 * interps.c (interp_set): Don't call display_gdb_prompt.
2076 (current_interp_display_prompt_p): Delete.
2077 * interps.h (interp_prompt_p): Delete declaration.
2078 (interp_prompt_p_ftype): Delete.
2079 (struct interp_procs) <prompt_proc_p>: Delete field.
2080 (current_interp_display_prompt_p): Delete declaration.
2081 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2082 (_initialize_mi_interp): Adjust.
2083 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2084 'command_error' observers.
2085 (tui_on_sync_execution_done, tui_on_command_error): New
2087 (tui_display_prompt_p): Delete.
2088 (_initialize_tui_interp): Adjust.
2090 2014-05-29 Pedro Alves <palves@redhat.com>
2093 * cli/cli-interp.c: Include infrun.h and observer.h.
2094 (cli_uiout, cli_interp): New globals.
2095 (cli_on_signal_received, cli_on_end_stepping_range)
2096 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2098 (cli_interpreter_init): Install them as 'end_stepping_range',
2099 'signal_received' 'signal_exited', 'exited' and 'no_history'
2101 (_initialize_cli_interp): Remove cli_interp local.
2102 * infrun.c (handle_inferior_event): Call the several stop reason
2103 observers instead of printing the stop reason directly.
2104 (end_stepping_range): New function.
2105 (print_end_stepping_range_reason, print_signal_exited_reason)
2106 (print_exited_reason, print_signal_received_reason)
2107 (print_no_history_reason): Make static, and add an uiout
2108 parameter. Print to that instead of to CURRENT_UIOUT.
2109 * infrun.h (print_end_stepping_range_reason)
2110 (print_signal_exited_reason, print_exited_reason)
2111 (print_signal_received_reason print_no_history_reason): New
2113 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2115 <cli_uiout>: New field.
2116 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2117 uiout for CLI output. Install 'signal_received',
2118 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2120 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2121 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2122 (mi_on_no_history): New functions.
2123 (ui_out_free_cleanup): Delete function.
2124 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2125 instead use the one already stored in the MI interpreter data.
2126 (mi_ui_out): Adjust.
2127 * tui/tui-interp.c: Include infrun.h and observer.h.
2128 (tui_interp): New global.
2129 (tui_on_signal_received, tui_on_end_stepping_range)
2130 (tui_on_signal_exited, tui_on_exited)
2131 (tui_on_no_history): New functions.
2132 (tui_init): Install them as 'end_stepping_range',
2133 'signal_received' 'signal_exited', 'exited' and 'no_history'
2135 (_initialize_tui_interp): Delete tui_interp local.
2137 2014-05-29 Pedro Alves <palves@redhat.com>
2140 * linux-nat.c (linux_nat_resume_callback): Rename the second
2141 parameter to 'except'. Skip LP if it points to EXCEPT.
2142 (linux_nat_resume): Don't mark the event lwp as not stopped
2143 before resuming sibling lwps. Instead ask
2144 linux_nat_resume_callback to skip the event lwp. Mark it as not
2145 stopped after actually resuming it.
2146 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2148 (wait_lwp): Mark the lwp as stopped here.
2149 (stop_wait_callback): Mark the lwp as not stopped right after
2150 resuming it. Don't mark lwps as stopped here.
2151 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2152 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2154 2014-05-29 Pedro Alves <palves@redhat.com>
2157 * infrun.c (resume): Determine how much to resume depending on
2158 whether the caller wanted a step, not whether we can hardware step
2159 the target. Mark all threads that we intend to run as running,
2160 unless we're calling an inferior function.
2161 (normal_stop): If the thread is running an infcall, don't finish
2163 * target.c (target_resume): Don't mark threads as running here.
2165 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2167 * serial.c (_initialize_serial): Remove support for
2168 the "set remotebaud" and "show remotebaud" commands.
2169 * NEWS: Add entry documenting the removal of that command.
2171 2014-05-28 Yao Qi <yao@codesourcery.com>
2173 * charset.c: Fix typo in comments.
2175 2014-05-27 Gary Benson <gbenson@redhat.com>
2177 * utils.c (internal_vproblem): Prompt for a bug report.
2179 2014-05-26 Andy Wingo <wingo@igalia.com>
2181 * guile/scm-arch.c (arscm_mark_arch_smob):
2182 * guile/scm-block.c (bkscm_mark_block_smob)
2183 (bkscm_mark_block_syms_progress_smob):
2184 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2185 * guile/scm-exception.c (exscm_mark_exception_smob):
2186 * guile/scm-frame.c (frscm_mark_frame_smob):
2187 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2188 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2189 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2190 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2191 (ppscm_mark_pretty_printer_worker_smob):
2192 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2193 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2194 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2195 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2197 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2200 2014-05-26 Andy Wingo <wingo@igalia.com>
2201 Doug Evans <xdje42@gmail.com>
2203 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2204 empty_base_class. All uses updated.
2205 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2206 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2208 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2209 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2210 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2211 (gdbscm_gsmob_has_property_p, add_property_name)
2212 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2213 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2214 (gdb-object-has-property?, gdb-object-properties): Remove.
2215 (gdb-object-kind): Renamed from gsmob-kind.
2217 2014-05-26 Andy Wingo <wingo@igalia.com>
2219 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2220 * configure: Regenerate.
2222 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2224 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2226 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2228 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2229 (replay_memory_access_read_only, replay_memory_access_read_write)
2230 (replay_memory_access_types, replay_memory_access)
2231 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2232 (cmd_set_record_btrace, cmd_show_record_btrace)
2233 (cmd_show_replay_memory_access): New.
2234 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2235 (record_btrace_remove_breakpoint): Replace
2236 record_btrace_allow_memory_access with replay_memory_access.
2237 (_initialize_record_btrace): Add commands.
2238 * NEWS: Announce it.
2240 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2242 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2244 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2246 * MAINTAINERS (Write After Approval): Move self back from
2249 2014-05-22 Pedro Alves <palves@redhat.com>
2251 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2252 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2253 (disable_randomization, enum exec_direction_kind)
2254 (execution_direction, stop_registers, start_remote)
2255 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2256 (wait_for_inferior, normal_stop, get_last_target_status)
2257 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2258 (insert_step_resume_breakpoint_at_sal)
2259 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2260 (set_step_info, print_stop_event, signal_stop_state)
2261 (signal_print_state, signal_pass_state, signal_stop_update)
2262 (signal_print_update, signal_pass_update)
2263 (update_signals_program_target, clear_exit_convenience_vars)
2264 (displaced_step_dump_bytes, update_observer_mode)
2265 (signal_catch_update, gdb_signal_from_command): Move
2267 * infrun.h: ... to this new file.
2268 * amd64-tdep.c: Include infrun.h.
2269 * annotate.c: Include infrun.h.
2270 * arch-utils.c: Include infrun.h.
2271 * arm-linux-tdep.c: Include infrun.h.
2272 * arm-tdep.c: Include infrun.h.
2273 * break-catch-sig.c: Include infrun.h.
2274 * breakpoint.c: Include infrun.h.
2275 * common/agent.c: Include infrun.h instead of inferior.h.
2276 * corelow.c: Include infrun.h.
2277 * event-top.c: Include infrun.h.
2278 * go32-nat.c: Include infrun.h.
2279 * i386-tdep.c: Include infrun.h.
2280 * inf-loop.c: Include infrun.h.
2281 * infcall.c: Include infrun.h.
2282 * infcmd.c: Include infrun.h.
2283 * infrun.c: Include infrun.h.
2284 * linux-fork.c: Include infrun.h.
2285 * linux-nat.c: Include infrun.h.
2286 * linux-thread-db.c: Include infrun.h.
2287 * monitor.c: Include infrun.h.
2288 * nto-tdep.c: Include infrun.h.
2289 * procfs.c: Include infrun.h.
2290 * record-btrace.c: Include infrun.h.
2291 * record-full.c: Include infrun.h.
2292 * remote-m32r-sdi.c: Include infrun.h.
2293 * remote-mips.c: Include infrun.h.
2294 * remote-notif.c: Include infrun.h.
2295 * remote-sim.c: Include infrun.h.
2296 * remote.c: Include infrun.h.
2297 * reverse.c: Include infrun.h.
2298 * rs6000-tdep.c: Include infrun.h.
2299 * s390-linux-tdep.c: Include infrun.h.
2300 * solib-irix.c: Include infrun.h.
2301 * solib-osf.c: Include infrun.h.
2302 * solib-svr4.c: Include infrun.h.
2303 * target.c: Include infrun.h.
2304 * top.c: Include infrun.h.
2305 * windows-nat.c: Include infrun.h.
2306 * mi/mi-interp.c: Include infrun.h.
2307 * mi/mi-main.c: Include infrun.h.
2308 * python/py-threadevent.c: Include infrun.h.
2310 2014-05-22 Pedro Alves <palves@redhat.com>
2312 * infrun.c (handle_inferior_event): Store the exit code for
2313 --return-child-result here, instead of ...
2314 (print_exited_reason): ... here.
2316 2014-05-21 Pedro Alves <palves@redhat.com>
2319 * gdbthread.h (struct thread_control_state): New field
2321 * infrun.c (follow_fork): Copy the new thread control field to the
2323 (clear_proceed_status_thread): Clear the new thread control field.
2324 (proceed): Set the new thread control field.
2325 * interps.h (command_interp): Declare.
2326 * interps.c (command_interpreter): New global.
2327 (command_interp): New function.
2328 (interp_exec): Set `command_interpreter' while here.
2329 * cli-out.c (cli_uiout_dtor): New function.
2330 (cli_ui_out_impl): Install it.
2331 * mi/mi-interp.c: Include cli-out.h.
2332 (mi_cmd_interpreter_exec): Add comment.
2333 (restore_current_uiout_cleanup): New function.
2334 (ui_out_free_cleanup): New function.
2335 (mi_on_normal_stop): If finishing an execution command started by
2336 a CLI command, or any kind of breakpoint-like event triggered,
2337 print the stop event to the output (CLI) stream.
2338 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2340 2014-05-21 Pedro Alves <palves@redhat.com>
2342 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2343 current source line having changed.
2344 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2345 * infrun.c (normal_stop): Adjust call to
2346 set_current_sal_from_frame.
2347 * source.c (clear_lines_listed_range): New function.
2348 (set_current_source_symtab_and_line, identify_source_line): Clear
2349 the lines listed range.
2350 (line_info): Handle the first "info line" after the current source
2351 line having changed.
2352 * stack.c (print_stack_frame): Remove center handling.
2353 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2356 2014-05-21 Pedro Alves <palves@redhat.com>
2358 * inf-child.c (inf_child_mourn_inferior): New function.
2359 * inf-child.h (inf_child_mourn_inferior): New declaration.
2360 * darwin-nat.c (darwin_mourn_inferior): Use
2361 inf_child_mourn_inferior.
2362 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2363 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2364 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2365 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2366 * windows-nat.c (windows_mourn_inferior): Likewise.
2368 2014-05-21 Doug Evans <xdje42@gmail.com>
2370 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2372 2014-05-21 Doug Evans <xdje42@gmail.com>
2374 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2375 (gdbscm_out_of_range_error): Ditto.
2376 (gdbscm_memory_error): Ditto.
2377 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2378 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2379 (gdbscm_out_of_range_error): Update.
2380 (gdbscm_memory_error): Update.
2381 (gdbscm_scm_to_target_string_unsafe): Delete.
2383 2014-05-21 Pedro Alves <palves@redhat.com>
2385 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2387 (inf_child_open_target): New function.
2388 (inf_child_open): Use inf_child_open_target to push the target
2389 instead of erroring out.
2390 (inf_child_disconnect, inf_child_close)
2391 (inf_child_maybe_unpush_target): New functions.
2392 (inf_child_target): Install inf_child_disconnect and
2393 inf_child_close. Store a pointer to the returned object.
2394 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2396 * target.c (auto_connect_native_target): New global.
2397 (show_default_run_target): New function.
2398 (find_default_run_target): Return NULL if automatically connecting
2399 to the native target is disabled.
2400 (_initialize_target): Install set/show auto-connect-native-target.
2401 * NEWS: Mention "set auto-connect-native-target", and "target
2403 * linux-nat.c (super_close): New global.
2404 (linux_nat_close): Call super_close.
2405 (linux_nat_add_target): Store a pointer to the base class's
2407 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2408 inf_child_maybe_unpush.
2409 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2411 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2412 the inferior. Use inf_child_maybe_unpush_target.
2413 (inf_ttrace_attach): Don't push the target if it is already
2415 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2416 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2417 after mourning the inferior. Use inf_child_maybe_unpush_target.
2418 (darwin_attach_pid): Don't push the target if it is already
2420 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2421 mourning the inferior. Use inf_child_maybe_unpush_target.
2422 (gnu_detach): Use inf_child_maybe_unpush_target.
2423 * go32-nat.c (go32_create_inferior): Don't push the target if it
2425 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2426 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2427 (procfs_open): Rename to ...
2428 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2429 comments. Can target_preopen before changing node. Call
2430 inf_child_open_target to push the target explicitly.
2431 (procfs_attach): Don't push the target if it is already pushed.
2432 (procfs_detach): Use inf_child_maybe_unpush_target.
2433 (procfs_create_inferior): Don't push the target if it is already
2435 (nto_native_ops): New global.
2436 (procfs_open): Reimplement.
2437 (procfs_native_open): New function.
2438 (init_procfs_targets): Install procfs_native_open as to_open of
2439 "target native". Store a pointer to the "native" target in
2441 * procfs.c (procfs_attach): Don't push the target if it is already
2443 (procfs_detach): Use inf_child_maybe_unpush_target.
2444 (procfs_mourn_inferior): Only unpush the target after mourning the
2445 inferior. Use inf_child_maybe_unpush_target.
2446 (procfs_init_inferior): Don't push the target if it is already
2448 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2449 if it is already pushed.
2451 2014-05-21 Pedro Alves <palves@redhat.com>
2453 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2454 and "procfs" targets are now called "native" instead.
2456 2014-05-21 Pedro Alves <palves@redhat.com>
2458 * go32-nat.c (go32_open): Delete.
2459 (go32_target): Don't override the to_open method.
2461 2014-05-21 Pedro Alves <palves@redhat.com>
2463 * nto-procfs.c (procfs_can_run): New function.
2464 (nto_procfs_ops): New global.
2465 (init_procfs_targets): New, based on procfs_target. Install
2466 "target native" in addition to "target procfs".
2467 (_initialize_procfs): Call init_procfs_targets instead of adding
2470 2014-05-21 Pedro Alves <palves@redhat.com>
2472 * windows-nat.c (windows_target): Don't override to_shortname,
2473 to_longname or to_doc.
2475 2014-05-21 Pedro Alves <palves@redhat.com>
2477 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2480 2014-05-21 Pedro Alves <palves@redhat.com>
2482 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2483 to_shortname, to_longname or to_doc.
2485 2014-05-21 Pedro Alves <palves@redhat.com>
2487 * go32-nat.c (go32_target): Don't override to_shortname,
2488 to_longname or to_doc.
2490 2014-05-21 Pedro Alves <palves@redhat.com>
2492 * inf-child.c (inf_child_open): Remove mention of "child".
2493 (inf_child_target): Rename target to "native" instead of "child".
2495 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2497 * Makefile.in (SFILES): Delete "regset.c".
2498 (COMMON_OBS): Delete "regset.o".
2500 * regset.h (regset_alloc): Delete prototype.
2502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2504 * sparc-linux-tdep.c (sparc32_linux_gregset)
2505 (sparc32_linux_fpregset): New static regset structures.
2506 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2507 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2509 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2510 (sparc64_linux_fpregset): New static regset structures.
2511 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2512 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2513 New static regset structures.
2514 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2515 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2516 New static regset structures.
2517 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2518 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2519 New static regset structures.
2520 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2521 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2522 New static regset structures.
2523 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2525 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2527 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2528 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2529 register maps ("regmaps") from "*regset" to "*regmap". Do this
2530 for all regmap types and variables.
2531 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2532 (sparc32_linux_supply_core_gregset)
2533 (sparc32_linux_collect_core_gregset)
2534 (sparc32_linux_supply_core_fpregset)
2535 (sparc32_linux_collect_core_fpregset): Likewise.
2536 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2537 (sparc_gregmap, sparc_fpregmap): ... these.
2538 (sparc_supply_gregset, sparc_collect_gregset)
2539 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2540 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2541 (_initialize_sparc_nat): Rename regmaps.
2542 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2543 (sparc_gregmap, sparc_fpregmap): ... these.
2544 (sparc_supply_gregset, sparc_collect_gregset)
2545 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2546 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2548 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2549 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2551 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2553 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2554 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2555 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2557 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2558 (sparc32_bsd_fpregset): Rename to...
2559 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2560 (sparc32_bsd_fpregmap): ... these.
2561 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2562 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2563 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2564 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2565 (struct sparc_gregmap, struct sparc_fpregmap)
2566 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2567 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2568 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2569 (sparc32_supply_regset, sparc32_collect_gregset)
2570 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2572 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2573 (sparc64_linux_ptrace_gregmap): ... this.
2574 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2575 (_initialize_sparc64_linux_nat): Rename regmaps.
2576 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2577 (sparc64_linux_core_gregmap): ... this.
2578 (sparc64_linux_supply_core_gregset)
2579 (sparc64_linux_collect_core_gregset)
2580 (sparc64_linux_supply_core_fpregset)
2581 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2582 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2583 (sparc64_sol2_fpregset): Rename to...
2584 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2585 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2586 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2588 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2589 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2590 (sparc64_bsd_fpregset): Rename to...
2591 (struct sparc_gregmap, sparc64_sol2_gregmap)
2592 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2593 (sparc64_bsd_fpregmap): ... these.
2594 (sparc64_supply_gregset, sparc64_collect_gregset)
2595 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2597 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2598 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2599 (sparc64fbsd_gregmap): ... this.
2600 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2601 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2603 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2604 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2605 (sparc64nbsd_collect_fpregset): Likewise.
2606 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2607 (sparc64nbsd_gregmap): ... this.
2608 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2610 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2611 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2612 (sparc64obsd_gregmap): ... this.
2613 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2615 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2616 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2617 (sparc32nbsd_gregmap): ... this.
2618 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2621 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2623 * score-tdep.c (score7_linux_gregset): New static regset
2625 (score7_linux_regset_from_core_section): Remove dynamic regset
2627 (score_gdbarch_init): Drop allocation of tdep structure.
2628 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2632 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2634 (am33_regset_from_core_section): Remove dynamic regset
2637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2639 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2640 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2642 (mips_linux_regset_from_core_section): Remove dynamic regset
2644 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2645 'gregset64', 'fpregset', and 'fpregset64'.
2646 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2647 deleted tdep fields.
2649 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2653 (amd64_regset_from_core_section): Remove dynamic regset
2655 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2657 (amd64obsd_regset_from_core_section): Remove dynamic regset
2659 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2661 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2662 x86-common regset supply function.
2663 * i386-tdep.c (i386_collect_gregset): Make static.
2664 (i386_gregset): New global regset structure.
2665 (i386_fpregset, i386_xstateregset): New static regset structures.
2666 (i386_regset_from_core_section): Remove dynamic regset
2668 (i386_gdbarch_init): Remove initialization of tdep fields
2669 'gregset', 'fpregset', and 'xstateregset'.
2670 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2671 'fpregset', and 'xstateregset'.
2672 (i386_collect_gregset): Remove prototype.
2673 (i386_gregset): New declaration.
2674 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2676 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2679 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2682 (arm_linux_vfpregset): New static regset structures.
2683 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2685 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2686 and 'vfpregset' fields.
2688 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2690 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2691 (aarch64_linux_fpregset): New static regset structures.
2692 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2693 of regset structures.
2694 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2699 * regset.h (struct regset): Remove gdbarch field.
2700 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2701 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2702 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2704 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2705 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2706 (ppc32_linux_vsxregset): Likewise.
2707 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2708 via the regcache instead of the regset.
2709 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2710 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2711 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2712 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2715 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2717 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2718 Constify structures.
2719 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2720 (alphanbsd_aout_gregset): Likewise.
2721 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2722 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2724 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2725 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2727 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2728 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2729 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2730 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2731 * m88k-tdep.c (m88k_gregset): Likewise.
2732 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2733 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2734 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2735 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2736 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2737 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2738 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2739 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2740 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2742 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2743 * sh-tdep.h (sh_corefile_gregset): Likewise.
2744 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2745 * vax-tdep.c (vax_gregset): Likewise.
2747 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2749 Fix TLS access for -static -pthread.
2750 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2751 (try_thread_db_load_1): Initialize it.
2752 (thread_db_get_thread_local_address): Call it if LM is zero.
2753 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2754 * target.h (struct target_ops) (to_get_thread_local_address): Add
2755 load_module_addr comment.
2757 2014-05-21 Pedro Alves <palves@redhat.com>
2759 * dcache.c (dcache_read_memory_partial): If reading the cache line
2760 fails, fallback to reading just the memory the caller wanted.
2762 2014-05-20 Doug Evans <dje@google.com>
2764 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2765 instead of get_current_arch.
2767 2014-05-20 Pedro Alves <palves@redhat.com>
2769 * NEWS: Mention that compare-sections now works with all targets.
2771 * remote.c (PACKET_qCRC): New enum value.
2772 (remote_verify_memory): Don't send qCRC if the target has no
2773 execution. Use packet_support/packet_ok. If the target doesn't
2774 support the qCRC packet, fallback to a deep memory copy.
2775 (compare_sections_command): Say "target image" instead of "remote
2777 (_initialize_remote): Add PACKET_qCRC to the list of config
2778 packets that have no associated command. Extend comment.
2779 * target.c (simple_verify_memory, default_verify_memory): New
2781 * target.h (struct target_ops) <to_verify_memory>: Default to
2782 default_verify_memory.
2783 (simple_verify_memory): New declaration.
2784 * target-delegates.c: Regenerate.
2786 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2788 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2790 2014-05-20 Hui Zhu <hui@codesourcery.com>
2791 Yao Qi <yao@codesourcery.com>
2794 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2795 and change address of sp and pc.
2797 2014-05-19 Tom Tromey <tromey@redhat.com>
2799 * gdbtypes.c (rank_function): Use XNEWVEC.
2800 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2802 2014-05-19 Doug Evans <dje@google.com>
2804 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2805 build_type_unit_groups and moved closer to only caller. Remove
2806 arguments. All references updated. Remove outdated .gdb_index
2808 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2809 build_type_psymtabs_1.
2811 2014-05-19 Doug Evans <dje@google.com>
2813 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2814 n_type_unit_groups, all_type_unit_groups. All uses removed.
2815 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2816 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2817 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2818 (add_type_unit_group_to_table): Delete.
2820 2014-05-19 Doug Evans <dje@google.com>
2822 * eval.c (evaluate_subexp_standard): Add some comments.
2824 2014-05-17 Doug Evans <xdje42@gmail.com>
2826 * progspace.c (remove_program_space): Delete, unused.
2827 * progspace.h (remove_program_space): Ditto.
2829 2014-05-17 Doug Evans <xdje42@gmail.com>
2831 * inferior.c (prune_inferiors): Fix comment.
2832 (remove_inferior_command): Call prune_program_spaces.
2834 2014-05-16 Doug Evans <dje@google.com>
2836 New command line option -D.
2838 * main.c (set_gdb_data_directory): New function.
2839 (captured_main): Recognize -D. Flag error for --data-directory "".
2840 Call set_gdb_data_directory.
2841 (print_gdb_help): Print --data-directory, -D.
2842 * main.h (set_gdb_data_directory): Declare.
2843 * top.c (staged_gdb_datadir): New static global.
2844 (set_gdb_datadir): Call set_gdb_data_directory
2845 (show_gdb_datadir): New function.
2846 (init_main): Update init of data-directory parameter.
2848 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2850 Import the "dirfd" gnulib module.
2851 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2852 * gnulib/aclocal.m4: Update.
2853 * gnulib/config.in: Update.
2854 * gnulib/configure: Update.
2855 * gnulib/import/Makefile.am: Update.
2856 * gnulib/import/Makefile.in: Update.
2857 * gnulib/import/dirfd.c: New.
2858 * gnulib/import/m4/dirfd.m4: New.
2859 * gnulib/import/m4/gnulib-cache.m4: Update.
2860 * gnulib/import/m4/gnulib-comp.m4: Update.
2862 2014-05-16 Pierre Muller <muller@sourceware.org>
2863 Yao Qi <yao@codesourcery.com>
2865 * valprint.c (print_wchar): Move the code on checking whether
2866 W is a printable wide char to the default branch of switch
2867 statement below. Call wchar_printable instead of gdb_iswprint.
2869 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2871 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2872 ldr.w and ldrd instructions.
2874 2014-05-15 Doug Evans <dje@google.com>
2876 * dwarf2read.c (read_structure_type): Delete outdated comments.
2878 2014-05-14 Tom Tromey <tromey@redhat.com>
2880 * macrocmd.c (print_macro_definition): Reindent.
2882 2014-05-13 Doug Evans <xdje42@gmail.com>
2884 * python/py-cmd.c (cmdpy_completer): Add comment.
2885 (completers): Make const.
2887 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2889 * infrun.c (resume): Remove should_resume (unused). Move up
2890 declaration of resume_ptid.
2892 2014-05-13 Tom Tromey <tromey@redhat.com>
2894 * language.h (unop_type_check): Remove.
2895 (binop_type_check): Don't declare.
2897 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2899 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2900 call to regcache_raw_collect.
2902 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2904 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2905 mi_console->quote as the quoting character.
2907 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2909 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2911 2014-04-29 Tom Tromey <tromey@redhat.com>
2913 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2914 "show debug varobj".
2916 2014-05-07 Kyle McMartin <kyle@redhat.com>
2918 Pushed by Joel Brobecker <brobecker@adacore.com>.
2919 * aarch64-tdep.c (aarch64_software_single_step): New function.
2920 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2921 with aarch64_software_single_step.
2923 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2927 2014-05-05 Keith Seitz <keiths@redhat.com>
2929 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2930 variable or history value is successfully parsed.
2932 2014-05-05 Yao Qi <yao@codesourcery.com>
2933 Pedro Alves <palves@redhat.com>
2935 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2936 address of blocks that intersects the requested range. Trim
2937 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2939 * ctf.c (ctf_xfer_partial): Likewise.
2941 2014-05-05 Yao Qi <yao@codesourcery.com>
2943 * printcmd.c (display_command): Remove the check to
2944 target_has_execution.
2946 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2948 * ppcobsd-nat.c: Include "obsd-nat.h".
2949 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2951 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2953 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2955 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2956 and 16-bit signed and unsigned arguments. Update comment.
2957 (stap_parse_probe_arguments): Extend code to handle such
2958 arguments. Use warning instead of complaint to notify about
2959 unrecognized bitness.
2961 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2963 PR breakpoints/16889
2964 * stap-probe.c (stap_parse_probe_arguments): Simplify
2965 check for non-prefixed probes (i.e., probes whose
2966 arguments do not start with "N@"). Always set the
2967 argument type to a sane value.
2969 2014-05-01 David Taylor <dtaylor@emc.com>
2971 * remote.c (compare_sections_command): Add -r option to compare
2972 all loadable read-only sections.
2974 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2976 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2977 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2979 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2980 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2981 Remove unused CORE_ADDR argument. Update all callers.
2983 2014-04-29 Pedro Alves <palves@redhat.com>
2985 * remote.c (struct packet_config) <detect>: Extend comment.
2986 (add_packet_config_cmd): Don't set the config's detect or support
2988 (init_all_packet_configs): Also initialize the config's 'detect'
2990 (reset_all_packet_configs_support): New function.
2991 (remote_open_1): Call reset_all_packet_configs_support instead of
2992 init_all_packet_configs.
2993 (_initialize_remote): Initialize all packet configs. Assert that
2994 all packets have an associated command, except a few known
2997 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2999 * dwarf2read.c (read_subrange_type): Handle dynamic
3000 DW_AT_lower_bound attributes.
3002 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3004 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3005 dynamic bounds before computing its upper bound.
3006 (ada_discrete_type_low_bound): Same as above with the lower bound.
3008 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3010 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3011 range types. Adjust the array handling implementation to
3012 take advantage of this change.
3013 (resolve_dynamic_range): New function, mostly extracted from
3014 resolve_dynamic_bounds.
3015 (resolve_dynamic_array): New function, mostly extracted from
3016 resolve_dynamic_bounds.
3017 (resolve_dynamic_bounds): Delete.
3018 (resolve_dynamic_type): Reimplement. Add handling of
3019 TYPE_CODE_RANGE types.
3021 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3023 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3024 handling of parallel ___XA types.
3026 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3028 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3029 unnecessary second call to static_unwrap_type.
3031 2014-04-27 Hui Zhu <hui@codesourcery.com>
3033 * stack.c (print_frame_info): Call do_gdb_disassembly with
3034 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3036 2014-04-26 Doug Evans <xdje42@gmail.com>
3038 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3040 2014-04-25 Pedro Alves <palves@redhat.com>
3043 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3044 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3045 and newline from built string.
3046 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3047 (linux_ptrace_attach_fail_reason): ... this.
3048 * linux-nat.c (linux_nat_attach): Adjust to use
3049 linux_ptrace_attach_fail_reason.
3051 2014-04-25 Pedro Alves <palves@redhat.com>
3053 * remote.c (struct remote_state): Remove multi_process_aware,
3054 non_stop_aware, cond_tracepoints, cond_breakpoints,
3055 breakpoint_commands, fast_tracepoints, static_tracepoints,
3056 install_in_trace, disconnected_tracing,
3057 enable_disable_tracepoints, string_tracing, and
3058 augmented_libraries_svr4_read fields.
3059 (remote_multi_process_p): Move further below in the file.
3060 (struct packet_config): Add comments.
3061 (update_packet_config): Delete function.
3062 (show_packet_config_cmd): Use packet_config_support.
3063 (add_packet_config_cmd): Use NULL as set callback.
3064 (packet_ok): "set remote foo-packet"-style commands no longer
3065 change config->supported -- adjust.
3066 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3067 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3068 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3069 (PACKET_QNonStop, PACKET_multiprocess_feature)
3070 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3071 (PACKET_DisconnectedTracing_feature)
3072 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3073 (set_remote_protocol_packet_cmd): Delete function.
3074 (packet_config_support, packet_support): New functions.
3075 (set_remote_protocol_Z_packet_cmd): Don't call
3076 update_packet_config.
3077 (remote_query_attached, remote_pass_signals)
3078 (remote_program_signals, remote_threads_info)
3079 (remote_threads_extra_info, remote_start_remote): Use
3081 (remote_start_remote): Use packet_config_support and
3083 (init_all_packet_configs): Set all packets to unknown support,
3084 instead of calling update_packet_config.
3085 (remote_check_symbols): Use packet_support.
3086 (remote_supported_packet): Unconditionally set the packet config's
3088 (remote_multi_process_feature, remote_non_stop_feature)
3089 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3090 (remote_breakpoint_commands_feature)
3091 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3092 (remote_install_in_trace_feature)
3093 (remote_disconnected_tracing_feature)
3094 (remote_enable_disable_tracepoint_feature)
3095 (remote_string_tracing_feature)
3096 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3097 (remote_protocol_features): Adjust to use remote_supported_packet
3098 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3099 "ConditionalTracepoints", "ConditionalBreakpoints",
3100 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3101 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3102 "EnableDisableTracepoints", and "tracenz".
3103 (remote_query_supported): Use packet_support.
3104 (remote_open_1): Adjust.
3105 (extended_remote_attach_1): Use packet_support. Switch on the
3106 result of packet_ok instead of checking whether the packet ended
3108 (remote_vcont_resume): Use packet_support.
3109 (remote_resume, remote_stop_ns, fetch_register_using_p)
3110 (remote_prepare_to_store, store_register_using_P)
3111 (check_binary_download, remote_write_bytes): Use packet_support.
3112 (remote_vkill): Use packet_support. Switch on the result of
3113 packet_ok instead of checking whether the packet ended up
3115 (extended_remote_supports_disable_randomization): Use
3117 (extended_remote_run): Switch on the result of packet_ok instead
3118 of checking whether the packet ended up disabled.
3119 (remote_insert_breakpoint, remote_remove_breakpoint)
3120 (remote_insert_watchpoint, remote_remove_watchpoint)
3121 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3123 (remote_search_memory): Use packet_config_support.
3124 (remote_get_thread_local_address, remote_get_tib_address)
3125 (remote_hostio_send_command, remote_can_execute_reverse): Use
3127 (remote_supports_cond_tracepoints)
3128 (remote_supports_cond_breakpoints)
3129 (remote_supports_fast_tracepoints)
3130 (remote_supports_static_tracepoints)
3131 (remote_supports_install_in_trace)
3132 (remote_supports_enable_disable_tracepoint)
3133 (remote_supports_string_tracing)
3134 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3135 the packet config says the feature is enabled or disabled.
3136 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3137 (remote_get_trace_status): Use packet_support.
3138 (remote_set_disconnected_tracing): Adjust to check whether the
3139 feature is enabled with packet_support.
3140 (remote_set_trace_buffer_size, remote_use_agent)
3141 (remote_can_use_agent, remote_supports_btrace): Use
3143 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3144 Use packet_config_support.
3145 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3146 the packet config says the feature is enabled or disabled.
3147 (set_range_stepping): Use packet_support.
3149 2014-04-25 Tom Tromey <tromey@redhat.com>
3151 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3154 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3156 * NEWS: Mention support for C99 variable length arrays.
3158 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3160 * ada-lang.c (standard_exc): Expand introductory comment.
3162 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3163 Walfred Tedeschi <walfred.tedeschi@intel.com>
3165 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3167 (amd64_linux_read_description): Add code to handle AVX512 xstate
3168 mask and return respective tdesc.
3169 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3170 and features/i386/x32-avx512-linux.c.
3171 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3172 (amd64_linux_core_read_description): Add code to handle AVX512
3173 xstate mask and return respective tdesc.
3174 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3175 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3177 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3178 (tdesc_amd64_avx512_linux): New prototype.
3179 (tdesc_x32_avx512_linux): Likewise.
3180 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3181 features/i386/x32-avx512.c.
3182 (amd64_ymm_avx512_names): New register names for pseudo
3184 (amd64_ymmh_avx512_names): New register names for raw registers
3186 (amd64_k_names): New register names for K registers.
3187 (amd64_zmmh_names): New register names for ZMM raw registers.
3188 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3189 (amd64_xmm_avx512_names): New register names for XMM16-31
3191 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3193 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3194 if feature is present.
3195 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3196 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3197 (AMD64_NUM_REGS): Adjust to new number of registers.
3198 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3199 registers supplied via XSTATE by AVX512 registers.
3200 (i386_linux_read_description): Add case for AVX512.
3201 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3202 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3203 (i386_linux_core_read_description): Add case for AVX512.
3204 (i386_linux_init_abi): Install supported register note section
3206 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3208 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3209 registers to be number of zmm7h + 1.
3210 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3211 * i386-tdep.c: Include features/i386/i386-avx512.c.
3212 (i386_zmm_names): Add ZMM pseudo register names array.
3213 (i386_zmmh_names): Add ZMM raw register names array.
3214 (i386_k_names): Add K raw register names array.
3215 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3216 registers. AVX512 has 16 more ZMM registers than there are YMM
3218 (i386_zmmh_regnum_p): Add function to look up register number of
3220 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3221 (i386_k_regnum_p): Likewise for K raw registers.
3222 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3223 registers added by AVX512.
3224 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3225 registers added by AVX512.
3226 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3228 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3229 (i386_pseudo_register_name): Add ZMM pseudo registers.
3230 (i386_zmm_type): Construct and return vector registers type for ZMM
3232 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3233 ZMM0-31 pseudo registers and K registers.
3234 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3235 and YMM16-31 registers from register cache.
3236 (i386_pseudo_register_write): Add code to write K, ZMM and
3238 (i386_register_reggroup_p): Add code to include/exclude AVX512
3239 registers in/from respective register groups.
3240 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3241 registers if feature is present in xcr0.
3242 (i386_gdbarch_init): Add code to initialize AVX512 feature
3243 variables in tdep structure, wire in pseudo registers and call
3244 initialize_tdesc_i386_avx512.
3245 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3247 (i386_regnum): Add AVX512 registers.
3248 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3249 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3250 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3251 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3253 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3254 (i386_ymm_avx512_regnum_p): Likewise.
3255 (i386_k_regnum_p): Likewise.
3256 (i386_zmm_regnum_p): Likewise.
3257 (i386_zmmh_regnum_p): Likewise.
3258 * i387-tdep.c : Update year in copyright notice.
3259 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3261 (XSAVE_YMM_AVX512_ADDR): New macro.
3262 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3264 (XSAVE_XMM_AVX512_ADDR): New macro.
3265 (xsave_avx512_k_offset): New table for K register offsets in
3267 (XSAVE_AVX512_K_ADDR): New macro.
3268 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3270 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3271 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3273 (i387_collect_xsave): Add code to collect AVX512 registers from
3275 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3276 of XMM16-31 registers.
3277 (I387_NUM_K_REGS): New define for number of K registers.
3278 (I387_K0_REGNUM): New define for K0 register number.
3279 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3280 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3281 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3283 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3284 (I387_XMM16_REGNUM): New define for XMM16 register number.
3285 (I387_YMM0_REGNUM): New define for YMM0 register number.
3286 (I387_KEND_REGNUM): New define for last K register number.
3287 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3288 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3290 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3292 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3294 * features/Makefile: Add AVX512 related files.
3295 * features/i386/32bit-avx512.xml: New file.
3296 * features/i386/64bit-avx512.xml: Likewise.
3297 * features/i386/amd64-avx512-linux.c: Likewise.
3298 * features/i386/amd64-avx512-linux.xml: Likewise.
3299 * features/i386/amd64-avx512.c: Likewise.
3300 * features/i386/amd64-avx512.xml: Likewise.
3301 * features/i386/i386-avx512-linux.c: Likewise.
3302 * features/i386/i386-avx512-linux.xml: Likewise.
3303 * features/i386/i386-avx512.c: Likewise.
3304 * features/i386/i386-avx512.xml: Likewise.
3305 * features/i386/x32-avx512-linux.c: Likewise.
3306 * features/i386/x32-avx512-linux.xml: Likewise.
3307 * features/i386/x32-avx512.c: Likewise.
3308 * features/i386/x32-avx512.xml: Likewise.
3309 * regformats/i386/amd64-avx512-linux.dat: New file.
3310 * regformats/i386/amd64-avx512.dat: Likewise.
3311 * regformats/i386/i386-avx512-linux.dat: Likewise.
3312 * regformats/i386/i386-avx512.dat: Likewise.
3313 * regformats/i386/x32-avx512-linux.dat: Likewise.
3314 * regformats/i386/x32-avx512.dat: Likewise.
3315 * NEWS: Add note about new support for AVX512.
3318 2014-04-23 Pedro Alves <palves@redhat.com>
3320 * breakpoint.c (insert_bp_location): Tolerate errors if the
3321 breakpoint is set in a user-loaded objfile.
3322 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3323 location is marked shlib_disabled. If the breakpoint is set in a
3324 user-loaded objfile is a GDB-side memory breakpoint, validate it
3325 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3326 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3328 * mem-break.c (memory_validate_breakpoint): New function.
3329 * objfiles.c (userloaded_objfile_contains_address_p): New
3331 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3332 * target.h (memory_validate_breakpoint): New declaration.
3334 2014-04-23 Pedro Alves <palves@redhat.com>
3336 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3337 the breakpoint is set in a shared library, only suppress
3338 errors for software breakpoints, not hardware breakpoints.
3340 2014-04-22 Pedro Alves <palves@redhat.com>
3342 * infrun.c (schedlock_applies): New function, factored out from
3343 find_thread_needs_step_over.
3344 (find_thread_needs_step_over): Use it.
3345 (switch_back_to_stepped_thread): Always clear trap_expected if the
3346 step over is finished. Return early if scheduler locking applies.
3347 Look for the stepping thread and a potential step-over thread with
3349 (currently_stepping_or_nexting_callback): Delete.
3351 2014-04-22 Nick Clifton <nickc@redhat.com>
3353 * NEWS: Mention that ARM sim now supports tracing.
3355 2014-04-22 Yao Qi <yao@codesourcery.com>
3357 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3359 * tracefile.c (tracefile_fetch_registers): ... it. New
3361 * tracefile.h (tracefile_fetch_registers): Declare.
3362 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3363 tracefile_fetch_registers.
3365 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3368 * windows-nat.c (thread_rec): Don't display a warning when
3369 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3370 fails for any reason, set th->suspended to -1, so that we don't
3371 try to resume such a thread. Also, don't return NULL in these
3372 cases, to avoid completely ruin the session due to "PC register is
3373 not available" error.
3374 (do_windows_fetch_inferior_registers): Check errors in
3375 GetThreadContext call.
3376 (windows_continue): Accept an additional argument KILLED; if not
3377 zero, ignore errors in the SetThreadContext call, since the
3378 inferior was killed and is shutting down.
3379 (windows_resume, get_windows_debug_event)
3380 (windows_create_inferior, windows_mourn_inferior)
3381 (windows_kill_inferior): All callers of windows_continue changed
3382 to adjust to its new calling sequence.
3384 2014-04-19 Yao Qi <yao@codesourcery.com>
3386 * ctf.c (ctf_open): Call post_create_inferior.
3388 2014-04-19 Yao Qi <yao@codesourcery.com>
3390 * ctf.c (handle_id): New static variable.
3391 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3392 value. Get the declaration of event "register" and get length
3393 of field "contents".
3395 2014-04-19 Yao Qi <yao@codesourcery.com>
3397 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3399 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3401 * valops.c (oload_method_static): Remove unnecessary argument
3402 METHOD. Update all callers.
3404 2014-04-18 Pedro alves <palves@redhat.com>
3405 Tom Tromey <tromey@redhat.com>
3408 * frame.c (get_prev_frame_1): Rename to ...
3409 (get_prev_frame_always): ... this, and make extern. Adjust.
3410 (skip_artificial_frames): Use get_prev_frame_always.
3411 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3412 (get_frame_unwind_stop_reason): Adjust to rename.
3413 * frame.h (get_prev_frame_always): Declare.
3414 * inline-frame.c: Include frame.h.
3415 (inline_frame_this_id): Use get_prev_frame_always.
3417 2014-04-18 Tristan Gingold <gingold@adacore.com>
3419 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3420 code by using bfd_mach_o_get_base_address.
3422 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3424 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3425 (spu_ax_pseudo_register_collect): New function.
3426 (spu_ax_pseudo_register_push_stack): Likewise.
3427 (spu_dwarf_reg_to_regnum): Likewise.
3428 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3430 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3432 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3433 Replace FRAME argument with FRAME_ID.
3434 * gdbarch.c, gdbarch.h: Regenerate.
3435 * findvar.c (default_value_from_register): Add GDBARCH argument;
3436 replace FRAME by FRAME_ID. No longer call get_frame_id.
3437 (value_from_register): Update call to gdbarch_value_from_register.
3438 * value.h (default_value_from_register): Update prototype.
3439 * s390-linux-tdep.c (s390_value_from_register): Update interface
3440 and call to default_value_from_register.
3441 * spu-tdep.c (spu_value_from_register): Likewise.
3443 * findvar.c (address_from_register): Remove TYPE argument.
3444 Do not call value_from_register; use gdbarch_value_from_register
3445 with null_frame_id instead.
3446 * value.h (address_from_register): Update prototype.
3447 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3448 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3449 address_from_register interface change.
3451 2014-04-17 Yao Qi <yao@codesourcery.com>
3453 * gdbtypes.h: Update comments to link to types and macros'
3456 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3458 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3460 2014-04-16 Keith Seitz <keiths@redhat.com>
3463 * dwarf2read.c (skip_one_die): Check that all relative-offset
3464 sibling DIEs fall within range of the current reader's buffer.
3465 (read_partial_die): Likewise.
3467 2014-04-16 Keith Seitz <keiths@redhat.com>
3470 * cp-namespace.c (lookup_symbol_file): If the type name of
3471 `this' is NULL, return immediately.
3473 2014-04-14 Keith Seitz <keiths@redhat.com>
3476 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3477 from symbol_matches_domain in symtab.c. All local callers
3478 of symbol_matches_domain updated.
3479 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3480 search STRUCT_DOMAIN.
3481 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3482 independently. standard_lookup will do that automatically.
3483 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3484 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3485 (cp_lookup_symbol_in_namespace): Likewise.
3486 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3487 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3488 may return a STRUCT_DOMAIN match.
3489 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3490 * cp-support.c: Include language.h.
3491 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3493 * psymtab.c (match_partial_symbol): Compare the requested
3494 domain with the symbol's domain directly.
3495 (lookup_partial_symbol): Likewise.
3496 * symtab.c (lookup_symbol_in_language): Explain when/why
3497 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3498 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3499 appropriate languages.
3500 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3501 and moved to ada-lang.c
3502 (lookup_block_symbol): Explain that this function only returns
3503 symbol matching the requested DOMAIN.
3504 Compare the requested domain with the symbol's domain directly.
3505 (iterate_over_symbols): Compare the requested domain with the
3506 symbol's domain directly.
3507 * symtab.h (symbol_matches_domain): Remove.
3509 2014-04-14 Tom Tromey <tromey@redhat.com>
3512 * c-exp.y (type_aggregate_p): New function.
3513 (qualified_name, classify_inner_name): Use it.
3514 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3515 and TYPE_TARGET_TYPE of an enum type.
3516 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3518 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3519 handle TYPE_DECLARED_CLASS.
3520 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3522 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3523 * valops.c (enum_constant_from_type): New function.
3524 (value_aggregate_elt): Use it.
3525 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3528 2014-04-14 Tom Tromey <tromey@redhat.com>
3530 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3531 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3533 * value.h (value_aggregate_elt): Update.
3535 2014-04-14 Tom Tromey <tromey@redhat.com>
3537 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3539 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3541 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3542 (evaluate_subexp_standard): Pass noside argument.
3543 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3544 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3545 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3546 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3547 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3551 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3552 points to a constant blob.
3554 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3556 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3557 property and store it as the high bound and flag the range accordingly.
3558 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3559 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3560 * gdbtypes.h (enum range_flags): New enum.
3561 (struct range_bounds): Add flags member.
3563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3565 * c-typeprint.c (c_type_print_varspec_suffix): Added
3566 check for not yet resolved high bound. If unresolved, print
3567 "variable length" string to the console instead of random
3570 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3572 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3574 (ada_template_to_fixed_record_type_1): Likewise.
3575 (ada_to_fixed_type_1): Likewise.
3576 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3577 (cp_print_value): Likewise.
3578 * d-valprint.c (dynamic_array_type): Likewise.
3579 * findvar.c (address_of_variable): Likewise.
3580 * jv-valprint.c (java_value_print): Likewise.
3581 * valops.c (value_ind): Likewise.
3582 * value.c (coerce_ref): Likewise.
3584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3586 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3587 value and retrieve the dynamic type size.
3589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3591 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3592 passed to sizeof is dynamic evaluate the argument to compute the length.
3594 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3595 Joel Brobecker <brobecker@adacore.com>
3597 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3598 (dwarf2_evaluate_property): New function.
3599 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3600 * dwarf2read.c (attr_to_dynamic_prop): New function.
3601 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3603 * gdbtypes.c: Include dwarf2loc.h.
3604 (is_dynamic_type): New function.
3605 (resolve_dynamic_type): New function.
3606 (resolve_dynamic_bounds): New function.
3607 (get_type_length): New function.
3608 (check_typedef): Use get_type_length to compute type length.
3609 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3610 (TYPE_LOW_BOUND_KIND): New macro.
3611 (is_dynamic_type): New function prototype.
3612 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3613 to resolve dynamic properties of the type. Update comment.
3614 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3616 2014-04-14 Richard Henderson <rth@redhat.com>
3618 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3620 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3621 Doug Evans <xdje42@gmail.com>
3623 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3624 dereference TYPE_CODE_REF values.
3626 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3628 Revert the following changes due to regressions:
3630 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3631 (dwarf2_evaluate_property): New function.
3632 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3633 * dwarf2read.c (attr_to_dynamic_prop): New function.
3634 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3636 * gdbtypes.c: Include dwarf2loc.h.
3637 (is_dynamic_type): New function.
3638 (resolve_dynamic_type): New function.
3639 (resolve_dynamic_bounds): New function.
3640 (get_type_length): New function.
3641 (check_typedef): Use get_type_length to compute type length.
3642 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3643 (TYPE_LOW_BOUND_KIND): New macro.
3644 (is_dynamic_type): New function prototype.
3645 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3646 to resolve dynamic properties of the type. Update comment.
3647 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3649 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3650 passed to sizeof is dynamic evaluate the argument to compute the length.
3652 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3653 value and retrieve the dynamic type size.
3655 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3656 (ada_template_to_fixed_record_type_1): Likewise.
3657 (ada_to_fixed_type_1): Likewise.
3658 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3659 (cp_print_value): Likewise.
3660 * d-valprint.c (dynamic_array_type): Likewise.
3661 * eval.c (evaluate_subexp_with_coercion): Likewise.
3662 * findvar.c (address_of_variable): Likewise.
3663 * jv-valprint.c (java_value_print): Likewise.
3664 * valops.c (value_ind): Likewise.
3665 * value.c (coerce_ref): Likewise.
3667 * c-typeprint.c (c_type_print_varspec_suffix): Added
3668 check for not yet resolved high bound. If unresolved, print
3669 "variable length" string to the console instead of random
3672 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3673 property and store it as the high bound and flag the range accordingly.
3674 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3675 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3676 * gdbtypes.h (enum range_flags): New enum.
3677 (struct range_bounds): Add flags member.
3679 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3680 points to a constant blob.
3682 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3683 (evaluate_subexp_standard): Pass noside argument.
3684 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3685 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3686 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3687 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3688 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3690 2014-04-11 Keith Seitz <keiths@redhat.com>
3693 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3694 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3697 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3699 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3700 (evaluate_subexp_standard): Pass noside argument.
3701 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3702 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3703 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3704 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3705 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3709 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3710 points to a constant blob.
3712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3714 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3715 property and store it as the high bound and flag the range accordingly.
3716 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3717 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3718 * gdbtypes.h (enum range_flags): New enum.
3719 (struct range_bounds): Add flags member.
3721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3723 * c-typeprint.c (c_type_print_varspec_suffix): Added
3724 check for not yet resolved high bound. If unresolved, print
3725 "variable length" string to the console instead of random
3728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3730 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3731 (ada_template_to_fixed_record_type_1): Likewise.
3732 (ada_to_fixed_type_1): Likewise.
3733 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3734 (cp_print_value): Likewise.
3735 * d-valprint.c (dynamic_array_type): Likewise.
3736 * eval.c (evaluate_subexp_with_coercion): Likewise.
3737 * findvar.c (address_of_variable): Likewise.
3738 * jv-valprint.c (java_value_print): Likewise.
3739 * valops.c (value_ind): Likewise.
3740 * value.c (coerce_ref): Likewise.
3742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3744 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3745 value and retrieve the dynamic type size.
3747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3749 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3750 passed to sizeof is dynamic evaluate the argument to compute the length.
3752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3754 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3755 (dwarf2_evaluate_property): New function.
3756 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3757 * dwarf2read.c (attr_to_dynamic_prop): New function.
3758 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3760 * gdbtypes.c: Include dwarf2loc.h.
3761 (is_dynamic_type): New function.
3762 (resolve_dynamic_type): New function.
3763 (resolve_dynamic_bounds): New function.
3764 (get_type_length): New function.
3765 (check_typedef): Use get_type_length to compute type length.
3766 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3767 (TYPE_LOW_BOUND_KIND): New macro.
3768 (is_dynamic_type): New function prototype.
3769 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3770 to resolve dynamic properties of the type. Update comment.
3771 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3773 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3775 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3776 declaring high/low bounds and change uses accordingly. Call
3777 create_range_type instead of create_static_range_type.
3778 * gdbtypes.c (create_range_type): New function.
3779 (create_range_type): Convert bounds into struct bound_prop and pass
3780 them to create_range_type.
3781 * gdbtypes.h (struct bound_prop): New struct.
3782 (create_range_type): New function prototype.
3783 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3784 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3785 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3787 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3791 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3792 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3793 * ada-lang.c: All uses of create_range_type updated.
3794 * coffread.c: All uses of create_range_type updated.
3795 * dwarf2read.c: All uses of create_range_type updated.
3796 * f-exp.y: All uses of create_range_type updated.
3797 * m2-valprint.c: All uses of create_range_type updated.
3798 * mdebugread.c: All uses of create_range_type updated.
3799 * stabsread.c: All uses of create_range_type updated.
3800 * valops.c: All uses of create_range_type updated.
3801 * valprint.c: All uses of create_range_type updated.
3803 2014-04-10 Pedro Alves <palves@redhat.com>
3805 * breakpoint.c (single_step_breakpoints)
3806 (single_step_gdbarch): Move up in the file.
3807 (one_breakpoint_xfer_memory): New function, factored out from ...
3808 (breakpoint_xfer_memory): ... here. Also process single-step
3811 2014-04-09 Tristan Gingold <gingold@adacore.com>
3813 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3815 (darwin_decode_exception_message): Free port only after use.
3817 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3819 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3820 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3821 when setting the size of call_length.
3823 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3825 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3826 dereference TYPE_CODE_REF values.
3828 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3830 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3831 end of warning message.
3833 2014-04-03 Doug Evans <dje@google.com>
3835 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3836 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3838 2014-04-02 Alan Modra <amodra@gmail.com>
3840 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3841 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3842 (struct symbol_file_add_from_memory_args): Add size field.
3843 (find_vdso_size): New function.
3844 (add_vsyscall_page): Attempt to find vdso size.
3846 2014-04-01 Doug Evans <dje@google.com>
3848 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3850 2014-04-01 Tristan Gingold <gingold@adacore.com>
3852 * darwin-nat.c (darwin_encode_reply): Add prototype.
3853 (darwin_decode_exception_message): Reply to unknown inferiors.
3854 (darwin_decode_message): Handle message by id. Ignore message
3855 to unknown inferior.
3856 (darwin_wait): Discard unknown messages, add debug trace.
3858 2014-03-31 Doug Evans <dje@google.com>
3860 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3863 2014-03-31 Doug Evans <dje@google.com>
3865 New option "set print symbol-loading".
3867 * solib.c (solib_read_symbols): Only print symbol loading messages
3869 (solib_add): If symbol loading is in "brief" mode, notify user
3870 symbols are being loaded.
3871 (reload_shared_libraries_1): Ditto.
3872 * symfile.c (print_symbol_loading_off): New static global.
3873 (print_symbol_loading_brief): New static global.
3874 (print_symbol_loading_full): New static global.
3875 (print_symbol_loading_enums): New static global.
3876 (print_symbol_loading): New static global.
3877 (print_symbol_loading_p): New function.
3878 (symbol_file_add_with_addrs): Only print symbol loading messages
3880 (_initialize_symfile): Register "print symbol-loading" set/show
3882 * symfile.h (print_symbol_loading_p): Declare.
3884 2014-03-30 Doug Evans <xdje42@gmail.com>
3886 * infrun.c (set_last_target_status): New function.
3887 (handle_inferior_event): Call it.
3889 2014-03-30 Doug Evans <xdje42@gmail.com>
3891 * inferior.h (enum stop_kind): Improve comment.
3893 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3895 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3896 a reference, strip the reference layer before calling
3897 the lang_ops value_has_mutated callback.
3899 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3901 Remove some globals from our parser.
3902 * language.c (unk_lang_parser): Add "struct parser_state"
3904 * language.h (struct language_defn) <la_parser>: Likewise.
3905 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3906 (initialize_expout): Add "struct parser_state" argument.
3907 Rewrite function to use the parser state.
3908 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3909 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3910 write_exp_elt_longcst, write_exp_elt_dblcst,
3911 write_exp_elt_decfloatcst, write_exp_elt_type,
3912 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3913 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3914 write_dollar_variable): Likewise.
3915 (parse_exp_in_context_1): Use parser state.
3916 (insert_type_address_space): Add "struct parser_state" argument.
3918 (increase_expout_size): New function.
3919 * parser-defs.h: Forward declare "struct language_defn" and
3920 "struct parser_state".
3921 (expout, expout_size, expout_ptr): Remove extern declarations.
3922 (parse_gdbarch, parse_language): Rewrite macro declarations to
3923 accept the parser state.
3924 (struct parser_state): New struct.
3925 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3926 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3927 write_exp_elt_decfloatcst, write_exp_elt_type,
3928 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3929 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3930 write_exp_msymbol, write_dollar_variable,
3931 mark_struct_expression, insert_type_address_space): Add "struct
3932 parser_state" argument.
3933 (increase_expout_size): New function.
3934 * utils.c (do_clear_parser_state): New function.
3935 (make_cleanup_clear_parser_state): Likewise.
3936 * utils.h (make_cleanup_clear_parser_state): New function
3938 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3939 Update calls to write_exp* in order to pass the parser state.
3940 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3941 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3942 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3943 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3944 * stap-probe.c (stap_parse_register_operand): Likewise.
3945 (stap_parse_single_operand): Likewise.
3946 (stap_parse_argument_1): Likewise.
3947 (stap_parse_argument): Use parser state.
3948 * stap-probe.h: Include "parser-defs.h".
3949 (struct stap_parse_info) <pstate>: New field.
3950 * c-exp.y (parse_type): Rewrite to use parser state.
3951 (yyparse): Redefine to c_parse_internal.
3952 (pstate): New global variable.
3953 (parse_number): Add "struct parser_state" argument.
3954 (write_destructor_name): Likewise.
3955 (type_exp): Update calls to write_exp* and similars in order to
3957 (exp1, exp, variable, qualified_name, space_identifier,
3958 typename, typebase): Likewise.
3959 (write_destructor_name, parse_number, lex_one_token,
3960 classify_name, classify_inner_name, c_parse): Add "struct
3961 parser_state" argument. Update function to use parser state.
3962 * c-lang.h: Forward declare "struct parser_state".
3963 (c_parse): Add "struct parser_state" argument.
3964 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3965 (yyparse): Redefine macro to ada_parse_internal.
3966 (pstate): New variable.
3967 (write_int, write_object_renaming, write_var_or_type,
3968 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3969 type_int, type_long, type_long_long, type_float, type_double,
3970 type_long_double, type_char, type_boolean, type_system_address):
3971 Add "struct parser_state" argument.
3972 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3973 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3974 var_or_type, aggregate, aggregate_component_list,
3975 positional_list, others, component_group,
3976 component_associations): Update calls to write_exp* and similar
3977 functions in order to use parser state.
3978 (ada_parse, write_var_from_sym, write_int,
3979 write_exp_op_with_string, write_object_renaming,
3980 find_primitive_type, write_selectors, write_ambiguous_var,
3981 write_var_or_type, write_name_assoc, type_int, type_long,
3982 type_long_long, type_float, type_double, type_long_double,
3983 type_char, type_boolean, type_system_address): Add "struct
3984 parser_state" argument. Adjust function to use parser state.
3985 * ada-lang.c (parse): Likewise.
3986 * ada-lang.h: Forward declare "struct parser_state".
3987 (ada_parse): Add "struct parser_state" argument.
3988 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3989 calls to both functions.
3990 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3992 (yyparse): Redefine macro to f_parse_internal.
3993 (pstate): New variable.
3994 (parse_number): Add "struct parser_state" argument.
3995 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3996 and similars in order to use parser state.
3997 (parse_number): Adjust code to use parser state.
3999 (f_parse): New function.
4000 * f-lang.h: Forward declare "struct parser_state".
4001 (f_parse): Add "struct parser_state" argument.
4002 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4004 (yyparse): Redefine macro for java_parse_internal.
4005 (pstate): New variable.
4006 (push_expression_name, push_expression_name, insert_exp): Add
4007 "struct parser_state" argument.
4008 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4009 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4010 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4011 PostIncrementExpression, PostDecrementExpression,
4012 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4013 UnaryExpressionNotPlusMinus, CastExpression,
4014 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4015 RelationalExpression, EqualityExpression, AndExpression,
4016 ExclusiveOrExpression, InclusiveOrExpression,
4017 ConditionalAndExpression, ConditionalOrExpression,
4018 ConditionalExpression, Assignment, LeftHandSide): Update
4019 calls to write_exp* and similars in order to use parser state.
4020 (parse_number): Ajust code to use parser state.
4022 (java_parse): New function.
4023 (push_variable): Add "struct parser_state" argument. Adjust
4024 code to user parser state.
4025 (push_fieldnames, push_qualified_expression_name,
4026 push_expression_name, insert_exp): Likewise.
4027 * jv-lang.h: Forward declare "struct parser_state".
4028 (java_parse): Add "struct parser_state" argument.
4029 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4031 (yyparse): Redefine macro to m2_parse_internal.
4032 (pstate): New variable.
4033 (type_exp, exp, fblock, variable, type): Update calls to
4034 write_exp* and similars to use parser state.
4036 (m2_parse): New function.
4037 * m2-lang.h: Forward declare "struct parser_state".
4038 (m2_parse): Add "struct parser_state" argument.
4039 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4040 * objc-lang.h: Forward declare "struct parser_state".
4041 (end_msglist): Add "struct parser_state" argument.
4042 * p-exp.y (parse_type): Rewrite macro to use parser state.
4043 (yyparse): Redefine macro to pascal_parse_internal.
4044 (pstate): New variable.
4045 (parse_number): Add "struct parser_state" argument.
4046 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4047 write_exp* and similars in order to use parser state.
4048 (parse_number, yylex): Adjust code to use parser state.
4049 (pascal_parse): New function.
4050 * p-lang.h: Forward declare "struct parser_state".
4051 (pascal_parse): Add "struct parser_state" argument.
4052 * go-exp.y (parse_type): Rewrite macro to use parser state.
4053 (yyparse): Redefine macro to go_parse_internal.
4054 (pstate): New variable.
4055 (parse_number): Add "struct parser_state" argument.
4056 (type_exp, exp1, exp, variable, type): Update calls to
4057 write_exp* and similars in order to use parser state.
4058 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4059 to use parser state.
4060 (go_parse): Likewise.
4061 * go-lang.h: Forward declare "struct parser_state".
4062 (go_parse): Add "struct parser_state" argument.
4064 2014-03-27 Doug Evans <dje@google.com>
4066 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4068 2014-03-27 Doug Evans <dje@google.com>
4070 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4071 Remove argument abbrev_section. All callers updated.
4073 2014-03-27 Doug Evans <dje@google.com>
4075 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4076 addr_base, ranges_base.
4078 2014-03-26 Keith Seitz <keiths@redhat.com>
4080 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4081 types, not VAR_DOMAIN.
4083 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4085 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4087 * features/nios2-linux.c: Regenerated.
4088 * features/nios2.c: Regenerated.
4090 2014-03-25 Pedro Alves <palves@redhat.com>
4092 * cli/cli-script.c (script_from_file): Force the interpreter to
4095 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4097 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4098 small stack allocation.
4100 2014-03-24 Tristan Gingold <gingold@adacore.com>
4102 * darwin-nat.c (exc_server): Remove unused prototype.
4103 (darwin_dump_message): Correctly display data on x86_64.
4104 (darwin_encode_reply): Fix style.
4105 Add comments and fix indentation.
4107 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4109 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4111 2014-03-22 Doug Evans <xdje42@gmail.com>
4113 * infcmd.c: Whitespace fixes.
4114 (interrupt_command): Merge two function comments into one.
4116 2014-03-22 Doug Evans <xdje42@gmail.com>
4118 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4121 2014-03-22 Yao Qi <yao@codesourcery.com>
4123 * remote.c (target_read_live_memory): Remove.
4124 (memory_xfer_live_readonly_partial): Rename it to
4125 remote_xfer_live_readonly_partial. Remove argument 'object'.
4126 All callers updated. Call remote_read_bytes_1
4127 instead of target_read_live_memory.
4128 * tracepoint.c (set_traceframe_number): Remove.
4129 (make_cleanup_restore_traceframe_number): Likewise .
4130 * tracepoint.h (set_traceframe_number): Remove declaration.
4131 (make_cleanup_restore_traceframe_number): Likewise.
4133 2014-03-22 Yao Qi <yao@codesourcery.com>
4135 * remote.c (remote_read_bytes): Move code on reading from the
4137 (remote_read_bytes_1): ... here. New function.
4139 2014-03-22 Yao Qi <yao@codesourcery.com>
4141 * ctf.c (ctf_xfer_partial): Check the return value of
4142 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4143 return TARGET_XFER_UNAVAILABLE.
4144 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4145 * target.c (target_read_live_memory): Move it to remote.c.
4146 (memory_xfer_live_readonly_partial): Likewise.
4147 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4148 * remote.c (target_read_live_memory): Moved from target.c.
4149 (memory_xfer_live_readonly_partial): Likewise.
4150 (remote_read_bytes): Factored out from
4151 memory_xfer_partial_1.
4153 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4155 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4158 2014-03-21 Pedro Alves <palves@redhat.com>
4160 * infrun.c (normal_stop): Extend comment.
4162 2014-03-21 Hui Zhu <hui@codesourcery.com>
4163 Pedro Alves <palves@redhat.com>
4165 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4167 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4168 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4169 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4171 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4173 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4174 `z' formatted output modifier.
4176 2014-03-20 Tom Tromey <tromey@redhat.com>
4177 Sergio Durigan Junior <sergiodj@redhat.com>
4179 * probe.c (parse_probes): Turn assert into an ordinary error.
4180 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4181 exceptions when parsing probes. Rearrange the code for clarity.
4183 2014-03-20 Tom Tromey <tromey@redhat.com>
4186 * top.c (execute_command): Only dispatch events if the command
4189 2014-03-20 Tom Tromey <tromey@redhat.com>
4192 * infcall.c: Include event-top.h.
4193 (run_inferior_call): Call async_disable_stdin if needed.
4195 2014-03-20 Pedro Alves <palves@redhat.com>
4197 * infrun.c (prepare_to_proceed): Delete.
4198 (thread_still_needs_step_over): New function.
4199 (find_thread_needs_step_over): New function.
4200 (proceed): If the current thread needs a step-over, set its
4201 steping_over_breakpoint flag. Adjust to use
4202 find_thread_needs_step_over instead of prepare_to_proceed.
4203 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4204 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4206 (switch_back_to_stepped_thread): Step over breakpoints of all
4207 threads not the stepping thread, before switching back to the
4210 2014-03-20 Pedro Alves <palves@redhat.com>
4212 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4214 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4215 * infrun.c (saved_singlestep_ptid)
4216 (stepping_past_singlestep_breakpoint): Delete.
4217 (resume): Remove stepping_past_singlestep_breakpoint handling.
4218 (proceed): Store the prev_pc of the stepping thread too.
4219 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4221 (enum infwait_states): Delete infwait_thread_hop_state.
4222 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4224 (handle_inferior_event): Adjust.
4225 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4226 handling and the thread-hop code. Before removing single-step
4227 breakpoints, check whether the thread hit a single-step breakpoint
4228 of another thread. If it did, the trap is not a random signal.
4229 (switch_back_to_stepped_thread): If the event thread hit a
4230 single-step breakpoint, unblock it before switching to the
4231 stepping thread. Handle the case of the stepped thread having
4233 (keep_going): Handle the case of the current thread moving past a
4234 single-step breakpoint.
4236 2014-03-20 Pedro Alves <palves@redhat.com>
4239 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4240 are being stepped over.
4241 (breakpoint_address_match): Make extern.
4242 * breakpoint.h (breakpoint_address_match): New declaration.
4243 * inferior.h (stepping_past_instruction_at): New declaration.
4244 * infrun.c (struct step_over_info): New type.
4245 (step_over_info): New global.
4246 (set_step_over_info, clear_step_over_info)
4247 (stepping_past_instruction_at): New functions.
4248 (handle_inferior_event): Clear the step-over info when
4249 trap_expected is cleared.
4250 (resume): Remove now stale comment.
4251 (clear_proceed_status): Clear step-over info.
4252 (proceed): Adjust step-over handling to set or clear the step-over
4253 info instead of removing all breakpoints.
4254 (handle_signal_stop): When setting up a thread-hop, don't remove
4256 (stop_stepping): Clear step-over info.
4257 (keep_going): Adjust step-over handling to set or clear step-over
4258 info and then always inserting breakpoints, instead of removing
4259 all breakpoints when stepping over one.
4261 2014-03-20 Pedro Alves <palves@redhat.com>
4263 * infrun.c (previous_inferior_ptid): Adjust comment.
4264 (deferred_step_ptid): Delete.
4265 (infrun_thread_ptid_changed, prepare_to_proceed)
4266 (init_wait_for_inferior): Adjust.
4267 (handle_signal_stop): Delete deferred_step_ptid handling.
4269 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4272 * defs.h (sync_quit_force_run): New declaration.
4273 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4274 * event-top.c (async_sigterm_handler): New declaration.
4275 (async_sigterm_token): New variable.
4276 (async_init_signals): Create also async_sigterm_token.
4277 (async_sigterm_handler): New function.
4278 (sync_quit_force_run): New variable.
4279 (handle_sigterm): Replace quit_force call by other calls.
4280 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4282 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4284 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4285 offset into SPE pseudo registers.
4287 2014-03-18 Pedro Alves <palves@redhat.com>
4290 * inferior.h (print_stop_event): Declare.
4291 * infrun.c (print_stop_event): New, factored out from ...
4292 (normal_stop): ... this.
4293 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4294 of bpstat_print/print_stack_frame.
4296 2014-03-17 Tom Tromey <tromey@redhat.com>
4298 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4300 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4302 * ada-lang.c (decode_constrained_packed_array): Perform a
4303 minimal coercion for reference with coerce_ref instead of
4306 2014-03-17 Tristan Gingold <gingold@adacore.com>
4308 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4309 (darwin_solib_create_inferior_hook): Emit a warning if version
4312 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4314 * python/py-value.c (get_field_flag): Cast flag_name argument to
4315 PyObject_GetAttrString to support Python 2.4.
4317 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4319 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4320 (Global Maintainers): Remove Jan Kratochvil.
4322 2014-03-14 Pedro Alves <palves@redhat.com>
4324 * inferior.h (terminal_ours_for_output): Rename to ...
4325 (child_terminal_ours_for_output): ... this.
4326 (terminal_save_ours): Rename to ...
4327 (child_terminal_save_ours): ... this.
4328 (terminal_ours): Rename to ...
4329 (child_terminal_ours): ... this.
4330 (terminal_inferior): Rename to ...
4331 (child_terminal_inferior): ... this.
4332 (terminal_init_inferior): Rename to ...
4333 (child_terminal_init_inferior): ... this.
4334 (terminal_init_inferior_with_pgrp): Rename to ...
4335 (child_terminal_init_inferior_with_pgrp): ... this.
4336 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4337 (child_terminal_init_with_pgrp): ... this.
4338 (terminal_save_ours): Rename to ...
4339 (child_terminal_save_ours): ... this.
4340 (terminal_init_inferior): Rename to ...
4341 (child_terminal_init): ... this. Adjust.
4342 (terminal_inferior): Rename to ...
4343 (child_terminal_inferior): ... this.
4344 (terminal_ours_for_output): Rename to ...
4345 (child_terminal_ours_for_output): ... this. Adjust.
4346 (terminal_ours): Rename to ...
4347 (child_terminal_ours): ... this.
4348 (terminal_ours_1): Rename to ...
4349 (child_terminal_ours_1): ... this. Adjust.
4350 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4351 * windows-nat.c (do_initial_windows_stuff): Adjust.
4352 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4353 (gnu_terminal_init): ... this. Adjust.
4354 (gnu_target): Adjust.
4355 * inf-child.c (inf_child_target): Adjust.
4357 2014-03-13 Doug Evans <xdje42@gmail.com>
4360 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4363 2014-03-13 Doug Evans <xdje42@gmail.com>
4365 * value.c (record_latest_value): Call release_value_or_incref
4366 instead of release_value.
4368 2014-03-13 Pedro Alves <palves@redhat.com>
4370 * procfs.c (procfs_target): Don't override to_shortname,
4371 to_longname or to_doc.
4373 2014-03-13 Pedro Alves <palves@redhat.com>
4375 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4376 Unix in user visible strings.
4378 2014-03-12 Stan Shebs <stan@codesourcery.com>
4380 * gdbtypes.h: Annotate comments for Doxygen, add a page
4381 block comment with some general info.
4383 2014-03-12 Pedro Alves <palves@redhat.com>
4385 * infcmd.c (prepare_execution_command): New function, factored out
4386 from several execution commands.
4387 (run_command_1, continue_command, step_1, jump_command)
4388 (signal_command, until_command, advance_command, finish_command)
4389 (attach_command): Use prepare_execution_command.
4391 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4393 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4396 (struct arm_linux_thread_points): Removed.
4397 (struct arm_linux_process_info): New.
4398 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4399 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4400 (arm_linux_find_breakpoints_by_tid): Removed.
4401 (struct arch_lwp_info): New.
4402 (arm_linux_find_process_pid): New functions.
4403 (arm_linux_add_process): New functions.
4404 (arm_linux_process_info_get): New functions.
4405 (arm_linux_forget_process): New function.
4406 (arm_linux_get_debug_reg_state): New function.
4407 (struct update_registers_data): New.
4408 (update_registers_callback): New function.
4409 (arm_linux_insert_hw_breakpoint1): Updated.
4410 (arm_linux_remove_hw_breakpoint1): Updated.
4411 (arm_linux_insert_hw_breakpoint): Updated.
4412 (arm_linux_remove_hw_breakpoint): Updated.
4413 (arm_linux_insert_watchpoint): Updated.
4414 (arm_linux_remove_watchpoint): Updated.
4415 (arm_linux_new_thread): Updated.
4416 (arm_linux_prepare_to_resume): New function.
4417 (arm_linux_new_fork): New function.
4418 (_initialize_arm_linux_nat): Updated.
4420 2014-03-12 Pedro Alves <palves@redhat.com>
4422 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4424 2014-03-12 Tom Tromey <tromey@redhat.com>
4426 * inf-child.c (return_zero): New function.
4427 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4428 * aix-thread.c (aix_thread_inferior_created): New function.
4429 (aix_thread_attach): Remove.
4430 (init_aix_thread_ops): Don't set to_attach.
4431 (_initialize_aix_thread): Register inferior_created observer.
4432 * corelow.c (init_core_ops): Don't set to_attach or
4434 * exec.c (init_exec_ops): Don't set to_attach or
4436 * infcmd.c (run_command_1): Use find_run_target. Make direct
4438 (attach_command): Use find_attach_target. Make direct target
4440 * record-btrace.c (init_record_btrace_ops): Don't set
4442 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4444 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4445 set to_create_inferior.
4446 * target.c (complete_target_initialization): Add assertion.
4447 (target_create_inferior): Remove.
4448 (find_default_attach, find_default_create_inferior): Remove.
4449 (find_attach_target, find_run_target): New functions.
4450 (find_default_is_async_p, find_default_can_async_p)
4451 (target_supports_non_stop, target_attach): Remove.
4452 (init_dummy_target): Don't set to_create_inferior or
4453 to_supports_non_stop.
4454 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4455 TARGET_DEFAULT_FUNC.
4456 <to_create_inferior>: Add comment.
4457 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4458 TARGET_DEFAULT_RETURN.
4459 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4460 (find_attach_target, find_run_target): Declare.
4461 (target_create_inferior): Remove.
4462 (target_has_execution_1): Update comment.
4463 (target_supports_non_stop): Remove.
4464 * target-delegates.c: Rebuild.
4466 2014-03-12 Pedro Alves <palves@redhat.com>
4468 * inf-child.h: Update comment to not mention Unix.
4470 2014-03-12 Pedro Alves <palves@redhat.com>
4472 * inf-child.c: Update top comment to not mention Unix. Add
4473 generic comment describing how this target is meant to be used.
4474 (inf_child_post_attach, inf_child_post_startup_inferior)
4475 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4478 2014-03-12 Pedro Alves <palves@redhat.com>
4480 * nto-procfs.c: Include inf-child.h.
4481 (procfs_ops): Delete global.
4482 (procfs_can_run): Delete method.
4483 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4484 target pointer instead of referencing procfs_ops.
4485 (procfs_prepare_to_store): Delete.
4486 (init_procfs_ops): Delete function.
4487 (procfs_target): New function, based on init_procfs_ops, but
4488 inherit inf_child_target.
4489 (_initialize_procfs): Use procfs_target.
4491 2014-03-12 Pedro Alves <palves@redhat.com>
4493 * windows-nat.c: Include inf-child.h.
4494 (windows_ops): Delete global.
4495 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4497 (init_windows_ops): Delete function.
4498 (windows_target): New function, based on init_windows_ops, but
4499 inherit inf_child_target.
4500 (_initialize_windows_nat): Use windows_target. Install x86
4501 specific target methods here.
4503 2014-03-10 Doug Evans <xdje42@gmail.com>
4505 * guile/guile.c (call_initialize_gdb_module): New function.
4506 (initialize_guile): Replace call to scm_init_guile with call to
4509 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4511 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4512 in call to TYPE_CODE macro.
4514 2014-03-10 Jerome Guitton <guitton@adacore.com>
4516 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4517 Resolve tagged types to full view.
4519 2014-03-10 Hui Zhu <hui@codesourcery.com>
4521 * target.h (target_insert_breakpoint): Remove "hardware" from its
4524 2014-03-07 Doug Evans <dje@google.com>
4526 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4528 2014-03-07 Doug Evans <dje@google.com>
4530 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4531 Remove unused local comp_dir_attr. Assert exactly one of
4532 stub_comp_unit_die, stub_comp_dir is non-NULL.
4534 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4536 * target.h (complete_target_initialization, add_target):
4539 2014-03-07 Pedro Alves <palves@redhat.com>
4541 * go32-nat.c: Include inf-child.h.
4542 (go32_ops): Delete global.
4543 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4545 (go32_create_inferior): Push the passed in target pointer instead
4546 of referencing go32_ops.
4547 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4548 (go32_target): New function, based on init_go32_ops, but inherit
4550 (_initialize_go32_nat): Use go32_target. Move parts of
4553 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4555 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4556 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4557 SYMBOL_VALUE_ADDRESS.
4558 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4560 2014-03-06 Yao Qi <yao@codesourcery.com>
4562 * breakpoint.c (get_tracepoint_by_number): Remove argument
4563 optional_p. All callers updated. Adjust comments. Update
4565 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4567 2014-03-06 Yao Qi <yao@codesourcery.com>
4569 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4570 early if get_number returns zero. Use 'p' instead of 'args'.
4572 2014-03-06 Yao Qi <yao@codesourcery.com>
4574 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4577 2014-03-06 Yao Qi <yao@codesourcery.com>
4579 PR breakpoints/16508
4580 * tracepoint.c (check_trace_running): New function.
4581 (trace_find_command): Move code to check_trace_running and
4582 call check_trace_running.
4583 (trace_find_pc_command): Likewise.
4584 (trace_find_tracepoint_command): Likewise.
4585 (trace_find_line_command): Likewise.
4586 (trace_find_range_command): Likewise.
4587 * tracepoint.h (check_trace_running): Likewise.
4588 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4590 2014-03-06 Yao Qi <yao@codesourcery.com>
4592 * target.h (struct target_ops) <to_traceframe_info>: Use
4593 TARGET_DEFAULT_NORETURN (tcomplain ()).
4594 * target-delegates.c: Regenerated.
4596 2014-03-05 Pedro Alves <palves@redhat.com>
4599 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4600 void. Update comment.
4601 (dcache_xfer_memory): Delete.
4602 (dcache_read_memory_partial): New, based on the read bits of
4604 (dcache_update): Add status parameter. Use ULONGEST for len, and
4605 adjust. Discard cache lines if the reason for the update was
4607 * dcache.h (dcache_xfer_memory): Delete declaration.
4608 (dcache_read_memory_partial): New declaration.
4609 (dcache_update): Update prototype.
4610 * target.c (raw_memory_xfer_partial): Update the dcache here.
4611 (memory_xfer_partial_1): Don't handle dcache writes here.
4613 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4615 * remote-sim.c (gdbsim_load): Add const to prog.
4617 2014-03-03 Tom Tromey <tromey@redhat.com>
4619 * elfread.c (probe_key): Change to bfd_data.
4620 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4621 now per-BFD, not per-objfile.
4622 * stap-probe.c (stap_probe_destroy): Update comment.
4623 (handle_stap_probe): Allocate on the per-BFD obstack.
4625 2014-03-03 Tom Tromey <tromey@redhat.com>
4627 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4628 * breakpoint.c (create_longjmp_master_breakpoint): Use
4630 (add_location_to_breakpoint, bkpt_probe_insert_location)
4631 (bkpt_probe_remove_location): Update.
4632 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4633 * elfread.c (elf_symfile_relocate_probe): Remove.
4634 (elf_probe_fns): Update.
4635 (insert_exception_resume_breakpoint): Change type of "probe"
4636 parameter to bound_probe.
4637 (check_exception_resume): Update.
4638 * objfiles.c (objfile_relocate1): Don't relocate probes.
4639 * probe.c (bound_probe_s): New typedef.
4640 (parse_probes): Use get_probe_address. Set sal's objfile.
4641 (find_probe_by_pc): Return a bound_probe.
4642 (collect_probes): Return a VEC(bound_probe_s).
4643 (compare_probes): Update.
4644 (gen_ui_out_table_header_info): Change type of "probes"
4646 (info_probes_for_ops): Update.
4647 (get_probe_address): New function.
4648 (probe_safe_evaluate_at_pc): Update.
4649 * probe.h (struct probe_ops) <get_probe_address>: New field.
4650 <set_semaphore, clear_semaphore>: Add objfile parameter.
4651 (struct probe) <objfile>: Remove field.
4653 <address>: Update comment.
4654 (struct bound_probe): New.
4655 (find_probe_by_pc): Return a bound_probe.
4656 (get_probe_address): Declare.
4657 * solib-svr4.c (struct probe_and_action) <address>: New field.
4658 (hash_probe_and_action, equal_probe_and_action): Update.
4659 (register_solib_event_probe): Add address parameter.
4660 (solib_event_probe_at): Update.
4661 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4663 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4664 (stap_get_probe_address): New function.
4665 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4666 (compile_probe_arg): Update.
4667 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4669 (handle_stap_probe): Don't relocate the probe.
4670 (stap_relocate): Remove.
4671 (stap_gen_info_probes_table_values): Update.
4672 (stap_probe_ops): Remove stap_relocate.
4673 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4674 (debug_sym_probe_fns): Update.
4675 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4676 * symtab.c (init_sal): Use memset.
4677 * symtab.h (struct symtab_and_line) <objfile>: New field.
4678 * tracepoint.c (start_tracing, stop_tracing): Update.
4680 2014-03-03 Tom Tromey <tromey@redhat.com>
4682 * probe.h (parse_probes, find_probe_by_pc)
4683 (find_probes_in_objfile): Fix comments.
4685 2014-03-02 Doug Evans <xdje42@gmail.com>
4687 * infrun.c (handle_signal_stop): Replace test for
4688 TARGET_WAITKIND_STOPPED with an assert.
4690 2014-03-02 Doug Evans <xdje42@gmail.com>
4692 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4694 2014-03-02 Doug Evans <xdje42@gmail.com>
4696 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4698 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4700 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4702 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4704 * i386obsd-nat.c: Include "obsd-nat.h".
4705 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4707 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4709 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4711 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4713 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4715 * mips64obsd-nat.c: Include "obsd-nath".
4716 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4718 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4720 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4722 * amd64obsd-nat.c: Include "obsd-nat,h.
4723 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4725 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4727 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4729 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4730 (find_overload_match): Update call to find_oload_champ.
4731 (find_oload_champ_namespace_loop): Likewise
4733 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4735 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4737 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4738 * config/sparc/obsd64.mh: New file.
4739 * sparc64obsd-nat.c: New file.
4741 * obsd-nat.h: New file.
4742 * obsd-nat.c: New file.
4743 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4744 (ALLDEPFILES): Add obsd-nat.c.
4746 2014-02-28 Tom Tromey <tromey@redhat.com>
4748 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4749 * cli-out.h (cli_ui_out_impl): Now const.
4750 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4751 * ui-out.c (struct ui_out) <impl>: Now const.
4752 (default_ui_out_impl): Now const.
4753 (ui_out_new): Make 'impl' parameter const.
4754 * ui-out.h (ui_out_new): Update.
4756 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4758 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4760 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4762 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4764 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4766 Additional PR 8882 fix.
4767 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4769 2014-02-27 Pedro Alves <palves@redhat.com>
4771 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4774 2014-02-27 Pedro Alves <palves@redhat.com>
4777 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4778 * nat/linux-waitpid.c: Include string.h.
4779 (status_to_str): Moved here and made extern.
4780 * nat/linux-waitpid.h (status_to_str): New declaration.
4782 2014-02-27 Hui Zhu <hui@codesourcery.com>
4785 * infrun.c (ptid_match): Move ...
4786 * common/ptid.c (ptid_match): ... here.
4787 * inferior.h (ptid_match): Move ...
4788 * common/ptid.h (ptid_match): ... here.
4790 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4792 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4793 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4796 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4798 * obsd-tdep.c (obsd_auxv_parse): New function.
4799 (obsd_init_abi): Set auxv_parse.
4801 * gdbarch.sh (auxv_parse): New.
4802 * gdbarch.h: Regenerated.
4803 * gdbarch.c: Regenerated.
4804 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4806 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4808 * guile/scm-value.c (gdbscm_history_append_x): New function.
4809 (value_functions): Add it.
4811 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4813 * dwarf2read.c (attr_value_as_address): New function.
4814 (dwarf2_find_base_address, read_call_site_scope): Use
4815 attr_value_as_address in place of DW_ADDR.
4816 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4817 the low and high addresses. Slight rework of the handling
4818 of the high pc being a constant form, and limit it to
4819 DWARF verson 4 or higher.
4820 (dwarf2_record_block_ranges): Likewise.
4821 (read_partial_die): Likewise.
4822 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4824 2014-02-26 Tom Tromey <tromey@redhat.com>
4826 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4828 2014-02-26 Tom Tromey <tromey@redhat.com>
4830 * elfread.c (elf_read_minimal_symbols): Return early if
4831 minimal symbols have already been read. Add "ei" parameter.
4832 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4833 * minsyms.c (prim_record_minimal_symbol_full): Update.
4834 * objfiles.h (struct objstats) <n_minsyms>: Move...
4835 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4836 * symmisc.c (print_objfile_statistics): Update.
4838 2014-02-26 Tom Tromey <tromey@redhat.com>
4840 * elfread.c (elf_read_minimal_symbols): New function, from
4842 (elf_symfile_read): Call it.
4844 2014-02-26 Tom Tromey <tromey@redhat.com>
4846 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4847 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4848 (lookup_minimal_symbol_solib_trampoline)
4849 (lookup_minimal_symbol_by_pc_section_1)
4850 (lookup_minimal_symbol_and_objfile): Update.
4851 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4852 Don't allocate a minimal symbol if minsyms have already been read.
4853 (build_minimal_symbol_hash_tables): Update.
4854 (install_minimal_symbols): Do nothing if minsyms already read.
4855 Use the per-BFD obstack.
4856 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4857 * objfiles.c (allocate_objfile): Call
4858 terminate_minimal_symbol_table later.
4859 (have_minimal_symbols): Update.
4860 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4861 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4862 Move from struct objfile.
4863 <minsyms_read>: New field.
4864 (struct objfile) <msymbols, minimal_symbol_count,
4865 msymbol_hash, msymbol_demangled_hash>: Move.
4866 (ALL_OBJFILE_MSYMBOLS): Update.
4867 * symfile.c (read_symbols): Set minsyms_read.
4868 (reread_symbols): Update.
4869 * symmisc.c (dump_objfile, dump_msymbols): Update.
4871 2014-02-26 Tom Tromey <tromey@redhat.com>
4873 * minsyms.c (msymbols_sort): Remove.
4874 * minsyms.h (msymbols_sort): Remove.
4875 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4876 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4877 * elfread.c (elf_symtab_read): Don't add section offsets.
4878 * xcoffread.c (record_minimal_symbol): Don't add section offset
4879 to minimal symbol address.
4880 * somread.c (text_offset, data_offset): Remove.
4881 (som_symtab_read): Don't add section offsets to minimal symbol
4883 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4884 Don't add section offsets to minimal symbols.
4885 * coffread.c (coff_symtab_read): Don't add section offsets
4886 to minimal symbol addresses.
4887 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4888 to minimal symbol addresses.
4889 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4890 section offset to minimal symbol addresses.
4891 * mdebugread.c (parse_partial_symbols): Don't add section
4892 offset to minimal symbol addresses.
4893 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4894 offset to minimal symbol addresses.
4896 2014-02-26 Tom Tromey <tromey@redhat.com>
4898 * ada-lang.c (ada_main_name): Update.
4899 (ada_add_standard_exceptions): Update.
4900 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4901 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4902 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4903 * auxv.c (ld_so_xfer_auxv): Update.
4904 * avr-tdep.c (avr_scan_prologue): Update.
4905 * ax-gdb.c (gen_var_ref): Update.
4906 * blockframe.c (get_pc_function_start)
4907 (find_pc_partial_function_gnu_ifunc): Update.
4908 * breakpoint.c (create_overlay_event_breakpoint)
4909 (create_longjmp_master_breakpoint)
4910 (create_std_terminate_master_breakpoint)
4911 (create_exception_master_breakpoint): Update.
4912 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4913 * c-valprint.c (c_val_print): Update.
4914 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4915 * common/agent.c (agent_look_up_symbols): Update.
4916 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4917 * dwarf2loc.c (call_site_to_target_addr): Update.
4918 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4919 * elfread.c (elf_gnu_ifunc_record_cache)
4920 (elf_gnu_ifunc_resolve_by_got): Update.
4921 * findvar.c (default_read_var_value): Update.
4922 * frame.c (inside_main_func): Update.
4923 * frv-tdep.c (frv_frame_this_id): Update.
4924 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4925 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4927 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4928 (hppa_hpux_find_dummy_bpaddr): Update.
4929 * hppa-tdep.c (hppa_symbol_address): Update.
4930 * infcmd.c (until_next_command): Update.
4931 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4933 * linespec.c (minsym_found, add_minsym): Update.
4934 * linux-nat.c (get_signo): Update.
4935 * linux-thread-db.c (inferior_has_bug): Update.
4936 * m32c-tdep.c (m32c_return_value)
4937 (m32c_m16c_address_to_pointer): Update.
4938 * m32r-tdep.c (m32r_frame_this_id): Update.
4939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4941 * maint.c (maintenance_translate_address): Update.
4942 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4943 (frob_address): New function.
4944 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4945 frob_address. Rename parameter to "pc_in".
4946 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4948 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4950 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4951 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4952 * objc-lang.c (find_objc_msgsend): Update.
4953 * objfiles.c (objfile_relocate1): Update.
4954 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4955 * p-valprint.c (pascal_val_print): Update.
4956 * parse.c (write_exp_msymbol): Update.
4957 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4958 (ppc_elfv2_skip_entrypoint): Update.
4959 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4960 * printcmd.c (build_address_symbolic, msym_info)
4961 (address_info): Update.
4962 * proc-service.c (ps_pglobal_lookup): Update.
4963 * psymtab.c (find_pc_sect_psymtab_closer)
4964 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4965 Change msymbol parameter to bound_minimal_symbol.
4966 * ravenscar-thread.c (get_running_thread_id): Update.
4967 * remote.c (remote_check_symbols): Update.
4968 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4970 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4971 * solib-dsbt.c (lm_base): Update.
4972 * solib-frv.c (lm_base, main_got): Update.
4973 * solib-irix.c (locate_base): Update.
4974 * solib-som.c (som_solib_create_inferior_hook)
4975 (link_map_start): Update.
4976 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4977 * solib-svr4.c (elf_locate_base, enable_break): Update.
4978 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4979 (flush_ea_cache): Update.
4980 * stabsread.c (define_symbol, scan_file_globals): Update.
4981 * stack.c (find_frame_funname): Update.
4982 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4983 (debug_qf_find_pc_sect_symtab): Update.
4984 * symfile.c (simple_read_overlay_table)
4985 (simple_overlay_update): Update.
4986 * symfile.h (struct quick_symbol_functions)
4987 <find_pc_sect_symtab>: Change type of msymbol to
4988 bound_minimal_symbol.
4989 * symmisc.c (dump_msymbols): Update.
4990 * symtab.c (find_pc_sect_symtab_via_partial)
4991 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4992 (search_symbols, print_msymbol_info): Update.
4993 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4994 (MSYMBOL_VALUE_ADDRESS): Redefine.
4995 (BMSYMBOL_VALUE_ADDRESS): New macro.
4996 * tracepoint.c (scope_info): Update.
4997 * tui/tui-disasm.c (tui_find_disassembly_address)
4998 (tui_get_begin_asm_address): Update.
4999 * valops.c (find_function_in_inferior): Update.
5000 * value.c (value_static_field, value_fn_field): Update.
5002 2014-02-26 Tom Tromey <tromey@redhat.com>
5004 * ada-lang.c (ada_update_initial_language): Update.
5005 (ada_main_name, ada_has_this_exception_support): Update.
5006 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5007 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5008 * arm-tdep.c (arm_skip_stub): Update.
5009 * auxv.c (ld_so_xfer_auxv): Update.
5010 * avr-tdep.c (avr_scan_prologue): Update.
5011 * ax-gdb.c (gen_var_ref): Update.
5012 * breakpoint.c (struct breakpoint_objfile_data)
5013 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5014 type to bound_minimal_symbol.
5015 (create_overlay_event_breakpoint)
5016 (create_longjmp_master_breakpoint)
5017 (create_std_terminate_master_breakpoint)
5018 (create_exception_master_breakpoint): Update.
5019 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5020 * c-exp.y (classify_name): Update.
5021 * coffread.c (coff_symfile_read): Update.
5022 * common/agent.c (agent_look_up_symbols): Update.
5023 * d-lang.c (d_main_name): Update.
5024 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5025 * dec-thread.c (enable_dec_thread): Update.
5026 * dwarf2loc.c (call_site_to_target_addr): Update.
5027 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5028 * eval.c (evaluate_subexp_standard): Update.
5029 * findvar.c (struct minsym_lookup_data) <result>: Change type
5030 to bound_minimal_symbol.
5032 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5033 * frame.c (inside_main_func): Update.
5034 * frv-tdep.c (frv_frame_this_id): Update.
5035 * gcore.c (call_target_sbrk): Update.
5036 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5037 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5039 * go-lang.c (go_main_name): Update.
5040 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5041 (hppa_hpux_find_import_stub_for_addr): Update.
5042 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5043 Update. Change return type.
5044 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5046 * jit.c (jit_breakpoint_re_set_internal): Update.
5047 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5049 * linux-nat.c (get_signo): Update.
5050 * linux-thread-db.c (inferior_has_bug): Update
5051 * m32c-tdep.c (m32c_return_value)
5052 (m32c_m16c_address_to_pointer): Update.
5053 * m32r-tdep.c (m32r_frame_this_id): Update.
5054 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5055 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5056 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5057 lookup_minimal_symbol. Change return type.
5058 (lookup_minimal_symbol): Remove.
5059 (lookup_bound_minimal_symbol): Update.
5060 (lookup_minimal_symbol_text): Change return type.
5061 (lookup_minimal_symbol_solib_trampoline): Change return type.
5062 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5063 (lookup_minimal_symbol_solib_trampoline): Change return type.
5064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5065 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5066 (value_nsstring, find_imps): Update.
5067 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5068 * p-lang.c (pascal_main_name): Update.
5069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5070 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5071 * proc-service.c (ps_pglobal_lookup): Update.
5072 * ravenscar-thread.c (get_running_thread_msymbol): Change
5074 (has_ravenscar_runtime, get_running_thread_id): Update.
5075 * remote.c (remote_check_symbols): Update.
5076 * sol-thread.c (ps_pglobal_lookup): Update.
5077 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5078 * solib-dsbt.c (lm_base): Update.
5079 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5081 * solib-irix.c (locate_base): Update.
5082 * solib-som.c (som_solib_create_inferior_hook)
5083 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5085 * solib-spu.c (spu_enable_break): Update.
5086 * solib-svr4.c (elf_locate_base, enable_break): Update.
5087 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5088 (flush_ea_cache): Update.
5089 * stabsread.c (define_symbol): Update.
5090 * symfile.c (simple_read_overlay_table): Update.
5091 * symtab.c (find_pc_sect_line): Update.
5092 * tracepoint.c (scope_info): Update.
5093 * tui-disasm.c (tui_get_begin_asm_address): Update.
5094 * value.c (value_static_field): Update.
5096 2014-02-26 Tom Tromey <tromey@redhat.com>
5098 * minsyms.c (prim_record_minimal_symbol_full): Use
5099 SET_MSYMBOL_VALUE_ADDRESS.
5100 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5101 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5102 SET_MSYMBOL_VALUE_ADDRESS.
5103 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5104 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5106 2014-02-26 Tom Tromey <tromey@redhat.com>
5108 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5109 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5110 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5111 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5112 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5113 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5114 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5115 * ada-lang.c (ada_main_name): Update.
5116 (ada_lookup_simple_minsym): Update.
5117 (ada_make_symbol_completion_list): Update.
5118 (ada_add_standard_exceptions): Update.
5119 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5120 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5121 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5122 * arm-tdep.c (skip_prologue_function): Update.
5123 (arm_skip_stack_protector, arm_skip_stub): Update.
5124 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5125 (arm_wince_skip_main_prologue): Update.
5126 * auxv.c (ld_so_xfer_auxv): Update.
5127 * avr-tdep.c (avr_scan_prologue): Update.
5128 * ax-gdb.c (gen_var_ref): Update.
5129 * block.c (call_site_for_pc): Update.
5130 * blockframe.c (get_pc_function_start): Update.
5131 (find_pc_partial_function_gnu_ifunc): Update.
5132 * breakpoint.c (create_overlay_event_breakpoint): Update.
5133 (create_longjmp_master_breakpoint): Update.
5134 (create_std_terminate_master_breakpoint): Update.
5135 (create_exception_master_breakpoint): Update.
5136 (resolve_sal_pc): Update.
5137 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5138 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5140 * c-valprint.c (c_val_print): Update.
5141 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5142 * coffread.c (coff_symfile_read): Update.
5143 * common/agent.c (agent_look_up_symbols): Update.
5144 * dbxread.c (find_stab_function_addr): Update.
5145 (end_psymtab): Update.
5146 * dwarf2loc.c (call_site_to_target_addr): Update.
5147 (func_verify_no_selftailcall): Update.
5148 (tailcall_dump): Update.
5149 (call_site_find_chain_1): Update.
5150 (dwarf_expr_reg_to_entry_parameter): Update.
5151 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5152 (elf_gnu_ifunc_resolve_by_got): Update.
5153 * f-valprint.c (info_common_command): Update.
5154 * findvar.c (read_var_value): Update.
5155 * frame.c (get_prev_frame_1): Update.
5156 (inside_main_func): Update.
5157 * frv-tdep.c (frv_skip_main_prologue): Update.
5158 (frv_frame_this_id): Update.
5159 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5160 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5161 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5162 (gnuv3_skip_trampoline): Update.
5163 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5164 (hppa64_hpux_in_solib_call_trampoline): Update.
5165 (hppa_hpux_skip_trampoline_code): Update.
5166 (hppa64_hpux_search_dummy_call_sequence): Update.
5167 (hppa_hpux_find_import_stub_for_addr): Update.
5168 (hppa_hpux_find_dummy_bpaddr): Update.
5169 * hppa-tdep.c (hppa_symbol_address)
5170 (hppa_lookup_stub_minimal_symbol): Update.
5171 * i386-tdep.c (i386_skip_main_prologue): Update.
5172 (i386_pe_skip_trampoline_code): Update.
5173 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5174 * infcall.c (get_function_name): Update.
5175 * infcmd.c (until_next_command): Update.
5176 * jit.c (jit_breakpoint_re_set_internal): Update.
5177 (jit_inferior_init): Update.
5178 * linespec.c (minsym_found): Update.
5179 (add_minsym): Update.
5180 * linux-fork.c (info_checkpoints_command): Update.
5181 * linux-nat.c (get_signo): Update.
5182 * linux-thread-db.c (inferior_has_bug): Update.
5183 * m32c-tdep.c (m32c_return_value): Update.
5184 (m32c_m16c_address_to_pointer): Update.
5185 (m32c_m16c_pointer_to_address): Update.
5186 * m32r-tdep.c (m32r_frame_this_id): Update.
5187 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5188 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5189 * maint.c (maintenance_translate_address): Update.
5190 * minsyms.c (add_minsym_to_hash_table): Update.
5191 (add_minsym_to_demangled_hash_table): Update.
5192 (msymbol_objfile): Update.
5193 (lookup_minimal_symbol): Update.
5194 (iterate_over_minimal_symbols): Update.
5195 (lookup_minimal_symbol_text): Update.
5196 (lookup_minimal_symbol_by_pc_name): Update.
5197 (lookup_minimal_symbol_solib_trampoline): Update.
5198 (lookup_minimal_symbol_by_pc_section_1): Update.
5199 (lookup_minimal_symbol_and_objfile): Update.
5200 (prim_record_minimal_symbol_full): Update.
5201 (compare_minimal_symbols): Update.
5202 (compact_minimal_symbols): Update.
5203 (build_minimal_symbol_hash_tables): Update.
5204 (install_minimal_symbols): Update.
5205 (terminate_minimal_symbol_table): Update.
5206 (find_solib_trampoline_target): Update.
5207 (minimal_symbol_upper_bound): Update.
5208 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5209 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5210 (mips_skip_pic_trampoline_code): Update.
5211 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5212 * objc-lang.c (selectors_info): Update.
5213 (classes_info): Update.
5214 (find_methods): Update.
5215 (find_imps): Update.
5216 (find_objc_msgsend): Update.
5217 * objfiles.c (objfile_relocate1): Update.
5218 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5219 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5220 * p-valprint.c (pascal_val_print): Update.
5221 * parse.c (write_exp_msymbol): Update.
5222 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5223 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5224 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5225 * printcmd.c (build_address_symbolic): Update.
5227 (address_info): Update.
5228 * proc-service.c (ps_pglobal_lookup): Update.
5229 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5230 (find_pc_sect_psymtab): Update.
5231 * python/py-framefilter.c (py_print_frame): Update.
5232 * ravenscar-thread.c (get_running_thread_id): Update.
5233 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5235 * remote.c (remote_check_symbols): Update.
5236 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5237 (rs6000_skip_trampoline_code): Update.
5238 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5239 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5240 * solib-dsbt.c (lm_base): Update.
5241 * solib-frv.c (lm_base): Update.
5243 * solib-irix.c (locate_base): Update.
5244 * solib-som.c (som_solib_create_inferior_hook): Update.
5245 (som_solib_desire_dynamic_linker_symbols): Update.
5246 (link_map_start): Update.
5247 * solib-spu.c (spu_enable_break): Update.
5248 (ocl_enable_break): Update.
5249 * solib-svr4.c (elf_locate_base): Update.
5250 (enable_break): Update.
5251 * spu-tdep.c (spu_get_overlay_table): Update.
5252 (spu_catch_start): Update.
5253 (flush_ea_cache): Update.
5254 * stabsread.c (define_symbol): Update.
5255 (scan_file_globals): Update.
5256 * stack.c (find_frame_funname): Update.
5257 (frame_info): Update.
5258 * symfile.c (simple_read_overlay_table): Update.
5259 (simple_overlay_update): Update.
5260 * symmisc.c (dump_msymbols): Update.
5261 * symtab.c (fixup_section): Update.
5262 (find_pc_sect_line): Update.
5263 (skip_prologue_sal): Update.
5264 (search_symbols): Update.
5265 (print_msymbol_info): Update.
5266 (rbreak_command): Update.
5267 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5268 (completion_list_objc_symbol): Update.
5269 (default_make_symbol_completion_list_break_on): Update.
5270 * tracepoint.c (scope_info): Update.
5271 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5272 (tui_get_begin_asm_address): Update.
5273 * valops.c (find_function_in_inferior): Update.
5274 * value.c (value_static_field): Update.
5275 (value_fn_field): Update.
5277 2014-02-26 Tom Tromey <tromey@redhat.com>
5279 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5280 bound minimal symbols. Move code that knows about minsym
5282 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5284 * minsyms.h (minimal_symbol_upper_bound): Declare.
5285 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5286 minimal_symbol_upper_bound.
5288 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5290 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5291 Use the type's name if its basic type does not have a tag.
5293 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5295 * dwarf2read.c (read_subrange_type): Add comment.
5297 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5299 * dwarf2read.c (update_enumeration_type_from_children): New
5300 function, mostly extracted from process_structure_scope.
5301 (read_enumeration_type): Call update_enumeration_type_from_children.
5302 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5303 and flag_flag_enum fields.
5305 2014-02-26 Pedro Alves <palves@redhat.com>
5307 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5308 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5309 to_xfer_partial method.
5311 2014-02-26 Pedro Alves <palves@redhat.com>
5313 * target.c (complete_target_initialization): Don't install
5314 default_xfer_partial as to_xfer_partial hook.
5316 (update_current_target): Don't INHERIT nor de_fault
5317 deprecated_xfer_memory. Delete de_fault macro.
5318 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5319 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5320 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5323 2014-02-26 Pedro Alves <palves@redhat.com>
5325 * go32-nat.c (my_write_child): New function.
5326 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5327 (go32_xfer_partial): New function.
5328 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5329 Instead install a to_xfer_partial hook.
5331 2014-02-26 Pedro Alves <palves@redhat.com>
5333 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5334 to_xfer_partial helper. Rewrite.
5335 (procfs_xfer_partial): New function.
5336 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5337 Install a to_xfer_partial hook.
5339 2014-02-26 Pedro Alves <palves@redhat.com>
5341 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5342 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5343 (m32r_xfer_partial): New function.
5344 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5345 Install a to_xfer_partial hook.
5347 2014-02-26 Pedro Alves <palves@redhat.com>
5349 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5351 (mips_xfer_partial): New function.
5352 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5353 hook. Install a to_xfer_partial hook.
5355 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5357 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5358 * gdbtypes.c (create_array_type_with_stride): New function,
5359 renaming create_array_type, but with an added parameter
5360 called "bit_stride".
5361 (create_array_type): Re-implement using
5362 create_array_type_with_stride.
5363 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5364 and DW_AT_bit_stride attributes.
5366 2014-02-26 Pedro Alves <palves@redhat.com>
5368 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5369 task-specific breakpoints.
5371 2014-02-25 Pedro Alves <palves@redhat.com>
5373 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5374 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5376 2014-02-25 Stan Shebs <stan@codesourcery.com>
5378 * defs.h: Annotate comments for Doxygen.
5380 2014-02-25 Tom Tromey <tromey@redhat.com>
5382 * target.h (target_ignore): Don't declare.
5383 * target.c (target_ignore): Remove.
5385 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5388 * auto-load.c (auto_load_objfile_script_1): Change filename to
5391 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5393 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5394 documentation. Adjust prototype to match the target_ops
5395 to_xfer_partial method. Adjust implementation accordingly.
5397 2014-02-25 Hui Zhu <hui@codesourcery.com>
5399 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5402 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5404 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5405 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5406 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5407 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5408 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5409 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5410 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5411 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5413 (rl78_register_type): Use a data pointer type for SP and
5414 new pseudo registers mentioned above. Use a 16 bit integer
5415 type for all other register pairs.
5416 (rl78_register_name, rl78_g10_register_name): Update for
5417 new pseudo registers.
5418 (rl78_pseudo_register_read): Likewise.
5419 (rl78_pseudo_register_write): Likewise.
5420 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5421 to the newly added pseudo registers.
5423 2014-02-24 Doug Evans <dje@google.com>
5425 * value.c (record_latest_value): Fix comment.
5426 * printcmd.c (print_command_1): Remove code to handle -1 return from
5427 record_latest_value.
5429 2014-02-24 Pedro Alves <palves@redhat.com>
5431 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5432 deprecated_xfer_memory hook.
5433 (procfs_xfer_partial): Call procfs_xfer_memory instead
5434 of the deprecated_xfer_memory target hook.
5435 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5438 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5440 * windows-nat.c (windows_xfer_shared_libraries): Return
5441 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5442 requested object is TARGET_OBJECT_LIBRARIES.
5444 2014-02-24 Yao Qi <yao@codesourcery.com>
5446 * target.h (enum target_xfer_status)
5447 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5448 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5450 * corefile.c (memory_error_message): User updated.
5451 * exec.c (section_table_read_available_memory): Likewise.
5452 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5453 * target.c (target_xfer_status_to_string): Likewise.
5454 (raw_memory_xfer_partial): Likewise.
5455 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5456 * valops.c (read_value_memory): Likewise.
5457 * exec.h: Update comments.
5459 2014-02-24 Yao Qi <yao@codesourcery.com>
5461 * target.c (target_xfer_status_to_string): Rename argument err
5463 * target.h (target_xfer_status_to_string): Update declaration.
5464 Replace target_xfer_error_to_string with
5465 target_xfer_status_to_string in comment.
5467 2014-02-24 Yao Qi <yao@codesourcery.com>
5469 * mips-linux-nat.c (super_close): Update its type.
5470 (mips_linux_close): Pass 'self' to super_close.
5472 2014-02-24 Yao Qi <yao@codesourcery.com>
5474 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5475 * corefile.c (read_memory): Adjusted.
5476 * target.c (target_write_with_progress): Adjusted.
5478 2014-02-23 Yao Qi <yao@codesourcery.com>
5482 2013-10-25 Yao Qi <yao@codesourcery.com>
5484 * remote.c (remote_traceframe_info): Return early if
5485 traceframe is not selected.
5487 2013-07-19 Yao Qi <yao@codesourcery.com>
5489 * target.c (update_current_target): Change the default action
5490 of 'to_traceframe_info' from tcomplain to return_zero.
5491 * target.h (struct target_ops) <to_traceframe_info>: Add more
5494 2014-02-23 Yao Qi <yao@codesourcery.com>
5496 * valops.c (read_value_memory): Rewrite it. Call
5497 target_xfer_partial in a loop.
5498 * exec.h (section_table_available_memory): Remove declaration.
5499 Move comments to ...
5500 * exec.c (section_table_available_memory): ... here. Make it
5503 2014-02-23 Yao Qi <yao@codesourcery.com>
5505 * exec.c (section_table_read_available_memory): New function.
5506 * exec.h (section_table_read_available_memory): Declare.
5507 * ctf.c (ctf_xfer_partial): Call
5508 section_table_read_available_memory.
5509 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5511 2014-02-23 Yao Qi <yao@codesourcery.com>
5513 * ctf.c (ctf_xfer_partial): Move code to ...
5514 * exec.c (exec_read_partial_read_only): ... it. New function.
5515 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5516 * tracefile.c: Include "exec.h".
5517 * exec.h (exec_read_partial_read_only): Declare.
5519 2014-02-23 Yao Qi <yao@codesourcery.com>
5521 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5522 (tfile_has_memory): Remove.
5523 (init_tfile_ops): Don't set fields to_has_all_memory and
5524 to_has_memory of tfile_ops.
5525 * tracefile.c (tracefile_has_all_memory): New function.
5526 (tracefile_has_memory): New function.
5527 (init_tracefile_ops): Initialize fields to_has_all_memory and
5528 to_has_memory of 'ops'.
5530 2014-02-23 Yao Qi <yao@codesourcery.com>
5532 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5533 (ctf_thread_alive, ctf_get_trace_status): Remove.
5534 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5536 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5537 (tfile_has_stack, tfile_has_registers): Remove.
5538 (tfile_thread_alive): Remove.
5539 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5541 * tracefile.c (tracefile_has_stack): New function.
5542 (tracefile_has_registers): New function.
5543 (tracefile_thread_alive): New function.
5544 (tracefile_get_trace_status): New function.
5545 (init_tracefile_ops): New function.
5546 * tracefile.h (init_tracefile_ops): Declare.
5548 2014-02-23 Yao Qi <yao@codesourcery.com>
5550 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5551 (O_LARGEFILE): Likewise.
5552 (tfile_ops): Likewise.
5553 (TRACE_HEADER_SIZE): Likewise.
5554 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5555 (cur_data_size): Likewise.
5556 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5557 (tfile_close, tfile_files_info): Likewise.
5558 (tfile_get_trace_status): Likewise.
5559 (tfile_get_tracepoint_status): Likewise.
5560 (tfile_get_traceframe_address): Likewise.
5561 (tfile_trace_find, match_blocktype): Likewise.
5562 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5563 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5564 (tfile_get_trace_state_variable_value): Likewise.
5565 (tfile_has_all_memory, tfile_has_memory): Likewise.
5566 (tfile_has_stack, tfile_has_registers): Likewise.
5567 (tfile_thread_alive, build_traceframe_info): Likewise.
5568 (tfile_traceframe_info, init_tfile_ops): Likewise.
5569 (_initialize_tracepoint): Don't call init_tfile_ops
5570 and add_target_with_completer.
5571 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5572 exec.h, completer.h and filenames.h.
5573 (_initialize_tracefile_tfile): New function.
5575 2014-02-23 Yao Qi <yao@codesourcery.com>
5577 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5579 (HFILES_NO_SRCDIR): Add tracefile.h.
5580 * ctf.c: Include "tracefile.h".
5581 * tracefile.h: New file.
5582 * tracefile.c: New file
5583 * tracefile-tfile.c: New file.
5584 * tracepoint.c: Include "tracefile.h".
5585 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5586 (stop_reason_names): Add const.
5587 (trace_file_writer_xfree): Move it to tracefile.c.
5588 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5589 (trace_save_ctf): Likewise.
5590 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5591 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5592 (tfile_write_header, tfile_write_regblock_type): Likewise.
5593 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5594 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5595 (tfile_write_raw_data, tfile_end): Likewise.
5596 (tfile_trace_file_writer_new): Likewise.
5597 (free_uploaded_tp): Make it extern.
5598 (free_uploaded_tsv): Make it extern.
5599 (_initialize_tracepoint): Move code to register command 'tsave'
5601 * tracepoint.h (stop_reason_names): Declare.
5602 (struct trace_frame_write_ops): Move it to tracefile.h.
5603 (struct trace_file_write_ops): Likewise.
5604 (struct trace_file_writer): Likewise.
5605 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5607 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5610 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5612 (get_cores_used_by_process): New parameter num_cores, use it.
5613 (linux_xfer_osdata_processes): Pass num_cores to it.
5614 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5617 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5619 * target.c (memory_xfer_partial): Fix length arg in call to
5620 breakpoint_xfer_memory.
5622 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5625 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5626 number comes after the + or - signs. Adjust length of register
5627 name to be extracted.
5629 2014-02-20 Tom Tromey <tromey@redhat.com>
5631 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5632 (ada_varobj_ops): Mark "extern".
5634 2014-02-20 Tom Tromey <tromey@redhat.com>
5636 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5638 2014-02-20 Doug Evans <xdje42@gmail.com>
5640 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5641 All callers updated.
5642 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5643 All callers updated.
5644 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5645 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5647 2014-02-20 lin zuojian <manjian2006@gmail.com>
5648 Joel Brobecker <brobecker@adacore.com>
5649 Doug Evans <xdje42@gmail.com>
5652 * dwarf2read.c (struct die_info): New member in_process.
5653 (reset_die_in_process): New function.
5654 (process_die): Set it at the start, reset when returning.
5655 (inherit_abstract_dies): Only call process_die if origin_child_die
5656 not already being processed.
5658 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5660 * windows-nat.c (handle_unload_dll): Add function documentation.
5661 (do_initial_windows_stuff): Add comment explaining why we wait
5662 until after inferior initialization has finished before
5663 processing all DLLs.
5665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5667 * windows-nat.c (get_module_name): Delete.
5668 (windows_get_exec_module_filename): New function, mostly
5669 inspired from get_module_name.
5670 (windows_pid_to_exec_file): Replace call to get_module_name
5671 by call to windows_get_exec_module_filename.
5673 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5675 * windows-nat.c (handle_load_dll): Rewrite this function's
5676 introductory comment. Remove code using get_module_name
5677 to get the DLL's name.
5679 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5681 * windows-nat.c (get_windows_debug_event): Ignore
5682 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5683 if windows_initialization_done == 0.
5684 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5685 Adjust implementation to always load all DLLs.
5686 (do_initial_windows_stuff): Replace call to
5687 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5691 * windows-nat.c (_initialize_windows_nat): Deprecate the
5692 "dll-symbols" command. Turn the "add-shared-symbol-files"
5693 and "assf" aliases into commands, and deprecate them as well.
5694 * NEWS: Add entry explaining that "dll-symbols" and its two
5695 aliases are now deprecated.
5697 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5699 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5700 new-line in debug string. Remove trailing spaces.
5702 2014-02-19 Stan Shebs <stan@codesourcery.com>
5704 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5706 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5708 * NEWS: Add entry for the new feature
5709 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5712 2014-02-19 Stan Shebs <stan@codesourcery.com>
5714 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5716 2014-02-19 Pedro Alves <palves@redhat.com>
5718 * common/ptid.h (struct ptid): Mention that process_stratum
5719 targets should prefer ptid.lwp.
5721 2014-02-19 Pedro Alves <palves@redhat.com>
5723 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5724 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5725 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5726 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5727 store remote thread ids rather than ptid.tid.
5728 (_initialize_remote): Adjust.
5730 2014-02-19 Tom Tromey <tromey@redhat.com>
5732 * target.c (target_get_unwinder): Rewrite.
5733 (target_get_tailcall_unwinder): Rewrite.
5734 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5735 (record_btrace_to_get_tailcall_unwinder): New function.
5736 (init_record_btrace_ops): Update.
5737 * target.h (struct target_ops) <to_get_unwinder,
5738 to_get_tailcall_unwinder>: Now function pointers. Use
5739 TARGET_DEFAULT_RETURN.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5745 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5751 * target-delegates.c: Rebuild.
5752 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5753 TARGET_DEFAULT_FUNC.
5754 * target.c (default_target_decr_pc_after_break): Rename from
5755 forward_target_decr_pc_after_break. Simplify.
5756 (target_decr_pc_after_break): Rely on delegation.
5758 2014-02-19 Tom Tromey <tromey@redhat.com>
5760 * target.c (update_current_target): Do not INHERIT to_doc or
5761 to_magic. Do not de_fault to_open or to_close.
5763 2014-02-19 Tom Tromey <tromey@redhat.com>
5765 * gcore.h (objfile_find_memory_regions): Declare.
5766 * gcore.c (objfile_find_memory_regions): No longer static. Add
5768 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5769 * exec.c: Include gcore.h.
5770 (exec_set_find_memory_regions): Remove.
5771 (exec_find_memory_regions): Remove.
5772 (exec_do_find_memory_regions): Remove.
5773 (init_exec_ops): Update.
5774 * defs.h (exec_set_find_memory_regions): Remove.
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target-delegates.c: Rebuild.
5779 * target.h (struct target_ops) <to_extra_thread_info,
5780 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5781 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5782 not 0, in TARGET_DEFAULT_RETURN.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target.c (complete_target_initialization): Remove casts. Use
5787 return_zero_has_execution.
5788 (return_zero): Add "ignore" argument.
5789 (return_zero_has_execution): New function.
5790 (init_dummy_target): Remove casts. Use
5791 return_zero_has_execution.
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * target.c (update_current_target): Update comments. Do not
5798 2014-02-19 Tom Tromey <tromey@redhat.com>
5800 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5802 * corelow.c (core_read_description): Delegate when needed.
5803 * remote.c (remote_read_description): Delegate when needed.
5804 * target-delegates.c: Rebuild.
5805 * target.c (target_read_description): Rewrite.
5806 * target.h (struct target_ops) <to_read_description>: Update
5807 comment. Use TARGET_DEFAULT_RETURN.
5809 2014-02-19 Tom Tromey <tromey@redhat.com>
5811 * target-delegates.c: Rebuild.
5812 * target.c (update_current_target): Don't inherit or default
5814 (find_default_run_target): Check against delegate_can_run.
5815 * target.h (struct target_ops) <to_can_run>: Use
5816 TARGET_DEFAULT_RETURN.
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target-delegates.c: Rebuild.
5821 * target.c (target_disconnect): Unconditionally delegate.
5822 * target.h (struct target_ops) <to_disconnect>: Use
5823 TARGET_DEFAULT_NORETURN.
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * record.c (record_stop): Unconditionally delegate.
5828 * target-delegates.c: Rebuild.
5829 * target.c (target_stop_recording): Unconditionally delegate.
5830 * target.h (struct target_ops) <to_stop_recording>: Use
5831 TARGET_DEFAULT_IGNORE.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target-delegates.c: Rebuild.
5836 * target.c (target_enable_btrace): Unconditionally delegate.
5837 * target.h (struct target_ops) <to_enable_btrace>: Use
5838 TARGET_DEFAULT_NORETURN.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target-delegates.c: Rebuild.
5843 * target.c (target_read_btrace): Unconditionally delegate.
5844 * target.h (struct target_ops) <to_read_btrace>: Use
5845 TARGET_DEFAULT_NORETURN.
5847 2014-02-19 Tom Tromey <tromey@redhat.com>
5849 * target-delegates.c: Rebuild.
5850 * target.c (target_teardown_btrace): Unconditionally delegate.
5851 * target.h (struct target_ops) <to_teardown_btrace>: Use
5852 TARGET_DEFAULT_NORETURN.
5854 2014-02-19 Tom Tromey <tromey@redhat.com>
5856 * target-delegates.c: Rebuild.
5857 * target.c (target_disable_btrace): Unconditionally delegate.
5858 * target.h (struct target_ops) <to_disable_btrace>: Use
5859 TARGET_DEFAULT_NORETURN.
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * target-delegates.c: Rebuild.
5864 * target.c (default_search_memory): New function.
5865 (simple_search_memory): Update comment.
5866 (target_search_memory): Unconditionally delegate.
5867 * target.h (struct target_ops) <to_search_memory>: Use
5868 TARGET_DEFAULT_FUNC.
5870 2014-02-19 Tom Tromey <tromey@redhat.com>
5872 * auxv.c (default_auxv_parse): No longer static.
5873 (target_auxv_parse): Unconditionally delegate.
5874 * auxv.h (default_auxv_parse): Declare.
5875 * target-delegates.c: Rebuild.
5876 * target.c: Include auxv.h.
5877 * target.h (struct target_ops) <to_auxv_parse>: Use
5878 TARGET_DEFAULT_FUNC.
5880 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target-delegates.c: Rebuild.
5883 * target.c (target_memory_map): Unconditionally delegate.
5884 * target.h (struct target_ops) <to_memory_map>: Use
5885 TARGET_DEFAULT_RETURN.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target-delegates.c: Rebuild.
5890 * target.c (target_thread_alive): Unconditionally delegate.
5891 * target.h (struct target_ops) <to_thread_alive>: Use
5892 TARGET_DEFAULT_RETURN.
5894 2014-02-19 Tom Tromey <tromey@redhat.com>
5896 * target-delegates.c: Rebuild.
5897 * target.c (target_save_record): Unconditionally delegate.
5898 * target.h (struct target_ops) <to_save_record>: Use
5899 TARGET_DEFAULT_NORETURN.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target-delegates.c: Rebuild.
5904 * target.c (target_delete_record): Unconditionally delegate.
5905 * target.h (struct target_ops) <to_delete_record>: Use
5906 TARGET_DEFAULT_NORETURN.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (target_record_is_replaying): Unconditionally
5913 * target.h (struct target_ops) <to_record_is_replaying>: Use
5914 TARGET_DEFAULT_RETURN.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target-delegates.c: Rebuild.
5919 * target.c (target_goto_record_begin): Unconditionally delegate.
5920 * target.h (struct target_ops) <to_goto_record_begin>: Use
5921 TARGET_DEFAULT_NORETURN.
5923 2014-02-19 Tom Tromey <tromey@redhat.com>
5925 * target-delegates.c: Rebuild.
5926 * target.c (target_goto_record_end): Unconditionally delegate.
5927 * target.h (struct target_ops) <to_goto_record_end>: Use
5928 TARGET_DEFAULT_NORETURN.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * target-delegates.c: Rebuild.
5933 * target.c (target_goto_record): Unconditionally delegate.
5934 * target.h (struct target_ops) <to_goto_record>: Use
5935 TARGET_DEFAULT_NORETURN.
5937 2014-02-19 Tom Tromey <tromey@redhat.com>
5939 * target-delegates.c: Rebuild.
5940 * target.c (target_insn_history): Unconditionally delegate.
5941 * target.h (struct target_ops) <to_insn_history>: Use
5942 TARGET_DEFAULT_NORETURN.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target-delegates.c: Rebuild.
5947 * target.c (target_insn_history_from): Unconditionally delegate.
5948 * target.h (struct target_ops) <to_insn_history_from>: Use
5949 TARGET_DEFAULT_NORETURN.
5951 2014-02-19 Tom Tromey <tromey@redhat.com>
5953 * target-delegates.c: Rebuild.
5954 * target.c (target_insn_history_range): Unconditionally delegate.
5955 * target.h (struct target_ops) <to_insn_history_range>: Use
5956 TARGET_DEFAULT_NORETURN.
5958 2014-02-19 Tom Tromey <tromey@redhat.com>
5960 * target-delegates.c: Rebuild.
5961 * target.c (target_call_history): Unconditionally delegate.
5962 * target.h (struct target_ops) <to_call_history>: Use
5963 TARGET_DEFAULT_NORETURN.
5965 2014-02-19 Tom Tromey <tromey@redhat.com>
5967 * target-delegates.c: Rebuild.
5968 * target.c (target_call_history_from): Unconditionally delegate.
5969 * target.h (struct target_ops) <to_call_history_from>: Use
5970 TARGET_DEFAULT_NORETURN.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target-delegates.c: Rebuild.
5975 * target.c (target_call_history_range): Unconditionally delegate.
5976 * target.h (struct target_ops) <to_call_history_range>: Use
5977 TARGET_DEFAULT_NORETURN.
5979 2014-02-19 Tom Tromey <tromey@redhat.com>
5981 * target-delegates.c: Rebuild.
5982 * target.c (target_verify_memory): Unconditionally delegate.
5983 * target.h (struct target_ops) <to_verify_memory>: Use
5984 TARGET_DEFAULT_NORETURN.
5986 2014-02-19 Tom Tromey <tromey@redhat.com>
5988 * target-delegates.c: Rebuild.
5989 * target.c (target_core_of_thread): Unconditionally delegate.
5990 * target.h (struct target_ops) <to_core_of_thread>: Use
5991 TARGET_DEFAULT_RETURN.
5993 2014-02-19 Tom Tromey <tromey@redhat.com>
5995 * target-delegates.c: Rebuild.
5996 * target.c (target_flash_done): Unconditionally delegate.
5997 * target.h (struct target_ops) <to_flash_done>: Use
5998 TARGET_DEFAULT_NORETURN.
6000 2014-02-19 Tom Tromey <tromey@redhat.com>
6002 * target-delegates.c: Rebuild.
6003 * target.c (target_flash_erase): Unconditionally delegate.
6004 * target.h (struct target_ops) <to_flash_erase>: Use
6005 TARGET_DEFAULT_NORETURN.
6007 2014-02-19 Tom Tromey <tromey@redhat.com>
6009 * target-delegates.c: Rebuild.
6010 * target.c (target_get_section_table): Unconditionally delegate.
6011 * target.h (struct target_ops) <to_get_section_table>: Use
6012 TARGET_DEFAULT_RETURN.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target-delegates.c: Rebuild.
6017 * target.c (target_pid_to_str): Unconditionally delegate.
6018 (init_dummy_target): Don't initialize to_pid_to_str.
6019 (default_pid_to_str): Rename from dummy_pid_to_str.
6020 * target.h (struct target_ops) <to_pid_to_str>: Use
6021 TARGET_DEFAULT_FUNC.
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * target-delegates.c: Rebuild.
6026 * target.c (target_find_new_threads): Unconditionally delegate.
6027 * target.h (struct target_ops) <to_find_new_threads>: Use
6028 TARGET_DEFAULT_RETURN.
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target-delegates.c: Rebuild.
6033 * target.c (target_program_signals): Unconditionally delegate.
6034 * target.h (struct target_ops) <to_program_signals>: Use
6035 TARGET_DEFAULT_IGNORE.
6037 2014-02-19 Tom Tromey <tromey@redhat.com>
6039 * target-delegates.c: Rebuild.
6040 * target.c (target_pass_signals): Unconditionally delegate.
6041 * target.h (struct target_ops) <to_pass_signals>: Use
6042 TARGET_DEFAULT_IGNORE.
6044 2014-02-19 Tom Tromey <tromey@redhat.com>
6046 * target-delegates.c: Rebuild.
6047 * target.c (default_mourn_inferior): New function.
6048 (target_mourn_inferior): Unconditionally delegate.
6049 * target.h (struct target_ops) <to_mourn_inferior>: Use
6050 TARGET_DEFAULT_FUNC.
6052 2014-02-19 Tom Tromey <tromey@redhat.com>
6054 * target-delegates.c: Rebuild.
6055 * target.c (default_follow_fork): New function.
6056 (target_follow_fork): Unconditionally delegate.
6057 * target.h (struct target_ops) <to_follow_fork>: Use
6058 TARGET_DEFAULT_FUNC.
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target-delegates.c: Rebuild.
6063 * target.c (target_kill): Unconditionally delegate.
6064 * target.h (struct target_ops) <to_kill>: Use
6065 TARGET_DEFAULT_NORETURN.
6067 2014-02-19 Tom Tromey <tromey@redhat.com>
6069 * target-delegates.c: Rebuild.
6070 * target.c (target_masked_watch_num_registers): Unconditionally
6072 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6073 Use TARGET_DEFAULT_RETURN.
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target-delegates.c: Rebuild.
6078 * target.c (target_remove_mask_watchpoint): Unconditionally
6080 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6081 TARGET_DEFAULT_RETURN.
6083 2014-02-19 Tom Tromey <tromey@redhat.com>
6085 * target-delegates.c: Rebuild.
6086 * target.c (target_insert_mask_watchpoint): Unconditionally
6088 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6089 TARGET_DEFAULT_RETURN.
6091 2014-02-19 Tom Tromey <tromey@redhat.com>
6093 * target-delegates.c: Rebuild.
6094 * target.c (target_ranged_break_num_registers): Unconditionally
6096 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6097 Use TARGET_DEFAULT_RETURN.
6099 2014-02-19 Tom Tromey <tromey@redhat.com>
6101 * target-delegates.c: Rebuild.
6102 * target.c (target_fetch_registers): Unconditionally delegate.
6103 * target.h (struct target_ops) <to_fetch_registers>: Use
6104 TARGET_DEFAULT_NORETURN.
6106 2014-02-19 Tom Tromey <tromey@redhat.com>
6108 * target-delegates.c: Rebuild.
6109 * target.c (update_current_target): Don't inherit or default
6111 * target.h (struct target_ops) <to_stop>: Use
6112 TARGET_DEFAULT_IGNORE.
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6116 * target-delegates.c: Rebuild.
6117 * target.c (update_current_target): Don't inherit or default
6118 to_can_run_breakpoint_commands.
6119 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6120 Use TARGET_DEFAULT_RETURN.
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target-delegates.c: Rebuild.
6125 * target.c (update_current_target): Don't inherit or default
6126 to_supports_evaluation_of_breakpoint_conditions.
6127 * target.h (struct target_ops)
6128 <to_supports_evaluation_of_breakpoint_conditions>: Use
6129 TARGET_DEFAULT_RETURN.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target-delegates.c: Rebuild.
6134 * target.c (update_current_target): Don't inherit or default
6135 to_augmented_libraries_svr4_read.
6136 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6137 Use TARGET_DEFAULT_RETURN.
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target-delegates.c: Rebuild.
6142 * target.c (update_current_target): Don't inherit or default
6144 * target.h (struct target_ops) <to_can_use_agent>: Use
6145 TARGET_DEFAULT_RETURN.
6147 2014-02-19 Tom Tromey <tromey@redhat.com>
6149 * target-delegates.c: Rebuild.
6150 * target.c (update_current_target): Don't inherit or default
6152 * target.h (struct target_ops) <to_use_agent>: Use
6153 TARGET_DEFAULT_NORETURN.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target-delegates.c: Rebuild.
6158 * target.c (update_current_target): Don't inherit or default
6160 (return_null): Remove.
6161 * target.h (struct target_ops) <to_traceframe_info>: Use
6162 TARGET_DEFAULT_RETURN.
6164 2014-02-19 Tom Tromey <tromey@redhat.com>
6166 * target-delegates.c: Rebuild.
6167 * target.c (update_current_target): Don't inherit or default
6168 to_static_tracepoint_markers_by_strid.
6169 * target.h (struct target_ops)
6170 <to_static_tracepoint_markers_by_strid>: Use
6171 TARGET_DEFAULT_NORETURN.
6173 2014-02-19 Tom Tromey <tromey@redhat.com>
6175 * target-delegates.c: Rebuild.
6176 * target.c (update_current_target): Don't inherit or default
6177 to_static_tracepoint_marker_at.
6178 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6179 Use TARGET_DEFAULT_RETURN.
6181 2014-02-19 Tom Tromey <tromey@redhat.com>
6183 * target-delegates.c: Rebuild.
6184 * target.c (update_current_target): Don't inherit or default
6186 * target.h (struct target_ops) <to_set_permissions>: Use
6187 TARGET_DEFAULT_IGNORE.
6189 2014-02-19 Tom Tromey <tromey@redhat.com>
6191 * target-delegates.c: Rebuild.
6192 * target.c (update_current_target): Don't inherit or default
6194 * target.h (struct target_ops) <to_get_tib_address>: Use
6195 TARGET_DEFAULT_NORETURN.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target-delegates.c: Rebuild.
6200 * target.c (update_current_target): Don't inherit or default
6202 * target.h (struct target_ops) <to_set_trace_notes>: Use
6203 TARGET_DEFAULT_RETURN.
6205 2014-02-19 Tom Tromey <tromey@redhat.com>
6207 * target-delegates.c: Rebuild.
6208 * target.c (update_current_target): Don't initialize
6209 to_set_trace_buffer_size.
6210 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6211 TARGET_DEFAULT_IGNORE.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target-delegates.c: Rebuild.
6216 * target.c (update_current_target): Don't inherit or default
6217 to_set_circular_trace_buffer.
6218 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6219 TARGET_DEFAULT_IGNORE.
6221 2014-02-19 Tom Tromey <tromey@redhat.com>
6223 * target-delegates.c: Rebuild.
6224 * target.c (update_current_target): Don't inherit or default
6225 to_set_disconnected_tracing.
6226 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6227 TARGET_DEFAULT_IGNORE.
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * target-delegates.c: Rebuild.
6232 * target.c (update_current_target): Don't inherit or default
6233 to_get_min_fast_tracepoint_insn_len.
6234 (return_minus_one): Remove.
6235 * target.h (struct target_ops)
6236 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * target-delegates.c: Rebuild.
6241 * target.c (update_current_target): Don't inherit or default
6242 to_get_raw_trace_data.
6243 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6244 TARGET_DEFAULT_NORETURN.
6246 2014-02-19 Tom Tromey <tromey@redhat.com>
6248 * target-delegates.c: Rebuild.
6249 * target.c (update_current_target): Don't inherit or default
6250 to_upload_trace_state_variables.
6251 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6252 Use TARGET_DEFAULT_RETURN.
6254 2014-02-19 Tom Tromey <tromey@redhat.com>
6256 * target-delegates.c: Rebuild.
6257 * target.c (update_current_target): Don't inherit or default
6258 to_upload_tracepoints.
6259 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6260 TARGET_DEFAULT_RETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (update_current_target): Don't inherit or default
6267 * target.h (struct target_ops) <to_save_trace_data>: Use
6268 TARGET_DEFAULT_NORETURN.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target-delegates.c: Rebuild.
6273 * target.c (update_current_target): Don't inherit or default
6274 to_get_trace_state_variable_value.
6275 * target.h (struct target_ops)
6276 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target-delegates.c: Rebuild.
6281 * target.c (update_current_target): Don't inherit or default
6283 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6287 * target-delegates.c: Rebuild.
6288 * target.c (update_current_target): Don't inherit or default
6290 * target.h (struct target_ops) <to_trace_stop>: Use
6291 TARGET_DEFAULT_NORETURN.
6293 2014-02-19 Tom Tromey <tromey@redhat.com>
6295 * target-delegates.c: Rebuild.
6296 * target.c (update_current_target): Don't inherit or default
6297 to_get_tracepoint_status.
6298 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6299 TARGET_DEFAULT_NORETURN.
6301 2014-02-19 Tom Tromey <tromey@redhat.com>
6303 * target-delegates.c: Rebuild.
6304 * target.c (update_current_target): Don't inherit or default
6305 to_get_trace_status.
6306 * target.h (struct target_ops) <to_get_trace_status>: Use
6307 TARGET_DEFAULT_RETURN.
6309 2014-02-19 Tom Tromey <tromey@redhat.com>
6311 * target-delegates.c: Rebuild.
6312 * target.c (update_current_target): Don't inherit or default
6314 * target.h (struct target_ops) <to_trace_start>: Use
6315 TARGET_DEFAULT_NORETURN.
6317 2014-02-19 Tom Tromey <tromey@redhat.com>
6319 * target-delegates.c: Rebuild.
6320 * target.c (update_current_target): Don't inherit or default
6321 to_trace_set_readonly_regions.
6322 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6323 Use TARGET_DEFAULT_NORETURN.
6325 2014-02-19 Tom Tromey <tromey@redhat.com>
6327 * target-delegates.c: Rebuild.
6328 * target.c (update_current_target): Don't inherit or default
6329 to_disable_tracepoint.
6330 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6331 TARGET_DEFAULT_NORETURN.
6333 2014-02-19 Tom Tromey <tromey@redhat.com>
6335 * target-delegates.c: Rebuild.
6336 * target.c (update_current_target): Don't inherit or default
6337 to_enable_tracepoint.
6338 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6339 TARGET_DEFAULT_NORETURN.
6341 2014-02-19 Tom Tromey <tromey@redhat.com>
6343 * target-delegates.c: Rebuild.
6344 * target.c (update_current_target): Don't inherit or default
6345 to_download_trace_state_variable.
6346 * target.h (struct target_ops) <to_download_trace_state_variable>:
6347 Use TARGET_DEFAULT_NORETURN.
6349 2014-02-19 Tom Tromey <tromey@redhat.com>
6351 * target-delegates.c: Rebuild.
6352 * target.c (update_current_target): Don't inherit or default
6353 to_can_download_tracepoint.
6354 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6355 TARGET_DEFAULT_RETURN.
6357 2014-02-19 Tom Tromey <tromey@redhat.com>
6359 * target-delegates.c: Rebuild.
6360 * target.c (update_current_target): Don't inherit or default
6361 to_download_tracepoint.
6362 * target.h (struct target_ops) <to_download_tracepoint>: Use
6363 TARGET_DEFAULT_NORETURN.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target-delegates.c: Rebuild.
6368 * target.c (update_current_target): Don't inherit or default
6370 * target.h (struct target_ops) <to_trace_init>: Use
6371 TARGET_DEFAULT_RETURN.
6373 2014-02-19 Tom Tromey <tromey@redhat.com>
6375 * target-delegates.c: Rebuild.
6376 * target.c (update_current_target): Don't inherit or default
6377 to_supports_string_tracing.
6378 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6379 TARGET_DEFAULT_RETURN.
6381 2014-02-19 Tom Tromey <tromey@redhat.com>
6383 * target-delegates.c: Rebuild.
6384 * target.c (update_current_target): Don't inherit or default
6385 to_supports_enable_disable_tracepoint.
6386 * target.h (struct target_ops)
6387 <to_supports_enable_disable_tracepoint>: Use
6388 TARGET_DEFAULT_RETURN.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target-delegates.c: Rebuild.
6393 * target.c (update_current_target): Don't inherit or default
6394 to_supports_multi_process.
6395 * target.h (struct target_ops) <to_supports_multi_process>: Use
6396 TARGET_DEFAULT_RETURN.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target-delegates.c: Rebuild.
6401 * target.c (update_current_target): Don't inherit or default
6402 to_get_ada_task_ptid.
6403 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6404 TARGET_DEFAULT_FUNC.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target-delegates.c: Rebuild.
6409 * target.c (update_current_target): Don't inherit or default
6410 to_thread_architecture.
6411 * target.h (struct target_ops) <to_thread_architecture>: Use
6412 TARGET_DEFAULT_FUNC.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (update_current_target): Don't inherit or default
6418 to_execution_direction.
6419 * target.h (struct target_ops) <to_execution_direction>: Use
6420 TARGET_DEFAULT_FUNC.
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target-delegates.c: Rebuild.
6425 * target.c (update_current_target): Don't inherit or default
6426 to_can_execute_reverse.
6427 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6428 TARGET_DEFAULT_RETURN.
6429 (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark): Remove.
6437 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6438 * target.h (struct target_ops) <to_goto_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
6446 (dummy_get_bookmark): Remove.
6447 (init_dummy_target): Don't inherit or default to_get_bookmark.
6448 * target.h (struct target_ops) <to_get_bookmark>: Use
6449 TARGET_DEFAULT_NORETURN
6451 2014-02-19 Tom Tromey <tromey@redhat.com>
6453 * target-delegates.c: Rebuild.
6454 * target.c (update_current_target): Don't inherit or default
6455 to_make_corefile_notes.
6456 (init_dummy_target): Don't initialize to_make_corefile_notes.
6457 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6458 TARGET_DEFAULT_FUNC.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target-delegates.c: Rebuild.
6463 * target.c (update_current_target): Don't inherit or default
6464 to_find_memory_regions.
6465 (init_dummy_target): Don't initialize to_find_memory_regions.
6466 * target.h (struct target_ops) <to_find_memory_regions>: Use
6467 TARGET_DEFAULT_FUNC.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (update_current_target): Don't inherit or default
6474 * target.h (struct target_ops) <to_log_command>: Use
6475 TARGET_DEFAULT_IGNORE.
6476 (target_log_command): Unconditionally delegate.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target-delegates.c: Rebuild.
6481 * target.c (update_current_target): Don't inherit or default
6482 to_pid_to_exec_file.
6483 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6484 TARGET_DEFAULT_RETURN.
6486 2014-02-19 Tom Tromey <tromey@redhat.com>
6488 * target-delegates.c: Rebuild.
6489 * target.c (update_current_target): Don't inherit or default
6491 (target_thread_name): Unconditionally delegate.
6492 * target.h (struct target_ops) <to_thread_name>: Use
6493 TARGET_DEFAULT_RETURN.
6495 2014-02-19 Tom Tromey <tromey@redhat.com>
6497 * target-delegates.c: Rebuild.
6498 * target.c (update_current_target): Don't inherit or default
6499 to_extra_thread_info.
6500 * target.h (struct target_ops) <to_extra_thread_info>: Use
6501 TARGET_DEFAULT_RETURN.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (update_current_target): Don't inherit or default
6508 * target.h (struct target_ops) <to_has_exited>: Use
6509 TARGET_DEFAULT_RETURN..
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (update_current_target): Don't inherit or default
6515 to_set_syscall_catchpoint.
6516 (return_one): Remove.
6517 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6518 TARGET_DEFAULT_RETURN.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (update_current_target): Don't inherit or default
6524 to_insert_exec_catchpoint.
6525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6526 TARGET_DEFAULT_RETURN.
6528 2014-01-08 Tom Tromey <tromey@redhat.com>
6530 * target-delegates.c: Rebuild.
6531 * target.c (update_current_target): Don't inherit or default
6532 to_insert_exec_catchpoint.
6533 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6534 TARGET_DEFAULT_RETURN.
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target-delegates.c: Rebuild.
6539 * target.c (update_current_target): Don't inherit or default
6540 to_remove_vfork_catchpoint.
6541 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6542 TARGET_DEFAULT_RETURN.
6544 2014-02-19 Tom Tromey <tromey@redhat.com>
6546 * target-delegates.c: Rebuild.
6547 * target.c (update_current_target): Don't inherit or default
6548 to_insert_vfork_catchpoint.
6549 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6550 TARGET_DEFAULT_RETURN.
6552 2014-02-19 Tom Tromey <tromey@redhat.com>
6554 * target-delegates.c: Rebuild.
6555 * target.c (update_current_target): Don't inherit or default
6556 to_remove_fork_catchpoint.
6557 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6558 TARGET_DEFAULT_RETURN.
6560 2014-02-19 Tom Tromey <tromey@redhat.com>
6562 * target-delegates.c: Rebuild.
6563 * target.c (update_current_target): Don't inherit or default
6564 to_insert_fork_catchpoint.
6565 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6566 TARGET_DEFAULT_RETURN.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * target-delegates.c: Rebuild.
6571 * target.c (update_current_target): Don't inherit or default
6572 to_post_startup_inferior.
6573 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6574 TARGET_DEFAULT_IGNORE.
6576 2014-02-19 Tom Tromey <tromey@redhat.com>
6578 * target-delegates.c: Rebuild.
6579 * target.c (update_current_target): Don't inherit or default
6581 * target.h (struct target_ops) <to_load>: Use
6582 TARGET_DEFAULT_NORETURN.
6584 2014-02-19 Tom Tromey <tromey@redhat.com>
6586 * target-delegates.c: Rebuild.
6587 * target.c (update_current_target): Don't inherit or default
6589 * target.h (struct target_ops) <to_terminal_info>: Use
6590 TARGET_DEFAULT_FUNC.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target-delegates.c: Rebuild.
6595 * target.c (update_current_target): Don't inherit or default
6596 to_terminal_save_ours.
6597 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6598 TARGET_DEFAULT_IGNORE.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6605 * target.h (struct target_ops) <to_terminal_ours>: Use
6606 TARGET_DEFAULT_IGNORE.
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target-delegates.c: Rebuild.
6611 * target.c (update_current_target): Don't inherit or default
6612 to_terminal_ours_for_output.
6613 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6614 TARGET_DEFAULT_IGNORE.
6616 2014-02-19 Tom Tromey <tromey@redhat.com>
6618 * target-delegates.c: Rebuild.
6619 * target.c (update_current_target): Don't inherit or default
6620 to_terminal_inferior.
6621 * target.h (struct target_ops) <to_terminal_inferior>: Use
6622 TARGET_DEFAULT_IGNORE.
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6626 * target-delegates.c: Rebuild.
6627 * target.c (update_current_target): Don't inherit or default
6629 * target.h (struct target_ops) <to_terminal_init>: Use
6630 TARGET_DEFAULT_IGNORE.
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target-delegates.c: Rebuild.
6635 * target.c (update_current_target): Don't inherit or default
6636 to_can_accel_watchpoint_condition.
6637 * target.h (struct target_ops)
6638 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * target-delegates.c: Rebuild.
6643 * target.c (update_current_target): Don't inherit or default
6644 to_region_ok_for_hw_watchpoint.
6645 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6646 Use TARGET_DEFAULT_FUNC.
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target-delegates.c: Rebuild.
6651 * target.c (update_current_target): Don't inherit or default
6652 to_watchpoint_addr_within_range.
6653 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6654 Use TARGET_DEFAULT_FUNC.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target-delegates.c: Rebuild.
6659 * target.c (update_current_target): Don't inherit or default
6660 to_remove_watchpoint.
6661 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6662 TARGET_DEFAULT_NORETURN.
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * target-delegates.c: Rebuild.
6667 * target.c (update_current_target): Don't inherit or default
6668 to_insert_watchpoint.
6669 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6670 TARGET_DEFAULT_RETURN.
6672 2014-02-19 Tom Tromey <tromey@redhat.com>
6674 * target-delegates.c: Rebuild.
6675 * target.c (update_current_target): Don't inherit or default
6676 to_remove_hw_breakpoint.
6677 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6678 TARGET_DEFAULT_RETURN.
6680 2014-02-19 Tom Tromey <tromey@redhat.com>
6682 * target-delegates.c: Rebuild.
6683 * target.c (update_current_target): Don't inherit or default
6684 to_insert_hw_breakpoint.
6685 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6686 TARGET_DEFAULT_RETURN.
6688 2014-02-19 Tom Tromey <tromey@redhat.com>
6690 * target-delegates.c: Rebuild.
6691 * target.c (update_current_target): Don't inherit or default
6692 to_can_use_hw_breakpoint.
6693 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6694 TARGET_DEFAULT_RETURN.
6696 2014-02-19 Tom Tromey <tromey@redhat.com>
6698 * target-delegates.c: Rebuild.
6699 * target.c (update_current_target): Don't inherit or default
6701 * target.h (struct target_ops) <to_files_info>: Use
6702 TARGET_DEFAULT_IGNORE.
6704 2014-02-19 Tom Tromey <tromey@redhat.com>
6706 * target-delegates.c: Rebuild.
6707 * target.c (update_current_target): Don't inherit or default
6709 * target.h (struct target_ops) <to_store>: Use
6710 TARGET_DEFAULT_NORETURN.
6712 2014-02-19 Tom Tromey <tromey@redhat.com>
6714 * target-delegates.c: Rebuild.
6715 * target.c (update_current_target): Don't inherit or default
6717 * target.h (struct target_ops) <to_post_attach>: Use
6718 TARGET_DEFAULT_IGNORE.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target-delegates.c: Rebuild.
6723 * target.c (update_current_target): Don't inherit or default
6725 (default_rcmd): New function.
6726 (do_monitor_command): Unconditionally delegate.
6727 * target.h (struct target_ops) <to_rmcd>: Use
6728 TARGET_DEFAULT_FUNC.
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * target-delegates.c: Rebuild.
6733 * target.c (init_dummy_target): Don't initialize to_attach.
6734 (target_attach): Unconditionally delegate.
6735 * target.h (struct target_ops) <to_attach>: Use
6736 TARGET_DEFAULT_FUNC.
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target-delegates.c: Rebuild.
6741 * target.c (target_detach): Unconditionally delegate.
6742 (init_dummy_target): Don't initialize to_detach.
6743 * target.h (struct target_ops) <to_detach>: Use
6744 TARGET_DEFAULT_IGNORE.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6750 (target_augmented_libraries_svr4_read): Add argument.
6751 * target.c (update_current_target): Update.
6752 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6755 2014-02-19 Tom Tromey <tromey@redhat.com>
6757 * target.h (struct target_ops) <to_call_history_range>: Add
6759 * target.c (target_call_history_range): Add argument.
6760 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6762 (record_btrace_call_history_from): Update.
6764 2014-02-19 Tom Tromey <tromey@redhat.com>
6766 * target.h (struct target_ops) <to_call_history_from>: Add
6768 * target.c (target_call_history_from): Add argument.
6769 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6772 2014-02-19 Tom Tromey <tromey@redhat.com>
6774 * target.h (struct target_ops) <to_call_history>: Add argument.
6775 * target.c (target_call_history): Add argument.
6776 * record-btrace.c (record_btrace_call_history): Add 'self'
6779 2014-02-19 Tom Tromey <tromey@redhat.com>
6781 * target.h (struct target_ops) <to_insn_history_range>: Add
6783 * target.c (target_insn_history_range): Add argument.
6784 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6786 (record_btrace_insn_history_from): Update.
6788 2014-02-19 Tom Tromey <tromey@redhat.com>
6790 * target.h (struct target_ops) <to_insn_history_from>: Add
6792 * target.c (target_insn_history_from): Add argument.
6793 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6798 * target.h (struct target_ops) <to_insn_history>: Add argument.
6799 * target.c (target_insn_history): Add argument.
6800 * record-btrace.c (record_btrace_insn_history): Add 'self'
6803 2014-02-19 Tom Tromey <tromey@redhat.com>
6805 * target.h (struct target_ops) <to_goto_record>: Add argument.
6806 * target.c (target_goto_record): Add argument.
6807 * record-full.c (record_full_goto): Add 'self' argument.
6808 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6810 2014-02-19 Tom Tromey <tromey@redhat.com>
6812 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6813 * target.c (target_goto_record_end): Add argument.
6814 * record-full.c (record_full_goto_end): Add 'self' argument.
6815 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6817 2014-02-19 Tom Tromey <tromey@redhat.com>
6819 * target.h (struct target_ops) <to_goto_record_begin>: Add
6821 * target.c (target_goto_record_begin): Add argument.
6822 * record-full.c (record_full_goto_begin): Add 'self' argument.
6823 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6826 2014-02-19 Tom Tromey <tromey@redhat.com>
6828 * target.h (struct target_ops) <to_record_is_replaying>: Add
6830 * target.c (target_record_is_replaying): Add argument.
6831 * record-full.c (record_full_is_replaying): Add 'self' argument.
6832 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6834 (record_btrace_xfer_partial, record_btrace_store_registers)
6835 (record_btrace_prepare_to_store, record_btrace_resume)
6836 (record_btrace_wait, record_btrace_decr_pc_after_break)
6837 (record_btrace_find_new_threads, record_btrace_thread_alive):
6840 2014-02-19 Tom Tromey <tromey@redhat.com>
6842 * target.h (struct target_ops) <to_delete_record>: Add argument.
6843 * target.c (target_delete_record): Add argument.
6844 * record-full.c (record_full_delete): Add 'self' argument.
6846 2014-02-19 Tom Tromey <tromey@redhat.com>
6848 * target.h (struct target_ops) <to_save_record>: Add argument.
6849 * target.c (target_save_record): Add argument.
6850 * record-full.c (record_full_save): Add 'self' argument.
6851 (record_full_save): Add 'self' argument.
6853 2014-02-19 Tom Tromey <tromey@redhat.com>
6855 * target.h (struct target_ops) <to_info_record>: Add argument.
6856 * target.c (target_info_record): Add argument.
6857 * record.c (info_record_command): Add argument.
6858 * record-full.c (record_full_info): Add 'self' argument.
6859 * record-btrace.c (record_btrace_info): Add 'self' argument.
6861 2014-02-19 Tom Tromey <tromey@redhat.com>
6863 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6864 * target.c (target_stop_recording): Add argument.
6865 * record.c (record_stop): Add argument.
6866 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6869 2014-02-19 Tom Tromey <tromey@redhat.com>
6871 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6872 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6873 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6875 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6876 (_initialize_amd64_linux_nat): Use it.
6877 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6878 (_initialize_i386_linux_nat): Use it.
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6883 * target.c (target_teardown_btrace): Add argument.
6884 * remote.c (remote_teardown_btrace): Add 'self' argument.
6885 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6887 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6890 2014-02-19 Tom Tromey <tromey@redhat.com>
6892 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6893 * target.c (target_disable_btrace): Add argument.
6894 * remote.c (remote_disable_btrace): Add 'self' argument.
6895 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6897 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6900 2014-02-19 Tom Tromey <tromey@redhat.com>
6902 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6903 * target.c (target_enable_btrace): Add argument.
6904 * remote.c (remote_enable_btrace): Add 'self' argument.
6905 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6907 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6910 2014-02-19 Tom Tromey <tromey@redhat.com>
6912 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6913 (target_can_use_agent): Add argument.
6914 * target.c (update_current_target): Update.
6915 * remote.c (remote_can_use_agent): Add 'self' argument.
6916 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6918 2014-02-19 Tom Tromey <tromey@redhat.com>
6920 * target.h (struct target_ops) <to_use_agent>: Add argument.
6921 (target_use_agent): Add argument.
6922 * target.c (update_current_target): Update.
6923 * remote.c (remote_use_agent): Add 'self' argument.
6924 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6929 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6930 (target_traceframe_info): Add argument.
6931 * target.c (update_current_target): Update.
6932 * remote.c (remote_traceframe_info): Add 'self' argument.
6933 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6937 * target.h (target_static_tracepoint_markers_by_strid): Add
6939 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6941 * target.c (update_current_target): Update.
6942 * remote.c (struct target_ops)
6943 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6944 * linux-nat.c (struct target_ops)
6945 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6947 2014-02-19 Tom Tromey <tromey@redhat.com>
6949 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6951 (target_static_tracepoint_marker_at): Add argument.
6952 * target.c (update_current_target): Update.
6953 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6956 2014-02-19 Tom Tromey <tromey@redhat.com>
6958 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6959 (target_set_permissions): Add argument.
6960 * target.c (update_current_target): Update.
6961 * remote.c (remote_set_permissions): Add 'self' argument.
6962 (remote_start_remote): Update.
6964 2014-02-19 Tom Tromey <tromey@redhat.com>
6966 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6967 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6968 (target_get_tib_address): Add argument.
6969 * target.c (update_current_target): Update.
6970 * remote.c (remote_get_tib_address): Add 'self' argument.
6972 2014-02-19 Tom Tromey <tromey@redhat.com>
6974 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6975 (target_set_trace_notes): Add argument.
6976 * target.c (update_current_target): Update.
6977 * remote.c (remote_set_trace_notes): Add 'self' argument.
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6983 (target_set_trace_buffer_size): Add argument.
6984 * target.c (update_current_target): Update.
6985 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6991 (target_set_circular_trace_buffer): Add argument.
6992 * target.c (update_current_target): Update.
6993 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6996 2014-02-19 Tom Tromey <tromey@redhat.com>
6998 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7000 (target_set_disconnected_tracing): Add argument.
7001 * target.c (update_current_target): Update.
7002 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7004 2014-02-19 Tom Tromey <tromey@redhat.com>
7006 * target.h (struct target_ops)
7007 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7008 (target_get_min_fast_tracepoint_insn_len): Add argument.
7009 * target.c (update_current_target): Update.
7010 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7013 2014-02-19 Tom Tromey <tromey@redhat.com>
7015 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7017 (target_get_raw_trace_data): Add argument.
7018 * target.c (update_current_target): Update.
7019 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7025 (target_upload_trace_state_variables): Add argument.
7026 * target.c (update_current_target): Update.
7027 * remote.c (remote_upload_trace_state_variables): Add 'self'
7029 (remote_start_remote): Update.
7031 2014-02-19 Tom Tromey <tromey@redhat.com>
7033 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7035 (target_upload_tracepoints): Add argument.
7036 * target.c (update_current_target): Update.
7037 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7038 (remote_start_remote): Update.
7040 2014-02-19 Tom Tromey <tromey@redhat.com>
7042 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7043 (target_save_trace_data): Add argument.
7044 * target.c (update_current_target): Update.
7045 * remote.c (remote_save_trace_data): Add 'self' argument.
7047 2014-02-19 Tom Tromey <tromey@redhat.com>
7049 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7051 * target.h (struct target_ops)
7052 <to_get_trace_state_variable_value>: Add argument.
7053 (target_get_trace_state_variable_value): Add argument.
7054 * target.c (update_current_target): Update.
7055 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7057 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7059 2014-02-19 Tom Tromey <tromey@redhat.com>
7061 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7062 * target.h (struct target_ops) <to_trace_find>: Add argument.
7063 (target_trace_find): Add argument.
7064 * target.c (update_current_target): Update.
7065 * remote.c (remote_trace_find): Add 'self' argument.
7066 * ctf.c (ctf_trace_find): Add 'self' argument.
7068 2014-02-19 Tom Tromey <tromey@redhat.com>
7070 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7071 (target_trace_stop): Add argument.
7072 * target.c (update_current_target): Update.
7073 * remote.c (remote_trace_stop): Add 'self' argument.
7075 2014-02-19 Tom Tromey <tromey@redhat.com>
7077 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7078 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7080 (target_get_tracepoint_status): Add argument.
7081 * target.c (update_current_target): Update.
7082 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7084 2014-02-19 Tom Tromey <tromey@redhat.com>
7086 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7087 * target.h (struct target_ops) <to_get_trace_status>: Add
7089 (target_get_trace_status): Add argument.
7090 * target.c (update_current_target): Update.
7091 * remote.c (remote_get_trace_status): Add 'self' argument.
7092 (remote_start_remote, remote_can_download_tracepoint): Update.
7093 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * target.h (struct target_ops) <to_trace_start>: Add argument.
7098 (target_trace_start): Add argument.
7099 * target.c (update_current_target): Update.
7100 * remote.c (remote_trace_start): Add 'self' argument.
7102 2014-02-19 Tom Tromey <tromey@redhat.com>
7104 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7106 (target_trace_set_readonly_regions): Add argument.
7107 * target.c (update_current_target): Update.
7108 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7111 2014-02-19 Tom Tromey <tromey@redhat.com>
7113 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7115 (target_disable_tracepoint): Add argument.
7116 * target.c (update_current_target): Update.
7117 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7119 2014-02-19 Tom Tromey <tromey@redhat.com>
7121 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7123 (target_enable_tracepoint): Add argument.
7124 * target.c (update_current_target): Update.
7125 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7127 2014-02-19 Tom Tromey <tromey@redhat.com>
7129 * target.h (struct target_ops) <to_download_trace_state_variable>:
7131 (target_download_trace_state_variable): Add argument.
7132 * target.c (update_current_target): Update.
7133 * remote.c (remote_download_trace_state_variable): Add 'self'
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7140 (target_can_download_tracepoint): Add argument.
7141 * target.c (update_current_target): Update.
7142 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target.h (struct target_ops) <to_download_tracepoint>: Add
7148 (target_download_tracepoint): Add argument.
7149 * target.c (update_current_target): Update.
7150 * remote.c (remote_download_tracepoint): Add 'self' argument.
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * target.h (struct target_ops) <to_trace_init>: Add argument.
7155 (target_trace_init): Add argument.
7156 * target.c (update_current_target): Update.
7157 * remote.c (remote_trace_init): Add 'self' argument.
7159 2014-02-19 Tom Tromey <tromey@redhat.com>
7161 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7162 * target.c (target_fileio_readlink): Add argument.
7163 * remote.c (remote_hostio_readlink): Add 'self' argument.
7164 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7166 2014-02-19 Tom Tromey <tromey@redhat.com>
7168 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7169 * target.c (target_fileio_unlink): Add argument.
7170 * remote.c (remote_hostio_unlink): Add 'self' argument.
7171 (remote_file_delete): Update.
7172 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7174 2014-02-19 Tom Tromey <tromey@redhat.com>
7176 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7177 * target.c (target_fileio_close): Add argument.
7178 * remote.c (remote_hostio_close): Add 'self' argument.
7179 (remote_hostio_close_cleanup): Update.
7180 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7182 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7187 * target.c (target_fileio_pread): Add argument.
7188 * remote.c (remote_hostio_pread): Add 'self' argument.
7189 (remote_bfd_iovec_pread, remote_file_get): Update.
7190 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7192 2014-02-19 Tom Tromey <tromey@redhat.com>
7194 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7195 * target.c (target_fileio_pwrite): Add argument.
7196 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7197 (remote_file_put): Update.
7198 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7203 * target.c (target_fileio_open): Add argument.
7204 * remote.c (remote_hostio_open): Add 'self' argument.
7205 (remote_bfd_iovec_open): Add 'self' argument.
7206 (remote_file_put): Add 'self' argument.
7207 (remote_file_get): Add 'self' argument.
7208 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7214 (target_can_run_breakpoint_commands): Add argument.
7215 * target.c (update_current_target): Update.
7216 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7218 (remote_insert_breakpoint): Add 'self' argument.
7219 (remote_insert_hw_breakpoint): Add 'self' argument.
7220 (remote_can_run_breakpoint_commands): Add 'self' argument.
7222 2014-02-19 Tom Tromey <tromey@redhat.com>
7224 * target.h (struct target_ops)
7225 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7226 (target_supports_evaluation_of_breakpoint_conditions): Add
7228 * target.c (update_current_target): Update.
7229 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7231 (remote_insert_breakpoint): Add 'self' argument.
7232 (remote_insert_hw_breakpoint): Add 'self' argument.
7233 (remote_supports_cond_breakpoints): Add 'self' argument.
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7237 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7239 (target_supports_string_tracing): Add argument.
7240 * target.c (update_current_target): Update.
7241 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7243 2014-02-19 Tom Tromey <tromey@redhat.com>
7245 * target.h (struct target_ops)
7246 <to_supports_disable_randomization>: Add argument.
7247 * target.c (find_default_supports_disable_randomization): Add
7249 (target_supports_disable_randomization): Add argument.
7250 (find_default_supports_disable_randomization): Add 'self'
7252 * remote.c (extended_remote_supports_disable_randomization): Add
7254 (remote_supports_disable_randomization): Add 'self' argument.
7255 (extended_remote_create_inferior): Update.
7256 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7259 2014-02-19 Tom Tromey <tromey@redhat.com>
7261 * target.h (struct target_ops)
7262 <to_supports_enable_disable_tracepoint>: Add argument.
7263 (target_supports_enable_disable_tracepoint): Add argument.
7264 * target.c (update_current_target): Update.
7265 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7270 * target.h (struct target_ops) <to_supports_multi_process>: Add
7272 (target_supports_multi_process): Add argument.
7273 * target.c (update_current_target): Update.
7274 * remote.c (remote_supports_multi_process): Add 'self' argument.
7275 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7277 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * target.h (struct target_ops) <to_execution_direction>: Add
7284 (target_execution_direction): Add argument.
7285 * target.c (default_execution_direction): Add 'self' argument.
7286 * record-full.c (record_full_execution_direction): Add 'self'
7289 2014-02-19 Tom Tromey <tromey@redhat.com>
7291 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7293 (target_can_execute_reverse): Add argument.
7294 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7295 * record-full.c (record_full_can_execute_reverse): Add 'self'
7297 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7300 2014-02-19 Tom Tromey <tromey@redhat.com>
7302 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7303 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7305 (target_get_ada_task_ptid): Add argument.
7306 * target.c (update_current_target): Update.
7307 (default_get_ada_task_ptid): Add 'self' argument.
7308 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7309 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7310 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7312 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7314 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7316 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7318 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7319 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7324 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7325 (target_goto_bookmark): Add argument.
7326 * target.c (dummy_goto_bookmark): Add 'self' argument.
7327 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7329 2014-02-19 Tom Tromey <tromey@redhat.com>
7331 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7332 (target_get_bookmark): Add argument.
7333 * target.c (dummy_get_bookmark): Add 'self' argument.
7334 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7336 2014-02-19 Tom Tromey <tromey@redhat.com>
7338 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7340 (target_make_corefile_notes): Add argument.
7341 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7342 * procfs.c (procfs_make_note_section): Add 'self' argument.
7343 (procfs_make_note_section): Add 'self' argument.
7344 (procfs_make_note_section): Add 'self' argument.
7345 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7347 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7348 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7349 * exec.c (exec_make_note_section): Add 'self' argument.
7350 (exec_make_note_section): Add 'self' argument.
7352 2014-02-19 Tom Tromey <tromey@redhat.com>
7354 * target.h (struct target_ops) <to_find_memory_regions>: Add
7356 (target_find_memory_regions): Add argument.
7357 * target.c (dummy_find_memory_regions): Add 'self' argument.
7358 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7359 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7360 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7361 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7362 * exec. (exec_do_find_memory_regions): New global.
7363 (exec_set_find_memory_regions): Rewrite.
7364 (exec_find_memory_regions): New function.
7365 (init_exec_ops): Use exec_find_memory_regions.
7367 2014-02-19 Tom Tromey <tromey@redhat.com>
7369 * target.h (struct target_ops) <to_supports_non_stop>: Add
7371 * target.c (find_default_supports_non_stop): Add argument.
7372 (target_supports_non_stop): Add argument.
7373 (find_default_supports_non_stop): Add 'self' argument.
7374 * remote.c (remote_supports_non_stop): Add 'self' argument.
7375 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target.h (struct target_ops) <to_log_command>: Add argument.
7380 (target_log_command): Add argument.
7381 * serial.h (serial_log_command): Add 'self' argument.
7382 * serial.c (serial_log_command): Add 'self' argument.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7387 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7389 (target_pid_to_exec_file): Add argument.
7390 * target.c (debug_to_pid_to_exec_file): Add argument.
7391 (update_current_target): Update.
7392 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7393 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7394 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7395 (linux_handle_extended_wait): Update.
7396 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7397 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7398 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7399 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7401 2014-02-19 Tom Tromey <tromey@redhat.com>
7403 * target.h (struct target_ops) <to_rcmd>: Add argument.
7404 (target_rcmd): Add argument.
7405 * target.c (debug_to_rcmd): Add argument.
7406 (update_current_target, do_monitor_command): Update.
7407 * remote.c (remote_rcmd): Add 'self' argument.
7408 * monitor.c (monitor_rcmd): Add 'self' argument.
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7412 * windows-nat.c (windows_stop): Add 'self' argument.
7413 * target.h (struct target_ops) <to_stop>: Add argument.
7414 * target.c (target_stop): Add argument.
7415 (debug_to_stop): Add argument.
7416 (update_current_target): Update.
7417 * remote.c (remote_stop): Add 'self' argument.
7418 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7419 (gdbsim_cntrl_c): Update.
7420 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7421 * procfs.c (procfs_stop): Add 'self' argument.
7422 * nto-procfs.c (procfs_stop): Add 'self' argument.
7423 * monitor.c (monitor_stop): Add 'self' argument.
7424 (monitor_open): Update.
7425 * linux-nat.c (linux_nat_stop): Add argument.
7426 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7427 * gnu-nat.c (gnu_stop): Add 'self' argument.
7428 * darwin-nat.c (darwin_stop): Add 'self' argument.
7430 2014-02-19 Tom Tromey <tromey@redhat.com>
7432 * target.h (struct target_ops) <to_thread_name>: Add argument.
7433 * target.c (target_thread_name): Add argument.
7434 (update_current_target): Update.
7435 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7437 2014-02-19 Tom Tromey <tromey@redhat.com>
7439 * target.h (struct target_ops) <to_extra_thread_info>: Add
7441 (target_extra_thread_info): Add argument.
7442 * target.c (update_current_target): Update.
7443 * remote.c (remote_threads_extra_info): Add 'self' argument.
7444 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7446 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7447 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7448 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7450 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7452 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7454 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target.h (struct target_ops) <to_program_signals>: Add argument.
7460 * target.c (target_program_signals): Add argument.
7461 * remote.c (remote_program_signals): Add 'self' argument.
7463 2014-02-19 Tom Tromey <tromey@redhat.com>
7465 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7466 * target.c (target_pass_signals): Add argument.
7467 * remote.c (remote_pass_signals): Add 'self' argument.
7468 (remote_start_remote): Update.
7469 * procfs.c (procfs_pass_signals): Add 'self' argument.
7470 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7471 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7472 (linux_nat_create_inferior, linux_nat_attach): Update.
7474 2014-02-19 Tom Tromey <tromey@redhat.com>
7476 * windows-nat.c (windows_can_run): Add 'self' argument.
7477 * target.h (struct target_ops) <to_can_run>: Add argument.
7478 (target_can_run): Add argument.
7479 * target.c (debug_to_can_run): Add argument.
7480 (update_current_target): Update.
7481 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7482 * inf-child.c (inf_child_can_run): Add 'self' argument.
7483 * go32-nat.c (go32_can_run): Add 'self' argument.
7485 2014-02-19 Tom Tromey <tromey@redhat.com>
7487 * target.h (struct target_ops) <to_has_exited>: Add argument.
7488 (target_has_exited): Add argument.
7489 * target.c (debug_to_has_exited): Add argument.
7490 (update_current_target): Update.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7496 (target_set_syscall_catchpoint): Add argument.
7497 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7499 * target.c (update_current_target): Update.
7501 2014-02-19 Tom Tromey <tromey@redhat.com>
7503 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7505 (target_remove_exec_catchpoint): Add argument.
7506 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7507 (update_current_target): Update.
7508 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7511 2014-02-19 Tom Tromey <tromey@redhat.com>
7513 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7515 (target_insert_exec_catchpoint): Add argument.
7516 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7517 (update_current_target): Update.
7518 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7525 (target_remove_vfork_catchpoint): Add argument.
7526 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7527 (update_current_target): Update.
7528 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7531 2014-02-19 Tom Tromey <tromey@redhat.com>
7533 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7535 (target_insert_vfork_catchpoint): Add argument.
7536 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7537 (update_current_target): Update.
7538 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7545 (target_remove_fork_catchpoint): Add argument.
7546 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7547 (update_current_target): Update.
7548 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7551 2014-02-19 Tom Tromey <tromey@redhat.com>
7553 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7555 (target_insert_fork_catchpoint): Add argument.
7556 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7557 (update_current_target): Update.
7558 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7563 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7565 (target_post_startup_inferior): Add argument.
7566 * target.c (debug_to_post_startup_inferior): Add argument.
7567 (update_current_target): Update.
7568 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7570 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7572 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7574 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7576 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7578 (super_post_startup_inferior): Likewise.
7579 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7581 (super_post_startup_inferior): Likewise.
7582 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7583 Add 'self' argument.
7584 (super_post_startup_inferior): Likewise.
7586 2014-02-19 Tom Tromey <tromey@redhat.com>
7588 * target.h (struct target_ops) <to_load>: Add argument.
7589 * target.c (target_load): Add argument.
7590 (debug_to_load): Add argument.
7591 (update_current_target): Update.
7592 * remote.c (remote_load): Add 'self' argument.
7593 * remote-sim.c (gdbsim_load): Add 'self' argument.
7594 * remote-mips.c (mips_load): Add 'self' argument.
7595 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7596 * monitor.c (monitor_load): Add 'self' argument.
7597 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7601 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7602 (target_terminal_info): Add argument.
7603 * target.c (debug_to_terminal_info): Add argument.
7604 (default_terminal_info): Likewise.
7605 * inflow.c (child_terminal_info): Add 'self' argument.
7606 * inferior.h (child_terminal_info): Add 'self' argument.
7607 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7613 (target_terminal_save_ours): Add argument.
7614 * target.c (debug_to_terminal_save_ours): Add argument.
7615 (update_current_target): Update.
7616 * inflow.c (terminal_save_ours): Add 'self' argument.
7617 * inferior.h (terminal_save_ours): Add 'self' argument.
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7621 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7622 (target_terminal_ours): Add argument.
7623 * target.c (debug_to_terminal_ours): Add argument.
7624 (update_current_target): Update.
7625 * remote.c (remote_terminal_ours): Add 'self' argument.
7626 (remote_close): Update.
7627 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7628 * inflow.c (terminal_ours): Add 'self' argument.
7629 * inferior.h (terminal_ours): Add 'self' argument.
7630 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7632 2014-02-19 Pedro Alves <palves@redhat.com>
7633 Tom Tromey <tromey@redhat.com>
7635 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7637 (target_terminal_ours_for_output): Add argument.
7638 * target.c (debug_to_terminal_ours_for_output): Add argument.
7639 (update_current_target): Update.
7640 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7641 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7642 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7644 2014-02-19 Tom Tromey <tromey@redhat.com>
7646 * target.h (struct target_ops) <to_terminal_inferior>: Add
7648 * target.c (target_terminal_inferior): Add argument.
7649 (update_current_target): Update.
7650 * remote.c (remote_terminal_inferior): Add 'self' argument.
7651 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7652 * inflow.c (terminal_inferior): Add 'self' argument.
7653 * inferior.h (terminal_inferior): Add 'self' argument.
7654 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7655 (go32_terminal_inferior): Add 'self' argument.
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7659 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7660 (target_terminal_init): Add argument.
7661 * target.c (debug_to_terminal_init): Add argument.
7662 (update_current_target): Update.
7663 * inflow.c (terminal_init_inferior): Add 'self' argument.
7664 * inferior.h (terminal_init_inferior): Add 'self' argument.
7665 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7666 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7668 2014-02-19 Tom Tromey <tromey@redhat.com>
7670 * target.h (struct target_ops)
7671 <to_can_accel_watchpoint_condition>: Add argument.
7672 (target_can_accel_watchpoint_condition): Add argument.
7673 * target.c (debug_to_can_accel_watchpoint_condition): Add
7675 (update_current_target): Update.
7676 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7681 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7683 (target_region_ok_for_hw_watchpoint): Add argument.
7684 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7685 (default_region_ok_for_hw_watchpoint): Add argument.
7686 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7687 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7689 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7691 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7693 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7695 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7697 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7699 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7700 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7702 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7703 Add 'self' argument.
7705 2014-02-19 Tom Tromey <tromey@redhat.com>
7707 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7709 (target_insert_watchpoint): Add argument.
7710 * target.c (debug_to_insert_watchpoint): Add argument.
7711 (update_current_target): Update.
7712 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7713 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7714 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7715 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7716 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7717 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7719 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7720 (procfs_insert_hw_watchpoint): Add 'self' argument.
7721 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7723 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7725 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7727 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7728 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7730 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7737 (target_remove_watchpoint): Add argument.
7738 * target.c (debug_to_remove_watchpoint): Add argument.
7739 (update_current_target): Update.
7740 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7741 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7742 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7743 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7744 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7745 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7747 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7748 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7750 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7752 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7754 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7755 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7757 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7764 (target_remove_hw_breakpoint): Add argument.
7765 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7766 (update_current_target): Update.
7767 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7768 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7770 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7771 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7773 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7780 (target_insert_hw_breakpoint): Add argument.
7781 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7782 (update_current_target): Update.
7783 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7784 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7786 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7787 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7788 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7790 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7797 (target_can_use_hardware_watchpoint): Add argument.
7798 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7799 (update_current_target): Update.
7800 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7802 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7804 * remote.c (remote_check_watch_resources): Add 'self' argument.
7805 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7806 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7808 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7809 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7811 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7813 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7815 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7817 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7819 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7821 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7822 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7824 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7829 * target.h (struct target_ops) <to_post_attach>: Add argument.
7830 (target_post_attach): Add argument.
7831 * target.c (debug_to_post_attach): Add argument.
7832 (update_current_target): Update.
7833 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7834 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7835 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7836 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7837 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * windows-nat.c (windows_close): Add 'self' argument.
7842 * tracepoint.c (tfile_close): Add 'self' argument.
7843 * target.h (struct target_ops) <to_close>: Add argument.
7844 * target.c (target_close): Add argument.
7845 (update_current_target): Update.
7846 * remote.c (remote_close): Add 'self' argument.
7847 * remote-sim.c (gdbsim_close): Add 'self' argument.
7848 * remote-mips.c (mips_close): Add 'self' argument.
7849 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7850 * record-full.c (record_full_close): Add 'self' argument.
7851 * record-btrace.c (record_btrace_close): Add 'self' argument.
7852 * monitor.h (monitor_close): Add 'self' argument.
7853 * monitor.c (monitor_close): Add 'self' argument.
7854 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7855 * linux-nat.c (linux_nat_close): Add argument.
7856 * go32-nat.c (go32_close): Add 'self' argument.
7857 * exec.c (exec_close_1): Add 'self' argument.
7858 * ctf.c (ctf_close): Add 'self' argument.
7859 * corelow.c (core_close): Add 'self' argument.
7860 (core_close_cleanup): Update.
7861 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7862 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * remote.c (remote_load): New function.
7867 (init_remote_ops): Use it.
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7873 * common/linux-btrace.h (linux_supports_btrace): Update.
7874 * remote.c (remote_supports_btrace): Add "self" argument.
7875 * target-delegates.c: Rebuild.
7876 * target.c (target_supports_btrace): Remove.
7877 * target.h (struct target_ops) <to_supports_btrace>: Add
7878 target_ops argument.
7879 (target_supports_btrace): New define.
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * record-full.c (record_full_beneath_to_resume_ops)
7884 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7885 (record_full_beneath_to_wait)
7886 (record_full_beneath_to_store_registers_ops)
7887 (record_full_beneath_to_store_registers)
7888 (record_full_beneath_to_xfer_partial_ops)
7889 (record_full_beneath_to_xfer_partial)
7890 (record_full_beneath_to_insert_breakpoint_ops)
7891 (record_full_beneath_to_insert_breakpoint)
7892 (record_full_beneath_to_remove_breakpoint_ops)
7893 (record_full_beneath_to_remove_breakpoint)
7894 (record_full_beneath_to_stopped_by_watchpoint)
7895 (record_full_beneath_to_stopped_data_address)
7896 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7897 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7898 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7899 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7900 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7901 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7902 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7903 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7904 (record_full_resume, record_full_wait_1)
7905 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7906 (record_full_store_registers, record_full_xfer_partial)
7907 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7908 (record_full_async, record_full_core_xfer_partial): Use target
7910 * target-delegates.c: Rebuild.
7911 * target.c (current_xfer_partial): Remove.
7912 (update_current_target): Do not INHERIT or de_fault
7913 to_insert_breakpoint, to_remove_breakpoint,
7914 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7915 to_is_async_p, to_async. Do not set to_xfer_partial field.
7916 (default_xfer_partial): Simplify.
7917 (current_xfer_partial): Remove.
7918 (target_wait, target_resume): Simplify.
7919 (find_default_can_async_p, find_default_is_async_p): Update.
7920 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7921 to_xfer_partial, to_stopped_by_watchpoint,
7922 to_stopped_data_address.
7923 (target_store_registers): Simplify.
7924 (forward_target_remove_breakpoint)
7925 (forward_target_insert_breakpoint): Remove.
7926 (target_remove_breakpoint, target_insert_breakpoint)
7927 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7928 * target.h (struct target_ops) <to_resume, to_wait,
7929 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7930 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7931 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7933 (forward_target_remove_breakpoint)
7934 (forward_target_insert_breakpoint): Remove.
7935 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7937 (record_btrace_insert_breakpoint): Delegate directly.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * target-delegates.c: New file.
7943 * target.c: Include target-delegates.c.
7944 (init_dummy_target): Call install_dummy_methods.
7945 (complete_target_initialization): Call install_delegators.
7946 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7947 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7948 * make-target-delegates: New file.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * record.c (find_record_target): Use find_target_at.
7953 * target.c (find_target_at): New function.
7954 * target.h (find_target_at): Declare.
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7958 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7960 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7962 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7963 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7965 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7967 * linux-nat.c (save_sigtrap): Update.
7968 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7969 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7970 (linux_nat_close): Update.
7971 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7973 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7975 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7976 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7977 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7978 (tmp_to_async): Add 'ops' argument.
7979 (record_full_stopped_by_watchpoint, record_full_async)
7980 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7982 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7983 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7984 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7985 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7986 (remote_is_async_p, remote_async): Add 'ops' argument.
7987 (remote_stopped_data_address): Update.
7988 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7989 * target.c (update_current_target)
7990 (find_default_can_async_p, find_default_is_async_p): Update.
7991 (init_dummy_target): Update.
7992 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7993 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7994 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7995 (target_can_async_p, target_is_async_p, target_async)
7996 (target_stopped_by_watchpoint): Update.
7998 2014-02-19 Yao Qi <yao@codesourcery.com>
8001 * gdbarch.sh: Remove startup_gdbarch.
8002 * gdbarch.c: Regenerated.
8003 * gdbarch.h: Likewise.
8005 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8007 * rl78-tdep.c (rl78_g10_register_name): New function.
8008 (rl78_return_value): Add g10 support.
8009 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8012 2014-02-17 Doug Evans <xdje42@gmail.com>
8014 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8015 (SUBDIR_GUILE_SRCS): Ditto.
8016 (scm-gsmob.o): Ditto.
8018 2014-02-17 Yao Qi <yao@codesourcery.com>
8020 * gnu-nat.c (ILL_RPC): Declare defined function.
8022 2014-02-17 Yao Qi <yao@codesourcery.com>
8024 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8025 mach_msg_type_number_t.
8026 (gnu_write_inferior): Likewise.
8028 2014-02-17 Yao Qi <yao@codesourcery.com>
8030 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8032 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8033 (inf_validate_procs, inf_signal): Likewise.
8034 (S_exception_raise_request): Likewise.
8035 (do_mach_notify_dead_name): Likewise.
8036 (steal_exc_port): Likewise.
8037 (gnu_read_inferior): Change 'copy_count''s type to
8038 mach_msg_type_number_t.
8039 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8042 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8044 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8045 flag. Adjust all users; in particular...
8046 (gnu_wait): ..., don't decrement its value in here...
8047 (gnu_create_inferior): ..., and instead set the flag in here,
8048 around the startup_inferior call, and call that one with
8049 START_INFERIOR_TRAPS_EXPECTED.
8051 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8052 (ILL_RPC): ... new macro.
8053 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8054 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8055 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8056 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8057 functions with ILL_RPC macro.
8058 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8059 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8060 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8061 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8062 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8063 (S_proc_getlogin_reply, S_proc_getsid_reply)
8064 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8065 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8066 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8067 (S_proc_getnports_reply, S_proc_is_important_reply)
8068 (S_proc_get_code_reply): New stub functions, generated with
8071 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8072 collected the type check structures.
8074 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8076 2014-02-14 Doug Evans <dje@google.com>
8078 * target.c (target_write_partial): Fix result type.
8080 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8082 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8083 the proper offsets to access fpregset_t.
8085 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8087 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8088 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8089 * h8300-tdep.c (setmachinelist): Remove global.
8090 * hppa-tdep.c (hppa_sigtramp): Remove global.
8091 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8092 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8093 * ravenscar-thread.c (update_target_observer): Remove global.
8094 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8096 2014-02-12 Tom Tromey <tromey@redhat.com>
8098 * common/rsp-low.c: Update comments.
8099 * common/rsp-low.h: Update comments.
8101 2014-02-12 Tom Tromey <tromey@redhat.com>
8103 * common/rsp-low.c (convert_ascii_to_int): Remove.
8104 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8106 2014-02-12 Tom Tromey <tromey@redhat.com>
8108 * common/rsp-low.h (unhexify): Don't declare.
8109 * common/rsp-low.c (unhexify): Remove.
8111 2014-02-12 Tom Tromey <tromey@redhat.com>
8113 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8114 * common/rsp-low.c (convert_int_to_ascii): Remove.
8116 2014-02-12 Tom Tromey <tromey@redhat.com>
8118 * common/rsp-low.h (hexify): Don't declare.
8119 * common/rsp-low.c (hexify): Remove.
8121 2014-02-12 Tom Tromey <tromey@redhat.com>
8123 * common/rsp-low.c (hexify): Never take strlen of argument.
8125 2014-02-12 Tom Tromey <tromey@redhat.com>
8127 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8128 * remote.c (extended_remote_run, remote_rcmd)
8129 (remote_download_trace_state_variable, remote_save_trace_data)
8130 (remote_set_trace_notes): Update.
8131 * tracepoint.c (encode_source_string, tfile_write_status)
8132 (tfile_write_uploaded_tsv): Update.
8134 2014-02-12 Tom Tromey <tromey@redhat.com>
8136 * tracepoint.c: Include rsp-low.h.
8137 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8138 * remote.c: Include rsp-low.h.
8139 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8140 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8141 (remote_unescape_input): Move to common/rsp-low.c.
8142 * common/rsp-low.h: New file.
8143 * common/rsp-low.c: New file.
8144 * Makefile.in (SFILES): Add common/rsp-low.c.
8145 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8146 (COMMON_OBS): Add rsp-low.o.
8147 (rsp-low.o): New target.
8149 2014-02-12 Tom Tromey <tromey@redhat.com>
8151 * utils.h: Include print-utils.h.
8152 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8153 (int_string, core_addr_to_string, core_addr_to_string_nz)
8154 (hex_string, hex_string_custom): Don't declare.
8155 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8156 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8157 (hex_string_custom, int_string, core_addr_to_string)
8158 (core_addr_to_string_nz, host_address_to_string): Move to
8159 common/print-utils.c.
8160 * common/print-utils.h: New file.
8161 * common/print-utils.c: New file
8162 * Makefile.in (SFILES): Add common/print-utils.c.
8163 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8164 (COMMON_OBS): Add print-utils.o.
8165 (print-utils.o): New target.
8167 2014-02-12 Tom Tromey <tromey@redhat.com>
8169 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8171 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8173 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8175 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8177 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8178 if a PT_IO ptrace request returns sucessfully but indicates that 0
8179 bytes were transferred.
8181 2014-02-12 Pedro Alves <palves@redhat.com>
8182 Kevin Buettner <kevinb@redhat.com>
8184 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8185 TYPE_INSTANCE_FLAG_CODE_SPACE.
8187 2014-02-12 Pedro Alves <palves@redhat.com>
8189 * h8300-tdep.c (pseudo_from_raw_register)
8190 (raw_from_pseudo_register): New functions.
8191 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8194 2014-02-12 Pedro Alves <palves@redhat.com>
8196 * h8300-tdep.c (h8300_register_sim_regno): New function.
8197 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8198 gdbarch_register_sim_regno hook.
8200 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8202 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8204 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8206 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8208 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8210 * obsd-tdep.h (obsd_init_abi): New prototype.
8211 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8212 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8213 (obsd_init_abi): New functions.
8214 * i386obsd-tdep.c: Include "obsd-tdep.h".
8215 (i386obsd_init_abi): Call obsd_init_abi.
8216 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8217 (amd64obsd_init_abi): Call obsd_init_abi.
8218 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8219 obsd-tdep.c to gdb_target_obs.
8221 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8223 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8224 double float arguments to 16-byte in the argument slots.
8226 2014-02-11 Doug Evans <xdje42@gmail.com>
8228 * configure.ac: Don't crash if pkg-config is not found and guile
8229 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8231 * configure: Regenerate.
8233 2014-02-11 Yao Qi <yao@codesourcery.com>
8235 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8236 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8237 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8238 * gnu-nat.c (gnu_xfer_memory): Likewise.
8239 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8240 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8241 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8242 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8244 2014-02-11 Yao Qi <yao@codesourcery.com>
8246 * target.h (enum target_xfer_error): Rename to ...
8247 (enum target_xfer_status): ... it. New. All users updated.
8248 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8250 (TARGET_XFER_STATUS_ERROR_P): New macro.
8251 (target_xfer_error_to_string): Remove declaration.
8252 (target_xfer_status_to_string): Declare.
8253 (target_xfer_partial_ftype): Adjust it.
8254 (struct target_ops) <to_xfer_partial>: Return
8255 target_xfer_status. Add argument xfered_len. Update
8257 * target.c (target_xfer_error_to_string): Rename to ...
8258 (target_xfer_status_to_string): ... it. New. All callers
8260 (target_read_live_memory): Likewise. Call target_xfer_partial
8261 instead of target_read.
8262 (memory_xfer_live_readonly_partial): Return
8263 target_xfer_status. Add argument xfered_len.
8264 (raw_memory_xfer_partial): Likewise.
8265 (memory_xfer_partial_1): Likewise.
8266 (memory_xfer_partial): Likewise.
8267 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8268 properly. Update debug message.
8269 (default_xfer_partial, current_xfer_partial): Likewise.
8270 (target_write_partial): Likewise.
8271 (target_read_partial): Likewise. All callers updated.
8272 (read_whatever_is_readable): Likewise.
8273 (target_write_with_progress): Likewise.
8274 (target_read_alloc_1): Likewise.
8276 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8277 * auxv.c (procfs_xfer_auxv): Likewise.
8278 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8279 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8280 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8281 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8282 * corefile.c (read_memory): Adjust.
8283 * corelow.c (core_xfer_partial): Likewise.
8284 * ctf.c (ctf_xfer_partial): Likewise.
8285 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8287 (darwin_xfer_partial): Likewise.
8288 * exec.c (section_table_xfer_memory_partial): Likewise. All
8290 (exec_xfer_partial): Likewise.
8291 * exec.h (section_table_xfer_memory_partial): Update
8293 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8295 (gnu_xfer_partial): Likewise.
8296 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8297 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8298 (ia64_hpux_xfer_solib_got): Likewise.
8299 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8300 type of 'partial_len' to ULONGEST.
8301 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8302 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8303 (linux_nat_xfer_partial): Likewise.
8304 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8305 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8306 * monitor.c (monitor_xfer_memory): Likewise.
8307 (monitor_xfer_partial): Likewise.
8308 * procfs.c (procfs_xfer_partial): Likewise.
8309 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8310 * record-full.c (record_full_xfer_partial): Likewise.
8311 (record_full_core_xfer_partial): Likewise.
8312 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8313 (gdbsim_xfer_partial): Likewise.
8314 * remote.c (remote_write_bytes_aux): Likewise. All callers
8316 (remote_write_bytes, remote_read_bytes): Likewise. All
8318 (remote_flash_erase): Likewise. All callers updated.
8319 (remote_write_qxfer): Likewise. All callers updated.
8320 (remote_read_qxfer): Likewise. All callers updated.
8321 (remote_xfer_partial): Likewise.
8322 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8323 (rs6000_xfer_shared_libraries): Likewise.
8324 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8325 (sol_thread_xfer_partial): Likewise.
8326 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8327 (sparc_xfer_partial): Likewise.
8328 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8330 (spu_xfer_partial): Likewise.
8331 * spu-multiarch.c (spu_xfer_partial): Likewise.
8332 * tracepoint.c (tfile_xfer_partial): Likewise.
8333 * windows-nat.c (windows_xfer_memory): Likewise.
8334 (windows_xfer_shared_libraries): Likewise.
8335 (windows_xfer_partial): Likewise.
8336 * valprint.c: Replace 'target_xfer_error' with
8337 'target_xfer_status' in comments.
8339 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8341 Checked in by Joel Brobecker <brobecker@adacore.com>.
8342 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8344 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8346 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8347 function parameters.
8349 2014-02-10 Will Newton <will.newton@linaro.org>
8351 * elfread.c (elf_rel_plt_read): Look for a .got section if
8352 looking up .got.plt fails.
8353 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8354 on address passed to elf_gnu_ifunc_record_cache.
8355 (elf_gnu_ifunc_resolve_addr): Likewise.
8356 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8358 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8360 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8361 (X_RETTURN): New macro.
8362 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8364 * sparc64-tdep.c (sparc64_init_abi): Hook
8365 sparc_in_function_epilogue_p.
8367 2014-02-10 Gary Benson <gbenson@redhat.com>
8369 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8370 Rename name_matcher to symbol_matcher.
8372 2014-02-10 Gary Benson <gbenson@redhat.com>
8374 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8375 Use expand_symtabs_file_matcher_ftype and
8376 expand_symtabs_symbol_matcher_ftype.
8378 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8380 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8381 (struct ada_symbol_cache): New.
8382 (ada_free_symbol_cache): Forward declare.
8383 (struct ada_pspace_data): New.
8384 (ada_pspace_data_handle): New static global.
8385 (get_ada_pspace_data, ada_pspace_data_cleanup)
8386 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8387 (cache_space, cache): Delete, now folded inside struct
8389 (ada_get_symbol_cache): New function.
8390 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8392 (_initialize_ada_language): Remove initialization of cache_space.
8393 Move call to observer_attach_inferior_exit up, grouping it
8394 with the other observer registrations inside this function.
8395 Rename command to be more general. Add call to
8396 register_program_space_data_with_cleanup.
8398 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8400 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8401 ada_new_objfile_observer.
8402 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8403 (_initialize_tasks): Update uses of ada_new_objfile_observer
8404 and ada_tasks_normal_stop_observer.
8406 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8408 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8409 returned by the 'Length attribute to integer.
8411 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8413 * ada-lang.c (_initialize_ada_language): Initialize
8414 cache_space obstack.
8416 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8418 * ada-lang.c (HASH_SIZE): New macro.
8419 (struct cache_entry): New type.
8420 (cache_space, cache): New static globals.
8421 (ada_clear_symbol_cache, find_entry): New functions.
8422 (lookup_cached_symbol, cache_symbol): Implement.
8423 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8424 (_initialize_ada_language): Attach ada_new_objfile_observer
8425 and ada_free_objfile_observer.
8427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8429 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8430 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8431 struct block * parameter.
8432 (ada_lookup_symbol_list_worker): Constify local variable "block".
8433 Remove cast which is no longer necessary.
8435 2014-02-10 Doug Evans <xdje42@gmail.com>
8437 Add Guile as an extension language.
8438 * NEWS: Mention Guile scripting.
8439 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8440 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8441 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8442 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8443 (CLIBS): Add GUILE_LIBS.
8444 (install-guile): New rule.
8445 (guile.o): New rule.
8446 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8447 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8448 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8449 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8450 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8451 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8452 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8453 * configure.ac: New option --with-guile.
8454 * configure: Regenerate.
8455 * config.in: Regenerate.
8456 * auto-load.c: Remove #include "python/python.h". Add #include
8457 "gdb/section-scripts.h".
8458 (source_section_scripts): Handle Guile scripts.
8459 (_initialize_auto_load): Add name of Guile objfile script to
8460 scripts-directory help text.
8461 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8462 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8463 (struct breakpoint): New member scm_bp_object.
8464 * defs.h (enum command_control_type): New value guile_control.
8465 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8467 (show_user): Update comment.
8468 (_initialize_cli_cmds): Update help text for "show user". Update help
8469 text for max-user-call-depth.
8470 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8472 (multi_line_command_p): Add guile_control.
8473 (print_command_lines): Handle guile_control.
8474 (execute_control_command, recurse_read_control_structure): Ditto.
8475 (process_next_line): Recognize "guile" commands.
8476 * disasm.c (gdb_disassemble_info): Make non-static.
8477 * disasm.h: #include "dis-asm.h".
8478 (struct gdbarch): Add forward decl.
8479 (gdb_disassemble_info): Declare.
8480 * extension.c: #include "guile/guile.h".
8481 (extension_languages): Add guile.
8482 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8483 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8484 * gdbtypes.c (get_unsigned_type_max): New function.
8485 (get_signed_type_minmax): New function.
8486 * gdbtypes.h (get_unsigned_type_max): Declare.
8487 (get_signed_type_minmax): Declare.
8488 * guile/README: New file.
8489 * guile/guile-internal.h: New file.
8490 * guile/guile.c: New file.
8491 * guile/guile.h: New file.
8492 * guile/scm-arch.c: New file.
8493 * guile/scm-auto-load.c: New file.
8494 * guile/scm-block.c: New file.
8495 * guile/scm-breakpoint.c: New file.
8496 * guile/scm-disasm.c: New file.
8497 * guile/scm-exception.c: New file.
8498 * guile/scm-frame.c: New file.
8499 * guile/scm-gsmob.c: New file.
8500 * guile/scm-iterator.c: New file.
8501 * guile/scm-lazy-string.c: New file.
8502 * guile/scm-math.c: New file.
8503 * guile/scm-objfile.c: New file.
8504 * guile/scm-ports.c: New file.
8505 * guile/scm-pretty-print.c: New file.
8506 * guile/scm-safe-call.c: New file.
8507 * guile/scm-string.c: New file.
8508 * guile/scm-symbol.c: New file.
8509 * guile/scm-symtab.c: New file.
8510 * guile/scm-type.c: New file.
8511 * guile/scm-utils.c: New file.
8512 * guile/scm-value.c: New file.
8513 * guile/lib/gdb.scm: New file.
8514 * guile/lib/gdb/boot.scm: New file.
8515 * guile/lib/gdb/experimental.scm: New file.
8516 * guile/lib/gdb/init.scm: New file.
8517 * guile/lib/gdb/iterator.scm: New file.
8518 * guile/lib/gdb/printing.scm: New file.
8519 * guile/lib/gdb/types.scm: New file.
8520 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8521 (VPATH): Add $(GUILE_SRCDIR).
8522 (GUILE_DIR): New variable.
8523 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8524 (all): Add stamp-guile dependency.
8525 (stamp-guile): New rule.
8526 (clean-guile, install-guile, uninstall-guile): New rules.
8527 (install-only): Add install-guile dependency.
8528 (uninstall): Add uninstall-guile dependency.
8529 (clean): Add clean-guile dependency.
8531 2014-02-09 Doug Evans <xdje42@gmail.com>
8533 Revert this patch (which I approved, mea culpa).
8535 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8537 * Makefile.in (all-lib): Remove.
8538 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8540 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8542 Fix Python stack corruption.
8543 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8546 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8548 * Makefile.in (all-lib): Remove.
8549 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8551 2014-02-07 Doug Evans <dje@google.com>
8553 * extension-priv.h (extension_language_script_ops): Add comment.
8554 (extension_language_ops): Add comment.
8555 (active_ext_lang_state): Fix typo in comment.
8557 2014-02-07 Pedro Alves <palves@redhat.com>
8559 PR breakpoints/16292
8560 * infrun.c (handle_signal_stop) <signal arrives while stepping
8561 over a breakpoint>: Switch back to the stepping thread.
8563 2014-02-07 Yao Qi <yao@codesourcery.com>
8565 * target.c (target_xfer_partial): Return zero if LEN is zero.
8567 2014-02-07 Yao Qi <yao@codesourcery.com>
8569 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8570 (ld_so_xfer_auxv): Likewise.
8571 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8572 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8573 * corelow.c (core_xfer_partial): Likewise.
8574 * ctf.c (ctf_xfer_partial): Likewise.
8575 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8576 (darwin_xfer_partial): Likewise.
8577 * exec.c (exec_xfer_partial): Likewise.
8578 * gnu-nat.c (gnu_xfer_partial): Likewise.
8579 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8580 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8581 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8582 * linux-nat.c (linux_xfer_siginfo): Likewise.
8583 (linux_proc_xfer_spu): Likewise.
8584 * procfs.c (procfs_xfer_partial): Likewise.
8585 * record-full.c (record_full_xfer_partial): Likewise.
8586 (record_full_core_xfer_partial): Likewise.
8587 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8588 * remote.c (remote_write_qxfer): Likewise.
8589 (remote_write_qxfer, remote_read_qxfer): Likewise.
8590 (remote_xfer_partial): Likewise.
8591 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8592 (rs6000_xfer_shared_libraries): Likewise.
8593 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8594 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8595 (spu_xfer_partial): Likewise.
8596 * target.c (memory_xfer_partial_1): Likewise.
8597 * tracepoint.c (tfile_xfer_partial): Likewise.
8598 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8599 (windows_xfer_partial): Likewise.
8601 2014-02-07 Yao Qi <yao@codesourcery.com>
8603 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8605 (core_xfer_shared_libraries_aix): Likewise.
8606 * gdbarch.c, gdbarch.h: Regenerated.
8607 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8608 ULONGEST. Change 'len_avail' type to ULONGEST.
8609 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8610 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8612 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8614 2014-02-07 Yao Qi <yao@codesourcery.com>
8616 * corefile.c (memory_error): Get 'exception' from ERR and pass
8617 'exception' to throw_error.
8619 2014-02-06 Doug Evans <xdje42@gmail.com>
8621 * configure.ac (libpython checking): Remove all but python.o from
8622 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8623 * configure: Regenerate.
8625 * Makefile.in (SFILES): Add extension.c.
8626 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8627 (COMMON_OBS): Add extension.o.
8628 * extension.h: New file.
8629 * extension-priv.h: New file.
8630 * extension.c: New file.
8632 * python/python-internal.h: #include "extension.h".
8633 (gdbpy_auto_load_enabled): Declare.
8634 (gdbpy_apply_val_pretty_printer): Declare.
8635 (gdbpy_apply_frame_filter): Declare.
8636 (gdbpy_preserve_values): Declare.
8637 (gdbpy_breakpoint_cond_says_stop): Declare.
8638 (gdbpy_breakpoint_has_cond): Declare.
8639 (void source_python_script_for_objfile): Delete.
8640 * python/python.c: #include "extension-priv.h".
8641 Delete inclusion of "observer.h".
8642 (extension_language_python): Moved here and renamed from
8643 script_language_python in py-auto-load.c.
8644 Redefined to be of type extension_language_defn.
8645 (python_extension_script_ops): New global.
8646 (python_extension_ops): New global.
8647 (struct python_env): New member previous_active.
8648 (restore_python_env): Call restore_active_ext_lang.
8649 (ensure_python_env): Call set_active_ext_lang.
8650 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8652 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8654 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8656 (gdbpy_eval_from_control_command): Renamed from
8657 eval_python_from_control_command, made static. New arg extlang.
8658 (gdbpy_source_script) Renamed from source_python_script, made static.
8660 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8661 result to int. New arg extlang.
8662 (gdbpy_source_objfile_script): Renamed from
8663 source_python_script_for_objfile, made static. New arg extlang.
8664 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8665 static. New args extlang, extlang_printers. Change result type to
8667 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8668 static. New arg extlang. Rename arg printers to extlang_printers
8669 and change type to ext_lang_type_printers *.
8670 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8671 static. Replace argument arg with extlang, extlang_printers.
8672 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8673 (!HAVE_PYTHON, source_python_script): Delete.
8674 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8675 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8676 (!HAVE_PYTHON, start_type_printers): Delete.
8677 (!HAVE_PYTHON, apply_type_printers): Delete.
8678 (!HAVE_PYTHON, free_type_printers): Delete.
8679 (_initialize_python): Delete call to observer_attach_before_prompt.
8680 (finalize_python): Set/restore active extension language.
8681 (gdbpy_finish_initialization) Renamed from
8682 finish_python_initialization, made static. New arg extlang.
8683 (gdbpy_initialized): New function.
8684 * python/python.h: #include "extension.h". Delete #include
8685 "value.h", "mi/mi-cmds.h".
8686 (extension_language_python): Declare.
8687 (GDBPY_AUTO_FILE_NAME): Delete.
8688 (enum py_bt_status): Moved to extension.h and renamed to
8690 (enum frame_filter_flags): Moved to extension.h.
8691 (enum py_frame_args): Moved to extension.h and renamed to
8692 ext_lang_frame_args.
8693 (finish_python_initialization): Delete.
8694 (eval_python_from_control_command): Delete.
8695 (source_python_script): Delete.
8696 (apply_val_pretty_printer): Delete.
8697 (apply_frame_filter): Delete.
8698 (preserve_python_values): Delete.
8699 (gdbpy_script_language_defn): Delete.
8700 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8701 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8703 * auto-load.c: #include "extension.h".
8704 (GDB_AUTO_FILE_NAME): Delete.
8705 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8706 (script_language_gdb): Delete, moved to extension.c and renamed to
8707 extension_language_gdb.
8708 (source_gdb_script_for_objfile): Delete.
8709 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8710 (loaded_script): Change type of language member to
8711 struct extension_language_defn *.
8712 (init_loaded_scripts_info): Initialize
8713 unsupported_script_warning_printed.
8714 (maybe_add_script): Make static. Change type of language arg to
8715 struct extension_language_defn *.
8716 (clear_section_scripts): Reset unsupported_script_warning_printed.
8717 (auto_load_objfile_script_1): Rewrite to use extension language API.
8718 (auto_load_objfile_script): Make public. Remove support-compiled-in
8719 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8720 (source_section_scripts): Rewrite to use extension language API.
8721 (load_auto_scripts_for_objfile): Rewrite to use
8722 auto_load_scripts_for_objfile.
8723 (collect_matching_scripts_data): Change type of language member to
8724 struct extension_language_defn *.
8725 (auto_load_info_scripts): Change type of language arg to
8726 struct extension_language_defn *.
8727 (unsupported_script_warning_print): New function.
8728 (script_not_found_warning_print): Make static.
8729 (_initialize_auto_load): Rewrite construction of scripts-directory
8731 * auto-load.h (struct objfile): Add forward decl.
8732 (struct script_language): Delete.
8733 (struct auto_load_pspace_info): Add forward decl.
8734 (struct extension_language_defn): Add forward decl.
8735 (maybe_add_script): Delete.
8736 (auto_load_objfile_script): Declare.
8737 (script_not_found_warning_print): Delete.
8738 (auto_load_info_scripts): Update prototype.
8739 (auto_load_gdb_scripts_enabled): Declare.
8740 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8741 auto_load_python_scripts_enabled and made public.
8742 (script_language_python): Delete, moved to python.c.
8743 (gdbpy_script_language_defn): Delete.
8744 (info_auto_load_python_scripts): Update to use
8745 extension_language_python.
8747 * breakpoint.c (condition_command): Replace call to
8748 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8749 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8750 with call to breakpoint_ext_lang_cond_says_stop.
8751 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8752 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8753 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8754 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8756 (local_setattro): Print name of extension language with existing
8759 * valprint.c (val_print, value_print): Update to call
8760 apply_ext_lang_val_pretty_printer.
8761 * cp-valprint.c (cp_print_value): Update call to
8762 apply_ext_lang_val_pretty_printer.
8763 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8764 (gdbpy_apply_val_pretty_printer): Renamed from
8765 apply_val_pretty_printer. New arg extlang.
8766 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8768 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8769 extension language API.
8770 * cli/cli-script.c (execute_control_command): Update to call
8771 eval_ext_lang_from_control_command.
8773 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8774 enum ext_lang_bt_status values. Update call to
8775 apply_ext_lang_frame_filter.
8776 (mi_cmd_stack_list_locals): Ditto.
8777 (mi_cmd_stack_list_args): Ditto.
8778 (mi_cmd_stack_list_variables): Ditto.
8779 * mi/mi-main.c: Delete #include "python/python-internal.h".
8780 Add #include "extension.h".
8781 (mi_cmd_list_features): Replace reference to python internal variable
8782 gdb_python_initialized with call to ext_lang_initialized_p.
8784 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8785 Update to use enum ext_lang_frame_args. Update to call
8786 apply_ext_lang_frame_filter.
8787 * python/py-framefilter.c (extract_sym): Update to use enum
8789 (extract_value, py_print_type, py_print_value): Ditto.
8790 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8791 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8792 (py_print_frame): Ditto.
8793 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8794 New arg extlang. Update to use enum ext_lang_bt_status.
8796 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8797 finish_python_initialization. Replace with call to
8798 finish_ext_lang_initialization.
8800 * typeprint.c (do_free_global_table): Update to call
8801 free_ext_lang_type_printers.
8802 (create_global_typedef_table): Update to call
8803 start_ext_lang_type_printers.
8804 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8805 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8806 (type_print_options): Change type of global_printers from "void *"
8807 to "struct ext_lang_type_printers *".
8809 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8810 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8811 (gdbpy_preserve_values): Renamed from preserve_python_values.
8813 (!HAVE_PYTHON, preserve_python_values): Delete.
8815 * utils.c (quit_flag): Delete, moved to extension.c.
8816 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8819 * eval.c: Delete #include "python/python.h".
8820 * main.c: Delete #include "python/python.h".
8822 * defs.h: Update comment.
8824 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8828 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8830 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8833 2014-02-05 Yao Qi <yao@codesourcery.com>
8835 * remote.c (remote_pass_signals): Remove local 'buf' and use
8837 (remote_program_signals): Likewise.
8839 2014-02-05 Yao Qi <yao@codesourcery.com>
8841 * ctf.c: Include "inferior.h" and "gdbthread.h".
8842 (CTF_PID): A new macro.
8843 (ctf_open): Call inferior_appeared and add_thread_silent.
8844 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8845 (ctf_thread_alive): New function.
8846 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8848 2014-02-05 Yao Qi <yao@codesourcery.com>
8852 2013-05-24 Yao Qi <yao@codesourcery.com>
8854 * tracepoint.c (TFILE_PID): Remove.
8855 (tfile_open): Don't add thread and inferior.
8856 (tfile_close): Don't set 'inferior_ptid'. Don't call
8857 exit_inferior_silent.
8858 (tfile_thread_alive): Remove.
8859 (init_tfile_ops): Don't set field 'to_thread_alive' of
8862 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8864 * remote.c (remote_start_remote): Call remote_check_symbols even
8865 if only symbol-file (not file) has been given.
8867 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8869 * gdbarch.sh (skip_entrypoint): New callback.
8870 * gdbarch.c, gdbarch.h: Regenerate.
8871 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8872 * infrun.c (fill_in_stop_func): Likewise.
8873 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8874 (ppc_elfv2_elf_make_msymbol_special): New function.
8875 (ppc_elfv2_skip_entrypoint): Likewise.
8876 (ppc_linux_init_abi): Install them for ELFv2.
8878 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8880 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8881 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8882 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8883 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8884 structures returned in GPRs.
8886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8889 offset to the stack parameter list for the ELFv2 ABI.
8891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8893 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8894 set_gdbarch_convert_from_func_ptr_addr and
8895 set_gdbarch_elf_make_msymbol_special for ELFv1.
8896 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8897 function descriptors on ELFv1.
8898 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8899 set up r12 at function entry.
8901 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8903 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8904 (struct gdbarch_tdep): New member elf_abi.
8906 * rs6000-tdep.c: Include "elf/ppc64.h".
8907 (rs6000_gdbarch_init): Detect ELF ABI version.
8909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8912 within a register pair holding a DFP 128-bit value on little-endian.
8913 (ppc64_sysv_abi_return_value_base): Likewise.
8914 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8915 (dfp_pseudo_register_write): Likewise.
8917 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8919 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8920 offset on little-endian when passing _Decimal32.
8921 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8925 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8926 of the overlapped FP register within the VSX register on little-
8928 (efpr_pseudo_register_write): Likewise.
8930 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8932 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8933 offset on little-endian when passing small structures.
8935 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8937 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8938 (struct ppc64_sysv_argpos): New data structure.
8939 (ppc64_sysv_abi_push_float): Remove.
8940 (ppc64_sysv_abi_push_val): New function.
8941 (ppc64_sysv_abi_push_integer): Likewise.
8942 (ppc64_sysv_abi_push_freg): Likewise.
8943 (ppc64_sysv_abi_push_vreg): Likewise.
8944 (ppc64_sysv_abi_push_param): Likewise.
8945 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8946 (ppc64_sysv_abi_return_value_base): New function.
8947 (ppc64_sysv_abi_return_value): Refactor to use it.
8949 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8951 * NEWS: Document new target powerpc64le-*-linux*.
8953 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8955 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8956 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8958 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8959 register set used in ELF core dumps. Add floating-point register set.
8961 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8963 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8964 dwarf2_to_gdb[] table using symbolic constants. Adjust
8965 penultimate entry from number representing the PC register
8966 to symbolic constant representing the MDR register. Add
8967 constant for the PC register to the end of the table.
8969 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8971 * bsd-kvm.c: Include <sys/param.h>
8973 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8975 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8977 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8979 * ada-lang.h (clear_ada_sym_cache): Delete.
8981 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8983 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8985 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8987 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8988 the sigreturn register save area only if the syscall is
8991 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8993 * valops.c (value_slice): Minor reformatting.
8995 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8997 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8999 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9001 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9003 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9004 (ada_ignore_descriptive_types_p): New static global.
9005 (find_parallel_type_by_descriptive_type): Return immediately
9006 if ada_ignore_descriptive_types_p is set.
9007 (_initialize_ada_language): Register new commands "maintenance
9008 set ada", "maintenance show ada", "maintenance set ada
9009 ignore-descriptive-types" and "maintenance show ada
9010 ignore-descriptive-types".
9011 * NEWS: Add entry for new "maint ada set/show
9012 ignore-descriptive-types" commands.
9014 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9016 * record-btrace.c (record_btrace_close): Call btrace_teardown
9019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9021 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9024 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9026 * ada-typeprint (type_is_full_subrange_of_target_type):
9028 (print_range): Add parameter bounds_prefered_p. If not set,
9029 try printing range types using the name of their base type.
9030 (print_range_type): Add parameter bounds_prefered_p.
9031 Use it in call to print_range.
9032 (print_array_type, ada_print_type): Update calls to print_range
9033 and print_range_type.
9035 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9037 * ada-typeprint.c (print_array_type, print_choices, print_range)
9038 (print_range_bound, print_dynamic_range_bound, print_range_type):
9041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9043 * ada-typeprint.c (print_range): Add missing empty line
9044 after local declaration.
9046 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9048 * ada-valprint.c (print_optional_low_bound): Get index_type's
9049 target type for as long as it is a TYPE_CODE_RANGE.
9051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9053 * procfs.c (procfs_make_note_section): Remove assertion and
9056 2014-01-24 Yao Qi <yao@codesourcery.com>
9058 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9059 * corelow.c (get_core_siginfo): Likewise.
9061 2014-01-24 Yao Qi <yao@codesourcery.com>
9063 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9064 ULONGEST. Don't check 'len' is negative.
9065 (remote_write_bytes): Change type of 'len' to ULONGEST.
9067 2014-01-23 Tom Tromey <tromey@redhat.com>
9070 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9071 Handle exception from frame.block.
9072 (FrameVars.fetch_frame_locals): Likewise.
9074 2014-01-23 Tom Tromey <tromey@redhat.com>
9077 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9078 on a NULL pointer. Move "goto error" to correct place.
9080 2014-01-23 Tom Tromey <tromey@redhat.com>
9083 * python/py-framefilter.c (apply_frame_filter): Call
9084 ensure_python_env after computing gdbarch.
9086 2014-01-23 Yao Qi <yao@codesourcery.com>
9088 * target.c (raw_memory_xfer_partial): Change argument type
9089 from void * to gdb_byte *.
9090 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9092 2014-01-22 Doug Evans <dje@google.com>
9094 New gdbserver option --debug-format=timestamp.
9097 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9099 * syscalls/s390x-linux.xml: New file.
9100 * syscalls/s390-linux.xml: New file.
9101 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9102 (XML_SYSCALL_FILENAME_S390X): Likewise.
9103 (op_svc): New enum value for SVC opcode.
9104 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9105 (s390_linux_get_syscall_number): New function.
9106 (s390_gdbarch_init): Register '*get_syscall_number' and the
9107 syscall xml file name.
9108 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9109 "s390-linux.xml" and "s390x-linux.xml".
9110 * NEWS: Announce new feature.
9112 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9114 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9116 2014-01-22 Pedro Alves <palves@redhat.com>
9118 * xtensa-config.c: Include defs.h.
9120 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9122 * common/common-utils.h: Add "ARI:" comment beside __func__
9125 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9127 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9128 documentation a bit.
9130 2014-01-21 Roland McGrath <mcgrathr@google.com>
9132 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9133 * configure: Regenerate.
9134 * aclocal.m4: Regenerate.
9135 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9136 New substituted variables.
9137 (install-strip): New target.
9138 (INSTALL_SCRIPT): New substituted variable.
9139 (FLAGS_TO_PASS): Add it.
9140 (install-only): Use $(INSTALL_SCRIPT) rather than
9141 $(INSTALL_PROGRAM) for gcore.
9143 2014-01-20 Tom Tromey <tromey@redhat.com>
9145 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9148 2014-01-20 Tom Tromey <tromey@redhat.com>
9150 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9151 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9152 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9153 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9154 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9155 (struct cmd_list_element) <flags>: Remove.
9156 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9157 doc_allocated>: New fields.
9158 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9160 * maint.c (maintenance_do_deprecate): Update.
9161 * top.c (execute_command): Update.
9163 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9165 * xtensa-linux-nat.c: Include asm/ptrace.h.
9167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9169 * Makefile.in (SFILES): Add d-support.c.
9170 (COMMON_OBS): Add d-support.o.
9171 * d-lang.h (d_parse_symbol): Add comment, now defined in
9173 * d-lang.c (parse_call_convention)
9174 (parse_attributes, parse_function_types)
9175 (parse_function_args, parse_type, parse_identifier)
9176 (call_convention_p, d_parse_symbol): Move functions to ...
9177 * d-support.c: ... New file.
9179 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9181 * d-lang.h (d_parse_symbol): Add declaration.
9182 * d-lang.c (extract_identifiers)
9183 (extract_type_info): Remove functions.
9184 (parse_call_convention, parse_attributes)
9185 (parse_function_types, parse_function_args)
9186 (parse_type, parse_identifier, call_convention_p)
9187 (d_parse_symbol): New functions.
9188 (d_demangle): Use d_parse_symbol to demangle D symbols.
9190 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9192 * d-lang.h (struct builtin_d_type): New data type.
9193 (builtin_d_type): Add declaration.
9194 * d-lang.c (d_language_arch_info, build_d_types)
9195 (builtin_d_type): New functions.
9196 (enum d_primitive_types): New data type.
9197 (d_language_defn): Change c_language_arch_info to
9198 d_language_arch_info.
9199 (d_type_data): New static variable.
9200 (_initialize_d_language): Initialize d_type_data.
9202 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9204 * d-lang.h (d_main_name): Add declaration.
9205 * d-lang.c (d_main_name): New function.
9206 * symtab.c (find_main_name): Add call to d_main_name.
9208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9210 * d-lang.c (d_language_defn): Change macro_expansion_c to
9213 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9215 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9217 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9219 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9220 gdb_exception" declaration.
9221 * remote.c (getpkt_or_notif_sane): Likewise.
9223 2014-01-17 Doug Evans <dje@google.com>
9225 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9226 function, contents of dirnames_to_char_ptr_vec_append moved here.
9227 (delim_string_to_char_ptr_vec): New function.
9228 (dirnames_to_char_ptr_vec_append): Rewrite.
9229 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9231 2014-01-17 Doug Evans <dje@google.com>
9233 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9235 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9236 #include "common-utils.h".
9237 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9238 * common/vec.h (VEC_ASSERT_PASS): Update.
9239 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9240 (MACH_CHECK_ERROR): Update.
9242 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9244 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9246 * gdbarch.h: Regenerate.
9248 2014-01-16 Tom Tromey <tromey@redhat.com>
9250 * value.c (struct value) <regnum>: Move earlier.
9252 2014-01-16 Tom Tromey <tromey@redhat.com>
9254 * remote.c (extended_remote_create_inferior): Rename from
9255 extended_remote_create_inferior_1. Add "ops" argument. Remove
9258 2014-01-16 Pedro Alves <palves@redhat.com>
9260 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9261 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9264 2014-01-16 Doug Evans <dje@google.com>
9266 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9270 * btrace.h (btrace_thread_flag): New.
9271 (struct btrace_thread_info) <flags>: New.
9272 * record-btrace.c (record_btrace_resume_thread)
9273 (record_btrace_find_thread_to_move, btrace_step_no_history)
9274 (btrace_step_stopped, record_btrace_start_replaying)
9275 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9276 (record_btrace_find_resume_thread): New.
9277 (record_btrace_resume, record_btrace_wait): Extend.
9278 (record_btrace_can_execute_reverse): New.
9279 (record_btrace_open): Fail in non-stop mode.
9280 (record_btrace_set_replay): Split into this, ...
9281 (record_btrace_stop_replaying): ... this, ...
9282 (record_btrace_clear_histories): ... and this.
9283 (init_record_btrace_ops): Init to_can_execute_reverse.
9284 * NEWS: Announce it.
9286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9288 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9289 (forward_target_decr_pc_after_break)
9290 (target_decr_pc_after_break): New.
9291 * target.c (forward_target_decr_pc_after_break)
9292 (target_decr_pc_after_break): New.
9293 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9294 instead of gdbarch_decr_pc_after_break.
9295 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9296 instead of gdbarch_decr_pc_after_break.
9297 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9298 instead of gdbarch_decr_pc_after_break.
9299 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9300 instead of gdbarch_decr_pc_after_break.
9301 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9302 instead of gdbarch_decr_pc_after_break.
9303 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9304 instead of gdbarch_decr_pc_after_break.
9306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9308 * btrace.c: Include regcache.h.
9309 (btrace_add_pc): New.
9310 (btrace_enable): Call btrace_add_pc.
9311 (btrace_is_empty): New.
9312 * btrace.h (btrace_is_empty): New.
9313 * record-btrace.c (require_btrace, record_btrace_info): Call
9316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9318 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9319 Support delta reads.
9320 (linux_disable_btrace): Change return type.
9321 * common/linux-btrace.h (linux_read_btrace): Change parameters
9322 and return type to allow error reporting. Update users.
9323 (linux_disable_btrace): Change return type. Update users.
9324 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9326 (btrace_error): New.
9327 (btrace_block) <begin>: Comment on BEGIN == 0.
9328 * btrace.c (btrace_compute_ftrace): Start from the end of
9330 (btrace_stitch_trace, btrace_clear_history): New.
9331 (btrace_fetch): Read delta trace, return if replaying.
9332 (btrace_clear): Move clear history code to btrace_clear_history.
9333 (parse_xml_btrace): Throw an error if parsing failed.
9334 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9335 and return type to allow error reporting.
9336 (target_read_btrace): Change parameters and return type to allow
9338 * target.c (target_read_btrace): Update.
9339 * remote.c (remote_read_btrace): Support delta reads. Pass
9341 * NEWS: Announce it.
9343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9345 * record.h (record_btrace_frame_unwind)
9346 (record_btrace_tailcall_frame_unwind): New declarations.
9347 * dwarf2-frame: Include record.h
9348 (dwarf2_frame_cfa): Throw an error for btrace frames.
9349 * record-btrace.c: Include hashtab.h.
9350 (btrace_get_bfun_name): New.
9351 (btrace_call_history): Call btrace_get_bfun_name.
9352 (struct btrace_frame_cache): New.
9354 (bfcache_hash, bfcache_eq, bfcache_new): New.
9355 (btrace_get_frame_function): New.
9356 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9357 (record_btrace_frame_this_id): Compute own id.
9358 (record_btrace_frame_prev_register): Provide PC, throw_error
9359 for all other registers.
9360 (record_btrace_frame_sniffer): Detect btrace frames.
9361 (record_btrace_tailcall_frame_sniffer): New.
9362 (record_btrace_frame_dealloc_cache): New.
9363 (record_btrace_frame_unwind): Add new functions.
9364 (record_btrace_tailcall_frame_unwind): New.
9365 (_initialize_record_btrace): Allocate cache.
9366 * btrace.c (btrace_clear): Call reinit_frame_cache.
9367 * NEWS: Announce it.
9369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9371 * record-btrace.c (record_btrace_set_replay)
9372 (record_btrace_goto_begin, record_btrace_goto_end)
9373 (record_btrace_goto): New.
9374 (init_record_btrace_ops): Initialize them.
9375 * NEWS: Announce it.
9377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9379 * record-btrace.c (record_btrace_find_new_threads)
9380 (record_btrace_thread_alive): New.
9381 (init_record_btrace_ops): Initialize to_find_new_threads and
9384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9386 * record-btrace.c (record_btrace_resume): New.
9387 (record_btrace_wait): New.
9388 (init_record_btrace_ops): Initialize to_wait and to_resume.
9390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9392 * record-btrace.c (record_btrace_xfer_partial)
9393 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9394 (record_btrace_allow_memory_access): New.
9395 (init_record_btrace_ops): Initialize new methods.
9396 * target.c (raw_memory_xfer_partial): Bail out if target reports
9397 that this memory is not available.
9399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9401 * target.h (target_ops) <to_insert_breakpoint>
9402 <to_remove_breakpoint>: Add target_ops parameter.
9403 (forward_target_insert_breakpoint): New.
9404 (forward_target_remove_breakpoint): New.
9405 (memory_remove_breakpoint, memory_insert_breakpoint):
9406 Add target_ops parameter.
9407 * target.c (target_insert_breakpoint): Split into this and ...
9408 (forward_target_insert_breakpoint): ... this.
9409 (target_remove_breakpoint): Split into this and ...
9410 (forward_target_remove_breakpoint): ... this.
9411 (debug_to_insert_breakpoint): Add target_ops parameter.
9412 Call forward_target_insert_breakpoint.
9413 (debug_to_remove_breakpoint): Add target_ops parameter.
9414 Call forward_target_remove_breakpoint.
9415 (update_current_target): Do not inherit or default to_insert_breakpoint
9416 and to_remove_breakpoint.
9417 * corelow.c (ignore): Add target_ops parameter.
9418 * exec.c (ignore): Add target_ops parameter.
9419 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9420 Add target_ops parameter.
9421 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9422 Add target_ops parameter.
9423 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9424 Add target_ops parameter.
9425 * record-full.c (record_full_beneath_to_insert_breakpoint)
9426 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9427 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9428 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9429 (record_full_core_remove_breakpoint): Add target_ops parameter.
9431 (record_full_beneath_to_insert_breakpoint_ops)
9432 (record_full_beneath_to_remove_breakpoint_ops)
9433 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9434 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9435 tmp_to_remove_breakpoint_ops,
9436 record_full_beneath_to_insert_breakpoint_ops, and
9437 record_full_beneath_to_remove_breakpoint_ops.
9438 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9439 (m32r_remove_breakpoint): Add target_ops parameter.
9440 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9441 Add target_ops parameter.
9442 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9443 Add target_ops parameter.
9445 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9446 Markus Metzger <markus.t.metzger@intel.com>
9448 * record-btrace.c: Include frame-unwind.h.
9449 (record_btrace_frame_unwind_stop_reason)
9450 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9451 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9453 (init_record_btrace_ops): Install it.
9455 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9457 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9460 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9462 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9465 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9467 * frame-unwind.c: Include target.h.
9468 (frame_unwind_try_unwinder): New function with code from ...
9469 (frame_unwind_find_by_frame): ... here. New variable
9470 unwinder_from_target, call also target_get_unwinder)
9471 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9472 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9473 * target.h (struct target_ops): New fields to_get_unwinder and
9474 to_get_tailcall_unwinder.
9475 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9479 * record-btrace.c (record_btrace_fetch_registers)
9480 (record_btrace_store_registers)
9481 (record_btrace_to_prepare_to_store): New.
9482 (init_record_btrace_ops): Add the above.
9484 2014-01-16 Tom Tromey <tromey@redhat.com>
9486 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9487 * target.h (struct target_ops) <to_prepare_to_store>: Add
9489 (target_prepare_to_store): Add argument.
9490 * target.c (debug_to_prepare_to_store): Add argument.
9491 (update_current_target): Update.
9492 * remote.c (remote_prepare_to_store): Add 'self' argument.
9493 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9494 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9495 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9496 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9498 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9499 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9500 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9501 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9502 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9506 * btrace.h (replay) <replay>: New.
9507 (btrace_is_replaying): New.
9508 * btrace.c (btrace_clear): Free replay iterator.
9509 (btrace_is_replaying): New.
9510 * record-btrace.c (record_btrace_is_replaying): New.
9511 (record_btrace_info): Print insn number if replaying.
9512 (record_btrace_insn_history): Start at replay position.
9513 (record_btrace_call_history): Start at replay position.
9514 (init_record_btrace_ops): Init to_record_is_replaying.
9516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9518 * record-btrace.c (record_btrace_insn_history_range): Include
9520 (record_btrace_insn_history_from): Adjust range.
9521 (record_btrace_call_history_range): Include
9523 (record_btrace_call_history_from): Adjust range.
9524 * NEWS: Announce changes.
9526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9528 * record.h (enum record_print_flag)
9529 <record_print_indent_calls>: New.
9530 * record.c (get_call_history_modifiers): Recognize /c modifier.
9531 (_initialize_record): Document /c modifier.
9532 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9533 Reorder fields. Optionally indent the function name. Update
9535 * NEWS: Announce changes.
9537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9539 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9543 * btrace.c (ftrace_new_function): Start counting at one.
9544 * record-btrace.c (record_btrace_info): Adjust number of calls
9546 * NEWS: Announce it.
9548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9550 * record-btrace.c (btrace_call_history_insn_range): Print
9551 insn range as [begin, end].
9553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9555 * btrace.h (struct btrace_func_link): New.
9556 (enum btrace_function_flag): New.
9557 (struct btrace_inst): Rename to ...
9558 (struct btrace_insn): ...this. Update all users.
9559 (struct btrace_func) <ibegin, iend>: Remove.
9560 (struct btrace_func_link): New.
9561 (struct btrace_func): Rename to ...
9562 (struct btrace_function): ...this. Update all users.
9563 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9564 (number, level, flags>: New.
9565 (struct btrace_insn_iterator): Rename to ...
9566 (struct btrace_insn_history): ...this.
9568 (struct btrace_insn_iterator, btrace_call_iterator): New.
9569 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9570 (struct btrace_target_info) <begin, end, level>
9571 <insn_history, call_history>: New.
9572 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9573 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9574 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9575 (btrace_call_number, btrace_call_begin, btrace_call_end)
9576 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9577 (btrace_find_function_by_number, btrace_set_insn_history)
9578 (btrace_set_call_history): New.
9579 * btrace.c (btrace_init_insn_iterator)
9580 (btrace_init_func_iterator, compute_itrace): Remove.
9581 (ftrace_print_function_name, ftrace_print_filename)
9582 (ftrace_skip_file): Change
9584 (ftrace_init_func): Remove.
9585 (ftrace_debug): Use new btrace_function fields.
9586 (ftrace_function_switched): Also consider gaining and
9587 losing symbol information).
9588 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9589 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9590 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9592 (ftrace_new_function): Move. Remove debug print.
9593 (ftrace_update_lines, ftrace_update_insns): New.
9594 (ftrace_update_function): Check for call, ret, and jump.
9595 (compute_ftrace): Renamed to ...
9596 (btrace_compute_ftrace): ...this. Rewritten to compute call
9598 (btrace_fetch, btrace_clear): Updated.
9599 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9600 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9601 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9602 (btrace_call_number, btrace_call_begin, btrace_call_end)
9603 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9604 (btrace_find_function_by_number, btrace_set_insn_history)
9605 (btrace_set_call_history): New.
9606 * record-btrace.c (require_btrace): Use new btrace thread
9608 (record_btrace_info, btrace_insn_history)
9609 (record_btrace_insn_history, record_btrace_insn_history_range):
9610 Use new btrace thread info fields and new iterator.
9611 (btrace_func_history_src_line): Rename to ...
9612 (btrace_call_history_src_line): ...this. Use new btrace
9614 (btrace_func_history): Rename to ...
9615 (btrace_call_history): ...this. Use new btrace thread info
9616 fields and new iterator.
9617 (record_btrace_call_history, record_btrace_call_history_range):
9618 Use new btrace thread info fields and new iterator.
9620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9622 * frame.h (frame_id_build_unavailable_stack_special): New.
9623 * frame.c (frame_id_build_unavailable_stack_special): New.
9625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9627 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9628 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9629 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9631 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9632 (i386_insn_is_jump, i386_jmp_p): New.
9633 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9634 insn_is_jump to gdbarch.
9635 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9636 * gdbarch.h: Regenerated.
9637 * gdbarch.c: Regenerated.
9638 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9639 (default_insn_is_jump): New.
9640 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9641 (default_insn_is_jump): New.
9643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9645 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9647 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9648 (btrace_read_type) <btrace_read_new>: Change to ...
9649 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9653 * common/linux-btrace.c (linux_read_btrace): Free trace from
9656 2014-01-15 Doug Evans <dje@google.com>
9658 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9661 2014-01-15 Tom Tromey <tromey@redhat.com>
9663 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9664 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9665 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9666 (set_objfile_main_name): New function.
9667 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9668 language_of_main>: New fields.
9669 (set_objfile_main_name): Declare.
9670 * symtab.c (find_main_name): Loop over objfiles to find the main
9672 (set_main_name): Now static.
9673 (get_main_info): Add comment.
9674 * symtab.h (set_main_name): Don't declare.
9676 2014-01-15 Tom Tromey <tromey@redhat.com>
9678 * symtab.c (main_progspace_key): New global.
9679 (struct main_info): New.
9680 (name_of_main, language_of_main): Remove.
9681 (get_main_info, main_info_cleanup): New function.
9682 (set_main_name, main_name, main_language): Use get_main_info.
9683 (_initialize_symtab): Initialize main_progspace_key.
9685 2014-01-15 Tom Tromey <tromey@redhat.com>
9687 * dbxread.c (process_one_symbol): Update.
9688 * dwarf2read.c (read_partial_die): Update.
9689 * symfile.c (set_initial_language): Call main_language.
9690 * symtab.c (language_of_main): Now static.
9691 (set_main_name): Add 'lang' parameter.
9692 (find_main_name): Update.
9693 (main_language): New function.
9694 (symtab_observer_executable_changed): Update.
9695 * symtab.h (set_main_name): Update.
9696 (language_of_main): Remove.
9697 (main_language): Declare.
9699 2014-01-15 Tom Tromey <tromey@redhat.com>
9701 * symfile.c (init_entry_point_info): Use new "initialized" field.
9703 * objfiles.h (struct entry_point) <initialized>: New field.
9704 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9705 (struct objfile) <ei>: ...here. Remove.
9706 * objfiles.c (entry_point_address_query): Update.
9708 2014-01-15 Tom Tromey <tromey@redhat.com>
9710 * objfiles.c (entry_point_address_query): Relocate entry point
9712 (objfile_relocate1): Do not relocate entry point address.
9713 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9714 <the_bfd_section_index>: New field.
9715 * symfile.c (init_entry_point_info): Find the entry point's
9718 2014-01-15 Tom Tromey <tromey@redhat.com>
9720 * solib-frv.c (enable_break): Use entry_point_address_query.
9722 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9724 * NEWS: Add note on improved process record-replay on
9725 arm*-linux* targets.
9727 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9729 * arm-tdep.c (enum arm_record_result): New enum.
9730 (arm_record_unsupported_insn): New function.
9731 (arm_record_coproc_data_proc): Removed.
9732 (thumb2_record_ld_st_multiple): New function.
9733 (thumb2_record_ld_st_dual_ex_tbb): New function.
9734 (thumb2_record_data_proc_sreg_mimm): New function.
9735 (thumb2_record_ps_dest_generic): New function.
9736 (thumb2_record_branch_misc_cntrl): New function.
9737 (thumb2_record_str_single_data): New function.
9738 (thumb2_record_ld_mem_hints): New function.
9739 (thumb2_record_ld_word): New function.
9740 (thumb2_record_lmul_lmla_div): New function.
9741 (thumb2_record_decode_insn_handler): New function.
9742 (decode_insn): Add thumb32 instruction handlers.
9744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9746 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9747 (struct arm_linux_record_tdep): Declare.
9748 (arm_canonicalize_syscall): New function.
9749 (arm_all_but_pc_registers_record): New function.
9750 (arm_linux_syscall_record): New function.
9751 (arm_linux_init_abi): Add syscall recording constructs.
9752 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9753 decoding. (arm_record_coproc_data_proc): Update arm syscall
9755 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9756 <arm_syscall_record>: New field.
9757 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9762 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9763 register for push instruction recording.
9765 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9767 * arm-tdep.c (thumb_record_misc): Update to correct logical
9768 error while recording ldm, ldmia and pop instructions.
9770 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9772 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9774 2014-01-15 Pedro Alves <palves@redhat.com>
9776 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9777 (go32_resume, go32_fetch_registers, store_register)
9778 (go32_store_registers, go32_prepare_to_store)
9779 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9780 (go32_create_inferior, go32_can_run, go32_terminal_init)
9781 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9784 2014-01-15 Tom Tromey <tromey@redhat.com>
9786 * target.h (async_callback_ftype): New typedef.
9787 (struct target_ops) <to_async>: Use it.
9789 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9791 * python/py-value.c (get_field_type): Remove unnecessary curly
9792 braces for single-statement if block.
9794 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9796 * python/py-type.c (convert_field): Add missing empty line
9799 2014-01-14 Doug Evans <dje@google.com>
9801 * symfile.h (expand_symtabs_matching): Renamed from
9802 expand_partial_symbol_names. Update prototype.
9803 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9804 * symfile.c (expand_symtabs_matching): Renamed from
9805 expand_partial_symbol_names. New args file_matcher, kind.
9806 Rename arg fun to symbol_matcher.
9807 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9808 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9809 ada_expand_partial_symbol_name.
9810 (ada_make_symbol_completion_list): Update to call
9811 expand_symtabs_matching.
9812 (ada_add_global_exceptions): Call expand_symtabs_matching.
9813 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9814 call map_symbol_filenames.
9815 * symtab.c (sources_info): Update to call map_symbol_filenames.
9816 (search_symbols): Call expand_symtabs_matching.
9817 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9818 (default_make_symbol_completion_list_break_on): Update to call
9819 expand_symtabs_matching.
9820 (make_source_files_completion_list): Update to call
9821 map_symbol_filenames.
9823 2014-01-14 Doug Evans <dje@google.com>
9825 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9826 (expand_symtabs_symbol_matcher_ftype): New typedef.
9827 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9828 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9829 * symfile.c (expand_partial_symbol_names): Update to use
9830 expand_symtabs_symbol_matcher_ftype.
9831 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9832 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9833 Arg name_matcher renamed to symbol_matcher.
9834 * psymtab.c (recursively_search_psymtabs): Update to use
9835 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9837 (expand_symtabs_matching_via_partial): Update to use
9838 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9839 Arg name_matcher renamed to symbol_matcher.
9841 2014-01-14 Doug Evans <dje@google.com>
9843 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9844 (map_partial_symbol_filenames): Ditto.
9845 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9846 (map_partial_symbol_filenames): Ditto.
9847 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9848 (map_partial_symbol_filenames): Ditto.
9849 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9850 (map_partial_symbol_filenames): Ditto.
9851 * symtab.c: Delete #include "psymtab.h".
9853 2014-01-14 Pedro Alves <palves@redhat.com>
9854 Tom Tromey <tromey@redhat.com>
9856 * infrun.c (use_displaced_stepping): Use find_record_target
9857 instead of RECORD_IS_USED.
9858 (adjust_pc_after_break): Use record_full_is_used instead of
9860 * record-btrace.c (record_btrace_open): Call record_preopen
9861 instead of checking RECORD_IS_USED.
9862 * record-full.c (record_full_shortname)
9863 (record_full_core_shortname): New globals.
9864 (record_full_is_used): New function.
9865 (find_full_open): Call record_preopen instead of checking
9867 (init_record_full_ops): Set the target's shortname to
9868 record_full_shortname.
9869 (init_record_full_core_ops): Set the target's shortname to
9870 record_full_core_shortname.
9871 * record-full.h (record_full_is_used): Declare.
9872 * record.c (find_record_target): Make extern.
9873 (record_preopen): New function.
9874 * record.h (RECORD_IS_USED): Delete macro.
9875 (find_record_target, record_preopen): Declare functions.
9877 2014-01-14 Yao Qi <yao@codesourcery.com>
9879 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9880 'len''s type to ULONGEST.
9881 (core_xfer_shared_libraries_aix): Likewise.
9882 * gdbarch.c, gdbarch.h: Regenerated.
9883 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9884 Change type of 'len' to ULONGEST.
9885 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9886 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9888 2014-01-14 Yao Qi <yao@codesourcery.com>
9890 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9891 type of 'len' to ULONGEST.
9892 (linux_xfer_osdata_processgroups): Likewise.
9893 (linux_xfer_osdata_threads): Likewise.
9894 (linux_xfer_osdata_fds): Likewise.
9895 (linux_xfer_osdata_isockets): Likewise.
9896 (linux_xfer_osdata_shm): Likewise.
9897 (linux_xfer_osdata_sem): Likewise.
9898 (linux_xfer_osdata_msg): Likewise.
9899 (linux_common_xfer_osdata): Likewise.
9900 (struct osdata_type) <getter>: Likewise.
9901 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9904 2014-01-14 Yao Qi <yao@codesourcery.com>
9906 * target.h (target_xfer_partial_ftype): Update.
9907 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9909 * aix-thread.c (aix_thread_xfer_partial): Change type of
9910 argument 'len' to ULONGEST.
9911 * auxv.c (procfs_xfer_auxv): Likewise.
9912 (ld_so_xfer_auxv): Likewise.
9913 (memory_xfer_auxv): Likewise.
9914 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9915 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9916 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9917 * corelow.c (core_xfer_partial): Likewise.
9918 * ctf.c (ctf_xfer_partial): Likewise.
9919 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9921 (darwin_read_dyld_info): Likewise.
9922 (darwin_xfer_partial): Likewise.
9923 * exec.c (section_table_xfer_memory_partial): Likewise.
9924 (exec_xfer_partial): Likewise.
9925 * exec.h (section_table_xfer_memory_partial): Update
9927 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9928 instead of plongest.
9929 (gnu_xfer_partial): Likewise.
9930 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9931 (ia64_hpux_xfer_solib_got): Likewise.
9932 (ia64_hpux_xfer_partial): Likewise.
9933 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9934 * inf-ptrace.c (inf_ptrace_xfer_partial):
9935 * inf-ttrace.c (inf_ttrace_xfer_partial):
9936 * linux-nat.c (linux_xfer_siginfo): Likewise.
9937 (linux_nat_xfer_partial): Likewise.
9938 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9939 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9940 * monitor.c (monitor_xfer_memory): Likewise.
9941 (monitor_xfer_partial): Likewise.
9942 * procfs.c (procfs_xfer_partial): Likewise.
9943 * record-full.c (record_full_xfer_partial): Likewise.
9944 (record_full_core_xfer_partial): Likewise.
9945 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9946 instead of plongest.
9947 (gdbsim_xfer_partial): Likewise.
9948 * remote.c (remote_xfer_partial): Likewise.
9949 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9950 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9952 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9953 (rs6000_xfer_shared_libraries): Likewise.
9954 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9955 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9956 (sparc_xfer_partial): Likewise.
9957 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9958 (spu_xfer_partial): Likewise.
9959 * spu-multiarch.c (spu_xfer_partial): Likewise.
9960 * target.c (target_read_live_memory): Likewise.
9961 (memory_xfer_live_readonly_partial): Likewise.
9962 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9963 (target_xfer_partial, default_xfer_partial): Likewise.
9964 (current_xfer_partial): Likewise.
9965 * tracepoint.c (tfile_xfer_partial): Likewise.
9966 * windows-nat.c (windows_xfer_memory): Likewise. Call
9967 pulongest instead of plongest.
9968 (windows_xfer_partial): Likewise.
9969 (windows_xfer_shared_libraries): Likewise.
9971 2014-01-14 Yao Qi <yao@codesourcery.com>
9973 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9974 target_xfer_partial_ftype.
9976 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9980 * valops.c (value_struct_elt_bitpos): New function
9981 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9982 object to 'None' if the field name is an empty string ("").
9983 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9984 attribute to look for a field when 'name' is 'None'.
9985 (get_field_type): New function
9987 2014-01-13 Doug Evans <dje@google.com>
9990 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9991 (try_open_dwop_file): Ditto.
9992 * gdb_bfd.c: #include "vec.h".
9993 (bfdp): New typedef.
9994 (struct gdb_bfd_data): New member included_bfds.
9995 (gdb_bfd_unref): Unref all included bfds.
9996 (gdb_bfd_record_inclusion): New function.
9997 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9999 2014-01-13 Tom Tromey <tromey@redhat.com>
10001 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10003 2014-01-13 Tom Tromey <tromey@redhat.com>
10005 * defs.h (use_windows): Remove.
10006 * gdb.c (main): Update.
10007 * main.c (captured_main, gdb_main): Update.
10008 * main.h (struct captured_main_args) <use_windows>: Remove.
10009 * top.c (use_windows): Remove.
10011 2014-01-13 Tom Tromey <tromey@redhat.com>
10013 * defs.h (deprecated_flush_hook): Remove.
10015 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10018 * linux-thread-db.c (try_thread_db_load): Add parameter
10019 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10020 (try_thread_db_load_from_pdir_1): Move it there from here.
10021 (try_thread_db_load_from_sdir): Update caller.
10022 (try_thread_db_load_from_dir): Move it there from here.
10024 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10026 * regformats/regdat.sh: Always rewrite the register file.
10028 2014-01-13 Pedro Alves <palves@redhat.com>
10030 * Makefile.in (CHECK_HEADERS): New variable.
10031 (check-headers:): New rule.
10033 2014-01-13 Tom Tromey <tromey@redhat.com>
10035 * cli/cli-setshow.c (do_set_command): Update.
10036 * defs.h (deprecated_set_hook): Remove.
10037 * top.c (deprecated_set_hook): Remove.
10039 2014-01-13 Pedro Alves <palves@redhat.com>
10041 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10042 the tracepoint if the PC is a pseudo-register.
10044 2014-01-13 Tom Tromey <tromey@redhat.com>
10046 * defs.h (XCALLOC): Remove.
10047 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10048 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10049 * dwarf2loc.c (allocate_piece_closure): Likewise.
10050 * elfread.c (elf_symfile_segments): Likewise.
10051 (elf_symfile_segments): Likewise.
10052 * gdbtypes.c (copy_type_recursive): Likewise.
10053 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10054 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10055 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10057 * mt-tdep.c (mt_gdbarch_init): Likewise.
10058 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10060 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10061 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10062 * registry.c (registry_alloc_data): Likewise.
10063 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10064 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10065 * serial.c (serial_fdopen_ops): Likewise.
10066 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10068 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10069 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10072 2014-01-13 Tom Tromey <tromey@redhat.com>
10074 * defs.h (XMALLOC): Remove.
10075 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10076 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10077 * cli-out.c (struct ui_out *): Likewise.
10078 * cli/cli-dump.c (add_dump_command): Likewise.
10079 (add_dump_command): Likewise.
10080 * complaints.c (get_complaints): Likewise.
10081 (find_complaint): Likewise.
10082 * dwarf2-frame.c (execute_cfa_program): Likewise.
10083 * dwarf2read.c (abbrev_table_read_table): Likewise.
10084 * gdbarch.sh: Likewise.
10085 * gdbarch.c: Rebuild.
10086 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10087 * interps.c (interp_new): Likewise.
10088 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10089 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10090 * mi/mi-console.c (mi_console_file_new): Likewise.
10091 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10092 * mi/mi-out.c (mi_out_new): Likewise.
10093 * mi/mi-parse.c (mi_parse): Likewise.
10094 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10095 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10096 * observer.c (xalloc_observer_list_node): Likewise.
10097 * regcache.c (regcache_xmalloc_1): Likewise.
10098 * reggroups.c (reggroup_new): Likewise.
10099 (_initialize_reggroup): Likewise.
10100 * registry.c (register_data_with_cleanup): Likewise.
10101 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10102 * ser-base.c (serial_ttystate): Likewise.
10103 * ser-mingw.c (make_pipe_state): Likewise.
10104 * ser-pipe.c (pipe_open): Likewise.
10105 * serial.c (serial_open): Likewise.
10106 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10107 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10108 (tui_alloc_win_info): Likewise.
10109 (tui_add_content_elements): Likewise.
10110 * tui/tui-file.c (tui_file_new): Likewise.
10111 * tui/tui-out.c (tui_out_new): Likewise.
10112 * ui-file.c (mem_file_new): Likewise.
10113 * ui-out.c (push_level): Likewise.
10114 (make_cleanup_ui_out_end): Likewise.
10115 (append_header_to_list): Likewise.
10116 (ui_out_new): Likewise.
10117 * user-regs.c (user_reg_add_builtin): Likewise.
10119 2014-01-13 Tom Tromey <tromey@redhat.com>
10121 * defs.h (XZALLOC): Remove.
10122 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10123 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10124 (get_ada_tasks_inferior_data): Likewise.
10125 * auto-load.c (get_auto_load_pspace_data): Likewise.
10126 * auxv.c (get_auxv_inferior_data): Likewise.
10127 * bfd-target.c (target_bfd_reopen): Likewise.
10128 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10129 (deprecated_insert_raw_breakpoint): Likewise.
10130 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10131 * corelow.c (core_open): Likewise.
10132 * darwin-nat.c (darwin_check_new_threads): Likewise.
10133 (darwin_attach_pid): Likewise.
10134 * dummy-frame.c (dummy_frame_push): Likewise.
10135 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10136 * dwarf2loc.c (allocate_piece_closure): Likewise.
10137 * elfread.c (elf_symfile_segments): Likewise.
10138 * eval.c (ptrmath_type_p): Likewise.
10139 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10140 * gdbtypes.c (alloc_type_arch): Likewise.
10141 (alloc_type_instance): Likewise.
10142 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10143 * inf-child.c (inf_child_can_use_agent): Likewise.
10144 * inflow.c (get_inflow_inferior_data): Likewise.
10145 * infrun.c (save_infcall_suspend_state): Likewise.
10146 * jit.c (jit_reader_load): Likewise.
10147 (get_jit_objfile_data): Likewise.
10148 (get_jit_program_space_data): Likewise.
10149 (jit_object_open_impl): Likewise.
10150 (jit_symtab_open_impl): Likewise.
10151 (jit_block_open_impl): Likewise.
10152 (jit_frame_sniffer): Likewise.
10153 * linux-fork.c (add_fork): Likewise.
10154 * maint.c (make_command_stats_cleanup): Likewise.
10155 * objfiles.c (get_objfile_pspace_data): Likewise.
10156 * opencl-lang.c (struct lval_closure): Likewise.
10157 * osdata.c (osdata_start_osdata): Likewise.
10158 * progspace.c (new_address_space): Likewise.
10159 (add_program_space): Likewise.
10160 * remote-sim.c (get_sim_inferior_data): Likewise.
10161 * sh-tdep.c (sh_gdbarch_init): Likewise.
10162 * skip.c (Ignore): Likewise.
10163 (skip_delete_command): Likewise.
10164 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10165 (library_list_start_library): Likewise.
10166 (solib_aix_current_sos): Likewise.
10167 * solib-darwin.c (get_darwin_info): Likewise.
10168 (darwin_current_sos): Likewise.
10169 * solib-dsbt.c (get_dsbt_info): Likewise.
10170 * solib-ia64-hpux.c (new_so_list): Likewise.
10171 (ia64_hpux_get_solib_linkage_addr): Likewise.
10172 * solib-spu.c (append_ocl_sos): Likewise.
10173 (spu_current_sos): Likewise.
10174 * solib-svr4.c (get_svr4_info): Likewise.
10175 (svr4_keep_data_in_core): Likewise.
10176 (library_list_start_library): Likewise.
10177 (svr4_default_sos): Likewise.
10178 (svr4_read_so_list): Likewise.
10179 * solib-target.c (library_list_start_library): Likewise.
10180 (solib_target_current_sos): Likewise.
10181 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10182 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10183 * symfile.c (default_symfile_segments): Likewise.
10184 * target-descriptions.c (tdesc_data_init): Likewise.
10185 (tdesc_create_reg): Likewise.
10186 (struct tdesc_type *): Likewise.
10187 (tdesc_create_vector): Likewise.
10188 (tdesc_set_struct_size): Likewise.
10189 (struct tdesc_type *): Likewise.
10190 (tdesc_free_feature): Likewise.
10191 (tdesc_create_feature): Likewise.
10192 * windows-nat.c (windows_add_thread): Likewise.
10193 (windows_make_so): Likewise.
10194 * xml-support.c (gdb_xml_body_text): Likewise.
10195 (gdb_xml_create_parser_and_cleanup): Likewise.
10196 (xml_process_xincludes): Likewise.
10197 * xml-syscall.c (allocate_syscalls_info): Likewise.
10198 (syscall_create_syscall_desc): Likewise.
10200 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10202 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10203 function, with code from i386_stap_parse_special_token.
10204 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10205 (i386_stap_parse_special_token): Move code to the two functions
10206 above; simplify it.
10208 2014-01-09 Pedro Alves <palves@redhat.com>
10209 Hui Zhu <hui@codesourcery.com>
10212 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10213 bp_err_string. Don't mark the location shlib_disabled if the
10214 error thrown wasn't a generic or memory error. Catch errors
10215 thrown while inserting breakpoints in overlayed code. Output
10216 error message of software breakpoints.
10217 * remote.c (remote_insert_breakpoint): If this breakpoint has
10218 target-side commands but this stub doesn't support Z0 packets,
10219 throw NOT_SUPPORTED_ERROR error.
10220 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10221 * target.h (target_insert_breakpoint): Extend comment.
10222 (target_insert_hw_breakpoint): Add comment.
10224 2014-01-08 Pedro Alves <palves@redhat.com>
10226 * remote.c (remote_add_thread): Add threads silently if starting
10228 (remote_notice_new_inferior): If in all-stop, and starting up,
10229 don't call notice_new_inferior.
10230 (get_current_thread): New function, factored out from ...
10231 (add_current_inferior_and_thread): ... this. Adjust.
10232 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10233 found any thread, then select the remote's current thread as GDB's
10234 current thread too.
10236 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10238 * NEWS: Create a new section for the next release branch.
10239 Rename the section of the current branch, now that it has
10242 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10244 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10245 * version.in: Bump version to 7.7.50.DATE-cvs.
10247 2014-01-08 Yao Qi <yao@codesourcery.com>
10249 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10250 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10251 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10253 2014-01-08 Yao Qi <yao@codesourcery.com>
10255 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10256 return value of bfd_get_filename to symbol_file_add_from_bfd.
10258 2014-01-08 Pierre Muller <muller@sourceware.org>
10261 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10262 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10263 to prim_record_mininal_symbol_and_info.
10264 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10265 in call to prim_record_minimal_symbol_and_info.
10266 (read_pe_exported_syms): Set index field of section_data.
10268 2014-01-07 Andrew Pinski <apinski@cavium.com>
10270 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10271 * features/aarch64.c: Regenerate.
10273 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10275 * target.c (return_null): Define.
10276 (update_current_target): Use it instead of return_zero for
10277 functions that return a pointer.
10279 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10281 * source.c (add_path): Fix check for duplicated paths in the previously
10284 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10286 * ada-lang.c: Remove duplicated include statements.
10287 * alphabsd-nat.c: Ditto.
10288 * amd64-darwin-tdep.c: Ditto.
10289 * amd64fbsd-nat.c: Ditto.
10290 * auto-load.c: Ditto.
10292 * breakpoint.c: Ditto.
10293 * dbxread.c: Ditto.
10294 * fork-child.c: Ditto.
10295 * gdb_usleep.c: Ditto.
10296 * i386-darwin-tdep.c: Ditto.
10297 * i386fbsd-nat.c: Ditto.
10299 * inferior.c: Ditto.
10300 * jv-lang.c: Ditto.
10301 * linux-nat.c: Ditto.
10302 * linux-tdep.c: Ditto.
10303 * m68kbsd-nat.c: Ditto.
10304 * m68klinux-nat.c: Ditto.
10305 * microblaze-tdep.c: Ditto.
10306 * mips-linux-tdep.c: Ditto.
10307 * mn10300-tdep.c: Ditto.
10308 * nto-tdep.c: Ditto.
10309 * opencl-lang.c: Ditto.
10311 * printcmd.c: Ditto.
10312 * regcache.c: Ditto.
10313 * remote-m32r-sdi.c: Ditto.
10315 * symfile.c: Ditto.
10317 * tilegx-linux-nat.c: Ditto.
10318 * tilegx-tdep.c: Ditto.
10319 * tracepoint.c: Ditto.
10321 * vaxbsd-nat.c: Ditto.
10322 * windows-nat.c: Ditto.
10323 * xtensa-tdep.c: Ditto.
10325 2014-01-07 Yao Qi <yao@codesourcery.com>
10327 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10329 2014-01-07 Yao Qi <yao@codesourcery.com>
10330 Joel Brobecker <brobecker@adacore.com>
10332 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10333 (pdc_write_regs): Likewise.
10334 (fetch_regs_kernel_thread): Likewise.
10335 (store_regs_kernel_thread): Likewise.
10337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10339 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10340 tagged type objects to their actual type.
10342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10344 * ada-valprint.c (print_field_values): Add "language" parameter.
10345 Update calls to print_field_values and print_variant_part.
10346 Pass new parameter "language" in call to val_print instead
10347 of "current_language". Replace call to ada_val_print by call
10349 (print_variant_part): Add "language" parameter.
10350 (ada_val_print_struct_union): Update call to print_field_values.
10352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10354 * ada-valprint.c (ui_memcpy): Delete.
10355 (ada_print_floating): Update documentation. Add empty line
10356 between between function documentation and implementation.
10357 Delete variable "buffer". Use ui_file_xstrdup in place of
10358 ui_file_put. Minor adjustments following this change.
10360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10362 * ada-valprint.c (ada_val_print_string): New function,
10363 extracted from ada_val_print_array.
10364 (ada_val_print_array): Replace extracted code by call
10365 to ada_val_print_string followed by a return. Move
10366 "else" branch to the function's top block.
10368 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10370 * ada-valprint.c (ada_val_print_array): Move implementation
10371 down. Rename parameter "offset" and "val" into "offset_aligned"
10372 and "original_value" respectively. Add parameter "offset".
10374 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10376 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10377 re-organizing the code. Change the "???" message printed
10378 when target type is a TYPE_CODE_UNDEF into
10379 "<ref to undefined type>".
10381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10383 * ada-valprint.c (print_record): Delete, implementation inlined...
10384 (ada_val_print_struct_union): ... here. Remove call to
10385 ada_check_typedef in inlined implementation.
10387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10389 * ada-valprint.c (ada_val_print_gnat_array): New function,
10390 extracted from ada_val_print_1;
10391 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10392 (ada_val_print_flt, ada_val_print_struct_union)
10393 (ada_val_print_ref): Likewise.
10394 (ada_val_print_1): Delete variables i and elttype.
10395 Replace extracted-out code by call to corresponding
10398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10400 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10404 * ada-valprint.c (ada_val_print_1): Replace calls to
10405 ada_val_print_1 by calls to val_print.
10407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10409 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10410 Update calls to self accordingly. Replace calls to c_val_print
10411 by calls to val_print.
10413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10415 * ada-valprint.c (print_record): Delete declaration.
10416 (adjust_type_signedness, ada_val_print_1): Likewise.
10417 (ada_val_print): Move function implementation down.
10418 (print_variant_part, print_field_values, print_record):
10419 Move function implementation up.
10421 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10423 * python/py-type.c (typy_get_name): New function.
10424 (type_object_getset): Add entry for attribute "name".
10425 * NEWS: Add entry mentioning this new attribute.
10427 2014-01-07 Yao Qi <yao@codesourcery.com>
10429 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10432 2014-01-07 Yao Qi <yao@codesourcery.com>
10434 * gnu-nat.c (info_port_rights): Add qualifier const to
10437 2014-01-07 Yao Qi <yao@codesourcery.com>
10439 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10441 2014-01-07 Yao Qi <yao@codesourcery.com>
10443 * gnu-nat.c (make_inf) Update declaration.
10444 (make_inf): Make it static.
10445 (inf_set_traced): Likewise.
10446 (inf_port_to_thread, inf_task_died_status): Likewise.
10448 2014-01-07 Yao Qi <yao@codesourcery.com>
10450 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10452 2014-01-07 Yao Qi <yao@codesourcery.com>
10454 * gnu-nat.c (_initialize_gnu_nat): Declare.
10456 2014-01-07 Yao Qi <yao@codesourcery.com>
10458 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10460 (struct gdbarch_info) <byte_order>: Change type to
10462 <byte_order_for_code>: Likewise.
10463 * gdbarch.c, gdbarch.h: Regenerated.
10465 2014-01-06 Sasha Smundak <asmundak@google.com>
10467 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10469 2014-01-06 Tom Tromey <tromey@redhat.com>
10471 * doublest.c (convert_doublest_to_floatformat): Use const, not
10473 * somread.c (som_symtab_read): Likewise.
10475 2014-01-07 Hui Zhu <hui@codesourcery.com>
10477 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10478 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10479 (gdb_bfd_fopen): Ditto.
10480 (gdb_bfd_openr): Ditto.
10481 (gdb_bfd_openw): Ditto.
10482 (gdb_bfd_openr_iovec): Ditto.
10483 (gdb_bfd_fdopenr): Ditto.
10484 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10485 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10487 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10489 * symfile-mem.c (symbol_file_add_from_memory): Removed
10490 gdb_bfd_stash_filename.
10492 2014-01-03 Doug Evans <dje@google.com>
10494 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10497 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10499 Update year range in copyright notice of all files.
10501 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10503 * top.c (print_gdb_version): Set copyright year to 2014.
10505 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10507 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10509 For older changes see ChangeLog-2013.
10515 version-control: never