1 2014-07-20 Doug Evans <dje@google.com>
4 * remote.c (putpkt_binary): Add text to error message.
6 2014-07-20 Yao Qi <yao@codesourcery.com>
8 * eval.c: Remove "Chill" from comments.
9 * gdbtypes.h: Likewise.
12 2014-07-20 Yao Qi <yao@codesourcery.com>
14 * std-operator.def: Update comments to TERNOP_SLICE.
16 2014-07-20 Yao Qi <yao@codesourcery.com>
18 * std-operator.def: Remove BINOP_RANGE.
19 * breakpoint.c (watchpoint_exp_is_const): Update.
20 * expprint.c (dump_subexp_body_standard): Likewise.
21 * eval.c (init_array_element): Remove dead code.
22 (evaluate_subexp_standard): Likewise.
24 2014-07-20 Yao Qi <yao@codesourcery.com>
26 * std-operator.def: Remove BINOP_IN.
27 * breakpoint.c (watchpoint_exp_is_const): Update.
28 * eval.c (evaluate_subexp_standard): Likewise.
29 * expprint.c (dump_subexp_body_standard): Likewise.
31 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
33 * microblaze-tdep.c (microblaze_register_names): Add
34 the rshr and rslr register names.
35 (microblaze_gdbarch_init): Use of tdesc_has_registers.
36 Use of tdesc_find_feature. Use of tdesc_data_alloc.
37 Use of tdesc_numbered_register. Use of
38 microblaze_register_g_packet_guesses. Use of
39 tdesc_use_registers. Use of set_gdbarch_register_type.
40 (microblaze_register_g_packet_guesses): New.
41 * microblaze-tdep.h (microblaze_reg_num): Add
42 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
43 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
44 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
45 * features/microblaze-core.xml: New file.
46 * features/microblaze-stack-protect.xml: New file.
47 * features/microblaze-with-stack-protect.c: New file.
48 * features/microblaze-with-stack-protect.xml: New file.
49 * features/microblaze.xml: New file.
50 * features/microblaze.c: New file.
51 * features/Makefile (microblaze-with-stack-protect): Add
52 microblaze-with-stack-protect microblaze and microblaze-expedite.
53 * regformats/microblaze-with-stack-protect.dat: New file.
54 * regformats/microblaze.dat: New file.
55 * doc/gdb.texinfo (MicroBlaze Features): Added.
57 2014-07-18 Tom Tromey <tromey@redhat.com>
59 * exec.c (exec_ops): Now static.
60 * exec.h (exec_ops): Don't declare.
62 2014-07-18 Tom Tromey <tromey@redhat.com>
64 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
65 to find_target_beneath.
66 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
68 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
70 2014-07-18 Tom Tromey <tromey@redhat.com>
73 * utils.c (quit): Use target_supports_terminal_ours.
74 * target.h (target_supports_terminal_ours): Declare.
75 * target.c (target_supports_delete_record): Don't check
76 to_delete_record against NULL.
77 (target_supports_terminal_ours): New function.
79 2014-07-18 Tom Tromey <tromey@redhat.com>
82 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
83 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
84 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
85 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
86 * windows-nat.c (windows_xfer_partial): Always delegate.
87 * record-btrace.c (record_btrace_xfer_partial): Simplify
89 (record_btrace_fetch_registers, record_btrace_store_registers)
90 (record_btrace_prepare_to_store, record_btrace_resume)
91 (record_btrace_wait, record_btrace_find_new_threads)
92 (record_btrace_thread_alive): Likewise.
93 * procfs.c (procfs_xfer_partial): Always delegate.
94 * corelow.c (core_xfer_partial): Always delegate.
95 * sol-thread.c (sol_find_new_threads): Simplify delegation.
97 2014-07-18 Tom Tromey <tromey@redhat.com>
99 * exec.c (exec_make_note_section): Move earlier.
101 2014-07-17 Doug Evans <dje@google.com>
104 * maint.c (count_symtabs_and_blocks): Handle NULL
105 current_program_space.
106 (report_command_stats): Check global enabled flag in addition to
107 recorded enabled flag.
108 (make_command_stats_cleanup): Handle msg_type == 0, startup.
110 2014-07-16 Pedro Alves <palves@redhat.com>
112 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
114 2014-07-16 Tom Tromey <tromey@redhat.com>
116 * target.h (struct target_ops) <to_delete_record>: Reformat
119 2014-07-16 Tom Tromey <tromey@redhat.com>
121 * target-delegates.c: Rebuild.
123 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
125 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
126 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
127 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
128 (avr_pointer_to_address): Likewise.
129 (avr_address_class_type_flags): New function.
130 (avr_address_class_type_flags_to_name): Likewise.
131 (avr_address_class_name_to_type_flags): Likewise.
132 (avr_gdbarch_init): Set address_class_type_flags,
133 address_class_type_flags_to_name and
134 address_class_name_to_type_flags.
136 2014-07-15 Pedro Alves <palves@redhat.com>
138 * linux-nat.c (kill_callback): Save errno and work with saved
141 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
143 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
145 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
147 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
148 breakpoint support correctly.
150 2014-07-14 Pedro Alves <palves@redhat.com>
152 * utils.c (prompt_for_continue): Call target_terminal_ours.
154 2014-07-14 Pedro Alves <palves@redhat.com>
156 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
157 catch_errors. Don't re-enable stdin or notify observers where,
159 (fetch_inferior_event_wrapper): Delete.
161 2014-07-14 Pedro Alves <palves@redhat.com>
164 * top.c: Include "inf-loop.h".
165 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
167 (gdb_readline_wrapper_cleanup): Make the target async again, if it
169 (gdb_readline_wrapper): Store whether the target is async, and
172 2014-07-14 Pedro Alves <palves@redhat.com>
175 * top.c (gdb_readline_wrapper_line): Tweak comment.
176 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
177 the input handler callback.
179 2014-07-14 Pedro Alves <palves@redhat.com>
182 * main.c: Include event-top.h.
183 (handle_command_errors): New function.
184 (catch_command_errors, catch_command_errors_const): Use it.
186 2014-07-14 Pedro Alves <palves@redhat.com>
188 * exceptions.c (catch_command_errors, catch_command_errors_const):
190 * exceptions.h (catch_command_errors_ftype)
191 (catch_command_errors_const_ftype): Moved to main.c.
192 (catch_command_errors, catch_command_errors_const): Delete
194 * main.c (catch_command_errors_ftype)
195 (catch_command_errors_const_ftype): Moved here from exceptions.h.
196 (catch_command_errors, catch_command_errors_const)): Moved here
197 from exceptions.c and make static.
199 2014-07-14 Pedro Alves <palves@redhat.com>
201 * exceptions.c (print_any_exception): Delete.
202 (catch_exceptions_with_msg): Use exception_print instead of
204 (catch_errors): Use exception_fprintf instead of
206 (catch_command_errors, catch_command_errors_const): Use
207 exception_print instead of print_any_exception.
209 2014-07-14 Pedro Alves <palves@redhat.com>
211 * infcall.c (run_inferior_call): Set 'sync_execution' while
212 running the inferior call.
214 2014-07-14 Pedro Alves <palves@redhat.com>
216 * value.c (value_contents_equal): Delete function.
217 * value.h (value_contents_equal): Delete declaration.
219 2014-07-14 Tom Tromey <tromey@redhat.com>
222 * gdbtypes.c (is_dynamic_type_internal): New function, from
224 (is_dynamic_type): Rewrite.
225 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
226 (resolve_dynamic_struct): Likewise.
227 (resolve_dynamic_type_internal): New function, from
228 resolve_dynamic_type.
229 (resolve_dynamic_type): Rewrite.
231 2014-07-14 Tom Tromey <tromey@redhat.com>
233 * target.c (target_require_runnable): Also check record_stratum.
236 2014-07-11 Yao Qi <yao@codesourcery.com>
238 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
239 thumb_instruction_restores_sp return true.
241 2014-07-11 Yao Qi <yao@codesourcery.com>
243 * arm-tdep.c (thumb_instruction_restores_sp): New function.
244 (thumb_in_function_epilogue_p): Call
245 thumb_instruction_restores_sp.
247 2014-07-11 Yao Qi <yao@codesourcery.com>
249 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
251 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
253 2014-07-11 Gary Benson <gbenson@redhat.com>
255 * amd64-linux-nat.c (gdbcore.h): Remove include.
256 (regset.h): Likewise.
257 (nat/linux-btrace.h): Likewise.
258 (btrace.h): Likewise.
259 (gdb_assert.h): Likewise.
260 (string.h): Likewise.
261 (sys/uio.h): Likewise.
262 (sys/debugreg.h): Likewise.
263 (sys/syscall.h): Likewise.
264 (sys/procfs.h): Likewise.
265 (sys/user.h): Likewise.
266 (asm/ptrace.h): Likewise.
267 (i386-nat.h): Likewise.
268 * i386-linux-nat.c (i386-nat.h): Likewise.
269 (regset.h): Likewise.
270 (target.h): Likewise.
271 (linux-nat.h): Likewise.
272 (nat/linux-btrace.h): Likewise.
273 (btrace.h): Likewise.
274 (gdb_assert.h): Likewise.
275 (string.h): Likewise.
276 (sys/uio.h): Likewise.
277 (sys/user.h): Likewise.
278 (sys/procfs.h): Likewise.
279 (sys/reg.h): Likewise.
280 (sys/debugreg.h): Likewise.
281 (ORIG_EAX): Remove definition.
283 2014-07-11 Gary Benson <gbenson@redhat.com>
285 * i386-linux-nat.h: New file.
286 * x86-linux-nat.h: Likewise.
287 * x86-linux-nat.c: Likewise.
288 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
289 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
290 * config/i386/linux64.mh (NATDEPFILES): Likewise.
291 * amd64-linux-nat.c (x86-linux-nat.h): New include.
292 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
293 (PTRACE_SETREGSET): Likewise.
294 (arch_lwp_info): Now in x86-linux-nat.c.
295 (have_ptrace_getregset): Now in x86-linux-nat.h.
296 (x86_linux_dr_get): Now in x86-linux-nat.c.
297 (x86_linux_dr_set): Likewise.
298 (x86_linux_dr_get_addr): Likewise.
299 (x86_linux_dr_get_control): Likewise.
300 (x86_linux_dr_get_status): Likewise.
301 (update_debug_registers_callback): Likewise.
302 (x86_linux_dr_set_control): Likewise.
303 (x86_linux_dr_set_addr): Likewise.
304 (x86_linux_prepare_to_resume): Likewise.
305 (x86_linux_new_thread): Likewise.
306 (x86_linux_new_fork): Likewise.
307 (x86_linux_get_thread_area): Likewise.
308 (super_post_startup_inferior): Likewise.
309 (x86_linux_child_post_startup_inferior): Likewise.
310 (AMD64_LINUX_USER64_CS): Likewise.
311 (AMD64_LINUX_X32_DS): Likewise.
312 (x86_linux_read_description): Likewise.
313 (x86_linux_enable_btrace): Likewise.
314 (x86_linux_disable_btrace): Likewise.
315 (x86_linux_teardown_btrace): Likewise.
316 (x86_linux_read_btrace): Likewise.
317 (x86_linux_create_target): Likewise.
318 (x86_linux_add_target): Likewise.
319 * i386-linux-nat.c (x86-linux-nat.h): New include.
320 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
321 (PTRACE_SETREGSET): Likewise.
322 (arch_lwp_info): Now in x86-linux-nat.c.
323 (have_ptrace_getregset): Now in x86-linux-nat.h.
324 (x86_linux_dr_get): Now in x86-linux-nat.c.
325 (x86_linux_dr_set): Likewise.
326 (x86_linux_dr_get_addr): Likewise.
327 (x86_linux_dr_get_control): Likewise.
328 (x86_linux_dr_get_status): Likewise.
329 (update_debug_registers_callback): Likewise.
330 (x86_linux_dr_set_control): Likewise.
331 (x86_linux_dr_set_addr): Likewise.
332 (x86_linux_prepare_to_resume): Likewise.
333 (x86_linux_new_thread): Likewise.
334 (x86_linux_new_fork): Likewise.
335 (x86_linux_get_thread_area): Likewise.
336 (super_post_startup_inferior): Likewise.
337 (x86_linux_child_post_startup_inferior): Likewise.
338 (AMD64_LINUX_USER64_CS): Likewise.
339 (AMD64_LINUX_X32_DS): Likewise.
340 (x86_linux_read_description): Likewise.
341 (x86_linux_enable_btrace): Likewise.
342 (x86_linux_disable_btrace): Likewise.
343 (x86_linux_teardown_btrace): Likewise.
344 (x86_linux_read_btrace): Likewise.
345 (x86_linux_create_target): Likewise.
346 (x86_linux_add_target): Likewise.
348 2014-07-11 Gary Benson <gbenson@redhat.com>
350 * amd64-linux-nat.c: Comment and whitespace changes.
351 * i386-linux-nat.c: Comment and whitespace changes.
353 2014-07-11 Gary Benson <gbenson@redhat.com>
355 * amd64-linux-nat.c (x86_linux_create_target): New function.
356 (x86_linux_add_target): Likewise.
357 (_initialize_amd64_linux_nat): Delegate to the above new functions.
358 * i386-linux-nat.c (x86_linux_create_target): New function.
359 (x86_linux_add_target): Likewise.
360 (_initialize_i386_linux_nat): Delegate to the above new functions.
362 2014-07-11 Gary Benson <gbenson@redhat.com>
364 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
365 (ps_get_thread_area): Delegate to the above in 32-bit mode.
366 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
367 (ps_get_thread_area): Delegate to the above.
369 2014-07-11 Gary Benson <gbenson@redhat.com>
371 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
372 x86_linux_read_description. All uses updated. amd64-specific
373 code conditionalized. Conditionalized i386-specific code added.
374 Redundant cast removed.
375 * i386-linux-nat.c (i386_linux_read_description): Renamed to
376 x86_linux_read_description. All uses updated. i386-specific
377 code conditionalized. Conditionalized amd64-specific code added.
378 One sizeof replaced with the actual type it is describing.
380 2014-07-11 Gary Benson <gbenson@redhat.com>
382 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
383 x86_linux_dr_get. All uses updated.
384 (amd64_linux_dr_set): Renamed to
385 x86_linux_dr_set. All uses updated.
386 (amd64_linux_dr_get_addr): Renamed to
387 x86_linux_dr_get_addr. All uses updated.
388 (amd64_linux_dr_get_control): Renamed to
389 x86_linux_dr_get_control. All uses updated.
390 (amd64_linux_dr_get_status): Renamed to
391 x86_linux_dr_get_status. All uses updated.
392 (amd64_linux_dr_set_control): Renamed to
393 x86_linux_dr_set_control. All uses updated.
394 (amd64_linux_dr_set_addr): Renamed to
395 x86_linux_dr_set_addr. All uses updated.
396 (amd64_linux_prepare_to_resume): Renamed to
397 x86_linux_prepare_to_resume. All uses updated.
398 (amd64_linux_new_thread): Renamed to
399 x86_linux_new_thread. All uses updated.
400 (amd64_linux_new_fork): Renamed to
401 x86_linux_new_fork. All uses updated.
402 (amd64_linux_child_post_startup_inferior): Renamed to
403 x86_linux_child_post_startup_inferior. All uses updated.
404 (amd64_linux_enable_btrace): Renamed to
405 x86_linux_enable_btrace. All uses updated.
406 (amd64_linux_disable_btrace): Renamed to
407 x86_linux_disable_btrace. All uses updated.
408 (amd64_linux_teardown_btrace): Renamed to
409 x86_linux_teardown_btrace. All uses updated.
410 (amd64_linux_read_btrace): Renamed to
411 x86_linux_read_btrace. All uses updated.
412 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
413 x86_linux_dr_get. All uses updated.
414 (i386_linux_dr_set): Renamed to
415 x86_linux_dr_set. All uses updated.
416 (i386_linux_dr_get_addr): Renamed to
417 x86_linux_dr_get_addr. All uses updated.
418 (i386_linux_dr_get_control): Renamed to
419 x86_linux_dr_get_control. All uses updated.
420 (i386_linux_dr_get_status): Renamed to
421 x86_linux_dr_get_status. All uses updated.
422 (i386_linux_dr_set_control): Renamed to
423 x86_linux_dr_set_control. All uses updated.
424 (i386_linux_dr_set_addr): Renamed to
425 x86_linux_dr_set_addr. All uses updated.
426 (i386_linux_prepare_to_resume): Renamed to
427 x86_linux_prepare_to_resume. All uses updated.
428 (i386_linux_new_thread): Renamed to
429 x86_linux_new_thread. All uses updated.
430 (i386_linux_new_fork): Renamed to
431 x86_linux_new_fork. All uses updated.
432 (i386_linux_child_post_startup_inferior): Renamed to
433 x86_linux_child_post_startup_inferior. All uses updated.
434 (i386_linux_enable_btrace): Renamed to
435 x86_linux_enable_btrace. All uses updated.
436 (i386_linux_disable_btrace): Renamed to
437 x86_linux_disable_btrace. All uses updated.
438 (i386_linux_teardown_btrace): Renamed to
439 x86_linux_teardown_btrace. All uses updated.
440 (i386_linux_read_btrace): Renamed to
441 x86_linux_read_btrace. All uses updated.
443 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
445 * remote.c (extended_remote_post_attach): New function.
446 (init_extended_remote_ops): Install it as to_post_attach method.
448 2014-07-09 Pedro Alves <palves@redhat.com>
450 * infcmd.c (attach_command_post_wait): Don't call
451 target_terminal_inferior here.
452 (attach_command): Call it here instead.
454 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
456 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
458 * c-varobj.c (c_is_path_expr_parent): New function, moved core
459 from varobj.c, with additional checks.
460 (c_varobj_ops): Fill in is_path_expr_parent field.
461 (cplus_varobj_ops): Fill in is_path_expr_parent field.
462 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
464 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
466 (varobj_default_is_path_expr_parent): New function.
467 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
468 (varobj_default_is_path_expr_parent): Declare new function.
470 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
472 * infcmd.c (finish_backward): Turn internal error into normal error.
474 2014-07-07 Pedro Alves <palves@redhat.com>
477 * remote.c (async_handle_remote_sigint)
478 (async_handle_remote_sigint_twice): Call
479 gdb_call_async_signal_handler instead of
480 mark_async_signal_handler.
482 2014-07-07 Tom Tromey <tromey@redhat.com>
484 * target-delegates.c: Rebuild.
485 * target.c (target_info_record): Remove.
486 * record.c (info_record_command): Unconditionally call
488 * target.h (struct target_ops) <to_info_record>: Use
489 TARGET_DEFAULT_IGNORE.
490 (target_info_record): Remove.
492 2014-07-07 Tom Tromey <tromey@redhat.com>
494 * target.h (struct target_ops) <to_get_thread_local_address>: Use
495 TARGET_DEFAULT_NORETURN.
496 * target.c (generic_tls_error): New function.
497 (target_translate_tls_address): Don't search target stack.
498 * target-delegates.c: Rebuild.
499 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
501 * linux-thread-db.c (thread_db_get_thread_local_address):
502 Unconditionally call beneath target.
504 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
506 * cli/cli-logging.c (pop_output_files): Assign targerr to
509 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
511 * MAINTAINERS (Write After Approval): Update my email address.
513 2014-07-02 Gary Benson <gbenson@redhat.com>
515 * proc-service.c (ps_xfer_memory): Update comment.
516 (ps_pstop): Remove unused function.
517 (ps_pcontinue): Likewise.
518 (ps_lstop): Likewise.
519 (ps_lcontinue): Likewise.
520 (ps_lgetxregsize): Likewise.
521 (ps_lgetxregs): Likewise.
522 (ps_lsetxregs): Likewise.
524 (ps_ptread): Likewise.
525 (ps_ptwrite): Likewise.
527 2014-07-01 Mark Wielaard <mjw@redhat.com>
529 * dwarf2read.c (add_array_cv_type): New function.
530 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
531 (read_tag_volatile_type): Likewise.
533 2014-07-01 Tom Tromey <tromey@redhat.com>
535 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
536 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
537 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
538 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
539 * command.h (cmd_cfunc_ftype): Move earlier.
540 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
541 (add_com, add_info): Use cmd_cfunc_ftype.
543 2014-06-30 Tom Tromey <tromey@redhat.com>
545 * symtab.c (operator_chars): Make parameters and return type
547 (file_matches): Make "files" const.
548 (struct search_symbols_data) <files>: Now const.
549 (search_symbols): Make "regexp" and "files" parameters const.
551 (symtab_symbol_info): Remove cast.
552 (rbreak_command): Update.
553 * symtab.h (search_symbols): Update.
555 2014-06-27 Yao Qi <yao@codesourcery.com>
557 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
558 Change parameter type to 'struct thread_info *'. Caller
560 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
562 * dummy-frame.c (struct dummy_frame_id): New.
563 (dummy_frame_id_eq): New function.
564 (struct dummy_frame) <id>: Change its type to 'struct
566 (dummy_frame_push): Add parameter ptid and save it in
568 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
570 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
572 (lookup_dummy_frame): Change parameter type to 'struct
573 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
574 instead of frame_id_eq.
575 (dummy_frame_pop): Add parameter ptid. Callers updated.
576 Update comments. Compose dummy_frame_id and pass it to
578 (dummy_frame_discard): Add parameter ptid.
579 (dummy_frame_sniffer): Compose dummy_frame_id and call
580 dummy_frame_id_eq instead of frame_id_eq.
581 (fprint_dummy_frames): Print ptid.
582 * dummy-frame.h: Remove comments.
583 (dummy_frame_push): Add ptid in declaration.
584 (dummy_frame_pop, dummy_frame_discard): Likewise.
586 2014-06-26 Tom Tromey <tromey@redhat.com>
588 * cli/cli-cmds.c (error_no_arg): Make "why" const.
589 * command.h (error_no_arg): Update.
591 2014-06-26 Tom Tromey <tromey@redhat.com>
593 * cli/cli-setshow.c (do_set_command): Make "arg" const.
594 (do_show_command): Make "arg" const.
595 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
597 2014-06-26 Tom Tromey <tromey@redhat.com>
599 * record-full.c (record_full_get_bookmark): Make "args" const.
600 (record_full_goto_bookmark): Make "raw_bookmark" const.
601 * record.c (record_goto): New function.
602 (cmd_record_goto): Use it. Now static.
603 * record.h (record_goto): Declare.
604 (cmd_record_goto): Remove declaration.
605 * target-delegates.c: Rebuild.
606 * target.h (struct target_ops) <to_get_bookmark,
607 to_goto_bookmark>: Make parameter const.
609 2014-06-26 Tom Tromey <tromey@redhat.com>
611 * defs.h (generic_load): Update.
612 * m32r-rom.c (m32r_load_gen): Make "filename" const.
613 * monitor.c (monitor_load): Make "args" const.
614 * remote-m32r-sdi.c (m32r_load): Make "args" const.
615 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
617 (mips_load): Make "file" const.
618 * remote-sim.c (gdbsim_load): Make "args" const.
619 * remote.c (remote_load): Make "name" const.
620 * symfile.c (generic_load): Make "args" const.
621 * target-delegates.c: Rebuild.
622 * target.c (target_load): Make "arg" const.
623 (debug_to_load): Make "args" const.
624 * target.h (struct target_ops) <to_load>: Make parameter const.
625 (target_load): Update.
627 2014-06-26 Tom Tromey <tromey@redhat.com>
630 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
631 (dwarf2_physname, read_partial_die)
632 (guess_partial_die_structure_name, fixup_partial_die)
633 (guess_full_die_structure_name, anonymous_struct_prefix)
634 (dwarf2_name): Use per-BFD obstack.
636 2014-06-26 Yao Qi <yao@codesourcery.com>
638 * dummy-frame.c (dummy_frame_sniffer): Move local variables
639 dummyframe and this_id into inner block below.
641 2014-06-26 Yao Qi <yao@codesourcery.com>
643 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
644 with "signal_pass[0]" in the initialization of signal_pass.
646 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
648 * record-btrace.c (record_btrace_generating_corefile)
649 (record_btrace_prepare_to_generate_core)
650 (record_btrace_done_generating_core): New.
651 (record_btrace_xfer_partial, record_btrace_fetch_registers)
652 (record_btrace_store_registers, record_btrace_prepare_to_store):
653 Forward request when generating a core file.
654 (record_btrace_open): Set record_btrace_generating_corefile to zero.
655 (init_record_btrace_ops): Set to_prepare_to_generate_core and
656 to_done_generating_core.
658 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
660 * target.h (target_ops) <to_prepare_to_generate_core>
661 <to_done_generating_core>: New.
662 (target_prepare_to_generate_core, target_done_generating_core): New.
663 * target.c (target_prepare_to_generate_core)
664 (target_done_generating_core): New.
665 * target-delegates.c: Regenerate.
666 * gcore.c: (write_gcore_file): Rename to ...
667 (write_gcore_file_1): ...this.
668 (write_gcore_file): Call target_prepare_to_generate_core
669 and target_done_generating_core.
671 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
673 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
674 * gcore.c (write_gcore_file): Free memory returned from
676 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
677 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
679 2014-06-24 Yao Qi <yao@codesourcery.com>
681 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
682 (arm_linux_init_abi): Set skip_trampoline_code with
683 gdbarch_skip_trampoline_code instead of
684 find_solib_trampoline_target.
686 2014-06-24 Yao Qi <yao@codesourcery.com>
688 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
689 arm_skip_bx_reg returns non-zero.
691 2014-06-24 Yao Qi <yao@codesourcery.com>
693 * arm-tdep.c (arm_skip_bx_reg): New function.
694 (arm_skip_stub): Call arm_skip_bx_reg.
696 2014-06-23 Don Breazeal <donb@codesourcery.com>
698 * MAINTAINERS: Add myself as write-after-approval maintainer.
700 2014-06-23 Pedro Alves <palves@redhat.com>
702 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
703 DR_CONTROL before setting DR0..DR3.
704 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
705 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
706 bits of DR_CONTROL related to the debug register slot being
707 disabled. If all slots are vacant, clear local slowdown as well,
708 and assert DR_CONTROL is 0.
710 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
712 * python/lib/gdb/command/xmethods.py
713 (get_method_matchers_in_loci): Lookup xmethod matchers in the
714 current progspace only if the string "progspace" matches LOCUS_RE.
716 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
718 Fix --with-system-readline with readline-6.3 patch 5.
719 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
720 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
723 2014-06-20 Tom Tromey <tromey@redhat.com>
725 * dwarf2read.c (dw2_get_real_path): Use correct type in
727 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
729 2014-06-20 Gary Benson <gbenson@redhat.com>
731 * common/gdb_thread_db.h: Moved to nat. All includes updated.
732 * common/glibc_thread_db.h: Likewise.
733 * common/i386-cpuid.h: Likewise.
734 * common/i386-gcc-cpuid.h: Likewise.
735 * common/linux-btrace.h: Likewise.
736 * common/linux-osdata.h: Likewise.
737 * common/linux-procfs.h: Likewise.
738 * common/linux-ptrace.h: Likewise.
739 * common/mips-linux-watch.h: Likewise.
740 * common/linux-btrace.c: Moved to nat.
741 * common/linux-osdata.c: Likewise.
742 * common/linux-procfs.c: Likewise.
743 * common/linux-ptrace.c: Likewise.
744 * common/mips-linux-watch.c: Likewise.
745 * nat/gdb_thread_db.h: Moved from common.
746 * nat/glibc_thread_db.h: Likewise.
747 * nat/i386-cpuid.h: Likewise.
748 * nat/i386-gcc-cpuid.h: Likewise.
749 * nat/linux-btrace.c: Likewise.
750 * nat/linux-btrace.h: Likewise.
751 * nat/linux-osdata.c: Likewise.
752 * nat/linux-osdata.h: Likewise.
753 * nat/linux-procfs.c: Likewise.
754 * nat/linux-procfs.h: Likewise.
755 * nat/linux-ptrace.c: Likewise.
756 * nat/linux-ptrace.h: Likewise.
757 * nat/mips-linux-watch.c: Likewise.
758 * nat/mips-linux-watch.h: Likewise.
759 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
760 (object file files): Reordered.
761 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
762 of glibc_thread_db.h.
764 2014-06-20 Gary Benson <gbenson@redhat.com>
766 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
767 (i386_dr_low_type): Moved to nat/i386-dregs.h.
768 (i386_dr_low): Likewise.
769 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
770 (i386_dr_low_set_addr): Likewise.
771 (i386_dr_low_get_addr): Likewise.
772 (i386_dr_low_can_set_control): Likewise.
773 (i386_dr_low_set_control): Likewise.
774 (i386_dr_low_get_control): Likewise.
775 (i386_dr_low_get_status): Likewise.
776 (i386_get_debug_register_length): Likewise.
777 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
778 (i386_dr_low): Likewise.
779 * nat/i386-dregs.c (i386-low.h): Remove include.
780 (i386-nat.h): Likewise.
781 (nat/i386-dregs.h): New include.
782 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
783 (i386_dr_low_set_addr): Likewise.
784 (i386_dr_low_get_addr): Likewise.
785 (i386_dr_low_can_set_control): Likewise.
786 (i386_dr_low_set_control): Likewise.
787 (i386_dr_low_get_control): Likewise.
788 (i386_dr_low_get_status): Likewise.
789 (i386_get_debug_register_length): Likewise.
790 (debug_hw_points): Likewise.
792 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
794 * Makefile.in (SFILES): Add d-exp.y.
795 (YYFILES): Add d-exp.c.
796 (YYOBJ): Add d-exp.o.
797 (local-maintainer-clean): Delete d-exp.c.
799 * d-lang.h (d_parse): New declaration.
800 (d_error): New declaration.
801 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
802 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
803 PREC_ORDER operators.
804 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
806 2014-06-19 Yao Qi <yao@codesourcery.com>
808 * gdbthread.h (any_running): Remove the declaration.
809 * thread.c (any_running): Remove.
811 2014-06-19 Yao Qi <yao@codesourcery.com>
813 * gdbthread.h (struct thread_info) <state>: Change its type to
814 'enum thread_state'. Update comments.
816 2014-06-19 Pedro Alves <palves@redhat.com>
818 * gdbthread.h (ALL_THREADS): Delete.
819 (ALL_NON_EXITED_THREADS): New macro.
820 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
821 instead of ALL_THREADS.
822 * infrun.c (find_thread_needs_step_over)
823 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
824 instead of ALL_THREADS.
825 * record-btrace.c (record_btrace_open)
826 (record_btrace_stop_recording, record_btrace_close)
827 (record_btrace_is_replaying, record_btrace_resume)
828 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
829 * remote.c (append_pending_thread_resumptions): Likewise.
830 * thread.c (thread_apply_all_command): Likewise.
832 2014-06-19 Gary Benson <gbenson@redhat.com>
834 * i386-nat.c (i386_stopped_by_watchpoint):
835 Use i386_dr_stopped_by_watchpoint.
836 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
837 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
839 2014-06-19 Gary Benson <gbenson@redhat.com>
841 * nat/i386-dregs.c: New file.
842 * Makefile.in (i386-dregs.o): New rule.
843 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
844 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
845 * config/i386/darwin.mh (NATDEPFILES): Likewise.
846 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
847 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
848 * config/i386/go32.mh (NATDEPFILES): Likewise.
849 * config/i386/linux.mh (NATDEPFILES): Likewise.
850 * config/i386/linux64.mh (NATDEPFILES): Likewise.
851 * config/i386/mingw.mh (NATDEPFILES): Likewise.
852 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
853 * i386-nat.h (debug_hw_points): New declaration.
854 * i386-nat.c (breakpoint.h): Remove include.
855 (command.h): Likewise.
856 (target.h): Likewise.
857 (gdb_assert.h): Likewise.
858 (debug_hw_points): Made nonstatic.
859 (debug_printf): Now in i386-dregs.c.
860 (TARGET_HAS_DR_LEN_8): Likewise.
861 (DR_CONTROL_SHIFT): Likewise.
862 (DR_CONTROL_SIZE): Likewise.
863 (DR_RW_EXECUTE): Likewise.
864 (DR_RW_WRITE): Likewise.
865 (DR_RW_READ): Likewise.
866 (DR_RW_IORW): Likewise.
867 (DR_LEN_1): Likewise.
868 (DR_LEN_2): Likewise.
869 (DR_LEN_4): Likewise.
870 (DR_LEN_8): Likewise.
871 (DR_LOCAL_ENABLE_SHIFT): Likewise.
872 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
873 (DR_ENABLE_SIZE): Likewise.
874 (DR_LOCAL_SLOWDOWN): Likewise.
875 (DR_GLOBAL_SLOWDOWN): Likewise.
876 (DR_CONTROL_RESERVED): Likewise.
877 (I386_DR_CONTROL_MASK): Likewise.
878 (I386_DR_VACANT): Likewise.
879 (I386_DR_LOCAL_ENABLE): Likewise.
880 (I386_DR_GLOBAL_ENABLE): Likewise.
881 (I386_DR_DISABLE): Likewise.
882 (I386_DR_SET_RW_LEN): Likewise.
883 (I386_DR_GET_RW_LEN): Likewise.
884 (I386_DR_WATCH_HIT): Likewise.
885 (i386_wp_op_t): Likewise.
886 (i386_show_dr): Likewise.
887 (i386_length_and_rw_bits): Likewise.
888 (i386_insert_aligned_watchpoint): Likewise.
889 (i386_remove_aligned_watchpoint): Likewise.
890 (i386_handle_nonaligned_watchpoint): Likewise.
891 (i386_update_inferior_debug_regs): Likewise.
892 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
893 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
894 (i386_region_ok_for_watchpoint):
895 Use i386_dr_region_ok_for_watchpoint.
896 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
898 2014-06-19 Gary Benson <gbenson@redhat.com>
900 * i386-nat.c (i386_insert_hw_breakpoint): Use
901 i386_insert_watchpoint.
902 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
904 2014-06-19 Gary Benson <gbenson@redhat.com>
906 * i386-nat.c (i386_dr_show): Renamed to
907 i386_show_dr and made static. All uses updated.
908 (i386_dr_length_and_rw_bits): Renamed to
909 i386_length_and_rw_bits and made static.
911 (i386_dr_insert_aligned_watchpoint): Renamed to
912 i386_insert_aligned_watchpoint and made static.
914 (i386_dr_remove_aligned_watchpoint): Renamed to
915 i386_remove_aligned_watchpoint and made static.
917 (i386_dr_update_inferior_debug_regs): Renamed to
918 i386_update_inferior_debug_regs and made static.
920 * nat/i386-dregs.h (i386_dr_show): Removed.
921 (i386_dr_length_and_rw_bits): Likewise.
922 (i386_dr_insert_aligned_watchpoint): Likewise.
923 (i386_dr_remove_aligned_watchpoint): Likewise.
924 (i386_dr_update_inferior_debug_regs): Likewise.
926 2014-06-19 Gary Benson <gbenson@redhat.com>
928 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
929 * configure: Regenerate.
930 * config.in: Likewise.
931 * main.c (signal.h): New include.
932 (setup_alternate_signal_stack): New function.
933 (captured_main): Call the above.
934 * cp-support.c (signal.h): New include.
935 (catch_demangler_crashes): New flag.
936 (SIGJMP_BUF): New define.
937 (SIGSETJMP): Likewise.
938 (SIGLONGJMP): Likewise.
939 (gdb_demangle_jmp_buf): New static global.
940 (gdb_demangle_attempt_core_dump): Likewise.
941 (gdb_demangle_signal_handler): New function.
942 (gdb_demangle): If catch_demangler_crashes is set, install the
943 above signal handler before calling bfd_demangle, and restore
944 the original signal handler afterwards. Display the offending
945 symbol and call demangler_warning the first time a segmentation
947 (_initialize_cp_support): New maint set/show command.
949 2014-06-19 Gary Benson <gbenson@redhat.com>
951 * utils.h (resource_limit_kind): New enum.
952 (can_dump_core): New declaration.
953 (warn_cant_dump_core): Likewise.
954 (dump_core): Likewise.
955 * utils.c (dump_core): Made nonstatic. Added new
956 parameter "limit_kind".
957 (can_dump_core): Made nonstatic. Moved printing code to...
958 (warn_cant_dump_core): New function.
959 (can_dump_core_warn): Likewise.
960 (internal_vproblem): Replace calls to can_dump_core with
961 calls to can_dump_core_warn. Supply new argument to each.
963 2014-06-19 Gary Benson <gbenson@redhat.com>
965 * utils.h (demangler_vwarning): New declaration.
966 (demangler_warning): Likewise.
967 * utils.c (struct internal_problem)
968 <user_settable_should_quit>: New field.
969 <user_settable_should_dump_core>: Likewise
970 (internal_error_problem): Add values for above new fields.
971 (internal_warning_problem): Likewise.
972 (demangler_warning_problem): New static global.
973 (demangler_vwarning): New function.
974 (demangler_warning): Likewise.
975 (add_internal_problem_command): Selectively add commands.
976 (_initialize_utils): New internal problem command.
977 * maint.c (maintenance_demangler_warning): New function.
978 (_initialize_maint_cmds): New command.
980 2014-06-18 Tom Tromey <tromey@redhat.com>
982 * f-valprint.c (info_common_command_for_block): Update.
983 * symtab.h (struct general_symbol_info) <common_block>: Now
986 2014-06-18 Tom Tromey <tromey@redhat.com>
988 * symtab.h (struct symtab) <blockvector>: Now const.
989 * ada-lang.c (ada_add_global_exceptions): Update.
990 * buildsym.c (augment_type_symtab): Update.
991 * dwarf2read.c (dw2_lookup_symbol): Update.
992 * jit.c (finalize_symtab): Update.
993 * jv-lang.c (add_class_symtab_symbol): Update.
994 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
996 * objfiles.c (objfile_relocate1): Update.
997 * psymtab.c (lookup_symbol_aux_psymtabs)
998 (maintenance_check_psymtabs): Update.
999 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1001 * spu-tdep.c (spu_catch_start): Update.
1002 * symmisc.c (dump_symtab_1): Update.
1003 * symtab.c (lookup_global_symbol_from_objfile)
1004 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1005 (basic_lookup_transparent_type_quick)
1006 (basic_lookup_transparent_type, find_pc_sect_symtab)
1007 (find_pc_sect_line, search_symbols): Update.
1008 * block.c (find_block_in_blockvector): Make "bl" const.
1009 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1011 (blockvector_contains_pc): Make "bv" const.
1012 (block_for_pc_sect): Update.
1013 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1014 (blockvector_contains_pc): Update.
1015 * breakpoint.c (resolve_sal_pc): Update.
1016 * inline-frame.c (block_starting_point_at): Update.
1018 2014-06-18 Tom Tromey <tromey@redhat.com>
1020 * completer.c (complete_line): Make "line_buffer" const.
1021 * completer.h (complete_line): Update.
1023 2014-06-18 Tom Tromey <tromey@redhat.com>
1025 * symtab.c (add_macro_name): Remove unneeded cast.
1027 2014-06-18 Tom Tromey <tromey@redhat.com>
1029 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1030 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1032 2014-06-18 Tom Tromey <tromey@redhat.com>
1034 * probe.c (info_probes_for_ops): Make "arg" const.
1035 * probe.h (info_probes_for_ops): Update.
1037 2014-06-18 Tom Tromey <tromey@redhat.com>
1039 * varobj.c (varobj_create): Update.
1040 * valops.c (value_of_this): Update.
1041 * tracepoint.c (add_local_symbols, scope_info): Update.
1042 * symtab.h (struct general_symbol_info) <block>: Now const.
1043 * symtab.c (skip_prologue_sal)
1044 (default_make_symbol_completion_list_break_on)
1045 (skip_prologue_using_sal): Update.
1046 * stack.h (iterate_over_block_locals)
1047 (iterate_over_block_local_vars): Update.
1048 * stack.c (print_frame_args): Update.
1049 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1051 (get_selected_block): Make return type const.
1052 * python/py-frame.c (frapy_block): Update.
1053 * python/py-block.c (gdbpy_block_for_pc): Update.
1054 * p-exp.y (%union) <bval>: Now const.
1055 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1056 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1057 * m2-exp.y (%union) <bval>: Now const.
1058 * linespec.c (get_current_search_block): Make return type const.
1059 (create_sals_line_offset, find_label_symbols): Update.
1060 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1062 (block_starting_point_at): Make "block" const.
1063 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1064 (check_exception_resume): Update.
1065 * guile/scm-frame.c (gdbscm_frame_block): Update.
1066 * guile/scm-block.c (gdbscm_lookup_block): Update.
1067 * frame.h (get_frame_block): Update.
1068 (get_selected_block): Make return type const.
1069 * frame.c (frame_id_inner): Update.
1070 * f-valprint.c (info_common_command_for_block)
1071 (info_common_command): Update.
1072 * dwarf2loc.c (dwarf2_find_location_expression)
1073 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1074 (locexpr_describe_location_piece): Update.
1075 * c-exp.y (%union) <bval>: Now const.
1076 * breakpoint.c (resolve_sal_pc): Update.
1077 * blockframe.c (get_frame_block):Make return type const.
1078 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1079 (block_innermost_frame): Update.
1080 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1081 (block_for_pc, block_for_pc_sect): Update.
1082 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1084 (block_for_pc_sect, block_for_pc): Make return type const.
1085 * ax-gdb.c (gen_expr): Update.
1086 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1087 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1088 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1089 (ada_read_var_value): Update.
1090 * ada-exp.y (struct name_info) <block>: Now const.
1092 (block_lookup): Constify.
1094 2014-06-18 Gary Benson <gbenson@redhat.com>
1096 * nat/i386-dregs.h: New file.
1097 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1098 * i386-nat.h (i386-dregs.h): New include.
1099 (DR_FIRSTADDR): Now in i386-dregs.h.
1100 (DR_LASTADDR): Likewise.
1101 (DR_NADDR): Likewise.
1102 (DR_STATUS): Likewise.
1103 (DR_CONTROL): Likewise.
1104 (i386_debug_reg_state): Likewise.
1105 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1107 2014-06-18 Don Breazeal <donb@codesourcery.com>
1109 * breakpoint.c (set_longjmp_breakpoint): Call
1110 momentary_breakpoint_from_master with additional argument.
1111 (set_longjmp_breakpoint_for_call_dummy): Call
1112 momentary_breakpoint_from_master with additional argument.
1113 (set_std_terminate_breakpoint): Call
1114 momentary_breakpoint_from_master with additional argument.
1115 (momentary_breakpoint_from_master): Add argument to function
1116 definition and use it to initialize structure member flag.
1117 (clone_momentary_breakpoint): Call
1118 momentary_breakpoint_from_master with additional argument.
1119 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1120 member flags set in momentary_breakpoint_from_master.
1122 2014-06-18 Gary Benson <gbenson@redhat.com>
1124 * i386-nat.c (i386_show_dr): Renamed to
1125 i386_dr_show and made nonstatic. All uses updated.
1126 (i386_length_and_rw_bits): Renamed to
1127 i386_dr_length_and_rw_bits and made nonstatic.
1129 (i386_insert_aligned_watchpoint): Renamed to
1130 i386_dr_insert_aligned_watchpoint and made nonstatic.
1132 (i386_remove_aligned_watchpoint): Renamed to
1133 i386_dr_remove_aligned_watchpoint and made nonstatic.
1135 (i386_update_inferior_debug_regs): Renamed to
1136 i386_dr_update_inferior_debug_regs and made nonstatic.
1139 2014-06-18 Gary Benson <gbenson@redhat.com>
1141 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1142 (i386_dr_low_can_set_control): Likewise.
1143 (i386_dr_low_set_addr): Likewise.
1144 (i386_dr_low_set_control): Likewise.
1145 (i386_dr_low_get_addr): Likewise.
1146 (i386_dr_low_get_status): Likewise.
1147 (i386_dr_low_get_control): Likewise.
1148 (i386_insert_aligned_watchpoint): Use new macros.
1149 (i386_update_inferior_debug_regs): Likewise.
1150 (i386_stopped_data_address): Likewise.
1152 2014-06-18 Gary Benson <gbenson@redhat.com>
1154 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1155 New parameter. All uses updated.
1157 2014-06-18 Gary Benson <gbenson@redhat.com>
1159 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1162 2014-06-18 Gary Benson <gbenson@redhat.com>
1164 * i386-nat.c (debug_printf): New macro.
1165 (i386_get_debug_register_length): Likewise.
1166 (TARGET_HAS_DR_LEN_8): Use above macro.
1167 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1168 and printf_unfiltered. Use phex to format values.
1170 2014-06-18 Gary Benson <gbenson@redhat.com>
1172 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1175 2014-06-18 Gary Benson <gbenson@redhat.com>
1177 * i386-nat.c: Comment changes.
1179 2014-06-18 Gary Benson <gbenson@redhat.com>
1181 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1183 2014-06-18 Gary Benson <gbenson@redhat.com>
1185 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1186 (i386_insert_aligned_watchpoint): Likewise.
1187 (i386_remove_aligned_watchpoint): Likewise.
1188 (i386_handle_nonaligned_watchpoint): Likewise.
1190 2014-06-18 Gary Benson <gbenson@redhat.com>
1192 * i386-nat.c: Whitespace changes.
1194 2014-06-17 Samuel Bronson <naesten@gmail.com>
1196 * MAINTAINERS: Update Roland McGrath's email address.
1197 Thanks to Sergio Durigan Junior for pointing out that he left
1198 Red Hat a while ago, and giving me a current address.
1200 2014-06-17 Tom Tromey <tromey@redhat.com>
1202 * utils.h (savestring): Remove declaration.
1204 2014-06-17 Tom Tromey <tromey@redhat.com>
1206 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1208 2014-06-16 Keith Seitz <keiths@redhat.com>
1211 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1212 to update the varobj if inferior_ptid is null_ptid.
1214 2014-06-16 Tom Tromey <tromey@redhat.com>
1216 * target.h (struct target_ops) <to_info_proc>: Make parameter
1218 (target_info_proc): Update.
1219 * target.c (target_info_proc): Make "args" const.
1220 * procfs.c (procfs_info_proc): Update.
1221 * linux-tdep.c (linux_info_proc): Update.
1222 (linux_core_info_proc_mappings): Make "args" const.
1223 (linux_core_info_proc): Update.
1224 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1225 * gdbarch.c: Rebuild.
1226 * gdbarch.h: Rebuild.
1227 * corelow.c (core_info_proc): Update.
1229 2014-06-16 Tom Tromey <tromey@redhat.com>
1231 * target.h (struct target_ops) <to_disconnect>: Make parameter
1233 (target_disconnect): Update.
1234 * target.c (target_disconnect): Make "args" const.
1235 * target-delegates.c: Rebuild.
1236 * remote.c (remote_disconnect): Update.
1237 * record.h (record_disconnect): Update.
1238 * record.c (record_disconnect): Update.
1239 * inf-child.c (inf_child_disconnect): Update.
1241 2014-06-16 Tom Tromey <tromey@redhat.com>
1243 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1244 * target.c (debug_to_rcmd, default_rcmd): Update.
1245 * target-delegates.c: Rebuild.
1246 * remote.c (remote_rcmd): Update.
1247 * monitor.c (monitor_rcmd): Update.
1249 2014-06-16 Pedro Alves <palves@redhat.com>
1251 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1252 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1253 have OBJF_SHARED set.
1254 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1255 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1256 instead of OBJF_USERLOADED.
1257 * objfiles.h (OBJF_SHARED): Update comment.
1258 (userloaded_objfile_contains_address_p): Rename to ...
1259 (shared_objfile_contains_address_p): ... this, and update
1261 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1263 (remove_symbol_file_command): Skip objfiles that don't have
1266 2014-06-16 Tom Tromey <tromey@redhat.com>
1268 * minsyms.h (prim_record_minimal_symbol)
1269 (prim_record_minimal_symbol_and_info): Update comments.
1271 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1273 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1274 or --without-guile, according to how GDB was built.
1276 2014-06-13 Tom Tromey <tromey@redhat.com>
1278 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1280 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1282 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1284 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1285 help_list.Pass all_commands, not -1, to help_list.
1286 * cli/cli-dump.c (dump_command, append_command)
1287 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1288 (binary_dump_command, binary_append_command): Pass all_commands,
1289 not -1, to help_list.
1290 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1292 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1294 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1296 * top.c (set_history): Pass all_commands, not -1, to help_list.
1297 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1298 all_commands, not -1, to help_list.
1299 * symfile.c (overlay_command): Pass all_commands, not -1, to
1301 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1303 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1305 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1307 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1308 not -1, to help_list.
1309 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1310 not -1, to help_list.
1311 * maint.c (maintenance_command, maintenance_info_command)
1312 (maintenance_print_command, maintenance_set_cmd): Pass
1313 all_commands, not -1, to help_list.
1314 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1316 * language.c (set_check): Pass all_commands, not -1, to help_list.
1317 * infcmd.c (unset_command): Pass all_commands, not -1, to
1319 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1321 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1323 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1325 * breakpoint.c (save_command): Pass all_commands, not -1, to
1327 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1328 all_commands, not -1, to help_list.
1330 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1332 * regcache.c (struct register_to_invalidate): New structure.
1333 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1335 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1337 2014-06-12 Yao Qi <yao@codesourcery.com>
1339 * varobj.c (varobj_get_num_children): Call
1340 varobj_is_dynamic_p.
1341 (varobj_list_children): Likewise.
1342 (varobj_update): Likewise. Update comments.
1344 2014-06-12 Yao Qi <yao@codesourcery.com>
1346 * varobj.c (varobj_pretty_printed_p): Rename to ...
1347 (varobj_is_dynamic_p): ... this. New function.
1348 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1349 (varobj_is_dynamic_p): Declare.
1350 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1351 (mi_print_value_p, varobj_update_one): Likewise.
1353 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1354 Yao Qi <yao@codesourcery.com>
1356 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1357 (varobj_get_iterator): Wrap up code for pretty-printer by
1358 "#if HAVE_PYTHON" and "#endif".
1359 (update_dynamic_varobj_children): Likewise.
1361 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1362 Yao Qi <yao@codesourcery.com>
1364 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1365 gdb_python_initialized is false. Move some code from varobj.c.
1366 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1367 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1368 (struct varobj_item): Moved to varobj-iter.h".
1369 (varobj_clear_saved_item): New function.
1370 (update_dynamic_varobj_children): Move python-related code to
1372 (free_variable): Call varobj_clear_saved_item and
1375 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1376 Yao Qi <yao@codesourcery.com>
1378 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1379 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1380 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1381 (py-varobj.o): New rule.
1382 * python/py-varobj.c: New file.
1383 * python/python-internal.h (py_varobj_get_iterator): Declare.
1384 * varobj-iter.h: New file.
1385 * varobj.c: Include "varobj-iter.h"
1386 (struct varobj) <child_iter>: Change its type from "PyObject *"
1387 to "struct varobj_iter *".
1388 <saved_item>: Likewise.
1389 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1390 [HAVE_PYTHON] (varobj_get_iterator): New function.
1391 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1392 python-specific code to python/py-varobj.c.
1393 (install_visualizer): Call varobj_iter_delete instead of
1395 * varobj.h (varobj_ensure_python_env): Declare.
1397 2014-06-12 Yao Qi <yao@codesourcery.com>
1399 * varobj.c (struct varobj_item): New structure.
1400 (create_child_with_value): Update declaration.
1401 (varobj_add_child): Replace arguments 'name' and 'value' with
1402 'item'. All callers updated.
1403 (install_dynamic_child): Likewise.
1404 (update_dynamic_varobj_children): Likewise.
1405 (varobj_add_child): Likewise.
1406 (create_child_with_value): Likewise.
1408 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1410 * NEWS: Create a new section for the next release branch.
1411 Rename the section of the current branch, now that it has
1414 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1416 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1417 * version.in: Bump version to 7.8.50.DATE-cvs.
1419 2014-06-11 Pedro Alves <palves@redhat.com>
1422 * ser-mingw.c (net_windows_socket_check_pending): New function.
1423 (net_windows_select_thread): Ignore spurious wakeups. Use
1424 net_windows_socket_check_pending.
1425 (net_windows_wait_handle): Check for pending events with
1426 ioctlsocket, through net_windows_socket_check_pending, instead of
1427 checking the socket's event.
1429 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1431 * python/python-internal.h (gdb_PyObject_GetAttrString)
1432 (gdb_PyObject_HasAttrString): New inline function definitions.
1433 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1434 char * of the second argument to PyObject_GetAttrString.
1436 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1438 * serial.c (serial_write): Fix index of character to be printed
1439 in call to serial_logchar when serial debug traces are enabled.
1441 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1443 * gdbtypes (resolve_dynamic_range): Add function description.
1445 2014-06-09 Pedro Alves <palves@redhat.com>
1447 * linux-nat.c (linux_child_follow_fork): Initialize status with
1448 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1449 inner block. Only pass the signal to PTRACE_DETACH if in pass
1452 2014-06-09 Gary Benson <gbenson@redhat.com>
1454 * common/signals.c (gdb_signal_from_host): Reorder to separate
1455 the always-available ANSI-standard signals from the signals that
1457 (do_gdb_signal_to_host): Likewise.
1458 * proc-events.c (signal_table): Likewise.
1460 2014-06-08 Hui Zhu <hui@codesourcery.com>
1462 * common/linux-ptrace.c (linux_disable_event_reporting): New
1464 * common/linux-ptrace.h (linux_disable_event_reporting): New
1466 * linux-nat.c (linux_child_follow_fork): Do a single step before
1469 2014-06-07 Keith Seitz <keiths@redhat.com>
1473 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1474 from symbol_matches_domain in symtab.c. All local callers
1475 of symbol_matches_domain updated.
1476 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1477 search STRUCT_DOMAIN.
1478 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1479 independently. standard_lookup will do that automatically.
1480 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1481 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1482 (cp_lookup_symbol_in_namespace): Likewise.
1483 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1484 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1485 may return a STRUCT_DOMAIN match.
1486 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1487 * cp-support.c: Include language.h.
1488 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1490 * psymtab.c (match_partial_symbol): Compare the requested
1491 domain with the symbol's domain directly.
1492 (lookup_partial_symbol): Likewise.
1493 * symtab.c (lookup_symbol_in_language): Explain when/why
1494 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1495 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1496 appropriate languages.
1497 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1498 and moved to ada-lang.c
1499 (lookup_block_symbol): Explain that this function only returns
1500 symbol matching the requested DOMAIN.
1501 Compare the requested domain with the symbol's domain directly.
1502 (iterate_over_symbols): Compare the requested domain with the
1503 symbol's domain directly.
1504 * symtab.h (symbol_matches_domain): Remove.
1506 2014-06-06 Doug Evans <xdje42@gmail.com>
1508 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1509 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1510 (gdbscm_guile_version_is_at_least): Declare.
1511 (gdbscm_scm_string_to_int): Declare.
1512 * guile/guile.c (gdbscm_guile_major_version): New global.
1513 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1514 (guile_datadir): New static global.
1515 (gdbscm_guile_data_directory): New function.
1516 (initialize_scheme_side): Update.
1517 (misc_guile_functions): Add guile-data-directory.
1518 (initialize_gdb_module): Fetch guile version number.
1519 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1520 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1521 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1522 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1524 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1525 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1526 * guile/scm-value.c (gdbscm_value_to_string): Only call
1527 scm_port_conversion_strategy if Guile version >= 2.0.6.
1529 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1531 * main.c (print_gdb_help): Add -q and --silent.
1533 2014-06-06 Gary Benson <gbenson@redhat.com>
1535 * common/signals.c: Remove preprocessor conditionals for
1536 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1537 SIGSEGV and SIGTERM.
1538 * proc-events.c: Likewise.
1540 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1542 * symfile.c (symfile_free_objfile): Remove restriction to
1544 * symfile-mem.c (symbol_file_add_from_memory): Call
1545 add_target_sections_of_objfile.
1547 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1549 * guile/scm-value.c (gdbscm_history_append_x): Use
1550 'vlscm_get_value_smob_arg_unsafe' instead of
1551 'vlscm_scm_to_value'.
1553 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1556 * utils.c (printchar): Don't escape at all if quoter is NUL.
1557 Update function documentation to clarify effect of parameter
1559 * remote.c (escape_buffer): Pass '\\' as the quoter to
1560 fputstrn_unfiltered.
1561 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1562 generate the output.
1563 (mi_solib_unloaded): Same.
1565 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1567 * development.sh: Delete.
1568 * Makefile.in (config.status): Adjust dependency on development.sh.
1569 * configure.ac: Adjust development.sh source call.
1570 * configure: Regenerate.
1572 2014-06-04 Doug Evans <xdje42@gmail.com>
1574 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1575 is_scheme_bkpt, spec.
1576 (bpscm_make_breakpoint_smob): Initialize new members.
1577 (gdbscm_create_breakpoint_x): Split into two ...
1578 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1579 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1580 (scheme_function breakpoint_functions): Update.
1581 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1582 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1583 register-breakpoint!.
1585 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1588 * mem-break.c (z_type_supported): Return zero if
1589 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1591 2014-06-04 Tom Tromey <tromey@redhat.com>
1593 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1594 value_from_contents_and_address_unresolved.
1595 (ada_template_to_fixed_record_type_1): Likewise.
1596 (ada_which_variant_applies): Likewise.
1597 * value.h (value_from_contents_and_address_unresolved): Declare.
1598 * value.c (value_from_contents_and_address_unresolved): New
1600 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1601 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1602 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1604 2014-06-04 Tom Tromey <tromey@redhat.com>
1606 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1608 2014-06-04 Tom Tromey <tromey@redhat.com>
1610 * procfs.c (procfs_attach): Make "args" const.
1611 * windows-nat.c (windows_attach): Make "args" const.
1612 * nto-procfs.c (procfs_attach): Make "args" const.
1613 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1614 * go32-nat.c (go32_attach): Make "args" const.
1615 * gnu-nat.c (gnu_attach): Make "args" const.
1616 * darwin-nat.c (darwin_attach): Make "args" const.
1617 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1618 * linux-nat.c (linux_nat_attach): Make "args" const.
1619 * remote.c (extended_remote_attach_1, extended_remote_attach):
1621 * target.h (struct target_ops) <to_attach>: Make "args" const.
1622 (find_default_attach): Likewise.
1623 * utils.c (parse_pid_to_attach): Make "args" const.
1624 * utils.h (parse_pid_to_attach): Update.
1626 2014-06-04 Tom Tromey <tromey@redhat.com>
1628 * target-delegates.c: Rebuild.
1629 * target.c (default_thread_address_space): New function.
1630 (target_thread_address_space): Simplify.
1631 * target.h (struct target_ops) <to_thread_address_space>: Add
1632 TARGET_DEFAULT_FUNC.
1634 2014-06-04 Doug Evans <xdje42@gmail.com>
1636 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1638 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1640 * record-btrace.c: Include event-loop.h and inf-loop.h.
1641 (record_btrace_resume_exec_dir)
1642 (record_btrace_async_inferior_event_handler)
1643 (record_btrace_handle_async_inferior_event): New.
1644 (record_btrace_open): Create async event handler.
1645 (record_btrace_close): Delete async event handler.
1646 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1647 Mark async event handler.
1648 (record_btrace_execution_direction): New.
1649 (init_record_btrace_ops): Initialize to_execution_direction.
1651 2014-06-03 Doug Evans <xdje42@gmail.com>
1653 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1654 (gdbscm_make_parameter): Ditto.
1656 2014-06-03 Doug Evans <dje@google.com>
1658 * exec.c (exec_close_1): Call clear_section_table instead of
1659 resize_section_table.
1660 (clear_section_table): New function.
1661 (resize_section_table): Make static. Rename arg num_added to
1663 * exec.h (clear_section_table): Declare.
1664 (resize_section_table): Delete.
1665 * progspace.c (release_program_space): Call clear_section_table
1666 instead of resize_section_table.
1668 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1670 * NEWS (Python Scripting): Add entry about the new xmethods
1673 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1675 * python/py-xmethods.c: New file.
1676 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1677 (objfpy_dealloc): XDECREF on the new xmethods field.
1678 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1680 (objfpy_get_xmethods): New function.
1681 (objfile_getset): New entry 'xmethods'.
1682 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1683 (pspy_dealloc): XDECREF on the new xmethods field.
1684 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1686 (pspy_get_xmethods): New function.
1687 (pspace_getset): New entry 'xmethods'.
1688 * python/python-internal.h: Add declarations for new functions.
1689 * python/python.c (_initialize_python): Invoke
1690 gdbpy_initialize_xmethods.
1691 * python/lib/gdb/__init__.py (xmethods): New
1693 * python/lib/gdb/xmethod.py: New file.
1694 * python/lib/gdb/command/xmethods.py: New file.
1696 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1698 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1699 best match method returned by find_overload_match is an xmethod.
1700 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1701 the best matching operator returned by find_overload_match is an
1703 * valops.c: #include "extension.h".
1704 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1705 Return void. The list of matching source methods is returned in
1706 "fn_list" and a vector of matching debug method workers is
1707 returned in "xm_worker_vec". Update all callers.
1708 (value_find_oload_method_list): Likewise.
1709 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1710 non-NULL, then the index of the best matching method in this
1711 vector is returned. Update all callers.
1712 (find_overload_match): Include xmethods while performing overload
1715 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1717 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1718 * extension-priv.h (struct extension_language_ops): Add the
1720 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1721 get_matching_xmethod_workers, get_xmethod_argtypes,
1722 invoke_xmethod, free_xmethod_worker,
1723 free_xmethod_worker_vec): New functions.
1724 * extension.h: #include "common/vec.h".
1725 New function declarations.
1726 (struct xmethod_worker): New struct.
1727 (VEC (xmethod_worker_ptr)): New vector type.
1728 (xmethod_worker_ptr): New typedef.
1729 (xmethod_worker_vec): Likewise.
1730 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1732 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1733 (struct builtin_type): New field "xmethod".
1734 * valarith.c (value_ptradd): Assert that the value argument is not
1736 * valops.c (value_must_coerce_to_target): Return 0 for
1737 lval_xcallable values.
1738 * value.c (struct value): New field XM_WORKER in the field
1740 (value_address, value_raw_address): Return 0 for lval_xcallable
1742 (set_value_address): Assert that the value is not an
1744 (value_free): Free the associated xmethod worker when freeing
1745 lval_xcallable values.
1746 (set_value_component_location): Assert that the WHOLE value is not
1748 (value_of_xmethod, call_xmethod): New functions.
1749 * value.h: Declare "struct xmethod_worker".
1750 Declare new functions value_of_xmethod, call_xmethod.
1752 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1753 Pedro Alves <palves@redhat.com>
1755 PR breakpoints/17000
1756 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1757 New function, extracted from software_breakpoint_inserted_here_p.
1758 (software_breakpoint_inserted_here_p): Replace factored out code
1759 by call to find_non_raw_software_breakpoint_inserted_here.
1760 (bp_target_info_copy_insertion_state): New function.
1761 (bkpt_insert_location): Handle the case of a single-step
1762 breakpoint already inserted at the same address.
1763 (bkpt_remove_location): Handle the case of a single-step
1764 breakpoint still inserted at the same address.
1765 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1766 breakpoint already inserted at the same address.
1767 (deprecated_remove_raw_breakpoint): Handle the case of a
1768 non-raw breakpoint still inserted at the same address.
1769 (find_single_step_breakpoint): New function, extracted from
1770 single_step_breakpoint_inserted_here_p.
1771 (find_single_step_breakpoint): New function,
1772 factored out from single_step_breakpoint_inserted_here_p.
1773 (single_step_breakpoint_inserted_here_p): Reimplement.
1775 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1777 Pushed by Joel Brobecker <brobecker@adacore.com>
1778 * source.c (show_substitute_path_command): Fix display of matching
1781 2014-06-03 Gary Benson <gbenson@redhat.com>
1783 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1785 2014-06-02 Doug Evans <xdje42@gmail.com>
1787 Add parameter support for Guile.
1788 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1789 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1790 (scm-param.o): New rule.
1791 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1792 (gdbscm_misc_error): Declare.
1793 (gdbscm_canonicalize_command_name): Declare.
1794 (gdbscm_scm_to_host_string): Declare.
1795 (gdbscm_scm_from_host_string): Declare.
1796 (gdbscm_initialize_parameters): Declare.
1797 * guile/guile.c (initialize_gdb_module): Call
1798 gdbscm_initialize_parameters.
1799 * guile/lib/gdb.scm: Export parameter symbols.
1800 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1801 cmdscm_canonicalize_name and made public. All callers updated.
1802 * guile/scm-exception.c (gdbscm_misc_error): New function.
1803 * guile/scm-param.c: New file.
1804 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1805 (gdbscm_scm_to_host_string): New function.
1806 (gdbscm_scm_from_host_string): New function.
1807 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1809 2014-06-02 Doug Evans <xdje42@gmail.com>
1811 Add command support for Guile.
1812 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1813 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1814 (scm-cmd.o): New rule.
1815 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1816 (gdbscm_user_error_p): Declare.
1817 (gdbscm_parse_command_name): Declare.
1818 (gdbscm_valid_command_class_p): Declare.
1819 (gdbscm_initialize_commands): Declare.
1820 * guile/guile.c (initialize_gdb_module): Call
1821 gdbscm_initialize_commands.
1822 * guile/lib/gdb.scm: Export command symbols.
1823 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1824 (throw-user-error): New function.
1825 * guile/scm-cmd.c: New file.
1826 * guile/scm-exception.c (user_error_symbol): New static global.
1827 (gdbscm_user_error_p): New function.
1828 (gdbscm_initialize_exceptions): Set user_error_symbol.
1829 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1831 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1833 * top.c (command_loop): Handle comments here...
1834 (command_line_input): ... not here.
1836 2014-06-02 Doug Evans <xdje42@gmail.com>
1838 Add progspace support for Guile.
1839 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1840 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1841 (scm-progspace.o): New rule.
1842 * guile/guile-internal.h (pspace_smob): New typedef.
1843 (psscm_pspace_smob_pretty_printers): Declare.
1844 (psscm_pspace_smob_from_pspace): Declare.
1845 (psscm_scm_from_pspace): Declare.
1846 * guile/guile.c (initialize_gdb_module): Call
1847 gdbscm_initialize_pspaces.
1848 * guile/lib/gdb.scm: Export progspace symbols.
1849 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1851 (append-pretty-printer!): Ditto.
1852 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1854 * guile/scm-progspace.c: New file.
1856 2014-06-03 Alan Modra <amodra@gmail.com>
1858 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1859 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1861 2014-06-02 Doug Evans <dje@google.com>
1863 Add support for skeletonless type units.
1864 * dwarf2read.c (struct dwarf2_per_objfile): New member
1865 n_allocated_type_units.
1866 (struct dwarf2_per_objfile) <tu_stats>: New member
1867 nr_all_type_units_reallocs.
1868 (create_signatured_type_table_from_index): Initialize
1869 n_allocated_type_units
1870 (create_all_type_units): Ditto.
1871 (add_type_unit): Move up in file. New arg slot.
1872 All callers updated. Increase space for all_type_units more
1874 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1875 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1876 (lookup_dwp_signatured_type): Ditto.
1877 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1878 All callers updated.
1879 (build_type_psymtabs_1): Leave type_unit_groups as
1880 NULL if no TUs present.
1881 (print_tu_stats): New function.
1882 (process_skeletonless_type_unit): New function.
1883 (process_dwo_file_for_skeletonless_type_units): New
1885 (process_skeletonless_type_units): New function.
1886 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1887 Call print tu_stats if debugging enabled.
1889 2014-06-02 Pedro Alves <palves@redhat.com>
1891 * breakpoint.c (build_target_command_list): Don't build a command
1892 list if we have any duplicate location that isn't a dprintf.
1894 2014-06-02 Pedro Alves <palves@redhat.com>
1896 * breakpoint.c (dprintf_breakpoint_hit): New function.
1897 (initialize_breakpoint_ops): Install it as dprintf's
1898 breakpoint_hit method.
1900 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1902 * source.c (substitute_path_rule_matches): Simplify using
1903 filename_ncmp instead of FILENAME_CMP.
1905 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1907 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1909 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1911 * configure.ac: When Guile is available, check for the
1912 availability of 'scm_new_smob'.
1913 * configure, config.h.in: Regenerate.
1914 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1917 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1919 * frame.c (struct frame_info): Add stop_string field.
1920 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1921 (get_prev_frame_always): Old content moved into
1922 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1923 TRY_CATCH, handle MEMORY_ERROR exceptions.
1924 (frame_stop_reason_string): New function definition.
1925 * frame.h (unwind_stop_reason_to_string): Extend comment to
1926 mention frame_stop_reason_string.
1927 (frame_stop_reason_string): New function declaration.
1928 * stack.c (frame_info): Switch to frame_stop_reason_string.
1929 (backtrace_command_1): Switch to frame_stop_reason_string.
1930 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1931 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1932 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1934 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1936 * frame.c (frame_stop_reason_string): Rename to ...
1937 (unwind_stop_reason_to_string): this.
1938 * frame.h (frame_stop_reason_string): Rename to ...
1939 (unwind_stop_reason_to_string): this.
1940 * stack.c (frame_info): Update call to frame_stop_reason_string.
1941 (backtrace_command_1): Likewise.
1942 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1943 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1945 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1947 * frame.c (remove_prev_frame): New function.
1948 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1951 2014-05-29 Pedro Alves <palves@redhat.com>
1953 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1954 and make it const. When a single-step decays to a continue,
1955 clear 'step', not 'hw_step'. Pass whether the caller wanted
1956 to step to user_visible_resume_ptid, not what we ask the
1959 2014-05-29 Pedro Alves <palves@redhat.com>
1961 * infrun.c (process_event_stop_test, handle_step_into_function)
1962 (handle_step_into_function_backward): Adjust.
1963 Don't set the even thread's stop_step and call stop_waiting before
1964 calling end_stepping_range. Instead do that ...
1965 (end_stepping_range): ... here. Take an ecs pointer parameter.
1967 2014-05-29 Pedro Alves <palves@redhat.com>
1969 * infrun.c (stop_stepping): Rename to ...
1970 (stop_waiting): ... this.
1971 (proceed): Update comment.
1972 (process_event_stop_test, handle_inferior_event)
1973 (handle_signal_stop, handle_step_into_function)
1974 (handle_step_into_function_backward): Update.
1976 2014-05-29 Pedro Alves <palves@redhat.com>
1978 * infcall.c (run_inferior_call): Don't check whether the current
1979 thread is running after the proceed call.
1981 2014-05-29 Pedro Alves <palves@redhat.com>
1982 Tom Tromey <tromey@redhat.com>
1984 * NEWS: Mention "maint set target-async", "set mi-async", and that
1985 background execution commands are now always available.
1986 * target.h (target_async_permitted): Update comment.
1987 * target.c (target_async_permitted, target_async_permitted_1):
1989 (set_target_async_command): Rename to ...
1990 (maint_set_target_async_command): ... this.
1991 (show_target_async_command): Rename to ...
1992 (maint_show_target_async_command): ... this.
1993 (_initialize_target): Adjust.
1994 * infcmd.c (prepare_execution_command): Make extern.
1995 * inferior.h (prepare_execution_command): Declare.
1996 * infrun.c (set_observer_mode): Leave target async alone.
1997 * mi/mi-interp.c (mi_interpreter_init): Install
1998 mi_on_sync_execution_done as sync_execution_done observer.
1999 (mi_on_sync_execution_done): New function.
2000 (mi_execute_command_input_handler): Don't print the prompt if we
2001 just started a synchronous command with an async target.
2002 (mi_on_resume): Check sync_execution before printing prompt.
2003 * mi/mi-main.h (mi_async_p): Declare.
2004 * mi/mi-main.c: Include gdbcmd.h.
2005 (mi_async_p): New function.
2006 (mi_async, mi_async_1): New globals.
2007 (set_mi_async_command, show_mi_async_command, mi_async): New
2009 (exec_continue): Call prepare_execution_command.
2010 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2011 (mi_execute_async_cli_command): Use mi_async_p.
2012 (_initialize_mi_main): Install "set mi-async". Make
2013 "target-async" a deprecated alias.
2015 2014-05-29 Pedro Alves <palves@redhat.com>
2017 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2018 (_initialize_cli_interp): Adjust.
2019 * event-loop.c: Include "observer.h".
2020 (start_event_loop): Notify 'command_error' observers instead of
2021 calling display_gdb_prompt. Remove FIXME comment.
2022 * event-top.c (display_gdb_prompt): Remove call into the
2024 * inf-loop.c: Include "observer.h".
2025 (inferior_event_handler): Notify 'command_error' observers instead
2026 of calling display_gdb_prompt.
2027 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2028 observers instead of calling display_gdb_prompt.
2029 * interps.c (interp_set): Don't call display_gdb_prompt.
2030 (current_interp_display_prompt_p): Delete.
2031 * interps.h (interp_prompt_p): Delete declaration.
2032 (interp_prompt_p_ftype): Delete.
2033 (struct interp_procs) <prompt_proc_p>: Delete field.
2034 (current_interp_display_prompt_p): Delete declaration.
2035 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2036 (_initialize_mi_interp): Adjust.
2037 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2038 'command_error' observers.
2039 (tui_on_sync_execution_done, tui_on_command_error): New
2041 (tui_display_prompt_p): Delete.
2042 (_initialize_tui_interp): Adjust.
2044 2014-05-29 Pedro Alves <palves@redhat.com>
2047 * cli/cli-interp.c: Include infrun.h and observer.h.
2048 (cli_uiout, cli_interp): New globals.
2049 (cli_on_signal_received, cli_on_end_stepping_range)
2050 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2052 (cli_interpreter_init): Install them as 'end_stepping_range',
2053 'signal_received' 'signal_exited', 'exited' and 'no_history'
2055 (_initialize_cli_interp): Remove cli_interp local.
2056 * infrun.c (handle_inferior_event): Call the several stop reason
2057 observers instead of printing the stop reason directly.
2058 (end_stepping_range): New function.
2059 (print_end_stepping_range_reason, print_signal_exited_reason)
2060 (print_exited_reason, print_signal_received_reason)
2061 (print_no_history_reason): Make static, and add an uiout
2062 parameter. Print to that instead of to CURRENT_UIOUT.
2063 * infrun.h (print_end_stepping_range_reason)
2064 (print_signal_exited_reason, print_exited_reason)
2065 (print_signal_received_reason print_no_history_reason): New
2067 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2069 <cli_uiout>: New field.
2070 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2071 uiout for CLI output. Install 'signal_received',
2072 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2074 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2075 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2076 (mi_on_no_history): New functions.
2077 (ui_out_free_cleanup): Delete function.
2078 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2079 instead use the one already stored in the MI interpreter data.
2080 (mi_ui_out): Adjust.
2081 * tui/tui-interp.c: Include infrun.h and observer.h.
2082 (tui_interp): New global.
2083 (tui_on_signal_received, tui_on_end_stepping_range)
2084 (tui_on_signal_exited, tui_on_exited)
2085 (tui_on_no_history): New functions.
2086 (tui_init): Install them as 'end_stepping_range',
2087 'signal_received' 'signal_exited', 'exited' and 'no_history'
2089 (_initialize_tui_interp): Delete tui_interp local.
2091 2014-05-29 Pedro Alves <palves@redhat.com>
2094 * linux-nat.c (linux_nat_resume_callback): Rename the second
2095 parameter to 'except'. Skip LP if it points to EXCEPT.
2096 (linux_nat_resume): Don't mark the event lwp as not stopped
2097 before resuming sibling lwps. Instead ask
2098 linux_nat_resume_callback to skip the event lwp. Mark it as not
2099 stopped after actually resuming it.
2100 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2102 (wait_lwp): Mark the lwp as stopped here.
2103 (stop_wait_callback): Mark the lwp as not stopped right after
2104 resuming it. Don't mark lwps as stopped here.
2105 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2106 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2108 2014-05-29 Pedro Alves <palves@redhat.com>
2111 * infrun.c (resume): Determine how much to resume depending on
2112 whether the caller wanted a step, not whether we can hardware step
2113 the target. Mark all threads that we intend to run as running,
2114 unless we're calling an inferior function.
2115 (normal_stop): If the thread is running an infcall, don't finish
2117 * target.c (target_resume): Don't mark threads as running here.
2119 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2121 * serial.c (_initialize_serial): Remove support for
2122 the "set remotebaud" and "show remotebaud" commands.
2123 * NEWS: Add entry documenting the removal of that command.
2125 2014-05-28 Yao Qi <yao@codesourcery.com>
2127 * charset.c: Fix typo in comments.
2129 2014-05-27 Gary Benson <gbenson@redhat.com>
2131 * utils.c (internal_vproblem): Prompt for a bug report.
2133 2014-05-26 Andy Wingo <wingo@igalia.com>
2135 * guile/scm-arch.c (arscm_mark_arch_smob):
2136 * guile/scm-block.c (bkscm_mark_block_smob)
2137 (bkscm_mark_block_syms_progress_smob):
2138 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2139 * guile/scm-exception.c (exscm_mark_exception_smob):
2140 * guile/scm-frame.c (frscm_mark_frame_smob):
2141 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2142 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2143 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2144 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2145 (ppscm_mark_pretty_printer_worker_smob):
2146 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2147 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2148 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2149 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2151 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2154 2014-05-26 Andy Wingo <wingo@igalia.com>
2155 Doug Evans <xdje42@gmail.com>
2157 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2158 empty_base_class. All uses updated.
2159 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2160 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2162 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2163 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2164 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2165 (gdbscm_gsmob_has_property_p, add_property_name)
2166 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2167 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2168 (gdb-object-has-property?, gdb-object-properties): Remove.
2169 (gdb-object-kind): Renamed from gsmob-kind.
2171 2014-05-26 Andy Wingo <wingo@igalia.com>
2173 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2174 * configure: Regenerate.
2176 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2178 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2180 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2182 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2183 (replay_memory_access_read_only, replay_memory_access_read_write)
2184 (replay_memory_access_types, replay_memory_access)
2185 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2186 (cmd_set_record_btrace, cmd_show_record_btrace)
2187 (cmd_show_replay_memory_access): New.
2188 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2189 (record_btrace_remove_breakpoint): Replace
2190 record_btrace_allow_memory_access with replay_memory_access.
2191 (_initialize_record_btrace): Add commands.
2192 * NEWS: Announce it.
2194 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2196 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2198 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2200 * MAINTAINERS (Write After Approval): Move self back from
2203 2014-05-22 Pedro Alves <palves@redhat.com>
2205 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2206 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2207 (disable_randomization, enum exec_direction_kind)
2208 (execution_direction, stop_registers, start_remote)
2209 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2210 (wait_for_inferior, normal_stop, get_last_target_status)
2211 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2212 (insert_step_resume_breakpoint_at_sal)
2213 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2214 (set_step_info, print_stop_event, signal_stop_state)
2215 (signal_print_state, signal_pass_state, signal_stop_update)
2216 (signal_print_update, signal_pass_update)
2217 (update_signals_program_target, clear_exit_convenience_vars)
2218 (displaced_step_dump_bytes, update_observer_mode)
2219 (signal_catch_update, gdb_signal_from_command): Move
2221 * infrun.h: ... to this new file.
2222 * amd64-tdep.c: Include infrun.h.
2223 * annotate.c: Include infrun.h.
2224 * arch-utils.c: Include infrun.h.
2225 * arm-linux-tdep.c: Include infrun.h.
2226 * arm-tdep.c: Include infrun.h.
2227 * break-catch-sig.c: Include infrun.h.
2228 * breakpoint.c: Include infrun.h.
2229 * common/agent.c: Include infrun.h instead of inferior.h.
2230 * corelow.c: Include infrun.h.
2231 * event-top.c: Include infrun.h.
2232 * go32-nat.c: Include infrun.h.
2233 * i386-tdep.c: Include infrun.h.
2234 * inf-loop.c: Include infrun.h.
2235 * infcall.c: Include infrun.h.
2236 * infcmd.c: Include infrun.h.
2237 * infrun.c: Include infrun.h.
2238 * linux-fork.c: Include infrun.h.
2239 * linux-nat.c: Include infrun.h.
2240 * linux-thread-db.c: Include infrun.h.
2241 * monitor.c: Include infrun.h.
2242 * nto-tdep.c: Include infrun.h.
2243 * procfs.c: Include infrun.h.
2244 * record-btrace.c: Include infrun.h.
2245 * record-full.c: Include infrun.h.
2246 * remote-m32r-sdi.c: Include infrun.h.
2247 * remote-mips.c: Include infrun.h.
2248 * remote-notif.c: Include infrun.h.
2249 * remote-sim.c: Include infrun.h.
2250 * remote.c: Include infrun.h.
2251 * reverse.c: Include infrun.h.
2252 * rs6000-tdep.c: Include infrun.h.
2253 * s390-linux-tdep.c: Include infrun.h.
2254 * solib-irix.c: Include infrun.h.
2255 * solib-osf.c: Include infrun.h.
2256 * solib-svr4.c: Include infrun.h.
2257 * target.c: Include infrun.h.
2258 * top.c: Include infrun.h.
2259 * windows-nat.c: Include infrun.h.
2260 * mi/mi-interp.c: Include infrun.h.
2261 * mi/mi-main.c: Include infrun.h.
2262 * python/py-threadevent.c: Include infrun.h.
2264 2014-05-22 Pedro Alves <palves@redhat.com>
2266 * infrun.c (handle_inferior_event): Store the exit code for
2267 --return-child-result here, instead of ...
2268 (print_exited_reason): ... here.
2270 2014-05-21 Pedro Alves <palves@redhat.com>
2273 * gdbthread.h (struct thread_control_state): New field
2275 * infrun.c (follow_fork): Copy the new thread control field to the
2277 (clear_proceed_status_thread): Clear the new thread control field.
2278 (proceed): Set the new thread control field.
2279 * interps.h (command_interp): Declare.
2280 * interps.c (command_interpreter): New global.
2281 (command_interp): New function.
2282 (interp_exec): Set `command_interpreter' while here.
2283 * cli-out.c (cli_uiout_dtor): New function.
2284 (cli_ui_out_impl): Install it.
2285 * mi/mi-interp.c: Include cli-out.h.
2286 (mi_cmd_interpreter_exec): Add comment.
2287 (restore_current_uiout_cleanup): New function.
2288 (ui_out_free_cleanup): New function.
2289 (mi_on_normal_stop): If finishing an execution command started by
2290 a CLI command, or any kind of breakpoint-like event triggered,
2291 print the stop event to the output (CLI) stream.
2292 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2294 2014-05-21 Pedro Alves <palves@redhat.com>
2296 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2297 current source line having changed.
2298 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2299 * infrun.c (normal_stop): Adjust call to
2300 set_current_sal_from_frame.
2301 * source.c (clear_lines_listed_range): New function.
2302 (set_current_source_symtab_and_line, identify_source_line): Clear
2303 the lines listed range.
2304 (line_info): Handle the first "info line" after the current source
2305 line having changed.
2306 * stack.c (print_stack_frame): Remove center handling.
2307 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2310 2014-05-21 Pedro Alves <palves@redhat.com>
2312 * inf-child.c (inf_child_mourn_inferior): New function.
2313 * inf-child.h (inf_child_mourn_inferior): New declaration.
2314 * darwin-nat.c (darwin_mourn_inferior): Use
2315 inf_child_mourn_inferior.
2316 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2317 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2318 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2319 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2320 * windows-nat.c (windows_mourn_inferior): Likewise.
2322 2014-05-21 Doug Evans <xdje42@gmail.com>
2324 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2326 2014-05-21 Doug Evans <xdje42@gmail.com>
2328 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2329 (gdbscm_out_of_range_error): Ditto.
2330 (gdbscm_memory_error): Ditto.
2331 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2332 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2333 (gdbscm_out_of_range_error): Update.
2334 (gdbscm_memory_error): Update.
2335 (gdbscm_scm_to_target_string_unsafe): Delete.
2337 2014-05-21 Pedro Alves <palves@redhat.com>
2339 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2341 (inf_child_open_target): New function.
2342 (inf_child_open): Use inf_child_open_target to push the target
2343 instead of erroring out.
2344 (inf_child_disconnect, inf_child_close)
2345 (inf_child_maybe_unpush_target): New functions.
2346 (inf_child_target): Install inf_child_disconnect and
2347 inf_child_close. Store a pointer to the returned object.
2348 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2350 * target.c (auto_connect_native_target): New global.
2351 (show_default_run_target): New function.
2352 (find_default_run_target): Return NULL if automatically connecting
2353 to the native target is disabled.
2354 (_initialize_target): Install set/show auto-connect-native-target.
2355 * NEWS: Mention "set auto-connect-native-target", and "target
2357 * linux-nat.c (super_close): New global.
2358 (linux_nat_close): Call super_close.
2359 (linux_nat_add_target): Store a pointer to the base class's
2361 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2362 inf_child_maybe_unpush.
2363 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2365 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2366 the inferior. Use inf_child_maybe_unpush_target.
2367 (inf_ttrace_attach): Don't push the target if it is already
2369 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2370 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2371 after mourning the inferior. Use inf_child_maybe_unpush_target.
2372 (darwin_attach_pid): Don't push the target if it is already
2374 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2375 mourning the inferior. Use inf_child_maybe_unpush_target.
2376 (gnu_detach): Use inf_child_maybe_unpush_target.
2377 * go32-nat.c (go32_create_inferior): Don't push the target if it
2379 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2380 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2381 (procfs_open): Rename to ...
2382 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2383 comments. Can target_preopen before changing node. Call
2384 inf_child_open_target to push the target explicitly.
2385 (procfs_attach): Don't push the target if it is already pushed.
2386 (procfs_detach): Use inf_child_maybe_unpush_target.
2387 (procfs_create_inferior): Don't push the target if it is already
2389 (nto_native_ops): New global.
2390 (procfs_open): Reimplement.
2391 (procfs_native_open): New function.
2392 (init_procfs_targets): Install procfs_native_open as to_open of
2393 "target native". Store a pointer to the "native" target in
2395 * procfs.c (procfs_attach): Don't push the target if it is already
2397 (procfs_detach): Use inf_child_maybe_unpush_target.
2398 (procfs_mourn_inferior): Only unpush the target after mourning the
2399 inferior. Use inf_child_maybe_unpush_target.
2400 (procfs_init_inferior): Don't push the target if it is already
2402 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2403 if it is already pushed.
2405 2014-05-21 Pedro Alves <palves@redhat.com>
2407 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2408 and "procfs" targets are now called "native" instead.
2410 2014-05-21 Pedro Alves <palves@redhat.com>
2412 * go32-nat.c (go32_open): Delete.
2413 (go32_target): Don't override the to_open method.
2415 2014-05-21 Pedro Alves <palves@redhat.com>
2417 * nto-procfs.c (procfs_can_run): New function.
2418 (nto_procfs_ops): New global.
2419 (init_procfs_targets): New, based on procfs_target. Install
2420 "target native" in addition to "target procfs".
2421 (_initialize_procfs): Call init_procfs_targets instead of adding
2424 2014-05-21 Pedro Alves <palves@redhat.com>
2426 * windows-nat.c (windows_target): Don't override to_shortname,
2427 to_longname or to_doc.
2429 2014-05-21 Pedro Alves <palves@redhat.com>
2431 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2434 2014-05-21 Pedro Alves <palves@redhat.com>
2436 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2437 to_shortname, to_longname or to_doc.
2439 2014-05-21 Pedro Alves <palves@redhat.com>
2441 * go32-nat.c (go32_target): Don't override to_shortname,
2442 to_longname or to_doc.
2444 2014-05-21 Pedro Alves <palves@redhat.com>
2446 * inf-child.c (inf_child_open): Remove mention of "child".
2447 (inf_child_target): Rename target to "native" instead of "child".
2449 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2451 * Makefile.in (SFILES): Delete "regset.c".
2452 (COMMON_OBS): Delete "regset.o".
2454 * regset.h (regset_alloc): Delete prototype.
2456 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2458 * sparc-linux-tdep.c (sparc32_linux_gregset)
2459 (sparc32_linux_fpregset): New static regset structures.
2460 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2461 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2463 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2464 (sparc64_linux_fpregset): New static regset structures.
2465 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2466 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2467 New static regset structures.
2468 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2469 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2470 New static regset structures.
2471 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2472 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2473 New static regset structures.
2474 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2475 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2476 New static regset structures.
2477 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2479 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2481 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2482 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2483 register maps ("regmaps") from "*regset" to "*regmap". Do this
2484 for all regmap types and variables.
2485 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2486 (sparc32_linux_supply_core_gregset)
2487 (sparc32_linux_collect_core_gregset)
2488 (sparc32_linux_supply_core_fpregset)
2489 (sparc32_linux_collect_core_fpregset): Likewise.
2490 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2491 (sparc_gregmap, sparc_fpregmap): ... these.
2492 (sparc_supply_gregset, sparc_collect_gregset)
2493 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2494 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2495 (_initialize_sparc_nat): Rename regmaps.
2496 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2497 (sparc_gregmap, sparc_fpregmap): ... these.
2498 (sparc_supply_gregset, sparc_collect_gregset)
2499 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2500 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2502 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2503 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2505 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2507 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2508 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2509 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2511 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2512 (sparc32_bsd_fpregset): Rename to...
2513 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2514 (sparc32_bsd_fpregmap): ... these.
2515 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2516 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2517 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2518 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2519 (struct sparc_gregmap, struct sparc_fpregmap)
2520 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2521 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2522 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2523 (sparc32_supply_regset, sparc32_collect_gregset)
2524 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2526 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2527 (sparc64_linux_ptrace_gregmap): ... this.
2528 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2529 (_initialize_sparc64_linux_nat): Rename regmaps.
2530 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2531 (sparc64_linux_core_gregmap): ... this.
2532 (sparc64_linux_supply_core_gregset)
2533 (sparc64_linux_collect_core_gregset)
2534 (sparc64_linux_supply_core_fpregset)
2535 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2536 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2537 (sparc64_sol2_fpregset): Rename to...
2538 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2539 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2540 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2542 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2543 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2544 (sparc64_bsd_fpregset): Rename to...
2545 (struct sparc_gregmap, sparc64_sol2_gregmap)
2546 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2547 (sparc64_bsd_fpregmap): ... these.
2548 (sparc64_supply_gregset, sparc64_collect_gregset)
2549 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2551 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2552 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2553 (sparc64fbsd_gregmap): ... this.
2554 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2555 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2557 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2558 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2559 (sparc64nbsd_collect_fpregset): Likewise.
2560 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2561 (sparc64nbsd_gregmap): ... this.
2562 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2564 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2565 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2566 (sparc64obsd_gregmap): ... this.
2567 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2569 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2570 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2571 (sparc32nbsd_gregmap): ... this.
2572 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2575 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2577 * score-tdep.c (score7_linux_gregset): New static regset
2579 (score7_linux_regset_from_core_section): Remove dynamic regset
2581 (score_gdbarch_init): Drop allocation of tdep structure.
2582 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2586 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2588 (am33_regset_from_core_section): Remove dynamic regset
2591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2593 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2594 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2596 (mips_linux_regset_from_core_section): Remove dynamic regset
2598 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2599 'gregset64', 'fpregset', and 'fpregset64'.
2600 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2601 deleted tdep fields.
2603 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2605 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2607 (amd64_regset_from_core_section): Remove dynamic regset
2609 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2611 (amd64obsd_regset_from_core_section): Remove dynamic regset
2613 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2615 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2616 x86-common regset supply function.
2617 * i386-tdep.c (i386_collect_gregset): Make static.
2618 (i386_gregset): New global regset structure.
2619 (i386_fpregset, i386_xstateregset): New static regset structures.
2620 (i386_regset_from_core_section): Remove dynamic regset
2622 (i386_gdbarch_init): Remove initialization of tdep fields
2623 'gregset', 'fpregset', and 'xstateregset'.
2624 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2625 'fpregset', and 'xstateregset'.
2626 (i386_collect_gregset): Remove prototype.
2627 (i386_gregset): New declaration.
2628 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2630 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2633 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2635 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2636 (arm_linux_vfpregset): New static regset structures.
2637 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2639 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2640 and 'vfpregset' fields.
2642 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2645 (aarch64_linux_fpregset): New static regset structures.
2646 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2647 of regset structures.
2648 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2651 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2653 * regset.h (struct regset): Remove gdbarch field.
2654 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2655 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2656 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2658 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2659 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2660 (ppc32_linux_vsxregset): Likewise.
2661 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2662 via the regcache instead of the regset.
2663 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2664 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2665 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2666 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2669 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2672 Constify structures.
2673 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2674 (alphanbsd_aout_gregset): Likewise.
2675 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2676 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2678 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2679 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2681 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2682 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2683 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2684 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2685 * m88k-tdep.c (m88k_gregset): Likewise.
2686 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2687 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2688 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2689 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2690 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2691 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2692 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2693 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2694 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2696 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2697 * sh-tdep.h (sh_corefile_gregset): Likewise.
2698 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2699 * vax-tdep.c (vax_gregset): Likewise.
2701 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2703 Fix TLS access for -static -pthread.
2704 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2705 (try_thread_db_load_1): Initialize it.
2706 (thread_db_get_thread_local_address): Call it if LM is zero.
2707 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2708 * target.h (struct target_ops) (to_get_thread_local_address): Add
2709 load_module_addr comment.
2711 2014-05-21 Pedro Alves <palves@redhat.com>
2713 * dcache.c (dcache_read_memory_partial): If reading the cache line
2714 fails, fallback to reading just the memory the caller wanted.
2716 2014-05-20 Doug Evans <dje@google.com>
2718 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2719 instead of get_current_arch.
2721 2014-05-20 Pedro Alves <palves@redhat.com>
2723 * NEWS: Mention that compare-sections now works with all targets.
2725 * remote.c (PACKET_qCRC): New enum value.
2726 (remote_verify_memory): Don't send qCRC if the target has no
2727 execution. Use packet_support/packet_ok. If the target doesn't
2728 support the qCRC packet, fallback to a deep memory copy.
2729 (compare_sections_command): Say "target image" instead of "remote
2731 (_initialize_remote): Add PACKET_qCRC to the list of config
2732 packets that have no associated command. Extend comment.
2733 * target.c (simple_verify_memory, default_verify_memory): New
2735 * target.h (struct target_ops) <to_verify_memory>: Default to
2736 default_verify_memory.
2737 (simple_verify_memory): New declaration.
2738 * target-delegates.c: Regenerate.
2740 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2742 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2744 2014-05-20 Hui Zhu <hui@codesourcery.com>
2745 Yao Qi <yao@codesourcery.com>
2748 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2749 and change address of sp and pc.
2751 2014-05-19 Tom Tromey <tromey@redhat.com>
2753 * gdbtypes.c (rank_function): Use XNEWVEC.
2754 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2756 2014-05-19 Doug Evans <dje@google.com>
2758 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2759 build_type_unit_groups and moved closer to only caller. Remove
2760 arguments. All references updated. Remove outdated .gdb_index
2762 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2763 build_type_psymtabs_1.
2765 2014-05-19 Doug Evans <dje@google.com>
2767 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2768 n_type_unit_groups, all_type_unit_groups. All uses removed.
2769 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2770 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2771 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2772 (add_type_unit_group_to_table): Delete.
2774 2014-05-19 Doug Evans <dje@google.com>
2776 * eval.c (evaluate_subexp_standard): Add some comments.
2778 2014-05-17 Doug Evans <xdje42@gmail.com>
2780 * progspace.c (remove_program_space): Delete, unused.
2781 * progspace.h (remove_program_space): Ditto.
2783 2014-05-17 Doug Evans <xdje42@gmail.com>
2785 * inferior.c (prune_inferiors): Fix comment.
2786 (remove_inferior_command): Call prune_program_spaces.
2788 2014-05-16 Doug Evans <dje@google.com>
2790 New command line option -D.
2792 * main.c (set_gdb_data_directory): New function.
2793 (captured_main): Recognize -D. Flag error for --data-directory "".
2794 Call set_gdb_data_directory.
2795 (print_gdb_help): Print --data-directory, -D.
2796 * main.h (set_gdb_data_directory): Declare.
2797 * top.c (staged_gdb_datadir): New static global.
2798 (set_gdb_datadir): Call set_gdb_data_directory
2799 (show_gdb_datadir): New function.
2800 (init_main): Update init of data-directory parameter.
2802 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2804 Import the "dirfd" gnulib module.
2805 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2806 * gnulib/aclocal.m4: Update.
2807 * gnulib/config.in: Update.
2808 * gnulib/configure: Update.
2809 * gnulib/import/Makefile.am: Update.
2810 * gnulib/import/Makefile.in: Update.
2811 * gnulib/import/dirfd.c: New.
2812 * gnulib/import/m4/dirfd.m4: New.
2813 * gnulib/import/m4/gnulib-cache.m4: Update.
2814 * gnulib/import/m4/gnulib-comp.m4: Update.
2816 2014-05-16 Pierre Muller <muller@sourceware.org>
2817 Yao Qi <yao@codesourcery.com>
2819 * valprint.c (print_wchar): Move the code on checking whether
2820 W is a printable wide char to the default branch of switch
2821 statement below. Call wchar_printable instead of gdb_iswprint.
2823 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2825 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2826 ldr.w and ldrd instructions.
2828 2014-05-15 Doug Evans <dje@google.com>
2830 * dwarf2read.c (read_structure_type): Delete outdated comments.
2832 2014-05-14 Tom Tromey <tromey@redhat.com>
2834 * macrocmd.c (print_macro_definition): Reindent.
2836 2014-05-13 Doug Evans <xdje42@gmail.com>
2838 * python/py-cmd.c (cmdpy_completer): Add comment.
2839 (completers): Make const.
2841 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2843 * infrun.c (resume): Remove should_resume (unused). Move up
2844 declaration of resume_ptid.
2846 2014-05-13 Tom Tromey <tromey@redhat.com>
2848 * language.h (unop_type_check): Remove.
2849 (binop_type_check): Don't declare.
2851 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2853 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2854 call to regcache_raw_collect.
2856 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2858 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2859 mi_console->quote as the quoting character.
2861 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2863 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2865 2014-04-29 Tom Tromey <tromey@redhat.com>
2867 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2868 "show debug varobj".
2870 2014-05-07 Kyle McMartin <kyle@redhat.com>
2872 Pushed by Joel Brobecker <brobecker@adacore.com>.
2873 * aarch64-tdep.c (aarch64_software_single_step): New function.
2874 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2875 with aarch64_software_single_step.
2877 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2881 2014-05-05 Keith Seitz <keiths@redhat.com>
2883 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2884 variable or history value is successfully parsed.
2886 2014-05-05 Yao Qi <yao@codesourcery.com>
2887 Pedro Alves <palves@redhat.com>
2889 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2890 address of blocks that intersects the requested range. Trim
2891 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2893 * ctf.c (ctf_xfer_partial): Likewise.
2895 2014-05-05 Yao Qi <yao@codesourcery.com>
2897 * printcmd.c (display_command): Remove the check to
2898 target_has_execution.
2900 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2902 * ppcobsd-nat.c: Include "obsd-nat.h".
2903 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2905 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2907 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2909 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2910 and 16-bit signed and unsigned arguments. Update comment.
2911 (stap_parse_probe_arguments): Extend code to handle such
2912 arguments. Use warning instead of complaint to notify about
2913 unrecognized bitness.
2915 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2917 PR breakpoints/16889
2918 * stap-probe.c (stap_parse_probe_arguments): Simplify
2919 check for non-prefixed probes (i.e., probes whose
2920 arguments do not start with "N@"). Always set the
2921 argument type to a sane value.
2923 2014-05-01 David Taylor <dtaylor@emc.com>
2925 * remote.c (compare_sections_command): Add -r option to compare
2926 all loadable read-only sections.
2928 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2930 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2931 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2933 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2934 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2935 Remove unused CORE_ADDR argument. Update all callers.
2937 2014-04-29 Pedro Alves <palves@redhat.com>
2939 * remote.c (struct packet_config) <detect>: Extend comment.
2940 (add_packet_config_cmd): Don't set the config's detect or support
2942 (init_all_packet_configs): Also initialize the config's 'detect'
2944 (reset_all_packet_configs_support): New function.
2945 (remote_open_1): Call reset_all_packet_configs_support instead of
2946 init_all_packet_configs.
2947 (_initialize_remote): Initialize all packet configs. Assert that
2948 all packets have an associated command, except a few known
2951 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2953 * dwarf2read.c (read_subrange_type): Handle dynamic
2954 DW_AT_lower_bound attributes.
2956 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2958 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2959 dynamic bounds before computing its upper bound.
2960 (ada_discrete_type_low_bound): Same as above with the lower bound.
2962 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2964 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2965 range types. Adjust the array handling implementation to
2966 take advantage of this change.
2967 (resolve_dynamic_range): New function, mostly extracted from
2968 resolve_dynamic_bounds.
2969 (resolve_dynamic_array): New function, mostly extracted from
2970 resolve_dynamic_bounds.
2971 (resolve_dynamic_bounds): Delete.
2972 (resolve_dynamic_type): Reimplement. Add handling of
2973 TYPE_CODE_RANGE types.
2975 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2977 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2978 handling of parallel ___XA types.
2980 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2982 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2983 unnecessary second call to static_unwrap_type.
2985 2014-04-27 Hui Zhu <hui@codesourcery.com>
2987 * stack.c (print_frame_info): Call do_gdb_disassembly with
2988 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2990 2014-04-26 Doug Evans <xdje42@gmail.com>
2992 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2994 2014-04-25 Pedro Alves <palves@redhat.com>
2997 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2998 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2999 and newline from built string.
3000 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3001 (linux_ptrace_attach_fail_reason): ... this.
3002 * linux-nat.c (linux_nat_attach): Adjust to use
3003 linux_ptrace_attach_fail_reason.
3005 2014-04-25 Pedro Alves <palves@redhat.com>
3007 * remote.c (struct remote_state): Remove multi_process_aware,
3008 non_stop_aware, cond_tracepoints, cond_breakpoints,
3009 breakpoint_commands, fast_tracepoints, static_tracepoints,
3010 install_in_trace, disconnected_tracing,
3011 enable_disable_tracepoints, string_tracing, and
3012 augmented_libraries_svr4_read fields.
3013 (remote_multi_process_p): Move further below in the file.
3014 (struct packet_config): Add comments.
3015 (update_packet_config): Delete function.
3016 (show_packet_config_cmd): Use packet_config_support.
3017 (add_packet_config_cmd): Use NULL as set callback.
3018 (packet_ok): "set remote foo-packet"-style commands no longer
3019 change config->supported -- adjust.
3020 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3021 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3022 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3023 (PACKET_QNonStop, PACKET_multiprocess_feature)
3024 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3025 (PACKET_DisconnectedTracing_feature)
3026 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3027 (set_remote_protocol_packet_cmd): Delete function.
3028 (packet_config_support, packet_support): New functions.
3029 (set_remote_protocol_Z_packet_cmd): Don't call
3030 update_packet_config.
3031 (remote_query_attached, remote_pass_signals)
3032 (remote_program_signals, remote_threads_info)
3033 (remote_threads_extra_info, remote_start_remote): Use
3035 (remote_start_remote): Use packet_config_support and
3037 (init_all_packet_configs): Set all packets to unknown support,
3038 instead of calling update_packet_config.
3039 (remote_check_symbols): Use packet_support.
3040 (remote_supported_packet): Unconditionally set the packet config's
3042 (remote_multi_process_feature, remote_non_stop_feature)
3043 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3044 (remote_breakpoint_commands_feature)
3045 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3046 (remote_install_in_trace_feature)
3047 (remote_disconnected_tracing_feature)
3048 (remote_enable_disable_tracepoint_feature)
3049 (remote_string_tracing_feature)
3050 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3051 (remote_protocol_features): Adjust to use remote_supported_packet
3052 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3053 "ConditionalTracepoints", "ConditionalBreakpoints",
3054 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3055 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3056 "EnableDisableTracepoints", and "tracenz".
3057 (remote_query_supported): Use packet_support.
3058 (remote_open_1): Adjust.
3059 (extended_remote_attach_1): Use packet_support. Switch on the
3060 result of packet_ok instead of checking whether the packet ended
3062 (remote_vcont_resume): Use packet_support.
3063 (remote_resume, remote_stop_ns, fetch_register_using_p)
3064 (remote_prepare_to_store, store_register_using_P)
3065 (check_binary_download, remote_write_bytes): Use packet_support.
3066 (remote_vkill): Use packet_support. Switch on the result of
3067 packet_ok instead of checking whether the packet ended up
3069 (extended_remote_supports_disable_randomization): Use
3071 (extended_remote_run): Switch on the result of packet_ok instead
3072 of checking whether the packet ended up disabled.
3073 (remote_insert_breakpoint, remote_remove_breakpoint)
3074 (remote_insert_watchpoint, remote_remove_watchpoint)
3075 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3077 (remote_search_memory): Use packet_config_support.
3078 (remote_get_thread_local_address, remote_get_tib_address)
3079 (remote_hostio_send_command, remote_can_execute_reverse): Use
3081 (remote_supports_cond_tracepoints)
3082 (remote_supports_cond_breakpoints)
3083 (remote_supports_fast_tracepoints)
3084 (remote_supports_static_tracepoints)
3085 (remote_supports_install_in_trace)
3086 (remote_supports_enable_disable_tracepoint)
3087 (remote_supports_string_tracing)
3088 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3089 the packet config says the feature is enabled or disabled.
3090 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3091 (remote_get_trace_status): Use packet_support.
3092 (remote_set_disconnected_tracing): Adjust to check whether the
3093 feature is enabled with packet_support.
3094 (remote_set_trace_buffer_size, remote_use_agent)
3095 (remote_can_use_agent, remote_supports_btrace): Use
3097 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3098 Use packet_config_support.
3099 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3100 the packet config says the feature is enabled or disabled.
3101 (set_range_stepping): Use packet_support.
3103 2014-04-25 Tom Tromey <tromey@redhat.com>
3105 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3108 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3110 * NEWS: Mention support for C99 variable length arrays.
3112 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3114 * ada-lang.c (standard_exc): Expand introductory comment.
3116 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3117 Walfred Tedeschi <walfred.tedeschi@intel.com>
3119 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3121 (amd64_linux_read_description): Add code to handle AVX512 xstate
3122 mask and return respective tdesc.
3123 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3124 and features/i386/x32-avx512-linux.c.
3125 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3126 (amd64_linux_core_read_description): Add code to handle AVX512
3127 xstate mask and return respective tdesc.
3128 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3129 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3131 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3132 (tdesc_amd64_avx512_linux): New prototype.
3133 (tdesc_x32_avx512_linux): Likewise.
3134 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3135 features/i386/x32-avx512.c.
3136 (amd64_ymm_avx512_names): New register names for pseudo
3138 (amd64_ymmh_avx512_names): New register names for raw registers
3140 (amd64_k_names): New register names for K registers.
3141 (amd64_zmmh_names): New register names for ZMM raw registers.
3142 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3143 (amd64_xmm_avx512_names): New register names for XMM16-31
3145 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3147 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3148 if feature is present.
3149 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3150 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3151 (AMD64_NUM_REGS): Adjust to new number of registers.
3152 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3153 registers supplied via XSTATE by AVX512 registers.
3154 (i386_linux_read_description): Add case for AVX512.
3155 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3156 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3157 (i386_linux_core_read_description): Add case for AVX512.
3158 (i386_linux_init_abi): Install supported register note section
3160 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3162 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3163 registers to be number of zmm7h + 1.
3164 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3165 * i386-tdep.c: Include features/i386/i386-avx512.c.
3166 (i386_zmm_names): Add ZMM pseudo register names array.
3167 (i386_zmmh_names): Add ZMM raw register names array.
3168 (i386_k_names): Add K raw register names array.
3169 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3170 registers. AVX512 has 16 more ZMM registers than there are YMM
3172 (i386_zmmh_regnum_p): Add function to look up register number of
3174 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3175 (i386_k_regnum_p): Likewise for K raw registers.
3176 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3177 registers added by AVX512.
3178 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3179 registers added by AVX512.
3180 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3182 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3183 (i386_pseudo_register_name): Add ZMM pseudo registers.
3184 (i386_zmm_type): Construct and return vector registers type for ZMM
3186 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3187 ZMM0-31 pseudo registers and K registers.
3188 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3189 and YMM16-31 registers from register cache.
3190 (i386_pseudo_register_write): Add code to write K, ZMM and
3192 (i386_register_reggroup_p): Add code to include/exclude AVX512
3193 registers in/from respective register groups.
3194 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3195 registers if feature is present in xcr0.
3196 (i386_gdbarch_init): Add code to initialize AVX512 feature
3197 variables in tdep structure, wire in pseudo registers and call
3198 initialize_tdesc_i386_avx512.
3199 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3201 (i386_regnum): Add AVX512 registers.
3202 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3203 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3204 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3205 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3207 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3208 (i386_ymm_avx512_regnum_p): Likewise.
3209 (i386_k_regnum_p): Likewise.
3210 (i386_zmm_regnum_p): Likewise.
3211 (i386_zmmh_regnum_p): Likewise.
3212 * i387-tdep.c : Update year in copyright notice.
3213 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3215 (XSAVE_YMM_AVX512_ADDR): New macro.
3216 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3218 (XSAVE_XMM_AVX512_ADDR): New macro.
3219 (xsave_avx512_k_offset): New table for K register offsets in
3221 (XSAVE_AVX512_K_ADDR): New macro.
3222 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3224 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3225 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3227 (i387_collect_xsave): Add code to collect AVX512 registers from
3229 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3230 of XMM16-31 registers.
3231 (I387_NUM_K_REGS): New define for number of K registers.
3232 (I387_K0_REGNUM): New define for K0 register number.
3233 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3234 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3235 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3237 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3238 (I387_XMM16_REGNUM): New define for XMM16 register number.
3239 (I387_YMM0_REGNUM): New define for YMM0 register number.
3240 (I387_KEND_REGNUM): New define for last K register number.
3241 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3242 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3244 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3246 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3248 * features/Makefile: Add AVX512 related files.
3249 * features/i386/32bit-avx512.xml: New file.
3250 * features/i386/64bit-avx512.xml: Likewise.
3251 * features/i386/amd64-avx512-linux.c: Likewise.
3252 * features/i386/amd64-avx512-linux.xml: Likewise.
3253 * features/i386/amd64-avx512.c: Likewise.
3254 * features/i386/amd64-avx512.xml: Likewise.
3255 * features/i386/i386-avx512-linux.c: Likewise.
3256 * features/i386/i386-avx512-linux.xml: Likewise.
3257 * features/i386/i386-avx512.c: Likewise.
3258 * features/i386/i386-avx512.xml: Likewise.
3259 * features/i386/x32-avx512-linux.c: Likewise.
3260 * features/i386/x32-avx512-linux.xml: Likewise.
3261 * features/i386/x32-avx512.c: Likewise.
3262 * features/i386/x32-avx512.xml: Likewise.
3263 * regformats/i386/amd64-avx512-linux.dat: New file.
3264 * regformats/i386/amd64-avx512.dat: Likewise.
3265 * regformats/i386/i386-avx512-linux.dat: Likewise.
3266 * regformats/i386/i386-avx512.dat: Likewise.
3267 * regformats/i386/x32-avx512-linux.dat: Likewise.
3268 * regformats/i386/x32-avx512.dat: Likewise.
3269 * NEWS: Add note about new support for AVX512.
3272 2014-04-23 Pedro Alves <palves@redhat.com>
3274 * breakpoint.c (insert_bp_location): Tolerate errors if the
3275 breakpoint is set in a user-loaded objfile.
3276 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3277 location is marked shlib_disabled. If the breakpoint is set in a
3278 user-loaded objfile is a GDB-side memory breakpoint, validate it
3279 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3280 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3282 * mem-break.c (memory_validate_breakpoint): New function.
3283 * objfiles.c (userloaded_objfile_contains_address_p): New
3285 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3286 * target.h (memory_validate_breakpoint): New declaration.
3288 2014-04-23 Pedro Alves <palves@redhat.com>
3290 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3291 the breakpoint is set in a shared library, only suppress
3292 errors for software breakpoints, not hardware breakpoints.
3294 2014-04-22 Pedro Alves <palves@redhat.com>
3296 * infrun.c (schedlock_applies): New function, factored out from
3297 find_thread_needs_step_over.
3298 (find_thread_needs_step_over): Use it.
3299 (switch_back_to_stepped_thread): Always clear trap_expected if the
3300 step over is finished. Return early if scheduler locking applies.
3301 Look for the stepping thread and a potential step-over thread with
3303 (currently_stepping_or_nexting_callback): Delete.
3305 2014-04-22 Nick Clifton <nickc@redhat.com>
3307 * NEWS: Mention that ARM sim now supports tracing.
3309 2014-04-22 Yao Qi <yao@codesourcery.com>
3311 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3313 * tracefile.c (tracefile_fetch_registers): ... it. New
3315 * tracefile.h (tracefile_fetch_registers): Declare.
3316 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3317 tracefile_fetch_registers.
3319 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3322 * windows-nat.c (thread_rec): Don't display a warning when
3323 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3324 fails for any reason, set th->suspended to -1, so that we don't
3325 try to resume such a thread. Also, don't return NULL in these
3326 cases, to avoid completely ruin the session due to "PC register is
3327 not available" error.
3328 (do_windows_fetch_inferior_registers): Check errors in
3329 GetThreadContext call.
3330 (windows_continue): Accept an additional argument KILLED; if not
3331 zero, ignore errors in the SetThreadContext call, since the
3332 inferior was killed and is shutting down.
3333 (windows_resume, get_windows_debug_event)
3334 (windows_create_inferior, windows_mourn_inferior)
3335 (windows_kill_inferior): All callers of windows_continue changed
3336 to adjust to its new calling sequence.
3338 2014-04-19 Yao Qi <yao@codesourcery.com>
3340 * ctf.c (ctf_open): Call post_create_inferior.
3342 2014-04-19 Yao Qi <yao@codesourcery.com>
3344 * ctf.c (handle_id): New static variable.
3345 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3346 value. Get the declaration of event "register" and get length
3347 of field "contents".
3349 2014-04-19 Yao Qi <yao@codesourcery.com>
3351 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3353 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3355 * valops.c (oload_method_static): Remove unnecessary argument
3356 METHOD. Update all callers.
3358 2014-04-18 Pedro alves <palves@redhat.com>
3359 Tom Tromey <tromey@redhat.com>
3362 * frame.c (get_prev_frame_1): Rename to ...
3363 (get_prev_frame_always): ... this, and make extern. Adjust.
3364 (skip_artificial_frames): Use get_prev_frame_always.
3365 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3366 (get_frame_unwind_stop_reason): Adjust to rename.
3367 * frame.h (get_prev_frame_always): Declare.
3368 * inline-frame.c: Include frame.h.
3369 (inline_frame_this_id): Use get_prev_frame_always.
3371 2014-04-18 Tristan Gingold <gingold@adacore.com>
3373 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3374 code by using bfd_mach_o_get_base_address.
3376 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3378 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3379 (spu_ax_pseudo_register_collect): New function.
3380 (spu_ax_pseudo_register_push_stack): Likewise.
3381 (spu_dwarf_reg_to_regnum): Likewise.
3382 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3384 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3386 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3387 Replace FRAME argument with FRAME_ID.
3388 * gdbarch.c, gdbarch.h: Regenerate.
3389 * findvar.c (default_value_from_register): Add GDBARCH argument;
3390 replace FRAME by FRAME_ID. No longer call get_frame_id.
3391 (value_from_register): Update call to gdbarch_value_from_register.
3392 * value.h (default_value_from_register): Update prototype.
3393 * s390-linux-tdep.c (s390_value_from_register): Update interface
3394 and call to default_value_from_register.
3395 * spu-tdep.c (spu_value_from_register): Likewise.
3397 * findvar.c (address_from_register): Remove TYPE argument.
3398 Do not call value_from_register; use gdbarch_value_from_register
3399 with null_frame_id instead.
3400 * value.h (address_from_register): Update prototype.
3401 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3402 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3403 address_from_register interface change.
3405 2014-04-17 Yao Qi <yao@codesourcery.com>
3407 * gdbtypes.h: Update comments to link to types and macros'
3410 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3412 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3414 2014-04-16 Keith Seitz <keiths@redhat.com>
3417 * dwarf2read.c (skip_one_die): Check that all relative-offset
3418 sibling DIEs fall within range of the current reader's buffer.
3419 (read_partial_die): Likewise.
3421 2014-04-16 Keith Seitz <keiths@redhat.com>
3424 * cp-namespace.c (lookup_symbol_file): If the type name of
3425 `this' is NULL, return immediately.
3427 2014-04-14 Keith Seitz <keiths@redhat.com>
3430 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3431 from symbol_matches_domain in symtab.c. All local callers
3432 of symbol_matches_domain updated.
3433 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3434 search STRUCT_DOMAIN.
3435 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3436 independently. standard_lookup will do that automatically.
3437 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3438 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3439 (cp_lookup_symbol_in_namespace): Likewise.
3440 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3441 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3442 may return a STRUCT_DOMAIN match.
3443 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3444 * cp-support.c: Include language.h.
3445 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3447 * psymtab.c (match_partial_symbol): Compare the requested
3448 domain with the symbol's domain directly.
3449 (lookup_partial_symbol): Likewise.
3450 * symtab.c (lookup_symbol_in_language): Explain when/why
3451 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3452 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3453 appropriate languages.
3454 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3455 and moved to ada-lang.c
3456 (lookup_block_symbol): Explain that this function only returns
3457 symbol matching the requested DOMAIN.
3458 Compare the requested domain with the symbol's domain directly.
3459 (iterate_over_symbols): Compare the requested domain with the
3460 symbol's domain directly.
3461 * symtab.h (symbol_matches_domain): Remove.
3463 2014-04-14 Tom Tromey <tromey@redhat.com>
3466 * c-exp.y (type_aggregate_p): New function.
3467 (qualified_name, classify_inner_name): Use it.
3468 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3469 and TYPE_TARGET_TYPE of an enum type.
3470 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3472 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3473 handle TYPE_DECLARED_CLASS.
3474 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3476 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3477 * valops.c (enum_constant_from_type): New function.
3478 (value_aggregate_elt): Use it.
3479 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3482 2014-04-14 Tom Tromey <tromey@redhat.com>
3484 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3485 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3487 * value.h (value_aggregate_elt): Update.
3489 2014-04-14 Tom Tromey <tromey@redhat.com>
3491 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3493 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3495 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3496 (evaluate_subexp_standard): Pass noside argument.
3497 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3498 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3499 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3500 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3501 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3505 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3506 points to a constant blob.
3508 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3510 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3511 property and store it as the high bound and flag the range accordingly.
3512 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3513 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3514 * gdbtypes.h (enum range_flags): New enum.
3515 (struct range_bounds): Add flags member.
3517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3519 * c-typeprint.c (c_type_print_varspec_suffix): Added
3520 check for not yet resolved high bound. If unresolved, print
3521 "variable length" string to the console instead of random
3524 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3526 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3528 (ada_template_to_fixed_record_type_1): Likewise.
3529 (ada_to_fixed_type_1): Likewise.
3530 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3531 (cp_print_value): Likewise.
3532 * d-valprint.c (dynamic_array_type): Likewise.
3533 * findvar.c (address_of_variable): Likewise.
3534 * jv-valprint.c (java_value_print): Likewise.
3535 * valops.c (value_ind): Likewise.
3536 * value.c (coerce_ref): Likewise.
3538 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3540 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3541 value and retrieve the dynamic type size.
3543 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3545 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3546 passed to sizeof is dynamic evaluate the argument to compute the length.
3548 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3549 Joel Brobecker <brobecker@adacore.com>
3551 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3552 (dwarf2_evaluate_property): New function.
3553 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3554 * dwarf2read.c (attr_to_dynamic_prop): New function.
3555 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3557 * gdbtypes.c: Include dwarf2loc.h.
3558 (is_dynamic_type): New function.
3559 (resolve_dynamic_type): New function.
3560 (resolve_dynamic_bounds): New function.
3561 (get_type_length): New function.
3562 (check_typedef): Use get_type_length to compute type length.
3563 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3564 (TYPE_LOW_BOUND_KIND): New macro.
3565 (is_dynamic_type): New function prototype.
3566 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3567 to resolve dynamic properties of the type. Update comment.
3568 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3570 2014-04-14 Richard Henderson <rth@redhat.com>
3572 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3574 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3575 Doug Evans <xdje42@gmail.com>
3577 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3578 dereference TYPE_CODE_REF values.
3580 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3582 Revert the following changes due to regressions:
3584 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3585 (dwarf2_evaluate_property): New function.
3586 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3587 * dwarf2read.c (attr_to_dynamic_prop): New function.
3588 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3590 * gdbtypes.c: Include dwarf2loc.h.
3591 (is_dynamic_type): New function.
3592 (resolve_dynamic_type): New function.
3593 (resolve_dynamic_bounds): New function.
3594 (get_type_length): New function.
3595 (check_typedef): Use get_type_length to compute type length.
3596 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3597 (TYPE_LOW_BOUND_KIND): New macro.
3598 (is_dynamic_type): New function prototype.
3599 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3600 to resolve dynamic properties of the type. Update comment.
3601 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3603 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3604 passed to sizeof is dynamic evaluate the argument to compute the length.
3606 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3607 value and retrieve the dynamic type size.
3609 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3610 (ada_template_to_fixed_record_type_1): Likewise.
3611 (ada_to_fixed_type_1): Likewise.
3612 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3613 (cp_print_value): Likewise.
3614 * d-valprint.c (dynamic_array_type): Likewise.
3615 * eval.c (evaluate_subexp_with_coercion): Likewise.
3616 * findvar.c (address_of_variable): Likewise.
3617 * jv-valprint.c (java_value_print): Likewise.
3618 * valops.c (value_ind): Likewise.
3619 * value.c (coerce_ref): Likewise.
3621 * c-typeprint.c (c_type_print_varspec_suffix): Added
3622 check for not yet resolved high bound. If unresolved, print
3623 "variable length" string to the console instead of random
3626 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3627 property and store it as the high bound and flag the range accordingly.
3628 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3629 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3630 * gdbtypes.h (enum range_flags): New enum.
3631 (struct range_bounds): Add flags member.
3633 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3634 points to a constant blob.
3636 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3637 (evaluate_subexp_standard): Pass noside argument.
3638 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3639 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3640 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3641 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3642 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3644 2014-04-11 Keith Seitz <keiths@redhat.com>
3647 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3648 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3651 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3653 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3654 (evaluate_subexp_standard): Pass noside argument.
3655 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3656 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3657 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3658 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3659 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3663 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3664 points to a constant blob.
3666 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3668 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3669 property and store it as the high bound and flag the range accordingly.
3670 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3671 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3672 * gdbtypes.h (enum range_flags): New enum.
3673 (struct range_bounds): Add flags member.
3675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3677 * c-typeprint.c (c_type_print_varspec_suffix): Added
3678 check for not yet resolved high bound. If unresolved, print
3679 "variable length" string to the console instead of random
3682 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3684 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3685 (ada_template_to_fixed_record_type_1): Likewise.
3686 (ada_to_fixed_type_1): Likewise.
3687 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3688 (cp_print_value): Likewise.
3689 * d-valprint.c (dynamic_array_type): Likewise.
3690 * eval.c (evaluate_subexp_with_coercion): Likewise.
3691 * findvar.c (address_of_variable): Likewise.
3692 * jv-valprint.c (java_value_print): Likewise.
3693 * valops.c (value_ind): Likewise.
3694 * value.c (coerce_ref): Likewise.
3696 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3698 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3699 value and retrieve the dynamic type size.
3701 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3703 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3704 passed to sizeof is dynamic evaluate the argument to compute the length.
3706 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3708 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3709 (dwarf2_evaluate_property): New function.
3710 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3711 * dwarf2read.c (attr_to_dynamic_prop): New function.
3712 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3714 * gdbtypes.c: Include dwarf2loc.h.
3715 (is_dynamic_type): New function.
3716 (resolve_dynamic_type): New function.
3717 (resolve_dynamic_bounds): New function.
3718 (get_type_length): New function.
3719 (check_typedef): Use get_type_length to compute type length.
3720 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3721 (TYPE_LOW_BOUND_KIND): New macro.
3722 (is_dynamic_type): New function prototype.
3723 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3724 to resolve dynamic properties of the type. Update comment.
3725 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3727 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3729 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3730 declaring high/low bounds and change uses accordingly. Call
3731 create_range_type instead of create_static_range_type.
3732 * gdbtypes.c (create_range_type): New function.
3733 (create_range_type): Convert bounds into struct bound_prop and pass
3734 them to create_range_type.
3735 * gdbtypes.h (struct bound_prop): New struct.
3736 (create_range_type): New function prototype.
3737 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3738 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3739 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3741 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3743 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3745 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3746 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3747 * ada-lang.c: All uses of create_range_type updated.
3748 * coffread.c: All uses of create_range_type updated.
3749 * dwarf2read.c: All uses of create_range_type updated.
3750 * f-exp.y: All uses of create_range_type updated.
3751 * m2-valprint.c: All uses of create_range_type updated.
3752 * mdebugread.c: All uses of create_range_type updated.
3753 * stabsread.c: All uses of create_range_type updated.
3754 * valops.c: All uses of create_range_type updated.
3755 * valprint.c: All uses of create_range_type updated.
3757 2014-04-10 Pedro Alves <palves@redhat.com>
3759 * breakpoint.c (single_step_breakpoints)
3760 (single_step_gdbarch): Move up in the file.
3761 (one_breakpoint_xfer_memory): New function, factored out from ...
3762 (breakpoint_xfer_memory): ... here. Also process single-step
3765 2014-04-09 Tristan Gingold <gingold@adacore.com>
3767 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3769 (darwin_decode_exception_message): Free port only after use.
3771 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3773 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3774 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3775 when setting the size of call_length.
3777 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3779 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3780 dereference TYPE_CODE_REF values.
3782 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3784 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3785 end of warning message.
3787 2014-04-03 Doug Evans <dje@google.com>
3789 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3790 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3792 2014-04-02 Alan Modra <amodra@gmail.com>
3794 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3795 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3796 (struct symbol_file_add_from_memory_args): Add size field.
3797 (find_vdso_size): New function.
3798 (add_vsyscall_page): Attempt to find vdso size.
3800 2014-04-01 Doug Evans <dje@google.com>
3802 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3804 2014-04-01 Tristan Gingold <gingold@adacore.com>
3806 * darwin-nat.c (darwin_encode_reply): Add prototype.
3807 (darwin_decode_exception_message): Reply to unknown inferiors.
3808 (darwin_decode_message): Handle message by id. Ignore message
3809 to unknown inferior.
3810 (darwin_wait): Discard unknown messages, add debug trace.
3812 2014-03-31 Doug Evans <dje@google.com>
3814 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3817 2014-03-31 Doug Evans <dje@google.com>
3819 New option "set print symbol-loading".
3821 * solib.c (solib_read_symbols): Only print symbol loading messages
3823 (solib_add): If symbol loading is in "brief" mode, notify user
3824 symbols are being loaded.
3825 (reload_shared_libraries_1): Ditto.
3826 * symfile.c (print_symbol_loading_off): New static global.
3827 (print_symbol_loading_brief): New static global.
3828 (print_symbol_loading_full): New static global.
3829 (print_symbol_loading_enums): New static global.
3830 (print_symbol_loading): New static global.
3831 (print_symbol_loading_p): New function.
3832 (symbol_file_add_with_addrs): Only print symbol loading messages
3834 (_initialize_symfile): Register "print symbol-loading" set/show
3836 * symfile.h (print_symbol_loading_p): Declare.
3838 2014-03-30 Doug Evans <xdje42@gmail.com>
3840 * infrun.c (set_last_target_status): New function.
3841 (handle_inferior_event): Call it.
3843 2014-03-30 Doug Evans <xdje42@gmail.com>
3845 * inferior.h (enum stop_kind): Improve comment.
3847 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3849 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3850 a reference, strip the reference layer before calling
3851 the lang_ops value_has_mutated callback.
3853 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3855 Remove some globals from our parser.
3856 * language.c (unk_lang_parser): Add "struct parser_state"
3858 * language.h (struct language_defn) <la_parser>: Likewise.
3859 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3860 (initialize_expout): Add "struct parser_state" argument.
3861 Rewrite function to use the parser state.
3862 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3863 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3864 write_exp_elt_longcst, write_exp_elt_dblcst,
3865 write_exp_elt_decfloatcst, write_exp_elt_type,
3866 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3867 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3868 write_dollar_variable): Likewise.
3869 (parse_exp_in_context_1): Use parser state.
3870 (insert_type_address_space): Add "struct parser_state" argument.
3872 (increase_expout_size): New function.
3873 * parser-defs.h: Forward declare "struct language_defn" and
3874 "struct parser_state".
3875 (expout, expout_size, expout_ptr): Remove extern declarations.
3876 (parse_gdbarch, parse_language): Rewrite macro declarations to
3877 accept the parser state.
3878 (struct parser_state): New struct.
3879 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3880 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3881 write_exp_elt_decfloatcst, write_exp_elt_type,
3882 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3883 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3884 write_exp_msymbol, write_dollar_variable,
3885 mark_struct_expression, insert_type_address_space): Add "struct
3886 parser_state" argument.
3887 (increase_expout_size): New function.
3888 * utils.c (do_clear_parser_state): New function.
3889 (make_cleanup_clear_parser_state): Likewise.
3890 * utils.h (make_cleanup_clear_parser_state): New function
3892 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3893 Update calls to write_exp* in order to pass the parser state.
3894 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3896 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3897 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3898 * stap-probe.c (stap_parse_register_operand): Likewise.
3899 (stap_parse_single_operand): Likewise.
3900 (stap_parse_argument_1): Likewise.
3901 (stap_parse_argument): Use parser state.
3902 * stap-probe.h: Include "parser-defs.h".
3903 (struct stap_parse_info) <pstate>: New field.
3904 * c-exp.y (parse_type): Rewrite to use parser state.
3905 (yyparse): Redefine to c_parse_internal.
3906 (pstate): New global variable.
3907 (parse_number): Add "struct parser_state" argument.
3908 (write_destructor_name): Likewise.
3909 (type_exp): Update calls to write_exp* and similars in order to
3911 (exp1, exp, variable, qualified_name, space_identifier,
3912 typename, typebase): Likewise.
3913 (write_destructor_name, parse_number, lex_one_token,
3914 classify_name, classify_inner_name, c_parse): Add "struct
3915 parser_state" argument. Update function to use parser state.
3916 * c-lang.h: Forward declare "struct parser_state".
3917 (c_parse): Add "struct parser_state" argument.
3918 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3919 (yyparse): Redefine macro to ada_parse_internal.
3920 (pstate): New variable.
3921 (write_int, write_object_renaming, write_var_or_type,
3922 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3923 type_int, type_long, type_long_long, type_float, type_double,
3924 type_long_double, type_char, type_boolean, type_system_address):
3925 Add "struct parser_state" argument.
3926 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3927 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3928 var_or_type, aggregate, aggregate_component_list,
3929 positional_list, others, component_group,
3930 component_associations): Update calls to write_exp* and similar
3931 functions in order to use parser state.
3932 (ada_parse, write_var_from_sym, write_int,
3933 write_exp_op_with_string, write_object_renaming,
3934 find_primitive_type, write_selectors, write_ambiguous_var,
3935 write_var_or_type, write_name_assoc, type_int, type_long,
3936 type_long_long, type_float, type_double, type_long_double,
3937 type_char, type_boolean, type_system_address): Add "struct
3938 parser_state" argument. Adjust function to use parser state.
3939 * ada-lang.c (parse): Likewise.
3940 * ada-lang.h: Forward declare "struct parser_state".
3941 (ada_parse): Add "struct parser_state" argument.
3942 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3943 calls to both functions.
3944 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3946 (yyparse): Redefine macro to f_parse_internal.
3947 (pstate): New variable.
3948 (parse_number): Add "struct parser_state" argument.
3949 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3950 and similars in order to use parser state.
3951 (parse_number): Adjust code to use parser state.
3953 (f_parse): New function.
3954 * f-lang.h: Forward declare "struct parser_state".
3955 (f_parse): Add "struct parser_state" argument.
3956 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3958 (yyparse): Redefine macro for java_parse_internal.
3959 (pstate): New variable.
3960 (push_expression_name, push_expression_name, insert_exp): Add
3961 "struct parser_state" argument.
3962 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3963 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3964 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3965 PostIncrementExpression, PostDecrementExpression,
3966 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3967 UnaryExpressionNotPlusMinus, CastExpression,
3968 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3969 RelationalExpression, EqualityExpression, AndExpression,
3970 ExclusiveOrExpression, InclusiveOrExpression,
3971 ConditionalAndExpression, ConditionalOrExpression,
3972 ConditionalExpression, Assignment, LeftHandSide): Update
3973 calls to write_exp* and similars in order to use parser state.
3974 (parse_number): Ajust code to use parser state.
3976 (java_parse): New function.
3977 (push_variable): Add "struct parser_state" argument. Adjust
3978 code to user parser state.
3979 (push_fieldnames, push_qualified_expression_name,
3980 push_expression_name, insert_exp): Likewise.
3981 * jv-lang.h: Forward declare "struct parser_state".
3982 (java_parse): Add "struct parser_state" argument.
3983 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3985 (yyparse): Redefine macro to m2_parse_internal.
3986 (pstate): New variable.
3987 (type_exp, exp, fblock, variable, type): Update calls to
3988 write_exp* and similars to use parser state.
3990 (m2_parse): New function.
3991 * m2-lang.h: Forward declare "struct parser_state".
3992 (m2_parse): Add "struct parser_state" argument.
3993 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3994 * objc-lang.h: Forward declare "struct parser_state".
3995 (end_msglist): Add "struct parser_state" argument.
3996 * p-exp.y (parse_type): Rewrite macro to use parser state.
3997 (yyparse): Redefine macro to pascal_parse_internal.
3998 (pstate): New variable.
3999 (parse_number): Add "struct parser_state" argument.
4000 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4001 write_exp* and similars in order to use parser state.
4002 (parse_number, yylex): Adjust code to use parser state.
4003 (pascal_parse): New function.
4004 * p-lang.h: Forward declare "struct parser_state".
4005 (pascal_parse): Add "struct parser_state" argument.
4006 * go-exp.y (parse_type): Rewrite macro to use parser state.
4007 (yyparse): Redefine macro to go_parse_internal.
4008 (pstate): New variable.
4009 (parse_number): Add "struct parser_state" argument.
4010 (type_exp, exp1, exp, variable, type): Update calls to
4011 write_exp* and similars in order to use parser state.
4012 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4013 to use parser state.
4014 (go_parse): Likewise.
4015 * go-lang.h: Forward declare "struct parser_state".
4016 (go_parse): Add "struct parser_state" argument.
4018 2014-03-27 Doug Evans <dje@google.com>
4020 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4022 2014-03-27 Doug Evans <dje@google.com>
4024 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4025 Remove argument abbrev_section. All callers updated.
4027 2014-03-27 Doug Evans <dje@google.com>
4029 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4030 addr_base, ranges_base.
4032 2014-03-26 Keith Seitz <keiths@redhat.com>
4034 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4035 types, not VAR_DOMAIN.
4037 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4039 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4041 * features/nios2-linux.c: Regenerated.
4042 * features/nios2.c: Regenerated.
4044 2014-03-25 Pedro Alves <palves@redhat.com>
4046 * cli/cli-script.c (script_from_file): Force the interpreter to
4049 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4051 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4052 small stack allocation.
4054 2014-03-24 Tristan Gingold <gingold@adacore.com>
4056 * darwin-nat.c (exc_server): Remove unused prototype.
4057 (darwin_dump_message): Correctly display data on x86_64.
4058 (darwin_encode_reply): Fix style.
4059 Add comments and fix indentation.
4061 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4063 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4065 2014-03-22 Doug Evans <xdje42@gmail.com>
4067 * infcmd.c: Whitespace fixes.
4068 (interrupt_command): Merge two function comments into one.
4070 2014-03-22 Doug Evans <xdje42@gmail.com>
4072 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4075 2014-03-22 Yao Qi <yao@codesourcery.com>
4077 * remote.c (target_read_live_memory): Remove.
4078 (memory_xfer_live_readonly_partial): Rename it to
4079 remote_xfer_live_readonly_partial. Remove argument 'object'.
4080 All callers updated. Call remote_read_bytes_1
4081 instead of target_read_live_memory.
4082 * tracepoint.c (set_traceframe_number): Remove.
4083 (make_cleanup_restore_traceframe_number): Likewise .
4084 * tracepoint.h (set_traceframe_number): Remove declaration.
4085 (make_cleanup_restore_traceframe_number): Likewise.
4087 2014-03-22 Yao Qi <yao@codesourcery.com>
4089 * remote.c (remote_read_bytes): Move code on reading from the
4091 (remote_read_bytes_1): ... here. New function.
4093 2014-03-22 Yao Qi <yao@codesourcery.com>
4095 * ctf.c (ctf_xfer_partial): Check the return value of
4096 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4097 return TARGET_XFER_UNAVAILABLE.
4098 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4099 * target.c (target_read_live_memory): Move it to remote.c.
4100 (memory_xfer_live_readonly_partial): Likewise.
4101 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4102 * remote.c (target_read_live_memory): Moved from target.c.
4103 (memory_xfer_live_readonly_partial): Likewise.
4104 (remote_read_bytes): Factored out from
4105 memory_xfer_partial_1.
4107 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4109 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4112 2014-03-21 Pedro Alves <palves@redhat.com>
4114 * infrun.c (normal_stop): Extend comment.
4116 2014-03-21 Hui Zhu <hui@codesourcery.com>
4117 Pedro Alves <palves@redhat.com>
4119 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4121 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4122 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4123 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4125 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4127 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4128 `z' formatted output modifier.
4130 2014-03-20 Tom Tromey <tromey@redhat.com>
4131 Sergio Durigan Junior <sergiodj@redhat.com>
4133 * probe.c (parse_probes): Turn assert into an ordinary error.
4134 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4135 exceptions when parsing probes. Rearrange the code for clarity.
4137 2014-03-20 Tom Tromey <tromey@redhat.com>
4140 * top.c (execute_command): Only dispatch events if the command
4143 2014-03-20 Tom Tromey <tromey@redhat.com>
4146 * infcall.c: Include event-top.h.
4147 (run_inferior_call): Call async_disable_stdin if needed.
4149 2014-03-20 Pedro Alves <palves@redhat.com>
4151 * infrun.c (prepare_to_proceed): Delete.
4152 (thread_still_needs_step_over): New function.
4153 (find_thread_needs_step_over): New function.
4154 (proceed): If the current thread needs a step-over, set its
4155 steping_over_breakpoint flag. Adjust to use
4156 find_thread_needs_step_over instead of prepare_to_proceed.
4157 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4158 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4160 (switch_back_to_stepped_thread): Step over breakpoints of all
4161 threads not the stepping thread, before switching back to the
4164 2014-03-20 Pedro Alves <palves@redhat.com>
4166 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4168 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4169 * infrun.c (saved_singlestep_ptid)
4170 (stepping_past_singlestep_breakpoint): Delete.
4171 (resume): Remove stepping_past_singlestep_breakpoint handling.
4172 (proceed): Store the prev_pc of the stepping thread too.
4173 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4175 (enum infwait_states): Delete infwait_thread_hop_state.
4176 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4178 (handle_inferior_event): Adjust.
4179 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4180 handling and the thread-hop code. Before removing single-step
4181 breakpoints, check whether the thread hit a single-step breakpoint
4182 of another thread. If it did, the trap is not a random signal.
4183 (switch_back_to_stepped_thread): If the event thread hit a
4184 single-step breakpoint, unblock it before switching to the
4185 stepping thread. Handle the case of the stepped thread having
4187 (keep_going): Handle the case of the current thread moving past a
4188 single-step breakpoint.
4190 2014-03-20 Pedro Alves <palves@redhat.com>
4193 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4194 are being stepped over.
4195 (breakpoint_address_match): Make extern.
4196 * breakpoint.h (breakpoint_address_match): New declaration.
4197 * inferior.h (stepping_past_instruction_at): New declaration.
4198 * infrun.c (struct step_over_info): New type.
4199 (step_over_info): New global.
4200 (set_step_over_info, clear_step_over_info)
4201 (stepping_past_instruction_at): New functions.
4202 (handle_inferior_event): Clear the step-over info when
4203 trap_expected is cleared.
4204 (resume): Remove now stale comment.
4205 (clear_proceed_status): Clear step-over info.
4206 (proceed): Adjust step-over handling to set or clear the step-over
4207 info instead of removing all breakpoints.
4208 (handle_signal_stop): When setting up a thread-hop, don't remove
4210 (stop_stepping): Clear step-over info.
4211 (keep_going): Adjust step-over handling to set or clear step-over
4212 info and then always inserting breakpoints, instead of removing
4213 all breakpoints when stepping over one.
4215 2014-03-20 Pedro Alves <palves@redhat.com>
4217 * infrun.c (previous_inferior_ptid): Adjust comment.
4218 (deferred_step_ptid): Delete.
4219 (infrun_thread_ptid_changed, prepare_to_proceed)
4220 (init_wait_for_inferior): Adjust.
4221 (handle_signal_stop): Delete deferred_step_ptid handling.
4223 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4226 * defs.h (sync_quit_force_run): New declaration.
4227 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4228 * event-top.c (async_sigterm_handler): New declaration.
4229 (async_sigterm_token): New variable.
4230 (async_init_signals): Create also async_sigterm_token.
4231 (async_sigterm_handler): New function.
4232 (sync_quit_force_run): New variable.
4233 (handle_sigterm): Replace quit_force call by other calls.
4234 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4236 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4238 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4239 offset into SPE pseudo registers.
4241 2014-03-18 Pedro Alves <palves@redhat.com>
4244 * inferior.h (print_stop_event): Declare.
4245 * infrun.c (print_stop_event): New, factored out from ...
4246 (normal_stop): ... this.
4247 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4248 of bpstat_print/print_stack_frame.
4250 2014-03-17 Tom Tromey <tromey@redhat.com>
4252 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4254 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4256 * ada-lang.c (decode_constrained_packed_array): Perform a
4257 minimal coercion for reference with coerce_ref instead of
4260 2014-03-17 Tristan Gingold <gingold@adacore.com>
4262 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4263 (darwin_solib_create_inferior_hook): Emit a warning if version
4266 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4268 * python/py-value.c (get_field_flag): Cast flag_name argument to
4269 PyObject_GetAttrString to support Python 2.4.
4271 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4273 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4274 (Global Maintainers): Remove Jan Kratochvil.
4276 2014-03-14 Pedro Alves <palves@redhat.com>
4278 * inferior.h (terminal_ours_for_output): Rename to ...
4279 (child_terminal_ours_for_output): ... this.
4280 (terminal_save_ours): Rename to ...
4281 (child_terminal_save_ours): ... this.
4282 (terminal_ours): Rename to ...
4283 (child_terminal_ours): ... this.
4284 (terminal_inferior): Rename to ...
4285 (child_terminal_inferior): ... this.
4286 (terminal_init_inferior): Rename to ...
4287 (child_terminal_init_inferior): ... this.
4288 (terminal_init_inferior_with_pgrp): Rename to ...
4289 (child_terminal_init_inferior_with_pgrp): ... this.
4290 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4291 (child_terminal_init_with_pgrp): ... this.
4292 (terminal_save_ours): Rename to ...
4293 (child_terminal_save_ours): ... this.
4294 (terminal_init_inferior): Rename to ...
4295 (child_terminal_init): ... this. Adjust.
4296 (terminal_inferior): Rename to ...
4297 (child_terminal_inferior): ... this.
4298 (terminal_ours_for_output): Rename to ...
4299 (child_terminal_ours_for_output): ... this. Adjust.
4300 (terminal_ours): Rename to ...
4301 (child_terminal_ours): ... this.
4302 (terminal_ours_1): Rename to ...
4303 (child_terminal_ours_1): ... this. Adjust.
4304 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4305 * windows-nat.c (do_initial_windows_stuff): Adjust.
4306 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4307 (gnu_terminal_init): ... this. Adjust.
4308 (gnu_target): Adjust.
4309 * inf-child.c (inf_child_target): Adjust.
4311 2014-03-13 Doug Evans <xdje42@gmail.com>
4314 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4317 2014-03-13 Doug Evans <xdje42@gmail.com>
4319 * value.c (record_latest_value): Call release_value_or_incref
4320 instead of release_value.
4322 2014-03-13 Pedro Alves <palves@redhat.com>
4324 * procfs.c (procfs_target): Don't override to_shortname,
4325 to_longname or to_doc.
4327 2014-03-13 Pedro Alves <palves@redhat.com>
4329 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4330 Unix in user visible strings.
4332 2014-03-12 Stan Shebs <stan@codesourcery.com>
4334 * gdbtypes.h: Annotate comments for Doxygen, add a page
4335 block comment with some general info.
4337 2014-03-12 Pedro Alves <palves@redhat.com>
4339 * infcmd.c (prepare_execution_command): New function, factored out
4340 from several execution commands.
4341 (run_command_1, continue_command, step_1, jump_command)
4342 (signal_command, until_command, advance_command, finish_command)
4343 (attach_command): Use prepare_execution_command.
4345 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4347 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4350 (struct arm_linux_thread_points): Removed.
4351 (struct arm_linux_process_info): New.
4352 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4353 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4354 (arm_linux_find_breakpoints_by_tid): Removed.
4355 (struct arch_lwp_info): New.
4356 (arm_linux_find_process_pid): New functions.
4357 (arm_linux_add_process): New functions.
4358 (arm_linux_process_info_get): New functions.
4359 (arm_linux_forget_process): New function.
4360 (arm_linux_get_debug_reg_state): New function.
4361 (struct update_registers_data): New.
4362 (update_registers_callback): New function.
4363 (arm_linux_insert_hw_breakpoint1): Updated.
4364 (arm_linux_remove_hw_breakpoint1): Updated.
4365 (arm_linux_insert_hw_breakpoint): Updated.
4366 (arm_linux_remove_hw_breakpoint): Updated.
4367 (arm_linux_insert_watchpoint): Updated.
4368 (arm_linux_remove_watchpoint): Updated.
4369 (arm_linux_new_thread): Updated.
4370 (arm_linux_prepare_to_resume): New function.
4371 (arm_linux_new_fork): New function.
4372 (_initialize_arm_linux_nat): Updated.
4374 2014-03-12 Pedro Alves <palves@redhat.com>
4376 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4378 2014-03-12 Tom Tromey <tromey@redhat.com>
4380 * inf-child.c (return_zero): New function.
4381 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4382 * aix-thread.c (aix_thread_inferior_created): New function.
4383 (aix_thread_attach): Remove.
4384 (init_aix_thread_ops): Don't set to_attach.
4385 (_initialize_aix_thread): Register inferior_created observer.
4386 * corelow.c (init_core_ops): Don't set to_attach or
4388 * exec.c (init_exec_ops): Don't set to_attach or
4390 * infcmd.c (run_command_1): Use find_run_target. Make direct
4392 (attach_command): Use find_attach_target. Make direct target
4394 * record-btrace.c (init_record_btrace_ops): Don't set
4396 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4398 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4399 set to_create_inferior.
4400 * target.c (complete_target_initialization): Add assertion.
4401 (target_create_inferior): Remove.
4402 (find_default_attach, find_default_create_inferior): Remove.
4403 (find_attach_target, find_run_target): New functions.
4404 (find_default_is_async_p, find_default_can_async_p)
4405 (target_supports_non_stop, target_attach): Remove.
4406 (init_dummy_target): Don't set to_create_inferior or
4407 to_supports_non_stop.
4408 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4409 TARGET_DEFAULT_FUNC.
4410 <to_create_inferior>: Add comment.
4411 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4412 TARGET_DEFAULT_RETURN.
4413 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4414 (find_attach_target, find_run_target): Declare.
4415 (target_create_inferior): Remove.
4416 (target_has_execution_1): Update comment.
4417 (target_supports_non_stop): Remove.
4418 * target-delegates.c: Rebuild.
4420 2014-03-12 Pedro Alves <palves@redhat.com>
4422 * inf-child.h: Update comment to not mention Unix.
4424 2014-03-12 Pedro Alves <palves@redhat.com>
4426 * inf-child.c: Update top comment to not mention Unix. Add
4427 generic comment describing how this target is meant to be used.
4428 (inf_child_post_attach, inf_child_post_startup_inferior)
4429 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4432 2014-03-12 Pedro Alves <palves@redhat.com>
4434 * nto-procfs.c: Include inf-child.h.
4435 (procfs_ops): Delete global.
4436 (procfs_can_run): Delete method.
4437 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4438 target pointer instead of referencing procfs_ops.
4439 (procfs_prepare_to_store): Delete.
4440 (init_procfs_ops): Delete function.
4441 (procfs_target): New function, based on init_procfs_ops, but
4442 inherit inf_child_target.
4443 (_initialize_procfs): Use procfs_target.
4445 2014-03-12 Pedro Alves <palves@redhat.com>
4447 * windows-nat.c: Include inf-child.h.
4448 (windows_ops): Delete global.
4449 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4451 (init_windows_ops): Delete function.
4452 (windows_target): New function, based on init_windows_ops, but
4453 inherit inf_child_target.
4454 (_initialize_windows_nat): Use windows_target. Install x86
4455 specific target methods here.
4457 2014-03-10 Doug Evans <xdje42@gmail.com>
4459 * guile/guile.c (call_initialize_gdb_module): New function.
4460 (initialize_guile): Replace call to scm_init_guile with call to
4463 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4465 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4466 in call to TYPE_CODE macro.
4468 2014-03-10 Jerome Guitton <guitton@adacore.com>
4470 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4471 Resolve tagged types to full view.
4473 2014-03-10 Hui Zhu <hui@codesourcery.com>
4475 * target.h (target_insert_breakpoint): Remove "hardware" from its
4478 2014-03-07 Doug Evans <dje@google.com>
4480 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4482 2014-03-07 Doug Evans <dje@google.com>
4484 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4485 Remove unused local comp_dir_attr. Assert exactly one of
4486 stub_comp_unit_die, stub_comp_dir is non-NULL.
4488 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4490 * target.h (complete_target_initialization, add_target):
4493 2014-03-07 Pedro Alves <palves@redhat.com>
4495 * go32-nat.c: Include inf-child.h.
4496 (go32_ops): Delete global.
4497 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4499 (go32_create_inferior): Push the passed in target pointer instead
4500 of referencing go32_ops.
4501 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4502 (go32_target): New function, based on init_go32_ops, but inherit
4504 (_initialize_go32_nat): Use go32_target. Move parts of
4507 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4509 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4510 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4511 SYMBOL_VALUE_ADDRESS.
4512 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4514 2014-03-06 Yao Qi <yao@codesourcery.com>
4516 * breakpoint.c (get_tracepoint_by_number): Remove argument
4517 optional_p. All callers updated. Adjust comments. Update
4519 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4521 2014-03-06 Yao Qi <yao@codesourcery.com>
4523 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4524 early if get_number returns zero. Use 'p' instead of 'args'.
4526 2014-03-06 Yao Qi <yao@codesourcery.com>
4528 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4531 2014-03-06 Yao Qi <yao@codesourcery.com>
4533 PR breakpoints/16508
4534 * tracepoint.c (check_trace_running): New function.
4535 (trace_find_command): Move code to check_trace_running and
4536 call check_trace_running.
4537 (trace_find_pc_command): Likewise.
4538 (trace_find_tracepoint_command): Likewise.
4539 (trace_find_line_command): Likewise.
4540 (trace_find_range_command): Likewise.
4541 * tracepoint.h (check_trace_running): Likewise.
4542 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4544 2014-03-06 Yao Qi <yao@codesourcery.com>
4546 * target.h (struct target_ops) <to_traceframe_info>: Use
4547 TARGET_DEFAULT_NORETURN (tcomplain ()).
4548 * target-delegates.c: Regenerated.
4550 2014-03-05 Pedro Alves <palves@redhat.com>
4553 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4554 void. Update comment.
4555 (dcache_xfer_memory): Delete.
4556 (dcache_read_memory_partial): New, based on the read bits of
4558 (dcache_update): Add status parameter. Use ULONGEST for len, and
4559 adjust. Discard cache lines if the reason for the update was
4561 * dcache.h (dcache_xfer_memory): Delete declaration.
4562 (dcache_read_memory_partial): New declaration.
4563 (dcache_update): Update prototype.
4564 * target.c (raw_memory_xfer_partial): Update the dcache here.
4565 (memory_xfer_partial_1): Don't handle dcache writes here.
4567 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4569 * remote-sim.c (gdbsim_load): Add const to prog.
4571 2014-03-03 Tom Tromey <tromey@redhat.com>
4573 * elfread.c (probe_key): Change to bfd_data.
4574 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4575 now per-BFD, not per-objfile.
4576 * stap-probe.c (stap_probe_destroy): Update comment.
4577 (handle_stap_probe): Allocate on the per-BFD obstack.
4579 2014-03-03 Tom Tromey <tromey@redhat.com>
4581 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4582 * breakpoint.c (create_longjmp_master_breakpoint): Use
4584 (add_location_to_breakpoint, bkpt_probe_insert_location)
4585 (bkpt_probe_remove_location): Update.
4586 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4587 * elfread.c (elf_symfile_relocate_probe): Remove.
4588 (elf_probe_fns): Update.
4589 (insert_exception_resume_breakpoint): Change type of "probe"
4590 parameter to bound_probe.
4591 (check_exception_resume): Update.
4592 * objfiles.c (objfile_relocate1): Don't relocate probes.
4593 * probe.c (bound_probe_s): New typedef.
4594 (parse_probes): Use get_probe_address. Set sal's objfile.
4595 (find_probe_by_pc): Return a bound_probe.
4596 (collect_probes): Return a VEC(bound_probe_s).
4597 (compare_probes): Update.
4598 (gen_ui_out_table_header_info): Change type of "probes"
4600 (info_probes_for_ops): Update.
4601 (get_probe_address): New function.
4602 (probe_safe_evaluate_at_pc): Update.
4603 * probe.h (struct probe_ops) <get_probe_address>: New field.
4604 <set_semaphore, clear_semaphore>: Add objfile parameter.
4605 (struct probe) <objfile>: Remove field.
4607 <address>: Update comment.
4608 (struct bound_probe): New.
4609 (find_probe_by_pc): Return a bound_probe.
4610 (get_probe_address): Declare.
4611 * solib-svr4.c (struct probe_and_action) <address>: New field.
4612 (hash_probe_and_action, equal_probe_and_action): Update.
4613 (register_solib_event_probe): Add address parameter.
4614 (solib_event_probe_at): Update.
4615 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4617 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4618 (stap_get_probe_address): New function.
4619 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4620 (compile_probe_arg): Update.
4621 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4623 (handle_stap_probe): Don't relocate the probe.
4624 (stap_relocate): Remove.
4625 (stap_gen_info_probes_table_values): Update.
4626 (stap_probe_ops): Remove stap_relocate.
4627 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4628 (debug_sym_probe_fns): Update.
4629 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4630 * symtab.c (init_sal): Use memset.
4631 * symtab.h (struct symtab_and_line) <objfile>: New field.
4632 * tracepoint.c (start_tracing, stop_tracing): Update.
4634 2014-03-03 Tom Tromey <tromey@redhat.com>
4636 * probe.h (parse_probes, find_probe_by_pc)
4637 (find_probes_in_objfile): Fix comments.
4639 2014-03-02 Doug Evans <xdje42@gmail.com>
4641 * infrun.c (handle_signal_stop): Replace test for
4642 TARGET_WAITKIND_STOPPED with an assert.
4644 2014-03-02 Doug Evans <xdje42@gmail.com>
4646 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4648 2014-03-02 Doug Evans <xdje42@gmail.com>
4650 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4652 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4654 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4656 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4658 * i386obsd-nat.c: Include "obsd-nat.h".
4659 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4661 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4663 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4665 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4667 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4669 * mips64obsd-nat.c: Include "obsd-nath".
4670 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4672 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4674 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4676 * amd64obsd-nat.c: Include "obsd-nat,h.
4677 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4679 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4681 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4683 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4684 (find_overload_match): Update call to find_oload_champ.
4685 (find_oload_champ_namespace_loop): Likewise
4687 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4689 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4691 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4692 * config/sparc/obsd64.mh: New file.
4693 * sparc64obsd-nat.c: New file.
4695 * obsd-nat.h: New file.
4696 * obsd-nat.c: New file.
4697 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4698 (ALLDEPFILES): Add obsd-nat.c.
4700 2014-02-28 Tom Tromey <tromey@redhat.com>
4702 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4703 * cli-out.h (cli_ui_out_impl): Now const.
4704 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4705 * ui-out.c (struct ui_out) <impl>: Now const.
4706 (default_ui_out_impl): Now const.
4707 (ui_out_new): Make 'impl' parameter const.
4708 * ui-out.h (ui_out_new): Update.
4710 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4712 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4714 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4716 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4718 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4720 Additional PR 8882 fix.
4721 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4723 2014-02-27 Pedro Alves <palves@redhat.com>
4725 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4728 2014-02-27 Pedro Alves <palves@redhat.com>
4731 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4732 * nat/linux-waitpid.c: Include string.h.
4733 (status_to_str): Moved here and made extern.
4734 * nat/linux-waitpid.h (status_to_str): New declaration.
4736 2014-02-27 Hui Zhu <hui@codesourcery.com>
4739 * infrun.c (ptid_match): Move ...
4740 * common/ptid.c (ptid_match): ... here.
4741 * inferior.h (ptid_match): Move ...
4742 * common/ptid.h (ptid_match): ... here.
4744 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4746 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4747 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4750 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4752 * obsd-tdep.c (obsd_auxv_parse): New function.
4753 (obsd_init_abi): Set auxv_parse.
4755 * gdbarch.sh (auxv_parse): New.
4756 * gdbarch.h: Regenerated.
4757 * gdbarch.c: Regenerated.
4758 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4760 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4762 * guile/scm-value.c (gdbscm_history_append_x): New function.
4763 (value_functions): Add it.
4765 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4767 * dwarf2read.c (attr_value_as_address): New function.
4768 (dwarf2_find_base_address, read_call_site_scope): Use
4769 attr_value_as_address in place of DW_ADDR.
4770 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4771 the low and high addresses. Slight rework of the handling
4772 of the high pc being a constant form, and limit it to
4773 DWARF verson 4 or higher.
4774 (dwarf2_record_block_ranges): Likewise.
4775 (read_partial_die): Likewise.
4776 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4778 2014-02-26 Tom Tromey <tromey@redhat.com>
4780 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4782 2014-02-26 Tom Tromey <tromey@redhat.com>
4784 * elfread.c (elf_read_minimal_symbols): Return early if
4785 minimal symbols have already been read. Add "ei" parameter.
4786 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4787 * minsyms.c (prim_record_minimal_symbol_full): Update.
4788 * objfiles.h (struct objstats) <n_minsyms>: Move...
4789 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4790 * symmisc.c (print_objfile_statistics): Update.
4792 2014-02-26 Tom Tromey <tromey@redhat.com>
4794 * elfread.c (elf_read_minimal_symbols): New function, from
4796 (elf_symfile_read): Call it.
4798 2014-02-26 Tom Tromey <tromey@redhat.com>
4800 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4801 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4802 (lookup_minimal_symbol_solib_trampoline)
4803 (lookup_minimal_symbol_by_pc_section_1)
4804 (lookup_minimal_symbol_and_objfile): Update.
4805 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4806 Don't allocate a minimal symbol if minsyms have already been read.
4807 (build_minimal_symbol_hash_tables): Update.
4808 (install_minimal_symbols): Do nothing if minsyms already read.
4809 Use the per-BFD obstack.
4810 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4811 * objfiles.c (allocate_objfile): Call
4812 terminate_minimal_symbol_table later.
4813 (have_minimal_symbols): Update.
4814 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4815 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4816 Move from struct objfile.
4817 <minsyms_read>: New field.
4818 (struct objfile) <msymbols, minimal_symbol_count,
4819 msymbol_hash, msymbol_demangled_hash>: Move.
4820 (ALL_OBJFILE_MSYMBOLS): Update.
4821 * symfile.c (read_symbols): Set minsyms_read.
4822 (reread_symbols): Update.
4823 * symmisc.c (dump_objfile, dump_msymbols): Update.
4825 2014-02-26 Tom Tromey <tromey@redhat.com>
4827 * minsyms.c (msymbols_sort): Remove.
4828 * minsyms.h (msymbols_sort): Remove.
4829 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4830 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4831 * elfread.c (elf_symtab_read): Don't add section offsets.
4832 * xcoffread.c (record_minimal_symbol): Don't add section offset
4833 to minimal symbol address.
4834 * somread.c (text_offset, data_offset): Remove.
4835 (som_symtab_read): Don't add section offsets to minimal symbol
4837 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4838 Don't add section offsets to minimal symbols.
4839 * coffread.c (coff_symtab_read): Don't add section offsets
4840 to minimal symbol addresses.
4841 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4842 to minimal symbol addresses.
4843 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4844 section offset to minimal symbol addresses.
4845 * mdebugread.c (parse_partial_symbols): Don't add section
4846 offset to minimal symbol addresses.
4847 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4848 offset to minimal symbol addresses.
4850 2014-02-26 Tom Tromey <tromey@redhat.com>
4852 * ada-lang.c (ada_main_name): Update.
4853 (ada_add_standard_exceptions): Update.
4854 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4855 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4856 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4857 * auxv.c (ld_so_xfer_auxv): Update.
4858 * avr-tdep.c (avr_scan_prologue): Update.
4859 * ax-gdb.c (gen_var_ref): Update.
4860 * blockframe.c (get_pc_function_start)
4861 (find_pc_partial_function_gnu_ifunc): Update.
4862 * breakpoint.c (create_overlay_event_breakpoint)
4863 (create_longjmp_master_breakpoint)
4864 (create_std_terminate_master_breakpoint)
4865 (create_exception_master_breakpoint): Update.
4866 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4867 * c-valprint.c (c_val_print): Update.
4868 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4869 * common/agent.c (agent_look_up_symbols): Update.
4870 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4871 * dwarf2loc.c (call_site_to_target_addr): Update.
4872 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4873 * elfread.c (elf_gnu_ifunc_record_cache)
4874 (elf_gnu_ifunc_resolve_by_got): Update.
4875 * findvar.c (default_read_var_value): Update.
4876 * frame.c (inside_main_func): Update.
4877 * frv-tdep.c (frv_frame_this_id): Update.
4878 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4879 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4881 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4882 (hppa_hpux_find_dummy_bpaddr): Update.
4883 * hppa-tdep.c (hppa_symbol_address): Update.
4884 * infcmd.c (until_next_command): Update.
4885 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4887 * linespec.c (minsym_found, add_minsym): Update.
4888 * linux-nat.c (get_signo): Update.
4889 * linux-thread-db.c (inferior_has_bug): Update.
4890 * m32c-tdep.c (m32c_return_value)
4891 (m32c_m16c_address_to_pointer): Update.
4892 * m32r-tdep.c (m32r_frame_this_id): Update.
4893 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4894 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4895 * maint.c (maintenance_translate_address): Update.
4896 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4897 (frob_address): New function.
4898 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4899 frob_address. Rename parameter to "pc_in".
4900 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4902 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4904 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4905 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4906 * objc-lang.c (find_objc_msgsend): Update.
4907 * objfiles.c (objfile_relocate1): Update.
4908 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4909 * p-valprint.c (pascal_val_print): Update.
4910 * parse.c (write_exp_msymbol): Update.
4911 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4912 (ppc_elfv2_skip_entrypoint): Update.
4913 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4914 * printcmd.c (build_address_symbolic, msym_info)
4915 (address_info): Update.
4916 * proc-service.c (ps_pglobal_lookup): Update.
4917 * psymtab.c (find_pc_sect_psymtab_closer)
4918 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4919 Change msymbol parameter to bound_minimal_symbol.
4920 * ravenscar-thread.c (get_running_thread_id): Update.
4921 * remote.c (remote_check_symbols): Update.
4922 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4924 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4925 * solib-dsbt.c (lm_base): Update.
4926 * solib-frv.c (lm_base, main_got): Update.
4927 * solib-irix.c (locate_base): Update.
4928 * solib-som.c (som_solib_create_inferior_hook)
4929 (link_map_start): Update.
4930 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4931 * solib-svr4.c (elf_locate_base, enable_break): Update.
4932 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4933 (flush_ea_cache): Update.
4934 * stabsread.c (define_symbol, scan_file_globals): Update.
4935 * stack.c (find_frame_funname): Update.
4936 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4937 (debug_qf_find_pc_sect_symtab): Update.
4938 * symfile.c (simple_read_overlay_table)
4939 (simple_overlay_update): Update.
4940 * symfile.h (struct quick_symbol_functions)
4941 <find_pc_sect_symtab>: Change type of msymbol to
4942 bound_minimal_symbol.
4943 * symmisc.c (dump_msymbols): Update.
4944 * symtab.c (find_pc_sect_symtab_via_partial)
4945 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4946 (search_symbols, print_msymbol_info): Update.
4947 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4948 (MSYMBOL_VALUE_ADDRESS): Redefine.
4949 (BMSYMBOL_VALUE_ADDRESS): New macro.
4950 * tracepoint.c (scope_info): Update.
4951 * tui/tui-disasm.c (tui_find_disassembly_address)
4952 (tui_get_begin_asm_address): Update.
4953 * valops.c (find_function_in_inferior): Update.
4954 * value.c (value_static_field, value_fn_field): Update.
4956 2014-02-26 Tom Tromey <tromey@redhat.com>
4958 * ada-lang.c (ada_update_initial_language): Update.
4959 (ada_main_name, ada_has_this_exception_support): Update.
4960 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4961 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4962 * arm-tdep.c (arm_skip_stub): Update.
4963 * auxv.c (ld_so_xfer_auxv): Update.
4964 * avr-tdep.c (avr_scan_prologue): Update.
4965 * ax-gdb.c (gen_var_ref): Update.
4966 * breakpoint.c (struct breakpoint_objfile_data)
4967 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4968 type to bound_minimal_symbol.
4969 (create_overlay_event_breakpoint)
4970 (create_longjmp_master_breakpoint)
4971 (create_std_terminate_master_breakpoint)
4972 (create_exception_master_breakpoint): Update.
4973 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4974 * c-exp.y (classify_name): Update.
4975 * coffread.c (coff_symfile_read): Update.
4976 * common/agent.c (agent_look_up_symbols): Update.
4977 * d-lang.c (d_main_name): Update.
4978 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4979 * dec-thread.c (enable_dec_thread): Update.
4980 * dwarf2loc.c (call_site_to_target_addr): Update.
4981 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4982 * eval.c (evaluate_subexp_standard): Update.
4983 * findvar.c (struct minsym_lookup_data) <result>: Change type
4984 to bound_minimal_symbol.
4986 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4987 * frame.c (inside_main_func): Update.
4988 * frv-tdep.c (frv_frame_this_id): Update.
4989 * gcore.c (call_target_sbrk): Update.
4990 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4991 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4993 * go-lang.c (go_main_name): Update.
4994 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4995 (hppa_hpux_find_import_stub_for_addr): Update.
4996 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4997 Update. Change return type.
4998 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5000 * jit.c (jit_breakpoint_re_set_internal): Update.
5001 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5003 * linux-nat.c (get_signo): Update.
5004 * linux-thread-db.c (inferior_has_bug): Update
5005 * m32c-tdep.c (m32c_return_value)
5006 (m32c_m16c_address_to_pointer): Update.
5007 * m32r-tdep.c (m32r_frame_this_id): Update.
5008 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5009 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5010 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5011 lookup_minimal_symbol. Change return type.
5012 (lookup_minimal_symbol): Remove.
5013 (lookup_bound_minimal_symbol): Update.
5014 (lookup_minimal_symbol_text): Change return type.
5015 (lookup_minimal_symbol_solib_trampoline): Change return type.
5016 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5017 (lookup_minimal_symbol_solib_trampoline): Change return type.
5018 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5019 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5020 (value_nsstring, find_imps): Update.
5021 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5022 * p-lang.c (pascal_main_name): Update.
5023 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5024 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5025 * proc-service.c (ps_pglobal_lookup): Update.
5026 * ravenscar-thread.c (get_running_thread_msymbol): Change
5028 (has_ravenscar_runtime, get_running_thread_id): Update.
5029 * remote.c (remote_check_symbols): Update.
5030 * sol-thread.c (ps_pglobal_lookup): Update.
5031 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5032 * solib-dsbt.c (lm_base): Update.
5033 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5035 * solib-irix.c (locate_base): Update.
5036 * solib-som.c (som_solib_create_inferior_hook)
5037 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5039 * solib-spu.c (spu_enable_break): Update.
5040 * solib-svr4.c (elf_locate_base, enable_break): Update.
5041 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5042 (flush_ea_cache): Update.
5043 * stabsread.c (define_symbol): Update.
5044 * symfile.c (simple_read_overlay_table): Update.
5045 * symtab.c (find_pc_sect_line): Update.
5046 * tracepoint.c (scope_info): Update.
5047 * tui-disasm.c (tui_get_begin_asm_address): Update.
5048 * value.c (value_static_field): Update.
5050 2014-02-26 Tom Tromey <tromey@redhat.com>
5052 * minsyms.c (prim_record_minimal_symbol_full): Use
5053 SET_MSYMBOL_VALUE_ADDRESS.
5054 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5055 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5056 SET_MSYMBOL_VALUE_ADDRESS.
5057 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5058 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5060 2014-02-26 Tom Tromey <tromey@redhat.com>
5062 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5063 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5064 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5065 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5066 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5067 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5068 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5069 * ada-lang.c (ada_main_name): Update.
5070 (ada_lookup_simple_minsym): Update.
5071 (ada_make_symbol_completion_list): Update.
5072 (ada_add_standard_exceptions): Update.
5073 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5074 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5075 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5076 * arm-tdep.c (skip_prologue_function): Update.
5077 (arm_skip_stack_protector, arm_skip_stub): Update.
5078 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5079 (arm_wince_skip_main_prologue): Update.
5080 * auxv.c (ld_so_xfer_auxv): Update.
5081 * avr-tdep.c (avr_scan_prologue): Update.
5082 * ax-gdb.c (gen_var_ref): Update.
5083 * block.c (call_site_for_pc): Update.
5084 * blockframe.c (get_pc_function_start): Update.
5085 (find_pc_partial_function_gnu_ifunc): Update.
5086 * breakpoint.c (create_overlay_event_breakpoint): Update.
5087 (create_longjmp_master_breakpoint): Update.
5088 (create_std_terminate_master_breakpoint): Update.
5089 (create_exception_master_breakpoint): Update.
5090 (resolve_sal_pc): Update.
5091 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5092 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5094 * c-valprint.c (c_val_print): Update.
5095 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5096 * coffread.c (coff_symfile_read): Update.
5097 * common/agent.c (agent_look_up_symbols): Update.
5098 * dbxread.c (find_stab_function_addr): Update.
5099 (end_psymtab): Update.
5100 * dwarf2loc.c (call_site_to_target_addr): Update.
5101 (func_verify_no_selftailcall): Update.
5102 (tailcall_dump): Update.
5103 (call_site_find_chain_1): Update.
5104 (dwarf_expr_reg_to_entry_parameter): Update.
5105 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5106 (elf_gnu_ifunc_resolve_by_got): Update.
5107 * f-valprint.c (info_common_command): Update.
5108 * findvar.c (read_var_value): Update.
5109 * frame.c (get_prev_frame_1): Update.
5110 (inside_main_func): Update.
5111 * frv-tdep.c (frv_skip_main_prologue): Update.
5112 (frv_frame_this_id): Update.
5113 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5114 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5115 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5116 (gnuv3_skip_trampoline): Update.
5117 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5118 (hppa64_hpux_in_solib_call_trampoline): Update.
5119 (hppa_hpux_skip_trampoline_code): Update.
5120 (hppa64_hpux_search_dummy_call_sequence): Update.
5121 (hppa_hpux_find_import_stub_for_addr): Update.
5122 (hppa_hpux_find_dummy_bpaddr): Update.
5123 * hppa-tdep.c (hppa_symbol_address)
5124 (hppa_lookup_stub_minimal_symbol): Update.
5125 * i386-tdep.c (i386_skip_main_prologue): Update.
5126 (i386_pe_skip_trampoline_code): Update.
5127 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5128 * infcall.c (get_function_name): Update.
5129 * infcmd.c (until_next_command): Update.
5130 * jit.c (jit_breakpoint_re_set_internal): Update.
5131 (jit_inferior_init): Update.
5132 * linespec.c (minsym_found): Update.
5133 (add_minsym): Update.
5134 * linux-fork.c (info_checkpoints_command): Update.
5135 * linux-nat.c (get_signo): Update.
5136 * linux-thread-db.c (inferior_has_bug): Update.
5137 * m32c-tdep.c (m32c_return_value): Update.
5138 (m32c_m16c_address_to_pointer): Update.
5139 (m32c_m16c_pointer_to_address): Update.
5140 * m32r-tdep.c (m32r_frame_this_id): Update.
5141 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5142 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5143 * maint.c (maintenance_translate_address): Update.
5144 * minsyms.c (add_minsym_to_hash_table): Update.
5145 (add_minsym_to_demangled_hash_table): Update.
5146 (msymbol_objfile): Update.
5147 (lookup_minimal_symbol): Update.
5148 (iterate_over_minimal_symbols): Update.
5149 (lookup_minimal_symbol_text): Update.
5150 (lookup_minimal_symbol_by_pc_name): Update.
5151 (lookup_minimal_symbol_solib_trampoline): Update.
5152 (lookup_minimal_symbol_by_pc_section_1): Update.
5153 (lookup_minimal_symbol_and_objfile): Update.
5154 (prim_record_minimal_symbol_full): Update.
5155 (compare_minimal_symbols): Update.
5156 (compact_minimal_symbols): Update.
5157 (build_minimal_symbol_hash_tables): Update.
5158 (install_minimal_symbols): Update.
5159 (terminate_minimal_symbol_table): Update.
5160 (find_solib_trampoline_target): Update.
5161 (minimal_symbol_upper_bound): Update.
5162 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5163 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5164 (mips_skip_pic_trampoline_code): Update.
5165 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5166 * objc-lang.c (selectors_info): Update.
5167 (classes_info): Update.
5168 (find_methods): Update.
5169 (find_imps): Update.
5170 (find_objc_msgsend): Update.
5171 * objfiles.c (objfile_relocate1): Update.
5172 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5173 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5174 * p-valprint.c (pascal_val_print): Update.
5175 * parse.c (write_exp_msymbol): Update.
5176 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5177 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5178 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5179 * printcmd.c (build_address_symbolic): Update.
5181 (address_info): Update.
5182 * proc-service.c (ps_pglobal_lookup): Update.
5183 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5184 (find_pc_sect_psymtab): Update.
5185 * python/py-framefilter.c (py_print_frame): Update.
5186 * ravenscar-thread.c (get_running_thread_id): Update.
5187 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5189 * remote.c (remote_check_symbols): Update.
5190 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5191 (rs6000_skip_trampoline_code): Update.
5192 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5193 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5194 * solib-dsbt.c (lm_base): Update.
5195 * solib-frv.c (lm_base): Update.
5197 * solib-irix.c (locate_base): Update.
5198 * solib-som.c (som_solib_create_inferior_hook): Update.
5199 (som_solib_desire_dynamic_linker_symbols): Update.
5200 (link_map_start): Update.
5201 * solib-spu.c (spu_enable_break): Update.
5202 (ocl_enable_break): Update.
5203 * solib-svr4.c (elf_locate_base): Update.
5204 (enable_break): Update.
5205 * spu-tdep.c (spu_get_overlay_table): Update.
5206 (spu_catch_start): Update.
5207 (flush_ea_cache): Update.
5208 * stabsread.c (define_symbol): Update.
5209 (scan_file_globals): Update.
5210 * stack.c (find_frame_funname): Update.
5211 (frame_info): Update.
5212 * symfile.c (simple_read_overlay_table): Update.
5213 (simple_overlay_update): Update.
5214 * symmisc.c (dump_msymbols): Update.
5215 * symtab.c (fixup_section): Update.
5216 (find_pc_sect_line): Update.
5217 (skip_prologue_sal): Update.
5218 (search_symbols): Update.
5219 (print_msymbol_info): Update.
5220 (rbreak_command): Update.
5221 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5222 (completion_list_objc_symbol): Update.
5223 (default_make_symbol_completion_list_break_on): Update.
5224 * tracepoint.c (scope_info): Update.
5225 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5226 (tui_get_begin_asm_address): Update.
5227 * valops.c (find_function_in_inferior): Update.
5228 * value.c (value_static_field): Update.
5229 (value_fn_field): Update.
5231 2014-02-26 Tom Tromey <tromey@redhat.com>
5233 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5234 bound minimal symbols. Move code that knows about minsym
5236 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5238 * minsyms.h (minimal_symbol_upper_bound): Declare.
5239 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5240 minimal_symbol_upper_bound.
5242 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5244 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5245 Use the type's name if its basic type does not have a tag.
5247 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5249 * dwarf2read.c (read_subrange_type): Add comment.
5251 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5253 * dwarf2read.c (update_enumeration_type_from_children): New
5254 function, mostly extracted from process_structure_scope.
5255 (read_enumeration_type): Call update_enumeration_type_from_children.
5256 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5257 and flag_flag_enum fields.
5259 2014-02-26 Pedro Alves <palves@redhat.com>
5261 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5262 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5263 to_xfer_partial method.
5265 2014-02-26 Pedro Alves <palves@redhat.com>
5267 * target.c (complete_target_initialization): Don't install
5268 default_xfer_partial as to_xfer_partial hook.
5270 (update_current_target): Don't INHERIT nor de_fault
5271 deprecated_xfer_memory. Delete de_fault macro.
5272 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5273 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5274 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5277 2014-02-26 Pedro Alves <palves@redhat.com>
5279 * go32-nat.c (my_write_child): New function.
5280 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5281 (go32_xfer_partial): New function.
5282 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5283 Instead install a to_xfer_partial hook.
5285 2014-02-26 Pedro Alves <palves@redhat.com>
5287 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5288 to_xfer_partial helper. Rewrite.
5289 (procfs_xfer_partial): New function.
5290 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5291 Install a to_xfer_partial hook.
5293 2014-02-26 Pedro Alves <palves@redhat.com>
5295 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5296 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5297 (m32r_xfer_partial): New function.
5298 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5299 Install a to_xfer_partial hook.
5301 2014-02-26 Pedro Alves <palves@redhat.com>
5303 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5305 (mips_xfer_partial): New function.
5306 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5307 hook. Install a to_xfer_partial hook.
5309 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5311 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5312 * gdbtypes.c (create_array_type_with_stride): New function,
5313 renaming create_array_type, but with an added parameter
5314 called "bit_stride".
5315 (create_array_type): Re-implement using
5316 create_array_type_with_stride.
5317 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5318 and DW_AT_bit_stride attributes.
5320 2014-02-26 Pedro Alves <palves@redhat.com>
5322 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5323 task-specific breakpoints.
5325 2014-02-25 Pedro Alves <palves@redhat.com>
5327 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5328 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5330 2014-02-25 Stan Shebs <stan@codesourcery.com>
5332 * defs.h: Annotate comments for Doxygen.
5334 2014-02-25 Tom Tromey <tromey@redhat.com>
5336 * target.h (target_ignore): Don't declare.
5337 * target.c (target_ignore): Remove.
5339 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5342 * auto-load.c (auto_load_objfile_script_1): Change filename to
5345 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5347 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5348 documentation. Adjust prototype to match the target_ops
5349 to_xfer_partial method. Adjust implementation accordingly.
5351 2014-02-25 Hui Zhu <hui@codesourcery.com>
5353 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5356 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5358 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5359 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5360 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5361 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5362 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5363 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5364 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5365 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5367 (rl78_register_type): Use a data pointer type for SP and
5368 new pseudo registers mentioned above. Use a 16 bit integer
5369 type for all other register pairs.
5370 (rl78_register_name, rl78_g10_register_name): Update for
5371 new pseudo registers.
5372 (rl78_pseudo_register_read): Likewise.
5373 (rl78_pseudo_register_write): Likewise.
5374 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5375 to the newly added pseudo registers.
5377 2014-02-24 Doug Evans <dje@google.com>
5379 * value.c (record_latest_value): Fix comment.
5380 * printcmd.c (print_command_1): Remove code to handle -1 return from
5381 record_latest_value.
5383 2014-02-24 Pedro Alves <palves@redhat.com>
5385 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5386 deprecated_xfer_memory hook.
5387 (procfs_xfer_partial): Call procfs_xfer_memory instead
5388 of the deprecated_xfer_memory target hook.
5389 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5392 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5394 * windows-nat.c (windows_xfer_shared_libraries): Return
5395 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5396 requested object is TARGET_OBJECT_LIBRARIES.
5398 2014-02-24 Yao Qi <yao@codesourcery.com>
5400 * target.h (enum target_xfer_status)
5401 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5402 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5404 * corefile.c (memory_error_message): User updated.
5405 * exec.c (section_table_read_available_memory): Likewise.
5406 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5407 * target.c (target_xfer_status_to_string): Likewise.
5408 (raw_memory_xfer_partial): Likewise.
5409 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5410 * valops.c (read_value_memory): Likewise.
5411 * exec.h: Update comments.
5413 2014-02-24 Yao Qi <yao@codesourcery.com>
5415 * target.c (target_xfer_status_to_string): Rename argument err
5417 * target.h (target_xfer_status_to_string): Update declaration.
5418 Replace target_xfer_error_to_string with
5419 target_xfer_status_to_string in comment.
5421 2014-02-24 Yao Qi <yao@codesourcery.com>
5423 * mips-linux-nat.c (super_close): Update its type.
5424 (mips_linux_close): Pass 'self' to super_close.
5426 2014-02-24 Yao Qi <yao@codesourcery.com>
5428 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5429 * corefile.c (read_memory): Adjusted.
5430 * target.c (target_write_with_progress): Adjusted.
5432 2014-02-23 Yao Qi <yao@codesourcery.com>
5436 2013-10-25 Yao Qi <yao@codesourcery.com>
5438 * remote.c (remote_traceframe_info): Return early if
5439 traceframe is not selected.
5441 2013-07-19 Yao Qi <yao@codesourcery.com>
5443 * target.c (update_current_target): Change the default action
5444 of 'to_traceframe_info' from tcomplain to return_zero.
5445 * target.h (struct target_ops) <to_traceframe_info>: Add more
5448 2014-02-23 Yao Qi <yao@codesourcery.com>
5450 * valops.c (read_value_memory): Rewrite it. Call
5451 target_xfer_partial in a loop.
5452 * exec.h (section_table_available_memory): Remove declaration.
5453 Move comments to ...
5454 * exec.c (section_table_available_memory): ... here. Make it
5457 2014-02-23 Yao Qi <yao@codesourcery.com>
5459 * exec.c (section_table_read_available_memory): New function.
5460 * exec.h (section_table_read_available_memory): Declare.
5461 * ctf.c (ctf_xfer_partial): Call
5462 section_table_read_available_memory.
5463 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5465 2014-02-23 Yao Qi <yao@codesourcery.com>
5467 * ctf.c (ctf_xfer_partial): Move code to ...
5468 * exec.c (exec_read_partial_read_only): ... it. New function.
5469 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5470 * tracefile.c: Include "exec.h".
5471 * exec.h (exec_read_partial_read_only): Declare.
5473 2014-02-23 Yao Qi <yao@codesourcery.com>
5475 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5476 (tfile_has_memory): Remove.
5477 (init_tfile_ops): Don't set fields to_has_all_memory and
5478 to_has_memory of tfile_ops.
5479 * tracefile.c (tracefile_has_all_memory): New function.
5480 (tracefile_has_memory): New function.
5481 (init_tracefile_ops): Initialize fields to_has_all_memory and
5482 to_has_memory of 'ops'.
5484 2014-02-23 Yao Qi <yao@codesourcery.com>
5486 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5487 (ctf_thread_alive, ctf_get_trace_status): Remove.
5488 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5490 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5491 (tfile_has_stack, tfile_has_registers): Remove.
5492 (tfile_thread_alive): Remove.
5493 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5495 * tracefile.c (tracefile_has_stack): New function.
5496 (tracefile_has_registers): New function.
5497 (tracefile_thread_alive): New function.
5498 (tracefile_get_trace_status): New function.
5499 (init_tracefile_ops): New function.
5500 * tracefile.h (init_tracefile_ops): Declare.
5502 2014-02-23 Yao Qi <yao@codesourcery.com>
5504 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5505 (O_LARGEFILE): Likewise.
5506 (tfile_ops): Likewise.
5507 (TRACE_HEADER_SIZE): Likewise.
5508 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5509 (cur_data_size): Likewise.
5510 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5511 (tfile_close, tfile_files_info): Likewise.
5512 (tfile_get_trace_status): Likewise.
5513 (tfile_get_tracepoint_status): Likewise.
5514 (tfile_get_traceframe_address): Likewise.
5515 (tfile_trace_find, match_blocktype): Likewise.
5516 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5517 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5518 (tfile_get_trace_state_variable_value): Likewise.
5519 (tfile_has_all_memory, tfile_has_memory): Likewise.
5520 (tfile_has_stack, tfile_has_registers): Likewise.
5521 (tfile_thread_alive, build_traceframe_info): Likewise.
5522 (tfile_traceframe_info, init_tfile_ops): Likewise.
5523 (_initialize_tracepoint): Don't call init_tfile_ops
5524 and add_target_with_completer.
5525 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5526 exec.h, completer.h and filenames.h.
5527 (_initialize_tracefile_tfile): New function.
5529 2014-02-23 Yao Qi <yao@codesourcery.com>
5531 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5533 (HFILES_NO_SRCDIR): Add tracefile.h.
5534 * ctf.c: Include "tracefile.h".
5535 * tracefile.h: New file.
5536 * tracefile.c: New file
5537 * tracefile-tfile.c: New file.
5538 * tracepoint.c: Include "tracefile.h".
5539 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5540 (stop_reason_names): Add const.
5541 (trace_file_writer_xfree): Move it to tracefile.c.
5542 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5543 (trace_save_ctf): Likewise.
5544 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5545 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5546 (tfile_write_header, tfile_write_regblock_type): Likewise.
5547 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5548 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5549 (tfile_write_raw_data, tfile_end): Likewise.
5550 (tfile_trace_file_writer_new): Likewise.
5551 (free_uploaded_tp): Make it extern.
5552 (free_uploaded_tsv): Make it extern.
5553 (_initialize_tracepoint): Move code to register command 'tsave'
5555 * tracepoint.h (stop_reason_names): Declare.
5556 (struct trace_frame_write_ops): Move it to tracefile.h.
5557 (struct trace_file_write_ops): Likewise.
5558 (struct trace_file_writer): Likewise.
5559 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5561 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5564 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5566 (get_cores_used_by_process): New parameter num_cores, use it.
5567 (linux_xfer_osdata_processes): Pass num_cores to it.
5568 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5571 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5573 * target.c (memory_xfer_partial): Fix length arg in call to
5574 breakpoint_xfer_memory.
5576 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5579 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5580 number comes after the + or - signs. Adjust length of register
5581 name to be extracted.
5583 2014-02-20 Tom Tromey <tromey@redhat.com>
5585 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5586 (ada_varobj_ops): Mark "extern".
5588 2014-02-20 Tom Tromey <tromey@redhat.com>
5590 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5592 2014-02-20 Doug Evans <xdje42@gmail.com>
5594 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5595 All callers updated.
5596 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5597 All callers updated.
5598 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5599 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5601 2014-02-20 lin zuojian <manjian2006@gmail.com>
5602 Joel Brobecker <brobecker@adacore.com>
5603 Doug Evans <xdje42@gmail.com>
5606 * dwarf2read.c (struct die_info): New member in_process.
5607 (reset_die_in_process): New function.
5608 (process_die): Set it at the start, reset when returning.
5609 (inherit_abstract_dies): Only call process_die if origin_child_die
5610 not already being processed.
5612 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5614 * windows-nat.c (handle_unload_dll): Add function documentation.
5615 (do_initial_windows_stuff): Add comment explaining why we wait
5616 until after inferior initialization has finished before
5617 processing all DLLs.
5619 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5621 * windows-nat.c (get_module_name): Delete.
5622 (windows_get_exec_module_filename): New function, mostly
5623 inspired from get_module_name.
5624 (windows_pid_to_exec_file): Replace call to get_module_name
5625 by call to windows_get_exec_module_filename.
5627 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5629 * windows-nat.c (handle_load_dll): Rewrite this function's
5630 introductory comment. Remove code using get_module_name
5631 to get the DLL's name.
5633 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5635 * windows-nat.c (get_windows_debug_event): Ignore
5636 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5637 if windows_initialization_done == 0.
5638 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5639 Adjust implementation to always load all DLLs.
5640 (do_initial_windows_stuff): Replace call to
5641 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5643 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5645 * windows-nat.c (_initialize_windows_nat): Deprecate the
5646 "dll-symbols" command. Turn the "add-shared-symbol-files"
5647 and "assf" aliases into commands, and deprecate them as well.
5648 * NEWS: Add entry explaining that "dll-symbols" and its two
5649 aliases are now deprecated.
5651 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5653 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5654 new-line in debug string. Remove trailing spaces.
5656 2014-02-19 Stan Shebs <stan@codesourcery.com>
5658 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5660 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5662 * NEWS: Add entry for the new feature
5663 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5666 2014-02-19 Stan Shebs <stan@codesourcery.com>
5668 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5670 2014-02-19 Pedro Alves <palves@redhat.com>
5672 * common/ptid.h (struct ptid): Mention that process_stratum
5673 targets should prefer ptid.lwp.
5675 2014-02-19 Pedro Alves <palves@redhat.com>
5677 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5678 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5679 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5680 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5681 store remote thread ids rather than ptid.tid.
5682 (_initialize_remote): Adjust.
5684 2014-02-19 Tom Tromey <tromey@redhat.com>
5686 * target.c (target_get_unwinder): Rewrite.
5687 (target_get_tailcall_unwinder): Rewrite.
5688 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5689 (record_btrace_to_get_tailcall_unwinder): New function.
5690 (init_record_btrace_ops): Update.
5691 * target.h (struct target_ops) <to_get_unwinder,
5692 to_get_tailcall_unwinder>: Now function pointers. Use
5693 TARGET_DEFAULT_RETURN.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5699 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5705 * target-delegates.c: Rebuild.
5706 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5707 TARGET_DEFAULT_FUNC.
5708 * target.c (default_target_decr_pc_after_break): Rename from
5709 forward_target_decr_pc_after_break. Simplify.
5710 (target_decr_pc_after_break): Rely on delegation.
5712 2014-02-19 Tom Tromey <tromey@redhat.com>
5714 * target.c (update_current_target): Do not INHERIT to_doc or
5715 to_magic. Do not de_fault to_open or to_close.
5717 2014-02-19 Tom Tromey <tromey@redhat.com>
5719 * gcore.h (objfile_find_memory_regions): Declare.
5720 * gcore.c (objfile_find_memory_regions): No longer static. Add
5722 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5723 * exec.c: Include gcore.h.
5724 (exec_set_find_memory_regions): Remove.
5725 (exec_find_memory_regions): Remove.
5726 (exec_do_find_memory_regions): Remove.
5727 (init_exec_ops): Update.
5728 * defs.h (exec_set_find_memory_regions): Remove.
5730 2014-02-19 Tom Tromey <tromey@redhat.com>
5732 * target-delegates.c: Rebuild.
5733 * target.h (struct target_ops) <to_extra_thread_info,
5734 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5735 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5736 not 0, in TARGET_DEFAULT_RETURN.
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target.c (complete_target_initialization): Remove casts. Use
5741 return_zero_has_execution.
5742 (return_zero): Add "ignore" argument.
5743 (return_zero_has_execution): New function.
5744 (init_dummy_target): Remove casts. Use
5745 return_zero_has_execution.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target.c (update_current_target): Update comments. Do not
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5756 * corelow.c (core_read_description): Delegate when needed.
5757 * remote.c (remote_read_description): Delegate when needed.
5758 * target-delegates.c: Rebuild.
5759 * target.c (target_read_description): Rewrite.
5760 * target.h (struct target_ops) <to_read_description>: Update
5761 comment. Use TARGET_DEFAULT_RETURN.
5763 2014-02-19 Tom Tromey <tromey@redhat.com>
5765 * target-delegates.c: Rebuild.
5766 * target.c (update_current_target): Don't inherit or default
5768 (find_default_run_target): Check against delegate_can_run.
5769 * target.h (struct target_ops) <to_can_run>: Use
5770 TARGET_DEFAULT_RETURN.
5772 2014-02-19 Tom Tromey <tromey@redhat.com>
5774 * target-delegates.c: Rebuild.
5775 * target.c (target_disconnect): Unconditionally delegate.
5776 * target.h (struct target_ops) <to_disconnect>: Use
5777 TARGET_DEFAULT_NORETURN.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * record.c (record_stop): Unconditionally delegate.
5782 * target-delegates.c: Rebuild.
5783 * target.c (target_stop_recording): Unconditionally delegate.
5784 * target.h (struct target_ops) <to_stop_recording>: Use
5785 TARGET_DEFAULT_IGNORE.
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * target-delegates.c: Rebuild.
5790 * target.c (target_enable_btrace): Unconditionally delegate.
5791 * target.h (struct target_ops) <to_enable_btrace>: Use
5792 TARGET_DEFAULT_NORETURN.
5794 2014-02-19 Tom Tromey <tromey@redhat.com>
5796 * target-delegates.c: Rebuild.
5797 * target.c (target_read_btrace): Unconditionally delegate.
5798 * target.h (struct target_ops) <to_read_btrace>: Use
5799 TARGET_DEFAULT_NORETURN.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target-delegates.c: Rebuild.
5804 * target.c (target_teardown_btrace): Unconditionally delegate.
5805 * target.h (struct target_ops) <to_teardown_btrace>: Use
5806 TARGET_DEFAULT_NORETURN.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target-delegates.c: Rebuild.
5811 * target.c (target_disable_btrace): Unconditionally delegate.
5812 * target.h (struct target_ops) <to_disable_btrace>: Use
5813 TARGET_DEFAULT_NORETURN.
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target-delegates.c: Rebuild.
5818 * target.c (default_search_memory): New function.
5819 (simple_search_memory): Update comment.
5820 (target_search_memory): Unconditionally delegate.
5821 * target.h (struct target_ops) <to_search_memory>: Use
5822 TARGET_DEFAULT_FUNC.
5824 2014-02-19 Tom Tromey <tromey@redhat.com>
5826 * auxv.c (default_auxv_parse): No longer static.
5827 (target_auxv_parse): Unconditionally delegate.
5828 * auxv.h (default_auxv_parse): Declare.
5829 * target-delegates.c: Rebuild.
5830 * target.c: Include auxv.h.
5831 * target.h (struct target_ops) <to_auxv_parse>: Use
5832 TARGET_DEFAULT_FUNC.
5834 2014-02-19 Tom Tromey <tromey@redhat.com>
5836 * target-delegates.c: Rebuild.
5837 * target.c (target_memory_map): Unconditionally delegate.
5838 * target.h (struct target_ops) <to_memory_map>: Use
5839 TARGET_DEFAULT_RETURN.
5841 2014-02-19 Tom Tromey <tromey@redhat.com>
5843 * target-delegates.c: Rebuild.
5844 * target.c (target_thread_alive): Unconditionally delegate.
5845 * target.h (struct target_ops) <to_thread_alive>: Use
5846 TARGET_DEFAULT_RETURN.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target-delegates.c: Rebuild.
5851 * target.c (target_save_record): Unconditionally delegate.
5852 * target.h (struct target_ops) <to_save_record>: Use
5853 TARGET_DEFAULT_NORETURN.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (target_delete_record): Unconditionally delegate.
5859 * target.h (struct target_ops) <to_delete_record>: Use
5860 TARGET_DEFAULT_NORETURN.
5862 2014-02-19 Tom Tromey <tromey@redhat.com>
5864 * target-delegates.c: Rebuild.
5865 * target.c (target_record_is_replaying): Unconditionally
5867 * target.h (struct target_ops) <to_record_is_replaying>: Use
5868 TARGET_DEFAULT_RETURN.
5870 2014-02-19 Tom Tromey <tromey@redhat.com>
5872 * target-delegates.c: Rebuild.
5873 * target.c (target_goto_record_begin): Unconditionally delegate.
5874 * target.h (struct target_ops) <to_goto_record_begin>: Use
5875 TARGET_DEFAULT_NORETURN.
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5879 * target-delegates.c: Rebuild.
5880 * target.c (target_goto_record_end): Unconditionally delegate.
5881 * target.h (struct target_ops) <to_goto_record_end>: Use
5882 TARGET_DEFAULT_NORETURN.
5884 2014-02-19 Tom Tromey <tromey@redhat.com>
5886 * target-delegates.c: Rebuild.
5887 * target.c (target_goto_record): Unconditionally delegate.
5888 * target.h (struct target_ops) <to_goto_record>: Use
5889 TARGET_DEFAULT_NORETURN.
5891 2014-02-19 Tom Tromey <tromey@redhat.com>
5893 * target-delegates.c: Rebuild.
5894 * target.c (target_insn_history): Unconditionally delegate.
5895 * target.h (struct target_ops) <to_insn_history>: Use
5896 TARGET_DEFAULT_NORETURN.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target-delegates.c: Rebuild.
5901 * target.c (target_insn_history_from): Unconditionally delegate.
5902 * target.h (struct target_ops) <to_insn_history_from>: Use
5903 TARGET_DEFAULT_NORETURN.
5905 2014-02-19 Tom Tromey <tromey@redhat.com>
5907 * target-delegates.c: Rebuild.
5908 * target.c (target_insn_history_range): Unconditionally delegate.
5909 * target.h (struct target_ops) <to_insn_history_range>: Use
5910 TARGET_DEFAULT_NORETURN.
5912 2014-02-19 Tom Tromey <tromey@redhat.com>
5914 * target-delegates.c: Rebuild.
5915 * target.c (target_call_history): Unconditionally delegate.
5916 * target.h (struct target_ops) <to_call_history>: Use
5917 TARGET_DEFAULT_NORETURN.
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target-delegates.c: Rebuild.
5922 * target.c (target_call_history_from): Unconditionally delegate.
5923 * target.h (struct target_ops) <to_call_history_from>: Use
5924 TARGET_DEFAULT_NORETURN.
5926 2014-02-19 Tom Tromey <tromey@redhat.com>
5928 * target-delegates.c: Rebuild.
5929 * target.c (target_call_history_range): Unconditionally delegate.
5930 * target.h (struct target_ops) <to_call_history_range>: Use
5931 TARGET_DEFAULT_NORETURN.
5933 2014-02-19 Tom Tromey <tromey@redhat.com>
5935 * target-delegates.c: Rebuild.
5936 * target.c (target_verify_memory): Unconditionally delegate.
5937 * target.h (struct target_ops) <to_verify_memory>: Use
5938 TARGET_DEFAULT_NORETURN.
5940 2014-02-19 Tom Tromey <tromey@redhat.com>
5942 * target-delegates.c: Rebuild.
5943 * target.c (target_core_of_thread): Unconditionally delegate.
5944 * target.h (struct target_ops) <to_core_of_thread>: Use
5945 TARGET_DEFAULT_RETURN.
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target-delegates.c: Rebuild.
5950 * target.c (target_flash_done): Unconditionally delegate.
5951 * target.h (struct target_ops) <to_flash_done>: Use
5952 TARGET_DEFAULT_NORETURN.
5954 2014-02-19 Tom Tromey <tromey@redhat.com>
5956 * target-delegates.c: Rebuild.
5957 * target.c (target_flash_erase): Unconditionally delegate.
5958 * target.h (struct target_ops) <to_flash_erase>: Use
5959 TARGET_DEFAULT_NORETURN.
5961 2014-02-19 Tom Tromey <tromey@redhat.com>
5963 * target-delegates.c: Rebuild.
5964 * target.c (target_get_section_table): Unconditionally delegate.
5965 * target.h (struct target_ops) <to_get_section_table>: Use
5966 TARGET_DEFAULT_RETURN.
5968 2014-02-19 Tom Tromey <tromey@redhat.com>
5970 * target-delegates.c: Rebuild.
5971 * target.c (target_pid_to_str): Unconditionally delegate.
5972 (init_dummy_target): Don't initialize to_pid_to_str.
5973 (default_pid_to_str): Rename from dummy_pid_to_str.
5974 * target.h (struct target_ops) <to_pid_to_str>: Use
5975 TARGET_DEFAULT_FUNC.
5977 2014-02-19 Tom Tromey <tromey@redhat.com>
5979 * target-delegates.c: Rebuild.
5980 * target.c (target_find_new_threads): Unconditionally delegate.
5981 * target.h (struct target_ops) <to_find_new_threads>: Use
5982 TARGET_DEFAULT_RETURN.
5984 2014-02-19 Tom Tromey <tromey@redhat.com>
5986 * target-delegates.c: Rebuild.
5987 * target.c (target_program_signals): Unconditionally delegate.
5988 * target.h (struct target_ops) <to_program_signals>: Use
5989 TARGET_DEFAULT_IGNORE.
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target-delegates.c: Rebuild.
5994 * target.c (target_pass_signals): Unconditionally delegate.
5995 * target.h (struct target_ops) <to_pass_signals>: Use
5996 TARGET_DEFAULT_IGNORE.
5998 2014-02-19 Tom Tromey <tromey@redhat.com>
6000 * target-delegates.c: Rebuild.
6001 * target.c (default_mourn_inferior): New function.
6002 (target_mourn_inferior): Unconditionally delegate.
6003 * target.h (struct target_ops) <to_mourn_inferior>: Use
6004 TARGET_DEFAULT_FUNC.
6006 2014-02-19 Tom Tromey <tromey@redhat.com>
6008 * target-delegates.c: Rebuild.
6009 * target.c (default_follow_fork): New function.
6010 (target_follow_fork): Unconditionally delegate.
6011 * target.h (struct target_ops) <to_follow_fork>: Use
6012 TARGET_DEFAULT_FUNC.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target-delegates.c: Rebuild.
6017 * target.c (target_kill): Unconditionally delegate.
6018 * target.h (struct target_ops) <to_kill>: Use
6019 TARGET_DEFAULT_NORETURN.
6021 2014-02-19 Tom Tromey <tromey@redhat.com>
6023 * target-delegates.c: Rebuild.
6024 * target.c (target_masked_watch_num_registers): Unconditionally
6026 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6027 Use TARGET_DEFAULT_RETURN.
6029 2014-02-19 Tom Tromey <tromey@redhat.com>
6031 * target-delegates.c: Rebuild.
6032 * target.c (target_remove_mask_watchpoint): Unconditionally
6034 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6035 TARGET_DEFAULT_RETURN.
6037 2014-02-19 Tom Tromey <tromey@redhat.com>
6039 * target-delegates.c: Rebuild.
6040 * target.c (target_insert_mask_watchpoint): Unconditionally
6042 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6043 TARGET_DEFAULT_RETURN.
6045 2014-02-19 Tom Tromey <tromey@redhat.com>
6047 * target-delegates.c: Rebuild.
6048 * target.c (target_ranged_break_num_registers): Unconditionally
6050 * target.h (struct target_ops) <to_ranged_break_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_fetch_registers): Unconditionally delegate.
6057 * target.h (struct target_ops) <to_fetch_registers>: Use
6058 TARGET_DEFAULT_NORETURN.
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target-delegates.c: Rebuild.
6063 * target.c (update_current_target): Don't inherit or default
6065 * target.h (struct target_ops) <to_stop>: Use
6066 TARGET_DEFAULT_IGNORE.
6068 2014-02-19 Tom Tromey <tromey@redhat.com>
6070 * target-delegates.c: Rebuild.
6071 * target.c (update_current_target): Don't inherit or default
6072 to_can_run_breakpoint_commands.
6073 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6074 Use TARGET_DEFAULT_RETURN.
6076 2014-02-19 Tom Tromey <tromey@redhat.com>
6078 * target-delegates.c: Rebuild.
6079 * target.c (update_current_target): Don't inherit or default
6080 to_supports_evaluation_of_breakpoint_conditions.
6081 * target.h (struct target_ops)
6082 <to_supports_evaluation_of_breakpoint_conditions>: Use
6083 TARGET_DEFAULT_RETURN.
6085 2014-02-19 Tom Tromey <tromey@redhat.com>
6087 * target-delegates.c: Rebuild.
6088 * target.c (update_current_target): Don't inherit or default
6089 to_augmented_libraries_svr4_read.
6090 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6091 Use TARGET_DEFAULT_RETURN.
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6095 * target-delegates.c: Rebuild.
6096 * target.c (update_current_target): Don't inherit or default
6098 * target.h (struct target_ops) <to_can_use_agent>: Use
6099 TARGET_DEFAULT_RETURN.
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target-delegates.c: Rebuild.
6104 * target.c (update_current_target): Don't inherit or default
6106 * target.h (struct target_ops) <to_use_agent>: Use
6107 TARGET_DEFAULT_NORETURN.
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
6114 (return_null): Remove.
6115 * target.h (struct target_ops) <to_traceframe_info>: Use
6116 TARGET_DEFAULT_RETURN.
6118 2014-02-19 Tom Tromey <tromey@redhat.com>
6120 * target-delegates.c: Rebuild.
6121 * target.c (update_current_target): Don't inherit or default
6122 to_static_tracepoint_markers_by_strid.
6123 * target.h (struct target_ops)
6124 <to_static_tracepoint_markers_by_strid>: Use
6125 TARGET_DEFAULT_NORETURN.
6127 2014-02-19 Tom Tromey <tromey@redhat.com>
6129 * target-delegates.c: Rebuild.
6130 * target.c (update_current_target): Don't inherit or default
6131 to_static_tracepoint_marker_at.
6132 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6133 Use TARGET_DEFAULT_RETURN.
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6137 * target-delegates.c: Rebuild.
6138 * target.c (update_current_target): Don't inherit or default
6140 * target.h (struct target_ops) <to_set_permissions>: Use
6141 TARGET_DEFAULT_IGNORE.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target-delegates.c: Rebuild.
6146 * target.c (update_current_target): Don't inherit or default
6148 * target.h (struct target_ops) <to_get_tib_address>: 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
6156 * target.h (struct target_ops) <to_set_trace_notes>: Use
6157 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 initialize
6163 to_set_trace_buffer_size.
6164 * target.h (struct target_ops) <to_set_trace_buffer_size>: 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
6171 to_set_circular_trace_buffer.
6172 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6173 TARGET_DEFAULT_IGNORE.
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
6179 to_set_disconnected_tracing.
6180 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6181 TARGET_DEFAULT_IGNORE.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target-delegates.c: Rebuild.
6186 * target.c (update_current_target): Don't inherit or default
6187 to_get_min_fast_tracepoint_insn_len.
6188 (return_minus_one): Remove.
6189 * target.h (struct target_ops)
6190 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6192 2014-02-19 Tom Tromey <tromey@redhat.com>
6194 * target-delegates.c: Rebuild.
6195 * target.c (update_current_target): Don't inherit or default
6196 to_get_raw_trace_data.
6197 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6198 TARGET_DEFAULT_NORETURN.
6200 2014-02-19 Tom Tromey <tromey@redhat.com>
6202 * target-delegates.c: Rebuild.
6203 * target.c (update_current_target): Don't inherit or default
6204 to_upload_trace_state_variables.
6205 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6206 Use TARGET_DEFAULT_RETURN.
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target-delegates.c: Rebuild.
6211 * target.c (update_current_target): Don't inherit or default
6212 to_upload_tracepoints.
6213 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6214 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
6221 * target.h (struct target_ops) <to_save_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_get_trace_state_variable_value.
6229 * target.h (struct target_ops)
6230 <to_get_trace_state_variable_value>: 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
6237 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target-delegates.c: Rebuild.
6242 * target.c (update_current_target): Don't inherit or default
6244 * target.h (struct target_ops) <to_trace_stop>: Use
6245 TARGET_DEFAULT_NORETURN.
6247 2014-02-19 Tom Tromey <tromey@redhat.com>
6249 * target-delegates.c: Rebuild.
6250 * target.c (update_current_target): Don't inherit or default
6251 to_get_tracepoint_status.
6252 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6253 TARGET_DEFAULT_NORETURN.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target-delegates.c: Rebuild.
6258 * target.c (update_current_target): Don't inherit or default
6259 to_get_trace_status.
6260 * target.h (struct target_ops) <to_get_trace_status>: Use
6261 TARGET_DEFAULT_RETURN.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target-delegates.c: Rebuild.
6266 * target.c (update_current_target): Don't inherit or default
6268 * target.h (struct target_ops) <to_trace_start>: 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_trace_set_readonly_regions.
6276 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6277 Use 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_disable_tracepoint.
6284 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6285 TARGET_DEFAULT_NORETURN.
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
6291 to_enable_tracepoint.
6292 * target.h (struct target_ops) <to_enable_tracepoint>: 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_download_trace_state_variable.
6300 * target.h (struct target_ops) <to_download_trace_state_variable>:
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_can_download_tracepoint.
6308 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6309 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
6316 * target.h (struct target_ops) <to_download_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
6324 * target.h (struct target_ops) <to_trace_init>: Use
6325 TARGET_DEFAULT_RETURN.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target-delegates.c: Rebuild.
6330 * target.c (update_current_target): Don't inherit or default
6331 to_supports_string_tracing.
6332 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
6340 * target.h (struct target_ops)
6341 <to_supports_enable_disable_tracepoint>: Use
6342 TARGET_DEFAULT_RETURN.
6344 2014-02-19 Tom Tromey <tromey@redhat.com>
6346 * target-delegates.c: Rebuild.
6347 * target.c (update_current_target): Don't inherit or default
6348 to_supports_multi_process.
6349 * target.h (struct target_ops) <to_supports_multi_process>: Use
6350 TARGET_DEFAULT_RETURN.
6352 2014-02-19 Tom Tromey <tromey@redhat.com>
6354 * target-delegates.c: Rebuild.
6355 * target.c (update_current_target): Don't inherit or default
6356 to_get_ada_task_ptid.
6357 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6358 TARGET_DEFAULT_FUNC.
6360 2014-02-19 Tom Tromey <tromey@redhat.com>
6362 * target-delegates.c: Rebuild.
6363 * target.c (update_current_target): Don't inherit or default
6364 to_thread_architecture.
6365 * target.h (struct target_ops) <to_thread_architecture>: Use
6366 TARGET_DEFAULT_FUNC.
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_execution_direction.
6373 * target.h (struct target_ops) <to_execution_direction>: Use
6374 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
6381 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6382 TARGET_DEFAULT_RETURN.
6383 (target_can_execute_reverse): Unconditionally delegate.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target-delegates.c: Rebuild.
6388 * target.c (update_current_target): Don't inherit or default
6390 (dummy_goto_bookmark): Remove.
6391 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6392 * target.h (struct target_ops) <to_goto_bookmark>: Use
6393 TARGET_DEFAULT_NORETURN.
6395 2014-02-19 Tom Tromey <tromey@redhat.com>
6397 * target-delegates.c: Rebuild.
6398 * target.c (update_current_target): Don't inherit or default
6400 (dummy_get_bookmark): Remove.
6401 (init_dummy_target): Don't inherit or default to_get_bookmark.
6402 * target.h (struct target_ops) <to_get_bookmark>: Use
6403 TARGET_DEFAULT_NORETURN
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target-delegates.c: Rebuild.
6408 * target.c (update_current_target): Don't inherit or default
6409 to_make_corefile_notes.
6410 (init_dummy_target): Don't initialize to_make_corefile_notes.
6411 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6412 TARGET_DEFAULT_FUNC.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (update_current_target): Don't inherit or default
6418 to_find_memory_regions.
6419 (init_dummy_target): Don't initialize to_find_memory_regions.
6420 * target.h (struct target_ops) <to_find_memory_regions>: Use
6421 TARGET_DEFAULT_FUNC.
6423 2014-02-19 Tom Tromey <tromey@redhat.com>
6425 * target-delegates.c: Rebuild.
6426 * target.c (update_current_target): Don't inherit or default
6428 * target.h (struct target_ops) <to_log_command>: Use
6429 TARGET_DEFAULT_IGNORE.
6430 (target_log_command): Unconditionally delegate.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target-delegates.c: Rebuild.
6435 * target.c (update_current_target): Don't inherit or default
6436 to_pid_to_exec_file.
6437 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6438 TARGET_DEFAULT_RETURN.
6440 2014-02-19 Tom Tromey <tromey@redhat.com>
6442 * target-delegates.c: Rebuild.
6443 * target.c (update_current_target): Don't inherit or default
6445 (target_thread_name): Unconditionally delegate.
6446 * target.h (struct target_ops) <to_thread_name>: Use
6447 TARGET_DEFAULT_RETURN.
6449 2014-02-19 Tom Tromey <tromey@redhat.com>
6451 * target-delegates.c: Rebuild.
6452 * target.c (update_current_target): Don't inherit or default
6453 to_extra_thread_info.
6454 * target.h (struct target_ops) <to_extra_thread_info>: Use
6455 TARGET_DEFAULT_RETURN.
6457 2014-02-19 Tom Tromey <tromey@redhat.com>
6459 * target-delegates.c: Rebuild.
6460 * target.c (update_current_target): Don't inherit or default
6462 * target.h (struct target_ops) <to_has_exited>: Use
6463 TARGET_DEFAULT_RETURN..
6465 2014-02-19 Tom Tromey <tromey@redhat.com>
6467 * target-delegates.c: Rebuild.
6468 * target.c (update_current_target): Don't inherit or default
6469 to_set_syscall_catchpoint.
6470 (return_one): Remove.
6471 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6472 TARGET_DEFAULT_RETURN.
6474 2014-02-19 Tom Tromey <tromey@redhat.com>
6476 * target-delegates.c: Rebuild.
6477 * target.c (update_current_target): Don't inherit or default
6478 to_insert_exec_catchpoint.
6479 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6480 TARGET_DEFAULT_RETURN.
6482 2014-01-08 Tom Tromey <tromey@redhat.com>
6484 * target-delegates.c: Rebuild.
6485 * target.c (update_current_target): Don't inherit or default
6486 to_insert_exec_catchpoint.
6487 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6488 TARGET_DEFAULT_RETURN.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target-delegates.c: Rebuild.
6493 * target.c (update_current_target): Don't inherit or default
6494 to_remove_vfork_catchpoint.
6495 * target.h (struct target_ops) <to_remove_vfork_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_vfork_catchpoint.
6503 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6504 TARGET_DEFAULT_RETURN.
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6508 * target-delegates.c: Rebuild.
6509 * target.c (update_current_target): Don't inherit or default
6510 to_remove_fork_catchpoint.
6511 * target.h (struct target_ops) <to_remove_fork_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_insert_fork_catchpoint.
6519 * target.h (struct target_ops) <to_insert_fork_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_post_startup_inferior.
6527 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6528 TARGET_DEFAULT_IGNORE.
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * target-delegates.c: Rebuild.
6533 * target.c (update_current_target): Don't inherit or default
6535 * target.h (struct target_ops) <to_load>: Use
6536 TARGET_DEFAULT_NORETURN.
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
6543 * target.h (struct target_ops) <to_terminal_info>: Use
6544 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
6551 * target.h (struct target_ops) <to_terminal_save_ours>: 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_terminal_ours>: Use
6560 TARGET_DEFAULT_IGNORE.
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
6566 to_terminal_ours_for_output.
6567 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6568 TARGET_DEFAULT_IGNORE.
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_inferior.
6575 * target.h (struct target_ops) <to_terminal_inferior>: 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_init>: 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_can_accel_watchpoint_condition.
6591 * target.h (struct target_ops)
6592 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
6599 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6600 Use TARGET_DEFAULT_FUNC.
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
6606 to_watchpoint_addr_within_range.
6607 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6608 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
6615 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6616 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
6623 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6624 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
6631 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6632 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
6639 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6640 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
6647 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: 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
6655 * target.h (struct target_ops) <to_files_info>: Use
6656 TARGET_DEFAULT_IGNORE.
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
6663 * target.h (struct target_ops) <to_store>: Use
6664 TARGET_DEFAULT_NORETURN.
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
6671 * target.h (struct target_ops) <to_post_attach>: Use
6672 TARGET_DEFAULT_IGNORE.
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 (default_rcmd): New function.
6680 (do_monitor_command): Unconditionally delegate.
6681 * target.h (struct target_ops) <to_rmcd>: Use
6682 TARGET_DEFAULT_FUNC.
6684 2014-02-19 Tom Tromey <tromey@redhat.com>
6686 * target-delegates.c: Rebuild.
6687 * target.c (init_dummy_target): Don't initialize to_attach.
6688 (target_attach): Unconditionally delegate.
6689 * target.h (struct target_ops) <to_attach>: Use
6690 TARGET_DEFAULT_FUNC.
6692 2014-02-19 Tom Tromey <tromey@redhat.com>
6694 * target-delegates.c: Rebuild.
6695 * target.c (target_detach): Unconditionally delegate.
6696 (init_dummy_target): Don't initialize to_detach.
6697 * target.h (struct target_ops) <to_detach>: Use
6698 TARGET_DEFAULT_IGNORE.
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6702 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6704 (target_augmented_libraries_svr4_read): Add argument.
6705 * target.c (update_current_target): Update.
6706 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6709 2014-02-19 Tom Tromey <tromey@redhat.com>
6711 * target.h (struct target_ops) <to_call_history_range>: Add
6713 * target.c (target_call_history_range): Add argument.
6714 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6716 (record_btrace_call_history_from): Update.
6718 2014-02-19 Tom Tromey <tromey@redhat.com>
6720 * target.h (struct target_ops) <to_call_history_from>: Add
6722 * target.c (target_call_history_from): Add argument.
6723 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6726 2014-02-19 Tom Tromey <tromey@redhat.com>
6728 * target.h (struct target_ops) <to_call_history>: Add argument.
6729 * target.c (target_call_history): Add argument.
6730 * record-btrace.c (record_btrace_call_history): Add 'self'
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6735 * target.h (struct target_ops) <to_insn_history_range>: Add
6737 * target.c (target_insn_history_range): Add argument.
6738 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6740 (record_btrace_insn_history_from): Update.
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6744 * target.h (struct target_ops) <to_insn_history_from>: Add
6746 * target.c (target_insn_history_from): Add argument.
6747 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6750 2014-02-19 Tom Tromey <tromey@redhat.com>
6752 * target.h (struct target_ops) <to_insn_history>: Add argument.
6753 * target.c (target_insn_history): Add argument.
6754 * record-btrace.c (record_btrace_insn_history): Add 'self'
6757 2014-02-19 Tom Tromey <tromey@redhat.com>
6759 * target.h (struct target_ops) <to_goto_record>: Add argument.
6760 * target.c (target_goto_record): Add argument.
6761 * record-full.c (record_full_goto): Add 'self' argument.
6762 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6764 2014-02-19 Tom Tromey <tromey@redhat.com>
6766 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6767 * target.c (target_goto_record_end): Add argument.
6768 * record-full.c (record_full_goto_end): Add 'self' argument.
6769 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6771 2014-02-19 Tom Tromey <tromey@redhat.com>
6773 * target.h (struct target_ops) <to_goto_record_begin>: Add
6775 * target.c (target_goto_record_begin): Add argument.
6776 * record-full.c (record_full_goto_begin): Add 'self' argument.
6777 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6780 2014-02-19 Tom Tromey <tromey@redhat.com>
6782 * target.h (struct target_ops) <to_record_is_replaying>: Add
6784 * target.c (target_record_is_replaying): Add argument.
6785 * record-full.c (record_full_is_replaying): Add 'self' argument.
6786 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6788 (record_btrace_xfer_partial, record_btrace_store_registers)
6789 (record_btrace_prepare_to_store, record_btrace_resume)
6790 (record_btrace_wait, record_btrace_decr_pc_after_break)
6791 (record_btrace_find_new_threads, record_btrace_thread_alive):
6794 2014-02-19 Tom Tromey <tromey@redhat.com>
6796 * target.h (struct target_ops) <to_delete_record>: Add argument.
6797 * target.c (target_delete_record): Add argument.
6798 * record-full.c (record_full_delete): Add 'self' argument.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6802 * target.h (struct target_ops) <to_save_record>: Add argument.
6803 * target.c (target_save_record): Add argument.
6804 * record-full.c (record_full_save): Add 'self' argument.
6805 (record_full_save): Add 'self' argument.
6807 2014-02-19 Tom Tromey <tromey@redhat.com>
6809 * target.h (struct target_ops) <to_info_record>: Add argument.
6810 * target.c (target_info_record): Add argument.
6811 * record.c (info_record_command): Add argument.
6812 * record-full.c (record_full_info): Add 'self' argument.
6813 * record-btrace.c (record_btrace_info): Add 'self' argument.
6815 2014-02-19 Tom Tromey <tromey@redhat.com>
6817 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6818 * target.c (target_stop_recording): Add argument.
6819 * record.c (record_stop): Add argument.
6820 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6826 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6827 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6829 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6830 (_initialize_amd64_linux_nat): Use it.
6831 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6832 (_initialize_i386_linux_nat): Use it.
6834 2014-02-19 Tom Tromey <tromey@redhat.com>
6836 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6837 * target.c (target_teardown_btrace): Add argument.
6838 * remote.c (remote_teardown_btrace): Add 'self' argument.
6839 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6841 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6844 2014-02-19 Tom Tromey <tromey@redhat.com>
6846 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6847 * target.c (target_disable_btrace): Add argument.
6848 * remote.c (remote_disable_btrace): Add 'self' argument.
6849 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6851 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6854 2014-02-19 Tom Tromey <tromey@redhat.com>
6856 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6857 * target.c (target_enable_btrace): Add argument.
6858 * remote.c (remote_enable_btrace): Add 'self' argument.
6859 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6861 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6864 2014-02-19 Tom Tromey <tromey@redhat.com>
6866 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6867 (target_can_use_agent): Add argument.
6868 * target.c (update_current_target): Update.
6869 * remote.c (remote_can_use_agent): Add 'self' argument.
6870 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6872 2014-02-19 Tom Tromey <tromey@redhat.com>
6874 * target.h (struct target_ops) <to_use_agent>: Add argument.
6875 (target_use_agent): Add argument.
6876 * target.c (update_current_target): Update.
6877 * remote.c (remote_use_agent): Add 'self' argument.
6878 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6883 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6884 (target_traceframe_info): Add argument.
6885 * target.c (update_current_target): Update.
6886 * remote.c (remote_traceframe_info): Add 'self' argument.
6887 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target.h (target_static_tracepoint_markers_by_strid): Add
6893 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6895 * target.c (update_current_target): Update.
6896 * remote.c (struct target_ops)
6897 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6898 * linux-nat.c (struct target_ops)
6899 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6901 2014-02-19 Tom Tromey <tromey@redhat.com>
6903 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6905 (target_static_tracepoint_marker_at): Add argument.
6906 * target.c (update_current_target): Update.
6907 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6910 2014-02-19 Tom Tromey <tromey@redhat.com>
6912 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6913 (target_set_permissions): Add argument.
6914 * target.c (update_current_target): Update.
6915 * remote.c (remote_set_permissions): Add 'self' argument.
6916 (remote_start_remote): Update.
6918 2014-02-19 Tom Tromey <tromey@redhat.com>
6920 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6921 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6922 (target_get_tib_address): Add argument.
6923 * target.c (update_current_target): Update.
6924 * remote.c (remote_get_tib_address): Add 'self' argument.
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6929 (target_set_trace_notes): Add argument.
6930 * target.c (update_current_target): Update.
6931 * remote.c (remote_set_trace_notes): Add 'self' argument.
6933 2014-02-19 Tom Tromey <tromey@redhat.com>
6935 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6937 (target_set_trace_buffer_size): Add argument.
6938 * target.c (update_current_target): Update.
6939 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6941 2014-02-19 Tom Tromey <tromey@redhat.com>
6943 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6945 (target_set_circular_trace_buffer): Add argument.
6946 * target.c (update_current_target): Update.
6947 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6950 2014-02-19 Tom Tromey <tromey@redhat.com>
6952 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6954 (target_set_disconnected_tracing): Add argument.
6955 * target.c (update_current_target): Update.
6956 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6958 2014-02-19 Tom Tromey <tromey@redhat.com>
6960 * target.h (struct target_ops)
6961 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6962 (target_get_min_fast_tracepoint_insn_len): Add argument.
6963 * target.c (update_current_target): Update.
6964 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6967 2014-02-19 Tom Tromey <tromey@redhat.com>
6969 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6971 (target_get_raw_trace_data): Add argument.
6972 * target.c (update_current_target): Update.
6973 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6975 2014-02-19 Tom Tromey <tromey@redhat.com>
6977 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6979 (target_upload_trace_state_variables): Add argument.
6980 * target.c (update_current_target): Update.
6981 * remote.c (remote_upload_trace_state_variables): Add 'self'
6983 (remote_start_remote): Update.
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6989 (target_upload_tracepoints): Add argument.
6990 * target.c (update_current_target): Update.
6991 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6992 (remote_start_remote): Update.
6994 2014-02-19 Tom Tromey <tromey@redhat.com>
6996 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6997 (target_save_trace_data): Add argument.
6998 * target.c (update_current_target): Update.
6999 * remote.c (remote_save_trace_data): Add 'self' argument.
7001 2014-02-19 Tom Tromey <tromey@redhat.com>
7003 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7005 * target.h (struct target_ops)
7006 <to_get_trace_state_variable_value>: Add argument.
7007 (target_get_trace_state_variable_value): Add argument.
7008 * target.c (update_current_target): Update.
7009 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7011 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7013 2014-02-19 Tom Tromey <tromey@redhat.com>
7015 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7016 * target.h (struct target_ops) <to_trace_find>: Add argument.
7017 (target_trace_find): Add argument.
7018 * target.c (update_current_target): Update.
7019 * remote.c (remote_trace_find): Add 'self' argument.
7020 * ctf.c (ctf_trace_find): Add 'self' argument.
7022 2014-02-19 Tom Tromey <tromey@redhat.com>
7024 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7025 (target_trace_stop): Add argument.
7026 * target.c (update_current_target): Update.
7027 * remote.c (remote_trace_stop): Add 'self' argument.
7029 2014-02-19 Tom Tromey <tromey@redhat.com>
7031 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7032 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7034 (target_get_tracepoint_status): Add argument.
7035 * target.c (update_current_target): Update.
7036 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7038 2014-02-19 Tom Tromey <tromey@redhat.com>
7040 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7041 * target.h (struct target_ops) <to_get_trace_status>: Add
7043 (target_get_trace_status): Add argument.
7044 * target.c (update_current_target): Update.
7045 * remote.c (remote_get_trace_status): Add 'self' argument.
7046 (remote_start_remote, remote_can_download_tracepoint): Update.
7047 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7049 2014-02-19 Tom Tromey <tromey@redhat.com>
7051 * target.h (struct target_ops) <to_trace_start>: Add argument.
7052 (target_trace_start): Add argument.
7053 * target.c (update_current_target): Update.
7054 * remote.c (remote_trace_start): Add 'self' argument.
7056 2014-02-19 Tom Tromey <tromey@redhat.com>
7058 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7060 (target_trace_set_readonly_regions): Add argument.
7061 * target.c (update_current_target): Update.
7062 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7067 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7069 (target_disable_tracepoint): Add argument.
7070 * target.c (update_current_target): Update.
7071 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7073 2014-02-19 Tom Tromey <tromey@redhat.com>
7075 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7077 (target_enable_tracepoint): Add argument.
7078 * target.c (update_current_target): Update.
7079 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7081 2014-02-19 Tom Tromey <tromey@redhat.com>
7083 * target.h (struct target_ops) <to_download_trace_state_variable>:
7085 (target_download_trace_state_variable): Add argument.
7086 * target.c (update_current_target): Update.
7087 * remote.c (remote_download_trace_state_variable): Add 'self'
7090 2014-02-19 Tom Tromey <tromey@redhat.com>
7092 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7094 (target_can_download_tracepoint): Add argument.
7095 * target.c (update_current_target): Update.
7096 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target.h (struct target_ops) <to_download_tracepoint>: Add
7102 (target_download_tracepoint): Add argument.
7103 * target.c (update_current_target): Update.
7104 * remote.c (remote_download_tracepoint): Add 'self' argument.
7106 2014-02-19 Tom Tromey <tromey@redhat.com>
7108 * target.h (struct target_ops) <to_trace_init>: Add argument.
7109 (target_trace_init): Add argument.
7110 * target.c (update_current_target): Update.
7111 * remote.c (remote_trace_init): Add 'self' argument.
7113 2014-02-19 Tom Tromey <tromey@redhat.com>
7115 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7116 * target.c (target_fileio_readlink): Add argument.
7117 * remote.c (remote_hostio_readlink): Add 'self' argument.
7118 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7120 2014-02-19 Tom Tromey <tromey@redhat.com>
7122 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7123 * target.c (target_fileio_unlink): Add argument.
7124 * remote.c (remote_hostio_unlink): Add 'self' argument.
7125 (remote_file_delete): Update.
7126 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7128 2014-02-19 Tom Tromey <tromey@redhat.com>
7130 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7131 * target.c (target_fileio_close): Add argument.
7132 * remote.c (remote_hostio_close): Add 'self' argument.
7133 (remote_hostio_close_cleanup): Update.
7134 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7136 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7138 2014-02-19 Tom Tromey <tromey@redhat.com>
7140 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7141 * target.c (target_fileio_pread): Add argument.
7142 * remote.c (remote_hostio_pread): Add 'self' argument.
7143 (remote_bfd_iovec_pread, remote_file_get): Update.
7144 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7146 2014-02-19 Tom Tromey <tromey@redhat.com>
7148 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7149 * target.c (target_fileio_pwrite): Add argument.
7150 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7151 (remote_file_put): Update.
7152 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7154 2014-02-19 Tom Tromey <tromey@redhat.com>
7156 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7157 * target.c (target_fileio_open): Add argument.
7158 * remote.c (remote_hostio_open): Add 'self' argument.
7159 (remote_bfd_iovec_open): Add 'self' argument.
7160 (remote_file_put): Add 'self' argument.
7161 (remote_file_get): Add 'self' argument.
7162 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7168 (target_can_run_breakpoint_commands): Add argument.
7169 * target.c (update_current_target): Update.
7170 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7172 (remote_insert_breakpoint): Add 'self' argument.
7173 (remote_insert_hw_breakpoint): Add 'self' argument.
7174 (remote_can_run_breakpoint_commands): Add 'self' argument.
7176 2014-02-19 Tom Tromey <tromey@redhat.com>
7178 * target.h (struct target_ops)
7179 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7180 (target_supports_evaluation_of_breakpoint_conditions): Add
7182 * target.c (update_current_target): Update.
7183 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7185 (remote_insert_breakpoint): Add 'self' argument.
7186 (remote_insert_hw_breakpoint): Add 'self' argument.
7187 (remote_supports_cond_breakpoints): Add 'self' argument.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7193 (target_supports_string_tracing): Add argument.
7194 * target.c (update_current_target): Update.
7195 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7197 2014-02-19 Tom Tromey <tromey@redhat.com>
7199 * target.h (struct target_ops)
7200 <to_supports_disable_randomization>: Add argument.
7201 * target.c (find_default_supports_disable_randomization): Add
7203 (target_supports_disable_randomization): Add argument.
7204 (find_default_supports_disable_randomization): Add 'self'
7206 * remote.c (extended_remote_supports_disable_randomization): Add
7208 (remote_supports_disable_randomization): Add 'self' argument.
7209 (extended_remote_create_inferior): Update.
7210 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7213 2014-02-19 Tom Tromey <tromey@redhat.com>
7215 * target.h (struct target_ops)
7216 <to_supports_enable_disable_tracepoint>: Add argument.
7217 (target_supports_enable_disable_tracepoint): Add argument.
7218 * target.c (update_current_target): Update.
7219 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7222 2014-02-19 Tom Tromey <tromey@redhat.com>
7224 * target.h (struct target_ops) <to_supports_multi_process>: Add
7226 (target_supports_multi_process): Add argument.
7227 * target.c (update_current_target): Update.
7228 * remote.c (remote_supports_multi_process): Add 'self' argument.
7229 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7231 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target.h (struct target_ops) <to_execution_direction>: Add
7238 (target_execution_direction): Add argument.
7239 * target.c (default_execution_direction): Add 'self' argument.
7240 * record-full.c (record_full_execution_direction): Add 'self'
7243 2014-02-19 Tom Tromey <tromey@redhat.com>
7245 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7247 (target_can_execute_reverse): Add argument.
7248 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7249 * record-full.c (record_full_can_execute_reverse): Add 'self'
7251 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7256 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7257 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7259 (target_get_ada_task_ptid): Add argument.
7260 * target.c (update_current_target): Update.
7261 (default_get_ada_task_ptid): Add 'self' argument.
7262 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7263 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7264 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7266 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7268 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7270 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7272 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7273 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7276 2014-02-19 Tom Tromey <tromey@redhat.com>
7278 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7279 (target_goto_bookmark): Add argument.
7280 * target.c (dummy_goto_bookmark): Add 'self' argument.
7281 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7283 2014-02-19 Tom Tromey <tromey@redhat.com>
7285 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7286 (target_get_bookmark): Add argument.
7287 * target.c (dummy_get_bookmark): Add 'self' argument.
7288 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7290 2014-02-19 Tom Tromey <tromey@redhat.com>
7292 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7294 (target_make_corefile_notes): Add argument.
7295 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7296 * procfs.c (procfs_make_note_section): Add 'self' argument.
7297 (procfs_make_note_section): Add 'self' argument.
7298 (procfs_make_note_section): Add 'self' argument.
7299 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7301 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7302 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7303 * exec.c (exec_make_note_section): Add 'self' argument.
7304 (exec_make_note_section): Add 'self' argument.
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7308 * target.h (struct target_ops) <to_find_memory_regions>: Add
7310 (target_find_memory_regions): Add argument.
7311 * target.c (dummy_find_memory_regions): Add 'self' argument.
7312 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7313 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7314 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7315 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7316 * exec. (exec_do_find_memory_regions): New global.
7317 (exec_set_find_memory_regions): Rewrite.
7318 (exec_find_memory_regions): New function.
7319 (init_exec_ops): Use exec_find_memory_regions.
7321 2014-02-19 Tom Tromey <tromey@redhat.com>
7323 * target.h (struct target_ops) <to_supports_non_stop>: Add
7325 * target.c (find_default_supports_non_stop): Add argument.
7326 (target_supports_non_stop): Add argument.
7327 (find_default_supports_non_stop): Add 'self' argument.
7328 * remote.c (remote_supports_non_stop): Add 'self' argument.
7329 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7331 2014-02-19 Tom Tromey <tromey@redhat.com>
7333 * target.h (struct target_ops) <to_log_command>: Add argument.
7334 (target_log_command): Add argument.
7335 * serial.h (serial_log_command): Add 'self' argument.
7336 * serial.c (serial_log_command): Add 'self' argument.
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7340 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7341 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7343 (target_pid_to_exec_file): Add argument.
7344 * target.c (debug_to_pid_to_exec_file): Add argument.
7345 (update_current_target): Update.
7346 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7347 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7348 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7349 (linux_handle_extended_wait): Update.
7350 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7351 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7352 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7353 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target.h (struct target_ops) <to_rcmd>: Add argument.
7358 (target_rcmd): Add argument.
7359 * target.c (debug_to_rcmd): Add argument.
7360 (update_current_target, do_monitor_command): Update.
7361 * remote.c (remote_rcmd): Add 'self' argument.
7362 * monitor.c (monitor_rcmd): Add 'self' argument.
7364 2014-02-19 Tom Tromey <tromey@redhat.com>
7366 * windows-nat.c (windows_stop): Add 'self' argument.
7367 * target.h (struct target_ops) <to_stop>: Add argument.
7368 * target.c (target_stop): Add argument.
7369 (debug_to_stop): Add argument.
7370 (update_current_target): Update.
7371 * remote.c (remote_stop): Add 'self' argument.
7372 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7373 (gdbsim_cntrl_c): Update.
7374 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7375 * procfs.c (procfs_stop): Add 'self' argument.
7376 * nto-procfs.c (procfs_stop): Add 'self' argument.
7377 * monitor.c (monitor_stop): Add 'self' argument.
7378 (monitor_open): Update.
7379 * linux-nat.c (linux_nat_stop): Add argument.
7380 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7381 * gnu-nat.c (gnu_stop): Add 'self' argument.
7382 * darwin-nat.c (darwin_stop): Add 'self' argument.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_thread_name>: Add argument.
7387 * target.c (target_thread_name): Add argument.
7388 (update_current_target): Update.
7389 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target.h (struct target_ops) <to_extra_thread_info>: Add
7395 (target_extra_thread_info): Add argument.
7396 * target.c (update_current_target): Update.
7397 * remote.c (remote_threads_extra_info): Add 'self' argument.
7398 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7400 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7401 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7402 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7404 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7406 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7408 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7411 2014-02-19 Tom Tromey <tromey@redhat.com>
7413 * target.h (struct target_ops) <to_program_signals>: Add argument.
7414 * target.c (target_program_signals): Add argument.
7415 * remote.c (remote_program_signals): Add 'self' argument.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7420 * target.c (target_pass_signals): Add argument.
7421 * remote.c (remote_pass_signals): Add 'self' argument.
7422 (remote_start_remote): Update.
7423 * procfs.c (procfs_pass_signals): Add 'self' argument.
7424 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7425 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7426 (linux_nat_create_inferior, linux_nat_attach): Update.
7428 2014-02-19 Tom Tromey <tromey@redhat.com>
7430 * windows-nat.c (windows_can_run): Add 'self' argument.
7431 * target.h (struct target_ops) <to_can_run>: Add argument.
7432 (target_can_run): Add argument.
7433 * target.c (debug_to_can_run): Add argument.
7434 (update_current_target): Update.
7435 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7436 * inf-child.c (inf_child_can_run): Add 'self' argument.
7437 * go32-nat.c (go32_can_run): Add 'self' argument.
7439 2014-02-19 Tom Tromey <tromey@redhat.com>
7441 * target.h (struct target_ops) <to_has_exited>: Add argument.
7442 (target_has_exited): Add argument.
7443 * target.c (debug_to_has_exited): Add argument.
7444 (update_current_target): Update.
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7448 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7450 (target_set_syscall_catchpoint): Add argument.
7451 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7453 * target.c (update_current_target): Update.
7455 2014-02-19 Tom Tromey <tromey@redhat.com>
7457 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7459 (target_remove_exec_catchpoint): Add argument.
7460 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7461 (update_current_target): Update.
7462 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7465 2014-02-19 Tom Tromey <tromey@redhat.com>
7467 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7469 (target_insert_exec_catchpoint): Add argument.
7470 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7471 (update_current_target): Update.
7472 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7475 2014-02-19 Tom Tromey <tromey@redhat.com>
7477 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7479 (target_remove_vfork_catchpoint): Add argument.
7480 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7481 (update_current_target): Update.
7482 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7485 2014-02-19 Tom Tromey <tromey@redhat.com>
7487 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7489 (target_insert_vfork_catchpoint): Add argument.
7490 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7491 (update_current_target): Update.
7492 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7495 2014-02-19 Tom Tromey <tromey@redhat.com>
7497 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7499 (target_remove_fork_catchpoint): Add argument.
7500 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7501 (update_current_target): Update.
7502 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7505 2014-02-19 Tom Tromey <tromey@redhat.com>
7507 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7509 (target_insert_fork_catchpoint): Add argument.
7510 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7511 (update_current_target): Update.
7512 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7519 (target_post_startup_inferior): Add argument.
7520 * target.c (debug_to_post_startup_inferior): Add argument.
7521 (update_current_target): Update.
7522 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7524 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7526 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7528 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7530 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7532 (super_post_startup_inferior): Likewise.
7533 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7535 (super_post_startup_inferior): Likewise.
7536 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7537 Add 'self' argument.
7538 (super_post_startup_inferior): Likewise.
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7542 * target.h (struct target_ops) <to_load>: Add argument.
7543 * target.c (target_load): Add argument.
7544 (debug_to_load): Add argument.
7545 (update_current_target): Update.
7546 * remote.c (remote_load): Add 'self' argument.
7547 * remote-sim.c (gdbsim_load): Add 'self' argument.
7548 * remote-mips.c (mips_load): Add 'self' argument.
7549 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7550 * monitor.c (monitor_load): Add 'self' argument.
7551 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7556 (target_terminal_info): Add argument.
7557 * target.c (debug_to_terminal_info): Add argument.
7558 (default_terminal_info): Likewise.
7559 * inflow.c (child_terminal_info): Add 'self' argument.
7560 * inferior.h (child_terminal_info): Add 'self' argument.
7561 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7567 (target_terminal_save_ours): Add argument.
7568 * target.c (debug_to_terminal_save_ours): Add argument.
7569 (update_current_target): Update.
7570 * inflow.c (terminal_save_ours): Add 'self' argument.
7571 * inferior.h (terminal_save_ours): Add 'self' argument.
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7576 (target_terminal_ours): Add argument.
7577 * target.c (debug_to_terminal_ours): Add argument.
7578 (update_current_target): Update.
7579 * remote.c (remote_terminal_ours): Add 'self' argument.
7580 (remote_close): Update.
7581 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7582 * inflow.c (terminal_ours): Add 'self' argument.
7583 * inferior.h (terminal_ours): Add 'self' argument.
7584 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7586 2014-02-19 Pedro Alves <palves@redhat.com>
7587 Tom Tromey <tromey@redhat.com>
7589 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7591 (target_terminal_ours_for_output): Add argument.
7592 * target.c (debug_to_terminal_ours_for_output): Add argument.
7593 (update_current_target): Update.
7594 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7595 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7596 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * target.h (struct target_ops) <to_terminal_inferior>: Add
7602 * target.c (target_terminal_inferior): Add argument.
7603 (update_current_target): Update.
7604 * remote.c (remote_terminal_inferior): Add 'self' argument.
7605 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7606 * inflow.c (terminal_inferior): Add 'self' argument.
7607 * inferior.h (terminal_inferior): Add 'self' argument.
7608 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7609 (go32_terminal_inferior): Add 'self' argument.
7611 2014-02-19 Tom Tromey <tromey@redhat.com>
7613 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7614 (target_terminal_init): Add argument.
7615 * target.c (debug_to_terminal_init): Add argument.
7616 (update_current_target): Update.
7617 * inflow.c (terminal_init_inferior): Add 'self' argument.
7618 * inferior.h (terminal_init_inferior): Add 'self' argument.
7619 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7620 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target.h (struct target_ops)
7625 <to_can_accel_watchpoint_condition>: Add argument.
7626 (target_can_accel_watchpoint_condition): Add argument.
7627 * target.c (debug_to_can_accel_watchpoint_condition): Add
7629 (update_current_target): Update.
7630 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7635 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7637 (target_region_ok_for_hw_watchpoint): Add argument.
7638 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7639 (default_region_ok_for_hw_watchpoint): Add argument.
7640 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7641 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7643 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7645 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7647 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7649 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7651 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7653 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7654 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7656 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7657 Add 'self' argument.
7659 2014-02-19 Tom Tromey <tromey@redhat.com>
7661 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7663 (target_insert_watchpoint): Add argument.
7664 * target.c (debug_to_insert_watchpoint): Add argument.
7665 (update_current_target): Update.
7666 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7667 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7668 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7669 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7670 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7671 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7673 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7674 (procfs_insert_hw_watchpoint): Add 'self' argument.
7675 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7677 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7679 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7681 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7682 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7684 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7687 2014-02-19 Tom Tromey <tromey@redhat.com>
7689 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7691 (target_remove_watchpoint): Add argument.
7692 * target.c (debug_to_remove_watchpoint): Add argument.
7693 (update_current_target): Update.
7694 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7695 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7696 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7697 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7698 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7699 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7701 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7702 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7704 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7706 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7708 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7709 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7711 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7716 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7718 (target_remove_hw_breakpoint): Add argument.
7719 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7720 (update_current_target): Update.
7721 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7722 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7724 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7725 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7727 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7734 (target_insert_hw_breakpoint): Add argument.
7735 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7736 (update_current_target): Update.
7737 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7738 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7740 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7741 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7742 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7744 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7751 (target_can_use_hardware_watchpoint): Add argument.
7752 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7753 (update_current_target): Update.
7754 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7756 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7758 * remote.c (remote_check_watch_resources): Add 'self' argument.
7759 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7760 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7762 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7763 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7765 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7767 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7769 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7771 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7773 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7775 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7776 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7778 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7781 2014-02-19 Tom Tromey <tromey@redhat.com>
7783 * target.h (struct target_ops) <to_post_attach>: Add argument.
7784 (target_post_attach): Add argument.
7785 * target.c (debug_to_post_attach): Add argument.
7786 (update_current_target): Update.
7787 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7788 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7789 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7790 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7791 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * windows-nat.c (windows_close): Add 'self' argument.
7796 * tracepoint.c (tfile_close): Add 'self' argument.
7797 * target.h (struct target_ops) <to_close>: Add argument.
7798 * target.c (target_close): Add argument.
7799 (update_current_target): Update.
7800 * remote.c (remote_close): Add 'self' argument.
7801 * remote-sim.c (gdbsim_close): Add 'self' argument.
7802 * remote-mips.c (mips_close): Add 'self' argument.
7803 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7804 * record-full.c (record_full_close): Add 'self' argument.
7805 * record-btrace.c (record_btrace_close): Add 'self' argument.
7806 * monitor.h (monitor_close): Add 'self' argument.
7807 * monitor.c (monitor_close): Add 'self' argument.
7808 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7809 * linux-nat.c (linux_nat_close): Add argument.
7810 * go32-nat.c (go32_close): Add 'self' argument.
7811 * exec.c (exec_close_1): Add 'self' argument.
7812 * ctf.c (ctf_close): Add 'self' argument.
7813 * corelow.c (core_close): Add 'self' argument.
7814 (core_close_cleanup): Update.
7815 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7816 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * remote.c (remote_load): New function.
7821 (init_remote_ops): Use it.
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7825 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7827 * common/linux-btrace.h (linux_supports_btrace): Update.
7828 * remote.c (remote_supports_btrace): Add "self" argument.
7829 * target-delegates.c: Rebuild.
7830 * target.c (target_supports_btrace): Remove.
7831 * target.h (struct target_ops) <to_supports_btrace>: Add
7832 target_ops argument.
7833 (target_supports_btrace): New define.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * record-full.c (record_full_beneath_to_resume_ops)
7838 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7839 (record_full_beneath_to_wait)
7840 (record_full_beneath_to_store_registers_ops)
7841 (record_full_beneath_to_store_registers)
7842 (record_full_beneath_to_xfer_partial_ops)
7843 (record_full_beneath_to_xfer_partial)
7844 (record_full_beneath_to_insert_breakpoint_ops)
7845 (record_full_beneath_to_insert_breakpoint)
7846 (record_full_beneath_to_remove_breakpoint_ops)
7847 (record_full_beneath_to_remove_breakpoint)
7848 (record_full_beneath_to_stopped_by_watchpoint)
7849 (record_full_beneath_to_stopped_data_address)
7850 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7851 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7852 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7853 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7854 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7855 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7856 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7857 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7858 (record_full_resume, record_full_wait_1)
7859 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7860 (record_full_store_registers, record_full_xfer_partial)
7861 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7862 (record_full_async, record_full_core_xfer_partial): Use target
7864 * target-delegates.c: Rebuild.
7865 * target.c (current_xfer_partial): Remove.
7866 (update_current_target): Do not INHERIT or de_fault
7867 to_insert_breakpoint, to_remove_breakpoint,
7868 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7869 to_is_async_p, to_async. Do not set to_xfer_partial field.
7870 (default_xfer_partial): Simplify.
7871 (current_xfer_partial): Remove.
7872 (target_wait, target_resume): Simplify.
7873 (find_default_can_async_p, find_default_is_async_p): Update.
7874 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7875 to_xfer_partial, to_stopped_by_watchpoint,
7876 to_stopped_data_address.
7877 (target_store_registers): Simplify.
7878 (forward_target_remove_breakpoint)
7879 (forward_target_insert_breakpoint): Remove.
7880 (target_remove_breakpoint, target_insert_breakpoint)
7881 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7882 * target.h (struct target_ops) <to_resume, to_wait,
7883 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7884 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7885 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7887 (forward_target_remove_breakpoint)
7888 (forward_target_insert_breakpoint): Remove.
7889 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7891 (record_btrace_insert_breakpoint): Delegate directly.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: New file.
7897 * target.c: Include target-delegates.c.
7898 (init_dummy_target): Call install_dummy_methods.
7899 (complete_target_initialization): Call install_delegators.
7900 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7901 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7902 * make-target-delegates: New file.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * record.c (find_record_target): Use find_target_at.
7907 * target.c (find_target_at): New function.
7908 * target.h (find_target_at): Declare.
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7914 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7916 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7917 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7919 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7921 * linux-nat.c (save_sigtrap): Update.
7922 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7923 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7924 (linux_nat_close): Update.
7925 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7927 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7929 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7930 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7931 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7932 (tmp_to_async): Add 'ops' argument.
7933 (record_full_stopped_by_watchpoint, record_full_async)
7934 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7936 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7937 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7938 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7939 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7940 (remote_is_async_p, remote_async): Add 'ops' argument.
7941 (remote_stopped_data_address): Update.
7942 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7943 * target.c (update_current_target)
7944 (find_default_can_async_p, find_default_is_async_p): Update.
7945 (init_dummy_target): Update.
7946 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7947 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7948 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7949 (target_can_async_p, target_is_async_p, target_async)
7950 (target_stopped_by_watchpoint): Update.
7952 2014-02-19 Yao Qi <yao@codesourcery.com>
7955 * gdbarch.sh: Remove startup_gdbarch.
7956 * gdbarch.c: Regenerated.
7957 * gdbarch.h: Likewise.
7959 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7961 * rl78-tdep.c (rl78_g10_register_name): New function.
7962 (rl78_return_value): Add g10 support.
7963 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7966 2014-02-17 Doug Evans <xdje42@gmail.com>
7968 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7969 (SUBDIR_GUILE_SRCS): Ditto.
7970 (scm-gsmob.o): Ditto.
7972 2014-02-17 Yao Qi <yao@codesourcery.com>
7974 * gnu-nat.c (ILL_RPC): Declare defined function.
7976 2014-02-17 Yao Qi <yao@codesourcery.com>
7978 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7979 mach_msg_type_number_t.
7980 (gnu_write_inferior): Likewise.
7982 2014-02-17 Yao Qi <yao@codesourcery.com>
7984 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7986 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7987 (inf_validate_procs, inf_signal): Likewise.
7988 (S_exception_raise_request): Likewise.
7989 (do_mach_notify_dead_name): Likewise.
7990 (steal_exc_port): Likewise.
7991 (gnu_read_inferior): Change 'copy_count''s type to
7992 mach_msg_type_number_t.
7993 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7996 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7998 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7999 flag. Adjust all users; in particular...
8000 (gnu_wait): ..., don't decrement its value in here...
8001 (gnu_create_inferior): ..., and instead set the flag in here,
8002 around the startup_inferior call, and call that one with
8003 START_INFERIOR_TRAPS_EXPECTED.
8005 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8006 (ILL_RPC): ... new macro.
8007 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8008 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8009 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8010 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8011 functions with ILL_RPC macro.
8012 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8013 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8014 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8015 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8016 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8017 (S_proc_getlogin_reply, S_proc_getsid_reply)
8018 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8019 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8020 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8021 (S_proc_getnports_reply, S_proc_is_important_reply)
8022 (S_proc_get_code_reply): New stub functions, generated with
8025 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8026 collected the type check structures.
8028 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8030 2014-02-14 Doug Evans <dje@google.com>
8032 * target.c (target_write_partial): Fix result type.
8034 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8036 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8037 the proper offsets to access fpregset_t.
8039 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8041 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8042 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8043 * h8300-tdep.c (setmachinelist): Remove global.
8044 * hppa-tdep.c (hppa_sigtramp): Remove global.
8045 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8046 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8047 * ravenscar-thread.c (update_target_observer): Remove global.
8048 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8050 2014-02-12 Tom Tromey <tromey@redhat.com>
8052 * common/rsp-low.c: Update comments.
8053 * common/rsp-low.h: Update comments.
8055 2014-02-12 Tom Tromey <tromey@redhat.com>
8057 * common/rsp-low.c (convert_ascii_to_int): Remove.
8058 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8060 2014-02-12 Tom Tromey <tromey@redhat.com>
8062 * common/rsp-low.h (unhexify): Don't declare.
8063 * common/rsp-low.c (unhexify): Remove.
8065 2014-02-12 Tom Tromey <tromey@redhat.com>
8067 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8068 * common/rsp-low.c (convert_int_to_ascii): Remove.
8070 2014-02-12 Tom Tromey <tromey@redhat.com>
8072 * common/rsp-low.h (hexify): Don't declare.
8073 * common/rsp-low.c (hexify): Remove.
8075 2014-02-12 Tom Tromey <tromey@redhat.com>
8077 * common/rsp-low.c (hexify): Never take strlen of argument.
8079 2014-02-12 Tom Tromey <tromey@redhat.com>
8081 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8082 * remote.c (extended_remote_run, remote_rcmd)
8083 (remote_download_trace_state_variable, remote_save_trace_data)
8084 (remote_set_trace_notes): Update.
8085 * tracepoint.c (encode_source_string, tfile_write_status)
8086 (tfile_write_uploaded_tsv): Update.
8088 2014-02-12 Tom Tromey <tromey@redhat.com>
8090 * tracepoint.c: Include rsp-low.h.
8091 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8092 * remote.c: Include rsp-low.h.
8093 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8094 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8095 (remote_unescape_input): Move to common/rsp-low.c.
8096 * common/rsp-low.h: New file.
8097 * common/rsp-low.c: New file.
8098 * Makefile.in (SFILES): Add common/rsp-low.c.
8099 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8100 (COMMON_OBS): Add rsp-low.o.
8101 (rsp-low.o): New target.
8103 2014-02-12 Tom Tromey <tromey@redhat.com>
8105 * utils.h: Include print-utils.h.
8106 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8107 (int_string, core_addr_to_string, core_addr_to_string_nz)
8108 (hex_string, hex_string_custom): Don't declare.
8109 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8110 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8111 (hex_string_custom, int_string, core_addr_to_string)
8112 (core_addr_to_string_nz, host_address_to_string): Move to
8113 common/print-utils.c.
8114 * common/print-utils.h: New file.
8115 * common/print-utils.c: New file
8116 * Makefile.in (SFILES): Add common/print-utils.c.
8117 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8118 (COMMON_OBS): Add print-utils.o.
8119 (print-utils.o): New target.
8121 2014-02-12 Tom Tromey <tromey@redhat.com>
8123 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8125 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8127 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8129 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8131 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8132 if a PT_IO ptrace request returns sucessfully but indicates that 0
8133 bytes were transferred.
8135 2014-02-12 Pedro Alves <palves@redhat.com>
8136 Kevin Buettner <kevinb@redhat.com>
8138 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8139 TYPE_INSTANCE_FLAG_CODE_SPACE.
8141 2014-02-12 Pedro Alves <palves@redhat.com>
8143 * h8300-tdep.c (pseudo_from_raw_register)
8144 (raw_from_pseudo_register): New functions.
8145 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8148 2014-02-12 Pedro Alves <palves@redhat.com>
8150 * h8300-tdep.c (h8300_register_sim_regno): New function.
8151 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8152 gdbarch_register_sim_regno hook.
8154 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8156 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8158 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8160 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8162 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8164 * obsd-tdep.h (obsd_init_abi): New prototype.
8165 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8166 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8167 (obsd_init_abi): New functions.
8168 * i386obsd-tdep.c: Include "obsd-tdep.h".
8169 (i386obsd_init_abi): Call obsd_init_abi.
8170 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8171 (amd64obsd_init_abi): Call obsd_init_abi.
8172 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8173 obsd-tdep.c to gdb_target_obs.
8175 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8177 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8178 double float arguments to 16-byte in the argument slots.
8180 2014-02-11 Doug Evans <xdje42@gmail.com>
8182 * configure.ac: Don't crash if pkg-config is not found and guile
8183 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8185 * configure: Regenerate.
8187 2014-02-11 Yao Qi <yao@codesourcery.com>
8189 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8190 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8191 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8192 * gnu-nat.c (gnu_xfer_memory): Likewise.
8193 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8194 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8195 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8196 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8198 2014-02-11 Yao Qi <yao@codesourcery.com>
8200 * target.h (enum target_xfer_error): Rename to ...
8201 (enum target_xfer_status): ... it. New. All users updated.
8202 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8204 (TARGET_XFER_STATUS_ERROR_P): New macro.
8205 (target_xfer_error_to_string): Remove declaration.
8206 (target_xfer_status_to_string): Declare.
8207 (target_xfer_partial_ftype): Adjust it.
8208 (struct target_ops) <to_xfer_partial>: Return
8209 target_xfer_status. Add argument xfered_len. Update
8211 * target.c (target_xfer_error_to_string): Rename to ...
8212 (target_xfer_status_to_string): ... it. New. All callers
8214 (target_read_live_memory): Likewise. Call target_xfer_partial
8215 instead of target_read.
8216 (memory_xfer_live_readonly_partial): Return
8217 target_xfer_status. Add argument xfered_len.
8218 (raw_memory_xfer_partial): Likewise.
8219 (memory_xfer_partial_1): Likewise.
8220 (memory_xfer_partial): Likewise.
8221 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8222 properly. Update debug message.
8223 (default_xfer_partial, current_xfer_partial): Likewise.
8224 (target_write_partial): Likewise.
8225 (target_read_partial): Likewise. All callers updated.
8226 (read_whatever_is_readable): Likewise.
8227 (target_write_with_progress): Likewise.
8228 (target_read_alloc_1): Likewise.
8230 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8231 * auxv.c (procfs_xfer_auxv): Likewise.
8232 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8233 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8234 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8235 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8236 * corefile.c (read_memory): Adjust.
8237 * corelow.c (core_xfer_partial): Likewise.
8238 * ctf.c (ctf_xfer_partial): Likewise.
8239 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8241 (darwin_xfer_partial): Likewise.
8242 * exec.c (section_table_xfer_memory_partial): Likewise. All
8244 (exec_xfer_partial): Likewise.
8245 * exec.h (section_table_xfer_memory_partial): Update
8247 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8249 (gnu_xfer_partial): Likewise.
8250 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8251 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8252 (ia64_hpux_xfer_solib_got): Likewise.
8253 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8254 type of 'partial_len' to ULONGEST.
8255 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8256 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8257 (linux_nat_xfer_partial): Likewise.
8258 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8259 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8260 * monitor.c (monitor_xfer_memory): Likewise.
8261 (monitor_xfer_partial): Likewise.
8262 * procfs.c (procfs_xfer_partial): Likewise.
8263 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8264 * record-full.c (record_full_xfer_partial): Likewise.
8265 (record_full_core_xfer_partial): Likewise.
8266 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8267 (gdbsim_xfer_partial): Likewise.
8268 * remote.c (remote_write_bytes_aux): Likewise. All callers
8270 (remote_write_bytes, remote_read_bytes): Likewise. All
8272 (remote_flash_erase): Likewise. All callers updated.
8273 (remote_write_qxfer): Likewise. All callers updated.
8274 (remote_read_qxfer): Likewise. All callers updated.
8275 (remote_xfer_partial): Likewise.
8276 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8277 (rs6000_xfer_shared_libraries): Likewise.
8278 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8279 (sol_thread_xfer_partial): Likewise.
8280 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8281 (sparc_xfer_partial): Likewise.
8282 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8284 (spu_xfer_partial): Likewise.
8285 * spu-multiarch.c (spu_xfer_partial): Likewise.
8286 * tracepoint.c (tfile_xfer_partial): Likewise.
8287 * windows-nat.c (windows_xfer_memory): Likewise.
8288 (windows_xfer_shared_libraries): Likewise.
8289 (windows_xfer_partial): Likewise.
8290 * valprint.c: Replace 'target_xfer_error' with
8291 'target_xfer_status' in comments.
8293 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8295 Checked in by Joel Brobecker <brobecker@adacore.com>.
8296 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8298 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8300 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8301 function parameters.
8303 2014-02-10 Will Newton <will.newton@linaro.org>
8305 * elfread.c (elf_rel_plt_read): Look for a .got section if
8306 looking up .got.plt fails.
8307 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8308 on address passed to elf_gnu_ifunc_record_cache.
8309 (elf_gnu_ifunc_resolve_addr): Likewise.
8310 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8312 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8314 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8315 (X_RETTURN): New macro.
8316 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8318 * sparc64-tdep.c (sparc64_init_abi): Hook
8319 sparc_in_function_epilogue_p.
8321 2014-02-10 Gary Benson <gbenson@redhat.com>
8323 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8324 Rename name_matcher to symbol_matcher.
8326 2014-02-10 Gary Benson <gbenson@redhat.com>
8328 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8329 Use expand_symtabs_file_matcher_ftype and
8330 expand_symtabs_symbol_matcher_ftype.
8332 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8334 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8335 (struct ada_symbol_cache): New.
8336 (ada_free_symbol_cache): Forward declare.
8337 (struct ada_pspace_data): New.
8338 (ada_pspace_data_handle): New static global.
8339 (get_ada_pspace_data, ada_pspace_data_cleanup)
8340 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8341 (cache_space, cache): Delete, now folded inside struct
8343 (ada_get_symbol_cache): New function.
8344 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8346 (_initialize_ada_language): Remove initialization of cache_space.
8347 Move call to observer_attach_inferior_exit up, grouping it
8348 with the other observer registrations inside this function.
8349 Rename command to be more general. Add call to
8350 register_program_space_data_with_cleanup.
8352 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8354 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8355 ada_new_objfile_observer.
8356 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8357 (_initialize_tasks): Update uses of ada_new_objfile_observer
8358 and ada_tasks_normal_stop_observer.
8360 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8362 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8363 returned by the 'Length attribute to integer.
8365 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8367 * ada-lang.c (_initialize_ada_language): Initialize
8368 cache_space obstack.
8370 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8372 * ada-lang.c (HASH_SIZE): New macro.
8373 (struct cache_entry): New type.
8374 (cache_space, cache): New static globals.
8375 (ada_clear_symbol_cache, find_entry): New functions.
8376 (lookup_cached_symbol, cache_symbol): Implement.
8377 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8378 (_initialize_ada_language): Attach ada_new_objfile_observer
8379 and ada_free_objfile_observer.
8381 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8383 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8384 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8385 struct block * parameter.
8386 (ada_lookup_symbol_list_worker): Constify local variable "block".
8387 Remove cast which is no longer necessary.
8389 2014-02-10 Doug Evans <xdje42@gmail.com>
8391 Add Guile as an extension language.
8392 * NEWS: Mention Guile scripting.
8393 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8394 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8395 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8396 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8397 (CLIBS): Add GUILE_LIBS.
8398 (install-guile): New rule.
8399 (guile.o): New rule.
8400 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8401 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8402 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8403 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8404 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8405 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8406 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8407 * configure.ac: New option --with-guile.
8408 * configure: Regenerate.
8409 * config.in: Regenerate.
8410 * auto-load.c: Remove #include "python/python.h". Add #include
8411 "gdb/section-scripts.h".
8412 (source_section_scripts): Handle Guile scripts.
8413 (_initialize_auto_load): Add name of Guile objfile script to
8414 scripts-directory help text.
8415 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8416 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8417 (struct breakpoint): New member scm_bp_object.
8418 * defs.h (enum command_control_type): New value guile_control.
8419 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8421 (show_user): Update comment.
8422 (_initialize_cli_cmds): Update help text for "show user". Update help
8423 text for max-user-call-depth.
8424 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8426 (multi_line_command_p): Add guile_control.
8427 (print_command_lines): Handle guile_control.
8428 (execute_control_command, recurse_read_control_structure): Ditto.
8429 (process_next_line): Recognize "guile" commands.
8430 * disasm.c (gdb_disassemble_info): Make non-static.
8431 * disasm.h: #include "dis-asm.h".
8432 (struct gdbarch): Add forward decl.
8433 (gdb_disassemble_info): Declare.
8434 * extension.c: #include "guile/guile.h".
8435 (extension_languages): Add guile.
8436 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8437 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8438 * gdbtypes.c (get_unsigned_type_max): New function.
8439 (get_signed_type_minmax): New function.
8440 * gdbtypes.h (get_unsigned_type_max): Declare.
8441 (get_signed_type_minmax): Declare.
8442 * guile/README: New file.
8443 * guile/guile-internal.h: New file.
8444 * guile/guile.c: New file.
8445 * guile/guile.h: New file.
8446 * guile/scm-arch.c: New file.
8447 * guile/scm-auto-load.c: New file.
8448 * guile/scm-block.c: New file.
8449 * guile/scm-breakpoint.c: New file.
8450 * guile/scm-disasm.c: New file.
8451 * guile/scm-exception.c: New file.
8452 * guile/scm-frame.c: New file.
8453 * guile/scm-gsmob.c: New file.
8454 * guile/scm-iterator.c: New file.
8455 * guile/scm-lazy-string.c: New file.
8456 * guile/scm-math.c: New file.
8457 * guile/scm-objfile.c: New file.
8458 * guile/scm-ports.c: New file.
8459 * guile/scm-pretty-print.c: New file.
8460 * guile/scm-safe-call.c: New file.
8461 * guile/scm-string.c: New file.
8462 * guile/scm-symbol.c: New file.
8463 * guile/scm-symtab.c: New file.
8464 * guile/scm-type.c: New file.
8465 * guile/scm-utils.c: New file.
8466 * guile/scm-value.c: New file.
8467 * guile/lib/gdb.scm: New file.
8468 * guile/lib/gdb/boot.scm: New file.
8469 * guile/lib/gdb/experimental.scm: New file.
8470 * guile/lib/gdb/init.scm: New file.
8471 * guile/lib/gdb/iterator.scm: New file.
8472 * guile/lib/gdb/printing.scm: New file.
8473 * guile/lib/gdb/types.scm: New file.
8474 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8475 (VPATH): Add $(GUILE_SRCDIR).
8476 (GUILE_DIR): New variable.
8477 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8478 (all): Add stamp-guile dependency.
8479 (stamp-guile): New rule.
8480 (clean-guile, install-guile, uninstall-guile): New rules.
8481 (install-only): Add install-guile dependency.
8482 (uninstall): Add uninstall-guile dependency.
8483 (clean): Add clean-guile dependency.
8485 2014-02-09 Doug Evans <xdje42@gmail.com>
8487 Revert this patch (which I approved, mea culpa).
8489 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8491 * Makefile.in (all-lib): Remove.
8492 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8494 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8496 Fix Python stack corruption.
8497 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8500 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8502 * Makefile.in (all-lib): Remove.
8503 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8505 2014-02-07 Doug Evans <dje@google.com>
8507 * extension-priv.h (extension_language_script_ops): Add comment.
8508 (extension_language_ops): Add comment.
8509 (active_ext_lang_state): Fix typo in comment.
8511 2014-02-07 Pedro Alves <palves@redhat.com>
8513 PR breakpoints/16292
8514 * infrun.c (handle_signal_stop) <signal arrives while stepping
8515 over a breakpoint>: Switch back to the stepping thread.
8517 2014-02-07 Yao Qi <yao@codesourcery.com>
8519 * target.c (target_xfer_partial): Return zero if LEN is zero.
8521 2014-02-07 Yao Qi <yao@codesourcery.com>
8523 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8524 (ld_so_xfer_auxv): Likewise.
8525 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8526 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8527 * corelow.c (core_xfer_partial): Likewise.
8528 * ctf.c (ctf_xfer_partial): Likewise.
8529 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8530 (darwin_xfer_partial): Likewise.
8531 * exec.c (exec_xfer_partial): Likewise.
8532 * gnu-nat.c (gnu_xfer_partial): Likewise.
8533 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8534 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8535 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8536 * linux-nat.c (linux_xfer_siginfo): Likewise.
8537 (linux_proc_xfer_spu): Likewise.
8538 * procfs.c (procfs_xfer_partial): Likewise.
8539 * record-full.c (record_full_xfer_partial): Likewise.
8540 (record_full_core_xfer_partial): Likewise.
8541 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8542 * remote.c (remote_write_qxfer): Likewise.
8543 (remote_write_qxfer, remote_read_qxfer): Likewise.
8544 (remote_xfer_partial): Likewise.
8545 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8546 (rs6000_xfer_shared_libraries): Likewise.
8547 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8548 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8549 (spu_xfer_partial): Likewise.
8550 * target.c (memory_xfer_partial_1): Likewise.
8551 * tracepoint.c (tfile_xfer_partial): Likewise.
8552 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8553 (windows_xfer_partial): Likewise.
8555 2014-02-07 Yao Qi <yao@codesourcery.com>
8557 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8559 (core_xfer_shared_libraries_aix): Likewise.
8560 * gdbarch.c, gdbarch.h: Regenerated.
8561 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8562 ULONGEST. Change 'len_avail' type to ULONGEST.
8563 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8564 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8566 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8568 2014-02-07 Yao Qi <yao@codesourcery.com>
8570 * corefile.c (memory_error): Get 'exception' from ERR and pass
8571 'exception' to throw_error.
8573 2014-02-06 Doug Evans <xdje42@gmail.com>
8575 * configure.ac (libpython checking): Remove all but python.o from
8576 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8577 * configure: Regenerate.
8579 * Makefile.in (SFILES): Add extension.c.
8580 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8581 (COMMON_OBS): Add extension.o.
8582 * extension.h: New file.
8583 * extension-priv.h: New file.
8584 * extension.c: New file.
8586 * python/python-internal.h: #include "extension.h".
8587 (gdbpy_auto_load_enabled): Declare.
8588 (gdbpy_apply_val_pretty_printer): Declare.
8589 (gdbpy_apply_frame_filter): Declare.
8590 (gdbpy_preserve_values): Declare.
8591 (gdbpy_breakpoint_cond_says_stop): Declare.
8592 (gdbpy_breakpoint_has_cond): Declare.
8593 (void source_python_script_for_objfile): Delete.
8594 * python/python.c: #include "extension-priv.h".
8595 Delete inclusion of "observer.h".
8596 (extension_language_python): Moved here and renamed from
8597 script_language_python in py-auto-load.c.
8598 Redefined to be of type extension_language_defn.
8599 (python_extension_script_ops): New global.
8600 (python_extension_ops): New global.
8601 (struct python_env): New member previous_active.
8602 (restore_python_env): Call restore_active_ext_lang.
8603 (ensure_python_env): Call set_active_ext_lang.
8604 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8606 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8608 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8610 (gdbpy_eval_from_control_command): Renamed from
8611 eval_python_from_control_command, made static. New arg extlang.
8612 (gdbpy_source_script) Renamed from source_python_script, made static.
8614 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8615 result to int. New arg extlang.
8616 (gdbpy_source_objfile_script): Renamed from
8617 source_python_script_for_objfile, made static. New arg extlang.
8618 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8619 static. New args extlang, extlang_printers. Change result type to
8621 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8622 static. New arg extlang. Rename arg printers to extlang_printers
8623 and change type to ext_lang_type_printers *.
8624 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8625 static. Replace argument arg with extlang, extlang_printers.
8626 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8627 (!HAVE_PYTHON, source_python_script): Delete.
8628 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8629 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8630 (!HAVE_PYTHON, start_type_printers): Delete.
8631 (!HAVE_PYTHON, apply_type_printers): Delete.
8632 (!HAVE_PYTHON, free_type_printers): Delete.
8633 (_initialize_python): Delete call to observer_attach_before_prompt.
8634 (finalize_python): Set/restore active extension language.
8635 (gdbpy_finish_initialization) Renamed from
8636 finish_python_initialization, made static. New arg extlang.
8637 (gdbpy_initialized): New function.
8638 * python/python.h: #include "extension.h". Delete #include
8639 "value.h", "mi/mi-cmds.h".
8640 (extension_language_python): Declare.
8641 (GDBPY_AUTO_FILE_NAME): Delete.
8642 (enum py_bt_status): Moved to extension.h and renamed to
8644 (enum frame_filter_flags): Moved to extension.h.
8645 (enum py_frame_args): Moved to extension.h and renamed to
8646 ext_lang_frame_args.
8647 (finish_python_initialization): Delete.
8648 (eval_python_from_control_command): Delete.
8649 (source_python_script): Delete.
8650 (apply_val_pretty_printer): Delete.
8651 (apply_frame_filter): Delete.
8652 (preserve_python_values): Delete.
8653 (gdbpy_script_language_defn): Delete.
8654 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8655 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8657 * auto-load.c: #include "extension.h".
8658 (GDB_AUTO_FILE_NAME): Delete.
8659 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8660 (script_language_gdb): Delete, moved to extension.c and renamed to
8661 extension_language_gdb.
8662 (source_gdb_script_for_objfile): Delete.
8663 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8664 (loaded_script): Change type of language member to
8665 struct extension_language_defn *.
8666 (init_loaded_scripts_info): Initialize
8667 unsupported_script_warning_printed.
8668 (maybe_add_script): Make static. Change type of language arg to
8669 struct extension_language_defn *.
8670 (clear_section_scripts): Reset unsupported_script_warning_printed.
8671 (auto_load_objfile_script_1): Rewrite to use extension language API.
8672 (auto_load_objfile_script): Make public. Remove support-compiled-in
8673 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8674 (source_section_scripts): Rewrite to use extension language API.
8675 (load_auto_scripts_for_objfile): Rewrite to use
8676 auto_load_scripts_for_objfile.
8677 (collect_matching_scripts_data): Change type of language member to
8678 struct extension_language_defn *.
8679 (auto_load_info_scripts): Change type of language arg to
8680 struct extension_language_defn *.
8681 (unsupported_script_warning_print): New function.
8682 (script_not_found_warning_print): Make static.
8683 (_initialize_auto_load): Rewrite construction of scripts-directory
8685 * auto-load.h (struct objfile): Add forward decl.
8686 (struct script_language): Delete.
8687 (struct auto_load_pspace_info): Add forward decl.
8688 (struct extension_language_defn): Add forward decl.
8689 (maybe_add_script): Delete.
8690 (auto_load_objfile_script): Declare.
8691 (script_not_found_warning_print): Delete.
8692 (auto_load_info_scripts): Update prototype.
8693 (auto_load_gdb_scripts_enabled): Declare.
8694 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8695 auto_load_python_scripts_enabled and made public.
8696 (script_language_python): Delete, moved to python.c.
8697 (gdbpy_script_language_defn): Delete.
8698 (info_auto_load_python_scripts): Update to use
8699 extension_language_python.
8701 * breakpoint.c (condition_command): Replace call to
8702 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8703 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8704 with call to breakpoint_ext_lang_cond_says_stop.
8705 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8706 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8707 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8708 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8710 (local_setattro): Print name of extension language with existing
8713 * valprint.c (val_print, value_print): Update to call
8714 apply_ext_lang_val_pretty_printer.
8715 * cp-valprint.c (cp_print_value): Update call to
8716 apply_ext_lang_val_pretty_printer.
8717 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8718 (gdbpy_apply_val_pretty_printer): Renamed from
8719 apply_val_pretty_printer. New arg extlang.
8720 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8722 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8723 extension language API.
8724 * cli/cli-script.c (execute_control_command): Update to call
8725 eval_ext_lang_from_control_command.
8727 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8728 enum ext_lang_bt_status values. Update call to
8729 apply_ext_lang_frame_filter.
8730 (mi_cmd_stack_list_locals): Ditto.
8731 (mi_cmd_stack_list_args): Ditto.
8732 (mi_cmd_stack_list_variables): Ditto.
8733 * mi/mi-main.c: Delete #include "python/python-internal.h".
8734 Add #include "extension.h".
8735 (mi_cmd_list_features): Replace reference to python internal variable
8736 gdb_python_initialized with call to ext_lang_initialized_p.
8738 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8739 Update to use enum ext_lang_frame_args. Update to call
8740 apply_ext_lang_frame_filter.
8741 * python/py-framefilter.c (extract_sym): Update to use enum
8743 (extract_value, py_print_type, py_print_value): Ditto.
8744 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8745 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8746 (py_print_frame): Ditto.
8747 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8748 New arg extlang. Update to use enum ext_lang_bt_status.
8750 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8751 finish_python_initialization. Replace with call to
8752 finish_ext_lang_initialization.
8754 * typeprint.c (do_free_global_table): Update to call
8755 free_ext_lang_type_printers.
8756 (create_global_typedef_table): Update to call
8757 start_ext_lang_type_printers.
8758 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8759 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8760 (type_print_options): Change type of global_printers from "void *"
8761 to "struct ext_lang_type_printers *".
8763 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8764 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8765 (gdbpy_preserve_values): Renamed from preserve_python_values.
8767 (!HAVE_PYTHON, preserve_python_values): Delete.
8769 * utils.c (quit_flag): Delete, moved to extension.c.
8770 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8773 * eval.c: Delete #include "python/python.h".
8774 * main.c: Delete #include "python/python.h".
8776 * defs.h: Update comment.
8778 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8782 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8784 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8787 2014-02-05 Yao Qi <yao@codesourcery.com>
8789 * remote.c (remote_pass_signals): Remove local 'buf' and use
8791 (remote_program_signals): Likewise.
8793 2014-02-05 Yao Qi <yao@codesourcery.com>
8795 * ctf.c: Include "inferior.h" and "gdbthread.h".
8796 (CTF_PID): A new macro.
8797 (ctf_open): Call inferior_appeared and add_thread_silent.
8798 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8799 (ctf_thread_alive): New function.
8800 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8802 2014-02-05 Yao Qi <yao@codesourcery.com>
8806 2013-05-24 Yao Qi <yao@codesourcery.com>
8808 * tracepoint.c (TFILE_PID): Remove.
8809 (tfile_open): Don't add thread and inferior.
8810 (tfile_close): Don't set 'inferior_ptid'. Don't call
8811 exit_inferior_silent.
8812 (tfile_thread_alive): Remove.
8813 (init_tfile_ops): Don't set field 'to_thread_alive' of
8816 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8818 * remote.c (remote_start_remote): Call remote_check_symbols even
8819 if only symbol-file (not file) has been given.
8821 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8823 * gdbarch.sh (skip_entrypoint): New callback.
8824 * gdbarch.c, gdbarch.h: Regenerate.
8825 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8826 * infrun.c (fill_in_stop_func): Likewise.
8827 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8828 (ppc_elfv2_elf_make_msymbol_special): New function.
8829 (ppc_elfv2_skip_entrypoint): Likewise.
8830 (ppc_linux_init_abi): Install them for ELFv2.
8832 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8834 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8835 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8836 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8837 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8838 structures returned in GPRs.
8840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8842 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8843 offset to the stack parameter list for the ELFv2 ABI.
8845 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8847 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8848 set_gdbarch_convert_from_func_ptr_addr and
8849 set_gdbarch_elf_make_msymbol_special for ELFv1.
8850 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8851 function descriptors on ELFv1.
8852 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8853 set up r12 at function entry.
8855 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8857 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8858 (struct gdbarch_tdep): New member elf_abi.
8860 * rs6000-tdep.c: Include "elf/ppc64.h".
8861 (rs6000_gdbarch_init): Detect ELF ABI version.
8863 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8865 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8866 within a register pair holding a DFP 128-bit value on little-endian.
8867 (ppc64_sysv_abi_return_value_base): Likewise.
8868 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8869 (dfp_pseudo_register_write): Likewise.
8871 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8873 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8874 offset on little-endian when passing _Decimal32.
8875 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8877 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8879 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8880 of the overlapped FP register within the VSX register on little-
8882 (efpr_pseudo_register_write): Likewise.
8884 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8886 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8887 offset on little-endian when passing small structures.
8889 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8891 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8892 (struct ppc64_sysv_argpos): New data structure.
8893 (ppc64_sysv_abi_push_float): Remove.
8894 (ppc64_sysv_abi_push_val): New function.
8895 (ppc64_sysv_abi_push_integer): Likewise.
8896 (ppc64_sysv_abi_push_freg): Likewise.
8897 (ppc64_sysv_abi_push_vreg): Likewise.
8898 (ppc64_sysv_abi_push_param): Likewise.
8899 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8900 (ppc64_sysv_abi_return_value_base): New function.
8901 (ppc64_sysv_abi_return_value): Refactor to use it.
8903 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8905 * NEWS: Document new target powerpc64le-*-linux*.
8907 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8909 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8910 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8912 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8913 register set used in ELF core dumps. Add floating-point register set.
8915 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8917 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8918 dwarf2_to_gdb[] table using symbolic constants. Adjust
8919 penultimate entry from number representing the PC register
8920 to symbolic constant representing the MDR register. Add
8921 constant for the PC register to the end of the table.
8923 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8925 * bsd-kvm.c: Include <sys/param.h>
8927 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8929 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8931 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8933 * ada-lang.h (clear_ada_sym_cache): Delete.
8935 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8937 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8939 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8941 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8942 the sigreturn register save area only if the syscall is
8945 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8947 * valops.c (value_slice): Minor reformatting.
8949 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8951 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8953 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8955 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8957 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8958 (ada_ignore_descriptive_types_p): New static global.
8959 (find_parallel_type_by_descriptive_type): Return immediately
8960 if ada_ignore_descriptive_types_p is set.
8961 (_initialize_ada_language): Register new commands "maintenance
8962 set ada", "maintenance show ada", "maintenance set ada
8963 ignore-descriptive-types" and "maintenance show ada
8964 ignore-descriptive-types".
8965 * NEWS: Add entry for new "maint ada set/show
8966 ignore-descriptive-types" commands.
8968 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8970 * record-btrace.c (record_btrace_close): Call btrace_teardown
8973 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8975 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8978 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8980 * ada-typeprint (type_is_full_subrange_of_target_type):
8982 (print_range): Add parameter bounds_prefered_p. If not set,
8983 try printing range types using the name of their base type.
8984 (print_range_type): Add parameter bounds_prefered_p.
8985 Use it in call to print_range.
8986 (print_array_type, ada_print_type): Update calls to print_range
8987 and print_range_type.
8989 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8991 * ada-typeprint.c (print_array_type, print_choices, print_range)
8992 (print_range_bound, print_dynamic_range_bound, print_range_type):
8995 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8997 * ada-typeprint.c (print_range): Add missing empty line
8998 after local declaration.
9000 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9002 * ada-valprint.c (print_optional_low_bound): Get index_type's
9003 target type for as long as it is a TYPE_CODE_RANGE.
9005 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9007 * procfs.c (procfs_make_note_section): Remove assertion and
9010 2014-01-24 Yao Qi <yao@codesourcery.com>
9012 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9013 * corelow.c (get_core_siginfo): Likewise.
9015 2014-01-24 Yao Qi <yao@codesourcery.com>
9017 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9018 ULONGEST. Don't check 'len' is negative.
9019 (remote_write_bytes): Change type of 'len' to ULONGEST.
9021 2014-01-23 Tom Tromey <tromey@redhat.com>
9024 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9025 Handle exception from frame.block.
9026 (FrameVars.fetch_frame_locals): Likewise.
9028 2014-01-23 Tom Tromey <tromey@redhat.com>
9031 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9032 on a NULL pointer. Move "goto error" to correct place.
9034 2014-01-23 Tom Tromey <tromey@redhat.com>
9037 * python/py-framefilter.c (apply_frame_filter): Call
9038 ensure_python_env after computing gdbarch.
9040 2014-01-23 Yao Qi <yao@codesourcery.com>
9042 * target.c (raw_memory_xfer_partial): Change argument type
9043 from void * to gdb_byte *.
9044 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9046 2014-01-22 Doug Evans <dje@google.com>
9048 New gdbserver option --debug-format=timestamp.
9051 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9053 * syscalls/s390x-linux.xml: New file.
9054 * syscalls/s390-linux.xml: New file.
9055 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9056 (XML_SYSCALL_FILENAME_S390X): Likewise.
9057 (op_svc): New enum value for SVC opcode.
9058 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9059 (s390_linux_get_syscall_number): New function.
9060 (s390_gdbarch_init): Register '*get_syscall_number' and the
9061 syscall xml file name.
9062 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9063 "s390-linux.xml" and "s390x-linux.xml".
9064 * NEWS: Announce new feature.
9066 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9068 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9070 2014-01-22 Pedro Alves <palves@redhat.com>
9072 * xtensa-config.c: Include defs.h.
9074 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9076 * common/common-utils.h: Add "ARI:" comment beside __func__
9079 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9081 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9082 documentation a bit.
9084 2014-01-21 Roland McGrath <mcgrathr@google.com>
9086 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9087 * configure: Regenerate.
9088 * aclocal.m4: Regenerate.
9089 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9090 New substituted variables.
9091 (install-strip): New target.
9092 (INSTALL_SCRIPT): New substituted variable.
9093 (FLAGS_TO_PASS): Add it.
9094 (install-only): Use $(INSTALL_SCRIPT) rather than
9095 $(INSTALL_PROGRAM) for gcore.
9097 2014-01-20 Tom Tromey <tromey@redhat.com>
9099 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9102 2014-01-20 Tom Tromey <tromey@redhat.com>
9104 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9105 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9106 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9107 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9108 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9109 (struct cmd_list_element) <flags>: Remove.
9110 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9111 doc_allocated>: New fields.
9112 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9114 * maint.c (maintenance_do_deprecate): Update.
9115 * top.c (execute_command): Update.
9117 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9119 * xtensa-linux-nat.c: Include asm/ptrace.h.
9121 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9123 * Makefile.in (SFILES): Add d-support.c.
9124 (COMMON_OBS): Add d-support.o.
9125 * d-lang.h (d_parse_symbol): Add comment, now defined in
9127 * d-lang.c (parse_call_convention)
9128 (parse_attributes, parse_function_types)
9129 (parse_function_args, parse_type, parse_identifier)
9130 (call_convention_p, d_parse_symbol): Move functions to ...
9131 * d-support.c: ... New file.
9133 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9135 * d-lang.h (d_parse_symbol): Add declaration.
9136 * d-lang.c (extract_identifiers)
9137 (extract_type_info): Remove functions.
9138 (parse_call_convention, parse_attributes)
9139 (parse_function_types, parse_function_args)
9140 (parse_type, parse_identifier, call_convention_p)
9141 (d_parse_symbol): New functions.
9142 (d_demangle): Use d_parse_symbol to demangle D symbols.
9144 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9146 * d-lang.h (struct builtin_d_type): New data type.
9147 (builtin_d_type): Add declaration.
9148 * d-lang.c (d_language_arch_info, build_d_types)
9149 (builtin_d_type): New functions.
9150 (enum d_primitive_types): New data type.
9151 (d_language_defn): Change c_language_arch_info to
9152 d_language_arch_info.
9153 (d_type_data): New static variable.
9154 (_initialize_d_language): Initialize d_type_data.
9156 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9158 * d-lang.h (d_main_name): Add declaration.
9159 * d-lang.c (d_main_name): New function.
9160 * symtab.c (find_main_name): Add call to d_main_name.
9162 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9164 * d-lang.c (d_language_defn): Change macro_expansion_c to
9167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9169 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9171 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9173 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9174 gdb_exception" declaration.
9175 * remote.c (getpkt_or_notif_sane): Likewise.
9177 2014-01-17 Doug Evans <dje@google.com>
9179 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9180 function, contents of dirnames_to_char_ptr_vec_append moved here.
9181 (delim_string_to_char_ptr_vec): New function.
9182 (dirnames_to_char_ptr_vec_append): Rewrite.
9183 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9185 2014-01-17 Doug Evans <dje@google.com>
9187 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9189 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9190 #include "common-utils.h".
9191 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9192 * common/vec.h (VEC_ASSERT_PASS): Update.
9193 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9194 (MACH_CHECK_ERROR): Update.
9196 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9198 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9200 * gdbarch.h: Regenerate.
9202 2014-01-16 Tom Tromey <tromey@redhat.com>
9204 * value.c (struct value) <regnum>: Move earlier.
9206 2014-01-16 Tom Tromey <tromey@redhat.com>
9208 * remote.c (extended_remote_create_inferior): Rename from
9209 extended_remote_create_inferior_1. Add "ops" argument. Remove
9212 2014-01-16 Pedro Alves <palves@redhat.com>
9214 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9215 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9218 2014-01-16 Doug Evans <dje@google.com>
9220 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9224 * btrace.h (btrace_thread_flag): New.
9225 (struct btrace_thread_info) <flags>: New.
9226 * record-btrace.c (record_btrace_resume_thread)
9227 (record_btrace_find_thread_to_move, btrace_step_no_history)
9228 (btrace_step_stopped, record_btrace_start_replaying)
9229 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9230 (record_btrace_find_resume_thread): New.
9231 (record_btrace_resume, record_btrace_wait): Extend.
9232 (record_btrace_can_execute_reverse): New.
9233 (record_btrace_open): Fail in non-stop mode.
9234 (record_btrace_set_replay): Split into this, ...
9235 (record_btrace_stop_replaying): ... this, ...
9236 (record_btrace_clear_histories): ... and this.
9237 (init_record_btrace_ops): Init to_can_execute_reverse.
9238 * NEWS: Announce it.
9240 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9242 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9243 (forward_target_decr_pc_after_break)
9244 (target_decr_pc_after_break): New.
9245 * target.c (forward_target_decr_pc_after_break)
9246 (target_decr_pc_after_break): New.
9247 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9248 instead of gdbarch_decr_pc_after_break.
9249 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9250 instead of gdbarch_decr_pc_after_break.
9251 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9252 instead of gdbarch_decr_pc_after_break.
9253 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9254 instead of gdbarch_decr_pc_after_break.
9255 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9256 instead of gdbarch_decr_pc_after_break.
9257 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9258 instead of gdbarch_decr_pc_after_break.
9260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9262 * btrace.c: Include regcache.h.
9263 (btrace_add_pc): New.
9264 (btrace_enable): Call btrace_add_pc.
9265 (btrace_is_empty): New.
9266 * btrace.h (btrace_is_empty): New.
9267 * record-btrace.c (require_btrace, record_btrace_info): Call
9270 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9272 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9273 Support delta reads.
9274 (linux_disable_btrace): Change return type.
9275 * common/linux-btrace.h (linux_read_btrace): Change parameters
9276 and return type to allow error reporting. Update users.
9277 (linux_disable_btrace): Change return type. Update users.
9278 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9280 (btrace_error): New.
9281 (btrace_block) <begin>: Comment on BEGIN == 0.
9282 * btrace.c (btrace_compute_ftrace): Start from the end of
9284 (btrace_stitch_trace, btrace_clear_history): New.
9285 (btrace_fetch): Read delta trace, return if replaying.
9286 (btrace_clear): Move clear history code to btrace_clear_history.
9287 (parse_xml_btrace): Throw an error if parsing failed.
9288 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9289 and return type to allow error reporting.
9290 (target_read_btrace): Change parameters and return type to allow
9292 * target.c (target_read_btrace): Update.
9293 * remote.c (remote_read_btrace): Support delta reads. Pass
9295 * NEWS: Announce it.
9297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9299 * record.h (record_btrace_frame_unwind)
9300 (record_btrace_tailcall_frame_unwind): New declarations.
9301 * dwarf2-frame: Include record.h
9302 (dwarf2_frame_cfa): Throw an error for btrace frames.
9303 * record-btrace.c: Include hashtab.h.
9304 (btrace_get_bfun_name): New.
9305 (btrace_call_history): Call btrace_get_bfun_name.
9306 (struct btrace_frame_cache): New.
9308 (bfcache_hash, bfcache_eq, bfcache_new): New.
9309 (btrace_get_frame_function): New.
9310 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9311 (record_btrace_frame_this_id): Compute own id.
9312 (record_btrace_frame_prev_register): Provide PC, throw_error
9313 for all other registers.
9314 (record_btrace_frame_sniffer): Detect btrace frames.
9315 (record_btrace_tailcall_frame_sniffer): New.
9316 (record_btrace_frame_dealloc_cache): New.
9317 (record_btrace_frame_unwind): Add new functions.
9318 (record_btrace_tailcall_frame_unwind): New.
9319 (_initialize_record_btrace): Allocate cache.
9320 * btrace.c (btrace_clear): Call reinit_frame_cache.
9321 * NEWS: Announce it.
9323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9325 * record-btrace.c (record_btrace_set_replay)
9326 (record_btrace_goto_begin, record_btrace_goto_end)
9327 (record_btrace_goto): New.
9328 (init_record_btrace_ops): Initialize them.
9329 * NEWS: Announce it.
9331 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9333 * record-btrace.c (record_btrace_find_new_threads)
9334 (record_btrace_thread_alive): New.
9335 (init_record_btrace_ops): Initialize to_find_new_threads and
9338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9340 * record-btrace.c (record_btrace_resume): New.
9341 (record_btrace_wait): New.
9342 (init_record_btrace_ops): Initialize to_wait and to_resume.
9344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9346 * record-btrace.c (record_btrace_xfer_partial)
9347 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9348 (record_btrace_allow_memory_access): New.
9349 (init_record_btrace_ops): Initialize new methods.
9350 * target.c (raw_memory_xfer_partial): Bail out if target reports
9351 that this memory is not available.
9353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9355 * target.h (target_ops) <to_insert_breakpoint>
9356 <to_remove_breakpoint>: Add target_ops parameter.
9357 (forward_target_insert_breakpoint): New.
9358 (forward_target_remove_breakpoint): New.
9359 (memory_remove_breakpoint, memory_insert_breakpoint):
9360 Add target_ops parameter.
9361 * target.c (target_insert_breakpoint): Split into this and ...
9362 (forward_target_insert_breakpoint): ... this.
9363 (target_remove_breakpoint): Split into this and ...
9364 (forward_target_remove_breakpoint): ... this.
9365 (debug_to_insert_breakpoint): Add target_ops parameter.
9366 Call forward_target_insert_breakpoint.
9367 (debug_to_remove_breakpoint): Add target_ops parameter.
9368 Call forward_target_remove_breakpoint.
9369 (update_current_target): Do not inherit or default to_insert_breakpoint
9370 and to_remove_breakpoint.
9371 * corelow.c (ignore): Add target_ops parameter.
9372 * exec.c (ignore): Add target_ops parameter.
9373 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9374 Add target_ops parameter.
9375 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9376 Add target_ops parameter.
9377 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9378 Add target_ops parameter.
9379 * record-full.c (record_full_beneath_to_insert_breakpoint)
9380 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9381 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9382 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9383 (record_full_core_remove_breakpoint): Add target_ops parameter.
9385 (record_full_beneath_to_insert_breakpoint_ops)
9386 (record_full_beneath_to_remove_breakpoint_ops)
9387 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9388 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9389 tmp_to_remove_breakpoint_ops,
9390 record_full_beneath_to_insert_breakpoint_ops, and
9391 record_full_beneath_to_remove_breakpoint_ops.
9392 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9393 (m32r_remove_breakpoint): Add target_ops parameter.
9394 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9395 Add target_ops parameter.
9396 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9397 Add target_ops parameter.
9399 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9400 Markus Metzger <markus.t.metzger@intel.com>
9402 * record-btrace.c: Include frame-unwind.h.
9403 (record_btrace_frame_unwind_stop_reason)
9404 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9405 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9407 (init_record_btrace_ops): Install it.
9409 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9411 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9414 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9416 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9419 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9421 * frame-unwind.c: Include target.h.
9422 (frame_unwind_try_unwinder): New function with code from ...
9423 (frame_unwind_find_by_frame): ... here. New variable
9424 unwinder_from_target, call also target_get_unwinder)
9425 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9426 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9427 * target.h (struct target_ops): New fields to_get_unwinder and
9428 to_get_tailcall_unwinder.
9429 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9433 * record-btrace.c (record_btrace_fetch_registers)
9434 (record_btrace_store_registers)
9435 (record_btrace_to_prepare_to_store): New.
9436 (init_record_btrace_ops): Add the above.
9438 2014-01-16 Tom Tromey <tromey@redhat.com>
9440 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9441 * target.h (struct target_ops) <to_prepare_to_store>: Add
9443 (target_prepare_to_store): Add argument.
9444 * target.c (debug_to_prepare_to_store): Add argument.
9445 (update_current_target): Update.
9446 * remote.c (remote_prepare_to_store): Add 'self' argument.
9447 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9448 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9449 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9450 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9452 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9453 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9454 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9455 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9456 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9460 * btrace.h (replay) <replay>: New.
9461 (btrace_is_replaying): New.
9462 * btrace.c (btrace_clear): Free replay iterator.
9463 (btrace_is_replaying): New.
9464 * record-btrace.c (record_btrace_is_replaying): New.
9465 (record_btrace_info): Print insn number if replaying.
9466 (record_btrace_insn_history): Start at replay position.
9467 (record_btrace_call_history): Start at replay position.
9468 (init_record_btrace_ops): Init to_record_is_replaying.
9470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9472 * record-btrace.c (record_btrace_insn_history_range): Include
9474 (record_btrace_insn_history_from): Adjust range.
9475 (record_btrace_call_history_range): Include
9477 (record_btrace_call_history_from): Adjust range.
9478 * NEWS: Announce changes.
9480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9482 * record.h (enum record_print_flag)
9483 <record_print_indent_calls>: New.
9484 * record.c (get_call_history_modifiers): Recognize /c modifier.
9485 (_initialize_record): Document /c modifier.
9486 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9487 Reorder fields. Optionally indent the function name. Update
9489 * NEWS: Announce changes.
9491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9493 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9497 * btrace.c (ftrace_new_function): Start counting at one.
9498 * record-btrace.c (record_btrace_info): Adjust number of calls
9500 * NEWS: Announce it.
9502 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9504 * record-btrace.c (btrace_call_history_insn_range): Print
9505 insn range as [begin, end].
9507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9509 * btrace.h (struct btrace_func_link): New.
9510 (enum btrace_function_flag): New.
9511 (struct btrace_inst): Rename to ...
9512 (struct btrace_insn): ...this. Update all users.
9513 (struct btrace_func) <ibegin, iend>: Remove.
9514 (struct btrace_func_link): New.
9515 (struct btrace_func): Rename to ...
9516 (struct btrace_function): ...this. Update all users.
9517 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9518 (number, level, flags>: New.
9519 (struct btrace_insn_iterator): Rename to ...
9520 (struct btrace_insn_history): ...this.
9522 (struct btrace_insn_iterator, btrace_call_iterator): New.
9523 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9524 (struct btrace_target_info) <begin, end, level>
9525 <insn_history, call_history>: New.
9526 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9527 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9528 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9529 (btrace_call_number, btrace_call_begin, btrace_call_end)
9530 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9531 (btrace_find_function_by_number, btrace_set_insn_history)
9532 (btrace_set_call_history): New.
9533 * btrace.c (btrace_init_insn_iterator)
9534 (btrace_init_func_iterator, compute_itrace): Remove.
9535 (ftrace_print_function_name, ftrace_print_filename)
9536 (ftrace_skip_file): Change
9538 (ftrace_init_func): Remove.
9539 (ftrace_debug): Use new btrace_function fields.
9540 (ftrace_function_switched): Also consider gaining and
9541 losing symbol information).
9542 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9543 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9544 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9546 (ftrace_new_function): Move. Remove debug print.
9547 (ftrace_update_lines, ftrace_update_insns): New.
9548 (ftrace_update_function): Check for call, ret, and jump.
9549 (compute_ftrace): Renamed to ...
9550 (btrace_compute_ftrace): ...this. Rewritten to compute call
9552 (btrace_fetch, btrace_clear): Updated.
9553 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9554 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9555 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9556 (btrace_call_number, btrace_call_begin, btrace_call_end)
9557 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9558 (btrace_find_function_by_number, btrace_set_insn_history)
9559 (btrace_set_call_history): New.
9560 * record-btrace.c (require_btrace): Use new btrace thread
9562 (record_btrace_info, btrace_insn_history)
9563 (record_btrace_insn_history, record_btrace_insn_history_range):
9564 Use new btrace thread info fields and new iterator.
9565 (btrace_func_history_src_line): Rename to ...
9566 (btrace_call_history_src_line): ...this. Use new btrace
9568 (btrace_func_history): Rename to ...
9569 (btrace_call_history): ...this. Use new btrace thread info
9570 fields and new iterator.
9571 (record_btrace_call_history, record_btrace_call_history_range):
9572 Use new btrace thread info fields and new iterator.
9574 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9576 * frame.h (frame_id_build_unavailable_stack_special): New.
9577 * frame.c (frame_id_build_unavailable_stack_special): New.
9579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9581 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9582 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9583 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9585 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9586 (i386_insn_is_jump, i386_jmp_p): New.
9587 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9588 insn_is_jump to gdbarch.
9589 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9590 * gdbarch.h: Regenerated.
9591 * gdbarch.c: Regenerated.
9592 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9593 (default_insn_is_jump): New.
9594 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9595 (default_insn_is_jump): New.
9597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9599 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9601 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9602 (btrace_read_type) <btrace_read_new>: Change to ...
9603 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9607 * common/linux-btrace.c (linux_read_btrace): Free trace from
9610 2014-01-15 Doug Evans <dje@google.com>
9612 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9615 2014-01-15 Tom Tromey <tromey@redhat.com>
9617 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9618 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9619 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9620 (set_objfile_main_name): New function.
9621 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9622 language_of_main>: New fields.
9623 (set_objfile_main_name): Declare.
9624 * symtab.c (find_main_name): Loop over objfiles to find the main
9626 (set_main_name): Now static.
9627 (get_main_info): Add comment.
9628 * symtab.h (set_main_name): Don't declare.
9630 2014-01-15 Tom Tromey <tromey@redhat.com>
9632 * symtab.c (main_progspace_key): New global.
9633 (struct main_info): New.
9634 (name_of_main, language_of_main): Remove.
9635 (get_main_info, main_info_cleanup): New function.
9636 (set_main_name, main_name, main_language): Use get_main_info.
9637 (_initialize_symtab): Initialize main_progspace_key.
9639 2014-01-15 Tom Tromey <tromey@redhat.com>
9641 * dbxread.c (process_one_symbol): Update.
9642 * dwarf2read.c (read_partial_die): Update.
9643 * symfile.c (set_initial_language): Call main_language.
9644 * symtab.c (language_of_main): Now static.
9645 (set_main_name): Add 'lang' parameter.
9646 (find_main_name): Update.
9647 (main_language): New function.
9648 (symtab_observer_executable_changed): Update.
9649 * symtab.h (set_main_name): Update.
9650 (language_of_main): Remove.
9651 (main_language): Declare.
9653 2014-01-15 Tom Tromey <tromey@redhat.com>
9655 * symfile.c (init_entry_point_info): Use new "initialized" field.
9657 * objfiles.h (struct entry_point) <initialized>: New field.
9658 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9659 (struct objfile) <ei>: ...here. Remove.
9660 * objfiles.c (entry_point_address_query): Update.
9662 2014-01-15 Tom Tromey <tromey@redhat.com>
9664 * objfiles.c (entry_point_address_query): Relocate entry point
9666 (objfile_relocate1): Do not relocate entry point address.
9667 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9668 <the_bfd_section_index>: New field.
9669 * symfile.c (init_entry_point_info): Find the entry point's
9672 2014-01-15 Tom Tromey <tromey@redhat.com>
9674 * solib-frv.c (enable_break): Use entry_point_address_query.
9676 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9678 * NEWS: Add note on improved process record-replay on
9679 arm*-linux* targets.
9681 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9683 * arm-tdep.c (enum arm_record_result): New enum.
9684 (arm_record_unsupported_insn): New function.
9685 (arm_record_coproc_data_proc): Removed.
9686 (thumb2_record_ld_st_multiple): New function.
9687 (thumb2_record_ld_st_dual_ex_tbb): New function.
9688 (thumb2_record_data_proc_sreg_mimm): New function.
9689 (thumb2_record_ps_dest_generic): New function.
9690 (thumb2_record_branch_misc_cntrl): New function.
9691 (thumb2_record_str_single_data): New function.
9692 (thumb2_record_ld_mem_hints): New function.
9693 (thumb2_record_ld_word): New function.
9694 (thumb2_record_lmul_lmla_div): New function.
9695 (thumb2_record_decode_insn_handler): New function.
9696 (decode_insn): Add thumb32 instruction handlers.
9698 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9700 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9701 (struct arm_linux_record_tdep): Declare.
9702 (arm_canonicalize_syscall): New function.
9703 (arm_all_but_pc_registers_record): New function.
9704 (arm_linux_syscall_record): New function.
9705 (arm_linux_init_abi): Add syscall recording constructs.
9706 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9707 decoding. (arm_record_coproc_data_proc): Update arm syscall
9709 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9710 <arm_syscall_record>: New field.
9711 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9714 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9716 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9717 register for push instruction recording.
9719 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9721 * arm-tdep.c (thumb_record_misc): Update to correct logical
9722 error while recording ldm, ldmia and pop instructions.
9724 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9726 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9728 2014-01-15 Pedro Alves <palves@redhat.com>
9730 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9731 (go32_resume, go32_fetch_registers, store_register)
9732 (go32_store_registers, go32_prepare_to_store)
9733 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9734 (go32_create_inferior, go32_can_run, go32_terminal_init)
9735 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9738 2014-01-15 Tom Tromey <tromey@redhat.com>
9740 * target.h (async_callback_ftype): New typedef.
9741 (struct target_ops) <to_async>: Use it.
9743 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9745 * python/py-value.c (get_field_type): Remove unnecessary curly
9746 braces for single-statement if block.
9748 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9750 * python/py-type.c (convert_field): Add missing empty line
9753 2014-01-14 Doug Evans <dje@google.com>
9755 * symfile.h (expand_symtabs_matching): Renamed from
9756 expand_partial_symbol_names. Update prototype.
9757 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9758 * symfile.c (expand_symtabs_matching): Renamed from
9759 expand_partial_symbol_names. New args file_matcher, kind.
9760 Rename arg fun to symbol_matcher.
9761 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9762 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9763 ada_expand_partial_symbol_name.
9764 (ada_make_symbol_completion_list): Update to call
9765 expand_symtabs_matching.
9766 (ada_add_global_exceptions): Call expand_symtabs_matching.
9767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9768 call map_symbol_filenames.
9769 * symtab.c (sources_info): Update to call map_symbol_filenames.
9770 (search_symbols): Call expand_symtabs_matching.
9771 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9772 (default_make_symbol_completion_list_break_on): Update to call
9773 expand_symtabs_matching.
9774 (make_source_files_completion_list): Update to call
9775 map_symbol_filenames.
9777 2014-01-14 Doug Evans <dje@google.com>
9779 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9780 (expand_symtabs_symbol_matcher_ftype): New typedef.
9781 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9782 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9783 * symfile.c (expand_partial_symbol_names): Update to use
9784 expand_symtabs_symbol_matcher_ftype.
9785 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9786 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9787 Arg name_matcher renamed to symbol_matcher.
9788 * psymtab.c (recursively_search_psymtabs): Update to use
9789 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9791 (expand_symtabs_matching_via_partial): Update to use
9792 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9793 Arg name_matcher renamed to symbol_matcher.
9795 2014-01-14 Doug Evans <dje@google.com>
9797 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9798 (map_partial_symbol_filenames): Ditto.
9799 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9800 (map_partial_symbol_filenames): Ditto.
9801 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9802 (map_partial_symbol_filenames): Ditto.
9803 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9804 (map_partial_symbol_filenames): Ditto.
9805 * symtab.c: Delete #include "psymtab.h".
9807 2014-01-14 Pedro Alves <palves@redhat.com>
9808 Tom Tromey <tromey@redhat.com>
9810 * infrun.c (use_displaced_stepping): Use find_record_target
9811 instead of RECORD_IS_USED.
9812 (adjust_pc_after_break): Use record_full_is_used instead of
9814 * record-btrace.c (record_btrace_open): Call record_preopen
9815 instead of checking RECORD_IS_USED.
9816 * record-full.c (record_full_shortname)
9817 (record_full_core_shortname): New globals.
9818 (record_full_is_used): New function.
9819 (find_full_open): Call record_preopen instead of checking
9821 (init_record_full_ops): Set the target's shortname to
9822 record_full_shortname.
9823 (init_record_full_core_ops): Set the target's shortname to
9824 record_full_core_shortname.
9825 * record-full.h (record_full_is_used): Declare.
9826 * record.c (find_record_target): Make extern.
9827 (record_preopen): New function.
9828 * record.h (RECORD_IS_USED): Delete macro.
9829 (find_record_target, record_preopen): Declare functions.
9831 2014-01-14 Yao Qi <yao@codesourcery.com>
9833 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9834 'len''s type to ULONGEST.
9835 (core_xfer_shared_libraries_aix): Likewise.
9836 * gdbarch.c, gdbarch.h: Regenerated.
9837 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9838 Change type of 'len' to ULONGEST.
9839 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9840 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9842 2014-01-14 Yao Qi <yao@codesourcery.com>
9844 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9845 type of 'len' to ULONGEST.
9846 (linux_xfer_osdata_processgroups): Likewise.
9847 (linux_xfer_osdata_threads): Likewise.
9848 (linux_xfer_osdata_fds): Likewise.
9849 (linux_xfer_osdata_isockets): Likewise.
9850 (linux_xfer_osdata_shm): Likewise.
9851 (linux_xfer_osdata_sem): Likewise.
9852 (linux_xfer_osdata_msg): Likewise.
9853 (linux_common_xfer_osdata): Likewise.
9854 (struct osdata_type) <getter>: Likewise.
9855 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9858 2014-01-14 Yao Qi <yao@codesourcery.com>
9860 * target.h (target_xfer_partial_ftype): Update.
9861 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9863 * aix-thread.c (aix_thread_xfer_partial): Change type of
9864 argument 'len' to ULONGEST.
9865 * auxv.c (procfs_xfer_auxv): Likewise.
9866 (ld_so_xfer_auxv): Likewise.
9867 (memory_xfer_auxv): Likewise.
9868 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9869 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9870 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9871 * corelow.c (core_xfer_partial): Likewise.
9872 * ctf.c (ctf_xfer_partial): Likewise.
9873 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9875 (darwin_read_dyld_info): Likewise.
9876 (darwin_xfer_partial): Likewise.
9877 * exec.c (section_table_xfer_memory_partial): Likewise.
9878 (exec_xfer_partial): Likewise.
9879 * exec.h (section_table_xfer_memory_partial): Update
9881 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9882 instead of plongest.
9883 (gnu_xfer_partial): Likewise.
9884 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9885 (ia64_hpux_xfer_solib_got): Likewise.
9886 (ia64_hpux_xfer_partial): Likewise.
9887 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9888 * inf-ptrace.c (inf_ptrace_xfer_partial):
9889 * inf-ttrace.c (inf_ttrace_xfer_partial):
9890 * linux-nat.c (linux_xfer_siginfo): Likewise.
9891 (linux_nat_xfer_partial): Likewise.
9892 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9893 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9894 * monitor.c (monitor_xfer_memory): Likewise.
9895 (monitor_xfer_partial): Likewise.
9896 * procfs.c (procfs_xfer_partial): Likewise.
9897 * record-full.c (record_full_xfer_partial): Likewise.
9898 (record_full_core_xfer_partial): Likewise.
9899 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9900 instead of plongest.
9901 (gdbsim_xfer_partial): Likewise.
9902 * remote.c (remote_xfer_partial): Likewise.
9903 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9904 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9906 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9907 (rs6000_xfer_shared_libraries): Likewise.
9908 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9909 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9910 (sparc_xfer_partial): Likewise.
9911 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9912 (spu_xfer_partial): Likewise.
9913 * spu-multiarch.c (spu_xfer_partial): Likewise.
9914 * target.c (target_read_live_memory): Likewise.
9915 (memory_xfer_live_readonly_partial): Likewise.
9916 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9917 (target_xfer_partial, default_xfer_partial): Likewise.
9918 (current_xfer_partial): Likewise.
9919 * tracepoint.c (tfile_xfer_partial): Likewise.
9920 * windows-nat.c (windows_xfer_memory): Likewise. Call
9921 pulongest instead of plongest.
9922 (windows_xfer_partial): Likewise.
9923 (windows_xfer_shared_libraries): Likewise.
9925 2014-01-14 Yao Qi <yao@codesourcery.com>
9927 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9928 target_xfer_partial_ftype.
9930 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9934 * valops.c (value_struct_elt_bitpos): New function
9935 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9936 object to 'None' if the field name is an empty string ("").
9937 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9938 attribute to look for a field when 'name' is 'None'.
9939 (get_field_type): New function
9941 2014-01-13 Doug Evans <dje@google.com>
9944 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9945 (try_open_dwop_file): Ditto.
9946 * gdb_bfd.c: #include "vec.h".
9947 (bfdp): New typedef.
9948 (struct gdb_bfd_data): New member included_bfds.
9949 (gdb_bfd_unref): Unref all included bfds.
9950 (gdb_bfd_record_inclusion): New function.
9951 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9953 2014-01-13 Tom Tromey <tromey@redhat.com>
9955 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9957 2014-01-13 Tom Tromey <tromey@redhat.com>
9959 * defs.h (use_windows): Remove.
9960 * gdb.c (main): Update.
9961 * main.c (captured_main, gdb_main): Update.
9962 * main.h (struct captured_main_args) <use_windows>: Remove.
9963 * top.c (use_windows): Remove.
9965 2014-01-13 Tom Tromey <tromey@redhat.com>
9967 * defs.h (deprecated_flush_hook): Remove.
9969 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9972 * linux-thread-db.c (try_thread_db_load): Add parameter
9973 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9974 (try_thread_db_load_from_pdir_1): Move it there from here.
9975 (try_thread_db_load_from_sdir): Update caller.
9976 (try_thread_db_load_from_dir): Move it there from here.
9978 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9980 * regformats/regdat.sh: Always rewrite the register file.
9982 2014-01-13 Pedro Alves <palves@redhat.com>
9984 * Makefile.in (CHECK_HEADERS): New variable.
9985 (check-headers:): New rule.
9987 2014-01-13 Tom Tromey <tromey@redhat.com>
9989 * cli/cli-setshow.c (do_set_command): Update.
9990 * defs.h (deprecated_set_hook): Remove.
9991 * top.c (deprecated_set_hook): Remove.
9993 2014-01-13 Pedro Alves <palves@redhat.com>
9995 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9996 the tracepoint if the PC is a pseudo-register.
9998 2014-01-13 Tom Tromey <tromey@redhat.com>
10000 * defs.h (XCALLOC): Remove.
10001 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10002 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10003 * dwarf2loc.c (allocate_piece_closure): Likewise.
10004 * elfread.c (elf_symfile_segments): Likewise.
10005 (elf_symfile_segments): Likewise.
10006 * gdbtypes.c (copy_type_recursive): Likewise.
10007 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10008 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10009 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10011 * mt-tdep.c (mt_gdbarch_init): Likewise.
10012 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10014 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10015 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10016 * registry.c (registry_alloc_data): Likewise.
10017 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10018 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10019 * serial.c (serial_fdopen_ops): Likewise.
10020 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10022 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10023 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10026 2014-01-13 Tom Tromey <tromey@redhat.com>
10028 * defs.h (XMALLOC): Remove.
10029 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10030 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10031 * cli-out.c (struct ui_out *): Likewise.
10032 * cli/cli-dump.c (add_dump_command): Likewise.
10033 (add_dump_command): Likewise.
10034 * complaints.c (get_complaints): Likewise.
10035 (find_complaint): Likewise.
10036 * dwarf2-frame.c (execute_cfa_program): Likewise.
10037 * dwarf2read.c (abbrev_table_read_table): Likewise.
10038 * gdbarch.sh: Likewise.
10039 * gdbarch.c: Rebuild.
10040 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10041 * interps.c (interp_new): Likewise.
10042 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10043 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10044 * mi/mi-console.c (mi_console_file_new): Likewise.
10045 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10046 * mi/mi-out.c (mi_out_new): Likewise.
10047 * mi/mi-parse.c (mi_parse): Likewise.
10048 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10049 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10050 * observer.c (xalloc_observer_list_node): Likewise.
10051 * regcache.c (regcache_xmalloc_1): Likewise.
10052 * reggroups.c (reggroup_new): Likewise.
10053 (_initialize_reggroup): Likewise.
10054 * registry.c (register_data_with_cleanup): Likewise.
10055 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10056 * ser-base.c (serial_ttystate): Likewise.
10057 * ser-mingw.c (make_pipe_state): Likewise.
10058 * ser-pipe.c (pipe_open): Likewise.
10059 * serial.c (serial_open): Likewise.
10060 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10061 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10062 (tui_alloc_win_info): Likewise.
10063 (tui_add_content_elements): Likewise.
10064 * tui/tui-file.c (tui_file_new): Likewise.
10065 * tui/tui-out.c (tui_out_new): Likewise.
10066 * ui-file.c (mem_file_new): Likewise.
10067 * ui-out.c (push_level): Likewise.
10068 (make_cleanup_ui_out_end): Likewise.
10069 (append_header_to_list): Likewise.
10070 (ui_out_new): Likewise.
10071 * user-regs.c (user_reg_add_builtin): Likewise.
10073 2014-01-13 Tom Tromey <tromey@redhat.com>
10075 * defs.h (XZALLOC): Remove.
10076 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10077 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10078 (get_ada_tasks_inferior_data): Likewise.
10079 * auto-load.c (get_auto_load_pspace_data): Likewise.
10080 * auxv.c (get_auxv_inferior_data): Likewise.
10081 * bfd-target.c (target_bfd_reopen): Likewise.
10082 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10083 (deprecated_insert_raw_breakpoint): Likewise.
10084 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10085 * corelow.c (core_open): Likewise.
10086 * darwin-nat.c (darwin_check_new_threads): Likewise.
10087 (darwin_attach_pid): Likewise.
10088 * dummy-frame.c (dummy_frame_push): Likewise.
10089 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10090 * dwarf2loc.c (allocate_piece_closure): Likewise.
10091 * elfread.c (elf_symfile_segments): Likewise.
10092 * eval.c (ptrmath_type_p): Likewise.
10093 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10094 * gdbtypes.c (alloc_type_arch): Likewise.
10095 (alloc_type_instance): Likewise.
10096 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10097 * inf-child.c (inf_child_can_use_agent): Likewise.
10098 * inflow.c (get_inflow_inferior_data): Likewise.
10099 * infrun.c (save_infcall_suspend_state): Likewise.
10100 * jit.c (jit_reader_load): Likewise.
10101 (get_jit_objfile_data): Likewise.
10102 (get_jit_program_space_data): Likewise.
10103 (jit_object_open_impl): Likewise.
10104 (jit_symtab_open_impl): Likewise.
10105 (jit_block_open_impl): Likewise.
10106 (jit_frame_sniffer): Likewise.
10107 * linux-fork.c (add_fork): Likewise.
10108 * maint.c (make_command_stats_cleanup): Likewise.
10109 * objfiles.c (get_objfile_pspace_data): Likewise.
10110 * opencl-lang.c (struct lval_closure): Likewise.
10111 * osdata.c (osdata_start_osdata): Likewise.
10112 * progspace.c (new_address_space): Likewise.
10113 (add_program_space): Likewise.
10114 * remote-sim.c (get_sim_inferior_data): Likewise.
10115 * sh-tdep.c (sh_gdbarch_init): Likewise.
10116 * skip.c (Ignore): Likewise.
10117 (skip_delete_command): Likewise.
10118 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10119 (library_list_start_library): Likewise.
10120 (solib_aix_current_sos): Likewise.
10121 * solib-darwin.c (get_darwin_info): Likewise.
10122 (darwin_current_sos): Likewise.
10123 * solib-dsbt.c (get_dsbt_info): Likewise.
10124 * solib-ia64-hpux.c (new_so_list): Likewise.
10125 (ia64_hpux_get_solib_linkage_addr): Likewise.
10126 * solib-spu.c (append_ocl_sos): Likewise.
10127 (spu_current_sos): Likewise.
10128 * solib-svr4.c (get_svr4_info): Likewise.
10129 (svr4_keep_data_in_core): Likewise.
10130 (library_list_start_library): Likewise.
10131 (svr4_default_sos): Likewise.
10132 (svr4_read_so_list): Likewise.
10133 * solib-target.c (library_list_start_library): Likewise.
10134 (solib_target_current_sos): Likewise.
10135 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10136 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10137 * symfile.c (default_symfile_segments): Likewise.
10138 * target-descriptions.c (tdesc_data_init): Likewise.
10139 (tdesc_create_reg): Likewise.
10140 (struct tdesc_type *): Likewise.
10141 (tdesc_create_vector): Likewise.
10142 (tdesc_set_struct_size): Likewise.
10143 (struct tdesc_type *): Likewise.
10144 (tdesc_free_feature): Likewise.
10145 (tdesc_create_feature): Likewise.
10146 * windows-nat.c (windows_add_thread): Likewise.
10147 (windows_make_so): Likewise.
10148 * xml-support.c (gdb_xml_body_text): Likewise.
10149 (gdb_xml_create_parser_and_cleanup): Likewise.
10150 (xml_process_xincludes): Likewise.
10151 * xml-syscall.c (allocate_syscalls_info): Likewise.
10152 (syscall_create_syscall_desc): Likewise.
10154 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10156 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10157 function, with code from i386_stap_parse_special_token.
10158 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10159 (i386_stap_parse_special_token): Move code to the two functions
10160 above; simplify it.
10162 2014-01-09 Pedro Alves <palves@redhat.com>
10163 Hui Zhu <hui@codesourcery.com>
10166 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10167 bp_err_string. Don't mark the location shlib_disabled if the
10168 error thrown wasn't a generic or memory error. Catch errors
10169 thrown while inserting breakpoints in overlayed code. Output
10170 error message of software breakpoints.
10171 * remote.c (remote_insert_breakpoint): If this breakpoint has
10172 target-side commands but this stub doesn't support Z0 packets,
10173 throw NOT_SUPPORTED_ERROR error.
10174 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10175 * target.h (target_insert_breakpoint): Extend comment.
10176 (target_insert_hw_breakpoint): Add comment.
10178 2014-01-08 Pedro Alves <palves@redhat.com>
10180 * remote.c (remote_add_thread): Add threads silently if starting
10182 (remote_notice_new_inferior): If in all-stop, and starting up,
10183 don't call notice_new_inferior.
10184 (get_current_thread): New function, factored out from ...
10185 (add_current_inferior_and_thread): ... this. Adjust.
10186 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10187 found any thread, then select the remote's current thread as GDB's
10188 current thread too.
10190 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10192 * NEWS: Create a new section for the next release branch.
10193 Rename the section of the current branch, now that it has
10196 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10198 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10199 * version.in: Bump version to 7.7.50.DATE-cvs.
10201 2014-01-08 Yao Qi <yao@codesourcery.com>
10203 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10204 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10205 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10207 2014-01-08 Yao Qi <yao@codesourcery.com>
10209 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10210 return value of bfd_get_filename to symbol_file_add_from_bfd.
10212 2014-01-08 Pierre Muller <muller@sourceware.org>
10215 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10216 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10217 to prim_record_mininal_symbol_and_info.
10218 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10219 in call to prim_record_minimal_symbol_and_info.
10220 (read_pe_exported_syms): Set index field of section_data.
10222 2014-01-07 Andrew Pinski <apinski@cavium.com>
10224 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10225 * features/aarch64.c: Regenerate.
10227 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10229 * target.c (return_null): Define.
10230 (update_current_target): Use it instead of return_zero for
10231 functions that return a pointer.
10233 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10235 * source.c (add_path): Fix check for duplicated paths in the previously
10238 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10240 * ada-lang.c: Remove duplicated include statements.
10241 * alphabsd-nat.c: Ditto.
10242 * amd64-darwin-tdep.c: Ditto.
10243 * amd64fbsd-nat.c: Ditto.
10244 * auto-load.c: Ditto.
10246 * breakpoint.c: Ditto.
10247 * dbxread.c: Ditto.
10248 * fork-child.c: Ditto.
10249 * gdb_usleep.c: Ditto.
10250 * i386-darwin-tdep.c: Ditto.
10251 * i386fbsd-nat.c: Ditto.
10253 * inferior.c: Ditto.
10254 * jv-lang.c: Ditto.
10255 * linux-nat.c: Ditto.
10256 * linux-tdep.c: Ditto.
10257 * m68kbsd-nat.c: Ditto.
10258 * m68klinux-nat.c: Ditto.
10259 * microblaze-tdep.c: Ditto.
10260 * mips-linux-tdep.c: Ditto.
10261 * mn10300-tdep.c: Ditto.
10262 * nto-tdep.c: Ditto.
10263 * opencl-lang.c: Ditto.
10265 * printcmd.c: Ditto.
10266 * regcache.c: Ditto.
10267 * remote-m32r-sdi.c: Ditto.
10269 * symfile.c: Ditto.
10271 * tilegx-linux-nat.c: Ditto.
10272 * tilegx-tdep.c: Ditto.
10273 * tracepoint.c: Ditto.
10275 * vaxbsd-nat.c: Ditto.
10276 * windows-nat.c: Ditto.
10277 * xtensa-tdep.c: Ditto.
10279 2014-01-07 Yao Qi <yao@codesourcery.com>
10281 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10283 2014-01-07 Yao Qi <yao@codesourcery.com>
10284 Joel Brobecker <brobecker@adacore.com>
10286 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10287 (pdc_write_regs): Likewise.
10288 (fetch_regs_kernel_thread): Likewise.
10289 (store_regs_kernel_thread): Likewise.
10291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10293 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10294 tagged type objects to their actual type.
10296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10298 * ada-valprint.c (print_field_values): Add "language" parameter.
10299 Update calls to print_field_values and print_variant_part.
10300 Pass new parameter "language" in call to val_print instead
10301 of "current_language". Replace call to ada_val_print by call
10303 (print_variant_part): Add "language" parameter.
10304 (ada_val_print_struct_union): Update call to print_field_values.
10306 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10308 * ada-valprint.c (ui_memcpy): Delete.
10309 (ada_print_floating): Update documentation. Add empty line
10310 between between function documentation and implementation.
10311 Delete variable "buffer". Use ui_file_xstrdup in place of
10312 ui_file_put. Minor adjustments following this change.
10314 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10316 * ada-valprint.c (ada_val_print_string): New function,
10317 extracted from ada_val_print_array.
10318 (ada_val_print_array): Replace extracted code by call
10319 to ada_val_print_string followed by a return. Move
10320 "else" branch to the function's top block.
10322 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10324 * ada-valprint.c (ada_val_print_array): Move implementation
10325 down. Rename parameter "offset" and "val" into "offset_aligned"
10326 and "original_value" respectively. Add parameter "offset".
10328 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10330 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10331 re-organizing the code. Change the "???" message printed
10332 when target type is a TYPE_CODE_UNDEF into
10333 "<ref to undefined type>".
10335 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10337 * ada-valprint.c (print_record): Delete, implementation inlined...
10338 (ada_val_print_struct_union): ... here. Remove call to
10339 ada_check_typedef in inlined implementation.
10341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10343 * ada-valprint.c (ada_val_print_gnat_array): New function,
10344 extracted from ada_val_print_1;
10345 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10346 (ada_val_print_flt, ada_val_print_struct_union)
10347 (ada_val_print_ref): Likewise.
10348 (ada_val_print_1): Delete variables i and elttype.
10349 Replace extracted-out code by call to corresponding
10352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10354 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10358 * ada-valprint.c (ada_val_print_1): Replace calls to
10359 ada_val_print_1 by calls to val_print.
10361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10363 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10364 Update calls to self accordingly. Replace calls to c_val_print
10365 by calls to val_print.
10367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10369 * ada-valprint.c (print_record): Delete declaration.
10370 (adjust_type_signedness, ada_val_print_1): Likewise.
10371 (ada_val_print): Move function implementation down.
10372 (print_variant_part, print_field_values, print_record):
10373 Move function implementation up.
10375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10377 * python/py-type.c (typy_get_name): New function.
10378 (type_object_getset): Add entry for attribute "name".
10379 * NEWS: Add entry mentioning this new attribute.
10381 2014-01-07 Yao Qi <yao@codesourcery.com>
10383 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10386 2014-01-07 Yao Qi <yao@codesourcery.com>
10388 * gnu-nat.c (info_port_rights): Add qualifier const to
10391 2014-01-07 Yao Qi <yao@codesourcery.com>
10393 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10395 2014-01-07 Yao Qi <yao@codesourcery.com>
10397 * gnu-nat.c (make_inf) Update declaration.
10398 (make_inf): Make it static.
10399 (inf_set_traced): Likewise.
10400 (inf_port_to_thread, inf_task_died_status): Likewise.
10402 2014-01-07 Yao Qi <yao@codesourcery.com>
10404 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10406 2014-01-07 Yao Qi <yao@codesourcery.com>
10408 * gnu-nat.c (_initialize_gnu_nat): Declare.
10410 2014-01-07 Yao Qi <yao@codesourcery.com>
10412 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10414 (struct gdbarch_info) <byte_order>: Change type to
10416 <byte_order_for_code>: Likewise.
10417 * gdbarch.c, gdbarch.h: Regenerated.
10419 2014-01-06 Sasha Smundak <asmundak@google.com>
10421 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10423 2014-01-06 Tom Tromey <tromey@redhat.com>
10425 * doublest.c (convert_doublest_to_floatformat): Use const, not
10427 * somread.c (som_symtab_read): Likewise.
10429 2014-01-07 Hui Zhu <hui@codesourcery.com>
10431 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10432 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10433 (gdb_bfd_fopen): Ditto.
10434 (gdb_bfd_openr): Ditto.
10435 (gdb_bfd_openw): Ditto.
10436 (gdb_bfd_openr_iovec): Ditto.
10437 (gdb_bfd_fdopenr): Ditto.
10438 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10439 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10441 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10443 * symfile-mem.c (symbol_file_add_from_memory): Removed
10444 gdb_bfd_stash_filename.
10446 2014-01-03 Doug Evans <dje@google.com>
10448 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10451 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10453 Update year range in copyright notice of all files.
10455 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10457 * top.c (print_gdb_version): Set copyright year to 2014.
10459 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10461 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10463 For older changes see ChangeLog-2013.
10469 version-control: never