1 2014-07-23 Gary Benson <gbenson@redhat.com>
3 * cp-support.c (gdb_demangle): Fix build on systems without
6 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
9 for reference entry value target data value.
11 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13 * stack.c (read_frame_arg): Verify value_optimized_out before calling
14 value_available_contents_eq.
16 2014-07-22 Pedro Alves <palves@redhat.com>
18 * value.c (allocate_optimized_out_value): Don't mark value as
21 2014-07-22 Jiong Wang <jiong.wang@arm.com>
23 * MAINTAINERS (Write After Approval): Update my email address.
25 2014-07-20 Doug Evans <dje@google.com>
28 * remote.c (putpkt_binary): Add text to error message.
30 2014-07-20 Yao Qi <yao@codesourcery.com>
32 * eval.c: Remove "Chill" from comments.
33 * gdbtypes.h: Likewise.
36 2014-07-20 Yao Qi <yao@codesourcery.com>
38 * std-operator.def: Update comments to TERNOP_SLICE.
40 2014-07-20 Yao Qi <yao@codesourcery.com>
42 * std-operator.def: Remove BINOP_RANGE.
43 * breakpoint.c (watchpoint_exp_is_const): Update.
44 * expprint.c (dump_subexp_body_standard): Likewise.
45 * eval.c (init_array_element): Remove dead code.
46 (evaluate_subexp_standard): Likewise.
48 2014-07-20 Yao Qi <yao@codesourcery.com>
50 * std-operator.def: Remove BINOP_IN.
51 * breakpoint.c (watchpoint_exp_is_const): Update.
52 * eval.c (evaluate_subexp_standard): Likewise.
53 * expprint.c (dump_subexp_body_standard): Likewise.
55 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
57 * microblaze-tdep.c (microblaze_register_names): Add
58 the rshr and rslr register names.
59 (microblaze_gdbarch_init): Use of tdesc_has_registers.
60 Use of tdesc_find_feature. Use of tdesc_data_alloc.
61 Use of tdesc_numbered_register. Use of
62 microblaze_register_g_packet_guesses. Use of
63 tdesc_use_registers. Use of set_gdbarch_register_type.
64 (microblaze_register_g_packet_guesses): New.
65 * microblaze-tdep.h (microblaze_reg_num): Add
66 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
67 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
68 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
69 * features/microblaze-core.xml: New file.
70 * features/microblaze-stack-protect.xml: New file.
71 * features/microblaze-with-stack-protect.c: New file.
72 * features/microblaze-with-stack-protect.xml: New file.
73 * features/microblaze.xml: New file.
74 * features/microblaze.c: New file.
75 * features/Makefile (microblaze-with-stack-protect): Add
76 microblaze-with-stack-protect microblaze and microblaze-expedite.
77 * regformats/microblaze-with-stack-protect.dat: New file.
78 * regformats/microblaze.dat: New file.
79 * doc/gdb.texinfo (MicroBlaze Features): Added.
81 2014-07-18 Tom Tromey <tromey@redhat.com>
83 * exec.c (exec_ops): Now static.
84 * exec.h (exec_ops): Don't declare.
86 2014-07-18 Tom Tromey <tromey@redhat.com>
88 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
89 to find_target_beneath.
90 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
92 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
94 2014-07-18 Tom Tromey <tromey@redhat.com>
97 * utils.c (quit): Use target_supports_terminal_ours.
98 * target.h (target_supports_terminal_ours): Declare.
99 * target.c (target_supports_delete_record): Don't check
100 to_delete_record against NULL.
101 (target_supports_terminal_ours): New function.
103 2014-07-18 Tom Tromey <tromey@redhat.com>
106 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
107 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
108 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
109 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
110 * windows-nat.c (windows_xfer_partial): Always delegate.
111 * record-btrace.c (record_btrace_xfer_partial): Simplify
113 (record_btrace_fetch_registers, record_btrace_store_registers)
114 (record_btrace_prepare_to_store, record_btrace_resume)
115 (record_btrace_wait, record_btrace_find_new_threads)
116 (record_btrace_thread_alive): Likewise.
117 * procfs.c (procfs_xfer_partial): Always delegate.
118 * corelow.c (core_xfer_partial): Always delegate.
119 * sol-thread.c (sol_find_new_threads): Simplify delegation.
121 2014-07-18 Tom Tromey <tromey@redhat.com>
123 * exec.c (exec_make_note_section): Move earlier.
125 2014-07-17 Doug Evans <dje@google.com>
128 * maint.c (count_symtabs_and_blocks): Handle NULL
129 current_program_space.
130 (report_command_stats): Check global enabled flag in addition to
131 recorded enabled flag.
132 (make_command_stats_cleanup): Handle msg_type == 0, startup.
134 2014-07-16 Pedro Alves <palves@redhat.com>
136 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
138 2014-07-16 Tom Tromey <tromey@redhat.com>
140 * target.h (struct target_ops) <to_delete_record>: Reformat
143 2014-07-16 Tom Tromey <tromey@redhat.com>
145 * target-delegates.c: Rebuild.
147 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
149 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
150 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
151 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
152 (avr_pointer_to_address): Likewise.
153 (avr_address_class_type_flags): New function.
154 (avr_address_class_type_flags_to_name): Likewise.
155 (avr_address_class_name_to_type_flags): Likewise.
156 (avr_gdbarch_init): Set address_class_type_flags,
157 address_class_type_flags_to_name and
158 address_class_name_to_type_flags.
160 2014-07-15 Pedro Alves <palves@redhat.com>
162 * linux-nat.c (kill_callback): Save errno and work with saved
165 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
167 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
169 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
171 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
172 breakpoint support correctly.
174 2014-07-14 Pedro Alves <palves@redhat.com>
176 * utils.c (prompt_for_continue): Call target_terminal_ours.
178 2014-07-14 Pedro Alves <palves@redhat.com>
180 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
181 catch_errors. Don't re-enable stdin or notify observers where,
183 (fetch_inferior_event_wrapper): Delete.
185 2014-07-14 Pedro Alves <palves@redhat.com>
188 * top.c: Include "inf-loop.h".
189 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
191 (gdb_readline_wrapper_cleanup): Make the target async again, if it
193 (gdb_readline_wrapper): Store whether the target is async, and
196 2014-07-14 Pedro Alves <palves@redhat.com>
199 * top.c (gdb_readline_wrapper_line): Tweak comment.
200 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
201 the input handler callback.
203 2014-07-14 Pedro Alves <palves@redhat.com>
206 * main.c: Include event-top.h.
207 (handle_command_errors): New function.
208 (catch_command_errors, catch_command_errors_const): Use it.
210 2014-07-14 Pedro Alves <palves@redhat.com>
212 * exceptions.c (catch_command_errors, catch_command_errors_const):
214 * exceptions.h (catch_command_errors_ftype)
215 (catch_command_errors_const_ftype): Moved to main.c.
216 (catch_command_errors, catch_command_errors_const): Delete
218 * main.c (catch_command_errors_ftype)
219 (catch_command_errors_const_ftype): Moved here from exceptions.h.
220 (catch_command_errors, catch_command_errors_const)): Moved here
221 from exceptions.c and make static.
223 2014-07-14 Pedro Alves <palves@redhat.com>
225 * exceptions.c (print_any_exception): Delete.
226 (catch_exceptions_with_msg): Use exception_print instead of
228 (catch_errors): Use exception_fprintf instead of
230 (catch_command_errors, catch_command_errors_const): Use
231 exception_print instead of print_any_exception.
233 2014-07-14 Pedro Alves <palves@redhat.com>
235 * infcall.c (run_inferior_call): Set 'sync_execution' while
236 running the inferior call.
238 2014-07-14 Pedro Alves <palves@redhat.com>
240 * value.c (value_contents_equal): Delete function.
241 * value.h (value_contents_equal): Delete declaration.
243 2014-07-14 Tom Tromey <tromey@redhat.com>
246 * gdbtypes.c (is_dynamic_type_internal): New function, from
248 (is_dynamic_type): Rewrite.
249 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
250 (resolve_dynamic_struct): Likewise.
251 (resolve_dynamic_type_internal): New function, from
252 resolve_dynamic_type.
253 (resolve_dynamic_type): Rewrite.
255 2014-07-14 Tom Tromey <tromey@redhat.com>
257 * target.c (target_require_runnable): Also check record_stratum.
260 2014-07-11 Yao Qi <yao@codesourcery.com>
262 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
263 thumb_instruction_restores_sp return true.
265 2014-07-11 Yao Qi <yao@codesourcery.com>
267 * arm-tdep.c (thumb_instruction_restores_sp): New function.
268 (thumb_in_function_epilogue_p): Call
269 thumb_instruction_restores_sp.
271 2014-07-11 Yao Qi <yao@codesourcery.com>
273 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
275 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
277 2014-07-11 Gary Benson <gbenson@redhat.com>
279 * amd64-linux-nat.c (gdbcore.h): Remove include.
280 (regset.h): Likewise.
281 (nat/linux-btrace.h): Likewise.
282 (btrace.h): Likewise.
283 (gdb_assert.h): Likewise.
284 (string.h): Likewise.
285 (sys/uio.h): Likewise.
286 (sys/debugreg.h): Likewise.
287 (sys/syscall.h): Likewise.
288 (sys/procfs.h): Likewise.
289 (sys/user.h): Likewise.
290 (asm/ptrace.h): Likewise.
291 (i386-nat.h): Likewise.
292 * i386-linux-nat.c (i386-nat.h): Likewise.
293 (regset.h): Likewise.
294 (target.h): Likewise.
295 (linux-nat.h): Likewise.
296 (nat/linux-btrace.h): Likewise.
297 (btrace.h): Likewise.
298 (gdb_assert.h): Likewise.
299 (string.h): Likewise.
300 (sys/uio.h): Likewise.
301 (sys/user.h): Likewise.
302 (sys/procfs.h): Likewise.
303 (sys/reg.h): Likewise.
304 (sys/debugreg.h): Likewise.
305 (ORIG_EAX): Remove definition.
307 2014-07-11 Gary Benson <gbenson@redhat.com>
309 * i386-linux-nat.h: New file.
310 * x86-linux-nat.h: Likewise.
311 * x86-linux-nat.c: Likewise.
312 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
313 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
314 * config/i386/linux64.mh (NATDEPFILES): Likewise.
315 * amd64-linux-nat.c (x86-linux-nat.h): New include.
316 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
317 (PTRACE_SETREGSET): Likewise.
318 (arch_lwp_info): Now in x86-linux-nat.c.
319 (have_ptrace_getregset): Now in x86-linux-nat.h.
320 (x86_linux_dr_get): Now in x86-linux-nat.c.
321 (x86_linux_dr_set): Likewise.
322 (x86_linux_dr_get_addr): Likewise.
323 (x86_linux_dr_get_control): Likewise.
324 (x86_linux_dr_get_status): Likewise.
325 (update_debug_registers_callback): Likewise.
326 (x86_linux_dr_set_control): Likewise.
327 (x86_linux_dr_set_addr): Likewise.
328 (x86_linux_prepare_to_resume): Likewise.
329 (x86_linux_new_thread): Likewise.
330 (x86_linux_new_fork): Likewise.
331 (x86_linux_get_thread_area): Likewise.
332 (super_post_startup_inferior): Likewise.
333 (x86_linux_child_post_startup_inferior): Likewise.
334 (AMD64_LINUX_USER64_CS): Likewise.
335 (AMD64_LINUX_X32_DS): Likewise.
336 (x86_linux_read_description): Likewise.
337 (x86_linux_enable_btrace): Likewise.
338 (x86_linux_disable_btrace): Likewise.
339 (x86_linux_teardown_btrace): Likewise.
340 (x86_linux_read_btrace): Likewise.
341 (x86_linux_create_target): Likewise.
342 (x86_linux_add_target): Likewise.
343 * i386-linux-nat.c (x86-linux-nat.h): New include.
344 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
345 (PTRACE_SETREGSET): Likewise.
346 (arch_lwp_info): Now in x86-linux-nat.c.
347 (have_ptrace_getregset): Now in x86-linux-nat.h.
348 (x86_linux_dr_get): Now in x86-linux-nat.c.
349 (x86_linux_dr_set): Likewise.
350 (x86_linux_dr_get_addr): Likewise.
351 (x86_linux_dr_get_control): Likewise.
352 (x86_linux_dr_get_status): Likewise.
353 (update_debug_registers_callback): Likewise.
354 (x86_linux_dr_set_control): Likewise.
355 (x86_linux_dr_set_addr): Likewise.
356 (x86_linux_prepare_to_resume): Likewise.
357 (x86_linux_new_thread): Likewise.
358 (x86_linux_new_fork): Likewise.
359 (x86_linux_get_thread_area): Likewise.
360 (super_post_startup_inferior): Likewise.
361 (x86_linux_child_post_startup_inferior): Likewise.
362 (AMD64_LINUX_USER64_CS): Likewise.
363 (AMD64_LINUX_X32_DS): Likewise.
364 (x86_linux_read_description): Likewise.
365 (x86_linux_enable_btrace): Likewise.
366 (x86_linux_disable_btrace): Likewise.
367 (x86_linux_teardown_btrace): Likewise.
368 (x86_linux_read_btrace): Likewise.
369 (x86_linux_create_target): Likewise.
370 (x86_linux_add_target): Likewise.
372 2014-07-11 Gary Benson <gbenson@redhat.com>
374 * amd64-linux-nat.c: Comment and whitespace changes.
375 * i386-linux-nat.c: Comment and whitespace changes.
377 2014-07-11 Gary Benson <gbenson@redhat.com>
379 * amd64-linux-nat.c (x86_linux_create_target): New function.
380 (x86_linux_add_target): Likewise.
381 (_initialize_amd64_linux_nat): Delegate to the above new functions.
382 * i386-linux-nat.c (x86_linux_create_target): New function.
383 (x86_linux_add_target): Likewise.
384 (_initialize_i386_linux_nat): Delegate to the above new functions.
386 2014-07-11 Gary Benson <gbenson@redhat.com>
388 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
389 (ps_get_thread_area): Delegate to the above in 32-bit mode.
390 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
391 (ps_get_thread_area): Delegate to the above.
393 2014-07-11 Gary Benson <gbenson@redhat.com>
395 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
396 x86_linux_read_description. All uses updated. amd64-specific
397 code conditionalized. Conditionalized i386-specific code added.
398 Redundant cast removed.
399 * i386-linux-nat.c (i386_linux_read_description): Renamed to
400 x86_linux_read_description. All uses updated. i386-specific
401 code conditionalized. Conditionalized amd64-specific code added.
402 One sizeof replaced with the actual type it is describing.
404 2014-07-11 Gary Benson <gbenson@redhat.com>
406 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
407 x86_linux_dr_get. All uses updated.
408 (amd64_linux_dr_set): Renamed to
409 x86_linux_dr_set. All uses updated.
410 (amd64_linux_dr_get_addr): Renamed to
411 x86_linux_dr_get_addr. All uses updated.
412 (amd64_linux_dr_get_control): Renamed to
413 x86_linux_dr_get_control. All uses updated.
414 (amd64_linux_dr_get_status): Renamed to
415 x86_linux_dr_get_status. All uses updated.
416 (amd64_linux_dr_set_control): Renamed to
417 x86_linux_dr_set_control. All uses updated.
418 (amd64_linux_dr_set_addr): Renamed to
419 x86_linux_dr_set_addr. All uses updated.
420 (amd64_linux_prepare_to_resume): Renamed to
421 x86_linux_prepare_to_resume. All uses updated.
422 (amd64_linux_new_thread): Renamed to
423 x86_linux_new_thread. All uses updated.
424 (amd64_linux_new_fork): Renamed to
425 x86_linux_new_fork. All uses updated.
426 (amd64_linux_child_post_startup_inferior): Renamed to
427 x86_linux_child_post_startup_inferior. All uses updated.
428 (amd64_linux_enable_btrace): Renamed to
429 x86_linux_enable_btrace. All uses updated.
430 (amd64_linux_disable_btrace): Renamed to
431 x86_linux_disable_btrace. All uses updated.
432 (amd64_linux_teardown_btrace): Renamed to
433 x86_linux_teardown_btrace. All uses updated.
434 (amd64_linux_read_btrace): Renamed to
435 x86_linux_read_btrace. All uses updated.
436 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
437 x86_linux_dr_get. All uses updated.
438 (i386_linux_dr_set): Renamed to
439 x86_linux_dr_set. All uses updated.
440 (i386_linux_dr_get_addr): Renamed to
441 x86_linux_dr_get_addr. All uses updated.
442 (i386_linux_dr_get_control): Renamed to
443 x86_linux_dr_get_control. All uses updated.
444 (i386_linux_dr_get_status): Renamed to
445 x86_linux_dr_get_status. All uses updated.
446 (i386_linux_dr_set_control): Renamed to
447 x86_linux_dr_set_control. All uses updated.
448 (i386_linux_dr_set_addr): Renamed to
449 x86_linux_dr_set_addr. All uses updated.
450 (i386_linux_prepare_to_resume): Renamed to
451 x86_linux_prepare_to_resume. All uses updated.
452 (i386_linux_new_thread): Renamed to
453 x86_linux_new_thread. All uses updated.
454 (i386_linux_new_fork): Renamed to
455 x86_linux_new_fork. All uses updated.
456 (i386_linux_child_post_startup_inferior): Renamed to
457 x86_linux_child_post_startup_inferior. All uses updated.
458 (i386_linux_enable_btrace): Renamed to
459 x86_linux_enable_btrace. All uses updated.
460 (i386_linux_disable_btrace): Renamed to
461 x86_linux_disable_btrace. All uses updated.
462 (i386_linux_teardown_btrace): Renamed to
463 x86_linux_teardown_btrace. All uses updated.
464 (i386_linux_read_btrace): Renamed to
465 x86_linux_read_btrace. All uses updated.
467 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
469 * remote.c (extended_remote_post_attach): New function.
470 (init_extended_remote_ops): Install it as to_post_attach method.
472 2014-07-09 Pedro Alves <palves@redhat.com>
474 * infcmd.c (attach_command_post_wait): Don't call
475 target_terminal_inferior here.
476 (attach_command): Call it here instead.
478 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
480 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
482 * c-varobj.c (c_is_path_expr_parent): New function, moved core
483 from varobj.c, with additional checks.
484 (c_varobj_ops): Fill in is_path_expr_parent field.
485 (cplus_varobj_ops): Fill in is_path_expr_parent field.
486 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
488 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
490 (varobj_default_is_path_expr_parent): New function.
491 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
492 (varobj_default_is_path_expr_parent): Declare new function.
494 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
496 * infcmd.c (finish_backward): Turn internal error into normal error.
498 2014-07-07 Pedro Alves <palves@redhat.com>
501 * remote.c (async_handle_remote_sigint)
502 (async_handle_remote_sigint_twice): Call
503 gdb_call_async_signal_handler instead of
504 mark_async_signal_handler.
506 2014-07-07 Tom Tromey <tromey@redhat.com>
508 * target-delegates.c: Rebuild.
509 * target.c (target_info_record): Remove.
510 * record.c (info_record_command): Unconditionally call
512 * target.h (struct target_ops) <to_info_record>: Use
513 TARGET_DEFAULT_IGNORE.
514 (target_info_record): Remove.
516 2014-07-07 Tom Tromey <tromey@redhat.com>
518 * target.h (struct target_ops) <to_get_thread_local_address>: Use
519 TARGET_DEFAULT_NORETURN.
520 * target.c (generic_tls_error): New function.
521 (target_translate_tls_address): Don't search target stack.
522 * target-delegates.c: Rebuild.
523 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
525 * linux-thread-db.c (thread_db_get_thread_local_address):
526 Unconditionally call beneath target.
528 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
530 * cli/cli-logging.c (pop_output_files): Assign targerr to
533 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
535 * MAINTAINERS (Write After Approval): Update my email address.
537 2014-07-02 Gary Benson <gbenson@redhat.com>
539 * proc-service.c (ps_xfer_memory): Update comment.
540 (ps_pstop): Remove unused function.
541 (ps_pcontinue): Likewise.
542 (ps_lstop): Likewise.
543 (ps_lcontinue): Likewise.
544 (ps_lgetxregsize): Likewise.
545 (ps_lgetxregs): Likewise.
546 (ps_lsetxregs): Likewise.
548 (ps_ptread): Likewise.
549 (ps_ptwrite): Likewise.
551 2014-07-01 Mark Wielaard <mjw@redhat.com>
553 * dwarf2read.c (add_array_cv_type): New function.
554 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
555 (read_tag_volatile_type): Likewise.
557 2014-07-01 Tom Tromey <tromey@redhat.com>
559 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
560 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
561 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
562 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
563 * command.h (cmd_cfunc_ftype): Move earlier.
564 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
565 (add_com, add_info): Use cmd_cfunc_ftype.
567 2014-06-30 Tom Tromey <tromey@redhat.com>
569 * symtab.c (operator_chars): Make parameters and return type
571 (file_matches): Make "files" const.
572 (struct search_symbols_data) <files>: Now const.
573 (search_symbols): Make "regexp" and "files" parameters const.
575 (symtab_symbol_info): Remove cast.
576 (rbreak_command): Update.
577 * symtab.h (search_symbols): Update.
579 2014-06-27 Yao Qi <yao@codesourcery.com>
581 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
582 Change parameter type to 'struct thread_info *'. Caller
584 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
586 * dummy-frame.c (struct dummy_frame_id): New.
587 (dummy_frame_id_eq): New function.
588 (struct dummy_frame) <id>: Change its type to 'struct
590 (dummy_frame_push): Add parameter ptid and save it in
592 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
594 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
596 (lookup_dummy_frame): Change parameter type to 'struct
597 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
598 instead of frame_id_eq.
599 (dummy_frame_pop): Add parameter ptid. Callers updated.
600 Update comments. Compose dummy_frame_id and pass it to
602 (dummy_frame_discard): Add parameter ptid.
603 (dummy_frame_sniffer): Compose dummy_frame_id and call
604 dummy_frame_id_eq instead of frame_id_eq.
605 (fprint_dummy_frames): Print ptid.
606 * dummy-frame.h: Remove comments.
607 (dummy_frame_push): Add ptid in declaration.
608 (dummy_frame_pop, dummy_frame_discard): Likewise.
610 2014-06-26 Tom Tromey <tromey@redhat.com>
612 * cli/cli-cmds.c (error_no_arg): Make "why" const.
613 * command.h (error_no_arg): Update.
615 2014-06-26 Tom Tromey <tromey@redhat.com>
617 * cli/cli-setshow.c (do_set_command): Make "arg" const.
618 (do_show_command): Make "arg" const.
619 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
621 2014-06-26 Tom Tromey <tromey@redhat.com>
623 * record-full.c (record_full_get_bookmark): Make "args" const.
624 (record_full_goto_bookmark): Make "raw_bookmark" const.
625 * record.c (record_goto): New function.
626 (cmd_record_goto): Use it. Now static.
627 * record.h (record_goto): Declare.
628 (cmd_record_goto): Remove declaration.
629 * target-delegates.c: Rebuild.
630 * target.h (struct target_ops) <to_get_bookmark,
631 to_goto_bookmark>: Make parameter const.
633 2014-06-26 Tom Tromey <tromey@redhat.com>
635 * defs.h (generic_load): Update.
636 * m32r-rom.c (m32r_load_gen): Make "filename" const.
637 * monitor.c (monitor_load): Make "args" const.
638 * remote-m32r-sdi.c (m32r_load): Make "args" const.
639 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
641 (mips_load): Make "file" const.
642 * remote-sim.c (gdbsim_load): Make "args" const.
643 * remote.c (remote_load): Make "name" const.
644 * symfile.c (generic_load): Make "args" const.
645 * target-delegates.c: Rebuild.
646 * target.c (target_load): Make "arg" const.
647 (debug_to_load): Make "args" const.
648 * target.h (struct target_ops) <to_load>: Make parameter const.
649 (target_load): Update.
651 2014-06-26 Tom Tromey <tromey@redhat.com>
654 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
655 (dwarf2_physname, read_partial_die)
656 (guess_partial_die_structure_name, fixup_partial_die)
657 (guess_full_die_structure_name, anonymous_struct_prefix)
658 (dwarf2_name): Use per-BFD obstack.
660 2014-06-26 Yao Qi <yao@codesourcery.com>
662 * dummy-frame.c (dummy_frame_sniffer): Move local variables
663 dummyframe and this_id into inner block below.
665 2014-06-26 Yao Qi <yao@codesourcery.com>
667 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
668 with "signal_pass[0]" in the initialization of signal_pass.
670 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
672 * record-btrace.c (record_btrace_generating_corefile)
673 (record_btrace_prepare_to_generate_core)
674 (record_btrace_done_generating_core): New.
675 (record_btrace_xfer_partial, record_btrace_fetch_registers)
676 (record_btrace_store_registers, record_btrace_prepare_to_store):
677 Forward request when generating a core file.
678 (record_btrace_open): Set record_btrace_generating_corefile to zero.
679 (init_record_btrace_ops): Set to_prepare_to_generate_core and
680 to_done_generating_core.
682 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
684 * target.h (target_ops) <to_prepare_to_generate_core>
685 <to_done_generating_core>: New.
686 (target_prepare_to_generate_core, target_done_generating_core): New.
687 * target.c (target_prepare_to_generate_core)
688 (target_done_generating_core): New.
689 * target-delegates.c: Regenerate.
690 * gcore.c: (write_gcore_file): Rename to ...
691 (write_gcore_file_1): ...this.
692 (write_gcore_file): Call target_prepare_to_generate_core
693 and target_done_generating_core.
695 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
697 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
698 * gcore.c (write_gcore_file): Free memory returned from
700 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
701 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
703 2014-06-24 Yao Qi <yao@codesourcery.com>
705 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
706 (arm_linux_init_abi): Set skip_trampoline_code with
707 gdbarch_skip_trampoline_code instead of
708 find_solib_trampoline_target.
710 2014-06-24 Yao Qi <yao@codesourcery.com>
712 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
713 arm_skip_bx_reg returns non-zero.
715 2014-06-24 Yao Qi <yao@codesourcery.com>
717 * arm-tdep.c (arm_skip_bx_reg): New function.
718 (arm_skip_stub): Call arm_skip_bx_reg.
720 2014-06-23 Don Breazeal <donb@codesourcery.com>
722 * MAINTAINERS: Add myself as write-after-approval maintainer.
724 2014-06-23 Pedro Alves <palves@redhat.com>
726 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
727 DR_CONTROL before setting DR0..DR3.
728 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
729 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
730 bits of DR_CONTROL related to the debug register slot being
731 disabled. If all slots are vacant, clear local slowdown as well,
732 and assert DR_CONTROL is 0.
734 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
736 * python/lib/gdb/command/xmethods.py
737 (get_method_matchers_in_loci): Lookup xmethod matchers in the
738 current progspace only if the string "progspace" matches LOCUS_RE.
740 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
742 Fix --with-system-readline with readline-6.3 patch 5.
743 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
744 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
747 2014-06-20 Tom Tromey <tromey@redhat.com>
749 * dwarf2read.c (dw2_get_real_path): Use correct type in
751 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
753 2014-06-20 Gary Benson <gbenson@redhat.com>
755 * common/gdb_thread_db.h: Moved to nat. All includes updated.
756 * common/glibc_thread_db.h: Likewise.
757 * common/i386-cpuid.h: Likewise.
758 * common/i386-gcc-cpuid.h: Likewise.
759 * common/linux-btrace.h: Likewise.
760 * common/linux-osdata.h: Likewise.
761 * common/linux-procfs.h: Likewise.
762 * common/linux-ptrace.h: Likewise.
763 * common/mips-linux-watch.h: Likewise.
764 * common/linux-btrace.c: Moved to nat.
765 * common/linux-osdata.c: Likewise.
766 * common/linux-procfs.c: Likewise.
767 * common/linux-ptrace.c: Likewise.
768 * common/mips-linux-watch.c: Likewise.
769 * nat/gdb_thread_db.h: Moved from common.
770 * nat/glibc_thread_db.h: Likewise.
771 * nat/i386-cpuid.h: Likewise.
772 * nat/i386-gcc-cpuid.h: Likewise.
773 * nat/linux-btrace.c: Likewise.
774 * nat/linux-btrace.h: Likewise.
775 * nat/linux-osdata.c: Likewise.
776 * nat/linux-osdata.h: Likewise.
777 * nat/linux-procfs.c: Likewise.
778 * nat/linux-procfs.h: Likewise.
779 * nat/linux-ptrace.c: Likewise.
780 * nat/linux-ptrace.h: Likewise.
781 * nat/mips-linux-watch.c: Likewise.
782 * nat/mips-linux-watch.h: Likewise.
783 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
784 (object file files): Reordered.
785 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
786 of glibc_thread_db.h.
788 2014-06-20 Gary Benson <gbenson@redhat.com>
790 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
791 (i386_dr_low_type): Moved to nat/i386-dregs.h.
792 (i386_dr_low): Likewise.
793 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
794 (i386_dr_low_set_addr): Likewise.
795 (i386_dr_low_get_addr): Likewise.
796 (i386_dr_low_can_set_control): Likewise.
797 (i386_dr_low_set_control): Likewise.
798 (i386_dr_low_get_control): Likewise.
799 (i386_dr_low_get_status): Likewise.
800 (i386_get_debug_register_length): Likewise.
801 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
802 (i386_dr_low): Likewise.
803 * nat/i386-dregs.c (i386-low.h): Remove include.
804 (i386-nat.h): Likewise.
805 (nat/i386-dregs.h): New include.
806 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
807 (i386_dr_low_set_addr): Likewise.
808 (i386_dr_low_get_addr): Likewise.
809 (i386_dr_low_can_set_control): Likewise.
810 (i386_dr_low_set_control): Likewise.
811 (i386_dr_low_get_control): Likewise.
812 (i386_dr_low_get_status): Likewise.
813 (i386_get_debug_register_length): Likewise.
814 (debug_hw_points): Likewise.
816 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
818 * Makefile.in (SFILES): Add d-exp.y.
819 (YYFILES): Add d-exp.c.
820 (YYOBJ): Add d-exp.o.
821 (local-maintainer-clean): Delete d-exp.c.
823 * d-lang.h (d_parse): New declaration.
824 (d_error): New declaration.
825 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
826 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
827 PREC_ORDER operators.
828 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
830 2014-06-19 Yao Qi <yao@codesourcery.com>
832 * gdbthread.h (any_running): Remove the declaration.
833 * thread.c (any_running): Remove.
835 2014-06-19 Yao Qi <yao@codesourcery.com>
837 * gdbthread.h (struct thread_info) <state>: Change its type to
838 'enum thread_state'. Update comments.
840 2014-06-19 Pedro Alves <palves@redhat.com>
842 * gdbthread.h (ALL_THREADS): Delete.
843 (ALL_NON_EXITED_THREADS): New macro.
844 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
845 instead of ALL_THREADS.
846 * infrun.c (find_thread_needs_step_over)
847 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
848 instead of ALL_THREADS.
849 * record-btrace.c (record_btrace_open)
850 (record_btrace_stop_recording, record_btrace_close)
851 (record_btrace_is_replaying, record_btrace_resume)
852 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
853 * remote.c (append_pending_thread_resumptions): Likewise.
854 * thread.c (thread_apply_all_command): Likewise.
856 2014-06-19 Gary Benson <gbenson@redhat.com>
858 * i386-nat.c (i386_stopped_by_watchpoint):
859 Use i386_dr_stopped_by_watchpoint.
860 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
861 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
863 2014-06-19 Gary Benson <gbenson@redhat.com>
865 * nat/i386-dregs.c: New file.
866 * Makefile.in (i386-dregs.o): New rule.
867 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
868 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
869 * config/i386/darwin.mh (NATDEPFILES): Likewise.
870 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
871 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
872 * config/i386/go32.mh (NATDEPFILES): Likewise.
873 * config/i386/linux.mh (NATDEPFILES): Likewise.
874 * config/i386/linux64.mh (NATDEPFILES): Likewise.
875 * config/i386/mingw.mh (NATDEPFILES): Likewise.
876 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
877 * i386-nat.h (debug_hw_points): New declaration.
878 * i386-nat.c (breakpoint.h): Remove include.
879 (command.h): Likewise.
880 (target.h): Likewise.
881 (gdb_assert.h): Likewise.
882 (debug_hw_points): Made nonstatic.
883 (debug_printf): Now in i386-dregs.c.
884 (TARGET_HAS_DR_LEN_8): Likewise.
885 (DR_CONTROL_SHIFT): Likewise.
886 (DR_CONTROL_SIZE): Likewise.
887 (DR_RW_EXECUTE): Likewise.
888 (DR_RW_WRITE): Likewise.
889 (DR_RW_READ): Likewise.
890 (DR_RW_IORW): Likewise.
891 (DR_LEN_1): Likewise.
892 (DR_LEN_2): Likewise.
893 (DR_LEN_4): Likewise.
894 (DR_LEN_8): Likewise.
895 (DR_LOCAL_ENABLE_SHIFT): Likewise.
896 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
897 (DR_ENABLE_SIZE): Likewise.
898 (DR_LOCAL_SLOWDOWN): Likewise.
899 (DR_GLOBAL_SLOWDOWN): Likewise.
900 (DR_CONTROL_RESERVED): Likewise.
901 (I386_DR_CONTROL_MASK): Likewise.
902 (I386_DR_VACANT): Likewise.
903 (I386_DR_LOCAL_ENABLE): Likewise.
904 (I386_DR_GLOBAL_ENABLE): Likewise.
905 (I386_DR_DISABLE): Likewise.
906 (I386_DR_SET_RW_LEN): Likewise.
907 (I386_DR_GET_RW_LEN): Likewise.
908 (I386_DR_WATCH_HIT): Likewise.
909 (i386_wp_op_t): Likewise.
910 (i386_show_dr): Likewise.
911 (i386_length_and_rw_bits): Likewise.
912 (i386_insert_aligned_watchpoint): Likewise.
913 (i386_remove_aligned_watchpoint): Likewise.
914 (i386_handle_nonaligned_watchpoint): Likewise.
915 (i386_update_inferior_debug_regs): Likewise.
916 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
917 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
918 (i386_region_ok_for_watchpoint):
919 Use i386_dr_region_ok_for_watchpoint.
920 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
922 2014-06-19 Gary Benson <gbenson@redhat.com>
924 * i386-nat.c (i386_insert_hw_breakpoint): Use
925 i386_insert_watchpoint.
926 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
928 2014-06-19 Gary Benson <gbenson@redhat.com>
930 * i386-nat.c (i386_dr_show): Renamed to
931 i386_show_dr and made static. All uses updated.
932 (i386_dr_length_and_rw_bits): Renamed to
933 i386_length_and_rw_bits and made static.
935 (i386_dr_insert_aligned_watchpoint): Renamed to
936 i386_insert_aligned_watchpoint and made static.
938 (i386_dr_remove_aligned_watchpoint): Renamed to
939 i386_remove_aligned_watchpoint and made static.
941 (i386_dr_update_inferior_debug_regs): Renamed to
942 i386_update_inferior_debug_regs and made static.
944 * nat/i386-dregs.h (i386_dr_show): Removed.
945 (i386_dr_length_and_rw_bits): Likewise.
946 (i386_dr_insert_aligned_watchpoint): Likewise.
947 (i386_dr_remove_aligned_watchpoint): Likewise.
948 (i386_dr_update_inferior_debug_regs): Likewise.
950 2014-06-19 Gary Benson <gbenson@redhat.com>
952 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
953 * configure: Regenerate.
954 * config.in: Likewise.
955 * main.c (signal.h): New include.
956 (setup_alternate_signal_stack): New function.
957 (captured_main): Call the above.
958 * cp-support.c (signal.h): New include.
959 (catch_demangler_crashes): New flag.
960 (SIGJMP_BUF): New define.
961 (SIGSETJMP): Likewise.
962 (SIGLONGJMP): Likewise.
963 (gdb_demangle_jmp_buf): New static global.
964 (gdb_demangle_attempt_core_dump): Likewise.
965 (gdb_demangle_signal_handler): New function.
966 (gdb_demangle): If catch_demangler_crashes is set, install the
967 above signal handler before calling bfd_demangle, and restore
968 the original signal handler afterwards. Display the offending
969 symbol and call demangler_warning the first time a segmentation
971 (_initialize_cp_support): New maint set/show command.
973 2014-06-19 Gary Benson <gbenson@redhat.com>
975 * utils.h (resource_limit_kind): New enum.
976 (can_dump_core): New declaration.
977 (warn_cant_dump_core): Likewise.
978 (dump_core): Likewise.
979 * utils.c (dump_core): Made nonstatic. Added new
980 parameter "limit_kind".
981 (can_dump_core): Made nonstatic. Moved printing code to...
982 (warn_cant_dump_core): New function.
983 (can_dump_core_warn): Likewise.
984 (internal_vproblem): Replace calls to can_dump_core with
985 calls to can_dump_core_warn. Supply new argument to each.
987 2014-06-19 Gary Benson <gbenson@redhat.com>
989 * utils.h (demangler_vwarning): New declaration.
990 (demangler_warning): Likewise.
991 * utils.c (struct internal_problem)
992 <user_settable_should_quit>: New field.
993 <user_settable_should_dump_core>: Likewise
994 (internal_error_problem): Add values for above new fields.
995 (internal_warning_problem): Likewise.
996 (demangler_warning_problem): New static global.
997 (demangler_vwarning): New function.
998 (demangler_warning): Likewise.
999 (add_internal_problem_command): Selectively add commands.
1000 (_initialize_utils): New internal problem command.
1001 * maint.c (maintenance_demangler_warning): New function.
1002 (_initialize_maint_cmds): New command.
1004 2014-06-18 Tom Tromey <tromey@redhat.com>
1006 * f-valprint.c (info_common_command_for_block): Update.
1007 * symtab.h (struct general_symbol_info) <common_block>: Now
1010 2014-06-18 Tom Tromey <tromey@redhat.com>
1012 * symtab.h (struct symtab) <blockvector>: Now const.
1013 * ada-lang.c (ada_add_global_exceptions): Update.
1014 * buildsym.c (augment_type_symtab): Update.
1015 * dwarf2read.c (dw2_lookup_symbol): Update.
1016 * jit.c (finalize_symtab): Update.
1017 * jv-lang.c (add_class_symtab_symbol): Update.
1018 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1020 * objfiles.c (objfile_relocate1): Update.
1021 * psymtab.c (lookup_symbol_aux_psymtabs)
1022 (maintenance_check_psymtabs): Update.
1023 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1025 * spu-tdep.c (spu_catch_start): Update.
1026 * symmisc.c (dump_symtab_1): Update.
1027 * symtab.c (lookup_global_symbol_from_objfile)
1028 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1029 (basic_lookup_transparent_type_quick)
1030 (basic_lookup_transparent_type, find_pc_sect_symtab)
1031 (find_pc_sect_line, search_symbols): Update.
1032 * block.c (find_block_in_blockvector): Make "bl" const.
1033 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1035 (blockvector_contains_pc): Make "bv" const.
1036 (block_for_pc_sect): Update.
1037 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1038 (blockvector_contains_pc): Update.
1039 * breakpoint.c (resolve_sal_pc): Update.
1040 * inline-frame.c (block_starting_point_at): Update.
1042 2014-06-18 Tom Tromey <tromey@redhat.com>
1044 * completer.c (complete_line): Make "line_buffer" const.
1045 * completer.h (complete_line): Update.
1047 2014-06-18 Tom Tromey <tromey@redhat.com>
1049 * symtab.c (add_macro_name): Remove unneeded cast.
1051 2014-06-18 Tom Tromey <tromey@redhat.com>
1053 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1054 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1056 2014-06-18 Tom Tromey <tromey@redhat.com>
1058 * probe.c (info_probes_for_ops): Make "arg" const.
1059 * probe.h (info_probes_for_ops): Update.
1061 2014-06-18 Tom Tromey <tromey@redhat.com>
1063 * varobj.c (varobj_create): Update.
1064 * valops.c (value_of_this): Update.
1065 * tracepoint.c (add_local_symbols, scope_info): Update.
1066 * symtab.h (struct general_symbol_info) <block>: Now const.
1067 * symtab.c (skip_prologue_sal)
1068 (default_make_symbol_completion_list_break_on)
1069 (skip_prologue_using_sal): Update.
1070 * stack.h (iterate_over_block_locals)
1071 (iterate_over_block_local_vars): Update.
1072 * stack.c (print_frame_args): Update.
1073 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1075 (get_selected_block): Make return type const.
1076 * python/py-frame.c (frapy_block): Update.
1077 * python/py-block.c (gdbpy_block_for_pc): Update.
1078 * p-exp.y (%union) <bval>: Now const.
1079 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1080 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1081 * m2-exp.y (%union) <bval>: Now const.
1082 * linespec.c (get_current_search_block): Make return type const.
1083 (create_sals_line_offset, find_label_symbols): Update.
1084 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1086 (block_starting_point_at): Make "block" const.
1087 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1088 (check_exception_resume): Update.
1089 * guile/scm-frame.c (gdbscm_frame_block): Update.
1090 * guile/scm-block.c (gdbscm_lookup_block): Update.
1091 * frame.h (get_frame_block): Update.
1092 (get_selected_block): Make return type const.
1093 * frame.c (frame_id_inner): Update.
1094 * f-valprint.c (info_common_command_for_block)
1095 (info_common_command): Update.
1096 * dwarf2loc.c (dwarf2_find_location_expression)
1097 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1098 (locexpr_describe_location_piece): Update.
1099 * c-exp.y (%union) <bval>: Now const.
1100 * breakpoint.c (resolve_sal_pc): Update.
1101 * blockframe.c (get_frame_block):Make return type const.
1102 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1103 (block_innermost_frame): Update.
1104 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1105 (block_for_pc, block_for_pc_sect): Update.
1106 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1108 (block_for_pc_sect, block_for_pc): Make return type const.
1109 * ax-gdb.c (gen_expr): Update.
1110 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1111 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1112 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1113 (ada_read_var_value): Update.
1114 * ada-exp.y (struct name_info) <block>: Now const.
1116 (block_lookup): Constify.
1118 2014-06-18 Gary Benson <gbenson@redhat.com>
1120 * nat/i386-dregs.h: New file.
1121 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1122 * i386-nat.h (i386-dregs.h): New include.
1123 (DR_FIRSTADDR): Now in i386-dregs.h.
1124 (DR_LASTADDR): Likewise.
1125 (DR_NADDR): Likewise.
1126 (DR_STATUS): Likewise.
1127 (DR_CONTROL): Likewise.
1128 (i386_debug_reg_state): Likewise.
1129 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1131 2014-06-18 Don Breazeal <donb@codesourcery.com>
1133 * breakpoint.c (set_longjmp_breakpoint): Call
1134 momentary_breakpoint_from_master with additional argument.
1135 (set_longjmp_breakpoint_for_call_dummy): Call
1136 momentary_breakpoint_from_master with additional argument.
1137 (set_std_terminate_breakpoint): Call
1138 momentary_breakpoint_from_master with additional argument.
1139 (momentary_breakpoint_from_master): Add argument to function
1140 definition and use it to initialize structure member flag.
1141 (clone_momentary_breakpoint): Call
1142 momentary_breakpoint_from_master with additional argument.
1143 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1144 member flags set in momentary_breakpoint_from_master.
1146 2014-06-18 Gary Benson <gbenson@redhat.com>
1148 * i386-nat.c (i386_show_dr): Renamed to
1149 i386_dr_show and made nonstatic. All uses updated.
1150 (i386_length_and_rw_bits): Renamed to
1151 i386_dr_length_and_rw_bits and made nonstatic.
1153 (i386_insert_aligned_watchpoint): Renamed to
1154 i386_dr_insert_aligned_watchpoint and made nonstatic.
1156 (i386_remove_aligned_watchpoint): Renamed to
1157 i386_dr_remove_aligned_watchpoint and made nonstatic.
1159 (i386_update_inferior_debug_regs): Renamed to
1160 i386_dr_update_inferior_debug_regs and made nonstatic.
1163 2014-06-18 Gary Benson <gbenson@redhat.com>
1165 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1166 (i386_dr_low_can_set_control): Likewise.
1167 (i386_dr_low_set_addr): Likewise.
1168 (i386_dr_low_set_control): Likewise.
1169 (i386_dr_low_get_addr): Likewise.
1170 (i386_dr_low_get_status): Likewise.
1171 (i386_dr_low_get_control): Likewise.
1172 (i386_insert_aligned_watchpoint): Use new macros.
1173 (i386_update_inferior_debug_regs): Likewise.
1174 (i386_stopped_data_address): Likewise.
1176 2014-06-18 Gary Benson <gbenson@redhat.com>
1178 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1179 New parameter. All uses updated.
1181 2014-06-18 Gary Benson <gbenson@redhat.com>
1183 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1186 2014-06-18 Gary Benson <gbenson@redhat.com>
1188 * i386-nat.c (debug_printf): New macro.
1189 (i386_get_debug_register_length): Likewise.
1190 (TARGET_HAS_DR_LEN_8): Use above macro.
1191 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1192 and printf_unfiltered. Use phex to format values.
1194 2014-06-18 Gary Benson <gbenson@redhat.com>
1196 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1199 2014-06-18 Gary Benson <gbenson@redhat.com>
1201 * i386-nat.c: Comment changes.
1203 2014-06-18 Gary Benson <gbenson@redhat.com>
1205 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1207 2014-06-18 Gary Benson <gbenson@redhat.com>
1209 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1210 (i386_insert_aligned_watchpoint): Likewise.
1211 (i386_remove_aligned_watchpoint): Likewise.
1212 (i386_handle_nonaligned_watchpoint): Likewise.
1214 2014-06-18 Gary Benson <gbenson@redhat.com>
1216 * i386-nat.c: Whitespace changes.
1218 2014-06-17 Samuel Bronson <naesten@gmail.com>
1220 * MAINTAINERS: Update Roland McGrath's email address.
1221 Thanks to Sergio Durigan Junior for pointing out that he left
1222 Red Hat a while ago, and giving me a current address.
1224 2014-06-17 Tom Tromey <tromey@redhat.com>
1226 * utils.h (savestring): Remove declaration.
1228 2014-06-17 Tom Tromey <tromey@redhat.com>
1230 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1232 2014-06-16 Keith Seitz <keiths@redhat.com>
1235 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1236 to update the varobj if inferior_ptid is null_ptid.
1238 2014-06-16 Tom Tromey <tromey@redhat.com>
1240 * target.h (struct target_ops) <to_info_proc>: Make parameter
1242 (target_info_proc): Update.
1243 * target.c (target_info_proc): Make "args" const.
1244 * procfs.c (procfs_info_proc): Update.
1245 * linux-tdep.c (linux_info_proc): Update.
1246 (linux_core_info_proc_mappings): Make "args" const.
1247 (linux_core_info_proc): Update.
1248 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1249 * gdbarch.c: Rebuild.
1250 * gdbarch.h: Rebuild.
1251 * corelow.c (core_info_proc): Update.
1253 2014-06-16 Tom Tromey <tromey@redhat.com>
1255 * target.h (struct target_ops) <to_disconnect>: Make parameter
1257 (target_disconnect): Update.
1258 * target.c (target_disconnect): Make "args" const.
1259 * target-delegates.c: Rebuild.
1260 * remote.c (remote_disconnect): Update.
1261 * record.h (record_disconnect): Update.
1262 * record.c (record_disconnect): Update.
1263 * inf-child.c (inf_child_disconnect): Update.
1265 2014-06-16 Tom Tromey <tromey@redhat.com>
1267 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1268 * target.c (debug_to_rcmd, default_rcmd): Update.
1269 * target-delegates.c: Rebuild.
1270 * remote.c (remote_rcmd): Update.
1271 * monitor.c (monitor_rcmd): Update.
1273 2014-06-16 Pedro Alves <palves@redhat.com>
1275 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1276 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1277 have OBJF_SHARED set.
1278 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1279 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1280 instead of OBJF_USERLOADED.
1281 * objfiles.h (OBJF_SHARED): Update comment.
1282 (userloaded_objfile_contains_address_p): Rename to ...
1283 (shared_objfile_contains_address_p): ... this, and update
1285 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1287 (remove_symbol_file_command): Skip objfiles that don't have
1290 2014-06-16 Tom Tromey <tromey@redhat.com>
1292 * minsyms.h (prim_record_minimal_symbol)
1293 (prim_record_minimal_symbol_and_info): Update comments.
1295 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1297 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1298 or --without-guile, according to how GDB was built.
1300 2014-06-13 Tom Tromey <tromey@redhat.com>
1302 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1304 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1306 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1308 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1309 help_list.Pass all_commands, not -1, to help_list.
1310 * cli/cli-dump.c (dump_command, append_command)
1311 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1312 (binary_dump_command, binary_append_command): Pass all_commands,
1313 not -1, to help_list.
1314 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1316 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1318 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1320 * top.c (set_history): Pass all_commands, not -1, to help_list.
1321 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1322 all_commands, not -1, to help_list.
1323 * symfile.c (overlay_command): Pass all_commands, not -1, to
1325 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1327 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1329 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1331 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1332 not -1, to help_list.
1333 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1334 not -1, to help_list.
1335 * maint.c (maintenance_command, maintenance_info_command)
1336 (maintenance_print_command, maintenance_set_cmd): Pass
1337 all_commands, not -1, to help_list.
1338 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1340 * language.c (set_check): Pass all_commands, not -1, to help_list.
1341 * infcmd.c (unset_command): Pass all_commands, not -1, to
1343 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1345 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1347 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1349 * breakpoint.c (save_command): Pass all_commands, not -1, to
1351 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1352 all_commands, not -1, to help_list.
1354 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1356 * regcache.c (struct register_to_invalidate): New structure.
1357 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1359 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1361 2014-06-12 Yao Qi <yao@codesourcery.com>
1363 * varobj.c (varobj_get_num_children): Call
1364 varobj_is_dynamic_p.
1365 (varobj_list_children): Likewise.
1366 (varobj_update): Likewise. Update comments.
1368 2014-06-12 Yao Qi <yao@codesourcery.com>
1370 * varobj.c (varobj_pretty_printed_p): Rename to ...
1371 (varobj_is_dynamic_p): ... this. New function.
1372 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1373 (varobj_is_dynamic_p): Declare.
1374 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1375 (mi_print_value_p, varobj_update_one): Likewise.
1377 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1378 Yao Qi <yao@codesourcery.com>
1380 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1381 (varobj_get_iterator): Wrap up code for pretty-printer by
1382 "#if HAVE_PYTHON" and "#endif".
1383 (update_dynamic_varobj_children): Likewise.
1385 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1386 Yao Qi <yao@codesourcery.com>
1388 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1389 gdb_python_initialized is false. Move some code from varobj.c.
1390 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1391 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1392 (struct varobj_item): Moved to varobj-iter.h".
1393 (varobj_clear_saved_item): New function.
1394 (update_dynamic_varobj_children): Move python-related code to
1396 (free_variable): Call varobj_clear_saved_item and
1399 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1400 Yao Qi <yao@codesourcery.com>
1402 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1403 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1404 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1405 (py-varobj.o): New rule.
1406 * python/py-varobj.c: New file.
1407 * python/python-internal.h (py_varobj_get_iterator): Declare.
1408 * varobj-iter.h: New file.
1409 * varobj.c: Include "varobj-iter.h"
1410 (struct varobj) <child_iter>: Change its type from "PyObject *"
1411 to "struct varobj_iter *".
1412 <saved_item>: Likewise.
1413 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1414 [HAVE_PYTHON] (varobj_get_iterator): New function.
1415 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1416 python-specific code to python/py-varobj.c.
1417 (install_visualizer): Call varobj_iter_delete instead of
1419 * varobj.h (varobj_ensure_python_env): Declare.
1421 2014-06-12 Yao Qi <yao@codesourcery.com>
1423 * varobj.c (struct varobj_item): New structure.
1424 (create_child_with_value): Update declaration.
1425 (varobj_add_child): Replace arguments 'name' and 'value' with
1426 'item'. All callers updated.
1427 (install_dynamic_child): Likewise.
1428 (update_dynamic_varobj_children): Likewise.
1429 (varobj_add_child): Likewise.
1430 (create_child_with_value): Likewise.
1432 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1434 * NEWS: Create a new section for the next release branch.
1435 Rename the section of the current branch, now that it has
1438 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1440 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1441 * version.in: Bump version to 7.8.50.DATE-cvs.
1443 2014-06-11 Pedro Alves <palves@redhat.com>
1446 * ser-mingw.c (net_windows_socket_check_pending): New function.
1447 (net_windows_select_thread): Ignore spurious wakeups. Use
1448 net_windows_socket_check_pending.
1449 (net_windows_wait_handle): Check for pending events with
1450 ioctlsocket, through net_windows_socket_check_pending, instead of
1451 checking the socket's event.
1453 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1455 * python/python-internal.h (gdb_PyObject_GetAttrString)
1456 (gdb_PyObject_HasAttrString): New inline function definitions.
1457 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1458 char * of the second argument to PyObject_GetAttrString.
1460 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1462 * serial.c (serial_write): Fix index of character to be printed
1463 in call to serial_logchar when serial debug traces are enabled.
1465 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1467 * gdbtypes (resolve_dynamic_range): Add function description.
1469 2014-06-09 Pedro Alves <palves@redhat.com>
1471 * linux-nat.c (linux_child_follow_fork): Initialize status with
1472 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1473 inner block. Only pass the signal to PTRACE_DETACH if in pass
1476 2014-06-09 Gary Benson <gbenson@redhat.com>
1478 * common/signals.c (gdb_signal_from_host): Reorder to separate
1479 the always-available ANSI-standard signals from the signals that
1481 (do_gdb_signal_to_host): Likewise.
1482 * proc-events.c (signal_table): Likewise.
1484 2014-06-08 Hui Zhu <hui@codesourcery.com>
1486 * common/linux-ptrace.c (linux_disable_event_reporting): New
1488 * common/linux-ptrace.h (linux_disable_event_reporting): New
1490 * linux-nat.c (linux_child_follow_fork): Do a single step before
1493 2014-06-07 Keith Seitz <keiths@redhat.com>
1497 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1498 from symbol_matches_domain in symtab.c. All local callers
1499 of symbol_matches_domain updated.
1500 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1501 search STRUCT_DOMAIN.
1502 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1503 independently. standard_lookup will do that automatically.
1504 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1505 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1506 (cp_lookup_symbol_in_namespace): Likewise.
1507 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1508 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1509 may return a STRUCT_DOMAIN match.
1510 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1511 * cp-support.c: Include language.h.
1512 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1514 * psymtab.c (match_partial_symbol): Compare the requested
1515 domain with the symbol's domain directly.
1516 (lookup_partial_symbol): Likewise.
1517 * symtab.c (lookup_symbol_in_language): Explain when/why
1518 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1519 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1520 appropriate languages.
1521 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1522 and moved to ada-lang.c
1523 (lookup_block_symbol): Explain that this function only returns
1524 symbol matching the requested DOMAIN.
1525 Compare the requested domain with the symbol's domain directly.
1526 (iterate_over_symbols): Compare the requested domain with the
1527 symbol's domain directly.
1528 * symtab.h (symbol_matches_domain): Remove.
1530 2014-06-06 Doug Evans <xdje42@gmail.com>
1532 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1533 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1534 (gdbscm_guile_version_is_at_least): Declare.
1535 (gdbscm_scm_string_to_int): Declare.
1536 * guile/guile.c (gdbscm_guile_major_version): New global.
1537 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1538 (guile_datadir): New static global.
1539 (gdbscm_guile_data_directory): New function.
1540 (initialize_scheme_side): Update.
1541 (misc_guile_functions): Add guile-data-directory.
1542 (initialize_gdb_module): Fetch guile version number.
1543 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1544 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1545 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1546 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1548 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1549 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1550 * guile/scm-value.c (gdbscm_value_to_string): Only call
1551 scm_port_conversion_strategy if Guile version >= 2.0.6.
1553 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1555 * main.c (print_gdb_help): Add -q and --silent.
1557 2014-06-06 Gary Benson <gbenson@redhat.com>
1559 * common/signals.c: Remove preprocessor conditionals for
1560 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1561 SIGSEGV and SIGTERM.
1562 * proc-events.c: Likewise.
1564 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1566 * symfile.c (symfile_free_objfile): Remove restriction to
1568 * symfile-mem.c (symbol_file_add_from_memory): Call
1569 add_target_sections_of_objfile.
1571 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1573 * guile/scm-value.c (gdbscm_history_append_x): Use
1574 'vlscm_get_value_smob_arg_unsafe' instead of
1575 'vlscm_scm_to_value'.
1577 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1580 * utils.c (printchar): Don't escape at all if quoter is NUL.
1581 Update function documentation to clarify effect of parameter
1583 * remote.c (escape_buffer): Pass '\\' as the quoter to
1584 fputstrn_unfiltered.
1585 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1586 generate the output.
1587 (mi_solib_unloaded): Same.
1589 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1591 * development.sh: Delete.
1592 * Makefile.in (config.status): Adjust dependency on development.sh.
1593 * configure.ac: Adjust development.sh source call.
1594 * configure: Regenerate.
1596 2014-06-04 Doug Evans <xdje42@gmail.com>
1598 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1599 is_scheme_bkpt, spec.
1600 (bpscm_make_breakpoint_smob): Initialize new members.
1601 (gdbscm_create_breakpoint_x): Split into two ...
1602 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1603 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1604 (scheme_function breakpoint_functions): Update.
1605 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1606 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1607 register-breakpoint!.
1609 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1612 * mem-break.c (z_type_supported): Return zero if
1613 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1615 2014-06-04 Tom Tromey <tromey@redhat.com>
1617 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1618 value_from_contents_and_address_unresolved.
1619 (ada_template_to_fixed_record_type_1): Likewise.
1620 (ada_which_variant_applies): Likewise.
1621 * value.h (value_from_contents_and_address_unresolved): Declare.
1622 * value.c (value_from_contents_and_address_unresolved): New
1624 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1625 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1626 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1628 2014-06-04 Tom Tromey <tromey@redhat.com>
1630 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1632 2014-06-04 Tom Tromey <tromey@redhat.com>
1634 * procfs.c (procfs_attach): Make "args" const.
1635 * windows-nat.c (windows_attach): Make "args" const.
1636 * nto-procfs.c (procfs_attach): Make "args" const.
1637 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1638 * go32-nat.c (go32_attach): Make "args" const.
1639 * gnu-nat.c (gnu_attach): Make "args" const.
1640 * darwin-nat.c (darwin_attach): Make "args" const.
1641 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1642 * linux-nat.c (linux_nat_attach): Make "args" const.
1643 * remote.c (extended_remote_attach_1, extended_remote_attach):
1645 * target.h (struct target_ops) <to_attach>: Make "args" const.
1646 (find_default_attach): Likewise.
1647 * utils.c (parse_pid_to_attach): Make "args" const.
1648 * utils.h (parse_pid_to_attach): Update.
1650 2014-06-04 Tom Tromey <tromey@redhat.com>
1652 * target-delegates.c: Rebuild.
1653 * target.c (default_thread_address_space): New function.
1654 (target_thread_address_space): Simplify.
1655 * target.h (struct target_ops) <to_thread_address_space>: Add
1656 TARGET_DEFAULT_FUNC.
1658 2014-06-04 Doug Evans <xdje42@gmail.com>
1660 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1662 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1664 * record-btrace.c: Include event-loop.h and inf-loop.h.
1665 (record_btrace_resume_exec_dir)
1666 (record_btrace_async_inferior_event_handler)
1667 (record_btrace_handle_async_inferior_event): New.
1668 (record_btrace_open): Create async event handler.
1669 (record_btrace_close): Delete async event handler.
1670 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1671 Mark async event handler.
1672 (record_btrace_execution_direction): New.
1673 (init_record_btrace_ops): Initialize to_execution_direction.
1675 2014-06-03 Doug Evans <xdje42@gmail.com>
1677 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1678 (gdbscm_make_parameter): Ditto.
1680 2014-06-03 Doug Evans <dje@google.com>
1682 * exec.c (exec_close_1): Call clear_section_table instead of
1683 resize_section_table.
1684 (clear_section_table): New function.
1685 (resize_section_table): Make static. Rename arg num_added to
1687 * exec.h (clear_section_table): Declare.
1688 (resize_section_table): Delete.
1689 * progspace.c (release_program_space): Call clear_section_table
1690 instead of resize_section_table.
1692 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1694 * NEWS (Python Scripting): Add entry about the new xmethods
1697 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1699 * python/py-xmethods.c: New file.
1700 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1701 (objfpy_dealloc): XDECREF on the new xmethods field.
1702 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1704 (objfpy_get_xmethods): New function.
1705 (objfile_getset): New entry 'xmethods'.
1706 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1707 (pspy_dealloc): XDECREF on the new xmethods field.
1708 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1710 (pspy_get_xmethods): New function.
1711 (pspace_getset): New entry 'xmethods'.
1712 * python/python-internal.h: Add declarations for new functions.
1713 * python/python.c (_initialize_python): Invoke
1714 gdbpy_initialize_xmethods.
1715 * python/lib/gdb/__init__.py (xmethods): New
1717 * python/lib/gdb/xmethod.py: New file.
1718 * python/lib/gdb/command/xmethods.py: New file.
1720 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1722 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1723 best match method returned by find_overload_match is an xmethod.
1724 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1725 the best matching operator returned by find_overload_match is an
1727 * valops.c: #include "extension.h".
1728 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1729 Return void. The list of matching source methods is returned in
1730 "fn_list" and a vector of matching debug method workers is
1731 returned in "xm_worker_vec". Update all callers.
1732 (value_find_oload_method_list): Likewise.
1733 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1734 non-NULL, then the index of the best matching method in this
1735 vector is returned. Update all callers.
1736 (find_overload_match): Include xmethods while performing overload
1739 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1741 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1742 * extension-priv.h (struct extension_language_ops): Add the
1744 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1745 get_matching_xmethod_workers, get_xmethod_argtypes,
1746 invoke_xmethod, free_xmethod_worker,
1747 free_xmethod_worker_vec): New functions.
1748 * extension.h: #include "common/vec.h".
1749 New function declarations.
1750 (struct xmethod_worker): New struct.
1751 (VEC (xmethod_worker_ptr)): New vector type.
1752 (xmethod_worker_ptr): New typedef.
1753 (xmethod_worker_vec): Likewise.
1754 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1756 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1757 (struct builtin_type): New field "xmethod".
1758 * valarith.c (value_ptradd): Assert that the value argument is not
1760 * valops.c (value_must_coerce_to_target): Return 0 for
1761 lval_xcallable values.
1762 * value.c (struct value): New field XM_WORKER in the field
1764 (value_address, value_raw_address): Return 0 for lval_xcallable
1766 (set_value_address): Assert that the value is not an
1768 (value_free): Free the associated xmethod worker when freeing
1769 lval_xcallable values.
1770 (set_value_component_location): Assert that the WHOLE value is not
1772 (value_of_xmethod, call_xmethod): New functions.
1773 * value.h: Declare "struct xmethod_worker".
1774 Declare new functions value_of_xmethod, call_xmethod.
1776 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1777 Pedro Alves <palves@redhat.com>
1779 PR breakpoints/17000
1780 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1781 New function, extracted from software_breakpoint_inserted_here_p.
1782 (software_breakpoint_inserted_here_p): Replace factored out code
1783 by call to find_non_raw_software_breakpoint_inserted_here.
1784 (bp_target_info_copy_insertion_state): New function.
1785 (bkpt_insert_location): Handle the case of a single-step
1786 breakpoint already inserted at the same address.
1787 (bkpt_remove_location): Handle the case of a single-step
1788 breakpoint still inserted at the same address.
1789 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1790 breakpoint already inserted at the same address.
1791 (deprecated_remove_raw_breakpoint): Handle the case of a
1792 non-raw breakpoint still inserted at the same address.
1793 (find_single_step_breakpoint): New function, extracted from
1794 single_step_breakpoint_inserted_here_p.
1795 (find_single_step_breakpoint): New function,
1796 factored out from single_step_breakpoint_inserted_here_p.
1797 (single_step_breakpoint_inserted_here_p): Reimplement.
1799 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1801 Pushed by Joel Brobecker <brobecker@adacore.com>
1802 * source.c (show_substitute_path_command): Fix display of matching
1805 2014-06-03 Gary Benson <gbenson@redhat.com>
1807 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1809 2014-06-02 Doug Evans <xdje42@gmail.com>
1811 Add parameter support for Guile.
1812 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1813 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1814 (scm-param.o): New rule.
1815 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1816 (gdbscm_misc_error): Declare.
1817 (gdbscm_canonicalize_command_name): Declare.
1818 (gdbscm_scm_to_host_string): Declare.
1819 (gdbscm_scm_from_host_string): Declare.
1820 (gdbscm_initialize_parameters): Declare.
1821 * guile/guile.c (initialize_gdb_module): Call
1822 gdbscm_initialize_parameters.
1823 * guile/lib/gdb.scm: Export parameter symbols.
1824 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1825 cmdscm_canonicalize_name and made public. All callers updated.
1826 * guile/scm-exception.c (gdbscm_misc_error): New function.
1827 * guile/scm-param.c: New file.
1828 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1829 (gdbscm_scm_to_host_string): New function.
1830 (gdbscm_scm_from_host_string): New function.
1831 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1833 2014-06-02 Doug Evans <xdje42@gmail.com>
1835 Add command support for Guile.
1836 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1837 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1838 (scm-cmd.o): New rule.
1839 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1840 (gdbscm_user_error_p): Declare.
1841 (gdbscm_parse_command_name): Declare.
1842 (gdbscm_valid_command_class_p): Declare.
1843 (gdbscm_initialize_commands): Declare.
1844 * guile/guile.c (initialize_gdb_module): Call
1845 gdbscm_initialize_commands.
1846 * guile/lib/gdb.scm: Export command symbols.
1847 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1848 (throw-user-error): New function.
1849 * guile/scm-cmd.c: New file.
1850 * guile/scm-exception.c (user_error_symbol): New static global.
1851 (gdbscm_user_error_p): New function.
1852 (gdbscm_initialize_exceptions): Set user_error_symbol.
1853 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1855 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1857 * top.c (command_loop): Handle comments here...
1858 (command_line_input): ... not here.
1860 2014-06-02 Doug Evans <xdje42@gmail.com>
1862 Add progspace support for Guile.
1863 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1864 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1865 (scm-progspace.o): New rule.
1866 * guile/guile-internal.h (pspace_smob): New typedef.
1867 (psscm_pspace_smob_pretty_printers): Declare.
1868 (psscm_pspace_smob_from_pspace): Declare.
1869 (psscm_scm_from_pspace): Declare.
1870 * guile/guile.c (initialize_gdb_module): Call
1871 gdbscm_initialize_pspaces.
1872 * guile/lib/gdb.scm: Export progspace symbols.
1873 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1875 (append-pretty-printer!): Ditto.
1876 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1878 * guile/scm-progspace.c: New file.
1880 2014-06-03 Alan Modra <amodra@gmail.com>
1882 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1883 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1885 2014-06-02 Doug Evans <dje@google.com>
1887 Add support for skeletonless type units.
1888 * dwarf2read.c (struct dwarf2_per_objfile): New member
1889 n_allocated_type_units.
1890 (struct dwarf2_per_objfile) <tu_stats>: New member
1891 nr_all_type_units_reallocs.
1892 (create_signatured_type_table_from_index): Initialize
1893 n_allocated_type_units
1894 (create_all_type_units): Ditto.
1895 (add_type_unit): Move up in file. New arg slot.
1896 All callers updated. Increase space for all_type_units more
1898 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1899 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1900 (lookup_dwp_signatured_type): Ditto.
1901 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1902 All callers updated.
1903 (build_type_psymtabs_1): Leave type_unit_groups as
1904 NULL if no TUs present.
1905 (print_tu_stats): New function.
1906 (process_skeletonless_type_unit): New function.
1907 (process_dwo_file_for_skeletonless_type_units): New
1909 (process_skeletonless_type_units): New function.
1910 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1911 Call print tu_stats if debugging enabled.
1913 2014-06-02 Pedro Alves <palves@redhat.com>
1915 * breakpoint.c (build_target_command_list): Don't build a command
1916 list if we have any duplicate location that isn't a dprintf.
1918 2014-06-02 Pedro Alves <palves@redhat.com>
1920 * breakpoint.c (dprintf_breakpoint_hit): New function.
1921 (initialize_breakpoint_ops): Install it as dprintf's
1922 breakpoint_hit method.
1924 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1926 * source.c (substitute_path_rule_matches): Simplify using
1927 filename_ncmp instead of FILENAME_CMP.
1929 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1931 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1933 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1935 * configure.ac: When Guile is available, check for the
1936 availability of 'scm_new_smob'.
1937 * configure, config.h.in: Regenerate.
1938 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1941 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1943 * frame.c (struct frame_info): Add stop_string field.
1944 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1945 (get_prev_frame_always): Old content moved into
1946 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1947 TRY_CATCH, handle MEMORY_ERROR exceptions.
1948 (frame_stop_reason_string): New function definition.
1949 * frame.h (unwind_stop_reason_to_string): Extend comment to
1950 mention frame_stop_reason_string.
1951 (frame_stop_reason_string): New function declaration.
1952 * stack.c (frame_info): Switch to frame_stop_reason_string.
1953 (backtrace_command_1): Switch to frame_stop_reason_string.
1954 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1955 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1956 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1958 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1960 * frame.c (frame_stop_reason_string): Rename to ...
1961 (unwind_stop_reason_to_string): this.
1962 * frame.h (frame_stop_reason_string): Rename to ...
1963 (unwind_stop_reason_to_string): this.
1964 * stack.c (frame_info): Update call to frame_stop_reason_string.
1965 (backtrace_command_1): Likewise.
1966 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1967 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1969 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1971 * frame.c (remove_prev_frame): New function.
1972 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1975 2014-05-29 Pedro Alves <palves@redhat.com>
1977 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1978 and make it const. When a single-step decays to a continue,
1979 clear 'step', not 'hw_step'. Pass whether the caller wanted
1980 to step to user_visible_resume_ptid, not what we ask the
1983 2014-05-29 Pedro Alves <palves@redhat.com>
1985 * infrun.c (process_event_stop_test, handle_step_into_function)
1986 (handle_step_into_function_backward): Adjust.
1987 Don't set the even thread's stop_step and call stop_waiting before
1988 calling end_stepping_range. Instead do that ...
1989 (end_stepping_range): ... here. Take an ecs pointer parameter.
1991 2014-05-29 Pedro Alves <palves@redhat.com>
1993 * infrun.c (stop_stepping): Rename to ...
1994 (stop_waiting): ... this.
1995 (proceed): Update comment.
1996 (process_event_stop_test, handle_inferior_event)
1997 (handle_signal_stop, handle_step_into_function)
1998 (handle_step_into_function_backward): Update.
2000 2014-05-29 Pedro Alves <palves@redhat.com>
2002 * infcall.c (run_inferior_call): Don't check whether the current
2003 thread is running after the proceed call.
2005 2014-05-29 Pedro Alves <palves@redhat.com>
2006 Tom Tromey <tromey@redhat.com>
2008 * NEWS: Mention "maint set target-async", "set mi-async", and that
2009 background execution commands are now always available.
2010 * target.h (target_async_permitted): Update comment.
2011 * target.c (target_async_permitted, target_async_permitted_1):
2013 (set_target_async_command): Rename to ...
2014 (maint_set_target_async_command): ... this.
2015 (show_target_async_command): Rename to ...
2016 (maint_show_target_async_command): ... this.
2017 (_initialize_target): Adjust.
2018 * infcmd.c (prepare_execution_command): Make extern.
2019 * inferior.h (prepare_execution_command): Declare.
2020 * infrun.c (set_observer_mode): Leave target async alone.
2021 * mi/mi-interp.c (mi_interpreter_init): Install
2022 mi_on_sync_execution_done as sync_execution_done observer.
2023 (mi_on_sync_execution_done): New function.
2024 (mi_execute_command_input_handler): Don't print the prompt if we
2025 just started a synchronous command with an async target.
2026 (mi_on_resume): Check sync_execution before printing prompt.
2027 * mi/mi-main.h (mi_async_p): Declare.
2028 * mi/mi-main.c: Include gdbcmd.h.
2029 (mi_async_p): New function.
2030 (mi_async, mi_async_1): New globals.
2031 (set_mi_async_command, show_mi_async_command, mi_async): New
2033 (exec_continue): Call prepare_execution_command.
2034 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2035 (mi_execute_async_cli_command): Use mi_async_p.
2036 (_initialize_mi_main): Install "set mi-async". Make
2037 "target-async" a deprecated alias.
2039 2014-05-29 Pedro Alves <palves@redhat.com>
2041 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2042 (_initialize_cli_interp): Adjust.
2043 * event-loop.c: Include "observer.h".
2044 (start_event_loop): Notify 'command_error' observers instead of
2045 calling display_gdb_prompt. Remove FIXME comment.
2046 * event-top.c (display_gdb_prompt): Remove call into the
2048 * inf-loop.c: Include "observer.h".
2049 (inferior_event_handler): Notify 'command_error' observers instead
2050 of calling display_gdb_prompt.
2051 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2052 observers instead of calling display_gdb_prompt.
2053 * interps.c (interp_set): Don't call display_gdb_prompt.
2054 (current_interp_display_prompt_p): Delete.
2055 * interps.h (interp_prompt_p): Delete declaration.
2056 (interp_prompt_p_ftype): Delete.
2057 (struct interp_procs) <prompt_proc_p>: Delete field.
2058 (current_interp_display_prompt_p): Delete declaration.
2059 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2060 (_initialize_mi_interp): Adjust.
2061 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2062 'command_error' observers.
2063 (tui_on_sync_execution_done, tui_on_command_error): New
2065 (tui_display_prompt_p): Delete.
2066 (_initialize_tui_interp): Adjust.
2068 2014-05-29 Pedro Alves <palves@redhat.com>
2071 * cli/cli-interp.c: Include infrun.h and observer.h.
2072 (cli_uiout, cli_interp): New globals.
2073 (cli_on_signal_received, cli_on_end_stepping_range)
2074 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2076 (cli_interpreter_init): Install them as 'end_stepping_range',
2077 'signal_received' 'signal_exited', 'exited' and 'no_history'
2079 (_initialize_cli_interp): Remove cli_interp local.
2080 * infrun.c (handle_inferior_event): Call the several stop reason
2081 observers instead of printing the stop reason directly.
2082 (end_stepping_range): New function.
2083 (print_end_stepping_range_reason, print_signal_exited_reason)
2084 (print_exited_reason, print_signal_received_reason)
2085 (print_no_history_reason): Make static, and add an uiout
2086 parameter. Print to that instead of to CURRENT_UIOUT.
2087 * infrun.h (print_end_stepping_range_reason)
2088 (print_signal_exited_reason, print_exited_reason)
2089 (print_signal_received_reason print_no_history_reason): New
2091 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2093 <cli_uiout>: New field.
2094 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2095 uiout for CLI output. Install 'signal_received',
2096 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2098 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2099 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2100 (mi_on_no_history): New functions.
2101 (ui_out_free_cleanup): Delete function.
2102 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2103 instead use the one already stored in the MI interpreter data.
2104 (mi_ui_out): Adjust.
2105 * tui/tui-interp.c: Include infrun.h and observer.h.
2106 (tui_interp): New global.
2107 (tui_on_signal_received, tui_on_end_stepping_range)
2108 (tui_on_signal_exited, tui_on_exited)
2109 (tui_on_no_history): New functions.
2110 (tui_init): Install them as 'end_stepping_range',
2111 'signal_received' 'signal_exited', 'exited' and 'no_history'
2113 (_initialize_tui_interp): Delete tui_interp local.
2115 2014-05-29 Pedro Alves <palves@redhat.com>
2118 * linux-nat.c (linux_nat_resume_callback): Rename the second
2119 parameter to 'except'. Skip LP if it points to EXCEPT.
2120 (linux_nat_resume): Don't mark the event lwp as not stopped
2121 before resuming sibling lwps. Instead ask
2122 linux_nat_resume_callback to skip the event lwp. Mark it as not
2123 stopped after actually resuming it.
2124 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2126 (wait_lwp): Mark the lwp as stopped here.
2127 (stop_wait_callback): Mark the lwp as not stopped right after
2128 resuming it. Don't mark lwps as stopped here.
2129 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2130 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2132 2014-05-29 Pedro Alves <palves@redhat.com>
2135 * infrun.c (resume): Determine how much to resume depending on
2136 whether the caller wanted a step, not whether we can hardware step
2137 the target. Mark all threads that we intend to run as running,
2138 unless we're calling an inferior function.
2139 (normal_stop): If the thread is running an infcall, don't finish
2141 * target.c (target_resume): Don't mark threads as running here.
2143 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2145 * serial.c (_initialize_serial): Remove support for
2146 the "set remotebaud" and "show remotebaud" commands.
2147 * NEWS: Add entry documenting the removal of that command.
2149 2014-05-28 Yao Qi <yao@codesourcery.com>
2151 * charset.c: Fix typo in comments.
2153 2014-05-27 Gary Benson <gbenson@redhat.com>
2155 * utils.c (internal_vproblem): Prompt for a bug report.
2157 2014-05-26 Andy Wingo <wingo@igalia.com>
2159 * guile/scm-arch.c (arscm_mark_arch_smob):
2160 * guile/scm-block.c (bkscm_mark_block_smob)
2161 (bkscm_mark_block_syms_progress_smob):
2162 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2163 * guile/scm-exception.c (exscm_mark_exception_smob):
2164 * guile/scm-frame.c (frscm_mark_frame_smob):
2165 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2166 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2167 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2168 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2169 (ppscm_mark_pretty_printer_worker_smob):
2170 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2171 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2172 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2173 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2175 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2178 2014-05-26 Andy Wingo <wingo@igalia.com>
2179 Doug Evans <xdje42@gmail.com>
2181 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2182 empty_base_class. All uses updated.
2183 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2184 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2186 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2187 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2188 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2189 (gdbscm_gsmob_has_property_p, add_property_name)
2190 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2191 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2192 (gdb-object-has-property?, gdb-object-properties): Remove.
2193 (gdb-object-kind): Renamed from gsmob-kind.
2195 2014-05-26 Andy Wingo <wingo@igalia.com>
2197 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2198 * configure: Regenerate.
2200 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2202 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2204 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2206 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2207 (replay_memory_access_read_only, replay_memory_access_read_write)
2208 (replay_memory_access_types, replay_memory_access)
2209 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2210 (cmd_set_record_btrace, cmd_show_record_btrace)
2211 (cmd_show_replay_memory_access): New.
2212 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2213 (record_btrace_remove_breakpoint): Replace
2214 record_btrace_allow_memory_access with replay_memory_access.
2215 (_initialize_record_btrace): Add commands.
2216 * NEWS: Announce it.
2218 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2220 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2222 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2224 * MAINTAINERS (Write After Approval): Move self back from
2227 2014-05-22 Pedro Alves <palves@redhat.com>
2229 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2230 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2231 (disable_randomization, enum exec_direction_kind)
2232 (execution_direction, stop_registers, start_remote)
2233 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2234 (wait_for_inferior, normal_stop, get_last_target_status)
2235 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2236 (insert_step_resume_breakpoint_at_sal)
2237 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2238 (set_step_info, print_stop_event, signal_stop_state)
2239 (signal_print_state, signal_pass_state, signal_stop_update)
2240 (signal_print_update, signal_pass_update)
2241 (update_signals_program_target, clear_exit_convenience_vars)
2242 (displaced_step_dump_bytes, update_observer_mode)
2243 (signal_catch_update, gdb_signal_from_command): Move
2245 * infrun.h: ... to this new file.
2246 * amd64-tdep.c: Include infrun.h.
2247 * annotate.c: Include infrun.h.
2248 * arch-utils.c: Include infrun.h.
2249 * arm-linux-tdep.c: Include infrun.h.
2250 * arm-tdep.c: Include infrun.h.
2251 * break-catch-sig.c: Include infrun.h.
2252 * breakpoint.c: Include infrun.h.
2253 * common/agent.c: Include infrun.h instead of inferior.h.
2254 * corelow.c: Include infrun.h.
2255 * event-top.c: Include infrun.h.
2256 * go32-nat.c: Include infrun.h.
2257 * i386-tdep.c: Include infrun.h.
2258 * inf-loop.c: Include infrun.h.
2259 * infcall.c: Include infrun.h.
2260 * infcmd.c: Include infrun.h.
2261 * infrun.c: Include infrun.h.
2262 * linux-fork.c: Include infrun.h.
2263 * linux-nat.c: Include infrun.h.
2264 * linux-thread-db.c: Include infrun.h.
2265 * monitor.c: Include infrun.h.
2266 * nto-tdep.c: Include infrun.h.
2267 * procfs.c: Include infrun.h.
2268 * record-btrace.c: Include infrun.h.
2269 * record-full.c: Include infrun.h.
2270 * remote-m32r-sdi.c: Include infrun.h.
2271 * remote-mips.c: Include infrun.h.
2272 * remote-notif.c: Include infrun.h.
2273 * remote-sim.c: Include infrun.h.
2274 * remote.c: Include infrun.h.
2275 * reverse.c: Include infrun.h.
2276 * rs6000-tdep.c: Include infrun.h.
2277 * s390-linux-tdep.c: Include infrun.h.
2278 * solib-irix.c: Include infrun.h.
2279 * solib-osf.c: Include infrun.h.
2280 * solib-svr4.c: Include infrun.h.
2281 * target.c: Include infrun.h.
2282 * top.c: Include infrun.h.
2283 * windows-nat.c: Include infrun.h.
2284 * mi/mi-interp.c: Include infrun.h.
2285 * mi/mi-main.c: Include infrun.h.
2286 * python/py-threadevent.c: Include infrun.h.
2288 2014-05-22 Pedro Alves <palves@redhat.com>
2290 * infrun.c (handle_inferior_event): Store the exit code for
2291 --return-child-result here, instead of ...
2292 (print_exited_reason): ... here.
2294 2014-05-21 Pedro Alves <palves@redhat.com>
2297 * gdbthread.h (struct thread_control_state): New field
2299 * infrun.c (follow_fork): Copy the new thread control field to the
2301 (clear_proceed_status_thread): Clear the new thread control field.
2302 (proceed): Set the new thread control field.
2303 * interps.h (command_interp): Declare.
2304 * interps.c (command_interpreter): New global.
2305 (command_interp): New function.
2306 (interp_exec): Set `command_interpreter' while here.
2307 * cli-out.c (cli_uiout_dtor): New function.
2308 (cli_ui_out_impl): Install it.
2309 * mi/mi-interp.c: Include cli-out.h.
2310 (mi_cmd_interpreter_exec): Add comment.
2311 (restore_current_uiout_cleanup): New function.
2312 (ui_out_free_cleanup): New function.
2313 (mi_on_normal_stop): If finishing an execution command started by
2314 a CLI command, or any kind of breakpoint-like event triggered,
2315 print the stop event to the output (CLI) stream.
2316 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2318 2014-05-21 Pedro Alves <palves@redhat.com>
2320 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2321 current source line having changed.
2322 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2323 * infrun.c (normal_stop): Adjust call to
2324 set_current_sal_from_frame.
2325 * source.c (clear_lines_listed_range): New function.
2326 (set_current_source_symtab_and_line, identify_source_line): Clear
2327 the lines listed range.
2328 (line_info): Handle the first "info line" after the current source
2329 line having changed.
2330 * stack.c (print_stack_frame): Remove center handling.
2331 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2334 2014-05-21 Pedro Alves <palves@redhat.com>
2336 * inf-child.c (inf_child_mourn_inferior): New function.
2337 * inf-child.h (inf_child_mourn_inferior): New declaration.
2338 * darwin-nat.c (darwin_mourn_inferior): Use
2339 inf_child_mourn_inferior.
2340 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2341 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2342 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2343 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2344 * windows-nat.c (windows_mourn_inferior): Likewise.
2346 2014-05-21 Doug Evans <xdje42@gmail.com>
2348 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2350 2014-05-21 Doug Evans <xdje42@gmail.com>
2352 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2353 (gdbscm_out_of_range_error): Ditto.
2354 (gdbscm_memory_error): Ditto.
2355 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2356 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2357 (gdbscm_out_of_range_error): Update.
2358 (gdbscm_memory_error): Update.
2359 (gdbscm_scm_to_target_string_unsafe): Delete.
2361 2014-05-21 Pedro Alves <palves@redhat.com>
2363 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2365 (inf_child_open_target): New function.
2366 (inf_child_open): Use inf_child_open_target to push the target
2367 instead of erroring out.
2368 (inf_child_disconnect, inf_child_close)
2369 (inf_child_maybe_unpush_target): New functions.
2370 (inf_child_target): Install inf_child_disconnect and
2371 inf_child_close. Store a pointer to the returned object.
2372 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2374 * target.c (auto_connect_native_target): New global.
2375 (show_default_run_target): New function.
2376 (find_default_run_target): Return NULL if automatically connecting
2377 to the native target is disabled.
2378 (_initialize_target): Install set/show auto-connect-native-target.
2379 * NEWS: Mention "set auto-connect-native-target", and "target
2381 * linux-nat.c (super_close): New global.
2382 (linux_nat_close): Call super_close.
2383 (linux_nat_add_target): Store a pointer to the base class's
2385 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2386 inf_child_maybe_unpush.
2387 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2389 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2390 the inferior. Use inf_child_maybe_unpush_target.
2391 (inf_ttrace_attach): Don't push the target if it is already
2393 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2394 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2395 after mourning the inferior. Use inf_child_maybe_unpush_target.
2396 (darwin_attach_pid): Don't push the target if it is already
2398 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2399 mourning the inferior. Use inf_child_maybe_unpush_target.
2400 (gnu_detach): Use inf_child_maybe_unpush_target.
2401 * go32-nat.c (go32_create_inferior): Don't push the target if it
2403 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2404 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2405 (procfs_open): Rename to ...
2406 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2407 comments. Can target_preopen before changing node. Call
2408 inf_child_open_target to push the target explicitly.
2409 (procfs_attach): Don't push the target if it is already pushed.
2410 (procfs_detach): Use inf_child_maybe_unpush_target.
2411 (procfs_create_inferior): Don't push the target if it is already
2413 (nto_native_ops): New global.
2414 (procfs_open): Reimplement.
2415 (procfs_native_open): New function.
2416 (init_procfs_targets): Install procfs_native_open as to_open of
2417 "target native". Store a pointer to the "native" target in
2419 * procfs.c (procfs_attach): Don't push the target if it is already
2421 (procfs_detach): Use inf_child_maybe_unpush_target.
2422 (procfs_mourn_inferior): Only unpush the target after mourning the
2423 inferior. Use inf_child_maybe_unpush_target.
2424 (procfs_init_inferior): Don't push the target if it is already
2426 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2427 if it is already pushed.
2429 2014-05-21 Pedro Alves <palves@redhat.com>
2431 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2432 and "procfs" targets are now called "native" instead.
2434 2014-05-21 Pedro Alves <palves@redhat.com>
2436 * go32-nat.c (go32_open): Delete.
2437 (go32_target): Don't override the to_open method.
2439 2014-05-21 Pedro Alves <palves@redhat.com>
2441 * nto-procfs.c (procfs_can_run): New function.
2442 (nto_procfs_ops): New global.
2443 (init_procfs_targets): New, based on procfs_target. Install
2444 "target native" in addition to "target procfs".
2445 (_initialize_procfs): Call init_procfs_targets instead of adding
2448 2014-05-21 Pedro Alves <palves@redhat.com>
2450 * windows-nat.c (windows_target): Don't override to_shortname,
2451 to_longname or to_doc.
2453 2014-05-21 Pedro Alves <palves@redhat.com>
2455 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2458 2014-05-21 Pedro Alves <palves@redhat.com>
2460 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2461 to_shortname, to_longname or to_doc.
2463 2014-05-21 Pedro Alves <palves@redhat.com>
2465 * go32-nat.c (go32_target): Don't override to_shortname,
2466 to_longname or to_doc.
2468 2014-05-21 Pedro Alves <palves@redhat.com>
2470 * inf-child.c (inf_child_open): Remove mention of "child".
2471 (inf_child_target): Rename target to "native" instead of "child".
2473 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475 * Makefile.in (SFILES): Delete "regset.c".
2476 (COMMON_OBS): Delete "regset.o".
2478 * regset.h (regset_alloc): Delete prototype.
2480 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2482 * sparc-linux-tdep.c (sparc32_linux_gregset)
2483 (sparc32_linux_fpregset): New static regset structures.
2484 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2485 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2487 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2488 (sparc64_linux_fpregset): New static regset structures.
2489 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2490 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2491 New static regset structures.
2492 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2493 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2494 New static regset structures.
2495 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2496 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2497 New static regset structures.
2498 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2499 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2500 New static regset structures.
2501 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2503 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2506 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2507 register maps ("regmaps") from "*regset" to "*regmap". Do this
2508 for all regmap types and variables.
2509 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2510 (sparc32_linux_supply_core_gregset)
2511 (sparc32_linux_collect_core_gregset)
2512 (sparc32_linux_supply_core_fpregset)
2513 (sparc32_linux_collect_core_fpregset): Likewise.
2514 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2515 (sparc_gregmap, sparc_fpregmap): ... these.
2516 (sparc_supply_gregset, sparc_collect_gregset)
2517 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2518 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2519 (_initialize_sparc_nat): Rename regmaps.
2520 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2521 (sparc_gregmap, sparc_fpregmap): ... these.
2522 (sparc_supply_gregset, sparc_collect_gregset)
2523 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2524 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2526 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2527 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2529 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2531 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2532 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2533 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2535 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2536 (sparc32_bsd_fpregset): Rename to...
2537 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2538 (sparc32_bsd_fpregmap): ... these.
2539 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2540 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2541 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2542 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2543 (struct sparc_gregmap, struct sparc_fpregmap)
2544 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2545 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2546 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2547 (sparc32_supply_regset, sparc32_collect_gregset)
2548 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2550 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2551 (sparc64_linux_ptrace_gregmap): ... this.
2552 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2553 (_initialize_sparc64_linux_nat): Rename regmaps.
2554 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2555 (sparc64_linux_core_gregmap): ... this.
2556 (sparc64_linux_supply_core_gregset)
2557 (sparc64_linux_collect_core_gregset)
2558 (sparc64_linux_supply_core_fpregset)
2559 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2560 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2561 (sparc64_sol2_fpregset): Rename to...
2562 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2563 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2564 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2566 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2567 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2568 (sparc64_bsd_fpregset): Rename to...
2569 (struct sparc_gregmap, sparc64_sol2_gregmap)
2570 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2571 (sparc64_bsd_fpregmap): ... these.
2572 (sparc64_supply_gregset, sparc64_collect_gregset)
2573 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2575 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2576 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2577 (sparc64fbsd_gregmap): ... this.
2578 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2579 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2581 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2582 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2583 (sparc64nbsd_collect_fpregset): Likewise.
2584 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2585 (sparc64nbsd_gregmap): ... this.
2586 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2588 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2589 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2590 (sparc64obsd_gregmap): ... this.
2591 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2593 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2594 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2595 (sparc32nbsd_gregmap): ... this.
2596 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2599 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2601 * score-tdep.c (score7_linux_gregset): New static regset
2603 (score7_linux_regset_from_core_section): Remove dynamic regset
2605 (score_gdbarch_init): Drop allocation of tdep structure.
2606 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2608 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2610 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2612 (am33_regset_from_core_section): Remove dynamic regset
2615 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2617 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2618 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2620 (mips_linux_regset_from_core_section): Remove dynamic regset
2622 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2623 'gregset64', 'fpregset', and 'fpregset64'.
2624 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2625 deleted tdep fields.
2627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2631 (amd64_regset_from_core_section): Remove dynamic regset
2633 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2635 (amd64obsd_regset_from_core_section): Remove dynamic regset
2637 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2639 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2640 x86-common regset supply function.
2641 * i386-tdep.c (i386_collect_gregset): Make static.
2642 (i386_gregset): New global regset structure.
2643 (i386_fpregset, i386_xstateregset): New static regset structures.
2644 (i386_regset_from_core_section): Remove dynamic regset
2646 (i386_gdbarch_init): Remove initialization of tdep fields
2647 'gregset', 'fpregset', and 'xstateregset'.
2648 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2649 'fpregset', and 'xstateregset'.
2650 (i386_collect_gregset): Remove prototype.
2651 (i386_gregset): New declaration.
2652 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2654 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2657 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2659 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2660 (arm_linux_vfpregset): New static regset structures.
2661 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2663 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2664 and 'vfpregset' fields.
2666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2668 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2669 (aarch64_linux_fpregset): New static regset structures.
2670 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2671 of regset structures.
2672 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2675 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2677 * regset.h (struct regset): Remove gdbarch field.
2678 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2679 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2680 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2682 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2683 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2684 (ppc32_linux_vsxregset): Likewise.
2685 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2686 via the regcache instead of the regset.
2687 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2688 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2689 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2690 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2696 Constify structures.
2697 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2698 (alphanbsd_aout_gregset): Likewise.
2699 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2700 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2702 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2703 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2705 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2706 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2707 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2708 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2709 * m88k-tdep.c (m88k_gregset): Likewise.
2710 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2711 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2712 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2713 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2714 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2715 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2716 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2717 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2718 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2720 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2721 * sh-tdep.h (sh_corefile_gregset): Likewise.
2722 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2723 * vax-tdep.c (vax_gregset): Likewise.
2725 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 Fix TLS access for -static -pthread.
2728 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2729 (try_thread_db_load_1): Initialize it.
2730 (thread_db_get_thread_local_address): Call it if LM is zero.
2731 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2732 * target.h (struct target_ops) (to_get_thread_local_address): Add
2733 load_module_addr comment.
2735 2014-05-21 Pedro Alves <palves@redhat.com>
2737 * dcache.c (dcache_read_memory_partial): If reading the cache line
2738 fails, fallback to reading just the memory the caller wanted.
2740 2014-05-20 Doug Evans <dje@google.com>
2742 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2743 instead of get_current_arch.
2745 2014-05-20 Pedro Alves <palves@redhat.com>
2747 * NEWS: Mention that compare-sections now works with all targets.
2749 * remote.c (PACKET_qCRC): New enum value.
2750 (remote_verify_memory): Don't send qCRC if the target has no
2751 execution. Use packet_support/packet_ok. If the target doesn't
2752 support the qCRC packet, fallback to a deep memory copy.
2753 (compare_sections_command): Say "target image" instead of "remote
2755 (_initialize_remote): Add PACKET_qCRC to the list of config
2756 packets that have no associated command. Extend comment.
2757 * target.c (simple_verify_memory, default_verify_memory): New
2759 * target.h (struct target_ops) <to_verify_memory>: Default to
2760 default_verify_memory.
2761 (simple_verify_memory): New declaration.
2762 * target-delegates.c: Regenerate.
2764 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2766 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2768 2014-05-20 Hui Zhu <hui@codesourcery.com>
2769 Yao Qi <yao@codesourcery.com>
2772 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2773 and change address of sp and pc.
2775 2014-05-19 Tom Tromey <tromey@redhat.com>
2777 * gdbtypes.c (rank_function): Use XNEWVEC.
2778 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2780 2014-05-19 Doug Evans <dje@google.com>
2782 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2783 build_type_unit_groups and moved closer to only caller. Remove
2784 arguments. All references updated. Remove outdated .gdb_index
2786 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2787 build_type_psymtabs_1.
2789 2014-05-19 Doug Evans <dje@google.com>
2791 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2792 n_type_unit_groups, all_type_unit_groups. All uses removed.
2793 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2794 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2795 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2796 (add_type_unit_group_to_table): Delete.
2798 2014-05-19 Doug Evans <dje@google.com>
2800 * eval.c (evaluate_subexp_standard): Add some comments.
2802 2014-05-17 Doug Evans <xdje42@gmail.com>
2804 * progspace.c (remove_program_space): Delete, unused.
2805 * progspace.h (remove_program_space): Ditto.
2807 2014-05-17 Doug Evans <xdje42@gmail.com>
2809 * inferior.c (prune_inferiors): Fix comment.
2810 (remove_inferior_command): Call prune_program_spaces.
2812 2014-05-16 Doug Evans <dje@google.com>
2814 New command line option -D.
2816 * main.c (set_gdb_data_directory): New function.
2817 (captured_main): Recognize -D. Flag error for --data-directory "".
2818 Call set_gdb_data_directory.
2819 (print_gdb_help): Print --data-directory, -D.
2820 * main.h (set_gdb_data_directory): Declare.
2821 * top.c (staged_gdb_datadir): New static global.
2822 (set_gdb_datadir): Call set_gdb_data_directory
2823 (show_gdb_datadir): New function.
2824 (init_main): Update init of data-directory parameter.
2826 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2828 Import the "dirfd" gnulib module.
2829 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2830 * gnulib/aclocal.m4: Update.
2831 * gnulib/config.in: Update.
2832 * gnulib/configure: Update.
2833 * gnulib/import/Makefile.am: Update.
2834 * gnulib/import/Makefile.in: Update.
2835 * gnulib/import/dirfd.c: New.
2836 * gnulib/import/m4/dirfd.m4: New.
2837 * gnulib/import/m4/gnulib-cache.m4: Update.
2838 * gnulib/import/m4/gnulib-comp.m4: Update.
2840 2014-05-16 Pierre Muller <muller@sourceware.org>
2841 Yao Qi <yao@codesourcery.com>
2843 * valprint.c (print_wchar): Move the code on checking whether
2844 W is a printable wide char to the default branch of switch
2845 statement below. Call wchar_printable instead of gdb_iswprint.
2847 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2849 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2850 ldr.w and ldrd instructions.
2852 2014-05-15 Doug Evans <dje@google.com>
2854 * dwarf2read.c (read_structure_type): Delete outdated comments.
2856 2014-05-14 Tom Tromey <tromey@redhat.com>
2858 * macrocmd.c (print_macro_definition): Reindent.
2860 2014-05-13 Doug Evans <xdje42@gmail.com>
2862 * python/py-cmd.c (cmdpy_completer): Add comment.
2863 (completers): Make const.
2865 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2867 * infrun.c (resume): Remove should_resume (unused). Move up
2868 declaration of resume_ptid.
2870 2014-05-13 Tom Tromey <tromey@redhat.com>
2872 * language.h (unop_type_check): Remove.
2873 (binop_type_check): Don't declare.
2875 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2877 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2878 call to regcache_raw_collect.
2880 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2882 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2883 mi_console->quote as the quoting character.
2885 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2887 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2889 2014-04-29 Tom Tromey <tromey@redhat.com>
2891 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2892 "show debug varobj".
2894 2014-05-07 Kyle McMartin <kyle@redhat.com>
2896 Pushed by Joel Brobecker <brobecker@adacore.com>.
2897 * aarch64-tdep.c (aarch64_software_single_step): New function.
2898 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2899 with aarch64_software_single_step.
2901 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2905 2014-05-05 Keith Seitz <keiths@redhat.com>
2907 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2908 variable or history value is successfully parsed.
2910 2014-05-05 Yao Qi <yao@codesourcery.com>
2911 Pedro Alves <palves@redhat.com>
2913 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2914 address of blocks that intersects the requested range. Trim
2915 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2917 * ctf.c (ctf_xfer_partial): Likewise.
2919 2014-05-05 Yao Qi <yao@codesourcery.com>
2921 * printcmd.c (display_command): Remove the check to
2922 target_has_execution.
2924 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2926 * ppcobsd-nat.c: Include "obsd-nat.h".
2927 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2929 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2931 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2933 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2934 and 16-bit signed and unsigned arguments. Update comment.
2935 (stap_parse_probe_arguments): Extend code to handle such
2936 arguments. Use warning instead of complaint to notify about
2937 unrecognized bitness.
2939 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2941 PR breakpoints/16889
2942 * stap-probe.c (stap_parse_probe_arguments): Simplify
2943 check for non-prefixed probes (i.e., probes whose
2944 arguments do not start with "N@"). Always set the
2945 argument type to a sane value.
2947 2014-05-01 David Taylor <dtaylor@emc.com>
2949 * remote.c (compare_sections_command): Add -r option to compare
2950 all loadable read-only sections.
2952 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2954 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2955 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2957 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2958 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2959 Remove unused CORE_ADDR argument. Update all callers.
2961 2014-04-29 Pedro Alves <palves@redhat.com>
2963 * remote.c (struct packet_config) <detect>: Extend comment.
2964 (add_packet_config_cmd): Don't set the config's detect or support
2966 (init_all_packet_configs): Also initialize the config's 'detect'
2968 (reset_all_packet_configs_support): New function.
2969 (remote_open_1): Call reset_all_packet_configs_support instead of
2970 init_all_packet_configs.
2971 (_initialize_remote): Initialize all packet configs. Assert that
2972 all packets have an associated command, except a few known
2975 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2977 * dwarf2read.c (read_subrange_type): Handle dynamic
2978 DW_AT_lower_bound attributes.
2980 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2982 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2983 dynamic bounds before computing its upper bound.
2984 (ada_discrete_type_low_bound): Same as above with the lower bound.
2986 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2988 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2989 range types. Adjust the array handling implementation to
2990 take advantage of this change.
2991 (resolve_dynamic_range): New function, mostly extracted from
2992 resolve_dynamic_bounds.
2993 (resolve_dynamic_array): New function, mostly extracted from
2994 resolve_dynamic_bounds.
2995 (resolve_dynamic_bounds): Delete.
2996 (resolve_dynamic_type): Reimplement. Add handling of
2997 TYPE_CODE_RANGE types.
2999 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3001 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3002 handling of parallel ___XA types.
3004 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3006 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3007 unnecessary second call to static_unwrap_type.
3009 2014-04-27 Hui Zhu <hui@codesourcery.com>
3011 * stack.c (print_frame_info): Call do_gdb_disassembly with
3012 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3014 2014-04-26 Doug Evans <xdje42@gmail.com>
3016 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3018 2014-04-25 Pedro Alves <palves@redhat.com>
3021 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3022 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3023 and newline from built string.
3024 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3025 (linux_ptrace_attach_fail_reason): ... this.
3026 * linux-nat.c (linux_nat_attach): Adjust to use
3027 linux_ptrace_attach_fail_reason.
3029 2014-04-25 Pedro Alves <palves@redhat.com>
3031 * remote.c (struct remote_state): Remove multi_process_aware,
3032 non_stop_aware, cond_tracepoints, cond_breakpoints,
3033 breakpoint_commands, fast_tracepoints, static_tracepoints,
3034 install_in_trace, disconnected_tracing,
3035 enable_disable_tracepoints, string_tracing, and
3036 augmented_libraries_svr4_read fields.
3037 (remote_multi_process_p): Move further below in the file.
3038 (struct packet_config): Add comments.
3039 (update_packet_config): Delete function.
3040 (show_packet_config_cmd): Use packet_config_support.
3041 (add_packet_config_cmd): Use NULL as set callback.
3042 (packet_ok): "set remote foo-packet"-style commands no longer
3043 change config->supported -- adjust.
3044 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3045 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3046 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3047 (PACKET_QNonStop, PACKET_multiprocess_feature)
3048 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3049 (PACKET_DisconnectedTracing_feature)
3050 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3051 (set_remote_protocol_packet_cmd): Delete function.
3052 (packet_config_support, packet_support): New functions.
3053 (set_remote_protocol_Z_packet_cmd): Don't call
3054 update_packet_config.
3055 (remote_query_attached, remote_pass_signals)
3056 (remote_program_signals, remote_threads_info)
3057 (remote_threads_extra_info, remote_start_remote): Use
3059 (remote_start_remote): Use packet_config_support and
3061 (init_all_packet_configs): Set all packets to unknown support,
3062 instead of calling update_packet_config.
3063 (remote_check_symbols): Use packet_support.
3064 (remote_supported_packet): Unconditionally set the packet config's
3066 (remote_multi_process_feature, remote_non_stop_feature)
3067 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3068 (remote_breakpoint_commands_feature)
3069 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3070 (remote_install_in_trace_feature)
3071 (remote_disconnected_tracing_feature)
3072 (remote_enable_disable_tracepoint_feature)
3073 (remote_string_tracing_feature)
3074 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3075 (remote_protocol_features): Adjust to use remote_supported_packet
3076 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3077 "ConditionalTracepoints", "ConditionalBreakpoints",
3078 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3079 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3080 "EnableDisableTracepoints", and "tracenz".
3081 (remote_query_supported): Use packet_support.
3082 (remote_open_1): Adjust.
3083 (extended_remote_attach_1): Use packet_support. Switch on the
3084 result of packet_ok instead of checking whether the packet ended
3086 (remote_vcont_resume): Use packet_support.
3087 (remote_resume, remote_stop_ns, fetch_register_using_p)
3088 (remote_prepare_to_store, store_register_using_P)
3089 (check_binary_download, remote_write_bytes): Use packet_support.
3090 (remote_vkill): Use packet_support. Switch on the result of
3091 packet_ok instead of checking whether the packet ended up
3093 (extended_remote_supports_disable_randomization): Use
3095 (extended_remote_run): Switch on the result of packet_ok instead
3096 of checking whether the packet ended up disabled.
3097 (remote_insert_breakpoint, remote_remove_breakpoint)
3098 (remote_insert_watchpoint, remote_remove_watchpoint)
3099 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3101 (remote_search_memory): Use packet_config_support.
3102 (remote_get_thread_local_address, remote_get_tib_address)
3103 (remote_hostio_send_command, remote_can_execute_reverse): Use
3105 (remote_supports_cond_tracepoints)
3106 (remote_supports_cond_breakpoints)
3107 (remote_supports_fast_tracepoints)
3108 (remote_supports_static_tracepoints)
3109 (remote_supports_install_in_trace)
3110 (remote_supports_enable_disable_tracepoint)
3111 (remote_supports_string_tracing)
3112 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3113 the packet config says the feature is enabled or disabled.
3114 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3115 (remote_get_trace_status): Use packet_support.
3116 (remote_set_disconnected_tracing): Adjust to check whether the
3117 feature is enabled with packet_support.
3118 (remote_set_trace_buffer_size, remote_use_agent)
3119 (remote_can_use_agent, remote_supports_btrace): Use
3121 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3122 Use packet_config_support.
3123 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3124 the packet config says the feature is enabled or disabled.
3125 (set_range_stepping): Use packet_support.
3127 2014-04-25 Tom Tromey <tromey@redhat.com>
3129 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3132 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3134 * NEWS: Mention support for C99 variable length arrays.
3136 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3138 * ada-lang.c (standard_exc): Expand introductory comment.
3140 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3141 Walfred Tedeschi <walfred.tedeschi@intel.com>
3143 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3145 (amd64_linux_read_description): Add code to handle AVX512 xstate
3146 mask and return respective tdesc.
3147 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3148 and features/i386/x32-avx512-linux.c.
3149 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3150 (amd64_linux_core_read_description): Add code to handle AVX512
3151 xstate mask and return respective tdesc.
3152 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3153 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3155 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3156 (tdesc_amd64_avx512_linux): New prototype.
3157 (tdesc_x32_avx512_linux): Likewise.
3158 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3159 features/i386/x32-avx512.c.
3160 (amd64_ymm_avx512_names): New register names for pseudo
3162 (amd64_ymmh_avx512_names): New register names for raw registers
3164 (amd64_k_names): New register names for K registers.
3165 (amd64_zmmh_names): New register names for ZMM raw registers.
3166 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3167 (amd64_xmm_avx512_names): New register names for XMM16-31
3169 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3171 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3172 if feature is present.
3173 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3174 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3175 (AMD64_NUM_REGS): Adjust to new number of registers.
3176 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3177 registers supplied via XSTATE by AVX512 registers.
3178 (i386_linux_read_description): Add case for AVX512.
3179 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3180 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3181 (i386_linux_core_read_description): Add case for AVX512.
3182 (i386_linux_init_abi): Install supported register note section
3184 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3186 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3187 registers to be number of zmm7h + 1.
3188 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3189 * i386-tdep.c: Include features/i386/i386-avx512.c.
3190 (i386_zmm_names): Add ZMM pseudo register names array.
3191 (i386_zmmh_names): Add ZMM raw register names array.
3192 (i386_k_names): Add K raw register names array.
3193 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3194 registers. AVX512 has 16 more ZMM registers than there are YMM
3196 (i386_zmmh_regnum_p): Add function to look up register number of
3198 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3199 (i386_k_regnum_p): Likewise for K raw registers.
3200 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3201 registers added by AVX512.
3202 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3203 registers added by AVX512.
3204 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3206 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3207 (i386_pseudo_register_name): Add ZMM pseudo registers.
3208 (i386_zmm_type): Construct and return vector registers type for ZMM
3210 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3211 ZMM0-31 pseudo registers and K registers.
3212 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3213 and YMM16-31 registers from register cache.
3214 (i386_pseudo_register_write): Add code to write K, ZMM and
3216 (i386_register_reggroup_p): Add code to include/exclude AVX512
3217 registers in/from respective register groups.
3218 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3219 registers if feature is present in xcr0.
3220 (i386_gdbarch_init): Add code to initialize AVX512 feature
3221 variables in tdep structure, wire in pseudo registers and call
3222 initialize_tdesc_i386_avx512.
3223 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3225 (i386_regnum): Add AVX512 registers.
3226 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3227 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3228 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3229 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3231 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3232 (i386_ymm_avx512_regnum_p): Likewise.
3233 (i386_k_regnum_p): Likewise.
3234 (i386_zmm_regnum_p): Likewise.
3235 (i386_zmmh_regnum_p): Likewise.
3236 * i387-tdep.c : Update year in copyright notice.
3237 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3239 (XSAVE_YMM_AVX512_ADDR): New macro.
3240 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3242 (XSAVE_XMM_AVX512_ADDR): New macro.
3243 (xsave_avx512_k_offset): New table for K register offsets in
3245 (XSAVE_AVX512_K_ADDR): New macro.
3246 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3248 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3249 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3251 (i387_collect_xsave): Add code to collect AVX512 registers from
3253 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3254 of XMM16-31 registers.
3255 (I387_NUM_K_REGS): New define for number of K registers.
3256 (I387_K0_REGNUM): New define for K0 register number.
3257 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3258 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3259 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3261 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3262 (I387_XMM16_REGNUM): New define for XMM16 register number.
3263 (I387_YMM0_REGNUM): New define for YMM0 register number.
3264 (I387_KEND_REGNUM): New define for last K register number.
3265 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3266 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3268 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3270 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3272 * features/Makefile: Add AVX512 related files.
3273 * features/i386/32bit-avx512.xml: New file.
3274 * features/i386/64bit-avx512.xml: Likewise.
3275 * features/i386/amd64-avx512-linux.c: Likewise.
3276 * features/i386/amd64-avx512-linux.xml: Likewise.
3277 * features/i386/amd64-avx512.c: Likewise.
3278 * features/i386/amd64-avx512.xml: Likewise.
3279 * features/i386/i386-avx512-linux.c: Likewise.
3280 * features/i386/i386-avx512-linux.xml: Likewise.
3281 * features/i386/i386-avx512.c: Likewise.
3282 * features/i386/i386-avx512.xml: Likewise.
3283 * features/i386/x32-avx512-linux.c: Likewise.
3284 * features/i386/x32-avx512-linux.xml: Likewise.
3285 * features/i386/x32-avx512.c: Likewise.
3286 * features/i386/x32-avx512.xml: Likewise.
3287 * regformats/i386/amd64-avx512-linux.dat: New file.
3288 * regformats/i386/amd64-avx512.dat: Likewise.
3289 * regformats/i386/i386-avx512-linux.dat: Likewise.
3290 * regformats/i386/i386-avx512.dat: Likewise.
3291 * regformats/i386/x32-avx512-linux.dat: Likewise.
3292 * regformats/i386/x32-avx512.dat: Likewise.
3293 * NEWS: Add note about new support for AVX512.
3296 2014-04-23 Pedro Alves <palves@redhat.com>
3298 * breakpoint.c (insert_bp_location): Tolerate errors if the
3299 breakpoint is set in a user-loaded objfile.
3300 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3301 location is marked shlib_disabled. If the breakpoint is set in a
3302 user-loaded objfile is a GDB-side memory breakpoint, validate it
3303 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3304 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3306 * mem-break.c (memory_validate_breakpoint): New function.
3307 * objfiles.c (userloaded_objfile_contains_address_p): New
3309 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3310 * target.h (memory_validate_breakpoint): New declaration.
3312 2014-04-23 Pedro Alves <palves@redhat.com>
3314 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3315 the breakpoint is set in a shared library, only suppress
3316 errors for software breakpoints, not hardware breakpoints.
3318 2014-04-22 Pedro Alves <palves@redhat.com>
3320 * infrun.c (schedlock_applies): New function, factored out from
3321 find_thread_needs_step_over.
3322 (find_thread_needs_step_over): Use it.
3323 (switch_back_to_stepped_thread): Always clear trap_expected if the
3324 step over is finished. Return early if scheduler locking applies.
3325 Look for the stepping thread and a potential step-over thread with
3327 (currently_stepping_or_nexting_callback): Delete.
3329 2014-04-22 Nick Clifton <nickc@redhat.com>
3331 * NEWS: Mention that ARM sim now supports tracing.
3333 2014-04-22 Yao Qi <yao@codesourcery.com>
3335 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3337 * tracefile.c (tracefile_fetch_registers): ... it. New
3339 * tracefile.h (tracefile_fetch_registers): Declare.
3340 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3341 tracefile_fetch_registers.
3343 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3346 * windows-nat.c (thread_rec): Don't display a warning when
3347 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3348 fails for any reason, set th->suspended to -1, so that we don't
3349 try to resume such a thread. Also, don't return NULL in these
3350 cases, to avoid completely ruin the session due to "PC register is
3351 not available" error.
3352 (do_windows_fetch_inferior_registers): Check errors in
3353 GetThreadContext call.
3354 (windows_continue): Accept an additional argument KILLED; if not
3355 zero, ignore errors in the SetThreadContext call, since the
3356 inferior was killed and is shutting down.
3357 (windows_resume, get_windows_debug_event)
3358 (windows_create_inferior, windows_mourn_inferior)
3359 (windows_kill_inferior): All callers of windows_continue changed
3360 to adjust to its new calling sequence.
3362 2014-04-19 Yao Qi <yao@codesourcery.com>
3364 * ctf.c (ctf_open): Call post_create_inferior.
3366 2014-04-19 Yao Qi <yao@codesourcery.com>
3368 * ctf.c (handle_id): New static variable.
3369 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3370 value. Get the declaration of event "register" and get length
3371 of field "contents".
3373 2014-04-19 Yao Qi <yao@codesourcery.com>
3375 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3377 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3379 * valops.c (oload_method_static): Remove unnecessary argument
3380 METHOD. Update all callers.
3382 2014-04-18 Pedro alves <palves@redhat.com>
3383 Tom Tromey <tromey@redhat.com>
3386 * frame.c (get_prev_frame_1): Rename to ...
3387 (get_prev_frame_always): ... this, and make extern. Adjust.
3388 (skip_artificial_frames): Use get_prev_frame_always.
3389 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3390 (get_frame_unwind_stop_reason): Adjust to rename.
3391 * frame.h (get_prev_frame_always): Declare.
3392 * inline-frame.c: Include frame.h.
3393 (inline_frame_this_id): Use get_prev_frame_always.
3395 2014-04-18 Tristan Gingold <gingold@adacore.com>
3397 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3398 code by using bfd_mach_o_get_base_address.
3400 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3402 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3403 (spu_ax_pseudo_register_collect): New function.
3404 (spu_ax_pseudo_register_push_stack): Likewise.
3405 (spu_dwarf_reg_to_regnum): Likewise.
3406 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3408 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3410 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3411 Replace FRAME argument with FRAME_ID.
3412 * gdbarch.c, gdbarch.h: Regenerate.
3413 * findvar.c (default_value_from_register): Add GDBARCH argument;
3414 replace FRAME by FRAME_ID. No longer call get_frame_id.
3415 (value_from_register): Update call to gdbarch_value_from_register.
3416 * value.h (default_value_from_register): Update prototype.
3417 * s390-linux-tdep.c (s390_value_from_register): Update interface
3418 and call to default_value_from_register.
3419 * spu-tdep.c (spu_value_from_register): Likewise.
3421 * findvar.c (address_from_register): Remove TYPE argument.
3422 Do not call value_from_register; use gdbarch_value_from_register
3423 with null_frame_id instead.
3424 * value.h (address_from_register): Update prototype.
3425 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3426 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3427 address_from_register interface change.
3429 2014-04-17 Yao Qi <yao@codesourcery.com>
3431 * gdbtypes.h: Update comments to link to types and macros'
3434 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3436 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3438 2014-04-16 Keith Seitz <keiths@redhat.com>
3441 * dwarf2read.c (skip_one_die): Check that all relative-offset
3442 sibling DIEs fall within range of the current reader's buffer.
3443 (read_partial_die): Likewise.
3445 2014-04-16 Keith Seitz <keiths@redhat.com>
3448 * cp-namespace.c (lookup_symbol_file): If the type name of
3449 `this' is NULL, return immediately.
3451 2014-04-14 Keith Seitz <keiths@redhat.com>
3454 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3455 from symbol_matches_domain in symtab.c. All local callers
3456 of symbol_matches_domain updated.
3457 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3458 search STRUCT_DOMAIN.
3459 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3460 independently. standard_lookup will do that automatically.
3461 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3462 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3463 (cp_lookup_symbol_in_namespace): Likewise.
3464 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3465 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3466 may return a STRUCT_DOMAIN match.
3467 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3468 * cp-support.c: Include language.h.
3469 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3471 * psymtab.c (match_partial_symbol): Compare the requested
3472 domain with the symbol's domain directly.
3473 (lookup_partial_symbol): Likewise.
3474 * symtab.c (lookup_symbol_in_language): Explain when/why
3475 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3476 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3477 appropriate languages.
3478 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3479 and moved to ada-lang.c
3480 (lookup_block_symbol): Explain that this function only returns
3481 symbol matching the requested DOMAIN.
3482 Compare the requested domain with the symbol's domain directly.
3483 (iterate_over_symbols): Compare the requested domain with the
3484 symbol's domain directly.
3485 * symtab.h (symbol_matches_domain): Remove.
3487 2014-04-14 Tom Tromey <tromey@redhat.com>
3490 * c-exp.y (type_aggregate_p): New function.
3491 (qualified_name, classify_inner_name): Use it.
3492 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3493 and TYPE_TARGET_TYPE of an enum type.
3494 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3496 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3497 handle TYPE_DECLARED_CLASS.
3498 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3500 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3501 * valops.c (enum_constant_from_type): New function.
3502 (value_aggregate_elt): Use it.
3503 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3506 2014-04-14 Tom Tromey <tromey@redhat.com>
3508 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3509 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3511 * value.h (value_aggregate_elt): Update.
3513 2014-04-14 Tom Tromey <tromey@redhat.com>
3515 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3519 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3520 (evaluate_subexp_standard): Pass noside argument.
3521 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3522 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3523 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3524 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3525 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3527 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3529 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3530 points to a constant blob.
3532 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3534 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3535 property and store it as the high bound and flag the range accordingly.
3536 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3537 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3538 * gdbtypes.h (enum range_flags): New enum.
3539 (struct range_bounds): Add flags member.
3541 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3543 * c-typeprint.c (c_type_print_varspec_suffix): Added
3544 check for not yet resolved high bound. If unresolved, print
3545 "variable length" string to the console instead of random
3548 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3550 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3552 (ada_template_to_fixed_record_type_1): Likewise.
3553 (ada_to_fixed_type_1): Likewise.
3554 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3555 (cp_print_value): Likewise.
3556 * d-valprint.c (dynamic_array_type): Likewise.
3557 * findvar.c (address_of_variable): Likewise.
3558 * jv-valprint.c (java_value_print): Likewise.
3559 * valops.c (value_ind): Likewise.
3560 * value.c (coerce_ref): Likewise.
3562 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3564 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3565 value and retrieve the dynamic type size.
3567 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3569 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3570 passed to sizeof is dynamic evaluate the argument to compute the length.
3572 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3573 Joel Brobecker <brobecker@adacore.com>
3575 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3576 (dwarf2_evaluate_property): New function.
3577 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3578 * dwarf2read.c (attr_to_dynamic_prop): New function.
3579 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3581 * gdbtypes.c: Include dwarf2loc.h.
3582 (is_dynamic_type): New function.
3583 (resolve_dynamic_type): New function.
3584 (resolve_dynamic_bounds): New function.
3585 (get_type_length): New function.
3586 (check_typedef): Use get_type_length to compute type length.
3587 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3588 (TYPE_LOW_BOUND_KIND): New macro.
3589 (is_dynamic_type): New function prototype.
3590 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3591 to resolve dynamic properties of the type. Update comment.
3592 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3594 2014-04-14 Richard Henderson <rth@redhat.com>
3596 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3598 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3599 Doug Evans <xdje42@gmail.com>
3601 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3602 dereference TYPE_CODE_REF values.
3604 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3606 Revert the following changes due to regressions:
3608 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3609 (dwarf2_evaluate_property): New function.
3610 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3611 * dwarf2read.c (attr_to_dynamic_prop): New function.
3612 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3614 * gdbtypes.c: Include dwarf2loc.h.
3615 (is_dynamic_type): New function.
3616 (resolve_dynamic_type): New function.
3617 (resolve_dynamic_bounds): New function.
3618 (get_type_length): New function.
3619 (check_typedef): Use get_type_length to compute type length.
3620 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3621 (TYPE_LOW_BOUND_KIND): New macro.
3622 (is_dynamic_type): New function prototype.
3623 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3624 to resolve dynamic properties of the type. Update comment.
3625 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3627 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3628 passed to sizeof is dynamic evaluate the argument to compute the length.
3630 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3631 value and retrieve the dynamic type size.
3633 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3634 (ada_template_to_fixed_record_type_1): Likewise.
3635 (ada_to_fixed_type_1): Likewise.
3636 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3637 (cp_print_value): Likewise.
3638 * d-valprint.c (dynamic_array_type): Likewise.
3639 * eval.c (evaluate_subexp_with_coercion): Likewise.
3640 * findvar.c (address_of_variable): Likewise.
3641 * jv-valprint.c (java_value_print): Likewise.
3642 * valops.c (value_ind): Likewise.
3643 * value.c (coerce_ref): Likewise.
3645 * c-typeprint.c (c_type_print_varspec_suffix): Added
3646 check for not yet resolved high bound. If unresolved, print
3647 "variable length" string to the console instead of random
3650 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3651 property and store it as the high bound and flag the range accordingly.
3652 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3653 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3654 * gdbtypes.h (enum range_flags): New enum.
3655 (struct range_bounds): Add flags member.
3657 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3658 points to a constant blob.
3660 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3661 (evaluate_subexp_standard): Pass noside argument.
3662 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3663 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3664 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3665 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3666 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3668 2014-04-11 Keith Seitz <keiths@redhat.com>
3671 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3672 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3677 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3678 (evaluate_subexp_standard): Pass noside argument.
3679 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3680 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3681 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3682 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3683 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3687 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3688 points to a constant blob.
3690 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3692 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3693 property and store it as the high bound and flag the range accordingly.
3694 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3695 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3696 * gdbtypes.h (enum range_flags): New enum.
3697 (struct range_bounds): Add flags member.
3699 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3701 * c-typeprint.c (c_type_print_varspec_suffix): Added
3702 check for not yet resolved high bound. If unresolved, print
3703 "variable length" string to the console instead of random
3706 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3708 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3709 (ada_template_to_fixed_record_type_1): Likewise.
3710 (ada_to_fixed_type_1): Likewise.
3711 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3712 (cp_print_value): Likewise.
3713 * d-valprint.c (dynamic_array_type): Likewise.
3714 * eval.c (evaluate_subexp_with_coercion): Likewise.
3715 * findvar.c (address_of_variable): Likewise.
3716 * jv-valprint.c (java_value_print): Likewise.
3717 * valops.c (value_ind): Likewise.
3718 * value.c (coerce_ref): Likewise.
3720 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3722 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3723 value and retrieve the dynamic type size.
3725 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3727 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3728 passed to sizeof is dynamic evaluate the argument to compute the length.
3730 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3732 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3733 (dwarf2_evaluate_property): New function.
3734 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3735 * dwarf2read.c (attr_to_dynamic_prop): New function.
3736 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3738 * gdbtypes.c: Include dwarf2loc.h.
3739 (is_dynamic_type): New function.
3740 (resolve_dynamic_type): New function.
3741 (resolve_dynamic_bounds): New function.
3742 (get_type_length): New function.
3743 (check_typedef): Use get_type_length to compute type length.
3744 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3745 (TYPE_LOW_BOUND_KIND): New macro.
3746 (is_dynamic_type): New function prototype.
3747 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3748 to resolve dynamic properties of the type. Update comment.
3749 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3751 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3753 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3754 declaring high/low bounds and change uses accordingly. Call
3755 create_range_type instead of create_static_range_type.
3756 * gdbtypes.c (create_range_type): New function.
3757 (create_range_type): Convert bounds into struct bound_prop and pass
3758 them to create_range_type.
3759 * gdbtypes.h (struct bound_prop): New struct.
3760 (create_range_type): New function prototype.
3761 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3762 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3763 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3765 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3767 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3769 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3770 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3771 * ada-lang.c: All uses of create_range_type updated.
3772 * coffread.c: All uses of create_range_type updated.
3773 * dwarf2read.c: All uses of create_range_type updated.
3774 * f-exp.y: All uses of create_range_type updated.
3775 * m2-valprint.c: All uses of create_range_type updated.
3776 * mdebugread.c: All uses of create_range_type updated.
3777 * stabsread.c: All uses of create_range_type updated.
3778 * valops.c: All uses of create_range_type updated.
3779 * valprint.c: All uses of create_range_type updated.
3781 2014-04-10 Pedro Alves <palves@redhat.com>
3783 * breakpoint.c (single_step_breakpoints)
3784 (single_step_gdbarch): Move up in the file.
3785 (one_breakpoint_xfer_memory): New function, factored out from ...
3786 (breakpoint_xfer_memory): ... here. Also process single-step
3789 2014-04-09 Tristan Gingold <gingold@adacore.com>
3791 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3793 (darwin_decode_exception_message): Free port only after use.
3795 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3797 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3798 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3799 when setting the size of call_length.
3801 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3803 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3804 dereference TYPE_CODE_REF values.
3806 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3808 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3809 end of warning message.
3811 2014-04-03 Doug Evans <dje@google.com>
3813 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3814 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3816 2014-04-02 Alan Modra <amodra@gmail.com>
3818 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3819 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3820 (struct symbol_file_add_from_memory_args): Add size field.
3821 (find_vdso_size): New function.
3822 (add_vsyscall_page): Attempt to find vdso size.
3824 2014-04-01 Doug Evans <dje@google.com>
3826 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3828 2014-04-01 Tristan Gingold <gingold@adacore.com>
3830 * darwin-nat.c (darwin_encode_reply): Add prototype.
3831 (darwin_decode_exception_message): Reply to unknown inferiors.
3832 (darwin_decode_message): Handle message by id. Ignore message
3833 to unknown inferior.
3834 (darwin_wait): Discard unknown messages, add debug trace.
3836 2014-03-31 Doug Evans <dje@google.com>
3838 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3841 2014-03-31 Doug Evans <dje@google.com>
3843 New option "set print symbol-loading".
3845 * solib.c (solib_read_symbols): Only print symbol loading messages
3847 (solib_add): If symbol loading is in "brief" mode, notify user
3848 symbols are being loaded.
3849 (reload_shared_libraries_1): Ditto.
3850 * symfile.c (print_symbol_loading_off): New static global.
3851 (print_symbol_loading_brief): New static global.
3852 (print_symbol_loading_full): New static global.
3853 (print_symbol_loading_enums): New static global.
3854 (print_symbol_loading): New static global.
3855 (print_symbol_loading_p): New function.
3856 (symbol_file_add_with_addrs): Only print symbol loading messages
3858 (_initialize_symfile): Register "print symbol-loading" set/show
3860 * symfile.h (print_symbol_loading_p): Declare.
3862 2014-03-30 Doug Evans <xdje42@gmail.com>
3864 * infrun.c (set_last_target_status): New function.
3865 (handle_inferior_event): Call it.
3867 2014-03-30 Doug Evans <xdje42@gmail.com>
3869 * inferior.h (enum stop_kind): Improve comment.
3871 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3873 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3874 a reference, strip the reference layer before calling
3875 the lang_ops value_has_mutated callback.
3877 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3879 Remove some globals from our parser.
3880 * language.c (unk_lang_parser): Add "struct parser_state"
3882 * language.h (struct language_defn) <la_parser>: Likewise.
3883 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3884 (initialize_expout): Add "struct parser_state" argument.
3885 Rewrite function to use the parser state.
3886 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3887 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3888 write_exp_elt_longcst, write_exp_elt_dblcst,
3889 write_exp_elt_decfloatcst, write_exp_elt_type,
3890 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3891 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3892 write_dollar_variable): Likewise.
3893 (parse_exp_in_context_1): Use parser state.
3894 (insert_type_address_space): Add "struct parser_state" argument.
3896 (increase_expout_size): New function.
3897 * parser-defs.h: Forward declare "struct language_defn" and
3898 "struct parser_state".
3899 (expout, expout_size, expout_ptr): Remove extern declarations.
3900 (parse_gdbarch, parse_language): Rewrite macro declarations to
3901 accept the parser state.
3902 (struct parser_state): New struct.
3903 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3904 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3905 write_exp_elt_decfloatcst, write_exp_elt_type,
3906 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3907 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3908 write_exp_msymbol, write_dollar_variable,
3909 mark_struct_expression, insert_type_address_space): Add "struct
3910 parser_state" argument.
3911 (increase_expout_size): New function.
3912 * utils.c (do_clear_parser_state): New function.
3913 (make_cleanup_clear_parser_state): Likewise.
3914 * utils.h (make_cleanup_clear_parser_state): New function
3916 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3917 Update calls to write_exp* in order to pass the parser state.
3918 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3919 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3920 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3921 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3922 * stap-probe.c (stap_parse_register_operand): Likewise.
3923 (stap_parse_single_operand): Likewise.
3924 (stap_parse_argument_1): Likewise.
3925 (stap_parse_argument): Use parser state.
3926 * stap-probe.h: Include "parser-defs.h".
3927 (struct stap_parse_info) <pstate>: New field.
3928 * c-exp.y (parse_type): Rewrite to use parser state.
3929 (yyparse): Redefine to c_parse_internal.
3930 (pstate): New global variable.
3931 (parse_number): Add "struct parser_state" argument.
3932 (write_destructor_name): Likewise.
3933 (type_exp): Update calls to write_exp* and similars in order to
3935 (exp1, exp, variable, qualified_name, space_identifier,
3936 typename, typebase): Likewise.
3937 (write_destructor_name, parse_number, lex_one_token,
3938 classify_name, classify_inner_name, c_parse): Add "struct
3939 parser_state" argument. Update function to use parser state.
3940 * c-lang.h: Forward declare "struct parser_state".
3941 (c_parse): Add "struct parser_state" argument.
3942 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3943 (yyparse): Redefine macro to ada_parse_internal.
3944 (pstate): New variable.
3945 (write_int, write_object_renaming, write_var_or_type,
3946 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3947 type_int, type_long, type_long_long, type_float, type_double,
3948 type_long_double, type_char, type_boolean, type_system_address):
3949 Add "struct parser_state" argument.
3950 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3951 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3952 var_or_type, aggregate, aggregate_component_list,
3953 positional_list, others, component_group,
3954 component_associations): Update calls to write_exp* and similar
3955 functions in order to use parser state.
3956 (ada_parse, write_var_from_sym, write_int,
3957 write_exp_op_with_string, write_object_renaming,
3958 find_primitive_type, write_selectors, write_ambiguous_var,
3959 write_var_or_type, write_name_assoc, type_int, type_long,
3960 type_long_long, type_float, type_double, type_long_double,
3961 type_char, type_boolean, type_system_address): Add "struct
3962 parser_state" argument. Adjust function to use parser state.
3963 * ada-lang.c (parse): Likewise.
3964 * ada-lang.h: Forward declare "struct parser_state".
3965 (ada_parse): Add "struct parser_state" argument.
3966 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3967 calls to both functions.
3968 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3970 (yyparse): Redefine macro to f_parse_internal.
3971 (pstate): New variable.
3972 (parse_number): Add "struct parser_state" argument.
3973 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3974 and similars in order to use parser state.
3975 (parse_number): Adjust code to use parser state.
3977 (f_parse): New function.
3978 * f-lang.h: Forward declare "struct parser_state".
3979 (f_parse): Add "struct parser_state" argument.
3980 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3982 (yyparse): Redefine macro for java_parse_internal.
3983 (pstate): New variable.
3984 (push_expression_name, push_expression_name, insert_exp): Add
3985 "struct parser_state" argument.
3986 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3987 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3988 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3989 PostIncrementExpression, PostDecrementExpression,
3990 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3991 UnaryExpressionNotPlusMinus, CastExpression,
3992 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3993 RelationalExpression, EqualityExpression, AndExpression,
3994 ExclusiveOrExpression, InclusiveOrExpression,
3995 ConditionalAndExpression, ConditionalOrExpression,
3996 ConditionalExpression, Assignment, LeftHandSide): Update
3997 calls to write_exp* and similars in order to use parser state.
3998 (parse_number): Ajust code to use parser state.
4000 (java_parse): New function.
4001 (push_variable): Add "struct parser_state" argument. Adjust
4002 code to user parser state.
4003 (push_fieldnames, push_qualified_expression_name,
4004 push_expression_name, insert_exp): Likewise.
4005 * jv-lang.h: Forward declare "struct parser_state".
4006 (java_parse): Add "struct parser_state" argument.
4007 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4009 (yyparse): Redefine macro to m2_parse_internal.
4010 (pstate): New variable.
4011 (type_exp, exp, fblock, variable, type): Update calls to
4012 write_exp* and similars to use parser state.
4014 (m2_parse): New function.
4015 * m2-lang.h: Forward declare "struct parser_state".
4016 (m2_parse): Add "struct parser_state" argument.
4017 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4018 * objc-lang.h: Forward declare "struct parser_state".
4019 (end_msglist): Add "struct parser_state" argument.
4020 * p-exp.y (parse_type): Rewrite macro to use parser state.
4021 (yyparse): Redefine macro to pascal_parse_internal.
4022 (pstate): New variable.
4023 (parse_number): Add "struct parser_state" argument.
4024 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4025 write_exp* and similars in order to use parser state.
4026 (parse_number, yylex): Adjust code to use parser state.
4027 (pascal_parse): New function.
4028 * p-lang.h: Forward declare "struct parser_state".
4029 (pascal_parse): Add "struct parser_state" argument.
4030 * go-exp.y (parse_type): Rewrite macro to use parser state.
4031 (yyparse): Redefine macro to go_parse_internal.
4032 (pstate): New variable.
4033 (parse_number): Add "struct parser_state" argument.
4034 (type_exp, exp1, exp, variable, type): Update calls to
4035 write_exp* and similars in order to use parser state.
4036 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4037 to use parser state.
4038 (go_parse): Likewise.
4039 * go-lang.h: Forward declare "struct parser_state".
4040 (go_parse): Add "struct parser_state" argument.
4042 2014-03-27 Doug Evans <dje@google.com>
4044 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4046 2014-03-27 Doug Evans <dje@google.com>
4048 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4049 Remove argument abbrev_section. All callers updated.
4051 2014-03-27 Doug Evans <dje@google.com>
4053 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4054 addr_base, ranges_base.
4056 2014-03-26 Keith Seitz <keiths@redhat.com>
4058 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4059 types, not VAR_DOMAIN.
4061 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4063 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4065 * features/nios2-linux.c: Regenerated.
4066 * features/nios2.c: Regenerated.
4068 2014-03-25 Pedro Alves <palves@redhat.com>
4070 * cli/cli-script.c (script_from_file): Force the interpreter to
4073 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4075 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4076 small stack allocation.
4078 2014-03-24 Tristan Gingold <gingold@adacore.com>
4080 * darwin-nat.c (exc_server): Remove unused prototype.
4081 (darwin_dump_message): Correctly display data on x86_64.
4082 (darwin_encode_reply): Fix style.
4083 Add comments and fix indentation.
4085 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4087 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4089 2014-03-22 Doug Evans <xdje42@gmail.com>
4091 * infcmd.c: Whitespace fixes.
4092 (interrupt_command): Merge two function comments into one.
4094 2014-03-22 Doug Evans <xdje42@gmail.com>
4096 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4099 2014-03-22 Yao Qi <yao@codesourcery.com>
4101 * remote.c (target_read_live_memory): Remove.
4102 (memory_xfer_live_readonly_partial): Rename it to
4103 remote_xfer_live_readonly_partial. Remove argument 'object'.
4104 All callers updated. Call remote_read_bytes_1
4105 instead of target_read_live_memory.
4106 * tracepoint.c (set_traceframe_number): Remove.
4107 (make_cleanup_restore_traceframe_number): Likewise .
4108 * tracepoint.h (set_traceframe_number): Remove declaration.
4109 (make_cleanup_restore_traceframe_number): Likewise.
4111 2014-03-22 Yao Qi <yao@codesourcery.com>
4113 * remote.c (remote_read_bytes): Move code on reading from the
4115 (remote_read_bytes_1): ... here. New function.
4117 2014-03-22 Yao Qi <yao@codesourcery.com>
4119 * ctf.c (ctf_xfer_partial): Check the return value of
4120 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4121 return TARGET_XFER_UNAVAILABLE.
4122 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4123 * target.c (target_read_live_memory): Move it to remote.c.
4124 (memory_xfer_live_readonly_partial): Likewise.
4125 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4126 * remote.c (target_read_live_memory): Moved from target.c.
4127 (memory_xfer_live_readonly_partial): Likewise.
4128 (remote_read_bytes): Factored out from
4129 memory_xfer_partial_1.
4131 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4133 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4136 2014-03-21 Pedro Alves <palves@redhat.com>
4138 * infrun.c (normal_stop): Extend comment.
4140 2014-03-21 Hui Zhu <hui@codesourcery.com>
4141 Pedro Alves <palves@redhat.com>
4143 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4145 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4146 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4147 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4149 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4151 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4152 `z' formatted output modifier.
4154 2014-03-20 Tom Tromey <tromey@redhat.com>
4155 Sergio Durigan Junior <sergiodj@redhat.com>
4157 * probe.c (parse_probes): Turn assert into an ordinary error.
4158 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4159 exceptions when parsing probes. Rearrange the code for clarity.
4161 2014-03-20 Tom Tromey <tromey@redhat.com>
4164 * top.c (execute_command): Only dispatch events if the command
4167 2014-03-20 Tom Tromey <tromey@redhat.com>
4170 * infcall.c: Include event-top.h.
4171 (run_inferior_call): Call async_disable_stdin if needed.
4173 2014-03-20 Pedro Alves <palves@redhat.com>
4175 * infrun.c (prepare_to_proceed): Delete.
4176 (thread_still_needs_step_over): New function.
4177 (find_thread_needs_step_over): New function.
4178 (proceed): If the current thread needs a step-over, set its
4179 steping_over_breakpoint flag. Adjust to use
4180 find_thread_needs_step_over instead of prepare_to_proceed.
4181 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4182 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4184 (switch_back_to_stepped_thread): Step over breakpoints of all
4185 threads not the stepping thread, before switching back to the
4188 2014-03-20 Pedro Alves <palves@redhat.com>
4190 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4192 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4193 * infrun.c (saved_singlestep_ptid)
4194 (stepping_past_singlestep_breakpoint): Delete.
4195 (resume): Remove stepping_past_singlestep_breakpoint handling.
4196 (proceed): Store the prev_pc of the stepping thread too.
4197 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4199 (enum infwait_states): Delete infwait_thread_hop_state.
4200 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4202 (handle_inferior_event): Adjust.
4203 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4204 handling and the thread-hop code. Before removing single-step
4205 breakpoints, check whether the thread hit a single-step breakpoint
4206 of another thread. If it did, the trap is not a random signal.
4207 (switch_back_to_stepped_thread): If the event thread hit a
4208 single-step breakpoint, unblock it before switching to the
4209 stepping thread. Handle the case of the stepped thread having
4211 (keep_going): Handle the case of the current thread moving past a
4212 single-step breakpoint.
4214 2014-03-20 Pedro Alves <palves@redhat.com>
4217 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4218 are being stepped over.
4219 (breakpoint_address_match): Make extern.
4220 * breakpoint.h (breakpoint_address_match): New declaration.
4221 * inferior.h (stepping_past_instruction_at): New declaration.
4222 * infrun.c (struct step_over_info): New type.
4223 (step_over_info): New global.
4224 (set_step_over_info, clear_step_over_info)
4225 (stepping_past_instruction_at): New functions.
4226 (handle_inferior_event): Clear the step-over info when
4227 trap_expected is cleared.
4228 (resume): Remove now stale comment.
4229 (clear_proceed_status): Clear step-over info.
4230 (proceed): Adjust step-over handling to set or clear the step-over
4231 info instead of removing all breakpoints.
4232 (handle_signal_stop): When setting up a thread-hop, don't remove
4234 (stop_stepping): Clear step-over info.
4235 (keep_going): Adjust step-over handling to set or clear step-over
4236 info and then always inserting breakpoints, instead of removing
4237 all breakpoints when stepping over one.
4239 2014-03-20 Pedro Alves <palves@redhat.com>
4241 * infrun.c (previous_inferior_ptid): Adjust comment.
4242 (deferred_step_ptid): Delete.
4243 (infrun_thread_ptid_changed, prepare_to_proceed)
4244 (init_wait_for_inferior): Adjust.
4245 (handle_signal_stop): Delete deferred_step_ptid handling.
4247 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4250 * defs.h (sync_quit_force_run): New declaration.
4251 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4252 * event-top.c (async_sigterm_handler): New declaration.
4253 (async_sigterm_token): New variable.
4254 (async_init_signals): Create also async_sigterm_token.
4255 (async_sigterm_handler): New function.
4256 (sync_quit_force_run): New variable.
4257 (handle_sigterm): Replace quit_force call by other calls.
4258 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4260 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4262 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4263 offset into SPE pseudo registers.
4265 2014-03-18 Pedro Alves <palves@redhat.com>
4268 * inferior.h (print_stop_event): Declare.
4269 * infrun.c (print_stop_event): New, factored out from ...
4270 (normal_stop): ... this.
4271 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4272 of bpstat_print/print_stack_frame.
4274 2014-03-17 Tom Tromey <tromey@redhat.com>
4276 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4278 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4280 * ada-lang.c (decode_constrained_packed_array): Perform a
4281 minimal coercion for reference with coerce_ref instead of
4284 2014-03-17 Tristan Gingold <gingold@adacore.com>
4286 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4287 (darwin_solib_create_inferior_hook): Emit a warning if version
4290 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4292 * python/py-value.c (get_field_flag): Cast flag_name argument to
4293 PyObject_GetAttrString to support Python 2.4.
4295 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4297 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4298 (Global Maintainers): Remove Jan Kratochvil.
4300 2014-03-14 Pedro Alves <palves@redhat.com>
4302 * inferior.h (terminal_ours_for_output): Rename to ...
4303 (child_terminal_ours_for_output): ... this.
4304 (terminal_save_ours): Rename to ...
4305 (child_terminal_save_ours): ... this.
4306 (terminal_ours): Rename to ...
4307 (child_terminal_ours): ... this.
4308 (terminal_inferior): Rename to ...
4309 (child_terminal_inferior): ... this.
4310 (terminal_init_inferior): Rename to ...
4311 (child_terminal_init_inferior): ... this.
4312 (terminal_init_inferior_with_pgrp): Rename to ...
4313 (child_terminal_init_inferior_with_pgrp): ... this.
4314 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4315 (child_terminal_init_with_pgrp): ... this.
4316 (terminal_save_ours): Rename to ...
4317 (child_terminal_save_ours): ... this.
4318 (terminal_init_inferior): Rename to ...
4319 (child_terminal_init): ... this. Adjust.
4320 (terminal_inferior): Rename to ...
4321 (child_terminal_inferior): ... this.
4322 (terminal_ours_for_output): Rename to ...
4323 (child_terminal_ours_for_output): ... this. Adjust.
4324 (terminal_ours): Rename to ...
4325 (child_terminal_ours): ... this.
4326 (terminal_ours_1): Rename to ...
4327 (child_terminal_ours_1): ... this. Adjust.
4328 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4329 * windows-nat.c (do_initial_windows_stuff): Adjust.
4330 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4331 (gnu_terminal_init): ... this. Adjust.
4332 (gnu_target): Adjust.
4333 * inf-child.c (inf_child_target): Adjust.
4335 2014-03-13 Doug Evans <xdje42@gmail.com>
4338 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4341 2014-03-13 Doug Evans <xdje42@gmail.com>
4343 * value.c (record_latest_value): Call release_value_or_incref
4344 instead of release_value.
4346 2014-03-13 Pedro Alves <palves@redhat.com>
4348 * procfs.c (procfs_target): Don't override to_shortname,
4349 to_longname or to_doc.
4351 2014-03-13 Pedro Alves <palves@redhat.com>
4353 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4354 Unix in user visible strings.
4356 2014-03-12 Stan Shebs <stan@codesourcery.com>
4358 * gdbtypes.h: Annotate comments for Doxygen, add a page
4359 block comment with some general info.
4361 2014-03-12 Pedro Alves <palves@redhat.com>
4363 * infcmd.c (prepare_execution_command): New function, factored out
4364 from several execution commands.
4365 (run_command_1, continue_command, step_1, jump_command)
4366 (signal_command, until_command, advance_command, finish_command)
4367 (attach_command): Use prepare_execution_command.
4369 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4371 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4374 (struct arm_linux_thread_points): Removed.
4375 (struct arm_linux_process_info): New.
4376 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4377 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4378 (arm_linux_find_breakpoints_by_tid): Removed.
4379 (struct arch_lwp_info): New.
4380 (arm_linux_find_process_pid): New functions.
4381 (arm_linux_add_process): New functions.
4382 (arm_linux_process_info_get): New functions.
4383 (arm_linux_forget_process): New function.
4384 (arm_linux_get_debug_reg_state): New function.
4385 (struct update_registers_data): New.
4386 (update_registers_callback): New function.
4387 (arm_linux_insert_hw_breakpoint1): Updated.
4388 (arm_linux_remove_hw_breakpoint1): Updated.
4389 (arm_linux_insert_hw_breakpoint): Updated.
4390 (arm_linux_remove_hw_breakpoint): Updated.
4391 (arm_linux_insert_watchpoint): Updated.
4392 (arm_linux_remove_watchpoint): Updated.
4393 (arm_linux_new_thread): Updated.
4394 (arm_linux_prepare_to_resume): New function.
4395 (arm_linux_new_fork): New function.
4396 (_initialize_arm_linux_nat): Updated.
4398 2014-03-12 Pedro Alves <palves@redhat.com>
4400 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4402 2014-03-12 Tom Tromey <tromey@redhat.com>
4404 * inf-child.c (return_zero): New function.
4405 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4406 * aix-thread.c (aix_thread_inferior_created): New function.
4407 (aix_thread_attach): Remove.
4408 (init_aix_thread_ops): Don't set to_attach.
4409 (_initialize_aix_thread): Register inferior_created observer.
4410 * corelow.c (init_core_ops): Don't set to_attach or
4412 * exec.c (init_exec_ops): Don't set to_attach or
4414 * infcmd.c (run_command_1): Use find_run_target. Make direct
4416 (attach_command): Use find_attach_target. Make direct target
4418 * record-btrace.c (init_record_btrace_ops): Don't set
4420 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4422 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4423 set to_create_inferior.
4424 * target.c (complete_target_initialization): Add assertion.
4425 (target_create_inferior): Remove.
4426 (find_default_attach, find_default_create_inferior): Remove.
4427 (find_attach_target, find_run_target): New functions.
4428 (find_default_is_async_p, find_default_can_async_p)
4429 (target_supports_non_stop, target_attach): Remove.
4430 (init_dummy_target): Don't set to_create_inferior or
4431 to_supports_non_stop.
4432 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4433 TARGET_DEFAULT_FUNC.
4434 <to_create_inferior>: Add comment.
4435 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4436 TARGET_DEFAULT_RETURN.
4437 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4438 (find_attach_target, find_run_target): Declare.
4439 (target_create_inferior): Remove.
4440 (target_has_execution_1): Update comment.
4441 (target_supports_non_stop): Remove.
4442 * target-delegates.c: Rebuild.
4444 2014-03-12 Pedro Alves <palves@redhat.com>
4446 * inf-child.h: Update comment to not mention Unix.
4448 2014-03-12 Pedro Alves <palves@redhat.com>
4450 * inf-child.c: Update top comment to not mention Unix. Add
4451 generic comment describing how this target is meant to be used.
4452 (inf_child_post_attach, inf_child_post_startup_inferior)
4453 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4456 2014-03-12 Pedro Alves <palves@redhat.com>
4458 * nto-procfs.c: Include inf-child.h.
4459 (procfs_ops): Delete global.
4460 (procfs_can_run): Delete method.
4461 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4462 target pointer instead of referencing procfs_ops.
4463 (procfs_prepare_to_store): Delete.
4464 (init_procfs_ops): Delete function.
4465 (procfs_target): New function, based on init_procfs_ops, but
4466 inherit inf_child_target.
4467 (_initialize_procfs): Use procfs_target.
4469 2014-03-12 Pedro Alves <palves@redhat.com>
4471 * windows-nat.c: Include inf-child.h.
4472 (windows_ops): Delete global.
4473 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4475 (init_windows_ops): Delete function.
4476 (windows_target): New function, based on init_windows_ops, but
4477 inherit inf_child_target.
4478 (_initialize_windows_nat): Use windows_target. Install x86
4479 specific target methods here.
4481 2014-03-10 Doug Evans <xdje42@gmail.com>
4483 * guile/guile.c (call_initialize_gdb_module): New function.
4484 (initialize_guile): Replace call to scm_init_guile with call to
4487 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4489 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4490 in call to TYPE_CODE macro.
4492 2014-03-10 Jerome Guitton <guitton@adacore.com>
4494 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4495 Resolve tagged types to full view.
4497 2014-03-10 Hui Zhu <hui@codesourcery.com>
4499 * target.h (target_insert_breakpoint): Remove "hardware" from its
4502 2014-03-07 Doug Evans <dje@google.com>
4504 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4506 2014-03-07 Doug Evans <dje@google.com>
4508 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4509 Remove unused local comp_dir_attr. Assert exactly one of
4510 stub_comp_unit_die, stub_comp_dir is non-NULL.
4512 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4514 * target.h (complete_target_initialization, add_target):
4517 2014-03-07 Pedro Alves <palves@redhat.com>
4519 * go32-nat.c: Include inf-child.h.
4520 (go32_ops): Delete global.
4521 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4523 (go32_create_inferior): Push the passed in target pointer instead
4524 of referencing go32_ops.
4525 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4526 (go32_target): New function, based on init_go32_ops, but inherit
4528 (_initialize_go32_nat): Use go32_target. Move parts of
4531 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4533 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4534 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4535 SYMBOL_VALUE_ADDRESS.
4536 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4538 2014-03-06 Yao Qi <yao@codesourcery.com>
4540 * breakpoint.c (get_tracepoint_by_number): Remove argument
4541 optional_p. All callers updated. Adjust comments. Update
4543 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4545 2014-03-06 Yao Qi <yao@codesourcery.com>
4547 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4548 early if get_number returns zero. Use 'p' instead of 'args'.
4550 2014-03-06 Yao Qi <yao@codesourcery.com>
4552 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4555 2014-03-06 Yao Qi <yao@codesourcery.com>
4557 PR breakpoints/16508
4558 * tracepoint.c (check_trace_running): New function.
4559 (trace_find_command): Move code to check_trace_running and
4560 call check_trace_running.
4561 (trace_find_pc_command): Likewise.
4562 (trace_find_tracepoint_command): Likewise.
4563 (trace_find_line_command): Likewise.
4564 (trace_find_range_command): Likewise.
4565 * tracepoint.h (check_trace_running): Likewise.
4566 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4568 2014-03-06 Yao Qi <yao@codesourcery.com>
4570 * target.h (struct target_ops) <to_traceframe_info>: Use
4571 TARGET_DEFAULT_NORETURN (tcomplain ()).
4572 * target-delegates.c: Regenerated.
4574 2014-03-05 Pedro Alves <palves@redhat.com>
4577 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4578 void. Update comment.
4579 (dcache_xfer_memory): Delete.
4580 (dcache_read_memory_partial): New, based on the read bits of
4582 (dcache_update): Add status parameter. Use ULONGEST for len, and
4583 adjust. Discard cache lines if the reason for the update was
4585 * dcache.h (dcache_xfer_memory): Delete declaration.
4586 (dcache_read_memory_partial): New declaration.
4587 (dcache_update): Update prototype.
4588 * target.c (raw_memory_xfer_partial): Update the dcache here.
4589 (memory_xfer_partial_1): Don't handle dcache writes here.
4591 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4593 * remote-sim.c (gdbsim_load): Add const to prog.
4595 2014-03-03 Tom Tromey <tromey@redhat.com>
4597 * elfread.c (probe_key): Change to bfd_data.
4598 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4599 now per-BFD, not per-objfile.
4600 * stap-probe.c (stap_probe_destroy): Update comment.
4601 (handle_stap_probe): Allocate on the per-BFD obstack.
4603 2014-03-03 Tom Tromey <tromey@redhat.com>
4605 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4606 * breakpoint.c (create_longjmp_master_breakpoint): Use
4608 (add_location_to_breakpoint, bkpt_probe_insert_location)
4609 (bkpt_probe_remove_location): Update.
4610 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4611 * elfread.c (elf_symfile_relocate_probe): Remove.
4612 (elf_probe_fns): Update.
4613 (insert_exception_resume_breakpoint): Change type of "probe"
4614 parameter to bound_probe.
4615 (check_exception_resume): Update.
4616 * objfiles.c (objfile_relocate1): Don't relocate probes.
4617 * probe.c (bound_probe_s): New typedef.
4618 (parse_probes): Use get_probe_address. Set sal's objfile.
4619 (find_probe_by_pc): Return a bound_probe.
4620 (collect_probes): Return a VEC(bound_probe_s).
4621 (compare_probes): Update.
4622 (gen_ui_out_table_header_info): Change type of "probes"
4624 (info_probes_for_ops): Update.
4625 (get_probe_address): New function.
4626 (probe_safe_evaluate_at_pc): Update.
4627 * probe.h (struct probe_ops) <get_probe_address>: New field.
4628 <set_semaphore, clear_semaphore>: Add objfile parameter.
4629 (struct probe) <objfile>: Remove field.
4631 <address>: Update comment.
4632 (struct bound_probe): New.
4633 (find_probe_by_pc): Return a bound_probe.
4634 (get_probe_address): Declare.
4635 * solib-svr4.c (struct probe_and_action) <address>: New field.
4636 (hash_probe_and_action, equal_probe_and_action): Update.
4637 (register_solib_event_probe): Add address parameter.
4638 (solib_event_probe_at): Update.
4639 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4641 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4642 (stap_get_probe_address): New function.
4643 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4644 (compile_probe_arg): Update.
4645 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4647 (handle_stap_probe): Don't relocate the probe.
4648 (stap_relocate): Remove.
4649 (stap_gen_info_probes_table_values): Update.
4650 (stap_probe_ops): Remove stap_relocate.
4651 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4652 (debug_sym_probe_fns): Update.
4653 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4654 * symtab.c (init_sal): Use memset.
4655 * symtab.h (struct symtab_and_line) <objfile>: New field.
4656 * tracepoint.c (start_tracing, stop_tracing): Update.
4658 2014-03-03 Tom Tromey <tromey@redhat.com>
4660 * probe.h (parse_probes, find_probe_by_pc)
4661 (find_probes_in_objfile): Fix comments.
4663 2014-03-02 Doug Evans <xdje42@gmail.com>
4665 * infrun.c (handle_signal_stop): Replace test for
4666 TARGET_WAITKIND_STOPPED with an assert.
4668 2014-03-02 Doug Evans <xdje42@gmail.com>
4670 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4672 2014-03-02 Doug Evans <xdje42@gmail.com>
4674 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4676 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4678 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4680 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4682 * i386obsd-nat.c: Include "obsd-nat.h".
4683 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4685 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4687 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4689 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4691 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4693 * mips64obsd-nat.c: Include "obsd-nath".
4694 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4696 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4698 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4700 * amd64obsd-nat.c: Include "obsd-nat,h.
4701 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4703 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4705 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4707 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4708 (find_overload_match): Update call to find_oload_champ.
4709 (find_oload_champ_namespace_loop): Likewise
4711 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4713 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4715 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4716 * config/sparc/obsd64.mh: New file.
4717 * sparc64obsd-nat.c: New file.
4719 * obsd-nat.h: New file.
4720 * obsd-nat.c: New file.
4721 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4722 (ALLDEPFILES): Add obsd-nat.c.
4724 2014-02-28 Tom Tromey <tromey@redhat.com>
4726 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4727 * cli-out.h (cli_ui_out_impl): Now const.
4728 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4729 * ui-out.c (struct ui_out) <impl>: Now const.
4730 (default_ui_out_impl): Now const.
4731 (ui_out_new): Make 'impl' parameter const.
4732 * ui-out.h (ui_out_new): Update.
4734 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4736 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4738 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4740 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4742 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4744 Additional PR 8882 fix.
4745 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4747 2014-02-27 Pedro Alves <palves@redhat.com>
4749 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4752 2014-02-27 Pedro Alves <palves@redhat.com>
4755 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4756 * nat/linux-waitpid.c: Include string.h.
4757 (status_to_str): Moved here and made extern.
4758 * nat/linux-waitpid.h (status_to_str): New declaration.
4760 2014-02-27 Hui Zhu <hui@codesourcery.com>
4763 * infrun.c (ptid_match): Move ...
4764 * common/ptid.c (ptid_match): ... here.
4765 * inferior.h (ptid_match): Move ...
4766 * common/ptid.h (ptid_match): ... here.
4768 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4770 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4771 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4774 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4776 * obsd-tdep.c (obsd_auxv_parse): New function.
4777 (obsd_init_abi): Set auxv_parse.
4779 * gdbarch.sh (auxv_parse): New.
4780 * gdbarch.h: Regenerated.
4781 * gdbarch.c: Regenerated.
4782 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4784 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4786 * guile/scm-value.c (gdbscm_history_append_x): New function.
4787 (value_functions): Add it.
4789 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4791 * dwarf2read.c (attr_value_as_address): New function.
4792 (dwarf2_find_base_address, read_call_site_scope): Use
4793 attr_value_as_address in place of DW_ADDR.
4794 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4795 the low and high addresses. Slight rework of the handling
4796 of the high pc being a constant form, and limit it to
4797 DWARF verson 4 or higher.
4798 (dwarf2_record_block_ranges): Likewise.
4799 (read_partial_die): Likewise.
4800 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4802 2014-02-26 Tom Tromey <tromey@redhat.com>
4804 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4806 2014-02-26 Tom Tromey <tromey@redhat.com>
4808 * elfread.c (elf_read_minimal_symbols): Return early if
4809 minimal symbols have already been read. Add "ei" parameter.
4810 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4811 * minsyms.c (prim_record_minimal_symbol_full): Update.
4812 * objfiles.h (struct objstats) <n_minsyms>: Move...
4813 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4814 * symmisc.c (print_objfile_statistics): Update.
4816 2014-02-26 Tom Tromey <tromey@redhat.com>
4818 * elfread.c (elf_read_minimal_symbols): New function, from
4820 (elf_symfile_read): Call it.
4822 2014-02-26 Tom Tromey <tromey@redhat.com>
4824 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4825 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4826 (lookup_minimal_symbol_solib_trampoline)
4827 (lookup_minimal_symbol_by_pc_section_1)
4828 (lookup_minimal_symbol_and_objfile): Update.
4829 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4830 Don't allocate a minimal symbol if minsyms have already been read.
4831 (build_minimal_symbol_hash_tables): Update.
4832 (install_minimal_symbols): Do nothing if minsyms already read.
4833 Use the per-BFD obstack.
4834 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4835 * objfiles.c (allocate_objfile): Call
4836 terminate_minimal_symbol_table later.
4837 (have_minimal_symbols): Update.
4838 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4839 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4840 Move from struct objfile.
4841 <minsyms_read>: New field.
4842 (struct objfile) <msymbols, minimal_symbol_count,
4843 msymbol_hash, msymbol_demangled_hash>: Move.
4844 (ALL_OBJFILE_MSYMBOLS): Update.
4845 * symfile.c (read_symbols): Set minsyms_read.
4846 (reread_symbols): Update.
4847 * symmisc.c (dump_objfile, dump_msymbols): Update.
4849 2014-02-26 Tom Tromey <tromey@redhat.com>
4851 * minsyms.c (msymbols_sort): Remove.
4852 * minsyms.h (msymbols_sort): Remove.
4853 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4854 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4855 * elfread.c (elf_symtab_read): Don't add section offsets.
4856 * xcoffread.c (record_minimal_symbol): Don't add section offset
4857 to minimal symbol address.
4858 * somread.c (text_offset, data_offset): Remove.
4859 (som_symtab_read): Don't add section offsets to minimal symbol
4861 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4862 Don't add section offsets to minimal symbols.
4863 * coffread.c (coff_symtab_read): Don't add section offsets
4864 to minimal symbol addresses.
4865 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4866 to minimal symbol addresses.
4867 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4868 section offset to minimal symbol addresses.
4869 * mdebugread.c (parse_partial_symbols): Don't add section
4870 offset to minimal symbol addresses.
4871 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4872 offset to minimal symbol addresses.
4874 2014-02-26 Tom Tromey <tromey@redhat.com>
4876 * ada-lang.c (ada_main_name): Update.
4877 (ada_add_standard_exceptions): Update.
4878 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4879 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4880 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4881 * auxv.c (ld_so_xfer_auxv): Update.
4882 * avr-tdep.c (avr_scan_prologue): Update.
4883 * ax-gdb.c (gen_var_ref): Update.
4884 * blockframe.c (get_pc_function_start)
4885 (find_pc_partial_function_gnu_ifunc): Update.
4886 * breakpoint.c (create_overlay_event_breakpoint)
4887 (create_longjmp_master_breakpoint)
4888 (create_std_terminate_master_breakpoint)
4889 (create_exception_master_breakpoint): Update.
4890 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4891 * c-valprint.c (c_val_print): Update.
4892 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4893 * common/agent.c (agent_look_up_symbols): Update.
4894 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4895 * dwarf2loc.c (call_site_to_target_addr): Update.
4896 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4897 * elfread.c (elf_gnu_ifunc_record_cache)
4898 (elf_gnu_ifunc_resolve_by_got): Update.
4899 * findvar.c (default_read_var_value): Update.
4900 * frame.c (inside_main_func): Update.
4901 * frv-tdep.c (frv_frame_this_id): Update.
4902 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4903 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4905 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4906 (hppa_hpux_find_dummy_bpaddr): Update.
4907 * hppa-tdep.c (hppa_symbol_address): Update.
4908 * infcmd.c (until_next_command): Update.
4909 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4911 * linespec.c (minsym_found, add_minsym): Update.
4912 * linux-nat.c (get_signo): Update.
4913 * linux-thread-db.c (inferior_has_bug): Update.
4914 * m32c-tdep.c (m32c_return_value)
4915 (m32c_m16c_address_to_pointer): Update.
4916 * m32r-tdep.c (m32r_frame_this_id): Update.
4917 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4918 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4919 * maint.c (maintenance_translate_address): Update.
4920 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4921 (frob_address): New function.
4922 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4923 frob_address. Rename parameter to "pc_in".
4924 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4926 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4928 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4929 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4930 * objc-lang.c (find_objc_msgsend): Update.
4931 * objfiles.c (objfile_relocate1): Update.
4932 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4933 * p-valprint.c (pascal_val_print): Update.
4934 * parse.c (write_exp_msymbol): Update.
4935 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4936 (ppc_elfv2_skip_entrypoint): Update.
4937 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4938 * printcmd.c (build_address_symbolic, msym_info)
4939 (address_info): Update.
4940 * proc-service.c (ps_pglobal_lookup): Update.
4941 * psymtab.c (find_pc_sect_psymtab_closer)
4942 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4943 Change msymbol parameter to bound_minimal_symbol.
4944 * ravenscar-thread.c (get_running_thread_id): Update.
4945 * remote.c (remote_check_symbols): Update.
4946 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4948 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4949 * solib-dsbt.c (lm_base): Update.
4950 * solib-frv.c (lm_base, main_got): Update.
4951 * solib-irix.c (locate_base): Update.
4952 * solib-som.c (som_solib_create_inferior_hook)
4953 (link_map_start): Update.
4954 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4955 * solib-svr4.c (elf_locate_base, enable_break): Update.
4956 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4957 (flush_ea_cache): Update.
4958 * stabsread.c (define_symbol, scan_file_globals): Update.
4959 * stack.c (find_frame_funname): Update.
4960 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4961 (debug_qf_find_pc_sect_symtab): Update.
4962 * symfile.c (simple_read_overlay_table)
4963 (simple_overlay_update): Update.
4964 * symfile.h (struct quick_symbol_functions)
4965 <find_pc_sect_symtab>: Change type of msymbol to
4966 bound_minimal_symbol.
4967 * symmisc.c (dump_msymbols): Update.
4968 * symtab.c (find_pc_sect_symtab_via_partial)
4969 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4970 (search_symbols, print_msymbol_info): Update.
4971 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4972 (MSYMBOL_VALUE_ADDRESS): Redefine.
4973 (BMSYMBOL_VALUE_ADDRESS): New macro.
4974 * tracepoint.c (scope_info): Update.
4975 * tui/tui-disasm.c (tui_find_disassembly_address)
4976 (tui_get_begin_asm_address): Update.
4977 * valops.c (find_function_in_inferior): Update.
4978 * value.c (value_static_field, value_fn_field): Update.
4980 2014-02-26 Tom Tromey <tromey@redhat.com>
4982 * ada-lang.c (ada_update_initial_language): Update.
4983 (ada_main_name, ada_has_this_exception_support): Update.
4984 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4985 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4986 * arm-tdep.c (arm_skip_stub): Update.
4987 * auxv.c (ld_so_xfer_auxv): Update.
4988 * avr-tdep.c (avr_scan_prologue): Update.
4989 * ax-gdb.c (gen_var_ref): Update.
4990 * breakpoint.c (struct breakpoint_objfile_data)
4991 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4992 type to bound_minimal_symbol.
4993 (create_overlay_event_breakpoint)
4994 (create_longjmp_master_breakpoint)
4995 (create_std_terminate_master_breakpoint)
4996 (create_exception_master_breakpoint): Update.
4997 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4998 * c-exp.y (classify_name): Update.
4999 * coffread.c (coff_symfile_read): Update.
5000 * common/agent.c (agent_look_up_symbols): Update.
5001 * d-lang.c (d_main_name): Update.
5002 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5003 * dec-thread.c (enable_dec_thread): Update.
5004 * dwarf2loc.c (call_site_to_target_addr): Update.
5005 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5006 * eval.c (evaluate_subexp_standard): Update.
5007 * findvar.c (struct minsym_lookup_data) <result>: Change type
5008 to bound_minimal_symbol.
5010 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5011 * frame.c (inside_main_func): Update.
5012 * frv-tdep.c (frv_frame_this_id): Update.
5013 * gcore.c (call_target_sbrk): Update.
5014 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5015 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5017 * go-lang.c (go_main_name): Update.
5018 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5019 (hppa_hpux_find_import_stub_for_addr): Update.
5020 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5021 Update. Change return type.
5022 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5024 * jit.c (jit_breakpoint_re_set_internal): Update.
5025 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5027 * linux-nat.c (get_signo): Update.
5028 * linux-thread-db.c (inferior_has_bug): Update
5029 * m32c-tdep.c (m32c_return_value)
5030 (m32c_m16c_address_to_pointer): Update.
5031 * m32r-tdep.c (m32r_frame_this_id): Update.
5032 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5033 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5034 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5035 lookup_minimal_symbol. Change return type.
5036 (lookup_minimal_symbol): Remove.
5037 (lookup_bound_minimal_symbol): Update.
5038 (lookup_minimal_symbol_text): Change return type.
5039 (lookup_minimal_symbol_solib_trampoline): Change return type.
5040 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5041 (lookup_minimal_symbol_solib_trampoline): Change return type.
5042 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5043 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5044 (value_nsstring, find_imps): Update.
5045 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5046 * p-lang.c (pascal_main_name): Update.
5047 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5048 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5049 * proc-service.c (ps_pglobal_lookup): Update.
5050 * ravenscar-thread.c (get_running_thread_msymbol): Change
5052 (has_ravenscar_runtime, get_running_thread_id): Update.
5053 * remote.c (remote_check_symbols): Update.
5054 * sol-thread.c (ps_pglobal_lookup): Update.
5055 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5056 * solib-dsbt.c (lm_base): Update.
5057 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5059 * solib-irix.c (locate_base): Update.
5060 * solib-som.c (som_solib_create_inferior_hook)
5061 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5063 * solib-spu.c (spu_enable_break): Update.
5064 * solib-svr4.c (elf_locate_base, enable_break): Update.
5065 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5066 (flush_ea_cache): Update.
5067 * stabsread.c (define_symbol): Update.
5068 * symfile.c (simple_read_overlay_table): Update.
5069 * symtab.c (find_pc_sect_line): Update.
5070 * tracepoint.c (scope_info): Update.
5071 * tui-disasm.c (tui_get_begin_asm_address): Update.
5072 * value.c (value_static_field): Update.
5074 2014-02-26 Tom Tromey <tromey@redhat.com>
5076 * minsyms.c (prim_record_minimal_symbol_full): Use
5077 SET_MSYMBOL_VALUE_ADDRESS.
5078 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5079 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5080 SET_MSYMBOL_VALUE_ADDRESS.
5081 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5082 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5084 2014-02-26 Tom Tromey <tromey@redhat.com>
5086 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5087 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5088 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5089 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5090 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5091 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5092 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5093 * ada-lang.c (ada_main_name): Update.
5094 (ada_lookup_simple_minsym): Update.
5095 (ada_make_symbol_completion_list): Update.
5096 (ada_add_standard_exceptions): Update.
5097 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5098 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5099 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5100 * arm-tdep.c (skip_prologue_function): Update.
5101 (arm_skip_stack_protector, arm_skip_stub): Update.
5102 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5103 (arm_wince_skip_main_prologue): Update.
5104 * auxv.c (ld_so_xfer_auxv): Update.
5105 * avr-tdep.c (avr_scan_prologue): Update.
5106 * ax-gdb.c (gen_var_ref): Update.
5107 * block.c (call_site_for_pc): Update.
5108 * blockframe.c (get_pc_function_start): Update.
5109 (find_pc_partial_function_gnu_ifunc): Update.
5110 * breakpoint.c (create_overlay_event_breakpoint): Update.
5111 (create_longjmp_master_breakpoint): Update.
5112 (create_std_terminate_master_breakpoint): Update.
5113 (create_exception_master_breakpoint): Update.
5114 (resolve_sal_pc): Update.
5115 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5116 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5118 * c-valprint.c (c_val_print): Update.
5119 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5120 * coffread.c (coff_symfile_read): Update.
5121 * common/agent.c (agent_look_up_symbols): Update.
5122 * dbxread.c (find_stab_function_addr): Update.
5123 (end_psymtab): Update.
5124 * dwarf2loc.c (call_site_to_target_addr): Update.
5125 (func_verify_no_selftailcall): Update.
5126 (tailcall_dump): Update.
5127 (call_site_find_chain_1): Update.
5128 (dwarf_expr_reg_to_entry_parameter): Update.
5129 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5130 (elf_gnu_ifunc_resolve_by_got): Update.
5131 * f-valprint.c (info_common_command): Update.
5132 * findvar.c (read_var_value): Update.
5133 * frame.c (get_prev_frame_1): Update.
5134 (inside_main_func): Update.
5135 * frv-tdep.c (frv_skip_main_prologue): Update.
5136 (frv_frame_this_id): Update.
5137 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5138 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5139 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5140 (gnuv3_skip_trampoline): Update.
5141 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5142 (hppa64_hpux_in_solib_call_trampoline): Update.
5143 (hppa_hpux_skip_trampoline_code): Update.
5144 (hppa64_hpux_search_dummy_call_sequence): Update.
5145 (hppa_hpux_find_import_stub_for_addr): Update.
5146 (hppa_hpux_find_dummy_bpaddr): Update.
5147 * hppa-tdep.c (hppa_symbol_address)
5148 (hppa_lookup_stub_minimal_symbol): Update.
5149 * i386-tdep.c (i386_skip_main_prologue): Update.
5150 (i386_pe_skip_trampoline_code): Update.
5151 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5152 * infcall.c (get_function_name): Update.
5153 * infcmd.c (until_next_command): Update.
5154 * jit.c (jit_breakpoint_re_set_internal): Update.
5155 (jit_inferior_init): Update.
5156 * linespec.c (minsym_found): Update.
5157 (add_minsym): Update.
5158 * linux-fork.c (info_checkpoints_command): Update.
5159 * linux-nat.c (get_signo): Update.
5160 * linux-thread-db.c (inferior_has_bug): Update.
5161 * m32c-tdep.c (m32c_return_value): Update.
5162 (m32c_m16c_address_to_pointer): Update.
5163 (m32c_m16c_pointer_to_address): Update.
5164 * m32r-tdep.c (m32r_frame_this_id): Update.
5165 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5166 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5167 * maint.c (maintenance_translate_address): Update.
5168 * minsyms.c (add_minsym_to_hash_table): Update.
5169 (add_minsym_to_demangled_hash_table): Update.
5170 (msymbol_objfile): Update.
5171 (lookup_minimal_symbol): Update.
5172 (iterate_over_minimal_symbols): Update.
5173 (lookup_minimal_symbol_text): Update.
5174 (lookup_minimal_symbol_by_pc_name): Update.
5175 (lookup_minimal_symbol_solib_trampoline): Update.
5176 (lookup_minimal_symbol_by_pc_section_1): Update.
5177 (lookup_minimal_symbol_and_objfile): Update.
5178 (prim_record_minimal_symbol_full): Update.
5179 (compare_minimal_symbols): Update.
5180 (compact_minimal_symbols): Update.
5181 (build_minimal_symbol_hash_tables): Update.
5182 (install_minimal_symbols): Update.
5183 (terminate_minimal_symbol_table): Update.
5184 (find_solib_trampoline_target): Update.
5185 (minimal_symbol_upper_bound): Update.
5186 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5187 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5188 (mips_skip_pic_trampoline_code): Update.
5189 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5190 * objc-lang.c (selectors_info): Update.
5191 (classes_info): Update.
5192 (find_methods): Update.
5193 (find_imps): Update.
5194 (find_objc_msgsend): Update.
5195 * objfiles.c (objfile_relocate1): Update.
5196 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5197 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5198 * p-valprint.c (pascal_val_print): Update.
5199 * parse.c (write_exp_msymbol): Update.
5200 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5201 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5202 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5203 * printcmd.c (build_address_symbolic): Update.
5205 (address_info): Update.
5206 * proc-service.c (ps_pglobal_lookup): Update.
5207 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5208 (find_pc_sect_psymtab): Update.
5209 * python/py-framefilter.c (py_print_frame): Update.
5210 * ravenscar-thread.c (get_running_thread_id): Update.
5211 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5213 * remote.c (remote_check_symbols): Update.
5214 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5215 (rs6000_skip_trampoline_code): Update.
5216 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5217 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5218 * solib-dsbt.c (lm_base): Update.
5219 * solib-frv.c (lm_base): Update.
5221 * solib-irix.c (locate_base): Update.
5222 * solib-som.c (som_solib_create_inferior_hook): Update.
5223 (som_solib_desire_dynamic_linker_symbols): Update.
5224 (link_map_start): Update.
5225 * solib-spu.c (spu_enable_break): Update.
5226 (ocl_enable_break): Update.
5227 * solib-svr4.c (elf_locate_base): Update.
5228 (enable_break): Update.
5229 * spu-tdep.c (spu_get_overlay_table): Update.
5230 (spu_catch_start): Update.
5231 (flush_ea_cache): Update.
5232 * stabsread.c (define_symbol): Update.
5233 (scan_file_globals): Update.
5234 * stack.c (find_frame_funname): Update.
5235 (frame_info): Update.
5236 * symfile.c (simple_read_overlay_table): Update.
5237 (simple_overlay_update): Update.
5238 * symmisc.c (dump_msymbols): Update.
5239 * symtab.c (fixup_section): Update.
5240 (find_pc_sect_line): Update.
5241 (skip_prologue_sal): Update.
5242 (search_symbols): Update.
5243 (print_msymbol_info): Update.
5244 (rbreak_command): Update.
5245 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5246 (completion_list_objc_symbol): Update.
5247 (default_make_symbol_completion_list_break_on): Update.
5248 * tracepoint.c (scope_info): Update.
5249 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5250 (tui_get_begin_asm_address): Update.
5251 * valops.c (find_function_in_inferior): Update.
5252 * value.c (value_static_field): Update.
5253 (value_fn_field): Update.
5255 2014-02-26 Tom Tromey <tromey@redhat.com>
5257 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5258 bound minimal symbols. Move code that knows about minsym
5260 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5262 * minsyms.h (minimal_symbol_upper_bound): Declare.
5263 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5264 minimal_symbol_upper_bound.
5266 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5268 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5269 Use the type's name if its basic type does not have a tag.
5271 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5273 * dwarf2read.c (read_subrange_type): Add comment.
5275 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5277 * dwarf2read.c (update_enumeration_type_from_children): New
5278 function, mostly extracted from process_structure_scope.
5279 (read_enumeration_type): Call update_enumeration_type_from_children.
5280 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5281 and flag_flag_enum fields.
5283 2014-02-26 Pedro Alves <palves@redhat.com>
5285 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5286 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5287 to_xfer_partial method.
5289 2014-02-26 Pedro Alves <palves@redhat.com>
5291 * target.c (complete_target_initialization): Don't install
5292 default_xfer_partial as to_xfer_partial hook.
5294 (update_current_target): Don't INHERIT nor de_fault
5295 deprecated_xfer_memory. Delete de_fault macro.
5296 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5297 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5298 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5301 2014-02-26 Pedro Alves <palves@redhat.com>
5303 * go32-nat.c (my_write_child): New function.
5304 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5305 (go32_xfer_partial): New function.
5306 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5307 Instead install a to_xfer_partial hook.
5309 2014-02-26 Pedro Alves <palves@redhat.com>
5311 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5312 to_xfer_partial helper. Rewrite.
5313 (procfs_xfer_partial): New function.
5314 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5315 Install a to_xfer_partial hook.
5317 2014-02-26 Pedro Alves <palves@redhat.com>
5319 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5320 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5321 (m32r_xfer_partial): New function.
5322 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5323 Install a to_xfer_partial hook.
5325 2014-02-26 Pedro Alves <palves@redhat.com>
5327 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5329 (mips_xfer_partial): New function.
5330 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5331 hook. Install a to_xfer_partial hook.
5333 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5335 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5336 * gdbtypes.c (create_array_type_with_stride): New function,
5337 renaming create_array_type, but with an added parameter
5338 called "bit_stride".
5339 (create_array_type): Re-implement using
5340 create_array_type_with_stride.
5341 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5342 and DW_AT_bit_stride attributes.
5344 2014-02-26 Pedro Alves <palves@redhat.com>
5346 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5347 task-specific breakpoints.
5349 2014-02-25 Pedro Alves <palves@redhat.com>
5351 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5352 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5354 2014-02-25 Stan Shebs <stan@codesourcery.com>
5356 * defs.h: Annotate comments for Doxygen.
5358 2014-02-25 Tom Tromey <tromey@redhat.com>
5360 * target.h (target_ignore): Don't declare.
5361 * target.c (target_ignore): Remove.
5363 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5366 * auto-load.c (auto_load_objfile_script_1): Change filename to
5369 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5371 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5372 documentation. Adjust prototype to match the target_ops
5373 to_xfer_partial method. Adjust implementation accordingly.
5375 2014-02-25 Hui Zhu <hui@codesourcery.com>
5377 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5380 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5382 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5383 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5384 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5385 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5386 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5387 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5388 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5389 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5391 (rl78_register_type): Use a data pointer type for SP and
5392 new pseudo registers mentioned above. Use a 16 bit integer
5393 type for all other register pairs.
5394 (rl78_register_name, rl78_g10_register_name): Update for
5395 new pseudo registers.
5396 (rl78_pseudo_register_read): Likewise.
5397 (rl78_pseudo_register_write): Likewise.
5398 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5399 to the newly added pseudo registers.
5401 2014-02-24 Doug Evans <dje@google.com>
5403 * value.c (record_latest_value): Fix comment.
5404 * printcmd.c (print_command_1): Remove code to handle -1 return from
5405 record_latest_value.
5407 2014-02-24 Pedro Alves <palves@redhat.com>
5409 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5410 deprecated_xfer_memory hook.
5411 (procfs_xfer_partial): Call procfs_xfer_memory instead
5412 of the deprecated_xfer_memory target hook.
5413 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5416 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5418 * windows-nat.c (windows_xfer_shared_libraries): Return
5419 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5420 requested object is TARGET_OBJECT_LIBRARIES.
5422 2014-02-24 Yao Qi <yao@codesourcery.com>
5424 * target.h (enum target_xfer_status)
5425 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5426 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5428 * corefile.c (memory_error_message): User updated.
5429 * exec.c (section_table_read_available_memory): Likewise.
5430 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5431 * target.c (target_xfer_status_to_string): Likewise.
5432 (raw_memory_xfer_partial): Likewise.
5433 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5434 * valops.c (read_value_memory): Likewise.
5435 * exec.h: Update comments.
5437 2014-02-24 Yao Qi <yao@codesourcery.com>
5439 * target.c (target_xfer_status_to_string): Rename argument err
5441 * target.h (target_xfer_status_to_string): Update declaration.
5442 Replace target_xfer_error_to_string with
5443 target_xfer_status_to_string in comment.
5445 2014-02-24 Yao Qi <yao@codesourcery.com>
5447 * mips-linux-nat.c (super_close): Update its type.
5448 (mips_linux_close): Pass 'self' to super_close.
5450 2014-02-24 Yao Qi <yao@codesourcery.com>
5452 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5453 * corefile.c (read_memory): Adjusted.
5454 * target.c (target_write_with_progress): Adjusted.
5456 2014-02-23 Yao Qi <yao@codesourcery.com>
5460 2013-10-25 Yao Qi <yao@codesourcery.com>
5462 * remote.c (remote_traceframe_info): Return early if
5463 traceframe is not selected.
5465 2013-07-19 Yao Qi <yao@codesourcery.com>
5467 * target.c (update_current_target): Change the default action
5468 of 'to_traceframe_info' from tcomplain to return_zero.
5469 * target.h (struct target_ops) <to_traceframe_info>: Add more
5472 2014-02-23 Yao Qi <yao@codesourcery.com>
5474 * valops.c (read_value_memory): Rewrite it. Call
5475 target_xfer_partial in a loop.
5476 * exec.h (section_table_available_memory): Remove declaration.
5477 Move comments to ...
5478 * exec.c (section_table_available_memory): ... here. Make it
5481 2014-02-23 Yao Qi <yao@codesourcery.com>
5483 * exec.c (section_table_read_available_memory): New function.
5484 * exec.h (section_table_read_available_memory): Declare.
5485 * ctf.c (ctf_xfer_partial): Call
5486 section_table_read_available_memory.
5487 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5489 2014-02-23 Yao Qi <yao@codesourcery.com>
5491 * ctf.c (ctf_xfer_partial): Move code to ...
5492 * exec.c (exec_read_partial_read_only): ... it. New function.
5493 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5494 * tracefile.c: Include "exec.h".
5495 * exec.h (exec_read_partial_read_only): Declare.
5497 2014-02-23 Yao Qi <yao@codesourcery.com>
5499 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5500 (tfile_has_memory): Remove.
5501 (init_tfile_ops): Don't set fields to_has_all_memory and
5502 to_has_memory of tfile_ops.
5503 * tracefile.c (tracefile_has_all_memory): New function.
5504 (tracefile_has_memory): New function.
5505 (init_tracefile_ops): Initialize fields to_has_all_memory and
5506 to_has_memory of 'ops'.
5508 2014-02-23 Yao Qi <yao@codesourcery.com>
5510 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5511 (ctf_thread_alive, ctf_get_trace_status): Remove.
5512 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5514 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5515 (tfile_has_stack, tfile_has_registers): Remove.
5516 (tfile_thread_alive): Remove.
5517 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5519 * tracefile.c (tracefile_has_stack): New function.
5520 (tracefile_has_registers): New function.
5521 (tracefile_thread_alive): New function.
5522 (tracefile_get_trace_status): New function.
5523 (init_tracefile_ops): New function.
5524 * tracefile.h (init_tracefile_ops): Declare.
5526 2014-02-23 Yao Qi <yao@codesourcery.com>
5528 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5529 (O_LARGEFILE): Likewise.
5530 (tfile_ops): Likewise.
5531 (TRACE_HEADER_SIZE): Likewise.
5532 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5533 (cur_data_size): Likewise.
5534 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5535 (tfile_close, tfile_files_info): Likewise.
5536 (tfile_get_trace_status): Likewise.
5537 (tfile_get_tracepoint_status): Likewise.
5538 (tfile_get_traceframe_address): Likewise.
5539 (tfile_trace_find, match_blocktype): Likewise.
5540 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5541 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5542 (tfile_get_trace_state_variable_value): Likewise.
5543 (tfile_has_all_memory, tfile_has_memory): Likewise.
5544 (tfile_has_stack, tfile_has_registers): Likewise.
5545 (tfile_thread_alive, build_traceframe_info): Likewise.
5546 (tfile_traceframe_info, init_tfile_ops): Likewise.
5547 (_initialize_tracepoint): Don't call init_tfile_ops
5548 and add_target_with_completer.
5549 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5550 exec.h, completer.h and filenames.h.
5551 (_initialize_tracefile_tfile): New function.
5553 2014-02-23 Yao Qi <yao@codesourcery.com>
5555 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5557 (HFILES_NO_SRCDIR): Add tracefile.h.
5558 * ctf.c: Include "tracefile.h".
5559 * tracefile.h: New file.
5560 * tracefile.c: New file
5561 * tracefile-tfile.c: New file.
5562 * tracepoint.c: Include "tracefile.h".
5563 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5564 (stop_reason_names): Add const.
5565 (trace_file_writer_xfree): Move it to tracefile.c.
5566 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5567 (trace_save_ctf): Likewise.
5568 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5569 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5570 (tfile_write_header, tfile_write_regblock_type): Likewise.
5571 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5572 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5573 (tfile_write_raw_data, tfile_end): Likewise.
5574 (tfile_trace_file_writer_new): Likewise.
5575 (free_uploaded_tp): Make it extern.
5576 (free_uploaded_tsv): Make it extern.
5577 (_initialize_tracepoint): Move code to register command 'tsave'
5579 * tracepoint.h (stop_reason_names): Declare.
5580 (struct trace_frame_write_ops): Move it to tracefile.h.
5581 (struct trace_file_write_ops): Likewise.
5582 (struct trace_file_writer): Likewise.
5583 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5585 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5588 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5590 (get_cores_used_by_process): New parameter num_cores, use it.
5591 (linux_xfer_osdata_processes): Pass num_cores to it.
5592 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5595 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5597 * target.c (memory_xfer_partial): Fix length arg in call to
5598 breakpoint_xfer_memory.
5600 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5603 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5604 number comes after the + or - signs. Adjust length of register
5605 name to be extracted.
5607 2014-02-20 Tom Tromey <tromey@redhat.com>
5609 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5610 (ada_varobj_ops): Mark "extern".
5612 2014-02-20 Tom Tromey <tromey@redhat.com>
5614 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5616 2014-02-20 Doug Evans <xdje42@gmail.com>
5618 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5619 All callers updated.
5620 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5621 All callers updated.
5622 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5623 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5625 2014-02-20 lin zuojian <manjian2006@gmail.com>
5626 Joel Brobecker <brobecker@adacore.com>
5627 Doug Evans <xdje42@gmail.com>
5630 * dwarf2read.c (struct die_info): New member in_process.
5631 (reset_die_in_process): New function.
5632 (process_die): Set it at the start, reset when returning.
5633 (inherit_abstract_dies): Only call process_die if origin_child_die
5634 not already being processed.
5636 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5638 * windows-nat.c (handle_unload_dll): Add function documentation.
5639 (do_initial_windows_stuff): Add comment explaining why we wait
5640 until after inferior initialization has finished before
5641 processing all DLLs.
5643 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5645 * windows-nat.c (get_module_name): Delete.
5646 (windows_get_exec_module_filename): New function, mostly
5647 inspired from get_module_name.
5648 (windows_pid_to_exec_file): Replace call to get_module_name
5649 by call to windows_get_exec_module_filename.
5651 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5653 * windows-nat.c (handle_load_dll): Rewrite this function's
5654 introductory comment. Remove code using get_module_name
5655 to get the DLL's name.
5657 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5659 * windows-nat.c (get_windows_debug_event): Ignore
5660 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5661 if windows_initialization_done == 0.
5662 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5663 Adjust implementation to always load all DLLs.
5664 (do_initial_windows_stuff): Replace call to
5665 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5667 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5669 * windows-nat.c (_initialize_windows_nat): Deprecate the
5670 "dll-symbols" command. Turn the "add-shared-symbol-files"
5671 and "assf" aliases into commands, and deprecate them as well.
5672 * NEWS: Add entry explaining that "dll-symbols" and its two
5673 aliases are now deprecated.
5675 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5677 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5678 new-line in debug string. Remove trailing spaces.
5680 2014-02-19 Stan Shebs <stan@codesourcery.com>
5682 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5684 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5686 * NEWS: Add entry for the new feature
5687 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5690 2014-02-19 Stan Shebs <stan@codesourcery.com>
5692 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5694 2014-02-19 Pedro Alves <palves@redhat.com>
5696 * common/ptid.h (struct ptid): Mention that process_stratum
5697 targets should prefer ptid.lwp.
5699 2014-02-19 Pedro Alves <palves@redhat.com>
5701 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5702 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5703 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5704 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5705 store remote thread ids rather than ptid.tid.
5706 (_initialize_remote): Adjust.
5708 2014-02-19 Tom Tromey <tromey@redhat.com>
5710 * target.c (target_get_unwinder): Rewrite.
5711 (target_get_tailcall_unwinder): Rewrite.
5712 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5713 (record_btrace_to_get_tailcall_unwinder): New function.
5714 (init_record_btrace_ops): Update.
5715 * target.h (struct target_ops) <to_get_unwinder,
5716 to_get_tailcall_unwinder>: Now function pointers. Use
5717 TARGET_DEFAULT_RETURN.
5719 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5723 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5725 2014-02-19 Tom Tromey <tromey@redhat.com>
5727 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5729 * target-delegates.c: Rebuild.
5730 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5731 TARGET_DEFAULT_FUNC.
5732 * target.c (default_target_decr_pc_after_break): Rename from
5733 forward_target_decr_pc_after_break. Simplify.
5734 (target_decr_pc_after_break): Rely on delegation.
5736 2014-02-19 Tom Tromey <tromey@redhat.com>
5738 * target.c (update_current_target): Do not INHERIT to_doc or
5739 to_magic. Do not de_fault to_open or to_close.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * gcore.h (objfile_find_memory_regions): Declare.
5744 * gcore.c (objfile_find_memory_regions): No longer static. Add
5746 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5747 * exec.c: Include gcore.h.
5748 (exec_set_find_memory_regions): Remove.
5749 (exec_find_memory_regions): Remove.
5750 (exec_do_find_memory_regions): Remove.
5751 (init_exec_ops): Update.
5752 * defs.h (exec_set_find_memory_regions): Remove.
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target-delegates.c: Rebuild.
5757 * target.h (struct target_ops) <to_extra_thread_info,
5758 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5759 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5760 not 0, in TARGET_DEFAULT_RETURN.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * target.c (complete_target_initialization): Remove casts. Use
5765 return_zero_has_execution.
5766 (return_zero): Add "ignore" argument.
5767 (return_zero_has_execution): New function.
5768 (init_dummy_target): Remove casts. Use
5769 return_zero_has_execution.
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5773 * target.c (update_current_target): Update comments. Do not
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5780 * corelow.c (core_read_description): Delegate when needed.
5781 * remote.c (remote_read_description): Delegate when needed.
5782 * target-delegates.c: Rebuild.
5783 * target.c (target_read_description): Rewrite.
5784 * target.h (struct target_ops) <to_read_description>: Update
5785 comment. Use TARGET_DEFAULT_RETURN.
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * target-delegates.c: Rebuild.
5790 * target.c (update_current_target): Don't inherit or default
5792 (find_default_run_target): Check against delegate_can_run.
5793 * target.h (struct target_ops) <to_can_run>: Use
5794 TARGET_DEFAULT_RETURN.
5796 2014-02-19 Tom Tromey <tromey@redhat.com>
5798 * target-delegates.c: Rebuild.
5799 * target.c (target_disconnect): Unconditionally delegate.
5800 * target.h (struct target_ops) <to_disconnect>: Use
5801 TARGET_DEFAULT_NORETURN.
5803 2014-02-19 Tom Tromey <tromey@redhat.com>
5805 * record.c (record_stop): Unconditionally delegate.
5806 * target-delegates.c: Rebuild.
5807 * target.c (target_stop_recording): Unconditionally delegate.
5808 * target.h (struct target_ops) <to_stop_recording>: Use
5809 TARGET_DEFAULT_IGNORE.
5811 2014-02-19 Tom Tromey <tromey@redhat.com>
5813 * target-delegates.c: Rebuild.
5814 * target.c (target_enable_btrace): Unconditionally delegate.
5815 * target.h (struct target_ops) <to_enable_btrace>: Use
5816 TARGET_DEFAULT_NORETURN.
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target-delegates.c: Rebuild.
5821 * target.c (target_read_btrace): Unconditionally delegate.
5822 * target.h (struct target_ops) <to_read_btrace>: Use
5823 TARGET_DEFAULT_NORETURN.
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * target-delegates.c: Rebuild.
5828 * target.c (target_teardown_btrace): Unconditionally delegate.
5829 * target.h (struct target_ops) <to_teardown_btrace>: Use
5830 TARGET_DEFAULT_NORETURN.
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * target-delegates.c: Rebuild.
5835 * target.c (target_disable_btrace): Unconditionally delegate.
5836 * target.h (struct target_ops) <to_disable_btrace>: Use
5837 TARGET_DEFAULT_NORETURN.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * target-delegates.c: Rebuild.
5842 * target.c (default_search_memory): New function.
5843 (simple_search_memory): Update comment.
5844 (target_search_memory): Unconditionally delegate.
5845 * target.h (struct target_ops) <to_search_memory>: Use
5846 TARGET_DEFAULT_FUNC.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * auxv.c (default_auxv_parse): No longer static.
5851 (target_auxv_parse): Unconditionally delegate.
5852 * auxv.h (default_auxv_parse): Declare.
5853 * target-delegates.c: Rebuild.
5854 * target.c: Include auxv.h.
5855 * target.h (struct target_ops) <to_auxv_parse>: Use
5856 TARGET_DEFAULT_FUNC.
5858 2014-02-19 Tom Tromey <tromey@redhat.com>
5860 * target-delegates.c: Rebuild.
5861 * target.c (target_memory_map): Unconditionally delegate.
5862 * target.h (struct target_ops) <to_memory_map>: Use
5863 TARGET_DEFAULT_RETURN.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target-delegates.c: Rebuild.
5868 * target.c (target_thread_alive): Unconditionally delegate.
5869 * target.h (struct target_ops) <to_thread_alive>: Use
5870 TARGET_DEFAULT_RETURN.
5872 2014-02-19 Tom Tromey <tromey@redhat.com>
5874 * target-delegates.c: Rebuild.
5875 * target.c (target_save_record): Unconditionally delegate.
5876 * target.h (struct target_ops) <to_save_record>: Use
5877 TARGET_DEFAULT_NORETURN.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target-delegates.c: Rebuild.
5882 * target.c (target_delete_record): Unconditionally delegate.
5883 * target.h (struct target_ops) <to_delete_record>: Use
5884 TARGET_DEFAULT_NORETURN.
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5888 * target-delegates.c: Rebuild.
5889 * target.c (target_record_is_replaying): Unconditionally
5891 * target.h (struct target_ops) <to_record_is_replaying>: Use
5892 TARGET_DEFAULT_RETURN.
5894 2014-02-19 Tom Tromey <tromey@redhat.com>
5896 * target-delegates.c: Rebuild.
5897 * target.c (target_goto_record_begin): Unconditionally delegate.
5898 * target.h (struct target_ops) <to_goto_record_begin>: Use
5899 TARGET_DEFAULT_NORETURN.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target-delegates.c: Rebuild.
5904 * target.c (target_goto_record_end): Unconditionally delegate.
5905 * target.h (struct target_ops) <to_goto_record_end>: Use
5906 TARGET_DEFAULT_NORETURN.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (target_goto_record): Unconditionally delegate.
5912 * target.h (struct target_ops) <to_goto_record>: Use
5913 TARGET_DEFAULT_NORETURN.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target-delegates.c: Rebuild.
5918 * target.c (target_insn_history): Unconditionally delegate.
5919 * target.h (struct target_ops) <to_insn_history>: Use
5920 TARGET_DEFAULT_NORETURN.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target-delegates.c: Rebuild.
5925 * target.c (target_insn_history_from): Unconditionally delegate.
5926 * target.h (struct target_ops) <to_insn_history_from>: Use
5927 TARGET_DEFAULT_NORETURN.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target-delegates.c: Rebuild.
5932 * target.c (target_insn_history_range): Unconditionally delegate.
5933 * target.h (struct target_ops) <to_insn_history_range>: Use
5934 TARGET_DEFAULT_NORETURN.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: Rebuild.
5939 * target.c (target_call_history): Unconditionally delegate.
5940 * target.h (struct target_ops) <to_call_history>: Use
5941 TARGET_DEFAULT_NORETURN.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (target_call_history_from): Unconditionally delegate.
5947 * target.h (struct target_ops) <to_call_history_from>: Use
5948 TARGET_DEFAULT_NORETURN.
5950 2014-02-19 Tom Tromey <tromey@redhat.com>
5952 * target-delegates.c: Rebuild.
5953 * target.c (target_call_history_range): Unconditionally delegate.
5954 * target.h (struct target_ops) <to_call_history_range>: Use
5955 TARGET_DEFAULT_NORETURN.
5957 2014-02-19 Tom Tromey <tromey@redhat.com>
5959 * target-delegates.c: Rebuild.
5960 * target.c (target_verify_memory): Unconditionally delegate.
5961 * target.h (struct target_ops) <to_verify_memory>: Use
5962 TARGET_DEFAULT_NORETURN.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target-delegates.c: Rebuild.
5967 * target.c (target_core_of_thread): Unconditionally delegate.
5968 * target.h (struct target_ops) <to_core_of_thread>: Use
5969 TARGET_DEFAULT_RETURN.
5971 2014-02-19 Tom Tromey <tromey@redhat.com>
5973 * target-delegates.c: Rebuild.
5974 * target.c (target_flash_done): Unconditionally delegate.
5975 * target.h (struct target_ops) <to_flash_done>: Use
5976 TARGET_DEFAULT_NORETURN.
5978 2014-02-19 Tom Tromey <tromey@redhat.com>
5980 * target-delegates.c: Rebuild.
5981 * target.c (target_flash_erase): Unconditionally delegate.
5982 * target.h (struct target_ops) <to_flash_erase>: Use
5983 TARGET_DEFAULT_NORETURN.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target-delegates.c: Rebuild.
5988 * target.c (target_get_section_table): Unconditionally delegate.
5989 * target.h (struct target_ops) <to_get_section_table>: Use
5990 TARGET_DEFAULT_RETURN.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target-delegates.c: Rebuild.
5995 * target.c (target_pid_to_str): Unconditionally delegate.
5996 (init_dummy_target): Don't initialize to_pid_to_str.
5997 (default_pid_to_str): Rename from dummy_pid_to_str.
5998 * target.h (struct target_ops) <to_pid_to_str>: Use
5999 TARGET_DEFAULT_FUNC.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * target-delegates.c: Rebuild.
6004 * target.c (target_find_new_threads): Unconditionally delegate.
6005 * target.h (struct target_ops) <to_find_new_threads>: Use
6006 TARGET_DEFAULT_RETURN.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target-delegates.c: Rebuild.
6011 * target.c (target_program_signals): Unconditionally delegate.
6012 * target.h (struct target_ops) <to_program_signals>: Use
6013 TARGET_DEFAULT_IGNORE.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * target-delegates.c: Rebuild.
6018 * target.c (target_pass_signals): Unconditionally delegate.
6019 * target.h (struct target_ops) <to_pass_signals>: Use
6020 TARGET_DEFAULT_IGNORE.
6022 2014-02-19 Tom Tromey <tromey@redhat.com>
6024 * target-delegates.c: Rebuild.
6025 * target.c (default_mourn_inferior): New function.
6026 (target_mourn_inferior): Unconditionally delegate.
6027 * target.h (struct target_ops) <to_mourn_inferior>: Use
6028 TARGET_DEFAULT_FUNC.
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target-delegates.c: Rebuild.
6033 * target.c (default_follow_fork): New function.
6034 (target_follow_fork): Unconditionally delegate.
6035 * target.h (struct target_ops) <to_follow_fork>: Use
6036 TARGET_DEFAULT_FUNC.
6038 2014-02-19 Tom Tromey <tromey@redhat.com>
6040 * target-delegates.c: Rebuild.
6041 * target.c (target_kill): Unconditionally delegate.
6042 * target.h (struct target_ops) <to_kill>: Use
6043 TARGET_DEFAULT_NORETURN.
6045 2014-02-19 Tom Tromey <tromey@redhat.com>
6047 * target-delegates.c: Rebuild.
6048 * target.c (target_masked_watch_num_registers): Unconditionally
6050 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6051 Use TARGET_DEFAULT_RETURN.
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * target-delegates.c: Rebuild.
6056 * target.c (target_remove_mask_watchpoint): Unconditionally
6058 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6059 TARGET_DEFAULT_RETURN.
6061 2014-02-19 Tom Tromey <tromey@redhat.com>
6063 * target-delegates.c: Rebuild.
6064 * target.c (target_insert_mask_watchpoint): Unconditionally
6066 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6067 TARGET_DEFAULT_RETURN.
6069 2014-02-19 Tom Tromey <tromey@redhat.com>
6071 * target-delegates.c: Rebuild.
6072 * target.c (target_ranged_break_num_registers): Unconditionally
6074 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6075 Use TARGET_DEFAULT_RETURN.
6077 2014-02-19 Tom Tromey <tromey@redhat.com>
6079 * target-delegates.c: Rebuild.
6080 * target.c (target_fetch_registers): Unconditionally delegate.
6081 * target.h (struct target_ops) <to_fetch_registers>: Use
6082 TARGET_DEFAULT_NORETURN.
6084 2014-02-19 Tom Tromey <tromey@redhat.com>
6086 * target-delegates.c: Rebuild.
6087 * target.c (update_current_target): Don't inherit or default
6089 * target.h (struct target_ops) <to_stop>: Use
6090 TARGET_DEFAULT_IGNORE.
6092 2014-02-19 Tom Tromey <tromey@redhat.com>
6094 * target-delegates.c: Rebuild.
6095 * target.c (update_current_target): Don't inherit or default
6096 to_can_run_breakpoint_commands.
6097 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6098 Use TARGET_DEFAULT_RETURN.
6100 2014-02-19 Tom Tromey <tromey@redhat.com>
6102 * target-delegates.c: Rebuild.
6103 * target.c (update_current_target): Don't inherit or default
6104 to_supports_evaluation_of_breakpoint_conditions.
6105 * target.h (struct target_ops)
6106 <to_supports_evaluation_of_breakpoint_conditions>: Use
6107 TARGET_DEFAULT_RETURN.
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6111 * target-delegates.c: Rebuild.
6112 * target.c (update_current_target): Don't inherit or default
6113 to_augmented_libraries_svr4_read.
6114 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6115 Use TARGET_DEFAULT_RETURN.
6117 2014-02-19 Tom Tromey <tromey@redhat.com>
6119 * target-delegates.c: Rebuild.
6120 * target.c (update_current_target): Don't inherit or default
6122 * target.h (struct target_ops) <to_can_use_agent>: Use
6123 TARGET_DEFAULT_RETURN.
6125 2014-02-19 Tom Tromey <tromey@redhat.com>
6127 * target-delegates.c: Rebuild.
6128 * target.c (update_current_target): Don't inherit or default
6130 * target.h (struct target_ops) <to_use_agent>: Use
6131 TARGET_DEFAULT_NORETURN.
6133 2014-02-19 Tom Tromey <tromey@redhat.com>
6135 * target-delegates.c: Rebuild.
6136 * target.c (update_current_target): Don't inherit or default
6138 (return_null): Remove.
6139 * target.h (struct target_ops) <to_traceframe_info>: Use
6140 TARGET_DEFAULT_RETURN.
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6144 * target-delegates.c: Rebuild.
6145 * target.c (update_current_target): Don't inherit or default
6146 to_static_tracepoint_markers_by_strid.
6147 * target.h (struct target_ops)
6148 <to_static_tracepoint_markers_by_strid>: Use
6149 TARGET_DEFAULT_NORETURN.
6151 2014-02-19 Tom Tromey <tromey@redhat.com>
6153 * target-delegates.c: Rebuild.
6154 * target.c (update_current_target): Don't inherit or default
6155 to_static_tracepoint_marker_at.
6156 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6157 Use TARGET_DEFAULT_RETURN.
6159 2014-02-19 Tom Tromey <tromey@redhat.com>
6161 * target-delegates.c: Rebuild.
6162 * target.c (update_current_target): Don't inherit or default
6164 * target.h (struct target_ops) <to_set_permissions>: Use
6165 TARGET_DEFAULT_IGNORE.
6167 2014-02-19 Tom Tromey <tromey@redhat.com>
6169 * target-delegates.c: Rebuild.
6170 * target.c (update_current_target): Don't inherit or default
6172 * target.h (struct target_ops) <to_get_tib_address>: Use
6173 TARGET_DEFAULT_NORETURN.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target-delegates.c: Rebuild.
6178 * target.c (update_current_target): Don't inherit or default
6180 * target.h (struct target_ops) <to_set_trace_notes>: Use
6181 TARGET_DEFAULT_RETURN.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target-delegates.c: Rebuild.
6186 * target.c (update_current_target): Don't initialize
6187 to_set_trace_buffer_size.
6188 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6189 TARGET_DEFAULT_IGNORE.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target-delegates.c: Rebuild.
6194 * target.c (update_current_target): Don't inherit or default
6195 to_set_circular_trace_buffer.
6196 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6197 TARGET_DEFAULT_IGNORE.
6199 2014-02-19 Tom Tromey <tromey@redhat.com>
6201 * target-delegates.c: Rebuild.
6202 * target.c (update_current_target): Don't inherit or default
6203 to_set_disconnected_tracing.
6204 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6205 TARGET_DEFAULT_IGNORE.
6207 2014-02-19 Tom Tromey <tromey@redhat.com>
6209 * target-delegates.c: Rebuild.
6210 * target.c (update_current_target): Don't inherit or default
6211 to_get_min_fast_tracepoint_insn_len.
6212 (return_minus_one): Remove.
6213 * target.h (struct target_ops)
6214 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6216 2014-02-19 Tom Tromey <tromey@redhat.com>
6218 * target-delegates.c: Rebuild.
6219 * target.c (update_current_target): Don't inherit or default
6220 to_get_raw_trace_data.
6221 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6222 TARGET_DEFAULT_NORETURN.
6224 2014-02-19 Tom Tromey <tromey@redhat.com>
6226 * target-delegates.c: Rebuild.
6227 * target.c (update_current_target): Don't inherit or default
6228 to_upload_trace_state_variables.
6229 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6230 Use TARGET_DEFAULT_RETURN.
6232 2014-02-19 Tom Tromey <tromey@redhat.com>
6234 * target-delegates.c: Rebuild.
6235 * target.c (update_current_target): Don't inherit or default
6236 to_upload_tracepoints.
6237 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6238 TARGET_DEFAULT_RETURN.
6240 2014-02-19 Tom Tromey <tromey@redhat.com>
6242 * target-delegates.c: Rebuild.
6243 * target.c (update_current_target): Don't inherit or default
6245 * target.h (struct target_ops) <to_save_trace_data>: Use
6246 TARGET_DEFAULT_NORETURN.
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6250 * target-delegates.c: Rebuild.
6251 * target.c (update_current_target): Don't inherit or default
6252 to_get_trace_state_variable_value.
6253 * target.h (struct target_ops)
6254 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6256 2014-02-19 Tom Tromey <tromey@redhat.com>
6258 * target-delegates.c: Rebuild.
6259 * target.c (update_current_target): Don't inherit or default
6261 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target-delegates.c: Rebuild.
6266 * target.c (update_current_target): Don't inherit or default
6268 * target.h (struct target_ops) <to_trace_stop>: Use
6269 TARGET_DEFAULT_NORETURN.
6271 2014-02-19 Tom Tromey <tromey@redhat.com>
6273 * target-delegates.c: Rebuild.
6274 * target.c (update_current_target): Don't inherit or default
6275 to_get_tracepoint_status.
6276 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6277 TARGET_DEFAULT_NORETURN.
6279 2014-02-19 Tom Tromey <tromey@redhat.com>
6281 * target-delegates.c: Rebuild.
6282 * target.c (update_current_target): Don't inherit or default
6283 to_get_trace_status.
6284 * target.h (struct target_ops) <to_get_trace_status>: Use
6285 TARGET_DEFAULT_RETURN.
6287 2014-02-19 Tom Tromey <tromey@redhat.com>
6289 * target-delegates.c: Rebuild.
6290 * target.c (update_current_target): Don't inherit or default
6292 * target.h (struct target_ops) <to_trace_start>: Use
6293 TARGET_DEFAULT_NORETURN.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target-delegates.c: Rebuild.
6298 * target.c (update_current_target): Don't inherit or default
6299 to_trace_set_readonly_regions.
6300 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6301 Use TARGET_DEFAULT_NORETURN.
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6305 * target-delegates.c: Rebuild.
6306 * target.c (update_current_target): Don't inherit or default
6307 to_disable_tracepoint.
6308 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6309 TARGET_DEFAULT_NORETURN.
6311 2014-02-19 Tom Tromey <tromey@redhat.com>
6313 * target-delegates.c: Rebuild.
6314 * target.c (update_current_target): Don't inherit or default
6315 to_enable_tracepoint.
6316 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6317 TARGET_DEFAULT_NORETURN.
6319 2014-02-19 Tom Tromey <tromey@redhat.com>
6321 * target-delegates.c: Rebuild.
6322 * target.c (update_current_target): Don't inherit or default
6323 to_download_trace_state_variable.
6324 * target.h (struct target_ops) <to_download_trace_state_variable>:
6325 Use TARGET_DEFAULT_NORETURN.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target-delegates.c: Rebuild.
6330 * target.c (update_current_target): Don't inherit or default
6331 to_can_download_tracepoint.
6332 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6333 TARGET_DEFAULT_RETURN.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * target-delegates.c: Rebuild.
6338 * target.c (update_current_target): Don't inherit or default
6339 to_download_tracepoint.
6340 * target.h (struct target_ops) <to_download_tracepoint>: Use
6341 TARGET_DEFAULT_NORETURN.
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target-delegates.c: Rebuild.
6346 * target.c (update_current_target): Don't inherit or default
6348 * target.h (struct target_ops) <to_trace_init>: Use
6349 TARGET_DEFAULT_RETURN.
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target-delegates.c: Rebuild.
6354 * target.c (update_current_target): Don't inherit or default
6355 to_supports_string_tracing.
6356 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6357 TARGET_DEFAULT_RETURN.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target-delegates.c: Rebuild.
6362 * target.c (update_current_target): Don't inherit or default
6363 to_supports_enable_disable_tracepoint.
6364 * target.h (struct target_ops)
6365 <to_supports_enable_disable_tracepoint>: Use
6366 TARGET_DEFAULT_RETURN.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target-delegates.c: Rebuild.
6371 * target.c (update_current_target): Don't inherit or default
6372 to_supports_multi_process.
6373 * target.h (struct target_ops) <to_supports_multi_process>: Use
6374 TARGET_DEFAULT_RETURN.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * target-delegates.c: Rebuild.
6379 * target.c (update_current_target): Don't inherit or default
6380 to_get_ada_task_ptid.
6381 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6382 TARGET_DEFAULT_FUNC.
6384 2014-02-19 Tom Tromey <tromey@redhat.com>
6386 * target-delegates.c: Rebuild.
6387 * target.c (update_current_target): Don't inherit or default
6388 to_thread_architecture.
6389 * target.h (struct target_ops) <to_thread_architecture>: Use
6390 TARGET_DEFAULT_FUNC.
6392 2014-02-19 Tom Tromey <tromey@redhat.com>
6394 * target-delegates.c: Rebuild.
6395 * target.c (update_current_target): Don't inherit or default
6396 to_execution_direction.
6397 * target.h (struct target_ops) <to_execution_direction>: Use
6398 TARGET_DEFAULT_FUNC.
6400 2014-02-19 Tom Tromey <tromey@redhat.com>
6402 * target-delegates.c: Rebuild.
6403 * target.c (update_current_target): Don't inherit or default
6404 to_can_execute_reverse.
6405 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6406 TARGET_DEFAULT_RETURN.
6407 (target_can_execute_reverse): Unconditionally delegate.
6409 2014-02-19 Tom Tromey <tromey@redhat.com>
6411 * target-delegates.c: Rebuild.
6412 * target.c (update_current_target): Don't inherit or default
6414 (dummy_goto_bookmark): Remove.
6415 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6416 * target.h (struct target_ops) <to_goto_bookmark>: Use
6417 TARGET_DEFAULT_NORETURN.
6419 2014-02-19 Tom Tromey <tromey@redhat.com>
6421 * target-delegates.c: Rebuild.
6422 * target.c (update_current_target): Don't inherit or default
6424 (dummy_get_bookmark): Remove.
6425 (init_dummy_target): Don't inherit or default to_get_bookmark.
6426 * target.h (struct target_ops) <to_get_bookmark>: Use
6427 TARGET_DEFAULT_NORETURN
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (update_current_target): Don't inherit or default
6433 to_make_corefile_notes.
6434 (init_dummy_target): Don't initialize to_make_corefile_notes.
6435 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6436 TARGET_DEFAULT_FUNC.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target-delegates.c: Rebuild.
6441 * target.c (update_current_target): Don't inherit or default
6442 to_find_memory_regions.
6443 (init_dummy_target): Don't initialize to_find_memory_regions.
6444 * target.h (struct target_ops) <to_find_memory_regions>: Use
6445 TARGET_DEFAULT_FUNC.
6447 2014-02-19 Tom Tromey <tromey@redhat.com>
6449 * target-delegates.c: Rebuild.
6450 * target.c (update_current_target): Don't inherit or default
6452 * target.h (struct target_ops) <to_log_command>: Use
6453 TARGET_DEFAULT_IGNORE.
6454 (target_log_command): Unconditionally delegate.
6456 2014-02-19 Tom Tromey <tromey@redhat.com>
6458 * target-delegates.c: Rebuild.
6459 * target.c (update_current_target): Don't inherit or default
6460 to_pid_to_exec_file.
6461 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6462 TARGET_DEFAULT_RETURN.
6464 2014-02-19 Tom Tromey <tromey@redhat.com>
6466 * target-delegates.c: Rebuild.
6467 * target.c (update_current_target): Don't inherit or default
6469 (target_thread_name): Unconditionally delegate.
6470 * target.h (struct target_ops) <to_thread_name>: Use
6471 TARGET_DEFAULT_RETURN.
6473 2014-02-19 Tom Tromey <tromey@redhat.com>
6475 * target-delegates.c: Rebuild.
6476 * target.c (update_current_target): Don't inherit or default
6477 to_extra_thread_info.
6478 * target.h (struct target_ops) <to_extra_thread_info>: Use
6479 TARGET_DEFAULT_RETURN.
6481 2014-02-19 Tom Tromey <tromey@redhat.com>
6483 * target-delegates.c: Rebuild.
6484 * target.c (update_current_target): Don't inherit or default
6486 * target.h (struct target_ops) <to_has_exited>: Use
6487 TARGET_DEFAULT_RETURN..
6489 2014-02-19 Tom Tromey <tromey@redhat.com>
6491 * target-delegates.c: Rebuild.
6492 * target.c (update_current_target): Don't inherit or default
6493 to_set_syscall_catchpoint.
6494 (return_one): Remove.
6495 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6496 TARGET_DEFAULT_RETURN.
6498 2014-02-19 Tom Tromey <tromey@redhat.com>
6500 * target-delegates.c: Rebuild.
6501 * target.c (update_current_target): Don't inherit or default
6502 to_insert_exec_catchpoint.
6503 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6504 TARGET_DEFAULT_RETURN.
6506 2014-01-08 Tom Tromey <tromey@redhat.com>
6508 * target-delegates.c: Rebuild.
6509 * target.c (update_current_target): Don't inherit or default
6510 to_insert_exec_catchpoint.
6511 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6512 TARGET_DEFAULT_RETURN.
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target-delegates.c: Rebuild.
6517 * target.c (update_current_target): Don't inherit or default
6518 to_remove_vfork_catchpoint.
6519 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6520 TARGET_DEFAULT_RETURN.
6522 2014-02-19 Tom Tromey <tromey@redhat.com>
6524 * target-delegates.c: Rebuild.
6525 * target.c (update_current_target): Don't inherit or default
6526 to_insert_vfork_catchpoint.
6527 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6528 TARGET_DEFAULT_RETURN.
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * target-delegates.c: Rebuild.
6533 * target.c (update_current_target): Don't inherit or default
6534 to_remove_fork_catchpoint.
6535 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6536 TARGET_DEFAULT_RETURN.
6538 2014-02-19 Tom Tromey <tromey@redhat.com>
6540 * target-delegates.c: Rebuild.
6541 * target.c (update_current_target): Don't inherit or default
6542 to_insert_fork_catchpoint.
6543 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6544 TARGET_DEFAULT_RETURN.
6546 2014-02-19 Tom Tromey <tromey@redhat.com>
6548 * target-delegates.c: Rebuild.
6549 * target.c (update_current_target): Don't inherit or default
6550 to_post_startup_inferior.
6551 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6552 TARGET_DEFAULT_IGNORE.
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * target-delegates.c: Rebuild.
6557 * target.c (update_current_target): Don't inherit or default
6559 * target.h (struct target_ops) <to_load>: Use
6560 TARGET_DEFAULT_NORETURN.
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6564 * target-delegates.c: Rebuild.
6565 * target.c (update_current_target): Don't inherit or default
6567 * target.h (struct target_ops) <to_terminal_info>: Use
6568 TARGET_DEFAULT_FUNC.
6570 2014-02-19 Tom Tromey <tromey@redhat.com>
6572 * target-delegates.c: Rebuild.
6573 * target.c (update_current_target): Don't inherit or default
6574 to_terminal_save_ours.
6575 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6576 TARGET_DEFAULT_IGNORE.
6578 2014-02-19 Tom Tromey <tromey@redhat.com>
6580 * target-delegates.c: Rebuild.
6581 * target.c (update_current_target): Don't inherit or default
6583 * target.h (struct target_ops) <to_terminal_ours>: Use
6584 TARGET_DEFAULT_IGNORE.
6586 2014-02-19 Tom Tromey <tromey@redhat.com>
6588 * target-delegates.c: Rebuild.
6589 * target.c (update_current_target): Don't inherit or default
6590 to_terminal_ours_for_output.
6591 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6592 TARGET_DEFAULT_IGNORE.
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target-delegates.c: Rebuild.
6597 * target.c (update_current_target): Don't inherit or default
6598 to_terminal_inferior.
6599 * target.h (struct target_ops) <to_terminal_inferior>: Use
6600 TARGET_DEFAULT_IGNORE.
6602 2014-02-19 Tom Tromey <tromey@redhat.com>
6604 * target-delegates.c: Rebuild.
6605 * target.c (update_current_target): Don't inherit or default
6607 * target.h (struct target_ops) <to_terminal_init>: Use
6608 TARGET_DEFAULT_IGNORE.
6610 2014-02-19 Tom Tromey <tromey@redhat.com>
6612 * target-delegates.c: Rebuild.
6613 * target.c (update_current_target): Don't inherit or default
6614 to_can_accel_watchpoint_condition.
6615 * target.h (struct target_ops)
6616 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6618 2014-02-19 Tom Tromey <tromey@redhat.com>
6620 * target-delegates.c: Rebuild.
6621 * target.c (update_current_target): Don't inherit or default
6622 to_region_ok_for_hw_watchpoint.
6623 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6624 Use TARGET_DEFAULT_FUNC.
6626 2014-02-19 Tom Tromey <tromey@redhat.com>
6628 * target-delegates.c: Rebuild.
6629 * target.c (update_current_target): Don't inherit or default
6630 to_watchpoint_addr_within_range.
6631 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6632 Use TARGET_DEFAULT_FUNC.
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6636 * target-delegates.c: Rebuild.
6637 * target.c (update_current_target): Don't inherit or default
6638 to_remove_watchpoint.
6639 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6640 TARGET_DEFAULT_NORETURN.
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * target-delegates.c: Rebuild.
6645 * target.c (update_current_target): Don't inherit or default
6646 to_insert_watchpoint.
6647 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6648 TARGET_DEFAULT_RETURN.
6650 2014-02-19 Tom Tromey <tromey@redhat.com>
6652 * target-delegates.c: Rebuild.
6653 * target.c (update_current_target): Don't inherit or default
6654 to_remove_hw_breakpoint.
6655 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6656 TARGET_DEFAULT_RETURN.
6658 2014-02-19 Tom Tromey <tromey@redhat.com>
6660 * target-delegates.c: Rebuild.
6661 * target.c (update_current_target): Don't inherit or default
6662 to_insert_hw_breakpoint.
6663 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6664 TARGET_DEFAULT_RETURN.
6666 2014-02-19 Tom Tromey <tromey@redhat.com>
6668 * target-delegates.c: Rebuild.
6669 * target.c (update_current_target): Don't inherit or default
6670 to_can_use_hw_breakpoint.
6671 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6672 TARGET_DEFAULT_RETURN.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target-delegates.c: Rebuild.
6677 * target.c (update_current_target): Don't inherit or default
6679 * target.h (struct target_ops) <to_files_info>: Use
6680 TARGET_DEFAULT_IGNORE.
6682 2014-02-19 Tom Tromey <tromey@redhat.com>
6684 * target-delegates.c: Rebuild.
6685 * target.c (update_current_target): Don't inherit or default
6687 * target.h (struct target_ops) <to_store>: Use
6688 TARGET_DEFAULT_NORETURN.
6690 2014-02-19 Tom Tromey <tromey@redhat.com>
6692 * target-delegates.c: Rebuild.
6693 * target.c (update_current_target): Don't inherit or default
6695 * target.h (struct target_ops) <to_post_attach>: Use
6696 TARGET_DEFAULT_IGNORE.
6698 2014-02-19 Tom Tromey <tromey@redhat.com>
6700 * target-delegates.c: Rebuild.
6701 * target.c (update_current_target): Don't inherit or default
6703 (default_rcmd): New function.
6704 (do_monitor_command): Unconditionally delegate.
6705 * target.h (struct target_ops) <to_rmcd>: Use
6706 TARGET_DEFAULT_FUNC.
6708 2014-02-19 Tom Tromey <tromey@redhat.com>
6710 * target-delegates.c: Rebuild.
6711 * target.c (init_dummy_target): Don't initialize to_attach.
6712 (target_attach): Unconditionally delegate.
6713 * target.h (struct target_ops) <to_attach>: Use
6714 TARGET_DEFAULT_FUNC.
6716 2014-02-19 Tom Tromey <tromey@redhat.com>
6718 * target-delegates.c: Rebuild.
6719 * target.c (target_detach): Unconditionally delegate.
6720 (init_dummy_target): Don't initialize to_detach.
6721 * target.h (struct target_ops) <to_detach>: Use
6722 TARGET_DEFAULT_IGNORE.
6724 2014-02-19 Tom Tromey <tromey@redhat.com>
6726 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6728 (target_augmented_libraries_svr4_read): Add argument.
6729 * target.c (update_current_target): Update.
6730 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6735 * target.h (struct target_ops) <to_call_history_range>: Add
6737 * target.c (target_call_history_range): Add argument.
6738 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6740 (record_btrace_call_history_from): Update.
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6744 * target.h (struct target_ops) <to_call_history_from>: Add
6746 * target.c (target_call_history_from): Add argument.
6747 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6750 2014-02-19 Tom Tromey <tromey@redhat.com>
6752 * target.h (struct target_ops) <to_call_history>: Add argument.
6753 * target.c (target_call_history): Add argument.
6754 * record-btrace.c (record_btrace_call_history): Add 'self'
6757 2014-02-19 Tom Tromey <tromey@redhat.com>
6759 * target.h (struct target_ops) <to_insn_history_range>: Add
6761 * target.c (target_insn_history_range): Add argument.
6762 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6764 (record_btrace_insn_history_from): Update.
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target.h (struct target_ops) <to_insn_history_from>: Add
6770 * target.c (target_insn_history_from): Add argument.
6771 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6774 2014-02-19 Tom Tromey <tromey@redhat.com>
6776 * target.h (struct target_ops) <to_insn_history>: Add argument.
6777 * target.c (target_insn_history): Add argument.
6778 * record-btrace.c (record_btrace_insn_history): Add 'self'
6781 2014-02-19 Tom Tromey <tromey@redhat.com>
6783 * target.h (struct target_ops) <to_goto_record>: Add argument.
6784 * target.c (target_goto_record): Add argument.
6785 * record-full.c (record_full_goto): Add 'self' argument.
6786 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6788 2014-02-19 Tom Tromey <tromey@redhat.com>
6790 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6791 * target.c (target_goto_record_end): Add argument.
6792 * record-full.c (record_full_goto_end): Add 'self' argument.
6793 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6795 2014-02-19 Tom Tromey <tromey@redhat.com>
6797 * target.h (struct target_ops) <to_goto_record_begin>: Add
6799 * target.c (target_goto_record_begin): Add argument.
6800 * record-full.c (record_full_goto_begin): Add 'self' argument.
6801 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6806 * target.h (struct target_ops) <to_record_is_replaying>: Add
6808 * target.c (target_record_is_replaying): Add argument.
6809 * record-full.c (record_full_is_replaying): Add 'self' argument.
6810 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6812 (record_btrace_xfer_partial, record_btrace_store_registers)
6813 (record_btrace_prepare_to_store, record_btrace_resume)
6814 (record_btrace_wait, record_btrace_decr_pc_after_break)
6815 (record_btrace_find_new_threads, record_btrace_thread_alive):
6818 2014-02-19 Tom Tromey <tromey@redhat.com>
6820 * target.h (struct target_ops) <to_delete_record>: Add argument.
6821 * target.c (target_delete_record): Add argument.
6822 * record-full.c (record_full_delete): Add 'self' argument.
6824 2014-02-19 Tom Tromey <tromey@redhat.com>
6826 * target.h (struct target_ops) <to_save_record>: Add argument.
6827 * target.c (target_save_record): Add argument.
6828 * record-full.c (record_full_save): Add 'self' argument.
6829 (record_full_save): Add 'self' argument.
6831 2014-02-19 Tom Tromey <tromey@redhat.com>
6833 * target.h (struct target_ops) <to_info_record>: Add argument.
6834 * target.c (target_info_record): Add argument.
6835 * record.c (info_record_command): Add argument.
6836 * record-full.c (record_full_info): Add 'self' argument.
6837 * record-btrace.c (record_btrace_info): Add 'self' argument.
6839 2014-02-19 Tom Tromey <tromey@redhat.com>
6841 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6842 * target.c (target_stop_recording): Add argument.
6843 * record.c (record_stop): Add argument.
6844 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6847 2014-02-19 Tom Tromey <tromey@redhat.com>
6849 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6850 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6851 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6853 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6854 (_initialize_amd64_linux_nat): Use it.
6855 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6856 (_initialize_i386_linux_nat): Use it.
6858 2014-02-19 Tom Tromey <tromey@redhat.com>
6860 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6861 * target.c (target_teardown_btrace): Add argument.
6862 * remote.c (remote_teardown_btrace): Add 'self' argument.
6863 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6865 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6868 2014-02-19 Tom Tromey <tromey@redhat.com>
6870 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6871 * target.c (target_disable_btrace): Add argument.
6872 * remote.c (remote_disable_btrace): Add 'self' argument.
6873 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6875 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6878 2014-02-19 Tom Tromey <tromey@redhat.com>
6880 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6881 * target.c (target_enable_btrace): Add argument.
6882 * remote.c (remote_enable_btrace): Add 'self' argument.
6883 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6885 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6888 2014-02-19 Tom Tromey <tromey@redhat.com>
6890 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6891 (target_can_use_agent): Add argument.
6892 * target.c (update_current_target): Update.
6893 * remote.c (remote_can_use_agent): Add 'self' argument.
6894 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6896 2014-02-19 Tom Tromey <tromey@redhat.com>
6898 * target.h (struct target_ops) <to_use_agent>: Add argument.
6899 (target_use_agent): Add argument.
6900 * target.c (update_current_target): Update.
6901 * remote.c (remote_use_agent): Add 'self' argument.
6902 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6904 2014-02-19 Tom Tromey <tromey@redhat.com>
6906 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6907 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6908 (target_traceframe_info): Add argument.
6909 * target.c (update_current_target): Update.
6910 * remote.c (remote_traceframe_info): Add 'self' argument.
6911 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6913 2014-02-19 Tom Tromey <tromey@redhat.com>
6915 * target.h (target_static_tracepoint_markers_by_strid): Add
6917 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6919 * target.c (update_current_target): Update.
6920 * remote.c (struct target_ops)
6921 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6922 * linux-nat.c (struct target_ops)
6923 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6929 (target_static_tracepoint_marker_at): Add argument.
6930 * target.c (update_current_target): Update.
6931 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6934 2014-02-19 Tom Tromey <tromey@redhat.com>
6936 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6937 (target_set_permissions): Add argument.
6938 * target.c (update_current_target): Update.
6939 * remote.c (remote_set_permissions): Add 'self' argument.
6940 (remote_start_remote): Update.
6942 2014-02-19 Tom Tromey <tromey@redhat.com>
6944 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6945 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6946 (target_get_tib_address): Add argument.
6947 * target.c (update_current_target): Update.
6948 * remote.c (remote_get_tib_address): Add 'self' argument.
6950 2014-02-19 Tom Tromey <tromey@redhat.com>
6952 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6953 (target_set_trace_notes): Add argument.
6954 * target.c (update_current_target): Update.
6955 * remote.c (remote_set_trace_notes): Add 'self' argument.
6957 2014-02-19 Tom Tromey <tromey@redhat.com>
6959 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6961 (target_set_trace_buffer_size): Add argument.
6962 * target.c (update_current_target): Update.
6963 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6967 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6969 (target_set_circular_trace_buffer): Add argument.
6970 * target.c (update_current_target): Update.
6971 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6976 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6978 (target_set_disconnected_tracing): Add argument.
6979 * target.c (update_current_target): Update.
6980 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6982 2014-02-19 Tom Tromey <tromey@redhat.com>
6984 * target.h (struct target_ops)
6985 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6986 (target_get_min_fast_tracepoint_insn_len): Add argument.
6987 * target.c (update_current_target): Update.
6988 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6991 2014-02-19 Tom Tromey <tromey@redhat.com>
6993 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6995 (target_get_raw_trace_data): Add argument.
6996 * target.c (update_current_target): Update.
6997 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6999 2014-02-19 Tom Tromey <tromey@redhat.com>
7001 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7003 (target_upload_trace_state_variables): Add argument.
7004 * target.c (update_current_target): Update.
7005 * remote.c (remote_upload_trace_state_variables): Add 'self'
7007 (remote_start_remote): Update.
7009 2014-02-19 Tom Tromey <tromey@redhat.com>
7011 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7013 (target_upload_tracepoints): Add argument.
7014 * target.c (update_current_target): Update.
7015 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7016 (remote_start_remote): Update.
7018 2014-02-19 Tom Tromey <tromey@redhat.com>
7020 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7021 (target_save_trace_data): Add argument.
7022 * target.c (update_current_target): Update.
7023 * remote.c (remote_save_trace_data): Add 'self' argument.
7025 2014-02-19 Tom Tromey <tromey@redhat.com>
7027 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7029 * target.h (struct target_ops)
7030 <to_get_trace_state_variable_value>: Add argument.
7031 (target_get_trace_state_variable_value): Add argument.
7032 * target.c (update_current_target): Update.
7033 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7035 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7040 * target.h (struct target_ops) <to_trace_find>: Add argument.
7041 (target_trace_find): Add argument.
7042 * target.c (update_current_target): Update.
7043 * remote.c (remote_trace_find): Add 'self' argument.
7044 * ctf.c (ctf_trace_find): Add 'self' argument.
7046 2014-02-19 Tom Tromey <tromey@redhat.com>
7048 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7049 (target_trace_stop): Add argument.
7050 * target.c (update_current_target): Update.
7051 * remote.c (remote_trace_stop): Add 'self' argument.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7056 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7058 (target_get_tracepoint_status): Add argument.
7059 * target.c (update_current_target): Update.
7060 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7062 2014-02-19 Tom Tromey <tromey@redhat.com>
7064 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7065 * target.h (struct target_ops) <to_get_trace_status>: Add
7067 (target_get_trace_status): Add argument.
7068 * target.c (update_current_target): Update.
7069 * remote.c (remote_get_trace_status): Add 'self' argument.
7070 (remote_start_remote, remote_can_download_tracepoint): Update.
7071 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7073 2014-02-19 Tom Tromey <tromey@redhat.com>
7075 * target.h (struct target_ops) <to_trace_start>: Add argument.
7076 (target_trace_start): Add argument.
7077 * target.c (update_current_target): Update.
7078 * remote.c (remote_trace_start): Add 'self' argument.
7080 2014-02-19 Tom Tromey <tromey@redhat.com>
7082 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7084 (target_trace_set_readonly_regions): Add argument.
7085 * target.c (update_current_target): Update.
7086 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7091 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7093 (target_disable_tracepoint): Add argument.
7094 * target.c (update_current_target): Update.
7095 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7097 2014-02-19 Tom Tromey <tromey@redhat.com>
7099 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7101 (target_enable_tracepoint): Add argument.
7102 * target.c (update_current_target): Update.
7103 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7105 2014-02-19 Tom Tromey <tromey@redhat.com>
7107 * target.h (struct target_ops) <to_download_trace_state_variable>:
7109 (target_download_trace_state_variable): Add argument.
7110 * target.c (update_current_target): Update.
7111 * remote.c (remote_download_trace_state_variable): Add 'self'
7114 2014-02-19 Tom Tromey <tromey@redhat.com>
7116 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7118 (target_can_download_tracepoint): Add argument.
7119 * target.c (update_current_target): Update.
7120 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7122 2014-02-19 Tom Tromey <tromey@redhat.com>
7124 * target.h (struct target_ops) <to_download_tracepoint>: Add
7126 (target_download_tracepoint): Add argument.
7127 * target.c (update_current_target): Update.
7128 * remote.c (remote_download_tracepoint): Add 'self' argument.
7130 2014-02-19 Tom Tromey <tromey@redhat.com>
7132 * target.h (struct target_ops) <to_trace_init>: Add argument.
7133 (target_trace_init): Add argument.
7134 * target.c (update_current_target): Update.
7135 * remote.c (remote_trace_init): Add 'self' argument.
7137 2014-02-19 Tom Tromey <tromey@redhat.com>
7139 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7140 * target.c (target_fileio_readlink): Add argument.
7141 * remote.c (remote_hostio_readlink): Add 'self' argument.
7142 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7147 * target.c (target_fileio_unlink): Add argument.
7148 * remote.c (remote_hostio_unlink): Add 'self' argument.
7149 (remote_file_delete): Update.
7150 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7155 * target.c (target_fileio_close): Add argument.
7156 * remote.c (remote_hostio_close): Add 'self' argument.
7157 (remote_hostio_close_cleanup): Update.
7158 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7160 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7162 2014-02-19 Tom Tromey <tromey@redhat.com>
7164 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7165 * target.c (target_fileio_pread): Add argument.
7166 * remote.c (remote_hostio_pread): Add 'self' argument.
7167 (remote_bfd_iovec_pread, remote_file_get): Update.
7168 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7170 2014-02-19 Tom Tromey <tromey@redhat.com>
7172 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7173 * target.c (target_fileio_pwrite): Add argument.
7174 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7175 (remote_file_put): Update.
7176 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7181 * target.c (target_fileio_open): Add argument.
7182 * remote.c (remote_hostio_open): Add 'self' argument.
7183 (remote_bfd_iovec_open): Add 'self' argument.
7184 (remote_file_put): Add 'self' argument.
7185 (remote_file_get): Add 'self' argument.
7186 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7192 (target_can_run_breakpoint_commands): Add argument.
7193 * target.c (update_current_target): Update.
7194 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7196 (remote_insert_breakpoint): Add 'self' argument.
7197 (remote_insert_hw_breakpoint): Add 'self' argument.
7198 (remote_can_run_breakpoint_commands): Add 'self' argument.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target.h (struct target_ops)
7203 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7204 (target_supports_evaluation_of_breakpoint_conditions): Add
7206 * target.c (update_current_target): Update.
7207 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7209 (remote_insert_breakpoint): Add 'self' argument.
7210 (remote_insert_hw_breakpoint): Add 'self' argument.
7211 (remote_supports_cond_breakpoints): Add 'self' argument.
7213 2014-02-19 Tom Tromey <tromey@redhat.com>
7215 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7217 (target_supports_string_tracing): Add argument.
7218 * target.c (update_current_target): Update.
7219 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target.h (struct target_ops)
7224 <to_supports_disable_randomization>: Add argument.
7225 * target.c (find_default_supports_disable_randomization): Add
7227 (target_supports_disable_randomization): Add argument.
7228 (find_default_supports_disable_randomization): Add 'self'
7230 * remote.c (extended_remote_supports_disable_randomization): Add
7232 (remote_supports_disable_randomization): Add 'self' argument.
7233 (extended_remote_create_inferior): Update.
7234 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * target.h (struct target_ops)
7240 <to_supports_enable_disable_tracepoint>: Add argument.
7241 (target_supports_enable_disable_tracepoint): Add argument.
7242 * target.c (update_current_target): Update.
7243 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7248 * target.h (struct target_ops) <to_supports_multi_process>: Add
7250 (target_supports_multi_process): Add argument.
7251 * target.c (update_current_target): Update.
7252 * remote.c (remote_supports_multi_process): Add 'self' argument.
7253 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7255 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target.h (struct target_ops) <to_execution_direction>: Add
7262 (target_execution_direction): Add argument.
7263 * target.c (default_execution_direction): Add 'self' argument.
7264 * record-full.c (record_full_execution_direction): Add 'self'
7267 2014-02-19 Tom Tromey <tromey@redhat.com>
7269 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7271 (target_can_execute_reverse): Add argument.
7272 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7273 * record-full.c (record_full_can_execute_reverse): Add 'self'
7275 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7278 2014-02-19 Tom Tromey <tromey@redhat.com>
7280 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7281 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7283 (target_get_ada_task_ptid): Add argument.
7284 * target.c (update_current_target): Update.
7285 (default_get_ada_task_ptid): Add 'self' argument.
7286 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7287 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7288 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7290 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7292 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7294 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7296 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7297 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7300 2014-02-19 Tom Tromey <tromey@redhat.com>
7302 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7303 (target_goto_bookmark): Add argument.
7304 * target.c (dummy_goto_bookmark): Add 'self' argument.
7305 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7307 2014-02-19 Tom Tromey <tromey@redhat.com>
7309 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7310 (target_get_bookmark): Add argument.
7311 * target.c (dummy_get_bookmark): Add 'self' argument.
7312 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7314 2014-02-19 Tom Tromey <tromey@redhat.com>
7316 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7318 (target_make_corefile_notes): Add argument.
7319 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7320 * procfs.c (procfs_make_note_section): Add 'self' argument.
7321 (procfs_make_note_section): Add 'self' argument.
7322 (procfs_make_note_section): Add 'self' argument.
7323 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7325 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7326 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7327 * exec.c (exec_make_note_section): Add 'self' argument.
7328 (exec_make_note_section): Add 'self' argument.
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7332 * target.h (struct target_ops) <to_find_memory_regions>: Add
7334 (target_find_memory_regions): Add argument.
7335 * target.c (dummy_find_memory_regions): Add 'self' argument.
7336 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7337 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7338 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7339 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7340 * exec. (exec_do_find_memory_regions): New global.
7341 (exec_set_find_memory_regions): Rewrite.
7342 (exec_find_memory_regions): New function.
7343 (init_exec_ops): Use exec_find_memory_regions.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target.h (struct target_ops) <to_supports_non_stop>: Add
7349 * target.c (find_default_supports_non_stop): Add argument.
7350 (target_supports_non_stop): Add argument.
7351 (find_default_supports_non_stop): Add 'self' argument.
7352 * remote.c (remote_supports_non_stop): Add 'self' argument.
7353 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target.h (struct target_ops) <to_log_command>: Add argument.
7358 (target_log_command): Add argument.
7359 * serial.h (serial_log_command): Add 'self' argument.
7360 * serial.c (serial_log_command): Add 'self' argument.
7362 2014-02-19 Tom Tromey <tromey@redhat.com>
7364 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7365 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7367 (target_pid_to_exec_file): Add argument.
7368 * target.c (debug_to_pid_to_exec_file): Add argument.
7369 (update_current_target): Update.
7370 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7371 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7372 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7373 (linux_handle_extended_wait): Update.
7374 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7375 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7376 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7377 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7379 2014-02-19 Tom Tromey <tromey@redhat.com>
7381 * target.h (struct target_ops) <to_rcmd>: Add argument.
7382 (target_rcmd): Add argument.
7383 * target.c (debug_to_rcmd): Add argument.
7384 (update_current_target, do_monitor_command): Update.
7385 * remote.c (remote_rcmd): Add 'self' argument.
7386 * monitor.c (monitor_rcmd): Add 'self' argument.
7388 2014-02-19 Tom Tromey <tromey@redhat.com>
7390 * windows-nat.c (windows_stop): Add 'self' argument.
7391 * target.h (struct target_ops) <to_stop>: Add argument.
7392 * target.c (target_stop): Add argument.
7393 (debug_to_stop): Add argument.
7394 (update_current_target): Update.
7395 * remote.c (remote_stop): Add 'self' argument.
7396 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7397 (gdbsim_cntrl_c): Update.
7398 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7399 * procfs.c (procfs_stop): Add 'self' argument.
7400 * nto-procfs.c (procfs_stop): Add 'self' argument.
7401 * monitor.c (monitor_stop): Add 'self' argument.
7402 (monitor_open): Update.
7403 * linux-nat.c (linux_nat_stop): Add argument.
7404 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7405 * gnu-nat.c (gnu_stop): Add 'self' argument.
7406 * darwin-nat.c (darwin_stop): Add 'self' argument.
7408 2014-02-19 Tom Tromey <tromey@redhat.com>
7410 * target.h (struct target_ops) <to_thread_name>: Add argument.
7411 * target.c (target_thread_name): Add argument.
7412 (update_current_target): Update.
7413 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7417 * target.h (struct target_ops) <to_extra_thread_info>: Add
7419 (target_extra_thread_info): Add argument.
7420 * target.c (update_current_target): Update.
7421 * remote.c (remote_threads_extra_info): Add 'self' argument.
7422 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7424 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7425 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7426 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7428 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7430 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7432 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7437 * target.h (struct target_ops) <to_program_signals>: Add argument.
7438 * target.c (target_program_signals): Add argument.
7439 * remote.c (remote_program_signals): Add 'self' argument.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7444 * target.c (target_pass_signals): Add argument.
7445 * remote.c (remote_pass_signals): Add 'self' argument.
7446 (remote_start_remote): Update.
7447 * procfs.c (procfs_pass_signals): Add 'self' argument.
7448 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7449 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7450 (linux_nat_create_inferior, linux_nat_attach): Update.
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7454 * windows-nat.c (windows_can_run): Add 'self' argument.
7455 * target.h (struct target_ops) <to_can_run>: Add argument.
7456 (target_can_run): Add argument.
7457 * target.c (debug_to_can_run): Add argument.
7458 (update_current_target): Update.
7459 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7460 * inf-child.c (inf_child_can_run): Add 'self' argument.
7461 * go32-nat.c (go32_can_run): Add 'self' argument.
7463 2014-02-19 Tom Tromey <tromey@redhat.com>
7465 * target.h (struct target_ops) <to_has_exited>: Add argument.
7466 (target_has_exited): Add argument.
7467 * target.c (debug_to_has_exited): Add argument.
7468 (update_current_target): Update.
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7474 (target_set_syscall_catchpoint): Add argument.
7475 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7477 * target.c (update_current_target): Update.
7479 2014-02-19 Tom Tromey <tromey@redhat.com>
7481 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7483 (target_remove_exec_catchpoint): Add argument.
7484 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7485 (update_current_target): Update.
7486 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7493 (target_insert_exec_catchpoint): Add argument.
7494 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7495 (update_current_target): Update.
7496 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7503 (target_remove_vfork_catchpoint): Add argument.
7504 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7505 (update_current_target): Update.
7506 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7513 (target_insert_vfork_catchpoint): Add argument.
7514 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7515 (update_current_target): Update.
7516 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7519 2014-02-19 Tom Tromey <tromey@redhat.com>
7521 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7523 (target_remove_fork_catchpoint): Add argument.
7524 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7525 (update_current_target): Update.
7526 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7531 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7533 (target_insert_fork_catchpoint): Add argument.
7534 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7535 (update_current_target): Update.
7536 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7539 2014-02-19 Tom Tromey <tromey@redhat.com>
7541 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7543 (target_post_startup_inferior): Add argument.
7544 * target.c (debug_to_post_startup_inferior): Add argument.
7545 (update_current_target): Update.
7546 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7548 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7550 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7552 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7554 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7556 (super_post_startup_inferior): Likewise.
7557 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7559 (super_post_startup_inferior): Likewise.
7560 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7561 Add 'self' argument.
7562 (super_post_startup_inferior): Likewise.
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target.h (struct target_ops) <to_load>: Add argument.
7567 * target.c (target_load): Add argument.
7568 (debug_to_load): Add argument.
7569 (update_current_target): Update.
7570 * remote.c (remote_load): Add 'self' argument.
7571 * remote-sim.c (gdbsim_load): Add 'self' argument.
7572 * remote-mips.c (mips_load): Add 'self' argument.
7573 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7574 * monitor.c (monitor_load): Add 'self' argument.
7575 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7579 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7580 (target_terminal_info): Add argument.
7581 * target.c (debug_to_terminal_info): Add argument.
7582 (default_terminal_info): Likewise.
7583 * inflow.c (child_terminal_info): Add 'self' argument.
7584 * inferior.h (child_terminal_info): Add 'self' argument.
7585 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7591 (target_terminal_save_ours): Add argument.
7592 * target.c (debug_to_terminal_save_ours): Add argument.
7593 (update_current_target): Update.
7594 * inflow.c (terminal_save_ours): Add 'self' argument.
7595 * inferior.h (terminal_save_ours): Add 'self' argument.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7600 (target_terminal_ours): Add argument.
7601 * target.c (debug_to_terminal_ours): Add argument.
7602 (update_current_target): Update.
7603 * remote.c (remote_terminal_ours): Add 'self' argument.
7604 (remote_close): Update.
7605 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7606 * inflow.c (terminal_ours): Add 'self' argument.
7607 * inferior.h (terminal_ours): Add 'self' argument.
7608 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7610 2014-02-19 Pedro Alves <palves@redhat.com>
7611 Tom Tromey <tromey@redhat.com>
7613 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7615 (target_terminal_ours_for_output): Add argument.
7616 * target.c (debug_to_terminal_ours_for_output): Add argument.
7617 (update_current_target): Update.
7618 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7619 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7620 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target.h (struct target_ops) <to_terminal_inferior>: Add
7626 * target.c (target_terminal_inferior): Add argument.
7627 (update_current_target): Update.
7628 * remote.c (remote_terminal_inferior): Add 'self' argument.
7629 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7630 * inflow.c (terminal_inferior): Add 'self' argument.
7631 * inferior.h (terminal_inferior): Add 'self' argument.
7632 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7633 (go32_terminal_inferior): Add 'self' argument.
7635 2014-02-19 Tom Tromey <tromey@redhat.com>
7637 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7638 (target_terminal_init): Add argument.
7639 * target.c (debug_to_terminal_init): Add argument.
7640 (update_current_target): Update.
7641 * inflow.c (terminal_init_inferior): Add 'self' argument.
7642 * inferior.h (terminal_init_inferior): Add 'self' argument.
7643 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7644 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7648 * target.h (struct target_ops)
7649 <to_can_accel_watchpoint_condition>: Add argument.
7650 (target_can_accel_watchpoint_condition): Add argument.
7651 * target.c (debug_to_can_accel_watchpoint_condition): Add
7653 (update_current_target): Update.
7654 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7659 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7661 (target_region_ok_for_hw_watchpoint): Add argument.
7662 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7663 (default_region_ok_for_hw_watchpoint): Add argument.
7664 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7665 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7667 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7669 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7671 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7673 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7675 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7677 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7678 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7680 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7681 Add 'self' argument.
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7685 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7687 (target_insert_watchpoint): Add argument.
7688 * target.c (debug_to_insert_watchpoint): Add argument.
7689 (update_current_target): Update.
7690 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7691 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7692 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7693 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7694 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7695 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7697 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7698 (procfs_insert_hw_watchpoint): Add 'self' argument.
7699 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7701 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7703 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7705 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7706 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7708 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7711 2014-02-19 Tom Tromey <tromey@redhat.com>
7713 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7715 (target_remove_watchpoint): Add argument.
7716 * target.c (debug_to_remove_watchpoint): Add argument.
7717 (update_current_target): Update.
7718 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7719 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7720 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7721 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7722 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7723 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7725 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7726 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7728 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7730 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7732 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7733 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7735 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7738 2014-02-19 Tom Tromey <tromey@redhat.com>
7740 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7742 (target_remove_hw_breakpoint): Add argument.
7743 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7744 (update_current_target): Update.
7745 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7746 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7748 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7749 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7751 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7754 2014-02-19 Tom Tromey <tromey@redhat.com>
7756 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7758 (target_insert_hw_breakpoint): Add argument.
7759 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7760 (update_current_target): Update.
7761 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7762 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7764 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7765 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7766 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7768 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7771 2014-02-19 Tom Tromey <tromey@redhat.com>
7773 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7775 (target_can_use_hardware_watchpoint): Add argument.
7776 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7777 (update_current_target): Update.
7778 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7780 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7782 * remote.c (remote_check_watch_resources): Add 'self' argument.
7783 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7784 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7786 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7787 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7789 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7791 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7793 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7795 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7797 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7799 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7800 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7802 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7805 2014-02-19 Tom Tromey <tromey@redhat.com>
7807 * target.h (struct target_ops) <to_post_attach>: Add argument.
7808 (target_post_attach): Add argument.
7809 * target.c (debug_to_post_attach): Add argument.
7810 (update_current_target): Update.
7811 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7812 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7813 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7814 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7815 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7817 2014-02-19 Tom Tromey <tromey@redhat.com>
7819 * windows-nat.c (windows_close): Add 'self' argument.
7820 * tracepoint.c (tfile_close): Add 'self' argument.
7821 * target.h (struct target_ops) <to_close>: Add argument.
7822 * target.c (target_close): Add argument.
7823 (update_current_target): Update.
7824 * remote.c (remote_close): Add 'self' argument.
7825 * remote-sim.c (gdbsim_close): Add 'self' argument.
7826 * remote-mips.c (mips_close): Add 'self' argument.
7827 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7828 * record-full.c (record_full_close): Add 'self' argument.
7829 * record-btrace.c (record_btrace_close): Add 'self' argument.
7830 * monitor.h (monitor_close): Add 'self' argument.
7831 * monitor.c (monitor_close): Add 'self' argument.
7832 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7833 * linux-nat.c (linux_nat_close): Add argument.
7834 * go32-nat.c (go32_close): Add 'self' argument.
7835 * exec.c (exec_close_1): Add 'self' argument.
7836 * ctf.c (ctf_close): Add 'self' argument.
7837 * corelow.c (core_close): Add 'self' argument.
7838 (core_close_cleanup): Update.
7839 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7840 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7844 * remote.c (remote_load): New function.
7845 (init_remote_ops): Use it.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7851 * common/linux-btrace.h (linux_supports_btrace): Update.
7852 * remote.c (remote_supports_btrace): Add "self" argument.
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_supports_btrace): Remove.
7855 * target.h (struct target_ops) <to_supports_btrace>: Add
7856 target_ops argument.
7857 (target_supports_btrace): New define.
7859 2014-02-19 Tom Tromey <tromey@redhat.com>
7861 * record-full.c (record_full_beneath_to_resume_ops)
7862 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7863 (record_full_beneath_to_wait)
7864 (record_full_beneath_to_store_registers_ops)
7865 (record_full_beneath_to_store_registers)
7866 (record_full_beneath_to_xfer_partial_ops)
7867 (record_full_beneath_to_xfer_partial)
7868 (record_full_beneath_to_insert_breakpoint_ops)
7869 (record_full_beneath_to_insert_breakpoint)
7870 (record_full_beneath_to_remove_breakpoint_ops)
7871 (record_full_beneath_to_remove_breakpoint)
7872 (record_full_beneath_to_stopped_by_watchpoint)
7873 (record_full_beneath_to_stopped_data_address)
7874 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7875 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7876 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7877 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7878 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7879 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7880 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7881 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7882 (record_full_resume, record_full_wait_1)
7883 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7884 (record_full_store_registers, record_full_xfer_partial)
7885 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7886 (record_full_async, record_full_core_xfer_partial): Use target
7888 * target-delegates.c: Rebuild.
7889 * target.c (current_xfer_partial): Remove.
7890 (update_current_target): Do not INHERIT or de_fault
7891 to_insert_breakpoint, to_remove_breakpoint,
7892 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7893 to_is_async_p, to_async. Do not set to_xfer_partial field.
7894 (default_xfer_partial): Simplify.
7895 (current_xfer_partial): Remove.
7896 (target_wait, target_resume): Simplify.
7897 (find_default_can_async_p, find_default_is_async_p): Update.
7898 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7899 to_xfer_partial, to_stopped_by_watchpoint,
7900 to_stopped_data_address.
7901 (target_store_registers): Simplify.
7902 (forward_target_remove_breakpoint)
7903 (forward_target_insert_breakpoint): Remove.
7904 (target_remove_breakpoint, target_insert_breakpoint)
7905 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7906 * target.h (struct target_ops) <to_resume, to_wait,
7907 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7908 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7909 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7911 (forward_target_remove_breakpoint)
7912 (forward_target_insert_breakpoint): Remove.
7913 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7915 (record_btrace_insert_breakpoint): Delegate directly.
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: New file.
7921 * target.c: Include target-delegates.c.
7922 (init_dummy_target): Call install_dummy_methods.
7923 (complete_target_initialization): Call install_delegators.
7924 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7925 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7926 * make-target-delegates: New file.
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7930 * record.c (find_record_target): Use find_target_at.
7931 * target.c (find_target_at): New function.
7932 * target.h (find_target_at): Declare.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7938 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7940 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7941 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7943 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7945 * linux-nat.c (save_sigtrap): Update.
7946 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7947 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7948 (linux_nat_close): Update.
7949 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7951 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7953 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7954 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7955 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7956 (tmp_to_async): Add 'ops' argument.
7957 (record_full_stopped_by_watchpoint, record_full_async)
7958 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7960 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7961 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7962 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7963 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7964 (remote_is_async_p, remote_async): Add 'ops' argument.
7965 (remote_stopped_data_address): Update.
7966 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7967 * target.c (update_current_target)
7968 (find_default_can_async_p, find_default_is_async_p): Update.
7969 (init_dummy_target): Update.
7970 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7971 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7972 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7973 (target_can_async_p, target_is_async_p, target_async)
7974 (target_stopped_by_watchpoint): Update.
7976 2014-02-19 Yao Qi <yao@codesourcery.com>
7979 * gdbarch.sh: Remove startup_gdbarch.
7980 * gdbarch.c: Regenerated.
7981 * gdbarch.h: Likewise.
7983 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7985 * rl78-tdep.c (rl78_g10_register_name): New function.
7986 (rl78_return_value): Add g10 support.
7987 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7990 2014-02-17 Doug Evans <xdje42@gmail.com>
7992 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7993 (SUBDIR_GUILE_SRCS): Ditto.
7994 (scm-gsmob.o): Ditto.
7996 2014-02-17 Yao Qi <yao@codesourcery.com>
7998 * gnu-nat.c (ILL_RPC): Declare defined function.
8000 2014-02-17 Yao Qi <yao@codesourcery.com>
8002 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8003 mach_msg_type_number_t.
8004 (gnu_write_inferior): Likewise.
8006 2014-02-17 Yao Qi <yao@codesourcery.com>
8008 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8010 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8011 (inf_validate_procs, inf_signal): Likewise.
8012 (S_exception_raise_request): Likewise.
8013 (do_mach_notify_dead_name): Likewise.
8014 (steal_exc_port): Likewise.
8015 (gnu_read_inferior): Change 'copy_count''s type to
8016 mach_msg_type_number_t.
8017 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8020 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8022 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8023 flag. Adjust all users; in particular...
8024 (gnu_wait): ..., don't decrement its value in here...
8025 (gnu_create_inferior): ..., and instead set the flag in here,
8026 around the startup_inferior call, and call that one with
8027 START_INFERIOR_TRAPS_EXPECTED.
8029 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8030 (ILL_RPC): ... new macro.
8031 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8032 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8033 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8034 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8035 functions with ILL_RPC macro.
8036 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8037 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8038 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8039 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8040 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8041 (S_proc_getlogin_reply, S_proc_getsid_reply)
8042 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8043 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8044 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8045 (S_proc_getnports_reply, S_proc_is_important_reply)
8046 (S_proc_get_code_reply): New stub functions, generated with
8049 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8050 collected the type check structures.
8052 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8054 2014-02-14 Doug Evans <dje@google.com>
8056 * target.c (target_write_partial): Fix result type.
8058 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8060 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8061 the proper offsets to access fpregset_t.
8063 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8065 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8066 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8067 * h8300-tdep.c (setmachinelist): Remove global.
8068 * hppa-tdep.c (hppa_sigtramp): Remove global.
8069 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8070 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8071 * ravenscar-thread.c (update_target_observer): Remove global.
8072 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8074 2014-02-12 Tom Tromey <tromey@redhat.com>
8076 * common/rsp-low.c: Update comments.
8077 * common/rsp-low.h: Update comments.
8079 2014-02-12 Tom Tromey <tromey@redhat.com>
8081 * common/rsp-low.c (convert_ascii_to_int): Remove.
8082 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8084 2014-02-12 Tom Tromey <tromey@redhat.com>
8086 * common/rsp-low.h (unhexify): Don't declare.
8087 * common/rsp-low.c (unhexify): Remove.
8089 2014-02-12 Tom Tromey <tromey@redhat.com>
8091 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8092 * common/rsp-low.c (convert_int_to_ascii): Remove.
8094 2014-02-12 Tom Tromey <tromey@redhat.com>
8096 * common/rsp-low.h (hexify): Don't declare.
8097 * common/rsp-low.c (hexify): Remove.
8099 2014-02-12 Tom Tromey <tromey@redhat.com>
8101 * common/rsp-low.c (hexify): Never take strlen of argument.
8103 2014-02-12 Tom Tromey <tromey@redhat.com>
8105 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8106 * remote.c (extended_remote_run, remote_rcmd)
8107 (remote_download_trace_state_variable, remote_save_trace_data)
8108 (remote_set_trace_notes): Update.
8109 * tracepoint.c (encode_source_string, tfile_write_status)
8110 (tfile_write_uploaded_tsv): Update.
8112 2014-02-12 Tom Tromey <tromey@redhat.com>
8114 * tracepoint.c: Include rsp-low.h.
8115 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8116 * remote.c: Include rsp-low.h.
8117 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8118 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8119 (remote_unescape_input): Move to common/rsp-low.c.
8120 * common/rsp-low.h: New file.
8121 * common/rsp-low.c: New file.
8122 * Makefile.in (SFILES): Add common/rsp-low.c.
8123 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8124 (COMMON_OBS): Add rsp-low.o.
8125 (rsp-low.o): New target.
8127 2014-02-12 Tom Tromey <tromey@redhat.com>
8129 * utils.h: Include print-utils.h.
8130 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8131 (int_string, core_addr_to_string, core_addr_to_string_nz)
8132 (hex_string, hex_string_custom): Don't declare.
8133 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8134 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8135 (hex_string_custom, int_string, core_addr_to_string)
8136 (core_addr_to_string_nz, host_address_to_string): Move to
8137 common/print-utils.c.
8138 * common/print-utils.h: New file.
8139 * common/print-utils.c: New file
8140 * Makefile.in (SFILES): Add common/print-utils.c.
8141 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8142 (COMMON_OBS): Add print-utils.o.
8143 (print-utils.o): New target.
8145 2014-02-12 Tom Tromey <tromey@redhat.com>
8147 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8149 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8151 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8153 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8155 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8156 if a PT_IO ptrace request returns sucessfully but indicates that 0
8157 bytes were transferred.
8159 2014-02-12 Pedro Alves <palves@redhat.com>
8160 Kevin Buettner <kevinb@redhat.com>
8162 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8163 TYPE_INSTANCE_FLAG_CODE_SPACE.
8165 2014-02-12 Pedro Alves <palves@redhat.com>
8167 * h8300-tdep.c (pseudo_from_raw_register)
8168 (raw_from_pseudo_register): New functions.
8169 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8172 2014-02-12 Pedro Alves <palves@redhat.com>
8174 * h8300-tdep.c (h8300_register_sim_regno): New function.
8175 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8176 gdbarch_register_sim_regno hook.
8178 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8180 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8182 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8184 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8186 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8188 * obsd-tdep.h (obsd_init_abi): New prototype.
8189 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8190 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8191 (obsd_init_abi): New functions.
8192 * i386obsd-tdep.c: Include "obsd-tdep.h".
8193 (i386obsd_init_abi): Call obsd_init_abi.
8194 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8195 (amd64obsd_init_abi): Call obsd_init_abi.
8196 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8197 obsd-tdep.c to gdb_target_obs.
8199 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8201 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8202 double float arguments to 16-byte in the argument slots.
8204 2014-02-11 Doug Evans <xdje42@gmail.com>
8206 * configure.ac: Don't crash if pkg-config is not found and guile
8207 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8209 * configure: Regenerate.
8211 2014-02-11 Yao Qi <yao@codesourcery.com>
8213 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8214 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8215 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8216 * gnu-nat.c (gnu_xfer_memory): Likewise.
8217 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8218 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8219 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8220 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8222 2014-02-11 Yao Qi <yao@codesourcery.com>
8224 * target.h (enum target_xfer_error): Rename to ...
8225 (enum target_xfer_status): ... it. New. All users updated.
8226 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8228 (TARGET_XFER_STATUS_ERROR_P): New macro.
8229 (target_xfer_error_to_string): Remove declaration.
8230 (target_xfer_status_to_string): Declare.
8231 (target_xfer_partial_ftype): Adjust it.
8232 (struct target_ops) <to_xfer_partial>: Return
8233 target_xfer_status. Add argument xfered_len. Update
8235 * target.c (target_xfer_error_to_string): Rename to ...
8236 (target_xfer_status_to_string): ... it. New. All callers
8238 (target_read_live_memory): Likewise. Call target_xfer_partial
8239 instead of target_read.
8240 (memory_xfer_live_readonly_partial): Return
8241 target_xfer_status. Add argument xfered_len.
8242 (raw_memory_xfer_partial): Likewise.
8243 (memory_xfer_partial_1): Likewise.
8244 (memory_xfer_partial): Likewise.
8245 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8246 properly. Update debug message.
8247 (default_xfer_partial, current_xfer_partial): Likewise.
8248 (target_write_partial): Likewise.
8249 (target_read_partial): Likewise. All callers updated.
8250 (read_whatever_is_readable): Likewise.
8251 (target_write_with_progress): Likewise.
8252 (target_read_alloc_1): Likewise.
8254 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8255 * auxv.c (procfs_xfer_auxv): Likewise.
8256 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8257 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8258 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8259 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8260 * corefile.c (read_memory): Adjust.
8261 * corelow.c (core_xfer_partial): Likewise.
8262 * ctf.c (ctf_xfer_partial): Likewise.
8263 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8265 (darwin_xfer_partial): Likewise.
8266 * exec.c (section_table_xfer_memory_partial): Likewise. All
8268 (exec_xfer_partial): Likewise.
8269 * exec.h (section_table_xfer_memory_partial): Update
8271 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8273 (gnu_xfer_partial): Likewise.
8274 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8275 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8276 (ia64_hpux_xfer_solib_got): Likewise.
8277 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8278 type of 'partial_len' to ULONGEST.
8279 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8280 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8281 (linux_nat_xfer_partial): Likewise.
8282 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8283 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8284 * monitor.c (monitor_xfer_memory): Likewise.
8285 (monitor_xfer_partial): Likewise.
8286 * procfs.c (procfs_xfer_partial): Likewise.
8287 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8288 * record-full.c (record_full_xfer_partial): Likewise.
8289 (record_full_core_xfer_partial): Likewise.
8290 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8291 (gdbsim_xfer_partial): Likewise.
8292 * remote.c (remote_write_bytes_aux): Likewise. All callers
8294 (remote_write_bytes, remote_read_bytes): Likewise. All
8296 (remote_flash_erase): Likewise. All callers updated.
8297 (remote_write_qxfer): Likewise. All callers updated.
8298 (remote_read_qxfer): Likewise. All callers updated.
8299 (remote_xfer_partial): Likewise.
8300 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8301 (rs6000_xfer_shared_libraries): Likewise.
8302 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8303 (sol_thread_xfer_partial): Likewise.
8304 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8305 (sparc_xfer_partial): Likewise.
8306 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8308 (spu_xfer_partial): Likewise.
8309 * spu-multiarch.c (spu_xfer_partial): Likewise.
8310 * tracepoint.c (tfile_xfer_partial): Likewise.
8311 * windows-nat.c (windows_xfer_memory): Likewise.
8312 (windows_xfer_shared_libraries): Likewise.
8313 (windows_xfer_partial): Likewise.
8314 * valprint.c: Replace 'target_xfer_error' with
8315 'target_xfer_status' in comments.
8317 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8319 Checked in by Joel Brobecker <brobecker@adacore.com>.
8320 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8322 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8324 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8325 function parameters.
8327 2014-02-10 Will Newton <will.newton@linaro.org>
8329 * elfread.c (elf_rel_plt_read): Look for a .got section if
8330 looking up .got.plt fails.
8331 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8332 on address passed to elf_gnu_ifunc_record_cache.
8333 (elf_gnu_ifunc_resolve_addr): Likewise.
8334 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8336 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8338 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8339 (X_RETTURN): New macro.
8340 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8342 * sparc64-tdep.c (sparc64_init_abi): Hook
8343 sparc_in_function_epilogue_p.
8345 2014-02-10 Gary Benson <gbenson@redhat.com>
8347 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8348 Rename name_matcher to symbol_matcher.
8350 2014-02-10 Gary Benson <gbenson@redhat.com>
8352 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8353 Use expand_symtabs_file_matcher_ftype and
8354 expand_symtabs_symbol_matcher_ftype.
8356 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8358 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8359 (struct ada_symbol_cache): New.
8360 (ada_free_symbol_cache): Forward declare.
8361 (struct ada_pspace_data): New.
8362 (ada_pspace_data_handle): New static global.
8363 (get_ada_pspace_data, ada_pspace_data_cleanup)
8364 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8365 (cache_space, cache): Delete, now folded inside struct
8367 (ada_get_symbol_cache): New function.
8368 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8370 (_initialize_ada_language): Remove initialization of cache_space.
8371 Move call to observer_attach_inferior_exit up, grouping it
8372 with the other observer registrations inside this function.
8373 Rename command to be more general. Add call to
8374 register_program_space_data_with_cleanup.
8376 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8378 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8379 ada_new_objfile_observer.
8380 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8381 (_initialize_tasks): Update uses of ada_new_objfile_observer
8382 and ada_tasks_normal_stop_observer.
8384 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8386 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8387 returned by the 'Length attribute to integer.
8389 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8391 * ada-lang.c (_initialize_ada_language): Initialize
8392 cache_space obstack.
8394 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8396 * ada-lang.c (HASH_SIZE): New macro.
8397 (struct cache_entry): New type.
8398 (cache_space, cache): New static globals.
8399 (ada_clear_symbol_cache, find_entry): New functions.
8400 (lookup_cached_symbol, cache_symbol): Implement.
8401 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8402 (_initialize_ada_language): Attach ada_new_objfile_observer
8403 and ada_free_objfile_observer.
8405 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8407 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8408 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8409 struct block * parameter.
8410 (ada_lookup_symbol_list_worker): Constify local variable "block".
8411 Remove cast which is no longer necessary.
8413 2014-02-10 Doug Evans <xdje42@gmail.com>
8415 Add Guile as an extension language.
8416 * NEWS: Mention Guile scripting.
8417 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8418 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8419 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8420 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8421 (CLIBS): Add GUILE_LIBS.
8422 (install-guile): New rule.
8423 (guile.o): New rule.
8424 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8425 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8426 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8427 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8428 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8429 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8430 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8431 * configure.ac: New option --with-guile.
8432 * configure: Regenerate.
8433 * config.in: Regenerate.
8434 * auto-load.c: Remove #include "python/python.h". Add #include
8435 "gdb/section-scripts.h".
8436 (source_section_scripts): Handle Guile scripts.
8437 (_initialize_auto_load): Add name of Guile objfile script to
8438 scripts-directory help text.
8439 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8440 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8441 (struct breakpoint): New member scm_bp_object.
8442 * defs.h (enum command_control_type): New value guile_control.
8443 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8445 (show_user): Update comment.
8446 (_initialize_cli_cmds): Update help text for "show user". Update help
8447 text for max-user-call-depth.
8448 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8450 (multi_line_command_p): Add guile_control.
8451 (print_command_lines): Handle guile_control.
8452 (execute_control_command, recurse_read_control_structure): Ditto.
8453 (process_next_line): Recognize "guile" commands.
8454 * disasm.c (gdb_disassemble_info): Make non-static.
8455 * disasm.h: #include "dis-asm.h".
8456 (struct gdbarch): Add forward decl.
8457 (gdb_disassemble_info): Declare.
8458 * extension.c: #include "guile/guile.h".
8459 (extension_languages): Add guile.
8460 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8461 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8462 * gdbtypes.c (get_unsigned_type_max): New function.
8463 (get_signed_type_minmax): New function.
8464 * gdbtypes.h (get_unsigned_type_max): Declare.
8465 (get_signed_type_minmax): Declare.
8466 * guile/README: New file.
8467 * guile/guile-internal.h: New file.
8468 * guile/guile.c: New file.
8469 * guile/guile.h: New file.
8470 * guile/scm-arch.c: New file.
8471 * guile/scm-auto-load.c: New file.
8472 * guile/scm-block.c: New file.
8473 * guile/scm-breakpoint.c: New file.
8474 * guile/scm-disasm.c: New file.
8475 * guile/scm-exception.c: New file.
8476 * guile/scm-frame.c: New file.
8477 * guile/scm-gsmob.c: New file.
8478 * guile/scm-iterator.c: New file.
8479 * guile/scm-lazy-string.c: New file.
8480 * guile/scm-math.c: New file.
8481 * guile/scm-objfile.c: New file.
8482 * guile/scm-ports.c: New file.
8483 * guile/scm-pretty-print.c: New file.
8484 * guile/scm-safe-call.c: New file.
8485 * guile/scm-string.c: New file.
8486 * guile/scm-symbol.c: New file.
8487 * guile/scm-symtab.c: New file.
8488 * guile/scm-type.c: New file.
8489 * guile/scm-utils.c: New file.
8490 * guile/scm-value.c: New file.
8491 * guile/lib/gdb.scm: New file.
8492 * guile/lib/gdb/boot.scm: New file.
8493 * guile/lib/gdb/experimental.scm: New file.
8494 * guile/lib/gdb/init.scm: New file.
8495 * guile/lib/gdb/iterator.scm: New file.
8496 * guile/lib/gdb/printing.scm: New file.
8497 * guile/lib/gdb/types.scm: New file.
8498 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8499 (VPATH): Add $(GUILE_SRCDIR).
8500 (GUILE_DIR): New variable.
8501 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8502 (all): Add stamp-guile dependency.
8503 (stamp-guile): New rule.
8504 (clean-guile, install-guile, uninstall-guile): New rules.
8505 (install-only): Add install-guile dependency.
8506 (uninstall): Add uninstall-guile dependency.
8507 (clean): Add clean-guile dependency.
8509 2014-02-09 Doug Evans <xdje42@gmail.com>
8511 Revert this patch (which I approved, mea culpa).
8513 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8515 * Makefile.in (all-lib): Remove.
8516 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8518 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8520 Fix Python stack corruption.
8521 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8524 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8526 * Makefile.in (all-lib): Remove.
8527 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8529 2014-02-07 Doug Evans <dje@google.com>
8531 * extension-priv.h (extension_language_script_ops): Add comment.
8532 (extension_language_ops): Add comment.
8533 (active_ext_lang_state): Fix typo in comment.
8535 2014-02-07 Pedro Alves <palves@redhat.com>
8537 PR breakpoints/16292
8538 * infrun.c (handle_signal_stop) <signal arrives while stepping
8539 over a breakpoint>: Switch back to the stepping thread.
8541 2014-02-07 Yao Qi <yao@codesourcery.com>
8543 * target.c (target_xfer_partial): Return zero if LEN is zero.
8545 2014-02-07 Yao Qi <yao@codesourcery.com>
8547 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8548 (ld_so_xfer_auxv): Likewise.
8549 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8550 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8551 * corelow.c (core_xfer_partial): Likewise.
8552 * ctf.c (ctf_xfer_partial): Likewise.
8553 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8554 (darwin_xfer_partial): Likewise.
8555 * exec.c (exec_xfer_partial): Likewise.
8556 * gnu-nat.c (gnu_xfer_partial): Likewise.
8557 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8558 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8559 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8560 * linux-nat.c (linux_xfer_siginfo): Likewise.
8561 (linux_proc_xfer_spu): Likewise.
8562 * procfs.c (procfs_xfer_partial): Likewise.
8563 * record-full.c (record_full_xfer_partial): Likewise.
8564 (record_full_core_xfer_partial): Likewise.
8565 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8566 * remote.c (remote_write_qxfer): Likewise.
8567 (remote_write_qxfer, remote_read_qxfer): Likewise.
8568 (remote_xfer_partial): Likewise.
8569 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8570 (rs6000_xfer_shared_libraries): Likewise.
8571 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8572 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8573 (spu_xfer_partial): Likewise.
8574 * target.c (memory_xfer_partial_1): Likewise.
8575 * tracepoint.c (tfile_xfer_partial): Likewise.
8576 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8577 (windows_xfer_partial): Likewise.
8579 2014-02-07 Yao Qi <yao@codesourcery.com>
8581 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8583 (core_xfer_shared_libraries_aix): Likewise.
8584 * gdbarch.c, gdbarch.h: Regenerated.
8585 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8586 ULONGEST. Change 'len_avail' type to ULONGEST.
8587 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8588 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8590 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8592 2014-02-07 Yao Qi <yao@codesourcery.com>
8594 * corefile.c (memory_error): Get 'exception' from ERR and pass
8595 'exception' to throw_error.
8597 2014-02-06 Doug Evans <xdje42@gmail.com>
8599 * configure.ac (libpython checking): Remove all but python.o from
8600 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8601 * configure: Regenerate.
8603 * Makefile.in (SFILES): Add extension.c.
8604 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8605 (COMMON_OBS): Add extension.o.
8606 * extension.h: New file.
8607 * extension-priv.h: New file.
8608 * extension.c: New file.
8610 * python/python-internal.h: #include "extension.h".
8611 (gdbpy_auto_load_enabled): Declare.
8612 (gdbpy_apply_val_pretty_printer): Declare.
8613 (gdbpy_apply_frame_filter): Declare.
8614 (gdbpy_preserve_values): Declare.
8615 (gdbpy_breakpoint_cond_says_stop): Declare.
8616 (gdbpy_breakpoint_has_cond): Declare.
8617 (void source_python_script_for_objfile): Delete.
8618 * python/python.c: #include "extension-priv.h".
8619 Delete inclusion of "observer.h".
8620 (extension_language_python): Moved here and renamed from
8621 script_language_python in py-auto-load.c.
8622 Redefined to be of type extension_language_defn.
8623 (python_extension_script_ops): New global.
8624 (python_extension_ops): New global.
8625 (struct python_env): New member previous_active.
8626 (restore_python_env): Call restore_active_ext_lang.
8627 (ensure_python_env): Call set_active_ext_lang.
8628 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8630 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8632 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8634 (gdbpy_eval_from_control_command): Renamed from
8635 eval_python_from_control_command, made static. New arg extlang.
8636 (gdbpy_source_script) Renamed from source_python_script, made static.
8638 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8639 result to int. New arg extlang.
8640 (gdbpy_source_objfile_script): Renamed from
8641 source_python_script_for_objfile, made static. New arg extlang.
8642 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8643 static. New args extlang, extlang_printers. Change result type to
8645 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8646 static. New arg extlang. Rename arg printers to extlang_printers
8647 and change type to ext_lang_type_printers *.
8648 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8649 static. Replace argument arg with extlang, extlang_printers.
8650 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8651 (!HAVE_PYTHON, source_python_script): Delete.
8652 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8653 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8654 (!HAVE_PYTHON, start_type_printers): Delete.
8655 (!HAVE_PYTHON, apply_type_printers): Delete.
8656 (!HAVE_PYTHON, free_type_printers): Delete.
8657 (_initialize_python): Delete call to observer_attach_before_prompt.
8658 (finalize_python): Set/restore active extension language.
8659 (gdbpy_finish_initialization) Renamed from
8660 finish_python_initialization, made static. New arg extlang.
8661 (gdbpy_initialized): New function.
8662 * python/python.h: #include "extension.h". Delete #include
8663 "value.h", "mi/mi-cmds.h".
8664 (extension_language_python): Declare.
8665 (GDBPY_AUTO_FILE_NAME): Delete.
8666 (enum py_bt_status): Moved to extension.h and renamed to
8668 (enum frame_filter_flags): Moved to extension.h.
8669 (enum py_frame_args): Moved to extension.h and renamed to
8670 ext_lang_frame_args.
8671 (finish_python_initialization): Delete.
8672 (eval_python_from_control_command): Delete.
8673 (source_python_script): Delete.
8674 (apply_val_pretty_printer): Delete.
8675 (apply_frame_filter): Delete.
8676 (preserve_python_values): Delete.
8677 (gdbpy_script_language_defn): Delete.
8678 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8679 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8681 * auto-load.c: #include "extension.h".
8682 (GDB_AUTO_FILE_NAME): Delete.
8683 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8684 (script_language_gdb): Delete, moved to extension.c and renamed to
8685 extension_language_gdb.
8686 (source_gdb_script_for_objfile): Delete.
8687 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8688 (loaded_script): Change type of language member to
8689 struct extension_language_defn *.
8690 (init_loaded_scripts_info): Initialize
8691 unsupported_script_warning_printed.
8692 (maybe_add_script): Make static. Change type of language arg to
8693 struct extension_language_defn *.
8694 (clear_section_scripts): Reset unsupported_script_warning_printed.
8695 (auto_load_objfile_script_1): Rewrite to use extension language API.
8696 (auto_load_objfile_script): Make public. Remove support-compiled-in
8697 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8698 (source_section_scripts): Rewrite to use extension language API.
8699 (load_auto_scripts_for_objfile): Rewrite to use
8700 auto_load_scripts_for_objfile.
8701 (collect_matching_scripts_data): Change type of language member to
8702 struct extension_language_defn *.
8703 (auto_load_info_scripts): Change type of language arg to
8704 struct extension_language_defn *.
8705 (unsupported_script_warning_print): New function.
8706 (script_not_found_warning_print): Make static.
8707 (_initialize_auto_load): Rewrite construction of scripts-directory
8709 * auto-load.h (struct objfile): Add forward decl.
8710 (struct script_language): Delete.
8711 (struct auto_load_pspace_info): Add forward decl.
8712 (struct extension_language_defn): Add forward decl.
8713 (maybe_add_script): Delete.
8714 (auto_load_objfile_script): Declare.
8715 (script_not_found_warning_print): Delete.
8716 (auto_load_info_scripts): Update prototype.
8717 (auto_load_gdb_scripts_enabled): Declare.
8718 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8719 auto_load_python_scripts_enabled and made public.
8720 (script_language_python): Delete, moved to python.c.
8721 (gdbpy_script_language_defn): Delete.
8722 (info_auto_load_python_scripts): Update to use
8723 extension_language_python.
8725 * breakpoint.c (condition_command): Replace call to
8726 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8727 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8728 with call to breakpoint_ext_lang_cond_says_stop.
8729 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8730 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8731 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8732 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8734 (local_setattro): Print name of extension language with existing
8737 * valprint.c (val_print, value_print): Update to call
8738 apply_ext_lang_val_pretty_printer.
8739 * cp-valprint.c (cp_print_value): Update call to
8740 apply_ext_lang_val_pretty_printer.
8741 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8742 (gdbpy_apply_val_pretty_printer): Renamed from
8743 apply_val_pretty_printer. New arg extlang.
8744 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8746 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8747 extension language API.
8748 * cli/cli-script.c (execute_control_command): Update to call
8749 eval_ext_lang_from_control_command.
8751 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8752 enum ext_lang_bt_status values. Update call to
8753 apply_ext_lang_frame_filter.
8754 (mi_cmd_stack_list_locals): Ditto.
8755 (mi_cmd_stack_list_args): Ditto.
8756 (mi_cmd_stack_list_variables): Ditto.
8757 * mi/mi-main.c: Delete #include "python/python-internal.h".
8758 Add #include "extension.h".
8759 (mi_cmd_list_features): Replace reference to python internal variable
8760 gdb_python_initialized with call to ext_lang_initialized_p.
8762 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8763 Update to use enum ext_lang_frame_args. Update to call
8764 apply_ext_lang_frame_filter.
8765 * python/py-framefilter.c (extract_sym): Update to use enum
8767 (extract_value, py_print_type, py_print_value): Ditto.
8768 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8769 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8770 (py_print_frame): Ditto.
8771 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8772 New arg extlang. Update to use enum ext_lang_bt_status.
8774 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8775 finish_python_initialization. Replace with call to
8776 finish_ext_lang_initialization.
8778 * typeprint.c (do_free_global_table): Update to call
8779 free_ext_lang_type_printers.
8780 (create_global_typedef_table): Update to call
8781 start_ext_lang_type_printers.
8782 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8783 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8784 (type_print_options): Change type of global_printers from "void *"
8785 to "struct ext_lang_type_printers *".
8787 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8788 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8789 (gdbpy_preserve_values): Renamed from preserve_python_values.
8791 (!HAVE_PYTHON, preserve_python_values): Delete.
8793 * utils.c (quit_flag): Delete, moved to extension.c.
8794 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8797 * eval.c: Delete #include "python/python.h".
8798 * main.c: Delete #include "python/python.h".
8800 * defs.h: Update comment.
8802 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8806 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8808 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8811 2014-02-05 Yao Qi <yao@codesourcery.com>
8813 * remote.c (remote_pass_signals): Remove local 'buf' and use
8815 (remote_program_signals): Likewise.
8817 2014-02-05 Yao Qi <yao@codesourcery.com>
8819 * ctf.c: Include "inferior.h" and "gdbthread.h".
8820 (CTF_PID): A new macro.
8821 (ctf_open): Call inferior_appeared and add_thread_silent.
8822 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8823 (ctf_thread_alive): New function.
8824 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8826 2014-02-05 Yao Qi <yao@codesourcery.com>
8830 2013-05-24 Yao Qi <yao@codesourcery.com>
8832 * tracepoint.c (TFILE_PID): Remove.
8833 (tfile_open): Don't add thread and inferior.
8834 (tfile_close): Don't set 'inferior_ptid'. Don't call
8835 exit_inferior_silent.
8836 (tfile_thread_alive): Remove.
8837 (init_tfile_ops): Don't set field 'to_thread_alive' of
8840 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8842 * remote.c (remote_start_remote): Call remote_check_symbols even
8843 if only symbol-file (not file) has been given.
8845 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8847 * gdbarch.sh (skip_entrypoint): New callback.
8848 * gdbarch.c, gdbarch.h: Regenerate.
8849 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8850 * infrun.c (fill_in_stop_func): Likewise.
8851 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8852 (ppc_elfv2_elf_make_msymbol_special): New function.
8853 (ppc_elfv2_skip_entrypoint): Likewise.
8854 (ppc_linux_init_abi): Install them for ELFv2.
8856 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8858 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8859 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8860 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8861 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8862 structures returned in GPRs.
8864 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8866 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8867 offset to the stack parameter list for the ELFv2 ABI.
8869 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8871 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8872 set_gdbarch_convert_from_func_ptr_addr and
8873 set_gdbarch_elf_make_msymbol_special for ELFv1.
8874 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8875 function descriptors on ELFv1.
8876 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8877 set up r12 at function entry.
8879 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8881 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8882 (struct gdbarch_tdep): New member elf_abi.
8884 * rs6000-tdep.c: Include "elf/ppc64.h".
8885 (rs6000_gdbarch_init): Detect ELF ABI version.
8887 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8889 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8890 within a register pair holding a DFP 128-bit value on little-endian.
8891 (ppc64_sysv_abi_return_value_base): Likewise.
8892 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8893 (dfp_pseudo_register_write): Likewise.
8895 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8898 offset on little-endian when passing _Decimal32.
8899 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8901 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8903 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8904 of the overlapped FP register within the VSX register on little-
8906 (efpr_pseudo_register_write): Likewise.
8908 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8910 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8911 offset on little-endian when passing small structures.
8913 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8915 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8916 (struct ppc64_sysv_argpos): New data structure.
8917 (ppc64_sysv_abi_push_float): Remove.
8918 (ppc64_sysv_abi_push_val): New function.
8919 (ppc64_sysv_abi_push_integer): Likewise.
8920 (ppc64_sysv_abi_push_freg): Likewise.
8921 (ppc64_sysv_abi_push_vreg): Likewise.
8922 (ppc64_sysv_abi_push_param): Likewise.
8923 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8924 (ppc64_sysv_abi_return_value_base): New function.
8925 (ppc64_sysv_abi_return_value): Refactor to use it.
8927 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8929 * NEWS: Document new target powerpc64le-*-linux*.
8931 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8933 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8934 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8936 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8937 register set used in ELF core dumps. Add floating-point register set.
8939 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8941 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8942 dwarf2_to_gdb[] table using symbolic constants. Adjust
8943 penultimate entry from number representing the PC register
8944 to symbolic constant representing the MDR register. Add
8945 constant for the PC register to the end of the table.
8947 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8949 * bsd-kvm.c: Include <sys/param.h>
8951 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8953 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8955 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8957 * ada-lang.h (clear_ada_sym_cache): Delete.
8959 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8961 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8963 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8965 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8966 the sigreturn register save area only if the syscall is
8969 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8971 * valops.c (value_slice): Minor reformatting.
8973 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8975 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8977 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8979 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8981 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8982 (ada_ignore_descriptive_types_p): New static global.
8983 (find_parallel_type_by_descriptive_type): Return immediately
8984 if ada_ignore_descriptive_types_p is set.
8985 (_initialize_ada_language): Register new commands "maintenance
8986 set ada", "maintenance show ada", "maintenance set ada
8987 ignore-descriptive-types" and "maintenance show ada
8988 ignore-descriptive-types".
8989 * NEWS: Add entry for new "maint ada set/show
8990 ignore-descriptive-types" commands.
8992 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8994 * record-btrace.c (record_btrace_close): Call btrace_teardown
8997 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8999 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9002 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9004 * ada-typeprint (type_is_full_subrange_of_target_type):
9006 (print_range): Add parameter bounds_prefered_p. If not set,
9007 try printing range types using the name of their base type.
9008 (print_range_type): Add parameter bounds_prefered_p.
9009 Use it in call to print_range.
9010 (print_array_type, ada_print_type): Update calls to print_range
9011 and print_range_type.
9013 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9015 * ada-typeprint.c (print_array_type, print_choices, print_range)
9016 (print_range_bound, print_dynamic_range_bound, print_range_type):
9019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9021 * ada-typeprint.c (print_range): Add missing empty line
9022 after local declaration.
9024 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9026 * ada-valprint.c (print_optional_low_bound): Get index_type's
9027 target type for as long as it is a TYPE_CODE_RANGE.
9029 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9031 * procfs.c (procfs_make_note_section): Remove assertion and
9034 2014-01-24 Yao Qi <yao@codesourcery.com>
9036 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9037 * corelow.c (get_core_siginfo): Likewise.
9039 2014-01-24 Yao Qi <yao@codesourcery.com>
9041 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9042 ULONGEST. Don't check 'len' is negative.
9043 (remote_write_bytes): Change type of 'len' to ULONGEST.
9045 2014-01-23 Tom Tromey <tromey@redhat.com>
9048 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9049 Handle exception from frame.block.
9050 (FrameVars.fetch_frame_locals): Likewise.
9052 2014-01-23 Tom Tromey <tromey@redhat.com>
9055 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9056 on a NULL pointer. Move "goto error" to correct place.
9058 2014-01-23 Tom Tromey <tromey@redhat.com>
9061 * python/py-framefilter.c (apply_frame_filter): Call
9062 ensure_python_env after computing gdbarch.
9064 2014-01-23 Yao Qi <yao@codesourcery.com>
9066 * target.c (raw_memory_xfer_partial): Change argument type
9067 from void * to gdb_byte *.
9068 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9070 2014-01-22 Doug Evans <dje@google.com>
9072 New gdbserver option --debug-format=timestamp.
9075 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9077 * syscalls/s390x-linux.xml: New file.
9078 * syscalls/s390-linux.xml: New file.
9079 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9080 (XML_SYSCALL_FILENAME_S390X): Likewise.
9081 (op_svc): New enum value for SVC opcode.
9082 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9083 (s390_linux_get_syscall_number): New function.
9084 (s390_gdbarch_init): Register '*get_syscall_number' and the
9085 syscall xml file name.
9086 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9087 "s390-linux.xml" and "s390x-linux.xml".
9088 * NEWS: Announce new feature.
9090 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9092 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9094 2014-01-22 Pedro Alves <palves@redhat.com>
9096 * xtensa-config.c: Include defs.h.
9098 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9100 * common/common-utils.h: Add "ARI:" comment beside __func__
9103 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9105 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9106 documentation a bit.
9108 2014-01-21 Roland McGrath <mcgrathr@google.com>
9110 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9111 * configure: Regenerate.
9112 * aclocal.m4: Regenerate.
9113 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9114 New substituted variables.
9115 (install-strip): New target.
9116 (INSTALL_SCRIPT): New substituted variable.
9117 (FLAGS_TO_PASS): Add it.
9118 (install-only): Use $(INSTALL_SCRIPT) rather than
9119 $(INSTALL_PROGRAM) for gcore.
9121 2014-01-20 Tom Tromey <tromey@redhat.com>
9123 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9126 2014-01-20 Tom Tromey <tromey@redhat.com>
9128 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9129 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9130 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9131 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9132 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9133 (struct cmd_list_element) <flags>: Remove.
9134 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9135 doc_allocated>: New fields.
9136 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9138 * maint.c (maintenance_do_deprecate): Update.
9139 * top.c (execute_command): Update.
9141 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9143 * xtensa-linux-nat.c: Include asm/ptrace.h.
9145 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9147 * Makefile.in (SFILES): Add d-support.c.
9148 (COMMON_OBS): Add d-support.o.
9149 * d-lang.h (d_parse_symbol): Add comment, now defined in
9151 * d-lang.c (parse_call_convention)
9152 (parse_attributes, parse_function_types)
9153 (parse_function_args, parse_type, parse_identifier)
9154 (call_convention_p, d_parse_symbol): Move functions to ...
9155 * d-support.c: ... New file.
9157 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9159 * d-lang.h (d_parse_symbol): Add declaration.
9160 * d-lang.c (extract_identifiers)
9161 (extract_type_info): Remove functions.
9162 (parse_call_convention, parse_attributes)
9163 (parse_function_types, parse_function_args)
9164 (parse_type, parse_identifier, call_convention_p)
9165 (d_parse_symbol): New functions.
9166 (d_demangle): Use d_parse_symbol to demangle D symbols.
9168 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9170 * d-lang.h (struct builtin_d_type): New data type.
9171 (builtin_d_type): Add declaration.
9172 * d-lang.c (d_language_arch_info, build_d_types)
9173 (builtin_d_type): New functions.
9174 (enum d_primitive_types): New data type.
9175 (d_language_defn): Change c_language_arch_info to
9176 d_language_arch_info.
9177 (d_type_data): New static variable.
9178 (_initialize_d_language): Initialize d_type_data.
9180 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9182 * d-lang.h (d_main_name): Add declaration.
9183 * d-lang.c (d_main_name): New function.
9184 * symtab.c (find_main_name): Add call to d_main_name.
9186 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9188 * d-lang.c (d_language_defn): Change macro_expansion_c to
9191 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9193 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9195 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9197 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9198 gdb_exception" declaration.
9199 * remote.c (getpkt_or_notif_sane): Likewise.
9201 2014-01-17 Doug Evans <dje@google.com>
9203 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9204 function, contents of dirnames_to_char_ptr_vec_append moved here.
9205 (delim_string_to_char_ptr_vec): New function.
9206 (dirnames_to_char_ptr_vec_append): Rewrite.
9207 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9209 2014-01-17 Doug Evans <dje@google.com>
9211 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9213 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9214 #include "common-utils.h".
9215 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9216 * common/vec.h (VEC_ASSERT_PASS): Update.
9217 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9218 (MACH_CHECK_ERROR): Update.
9220 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9222 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9224 * gdbarch.h: Regenerate.
9226 2014-01-16 Tom Tromey <tromey@redhat.com>
9228 * value.c (struct value) <regnum>: Move earlier.
9230 2014-01-16 Tom Tromey <tromey@redhat.com>
9232 * remote.c (extended_remote_create_inferior): Rename from
9233 extended_remote_create_inferior_1. Add "ops" argument. Remove
9236 2014-01-16 Pedro Alves <palves@redhat.com>
9238 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9239 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9242 2014-01-16 Doug Evans <dje@google.com>
9244 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9246 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9248 * btrace.h (btrace_thread_flag): New.
9249 (struct btrace_thread_info) <flags>: New.
9250 * record-btrace.c (record_btrace_resume_thread)
9251 (record_btrace_find_thread_to_move, btrace_step_no_history)
9252 (btrace_step_stopped, record_btrace_start_replaying)
9253 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9254 (record_btrace_find_resume_thread): New.
9255 (record_btrace_resume, record_btrace_wait): Extend.
9256 (record_btrace_can_execute_reverse): New.
9257 (record_btrace_open): Fail in non-stop mode.
9258 (record_btrace_set_replay): Split into this, ...
9259 (record_btrace_stop_replaying): ... this, ...
9260 (record_btrace_clear_histories): ... and this.
9261 (init_record_btrace_ops): Init to_can_execute_reverse.
9262 * NEWS: Announce it.
9264 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9266 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9267 (forward_target_decr_pc_after_break)
9268 (target_decr_pc_after_break): New.
9269 * target.c (forward_target_decr_pc_after_break)
9270 (target_decr_pc_after_break): New.
9271 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9272 instead of gdbarch_decr_pc_after_break.
9273 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9274 instead of gdbarch_decr_pc_after_break.
9275 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9276 instead of gdbarch_decr_pc_after_break.
9277 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9278 instead of gdbarch_decr_pc_after_break.
9279 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9280 instead of gdbarch_decr_pc_after_break.
9281 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9282 instead of gdbarch_decr_pc_after_break.
9284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9286 * btrace.c: Include regcache.h.
9287 (btrace_add_pc): New.
9288 (btrace_enable): Call btrace_add_pc.
9289 (btrace_is_empty): New.
9290 * btrace.h (btrace_is_empty): New.
9291 * record-btrace.c (require_btrace, record_btrace_info): Call
9294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9296 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9297 Support delta reads.
9298 (linux_disable_btrace): Change return type.
9299 * common/linux-btrace.h (linux_read_btrace): Change parameters
9300 and return type to allow error reporting. Update users.
9301 (linux_disable_btrace): Change return type. Update users.
9302 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9304 (btrace_error): New.
9305 (btrace_block) <begin>: Comment on BEGIN == 0.
9306 * btrace.c (btrace_compute_ftrace): Start from the end of
9308 (btrace_stitch_trace, btrace_clear_history): New.
9309 (btrace_fetch): Read delta trace, return if replaying.
9310 (btrace_clear): Move clear history code to btrace_clear_history.
9311 (parse_xml_btrace): Throw an error if parsing failed.
9312 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9313 and return type to allow error reporting.
9314 (target_read_btrace): Change parameters and return type to allow
9316 * target.c (target_read_btrace): Update.
9317 * remote.c (remote_read_btrace): Support delta reads. Pass
9319 * NEWS: Announce it.
9321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9323 * record.h (record_btrace_frame_unwind)
9324 (record_btrace_tailcall_frame_unwind): New declarations.
9325 * dwarf2-frame: Include record.h
9326 (dwarf2_frame_cfa): Throw an error for btrace frames.
9327 * record-btrace.c: Include hashtab.h.
9328 (btrace_get_bfun_name): New.
9329 (btrace_call_history): Call btrace_get_bfun_name.
9330 (struct btrace_frame_cache): New.
9332 (bfcache_hash, bfcache_eq, bfcache_new): New.
9333 (btrace_get_frame_function): New.
9334 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9335 (record_btrace_frame_this_id): Compute own id.
9336 (record_btrace_frame_prev_register): Provide PC, throw_error
9337 for all other registers.
9338 (record_btrace_frame_sniffer): Detect btrace frames.
9339 (record_btrace_tailcall_frame_sniffer): New.
9340 (record_btrace_frame_dealloc_cache): New.
9341 (record_btrace_frame_unwind): Add new functions.
9342 (record_btrace_tailcall_frame_unwind): New.
9343 (_initialize_record_btrace): Allocate cache.
9344 * btrace.c (btrace_clear): Call reinit_frame_cache.
9345 * NEWS: Announce it.
9347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9349 * record-btrace.c (record_btrace_set_replay)
9350 (record_btrace_goto_begin, record_btrace_goto_end)
9351 (record_btrace_goto): New.
9352 (init_record_btrace_ops): Initialize them.
9353 * NEWS: Announce it.
9355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9357 * record-btrace.c (record_btrace_find_new_threads)
9358 (record_btrace_thread_alive): New.
9359 (init_record_btrace_ops): Initialize to_find_new_threads and
9362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9364 * record-btrace.c (record_btrace_resume): New.
9365 (record_btrace_wait): New.
9366 (init_record_btrace_ops): Initialize to_wait and to_resume.
9368 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9370 * record-btrace.c (record_btrace_xfer_partial)
9371 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9372 (record_btrace_allow_memory_access): New.
9373 (init_record_btrace_ops): Initialize new methods.
9374 * target.c (raw_memory_xfer_partial): Bail out if target reports
9375 that this memory is not available.
9377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9379 * target.h (target_ops) <to_insert_breakpoint>
9380 <to_remove_breakpoint>: Add target_ops parameter.
9381 (forward_target_insert_breakpoint): New.
9382 (forward_target_remove_breakpoint): New.
9383 (memory_remove_breakpoint, memory_insert_breakpoint):
9384 Add target_ops parameter.
9385 * target.c (target_insert_breakpoint): Split into this and ...
9386 (forward_target_insert_breakpoint): ... this.
9387 (target_remove_breakpoint): Split into this and ...
9388 (forward_target_remove_breakpoint): ... this.
9389 (debug_to_insert_breakpoint): Add target_ops parameter.
9390 Call forward_target_insert_breakpoint.
9391 (debug_to_remove_breakpoint): Add target_ops parameter.
9392 Call forward_target_remove_breakpoint.
9393 (update_current_target): Do not inherit or default to_insert_breakpoint
9394 and to_remove_breakpoint.
9395 * corelow.c (ignore): Add target_ops parameter.
9396 * exec.c (ignore): Add target_ops parameter.
9397 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9398 Add target_ops parameter.
9399 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9400 Add target_ops parameter.
9401 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9402 Add target_ops parameter.
9403 * record-full.c (record_full_beneath_to_insert_breakpoint)
9404 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9405 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9406 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9407 (record_full_core_remove_breakpoint): Add target_ops parameter.
9409 (record_full_beneath_to_insert_breakpoint_ops)
9410 (record_full_beneath_to_remove_breakpoint_ops)
9411 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9412 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9413 tmp_to_remove_breakpoint_ops,
9414 record_full_beneath_to_insert_breakpoint_ops, and
9415 record_full_beneath_to_remove_breakpoint_ops.
9416 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9417 (m32r_remove_breakpoint): Add target_ops parameter.
9418 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9419 Add target_ops parameter.
9420 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9421 Add target_ops parameter.
9423 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9424 Markus Metzger <markus.t.metzger@intel.com>
9426 * record-btrace.c: Include frame-unwind.h.
9427 (record_btrace_frame_unwind_stop_reason)
9428 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9429 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9431 (init_record_btrace_ops): Install it.
9433 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9435 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9438 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9440 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9443 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9445 * frame-unwind.c: Include target.h.
9446 (frame_unwind_try_unwinder): New function with code from ...
9447 (frame_unwind_find_by_frame): ... here. New variable
9448 unwinder_from_target, call also target_get_unwinder)
9449 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9450 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9451 * target.h (struct target_ops): New fields to_get_unwinder and
9452 to_get_tailcall_unwinder.
9453 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9457 * record-btrace.c (record_btrace_fetch_registers)
9458 (record_btrace_store_registers)
9459 (record_btrace_to_prepare_to_store): New.
9460 (init_record_btrace_ops): Add the above.
9462 2014-01-16 Tom Tromey <tromey@redhat.com>
9464 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9465 * target.h (struct target_ops) <to_prepare_to_store>: Add
9467 (target_prepare_to_store): Add argument.
9468 * target.c (debug_to_prepare_to_store): Add argument.
9469 (update_current_target): Update.
9470 * remote.c (remote_prepare_to_store): Add 'self' argument.
9471 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9472 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9473 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9474 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9476 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9477 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9478 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9479 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9480 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9482 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9484 * btrace.h (replay) <replay>: New.
9485 (btrace_is_replaying): New.
9486 * btrace.c (btrace_clear): Free replay iterator.
9487 (btrace_is_replaying): New.
9488 * record-btrace.c (record_btrace_is_replaying): New.
9489 (record_btrace_info): Print insn number if replaying.
9490 (record_btrace_insn_history): Start at replay position.
9491 (record_btrace_call_history): Start at replay position.
9492 (init_record_btrace_ops): Init to_record_is_replaying.
9494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9496 * record-btrace.c (record_btrace_insn_history_range): Include
9498 (record_btrace_insn_history_from): Adjust range.
9499 (record_btrace_call_history_range): Include
9501 (record_btrace_call_history_from): Adjust range.
9502 * NEWS: Announce changes.
9504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9506 * record.h (enum record_print_flag)
9507 <record_print_indent_calls>: New.
9508 * record.c (get_call_history_modifiers): Recognize /c modifier.
9509 (_initialize_record): Document /c modifier.
9510 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9511 Reorder fields. Optionally indent the function name. Update
9513 * NEWS: Announce changes.
9515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9517 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9521 * btrace.c (ftrace_new_function): Start counting at one.
9522 * record-btrace.c (record_btrace_info): Adjust number of calls
9524 * NEWS: Announce it.
9526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9528 * record-btrace.c (btrace_call_history_insn_range): Print
9529 insn range as [begin, end].
9531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9533 * btrace.h (struct btrace_func_link): New.
9534 (enum btrace_function_flag): New.
9535 (struct btrace_inst): Rename to ...
9536 (struct btrace_insn): ...this. Update all users.
9537 (struct btrace_func) <ibegin, iend>: Remove.
9538 (struct btrace_func_link): New.
9539 (struct btrace_func): Rename to ...
9540 (struct btrace_function): ...this. Update all users.
9541 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9542 (number, level, flags>: New.
9543 (struct btrace_insn_iterator): Rename to ...
9544 (struct btrace_insn_history): ...this.
9546 (struct btrace_insn_iterator, btrace_call_iterator): New.
9547 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9548 (struct btrace_target_info) <begin, end, level>
9549 <insn_history, call_history>: New.
9550 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9551 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9552 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9553 (btrace_call_number, btrace_call_begin, btrace_call_end)
9554 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9555 (btrace_find_function_by_number, btrace_set_insn_history)
9556 (btrace_set_call_history): New.
9557 * btrace.c (btrace_init_insn_iterator)
9558 (btrace_init_func_iterator, compute_itrace): Remove.
9559 (ftrace_print_function_name, ftrace_print_filename)
9560 (ftrace_skip_file): Change
9562 (ftrace_init_func): Remove.
9563 (ftrace_debug): Use new btrace_function fields.
9564 (ftrace_function_switched): Also consider gaining and
9565 losing symbol information).
9566 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9567 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9568 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9570 (ftrace_new_function): Move. Remove debug print.
9571 (ftrace_update_lines, ftrace_update_insns): New.
9572 (ftrace_update_function): Check for call, ret, and jump.
9573 (compute_ftrace): Renamed to ...
9574 (btrace_compute_ftrace): ...this. Rewritten to compute call
9576 (btrace_fetch, btrace_clear): Updated.
9577 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9578 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9579 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9580 (btrace_call_number, btrace_call_begin, btrace_call_end)
9581 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9582 (btrace_find_function_by_number, btrace_set_insn_history)
9583 (btrace_set_call_history): New.
9584 * record-btrace.c (require_btrace): Use new btrace thread
9586 (record_btrace_info, btrace_insn_history)
9587 (record_btrace_insn_history, record_btrace_insn_history_range):
9588 Use new btrace thread info fields and new iterator.
9589 (btrace_func_history_src_line): Rename to ...
9590 (btrace_call_history_src_line): ...this. Use new btrace
9592 (btrace_func_history): Rename to ...
9593 (btrace_call_history): ...this. Use new btrace thread info
9594 fields and new iterator.
9595 (record_btrace_call_history, record_btrace_call_history_range):
9596 Use new btrace thread info fields and new iterator.
9598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9600 * frame.h (frame_id_build_unavailable_stack_special): New.
9601 * frame.c (frame_id_build_unavailable_stack_special): New.
9603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9605 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9606 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9607 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9609 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9610 (i386_insn_is_jump, i386_jmp_p): New.
9611 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9612 insn_is_jump to gdbarch.
9613 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9614 * gdbarch.h: Regenerated.
9615 * gdbarch.c: Regenerated.
9616 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9617 (default_insn_is_jump): New.
9618 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9619 (default_insn_is_jump): New.
9621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9623 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9625 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9626 (btrace_read_type) <btrace_read_new>: Change to ...
9627 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9629 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9631 * common/linux-btrace.c (linux_read_btrace): Free trace from
9634 2014-01-15 Doug Evans <dje@google.com>
9636 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9639 2014-01-15 Tom Tromey <tromey@redhat.com>
9641 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9642 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9643 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9644 (set_objfile_main_name): New function.
9645 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9646 language_of_main>: New fields.
9647 (set_objfile_main_name): Declare.
9648 * symtab.c (find_main_name): Loop over objfiles to find the main
9650 (set_main_name): Now static.
9651 (get_main_info): Add comment.
9652 * symtab.h (set_main_name): Don't declare.
9654 2014-01-15 Tom Tromey <tromey@redhat.com>
9656 * symtab.c (main_progspace_key): New global.
9657 (struct main_info): New.
9658 (name_of_main, language_of_main): Remove.
9659 (get_main_info, main_info_cleanup): New function.
9660 (set_main_name, main_name, main_language): Use get_main_info.
9661 (_initialize_symtab): Initialize main_progspace_key.
9663 2014-01-15 Tom Tromey <tromey@redhat.com>
9665 * dbxread.c (process_one_symbol): Update.
9666 * dwarf2read.c (read_partial_die): Update.
9667 * symfile.c (set_initial_language): Call main_language.
9668 * symtab.c (language_of_main): Now static.
9669 (set_main_name): Add 'lang' parameter.
9670 (find_main_name): Update.
9671 (main_language): New function.
9672 (symtab_observer_executable_changed): Update.
9673 * symtab.h (set_main_name): Update.
9674 (language_of_main): Remove.
9675 (main_language): Declare.
9677 2014-01-15 Tom Tromey <tromey@redhat.com>
9679 * symfile.c (init_entry_point_info): Use new "initialized" field.
9681 * objfiles.h (struct entry_point) <initialized>: New field.
9682 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9683 (struct objfile) <ei>: ...here. Remove.
9684 * objfiles.c (entry_point_address_query): Update.
9686 2014-01-15 Tom Tromey <tromey@redhat.com>
9688 * objfiles.c (entry_point_address_query): Relocate entry point
9690 (objfile_relocate1): Do not relocate entry point address.
9691 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9692 <the_bfd_section_index>: New field.
9693 * symfile.c (init_entry_point_info): Find the entry point's
9696 2014-01-15 Tom Tromey <tromey@redhat.com>
9698 * solib-frv.c (enable_break): Use entry_point_address_query.
9700 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9702 * NEWS: Add note on improved process record-replay on
9703 arm*-linux* targets.
9705 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9707 * arm-tdep.c (enum arm_record_result): New enum.
9708 (arm_record_unsupported_insn): New function.
9709 (arm_record_coproc_data_proc): Removed.
9710 (thumb2_record_ld_st_multiple): New function.
9711 (thumb2_record_ld_st_dual_ex_tbb): New function.
9712 (thumb2_record_data_proc_sreg_mimm): New function.
9713 (thumb2_record_ps_dest_generic): New function.
9714 (thumb2_record_branch_misc_cntrl): New function.
9715 (thumb2_record_str_single_data): New function.
9716 (thumb2_record_ld_mem_hints): New function.
9717 (thumb2_record_ld_word): New function.
9718 (thumb2_record_lmul_lmla_div): New function.
9719 (thumb2_record_decode_insn_handler): New function.
9720 (decode_insn): Add thumb32 instruction handlers.
9722 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9724 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9725 (struct arm_linux_record_tdep): Declare.
9726 (arm_canonicalize_syscall): New function.
9727 (arm_all_but_pc_registers_record): New function.
9728 (arm_linux_syscall_record): New function.
9729 (arm_linux_init_abi): Add syscall recording constructs.
9730 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9731 decoding. (arm_record_coproc_data_proc): Update arm syscall
9733 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9734 <arm_syscall_record>: New field.
9735 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9738 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9740 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9741 register for push instruction recording.
9743 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9745 * arm-tdep.c (thumb_record_misc): Update to correct logical
9746 error while recording ldm, ldmia and pop instructions.
9748 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9750 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9752 2014-01-15 Pedro Alves <palves@redhat.com>
9754 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9755 (go32_resume, go32_fetch_registers, store_register)
9756 (go32_store_registers, go32_prepare_to_store)
9757 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9758 (go32_create_inferior, go32_can_run, go32_terminal_init)
9759 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9762 2014-01-15 Tom Tromey <tromey@redhat.com>
9764 * target.h (async_callback_ftype): New typedef.
9765 (struct target_ops) <to_async>: Use it.
9767 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9769 * python/py-value.c (get_field_type): Remove unnecessary curly
9770 braces for single-statement if block.
9772 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9774 * python/py-type.c (convert_field): Add missing empty line
9777 2014-01-14 Doug Evans <dje@google.com>
9779 * symfile.h (expand_symtabs_matching): Renamed from
9780 expand_partial_symbol_names. Update prototype.
9781 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9782 * symfile.c (expand_symtabs_matching): Renamed from
9783 expand_partial_symbol_names. New args file_matcher, kind.
9784 Rename arg fun to symbol_matcher.
9785 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9786 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9787 ada_expand_partial_symbol_name.
9788 (ada_make_symbol_completion_list): Update to call
9789 expand_symtabs_matching.
9790 (ada_add_global_exceptions): Call expand_symtabs_matching.
9791 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9792 call map_symbol_filenames.
9793 * symtab.c (sources_info): Update to call map_symbol_filenames.
9794 (search_symbols): Call expand_symtabs_matching.
9795 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9796 (default_make_symbol_completion_list_break_on): Update to call
9797 expand_symtabs_matching.
9798 (make_source_files_completion_list): Update to call
9799 map_symbol_filenames.
9801 2014-01-14 Doug Evans <dje@google.com>
9803 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9804 (expand_symtabs_symbol_matcher_ftype): New typedef.
9805 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9806 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9807 * symfile.c (expand_partial_symbol_names): Update to use
9808 expand_symtabs_symbol_matcher_ftype.
9809 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9810 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9811 Arg name_matcher renamed to symbol_matcher.
9812 * psymtab.c (recursively_search_psymtabs): Update to use
9813 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9815 (expand_symtabs_matching_via_partial): Update to use
9816 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9817 Arg name_matcher renamed to symbol_matcher.
9819 2014-01-14 Doug Evans <dje@google.com>
9821 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9822 (map_partial_symbol_filenames): Ditto.
9823 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9824 (map_partial_symbol_filenames): Ditto.
9825 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9826 (map_partial_symbol_filenames): Ditto.
9827 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9828 (map_partial_symbol_filenames): Ditto.
9829 * symtab.c: Delete #include "psymtab.h".
9831 2014-01-14 Pedro Alves <palves@redhat.com>
9832 Tom Tromey <tromey@redhat.com>
9834 * infrun.c (use_displaced_stepping): Use find_record_target
9835 instead of RECORD_IS_USED.
9836 (adjust_pc_after_break): Use record_full_is_used instead of
9838 * record-btrace.c (record_btrace_open): Call record_preopen
9839 instead of checking RECORD_IS_USED.
9840 * record-full.c (record_full_shortname)
9841 (record_full_core_shortname): New globals.
9842 (record_full_is_used): New function.
9843 (find_full_open): Call record_preopen instead of checking
9845 (init_record_full_ops): Set the target's shortname to
9846 record_full_shortname.
9847 (init_record_full_core_ops): Set the target's shortname to
9848 record_full_core_shortname.
9849 * record-full.h (record_full_is_used): Declare.
9850 * record.c (find_record_target): Make extern.
9851 (record_preopen): New function.
9852 * record.h (RECORD_IS_USED): Delete macro.
9853 (find_record_target, record_preopen): Declare functions.
9855 2014-01-14 Yao Qi <yao@codesourcery.com>
9857 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9858 'len''s type to ULONGEST.
9859 (core_xfer_shared_libraries_aix): Likewise.
9860 * gdbarch.c, gdbarch.h: Regenerated.
9861 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9862 Change type of 'len' to ULONGEST.
9863 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9864 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9866 2014-01-14 Yao Qi <yao@codesourcery.com>
9868 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9869 type of 'len' to ULONGEST.
9870 (linux_xfer_osdata_processgroups): Likewise.
9871 (linux_xfer_osdata_threads): Likewise.
9872 (linux_xfer_osdata_fds): Likewise.
9873 (linux_xfer_osdata_isockets): Likewise.
9874 (linux_xfer_osdata_shm): Likewise.
9875 (linux_xfer_osdata_sem): Likewise.
9876 (linux_xfer_osdata_msg): Likewise.
9877 (linux_common_xfer_osdata): Likewise.
9878 (struct osdata_type) <getter>: Likewise.
9879 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9882 2014-01-14 Yao Qi <yao@codesourcery.com>
9884 * target.h (target_xfer_partial_ftype): Update.
9885 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9887 * aix-thread.c (aix_thread_xfer_partial): Change type of
9888 argument 'len' to ULONGEST.
9889 * auxv.c (procfs_xfer_auxv): Likewise.
9890 (ld_so_xfer_auxv): Likewise.
9891 (memory_xfer_auxv): Likewise.
9892 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9893 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9894 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9895 * corelow.c (core_xfer_partial): Likewise.
9896 * ctf.c (ctf_xfer_partial): Likewise.
9897 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9899 (darwin_read_dyld_info): Likewise.
9900 (darwin_xfer_partial): Likewise.
9901 * exec.c (section_table_xfer_memory_partial): Likewise.
9902 (exec_xfer_partial): Likewise.
9903 * exec.h (section_table_xfer_memory_partial): Update
9905 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9906 instead of plongest.
9907 (gnu_xfer_partial): Likewise.
9908 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9909 (ia64_hpux_xfer_solib_got): Likewise.
9910 (ia64_hpux_xfer_partial): Likewise.
9911 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9912 * inf-ptrace.c (inf_ptrace_xfer_partial):
9913 * inf-ttrace.c (inf_ttrace_xfer_partial):
9914 * linux-nat.c (linux_xfer_siginfo): Likewise.
9915 (linux_nat_xfer_partial): Likewise.
9916 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9917 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9918 * monitor.c (monitor_xfer_memory): Likewise.
9919 (monitor_xfer_partial): Likewise.
9920 * procfs.c (procfs_xfer_partial): Likewise.
9921 * record-full.c (record_full_xfer_partial): Likewise.
9922 (record_full_core_xfer_partial): Likewise.
9923 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9924 instead of plongest.
9925 (gdbsim_xfer_partial): Likewise.
9926 * remote.c (remote_xfer_partial): Likewise.
9927 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9928 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9930 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9931 (rs6000_xfer_shared_libraries): Likewise.
9932 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9933 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9934 (sparc_xfer_partial): Likewise.
9935 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9936 (spu_xfer_partial): Likewise.
9937 * spu-multiarch.c (spu_xfer_partial): Likewise.
9938 * target.c (target_read_live_memory): Likewise.
9939 (memory_xfer_live_readonly_partial): Likewise.
9940 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9941 (target_xfer_partial, default_xfer_partial): Likewise.
9942 (current_xfer_partial): Likewise.
9943 * tracepoint.c (tfile_xfer_partial): Likewise.
9944 * windows-nat.c (windows_xfer_memory): Likewise. Call
9945 pulongest instead of plongest.
9946 (windows_xfer_partial): Likewise.
9947 (windows_xfer_shared_libraries): Likewise.
9949 2014-01-14 Yao Qi <yao@codesourcery.com>
9951 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9952 target_xfer_partial_ftype.
9954 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9958 * valops.c (value_struct_elt_bitpos): New function
9959 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9960 object to 'None' if the field name is an empty string ("").
9961 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9962 attribute to look for a field when 'name' is 'None'.
9963 (get_field_type): New function
9965 2014-01-13 Doug Evans <dje@google.com>
9968 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9969 (try_open_dwop_file): Ditto.
9970 * gdb_bfd.c: #include "vec.h".
9971 (bfdp): New typedef.
9972 (struct gdb_bfd_data): New member included_bfds.
9973 (gdb_bfd_unref): Unref all included bfds.
9974 (gdb_bfd_record_inclusion): New function.
9975 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9977 2014-01-13 Tom Tromey <tromey@redhat.com>
9979 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9981 2014-01-13 Tom Tromey <tromey@redhat.com>
9983 * defs.h (use_windows): Remove.
9984 * gdb.c (main): Update.
9985 * main.c (captured_main, gdb_main): Update.
9986 * main.h (struct captured_main_args) <use_windows>: Remove.
9987 * top.c (use_windows): Remove.
9989 2014-01-13 Tom Tromey <tromey@redhat.com>
9991 * defs.h (deprecated_flush_hook): Remove.
9993 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9996 * linux-thread-db.c (try_thread_db_load): Add parameter
9997 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9998 (try_thread_db_load_from_pdir_1): Move it there from here.
9999 (try_thread_db_load_from_sdir): Update caller.
10000 (try_thread_db_load_from_dir): Move it there from here.
10002 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10004 * regformats/regdat.sh: Always rewrite the register file.
10006 2014-01-13 Pedro Alves <palves@redhat.com>
10008 * Makefile.in (CHECK_HEADERS): New variable.
10009 (check-headers:): New rule.
10011 2014-01-13 Tom Tromey <tromey@redhat.com>
10013 * cli/cli-setshow.c (do_set_command): Update.
10014 * defs.h (deprecated_set_hook): Remove.
10015 * top.c (deprecated_set_hook): Remove.
10017 2014-01-13 Pedro Alves <palves@redhat.com>
10019 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10020 the tracepoint if the PC is a pseudo-register.
10022 2014-01-13 Tom Tromey <tromey@redhat.com>
10024 * defs.h (XCALLOC): Remove.
10025 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10026 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10027 * dwarf2loc.c (allocate_piece_closure): Likewise.
10028 * elfread.c (elf_symfile_segments): Likewise.
10029 (elf_symfile_segments): Likewise.
10030 * gdbtypes.c (copy_type_recursive): Likewise.
10031 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10032 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10033 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10035 * mt-tdep.c (mt_gdbarch_init): Likewise.
10036 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10038 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10039 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10040 * registry.c (registry_alloc_data): Likewise.
10041 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10042 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10043 * serial.c (serial_fdopen_ops): Likewise.
10044 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10046 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10047 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10050 2014-01-13 Tom Tromey <tromey@redhat.com>
10052 * defs.h (XMALLOC): Remove.
10053 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10054 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10055 * cli-out.c (struct ui_out *): Likewise.
10056 * cli/cli-dump.c (add_dump_command): Likewise.
10057 (add_dump_command): Likewise.
10058 * complaints.c (get_complaints): Likewise.
10059 (find_complaint): Likewise.
10060 * dwarf2-frame.c (execute_cfa_program): Likewise.
10061 * dwarf2read.c (abbrev_table_read_table): Likewise.
10062 * gdbarch.sh: Likewise.
10063 * gdbarch.c: Rebuild.
10064 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10065 * interps.c (interp_new): Likewise.
10066 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10067 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10068 * mi/mi-console.c (mi_console_file_new): Likewise.
10069 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10070 * mi/mi-out.c (mi_out_new): Likewise.
10071 * mi/mi-parse.c (mi_parse): Likewise.
10072 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10073 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10074 * observer.c (xalloc_observer_list_node): Likewise.
10075 * regcache.c (regcache_xmalloc_1): Likewise.
10076 * reggroups.c (reggroup_new): Likewise.
10077 (_initialize_reggroup): Likewise.
10078 * registry.c (register_data_with_cleanup): Likewise.
10079 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10080 * ser-base.c (serial_ttystate): Likewise.
10081 * ser-mingw.c (make_pipe_state): Likewise.
10082 * ser-pipe.c (pipe_open): Likewise.
10083 * serial.c (serial_open): Likewise.
10084 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10085 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10086 (tui_alloc_win_info): Likewise.
10087 (tui_add_content_elements): Likewise.
10088 * tui/tui-file.c (tui_file_new): Likewise.
10089 * tui/tui-out.c (tui_out_new): Likewise.
10090 * ui-file.c (mem_file_new): Likewise.
10091 * ui-out.c (push_level): Likewise.
10092 (make_cleanup_ui_out_end): Likewise.
10093 (append_header_to_list): Likewise.
10094 (ui_out_new): Likewise.
10095 * user-regs.c (user_reg_add_builtin): Likewise.
10097 2014-01-13 Tom Tromey <tromey@redhat.com>
10099 * defs.h (XZALLOC): Remove.
10100 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10101 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10102 (get_ada_tasks_inferior_data): Likewise.
10103 * auto-load.c (get_auto_load_pspace_data): Likewise.
10104 * auxv.c (get_auxv_inferior_data): Likewise.
10105 * bfd-target.c (target_bfd_reopen): Likewise.
10106 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10107 (deprecated_insert_raw_breakpoint): Likewise.
10108 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10109 * corelow.c (core_open): Likewise.
10110 * darwin-nat.c (darwin_check_new_threads): Likewise.
10111 (darwin_attach_pid): Likewise.
10112 * dummy-frame.c (dummy_frame_push): Likewise.
10113 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10114 * dwarf2loc.c (allocate_piece_closure): Likewise.
10115 * elfread.c (elf_symfile_segments): Likewise.
10116 * eval.c (ptrmath_type_p): Likewise.
10117 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10118 * gdbtypes.c (alloc_type_arch): Likewise.
10119 (alloc_type_instance): Likewise.
10120 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10121 * inf-child.c (inf_child_can_use_agent): Likewise.
10122 * inflow.c (get_inflow_inferior_data): Likewise.
10123 * infrun.c (save_infcall_suspend_state): Likewise.
10124 * jit.c (jit_reader_load): Likewise.
10125 (get_jit_objfile_data): Likewise.
10126 (get_jit_program_space_data): Likewise.
10127 (jit_object_open_impl): Likewise.
10128 (jit_symtab_open_impl): Likewise.
10129 (jit_block_open_impl): Likewise.
10130 (jit_frame_sniffer): Likewise.
10131 * linux-fork.c (add_fork): Likewise.
10132 * maint.c (make_command_stats_cleanup): Likewise.
10133 * objfiles.c (get_objfile_pspace_data): Likewise.
10134 * opencl-lang.c (struct lval_closure): Likewise.
10135 * osdata.c (osdata_start_osdata): Likewise.
10136 * progspace.c (new_address_space): Likewise.
10137 (add_program_space): Likewise.
10138 * remote-sim.c (get_sim_inferior_data): Likewise.
10139 * sh-tdep.c (sh_gdbarch_init): Likewise.
10140 * skip.c (Ignore): Likewise.
10141 (skip_delete_command): Likewise.
10142 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10143 (library_list_start_library): Likewise.
10144 (solib_aix_current_sos): Likewise.
10145 * solib-darwin.c (get_darwin_info): Likewise.
10146 (darwin_current_sos): Likewise.
10147 * solib-dsbt.c (get_dsbt_info): Likewise.
10148 * solib-ia64-hpux.c (new_so_list): Likewise.
10149 (ia64_hpux_get_solib_linkage_addr): Likewise.
10150 * solib-spu.c (append_ocl_sos): Likewise.
10151 (spu_current_sos): Likewise.
10152 * solib-svr4.c (get_svr4_info): Likewise.
10153 (svr4_keep_data_in_core): Likewise.
10154 (library_list_start_library): Likewise.
10155 (svr4_default_sos): Likewise.
10156 (svr4_read_so_list): Likewise.
10157 * solib-target.c (library_list_start_library): Likewise.
10158 (solib_target_current_sos): Likewise.
10159 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10160 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10161 * symfile.c (default_symfile_segments): Likewise.
10162 * target-descriptions.c (tdesc_data_init): Likewise.
10163 (tdesc_create_reg): Likewise.
10164 (struct tdesc_type *): Likewise.
10165 (tdesc_create_vector): Likewise.
10166 (tdesc_set_struct_size): Likewise.
10167 (struct tdesc_type *): Likewise.
10168 (tdesc_free_feature): Likewise.
10169 (tdesc_create_feature): Likewise.
10170 * windows-nat.c (windows_add_thread): Likewise.
10171 (windows_make_so): Likewise.
10172 * xml-support.c (gdb_xml_body_text): Likewise.
10173 (gdb_xml_create_parser_and_cleanup): Likewise.
10174 (xml_process_xincludes): Likewise.
10175 * xml-syscall.c (allocate_syscalls_info): Likewise.
10176 (syscall_create_syscall_desc): Likewise.
10178 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10180 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10181 function, with code from i386_stap_parse_special_token.
10182 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10183 (i386_stap_parse_special_token): Move code to the two functions
10184 above; simplify it.
10186 2014-01-09 Pedro Alves <palves@redhat.com>
10187 Hui Zhu <hui@codesourcery.com>
10190 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10191 bp_err_string. Don't mark the location shlib_disabled if the
10192 error thrown wasn't a generic or memory error. Catch errors
10193 thrown while inserting breakpoints in overlayed code. Output
10194 error message of software breakpoints.
10195 * remote.c (remote_insert_breakpoint): If this breakpoint has
10196 target-side commands but this stub doesn't support Z0 packets,
10197 throw NOT_SUPPORTED_ERROR error.
10198 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10199 * target.h (target_insert_breakpoint): Extend comment.
10200 (target_insert_hw_breakpoint): Add comment.
10202 2014-01-08 Pedro Alves <palves@redhat.com>
10204 * remote.c (remote_add_thread): Add threads silently if starting
10206 (remote_notice_new_inferior): If in all-stop, and starting up,
10207 don't call notice_new_inferior.
10208 (get_current_thread): New function, factored out from ...
10209 (add_current_inferior_and_thread): ... this. Adjust.
10210 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10211 found any thread, then select the remote's current thread as GDB's
10212 current thread too.
10214 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10216 * NEWS: Create a new section for the next release branch.
10217 Rename the section of the current branch, now that it has
10220 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10222 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10223 * version.in: Bump version to 7.7.50.DATE-cvs.
10225 2014-01-08 Yao Qi <yao@codesourcery.com>
10227 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10228 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10229 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10231 2014-01-08 Yao Qi <yao@codesourcery.com>
10233 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10234 return value of bfd_get_filename to symbol_file_add_from_bfd.
10236 2014-01-08 Pierre Muller <muller@sourceware.org>
10239 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10240 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10241 to prim_record_mininal_symbol_and_info.
10242 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10243 in call to prim_record_minimal_symbol_and_info.
10244 (read_pe_exported_syms): Set index field of section_data.
10246 2014-01-07 Andrew Pinski <apinski@cavium.com>
10248 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10249 * features/aarch64.c: Regenerate.
10251 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10253 * target.c (return_null): Define.
10254 (update_current_target): Use it instead of return_zero for
10255 functions that return a pointer.
10257 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10259 * source.c (add_path): Fix check for duplicated paths in the previously
10262 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10264 * ada-lang.c: Remove duplicated include statements.
10265 * alphabsd-nat.c: Ditto.
10266 * amd64-darwin-tdep.c: Ditto.
10267 * amd64fbsd-nat.c: Ditto.
10268 * auto-load.c: Ditto.
10270 * breakpoint.c: Ditto.
10271 * dbxread.c: Ditto.
10272 * fork-child.c: Ditto.
10273 * gdb_usleep.c: Ditto.
10274 * i386-darwin-tdep.c: Ditto.
10275 * i386fbsd-nat.c: Ditto.
10277 * inferior.c: Ditto.
10278 * jv-lang.c: Ditto.
10279 * linux-nat.c: Ditto.
10280 * linux-tdep.c: Ditto.
10281 * m68kbsd-nat.c: Ditto.
10282 * m68klinux-nat.c: Ditto.
10283 * microblaze-tdep.c: Ditto.
10284 * mips-linux-tdep.c: Ditto.
10285 * mn10300-tdep.c: Ditto.
10286 * nto-tdep.c: Ditto.
10287 * opencl-lang.c: Ditto.
10289 * printcmd.c: Ditto.
10290 * regcache.c: Ditto.
10291 * remote-m32r-sdi.c: Ditto.
10293 * symfile.c: Ditto.
10295 * tilegx-linux-nat.c: Ditto.
10296 * tilegx-tdep.c: Ditto.
10297 * tracepoint.c: Ditto.
10299 * vaxbsd-nat.c: Ditto.
10300 * windows-nat.c: Ditto.
10301 * xtensa-tdep.c: Ditto.
10303 2014-01-07 Yao Qi <yao@codesourcery.com>
10305 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10307 2014-01-07 Yao Qi <yao@codesourcery.com>
10308 Joel Brobecker <brobecker@adacore.com>
10310 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10311 (pdc_write_regs): Likewise.
10312 (fetch_regs_kernel_thread): Likewise.
10313 (store_regs_kernel_thread): Likewise.
10315 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10317 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10318 tagged type objects to their actual type.
10320 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10322 * ada-valprint.c (print_field_values): Add "language" parameter.
10323 Update calls to print_field_values and print_variant_part.
10324 Pass new parameter "language" in call to val_print instead
10325 of "current_language". Replace call to ada_val_print by call
10327 (print_variant_part): Add "language" parameter.
10328 (ada_val_print_struct_union): Update call to print_field_values.
10330 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10332 * ada-valprint.c (ui_memcpy): Delete.
10333 (ada_print_floating): Update documentation. Add empty line
10334 between between function documentation and implementation.
10335 Delete variable "buffer". Use ui_file_xstrdup in place of
10336 ui_file_put. Minor adjustments following this change.
10338 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10340 * ada-valprint.c (ada_val_print_string): New function,
10341 extracted from ada_val_print_array.
10342 (ada_val_print_array): Replace extracted code by call
10343 to ada_val_print_string followed by a return. Move
10344 "else" branch to the function's top block.
10346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10348 * ada-valprint.c (ada_val_print_array): Move implementation
10349 down. Rename parameter "offset" and "val" into "offset_aligned"
10350 and "original_value" respectively. Add parameter "offset".
10352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10354 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10355 re-organizing the code. Change the "???" message printed
10356 when target type is a TYPE_CODE_UNDEF into
10357 "<ref to undefined type>".
10359 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10361 * ada-valprint.c (print_record): Delete, implementation inlined...
10362 (ada_val_print_struct_union): ... here. Remove call to
10363 ada_check_typedef in inlined implementation.
10365 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10367 * ada-valprint.c (ada_val_print_gnat_array): New function,
10368 extracted from ada_val_print_1;
10369 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10370 (ada_val_print_flt, ada_val_print_struct_union)
10371 (ada_val_print_ref): Likewise.
10372 (ada_val_print_1): Delete variables i and elttype.
10373 Replace extracted-out code by call to corresponding
10376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10378 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10380 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10382 * ada-valprint.c (ada_val_print_1): Replace calls to
10383 ada_val_print_1 by calls to val_print.
10385 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10387 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10388 Update calls to self accordingly. Replace calls to c_val_print
10389 by calls to val_print.
10391 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10393 * ada-valprint.c (print_record): Delete declaration.
10394 (adjust_type_signedness, ada_val_print_1): Likewise.
10395 (ada_val_print): Move function implementation down.
10396 (print_variant_part, print_field_values, print_record):
10397 Move function implementation up.
10399 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10401 * python/py-type.c (typy_get_name): New function.
10402 (type_object_getset): Add entry for attribute "name".
10403 * NEWS: Add entry mentioning this new attribute.
10405 2014-01-07 Yao Qi <yao@codesourcery.com>
10407 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10410 2014-01-07 Yao Qi <yao@codesourcery.com>
10412 * gnu-nat.c (info_port_rights): Add qualifier const to
10415 2014-01-07 Yao Qi <yao@codesourcery.com>
10417 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10419 2014-01-07 Yao Qi <yao@codesourcery.com>
10421 * gnu-nat.c (make_inf) Update declaration.
10422 (make_inf): Make it static.
10423 (inf_set_traced): Likewise.
10424 (inf_port_to_thread, inf_task_died_status): Likewise.
10426 2014-01-07 Yao Qi <yao@codesourcery.com>
10428 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10430 2014-01-07 Yao Qi <yao@codesourcery.com>
10432 * gnu-nat.c (_initialize_gnu_nat): Declare.
10434 2014-01-07 Yao Qi <yao@codesourcery.com>
10436 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10438 (struct gdbarch_info) <byte_order>: Change type to
10440 <byte_order_for_code>: Likewise.
10441 * gdbarch.c, gdbarch.h: Regenerated.
10443 2014-01-06 Sasha Smundak <asmundak@google.com>
10445 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10447 2014-01-06 Tom Tromey <tromey@redhat.com>
10449 * doublest.c (convert_doublest_to_floatformat): Use const, not
10451 * somread.c (som_symtab_read): Likewise.
10453 2014-01-07 Hui Zhu <hui@codesourcery.com>
10455 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10456 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10457 (gdb_bfd_fopen): Ditto.
10458 (gdb_bfd_openr): Ditto.
10459 (gdb_bfd_openw): Ditto.
10460 (gdb_bfd_openr_iovec): Ditto.
10461 (gdb_bfd_fdopenr): Ditto.
10462 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10463 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10465 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10467 * symfile-mem.c (symbol_file_add_from_memory): Removed
10468 gdb_bfd_stash_filename.
10470 2014-01-03 Doug Evans <dje@google.com>
10472 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10475 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10477 Update year range in copyright notice of all files.
10479 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10481 * top.c (print_gdb_version): Set copyright year to 2014.
10483 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10485 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10487 For older changes see ChangeLog-2013.
10493 version-control: never