1 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3 * MAINTAINERS (Write After Approval): Update my email address.
5 2014-07-20 Doug Evans <dje@google.com>
8 * remote.c (putpkt_binary): Add text to error message.
10 2014-07-20 Yao Qi <yao@codesourcery.com>
12 * eval.c: Remove "Chill" from comments.
13 * gdbtypes.h: Likewise.
16 2014-07-20 Yao Qi <yao@codesourcery.com>
18 * std-operator.def: Update comments to TERNOP_SLICE.
20 2014-07-20 Yao Qi <yao@codesourcery.com>
22 * std-operator.def: Remove BINOP_RANGE.
23 * breakpoint.c (watchpoint_exp_is_const): Update.
24 * expprint.c (dump_subexp_body_standard): Likewise.
25 * eval.c (init_array_element): Remove dead code.
26 (evaluate_subexp_standard): Likewise.
28 2014-07-20 Yao Qi <yao@codesourcery.com>
30 * std-operator.def: Remove BINOP_IN.
31 * breakpoint.c (watchpoint_exp_is_const): Update.
32 * eval.c (evaluate_subexp_standard): Likewise.
33 * expprint.c (dump_subexp_body_standard): Likewise.
35 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
37 * microblaze-tdep.c (microblaze_register_names): Add
38 the rshr and rslr register names.
39 (microblaze_gdbarch_init): Use of tdesc_has_registers.
40 Use of tdesc_find_feature. Use of tdesc_data_alloc.
41 Use of tdesc_numbered_register. Use of
42 microblaze_register_g_packet_guesses. Use of
43 tdesc_use_registers. Use of set_gdbarch_register_type.
44 (microblaze_register_g_packet_guesses): New.
45 * microblaze-tdep.h (microblaze_reg_num): Add
46 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
47 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
48 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
49 * features/microblaze-core.xml: New file.
50 * features/microblaze-stack-protect.xml: New file.
51 * features/microblaze-with-stack-protect.c: New file.
52 * features/microblaze-with-stack-protect.xml: New file.
53 * features/microblaze.xml: New file.
54 * features/microblaze.c: New file.
55 * features/Makefile (microblaze-with-stack-protect): Add
56 microblaze-with-stack-protect microblaze and microblaze-expedite.
57 * regformats/microblaze-with-stack-protect.dat: New file.
58 * regformats/microblaze.dat: New file.
59 * doc/gdb.texinfo (MicroBlaze Features): Added.
61 2014-07-18 Tom Tromey <tromey@redhat.com>
63 * exec.c (exec_ops): Now static.
64 * exec.h (exec_ops): Don't declare.
66 2014-07-18 Tom Tromey <tromey@redhat.com>
68 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
69 to find_target_beneath.
70 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
72 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
74 2014-07-18 Tom Tromey <tromey@redhat.com>
77 * utils.c (quit): Use target_supports_terminal_ours.
78 * target.h (target_supports_terminal_ours): Declare.
79 * target.c (target_supports_delete_record): Don't check
80 to_delete_record against NULL.
81 (target_supports_terminal_ours): New function.
83 2014-07-18 Tom Tromey <tromey@redhat.com>
86 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
87 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
88 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
89 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
90 * windows-nat.c (windows_xfer_partial): Always delegate.
91 * record-btrace.c (record_btrace_xfer_partial): Simplify
93 (record_btrace_fetch_registers, record_btrace_store_registers)
94 (record_btrace_prepare_to_store, record_btrace_resume)
95 (record_btrace_wait, record_btrace_find_new_threads)
96 (record_btrace_thread_alive): Likewise.
97 * procfs.c (procfs_xfer_partial): Always delegate.
98 * corelow.c (core_xfer_partial): Always delegate.
99 * sol-thread.c (sol_find_new_threads): Simplify delegation.
101 2014-07-18 Tom Tromey <tromey@redhat.com>
103 * exec.c (exec_make_note_section): Move earlier.
105 2014-07-17 Doug Evans <dje@google.com>
108 * maint.c (count_symtabs_and_blocks): Handle NULL
109 current_program_space.
110 (report_command_stats): Check global enabled flag in addition to
111 recorded enabled flag.
112 (make_command_stats_cleanup): Handle msg_type == 0, startup.
114 2014-07-16 Pedro Alves <palves@redhat.com>
116 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
118 2014-07-16 Tom Tromey <tromey@redhat.com>
120 * target.h (struct target_ops) <to_delete_record>: Reformat
123 2014-07-16 Tom Tromey <tromey@redhat.com>
125 * target-delegates.c: Rebuild.
127 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
129 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
130 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
131 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
132 (avr_pointer_to_address): Likewise.
133 (avr_address_class_type_flags): New function.
134 (avr_address_class_type_flags_to_name): Likewise.
135 (avr_address_class_name_to_type_flags): Likewise.
136 (avr_gdbarch_init): Set address_class_type_flags,
137 address_class_type_flags_to_name and
138 address_class_name_to_type_flags.
140 2014-07-15 Pedro Alves <palves@redhat.com>
142 * linux-nat.c (kill_callback): Save errno and work with saved
145 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
147 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
149 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
151 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
152 breakpoint support correctly.
154 2014-07-14 Pedro Alves <palves@redhat.com>
156 * utils.c (prompt_for_continue): Call target_terminal_ours.
158 2014-07-14 Pedro Alves <palves@redhat.com>
160 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
161 catch_errors. Don't re-enable stdin or notify observers where,
163 (fetch_inferior_event_wrapper): Delete.
165 2014-07-14 Pedro Alves <palves@redhat.com>
168 * top.c: Include "inf-loop.h".
169 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
171 (gdb_readline_wrapper_cleanup): Make the target async again, if it
173 (gdb_readline_wrapper): Store whether the target is async, and
176 2014-07-14 Pedro Alves <palves@redhat.com>
179 * top.c (gdb_readline_wrapper_line): Tweak comment.
180 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
181 the input handler callback.
183 2014-07-14 Pedro Alves <palves@redhat.com>
186 * main.c: Include event-top.h.
187 (handle_command_errors): New function.
188 (catch_command_errors, catch_command_errors_const): Use it.
190 2014-07-14 Pedro Alves <palves@redhat.com>
192 * exceptions.c (catch_command_errors, catch_command_errors_const):
194 * exceptions.h (catch_command_errors_ftype)
195 (catch_command_errors_const_ftype): Moved to main.c.
196 (catch_command_errors, catch_command_errors_const): Delete
198 * main.c (catch_command_errors_ftype)
199 (catch_command_errors_const_ftype): Moved here from exceptions.h.
200 (catch_command_errors, catch_command_errors_const)): Moved here
201 from exceptions.c and make static.
203 2014-07-14 Pedro Alves <palves@redhat.com>
205 * exceptions.c (print_any_exception): Delete.
206 (catch_exceptions_with_msg): Use exception_print instead of
208 (catch_errors): Use exception_fprintf instead of
210 (catch_command_errors, catch_command_errors_const): Use
211 exception_print instead of print_any_exception.
213 2014-07-14 Pedro Alves <palves@redhat.com>
215 * infcall.c (run_inferior_call): Set 'sync_execution' while
216 running the inferior call.
218 2014-07-14 Pedro Alves <palves@redhat.com>
220 * value.c (value_contents_equal): Delete function.
221 * value.h (value_contents_equal): Delete declaration.
223 2014-07-14 Tom Tromey <tromey@redhat.com>
226 * gdbtypes.c (is_dynamic_type_internal): New function, from
228 (is_dynamic_type): Rewrite.
229 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
230 (resolve_dynamic_struct): Likewise.
231 (resolve_dynamic_type_internal): New function, from
232 resolve_dynamic_type.
233 (resolve_dynamic_type): Rewrite.
235 2014-07-14 Tom Tromey <tromey@redhat.com>
237 * target.c (target_require_runnable): Also check record_stratum.
240 2014-07-11 Yao Qi <yao@codesourcery.com>
242 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
243 thumb_instruction_restores_sp return true.
245 2014-07-11 Yao Qi <yao@codesourcery.com>
247 * arm-tdep.c (thumb_instruction_restores_sp): New function.
248 (thumb_in_function_epilogue_p): Call
249 thumb_instruction_restores_sp.
251 2014-07-11 Yao Qi <yao@codesourcery.com>
253 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
255 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
257 2014-07-11 Gary Benson <gbenson@redhat.com>
259 * amd64-linux-nat.c (gdbcore.h): Remove include.
260 (regset.h): Likewise.
261 (nat/linux-btrace.h): Likewise.
262 (btrace.h): Likewise.
263 (gdb_assert.h): Likewise.
264 (string.h): Likewise.
265 (sys/uio.h): Likewise.
266 (sys/debugreg.h): Likewise.
267 (sys/syscall.h): Likewise.
268 (sys/procfs.h): Likewise.
269 (sys/user.h): Likewise.
270 (asm/ptrace.h): Likewise.
271 (i386-nat.h): Likewise.
272 * i386-linux-nat.c (i386-nat.h): Likewise.
273 (regset.h): Likewise.
274 (target.h): Likewise.
275 (linux-nat.h): Likewise.
276 (nat/linux-btrace.h): Likewise.
277 (btrace.h): Likewise.
278 (gdb_assert.h): Likewise.
279 (string.h): Likewise.
280 (sys/uio.h): Likewise.
281 (sys/user.h): Likewise.
282 (sys/procfs.h): Likewise.
283 (sys/reg.h): Likewise.
284 (sys/debugreg.h): Likewise.
285 (ORIG_EAX): Remove definition.
287 2014-07-11 Gary Benson <gbenson@redhat.com>
289 * i386-linux-nat.h: New file.
290 * x86-linux-nat.h: Likewise.
291 * x86-linux-nat.c: Likewise.
292 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
293 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
294 * config/i386/linux64.mh (NATDEPFILES): Likewise.
295 * amd64-linux-nat.c (x86-linux-nat.h): New include.
296 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
297 (PTRACE_SETREGSET): Likewise.
298 (arch_lwp_info): Now in x86-linux-nat.c.
299 (have_ptrace_getregset): Now in x86-linux-nat.h.
300 (x86_linux_dr_get): Now in x86-linux-nat.c.
301 (x86_linux_dr_set): Likewise.
302 (x86_linux_dr_get_addr): Likewise.
303 (x86_linux_dr_get_control): Likewise.
304 (x86_linux_dr_get_status): Likewise.
305 (update_debug_registers_callback): Likewise.
306 (x86_linux_dr_set_control): Likewise.
307 (x86_linux_dr_set_addr): Likewise.
308 (x86_linux_prepare_to_resume): Likewise.
309 (x86_linux_new_thread): Likewise.
310 (x86_linux_new_fork): Likewise.
311 (x86_linux_get_thread_area): Likewise.
312 (super_post_startup_inferior): Likewise.
313 (x86_linux_child_post_startup_inferior): Likewise.
314 (AMD64_LINUX_USER64_CS): Likewise.
315 (AMD64_LINUX_X32_DS): Likewise.
316 (x86_linux_read_description): Likewise.
317 (x86_linux_enable_btrace): Likewise.
318 (x86_linux_disable_btrace): Likewise.
319 (x86_linux_teardown_btrace): Likewise.
320 (x86_linux_read_btrace): Likewise.
321 (x86_linux_create_target): Likewise.
322 (x86_linux_add_target): Likewise.
323 * i386-linux-nat.c (x86-linux-nat.h): New include.
324 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
325 (PTRACE_SETREGSET): Likewise.
326 (arch_lwp_info): Now in x86-linux-nat.c.
327 (have_ptrace_getregset): Now in x86-linux-nat.h.
328 (x86_linux_dr_get): Now in x86-linux-nat.c.
329 (x86_linux_dr_set): Likewise.
330 (x86_linux_dr_get_addr): Likewise.
331 (x86_linux_dr_get_control): Likewise.
332 (x86_linux_dr_get_status): Likewise.
333 (update_debug_registers_callback): Likewise.
334 (x86_linux_dr_set_control): Likewise.
335 (x86_linux_dr_set_addr): Likewise.
336 (x86_linux_prepare_to_resume): Likewise.
337 (x86_linux_new_thread): Likewise.
338 (x86_linux_new_fork): Likewise.
339 (x86_linux_get_thread_area): Likewise.
340 (super_post_startup_inferior): Likewise.
341 (x86_linux_child_post_startup_inferior): Likewise.
342 (AMD64_LINUX_USER64_CS): Likewise.
343 (AMD64_LINUX_X32_DS): Likewise.
344 (x86_linux_read_description): Likewise.
345 (x86_linux_enable_btrace): Likewise.
346 (x86_linux_disable_btrace): Likewise.
347 (x86_linux_teardown_btrace): Likewise.
348 (x86_linux_read_btrace): Likewise.
349 (x86_linux_create_target): Likewise.
350 (x86_linux_add_target): Likewise.
352 2014-07-11 Gary Benson <gbenson@redhat.com>
354 * amd64-linux-nat.c: Comment and whitespace changes.
355 * i386-linux-nat.c: Comment and whitespace changes.
357 2014-07-11 Gary Benson <gbenson@redhat.com>
359 * amd64-linux-nat.c (x86_linux_create_target): New function.
360 (x86_linux_add_target): Likewise.
361 (_initialize_amd64_linux_nat): Delegate to the above new functions.
362 * i386-linux-nat.c (x86_linux_create_target): New function.
363 (x86_linux_add_target): Likewise.
364 (_initialize_i386_linux_nat): Delegate to the above new functions.
366 2014-07-11 Gary Benson <gbenson@redhat.com>
368 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
369 (ps_get_thread_area): Delegate to the above in 32-bit mode.
370 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
371 (ps_get_thread_area): Delegate to the above.
373 2014-07-11 Gary Benson <gbenson@redhat.com>
375 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
376 x86_linux_read_description. All uses updated. amd64-specific
377 code conditionalized. Conditionalized i386-specific code added.
378 Redundant cast removed.
379 * i386-linux-nat.c (i386_linux_read_description): Renamed to
380 x86_linux_read_description. All uses updated. i386-specific
381 code conditionalized. Conditionalized amd64-specific code added.
382 One sizeof replaced with the actual type it is describing.
384 2014-07-11 Gary Benson <gbenson@redhat.com>
386 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
387 x86_linux_dr_get. All uses updated.
388 (amd64_linux_dr_set): Renamed to
389 x86_linux_dr_set. All uses updated.
390 (amd64_linux_dr_get_addr): Renamed to
391 x86_linux_dr_get_addr. All uses updated.
392 (amd64_linux_dr_get_control): Renamed to
393 x86_linux_dr_get_control. All uses updated.
394 (amd64_linux_dr_get_status): Renamed to
395 x86_linux_dr_get_status. All uses updated.
396 (amd64_linux_dr_set_control): Renamed to
397 x86_linux_dr_set_control. All uses updated.
398 (amd64_linux_dr_set_addr): Renamed to
399 x86_linux_dr_set_addr. All uses updated.
400 (amd64_linux_prepare_to_resume): Renamed to
401 x86_linux_prepare_to_resume. All uses updated.
402 (amd64_linux_new_thread): Renamed to
403 x86_linux_new_thread. All uses updated.
404 (amd64_linux_new_fork): Renamed to
405 x86_linux_new_fork. All uses updated.
406 (amd64_linux_child_post_startup_inferior): Renamed to
407 x86_linux_child_post_startup_inferior. All uses updated.
408 (amd64_linux_enable_btrace): Renamed to
409 x86_linux_enable_btrace. All uses updated.
410 (amd64_linux_disable_btrace): Renamed to
411 x86_linux_disable_btrace. All uses updated.
412 (amd64_linux_teardown_btrace): Renamed to
413 x86_linux_teardown_btrace. All uses updated.
414 (amd64_linux_read_btrace): Renamed to
415 x86_linux_read_btrace. All uses updated.
416 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
417 x86_linux_dr_get. All uses updated.
418 (i386_linux_dr_set): Renamed to
419 x86_linux_dr_set. All uses updated.
420 (i386_linux_dr_get_addr): Renamed to
421 x86_linux_dr_get_addr. All uses updated.
422 (i386_linux_dr_get_control): Renamed to
423 x86_linux_dr_get_control. All uses updated.
424 (i386_linux_dr_get_status): Renamed to
425 x86_linux_dr_get_status. All uses updated.
426 (i386_linux_dr_set_control): Renamed to
427 x86_linux_dr_set_control. All uses updated.
428 (i386_linux_dr_set_addr): Renamed to
429 x86_linux_dr_set_addr. All uses updated.
430 (i386_linux_prepare_to_resume): Renamed to
431 x86_linux_prepare_to_resume. All uses updated.
432 (i386_linux_new_thread): Renamed to
433 x86_linux_new_thread. All uses updated.
434 (i386_linux_new_fork): Renamed to
435 x86_linux_new_fork. All uses updated.
436 (i386_linux_child_post_startup_inferior): Renamed to
437 x86_linux_child_post_startup_inferior. All uses updated.
438 (i386_linux_enable_btrace): Renamed to
439 x86_linux_enable_btrace. All uses updated.
440 (i386_linux_disable_btrace): Renamed to
441 x86_linux_disable_btrace. All uses updated.
442 (i386_linux_teardown_btrace): Renamed to
443 x86_linux_teardown_btrace. All uses updated.
444 (i386_linux_read_btrace): Renamed to
445 x86_linux_read_btrace. All uses updated.
447 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
449 * remote.c (extended_remote_post_attach): New function.
450 (init_extended_remote_ops): Install it as to_post_attach method.
452 2014-07-09 Pedro Alves <palves@redhat.com>
454 * infcmd.c (attach_command_post_wait): Don't call
455 target_terminal_inferior here.
456 (attach_command): Call it here instead.
458 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
460 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
462 * c-varobj.c (c_is_path_expr_parent): New function, moved core
463 from varobj.c, with additional checks.
464 (c_varobj_ops): Fill in is_path_expr_parent field.
465 (cplus_varobj_ops): Fill in is_path_expr_parent field.
466 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
468 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
470 (varobj_default_is_path_expr_parent): New function.
471 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
472 (varobj_default_is_path_expr_parent): Declare new function.
474 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
476 * infcmd.c (finish_backward): Turn internal error into normal error.
478 2014-07-07 Pedro Alves <palves@redhat.com>
481 * remote.c (async_handle_remote_sigint)
482 (async_handle_remote_sigint_twice): Call
483 gdb_call_async_signal_handler instead of
484 mark_async_signal_handler.
486 2014-07-07 Tom Tromey <tromey@redhat.com>
488 * target-delegates.c: Rebuild.
489 * target.c (target_info_record): Remove.
490 * record.c (info_record_command): Unconditionally call
492 * target.h (struct target_ops) <to_info_record>: Use
493 TARGET_DEFAULT_IGNORE.
494 (target_info_record): Remove.
496 2014-07-07 Tom Tromey <tromey@redhat.com>
498 * target.h (struct target_ops) <to_get_thread_local_address>: Use
499 TARGET_DEFAULT_NORETURN.
500 * target.c (generic_tls_error): New function.
501 (target_translate_tls_address): Don't search target stack.
502 * target-delegates.c: Rebuild.
503 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
505 * linux-thread-db.c (thread_db_get_thread_local_address):
506 Unconditionally call beneath target.
508 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
510 * cli/cli-logging.c (pop_output_files): Assign targerr to
513 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
515 * MAINTAINERS (Write After Approval): Update my email address.
517 2014-07-02 Gary Benson <gbenson@redhat.com>
519 * proc-service.c (ps_xfer_memory): Update comment.
520 (ps_pstop): Remove unused function.
521 (ps_pcontinue): Likewise.
522 (ps_lstop): Likewise.
523 (ps_lcontinue): Likewise.
524 (ps_lgetxregsize): Likewise.
525 (ps_lgetxregs): Likewise.
526 (ps_lsetxregs): Likewise.
528 (ps_ptread): Likewise.
529 (ps_ptwrite): Likewise.
531 2014-07-01 Mark Wielaard <mjw@redhat.com>
533 * dwarf2read.c (add_array_cv_type): New function.
534 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
535 (read_tag_volatile_type): Likewise.
537 2014-07-01 Tom Tromey <tromey@redhat.com>
539 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
540 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
541 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
542 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
543 * command.h (cmd_cfunc_ftype): Move earlier.
544 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
545 (add_com, add_info): Use cmd_cfunc_ftype.
547 2014-06-30 Tom Tromey <tromey@redhat.com>
549 * symtab.c (operator_chars): Make parameters and return type
551 (file_matches): Make "files" const.
552 (struct search_symbols_data) <files>: Now const.
553 (search_symbols): Make "regexp" and "files" parameters const.
555 (symtab_symbol_info): Remove cast.
556 (rbreak_command): Update.
557 * symtab.h (search_symbols): Update.
559 2014-06-27 Yao Qi <yao@codesourcery.com>
561 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
562 Change parameter type to 'struct thread_info *'. Caller
564 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
566 * dummy-frame.c (struct dummy_frame_id): New.
567 (dummy_frame_id_eq): New function.
568 (struct dummy_frame) <id>: Change its type to 'struct
570 (dummy_frame_push): Add parameter ptid and save it in
572 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
574 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
576 (lookup_dummy_frame): Change parameter type to 'struct
577 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
578 instead of frame_id_eq.
579 (dummy_frame_pop): Add parameter ptid. Callers updated.
580 Update comments. Compose dummy_frame_id and pass it to
582 (dummy_frame_discard): Add parameter ptid.
583 (dummy_frame_sniffer): Compose dummy_frame_id and call
584 dummy_frame_id_eq instead of frame_id_eq.
585 (fprint_dummy_frames): Print ptid.
586 * dummy-frame.h: Remove comments.
587 (dummy_frame_push): Add ptid in declaration.
588 (dummy_frame_pop, dummy_frame_discard): Likewise.
590 2014-06-26 Tom Tromey <tromey@redhat.com>
592 * cli/cli-cmds.c (error_no_arg): Make "why" const.
593 * command.h (error_no_arg): Update.
595 2014-06-26 Tom Tromey <tromey@redhat.com>
597 * cli/cli-setshow.c (do_set_command): Make "arg" const.
598 (do_show_command): Make "arg" const.
599 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
601 2014-06-26 Tom Tromey <tromey@redhat.com>
603 * record-full.c (record_full_get_bookmark): Make "args" const.
604 (record_full_goto_bookmark): Make "raw_bookmark" const.
605 * record.c (record_goto): New function.
606 (cmd_record_goto): Use it. Now static.
607 * record.h (record_goto): Declare.
608 (cmd_record_goto): Remove declaration.
609 * target-delegates.c: Rebuild.
610 * target.h (struct target_ops) <to_get_bookmark,
611 to_goto_bookmark>: Make parameter const.
613 2014-06-26 Tom Tromey <tromey@redhat.com>
615 * defs.h (generic_load): Update.
616 * m32r-rom.c (m32r_load_gen): Make "filename" const.
617 * monitor.c (monitor_load): Make "args" const.
618 * remote-m32r-sdi.c (m32r_load): Make "args" const.
619 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
621 (mips_load): Make "file" const.
622 * remote-sim.c (gdbsim_load): Make "args" const.
623 * remote.c (remote_load): Make "name" const.
624 * symfile.c (generic_load): Make "args" const.
625 * target-delegates.c: Rebuild.
626 * target.c (target_load): Make "arg" const.
627 (debug_to_load): Make "args" const.
628 * target.h (struct target_ops) <to_load>: Make parameter const.
629 (target_load): Update.
631 2014-06-26 Tom Tromey <tromey@redhat.com>
634 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
635 (dwarf2_physname, read_partial_die)
636 (guess_partial_die_structure_name, fixup_partial_die)
637 (guess_full_die_structure_name, anonymous_struct_prefix)
638 (dwarf2_name): Use per-BFD obstack.
640 2014-06-26 Yao Qi <yao@codesourcery.com>
642 * dummy-frame.c (dummy_frame_sniffer): Move local variables
643 dummyframe and this_id into inner block below.
645 2014-06-26 Yao Qi <yao@codesourcery.com>
647 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
648 with "signal_pass[0]" in the initialization of signal_pass.
650 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
652 * record-btrace.c (record_btrace_generating_corefile)
653 (record_btrace_prepare_to_generate_core)
654 (record_btrace_done_generating_core): New.
655 (record_btrace_xfer_partial, record_btrace_fetch_registers)
656 (record_btrace_store_registers, record_btrace_prepare_to_store):
657 Forward request when generating a core file.
658 (record_btrace_open): Set record_btrace_generating_corefile to zero.
659 (init_record_btrace_ops): Set to_prepare_to_generate_core and
660 to_done_generating_core.
662 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
664 * target.h (target_ops) <to_prepare_to_generate_core>
665 <to_done_generating_core>: New.
666 (target_prepare_to_generate_core, target_done_generating_core): New.
667 * target.c (target_prepare_to_generate_core)
668 (target_done_generating_core): New.
669 * target-delegates.c: Regenerate.
670 * gcore.c: (write_gcore_file): Rename to ...
671 (write_gcore_file_1): ...this.
672 (write_gcore_file): Call target_prepare_to_generate_core
673 and target_done_generating_core.
675 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
677 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
678 * gcore.c (write_gcore_file): Free memory returned from
680 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
681 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
683 2014-06-24 Yao Qi <yao@codesourcery.com>
685 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
686 (arm_linux_init_abi): Set skip_trampoline_code with
687 gdbarch_skip_trampoline_code instead of
688 find_solib_trampoline_target.
690 2014-06-24 Yao Qi <yao@codesourcery.com>
692 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
693 arm_skip_bx_reg returns non-zero.
695 2014-06-24 Yao Qi <yao@codesourcery.com>
697 * arm-tdep.c (arm_skip_bx_reg): New function.
698 (arm_skip_stub): Call arm_skip_bx_reg.
700 2014-06-23 Don Breazeal <donb@codesourcery.com>
702 * MAINTAINERS: Add myself as write-after-approval maintainer.
704 2014-06-23 Pedro Alves <palves@redhat.com>
706 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
707 DR_CONTROL before setting DR0..DR3.
708 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
709 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
710 bits of DR_CONTROL related to the debug register slot being
711 disabled. If all slots are vacant, clear local slowdown as well,
712 and assert DR_CONTROL is 0.
714 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
716 * python/lib/gdb/command/xmethods.py
717 (get_method_matchers_in_loci): Lookup xmethod matchers in the
718 current progspace only if the string "progspace" matches LOCUS_RE.
720 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
722 Fix --with-system-readline with readline-6.3 patch 5.
723 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
724 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
727 2014-06-20 Tom Tromey <tromey@redhat.com>
729 * dwarf2read.c (dw2_get_real_path): Use correct type in
731 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
733 2014-06-20 Gary Benson <gbenson@redhat.com>
735 * common/gdb_thread_db.h: Moved to nat. All includes updated.
736 * common/glibc_thread_db.h: Likewise.
737 * common/i386-cpuid.h: Likewise.
738 * common/i386-gcc-cpuid.h: Likewise.
739 * common/linux-btrace.h: Likewise.
740 * common/linux-osdata.h: Likewise.
741 * common/linux-procfs.h: Likewise.
742 * common/linux-ptrace.h: Likewise.
743 * common/mips-linux-watch.h: Likewise.
744 * common/linux-btrace.c: Moved to nat.
745 * common/linux-osdata.c: Likewise.
746 * common/linux-procfs.c: Likewise.
747 * common/linux-ptrace.c: Likewise.
748 * common/mips-linux-watch.c: Likewise.
749 * nat/gdb_thread_db.h: Moved from common.
750 * nat/glibc_thread_db.h: Likewise.
751 * nat/i386-cpuid.h: Likewise.
752 * nat/i386-gcc-cpuid.h: Likewise.
753 * nat/linux-btrace.c: Likewise.
754 * nat/linux-btrace.h: Likewise.
755 * nat/linux-osdata.c: Likewise.
756 * nat/linux-osdata.h: Likewise.
757 * nat/linux-procfs.c: Likewise.
758 * nat/linux-procfs.h: Likewise.
759 * nat/linux-ptrace.c: Likewise.
760 * nat/linux-ptrace.h: Likewise.
761 * nat/mips-linux-watch.c: Likewise.
762 * nat/mips-linux-watch.h: Likewise.
763 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
764 (object file files): Reordered.
765 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
766 of glibc_thread_db.h.
768 2014-06-20 Gary Benson <gbenson@redhat.com>
770 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
771 (i386_dr_low_type): Moved to nat/i386-dregs.h.
772 (i386_dr_low): Likewise.
773 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
774 (i386_dr_low_set_addr): Likewise.
775 (i386_dr_low_get_addr): Likewise.
776 (i386_dr_low_can_set_control): Likewise.
777 (i386_dr_low_set_control): Likewise.
778 (i386_dr_low_get_control): Likewise.
779 (i386_dr_low_get_status): Likewise.
780 (i386_get_debug_register_length): Likewise.
781 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
782 (i386_dr_low): Likewise.
783 * nat/i386-dregs.c (i386-low.h): Remove include.
784 (i386-nat.h): Likewise.
785 (nat/i386-dregs.h): New include.
786 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
787 (i386_dr_low_set_addr): Likewise.
788 (i386_dr_low_get_addr): Likewise.
789 (i386_dr_low_can_set_control): Likewise.
790 (i386_dr_low_set_control): Likewise.
791 (i386_dr_low_get_control): Likewise.
792 (i386_dr_low_get_status): Likewise.
793 (i386_get_debug_register_length): Likewise.
794 (debug_hw_points): Likewise.
796 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
798 * Makefile.in (SFILES): Add d-exp.y.
799 (YYFILES): Add d-exp.c.
800 (YYOBJ): Add d-exp.o.
801 (local-maintainer-clean): Delete d-exp.c.
803 * d-lang.h (d_parse): New declaration.
804 (d_error): New declaration.
805 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
806 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
807 PREC_ORDER operators.
808 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
810 2014-06-19 Yao Qi <yao@codesourcery.com>
812 * gdbthread.h (any_running): Remove the declaration.
813 * thread.c (any_running): Remove.
815 2014-06-19 Yao Qi <yao@codesourcery.com>
817 * gdbthread.h (struct thread_info) <state>: Change its type to
818 'enum thread_state'. Update comments.
820 2014-06-19 Pedro Alves <palves@redhat.com>
822 * gdbthread.h (ALL_THREADS): Delete.
823 (ALL_NON_EXITED_THREADS): New macro.
824 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
825 instead of ALL_THREADS.
826 * infrun.c (find_thread_needs_step_over)
827 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
828 instead of ALL_THREADS.
829 * record-btrace.c (record_btrace_open)
830 (record_btrace_stop_recording, record_btrace_close)
831 (record_btrace_is_replaying, record_btrace_resume)
832 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
833 * remote.c (append_pending_thread_resumptions): Likewise.
834 * thread.c (thread_apply_all_command): Likewise.
836 2014-06-19 Gary Benson <gbenson@redhat.com>
838 * i386-nat.c (i386_stopped_by_watchpoint):
839 Use i386_dr_stopped_by_watchpoint.
840 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
841 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
843 2014-06-19 Gary Benson <gbenson@redhat.com>
845 * nat/i386-dregs.c: New file.
846 * Makefile.in (i386-dregs.o): New rule.
847 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
848 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
849 * config/i386/darwin.mh (NATDEPFILES): Likewise.
850 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
851 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
852 * config/i386/go32.mh (NATDEPFILES): Likewise.
853 * config/i386/linux.mh (NATDEPFILES): Likewise.
854 * config/i386/linux64.mh (NATDEPFILES): Likewise.
855 * config/i386/mingw.mh (NATDEPFILES): Likewise.
856 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
857 * i386-nat.h (debug_hw_points): New declaration.
858 * i386-nat.c (breakpoint.h): Remove include.
859 (command.h): Likewise.
860 (target.h): Likewise.
861 (gdb_assert.h): Likewise.
862 (debug_hw_points): Made nonstatic.
863 (debug_printf): Now in i386-dregs.c.
864 (TARGET_HAS_DR_LEN_8): Likewise.
865 (DR_CONTROL_SHIFT): Likewise.
866 (DR_CONTROL_SIZE): Likewise.
867 (DR_RW_EXECUTE): Likewise.
868 (DR_RW_WRITE): Likewise.
869 (DR_RW_READ): Likewise.
870 (DR_RW_IORW): Likewise.
871 (DR_LEN_1): Likewise.
872 (DR_LEN_2): Likewise.
873 (DR_LEN_4): Likewise.
874 (DR_LEN_8): Likewise.
875 (DR_LOCAL_ENABLE_SHIFT): Likewise.
876 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
877 (DR_ENABLE_SIZE): Likewise.
878 (DR_LOCAL_SLOWDOWN): Likewise.
879 (DR_GLOBAL_SLOWDOWN): Likewise.
880 (DR_CONTROL_RESERVED): Likewise.
881 (I386_DR_CONTROL_MASK): Likewise.
882 (I386_DR_VACANT): Likewise.
883 (I386_DR_LOCAL_ENABLE): Likewise.
884 (I386_DR_GLOBAL_ENABLE): Likewise.
885 (I386_DR_DISABLE): Likewise.
886 (I386_DR_SET_RW_LEN): Likewise.
887 (I386_DR_GET_RW_LEN): Likewise.
888 (I386_DR_WATCH_HIT): Likewise.
889 (i386_wp_op_t): Likewise.
890 (i386_show_dr): Likewise.
891 (i386_length_and_rw_bits): Likewise.
892 (i386_insert_aligned_watchpoint): Likewise.
893 (i386_remove_aligned_watchpoint): Likewise.
894 (i386_handle_nonaligned_watchpoint): Likewise.
895 (i386_update_inferior_debug_regs): Likewise.
896 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
897 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
898 (i386_region_ok_for_watchpoint):
899 Use i386_dr_region_ok_for_watchpoint.
900 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
902 2014-06-19 Gary Benson <gbenson@redhat.com>
904 * i386-nat.c (i386_insert_hw_breakpoint): Use
905 i386_insert_watchpoint.
906 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
908 2014-06-19 Gary Benson <gbenson@redhat.com>
910 * i386-nat.c (i386_dr_show): Renamed to
911 i386_show_dr and made static. All uses updated.
912 (i386_dr_length_and_rw_bits): Renamed to
913 i386_length_and_rw_bits and made static.
915 (i386_dr_insert_aligned_watchpoint): Renamed to
916 i386_insert_aligned_watchpoint and made static.
918 (i386_dr_remove_aligned_watchpoint): Renamed to
919 i386_remove_aligned_watchpoint and made static.
921 (i386_dr_update_inferior_debug_regs): Renamed to
922 i386_update_inferior_debug_regs and made static.
924 * nat/i386-dregs.h (i386_dr_show): Removed.
925 (i386_dr_length_and_rw_bits): Likewise.
926 (i386_dr_insert_aligned_watchpoint): Likewise.
927 (i386_dr_remove_aligned_watchpoint): Likewise.
928 (i386_dr_update_inferior_debug_regs): Likewise.
930 2014-06-19 Gary Benson <gbenson@redhat.com>
932 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
933 * configure: Regenerate.
934 * config.in: Likewise.
935 * main.c (signal.h): New include.
936 (setup_alternate_signal_stack): New function.
937 (captured_main): Call the above.
938 * cp-support.c (signal.h): New include.
939 (catch_demangler_crashes): New flag.
940 (SIGJMP_BUF): New define.
941 (SIGSETJMP): Likewise.
942 (SIGLONGJMP): Likewise.
943 (gdb_demangle_jmp_buf): New static global.
944 (gdb_demangle_attempt_core_dump): Likewise.
945 (gdb_demangle_signal_handler): New function.
946 (gdb_demangle): If catch_demangler_crashes is set, install the
947 above signal handler before calling bfd_demangle, and restore
948 the original signal handler afterwards. Display the offending
949 symbol and call demangler_warning the first time a segmentation
951 (_initialize_cp_support): New maint set/show command.
953 2014-06-19 Gary Benson <gbenson@redhat.com>
955 * utils.h (resource_limit_kind): New enum.
956 (can_dump_core): New declaration.
957 (warn_cant_dump_core): Likewise.
958 (dump_core): Likewise.
959 * utils.c (dump_core): Made nonstatic. Added new
960 parameter "limit_kind".
961 (can_dump_core): Made nonstatic. Moved printing code to...
962 (warn_cant_dump_core): New function.
963 (can_dump_core_warn): Likewise.
964 (internal_vproblem): Replace calls to can_dump_core with
965 calls to can_dump_core_warn. Supply new argument to each.
967 2014-06-19 Gary Benson <gbenson@redhat.com>
969 * utils.h (demangler_vwarning): New declaration.
970 (demangler_warning): Likewise.
971 * utils.c (struct internal_problem)
972 <user_settable_should_quit>: New field.
973 <user_settable_should_dump_core>: Likewise
974 (internal_error_problem): Add values for above new fields.
975 (internal_warning_problem): Likewise.
976 (demangler_warning_problem): New static global.
977 (demangler_vwarning): New function.
978 (demangler_warning): Likewise.
979 (add_internal_problem_command): Selectively add commands.
980 (_initialize_utils): New internal problem command.
981 * maint.c (maintenance_demangler_warning): New function.
982 (_initialize_maint_cmds): New command.
984 2014-06-18 Tom Tromey <tromey@redhat.com>
986 * f-valprint.c (info_common_command_for_block): Update.
987 * symtab.h (struct general_symbol_info) <common_block>: Now
990 2014-06-18 Tom Tromey <tromey@redhat.com>
992 * symtab.h (struct symtab) <blockvector>: Now const.
993 * ada-lang.c (ada_add_global_exceptions): Update.
994 * buildsym.c (augment_type_symtab): Update.
995 * dwarf2read.c (dw2_lookup_symbol): Update.
996 * jit.c (finalize_symtab): Update.
997 * jv-lang.c (add_class_symtab_symbol): Update.
998 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1000 * objfiles.c (objfile_relocate1): Update.
1001 * psymtab.c (lookup_symbol_aux_psymtabs)
1002 (maintenance_check_psymtabs): Update.
1003 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1005 * spu-tdep.c (spu_catch_start): Update.
1006 * symmisc.c (dump_symtab_1): Update.
1007 * symtab.c (lookup_global_symbol_from_objfile)
1008 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1009 (basic_lookup_transparent_type_quick)
1010 (basic_lookup_transparent_type, find_pc_sect_symtab)
1011 (find_pc_sect_line, search_symbols): Update.
1012 * block.c (find_block_in_blockvector): Make "bl" const.
1013 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1015 (blockvector_contains_pc): Make "bv" const.
1016 (block_for_pc_sect): Update.
1017 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1018 (blockvector_contains_pc): Update.
1019 * breakpoint.c (resolve_sal_pc): Update.
1020 * inline-frame.c (block_starting_point_at): Update.
1022 2014-06-18 Tom Tromey <tromey@redhat.com>
1024 * completer.c (complete_line): Make "line_buffer" const.
1025 * completer.h (complete_line): Update.
1027 2014-06-18 Tom Tromey <tromey@redhat.com>
1029 * symtab.c (add_macro_name): Remove unneeded cast.
1031 2014-06-18 Tom Tromey <tromey@redhat.com>
1033 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1034 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1036 2014-06-18 Tom Tromey <tromey@redhat.com>
1038 * probe.c (info_probes_for_ops): Make "arg" const.
1039 * probe.h (info_probes_for_ops): Update.
1041 2014-06-18 Tom Tromey <tromey@redhat.com>
1043 * varobj.c (varobj_create): Update.
1044 * valops.c (value_of_this): Update.
1045 * tracepoint.c (add_local_symbols, scope_info): Update.
1046 * symtab.h (struct general_symbol_info) <block>: Now const.
1047 * symtab.c (skip_prologue_sal)
1048 (default_make_symbol_completion_list_break_on)
1049 (skip_prologue_using_sal): Update.
1050 * stack.h (iterate_over_block_locals)
1051 (iterate_over_block_local_vars): Update.
1052 * stack.c (print_frame_args): Update.
1053 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1055 (get_selected_block): Make return type const.
1056 * python/py-frame.c (frapy_block): Update.
1057 * python/py-block.c (gdbpy_block_for_pc): Update.
1058 * p-exp.y (%union) <bval>: Now const.
1059 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1060 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1061 * m2-exp.y (%union) <bval>: Now const.
1062 * linespec.c (get_current_search_block): Make return type const.
1063 (create_sals_line_offset, find_label_symbols): Update.
1064 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1066 (block_starting_point_at): Make "block" const.
1067 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1068 (check_exception_resume): Update.
1069 * guile/scm-frame.c (gdbscm_frame_block): Update.
1070 * guile/scm-block.c (gdbscm_lookup_block): Update.
1071 * frame.h (get_frame_block): Update.
1072 (get_selected_block): Make return type const.
1073 * frame.c (frame_id_inner): Update.
1074 * f-valprint.c (info_common_command_for_block)
1075 (info_common_command): Update.
1076 * dwarf2loc.c (dwarf2_find_location_expression)
1077 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1078 (locexpr_describe_location_piece): Update.
1079 * c-exp.y (%union) <bval>: Now const.
1080 * breakpoint.c (resolve_sal_pc): Update.
1081 * blockframe.c (get_frame_block):Make return type const.
1082 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1083 (block_innermost_frame): Update.
1084 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1085 (block_for_pc, block_for_pc_sect): Update.
1086 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1088 (block_for_pc_sect, block_for_pc): Make return type const.
1089 * ax-gdb.c (gen_expr): Update.
1090 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1091 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1092 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1093 (ada_read_var_value): Update.
1094 * ada-exp.y (struct name_info) <block>: Now const.
1096 (block_lookup): Constify.
1098 2014-06-18 Gary Benson <gbenson@redhat.com>
1100 * nat/i386-dregs.h: New file.
1101 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1102 * i386-nat.h (i386-dregs.h): New include.
1103 (DR_FIRSTADDR): Now in i386-dregs.h.
1104 (DR_LASTADDR): Likewise.
1105 (DR_NADDR): Likewise.
1106 (DR_STATUS): Likewise.
1107 (DR_CONTROL): Likewise.
1108 (i386_debug_reg_state): Likewise.
1109 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1111 2014-06-18 Don Breazeal <donb@codesourcery.com>
1113 * breakpoint.c (set_longjmp_breakpoint): Call
1114 momentary_breakpoint_from_master with additional argument.
1115 (set_longjmp_breakpoint_for_call_dummy): Call
1116 momentary_breakpoint_from_master with additional argument.
1117 (set_std_terminate_breakpoint): Call
1118 momentary_breakpoint_from_master with additional argument.
1119 (momentary_breakpoint_from_master): Add argument to function
1120 definition and use it to initialize structure member flag.
1121 (clone_momentary_breakpoint): Call
1122 momentary_breakpoint_from_master with additional argument.
1123 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1124 member flags set in momentary_breakpoint_from_master.
1126 2014-06-18 Gary Benson <gbenson@redhat.com>
1128 * i386-nat.c (i386_show_dr): Renamed to
1129 i386_dr_show and made nonstatic. All uses updated.
1130 (i386_length_and_rw_bits): Renamed to
1131 i386_dr_length_and_rw_bits and made nonstatic.
1133 (i386_insert_aligned_watchpoint): Renamed to
1134 i386_dr_insert_aligned_watchpoint and made nonstatic.
1136 (i386_remove_aligned_watchpoint): Renamed to
1137 i386_dr_remove_aligned_watchpoint and made nonstatic.
1139 (i386_update_inferior_debug_regs): Renamed to
1140 i386_dr_update_inferior_debug_regs and made nonstatic.
1143 2014-06-18 Gary Benson <gbenson@redhat.com>
1145 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1146 (i386_dr_low_can_set_control): Likewise.
1147 (i386_dr_low_set_addr): Likewise.
1148 (i386_dr_low_set_control): Likewise.
1149 (i386_dr_low_get_addr): Likewise.
1150 (i386_dr_low_get_status): Likewise.
1151 (i386_dr_low_get_control): Likewise.
1152 (i386_insert_aligned_watchpoint): Use new macros.
1153 (i386_update_inferior_debug_regs): Likewise.
1154 (i386_stopped_data_address): Likewise.
1156 2014-06-18 Gary Benson <gbenson@redhat.com>
1158 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1159 New parameter. All uses updated.
1161 2014-06-18 Gary Benson <gbenson@redhat.com>
1163 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1166 2014-06-18 Gary Benson <gbenson@redhat.com>
1168 * i386-nat.c (debug_printf): New macro.
1169 (i386_get_debug_register_length): Likewise.
1170 (TARGET_HAS_DR_LEN_8): Use above macro.
1171 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1172 and printf_unfiltered. Use phex to format values.
1174 2014-06-18 Gary Benson <gbenson@redhat.com>
1176 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1179 2014-06-18 Gary Benson <gbenson@redhat.com>
1181 * i386-nat.c: Comment changes.
1183 2014-06-18 Gary Benson <gbenson@redhat.com>
1185 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1187 2014-06-18 Gary Benson <gbenson@redhat.com>
1189 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1190 (i386_insert_aligned_watchpoint): Likewise.
1191 (i386_remove_aligned_watchpoint): Likewise.
1192 (i386_handle_nonaligned_watchpoint): Likewise.
1194 2014-06-18 Gary Benson <gbenson@redhat.com>
1196 * i386-nat.c: Whitespace changes.
1198 2014-06-17 Samuel Bronson <naesten@gmail.com>
1200 * MAINTAINERS: Update Roland McGrath's email address.
1201 Thanks to Sergio Durigan Junior for pointing out that he left
1202 Red Hat a while ago, and giving me a current address.
1204 2014-06-17 Tom Tromey <tromey@redhat.com>
1206 * utils.h (savestring): Remove declaration.
1208 2014-06-17 Tom Tromey <tromey@redhat.com>
1210 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1212 2014-06-16 Keith Seitz <keiths@redhat.com>
1215 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1216 to update the varobj if inferior_ptid is null_ptid.
1218 2014-06-16 Tom Tromey <tromey@redhat.com>
1220 * target.h (struct target_ops) <to_info_proc>: Make parameter
1222 (target_info_proc): Update.
1223 * target.c (target_info_proc): Make "args" const.
1224 * procfs.c (procfs_info_proc): Update.
1225 * linux-tdep.c (linux_info_proc): Update.
1226 (linux_core_info_proc_mappings): Make "args" const.
1227 (linux_core_info_proc): Update.
1228 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1229 * gdbarch.c: Rebuild.
1230 * gdbarch.h: Rebuild.
1231 * corelow.c (core_info_proc): Update.
1233 2014-06-16 Tom Tromey <tromey@redhat.com>
1235 * target.h (struct target_ops) <to_disconnect>: Make parameter
1237 (target_disconnect): Update.
1238 * target.c (target_disconnect): Make "args" const.
1239 * target-delegates.c: Rebuild.
1240 * remote.c (remote_disconnect): Update.
1241 * record.h (record_disconnect): Update.
1242 * record.c (record_disconnect): Update.
1243 * inf-child.c (inf_child_disconnect): Update.
1245 2014-06-16 Tom Tromey <tromey@redhat.com>
1247 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1248 * target.c (debug_to_rcmd, default_rcmd): Update.
1249 * target-delegates.c: Rebuild.
1250 * remote.c (remote_rcmd): Update.
1251 * monitor.c (monitor_rcmd): Update.
1253 2014-06-16 Pedro Alves <palves@redhat.com>
1255 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1256 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1257 have OBJF_SHARED set.
1258 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1259 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1260 instead of OBJF_USERLOADED.
1261 * objfiles.h (OBJF_SHARED): Update comment.
1262 (userloaded_objfile_contains_address_p): Rename to ...
1263 (shared_objfile_contains_address_p): ... this, and update
1265 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1267 (remove_symbol_file_command): Skip objfiles that don't have
1270 2014-06-16 Tom Tromey <tromey@redhat.com>
1272 * minsyms.h (prim_record_minimal_symbol)
1273 (prim_record_minimal_symbol_and_info): Update comments.
1275 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1277 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1278 or --without-guile, according to how GDB was built.
1280 2014-06-13 Tom Tromey <tromey@redhat.com>
1282 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1284 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1286 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1288 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1289 help_list.Pass all_commands, not -1, to help_list.
1290 * cli/cli-dump.c (dump_command, append_command)
1291 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1292 (binary_dump_command, binary_append_command): Pass all_commands,
1293 not -1, to help_list.
1294 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1296 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1298 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1300 * top.c (set_history): Pass all_commands, not -1, to help_list.
1301 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1302 all_commands, not -1, to help_list.
1303 * symfile.c (overlay_command): Pass all_commands, not -1, to
1305 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1307 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1309 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1311 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1312 not -1, to help_list.
1313 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1314 not -1, to help_list.
1315 * maint.c (maintenance_command, maintenance_info_command)
1316 (maintenance_print_command, maintenance_set_cmd): Pass
1317 all_commands, not -1, to help_list.
1318 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1320 * language.c (set_check): Pass all_commands, not -1, to help_list.
1321 * infcmd.c (unset_command): Pass all_commands, not -1, to
1323 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1325 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1327 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1329 * breakpoint.c (save_command): Pass all_commands, not -1, to
1331 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1332 all_commands, not -1, to help_list.
1334 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1336 * regcache.c (struct register_to_invalidate): New structure.
1337 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1339 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1341 2014-06-12 Yao Qi <yao@codesourcery.com>
1343 * varobj.c (varobj_get_num_children): Call
1344 varobj_is_dynamic_p.
1345 (varobj_list_children): Likewise.
1346 (varobj_update): Likewise. Update comments.
1348 2014-06-12 Yao Qi <yao@codesourcery.com>
1350 * varobj.c (varobj_pretty_printed_p): Rename to ...
1351 (varobj_is_dynamic_p): ... this. New function.
1352 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1353 (varobj_is_dynamic_p): Declare.
1354 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1355 (mi_print_value_p, varobj_update_one): Likewise.
1357 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1358 Yao Qi <yao@codesourcery.com>
1360 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1361 (varobj_get_iterator): Wrap up code for pretty-printer by
1362 "#if HAVE_PYTHON" and "#endif".
1363 (update_dynamic_varobj_children): Likewise.
1365 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1366 Yao Qi <yao@codesourcery.com>
1368 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1369 gdb_python_initialized is false. Move some code from varobj.c.
1370 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1371 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1372 (struct varobj_item): Moved to varobj-iter.h".
1373 (varobj_clear_saved_item): New function.
1374 (update_dynamic_varobj_children): Move python-related code to
1376 (free_variable): Call varobj_clear_saved_item and
1379 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1380 Yao Qi <yao@codesourcery.com>
1382 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1383 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1384 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1385 (py-varobj.o): New rule.
1386 * python/py-varobj.c: New file.
1387 * python/python-internal.h (py_varobj_get_iterator): Declare.
1388 * varobj-iter.h: New file.
1389 * varobj.c: Include "varobj-iter.h"
1390 (struct varobj) <child_iter>: Change its type from "PyObject *"
1391 to "struct varobj_iter *".
1392 <saved_item>: Likewise.
1393 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1394 [HAVE_PYTHON] (varobj_get_iterator): New function.
1395 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1396 python-specific code to python/py-varobj.c.
1397 (install_visualizer): Call varobj_iter_delete instead of
1399 * varobj.h (varobj_ensure_python_env): Declare.
1401 2014-06-12 Yao Qi <yao@codesourcery.com>
1403 * varobj.c (struct varobj_item): New structure.
1404 (create_child_with_value): Update declaration.
1405 (varobj_add_child): Replace arguments 'name' and 'value' with
1406 'item'. All callers updated.
1407 (install_dynamic_child): Likewise.
1408 (update_dynamic_varobj_children): Likewise.
1409 (varobj_add_child): Likewise.
1410 (create_child_with_value): Likewise.
1412 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1414 * NEWS: Create a new section for the next release branch.
1415 Rename the section of the current branch, now that it has
1418 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1420 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1421 * version.in: Bump version to 7.8.50.DATE-cvs.
1423 2014-06-11 Pedro Alves <palves@redhat.com>
1426 * ser-mingw.c (net_windows_socket_check_pending): New function.
1427 (net_windows_select_thread): Ignore spurious wakeups. Use
1428 net_windows_socket_check_pending.
1429 (net_windows_wait_handle): Check for pending events with
1430 ioctlsocket, through net_windows_socket_check_pending, instead of
1431 checking the socket's event.
1433 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1435 * python/python-internal.h (gdb_PyObject_GetAttrString)
1436 (gdb_PyObject_HasAttrString): New inline function definitions.
1437 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1438 char * of the second argument to PyObject_GetAttrString.
1440 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1442 * serial.c (serial_write): Fix index of character to be printed
1443 in call to serial_logchar when serial debug traces are enabled.
1445 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1447 * gdbtypes (resolve_dynamic_range): Add function description.
1449 2014-06-09 Pedro Alves <palves@redhat.com>
1451 * linux-nat.c (linux_child_follow_fork): Initialize status with
1452 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1453 inner block. Only pass the signal to PTRACE_DETACH if in pass
1456 2014-06-09 Gary Benson <gbenson@redhat.com>
1458 * common/signals.c (gdb_signal_from_host): Reorder to separate
1459 the always-available ANSI-standard signals from the signals that
1461 (do_gdb_signal_to_host): Likewise.
1462 * proc-events.c (signal_table): Likewise.
1464 2014-06-08 Hui Zhu <hui@codesourcery.com>
1466 * common/linux-ptrace.c (linux_disable_event_reporting): New
1468 * common/linux-ptrace.h (linux_disable_event_reporting): New
1470 * linux-nat.c (linux_child_follow_fork): Do a single step before
1473 2014-06-07 Keith Seitz <keiths@redhat.com>
1477 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1478 from symbol_matches_domain in symtab.c. All local callers
1479 of symbol_matches_domain updated.
1480 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1481 search STRUCT_DOMAIN.
1482 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1483 independently. standard_lookup will do that automatically.
1484 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1485 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1486 (cp_lookup_symbol_in_namespace): Likewise.
1487 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1488 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1489 may return a STRUCT_DOMAIN match.
1490 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1491 * cp-support.c: Include language.h.
1492 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1494 * psymtab.c (match_partial_symbol): Compare the requested
1495 domain with the symbol's domain directly.
1496 (lookup_partial_symbol): Likewise.
1497 * symtab.c (lookup_symbol_in_language): Explain when/why
1498 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1499 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1500 appropriate languages.
1501 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1502 and moved to ada-lang.c
1503 (lookup_block_symbol): Explain that this function only returns
1504 symbol matching the requested DOMAIN.
1505 Compare the requested domain with the symbol's domain directly.
1506 (iterate_over_symbols): Compare the requested domain with the
1507 symbol's domain directly.
1508 * symtab.h (symbol_matches_domain): Remove.
1510 2014-06-06 Doug Evans <xdje42@gmail.com>
1512 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1513 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1514 (gdbscm_guile_version_is_at_least): Declare.
1515 (gdbscm_scm_string_to_int): Declare.
1516 * guile/guile.c (gdbscm_guile_major_version): New global.
1517 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1518 (guile_datadir): New static global.
1519 (gdbscm_guile_data_directory): New function.
1520 (initialize_scheme_side): Update.
1521 (misc_guile_functions): Add guile-data-directory.
1522 (initialize_gdb_module): Fetch guile version number.
1523 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1524 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1525 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1526 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1528 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1529 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1530 * guile/scm-value.c (gdbscm_value_to_string): Only call
1531 scm_port_conversion_strategy if Guile version >= 2.0.6.
1533 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1535 * main.c (print_gdb_help): Add -q and --silent.
1537 2014-06-06 Gary Benson <gbenson@redhat.com>
1539 * common/signals.c: Remove preprocessor conditionals for
1540 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1541 SIGSEGV and SIGTERM.
1542 * proc-events.c: Likewise.
1544 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1546 * symfile.c (symfile_free_objfile): Remove restriction to
1548 * symfile-mem.c (symbol_file_add_from_memory): Call
1549 add_target_sections_of_objfile.
1551 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1553 * guile/scm-value.c (gdbscm_history_append_x): Use
1554 'vlscm_get_value_smob_arg_unsafe' instead of
1555 'vlscm_scm_to_value'.
1557 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1560 * utils.c (printchar): Don't escape at all if quoter is NUL.
1561 Update function documentation to clarify effect of parameter
1563 * remote.c (escape_buffer): Pass '\\' as the quoter to
1564 fputstrn_unfiltered.
1565 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1566 generate the output.
1567 (mi_solib_unloaded): Same.
1569 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1571 * development.sh: Delete.
1572 * Makefile.in (config.status): Adjust dependency on development.sh.
1573 * configure.ac: Adjust development.sh source call.
1574 * configure: Regenerate.
1576 2014-06-04 Doug Evans <xdje42@gmail.com>
1578 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1579 is_scheme_bkpt, spec.
1580 (bpscm_make_breakpoint_smob): Initialize new members.
1581 (gdbscm_create_breakpoint_x): Split into two ...
1582 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1583 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1584 (scheme_function breakpoint_functions): Update.
1585 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1586 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1587 register-breakpoint!.
1589 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1592 * mem-break.c (z_type_supported): Return zero if
1593 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1595 2014-06-04 Tom Tromey <tromey@redhat.com>
1597 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1598 value_from_contents_and_address_unresolved.
1599 (ada_template_to_fixed_record_type_1): Likewise.
1600 (ada_which_variant_applies): Likewise.
1601 * value.h (value_from_contents_and_address_unresolved): Declare.
1602 * value.c (value_from_contents_and_address_unresolved): New
1604 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1605 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1606 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1608 2014-06-04 Tom Tromey <tromey@redhat.com>
1610 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1612 2014-06-04 Tom Tromey <tromey@redhat.com>
1614 * procfs.c (procfs_attach): Make "args" const.
1615 * windows-nat.c (windows_attach): Make "args" const.
1616 * nto-procfs.c (procfs_attach): Make "args" const.
1617 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1618 * go32-nat.c (go32_attach): Make "args" const.
1619 * gnu-nat.c (gnu_attach): Make "args" const.
1620 * darwin-nat.c (darwin_attach): Make "args" const.
1621 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1622 * linux-nat.c (linux_nat_attach): Make "args" const.
1623 * remote.c (extended_remote_attach_1, extended_remote_attach):
1625 * target.h (struct target_ops) <to_attach>: Make "args" const.
1626 (find_default_attach): Likewise.
1627 * utils.c (parse_pid_to_attach): Make "args" const.
1628 * utils.h (parse_pid_to_attach): Update.
1630 2014-06-04 Tom Tromey <tromey@redhat.com>
1632 * target-delegates.c: Rebuild.
1633 * target.c (default_thread_address_space): New function.
1634 (target_thread_address_space): Simplify.
1635 * target.h (struct target_ops) <to_thread_address_space>: Add
1636 TARGET_DEFAULT_FUNC.
1638 2014-06-04 Doug Evans <xdje42@gmail.com>
1640 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1642 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1644 * record-btrace.c: Include event-loop.h and inf-loop.h.
1645 (record_btrace_resume_exec_dir)
1646 (record_btrace_async_inferior_event_handler)
1647 (record_btrace_handle_async_inferior_event): New.
1648 (record_btrace_open): Create async event handler.
1649 (record_btrace_close): Delete async event handler.
1650 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1651 Mark async event handler.
1652 (record_btrace_execution_direction): New.
1653 (init_record_btrace_ops): Initialize to_execution_direction.
1655 2014-06-03 Doug Evans <xdje42@gmail.com>
1657 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1658 (gdbscm_make_parameter): Ditto.
1660 2014-06-03 Doug Evans <dje@google.com>
1662 * exec.c (exec_close_1): Call clear_section_table instead of
1663 resize_section_table.
1664 (clear_section_table): New function.
1665 (resize_section_table): Make static. Rename arg num_added to
1667 * exec.h (clear_section_table): Declare.
1668 (resize_section_table): Delete.
1669 * progspace.c (release_program_space): Call clear_section_table
1670 instead of resize_section_table.
1672 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1674 * NEWS (Python Scripting): Add entry about the new xmethods
1677 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1679 * python/py-xmethods.c: New file.
1680 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1681 (objfpy_dealloc): XDECREF on the new xmethods field.
1682 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1684 (objfpy_get_xmethods): New function.
1685 (objfile_getset): New entry 'xmethods'.
1686 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1687 (pspy_dealloc): XDECREF on the new xmethods field.
1688 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1690 (pspy_get_xmethods): New function.
1691 (pspace_getset): New entry 'xmethods'.
1692 * python/python-internal.h: Add declarations for new functions.
1693 * python/python.c (_initialize_python): Invoke
1694 gdbpy_initialize_xmethods.
1695 * python/lib/gdb/__init__.py (xmethods): New
1697 * python/lib/gdb/xmethod.py: New file.
1698 * python/lib/gdb/command/xmethods.py: New file.
1700 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1702 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1703 best match method returned by find_overload_match is an xmethod.
1704 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1705 the best matching operator returned by find_overload_match is an
1707 * valops.c: #include "extension.h".
1708 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1709 Return void. The list of matching source methods is returned in
1710 "fn_list" and a vector of matching debug method workers is
1711 returned in "xm_worker_vec". Update all callers.
1712 (value_find_oload_method_list): Likewise.
1713 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1714 non-NULL, then the index of the best matching method in this
1715 vector is returned. Update all callers.
1716 (find_overload_match): Include xmethods while performing overload
1719 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1721 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1722 * extension-priv.h (struct extension_language_ops): Add the
1724 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1725 get_matching_xmethod_workers, get_xmethod_argtypes,
1726 invoke_xmethod, free_xmethod_worker,
1727 free_xmethod_worker_vec): New functions.
1728 * extension.h: #include "common/vec.h".
1729 New function declarations.
1730 (struct xmethod_worker): New struct.
1731 (VEC (xmethod_worker_ptr)): New vector type.
1732 (xmethod_worker_ptr): New typedef.
1733 (xmethod_worker_vec): Likewise.
1734 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1736 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1737 (struct builtin_type): New field "xmethod".
1738 * valarith.c (value_ptradd): Assert that the value argument is not
1740 * valops.c (value_must_coerce_to_target): Return 0 for
1741 lval_xcallable values.
1742 * value.c (struct value): New field XM_WORKER in the field
1744 (value_address, value_raw_address): Return 0 for lval_xcallable
1746 (set_value_address): Assert that the value is not an
1748 (value_free): Free the associated xmethod worker when freeing
1749 lval_xcallable values.
1750 (set_value_component_location): Assert that the WHOLE value is not
1752 (value_of_xmethod, call_xmethod): New functions.
1753 * value.h: Declare "struct xmethod_worker".
1754 Declare new functions value_of_xmethod, call_xmethod.
1756 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1757 Pedro Alves <palves@redhat.com>
1759 PR breakpoints/17000
1760 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1761 New function, extracted from software_breakpoint_inserted_here_p.
1762 (software_breakpoint_inserted_here_p): Replace factored out code
1763 by call to find_non_raw_software_breakpoint_inserted_here.
1764 (bp_target_info_copy_insertion_state): New function.
1765 (bkpt_insert_location): Handle the case of a single-step
1766 breakpoint already inserted at the same address.
1767 (bkpt_remove_location): Handle the case of a single-step
1768 breakpoint still inserted at the same address.
1769 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1770 breakpoint already inserted at the same address.
1771 (deprecated_remove_raw_breakpoint): Handle the case of a
1772 non-raw breakpoint still inserted at the same address.
1773 (find_single_step_breakpoint): New function, extracted from
1774 single_step_breakpoint_inserted_here_p.
1775 (find_single_step_breakpoint): New function,
1776 factored out from single_step_breakpoint_inserted_here_p.
1777 (single_step_breakpoint_inserted_here_p): Reimplement.
1779 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1781 Pushed by Joel Brobecker <brobecker@adacore.com>
1782 * source.c (show_substitute_path_command): Fix display of matching
1785 2014-06-03 Gary Benson <gbenson@redhat.com>
1787 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1789 2014-06-02 Doug Evans <xdje42@gmail.com>
1791 Add parameter support for Guile.
1792 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1793 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1794 (scm-param.o): New rule.
1795 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1796 (gdbscm_misc_error): Declare.
1797 (gdbscm_canonicalize_command_name): Declare.
1798 (gdbscm_scm_to_host_string): Declare.
1799 (gdbscm_scm_from_host_string): Declare.
1800 (gdbscm_initialize_parameters): Declare.
1801 * guile/guile.c (initialize_gdb_module): Call
1802 gdbscm_initialize_parameters.
1803 * guile/lib/gdb.scm: Export parameter symbols.
1804 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1805 cmdscm_canonicalize_name and made public. All callers updated.
1806 * guile/scm-exception.c (gdbscm_misc_error): New function.
1807 * guile/scm-param.c: New file.
1808 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1809 (gdbscm_scm_to_host_string): New function.
1810 (gdbscm_scm_from_host_string): New function.
1811 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1813 2014-06-02 Doug Evans <xdje42@gmail.com>
1815 Add command support for Guile.
1816 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1817 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1818 (scm-cmd.o): New rule.
1819 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1820 (gdbscm_user_error_p): Declare.
1821 (gdbscm_parse_command_name): Declare.
1822 (gdbscm_valid_command_class_p): Declare.
1823 (gdbscm_initialize_commands): Declare.
1824 * guile/guile.c (initialize_gdb_module): Call
1825 gdbscm_initialize_commands.
1826 * guile/lib/gdb.scm: Export command symbols.
1827 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1828 (throw-user-error): New function.
1829 * guile/scm-cmd.c: New file.
1830 * guile/scm-exception.c (user_error_symbol): New static global.
1831 (gdbscm_user_error_p): New function.
1832 (gdbscm_initialize_exceptions): Set user_error_symbol.
1833 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1835 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1837 * top.c (command_loop): Handle comments here...
1838 (command_line_input): ... not here.
1840 2014-06-02 Doug Evans <xdje42@gmail.com>
1842 Add progspace support for Guile.
1843 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1844 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1845 (scm-progspace.o): New rule.
1846 * guile/guile-internal.h (pspace_smob): New typedef.
1847 (psscm_pspace_smob_pretty_printers): Declare.
1848 (psscm_pspace_smob_from_pspace): Declare.
1849 (psscm_scm_from_pspace): Declare.
1850 * guile/guile.c (initialize_gdb_module): Call
1851 gdbscm_initialize_pspaces.
1852 * guile/lib/gdb.scm: Export progspace symbols.
1853 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1855 (append-pretty-printer!): Ditto.
1856 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1858 * guile/scm-progspace.c: New file.
1860 2014-06-03 Alan Modra <amodra@gmail.com>
1862 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1863 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1865 2014-06-02 Doug Evans <dje@google.com>
1867 Add support for skeletonless type units.
1868 * dwarf2read.c (struct dwarf2_per_objfile): New member
1869 n_allocated_type_units.
1870 (struct dwarf2_per_objfile) <tu_stats>: New member
1871 nr_all_type_units_reallocs.
1872 (create_signatured_type_table_from_index): Initialize
1873 n_allocated_type_units
1874 (create_all_type_units): Ditto.
1875 (add_type_unit): Move up in file. New arg slot.
1876 All callers updated. Increase space for all_type_units more
1878 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1879 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1880 (lookup_dwp_signatured_type): Ditto.
1881 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1882 All callers updated.
1883 (build_type_psymtabs_1): Leave type_unit_groups as
1884 NULL if no TUs present.
1885 (print_tu_stats): New function.
1886 (process_skeletonless_type_unit): New function.
1887 (process_dwo_file_for_skeletonless_type_units): New
1889 (process_skeletonless_type_units): New function.
1890 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1891 Call print tu_stats if debugging enabled.
1893 2014-06-02 Pedro Alves <palves@redhat.com>
1895 * breakpoint.c (build_target_command_list): Don't build a command
1896 list if we have any duplicate location that isn't a dprintf.
1898 2014-06-02 Pedro Alves <palves@redhat.com>
1900 * breakpoint.c (dprintf_breakpoint_hit): New function.
1901 (initialize_breakpoint_ops): Install it as dprintf's
1902 breakpoint_hit method.
1904 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1906 * source.c (substitute_path_rule_matches): Simplify using
1907 filename_ncmp instead of FILENAME_CMP.
1909 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1911 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1913 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1915 * configure.ac: When Guile is available, check for the
1916 availability of 'scm_new_smob'.
1917 * configure, config.h.in: Regenerate.
1918 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1921 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1923 * frame.c (struct frame_info): Add stop_string field.
1924 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1925 (get_prev_frame_always): Old content moved into
1926 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1927 TRY_CATCH, handle MEMORY_ERROR exceptions.
1928 (frame_stop_reason_string): New function definition.
1929 * frame.h (unwind_stop_reason_to_string): Extend comment to
1930 mention frame_stop_reason_string.
1931 (frame_stop_reason_string): New function declaration.
1932 * stack.c (frame_info): Switch to frame_stop_reason_string.
1933 (backtrace_command_1): Switch to frame_stop_reason_string.
1934 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1935 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1936 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1938 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1940 * frame.c (frame_stop_reason_string): Rename to ...
1941 (unwind_stop_reason_to_string): this.
1942 * frame.h (frame_stop_reason_string): Rename to ...
1943 (unwind_stop_reason_to_string): this.
1944 * stack.c (frame_info): Update call to frame_stop_reason_string.
1945 (backtrace_command_1): Likewise.
1946 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1947 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1949 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1951 * frame.c (remove_prev_frame): New function.
1952 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1955 2014-05-29 Pedro Alves <palves@redhat.com>
1957 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1958 and make it const. When a single-step decays to a continue,
1959 clear 'step', not 'hw_step'. Pass whether the caller wanted
1960 to step to user_visible_resume_ptid, not what we ask the
1963 2014-05-29 Pedro Alves <palves@redhat.com>
1965 * infrun.c (process_event_stop_test, handle_step_into_function)
1966 (handle_step_into_function_backward): Adjust.
1967 Don't set the even thread's stop_step and call stop_waiting before
1968 calling end_stepping_range. Instead do that ...
1969 (end_stepping_range): ... here. Take an ecs pointer parameter.
1971 2014-05-29 Pedro Alves <palves@redhat.com>
1973 * infrun.c (stop_stepping): Rename to ...
1974 (stop_waiting): ... this.
1975 (proceed): Update comment.
1976 (process_event_stop_test, handle_inferior_event)
1977 (handle_signal_stop, handle_step_into_function)
1978 (handle_step_into_function_backward): Update.
1980 2014-05-29 Pedro Alves <palves@redhat.com>
1982 * infcall.c (run_inferior_call): Don't check whether the current
1983 thread is running after the proceed call.
1985 2014-05-29 Pedro Alves <palves@redhat.com>
1986 Tom Tromey <tromey@redhat.com>
1988 * NEWS: Mention "maint set target-async", "set mi-async", and that
1989 background execution commands are now always available.
1990 * target.h (target_async_permitted): Update comment.
1991 * target.c (target_async_permitted, target_async_permitted_1):
1993 (set_target_async_command): Rename to ...
1994 (maint_set_target_async_command): ... this.
1995 (show_target_async_command): Rename to ...
1996 (maint_show_target_async_command): ... this.
1997 (_initialize_target): Adjust.
1998 * infcmd.c (prepare_execution_command): Make extern.
1999 * inferior.h (prepare_execution_command): Declare.
2000 * infrun.c (set_observer_mode): Leave target async alone.
2001 * mi/mi-interp.c (mi_interpreter_init): Install
2002 mi_on_sync_execution_done as sync_execution_done observer.
2003 (mi_on_sync_execution_done): New function.
2004 (mi_execute_command_input_handler): Don't print the prompt if we
2005 just started a synchronous command with an async target.
2006 (mi_on_resume): Check sync_execution before printing prompt.
2007 * mi/mi-main.h (mi_async_p): Declare.
2008 * mi/mi-main.c: Include gdbcmd.h.
2009 (mi_async_p): New function.
2010 (mi_async, mi_async_1): New globals.
2011 (set_mi_async_command, show_mi_async_command, mi_async): New
2013 (exec_continue): Call prepare_execution_command.
2014 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2015 (mi_execute_async_cli_command): Use mi_async_p.
2016 (_initialize_mi_main): Install "set mi-async". Make
2017 "target-async" a deprecated alias.
2019 2014-05-29 Pedro Alves <palves@redhat.com>
2021 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2022 (_initialize_cli_interp): Adjust.
2023 * event-loop.c: Include "observer.h".
2024 (start_event_loop): Notify 'command_error' observers instead of
2025 calling display_gdb_prompt. Remove FIXME comment.
2026 * event-top.c (display_gdb_prompt): Remove call into the
2028 * inf-loop.c: Include "observer.h".
2029 (inferior_event_handler): Notify 'command_error' observers instead
2030 of calling display_gdb_prompt.
2031 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2032 observers instead of calling display_gdb_prompt.
2033 * interps.c (interp_set): Don't call display_gdb_prompt.
2034 (current_interp_display_prompt_p): Delete.
2035 * interps.h (interp_prompt_p): Delete declaration.
2036 (interp_prompt_p_ftype): Delete.
2037 (struct interp_procs) <prompt_proc_p>: Delete field.
2038 (current_interp_display_prompt_p): Delete declaration.
2039 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2040 (_initialize_mi_interp): Adjust.
2041 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2042 'command_error' observers.
2043 (tui_on_sync_execution_done, tui_on_command_error): New
2045 (tui_display_prompt_p): Delete.
2046 (_initialize_tui_interp): Adjust.
2048 2014-05-29 Pedro Alves <palves@redhat.com>
2051 * cli/cli-interp.c: Include infrun.h and observer.h.
2052 (cli_uiout, cli_interp): New globals.
2053 (cli_on_signal_received, cli_on_end_stepping_range)
2054 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2056 (cli_interpreter_init): Install them as 'end_stepping_range',
2057 'signal_received' 'signal_exited', 'exited' and 'no_history'
2059 (_initialize_cli_interp): Remove cli_interp local.
2060 * infrun.c (handle_inferior_event): Call the several stop reason
2061 observers instead of printing the stop reason directly.
2062 (end_stepping_range): New function.
2063 (print_end_stepping_range_reason, print_signal_exited_reason)
2064 (print_exited_reason, print_signal_received_reason)
2065 (print_no_history_reason): Make static, and add an uiout
2066 parameter. Print to that instead of to CURRENT_UIOUT.
2067 * infrun.h (print_end_stepping_range_reason)
2068 (print_signal_exited_reason, print_exited_reason)
2069 (print_signal_received_reason print_no_history_reason): New
2071 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2073 <cli_uiout>: New field.
2074 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2075 uiout for CLI output. Install 'signal_received',
2076 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2078 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2079 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2080 (mi_on_no_history): New functions.
2081 (ui_out_free_cleanup): Delete function.
2082 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2083 instead use the one already stored in the MI interpreter data.
2084 (mi_ui_out): Adjust.
2085 * tui/tui-interp.c: Include infrun.h and observer.h.
2086 (tui_interp): New global.
2087 (tui_on_signal_received, tui_on_end_stepping_range)
2088 (tui_on_signal_exited, tui_on_exited)
2089 (tui_on_no_history): New functions.
2090 (tui_init): Install them as 'end_stepping_range',
2091 'signal_received' 'signal_exited', 'exited' and 'no_history'
2093 (_initialize_tui_interp): Delete tui_interp local.
2095 2014-05-29 Pedro Alves <palves@redhat.com>
2098 * linux-nat.c (linux_nat_resume_callback): Rename the second
2099 parameter to 'except'. Skip LP if it points to EXCEPT.
2100 (linux_nat_resume): Don't mark the event lwp as not stopped
2101 before resuming sibling lwps. Instead ask
2102 linux_nat_resume_callback to skip the event lwp. Mark it as not
2103 stopped after actually resuming it.
2104 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2106 (wait_lwp): Mark the lwp as stopped here.
2107 (stop_wait_callback): Mark the lwp as not stopped right after
2108 resuming it. Don't mark lwps as stopped here.
2109 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2110 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2112 2014-05-29 Pedro Alves <palves@redhat.com>
2115 * infrun.c (resume): Determine how much to resume depending on
2116 whether the caller wanted a step, not whether we can hardware step
2117 the target. Mark all threads that we intend to run as running,
2118 unless we're calling an inferior function.
2119 (normal_stop): If the thread is running an infcall, don't finish
2121 * target.c (target_resume): Don't mark threads as running here.
2123 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2125 * serial.c (_initialize_serial): Remove support for
2126 the "set remotebaud" and "show remotebaud" commands.
2127 * NEWS: Add entry documenting the removal of that command.
2129 2014-05-28 Yao Qi <yao@codesourcery.com>
2131 * charset.c: Fix typo in comments.
2133 2014-05-27 Gary Benson <gbenson@redhat.com>
2135 * utils.c (internal_vproblem): Prompt for a bug report.
2137 2014-05-26 Andy Wingo <wingo@igalia.com>
2139 * guile/scm-arch.c (arscm_mark_arch_smob):
2140 * guile/scm-block.c (bkscm_mark_block_smob)
2141 (bkscm_mark_block_syms_progress_smob):
2142 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2143 * guile/scm-exception.c (exscm_mark_exception_smob):
2144 * guile/scm-frame.c (frscm_mark_frame_smob):
2145 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2146 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2147 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2148 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2149 (ppscm_mark_pretty_printer_worker_smob):
2150 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2151 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2152 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2153 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2155 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2158 2014-05-26 Andy Wingo <wingo@igalia.com>
2159 Doug Evans <xdje42@gmail.com>
2161 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2162 empty_base_class. All uses updated.
2163 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2164 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2166 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2167 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2168 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2169 (gdbscm_gsmob_has_property_p, add_property_name)
2170 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2171 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2172 (gdb-object-has-property?, gdb-object-properties): Remove.
2173 (gdb-object-kind): Renamed from gsmob-kind.
2175 2014-05-26 Andy Wingo <wingo@igalia.com>
2177 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2178 * configure: Regenerate.
2180 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2182 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2184 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2186 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2187 (replay_memory_access_read_only, replay_memory_access_read_write)
2188 (replay_memory_access_types, replay_memory_access)
2189 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2190 (cmd_set_record_btrace, cmd_show_record_btrace)
2191 (cmd_show_replay_memory_access): New.
2192 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2193 (record_btrace_remove_breakpoint): Replace
2194 record_btrace_allow_memory_access with replay_memory_access.
2195 (_initialize_record_btrace): Add commands.
2196 * NEWS: Announce it.
2198 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2200 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2202 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2204 * MAINTAINERS (Write After Approval): Move self back from
2207 2014-05-22 Pedro Alves <palves@redhat.com>
2209 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2210 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2211 (disable_randomization, enum exec_direction_kind)
2212 (execution_direction, stop_registers, start_remote)
2213 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2214 (wait_for_inferior, normal_stop, get_last_target_status)
2215 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2216 (insert_step_resume_breakpoint_at_sal)
2217 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2218 (set_step_info, print_stop_event, signal_stop_state)
2219 (signal_print_state, signal_pass_state, signal_stop_update)
2220 (signal_print_update, signal_pass_update)
2221 (update_signals_program_target, clear_exit_convenience_vars)
2222 (displaced_step_dump_bytes, update_observer_mode)
2223 (signal_catch_update, gdb_signal_from_command): Move
2225 * infrun.h: ... to this new file.
2226 * amd64-tdep.c: Include infrun.h.
2227 * annotate.c: Include infrun.h.
2228 * arch-utils.c: Include infrun.h.
2229 * arm-linux-tdep.c: Include infrun.h.
2230 * arm-tdep.c: Include infrun.h.
2231 * break-catch-sig.c: Include infrun.h.
2232 * breakpoint.c: Include infrun.h.
2233 * common/agent.c: Include infrun.h instead of inferior.h.
2234 * corelow.c: Include infrun.h.
2235 * event-top.c: Include infrun.h.
2236 * go32-nat.c: Include infrun.h.
2237 * i386-tdep.c: Include infrun.h.
2238 * inf-loop.c: Include infrun.h.
2239 * infcall.c: Include infrun.h.
2240 * infcmd.c: Include infrun.h.
2241 * infrun.c: Include infrun.h.
2242 * linux-fork.c: Include infrun.h.
2243 * linux-nat.c: Include infrun.h.
2244 * linux-thread-db.c: Include infrun.h.
2245 * monitor.c: Include infrun.h.
2246 * nto-tdep.c: Include infrun.h.
2247 * procfs.c: Include infrun.h.
2248 * record-btrace.c: Include infrun.h.
2249 * record-full.c: Include infrun.h.
2250 * remote-m32r-sdi.c: Include infrun.h.
2251 * remote-mips.c: Include infrun.h.
2252 * remote-notif.c: Include infrun.h.
2253 * remote-sim.c: Include infrun.h.
2254 * remote.c: Include infrun.h.
2255 * reverse.c: Include infrun.h.
2256 * rs6000-tdep.c: Include infrun.h.
2257 * s390-linux-tdep.c: Include infrun.h.
2258 * solib-irix.c: Include infrun.h.
2259 * solib-osf.c: Include infrun.h.
2260 * solib-svr4.c: Include infrun.h.
2261 * target.c: Include infrun.h.
2262 * top.c: Include infrun.h.
2263 * windows-nat.c: Include infrun.h.
2264 * mi/mi-interp.c: Include infrun.h.
2265 * mi/mi-main.c: Include infrun.h.
2266 * python/py-threadevent.c: Include infrun.h.
2268 2014-05-22 Pedro Alves <palves@redhat.com>
2270 * infrun.c (handle_inferior_event): Store the exit code for
2271 --return-child-result here, instead of ...
2272 (print_exited_reason): ... here.
2274 2014-05-21 Pedro Alves <palves@redhat.com>
2277 * gdbthread.h (struct thread_control_state): New field
2279 * infrun.c (follow_fork): Copy the new thread control field to the
2281 (clear_proceed_status_thread): Clear the new thread control field.
2282 (proceed): Set the new thread control field.
2283 * interps.h (command_interp): Declare.
2284 * interps.c (command_interpreter): New global.
2285 (command_interp): New function.
2286 (interp_exec): Set `command_interpreter' while here.
2287 * cli-out.c (cli_uiout_dtor): New function.
2288 (cli_ui_out_impl): Install it.
2289 * mi/mi-interp.c: Include cli-out.h.
2290 (mi_cmd_interpreter_exec): Add comment.
2291 (restore_current_uiout_cleanup): New function.
2292 (ui_out_free_cleanup): New function.
2293 (mi_on_normal_stop): If finishing an execution command started by
2294 a CLI command, or any kind of breakpoint-like event triggered,
2295 print the stop event to the output (CLI) stream.
2296 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2298 2014-05-21 Pedro Alves <palves@redhat.com>
2300 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2301 current source line having changed.
2302 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2303 * infrun.c (normal_stop): Adjust call to
2304 set_current_sal_from_frame.
2305 * source.c (clear_lines_listed_range): New function.
2306 (set_current_source_symtab_and_line, identify_source_line): Clear
2307 the lines listed range.
2308 (line_info): Handle the first "info line" after the current source
2309 line having changed.
2310 * stack.c (print_stack_frame): Remove center handling.
2311 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2314 2014-05-21 Pedro Alves <palves@redhat.com>
2316 * inf-child.c (inf_child_mourn_inferior): New function.
2317 * inf-child.h (inf_child_mourn_inferior): New declaration.
2318 * darwin-nat.c (darwin_mourn_inferior): Use
2319 inf_child_mourn_inferior.
2320 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2321 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2322 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2323 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2324 * windows-nat.c (windows_mourn_inferior): Likewise.
2326 2014-05-21 Doug Evans <xdje42@gmail.com>
2328 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2330 2014-05-21 Doug Evans <xdje42@gmail.com>
2332 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2333 (gdbscm_out_of_range_error): Ditto.
2334 (gdbscm_memory_error): Ditto.
2335 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2336 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2337 (gdbscm_out_of_range_error): Update.
2338 (gdbscm_memory_error): Update.
2339 (gdbscm_scm_to_target_string_unsafe): Delete.
2341 2014-05-21 Pedro Alves <palves@redhat.com>
2343 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2345 (inf_child_open_target): New function.
2346 (inf_child_open): Use inf_child_open_target to push the target
2347 instead of erroring out.
2348 (inf_child_disconnect, inf_child_close)
2349 (inf_child_maybe_unpush_target): New functions.
2350 (inf_child_target): Install inf_child_disconnect and
2351 inf_child_close. Store a pointer to the returned object.
2352 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2354 * target.c (auto_connect_native_target): New global.
2355 (show_default_run_target): New function.
2356 (find_default_run_target): Return NULL if automatically connecting
2357 to the native target is disabled.
2358 (_initialize_target): Install set/show auto-connect-native-target.
2359 * NEWS: Mention "set auto-connect-native-target", and "target
2361 * linux-nat.c (super_close): New global.
2362 (linux_nat_close): Call super_close.
2363 (linux_nat_add_target): Store a pointer to the base class's
2365 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2366 inf_child_maybe_unpush.
2367 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2369 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2370 the inferior. Use inf_child_maybe_unpush_target.
2371 (inf_ttrace_attach): Don't push the target if it is already
2373 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2374 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2375 after mourning the inferior. Use inf_child_maybe_unpush_target.
2376 (darwin_attach_pid): Don't push the target if it is already
2378 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2379 mourning the inferior. Use inf_child_maybe_unpush_target.
2380 (gnu_detach): Use inf_child_maybe_unpush_target.
2381 * go32-nat.c (go32_create_inferior): Don't push the target if it
2383 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2384 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2385 (procfs_open): Rename to ...
2386 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2387 comments. Can target_preopen before changing node. Call
2388 inf_child_open_target to push the target explicitly.
2389 (procfs_attach): Don't push the target if it is already pushed.
2390 (procfs_detach): Use inf_child_maybe_unpush_target.
2391 (procfs_create_inferior): Don't push the target if it is already
2393 (nto_native_ops): New global.
2394 (procfs_open): Reimplement.
2395 (procfs_native_open): New function.
2396 (init_procfs_targets): Install procfs_native_open as to_open of
2397 "target native". Store a pointer to the "native" target in
2399 * procfs.c (procfs_attach): Don't push the target if it is already
2401 (procfs_detach): Use inf_child_maybe_unpush_target.
2402 (procfs_mourn_inferior): Only unpush the target after mourning the
2403 inferior. Use inf_child_maybe_unpush_target.
2404 (procfs_init_inferior): Don't push the target if it is already
2406 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2407 if it is already pushed.
2409 2014-05-21 Pedro Alves <palves@redhat.com>
2411 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2412 and "procfs" targets are now called "native" instead.
2414 2014-05-21 Pedro Alves <palves@redhat.com>
2416 * go32-nat.c (go32_open): Delete.
2417 (go32_target): Don't override the to_open method.
2419 2014-05-21 Pedro Alves <palves@redhat.com>
2421 * nto-procfs.c (procfs_can_run): New function.
2422 (nto_procfs_ops): New global.
2423 (init_procfs_targets): New, based on procfs_target. Install
2424 "target native" in addition to "target procfs".
2425 (_initialize_procfs): Call init_procfs_targets instead of adding
2428 2014-05-21 Pedro Alves <palves@redhat.com>
2430 * windows-nat.c (windows_target): Don't override to_shortname,
2431 to_longname or to_doc.
2433 2014-05-21 Pedro Alves <palves@redhat.com>
2435 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2438 2014-05-21 Pedro Alves <palves@redhat.com>
2440 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2441 to_shortname, to_longname or to_doc.
2443 2014-05-21 Pedro Alves <palves@redhat.com>
2445 * go32-nat.c (go32_target): Don't override to_shortname,
2446 to_longname or to_doc.
2448 2014-05-21 Pedro Alves <palves@redhat.com>
2450 * inf-child.c (inf_child_open): Remove mention of "child".
2451 (inf_child_target): Rename target to "native" instead of "child".
2453 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455 * Makefile.in (SFILES): Delete "regset.c".
2456 (COMMON_OBS): Delete "regset.o".
2458 * regset.h (regset_alloc): Delete prototype.
2460 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2462 * sparc-linux-tdep.c (sparc32_linux_gregset)
2463 (sparc32_linux_fpregset): New static regset structures.
2464 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2465 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2467 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2468 (sparc64_linux_fpregset): New static regset structures.
2469 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2470 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2471 New static regset structures.
2472 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2473 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2474 New static regset structures.
2475 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2476 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2477 New static regset structures.
2478 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2479 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2480 New static regset structures.
2481 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2483 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2486 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2487 register maps ("regmaps") from "*regset" to "*regmap". Do this
2488 for all regmap types and variables.
2489 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2490 (sparc32_linux_supply_core_gregset)
2491 (sparc32_linux_collect_core_gregset)
2492 (sparc32_linux_supply_core_fpregset)
2493 (sparc32_linux_collect_core_fpregset): Likewise.
2494 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2495 (sparc_gregmap, sparc_fpregmap): ... these.
2496 (sparc_supply_gregset, sparc_collect_gregset)
2497 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2498 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2499 (_initialize_sparc_nat): Rename regmaps.
2500 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2501 (sparc_gregmap, sparc_fpregmap): ... these.
2502 (sparc_supply_gregset, sparc_collect_gregset)
2503 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2504 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2506 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2507 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2509 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2511 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2512 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2513 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2515 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2516 (sparc32_bsd_fpregset): Rename to...
2517 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2518 (sparc32_bsd_fpregmap): ... these.
2519 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2520 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2521 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2522 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2523 (struct sparc_gregmap, struct sparc_fpregmap)
2524 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2525 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2526 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2527 (sparc32_supply_regset, sparc32_collect_gregset)
2528 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2530 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2531 (sparc64_linux_ptrace_gregmap): ... this.
2532 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2533 (_initialize_sparc64_linux_nat): Rename regmaps.
2534 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2535 (sparc64_linux_core_gregmap): ... this.
2536 (sparc64_linux_supply_core_gregset)
2537 (sparc64_linux_collect_core_gregset)
2538 (sparc64_linux_supply_core_fpregset)
2539 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2540 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2541 (sparc64_sol2_fpregset): Rename to...
2542 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2543 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2544 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2546 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2547 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2548 (sparc64_bsd_fpregset): Rename to...
2549 (struct sparc_gregmap, sparc64_sol2_gregmap)
2550 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2551 (sparc64_bsd_fpregmap): ... these.
2552 (sparc64_supply_gregset, sparc64_collect_gregset)
2553 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2555 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2556 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2557 (sparc64fbsd_gregmap): ... this.
2558 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2559 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2561 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2562 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2563 (sparc64nbsd_collect_fpregset): Likewise.
2564 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2565 (sparc64nbsd_gregmap): ... this.
2566 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2568 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2569 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2570 (sparc64obsd_gregmap): ... this.
2571 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2573 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2574 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2575 (sparc32nbsd_gregmap): ... this.
2576 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2579 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2581 * score-tdep.c (score7_linux_gregset): New static regset
2583 (score7_linux_regset_from_core_section): Remove dynamic regset
2585 (score_gdbarch_init): Drop allocation of tdep structure.
2586 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2590 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2592 (am33_regset_from_core_section): Remove dynamic regset
2595 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2597 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2598 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2600 (mips_linux_regset_from_core_section): Remove dynamic regset
2602 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2603 'gregset64', 'fpregset', and 'fpregset64'.
2604 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2605 deleted tdep fields.
2607 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2609 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2611 (amd64_regset_from_core_section): Remove dynamic regset
2613 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2615 (amd64obsd_regset_from_core_section): Remove dynamic regset
2617 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2619 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2620 x86-common regset supply function.
2621 * i386-tdep.c (i386_collect_gregset): Make static.
2622 (i386_gregset): New global regset structure.
2623 (i386_fpregset, i386_xstateregset): New static regset structures.
2624 (i386_regset_from_core_section): Remove dynamic regset
2626 (i386_gdbarch_init): Remove initialization of tdep fields
2627 'gregset', 'fpregset', and 'xstateregset'.
2628 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2629 'fpregset', and 'xstateregset'.
2630 (i386_collect_gregset): Remove prototype.
2631 (i386_gregset): New declaration.
2632 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2634 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2639 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2640 (arm_linux_vfpregset): New static regset structures.
2641 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2643 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2644 and 'vfpregset' fields.
2646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2648 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2649 (aarch64_linux_fpregset): New static regset structures.
2650 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2651 of regset structures.
2652 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2655 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2657 * regset.h (struct regset): Remove gdbarch field.
2658 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2659 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2660 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2662 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2663 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2664 (ppc32_linux_vsxregset): Likewise.
2665 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2666 via the regcache instead of the regset.
2667 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2668 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2669 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2670 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2673 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2675 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2676 Constify structures.
2677 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2678 (alphanbsd_aout_gregset): Likewise.
2679 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2680 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2682 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2683 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2685 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2686 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2687 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2688 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2689 * m88k-tdep.c (m88k_gregset): Likewise.
2690 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2691 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2692 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2693 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2694 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2695 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2696 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2697 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2698 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2700 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2701 * sh-tdep.h (sh_corefile_gregset): Likewise.
2702 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2703 * vax-tdep.c (vax_gregset): Likewise.
2705 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2707 Fix TLS access for -static -pthread.
2708 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2709 (try_thread_db_load_1): Initialize it.
2710 (thread_db_get_thread_local_address): Call it if LM is zero.
2711 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2712 * target.h (struct target_ops) (to_get_thread_local_address): Add
2713 load_module_addr comment.
2715 2014-05-21 Pedro Alves <palves@redhat.com>
2717 * dcache.c (dcache_read_memory_partial): If reading the cache line
2718 fails, fallback to reading just the memory the caller wanted.
2720 2014-05-20 Doug Evans <dje@google.com>
2722 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2723 instead of get_current_arch.
2725 2014-05-20 Pedro Alves <palves@redhat.com>
2727 * NEWS: Mention that compare-sections now works with all targets.
2729 * remote.c (PACKET_qCRC): New enum value.
2730 (remote_verify_memory): Don't send qCRC if the target has no
2731 execution. Use packet_support/packet_ok. If the target doesn't
2732 support the qCRC packet, fallback to a deep memory copy.
2733 (compare_sections_command): Say "target image" instead of "remote
2735 (_initialize_remote): Add PACKET_qCRC to the list of config
2736 packets that have no associated command. Extend comment.
2737 * target.c (simple_verify_memory, default_verify_memory): New
2739 * target.h (struct target_ops) <to_verify_memory>: Default to
2740 default_verify_memory.
2741 (simple_verify_memory): New declaration.
2742 * target-delegates.c: Regenerate.
2744 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2746 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2748 2014-05-20 Hui Zhu <hui@codesourcery.com>
2749 Yao Qi <yao@codesourcery.com>
2752 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2753 and change address of sp and pc.
2755 2014-05-19 Tom Tromey <tromey@redhat.com>
2757 * gdbtypes.c (rank_function): Use XNEWVEC.
2758 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2760 2014-05-19 Doug Evans <dje@google.com>
2762 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2763 build_type_unit_groups and moved closer to only caller. Remove
2764 arguments. All references updated. Remove outdated .gdb_index
2766 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2767 build_type_psymtabs_1.
2769 2014-05-19 Doug Evans <dje@google.com>
2771 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2772 n_type_unit_groups, all_type_unit_groups. All uses removed.
2773 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2774 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2775 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2776 (add_type_unit_group_to_table): Delete.
2778 2014-05-19 Doug Evans <dje@google.com>
2780 * eval.c (evaluate_subexp_standard): Add some comments.
2782 2014-05-17 Doug Evans <xdje42@gmail.com>
2784 * progspace.c (remove_program_space): Delete, unused.
2785 * progspace.h (remove_program_space): Ditto.
2787 2014-05-17 Doug Evans <xdje42@gmail.com>
2789 * inferior.c (prune_inferiors): Fix comment.
2790 (remove_inferior_command): Call prune_program_spaces.
2792 2014-05-16 Doug Evans <dje@google.com>
2794 New command line option -D.
2796 * main.c (set_gdb_data_directory): New function.
2797 (captured_main): Recognize -D. Flag error for --data-directory "".
2798 Call set_gdb_data_directory.
2799 (print_gdb_help): Print --data-directory, -D.
2800 * main.h (set_gdb_data_directory): Declare.
2801 * top.c (staged_gdb_datadir): New static global.
2802 (set_gdb_datadir): Call set_gdb_data_directory
2803 (show_gdb_datadir): New function.
2804 (init_main): Update init of data-directory parameter.
2806 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2808 Import the "dirfd" gnulib module.
2809 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2810 * gnulib/aclocal.m4: Update.
2811 * gnulib/config.in: Update.
2812 * gnulib/configure: Update.
2813 * gnulib/import/Makefile.am: Update.
2814 * gnulib/import/Makefile.in: Update.
2815 * gnulib/import/dirfd.c: New.
2816 * gnulib/import/m4/dirfd.m4: New.
2817 * gnulib/import/m4/gnulib-cache.m4: Update.
2818 * gnulib/import/m4/gnulib-comp.m4: Update.
2820 2014-05-16 Pierre Muller <muller@sourceware.org>
2821 Yao Qi <yao@codesourcery.com>
2823 * valprint.c (print_wchar): Move the code on checking whether
2824 W is a printable wide char to the default branch of switch
2825 statement below. Call wchar_printable instead of gdb_iswprint.
2827 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2829 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2830 ldr.w and ldrd instructions.
2832 2014-05-15 Doug Evans <dje@google.com>
2834 * dwarf2read.c (read_structure_type): Delete outdated comments.
2836 2014-05-14 Tom Tromey <tromey@redhat.com>
2838 * macrocmd.c (print_macro_definition): Reindent.
2840 2014-05-13 Doug Evans <xdje42@gmail.com>
2842 * python/py-cmd.c (cmdpy_completer): Add comment.
2843 (completers): Make const.
2845 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2847 * infrun.c (resume): Remove should_resume (unused). Move up
2848 declaration of resume_ptid.
2850 2014-05-13 Tom Tromey <tromey@redhat.com>
2852 * language.h (unop_type_check): Remove.
2853 (binop_type_check): Don't declare.
2855 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2857 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2858 call to regcache_raw_collect.
2860 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2862 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2863 mi_console->quote as the quoting character.
2865 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2867 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2869 2014-04-29 Tom Tromey <tromey@redhat.com>
2871 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2872 "show debug varobj".
2874 2014-05-07 Kyle McMartin <kyle@redhat.com>
2876 Pushed by Joel Brobecker <brobecker@adacore.com>.
2877 * aarch64-tdep.c (aarch64_software_single_step): New function.
2878 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2879 with aarch64_software_single_step.
2881 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2885 2014-05-05 Keith Seitz <keiths@redhat.com>
2887 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2888 variable or history value is successfully parsed.
2890 2014-05-05 Yao Qi <yao@codesourcery.com>
2891 Pedro Alves <palves@redhat.com>
2893 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2894 address of blocks that intersects the requested range. Trim
2895 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2897 * ctf.c (ctf_xfer_partial): Likewise.
2899 2014-05-05 Yao Qi <yao@codesourcery.com>
2901 * printcmd.c (display_command): Remove the check to
2902 target_has_execution.
2904 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2906 * ppcobsd-nat.c: Include "obsd-nat.h".
2907 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2909 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2911 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2913 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2914 and 16-bit signed and unsigned arguments. Update comment.
2915 (stap_parse_probe_arguments): Extend code to handle such
2916 arguments. Use warning instead of complaint to notify about
2917 unrecognized bitness.
2919 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2921 PR breakpoints/16889
2922 * stap-probe.c (stap_parse_probe_arguments): Simplify
2923 check for non-prefixed probes (i.e., probes whose
2924 arguments do not start with "N@"). Always set the
2925 argument type to a sane value.
2927 2014-05-01 David Taylor <dtaylor@emc.com>
2929 * remote.c (compare_sections_command): Add -r option to compare
2930 all loadable read-only sections.
2932 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2934 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2935 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2937 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2938 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2939 Remove unused CORE_ADDR argument. Update all callers.
2941 2014-04-29 Pedro Alves <palves@redhat.com>
2943 * remote.c (struct packet_config) <detect>: Extend comment.
2944 (add_packet_config_cmd): Don't set the config's detect or support
2946 (init_all_packet_configs): Also initialize the config's 'detect'
2948 (reset_all_packet_configs_support): New function.
2949 (remote_open_1): Call reset_all_packet_configs_support instead of
2950 init_all_packet_configs.
2951 (_initialize_remote): Initialize all packet configs. Assert that
2952 all packets have an associated command, except a few known
2955 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2957 * dwarf2read.c (read_subrange_type): Handle dynamic
2958 DW_AT_lower_bound attributes.
2960 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2962 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2963 dynamic bounds before computing its upper bound.
2964 (ada_discrete_type_low_bound): Same as above with the lower bound.
2966 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2968 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2969 range types. Adjust the array handling implementation to
2970 take advantage of this change.
2971 (resolve_dynamic_range): New function, mostly extracted from
2972 resolve_dynamic_bounds.
2973 (resolve_dynamic_array): New function, mostly extracted from
2974 resolve_dynamic_bounds.
2975 (resolve_dynamic_bounds): Delete.
2976 (resolve_dynamic_type): Reimplement. Add handling of
2977 TYPE_CODE_RANGE types.
2979 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2981 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2982 handling of parallel ___XA types.
2984 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2986 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2987 unnecessary second call to static_unwrap_type.
2989 2014-04-27 Hui Zhu <hui@codesourcery.com>
2991 * stack.c (print_frame_info): Call do_gdb_disassembly with
2992 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2994 2014-04-26 Doug Evans <xdje42@gmail.com>
2996 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2998 2014-04-25 Pedro Alves <palves@redhat.com>
3001 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3002 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3003 and newline from built string.
3004 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3005 (linux_ptrace_attach_fail_reason): ... this.
3006 * linux-nat.c (linux_nat_attach): Adjust to use
3007 linux_ptrace_attach_fail_reason.
3009 2014-04-25 Pedro Alves <palves@redhat.com>
3011 * remote.c (struct remote_state): Remove multi_process_aware,
3012 non_stop_aware, cond_tracepoints, cond_breakpoints,
3013 breakpoint_commands, fast_tracepoints, static_tracepoints,
3014 install_in_trace, disconnected_tracing,
3015 enable_disable_tracepoints, string_tracing, and
3016 augmented_libraries_svr4_read fields.
3017 (remote_multi_process_p): Move further below in the file.
3018 (struct packet_config): Add comments.
3019 (update_packet_config): Delete function.
3020 (show_packet_config_cmd): Use packet_config_support.
3021 (add_packet_config_cmd): Use NULL as set callback.
3022 (packet_ok): "set remote foo-packet"-style commands no longer
3023 change config->supported -- adjust.
3024 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3025 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3026 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3027 (PACKET_QNonStop, PACKET_multiprocess_feature)
3028 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3029 (PACKET_DisconnectedTracing_feature)
3030 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3031 (set_remote_protocol_packet_cmd): Delete function.
3032 (packet_config_support, packet_support): New functions.
3033 (set_remote_protocol_Z_packet_cmd): Don't call
3034 update_packet_config.
3035 (remote_query_attached, remote_pass_signals)
3036 (remote_program_signals, remote_threads_info)
3037 (remote_threads_extra_info, remote_start_remote): Use
3039 (remote_start_remote): Use packet_config_support and
3041 (init_all_packet_configs): Set all packets to unknown support,
3042 instead of calling update_packet_config.
3043 (remote_check_symbols): Use packet_support.
3044 (remote_supported_packet): Unconditionally set the packet config's
3046 (remote_multi_process_feature, remote_non_stop_feature)
3047 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3048 (remote_breakpoint_commands_feature)
3049 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3050 (remote_install_in_trace_feature)
3051 (remote_disconnected_tracing_feature)
3052 (remote_enable_disable_tracepoint_feature)
3053 (remote_string_tracing_feature)
3054 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3055 (remote_protocol_features): Adjust to use remote_supported_packet
3056 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3057 "ConditionalTracepoints", "ConditionalBreakpoints",
3058 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3059 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3060 "EnableDisableTracepoints", and "tracenz".
3061 (remote_query_supported): Use packet_support.
3062 (remote_open_1): Adjust.
3063 (extended_remote_attach_1): Use packet_support. Switch on the
3064 result of packet_ok instead of checking whether the packet ended
3066 (remote_vcont_resume): Use packet_support.
3067 (remote_resume, remote_stop_ns, fetch_register_using_p)
3068 (remote_prepare_to_store, store_register_using_P)
3069 (check_binary_download, remote_write_bytes): Use packet_support.
3070 (remote_vkill): Use packet_support. Switch on the result of
3071 packet_ok instead of checking whether the packet ended up
3073 (extended_remote_supports_disable_randomization): Use
3075 (extended_remote_run): Switch on the result of packet_ok instead
3076 of checking whether the packet ended up disabled.
3077 (remote_insert_breakpoint, remote_remove_breakpoint)
3078 (remote_insert_watchpoint, remote_remove_watchpoint)
3079 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3081 (remote_search_memory): Use packet_config_support.
3082 (remote_get_thread_local_address, remote_get_tib_address)
3083 (remote_hostio_send_command, remote_can_execute_reverse): Use
3085 (remote_supports_cond_tracepoints)
3086 (remote_supports_cond_breakpoints)
3087 (remote_supports_fast_tracepoints)
3088 (remote_supports_static_tracepoints)
3089 (remote_supports_install_in_trace)
3090 (remote_supports_enable_disable_tracepoint)
3091 (remote_supports_string_tracing)
3092 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3093 the packet config says the feature is enabled or disabled.
3094 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3095 (remote_get_trace_status): Use packet_support.
3096 (remote_set_disconnected_tracing): Adjust to check whether the
3097 feature is enabled with packet_support.
3098 (remote_set_trace_buffer_size, remote_use_agent)
3099 (remote_can_use_agent, remote_supports_btrace): Use
3101 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3102 Use packet_config_support.
3103 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3104 the packet config says the feature is enabled or disabled.
3105 (set_range_stepping): Use packet_support.
3107 2014-04-25 Tom Tromey <tromey@redhat.com>
3109 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3112 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3114 * NEWS: Mention support for C99 variable length arrays.
3116 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3118 * ada-lang.c (standard_exc): Expand introductory comment.
3120 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3121 Walfred Tedeschi <walfred.tedeschi@intel.com>
3123 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3125 (amd64_linux_read_description): Add code to handle AVX512 xstate
3126 mask and return respective tdesc.
3127 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3128 and features/i386/x32-avx512-linux.c.
3129 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3130 (amd64_linux_core_read_description): Add code to handle AVX512
3131 xstate mask and return respective tdesc.
3132 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3133 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3135 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3136 (tdesc_amd64_avx512_linux): New prototype.
3137 (tdesc_x32_avx512_linux): Likewise.
3138 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3139 features/i386/x32-avx512.c.
3140 (amd64_ymm_avx512_names): New register names for pseudo
3142 (amd64_ymmh_avx512_names): New register names for raw registers
3144 (amd64_k_names): New register names for K registers.
3145 (amd64_zmmh_names): New register names for ZMM raw registers.
3146 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3147 (amd64_xmm_avx512_names): New register names for XMM16-31
3149 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3151 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3152 if feature is present.
3153 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3154 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3155 (AMD64_NUM_REGS): Adjust to new number of registers.
3156 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3157 registers supplied via XSTATE by AVX512 registers.
3158 (i386_linux_read_description): Add case for AVX512.
3159 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3160 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3161 (i386_linux_core_read_description): Add case for AVX512.
3162 (i386_linux_init_abi): Install supported register note section
3164 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3166 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3167 registers to be number of zmm7h + 1.
3168 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3169 * i386-tdep.c: Include features/i386/i386-avx512.c.
3170 (i386_zmm_names): Add ZMM pseudo register names array.
3171 (i386_zmmh_names): Add ZMM raw register names array.
3172 (i386_k_names): Add K raw register names array.
3173 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3174 registers. AVX512 has 16 more ZMM registers than there are YMM
3176 (i386_zmmh_regnum_p): Add function to look up register number of
3178 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3179 (i386_k_regnum_p): Likewise for K raw registers.
3180 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3181 registers added by AVX512.
3182 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3183 registers added by AVX512.
3184 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3186 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3187 (i386_pseudo_register_name): Add ZMM pseudo registers.
3188 (i386_zmm_type): Construct and return vector registers type for ZMM
3190 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3191 ZMM0-31 pseudo registers and K registers.
3192 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3193 and YMM16-31 registers from register cache.
3194 (i386_pseudo_register_write): Add code to write K, ZMM and
3196 (i386_register_reggroup_p): Add code to include/exclude AVX512
3197 registers in/from respective register groups.
3198 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3199 registers if feature is present in xcr0.
3200 (i386_gdbarch_init): Add code to initialize AVX512 feature
3201 variables in tdep structure, wire in pseudo registers and call
3202 initialize_tdesc_i386_avx512.
3203 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3205 (i386_regnum): Add AVX512 registers.
3206 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3207 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3208 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3209 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3211 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3212 (i386_ymm_avx512_regnum_p): Likewise.
3213 (i386_k_regnum_p): Likewise.
3214 (i386_zmm_regnum_p): Likewise.
3215 (i386_zmmh_regnum_p): Likewise.
3216 * i387-tdep.c : Update year in copyright notice.
3217 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3219 (XSAVE_YMM_AVX512_ADDR): New macro.
3220 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3222 (XSAVE_XMM_AVX512_ADDR): New macro.
3223 (xsave_avx512_k_offset): New table for K register offsets in
3225 (XSAVE_AVX512_K_ADDR): New macro.
3226 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3228 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3229 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3231 (i387_collect_xsave): Add code to collect AVX512 registers from
3233 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3234 of XMM16-31 registers.
3235 (I387_NUM_K_REGS): New define for number of K registers.
3236 (I387_K0_REGNUM): New define for K0 register number.
3237 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3238 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3239 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3241 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3242 (I387_XMM16_REGNUM): New define for XMM16 register number.
3243 (I387_YMM0_REGNUM): New define for YMM0 register number.
3244 (I387_KEND_REGNUM): New define for last K register number.
3245 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3246 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3248 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3250 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3252 * features/Makefile: Add AVX512 related files.
3253 * features/i386/32bit-avx512.xml: New file.
3254 * features/i386/64bit-avx512.xml: Likewise.
3255 * features/i386/amd64-avx512-linux.c: Likewise.
3256 * features/i386/amd64-avx512-linux.xml: Likewise.
3257 * features/i386/amd64-avx512.c: Likewise.
3258 * features/i386/amd64-avx512.xml: Likewise.
3259 * features/i386/i386-avx512-linux.c: Likewise.
3260 * features/i386/i386-avx512-linux.xml: Likewise.
3261 * features/i386/i386-avx512.c: Likewise.
3262 * features/i386/i386-avx512.xml: Likewise.
3263 * features/i386/x32-avx512-linux.c: Likewise.
3264 * features/i386/x32-avx512-linux.xml: Likewise.
3265 * features/i386/x32-avx512.c: Likewise.
3266 * features/i386/x32-avx512.xml: Likewise.
3267 * regformats/i386/amd64-avx512-linux.dat: New file.
3268 * regformats/i386/amd64-avx512.dat: Likewise.
3269 * regformats/i386/i386-avx512-linux.dat: Likewise.
3270 * regformats/i386/i386-avx512.dat: Likewise.
3271 * regformats/i386/x32-avx512-linux.dat: Likewise.
3272 * regformats/i386/x32-avx512.dat: Likewise.
3273 * NEWS: Add note about new support for AVX512.
3276 2014-04-23 Pedro Alves <palves@redhat.com>
3278 * breakpoint.c (insert_bp_location): Tolerate errors if the
3279 breakpoint is set in a user-loaded objfile.
3280 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3281 location is marked shlib_disabled. If the breakpoint is set in a
3282 user-loaded objfile is a GDB-side memory breakpoint, validate it
3283 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3284 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3286 * mem-break.c (memory_validate_breakpoint): New function.
3287 * objfiles.c (userloaded_objfile_contains_address_p): New
3289 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3290 * target.h (memory_validate_breakpoint): New declaration.
3292 2014-04-23 Pedro Alves <palves@redhat.com>
3294 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3295 the breakpoint is set in a shared library, only suppress
3296 errors for software breakpoints, not hardware breakpoints.
3298 2014-04-22 Pedro Alves <palves@redhat.com>
3300 * infrun.c (schedlock_applies): New function, factored out from
3301 find_thread_needs_step_over.
3302 (find_thread_needs_step_over): Use it.
3303 (switch_back_to_stepped_thread): Always clear trap_expected if the
3304 step over is finished. Return early if scheduler locking applies.
3305 Look for the stepping thread and a potential step-over thread with
3307 (currently_stepping_or_nexting_callback): Delete.
3309 2014-04-22 Nick Clifton <nickc@redhat.com>
3311 * NEWS: Mention that ARM sim now supports tracing.
3313 2014-04-22 Yao Qi <yao@codesourcery.com>
3315 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3317 * tracefile.c (tracefile_fetch_registers): ... it. New
3319 * tracefile.h (tracefile_fetch_registers): Declare.
3320 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3321 tracefile_fetch_registers.
3323 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3326 * windows-nat.c (thread_rec): Don't display a warning when
3327 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3328 fails for any reason, set th->suspended to -1, so that we don't
3329 try to resume such a thread. Also, don't return NULL in these
3330 cases, to avoid completely ruin the session due to "PC register is
3331 not available" error.
3332 (do_windows_fetch_inferior_registers): Check errors in
3333 GetThreadContext call.
3334 (windows_continue): Accept an additional argument KILLED; if not
3335 zero, ignore errors in the SetThreadContext call, since the
3336 inferior was killed and is shutting down.
3337 (windows_resume, get_windows_debug_event)
3338 (windows_create_inferior, windows_mourn_inferior)
3339 (windows_kill_inferior): All callers of windows_continue changed
3340 to adjust to its new calling sequence.
3342 2014-04-19 Yao Qi <yao@codesourcery.com>
3344 * ctf.c (ctf_open): Call post_create_inferior.
3346 2014-04-19 Yao Qi <yao@codesourcery.com>
3348 * ctf.c (handle_id): New static variable.
3349 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3350 value. Get the declaration of event "register" and get length
3351 of field "contents".
3353 2014-04-19 Yao Qi <yao@codesourcery.com>
3355 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3357 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3359 * valops.c (oload_method_static): Remove unnecessary argument
3360 METHOD. Update all callers.
3362 2014-04-18 Pedro alves <palves@redhat.com>
3363 Tom Tromey <tromey@redhat.com>
3366 * frame.c (get_prev_frame_1): Rename to ...
3367 (get_prev_frame_always): ... this, and make extern. Adjust.
3368 (skip_artificial_frames): Use get_prev_frame_always.
3369 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3370 (get_frame_unwind_stop_reason): Adjust to rename.
3371 * frame.h (get_prev_frame_always): Declare.
3372 * inline-frame.c: Include frame.h.
3373 (inline_frame_this_id): Use get_prev_frame_always.
3375 2014-04-18 Tristan Gingold <gingold@adacore.com>
3377 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3378 code by using bfd_mach_o_get_base_address.
3380 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3382 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3383 (spu_ax_pseudo_register_collect): New function.
3384 (spu_ax_pseudo_register_push_stack): Likewise.
3385 (spu_dwarf_reg_to_regnum): Likewise.
3386 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3388 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3390 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3391 Replace FRAME argument with FRAME_ID.
3392 * gdbarch.c, gdbarch.h: Regenerate.
3393 * findvar.c (default_value_from_register): Add GDBARCH argument;
3394 replace FRAME by FRAME_ID. No longer call get_frame_id.
3395 (value_from_register): Update call to gdbarch_value_from_register.
3396 * value.h (default_value_from_register): Update prototype.
3397 * s390-linux-tdep.c (s390_value_from_register): Update interface
3398 and call to default_value_from_register.
3399 * spu-tdep.c (spu_value_from_register): Likewise.
3401 * findvar.c (address_from_register): Remove TYPE argument.
3402 Do not call value_from_register; use gdbarch_value_from_register
3403 with null_frame_id instead.
3404 * value.h (address_from_register): Update prototype.
3405 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3406 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3407 address_from_register interface change.
3409 2014-04-17 Yao Qi <yao@codesourcery.com>
3411 * gdbtypes.h: Update comments to link to types and macros'
3414 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3416 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3418 2014-04-16 Keith Seitz <keiths@redhat.com>
3421 * dwarf2read.c (skip_one_die): Check that all relative-offset
3422 sibling DIEs fall within range of the current reader's buffer.
3423 (read_partial_die): Likewise.
3425 2014-04-16 Keith Seitz <keiths@redhat.com>
3428 * cp-namespace.c (lookup_symbol_file): If the type name of
3429 `this' is NULL, return immediately.
3431 2014-04-14 Keith Seitz <keiths@redhat.com>
3434 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3435 from symbol_matches_domain in symtab.c. All local callers
3436 of symbol_matches_domain updated.
3437 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3438 search STRUCT_DOMAIN.
3439 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3440 independently. standard_lookup will do that automatically.
3441 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3442 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3443 (cp_lookup_symbol_in_namespace): Likewise.
3444 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3445 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3446 may return a STRUCT_DOMAIN match.
3447 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3448 * cp-support.c: Include language.h.
3449 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3451 * psymtab.c (match_partial_symbol): Compare the requested
3452 domain with the symbol's domain directly.
3453 (lookup_partial_symbol): Likewise.
3454 * symtab.c (lookup_symbol_in_language): Explain when/why
3455 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3456 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3457 appropriate languages.
3458 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3459 and moved to ada-lang.c
3460 (lookup_block_symbol): Explain that this function only returns
3461 symbol matching the requested DOMAIN.
3462 Compare the requested domain with the symbol's domain directly.
3463 (iterate_over_symbols): Compare the requested domain with the
3464 symbol's domain directly.
3465 * symtab.h (symbol_matches_domain): Remove.
3467 2014-04-14 Tom Tromey <tromey@redhat.com>
3470 * c-exp.y (type_aggregate_p): New function.
3471 (qualified_name, classify_inner_name): Use it.
3472 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3473 and TYPE_TARGET_TYPE of an enum type.
3474 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3476 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3477 handle TYPE_DECLARED_CLASS.
3478 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3480 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3481 * valops.c (enum_constant_from_type): New function.
3482 (value_aggregate_elt): Use it.
3483 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3486 2014-04-14 Tom Tromey <tromey@redhat.com>
3488 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3489 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3491 * value.h (value_aggregate_elt): Update.
3493 2014-04-14 Tom Tromey <tromey@redhat.com>
3495 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3497 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3499 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3500 (evaluate_subexp_standard): Pass noside argument.
3501 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3502 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3503 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3504 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3505 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3507 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3509 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3510 points to a constant blob.
3512 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3514 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3515 property and store it as the high bound and flag the range accordingly.
3516 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3517 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3518 * gdbtypes.h (enum range_flags): New enum.
3519 (struct range_bounds): Add flags member.
3521 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3523 * c-typeprint.c (c_type_print_varspec_suffix): Added
3524 check for not yet resolved high bound. If unresolved, print
3525 "variable length" string to the console instead of random
3528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3530 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3532 (ada_template_to_fixed_record_type_1): Likewise.
3533 (ada_to_fixed_type_1): Likewise.
3534 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3535 (cp_print_value): Likewise.
3536 * d-valprint.c (dynamic_array_type): Likewise.
3537 * findvar.c (address_of_variable): Likewise.
3538 * jv-valprint.c (java_value_print): Likewise.
3539 * valops.c (value_ind): Likewise.
3540 * value.c (coerce_ref): Likewise.
3542 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3544 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3545 value and retrieve the dynamic type size.
3547 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3549 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3550 passed to sizeof is dynamic evaluate the argument to compute the length.
3552 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3553 Joel Brobecker <brobecker@adacore.com>
3555 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3556 (dwarf2_evaluate_property): New function.
3557 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3558 * dwarf2read.c (attr_to_dynamic_prop): New function.
3559 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3561 * gdbtypes.c: Include dwarf2loc.h.
3562 (is_dynamic_type): New function.
3563 (resolve_dynamic_type): New function.
3564 (resolve_dynamic_bounds): New function.
3565 (get_type_length): New function.
3566 (check_typedef): Use get_type_length to compute type length.
3567 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3568 (TYPE_LOW_BOUND_KIND): New macro.
3569 (is_dynamic_type): New function prototype.
3570 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3571 to resolve dynamic properties of the type. Update comment.
3572 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3574 2014-04-14 Richard Henderson <rth@redhat.com>
3576 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3578 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3579 Doug Evans <xdje42@gmail.com>
3581 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3582 dereference TYPE_CODE_REF values.
3584 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3586 Revert the following changes due to regressions:
3588 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3589 (dwarf2_evaluate_property): New function.
3590 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3591 * dwarf2read.c (attr_to_dynamic_prop): New function.
3592 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3594 * gdbtypes.c: Include dwarf2loc.h.
3595 (is_dynamic_type): New function.
3596 (resolve_dynamic_type): New function.
3597 (resolve_dynamic_bounds): New function.
3598 (get_type_length): New function.
3599 (check_typedef): Use get_type_length to compute type length.
3600 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3601 (TYPE_LOW_BOUND_KIND): New macro.
3602 (is_dynamic_type): New function prototype.
3603 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3604 to resolve dynamic properties of the type. Update comment.
3605 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3607 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3608 passed to sizeof is dynamic evaluate the argument to compute the length.
3610 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3611 value and retrieve the dynamic type size.
3613 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3614 (ada_template_to_fixed_record_type_1): Likewise.
3615 (ada_to_fixed_type_1): Likewise.
3616 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3617 (cp_print_value): Likewise.
3618 * d-valprint.c (dynamic_array_type): Likewise.
3619 * eval.c (evaluate_subexp_with_coercion): Likewise.
3620 * findvar.c (address_of_variable): Likewise.
3621 * jv-valprint.c (java_value_print): Likewise.
3622 * valops.c (value_ind): Likewise.
3623 * value.c (coerce_ref): Likewise.
3625 * c-typeprint.c (c_type_print_varspec_suffix): Added
3626 check for not yet resolved high bound. If unresolved, print
3627 "variable length" string to the console instead of random
3630 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3631 property and store it as the high bound and flag the range accordingly.
3632 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3633 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3634 * gdbtypes.h (enum range_flags): New enum.
3635 (struct range_bounds): Add flags member.
3637 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3638 points to a constant blob.
3640 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3641 (evaluate_subexp_standard): Pass noside argument.
3642 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3643 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3644 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3645 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3646 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3648 2014-04-11 Keith Seitz <keiths@redhat.com>
3651 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3652 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3655 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3657 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3658 (evaluate_subexp_standard): Pass noside argument.
3659 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3660 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3661 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3662 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3663 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3665 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3667 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3668 points to a constant blob.
3670 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3672 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3673 property and store it as the high bound and flag the range accordingly.
3674 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3675 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3676 * gdbtypes.h (enum range_flags): New enum.
3677 (struct range_bounds): Add flags member.
3679 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3681 * c-typeprint.c (c_type_print_varspec_suffix): Added
3682 check for not yet resolved high bound. If unresolved, print
3683 "variable length" string to the console instead of random
3686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3688 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3689 (ada_template_to_fixed_record_type_1): Likewise.
3690 (ada_to_fixed_type_1): Likewise.
3691 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3692 (cp_print_value): Likewise.
3693 * d-valprint.c (dynamic_array_type): Likewise.
3694 * eval.c (evaluate_subexp_with_coercion): Likewise.
3695 * findvar.c (address_of_variable): Likewise.
3696 * jv-valprint.c (java_value_print): Likewise.
3697 * valops.c (value_ind): Likewise.
3698 * value.c (coerce_ref): Likewise.
3700 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3702 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3703 value and retrieve the dynamic type size.
3705 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3707 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3708 passed to sizeof is dynamic evaluate the argument to compute the length.
3710 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3712 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3713 (dwarf2_evaluate_property): New function.
3714 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3715 * dwarf2read.c (attr_to_dynamic_prop): New function.
3716 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3718 * gdbtypes.c: Include dwarf2loc.h.
3719 (is_dynamic_type): New function.
3720 (resolve_dynamic_type): New function.
3721 (resolve_dynamic_bounds): New function.
3722 (get_type_length): New function.
3723 (check_typedef): Use get_type_length to compute type length.
3724 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3725 (TYPE_LOW_BOUND_KIND): New macro.
3726 (is_dynamic_type): New function prototype.
3727 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3728 to resolve dynamic properties of the type. Update comment.
3729 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3731 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3733 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3734 declaring high/low bounds and change uses accordingly. Call
3735 create_range_type instead of create_static_range_type.
3736 * gdbtypes.c (create_range_type): New function.
3737 (create_range_type): Convert bounds into struct bound_prop and pass
3738 them to create_range_type.
3739 * gdbtypes.h (struct bound_prop): New struct.
3740 (create_range_type): New function prototype.
3741 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3742 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3743 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3745 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3749 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3750 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3751 * ada-lang.c: All uses of create_range_type updated.
3752 * coffread.c: All uses of create_range_type updated.
3753 * dwarf2read.c: All uses of create_range_type updated.
3754 * f-exp.y: All uses of create_range_type updated.
3755 * m2-valprint.c: All uses of create_range_type updated.
3756 * mdebugread.c: All uses of create_range_type updated.
3757 * stabsread.c: All uses of create_range_type updated.
3758 * valops.c: All uses of create_range_type updated.
3759 * valprint.c: All uses of create_range_type updated.
3761 2014-04-10 Pedro Alves <palves@redhat.com>
3763 * breakpoint.c (single_step_breakpoints)
3764 (single_step_gdbarch): Move up in the file.
3765 (one_breakpoint_xfer_memory): New function, factored out from ...
3766 (breakpoint_xfer_memory): ... here. Also process single-step
3769 2014-04-09 Tristan Gingold <gingold@adacore.com>
3771 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3773 (darwin_decode_exception_message): Free port only after use.
3775 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3777 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3778 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3779 when setting the size of call_length.
3781 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3783 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3784 dereference TYPE_CODE_REF values.
3786 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3788 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3789 end of warning message.
3791 2014-04-03 Doug Evans <dje@google.com>
3793 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3794 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3796 2014-04-02 Alan Modra <amodra@gmail.com>
3798 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3799 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3800 (struct symbol_file_add_from_memory_args): Add size field.
3801 (find_vdso_size): New function.
3802 (add_vsyscall_page): Attempt to find vdso size.
3804 2014-04-01 Doug Evans <dje@google.com>
3806 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3808 2014-04-01 Tristan Gingold <gingold@adacore.com>
3810 * darwin-nat.c (darwin_encode_reply): Add prototype.
3811 (darwin_decode_exception_message): Reply to unknown inferiors.
3812 (darwin_decode_message): Handle message by id. Ignore message
3813 to unknown inferior.
3814 (darwin_wait): Discard unknown messages, add debug trace.
3816 2014-03-31 Doug Evans <dje@google.com>
3818 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3821 2014-03-31 Doug Evans <dje@google.com>
3823 New option "set print symbol-loading".
3825 * solib.c (solib_read_symbols): Only print symbol loading messages
3827 (solib_add): If symbol loading is in "brief" mode, notify user
3828 symbols are being loaded.
3829 (reload_shared_libraries_1): Ditto.
3830 * symfile.c (print_symbol_loading_off): New static global.
3831 (print_symbol_loading_brief): New static global.
3832 (print_symbol_loading_full): New static global.
3833 (print_symbol_loading_enums): New static global.
3834 (print_symbol_loading): New static global.
3835 (print_symbol_loading_p): New function.
3836 (symbol_file_add_with_addrs): Only print symbol loading messages
3838 (_initialize_symfile): Register "print symbol-loading" set/show
3840 * symfile.h (print_symbol_loading_p): Declare.
3842 2014-03-30 Doug Evans <xdje42@gmail.com>
3844 * infrun.c (set_last_target_status): New function.
3845 (handle_inferior_event): Call it.
3847 2014-03-30 Doug Evans <xdje42@gmail.com>
3849 * inferior.h (enum stop_kind): Improve comment.
3851 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3853 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3854 a reference, strip the reference layer before calling
3855 the lang_ops value_has_mutated callback.
3857 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3859 Remove some globals from our parser.
3860 * language.c (unk_lang_parser): Add "struct parser_state"
3862 * language.h (struct language_defn) <la_parser>: Likewise.
3863 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3864 (initialize_expout): Add "struct parser_state" argument.
3865 Rewrite function to use the parser state.
3866 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3867 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3868 write_exp_elt_longcst, write_exp_elt_dblcst,
3869 write_exp_elt_decfloatcst, write_exp_elt_type,
3870 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3871 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3872 write_dollar_variable): Likewise.
3873 (parse_exp_in_context_1): Use parser state.
3874 (insert_type_address_space): Add "struct parser_state" argument.
3876 (increase_expout_size): New function.
3877 * parser-defs.h: Forward declare "struct language_defn" and
3878 "struct parser_state".
3879 (expout, expout_size, expout_ptr): Remove extern declarations.
3880 (parse_gdbarch, parse_language): Rewrite macro declarations to
3881 accept the parser state.
3882 (struct parser_state): New struct.
3883 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3884 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3885 write_exp_elt_decfloatcst, write_exp_elt_type,
3886 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3887 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3888 write_exp_msymbol, write_dollar_variable,
3889 mark_struct_expression, insert_type_address_space): Add "struct
3890 parser_state" argument.
3891 (increase_expout_size): New function.
3892 * utils.c (do_clear_parser_state): New function.
3893 (make_cleanup_clear_parser_state): Likewise.
3894 * utils.h (make_cleanup_clear_parser_state): New function
3896 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3897 Update calls to write_exp* in order to pass the parser state.
3898 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3899 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3900 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3901 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3902 * stap-probe.c (stap_parse_register_operand): Likewise.
3903 (stap_parse_single_operand): Likewise.
3904 (stap_parse_argument_1): Likewise.
3905 (stap_parse_argument): Use parser state.
3906 * stap-probe.h: Include "parser-defs.h".
3907 (struct stap_parse_info) <pstate>: New field.
3908 * c-exp.y (parse_type): Rewrite to use parser state.
3909 (yyparse): Redefine to c_parse_internal.
3910 (pstate): New global variable.
3911 (parse_number): Add "struct parser_state" argument.
3912 (write_destructor_name): Likewise.
3913 (type_exp): Update calls to write_exp* and similars in order to
3915 (exp1, exp, variable, qualified_name, space_identifier,
3916 typename, typebase): Likewise.
3917 (write_destructor_name, parse_number, lex_one_token,
3918 classify_name, classify_inner_name, c_parse): Add "struct
3919 parser_state" argument. Update function to use parser state.
3920 * c-lang.h: Forward declare "struct parser_state".
3921 (c_parse): Add "struct parser_state" argument.
3922 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3923 (yyparse): Redefine macro to ada_parse_internal.
3924 (pstate): New variable.
3925 (write_int, write_object_renaming, write_var_or_type,
3926 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3927 type_int, type_long, type_long_long, type_float, type_double,
3928 type_long_double, type_char, type_boolean, type_system_address):
3929 Add "struct parser_state" argument.
3930 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3931 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3932 var_or_type, aggregate, aggregate_component_list,
3933 positional_list, others, component_group,
3934 component_associations): Update calls to write_exp* and similar
3935 functions in order to use parser state.
3936 (ada_parse, write_var_from_sym, write_int,
3937 write_exp_op_with_string, write_object_renaming,
3938 find_primitive_type, write_selectors, write_ambiguous_var,
3939 write_var_or_type, write_name_assoc, type_int, type_long,
3940 type_long_long, type_float, type_double, type_long_double,
3941 type_char, type_boolean, type_system_address): Add "struct
3942 parser_state" argument. Adjust function to use parser state.
3943 * ada-lang.c (parse): Likewise.
3944 * ada-lang.h: Forward declare "struct parser_state".
3945 (ada_parse): Add "struct parser_state" argument.
3946 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3947 calls to both functions.
3948 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3950 (yyparse): Redefine macro to f_parse_internal.
3951 (pstate): New variable.
3952 (parse_number): Add "struct parser_state" argument.
3953 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3954 and similars in order to use parser state.
3955 (parse_number): Adjust code to use parser state.
3957 (f_parse): New function.
3958 * f-lang.h: Forward declare "struct parser_state".
3959 (f_parse): Add "struct parser_state" argument.
3960 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3962 (yyparse): Redefine macro for java_parse_internal.
3963 (pstate): New variable.
3964 (push_expression_name, push_expression_name, insert_exp): Add
3965 "struct parser_state" argument.
3966 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3967 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3968 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3969 PostIncrementExpression, PostDecrementExpression,
3970 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3971 UnaryExpressionNotPlusMinus, CastExpression,
3972 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3973 RelationalExpression, EqualityExpression, AndExpression,
3974 ExclusiveOrExpression, InclusiveOrExpression,
3975 ConditionalAndExpression, ConditionalOrExpression,
3976 ConditionalExpression, Assignment, LeftHandSide): Update
3977 calls to write_exp* and similars in order to use parser state.
3978 (parse_number): Ajust code to use parser state.
3980 (java_parse): New function.
3981 (push_variable): Add "struct parser_state" argument. Adjust
3982 code to user parser state.
3983 (push_fieldnames, push_qualified_expression_name,
3984 push_expression_name, insert_exp): Likewise.
3985 * jv-lang.h: Forward declare "struct parser_state".
3986 (java_parse): Add "struct parser_state" argument.
3987 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3989 (yyparse): Redefine macro to m2_parse_internal.
3990 (pstate): New variable.
3991 (type_exp, exp, fblock, variable, type): Update calls to
3992 write_exp* and similars to use parser state.
3994 (m2_parse): New function.
3995 * m2-lang.h: Forward declare "struct parser_state".
3996 (m2_parse): Add "struct parser_state" argument.
3997 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3998 * objc-lang.h: Forward declare "struct parser_state".
3999 (end_msglist): Add "struct parser_state" argument.
4000 * p-exp.y (parse_type): Rewrite macro to use parser state.
4001 (yyparse): Redefine macro to pascal_parse_internal.
4002 (pstate): New variable.
4003 (parse_number): Add "struct parser_state" argument.
4004 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4005 write_exp* and similars in order to use parser state.
4006 (parse_number, yylex): Adjust code to use parser state.
4007 (pascal_parse): New function.
4008 * p-lang.h: Forward declare "struct parser_state".
4009 (pascal_parse): Add "struct parser_state" argument.
4010 * go-exp.y (parse_type): Rewrite macro to use parser state.
4011 (yyparse): Redefine macro to go_parse_internal.
4012 (pstate): New variable.
4013 (parse_number): Add "struct parser_state" argument.
4014 (type_exp, exp1, exp, variable, type): Update calls to
4015 write_exp* and similars in order to use parser state.
4016 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4017 to use parser state.
4018 (go_parse): Likewise.
4019 * go-lang.h: Forward declare "struct parser_state".
4020 (go_parse): Add "struct parser_state" argument.
4022 2014-03-27 Doug Evans <dje@google.com>
4024 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4026 2014-03-27 Doug Evans <dje@google.com>
4028 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4029 Remove argument abbrev_section. All callers updated.
4031 2014-03-27 Doug Evans <dje@google.com>
4033 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4034 addr_base, ranges_base.
4036 2014-03-26 Keith Seitz <keiths@redhat.com>
4038 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4039 types, not VAR_DOMAIN.
4041 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4043 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4045 * features/nios2-linux.c: Regenerated.
4046 * features/nios2.c: Regenerated.
4048 2014-03-25 Pedro Alves <palves@redhat.com>
4050 * cli/cli-script.c (script_from_file): Force the interpreter to
4053 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4055 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4056 small stack allocation.
4058 2014-03-24 Tristan Gingold <gingold@adacore.com>
4060 * darwin-nat.c (exc_server): Remove unused prototype.
4061 (darwin_dump_message): Correctly display data on x86_64.
4062 (darwin_encode_reply): Fix style.
4063 Add comments and fix indentation.
4065 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4067 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4069 2014-03-22 Doug Evans <xdje42@gmail.com>
4071 * infcmd.c: Whitespace fixes.
4072 (interrupt_command): Merge two function comments into one.
4074 2014-03-22 Doug Evans <xdje42@gmail.com>
4076 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4079 2014-03-22 Yao Qi <yao@codesourcery.com>
4081 * remote.c (target_read_live_memory): Remove.
4082 (memory_xfer_live_readonly_partial): Rename it to
4083 remote_xfer_live_readonly_partial. Remove argument 'object'.
4084 All callers updated. Call remote_read_bytes_1
4085 instead of target_read_live_memory.
4086 * tracepoint.c (set_traceframe_number): Remove.
4087 (make_cleanup_restore_traceframe_number): Likewise .
4088 * tracepoint.h (set_traceframe_number): Remove declaration.
4089 (make_cleanup_restore_traceframe_number): Likewise.
4091 2014-03-22 Yao Qi <yao@codesourcery.com>
4093 * remote.c (remote_read_bytes): Move code on reading from the
4095 (remote_read_bytes_1): ... here. New function.
4097 2014-03-22 Yao Qi <yao@codesourcery.com>
4099 * ctf.c (ctf_xfer_partial): Check the return value of
4100 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4101 return TARGET_XFER_UNAVAILABLE.
4102 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4103 * target.c (target_read_live_memory): Move it to remote.c.
4104 (memory_xfer_live_readonly_partial): Likewise.
4105 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4106 * remote.c (target_read_live_memory): Moved from target.c.
4107 (memory_xfer_live_readonly_partial): Likewise.
4108 (remote_read_bytes): Factored out from
4109 memory_xfer_partial_1.
4111 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4113 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4116 2014-03-21 Pedro Alves <palves@redhat.com>
4118 * infrun.c (normal_stop): Extend comment.
4120 2014-03-21 Hui Zhu <hui@codesourcery.com>
4121 Pedro Alves <palves@redhat.com>
4123 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4125 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4126 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4127 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4129 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4131 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4132 `z' formatted output modifier.
4134 2014-03-20 Tom Tromey <tromey@redhat.com>
4135 Sergio Durigan Junior <sergiodj@redhat.com>
4137 * probe.c (parse_probes): Turn assert into an ordinary error.
4138 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4139 exceptions when parsing probes. Rearrange the code for clarity.
4141 2014-03-20 Tom Tromey <tromey@redhat.com>
4144 * top.c (execute_command): Only dispatch events if the command
4147 2014-03-20 Tom Tromey <tromey@redhat.com>
4150 * infcall.c: Include event-top.h.
4151 (run_inferior_call): Call async_disable_stdin if needed.
4153 2014-03-20 Pedro Alves <palves@redhat.com>
4155 * infrun.c (prepare_to_proceed): Delete.
4156 (thread_still_needs_step_over): New function.
4157 (find_thread_needs_step_over): New function.
4158 (proceed): If the current thread needs a step-over, set its
4159 steping_over_breakpoint flag. Adjust to use
4160 find_thread_needs_step_over instead of prepare_to_proceed.
4161 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4162 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4164 (switch_back_to_stepped_thread): Step over breakpoints of all
4165 threads not the stepping thread, before switching back to the
4168 2014-03-20 Pedro Alves <palves@redhat.com>
4170 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4172 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4173 * infrun.c (saved_singlestep_ptid)
4174 (stepping_past_singlestep_breakpoint): Delete.
4175 (resume): Remove stepping_past_singlestep_breakpoint handling.
4176 (proceed): Store the prev_pc of the stepping thread too.
4177 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4179 (enum infwait_states): Delete infwait_thread_hop_state.
4180 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4182 (handle_inferior_event): Adjust.
4183 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4184 handling and the thread-hop code. Before removing single-step
4185 breakpoints, check whether the thread hit a single-step breakpoint
4186 of another thread. If it did, the trap is not a random signal.
4187 (switch_back_to_stepped_thread): If the event thread hit a
4188 single-step breakpoint, unblock it before switching to the
4189 stepping thread. Handle the case of the stepped thread having
4191 (keep_going): Handle the case of the current thread moving past a
4192 single-step breakpoint.
4194 2014-03-20 Pedro Alves <palves@redhat.com>
4197 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4198 are being stepped over.
4199 (breakpoint_address_match): Make extern.
4200 * breakpoint.h (breakpoint_address_match): New declaration.
4201 * inferior.h (stepping_past_instruction_at): New declaration.
4202 * infrun.c (struct step_over_info): New type.
4203 (step_over_info): New global.
4204 (set_step_over_info, clear_step_over_info)
4205 (stepping_past_instruction_at): New functions.
4206 (handle_inferior_event): Clear the step-over info when
4207 trap_expected is cleared.
4208 (resume): Remove now stale comment.
4209 (clear_proceed_status): Clear step-over info.
4210 (proceed): Adjust step-over handling to set or clear the step-over
4211 info instead of removing all breakpoints.
4212 (handle_signal_stop): When setting up a thread-hop, don't remove
4214 (stop_stepping): Clear step-over info.
4215 (keep_going): Adjust step-over handling to set or clear step-over
4216 info and then always inserting breakpoints, instead of removing
4217 all breakpoints when stepping over one.
4219 2014-03-20 Pedro Alves <palves@redhat.com>
4221 * infrun.c (previous_inferior_ptid): Adjust comment.
4222 (deferred_step_ptid): Delete.
4223 (infrun_thread_ptid_changed, prepare_to_proceed)
4224 (init_wait_for_inferior): Adjust.
4225 (handle_signal_stop): Delete deferred_step_ptid handling.
4227 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4230 * defs.h (sync_quit_force_run): New declaration.
4231 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4232 * event-top.c (async_sigterm_handler): New declaration.
4233 (async_sigterm_token): New variable.
4234 (async_init_signals): Create also async_sigterm_token.
4235 (async_sigterm_handler): New function.
4236 (sync_quit_force_run): New variable.
4237 (handle_sigterm): Replace quit_force call by other calls.
4238 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4240 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4242 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4243 offset into SPE pseudo registers.
4245 2014-03-18 Pedro Alves <palves@redhat.com>
4248 * inferior.h (print_stop_event): Declare.
4249 * infrun.c (print_stop_event): New, factored out from ...
4250 (normal_stop): ... this.
4251 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4252 of bpstat_print/print_stack_frame.
4254 2014-03-17 Tom Tromey <tromey@redhat.com>
4256 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4258 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4260 * ada-lang.c (decode_constrained_packed_array): Perform a
4261 minimal coercion for reference with coerce_ref instead of
4264 2014-03-17 Tristan Gingold <gingold@adacore.com>
4266 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4267 (darwin_solib_create_inferior_hook): Emit a warning if version
4270 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4272 * python/py-value.c (get_field_flag): Cast flag_name argument to
4273 PyObject_GetAttrString to support Python 2.4.
4275 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4277 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4278 (Global Maintainers): Remove Jan Kratochvil.
4280 2014-03-14 Pedro Alves <palves@redhat.com>
4282 * inferior.h (terminal_ours_for_output): Rename to ...
4283 (child_terminal_ours_for_output): ... this.
4284 (terminal_save_ours): Rename to ...
4285 (child_terminal_save_ours): ... this.
4286 (terminal_ours): Rename to ...
4287 (child_terminal_ours): ... this.
4288 (terminal_inferior): Rename to ...
4289 (child_terminal_inferior): ... this.
4290 (terminal_init_inferior): Rename to ...
4291 (child_terminal_init_inferior): ... this.
4292 (terminal_init_inferior_with_pgrp): Rename to ...
4293 (child_terminal_init_inferior_with_pgrp): ... this.
4294 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4295 (child_terminal_init_with_pgrp): ... this.
4296 (terminal_save_ours): Rename to ...
4297 (child_terminal_save_ours): ... this.
4298 (terminal_init_inferior): Rename to ...
4299 (child_terminal_init): ... this. Adjust.
4300 (terminal_inferior): Rename to ...
4301 (child_terminal_inferior): ... this.
4302 (terminal_ours_for_output): Rename to ...
4303 (child_terminal_ours_for_output): ... this. Adjust.
4304 (terminal_ours): Rename to ...
4305 (child_terminal_ours): ... this.
4306 (terminal_ours_1): Rename to ...
4307 (child_terminal_ours_1): ... this. Adjust.
4308 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4309 * windows-nat.c (do_initial_windows_stuff): Adjust.
4310 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4311 (gnu_terminal_init): ... this. Adjust.
4312 (gnu_target): Adjust.
4313 * inf-child.c (inf_child_target): Adjust.
4315 2014-03-13 Doug Evans <xdje42@gmail.com>
4318 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4321 2014-03-13 Doug Evans <xdje42@gmail.com>
4323 * value.c (record_latest_value): Call release_value_or_incref
4324 instead of release_value.
4326 2014-03-13 Pedro Alves <palves@redhat.com>
4328 * procfs.c (procfs_target): Don't override to_shortname,
4329 to_longname or to_doc.
4331 2014-03-13 Pedro Alves <palves@redhat.com>
4333 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4334 Unix in user visible strings.
4336 2014-03-12 Stan Shebs <stan@codesourcery.com>
4338 * gdbtypes.h: Annotate comments for Doxygen, add a page
4339 block comment with some general info.
4341 2014-03-12 Pedro Alves <palves@redhat.com>
4343 * infcmd.c (prepare_execution_command): New function, factored out
4344 from several execution commands.
4345 (run_command_1, continue_command, step_1, jump_command)
4346 (signal_command, until_command, advance_command, finish_command)
4347 (attach_command): Use prepare_execution_command.
4349 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4351 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4354 (struct arm_linux_thread_points): Removed.
4355 (struct arm_linux_process_info): New.
4356 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4357 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4358 (arm_linux_find_breakpoints_by_tid): Removed.
4359 (struct arch_lwp_info): New.
4360 (arm_linux_find_process_pid): New functions.
4361 (arm_linux_add_process): New functions.
4362 (arm_linux_process_info_get): New functions.
4363 (arm_linux_forget_process): New function.
4364 (arm_linux_get_debug_reg_state): New function.
4365 (struct update_registers_data): New.
4366 (update_registers_callback): New function.
4367 (arm_linux_insert_hw_breakpoint1): Updated.
4368 (arm_linux_remove_hw_breakpoint1): Updated.
4369 (arm_linux_insert_hw_breakpoint): Updated.
4370 (arm_linux_remove_hw_breakpoint): Updated.
4371 (arm_linux_insert_watchpoint): Updated.
4372 (arm_linux_remove_watchpoint): Updated.
4373 (arm_linux_new_thread): Updated.
4374 (arm_linux_prepare_to_resume): New function.
4375 (arm_linux_new_fork): New function.
4376 (_initialize_arm_linux_nat): Updated.
4378 2014-03-12 Pedro Alves <palves@redhat.com>
4380 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4382 2014-03-12 Tom Tromey <tromey@redhat.com>
4384 * inf-child.c (return_zero): New function.
4385 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4386 * aix-thread.c (aix_thread_inferior_created): New function.
4387 (aix_thread_attach): Remove.
4388 (init_aix_thread_ops): Don't set to_attach.
4389 (_initialize_aix_thread): Register inferior_created observer.
4390 * corelow.c (init_core_ops): Don't set to_attach or
4392 * exec.c (init_exec_ops): Don't set to_attach or
4394 * infcmd.c (run_command_1): Use find_run_target. Make direct
4396 (attach_command): Use find_attach_target. Make direct target
4398 * record-btrace.c (init_record_btrace_ops): Don't set
4400 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4402 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4403 set to_create_inferior.
4404 * target.c (complete_target_initialization): Add assertion.
4405 (target_create_inferior): Remove.
4406 (find_default_attach, find_default_create_inferior): Remove.
4407 (find_attach_target, find_run_target): New functions.
4408 (find_default_is_async_p, find_default_can_async_p)
4409 (target_supports_non_stop, target_attach): Remove.
4410 (init_dummy_target): Don't set to_create_inferior or
4411 to_supports_non_stop.
4412 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4413 TARGET_DEFAULT_FUNC.
4414 <to_create_inferior>: Add comment.
4415 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4416 TARGET_DEFAULT_RETURN.
4417 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4418 (find_attach_target, find_run_target): Declare.
4419 (target_create_inferior): Remove.
4420 (target_has_execution_1): Update comment.
4421 (target_supports_non_stop): Remove.
4422 * target-delegates.c: Rebuild.
4424 2014-03-12 Pedro Alves <palves@redhat.com>
4426 * inf-child.h: Update comment to not mention Unix.
4428 2014-03-12 Pedro Alves <palves@redhat.com>
4430 * inf-child.c: Update top comment to not mention Unix. Add
4431 generic comment describing how this target is meant to be used.
4432 (inf_child_post_attach, inf_child_post_startup_inferior)
4433 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4436 2014-03-12 Pedro Alves <palves@redhat.com>
4438 * nto-procfs.c: Include inf-child.h.
4439 (procfs_ops): Delete global.
4440 (procfs_can_run): Delete method.
4441 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4442 target pointer instead of referencing procfs_ops.
4443 (procfs_prepare_to_store): Delete.
4444 (init_procfs_ops): Delete function.
4445 (procfs_target): New function, based on init_procfs_ops, but
4446 inherit inf_child_target.
4447 (_initialize_procfs): Use procfs_target.
4449 2014-03-12 Pedro Alves <palves@redhat.com>
4451 * windows-nat.c: Include inf-child.h.
4452 (windows_ops): Delete global.
4453 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4455 (init_windows_ops): Delete function.
4456 (windows_target): New function, based on init_windows_ops, but
4457 inherit inf_child_target.
4458 (_initialize_windows_nat): Use windows_target. Install x86
4459 specific target methods here.
4461 2014-03-10 Doug Evans <xdje42@gmail.com>
4463 * guile/guile.c (call_initialize_gdb_module): New function.
4464 (initialize_guile): Replace call to scm_init_guile with call to
4467 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4469 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4470 in call to TYPE_CODE macro.
4472 2014-03-10 Jerome Guitton <guitton@adacore.com>
4474 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4475 Resolve tagged types to full view.
4477 2014-03-10 Hui Zhu <hui@codesourcery.com>
4479 * target.h (target_insert_breakpoint): Remove "hardware" from its
4482 2014-03-07 Doug Evans <dje@google.com>
4484 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4486 2014-03-07 Doug Evans <dje@google.com>
4488 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4489 Remove unused local comp_dir_attr. Assert exactly one of
4490 stub_comp_unit_die, stub_comp_dir is non-NULL.
4492 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4494 * target.h (complete_target_initialization, add_target):
4497 2014-03-07 Pedro Alves <palves@redhat.com>
4499 * go32-nat.c: Include inf-child.h.
4500 (go32_ops): Delete global.
4501 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4503 (go32_create_inferior): Push the passed in target pointer instead
4504 of referencing go32_ops.
4505 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4506 (go32_target): New function, based on init_go32_ops, but inherit
4508 (_initialize_go32_nat): Use go32_target. Move parts of
4511 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4513 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4514 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4515 SYMBOL_VALUE_ADDRESS.
4516 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4518 2014-03-06 Yao Qi <yao@codesourcery.com>
4520 * breakpoint.c (get_tracepoint_by_number): Remove argument
4521 optional_p. All callers updated. Adjust comments. Update
4523 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4525 2014-03-06 Yao Qi <yao@codesourcery.com>
4527 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4528 early if get_number returns zero. Use 'p' instead of 'args'.
4530 2014-03-06 Yao Qi <yao@codesourcery.com>
4532 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4535 2014-03-06 Yao Qi <yao@codesourcery.com>
4537 PR breakpoints/16508
4538 * tracepoint.c (check_trace_running): New function.
4539 (trace_find_command): Move code to check_trace_running and
4540 call check_trace_running.
4541 (trace_find_pc_command): Likewise.
4542 (trace_find_tracepoint_command): Likewise.
4543 (trace_find_line_command): Likewise.
4544 (trace_find_range_command): Likewise.
4545 * tracepoint.h (check_trace_running): Likewise.
4546 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4548 2014-03-06 Yao Qi <yao@codesourcery.com>
4550 * target.h (struct target_ops) <to_traceframe_info>: Use
4551 TARGET_DEFAULT_NORETURN (tcomplain ()).
4552 * target-delegates.c: Regenerated.
4554 2014-03-05 Pedro Alves <palves@redhat.com>
4557 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4558 void. Update comment.
4559 (dcache_xfer_memory): Delete.
4560 (dcache_read_memory_partial): New, based on the read bits of
4562 (dcache_update): Add status parameter. Use ULONGEST for len, and
4563 adjust. Discard cache lines if the reason for the update was
4565 * dcache.h (dcache_xfer_memory): Delete declaration.
4566 (dcache_read_memory_partial): New declaration.
4567 (dcache_update): Update prototype.
4568 * target.c (raw_memory_xfer_partial): Update the dcache here.
4569 (memory_xfer_partial_1): Don't handle dcache writes here.
4571 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4573 * remote-sim.c (gdbsim_load): Add const to prog.
4575 2014-03-03 Tom Tromey <tromey@redhat.com>
4577 * elfread.c (probe_key): Change to bfd_data.
4578 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4579 now per-BFD, not per-objfile.
4580 * stap-probe.c (stap_probe_destroy): Update comment.
4581 (handle_stap_probe): Allocate on the per-BFD obstack.
4583 2014-03-03 Tom Tromey <tromey@redhat.com>
4585 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4586 * breakpoint.c (create_longjmp_master_breakpoint): Use
4588 (add_location_to_breakpoint, bkpt_probe_insert_location)
4589 (bkpt_probe_remove_location): Update.
4590 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4591 * elfread.c (elf_symfile_relocate_probe): Remove.
4592 (elf_probe_fns): Update.
4593 (insert_exception_resume_breakpoint): Change type of "probe"
4594 parameter to bound_probe.
4595 (check_exception_resume): Update.
4596 * objfiles.c (objfile_relocate1): Don't relocate probes.
4597 * probe.c (bound_probe_s): New typedef.
4598 (parse_probes): Use get_probe_address. Set sal's objfile.
4599 (find_probe_by_pc): Return a bound_probe.
4600 (collect_probes): Return a VEC(bound_probe_s).
4601 (compare_probes): Update.
4602 (gen_ui_out_table_header_info): Change type of "probes"
4604 (info_probes_for_ops): Update.
4605 (get_probe_address): New function.
4606 (probe_safe_evaluate_at_pc): Update.
4607 * probe.h (struct probe_ops) <get_probe_address>: New field.
4608 <set_semaphore, clear_semaphore>: Add objfile parameter.
4609 (struct probe) <objfile>: Remove field.
4611 <address>: Update comment.
4612 (struct bound_probe): New.
4613 (find_probe_by_pc): Return a bound_probe.
4614 (get_probe_address): Declare.
4615 * solib-svr4.c (struct probe_and_action) <address>: New field.
4616 (hash_probe_and_action, equal_probe_and_action): Update.
4617 (register_solib_event_probe): Add address parameter.
4618 (solib_event_probe_at): Update.
4619 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4621 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4622 (stap_get_probe_address): New function.
4623 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4624 (compile_probe_arg): Update.
4625 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4627 (handle_stap_probe): Don't relocate the probe.
4628 (stap_relocate): Remove.
4629 (stap_gen_info_probes_table_values): Update.
4630 (stap_probe_ops): Remove stap_relocate.
4631 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4632 (debug_sym_probe_fns): Update.
4633 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4634 * symtab.c (init_sal): Use memset.
4635 * symtab.h (struct symtab_and_line) <objfile>: New field.
4636 * tracepoint.c (start_tracing, stop_tracing): Update.
4638 2014-03-03 Tom Tromey <tromey@redhat.com>
4640 * probe.h (parse_probes, find_probe_by_pc)
4641 (find_probes_in_objfile): Fix comments.
4643 2014-03-02 Doug Evans <xdje42@gmail.com>
4645 * infrun.c (handle_signal_stop): Replace test for
4646 TARGET_WAITKIND_STOPPED with an assert.
4648 2014-03-02 Doug Evans <xdje42@gmail.com>
4650 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4652 2014-03-02 Doug Evans <xdje42@gmail.com>
4654 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4656 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4658 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4660 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4662 * i386obsd-nat.c: Include "obsd-nat.h".
4663 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4665 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4667 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4669 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4671 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4673 * mips64obsd-nat.c: Include "obsd-nath".
4674 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4676 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4678 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4680 * amd64obsd-nat.c: Include "obsd-nat,h.
4681 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4683 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4685 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4687 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4688 (find_overload_match): Update call to find_oload_champ.
4689 (find_oload_champ_namespace_loop): Likewise
4691 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4693 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4695 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4696 * config/sparc/obsd64.mh: New file.
4697 * sparc64obsd-nat.c: New file.
4699 * obsd-nat.h: New file.
4700 * obsd-nat.c: New file.
4701 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4702 (ALLDEPFILES): Add obsd-nat.c.
4704 2014-02-28 Tom Tromey <tromey@redhat.com>
4706 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4707 * cli-out.h (cli_ui_out_impl): Now const.
4708 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4709 * ui-out.c (struct ui_out) <impl>: Now const.
4710 (default_ui_out_impl): Now const.
4711 (ui_out_new): Make 'impl' parameter const.
4712 * ui-out.h (ui_out_new): Update.
4714 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4716 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4718 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4720 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4722 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 Additional PR 8882 fix.
4725 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4727 2014-02-27 Pedro Alves <palves@redhat.com>
4729 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4732 2014-02-27 Pedro Alves <palves@redhat.com>
4735 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4736 * nat/linux-waitpid.c: Include string.h.
4737 (status_to_str): Moved here and made extern.
4738 * nat/linux-waitpid.h (status_to_str): New declaration.
4740 2014-02-27 Hui Zhu <hui@codesourcery.com>
4743 * infrun.c (ptid_match): Move ...
4744 * common/ptid.c (ptid_match): ... here.
4745 * inferior.h (ptid_match): Move ...
4746 * common/ptid.h (ptid_match): ... here.
4748 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4750 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4751 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4754 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4756 * obsd-tdep.c (obsd_auxv_parse): New function.
4757 (obsd_init_abi): Set auxv_parse.
4759 * gdbarch.sh (auxv_parse): New.
4760 * gdbarch.h: Regenerated.
4761 * gdbarch.c: Regenerated.
4762 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4764 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4766 * guile/scm-value.c (gdbscm_history_append_x): New function.
4767 (value_functions): Add it.
4769 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4771 * dwarf2read.c (attr_value_as_address): New function.
4772 (dwarf2_find_base_address, read_call_site_scope): Use
4773 attr_value_as_address in place of DW_ADDR.
4774 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4775 the low and high addresses. Slight rework of the handling
4776 of the high pc being a constant form, and limit it to
4777 DWARF verson 4 or higher.
4778 (dwarf2_record_block_ranges): Likewise.
4779 (read_partial_die): Likewise.
4780 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4782 2014-02-26 Tom Tromey <tromey@redhat.com>
4784 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4786 2014-02-26 Tom Tromey <tromey@redhat.com>
4788 * elfread.c (elf_read_minimal_symbols): Return early if
4789 minimal symbols have already been read. Add "ei" parameter.
4790 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4791 * minsyms.c (prim_record_minimal_symbol_full): Update.
4792 * objfiles.h (struct objstats) <n_minsyms>: Move...
4793 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4794 * symmisc.c (print_objfile_statistics): Update.
4796 2014-02-26 Tom Tromey <tromey@redhat.com>
4798 * elfread.c (elf_read_minimal_symbols): New function, from
4800 (elf_symfile_read): Call it.
4802 2014-02-26 Tom Tromey <tromey@redhat.com>
4804 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4805 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4806 (lookup_minimal_symbol_solib_trampoline)
4807 (lookup_minimal_symbol_by_pc_section_1)
4808 (lookup_minimal_symbol_and_objfile): Update.
4809 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4810 Don't allocate a minimal symbol if minsyms have already been read.
4811 (build_minimal_symbol_hash_tables): Update.
4812 (install_minimal_symbols): Do nothing if minsyms already read.
4813 Use the per-BFD obstack.
4814 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4815 * objfiles.c (allocate_objfile): Call
4816 terminate_minimal_symbol_table later.
4817 (have_minimal_symbols): Update.
4818 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4819 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4820 Move from struct objfile.
4821 <minsyms_read>: New field.
4822 (struct objfile) <msymbols, minimal_symbol_count,
4823 msymbol_hash, msymbol_demangled_hash>: Move.
4824 (ALL_OBJFILE_MSYMBOLS): Update.
4825 * symfile.c (read_symbols): Set minsyms_read.
4826 (reread_symbols): Update.
4827 * symmisc.c (dump_objfile, dump_msymbols): Update.
4829 2014-02-26 Tom Tromey <tromey@redhat.com>
4831 * minsyms.c (msymbols_sort): Remove.
4832 * minsyms.h (msymbols_sort): Remove.
4833 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4834 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4835 * elfread.c (elf_symtab_read): Don't add section offsets.
4836 * xcoffread.c (record_minimal_symbol): Don't add section offset
4837 to minimal symbol address.
4838 * somread.c (text_offset, data_offset): Remove.
4839 (som_symtab_read): Don't add section offsets to minimal symbol
4841 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4842 Don't add section offsets to minimal symbols.
4843 * coffread.c (coff_symtab_read): Don't add section offsets
4844 to minimal symbol addresses.
4845 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4846 to minimal symbol addresses.
4847 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4848 section offset to minimal symbol addresses.
4849 * mdebugread.c (parse_partial_symbols): Don't add section
4850 offset to minimal symbol addresses.
4851 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4852 offset to minimal symbol addresses.
4854 2014-02-26 Tom Tromey <tromey@redhat.com>
4856 * ada-lang.c (ada_main_name): Update.
4857 (ada_add_standard_exceptions): Update.
4858 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4859 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4860 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4861 * auxv.c (ld_so_xfer_auxv): Update.
4862 * avr-tdep.c (avr_scan_prologue): Update.
4863 * ax-gdb.c (gen_var_ref): Update.
4864 * blockframe.c (get_pc_function_start)
4865 (find_pc_partial_function_gnu_ifunc): Update.
4866 * breakpoint.c (create_overlay_event_breakpoint)
4867 (create_longjmp_master_breakpoint)
4868 (create_std_terminate_master_breakpoint)
4869 (create_exception_master_breakpoint): Update.
4870 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4871 * c-valprint.c (c_val_print): Update.
4872 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4873 * common/agent.c (agent_look_up_symbols): Update.
4874 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4875 * dwarf2loc.c (call_site_to_target_addr): Update.
4876 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4877 * elfread.c (elf_gnu_ifunc_record_cache)
4878 (elf_gnu_ifunc_resolve_by_got): Update.
4879 * findvar.c (default_read_var_value): Update.
4880 * frame.c (inside_main_func): Update.
4881 * frv-tdep.c (frv_frame_this_id): Update.
4882 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4883 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4885 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4886 (hppa_hpux_find_dummy_bpaddr): Update.
4887 * hppa-tdep.c (hppa_symbol_address): Update.
4888 * infcmd.c (until_next_command): Update.
4889 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4891 * linespec.c (minsym_found, add_minsym): Update.
4892 * linux-nat.c (get_signo): Update.
4893 * linux-thread-db.c (inferior_has_bug): Update.
4894 * m32c-tdep.c (m32c_return_value)
4895 (m32c_m16c_address_to_pointer): Update.
4896 * m32r-tdep.c (m32r_frame_this_id): Update.
4897 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4898 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4899 * maint.c (maintenance_translate_address): Update.
4900 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4901 (frob_address): New function.
4902 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4903 frob_address. Rename parameter to "pc_in".
4904 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4906 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4908 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4909 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4910 * objc-lang.c (find_objc_msgsend): Update.
4911 * objfiles.c (objfile_relocate1): Update.
4912 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4913 * p-valprint.c (pascal_val_print): Update.
4914 * parse.c (write_exp_msymbol): Update.
4915 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4916 (ppc_elfv2_skip_entrypoint): Update.
4917 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4918 * printcmd.c (build_address_symbolic, msym_info)
4919 (address_info): Update.
4920 * proc-service.c (ps_pglobal_lookup): Update.
4921 * psymtab.c (find_pc_sect_psymtab_closer)
4922 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4923 Change msymbol parameter to bound_minimal_symbol.
4924 * ravenscar-thread.c (get_running_thread_id): Update.
4925 * remote.c (remote_check_symbols): Update.
4926 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4928 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4929 * solib-dsbt.c (lm_base): Update.
4930 * solib-frv.c (lm_base, main_got): Update.
4931 * solib-irix.c (locate_base): Update.
4932 * solib-som.c (som_solib_create_inferior_hook)
4933 (link_map_start): Update.
4934 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4935 * solib-svr4.c (elf_locate_base, enable_break): Update.
4936 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4937 (flush_ea_cache): Update.
4938 * stabsread.c (define_symbol, scan_file_globals): Update.
4939 * stack.c (find_frame_funname): Update.
4940 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4941 (debug_qf_find_pc_sect_symtab): Update.
4942 * symfile.c (simple_read_overlay_table)
4943 (simple_overlay_update): Update.
4944 * symfile.h (struct quick_symbol_functions)
4945 <find_pc_sect_symtab>: Change type of msymbol to
4946 bound_minimal_symbol.
4947 * symmisc.c (dump_msymbols): Update.
4948 * symtab.c (find_pc_sect_symtab_via_partial)
4949 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4950 (search_symbols, print_msymbol_info): Update.
4951 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4952 (MSYMBOL_VALUE_ADDRESS): Redefine.
4953 (BMSYMBOL_VALUE_ADDRESS): New macro.
4954 * tracepoint.c (scope_info): Update.
4955 * tui/tui-disasm.c (tui_find_disassembly_address)
4956 (tui_get_begin_asm_address): Update.
4957 * valops.c (find_function_in_inferior): Update.
4958 * value.c (value_static_field, value_fn_field): Update.
4960 2014-02-26 Tom Tromey <tromey@redhat.com>
4962 * ada-lang.c (ada_update_initial_language): Update.
4963 (ada_main_name, ada_has_this_exception_support): Update.
4964 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4965 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4966 * arm-tdep.c (arm_skip_stub): Update.
4967 * auxv.c (ld_so_xfer_auxv): Update.
4968 * avr-tdep.c (avr_scan_prologue): Update.
4969 * ax-gdb.c (gen_var_ref): Update.
4970 * breakpoint.c (struct breakpoint_objfile_data)
4971 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4972 type to bound_minimal_symbol.
4973 (create_overlay_event_breakpoint)
4974 (create_longjmp_master_breakpoint)
4975 (create_std_terminate_master_breakpoint)
4976 (create_exception_master_breakpoint): Update.
4977 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4978 * c-exp.y (classify_name): Update.
4979 * coffread.c (coff_symfile_read): Update.
4980 * common/agent.c (agent_look_up_symbols): Update.
4981 * d-lang.c (d_main_name): Update.
4982 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4983 * dec-thread.c (enable_dec_thread): Update.
4984 * dwarf2loc.c (call_site_to_target_addr): Update.
4985 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4986 * eval.c (evaluate_subexp_standard): Update.
4987 * findvar.c (struct minsym_lookup_data) <result>: Change type
4988 to bound_minimal_symbol.
4990 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4991 * frame.c (inside_main_func): Update.
4992 * frv-tdep.c (frv_frame_this_id): Update.
4993 * gcore.c (call_target_sbrk): Update.
4994 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4995 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4997 * go-lang.c (go_main_name): Update.
4998 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4999 (hppa_hpux_find_import_stub_for_addr): Update.
5000 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5001 Update. Change return type.
5002 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5004 * jit.c (jit_breakpoint_re_set_internal): Update.
5005 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5007 * linux-nat.c (get_signo): Update.
5008 * linux-thread-db.c (inferior_has_bug): Update
5009 * m32c-tdep.c (m32c_return_value)
5010 (m32c_m16c_address_to_pointer): Update.
5011 * m32r-tdep.c (m32r_frame_this_id): Update.
5012 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5013 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5014 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5015 lookup_minimal_symbol. Change return type.
5016 (lookup_minimal_symbol): Remove.
5017 (lookup_bound_minimal_symbol): Update.
5018 (lookup_minimal_symbol_text): Change return type.
5019 (lookup_minimal_symbol_solib_trampoline): Change return type.
5020 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5021 (lookup_minimal_symbol_solib_trampoline): Change return type.
5022 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5023 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5024 (value_nsstring, find_imps): Update.
5025 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5026 * p-lang.c (pascal_main_name): Update.
5027 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5028 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5029 * proc-service.c (ps_pglobal_lookup): Update.
5030 * ravenscar-thread.c (get_running_thread_msymbol): Change
5032 (has_ravenscar_runtime, get_running_thread_id): Update.
5033 * remote.c (remote_check_symbols): Update.
5034 * sol-thread.c (ps_pglobal_lookup): Update.
5035 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5036 * solib-dsbt.c (lm_base): Update.
5037 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5039 * solib-irix.c (locate_base): Update.
5040 * solib-som.c (som_solib_create_inferior_hook)
5041 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5043 * solib-spu.c (spu_enable_break): Update.
5044 * solib-svr4.c (elf_locate_base, enable_break): Update.
5045 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5046 (flush_ea_cache): Update.
5047 * stabsread.c (define_symbol): Update.
5048 * symfile.c (simple_read_overlay_table): Update.
5049 * symtab.c (find_pc_sect_line): Update.
5050 * tracepoint.c (scope_info): Update.
5051 * tui-disasm.c (tui_get_begin_asm_address): Update.
5052 * value.c (value_static_field): Update.
5054 2014-02-26 Tom Tromey <tromey@redhat.com>
5056 * minsyms.c (prim_record_minimal_symbol_full): Use
5057 SET_MSYMBOL_VALUE_ADDRESS.
5058 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5059 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5060 SET_MSYMBOL_VALUE_ADDRESS.
5061 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5062 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5064 2014-02-26 Tom Tromey <tromey@redhat.com>
5066 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5067 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5068 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5069 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5070 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5071 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5072 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5073 * ada-lang.c (ada_main_name): Update.
5074 (ada_lookup_simple_minsym): Update.
5075 (ada_make_symbol_completion_list): Update.
5076 (ada_add_standard_exceptions): Update.
5077 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5078 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5079 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5080 * arm-tdep.c (skip_prologue_function): Update.
5081 (arm_skip_stack_protector, arm_skip_stub): Update.
5082 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5083 (arm_wince_skip_main_prologue): Update.
5084 * auxv.c (ld_so_xfer_auxv): Update.
5085 * avr-tdep.c (avr_scan_prologue): Update.
5086 * ax-gdb.c (gen_var_ref): Update.
5087 * block.c (call_site_for_pc): Update.
5088 * blockframe.c (get_pc_function_start): Update.
5089 (find_pc_partial_function_gnu_ifunc): Update.
5090 * breakpoint.c (create_overlay_event_breakpoint): Update.
5091 (create_longjmp_master_breakpoint): Update.
5092 (create_std_terminate_master_breakpoint): Update.
5093 (create_exception_master_breakpoint): Update.
5094 (resolve_sal_pc): Update.
5095 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5096 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5098 * c-valprint.c (c_val_print): Update.
5099 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5100 * coffread.c (coff_symfile_read): Update.
5101 * common/agent.c (agent_look_up_symbols): Update.
5102 * dbxread.c (find_stab_function_addr): Update.
5103 (end_psymtab): Update.
5104 * dwarf2loc.c (call_site_to_target_addr): Update.
5105 (func_verify_no_selftailcall): Update.
5106 (tailcall_dump): Update.
5107 (call_site_find_chain_1): Update.
5108 (dwarf_expr_reg_to_entry_parameter): Update.
5109 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5110 (elf_gnu_ifunc_resolve_by_got): Update.
5111 * f-valprint.c (info_common_command): Update.
5112 * findvar.c (read_var_value): Update.
5113 * frame.c (get_prev_frame_1): Update.
5114 (inside_main_func): Update.
5115 * frv-tdep.c (frv_skip_main_prologue): Update.
5116 (frv_frame_this_id): Update.
5117 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5118 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5119 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5120 (gnuv3_skip_trampoline): Update.
5121 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5122 (hppa64_hpux_in_solib_call_trampoline): Update.
5123 (hppa_hpux_skip_trampoline_code): Update.
5124 (hppa64_hpux_search_dummy_call_sequence): Update.
5125 (hppa_hpux_find_import_stub_for_addr): Update.
5126 (hppa_hpux_find_dummy_bpaddr): Update.
5127 * hppa-tdep.c (hppa_symbol_address)
5128 (hppa_lookup_stub_minimal_symbol): Update.
5129 * i386-tdep.c (i386_skip_main_prologue): Update.
5130 (i386_pe_skip_trampoline_code): Update.
5131 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5132 * infcall.c (get_function_name): Update.
5133 * infcmd.c (until_next_command): Update.
5134 * jit.c (jit_breakpoint_re_set_internal): Update.
5135 (jit_inferior_init): Update.
5136 * linespec.c (minsym_found): Update.
5137 (add_minsym): Update.
5138 * linux-fork.c (info_checkpoints_command): Update.
5139 * linux-nat.c (get_signo): Update.
5140 * linux-thread-db.c (inferior_has_bug): Update.
5141 * m32c-tdep.c (m32c_return_value): Update.
5142 (m32c_m16c_address_to_pointer): Update.
5143 (m32c_m16c_pointer_to_address): Update.
5144 * m32r-tdep.c (m32r_frame_this_id): Update.
5145 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5146 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5147 * maint.c (maintenance_translate_address): Update.
5148 * minsyms.c (add_minsym_to_hash_table): Update.
5149 (add_minsym_to_demangled_hash_table): Update.
5150 (msymbol_objfile): Update.
5151 (lookup_minimal_symbol): Update.
5152 (iterate_over_minimal_symbols): Update.
5153 (lookup_minimal_symbol_text): Update.
5154 (lookup_minimal_symbol_by_pc_name): Update.
5155 (lookup_minimal_symbol_solib_trampoline): Update.
5156 (lookup_minimal_symbol_by_pc_section_1): Update.
5157 (lookup_minimal_symbol_and_objfile): Update.
5158 (prim_record_minimal_symbol_full): Update.
5159 (compare_minimal_symbols): Update.
5160 (compact_minimal_symbols): Update.
5161 (build_minimal_symbol_hash_tables): Update.
5162 (install_minimal_symbols): Update.
5163 (terminate_minimal_symbol_table): Update.
5164 (find_solib_trampoline_target): Update.
5165 (minimal_symbol_upper_bound): Update.
5166 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5167 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5168 (mips_skip_pic_trampoline_code): Update.
5169 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5170 * objc-lang.c (selectors_info): Update.
5171 (classes_info): Update.
5172 (find_methods): Update.
5173 (find_imps): Update.
5174 (find_objc_msgsend): Update.
5175 * objfiles.c (objfile_relocate1): Update.
5176 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5177 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5178 * p-valprint.c (pascal_val_print): Update.
5179 * parse.c (write_exp_msymbol): Update.
5180 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5181 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5182 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5183 * printcmd.c (build_address_symbolic): Update.
5185 (address_info): Update.
5186 * proc-service.c (ps_pglobal_lookup): Update.
5187 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5188 (find_pc_sect_psymtab): Update.
5189 * python/py-framefilter.c (py_print_frame): Update.
5190 * ravenscar-thread.c (get_running_thread_id): Update.
5191 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5193 * remote.c (remote_check_symbols): Update.
5194 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5195 (rs6000_skip_trampoline_code): Update.
5196 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5197 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5198 * solib-dsbt.c (lm_base): Update.
5199 * solib-frv.c (lm_base): Update.
5201 * solib-irix.c (locate_base): Update.
5202 * solib-som.c (som_solib_create_inferior_hook): Update.
5203 (som_solib_desire_dynamic_linker_symbols): Update.
5204 (link_map_start): Update.
5205 * solib-spu.c (spu_enable_break): Update.
5206 (ocl_enable_break): Update.
5207 * solib-svr4.c (elf_locate_base): Update.
5208 (enable_break): Update.
5209 * spu-tdep.c (spu_get_overlay_table): Update.
5210 (spu_catch_start): Update.
5211 (flush_ea_cache): Update.
5212 * stabsread.c (define_symbol): Update.
5213 (scan_file_globals): Update.
5214 * stack.c (find_frame_funname): Update.
5215 (frame_info): Update.
5216 * symfile.c (simple_read_overlay_table): Update.
5217 (simple_overlay_update): Update.
5218 * symmisc.c (dump_msymbols): Update.
5219 * symtab.c (fixup_section): Update.
5220 (find_pc_sect_line): Update.
5221 (skip_prologue_sal): Update.
5222 (search_symbols): Update.
5223 (print_msymbol_info): Update.
5224 (rbreak_command): Update.
5225 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5226 (completion_list_objc_symbol): Update.
5227 (default_make_symbol_completion_list_break_on): Update.
5228 * tracepoint.c (scope_info): Update.
5229 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5230 (tui_get_begin_asm_address): Update.
5231 * valops.c (find_function_in_inferior): Update.
5232 * value.c (value_static_field): Update.
5233 (value_fn_field): Update.
5235 2014-02-26 Tom Tromey <tromey@redhat.com>
5237 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5238 bound minimal symbols. Move code that knows about minsym
5240 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5242 * minsyms.h (minimal_symbol_upper_bound): Declare.
5243 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5244 minimal_symbol_upper_bound.
5246 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5248 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5249 Use the type's name if its basic type does not have a tag.
5251 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5253 * dwarf2read.c (read_subrange_type): Add comment.
5255 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5257 * dwarf2read.c (update_enumeration_type_from_children): New
5258 function, mostly extracted from process_structure_scope.
5259 (read_enumeration_type): Call update_enumeration_type_from_children.
5260 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5261 and flag_flag_enum fields.
5263 2014-02-26 Pedro Alves <palves@redhat.com>
5265 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5266 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5267 to_xfer_partial method.
5269 2014-02-26 Pedro Alves <palves@redhat.com>
5271 * target.c (complete_target_initialization): Don't install
5272 default_xfer_partial as to_xfer_partial hook.
5274 (update_current_target): Don't INHERIT nor de_fault
5275 deprecated_xfer_memory. Delete de_fault macro.
5276 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5277 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5278 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5281 2014-02-26 Pedro Alves <palves@redhat.com>
5283 * go32-nat.c (my_write_child): New function.
5284 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5285 (go32_xfer_partial): New function.
5286 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5287 Instead install a to_xfer_partial hook.
5289 2014-02-26 Pedro Alves <palves@redhat.com>
5291 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5292 to_xfer_partial helper. Rewrite.
5293 (procfs_xfer_partial): New function.
5294 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5295 Install a to_xfer_partial hook.
5297 2014-02-26 Pedro Alves <palves@redhat.com>
5299 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5300 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5301 (m32r_xfer_partial): New function.
5302 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5303 Install a to_xfer_partial hook.
5305 2014-02-26 Pedro Alves <palves@redhat.com>
5307 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5309 (mips_xfer_partial): New function.
5310 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5311 hook. Install a to_xfer_partial hook.
5313 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5315 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5316 * gdbtypes.c (create_array_type_with_stride): New function,
5317 renaming create_array_type, but with an added parameter
5318 called "bit_stride".
5319 (create_array_type): Re-implement using
5320 create_array_type_with_stride.
5321 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5322 and DW_AT_bit_stride attributes.
5324 2014-02-26 Pedro Alves <palves@redhat.com>
5326 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5327 task-specific breakpoints.
5329 2014-02-25 Pedro Alves <palves@redhat.com>
5331 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5332 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5334 2014-02-25 Stan Shebs <stan@codesourcery.com>
5336 * defs.h: Annotate comments for Doxygen.
5338 2014-02-25 Tom Tromey <tromey@redhat.com>
5340 * target.h (target_ignore): Don't declare.
5341 * target.c (target_ignore): Remove.
5343 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5346 * auto-load.c (auto_load_objfile_script_1): Change filename to
5349 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5351 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5352 documentation. Adjust prototype to match the target_ops
5353 to_xfer_partial method. Adjust implementation accordingly.
5355 2014-02-25 Hui Zhu <hui@codesourcery.com>
5357 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5360 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5362 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5363 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5364 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5365 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5366 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5367 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5368 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5369 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5371 (rl78_register_type): Use a data pointer type for SP and
5372 new pseudo registers mentioned above. Use a 16 bit integer
5373 type for all other register pairs.
5374 (rl78_register_name, rl78_g10_register_name): Update for
5375 new pseudo registers.
5376 (rl78_pseudo_register_read): Likewise.
5377 (rl78_pseudo_register_write): Likewise.
5378 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5379 to the newly added pseudo registers.
5381 2014-02-24 Doug Evans <dje@google.com>
5383 * value.c (record_latest_value): Fix comment.
5384 * printcmd.c (print_command_1): Remove code to handle -1 return from
5385 record_latest_value.
5387 2014-02-24 Pedro Alves <palves@redhat.com>
5389 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5390 deprecated_xfer_memory hook.
5391 (procfs_xfer_partial): Call procfs_xfer_memory instead
5392 of the deprecated_xfer_memory target hook.
5393 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5396 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5398 * windows-nat.c (windows_xfer_shared_libraries): Return
5399 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5400 requested object is TARGET_OBJECT_LIBRARIES.
5402 2014-02-24 Yao Qi <yao@codesourcery.com>
5404 * target.h (enum target_xfer_status)
5405 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5406 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5408 * corefile.c (memory_error_message): User updated.
5409 * exec.c (section_table_read_available_memory): Likewise.
5410 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5411 * target.c (target_xfer_status_to_string): Likewise.
5412 (raw_memory_xfer_partial): Likewise.
5413 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5414 * valops.c (read_value_memory): Likewise.
5415 * exec.h: Update comments.
5417 2014-02-24 Yao Qi <yao@codesourcery.com>
5419 * target.c (target_xfer_status_to_string): Rename argument err
5421 * target.h (target_xfer_status_to_string): Update declaration.
5422 Replace target_xfer_error_to_string with
5423 target_xfer_status_to_string in comment.
5425 2014-02-24 Yao Qi <yao@codesourcery.com>
5427 * mips-linux-nat.c (super_close): Update its type.
5428 (mips_linux_close): Pass 'self' to super_close.
5430 2014-02-24 Yao Qi <yao@codesourcery.com>
5432 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5433 * corefile.c (read_memory): Adjusted.
5434 * target.c (target_write_with_progress): Adjusted.
5436 2014-02-23 Yao Qi <yao@codesourcery.com>
5440 2013-10-25 Yao Qi <yao@codesourcery.com>
5442 * remote.c (remote_traceframe_info): Return early if
5443 traceframe is not selected.
5445 2013-07-19 Yao Qi <yao@codesourcery.com>
5447 * target.c (update_current_target): Change the default action
5448 of 'to_traceframe_info' from tcomplain to return_zero.
5449 * target.h (struct target_ops) <to_traceframe_info>: Add more
5452 2014-02-23 Yao Qi <yao@codesourcery.com>
5454 * valops.c (read_value_memory): Rewrite it. Call
5455 target_xfer_partial in a loop.
5456 * exec.h (section_table_available_memory): Remove declaration.
5457 Move comments to ...
5458 * exec.c (section_table_available_memory): ... here. Make it
5461 2014-02-23 Yao Qi <yao@codesourcery.com>
5463 * exec.c (section_table_read_available_memory): New function.
5464 * exec.h (section_table_read_available_memory): Declare.
5465 * ctf.c (ctf_xfer_partial): Call
5466 section_table_read_available_memory.
5467 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5469 2014-02-23 Yao Qi <yao@codesourcery.com>
5471 * ctf.c (ctf_xfer_partial): Move code to ...
5472 * exec.c (exec_read_partial_read_only): ... it. New function.
5473 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5474 * tracefile.c: Include "exec.h".
5475 * exec.h (exec_read_partial_read_only): Declare.
5477 2014-02-23 Yao Qi <yao@codesourcery.com>
5479 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5480 (tfile_has_memory): Remove.
5481 (init_tfile_ops): Don't set fields to_has_all_memory and
5482 to_has_memory of tfile_ops.
5483 * tracefile.c (tracefile_has_all_memory): New function.
5484 (tracefile_has_memory): New function.
5485 (init_tracefile_ops): Initialize fields to_has_all_memory and
5486 to_has_memory of 'ops'.
5488 2014-02-23 Yao Qi <yao@codesourcery.com>
5490 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5491 (ctf_thread_alive, ctf_get_trace_status): Remove.
5492 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5494 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5495 (tfile_has_stack, tfile_has_registers): Remove.
5496 (tfile_thread_alive): Remove.
5497 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5499 * tracefile.c (tracefile_has_stack): New function.
5500 (tracefile_has_registers): New function.
5501 (tracefile_thread_alive): New function.
5502 (tracefile_get_trace_status): New function.
5503 (init_tracefile_ops): New function.
5504 * tracefile.h (init_tracefile_ops): Declare.
5506 2014-02-23 Yao Qi <yao@codesourcery.com>
5508 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5509 (O_LARGEFILE): Likewise.
5510 (tfile_ops): Likewise.
5511 (TRACE_HEADER_SIZE): Likewise.
5512 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5513 (cur_data_size): Likewise.
5514 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5515 (tfile_close, tfile_files_info): Likewise.
5516 (tfile_get_trace_status): Likewise.
5517 (tfile_get_tracepoint_status): Likewise.
5518 (tfile_get_traceframe_address): Likewise.
5519 (tfile_trace_find, match_blocktype): Likewise.
5520 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5521 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5522 (tfile_get_trace_state_variable_value): Likewise.
5523 (tfile_has_all_memory, tfile_has_memory): Likewise.
5524 (tfile_has_stack, tfile_has_registers): Likewise.
5525 (tfile_thread_alive, build_traceframe_info): Likewise.
5526 (tfile_traceframe_info, init_tfile_ops): Likewise.
5527 (_initialize_tracepoint): Don't call init_tfile_ops
5528 and add_target_with_completer.
5529 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5530 exec.h, completer.h and filenames.h.
5531 (_initialize_tracefile_tfile): New function.
5533 2014-02-23 Yao Qi <yao@codesourcery.com>
5535 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5537 (HFILES_NO_SRCDIR): Add tracefile.h.
5538 * ctf.c: Include "tracefile.h".
5539 * tracefile.h: New file.
5540 * tracefile.c: New file
5541 * tracefile-tfile.c: New file.
5542 * tracepoint.c: Include "tracefile.h".
5543 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5544 (stop_reason_names): Add const.
5545 (trace_file_writer_xfree): Move it to tracefile.c.
5546 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5547 (trace_save_ctf): Likewise.
5548 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5549 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5550 (tfile_write_header, tfile_write_regblock_type): Likewise.
5551 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5552 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5553 (tfile_write_raw_data, tfile_end): Likewise.
5554 (tfile_trace_file_writer_new): Likewise.
5555 (free_uploaded_tp): Make it extern.
5556 (free_uploaded_tsv): Make it extern.
5557 (_initialize_tracepoint): Move code to register command 'tsave'
5559 * tracepoint.h (stop_reason_names): Declare.
5560 (struct trace_frame_write_ops): Move it to tracefile.h.
5561 (struct trace_file_write_ops): Likewise.
5562 (struct trace_file_writer): Likewise.
5563 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5565 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5568 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5570 (get_cores_used_by_process): New parameter num_cores, use it.
5571 (linux_xfer_osdata_processes): Pass num_cores to it.
5572 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5575 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5577 * target.c (memory_xfer_partial): Fix length arg in call to
5578 breakpoint_xfer_memory.
5580 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5583 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5584 number comes after the + or - signs. Adjust length of register
5585 name to be extracted.
5587 2014-02-20 Tom Tromey <tromey@redhat.com>
5589 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5590 (ada_varobj_ops): Mark "extern".
5592 2014-02-20 Tom Tromey <tromey@redhat.com>
5594 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5596 2014-02-20 Doug Evans <xdje42@gmail.com>
5598 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5599 All callers updated.
5600 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5601 All callers updated.
5602 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5603 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5605 2014-02-20 lin zuojian <manjian2006@gmail.com>
5606 Joel Brobecker <brobecker@adacore.com>
5607 Doug Evans <xdje42@gmail.com>
5610 * dwarf2read.c (struct die_info): New member in_process.
5611 (reset_die_in_process): New function.
5612 (process_die): Set it at the start, reset when returning.
5613 (inherit_abstract_dies): Only call process_die if origin_child_die
5614 not already being processed.
5616 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5618 * windows-nat.c (handle_unload_dll): Add function documentation.
5619 (do_initial_windows_stuff): Add comment explaining why we wait
5620 until after inferior initialization has finished before
5621 processing all DLLs.
5623 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5625 * windows-nat.c (get_module_name): Delete.
5626 (windows_get_exec_module_filename): New function, mostly
5627 inspired from get_module_name.
5628 (windows_pid_to_exec_file): Replace call to get_module_name
5629 by call to windows_get_exec_module_filename.
5631 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5633 * windows-nat.c (handle_load_dll): Rewrite this function's
5634 introductory comment. Remove code using get_module_name
5635 to get the DLL's name.
5637 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5639 * windows-nat.c (get_windows_debug_event): Ignore
5640 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5641 if windows_initialization_done == 0.
5642 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5643 Adjust implementation to always load all DLLs.
5644 (do_initial_windows_stuff): Replace call to
5645 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5647 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5649 * windows-nat.c (_initialize_windows_nat): Deprecate the
5650 "dll-symbols" command. Turn the "add-shared-symbol-files"
5651 and "assf" aliases into commands, and deprecate them as well.
5652 * NEWS: Add entry explaining that "dll-symbols" and its two
5653 aliases are now deprecated.
5655 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5657 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5658 new-line in debug string. Remove trailing spaces.
5660 2014-02-19 Stan Shebs <stan@codesourcery.com>
5662 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5664 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5666 * NEWS: Add entry for the new feature
5667 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5670 2014-02-19 Stan Shebs <stan@codesourcery.com>
5672 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5674 2014-02-19 Pedro Alves <palves@redhat.com>
5676 * common/ptid.h (struct ptid): Mention that process_stratum
5677 targets should prefer ptid.lwp.
5679 2014-02-19 Pedro Alves <palves@redhat.com>
5681 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5682 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5683 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5684 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5685 store remote thread ids rather than ptid.tid.
5686 (_initialize_remote): Adjust.
5688 2014-02-19 Tom Tromey <tromey@redhat.com>
5690 * target.c (target_get_unwinder): Rewrite.
5691 (target_get_tailcall_unwinder): Rewrite.
5692 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5693 (record_btrace_to_get_tailcall_unwinder): New function.
5694 (init_record_btrace_ops): Update.
5695 * target.h (struct target_ops) <to_get_unwinder,
5696 to_get_tailcall_unwinder>: Now function pointers. Use
5697 TARGET_DEFAULT_RETURN.
5699 2014-02-19 Tom Tromey <tromey@redhat.com>
5701 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5703 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5705 2014-02-19 Tom Tromey <tromey@redhat.com>
5707 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5709 * target-delegates.c: Rebuild.
5710 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5711 TARGET_DEFAULT_FUNC.
5712 * target.c (default_target_decr_pc_after_break): Rename from
5713 forward_target_decr_pc_after_break. Simplify.
5714 (target_decr_pc_after_break): Rely on delegation.
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.c (update_current_target): Do not INHERIT to_doc or
5719 to_magic. Do not de_fault to_open or to_close.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * gcore.h (objfile_find_memory_regions): Declare.
5724 * gcore.c (objfile_find_memory_regions): No longer static. Add
5726 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5727 * exec.c: Include gcore.h.
5728 (exec_set_find_memory_regions): Remove.
5729 (exec_find_memory_regions): Remove.
5730 (exec_do_find_memory_regions): Remove.
5731 (init_exec_ops): Update.
5732 * defs.h (exec_set_find_memory_regions): Remove.
5734 2014-02-19 Tom Tromey <tromey@redhat.com>
5736 * target-delegates.c: Rebuild.
5737 * target.h (struct target_ops) <to_extra_thread_info,
5738 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5739 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5740 not 0, in TARGET_DEFAULT_RETURN.
5742 2014-02-19 Tom Tromey <tromey@redhat.com>
5744 * target.c (complete_target_initialization): Remove casts. Use
5745 return_zero_has_execution.
5746 (return_zero): Add "ignore" argument.
5747 (return_zero_has_execution): New function.
5748 (init_dummy_target): Remove casts. Use
5749 return_zero_has_execution.
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target.c (update_current_target): Update comments. Do not
5756 2014-02-19 Tom Tromey <tromey@redhat.com>
5758 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5760 * corelow.c (core_read_description): Delegate when needed.
5761 * remote.c (remote_read_description): Delegate when needed.
5762 * target-delegates.c: Rebuild.
5763 * target.c (target_read_description): Rewrite.
5764 * target.h (struct target_ops) <to_read_description>: Update
5765 comment. Use TARGET_DEFAULT_RETURN.
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * target-delegates.c: Rebuild.
5770 * target.c (update_current_target): Don't inherit or default
5772 (find_default_run_target): Check against delegate_can_run.
5773 * target.h (struct target_ops) <to_can_run>: Use
5774 TARGET_DEFAULT_RETURN.
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target-delegates.c: Rebuild.
5779 * target.c (target_disconnect): Unconditionally delegate.
5780 * target.h (struct target_ops) <to_disconnect>: Use
5781 TARGET_DEFAULT_NORETURN.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * record.c (record_stop): Unconditionally delegate.
5786 * target-delegates.c: Rebuild.
5787 * target.c (target_stop_recording): Unconditionally delegate.
5788 * target.h (struct target_ops) <to_stop_recording>: Use
5789 TARGET_DEFAULT_IGNORE.
5791 2014-02-19 Tom Tromey <tromey@redhat.com>
5793 * target-delegates.c: Rebuild.
5794 * target.c (target_enable_btrace): Unconditionally delegate.
5795 * target.h (struct target_ops) <to_enable_btrace>: Use
5796 TARGET_DEFAULT_NORETURN.
5798 2014-02-19 Tom Tromey <tromey@redhat.com>
5800 * target-delegates.c: Rebuild.
5801 * target.c (target_read_btrace): Unconditionally delegate.
5802 * target.h (struct target_ops) <to_read_btrace>: Use
5803 TARGET_DEFAULT_NORETURN.
5805 2014-02-19 Tom Tromey <tromey@redhat.com>
5807 * target-delegates.c: Rebuild.
5808 * target.c (target_teardown_btrace): Unconditionally delegate.
5809 * target.h (struct target_ops) <to_teardown_btrace>: Use
5810 TARGET_DEFAULT_NORETURN.
5812 2014-02-19 Tom Tromey <tromey@redhat.com>
5814 * target-delegates.c: Rebuild.
5815 * target.c (target_disable_btrace): Unconditionally delegate.
5816 * target.h (struct target_ops) <to_disable_btrace>: Use
5817 TARGET_DEFAULT_NORETURN.
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * target-delegates.c: Rebuild.
5822 * target.c (default_search_memory): New function.
5823 (simple_search_memory): Update comment.
5824 (target_search_memory): Unconditionally delegate.
5825 * target.h (struct target_ops) <to_search_memory>: Use
5826 TARGET_DEFAULT_FUNC.
5828 2014-02-19 Tom Tromey <tromey@redhat.com>
5830 * auxv.c (default_auxv_parse): No longer static.
5831 (target_auxv_parse): Unconditionally delegate.
5832 * auxv.h (default_auxv_parse): Declare.
5833 * target-delegates.c: Rebuild.
5834 * target.c: Include auxv.h.
5835 * target.h (struct target_ops) <to_auxv_parse>: Use
5836 TARGET_DEFAULT_FUNC.
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * target-delegates.c: Rebuild.
5841 * target.c (target_memory_map): Unconditionally delegate.
5842 * target.h (struct target_ops) <to_memory_map>: Use
5843 TARGET_DEFAULT_RETURN.
5845 2014-02-19 Tom Tromey <tromey@redhat.com>
5847 * target-delegates.c: Rebuild.
5848 * target.c (target_thread_alive): Unconditionally delegate.
5849 * target.h (struct target_ops) <to_thread_alive>: Use
5850 TARGET_DEFAULT_RETURN.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * target-delegates.c: Rebuild.
5855 * target.c (target_save_record): Unconditionally delegate.
5856 * target.h (struct target_ops) <to_save_record>: Use
5857 TARGET_DEFAULT_NORETURN.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target-delegates.c: Rebuild.
5862 * target.c (target_delete_record): Unconditionally delegate.
5863 * target.h (struct target_ops) <to_delete_record>: Use
5864 TARGET_DEFAULT_NORETURN.
5866 2014-02-19 Tom Tromey <tromey@redhat.com>
5868 * target-delegates.c: Rebuild.
5869 * target.c (target_record_is_replaying): Unconditionally
5871 * target.h (struct target_ops) <to_record_is_replaying>: Use
5872 TARGET_DEFAULT_RETURN.
5874 2014-02-19 Tom Tromey <tromey@redhat.com>
5876 * target-delegates.c: Rebuild.
5877 * target.c (target_goto_record_begin): Unconditionally delegate.
5878 * target.h (struct target_ops) <to_goto_record_begin>: Use
5879 TARGET_DEFAULT_NORETURN.
5881 2014-02-19 Tom Tromey <tromey@redhat.com>
5883 * target-delegates.c: Rebuild.
5884 * target.c (target_goto_record_end): Unconditionally delegate.
5885 * target.h (struct target_ops) <to_goto_record_end>: Use
5886 TARGET_DEFAULT_NORETURN.
5888 2014-02-19 Tom Tromey <tromey@redhat.com>
5890 * target-delegates.c: Rebuild.
5891 * target.c (target_goto_record): Unconditionally delegate.
5892 * target.h (struct target_ops) <to_goto_record>: Use
5893 TARGET_DEFAULT_NORETURN.
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * target-delegates.c: Rebuild.
5898 * target.c (target_insn_history): Unconditionally delegate.
5899 * target.h (struct target_ops) <to_insn_history>: Use
5900 TARGET_DEFAULT_NORETURN.
5902 2014-02-19 Tom Tromey <tromey@redhat.com>
5904 * target-delegates.c: Rebuild.
5905 * target.c (target_insn_history_from): Unconditionally delegate.
5906 * target.h (struct target_ops) <to_insn_history_from>: Use
5907 TARGET_DEFAULT_NORETURN.
5909 2014-02-19 Tom Tromey <tromey@redhat.com>
5911 * target-delegates.c: Rebuild.
5912 * target.c (target_insn_history_range): Unconditionally delegate.
5913 * target.h (struct target_ops) <to_insn_history_range>: Use
5914 TARGET_DEFAULT_NORETURN.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target-delegates.c: Rebuild.
5919 * target.c (target_call_history): Unconditionally delegate.
5920 * target.h (struct target_ops) <to_call_history>: Use
5921 TARGET_DEFAULT_NORETURN.
5923 2014-02-19 Tom Tromey <tromey@redhat.com>
5925 * target-delegates.c: Rebuild.
5926 * target.c (target_call_history_from): Unconditionally delegate.
5927 * target.h (struct target_ops) <to_call_history_from>: Use
5928 TARGET_DEFAULT_NORETURN.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * target-delegates.c: Rebuild.
5933 * target.c (target_call_history_range): Unconditionally delegate.
5934 * target.h (struct target_ops) <to_call_history_range>: Use
5935 TARGET_DEFAULT_NORETURN.
5937 2014-02-19 Tom Tromey <tromey@redhat.com>
5939 * target-delegates.c: Rebuild.
5940 * target.c (target_verify_memory): Unconditionally delegate.
5941 * target.h (struct target_ops) <to_verify_memory>: Use
5942 TARGET_DEFAULT_NORETURN.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target-delegates.c: Rebuild.
5947 * target.c (target_core_of_thread): Unconditionally delegate.
5948 * target.h (struct target_ops) <to_core_of_thread>: Use
5949 TARGET_DEFAULT_RETURN.
5951 2014-02-19 Tom Tromey <tromey@redhat.com>
5953 * target-delegates.c: Rebuild.
5954 * target.c (target_flash_done): Unconditionally delegate.
5955 * target.h (struct target_ops) <to_flash_done>: Use
5956 TARGET_DEFAULT_NORETURN.
5958 2014-02-19 Tom Tromey <tromey@redhat.com>
5960 * target-delegates.c: Rebuild.
5961 * target.c (target_flash_erase): Unconditionally delegate.
5962 * target.h (struct target_ops) <to_flash_erase>: Use
5963 TARGET_DEFAULT_NORETURN.
5965 2014-02-19 Tom Tromey <tromey@redhat.com>
5967 * target-delegates.c: Rebuild.
5968 * target.c (target_get_section_table): Unconditionally delegate.
5969 * target.h (struct target_ops) <to_get_section_table>: Use
5970 TARGET_DEFAULT_RETURN.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target-delegates.c: Rebuild.
5975 * target.c (target_pid_to_str): Unconditionally delegate.
5976 (init_dummy_target): Don't initialize to_pid_to_str.
5977 (default_pid_to_str): Rename from dummy_pid_to_str.
5978 * target.h (struct target_ops) <to_pid_to_str>: Use
5979 TARGET_DEFAULT_FUNC.
5981 2014-02-19 Tom Tromey <tromey@redhat.com>
5983 * target-delegates.c: Rebuild.
5984 * target.c (target_find_new_threads): Unconditionally delegate.
5985 * target.h (struct target_ops) <to_find_new_threads>: Use
5986 TARGET_DEFAULT_RETURN.
5988 2014-02-19 Tom Tromey <tromey@redhat.com>
5990 * target-delegates.c: Rebuild.
5991 * target.c (target_program_signals): Unconditionally delegate.
5992 * target.h (struct target_ops) <to_program_signals>: Use
5993 TARGET_DEFAULT_IGNORE.
5995 2014-02-19 Tom Tromey <tromey@redhat.com>
5997 * target-delegates.c: Rebuild.
5998 * target.c (target_pass_signals): Unconditionally delegate.
5999 * target.h (struct target_ops) <to_pass_signals>: Use
6000 TARGET_DEFAULT_IGNORE.
6002 2014-02-19 Tom Tromey <tromey@redhat.com>
6004 * target-delegates.c: Rebuild.
6005 * target.c (default_mourn_inferior): New function.
6006 (target_mourn_inferior): Unconditionally delegate.
6007 * target.h (struct target_ops) <to_mourn_inferior>: Use
6008 TARGET_DEFAULT_FUNC.
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * target-delegates.c: Rebuild.
6013 * target.c (default_follow_fork): New function.
6014 (target_follow_fork): Unconditionally delegate.
6015 * target.h (struct target_ops) <to_follow_fork>: Use
6016 TARGET_DEFAULT_FUNC.
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6020 * target-delegates.c: Rebuild.
6021 * target.c (target_kill): Unconditionally delegate.
6022 * target.h (struct target_ops) <to_kill>: Use
6023 TARGET_DEFAULT_NORETURN.
6025 2014-02-19 Tom Tromey <tromey@redhat.com>
6027 * target-delegates.c: Rebuild.
6028 * target.c (target_masked_watch_num_registers): Unconditionally
6030 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6031 Use TARGET_DEFAULT_RETURN.
6033 2014-02-19 Tom Tromey <tromey@redhat.com>
6035 * target-delegates.c: Rebuild.
6036 * target.c (target_remove_mask_watchpoint): Unconditionally
6038 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6039 TARGET_DEFAULT_RETURN.
6041 2014-02-19 Tom Tromey <tromey@redhat.com>
6043 * target-delegates.c: Rebuild.
6044 * target.c (target_insert_mask_watchpoint): Unconditionally
6046 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6047 TARGET_DEFAULT_RETURN.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target-delegates.c: Rebuild.
6052 * target.c (target_ranged_break_num_registers): Unconditionally
6054 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6055 Use TARGET_DEFAULT_RETURN.
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6059 * target-delegates.c: Rebuild.
6060 * target.c (target_fetch_registers): Unconditionally delegate.
6061 * target.h (struct target_ops) <to_fetch_registers>: Use
6062 TARGET_DEFAULT_NORETURN.
6064 2014-02-19 Tom Tromey <tromey@redhat.com>
6066 * target-delegates.c: Rebuild.
6067 * target.c (update_current_target): Don't inherit or default
6069 * target.h (struct target_ops) <to_stop>: Use
6070 TARGET_DEFAULT_IGNORE.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target-delegates.c: Rebuild.
6075 * target.c (update_current_target): Don't inherit or default
6076 to_can_run_breakpoint_commands.
6077 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6078 Use TARGET_DEFAULT_RETURN.
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * target-delegates.c: Rebuild.
6083 * target.c (update_current_target): Don't inherit or default
6084 to_supports_evaluation_of_breakpoint_conditions.
6085 * target.h (struct target_ops)
6086 <to_supports_evaluation_of_breakpoint_conditions>: Use
6087 TARGET_DEFAULT_RETURN.
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target-delegates.c: Rebuild.
6092 * target.c (update_current_target): Don't inherit or default
6093 to_augmented_libraries_svr4_read.
6094 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6095 Use TARGET_DEFAULT_RETURN.
6097 2014-02-19 Tom Tromey <tromey@redhat.com>
6099 * target-delegates.c: Rebuild.
6100 * target.c (update_current_target): Don't inherit or default
6102 * target.h (struct target_ops) <to_can_use_agent>: Use
6103 TARGET_DEFAULT_RETURN.
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target-delegates.c: Rebuild.
6108 * target.c (update_current_target): Don't inherit or default
6110 * target.h (struct target_ops) <to_use_agent>: Use
6111 TARGET_DEFAULT_NORETURN.
6113 2014-02-19 Tom Tromey <tromey@redhat.com>
6115 * target-delegates.c: Rebuild.
6116 * target.c (update_current_target): Don't inherit or default
6118 (return_null): Remove.
6119 * target.h (struct target_ops) <to_traceframe_info>: Use
6120 TARGET_DEFAULT_RETURN.
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target-delegates.c: Rebuild.
6125 * target.c (update_current_target): Don't inherit or default
6126 to_static_tracepoint_markers_by_strid.
6127 * target.h (struct target_ops)
6128 <to_static_tracepoint_markers_by_strid>: Use
6129 TARGET_DEFAULT_NORETURN.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target-delegates.c: Rebuild.
6134 * target.c (update_current_target): Don't inherit or default
6135 to_static_tracepoint_marker_at.
6136 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6137 Use TARGET_DEFAULT_RETURN.
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target-delegates.c: Rebuild.
6142 * target.c (update_current_target): Don't inherit or default
6144 * target.h (struct target_ops) <to_set_permissions>: Use
6145 TARGET_DEFAULT_IGNORE.
6147 2014-02-19 Tom Tromey <tromey@redhat.com>
6149 * target-delegates.c: Rebuild.
6150 * target.c (update_current_target): Don't inherit or default
6152 * target.h (struct target_ops) <to_get_tib_address>: Use
6153 TARGET_DEFAULT_NORETURN.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target-delegates.c: Rebuild.
6158 * target.c (update_current_target): Don't inherit or default
6160 * target.h (struct target_ops) <to_set_trace_notes>: Use
6161 TARGET_DEFAULT_RETURN.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target-delegates.c: Rebuild.
6166 * target.c (update_current_target): Don't initialize
6167 to_set_trace_buffer_size.
6168 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6169 TARGET_DEFAULT_IGNORE.
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * target-delegates.c: Rebuild.
6174 * target.c (update_current_target): Don't inherit or default
6175 to_set_circular_trace_buffer.
6176 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6177 TARGET_DEFAULT_IGNORE.
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * target-delegates.c: Rebuild.
6182 * target.c (update_current_target): Don't inherit or default
6183 to_set_disconnected_tracing.
6184 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6185 TARGET_DEFAULT_IGNORE.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target-delegates.c: Rebuild.
6190 * target.c (update_current_target): Don't inherit or default
6191 to_get_min_fast_tracepoint_insn_len.
6192 (return_minus_one): Remove.
6193 * target.h (struct target_ops)
6194 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6196 2014-02-19 Tom Tromey <tromey@redhat.com>
6198 * target-delegates.c: Rebuild.
6199 * target.c (update_current_target): Don't inherit or default
6200 to_get_raw_trace_data.
6201 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6202 TARGET_DEFAULT_NORETURN.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target-delegates.c: Rebuild.
6207 * target.c (update_current_target): Don't inherit or default
6208 to_upload_trace_state_variables.
6209 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6210 Use TARGET_DEFAULT_RETURN.
6212 2014-02-19 Tom Tromey <tromey@redhat.com>
6214 * target-delegates.c: Rebuild.
6215 * target.c (update_current_target): Don't inherit or default
6216 to_upload_tracepoints.
6217 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6218 TARGET_DEFAULT_RETURN.
6220 2014-02-19 Tom Tromey <tromey@redhat.com>
6222 * target-delegates.c: Rebuild.
6223 * target.c (update_current_target): Don't inherit or default
6225 * target.h (struct target_ops) <to_save_trace_data>: Use
6226 TARGET_DEFAULT_NORETURN.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target-delegates.c: Rebuild.
6231 * target.c (update_current_target): Don't inherit or default
6232 to_get_trace_state_variable_value.
6233 * target.h (struct target_ops)
6234 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6236 2014-02-19 Tom Tromey <tromey@redhat.com>
6238 * target-delegates.c: Rebuild.
6239 * target.c (update_current_target): Don't inherit or default
6241 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6243 2014-02-19 Tom Tromey <tromey@redhat.com>
6245 * target-delegates.c: Rebuild.
6246 * target.c (update_current_target): Don't inherit or default
6248 * target.h (struct target_ops) <to_trace_stop>: Use
6249 TARGET_DEFAULT_NORETURN.
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * target-delegates.c: Rebuild.
6254 * target.c (update_current_target): Don't inherit or default
6255 to_get_tracepoint_status.
6256 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6257 TARGET_DEFAULT_NORETURN.
6259 2014-02-19 Tom Tromey <tromey@redhat.com>
6261 * target-delegates.c: Rebuild.
6262 * target.c (update_current_target): Don't inherit or default
6263 to_get_trace_status.
6264 * target.h (struct target_ops) <to_get_trace_status>: Use
6265 TARGET_DEFAULT_RETURN.
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target-delegates.c: Rebuild.
6270 * target.c (update_current_target): Don't inherit or default
6272 * target.h (struct target_ops) <to_trace_start>: Use
6273 TARGET_DEFAULT_NORETURN.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target-delegates.c: Rebuild.
6278 * target.c (update_current_target): Don't inherit or default
6279 to_trace_set_readonly_regions.
6280 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6281 Use TARGET_DEFAULT_NORETURN.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * target-delegates.c: Rebuild.
6286 * target.c (update_current_target): Don't inherit or default
6287 to_disable_tracepoint.
6288 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6289 TARGET_DEFAULT_NORETURN.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target-delegates.c: Rebuild.
6294 * target.c (update_current_target): Don't inherit or default
6295 to_enable_tracepoint.
6296 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6297 TARGET_DEFAULT_NORETURN.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target-delegates.c: Rebuild.
6302 * target.c (update_current_target): Don't inherit or default
6303 to_download_trace_state_variable.
6304 * target.h (struct target_ops) <to_download_trace_state_variable>:
6305 Use TARGET_DEFAULT_NORETURN.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * target-delegates.c: Rebuild.
6310 * target.c (update_current_target): Don't inherit or default
6311 to_can_download_tracepoint.
6312 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6313 TARGET_DEFAULT_RETURN.
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6317 * target-delegates.c: Rebuild.
6318 * target.c (update_current_target): Don't inherit or default
6319 to_download_tracepoint.
6320 * target.h (struct target_ops) <to_download_tracepoint>: Use
6321 TARGET_DEFAULT_NORETURN.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target-delegates.c: Rebuild.
6326 * target.c (update_current_target): Don't inherit or default
6328 * target.h (struct target_ops) <to_trace_init>: Use
6329 TARGET_DEFAULT_RETURN.
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target-delegates.c: Rebuild.
6334 * target.c (update_current_target): Don't inherit or default
6335 to_supports_string_tracing.
6336 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6337 TARGET_DEFAULT_RETURN.
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * target-delegates.c: Rebuild.
6342 * target.c (update_current_target): Don't inherit or default
6343 to_supports_enable_disable_tracepoint.
6344 * target.h (struct target_ops)
6345 <to_supports_enable_disable_tracepoint>: Use
6346 TARGET_DEFAULT_RETURN.
6348 2014-02-19 Tom Tromey <tromey@redhat.com>
6350 * target-delegates.c: Rebuild.
6351 * target.c (update_current_target): Don't inherit or default
6352 to_supports_multi_process.
6353 * target.h (struct target_ops) <to_supports_multi_process>: Use
6354 TARGET_DEFAULT_RETURN.
6356 2014-02-19 Tom Tromey <tromey@redhat.com>
6358 * target-delegates.c: Rebuild.
6359 * target.c (update_current_target): Don't inherit or default
6360 to_get_ada_task_ptid.
6361 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6362 TARGET_DEFAULT_FUNC.
6364 2014-02-19 Tom Tromey <tromey@redhat.com>
6366 * target-delegates.c: Rebuild.
6367 * target.c (update_current_target): Don't inherit or default
6368 to_thread_architecture.
6369 * target.h (struct target_ops) <to_thread_architecture>: Use
6370 TARGET_DEFAULT_FUNC.
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * target-delegates.c: Rebuild.
6375 * target.c (update_current_target): Don't inherit or default
6376 to_execution_direction.
6377 * target.h (struct target_ops) <to_execution_direction>: Use
6378 TARGET_DEFAULT_FUNC.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (update_current_target): Don't inherit or default
6384 to_can_execute_reverse.
6385 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6386 TARGET_DEFAULT_RETURN.
6387 (target_can_execute_reverse): Unconditionally delegate.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target-delegates.c: Rebuild.
6392 * target.c (update_current_target): Don't inherit or default
6394 (dummy_goto_bookmark): Remove.
6395 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6396 * target.h (struct target_ops) <to_goto_bookmark>: Use
6397 TARGET_DEFAULT_NORETURN.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target-delegates.c: Rebuild.
6402 * target.c (update_current_target): Don't inherit or default
6404 (dummy_get_bookmark): Remove.
6405 (init_dummy_target): Don't inherit or default to_get_bookmark.
6406 * target.h (struct target_ops) <to_get_bookmark>: Use
6407 TARGET_DEFAULT_NORETURN
6409 2014-02-19 Tom Tromey <tromey@redhat.com>
6411 * target-delegates.c: Rebuild.
6412 * target.c (update_current_target): Don't inherit or default
6413 to_make_corefile_notes.
6414 (init_dummy_target): Don't initialize to_make_corefile_notes.
6415 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6416 TARGET_DEFAULT_FUNC.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target-delegates.c: Rebuild.
6421 * target.c (update_current_target): Don't inherit or default
6422 to_find_memory_regions.
6423 (init_dummy_target): Don't initialize to_find_memory_regions.
6424 * target.h (struct target_ops) <to_find_memory_regions>: Use
6425 TARGET_DEFAULT_FUNC.
6427 2014-02-19 Tom Tromey <tromey@redhat.com>
6429 * target-delegates.c: Rebuild.
6430 * target.c (update_current_target): Don't inherit or default
6432 * target.h (struct target_ops) <to_log_command>: Use
6433 TARGET_DEFAULT_IGNORE.
6434 (target_log_command): Unconditionally delegate.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target-delegates.c: Rebuild.
6439 * target.c (update_current_target): Don't inherit or default
6440 to_pid_to_exec_file.
6441 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6442 TARGET_DEFAULT_RETURN.
6444 2014-02-19 Tom Tromey <tromey@redhat.com>
6446 * target-delegates.c: Rebuild.
6447 * target.c (update_current_target): Don't inherit or default
6449 (target_thread_name): Unconditionally delegate.
6450 * target.h (struct target_ops) <to_thread_name>: Use
6451 TARGET_DEFAULT_RETURN.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (update_current_target): Don't inherit or default
6457 to_extra_thread_info.
6458 * target.h (struct target_ops) <to_extra_thread_info>: Use
6459 TARGET_DEFAULT_RETURN.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target-delegates.c: Rebuild.
6464 * target.c (update_current_target): Don't inherit or default
6466 * target.h (struct target_ops) <to_has_exited>: Use
6467 TARGET_DEFAULT_RETURN..
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (update_current_target): Don't inherit or default
6473 to_set_syscall_catchpoint.
6474 (return_one): Remove.
6475 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6476 TARGET_DEFAULT_RETURN.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target-delegates.c: Rebuild.
6481 * target.c (update_current_target): Don't inherit or default
6482 to_insert_exec_catchpoint.
6483 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6484 TARGET_DEFAULT_RETURN.
6486 2014-01-08 Tom Tromey <tromey@redhat.com>
6488 * target-delegates.c: Rebuild.
6489 * target.c (update_current_target): Don't inherit or default
6490 to_insert_exec_catchpoint.
6491 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6492 TARGET_DEFAULT_RETURN.
6494 2014-02-19 Tom Tromey <tromey@redhat.com>
6496 * target-delegates.c: Rebuild.
6497 * target.c (update_current_target): Don't inherit or default
6498 to_remove_vfork_catchpoint.
6499 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6500 TARGET_DEFAULT_RETURN.
6502 2014-02-19 Tom Tromey <tromey@redhat.com>
6504 * target-delegates.c: Rebuild.
6505 * target.c (update_current_target): Don't inherit or default
6506 to_insert_vfork_catchpoint.
6507 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6508 TARGET_DEFAULT_RETURN.
6510 2014-02-19 Tom Tromey <tromey@redhat.com>
6512 * target-delegates.c: Rebuild.
6513 * target.c (update_current_target): Don't inherit or default
6514 to_remove_fork_catchpoint.
6515 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6516 TARGET_DEFAULT_RETURN.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (update_current_target): Don't inherit or default
6522 to_insert_fork_catchpoint.
6523 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6524 TARGET_DEFAULT_RETURN.
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * target-delegates.c: Rebuild.
6529 * target.c (update_current_target): Don't inherit or default
6530 to_post_startup_inferior.
6531 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6532 TARGET_DEFAULT_IGNORE.
6534 2014-02-19 Tom Tromey <tromey@redhat.com>
6536 * target-delegates.c: Rebuild.
6537 * target.c (update_current_target): Don't inherit or default
6539 * target.h (struct target_ops) <to_load>: Use
6540 TARGET_DEFAULT_NORETURN.
6542 2014-02-19 Tom Tromey <tromey@redhat.com>
6544 * target-delegates.c: Rebuild.
6545 * target.c (update_current_target): Don't inherit or default
6547 * target.h (struct target_ops) <to_terminal_info>: Use
6548 TARGET_DEFAULT_FUNC.
6550 2014-02-19 Tom Tromey <tromey@redhat.com>
6552 * target-delegates.c: Rebuild.
6553 * target.c (update_current_target): Don't inherit or default
6554 to_terminal_save_ours.
6555 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6556 TARGET_DEFAULT_IGNORE.
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target-delegates.c: Rebuild.
6561 * target.c (update_current_target): Don't inherit or default
6563 * target.h (struct target_ops) <to_terminal_ours>: Use
6564 TARGET_DEFAULT_IGNORE.
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * target-delegates.c: Rebuild.
6569 * target.c (update_current_target): Don't inherit or default
6570 to_terminal_ours_for_output.
6571 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6572 TARGET_DEFAULT_IGNORE.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target-delegates.c: Rebuild.
6577 * target.c (update_current_target): Don't inherit or default
6578 to_terminal_inferior.
6579 * target.h (struct target_ops) <to_terminal_inferior>: Use
6580 TARGET_DEFAULT_IGNORE.
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target-delegates.c: Rebuild.
6585 * target.c (update_current_target): Don't inherit or default
6587 * target.h (struct target_ops) <to_terminal_init>: Use
6588 TARGET_DEFAULT_IGNORE.
6590 2014-02-19 Tom Tromey <tromey@redhat.com>
6592 * target-delegates.c: Rebuild.
6593 * target.c (update_current_target): Don't inherit or default
6594 to_can_accel_watchpoint_condition.
6595 * target.h (struct target_ops)
6596 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6598 2014-02-19 Tom Tromey <tromey@redhat.com>
6600 * target-delegates.c: Rebuild.
6601 * target.c (update_current_target): Don't inherit or default
6602 to_region_ok_for_hw_watchpoint.
6603 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6604 Use TARGET_DEFAULT_FUNC.
6606 2014-02-19 Tom Tromey <tromey@redhat.com>
6608 * target-delegates.c: Rebuild.
6609 * target.c (update_current_target): Don't inherit or default
6610 to_watchpoint_addr_within_range.
6611 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6612 Use TARGET_DEFAULT_FUNC.
6614 2014-02-19 Tom Tromey <tromey@redhat.com>
6616 * target-delegates.c: Rebuild.
6617 * target.c (update_current_target): Don't inherit or default
6618 to_remove_watchpoint.
6619 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6620 TARGET_DEFAULT_NORETURN.
6622 2014-02-19 Tom Tromey <tromey@redhat.com>
6624 * target-delegates.c: Rebuild.
6625 * target.c (update_current_target): Don't inherit or default
6626 to_insert_watchpoint.
6627 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6628 TARGET_DEFAULT_RETURN.
6630 2014-02-19 Tom Tromey <tromey@redhat.com>
6632 * target-delegates.c: Rebuild.
6633 * target.c (update_current_target): Don't inherit or default
6634 to_remove_hw_breakpoint.
6635 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6636 TARGET_DEFAULT_RETURN.
6638 2014-02-19 Tom Tromey <tromey@redhat.com>
6640 * target-delegates.c: Rebuild.
6641 * target.c (update_current_target): Don't inherit or default
6642 to_insert_hw_breakpoint.
6643 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6644 TARGET_DEFAULT_RETURN.
6646 2014-02-19 Tom Tromey <tromey@redhat.com>
6648 * target-delegates.c: Rebuild.
6649 * target.c (update_current_target): Don't inherit or default
6650 to_can_use_hw_breakpoint.
6651 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6652 TARGET_DEFAULT_RETURN.
6654 2014-02-19 Tom Tromey <tromey@redhat.com>
6656 * target-delegates.c: Rebuild.
6657 * target.c (update_current_target): Don't inherit or default
6659 * target.h (struct target_ops) <to_files_info>: Use
6660 TARGET_DEFAULT_IGNORE.
6662 2014-02-19 Tom Tromey <tromey@redhat.com>
6664 * target-delegates.c: Rebuild.
6665 * target.c (update_current_target): Don't inherit or default
6667 * target.h (struct target_ops) <to_store>: Use
6668 TARGET_DEFAULT_NORETURN.
6670 2014-02-19 Tom Tromey <tromey@redhat.com>
6672 * target-delegates.c: Rebuild.
6673 * target.c (update_current_target): Don't inherit or default
6675 * target.h (struct target_ops) <to_post_attach>: Use
6676 TARGET_DEFAULT_IGNORE.
6678 2014-02-19 Tom Tromey <tromey@redhat.com>
6680 * target-delegates.c: Rebuild.
6681 * target.c (update_current_target): Don't inherit or default
6683 (default_rcmd): New function.
6684 (do_monitor_command): Unconditionally delegate.
6685 * target.h (struct target_ops) <to_rmcd>: Use
6686 TARGET_DEFAULT_FUNC.
6688 2014-02-19 Tom Tromey <tromey@redhat.com>
6690 * target-delegates.c: Rebuild.
6691 * target.c (init_dummy_target): Don't initialize to_attach.
6692 (target_attach): Unconditionally delegate.
6693 * target.h (struct target_ops) <to_attach>: Use
6694 TARGET_DEFAULT_FUNC.
6696 2014-02-19 Tom Tromey <tromey@redhat.com>
6698 * target-delegates.c: Rebuild.
6699 * target.c (target_detach): Unconditionally delegate.
6700 (init_dummy_target): Don't initialize to_detach.
6701 * target.h (struct target_ops) <to_detach>: Use
6702 TARGET_DEFAULT_IGNORE.
6704 2014-02-19 Tom Tromey <tromey@redhat.com>
6706 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6708 (target_augmented_libraries_svr4_read): Add argument.
6709 * target.c (update_current_target): Update.
6710 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6713 2014-02-19 Tom Tromey <tromey@redhat.com>
6715 * target.h (struct target_ops) <to_call_history_range>: Add
6717 * target.c (target_call_history_range): Add argument.
6718 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6720 (record_btrace_call_history_from): Update.
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target.h (struct target_ops) <to_call_history_from>: Add
6726 * target.c (target_call_history_from): Add argument.
6727 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * target.h (struct target_ops) <to_call_history>: Add argument.
6733 * target.c (target_call_history): Add argument.
6734 * record-btrace.c (record_btrace_call_history): Add 'self'
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6739 * target.h (struct target_ops) <to_insn_history_range>: Add
6741 * target.c (target_insn_history_range): Add argument.
6742 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6744 (record_btrace_insn_history_from): Update.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target.h (struct target_ops) <to_insn_history_from>: Add
6750 * target.c (target_insn_history_from): Add argument.
6751 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target.h (struct target_ops) <to_insn_history>: Add argument.
6757 * target.c (target_insn_history): Add argument.
6758 * record-btrace.c (record_btrace_insn_history): Add 'self'
6761 2014-02-19 Tom Tromey <tromey@redhat.com>
6763 * target.h (struct target_ops) <to_goto_record>: Add argument.
6764 * target.c (target_goto_record): Add argument.
6765 * record-full.c (record_full_goto): Add 'self' argument.
6766 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6768 2014-02-19 Tom Tromey <tromey@redhat.com>
6770 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6771 * target.c (target_goto_record_end): Add argument.
6772 * record-full.c (record_full_goto_end): Add 'self' argument.
6773 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6775 2014-02-19 Tom Tromey <tromey@redhat.com>
6777 * target.h (struct target_ops) <to_goto_record_begin>: Add
6779 * target.c (target_goto_record_begin): Add argument.
6780 * record-full.c (record_full_goto_begin): Add 'self' argument.
6781 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6784 2014-02-19 Tom Tromey <tromey@redhat.com>
6786 * target.h (struct target_ops) <to_record_is_replaying>: Add
6788 * target.c (target_record_is_replaying): Add argument.
6789 * record-full.c (record_full_is_replaying): Add 'self' argument.
6790 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6792 (record_btrace_xfer_partial, record_btrace_store_registers)
6793 (record_btrace_prepare_to_store, record_btrace_resume)
6794 (record_btrace_wait, record_btrace_decr_pc_after_break)
6795 (record_btrace_find_new_threads, record_btrace_thread_alive):
6798 2014-02-19 Tom Tromey <tromey@redhat.com>
6800 * target.h (struct target_ops) <to_delete_record>: Add argument.
6801 * target.c (target_delete_record): Add argument.
6802 * record-full.c (record_full_delete): Add 'self' argument.
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6806 * target.h (struct target_ops) <to_save_record>: Add argument.
6807 * target.c (target_save_record): Add argument.
6808 * record-full.c (record_full_save): Add 'self' argument.
6809 (record_full_save): Add 'self' argument.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * target.h (struct target_ops) <to_info_record>: Add argument.
6814 * target.c (target_info_record): Add argument.
6815 * record.c (info_record_command): Add argument.
6816 * record-full.c (record_full_info): Add 'self' argument.
6817 * record-btrace.c (record_btrace_info): Add 'self' argument.
6819 2014-02-19 Tom Tromey <tromey@redhat.com>
6821 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6822 * target.c (target_stop_recording): Add argument.
6823 * record.c (record_stop): Add argument.
6824 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6827 2014-02-19 Tom Tromey <tromey@redhat.com>
6829 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6830 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6831 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6833 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6834 (_initialize_amd64_linux_nat): Use it.
6835 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6836 (_initialize_i386_linux_nat): Use it.
6838 2014-02-19 Tom Tromey <tromey@redhat.com>
6840 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6841 * target.c (target_teardown_btrace): Add argument.
6842 * remote.c (remote_teardown_btrace): Add 'self' argument.
6843 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6845 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6848 2014-02-19 Tom Tromey <tromey@redhat.com>
6850 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6851 * target.c (target_disable_btrace): Add argument.
6852 * remote.c (remote_disable_btrace): Add 'self' argument.
6853 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6855 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6858 2014-02-19 Tom Tromey <tromey@redhat.com>
6860 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6861 * target.c (target_enable_btrace): Add argument.
6862 * remote.c (remote_enable_btrace): Add 'self' argument.
6863 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6865 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6868 2014-02-19 Tom Tromey <tromey@redhat.com>
6870 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6871 (target_can_use_agent): Add argument.
6872 * target.c (update_current_target): Update.
6873 * remote.c (remote_can_use_agent): Add 'self' argument.
6874 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6876 2014-02-19 Tom Tromey <tromey@redhat.com>
6878 * target.h (struct target_ops) <to_use_agent>: Add argument.
6879 (target_use_agent): Add argument.
6880 * target.c (update_current_target): Update.
6881 * remote.c (remote_use_agent): Add 'self' argument.
6882 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6887 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6888 (target_traceframe_info): Add argument.
6889 * target.c (update_current_target): Update.
6890 * remote.c (remote_traceframe_info): Add 'self' argument.
6891 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6893 2014-02-19 Tom Tromey <tromey@redhat.com>
6895 * target.h (target_static_tracepoint_markers_by_strid): Add
6897 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6899 * target.c (update_current_target): Update.
6900 * remote.c (struct target_ops)
6901 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6902 * linux-nat.c (struct target_ops)
6903 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6909 (target_static_tracepoint_marker_at): Add argument.
6910 * target.c (update_current_target): Update.
6911 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6914 2014-02-19 Tom Tromey <tromey@redhat.com>
6916 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6917 (target_set_permissions): Add argument.
6918 * target.c (update_current_target): Update.
6919 * remote.c (remote_set_permissions): Add 'self' argument.
6920 (remote_start_remote): Update.
6922 2014-02-19 Tom Tromey <tromey@redhat.com>
6924 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6925 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6926 (target_get_tib_address): Add argument.
6927 * target.c (update_current_target): Update.
6928 * remote.c (remote_get_tib_address): Add 'self' argument.
6930 2014-02-19 Tom Tromey <tromey@redhat.com>
6932 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6933 (target_set_trace_notes): Add argument.
6934 * target.c (update_current_target): Update.
6935 * remote.c (remote_set_trace_notes): Add 'self' argument.
6937 2014-02-19 Tom Tromey <tromey@redhat.com>
6939 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6941 (target_set_trace_buffer_size): Add argument.
6942 * target.c (update_current_target): Update.
6943 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6945 2014-02-19 Tom Tromey <tromey@redhat.com>
6947 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6949 (target_set_circular_trace_buffer): Add argument.
6950 * target.c (update_current_target): Update.
6951 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6958 (target_set_disconnected_tracing): Add argument.
6959 * target.c (update_current_target): Update.
6960 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6962 2014-02-19 Tom Tromey <tromey@redhat.com>
6964 * target.h (struct target_ops)
6965 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6966 (target_get_min_fast_tracepoint_insn_len): Add argument.
6967 * target.c (update_current_target): Update.
6968 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6975 (target_get_raw_trace_data): Add argument.
6976 * target.c (update_current_target): Update.
6977 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6983 (target_upload_trace_state_variables): Add argument.
6984 * target.c (update_current_target): Update.
6985 * remote.c (remote_upload_trace_state_variables): Add 'self'
6987 (remote_start_remote): Update.
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6993 (target_upload_tracepoints): Add argument.
6994 * target.c (update_current_target): Update.
6995 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6996 (remote_start_remote): Update.
6998 2014-02-19 Tom Tromey <tromey@redhat.com>
7000 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7001 (target_save_trace_data): Add argument.
7002 * target.c (update_current_target): Update.
7003 * remote.c (remote_save_trace_data): Add 'self' argument.
7005 2014-02-19 Tom Tromey <tromey@redhat.com>
7007 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7009 * target.h (struct target_ops)
7010 <to_get_trace_state_variable_value>: Add argument.
7011 (target_get_trace_state_variable_value): Add argument.
7012 * target.c (update_current_target): Update.
7013 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7015 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7017 2014-02-19 Tom Tromey <tromey@redhat.com>
7019 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7020 * target.h (struct target_ops) <to_trace_find>: Add argument.
7021 (target_trace_find): Add argument.
7022 * target.c (update_current_target): Update.
7023 * remote.c (remote_trace_find): Add 'self' argument.
7024 * ctf.c (ctf_trace_find): Add 'self' argument.
7026 2014-02-19 Tom Tromey <tromey@redhat.com>
7028 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7029 (target_trace_stop): Add argument.
7030 * target.c (update_current_target): Update.
7031 * remote.c (remote_trace_stop): Add 'self' argument.
7033 2014-02-19 Tom Tromey <tromey@redhat.com>
7035 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7036 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7038 (target_get_tracepoint_status): Add argument.
7039 * target.c (update_current_target): Update.
7040 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7045 * target.h (struct target_ops) <to_get_trace_status>: Add
7047 (target_get_trace_status): Add argument.
7048 * target.c (update_current_target): Update.
7049 * remote.c (remote_get_trace_status): Add 'self' argument.
7050 (remote_start_remote, remote_can_download_tracepoint): Update.
7051 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target.h (struct target_ops) <to_trace_start>: Add argument.
7056 (target_trace_start): Add argument.
7057 * target.c (update_current_target): Update.
7058 * remote.c (remote_trace_start): Add 'self' argument.
7060 2014-02-19 Tom Tromey <tromey@redhat.com>
7062 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7064 (target_trace_set_readonly_regions): Add argument.
7065 * target.c (update_current_target): Update.
7066 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7073 (target_disable_tracepoint): Add argument.
7074 * target.c (update_current_target): Update.
7075 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7081 (target_enable_tracepoint): Add argument.
7082 * target.c (update_current_target): Update.
7083 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target.h (struct target_ops) <to_download_trace_state_variable>:
7089 (target_download_trace_state_variable): Add argument.
7090 * target.c (update_current_target): Update.
7091 * remote.c (remote_download_trace_state_variable): Add 'self'
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7098 (target_can_download_tracepoint): Add argument.
7099 * target.c (update_current_target): Update.
7100 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7102 2014-02-19 Tom Tromey <tromey@redhat.com>
7104 * target.h (struct target_ops) <to_download_tracepoint>: Add
7106 (target_download_tracepoint): Add argument.
7107 * target.c (update_current_target): Update.
7108 * remote.c (remote_download_tracepoint): Add 'self' argument.
7110 2014-02-19 Tom Tromey <tromey@redhat.com>
7112 * target.h (struct target_ops) <to_trace_init>: Add argument.
7113 (target_trace_init): Add argument.
7114 * target.c (update_current_target): Update.
7115 * remote.c (remote_trace_init): Add 'self' argument.
7117 2014-02-19 Tom Tromey <tromey@redhat.com>
7119 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7120 * target.c (target_fileio_readlink): Add argument.
7121 * remote.c (remote_hostio_readlink): Add 'self' argument.
7122 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7127 * target.c (target_fileio_unlink): Add argument.
7128 * remote.c (remote_hostio_unlink): Add 'self' argument.
7129 (remote_file_delete): Update.
7130 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7132 2014-02-19 Tom Tromey <tromey@redhat.com>
7134 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7135 * target.c (target_fileio_close): Add argument.
7136 * remote.c (remote_hostio_close): Add 'self' argument.
7137 (remote_hostio_close_cleanup): Update.
7138 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7140 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7144 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7145 * target.c (target_fileio_pread): Add argument.
7146 * remote.c (remote_hostio_pread): Add 'self' argument.
7147 (remote_bfd_iovec_pread, remote_file_get): Update.
7148 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7150 2014-02-19 Tom Tromey <tromey@redhat.com>
7152 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7153 * target.c (target_fileio_pwrite): Add argument.
7154 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7155 (remote_file_put): Update.
7156 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7161 * target.c (target_fileio_open): Add argument.
7162 * remote.c (remote_hostio_open): Add 'self' argument.
7163 (remote_bfd_iovec_open): Add 'self' argument.
7164 (remote_file_put): Add 'self' argument.
7165 (remote_file_get): Add 'self' argument.
7166 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7168 2014-02-19 Tom Tromey <tromey@redhat.com>
7170 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7172 (target_can_run_breakpoint_commands): Add argument.
7173 * target.c (update_current_target): Update.
7174 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7176 (remote_insert_breakpoint): Add 'self' argument.
7177 (remote_insert_hw_breakpoint): Add 'self' argument.
7178 (remote_can_run_breakpoint_commands): Add 'self' argument.
7180 2014-02-19 Tom Tromey <tromey@redhat.com>
7182 * target.h (struct target_ops)
7183 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7184 (target_supports_evaluation_of_breakpoint_conditions): Add
7186 * target.c (update_current_target): Update.
7187 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7189 (remote_insert_breakpoint): Add 'self' argument.
7190 (remote_insert_hw_breakpoint): Add 'self' argument.
7191 (remote_supports_cond_breakpoints): Add 'self' argument.
7193 2014-02-19 Tom Tromey <tromey@redhat.com>
7195 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7197 (target_supports_string_tracing): Add argument.
7198 * target.c (update_current_target): Update.
7199 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7201 2014-02-19 Tom Tromey <tromey@redhat.com>
7203 * target.h (struct target_ops)
7204 <to_supports_disable_randomization>: Add argument.
7205 * target.c (find_default_supports_disable_randomization): Add
7207 (target_supports_disable_randomization): Add argument.
7208 (find_default_supports_disable_randomization): Add 'self'
7210 * remote.c (extended_remote_supports_disable_randomization): Add
7212 (remote_supports_disable_randomization): Add 'self' argument.
7213 (extended_remote_create_inferior): Update.
7214 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7217 2014-02-19 Tom Tromey <tromey@redhat.com>
7219 * target.h (struct target_ops)
7220 <to_supports_enable_disable_tracepoint>: Add argument.
7221 (target_supports_enable_disable_tracepoint): Add argument.
7222 * target.c (update_current_target): Update.
7223 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7226 2014-02-19 Tom Tromey <tromey@redhat.com>
7228 * target.h (struct target_ops) <to_supports_multi_process>: Add
7230 (target_supports_multi_process): Add argument.
7231 * target.c (update_current_target): Update.
7232 * remote.c (remote_supports_multi_process): Add 'self' argument.
7233 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7235 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7238 2014-02-19 Tom Tromey <tromey@redhat.com>
7240 * target.h (struct target_ops) <to_execution_direction>: Add
7242 (target_execution_direction): Add argument.
7243 * target.c (default_execution_direction): Add 'self' argument.
7244 * record-full.c (record_full_execution_direction): Add 'self'
7247 2014-02-19 Tom Tromey <tromey@redhat.com>
7249 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7251 (target_can_execute_reverse): Add argument.
7252 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7253 * record-full.c (record_full_can_execute_reverse): Add 'self'
7255 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7261 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7263 (target_get_ada_task_ptid): Add argument.
7264 * target.c (update_current_target): Update.
7265 (default_get_ada_task_ptid): Add 'self' argument.
7266 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7267 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7268 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7270 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7272 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7274 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7276 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7277 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7283 (target_goto_bookmark): Add argument.
7284 * target.c (dummy_goto_bookmark): Add 'self' argument.
7285 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7287 2014-02-19 Tom Tromey <tromey@redhat.com>
7289 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7290 (target_get_bookmark): Add argument.
7291 * target.c (dummy_get_bookmark): Add 'self' argument.
7292 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7294 2014-02-19 Tom Tromey <tromey@redhat.com>
7296 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7298 (target_make_corefile_notes): Add argument.
7299 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7300 * procfs.c (procfs_make_note_section): Add 'self' argument.
7301 (procfs_make_note_section): Add 'self' argument.
7302 (procfs_make_note_section): Add 'self' argument.
7303 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7305 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7306 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7307 * exec.c (exec_make_note_section): Add 'self' argument.
7308 (exec_make_note_section): Add 'self' argument.
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target.h (struct target_ops) <to_find_memory_regions>: Add
7314 (target_find_memory_regions): Add argument.
7315 * target.c (dummy_find_memory_regions): Add 'self' argument.
7316 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7317 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7318 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7319 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7320 * exec. (exec_do_find_memory_regions): New global.
7321 (exec_set_find_memory_regions): Rewrite.
7322 (exec_find_memory_regions): New function.
7323 (init_exec_ops): Use exec_find_memory_regions.
7325 2014-02-19 Tom Tromey <tromey@redhat.com>
7327 * target.h (struct target_ops) <to_supports_non_stop>: Add
7329 * target.c (find_default_supports_non_stop): Add argument.
7330 (target_supports_non_stop): Add argument.
7331 (find_default_supports_non_stop): Add 'self' argument.
7332 * remote.c (remote_supports_non_stop): Add 'self' argument.
7333 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7337 * target.h (struct target_ops) <to_log_command>: Add argument.
7338 (target_log_command): Add argument.
7339 * serial.h (serial_log_command): Add 'self' argument.
7340 * serial.c (serial_log_command): Add 'self' argument.
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7344 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7345 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7347 (target_pid_to_exec_file): Add argument.
7348 * target.c (debug_to_pid_to_exec_file): Add argument.
7349 (update_current_target): Update.
7350 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7351 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7352 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7353 (linux_handle_extended_wait): Update.
7354 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7355 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7356 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7357 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7359 2014-02-19 Tom Tromey <tromey@redhat.com>
7361 * target.h (struct target_ops) <to_rcmd>: Add argument.
7362 (target_rcmd): Add argument.
7363 * target.c (debug_to_rcmd): Add argument.
7364 (update_current_target, do_monitor_command): Update.
7365 * remote.c (remote_rcmd): Add 'self' argument.
7366 * monitor.c (monitor_rcmd): Add 'self' argument.
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7370 * windows-nat.c (windows_stop): Add 'self' argument.
7371 * target.h (struct target_ops) <to_stop>: Add argument.
7372 * target.c (target_stop): Add argument.
7373 (debug_to_stop): Add argument.
7374 (update_current_target): Update.
7375 * remote.c (remote_stop): Add 'self' argument.
7376 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7377 (gdbsim_cntrl_c): Update.
7378 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7379 * procfs.c (procfs_stop): Add 'self' argument.
7380 * nto-procfs.c (procfs_stop): Add 'self' argument.
7381 * monitor.c (monitor_stop): Add 'self' argument.
7382 (monitor_open): Update.
7383 * linux-nat.c (linux_nat_stop): Add argument.
7384 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7385 * gnu-nat.c (gnu_stop): Add 'self' argument.
7386 * darwin-nat.c (darwin_stop): Add 'self' argument.
7388 2014-02-19 Tom Tromey <tromey@redhat.com>
7390 * target.h (struct target_ops) <to_thread_name>: Add argument.
7391 * target.c (target_thread_name): Add argument.
7392 (update_current_target): Update.
7393 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7395 2014-02-19 Tom Tromey <tromey@redhat.com>
7397 * target.h (struct target_ops) <to_extra_thread_info>: Add
7399 (target_extra_thread_info): Add argument.
7400 * target.c (update_current_target): Update.
7401 * remote.c (remote_threads_extra_info): Add 'self' argument.
7402 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7404 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7405 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7406 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7408 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7410 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7412 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7417 * target.h (struct target_ops) <to_program_signals>: Add argument.
7418 * target.c (target_program_signals): Add argument.
7419 * remote.c (remote_program_signals): Add 'self' argument.
7421 2014-02-19 Tom Tromey <tromey@redhat.com>
7423 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7424 * target.c (target_pass_signals): Add argument.
7425 * remote.c (remote_pass_signals): Add 'self' argument.
7426 (remote_start_remote): Update.
7427 * procfs.c (procfs_pass_signals): Add 'self' argument.
7428 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7429 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7430 (linux_nat_create_inferior, linux_nat_attach): Update.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * windows-nat.c (windows_can_run): Add 'self' argument.
7435 * target.h (struct target_ops) <to_can_run>: Add argument.
7436 (target_can_run): Add argument.
7437 * target.c (debug_to_can_run): Add argument.
7438 (update_current_target): Update.
7439 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7440 * inf-child.c (inf_child_can_run): Add 'self' argument.
7441 * go32-nat.c (go32_can_run): Add 'self' argument.
7443 2014-02-19 Tom Tromey <tromey@redhat.com>
7445 * target.h (struct target_ops) <to_has_exited>: Add argument.
7446 (target_has_exited): Add argument.
7447 * target.c (debug_to_has_exited): Add argument.
7448 (update_current_target): Update.
7450 2014-02-19 Tom Tromey <tromey@redhat.com>
7452 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7454 (target_set_syscall_catchpoint): Add argument.
7455 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7457 * target.c (update_current_target): Update.
7459 2014-02-19 Tom Tromey <tromey@redhat.com>
7461 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7463 (target_remove_exec_catchpoint): Add argument.
7464 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7465 (update_current_target): Update.
7466 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7469 2014-02-19 Tom Tromey <tromey@redhat.com>
7471 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7473 (target_insert_exec_catchpoint): Add argument.
7474 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7475 (update_current_target): Update.
7476 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7479 2014-02-19 Tom Tromey <tromey@redhat.com>
7481 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7483 (target_remove_vfork_catchpoint): Add argument.
7484 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7485 (update_current_target): Update.
7486 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7493 (target_insert_vfork_catchpoint): Add argument.
7494 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7495 (update_current_target): Update.
7496 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7503 (target_remove_fork_catchpoint): Add argument.
7504 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7505 (update_current_target): Update.
7506 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7513 (target_insert_fork_catchpoint): Add argument.
7514 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7515 (update_current_target): Update.
7516 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7519 2014-02-19 Tom Tromey <tromey@redhat.com>
7521 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7523 (target_post_startup_inferior): Add argument.
7524 * target.c (debug_to_post_startup_inferior): Add argument.
7525 (update_current_target): Update.
7526 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7528 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7530 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7532 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7534 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7536 (super_post_startup_inferior): Likewise.
7537 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7539 (super_post_startup_inferior): Likewise.
7540 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7541 Add 'self' argument.
7542 (super_post_startup_inferior): Likewise.
7544 2014-02-19 Tom Tromey <tromey@redhat.com>
7546 * target.h (struct target_ops) <to_load>: Add argument.
7547 * target.c (target_load): Add argument.
7548 (debug_to_load): Add argument.
7549 (update_current_target): Update.
7550 * remote.c (remote_load): Add 'self' argument.
7551 * remote-sim.c (gdbsim_load): Add 'self' argument.
7552 * remote-mips.c (mips_load): Add 'self' argument.
7553 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7554 * monitor.c (monitor_load): Add 'self' argument.
7555 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7559 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7560 (target_terminal_info): Add argument.
7561 * target.c (debug_to_terminal_info): Add argument.
7562 (default_terminal_info): Likewise.
7563 * inflow.c (child_terminal_info): Add 'self' argument.
7564 * inferior.h (child_terminal_info): Add 'self' argument.
7565 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7567 2014-02-19 Tom Tromey <tromey@redhat.com>
7569 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7571 (target_terminal_save_ours): Add argument.
7572 * target.c (debug_to_terminal_save_ours): Add argument.
7573 (update_current_target): Update.
7574 * inflow.c (terminal_save_ours): Add 'self' argument.
7575 * inferior.h (terminal_save_ours): Add 'self' argument.
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7579 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7580 (target_terminal_ours): Add argument.
7581 * target.c (debug_to_terminal_ours): Add argument.
7582 (update_current_target): Update.
7583 * remote.c (remote_terminal_ours): Add 'self' argument.
7584 (remote_close): Update.
7585 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7586 * inflow.c (terminal_ours): Add 'self' argument.
7587 * inferior.h (terminal_ours): Add 'self' argument.
7588 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7590 2014-02-19 Pedro Alves <palves@redhat.com>
7591 Tom Tromey <tromey@redhat.com>
7593 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7595 (target_terminal_ours_for_output): Add argument.
7596 * target.c (debug_to_terminal_ours_for_output): Add argument.
7597 (update_current_target): Update.
7598 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7599 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7600 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * target.h (struct target_ops) <to_terminal_inferior>: Add
7606 * target.c (target_terminal_inferior): Add argument.
7607 (update_current_target): Update.
7608 * remote.c (remote_terminal_inferior): Add 'self' argument.
7609 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7610 * inflow.c (terminal_inferior): Add 'self' argument.
7611 * inferior.h (terminal_inferior): Add 'self' argument.
7612 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7613 (go32_terminal_inferior): Add 'self' argument.
7615 2014-02-19 Tom Tromey <tromey@redhat.com>
7617 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7618 (target_terminal_init): Add argument.
7619 * target.c (debug_to_terminal_init): Add argument.
7620 (update_current_target): Update.
7621 * inflow.c (terminal_init_inferior): Add 'self' argument.
7622 * inferior.h (terminal_init_inferior): Add 'self' argument.
7623 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7624 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7626 2014-02-19 Tom Tromey <tromey@redhat.com>
7628 * target.h (struct target_ops)
7629 <to_can_accel_watchpoint_condition>: Add argument.
7630 (target_can_accel_watchpoint_condition): Add argument.
7631 * target.c (debug_to_can_accel_watchpoint_condition): Add
7633 (update_current_target): Update.
7634 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7637 2014-02-19 Tom Tromey <tromey@redhat.com>
7639 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7641 (target_region_ok_for_hw_watchpoint): Add argument.
7642 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7643 (default_region_ok_for_hw_watchpoint): Add argument.
7644 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7645 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7647 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7649 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7651 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7653 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7655 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7657 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7658 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7660 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7661 Add 'self' argument.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7667 (target_insert_watchpoint): Add argument.
7668 * target.c (debug_to_insert_watchpoint): Add argument.
7669 (update_current_target): Update.
7670 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7671 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7672 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7673 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7674 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7675 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7677 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7678 (procfs_insert_hw_watchpoint): Add 'self' argument.
7679 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7681 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7683 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7685 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7686 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7688 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7695 (target_remove_watchpoint): Add argument.
7696 * target.c (debug_to_remove_watchpoint): Add argument.
7697 (update_current_target): Update.
7698 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7699 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7700 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7701 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7702 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7703 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7705 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7706 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7708 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7710 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7712 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7713 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7715 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7718 2014-02-19 Tom Tromey <tromey@redhat.com>
7720 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7722 (target_remove_hw_breakpoint): Add argument.
7723 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7724 (update_current_target): Update.
7725 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7726 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7728 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7729 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7731 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7738 (target_insert_hw_breakpoint): Add argument.
7739 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7740 (update_current_target): Update.
7741 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7742 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7744 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7745 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7746 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7748 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7753 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7755 (target_can_use_hardware_watchpoint): Add argument.
7756 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7757 (update_current_target): Update.
7758 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7760 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7762 * remote.c (remote_check_watch_resources): Add 'self' argument.
7763 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7764 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7766 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7767 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7769 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7771 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7773 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7775 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7777 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7779 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7780 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7782 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7785 2014-02-19 Tom Tromey <tromey@redhat.com>
7787 * target.h (struct target_ops) <to_post_attach>: Add argument.
7788 (target_post_attach): Add argument.
7789 * target.c (debug_to_post_attach): Add argument.
7790 (update_current_target): Update.
7791 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7792 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7793 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7794 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7795 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * windows-nat.c (windows_close): Add 'self' argument.
7800 * tracepoint.c (tfile_close): Add 'self' argument.
7801 * target.h (struct target_ops) <to_close>: Add argument.
7802 * target.c (target_close): Add argument.
7803 (update_current_target): Update.
7804 * remote.c (remote_close): Add 'self' argument.
7805 * remote-sim.c (gdbsim_close): Add 'self' argument.
7806 * remote-mips.c (mips_close): Add 'self' argument.
7807 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7808 * record-full.c (record_full_close): Add 'self' argument.
7809 * record-btrace.c (record_btrace_close): Add 'self' argument.
7810 * monitor.h (monitor_close): Add 'self' argument.
7811 * monitor.c (monitor_close): Add 'self' argument.
7812 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7813 * linux-nat.c (linux_nat_close): Add argument.
7814 * go32-nat.c (go32_close): Add 'self' argument.
7815 * exec.c (exec_close_1): Add 'self' argument.
7816 * ctf.c (ctf_close): Add 'self' argument.
7817 * corelow.c (core_close): Add 'self' argument.
7818 (core_close_cleanup): Update.
7819 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7820 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * remote.c (remote_load): New function.
7825 (init_remote_ops): Use it.
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7829 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7831 * common/linux-btrace.h (linux_supports_btrace): Update.
7832 * remote.c (remote_supports_btrace): Add "self" argument.
7833 * target-delegates.c: Rebuild.
7834 * target.c (target_supports_btrace): Remove.
7835 * target.h (struct target_ops) <to_supports_btrace>: Add
7836 target_ops argument.
7837 (target_supports_btrace): New define.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * record-full.c (record_full_beneath_to_resume_ops)
7842 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7843 (record_full_beneath_to_wait)
7844 (record_full_beneath_to_store_registers_ops)
7845 (record_full_beneath_to_store_registers)
7846 (record_full_beneath_to_xfer_partial_ops)
7847 (record_full_beneath_to_xfer_partial)
7848 (record_full_beneath_to_insert_breakpoint_ops)
7849 (record_full_beneath_to_insert_breakpoint)
7850 (record_full_beneath_to_remove_breakpoint_ops)
7851 (record_full_beneath_to_remove_breakpoint)
7852 (record_full_beneath_to_stopped_by_watchpoint)
7853 (record_full_beneath_to_stopped_data_address)
7854 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7855 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7856 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7857 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7858 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7859 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7860 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7861 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7862 (record_full_resume, record_full_wait_1)
7863 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7864 (record_full_store_registers, record_full_xfer_partial)
7865 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7866 (record_full_async, record_full_core_xfer_partial): Use target
7868 * target-delegates.c: Rebuild.
7869 * target.c (current_xfer_partial): Remove.
7870 (update_current_target): Do not INHERIT or de_fault
7871 to_insert_breakpoint, to_remove_breakpoint,
7872 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7873 to_is_async_p, to_async. Do not set to_xfer_partial field.
7874 (default_xfer_partial): Simplify.
7875 (current_xfer_partial): Remove.
7876 (target_wait, target_resume): Simplify.
7877 (find_default_can_async_p, find_default_is_async_p): Update.
7878 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7879 to_xfer_partial, to_stopped_by_watchpoint,
7880 to_stopped_data_address.
7881 (target_store_registers): Simplify.
7882 (forward_target_remove_breakpoint)
7883 (forward_target_insert_breakpoint): Remove.
7884 (target_remove_breakpoint, target_insert_breakpoint)
7885 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7886 * target.h (struct target_ops) <to_resume, to_wait,
7887 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7888 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7889 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7891 (forward_target_remove_breakpoint)
7892 (forward_target_insert_breakpoint): Remove.
7893 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7895 (record_btrace_insert_breakpoint): Delegate directly.
7897 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * target-delegates.c: New file.
7901 * target.c: Include target-delegates.c.
7902 (init_dummy_target): Call install_dummy_methods.
7903 (complete_target_initialization): Call install_delegators.
7904 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7905 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7906 * make-target-delegates: New file.
7908 2014-02-19 Tom Tromey <tromey@redhat.com>
7910 * record.c (find_record_target): Use find_target_at.
7911 * target.c (find_target_at): New function.
7912 * target.h (find_target_at): Declare.
7914 2014-02-19 Tom Tromey <tromey@redhat.com>
7916 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7918 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7920 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7921 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7923 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7925 * linux-nat.c (save_sigtrap): Update.
7926 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7927 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7928 (linux_nat_close): Update.
7929 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7931 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7933 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7934 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7935 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7936 (tmp_to_async): Add 'ops' argument.
7937 (record_full_stopped_by_watchpoint, record_full_async)
7938 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7940 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7941 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7942 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7943 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7944 (remote_is_async_p, remote_async): Add 'ops' argument.
7945 (remote_stopped_data_address): Update.
7946 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7947 * target.c (update_current_target)
7948 (find_default_can_async_p, find_default_is_async_p): Update.
7949 (init_dummy_target): Update.
7950 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7951 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7952 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7953 (target_can_async_p, target_is_async_p, target_async)
7954 (target_stopped_by_watchpoint): Update.
7956 2014-02-19 Yao Qi <yao@codesourcery.com>
7959 * gdbarch.sh: Remove startup_gdbarch.
7960 * gdbarch.c: Regenerated.
7961 * gdbarch.h: Likewise.
7963 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7965 * rl78-tdep.c (rl78_g10_register_name): New function.
7966 (rl78_return_value): Add g10 support.
7967 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7970 2014-02-17 Doug Evans <xdje42@gmail.com>
7972 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7973 (SUBDIR_GUILE_SRCS): Ditto.
7974 (scm-gsmob.o): Ditto.
7976 2014-02-17 Yao Qi <yao@codesourcery.com>
7978 * gnu-nat.c (ILL_RPC): Declare defined function.
7980 2014-02-17 Yao Qi <yao@codesourcery.com>
7982 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7983 mach_msg_type_number_t.
7984 (gnu_write_inferior): Likewise.
7986 2014-02-17 Yao Qi <yao@codesourcery.com>
7988 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7990 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7991 (inf_validate_procs, inf_signal): Likewise.
7992 (S_exception_raise_request): Likewise.
7993 (do_mach_notify_dead_name): Likewise.
7994 (steal_exc_port): Likewise.
7995 (gnu_read_inferior): Change 'copy_count''s type to
7996 mach_msg_type_number_t.
7997 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8000 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8002 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8003 flag. Adjust all users; in particular...
8004 (gnu_wait): ..., don't decrement its value in here...
8005 (gnu_create_inferior): ..., and instead set the flag in here,
8006 around the startup_inferior call, and call that one with
8007 START_INFERIOR_TRAPS_EXPECTED.
8009 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8010 (ILL_RPC): ... new macro.
8011 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8012 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8013 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8014 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8015 functions with ILL_RPC macro.
8016 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8017 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8018 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8019 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8020 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8021 (S_proc_getlogin_reply, S_proc_getsid_reply)
8022 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8023 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8024 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8025 (S_proc_getnports_reply, S_proc_is_important_reply)
8026 (S_proc_get_code_reply): New stub functions, generated with
8029 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8030 collected the type check structures.
8032 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8034 2014-02-14 Doug Evans <dje@google.com>
8036 * target.c (target_write_partial): Fix result type.
8038 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8040 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8041 the proper offsets to access fpregset_t.
8043 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8045 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8046 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8047 * h8300-tdep.c (setmachinelist): Remove global.
8048 * hppa-tdep.c (hppa_sigtramp): Remove global.
8049 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8050 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8051 * ravenscar-thread.c (update_target_observer): Remove global.
8052 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8054 2014-02-12 Tom Tromey <tromey@redhat.com>
8056 * common/rsp-low.c: Update comments.
8057 * common/rsp-low.h: Update comments.
8059 2014-02-12 Tom Tromey <tromey@redhat.com>
8061 * common/rsp-low.c (convert_ascii_to_int): Remove.
8062 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8064 2014-02-12 Tom Tromey <tromey@redhat.com>
8066 * common/rsp-low.h (unhexify): Don't declare.
8067 * common/rsp-low.c (unhexify): Remove.
8069 2014-02-12 Tom Tromey <tromey@redhat.com>
8071 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8072 * common/rsp-low.c (convert_int_to_ascii): Remove.
8074 2014-02-12 Tom Tromey <tromey@redhat.com>
8076 * common/rsp-low.h (hexify): Don't declare.
8077 * common/rsp-low.c (hexify): Remove.
8079 2014-02-12 Tom Tromey <tromey@redhat.com>
8081 * common/rsp-low.c (hexify): Never take strlen of argument.
8083 2014-02-12 Tom Tromey <tromey@redhat.com>
8085 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8086 * remote.c (extended_remote_run, remote_rcmd)
8087 (remote_download_trace_state_variable, remote_save_trace_data)
8088 (remote_set_trace_notes): Update.
8089 * tracepoint.c (encode_source_string, tfile_write_status)
8090 (tfile_write_uploaded_tsv): Update.
8092 2014-02-12 Tom Tromey <tromey@redhat.com>
8094 * tracepoint.c: Include rsp-low.h.
8095 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8096 * remote.c: Include rsp-low.h.
8097 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8098 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8099 (remote_unescape_input): Move to common/rsp-low.c.
8100 * common/rsp-low.h: New file.
8101 * common/rsp-low.c: New file.
8102 * Makefile.in (SFILES): Add common/rsp-low.c.
8103 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8104 (COMMON_OBS): Add rsp-low.o.
8105 (rsp-low.o): New target.
8107 2014-02-12 Tom Tromey <tromey@redhat.com>
8109 * utils.h: Include print-utils.h.
8110 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8111 (int_string, core_addr_to_string, core_addr_to_string_nz)
8112 (hex_string, hex_string_custom): Don't declare.
8113 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8114 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8115 (hex_string_custom, int_string, core_addr_to_string)
8116 (core_addr_to_string_nz, host_address_to_string): Move to
8117 common/print-utils.c.
8118 * common/print-utils.h: New file.
8119 * common/print-utils.c: New file
8120 * Makefile.in (SFILES): Add common/print-utils.c.
8121 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8122 (COMMON_OBS): Add print-utils.o.
8123 (print-utils.o): New target.
8125 2014-02-12 Tom Tromey <tromey@redhat.com>
8127 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8129 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8131 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8133 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8135 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8136 if a PT_IO ptrace request returns sucessfully but indicates that 0
8137 bytes were transferred.
8139 2014-02-12 Pedro Alves <palves@redhat.com>
8140 Kevin Buettner <kevinb@redhat.com>
8142 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8143 TYPE_INSTANCE_FLAG_CODE_SPACE.
8145 2014-02-12 Pedro Alves <palves@redhat.com>
8147 * h8300-tdep.c (pseudo_from_raw_register)
8148 (raw_from_pseudo_register): New functions.
8149 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8152 2014-02-12 Pedro Alves <palves@redhat.com>
8154 * h8300-tdep.c (h8300_register_sim_regno): New function.
8155 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8156 gdbarch_register_sim_regno hook.
8158 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8160 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8162 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8164 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8166 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8168 * obsd-tdep.h (obsd_init_abi): New prototype.
8169 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8170 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8171 (obsd_init_abi): New functions.
8172 * i386obsd-tdep.c: Include "obsd-tdep.h".
8173 (i386obsd_init_abi): Call obsd_init_abi.
8174 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8175 (amd64obsd_init_abi): Call obsd_init_abi.
8176 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8177 obsd-tdep.c to gdb_target_obs.
8179 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8181 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8182 double float arguments to 16-byte in the argument slots.
8184 2014-02-11 Doug Evans <xdje42@gmail.com>
8186 * configure.ac: Don't crash if pkg-config is not found and guile
8187 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8189 * configure: Regenerate.
8191 2014-02-11 Yao Qi <yao@codesourcery.com>
8193 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8194 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8195 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8196 * gnu-nat.c (gnu_xfer_memory): Likewise.
8197 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8198 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8199 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8200 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8202 2014-02-11 Yao Qi <yao@codesourcery.com>
8204 * target.h (enum target_xfer_error): Rename to ...
8205 (enum target_xfer_status): ... it. New. All users updated.
8206 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8208 (TARGET_XFER_STATUS_ERROR_P): New macro.
8209 (target_xfer_error_to_string): Remove declaration.
8210 (target_xfer_status_to_string): Declare.
8211 (target_xfer_partial_ftype): Adjust it.
8212 (struct target_ops) <to_xfer_partial>: Return
8213 target_xfer_status. Add argument xfered_len. Update
8215 * target.c (target_xfer_error_to_string): Rename to ...
8216 (target_xfer_status_to_string): ... it. New. All callers
8218 (target_read_live_memory): Likewise. Call target_xfer_partial
8219 instead of target_read.
8220 (memory_xfer_live_readonly_partial): Return
8221 target_xfer_status. Add argument xfered_len.
8222 (raw_memory_xfer_partial): Likewise.
8223 (memory_xfer_partial_1): Likewise.
8224 (memory_xfer_partial): Likewise.
8225 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8226 properly. Update debug message.
8227 (default_xfer_partial, current_xfer_partial): Likewise.
8228 (target_write_partial): Likewise.
8229 (target_read_partial): Likewise. All callers updated.
8230 (read_whatever_is_readable): Likewise.
8231 (target_write_with_progress): Likewise.
8232 (target_read_alloc_1): Likewise.
8234 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8235 * auxv.c (procfs_xfer_auxv): Likewise.
8236 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8237 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8238 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8239 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8240 * corefile.c (read_memory): Adjust.
8241 * corelow.c (core_xfer_partial): Likewise.
8242 * ctf.c (ctf_xfer_partial): Likewise.
8243 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8245 (darwin_xfer_partial): Likewise.
8246 * exec.c (section_table_xfer_memory_partial): Likewise. All
8248 (exec_xfer_partial): Likewise.
8249 * exec.h (section_table_xfer_memory_partial): Update
8251 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8253 (gnu_xfer_partial): Likewise.
8254 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8255 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8256 (ia64_hpux_xfer_solib_got): Likewise.
8257 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8258 type of 'partial_len' to ULONGEST.
8259 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8260 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8261 (linux_nat_xfer_partial): Likewise.
8262 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8263 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8264 * monitor.c (monitor_xfer_memory): Likewise.
8265 (monitor_xfer_partial): Likewise.
8266 * procfs.c (procfs_xfer_partial): Likewise.
8267 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8268 * record-full.c (record_full_xfer_partial): Likewise.
8269 (record_full_core_xfer_partial): Likewise.
8270 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8271 (gdbsim_xfer_partial): Likewise.
8272 * remote.c (remote_write_bytes_aux): Likewise. All callers
8274 (remote_write_bytes, remote_read_bytes): Likewise. All
8276 (remote_flash_erase): Likewise. All callers updated.
8277 (remote_write_qxfer): Likewise. All callers updated.
8278 (remote_read_qxfer): Likewise. All callers updated.
8279 (remote_xfer_partial): Likewise.
8280 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8281 (rs6000_xfer_shared_libraries): Likewise.
8282 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8283 (sol_thread_xfer_partial): Likewise.
8284 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8285 (sparc_xfer_partial): Likewise.
8286 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8288 (spu_xfer_partial): Likewise.
8289 * spu-multiarch.c (spu_xfer_partial): Likewise.
8290 * tracepoint.c (tfile_xfer_partial): Likewise.
8291 * windows-nat.c (windows_xfer_memory): Likewise.
8292 (windows_xfer_shared_libraries): Likewise.
8293 (windows_xfer_partial): Likewise.
8294 * valprint.c: Replace 'target_xfer_error' with
8295 'target_xfer_status' in comments.
8297 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8299 Checked in by Joel Brobecker <brobecker@adacore.com>.
8300 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8302 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8304 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8305 function parameters.
8307 2014-02-10 Will Newton <will.newton@linaro.org>
8309 * elfread.c (elf_rel_plt_read): Look for a .got section if
8310 looking up .got.plt fails.
8311 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8312 on address passed to elf_gnu_ifunc_record_cache.
8313 (elf_gnu_ifunc_resolve_addr): Likewise.
8314 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8316 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8318 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8319 (X_RETTURN): New macro.
8320 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8322 * sparc64-tdep.c (sparc64_init_abi): Hook
8323 sparc_in_function_epilogue_p.
8325 2014-02-10 Gary Benson <gbenson@redhat.com>
8327 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8328 Rename name_matcher to symbol_matcher.
8330 2014-02-10 Gary Benson <gbenson@redhat.com>
8332 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8333 Use expand_symtabs_file_matcher_ftype and
8334 expand_symtabs_symbol_matcher_ftype.
8336 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8338 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8339 (struct ada_symbol_cache): New.
8340 (ada_free_symbol_cache): Forward declare.
8341 (struct ada_pspace_data): New.
8342 (ada_pspace_data_handle): New static global.
8343 (get_ada_pspace_data, ada_pspace_data_cleanup)
8344 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8345 (cache_space, cache): Delete, now folded inside struct
8347 (ada_get_symbol_cache): New function.
8348 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8350 (_initialize_ada_language): Remove initialization of cache_space.
8351 Move call to observer_attach_inferior_exit up, grouping it
8352 with the other observer registrations inside this function.
8353 Rename command to be more general. Add call to
8354 register_program_space_data_with_cleanup.
8356 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8358 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8359 ada_new_objfile_observer.
8360 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8361 (_initialize_tasks): Update uses of ada_new_objfile_observer
8362 and ada_tasks_normal_stop_observer.
8364 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8366 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8367 returned by the 'Length attribute to integer.
8369 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8371 * ada-lang.c (_initialize_ada_language): Initialize
8372 cache_space obstack.
8374 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8376 * ada-lang.c (HASH_SIZE): New macro.
8377 (struct cache_entry): New type.
8378 (cache_space, cache): New static globals.
8379 (ada_clear_symbol_cache, find_entry): New functions.
8380 (lookup_cached_symbol, cache_symbol): Implement.
8381 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8382 (_initialize_ada_language): Attach ada_new_objfile_observer
8383 and ada_free_objfile_observer.
8385 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8387 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8388 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8389 struct block * parameter.
8390 (ada_lookup_symbol_list_worker): Constify local variable "block".
8391 Remove cast which is no longer necessary.
8393 2014-02-10 Doug Evans <xdje42@gmail.com>
8395 Add Guile as an extension language.
8396 * NEWS: Mention Guile scripting.
8397 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8398 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8399 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8400 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8401 (CLIBS): Add GUILE_LIBS.
8402 (install-guile): New rule.
8403 (guile.o): New rule.
8404 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8405 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8406 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8407 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8408 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8409 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8410 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8411 * configure.ac: New option --with-guile.
8412 * configure: Regenerate.
8413 * config.in: Regenerate.
8414 * auto-load.c: Remove #include "python/python.h". Add #include
8415 "gdb/section-scripts.h".
8416 (source_section_scripts): Handle Guile scripts.
8417 (_initialize_auto_load): Add name of Guile objfile script to
8418 scripts-directory help text.
8419 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8420 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8421 (struct breakpoint): New member scm_bp_object.
8422 * defs.h (enum command_control_type): New value guile_control.
8423 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8425 (show_user): Update comment.
8426 (_initialize_cli_cmds): Update help text for "show user". Update help
8427 text for max-user-call-depth.
8428 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8430 (multi_line_command_p): Add guile_control.
8431 (print_command_lines): Handle guile_control.
8432 (execute_control_command, recurse_read_control_structure): Ditto.
8433 (process_next_line): Recognize "guile" commands.
8434 * disasm.c (gdb_disassemble_info): Make non-static.
8435 * disasm.h: #include "dis-asm.h".
8436 (struct gdbarch): Add forward decl.
8437 (gdb_disassemble_info): Declare.
8438 * extension.c: #include "guile/guile.h".
8439 (extension_languages): Add guile.
8440 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8441 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8442 * gdbtypes.c (get_unsigned_type_max): New function.
8443 (get_signed_type_minmax): New function.
8444 * gdbtypes.h (get_unsigned_type_max): Declare.
8445 (get_signed_type_minmax): Declare.
8446 * guile/README: New file.
8447 * guile/guile-internal.h: New file.
8448 * guile/guile.c: New file.
8449 * guile/guile.h: New file.
8450 * guile/scm-arch.c: New file.
8451 * guile/scm-auto-load.c: New file.
8452 * guile/scm-block.c: New file.
8453 * guile/scm-breakpoint.c: New file.
8454 * guile/scm-disasm.c: New file.
8455 * guile/scm-exception.c: New file.
8456 * guile/scm-frame.c: New file.
8457 * guile/scm-gsmob.c: New file.
8458 * guile/scm-iterator.c: New file.
8459 * guile/scm-lazy-string.c: New file.
8460 * guile/scm-math.c: New file.
8461 * guile/scm-objfile.c: New file.
8462 * guile/scm-ports.c: New file.
8463 * guile/scm-pretty-print.c: New file.
8464 * guile/scm-safe-call.c: New file.
8465 * guile/scm-string.c: New file.
8466 * guile/scm-symbol.c: New file.
8467 * guile/scm-symtab.c: New file.
8468 * guile/scm-type.c: New file.
8469 * guile/scm-utils.c: New file.
8470 * guile/scm-value.c: New file.
8471 * guile/lib/gdb.scm: New file.
8472 * guile/lib/gdb/boot.scm: New file.
8473 * guile/lib/gdb/experimental.scm: New file.
8474 * guile/lib/gdb/init.scm: New file.
8475 * guile/lib/gdb/iterator.scm: New file.
8476 * guile/lib/gdb/printing.scm: New file.
8477 * guile/lib/gdb/types.scm: New file.
8478 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8479 (VPATH): Add $(GUILE_SRCDIR).
8480 (GUILE_DIR): New variable.
8481 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8482 (all): Add stamp-guile dependency.
8483 (stamp-guile): New rule.
8484 (clean-guile, install-guile, uninstall-guile): New rules.
8485 (install-only): Add install-guile dependency.
8486 (uninstall): Add uninstall-guile dependency.
8487 (clean): Add clean-guile dependency.
8489 2014-02-09 Doug Evans <xdje42@gmail.com>
8491 Revert this patch (which I approved, mea culpa).
8493 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8495 * Makefile.in (all-lib): Remove.
8496 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8498 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 Fix Python stack corruption.
8501 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8504 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8506 * Makefile.in (all-lib): Remove.
8507 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8509 2014-02-07 Doug Evans <dje@google.com>
8511 * extension-priv.h (extension_language_script_ops): Add comment.
8512 (extension_language_ops): Add comment.
8513 (active_ext_lang_state): Fix typo in comment.
8515 2014-02-07 Pedro Alves <palves@redhat.com>
8517 PR breakpoints/16292
8518 * infrun.c (handle_signal_stop) <signal arrives while stepping
8519 over a breakpoint>: Switch back to the stepping thread.
8521 2014-02-07 Yao Qi <yao@codesourcery.com>
8523 * target.c (target_xfer_partial): Return zero if LEN is zero.
8525 2014-02-07 Yao Qi <yao@codesourcery.com>
8527 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8528 (ld_so_xfer_auxv): Likewise.
8529 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8530 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8531 * corelow.c (core_xfer_partial): Likewise.
8532 * ctf.c (ctf_xfer_partial): Likewise.
8533 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8534 (darwin_xfer_partial): Likewise.
8535 * exec.c (exec_xfer_partial): Likewise.
8536 * gnu-nat.c (gnu_xfer_partial): Likewise.
8537 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8538 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8539 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8540 * linux-nat.c (linux_xfer_siginfo): Likewise.
8541 (linux_proc_xfer_spu): Likewise.
8542 * procfs.c (procfs_xfer_partial): Likewise.
8543 * record-full.c (record_full_xfer_partial): Likewise.
8544 (record_full_core_xfer_partial): Likewise.
8545 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8546 * remote.c (remote_write_qxfer): Likewise.
8547 (remote_write_qxfer, remote_read_qxfer): Likewise.
8548 (remote_xfer_partial): Likewise.
8549 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8550 (rs6000_xfer_shared_libraries): Likewise.
8551 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8553 (spu_xfer_partial): Likewise.
8554 * target.c (memory_xfer_partial_1): Likewise.
8555 * tracepoint.c (tfile_xfer_partial): Likewise.
8556 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8557 (windows_xfer_partial): Likewise.
8559 2014-02-07 Yao Qi <yao@codesourcery.com>
8561 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8563 (core_xfer_shared_libraries_aix): Likewise.
8564 * gdbarch.c, gdbarch.h: Regenerated.
8565 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8566 ULONGEST. Change 'len_avail' type to ULONGEST.
8567 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8568 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8570 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8572 2014-02-07 Yao Qi <yao@codesourcery.com>
8574 * corefile.c (memory_error): Get 'exception' from ERR and pass
8575 'exception' to throw_error.
8577 2014-02-06 Doug Evans <xdje42@gmail.com>
8579 * configure.ac (libpython checking): Remove all but python.o from
8580 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8581 * configure: Regenerate.
8583 * Makefile.in (SFILES): Add extension.c.
8584 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8585 (COMMON_OBS): Add extension.o.
8586 * extension.h: New file.
8587 * extension-priv.h: New file.
8588 * extension.c: New file.
8590 * python/python-internal.h: #include "extension.h".
8591 (gdbpy_auto_load_enabled): Declare.
8592 (gdbpy_apply_val_pretty_printer): Declare.
8593 (gdbpy_apply_frame_filter): Declare.
8594 (gdbpy_preserve_values): Declare.
8595 (gdbpy_breakpoint_cond_says_stop): Declare.
8596 (gdbpy_breakpoint_has_cond): Declare.
8597 (void source_python_script_for_objfile): Delete.
8598 * python/python.c: #include "extension-priv.h".
8599 Delete inclusion of "observer.h".
8600 (extension_language_python): Moved here and renamed from
8601 script_language_python in py-auto-load.c.
8602 Redefined to be of type extension_language_defn.
8603 (python_extension_script_ops): New global.
8604 (python_extension_ops): New global.
8605 (struct python_env): New member previous_active.
8606 (restore_python_env): Call restore_active_ext_lang.
8607 (ensure_python_env): Call set_active_ext_lang.
8608 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8610 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8612 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8614 (gdbpy_eval_from_control_command): Renamed from
8615 eval_python_from_control_command, made static. New arg extlang.
8616 (gdbpy_source_script) Renamed from source_python_script, made static.
8618 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8619 result to int. New arg extlang.
8620 (gdbpy_source_objfile_script): Renamed from
8621 source_python_script_for_objfile, made static. New arg extlang.
8622 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8623 static. New args extlang, extlang_printers. Change result type to
8625 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8626 static. New arg extlang. Rename arg printers to extlang_printers
8627 and change type to ext_lang_type_printers *.
8628 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8629 static. Replace argument arg with extlang, extlang_printers.
8630 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8631 (!HAVE_PYTHON, source_python_script): Delete.
8632 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8633 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8634 (!HAVE_PYTHON, start_type_printers): Delete.
8635 (!HAVE_PYTHON, apply_type_printers): Delete.
8636 (!HAVE_PYTHON, free_type_printers): Delete.
8637 (_initialize_python): Delete call to observer_attach_before_prompt.
8638 (finalize_python): Set/restore active extension language.
8639 (gdbpy_finish_initialization) Renamed from
8640 finish_python_initialization, made static. New arg extlang.
8641 (gdbpy_initialized): New function.
8642 * python/python.h: #include "extension.h". Delete #include
8643 "value.h", "mi/mi-cmds.h".
8644 (extension_language_python): Declare.
8645 (GDBPY_AUTO_FILE_NAME): Delete.
8646 (enum py_bt_status): Moved to extension.h and renamed to
8648 (enum frame_filter_flags): Moved to extension.h.
8649 (enum py_frame_args): Moved to extension.h and renamed to
8650 ext_lang_frame_args.
8651 (finish_python_initialization): Delete.
8652 (eval_python_from_control_command): Delete.
8653 (source_python_script): Delete.
8654 (apply_val_pretty_printer): Delete.
8655 (apply_frame_filter): Delete.
8656 (preserve_python_values): Delete.
8657 (gdbpy_script_language_defn): Delete.
8658 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8659 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8661 * auto-load.c: #include "extension.h".
8662 (GDB_AUTO_FILE_NAME): Delete.
8663 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8664 (script_language_gdb): Delete, moved to extension.c and renamed to
8665 extension_language_gdb.
8666 (source_gdb_script_for_objfile): Delete.
8667 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8668 (loaded_script): Change type of language member to
8669 struct extension_language_defn *.
8670 (init_loaded_scripts_info): Initialize
8671 unsupported_script_warning_printed.
8672 (maybe_add_script): Make static. Change type of language arg to
8673 struct extension_language_defn *.
8674 (clear_section_scripts): Reset unsupported_script_warning_printed.
8675 (auto_load_objfile_script_1): Rewrite to use extension language API.
8676 (auto_load_objfile_script): Make public. Remove support-compiled-in
8677 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8678 (source_section_scripts): Rewrite to use extension language API.
8679 (load_auto_scripts_for_objfile): Rewrite to use
8680 auto_load_scripts_for_objfile.
8681 (collect_matching_scripts_data): Change type of language member to
8682 struct extension_language_defn *.
8683 (auto_load_info_scripts): Change type of language arg to
8684 struct extension_language_defn *.
8685 (unsupported_script_warning_print): New function.
8686 (script_not_found_warning_print): Make static.
8687 (_initialize_auto_load): Rewrite construction of scripts-directory
8689 * auto-load.h (struct objfile): Add forward decl.
8690 (struct script_language): Delete.
8691 (struct auto_load_pspace_info): Add forward decl.
8692 (struct extension_language_defn): Add forward decl.
8693 (maybe_add_script): Delete.
8694 (auto_load_objfile_script): Declare.
8695 (script_not_found_warning_print): Delete.
8696 (auto_load_info_scripts): Update prototype.
8697 (auto_load_gdb_scripts_enabled): Declare.
8698 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8699 auto_load_python_scripts_enabled and made public.
8700 (script_language_python): Delete, moved to python.c.
8701 (gdbpy_script_language_defn): Delete.
8702 (info_auto_load_python_scripts): Update to use
8703 extension_language_python.
8705 * breakpoint.c (condition_command): Replace call to
8706 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8707 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8708 with call to breakpoint_ext_lang_cond_says_stop.
8709 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8710 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8711 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8712 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8714 (local_setattro): Print name of extension language with existing
8717 * valprint.c (val_print, value_print): Update to call
8718 apply_ext_lang_val_pretty_printer.
8719 * cp-valprint.c (cp_print_value): Update call to
8720 apply_ext_lang_val_pretty_printer.
8721 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8722 (gdbpy_apply_val_pretty_printer): Renamed from
8723 apply_val_pretty_printer. New arg extlang.
8724 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8726 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8727 extension language API.
8728 * cli/cli-script.c (execute_control_command): Update to call
8729 eval_ext_lang_from_control_command.
8731 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8732 enum ext_lang_bt_status values. Update call to
8733 apply_ext_lang_frame_filter.
8734 (mi_cmd_stack_list_locals): Ditto.
8735 (mi_cmd_stack_list_args): Ditto.
8736 (mi_cmd_stack_list_variables): Ditto.
8737 * mi/mi-main.c: Delete #include "python/python-internal.h".
8738 Add #include "extension.h".
8739 (mi_cmd_list_features): Replace reference to python internal variable
8740 gdb_python_initialized with call to ext_lang_initialized_p.
8742 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8743 Update to use enum ext_lang_frame_args. Update to call
8744 apply_ext_lang_frame_filter.
8745 * python/py-framefilter.c (extract_sym): Update to use enum
8747 (extract_value, py_print_type, py_print_value): Ditto.
8748 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8749 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8750 (py_print_frame): Ditto.
8751 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8752 New arg extlang. Update to use enum ext_lang_bt_status.
8754 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8755 finish_python_initialization. Replace with call to
8756 finish_ext_lang_initialization.
8758 * typeprint.c (do_free_global_table): Update to call
8759 free_ext_lang_type_printers.
8760 (create_global_typedef_table): Update to call
8761 start_ext_lang_type_printers.
8762 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8763 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8764 (type_print_options): Change type of global_printers from "void *"
8765 to "struct ext_lang_type_printers *".
8767 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8768 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8769 (gdbpy_preserve_values): Renamed from preserve_python_values.
8771 (!HAVE_PYTHON, preserve_python_values): Delete.
8773 * utils.c (quit_flag): Delete, moved to extension.c.
8774 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8777 * eval.c: Delete #include "python/python.h".
8778 * main.c: Delete #include "python/python.h".
8780 * defs.h: Update comment.
8782 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8786 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8788 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8791 2014-02-05 Yao Qi <yao@codesourcery.com>
8793 * remote.c (remote_pass_signals): Remove local 'buf' and use
8795 (remote_program_signals): Likewise.
8797 2014-02-05 Yao Qi <yao@codesourcery.com>
8799 * ctf.c: Include "inferior.h" and "gdbthread.h".
8800 (CTF_PID): A new macro.
8801 (ctf_open): Call inferior_appeared and add_thread_silent.
8802 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8803 (ctf_thread_alive): New function.
8804 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8806 2014-02-05 Yao Qi <yao@codesourcery.com>
8810 2013-05-24 Yao Qi <yao@codesourcery.com>
8812 * tracepoint.c (TFILE_PID): Remove.
8813 (tfile_open): Don't add thread and inferior.
8814 (tfile_close): Don't set 'inferior_ptid'. Don't call
8815 exit_inferior_silent.
8816 (tfile_thread_alive): Remove.
8817 (init_tfile_ops): Don't set field 'to_thread_alive' of
8820 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8822 * remote.c (remote_start_remote): Call remote_check_symbols even
8823 if only symbol-file (not file) has been given.
8825 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8827 * gdbarch.sh (skip_entrypoint): New callback.
8828 * gdbarch.c, gdbarch.h: Regenerate.
8829 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8830 * infrun.c (fill_in_stop_func): Likewise.
8831 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8832 (ppc_elfv2_elf_make_msymbol_special): New function.
8833 (ppc_elfv2_skip_entrypoint): Likewise.
8834 (ppc_linux_init_abi): Install them for ELFv2.
8836 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8838 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8839 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8840 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8841 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8842 structures returned in GPRs.
8844 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8846 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8847 offset to the stack parameter list for the ELFv2 ABI.
8849 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8851 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8852 set_gdbarch_convert_from_func_ptr_addr and
8853 set_gdbarch_elf_make_msymbol_special for ELFv1.
8854 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8855 function descriptors on ELFv1.
8856 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8857 set up r12 at function entry.
8859 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8861 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8862 (struct gdbarch_tdep): New member elf_abi.
8864 * rs6000-tdep.c: Include "elf/ppc64.h".
8865 (rs6000_gdbarch_init): Detect ELF ABI version.
8867 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8869 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8870 within a register pair holding a DFP 128-bit value on little-endian.
8871 (ppc64_sysv_abi_return_value_base): Likewise.
8872 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8873 (dfp_pseudo_register_write): Likewise.
8875 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8877 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8878 offset on little-endian when passing _Decimal32.
8879 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8881 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8883 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8884 of the overlapped FP register within the VSX register on little-
8886 (efpr_pseudo_register_write): Likewise.
8888 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8890 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8891 offset on little-endian when passing small structures.
8893 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8895 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8896 (struct ppc64_sysv_argpos): New data structure.
8897 (ppc64_sysv_abi_push_float): Remove.
8898 (ppc64_sysv_abi_push_val): New function.
8899 (ppc64_sysv_abi_push_integer): Likewise.
8900 (ppc64_sysv_abi_push_freg): Likewise.
8901 (ppc64_sysv_abi_push_vreg): Likewise.
8902 (ppc64_sysv_abi_push_param): Likewise.
8903 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8904 (ppc64_sysv_abi_return_value_base): New function.
8905 (ppc64_sysv_abi_return_value): Refactor to use it.
8907 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8909 * NEWS: Document new target powerpc64le-*-linux*.
8911 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8913 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8914 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8916 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8917 register set used in ELF core dumps. Add floating-point register set.
8919 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8921 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8922 dwarf2_to_gdb[] table using symbolic constants. Adjust
8923 penultimate entry from number representing the PC register
8924 to symbolic constant representing the MDR register. Add
8925 constant for the PC register to the end of the table.
8927 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8929 * bsd-kvm.c: Include <sys/param.h>
8931 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8933 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8935 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8937 * ada-lang.h (clear_ada_sym_cache): Delete.
8939 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8941 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8943 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8945 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8946 the sigreturn register save area only if the syscall is
8949 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8951 * valops.c (value_slice): Minor reformatting.
8953 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8955 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8957 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8959 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8961 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8962 (ada_ignore_descriptive_types_p): New static global.
8963 (find_parallel_type_by_descriptive_type): Return immediately
8964 if ada_ignore_descriptive_types_p is set.
8965 (_initialize_ada_language): Register new commands "maintenance
8966 set ada", "maintenance show ada", "maintenance set ada
8967 ignore-descriptive-types" and "maintenance show ada
8968 ignore-descriptive-types".
8969 * NEWS: Add entry for new "maint ada set/show
8970 ignore-descriptive-types" commands.
8972 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8974 * record-btrace.c (record_btrace_close): Call btrace_teardown
8977 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8979 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8982 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8984 * ada-typeprint (type_is_full_subrange_of_target_type):
8986 (print_range): Add parameter bounds_prefered_p. If not set,
8987 try printing range types using the name of their base type.
8988 (print_range_type): Add parameter bounds_prefered_p.
8989 Use it in call to print_range.
8990 (print_array_type, ada_print_type): Update calls to print_range
8991 and print_range_type.
8993 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8995 * ada-typeprint.c (print_array_type, print_choices, print_range)
8996 (print_range_bound, print_dynamic_range_bound, print_range_type):
8999 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9001 * ada-typeprint.c (print_range): Add missing empty line
9002 after local declaration.
9004 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9006 * ada-valprint.c (print_optional_low_bound): Get index_type's
9007 target type for as long as it is a TYPE_CODE_RANGE.
9009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9011 * procfs.c (procfs_make_note_section): Remove assertion and
9014 2014-01-24 Yao Qi <yao@codesourcery.com>
9016 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9017 * corelow.c (get_core_siginfo): Likewise.
9019 2014-01-24 Yao Qi <yao@codesourcery.com>
9021 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9022 ULONGEST. Don't check 'len' is negative.
9023 (remote_write_bytes): Change type of 'len' to ULONGEST.
9025 2014-01-23 Tom Tromey <tromey@redhat.com>
9028 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9029 Handle exception from frame.block.
9030 (FrameVars.fetch_frame_locals): Likewise.
9032 2014-01-23 Tom Tromey <tromey@redhat.com>
9035 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9036 on a NULL pointer. Move "goto error" to correct place.
9038 2014-01-23 Tom Tromey <tromey@redhat.com>
9041 * python/py-framefilter.c (apply_frame_filter): Call
9042 ensure_python_env after computing gdbarch.
9044 2014-01-23 Yao Qi <yao@codesourcery.com>
9046 * target.c (raw_memory_xfer_partial): Change argument type
9047 from void * to gdb_byte *.
9048 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9050 2014-01-22 Doug Evans <dje@google.com>
9052 New gdbserver option --debug-format=timestamp.
9055 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9057 * syscalls/s390x-linux.xml: New file.
9058 * syscalls/s390-linux.xml: New file.
9059 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9060 (XML_SYSCALL_FILENAME_S390X): Likewise.
9061 (op_svc): New enum value for SVC opcode.
9062 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9063 (s390_linux_get_syscall_number): New function.
9064 (s390_gdbarch_init): Register '*get_syscall_number' and the
9065 syscall xml file name.
9066 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9067 "s390-linux.xml" and "s390x-linux.xml".
9068 * NEWS: Announce new feature.
9070 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9072 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9074 2014-01-22 Pedro Alves <palves@redhat.com>
9076 * xtensa-config.c: Include defs.h.
9078 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9080 * common/common-utils.h: Add "ARI:" comment beside __func__
9083 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9085 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9086 documentation a bit.
9088 2014-01-21 Roland McGrath <mcgrathr@google.com>
9090 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9091 * configure: Regenerate.
9092 * aclocal.m4: Regenerate.
9093 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9094 New substituted variables.
9095 (install-strip): New target.
9096 (INSTALL_SCRIPT): New substituted variable.
9097 (FLAGS_TO_PASS): Add it.
9098 (install-only): Use $(INSTALL_SCRIPT) rather than
9099 $(INSTALL_PROGRAM) for gcore.
9101 2014-01-20 Tom Tromey <tromey@redhat.com>
9103 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9106 2014-01-20 Tom Tromey <tromey@redhat.com>
9108 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9109 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9110 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9111 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9112 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9113 (struct cmd_list_element) <flags>: Remove.
9114 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9115 doc_allocated>: New fields.
9116 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9118 * maint.c (maintenance_do_deprecate): Update.
9119 * top.c (execute_command): Update.
9121 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9123 * xtensa-linux-nat.c: Include asm/ptrace.h.
9125 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9127 * Makefile.in (SFILES): Add d-support.c.
9128 (COMMON_OBS): Add d-support.o.
9129 * d-lang.h (d_parse_symbol): Add comment, now defined in
9131 * d-lang.c (parse_call_convention)
9132 (parse_attributes, parse_function_types)
9133 (parse_function_args, parse_type, parse_identifier)
9134 (call_convention_p, d_parse_symbol): Move functions to ...
9135 * d-support.c: ... New file.
9137 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9139 * d-lang.h (d_parse_symbol): Add declaration.
9140 * d-lang.c (extract_identifiers)
9141 (extract_type_info): Remove functions.
9142 (parse_call_convention, parse_attributes)
9143 (parse_function_types, parse_function_args)
9144 (parse_type, parse_identifier, call_convention_p)
9145 (d_parse_symbol): New functions.
9146 (d_demangle): Use d_parse_symbol to demangle D symbols.
9148 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9150 * d-lang.h (struct builtin_d_type): New data type.
9151 (builtin_d_type): Add declaration.
9152 * d-lang.c (d_language_arch_info, build_d_types)
9153 (builtin_d_type): New functions.
9154 (enum d_primitive_types): New data type.
9155 (d_language_defn): Change c_language_arch_info to
9156 d_language_arch_info.
9157 (d_type_data): New static variable.
9158 (_initialize_d_language): Initialize d_type_data.
9160 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9162 * d-lang.h (d_main_name): Add declaration.
9163 * d-lang.c (d_main_name): New function.
9164 * symtab.c (find_main_name): Add call to d_main_name.
9166 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9168 * d-lang.c (d_language_defn): Change macro_expansion_c to
9171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9173 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9175 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9177 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9178 gdb_exception" declaration.
9179 * remote.c (getpkt_or_notif_sane): Likewise.
9181 2014-01-17 Doug Evans <dje@google.com>
9183 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9184 function, contents of dirnames_to_char_ptr_vec_append moved here.
9185 (delim_string_to_char_ptr_vec): New function.
9186 (dirnames_to_char_ptr_vec_append): Rewrite.
9187 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9189 2014-01-17 Doug Evans <dje@google.com>
9191 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9193 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9194 #include "common-utils.h".
9195 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9196 * common/vec.h (VEC_ASSERT_PASS): Update.
9197 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9198 (MACH_CHECK_ERROR): Update.
9200 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9202 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9204 * gdbarch.h: Regenerate.
9206 2014-01-16 Tom Tromey <tromey@redhat.com>
9208 * value.c (struct value) <regnum>: Move earlier.
9210 2014-01-16 Tom Tromey <tromey@redhat.com>
9212 * remote.c (extended_remote_create_inferior): Rename from
9213 extended_remote_create_inferior_1. Add "ops" argument. Remove
9216 2014-01-16 Pedro Alves <palves@redhat.com>
9218 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9219 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9222 2014-01-16 Doug Evans <dje@google.com>
9224 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9228 * btrace.h (btrace_thread_flag): New.
9229 (struct btrace_thread_info) <flags>: New.
9230 * record-btrace.c (record_btrace_resume_thread)
9231 (record_btrace_find_thread_to_move, btrace_step_no_history)
9232 (btrace_step_stopped, record_btrace_start_replaying)
9233 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9234 (record_btrace_find_resume_thread): New.
9235 (record_btrace_resume, record_btrace_wait): Extend.
9236 (record_btrace_can_execute_reverse): New.
9237 (record_btrace_open): Fail in non-stop mode.
9238 (record_btrace_set_replay): Split into this, ...
9239 (record_btrace_stop_replaying): ... this, ...
9240 (record_btrace_clear_histories): ... and this.
9241 (init_record_btrace_ops): Init to_can_execute_reverse.
9242 * NEWS: Announce it.
9244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9246 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9247 (forward_target_decr_pc_after_break)
9248 (target_decr_pc_after_break): New.
9249 * target.c (forward_target_decr_pc_after_break)
9250 (target_decr_pc_after_break): New.
9251 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9252 instead of gdbarch_decr_pc_after_break.
9253 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9254 instead of gdbarch_decr_pc_after_break.
9255 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9256 instead of gdbarch_decr_pc_after_break.
9257 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9258 instead of gdbarch_decr_pc_after_break.
9259 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9260 instead of gdbarch_decr_pc_after_break.
9261 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9262 instead of gdbarch_decr_pc_after_break.
9264 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9266 * btrace.c: Include regcache.h.
9267 (btrace_add_pc): New.
9268 (btrace_enable): Call btrace_add_pc.
9269 (btrace_is_empty): New.
9270 * btrace.h (btrace_is_empty): New.
9271 * record-btrace.c (require_btrace, record_btrace_info): Call
9274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9276 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9277 Support delta reads.
9278 (linux_disable_btrace): Change return type.
9279 * common/linux-btrace.h (linux_read_btrace): Change parameters
9280 and return type to allow error reporting. Update users.
9281 (linux_disable_btrace): Change return type. Update users.
9282 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9284 (btrace_error): New.
9285 (btrace_block) <begin>: Comment on BEGIN == 0.
9286 * btrace.c (btrace_compute_ftrace): Start from the end of
9288 (btrace_stitch_trace, btrace_clear_history): New.
9289 (btrace_fetch): Read delta trace, return if replaying.
9290 (btrace_clear): Move clear history code to btrace_clear_history.
9291 (parse_xml_btrace): Throw an error if parsing failed.
9292 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9293 and return type to allow error reporting.
9294 (target_read_btrace): Change parameters and return type to allow
9296 * target.c (target_read_btrace): Update.
9297 * remote.c (remote_read_btrace): Support delta reads. Pass
9299 * NEWS: Announce it.
9301 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9303 * record.h (record_btrace_frame_unwind)
9304 (record_btrace_tailcall_frame_unwind): New declarations.
9305 * dwarf2-frame: Include record.h
9306 (dwarf2_frame_cfa): Throw an error for btrace frames.
9307 * record-btrace.c: Include hashtab.h.
9308 (btrace_get_bfun_name): New.
9309 (btrace_call_history): Call btrace_get_bfun_name.
9310 (struct btrace_frame_cache): New.
9312 (bfcache_hash, bfcache_eq, bfcache_new): New.
9313 (btrace_get_frame_function): New.
9314 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9315 (record_btrace_frame_this_id): Compute own id.
9316 (record_btrace_frame_prev_register): Provide PC, throw_error
9317 for all other registers.
9318 (record_btrace_frame_sniffer): Detect btrace frames.
9319 (record_btrace_tailcall_frame_sniffer): New.
9320 (record_btrace_frame_dealloc_cache): New.
9321 (record_btrace_frame_unwind): Add new functions.
9322 (record_btrace_tailcall_frame_unwind): New.
9323 (_initialize_record_btrace): Allocate cache.
9324 * btrace.c (btrace_clear): Call reinit_frame_cache.
9325 * NEWS: Announce it.
9327 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9329 * record-btrace.c (record_btrace_set_replay)
9330 (record_btrace_goto_begin, record_btrace_goto_end)
9331 (record_btrace_goto): New.
9332 (init_record_btrace_ops): Initialize them.
9333 * NEWS: Announce it.
9335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9337 * record-btrace.c (record_btrace_find_new_threads)
9338 (record_btrace_thread_alive): New.
9339 (init_record_btrace_ops): Initialize to_find_new_threads and
9342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9344 * record-btrace.c (record_btrace_resume): New.
9345 (record_btrace_wait): New.
9346 (init_record_btrace_ops): Initialize to_wait and to_resume.
9348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9350 * record-btrace.c (record_btrace_xfer_partial)
9351 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9352 (record_btrace_allow_memory_access): New.
9353 (init_record_btrace_ops): Initialize new methods.
9354 * target.c (raw_memory_xfer_partial): Bail out if target reports
9355 that this memory is not available.
9357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9359 * target.h (target_ops) <to_insert_breakpoint>
9360 <to_remove_breakpoint>: Add target_ops parameter.
9361 (forward_target_insert_breakpoint): New.
9362 (forward_target_remove_breakpoint): New.
9363 (memory_remove_breakpoint, memory_insert_breakpoint):
9364 Add target_ops parameter.
9365 * target.c (target_insert_breakpoint): Split into this and ...
9366 (forward_target_insert_breakpoint): ... this.
9367 (target_remove_breakpoint): Split into this and ...
9368 (forward_target_remove_breakpoint): ... this.
9369 (debug_to_insert_breakpoint): Add target_ops parameter.
9370 Call forward_target_insert_breakpoint.
9371 (debug_to_remove_breakpoint): Add target_ops parameter.
9372 Call forward_target_remove_breakpoint.
9373 (update_current_target): Do not inherit or default to_insert_breakpoint
9374 and to_remove_breakpoint.
9375 * corelow.c (ignore): Add target_ops parameter.
9376 * exec.c (ignore): Add target_ops parameter.
9377 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9378 Add target_ops parameter.
9379 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9380 Add target_ops parameter.
9381 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9382 Add target_ops parameter.
9383 * record-full.c (record_full_beneath_to_insert_breakpoint)
9384 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9385 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9386 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9387 (record_full_core_remove_breakpoint): Add target_ops parameter.
9389 (record_full_beneath_to_insert_breakpoint_ops)
9390 (record_full_beneath_to_remove_breakpoint_ops)
9391 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9392 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9393 tmp_to_remove_breakpoint_ops,
9394 record_full_beneath_to_insert_breakpoint_ops, and
9395 record_full_beneath_to_remove_breakpoint_ops.
9396 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9397 (m32r_remove_breakpoint): Add target_ops parameter.
9398 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9399 Add target_ops parameter.
9400 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9401 Add target_ops parameter.
9403 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9404 Markus Metzger <markus.t.metzger@intel.com>
9406 * record-btrace.c: Include frame-unwind.h.
9407 (record_btrace_frame_unwind_stop_reason)
9408 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9409 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9411 (init_record_btrace_ops): Install it.
9413 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9415 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9418 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9420 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9423 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9425 * frame-unwind.c: Include target.h.
9426 (frame_unwind_try_unwinder): New function with code from ...
9427 (frame_unwind_find_by_frame): ... here. New variable
9428 unwinder_from_target, call also target_get_unwinder)
9429 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9430 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9431 * target.h (struct target_ops): New fields to_get_unwinder and
9432 to_get_tailcall_unwinder.
9433 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9437 * record-btrace.c (record_btrace_fetch_registers)
9438 (record_btrace_store_registers)
9439 (record_btrace_to_prepare_to_store): New.
9440 (init_record_btrace_ops): Add the above.
9442 2014-01-16 Tom Tromey <tromey@redhat.com>
9444 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9445 * target.h (struct target_ops) <to_prepare_to_store>: Add
9447 (target_prepare_to_store): Add argument.
9448 * target.c (debug_to_prepare_to_store): Add argument.
9449 (update_current_target): Update.
9450 * remote.c (remote_prepare_to_store): Add 'self' argument.
9451 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9452 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9453 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9454 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9456 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9457 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9458 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9459 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9460 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9464 * btrace.h (replay) <replay>: New.
9465 (btrace_is_replaying): New.
9466 * btrace.c (btrace_clear): Free replay iterator.
9467 (btrace_is_replaying): New.
9468 * record-btrace.c (record_btrace_is_replaying): New.
9469 (record_btrace_info): Print insn number if replaying.
9470 (record_btrace_insn_history): Start at replay position.
9471 (record_btrace_call_history): Start at replay position.
9472 (init_record_btrace_ops): Init to_record_is_replaying.
9474 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9476 * record-btrace.c (record_btrace_insn_history_range): Include
9478 (record_btrace_insn_history_from): Adjust range.
9479 (record_btrace_call_history_range): Include
9481 (record_btrace_call_history_from): Adjust range.
9482 * NEWS: Announce changes.
9484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9486 * record.h (enum record_print_flag)
9487 <record_print_indent_calls>: New.
9488 * record.c (get_call_history_modifiers): Recognize /c modifier.
9489 (_initialize_record): Document /c modifier.
9490 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9491 Reorder fields. Optionally indent the function name. Update
9493 * NEWS: Announce changes.
9495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9497 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9501 * btrace.c (ftrace_new_function): Start counting at one.
9502 * record-btrace.c (record_btrace_info): Adjust number of calls
9504 * NEWS: Announce it.
9506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9508 * record-btrace.c (btrace_call_history_insn_range): Print
9509 insn range as [begin, end].
9511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9513 * btrace.h (struct btrace_func_link): New.
9514 (enum btrace_function_flag): New.
9515 (struct btrace_inst): Rename to ...
9516 (struct btrace_insn): ...this. Update all users.
9517 (struct btrace_func) <ibegin, iend>: Remove.
9518 (struct btrace_func_link): New.
9519 (struct btrace_func): Rename to ...
9520 (struct btrace_function): ...this. Update all users.
9521 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9522 (number, level, flags>: New.
9523 (struct btrace_insn_iterator): Rename to ...
9524 (struct btrace_insn_history): ...this.
9526 (struct btrace_insn_iterator, btrace_call_iterator): New.
9527 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9528 (struct btrace_target_info) <begin, end, level>
9529 <insn_history, call_history>: New.
9530 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9531 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9532 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9533 (btrace_call_number, btrace_call_begin, btrace_call_end)
9534 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9535 (btrace_find_function_by_number, btrace_set_insn_history)
9536 (btrace_set_call_history): New.
9537 * btrace.c (btrace_init_insn_iterator)
9538 (btrace_init_func_iterator, compute_itrace): Remove.
9539 (ftrace_print_function_name, ftrace_print_filename)
9540 (ftrace_skip_file): Change
9542 (ftrace_init_func): Remove.
9543 (ftrace_debug): Use new btrace_function fields.
9544 (ftrace_function_switched): Also consider gaining and
9545 losing symbol information).
9546 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9547 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9548 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9550 (ftrace_new_function): Move. Remove debug print.
9551 (ftrace_update_lines, ftrace_update_insns): New.
9552 (ftrace_update_function): Check for call, ret, and jump.
9553 (compute_ftrace): Renamed to ...
9554 (btrace_compute_ftrace): ...this. Rewritten to compute call
9556 (btrace_fetch, btrace_clear): Updated.
9557 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9558 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9559 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9560 (btrace_call_number, btrace_call_begin, btrace_call_end)
9561 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9562 (btrace_find_function_by_number, btrace_set_insn_history)
9563 (btrace_set_call_history): New.
9564 * record-btrace.c (require_btrace): Use new btrace thread
9566 (record_btrace_info, btrace_insn_history)
9567 (record_btrace_insn_history, record_btrace_insn_history_range):
9568 Use new btrace thread info fields and new iterator.
9569 (btrace_func_history_src_line): Rename to ...
9570 (btrace_call_history_src_line): ...this. Use new btrace
9572 (btrace_func_history): Rename to ...
9573 (btrace_call_history): ...this. Use new btrace thread info
9574 fields and new iterator.
9575 (record_btrace_call_history, record_btrace_call_history_range):
9576 Use new btrace thread info fields and new iterator.
9578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9580 * frame.h (frame_id_build_unavailable_stack_special): New.
9581 * frame.c (frame_id_build_unavailable_stack_special): New.
9583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9585 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9586 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9587 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9589 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9590 (i386_insn_is_jump, i386_jmp_p): New.
9591 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9592 insn_is_jump to gdbarch.
9593 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9594 * gdbarch.h: Regenerated.
9595 * gdbarch.c: Regenerated.
9596 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9597 (default_insn_is_jump): New.
9598 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9599 (default_insn_is_jump): New.
9601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9603 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9605 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9606 (btrace_read_type) <btrace_read_new>: Change to ...
9607 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9611 * common/linux-btrace.c (linux_read_btrace): Free trace from
9614 2014-01-15 Doug Evans <dje@google.com>
9616 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9619 2014-01-15 Tom Tromey <tromey@redhat.com>
9621 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9622 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9623 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9624 (set_objfile_main_name): New function.
9625 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9626 language_of_main>: New fields.
9627 (set_objfile_main_name): Declare.
9628 * symtab.c (find_main_name): Loop over objfiles to find the main
9630 (set_main_name): Now static.
9631 (get_main_info): Add comment.
9632 * symtab.h (set_main_name): Don't declare.
9634 2014-01-15 Tom Tromey <tromey@redhat.com>
9636 * symtab.c (main_progspace_key): New global.
9637 (struct main_info): New.
9638 (name_of_main, language_of_main): Remove.
9639 (get_main_info, main_info_cleanup): New function.
9640 (set_main_name, main_name, main_language): Use get_main_info.
9641 (_initialize_symtab): Initialize main_progspace_key.
9643 2014-01-15 Tom Tromey <tromey@redhat.com>
9645 * dbxread.c (process_one_symbol): Update.
9646 * dwarf2read.c (read_partial_die): Update.
9647 * symfile.c (set_initial_language): Call main_language.
9648 * symtab.c (language_of_main): Now static.
9649 (set_main_name): Add 'lang' parameter.
9650 (find_main_name): Update.
9651 (main_language): New function.
9652 (symtab_observer_executable_changed): Update.
9653 * symtab.h (set_main_name): Update.
9654 (language_of_main): Remove.
9655 (main_language): Declare.
9657 2014-01-15 Tom Tromey <tromey@redhat.com>
9659 * symfile.c (init_entry_point_info): Use new "initialized" field.
9661 * objfiles.h (struct entry_point) <initialized>: New field.
9662 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9663 (struct objfile) <ei>: ...here. Remove.
9664 * objfiles.c (entry_point_address_query): Update.
9666 2014-01-15 Tom Tromey <tromey@redhat.com>
9668 * objfiles.c (entry_point_address_query): Relocate entry point
9670 (objfile_relocate1): Do not relocate entry point address.
9671 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9672 <the_bfd_section_index>: New field.
9673 * symfile.c (init_entry_point_info): Find the entry point's
9676 2014-01-15 Tom Tromey <tromey@redhat.com>
9678 * solib-frv.c (enable_break): Use entry_point_address_query.
9680 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9682 * NEWS: Add note on improved process record-replay on
9683 arm*-linux* targets.
9685 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9687 * arm-tdep.c (enum arm_record_result): New enum.
9688 (arm_record_unsupported_insn): New function.
9689 (arm_record_coproc_data_proc): Removed.
9690 (thumb2_record_ld_st_multiple): New function.
9691 (thumb2_record_ld_st_dual_ex_tbb): New function.
9692 (thumb2_record_data_proc_sreg_mimm): New function.
9693 (thumb2_record_ps_dest_generic): New function.
9694 (thumb2_record_branch_misc_cntrl): New function.
9695 (thumb2_record_str_single_data): New function.
9696 (thumb2_record_ld_mem_hints): New function.
9697 (thumb2_record_ld_word): New function.
9698 (thumb2_record_lmul_lmla_div): New function.
9699 (thumb2_record_decode_insn_handler): New function.
9700 (decode_insn): Add thumb32 instruction handlers.
9702 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9704 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9705 (struct arm_linux_record_tdep): Declare.
9706 (arm_canonicalize_syscall): New function.
9707 (arm_all_but_pc_registers_record): New function.
9708 (arm_linux_syscall_record): New function.
9709 (arm_linux_init_abi): Add syscall recording constructs.
9710 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9711 decoding. (arm_record_coproc_data_proc): Update arm syscall
9713 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9714 <arm_syscall_record>: New field.
9715 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9718 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9720 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9721 register for push instruction recording.
9723 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9725 * arm-tdep.c (thumb_record_misc): Update to correct logical
9726 error while recording ldm, ldmia and pop instructions.
9728 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9730 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9732 2014-01-15 Pedro Alves <palves@redhat.com>
9734 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9735 (go32_resume, go32_fetch_registers, store_register)
9736 (go32_store_registers, go32_prepare_to_store)
9737 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9738 (go32_create_inferior, go32_can_run, go32_terminal_init)
9739 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9742 2014-01-15 Tom Tromey <tromey@redhat.com>
9744 * target.h (async_callback_ftype): New typedef.
9745 (struct target_ops) <to_async>: Use it.
9747 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9749 * python/py-value.c (get_field_type): Remove unnecessary curly
9750 braces for single-statement if block.
9752 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9754 * python/py-type.c (convert_field): Add missing empty line
9757 2014-01-14 Doug Evans <dje@google.com>
9759 * symfile.h (expand_symtabs_matching): Renamed from
9760 expand_partial_symbol_names. Update prototype.
9761 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9762 * symfile.c (expand_symtabs_matching): Renamed from
9763 expand_partial_symbol_names. New args file_matcher, kind.
9764 Rename arg fun to symbol_matcher.
9765 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9766 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9767 ada_expand_partial_symbol_name.
9768 (ada_make_symbol_completion_list): Update to call
9769 expand_symtabs_matching.
9770 (ada_add_global_exceptions): Call expand_symtabs_matching.
9771 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9772 call map_symbol_filenames.
9773 * symtab.c (sources_info): Update to call map_symbol_filenames.
9774 (search_symbols): Call expand_symtabs_matching.
9775 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9776 (default_make_symbol_completion_list_break_on): Update to call
9777 expand_symtabs_matching.
9778 (make_source_files_completion_list): Update to call
9779 map_symbol_filenames.
9781 2014-01-14 Doug Evans <dje@google.com>
9783 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9784 (expand_symtabs_symbol_matcher_ftype): New typedef.
9785 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9786 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9787 * symfile.c (expand_partial_symbol_names): Update to use
9788 expand_symtabs_symbol_matcher_ftype.
9789 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9790 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9791 Arg name_matcher renamed to symbol_matcher.
9792 * psymtab.c (recursively_search_psymtabs): Update to use
9793 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9795 (expand_symtabs_matching_via_partial): Update to use
9796 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9797 Arg name_matcher renamed to symbol_matcher.
9799 2014-01-14 Doug Evans <dje@google.com>
9801 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9802 (map_partial_symbol_filenames): Ditto.
9803 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9804 (map_partial_symbol_filenames): Ditto.
9805 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9806 (map_partial_symbol_filenames): Ditto.
9807 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9808 (map_partial_symbol_filenames): Ditto.
9809 * symtab.c: Delete #include "psymtab.h".
9811 2014-01-14 Pedro Alves <palves@redhat.com>
9812 Tom Tromey <tromey@redhat.com>
9814 * infrun.c (use_displaced_stepping): Use find_record_target
9815 instead of RECORD_IS_USED.
9816 (adjust_pc_after_break): Use record_full_is_used instead of
9818 * record-btrace.c (record_btrace_open): Call record_preopen
9819 instead of checking RECORD_IS_USED.
9820 * record-full.c (record_full_shortname)
9821 (record_full_core_shortname): New globals.
9822 (record_full_is_used): New function.
9823 (find_full_open): Call record_preopen instead of checking
9825 (init_record_full_ops): Set the target's shortname to
9826 record_full_shortname.
9827 (init_record_full_core_ops): Set the target's shortname to
9828 record_full_core_shortname.
9829 * record-full.h (record_full_is_used): Declare.
9830 * record.c (find_record_target): Make extern.
9831 (record_preopen): New function.
9832 * record.h (RECORD_IS_USED): Delete macro.
9833 (find_record_target, record_preopen): Declare functions.
9835 2014-01-14 Yao Qi <yao@codesourcery.com>
9837 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9838 'len''s type to ULONGEST.
9839 (core_xfer_shared_libraries_aix): Likewise.
9840 * gdbarch.c, gdbarch.h: Regenerated.
9841 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9842 Change type of 'len' to ULONGEST.
9843 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9844 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9846 2014-01-14 Yao Qi <yao@codesourcery.com>
9848 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9849 type of 'len' to ULONGEST.
9850 (linux_xfer_osdata_processgroups): Likewise.
9851 (linux_xfer_osdata_threads): Likewise.
9852 (linux_xfer_osdata_fds): Likewise.
9853 (linux_xfer_osdata_isockets): Likewise.
9854 (linux_xfer_osdata_shm): Likewise.
9855 (linux_xfer_osdata_sem): Likewise.
9856 (linux_xfer_osdata_msg): Likewise.
9857 (linux_common_xfer_osdata): Likewise.
9858 (struct osdata_type) <getter>: Likewise.
9859 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9862 2014-01-14 Yao Qi <yao@codesourcery.com>
9864 * target.h (target_xfer_partial_ftype): Update.
9865 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9867 * aix-thread.c (aix_thread_xfer_partial): Change type of
9868 argument 'len' to ULONGEST.
9869 * auxv.c (procfs_xfer_auxv): Likewise.
9870 (ld_so_xfer_auxv): Likewise.
9871 (memory_xfer_auxv): Likewise.
9872 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9873 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9874 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9875 * corelow.c (core_xfer_partial): Likewise.
9876 * ctf.c (ctf_xfer_partial): Likewise.
9877 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9879 (darwin_read_dyld_info): Likewise.
9880 (darwin_xfer_partial): Likewise.
9881 * exec.c (section_table_xfer_memory_partial): Likewise.
9882 (exec_xfer_partial): Likewise.
9883 * exec.h (section_table_xfer_memory_partial): Update
9885 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9886 instead of plongest.
9887 (gnu_xfer_partial): Likewise.
9888 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9889 (ia64_hpux_xfer_solib_got): Likewise.
9890 (ia64_hpux_xfer_partial): Likewise.
9891 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9892 * inf-ptrace.c (inf_ptrace_xfer_partial):
9893 * inf-ttrace.c (inf_ttrace_xfer_partial):
9894 * linux-nat.c (linux_xfer_siginfo): Likewise.
9895 (linux_nat_xfer_partial): Likewise.
9896 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9897 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9898 * monitor.c (monitor_xfer_memory): Likewise.
9899 (monitor_xfer_partial): Likewise.
9900 * procfs.c (procfs_xfer_partial): Likewise.
9901 * record-full.c (record_full_xfer_partial): Likewise.
9902 (record_full_core_xfer_partial): Likewise.
9903 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9904 instead of plongest.
9905 (gdbsim_xfer_partial): Likewise.
9906 * remote.c (remote_xfer_partial): Likewise.
9907 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9908 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9910 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9911 (rs6000_xfer_shared_libraries): Likewise.
9912 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9913 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9914 (sparc_xfer_partial): Likewise.
9915 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9916 (spu_xfer_partial): Likewise.
9917 * spu-multiarch.c (spu_xfer_partial): Likewise.
9918 * target.c (target_read_live_memory): Likewise.
9919 (memory_xfer_live_readonly_partial): Likewise.
9920 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9921 (target_xfer_partial, default_xfer_partial): Likewise.
9922 (current_xfer_partial): Likewise.
9923 * tracepoint.c (tfile_xfer_partial): Likewise.
9924 * windows-nat.c (windows_xfer_memory): Likewise. Call
9925 pulongest instead of plongest.
9926 (windows_xfer_partial): Likewise.
9927 (windows_xfer_shared_libraries): Likewise.
9929 2014-01-14 Yao Qi <yao@codesourcery.com>
9931 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9932 target_xfer_partial_ftype.
9934 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9938 * valops.c (value_struct_elt_bitpos): New function
9939 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9940 object to 'None' if the field name is an empty string ("").
9941 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9942 attribute to look for a field when 'name' is 'None'.
9943 (get_field_type): New function
9945 2014-01-13 Doug Evans <dje@google.com>
9948 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9949 (try_open_dwop_file): Ditto.
9950 * gdb_bfd.c: #include "vec.h".
9951 (bfdp): New typedef.
9952 (struct gdb_bfd_data): New member included_bfds.
9953 (gdb_bfd_unref): Unref all included bfds.
9954 (gdb_bfd_record_inclusion): New function.
9955 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9957 2014-01-13 Tom Tromey <tromey@redhat.com>
9959 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9961 2014-01-13 Tom Tromey <tromey@redhat.com>
9963 * defs.h (use_windows): Remove.
9964 * gdb.c (main): Update.
9965 * main.c (captured_main, gdb_main): Update.
9966 * main.h (struct captured_main_args) <use_windows>: Remove.
9967 * top.c (use_windows): Remove.
9969 2014-01-13 Tom Tromey <tromey@redhat.com>
9971 * defs.h (deprecated_flush_hook): Remove.
9973 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9976 * linux-thread-db.c (try_thread_db_load): Add parameter
9977 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9978 (try_thread_db_load_from_pdir_1): Move it there from here.
9979 (try_thread_db_load_from_sdir): Update caller.
9980 (try_thread_db_load_from_dir): Move it there from here.
9982 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9984 * regformats/regdat.sh: Always rewrite the register file.
9986 2014-01-13 Pedro Alves <palves@redhat.com>
9988 * Makefile.in (CHECK_HEADERS): New variable.
9989 (check-headers:): New rule.
9991 2014-01-13 Tom Tromey <tromey@redhat.com>
9993 * cli/cli-setshow.c (do_set_command): Update.
9994 * defs.h (deprecated_set_hook): Remove.
9995 * top.c (deprecated_set_hook): Remove.
9997 2014-01-13 Pedro Alves <palves@redhat.com>
9999 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10000 the tracepoint if the PC is a pseudo-register.
10002 2014-01-13 Tom Tromey <tromey@redhat.com>
10004 * defs.h (XCALLOC): Remove.
10005 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10006 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10007 * dwarf2loc.c (allocate_piece_closure): Likewise.
10008 * elfread.c (elf_symfile_segments): Likewise.
10009 (elf_symfile_segments): Likewise.
10010 * gdbtypes.c (copy_type_recursive): Likewise.
10011 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10012 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10013 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10015 * mt-tdep.c (mt_gdbarch_init): Likewise.
10016 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10018 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10019 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10020 * registry.c (registry_alloc_data): Likewise.
10021 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10022 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10023 * serial.c (serial_fdopen_ops): Likewise.
10024 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10026 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10027 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10030 2014-01-13 Tom Tromey <tromey@redhat.com>
10032 * defs.h (XMALLOC): Remove.
10033 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10034 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10035 * cli-out.c (struct ui_out *): Likewise.
10036 * cli/cli-dump.c (add_dump_command): Likewise.
10037 (add_dump_command): Likewise.
10038 * complaints.c (get_complaints): Likewise.
10039 (find_complaint): Likewise.
10040 * dwarf2-frame.c (execute_cfa_program): Likewise.
10041 * dwarf2read.c (abbrev_table_read_table): Likewise.
10042 * gdbarch.sh: Likewise.
10043 * gdbarch.c: Rebuild.
10044 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10045 * interps.c (interp_new): Likewise.
10046 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10047 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10048 * mi/mi-console.c (mi_console_file_new): Likewise.
10049 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10050 * mi/mi-out.c (mi_out_new): Likewise.
10051 * mi/mi-parse.c (mi_parse): Likewise.
10052 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10053 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10054 * observer.c (xalloc_observer_list_node): Likewise.
10055 * regcache.c (regcache_xmalloc_1): Likewise.
10056 * reggroups.c (reggroup_new): Likewise.
10057 (_initialize_reggroup): Likewise.
10058 * registry.c (register_data_with_cleanup): Likewise.
10059 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10060 * ser-base.c (serial_ttystate): Likewise.
10061 * ser-mingw.c (make_pipe_state): Likewise.
10062 * ser-pipe.c (pipe_open): Likewise.
10063 * serial.c (serial_open): Likewise.
10064 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10065 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10066 (tui_alloc_win_info): Likewise.
10067 (tui_add_content_elements): Likewise.
10068 * tui/tui-file.c (tui_file_new): Likewise.
10069 * tui/tui-out.c (tui_out_new): Likewise.
10070 * ui-file.c (mem_file_new): Likewise.
10071 * ui-out.c (push_level): Likewise.
10072 (make_cleanup_ui_out_end): Likewise.
10073 (append_header_to_list): Likewise.
10074 (ui_out_new): Likewise.
10075 * user-regs.c (user_reg_add_builtin): Likewise.
10077 2014-01-13 Tom Tromey <tromey@redhat.com>
10079 * defs.h (XZALLOC): Remove.
10080 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10081 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10082 (get_ada_tasks_inferior_data): Likewise.
10083 * auto-load.c (get_auto_load_pspace_data): Likewise.
10084 * auxv.c (get_auxv_inferior_data): Likewise.
10085 * bfd-target.c (target_bfd_reopen): Likewise.
10086 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10087 (deprecated_insert_raw_breakpoint): Likewise.
10088 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10089 * corelow.c (core_open): Likewise.
10090 * darwin-nat.c (darwin_check_new_threads): Likewise.
10091 (darwin_attach_pid): Likewise.
10092 * dummy-frame.c (dummy_frame_push): Likewise.
10093 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10094 * dwarf2loc.c (allocate_piece_closure): Likewise.
10095 * elfread.c (elf_symfile_segments): Likewise.
10096 * eval.c (ptrmath_type_p): Likewise.
10097 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10098 * gdbtypes.c (alloc_type_arch): Likewise.
10099 (alloc_type_instance): Likewise.
10100 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10101 * inf-child.c (inf_child_can_use_agent): Likewise.
10102 * inflow.c (get_inflow_inferior_data): Likewise.
10103 * infrun.c (save_infcall_suspend_state): Likewise.
10104 * jit.c (jit_reader_load): Likewise.
10105 (get_jit_objfile_data): Likewise.
10106 (get_jit_program_space_data): Likewise.
10107 (jit_object_open_impl): Likewise.
10108 (jit_symtab_open_impl): Likewise.
10109 (jit_block_open_impl): Likewise.
10110 (jit_frame_sniffer): Likewise.
10111 * linux-fork.c (add_fork): Likewise.
10112 * maint.c (make_command_stats_cleanup): Likewise.
10113 * objfiles.c (get_objfile_pspace_data): Likewise.
10114 * opencl-lang.c (struct lval_closure): Likewise.
10115 * osdata.c (osdata_start_osdata): Likewise.
10116 * progspace.c (new_address_space): Likewise.
10117 (add_program_space): Likewise.
10118 * remote-sim.c (get_sim_inferior_data): Likewise.
10119 * sh-tdep.c (sh_gdbarch_init): Likewise.
10120 * skip.c (Ignore): Likewise.
10121 (skip_delete_command): Likewise.
10122 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10123 (library_list_start_library): Likewise.
10124 (solib_aix_current_sos): Likewise.
10125 * solib-darwin.c (get_darwin_info): Likewise.
10126 (darwin_current_sos): Likewise.
10127 * solib-dsbt.c (get_dsbt_info): Likewise.
10128 * solib-ia64-hpux.c (new_so_list): Likewise.
10129 (ia64_hpux_get_solib_linkage_addr): Likewise.
10130 * solib-spu.c (append_ocl_sos): Likewise.
10131 (spu_current_sos): Likewise.
10132 * solib-svr4.c (get_svr4_info): Likewise.
10133 (svr4_keep_data_in_core): Likewise.
10134 (library_list_start_library): Likewise.
10135 (svr4_default_sos): Likewise.
10136 (svr4_read_so_list): Likewise.
10137 * solib-target.c (library_list_start_library): Likewise.
10138 (solib_target_current_sos): Likewise.
10139 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10140 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10141 * symfile.c (default_symfile_segments): Likewise.
10142 * target-descriptions.c (tdesc_data_init): Likewise.
10143 (tdesc_create_reg): Likewise.
10144 (struct tdesc_type *): Likewise.
10145 (tdesc_create_vector): Likewise.
10146 (tdesc_set_struct_size): Likewise.
10147 (struct tdesc_type *): Likewise.
10148 (tdesc_free_feature): Likewise.
10149 (tdesc_create_feature): Likewise.
10150 * windows-nat.c (windows_add_thread): Likewise.
10151 (windows_make_so): Likewise.
10152 * xml-support.c (gdb_xml_body_text): Likewise.
10153 (gdb_xml_create_parser_and_cleanup): Likewise.
10154 (xml_process_xincludes): Likewise.
10155 * xml-syscall.c (allocate_syscalls_info): Likewise.
10156 (syscall_create_syscall_desc): Likewise.
10158 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10160 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10161 function, with code from i386_stap_parse_special_token.
10162 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10163 (i386_stap_parse_special_token): Move code to the two functions
10164 above; simplify it.
10166 2014-01-09 Pedro Alves <palves@redhat.com>
10167 Hui Zhu <hui@codesourcery.com>
10170 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10171 bp_err_string. Don't mark the location shlib_disabled if the
10172 error thrown wasn't a generic or memory error. Catch errors
10173 thrown while inserting breakpoints in overlayed code. Output
10174 error message of software breakpoints.
10175 * remote.c (remote_insert_breakpoint): If this breakpoint has
10176 target-side commands but this stub doesn't support Z0 packets,
10177 throw NOT_SUPPORTED_ERROR error.
10178 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10179 * target.h (target_insert_breakpoint): Extend comment.
10180 (target_insert_hw_breakpoint): Add comment.
10182 2014-01-08 Pedro Alves <palves@redhat.com>
10184 * remote.c (remote_add_thread): Add threads silently if starting
10186 (remote_notice_new_inferior): If in all-stop, and starting up,
10187 don't call notice_new_inferior.
10188 (get_current_thread): New function, factored out from ...
10189 (add_current_inferior_and_thread): ... this. Adjust.
10190 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10191 found any thread, then select the remote's current thread as GDB's
10192 current thread too.
10194 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10196 * NEWS: Create a new section for the next release branch.
10197 Rename the section of the current branch, now that it has
10200 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10202 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10203 * version.in: Bump version to 7.7.50.DATE-cvs.
10205 2014-01-08 Yao Qi <yao@codesourcery.com>
10207 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10208 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10209 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10211 2014-01-08 Yao Qi <yao@codesourcery.com>
10213 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10214 return value of bfd_get_filename to symbol_file_add_from_bfd.
10216 2014-01-08 Pierre Muller <muller@sourceware.org>
10219 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10220 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10221 to prim_record_mininal_symbol_and_info.
10222 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10223 in call to prim_record_minimal_symbol_and_info.
10224 (read_pe_exported_syms): Set index field of section_data.
10226 2014-01-07 Andrew Pinski <apinski@cavium.com>
10228 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10229 * features/aarch64.c: Regenerate.
10231 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10233 * target.c (return_null): Define.
10234 (update_current_target): Use it instead of return_zero for
10235 functions that return a pointer.
10237 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10239 * source.c (add_path): Fix check for duplicated paths in the previously
10242 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10244 * ada-lang.c: Remove duplicated include statements.
10245 * alphabsd-nat.c: Ditto.
10246 * amd64-darwin-tdep.c: Ditto.
10247 * amd64fbsd-nat.c: Ditto.
10248 * auto-load.c: Ditto.
10250 * breakpoint.c: Ditto.
10251 * dbxread.c: Ditto.
10252 * fork-child.c: Ditto.
10253 * gdb_usleep.c: Ditto.
10254 * i386-darwin-tdep.c: Ditto.
10255 * i386fbsd-nat.c: Ditto.
10257 * inferior.c: Ditto.
10258 * jv-lang.c: Ditto.
10259 * linux-nat.c: Ditto.
10260 * linux-tdep.c: Ditto.
10261 * m68kbsd-nat.c: Ditto.
10262 * m68klinux-nat.c: Ditto.
10263 * microblaze-tdep.c: Ditto.
10264 * mips-linux-tdep.c: Ditto.
10265 * mn10300-tdep.c: Ditto.
10266 * nto-tdep.c: Ditto.
10267 * opencl-lang.c: Ditto.
10269 * printcmd.c: Ditto.
10270 * regcache.c: Ditto.
10271 * remote-m32r-sdi.c: Ditto.
10273 * symfile.c: Ditto.
10275 * tilegx-linux-nat.c: Ditto.
10276 * tilegx-tdep.c: Ditto.
10277 * tracepoint.c: Ditto.
10279 * vaxbsd-nat.c: Ditto.
10280 * windows-nat.c: Ditto.
10281 * xtensa-tdep.c: Ditto.
10283 2014-01-07 Yao Qi <yao@codesourcery.com>
10285 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10287 2014-01-07 Yao Qi <yao@codesourcery.com>
10288 Joel Brobecker <brobecker@adacore.com>
10290 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10291 (pdc_write_regs): Likewise.
10292 (fetch_regs_kernel_thread): Likewise.
10293 (store_regs_kernel_thread): Likewise.
10295 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10297 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10298 tagged type objects to their actual type.
10300 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10302 * ada-valprint.c (print_field_values): Add "language" parameter.
10303 Update calls to print_field_values and print_variant_part.
10304 Pass new parameter "language" in call to val_print instead
10305 of "current_language". Replace call to ada_val_print by call
10307 (print_variant_part): Add "language" parameter.
10308 (ada_val_print_struct_union): Update call to print_field_values.
10310 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10312 * ada-valprint.c (ui_memcpy): Delete.
10313 (ada_print_floating): Update documentation. Add empty line
10314 between between function documentation and implementation.
10315 Delete variable "buffer". Use ui_file_xstrdup in place of
10316 ui_file_put. Minor adjustments following this change.
10318 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10320 * ada-valprint.c (ada_val_print_string): New function,
10321 extracted from ada_val_print_array.
10322 (ada_val_print_array): Replace extracted code by call
10323 to ada_val_print_string followed by a return. Move
10324 "else" branch to the function's top block.
10326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10328 * ada-valprint.c (ada_val_print_array): Move implementation
10329 down. Rename parameter "offset" and "val" into "offset_aligned"
10330 and "original_value" respectively. Add parameter "offset".
10332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10334 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10335 re-organizing the code. Change the "???" message printed
10336 when target type is a TYPE_CODE_UNDEF into
10337 "<ref to undefined type>".
10339 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10341 * ada-valprint.c (print_record): Delete, implementation inlined...
10342 (ada_val_print_struct_union): ... here. Remove call to
10343 ada_check_typedef in inlined implementation.
10345 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10347 * ada-valprint.c (ada_val_print_gnat_array): New function,
10348 extracted from ada_val_print_1;
10349 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10350 (ada_val_print_flt, ada_val_print_struct_union)
10351 (ada_val_print_ref): Likewise.
10352 (ada_val_print_1): Delete variables i and elttype.
10353 Replace extracted-out code by call to corresponding
10356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10358 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10362 * ada-valprint.c (ada_val_print_1): Replace calls to
10363 ada_val_print_1 by calls to val_print.
10365 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10367 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10368 Update calls to self accordingly. Replace calls to c_val_print
10369 by calls to val_print.
10371 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10373 * ada-valprint.c (print_record): Delete declaration.
10374 (adjust_type_signedness, ada_val_print_1): Likewise.
10375 (ada_val_print): Move function implementation down.
10376 (print_variant_part, print_field_values, print_record):
10377 Move function implementation up.
10379 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10381 * python/py-type.c (typy_get_name): New function.
10382 (type_object_getset): Add entry for attribute "name".
10383 * NEWS: Add entry mentioning this new attribute.
10385 2014-01-07 Yao Qi <yao@codesourcery.com>
10387 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10390 2014-01-07 Yao Qi <yao@codesourcery.com>
10392 * gnu-nat.c (info_port_rights): Add qualifier const to
10395 2014-01-07 Yao Qi <yao@codesourcery.com>
10397 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10399 2014-01-07 Yao Qi <yao@codesourcery.com>
10401 * gnu-nat.c (make_inf) Update declaration.
10402 (make_inf): Make it static.
10403 (inf_set_traced): Likewise.
10404 (inf_port_to_thread, inf_task_died_status): Likewise.
10406 2014-01-07 Yao Qi <yao@codesourcery.com>
10408 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10410 2014-01-07 Yao Qi <yao@codesourcery.com>
10412 * gnu-nat.c (_initialize_gnu_nat): Declare.
10414 2014-01-07 Yao Qi <yao@codesourcery.com>
10416 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10418 (struct gdbarch_info) <byte_order>: Change type to
10420 <byte_order_for_code>: Likewise.
10421 * gdbarch.c, gdbarch.h: Regenerated.
10423 2014-01-06 Sasha Smundak <asmundak@google.com>
10425 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10427 2014-01-06 Tom Tromey <tromey@redhat.com>
10429 * doublest.c (convert_doublest_to_floatformat): Use const, not
10431 * somread.c (som_symtab_read): Likewise.
10433 2014-01-07 Hui Zhu <hui@codesourcery.com>
10435 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10436 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10437 (gdb_bfd_fopen): Ditto.
10438 (gdb_bfd_openr): Ditto.
10439 (gdb_bfd_openw): Ditto.
10440 (gdb_bfd_openr_iovec): Ditto.
10441 (gdb_bfd_fdopenr): Ditto.
10442 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10443 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10445 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10447 * symfile-mem.c (symbol_file_add_from_memory): Removed
10448 gdb_bfd_stash_filename.
10450 2014-01-03 Doug Evans <dje@google.com>
10452 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10455 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10457 Update year range in copyright notice of all files.
10459 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10461 * top.c (print_gdb_version): Set copyright year to 2014.
10463 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10465 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10467 For older changes see ChangeLog-2013.
10473 version-control: never