1 2014-07-20 Yao Qi <yao@codesourcery.com>
3 * std-operator.def: Update comments to TERNOP_SLICE.
5 2014-07-20 Yao Qi <yao@codesourcery.com>
7 * std-operator.def: Remove BINOP_RANGE.
8 * breakpoint.c (watchpoint_exp_is_const): Update.
9 * expprint.c (dump_subexp_body_standard): Likewise.
10 * eval.c (init_array_element): Remove dead code.
11 (evaluate_subexp_standard): Likewise.
13 2014-07-20 Yao Qi <yao@codesourcery.com>
15 * std-operator.def: Remove BINOP_IN.
16 * breakpoint.c (watchpoint_exp_is_const): Update.
17 * eval.c (evaluate_subexp_standard): Likewise.
18 * expprint.c (dump_subexp_body_standard): Likewise.
20 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
22 * microblaze-tdep.c (microblaze_register_names): Add
23 the rshr and rslr register names.
24 (microblaze_gdbarch_init): Use of tdesc_has_registers.
25 Use of tdesc_find_feature. Use of tdesc_data_alloc.
26 Use of tdesc_numbered_register. Use of
27 microblaze_register_g_packet_guesses. Use of
28 tdesc_use_registers. Use of set_gdbarch_register_type.
29 (microblaze_register_g_packet_guesses): New.
30 * microblaze-tdep.h (microblaze_reg_num): Add
31 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
32 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
33 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
34 * features/microblaze-core.xml: New file.
35 * features/microblaze-stack-protect.xml: New file.
36 * features/microblaze-with-stack-protect.c: New file.
37 * features/microblaze-with-stack-protect.xml: New file.
38 * features/microblaze.xml: New file.
39 * features/microblaze.c: New file.
40 * features/Makefile (microblaze-with-stack-protect): Add
41 microblaze-with-stack-protect microblaze and microblaze-expedite.
42 * regformats/microblaze-with-stack-protect.dat: New file.
43 * regformats/microblaze.dat: New file.
44 * doc/gdb.texinfo (MicroBlaze Features): Added.
46 2014-07-18 Tom Tromey <tromey@redhat.com>
48 * exec.c (exec_ops): Now static.
49 * exec.h (exec_ops): Don't declare.
51 2014-07-18 Tom Tromey <tromey@redhat.com>
53 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
54 to find_target_beneath.
55 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
57 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
59 2014-07-18 Tom Tromey <tromey@redhat.com>
62 * utils.c (quit): Use target_supports_terminal_ours.
63 * target.h (target_supports_terminal_ours): Declare.
64 * target.c (target_supports_delete_record): Don't check
65 to_delete_record against NULL.
66 (target_supports_terminal_ours): New function.
68 2014-07-18 Tom Tromey <tromey@redhat.com>
71 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
72 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
73 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
74 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
75 * windows-nat.c (windows_xfer_partial): Always delegate.
76 * record-btrace.c (record_btrace_xfer_partial): Simplify
78 (record_btrace_fetch_registers, record_btrace_store_registers)
79 (record_btrace_prepare_to_store, record_btrace_resume)
80 (record_btrace_wait, record_btrace_find_new_threads)
81 (record_btrace_thread_alive): Likewise.
82 * procfs.c (procfs_xfer_partial): Always delegate.
83 * corelow.c (core_xfer_partial): Always delegate.
84 * sol-thread.c (sol_find_new_threads): Simplify delegation.
86 2014-07-18 Tom Tromey <tromey@redhat.com>
88 * exec.c (exec_make_note_section): Move earlier.
90 2014-07-17 Doug Evans <dje@google.com>
93 * maint.c (count_symtabs_and_blocks): Handle NULL
94 current_program_space.
95 (report_command_stats): Check global enabled flag in addition to
96 recorded enabled flag.
97 (make_command_stats_cleanup): Handle msg_type == 0, startup.
99 2014-07-16 Pedro Alves <palves@redhat.com>
101 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
103 2014-07-16 Tom Tromey <tromey@redhat.com>
105 * target.h (struct target_ops) <to_delete_record>: Reformat
108 2014-07-16 Tom Tromey <tromey@redhat.com>
110 * target-delegates.c: Rebuild.
112 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
114 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
115 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
116 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
117 (avr_pointer_to_address): Likewise.
118 (avr_address_class_type_flags): New function.
119 (avr_address_class_type_flags_to_name): Likewise.
120 (avr_address_class_name_to_type_flags): Likewise.
121 (avr_gdbarch_init): Set address_class_type_flags,
122 address_class_type_flags_to_name and
123 address_class_name_to_type_flags.
125 2014-07-15 Pedro Alves <palves@redhat.com>
127 * linux-nat.c (kill_callback): Save errno and work with saved
130 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
132 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
134 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
136 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
137 breakpoint support correctly.
139 2014-07-14 Pedro Alves <palves@redhat.com>
141 * utils.c (prompt_for_continue): Call target_terminal_ours.
143 2014-07-14 Pedro Alves <palves@redhat.com>
145 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
146 catch_errors. Don't re-enable stdin or notify observers where,
148 (fetch_inferior_event_wrapper): Delete.
150 2014-07-14 Pedro Alves <palves@redhat.com>
153 * top.c: Include "inf-loop.h".
154 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
156 (gdb_readline_wrapper_cleanup): Make the target async again, if it
158 (gdb_readline_wrapper): Store whether the target is async, and
161 2014-07-14 Pedro Alves <palves@redhat.com>
164 * top.c (gdb_readline_wrapper_line): Tweak comment.
165 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
166 the input handler callback.
168 2014-07-14 Pedro Alves <palves@redhat.com>
171 * main.c: Include event-top.h.
172 (handle_command_errors): New function.
173 (catch_command_errors, catch_command_errors_const): Use it.
175 2014-07-14 Pedro Alves <palves@redhat.com>
177 * exceptions.c (catch_command_errors, catch_command_errors_const):
179 * exceptions.h (catch_command_errors_ftype)
180 (catch_command_errors_const_ftype): Moved to main.c.
181 (catch_command_errors, catch_command_errors_const): Delete
183 * main.c (catch_command_errors_ftype)
184 (catch_command_errors_const_ftype): Moved here from exceptions.h.
185 (catch_command_errors, catch_command_errors_const)): Moved here
186 from exceptions.c and make static.
188 2014-07-14 Pedro Alves <palves@redhat.com>
190 * exceptions.c (print_any_exception): Delete.
191 (catch_exceptions_with_msg): Use exception_print instead of
193 (catch_errors): Use exception_fprintf instead of
195 (catch_command_errors, catch_command_errors_const): Use
196 exception_print instead of print_any_exception.
198 2014-07-14 Pedro Alves <palves@redhat.com>
200 * infcall.c (run_inferior_call): Set 'sync_execution' while
201 running the inferior call.
203 2014-07-14 Pedro Alves <palves@redhat.com>
205 * value.c (value_contents_equal): Delete function.
206 * value.h (value_contents_equal): Delete declaration.
208 2014-07-14 Tom Tromey <tromey@redhat.com>
211 * gdbtypes.c (is_dynamic_type_internal): New function, from
213 (is_dynamic_type): Rewrite.
214 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
215 (resolve_dynamic_struct): Likewise.
216 (resolve_dynamic_type_internal): New function, from
217 resolve_dynamic_type.
218 (resolve_dynamic_type): Rewrite.
220 2014-07-14 Tom Tromey <tromey@redhat.com>
222 * target.c (target_require_runnable): Also check record_stratum.
225 2014-07-11 Yao Qi <yao@codesourcery.com>
227 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
228 thumb_instruction_restores_sp return true.
230 2014-07-11 Yao Qi <yao@codesourcery.com>
232 * arm-tdep.c (thumb_instruction_restores_sp): New function.
233 (thumb_in_function_epilogue_p): Call
234 thumb_instruction_restores_sp.
236 2014-07-11 Yao Qi <yao@codesourcery.com>
238 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
240 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
242 2014-07-11 Gary Benson <gbenson@redhat.com>
244 * amd64-linux-nat.c (gdbcore.h): Remove include.
245 (regset.h): Likewise.
246 (nat/linux-btrace.h): Likewise.
247 (btrace.h): Likewise.
248 (gdb_assert.h): Likewise.
249 (string.h): Likewise.
250 (sys/uio.h): Likewise.
251 (sys/debugreg.h): Likewise.
252 (sys/syscall.h): Likewise.
253 (sys/procfs.h): Likewise.
254 (sys/user.h): Likewise.
255 (asm/ptrace.h): Likewise.
256 (i386-nat.h): Likewise.
257 * i386-linux-nat.c (i386-nat.h): Likewise.
258 (regset.h): Likewise.
259 (target.h): Likewise.
260 (linux-nat.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/user.h): Likewise.
267 (sys/procfs.h): Likewise.
268 (sys/reg.h): Likewise.
269 (sys/debugreg.h): Likewise.
270 (ORIG_EAX): Remove definition.
272 2014-07-11 Gary Benson <gbenson@redhat.com>
274 * i386-linux-nat.h: New file.
275 * x86-linux-nat.h: Likewise.
276 * x86-linux-nat.c: Likewise.
277 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
278 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
279 * config/i386/linux64.mh (NATDEPFILES): Likewise.
280 * amd64-linux-nat.c (x86-linux-nat.h): New include.
281 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
282 (PTRACE_SETREGSET): Likewise.
283 (arch_lwp_info): Now in x86-linux-nat.c.
284 (have_ptrace_getregset): Now in x86-linux-nat.h.
285 (x86_linux_dr_get): Now in x86-linux-nat.c.
286 (x86_linux_dr_set): Likewise.
287 (x86_linux_dr_get_addr): Likewise.
288 (x86_linux_dr_get_control): Likewise.
289 (x86_linux_dr_get_status): Likewise.
290 (update_debug_registers_callback): Likewise.
291 (x86_linux_dr_set_control): Likewise.
292 (x86_linux_dr_set_addr): Likewise.
293 (x86_linux_prepare_to_resume): Likewise.
294 (x86_linux_new_thread): Likewise.
295 (x86_linux_new_fork): Likewise.
296 (x86_linux_get_thread_area): Likewise.
297 (super_post_startup_inferior): Likewise.
298 (x86_linux_child_post_startup_inferior): Likewise.
299 (AMD64_LINUX_USER64_CS): Likewise.
300 (AMD64_LINUX_X32_DS): Likewise.
301 (x86_linux_read_description): Likewise.
302 (x86_linux_enable_btrace): Likewise.
303 (x86_linux_disable_btrace): Likewise.
304 (x86_linux_teardown_btrace): Likewise.
305 (x86_linux_read_btrace): Likewise.
306 (x86_linux_create_target): Likewise.
307 (x86_linux_add_target): Likewise.
308 * i386-linux-nat.c (x86-linux-nat.h): New include.
309 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
310 (PTRACE_SETREGSET): Likewise.
311 (arch_lwp_info): Now in x86-linux-nat.c.
312 (have_ptrace_getregset): Now in x86-linux-nat.h.
313 (x86_linux_dr_get): Now in x86-linux-nat.c.
314 (x86_linux_dr_set): Likewise.
315 (x86_linux_dr_get_addr): Likewise.
316 (x86_linux_dr_get_control): Likewise.
317 (x86_linux_dr_get_status): Likewise.
318 (update_debug_registers_callback): Likewise.
319 (x86_linux_dr_set_control): Likewise.
320 (x86_linux_dr_set_addr): Likewise.
321 (x86_linux_prepare_to_resume): Likewise.
322 (x86_linux_new_thread): Likewise.
323 (x86_linux_new_fork): Likewise.
324 (x86_linux_get_thread_area): Likewise.
325 (super_post_startup_inferior): Likewise.
326 (x86_linux_child_post_startup_inferior): Likewise.
327 (AMD64_LINUX_USER64_CS): Likewise.
328 (AMD64_LINUX_X32_DS): Likewise.
329 (x86_linux_read_description): Likewise.
330 (x86_linux_enable_btrace): Likewise.
331 (x86_linux_disable_btrace): Likewise.
332 (x86_linux_teardown_btrace): Likewise.
333 (x86_linux_read_btrace): Likewise.
334 (x86_linux_create_target): Likewise.
335 (x86_linux_add_target): Likewise.
337 2014-07-11 Gary Benson <gbenson@redhat.com>
339 * amd64-linux-nat.c: Comment and whitespace changes.
340 * i386-linux-nat.c: Comment and whitespace changes.
342 2014-07-11 Gary Benson <gbenson@redhat.com>
344 * amd64-linux-nat.c (x86_linux_create_target): New function.
345 (x86_linux_add_target): Likewise.
346 (_initialize_amd64_linux_nat): Delegate to the above new functions.
347 * i386-linux-nat.c (x86_linux_create_target): New function.
348 (x86_linux_add_target): Likewise.
349 (_initialize_i386_linux_nat): Delegate to the above new functions.
351 2014-07-11 Gary Benson <gbenson@redhat.com>
353 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
354 (ps_get_thread_area): Delegate to the above in 32-bit mode.
355 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
356 (ps_get_thread_area): Delegate to the above.
358 2014-07-11 Gary Benson <gbenson@redhat.com>
360 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
361 x86_linux_read_description. All uses updated. amd64-specific
362 code conditionalized. Conditionalized i386-specific code added.
363 Redundant cast removed.
364 * i386-linux-nat.c (i386_linux_read_description): Renamed to
365 x86_linux_read_description. All uses updated. i386-specific
366 code conditionalized. Conditionalized amd64-specific code added.
367 One sizeof replaced with the actual type it is describing.
369 2014-07-11 Gary Benson <gbenson@redhat.com>
371 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
372 x86_linux_dr_get. All uses updated.
373 (amd64_linux_dr_set): Renamed to
374 x86_linux_dr_set. All uses updated.
375 (amd64_linux_dr_get_addr): Renamed to
376 x86_linux_dr_get_addr. All uses updated.
377 (amd64_linux_dr_get_control): Renamed to
378 x86_linux_dr_get_control. All uses updated.
379 (amd64_linux_dr_get_status): Renamed to
380 x86_linux_dr_get_status. All uses updated.
381 (amd64_linux_dr_set_control): Renamed to
382 x86_linux_dr_set_control. All uses updated.
383 (amd64_linux_dr_set_addr): Renamed to
384 x86_linux_dr_set_addr. All uses updated.
385 (amd64_linux_prepare_to_resume): Renamed to
386 x86_linux_prepare_to_resume. All uses updated.
387 (amd64_linux_new_thread): Renamed to
388 x86_linux_new_thread. All uses updated.
389 (amd64_linux_new_fork): Renamed to
390 x86_linux_new_fork. All uses updated.
391 (amd64_linux_child_post_startup_inferior): Renamed to
392 x86_linux_child_post_startup_inferior. All uses updated.
393 (amd64_linux_enable_btrace): Renamed to
394 x86_linux_enable_btrace. All uses updated.
395 (amd64_linux_disable_btrace): Renamed to
396 x86_linux_disable_btrace. All uses updated.
397 (amd64_linux_teardown_btrace): Renamed to
398 x86_linux_teardown_btrace. All uses updated.
399 (amd64_linux_read_btrace): Renamed to
400 x86_linux_read_btrace. All uses updated.
401 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
402 x86_linux_dr_get. All uses updated.
403 (i386_linux_dr_set): Renamed to
404 x86_linux_dr_set. All uses updated.
405 (i386_linux_dr_get_addr): Renamed to
406 x86_linux_dr_get_addr. All uses updated.
407 (i386_linux_dr_get_control): Renamed to
408 x86_linux_dr_get_control. All uses updated.
409 (i386_linux_dr_get_status): Renamed to
410 x86_linux_dr_get_status. All uses updated.
411 (i386_linux_dr_set_control): Renamed to
412 x86_linux_dr_set_control. All uses updated.
413 (i386_linux_dr_set_addr): Renamed to
414 x86_linux_dr_set_addr. All uses updated.
415 (i386_linux_prepare_to_resume): Renamed to
416 x86_linux_prepare_to_resume. All uses updated.
417 (i386_linux_new_thread): Renamed to
418 x86_linux_new_thread. All uses updated.
419 (i386_linux_new_fork): Renamed to
420 x86_linux_new_fork. All uses updated.
421 (i386_linux_child_post_startup_inferior): Renamed to
422 x86_linux_child_post_startup_inferior. All uses updated.
423 (i386_linux_enable_btrace): Renamed to
424 x86_linux_enable_btrace. All uses updated.
425 (i386_linux_disable_btrace): Renamed to
426 x86_linux_disable_btrace. All uses updated.
427 (i386_linux_teardown_btrace): Renamed to
428 x86_linux_teardown_btrace. All uses updated.
429 (i386_linux_read_btrace): Renamed to
430 x86_linux_read_btrace. All uses updated.
432 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
434 * remote.c (extended_remote_post_attach): New function.
435 (init_extended_remote_ops): Install it as to_post_attach method.
437 2014-07-09 Pedro Alves <palves@redhat.com>
439 * infcmd.c (attach_command_post_wait): Don't call
440 target_terminal_inferior here.
441 (attach_command): Call it here instead.
443 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
445 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
447 * c-varobj.c (c_is_path_expr_parent): New function, moved core
448 from varobj.c, with additional checks.
449 (c_varobj_ops): Fill in is_path_expr_parent field.
450 (cplus_varobj_ops): Fill in is_path_expr_parent field.
451 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
453 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
455 (varobj_default_is_path_expr_parent): New function.
456 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
457 (varobj_default_is_path_expr_parent): Declare new function.
459 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
461 * infcmd.c (finish_backward): Turn internal error into normal error.
463 2014-07-07 Pedro Alves <palves@redhat.com>
466 * remote.c (async_handle_remote_sigint)
467 (async_handle_remote_sigint_twice): Call
468 gdb_call_async_signal_handler instead of
469 mark_async_signal_handler.
471 2014-07-07 Tom Tromey <tromey@redhat.com>
473 * target-delegates.c: Rebuild.
474 * target.c (target_info_record): Remove.
475 * record.c (info_record_command): Unconditionally call
477 * target.h (struct target_ops) <to_info_record>: Use
478 TARGET_DEFAULT_IGNORE.
479 (target_info_record): Remove.
481 2014-07-07 Tom Tromey <tromey@redhat.com>
483 * target.h (struct target_ops) <to_get_thread_local_address>: Use
484 TARGET_DEFAULT_NORETURN.
485 * target.c (generic_tls_error): New function.
486 (target_translate_tls_address): Don't search target stack.
487 * target-delegates.c: Rebuild.
488 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
490 * linux-thread-db.c (thread_db_get_thread_local_address):
491 Unconditionally call beneath target.
493 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
495 * cli/cli-logging.c (pop_output_files): Assign targerr to
498 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
500 * MAINTAINERS (Write After Approval): Update my email address.
502 2014-07-02 Gary Benson <gbenson@redhat.com>
504 * proc-service.c (ps_xfer_memory): Update comment.
505 (ps_pstop): Remove unused function.
506 (ps_pcontinue): Likewise.
507 (ps_lstop): Likewise.
508 (ps_lcontinue): Likewise.
509 (ps_lgetxregsize): Likewise.
510 (ps_lgetxregs): Likewise.
511 (ps_lsetxregs): Likewise.
513 (ps_ptread): Likewise.
514 (ps_ptwrite): Likewise.
516 2014-07-01 Mark Wielaard <mjw@redhat.com>
518 * dwarf2read.c (add_array_cv_type): New function.
519 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
520 (read_tag_volatile_type): Likewise.
522 2014-07-01 Tom Tromey <tromey@redhat.com>
524 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
525 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
526 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
527 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
528 * command.h (cmd_cfunc_ftype): Move earlier.
529 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
530 (add_com, add_info): Use cmd_cfunc_ftype.
532 2014-06-30 Tom Tromey <tromey@redhat.com>
534 * symtab.c (operator_chars): Make parameters and return type
536 (file_matches): Make "files" const.
537 (struct search_symbols_data) <files>: Now const.
538 (search_symbols): Make "regexp" and "files" parameters const.
540 (symtab_symbol_info): Remove cast.
541 (rbreak_command): Update.
542 * symtab.h (search_symbols): Update.
544 2014-06-27 Yao Qi <yao@codesourcery.com>
546 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
547 Change parameter type to 'struct thread_info *'. Caller
549 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
551 * dummy-frame.c (struct dummy_frame_id): New.
552 (dummy_frame_id_eq): New function.
553 (struct dummy_frame) <id>: Change its type to 'struct
555 (dummy_frame_push): Add parameter ptid and save it in
557 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
559 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
561 (lookup_dummy_frame): Change parameter type to 'struct
562 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
563 instead of frame_id_eq.
564 (dummy_frame_pop): Add parameter ptid. Callers updated.
565 Update comments. Compose dummy_frame_id and pass it to
567 (dummy_frame_discard): Add parameter ptid.
568 (dummy_frame_sniffer): Compose dummy_frame_id and call
569 dummy_frame_id_eq instead of frame_id_eq.
570 (fprint_dummy_frames): Print ptid.
571 * dummy-frame.h: Remove comments.
572 (dummy_frame_push): Add ptid in declaration.
573 (dummy_frame_pop, dummy_frame_discard): Likewise.
575 2014-06-26 Tom Tromey <tromey@redhat.com>
577 * cli/cli-cmds.c (error_no_arg): Make "why" const.
578 * command.h (error_no_arg): Update.
580 2014-06-26 Tom Tromey <tromey@redhat.com>
582 * cli/cli-setshow.c (do_set_command): Make "arg" const.
583 (do_show_command): Make "arg" const.
584 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
586 2014-06-26 Tom Tromey <tromey@redhat.com>
588 * record-full.c (record_full_get_bookmark): Make "args" const.
589 (record_full_goto_bookmark): Make "raw_bookmark" const.
590 * record.c (record_goto): New function.
591 (cmd_record_goto): Use it. Now static.
592 * record.h (record_goto): Declare.
593 (cmd_record_goto): Remove declaration.
594 * target-delegates.c: Rebuild.
595 * target.h (struct target_ops) <to_get_bookmark,
596 to_goto_bookmark>: Make parameter const.
598 2014-06-26 Tom Tromey <tromey@redhat.com>
600 * defs.h (generic_load): Update.
601 * m32r-rom.c (m32r_load_gen): Make "filename" const.
602 * monitor.c (monitor_load): Make "args" const.
603 * remote-m32r-sdi.c (m32r_load): Make "args" const.
604 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
606 (mips_load): Make "file" const.
607 * remote-sim.c (gdbsim_load): Make "args" const.
608 * remote.c (remote_load): Make "name" const.
609 * symfile.c (generic_load): Make "args" const.
610 * target-delegates.c: Rebuild.
611 * target.c (target_load): Make "arg" const.
612 (debug_to_load): Make "args" const.
613 * target.h (struct target_ops) <to_load>: Make parameter const.
614 (target_load): Update.
616 2014-06-26 Tom Tromey <tromey@redhat.com>
619 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
620 (dwarf2_physname, read_partial_die)
621 (guess_partial_die_structure_name, fixup_partial_die)
622 (guess_full_die_structure_name, anonymous_struct_prefix)
623 (dwarf2_name): Use per-BFD obstack.
625 2014-06-26 Yao Qi <yao@codesourcery.com>
627 * dummy-frame.c (dummy_frame_sniffer): Move local variables
628 dummyframe and this_id into inner block below.
630 2014-06-26 Yao Qi <yao@codesourcery.com>
632 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
633 with "signal_pass[0]" in the initialization of signal_pass.
635 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
637 * record-btrace.c (record_btrace_generating_corefile)
638 (record_btrace_prepare_to_generate_core)
639 (record_btrace_done_generating_core): New.
640 (record_btrace_xfer_partial, record_btrace_fetch_registers)
641 (record_btrace_store_registers, record_btrace_prepare_to_store):
642 Forward request when generating a core file.
643 (record_btrace_open): Set record_btrace_generating_corefile to zero.
644 (init_record_btrace_ops): Set to_prepare_to_generate_core and
645 to_done_generating_core.
647 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
649 * target.h (target_ops) <to_prepare_to_generate_core>
650 <to_done_generating_core>: New.
651 (target_prepare_to_generate_core, target_done_generating_core): New.
652 * target.c (target_prepare_to_generate_core)
653 (target_done_generating_core): New.
654 * target-delegates.c: Regenerate.
655 * gcore.c: (write_gcore_file): Rename to ...
656 (write_gcore_file_1): ...this.
657 (write_gcore_file): Call target_prepare_to_generate_core
658 and target_done_generating_core.
660 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
662 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
663 * gcore.c (write_gcore_file): Free memory returned from
665 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
666 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
668 2014-06-24 Yao Qi <yao@codesourcery.com>
670 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
671 (arm_linux_init_abi): Set skip_trampoline_code with
672 gdbarch_skip_trampoline_code instead of
673 find_solib_trampoline_target.
675 2014-06-24 Yao Qi <yao@codesourcery.com>
677 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
678 arm_skip_bx_reg returns non-zero.
680 2014-06-24 Yao Qi <yao@codesourcery.com>
682 * arm-tdep.c (arm_skip_bx_reg): New function.
683 (arm_skip_stub): Call arm_skip_bx_reg.
685 2014-06-23 Don Breazeal <donb@codesourcery.com>
687 * MAINTAINERS: Add myself as write-after-approval maintainer.
689 2014-06-23 Pedro Alves <palves@redhat.com>
691 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
692 DR_CONTROL before setting DR0..DR3.
693 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
694 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
695 bits of DR_CONTROL related to the debug register slot being
696 disabled. If all slots are vacant, clear local slowdown as well,
697 and assert DR_CONTROL is 0.
699 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
701 * python/lib/gdb/command/xmethods.py
702 (get_method_matchers_in_loci): Lookup xmethod matchers in the
703 current progspace only if the string "progspace" matches LOCUS_RE.
705 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
707 Fix --with-system-readline with readline-6.3 patch 5.
708 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
709 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
712 2014-06-20 Tom Tromey <tromey@redhat.com>
714 * dwarf2read.c (dw2_get_real_path): Use correct type in
716 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
718 2014-06-20 Gary Benson <gbenson@redhat.com>
720 * common/gdb_thread_db.h: Moved to nat. All includes updated.
721 * common/glibc_thread_db.h: Likewise.
722 * common/i386-cpuid.h: Likewise.
723 * common/i386-gcc-cpuid.h: Likewise.
724 * common/linux-btrace.h: Likewise.
725 * common/linux-osdata.h: Likewise.
726 * common/linux-procfs.h: Likewise.
727 * common/linux-ptrace.h: Likewise.
728 * common/mips-linux-watch.h: Likewise.
729 * common/linux-btrace.c: Moved to nat.
730 * common/linux-osdata.c: Likewise.
731 * common/linux-procfs.c: Likewise.
732 * common/linux-ptrace.c: Likewise.
733 * common/mips-linux-watch.c: Likewise.
734 * nat/gdb_thread_db.h: Moved from common.
735 * nat/glibc_thread_db.h: Likewise.
736 * nat/i386-cpuid.h: Likewise.
737 * nat/i386-gcc-cpuid.h: Likewise.
738 * nat/linux-btrace.c: Likewise.
739 * nat/linux-btrace.h: Likewise.
740 * nat/linux-osdata.c: Likewise.
741 * nat/linux-osdata.h: Likewise.
742 * nat/linux-procfs.c: Likewise.
743 * nat/linux-procfs.h: Likewise.
744 * nat/linux-ptrace.c: Likewise.
745 * nat/linux-ptrace.h: Likewise.
746 * nat/mips-linux-watch.c: Likewise.
747 * nat/mips-linux-watch.h: Likewise.
748 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
749 (object file files): Reordered.
750 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
751 of glibc_thread_db.h.
753 2014-06-20 Gary Benson <gbenson@redhat.com>
755 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
756 (i386_dr_low_type): Moved to nat/i386-dregs.h.
757 (i386_dr_low): Likewise.
758 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
759 (i386_dr_low_set_addr): Likewise.
760 (i386_dr_low_get_addr): Likewise.
761 (i386_dr_low_can_set_control): Likewise.
762 (i386_dr_low_set_control): Likewise.
763 (i386_dr_low_get_control): Likewise.
764 (i386_dr_low_get_status): Likewise.
765 (i386_get_debug_register_length): Likewise.
766 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
767 (i386_dr_low): Likewise.
768 * nat/i386-dregs.c (i386-low.h): Remove include.
769 (i386-nat.h): Likewise.
770 (nat/i386-dregs.h): New include.
771 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
772 (i386_dr_low_set_addr): Likewise.
773 (i386_dr_low_get_addr): Likewise.
774 (i386_dr_low_can_set_control): Likewise.
775 (i386_dr_low_set_control): Likewise.
776 (i386_dr_low_get_control): Likewise.
777 (i386_dr_low_get_status): Likewise.
778 (i386_get_debug_register_length): Likewise.
779 (debug_hw_points): Likewise.
781 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
783 * Makefile.in (SFILES): Add d-exp.y.
784 (YYFILES): Add d-exp.c.
785 (YYOBJ): Add d-exp.o.
786 (local-maintainer-clean): Delete d-exp.c.
788 * d-lang.h (d_parse): New declaration.
789 (d_error): New declaration.
790 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
791 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
792 PREC_ORDER operators.
793 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
795 2014-06-19 Yao Qi <yao@codesourcery.com>
797 * gdbthread.h (any_running): Remove the declaration.
798 * thread.c (any_running): Remove.
800 2014-06-19 Yao Qi <yao@codesourcery.com>
802 * gdbthread.h (struct thread_info) <state>: Change its type to
803 'enum thread_state'. Update comments.
805 2014-06-19 Pedro Alves <palves@redhat.com>
807 * gdbthread.h (ALL_THREADS): Delete.
808 (ALL_NON_EXITED_THREADS): New macro.
809 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
810 instead of ALL_THREADS.
811 * infrun.c (find_thread_needs_step_over)
812 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
813 instead of ALL_THREADS.
814 * record-btrace.c (record_btrace_open)
815 (record_btrace_stop_recording, record_btrace_close)
816 (record_btrace_is_replaying, record_btrace_resume)
817 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
818 * remote.c (append_pending_thread_resumptions): Likewise.
819 * thread.c (thread_apply_all_command): Likewise.
821 2014-06-19 Gary Benson <gbenson@redhat.com>
823 * i386-nat.c (i386_stopped_by_watchpoint):
824 Use i386_dr_stopped_by_watchpoint.
825 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
826 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
828 2014-06-19 Gary Benson <gbenson@redhat.com>
830 * nat/i386-dregs.c: New file.
831 * Makefile.in (i386-dregs.o): New rule.
832 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
833 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
834 * config/i386/darwin.mh (NATDEPFILES): Likewise.
835 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
836 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
837 * config/i386/go32.mh (NATDEPFILES): Likewise.
838 * config/i386/linux.mh (NATDEPFILES): Likewise.
839 * config/i386/linux64.mh (NATDEPFILES): Likewise.
840 * config/i386/mingw.mh (NATDEPFILES): Likewise.
841 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
842 * i386-nat.h (debug_hw_points): New declaration.
843 * i386-nat.c (breakpoint.h): Remove include.
844 (command.h): Likewise.
845 (target.h): Likewise.
846 (gdb_assert.h): Likewise.
847 (debug_hw_points): Made nonstatic.
848 (debug_printf): Now in i386-dregs.c.
849 (TARGET_HAS_DR_LEN_8): Likewise.
850 (DR_CONTROL_SHIFT): Likewise.
851 (DR_CONTROL_SIZE): Likewise.
852 (DR_RW_EXECUTE): Likewise.
853 (DR_RW_WRITE): Likewise.
854 (DR_RW_READ): Likewise.
855 (DR_RW_IORW): Likewise.
856 (DR_LEN_1): Likewise.
857 (DR_LEN_2): Likewise.
858 (DR_LEN_4): Likewise.
859 (DR_LEN_8): Likewise.
860 (DR_LOCAL_ENABLE_SHIFT): Likewise.
861 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
862 (DR_ENABLE_SIZE): Likewise.
863 (DR_LOCAL_SLOWDOWN): Likewise.
864 (DR_GLOBAL_SLOWDOWN): Likewise.
865 (DR_CONTROL_RESERVED): Likewise.
866 (I386_DR_CONTROL_MASK): Likewise.
867 (I386_DR_VACANT): Likewise.
868 (I386_DR_LOCAL_ENABLE): Likewise.
869 (I386_DR_GLOBAL_ENABLE): Likewise.
870 (I386_DR_DISABLE): Likewise.
871 (I386_DR_SET_RW_LEN): Likewise.
872 (I386_DR_GET_RW_LEN): Likewise.
873 (I386_DR_WATCH_HIT): Likewise.
874 (i386_wp_op_t): Likewise.
875 (i386_show_dr): Likewise.
876 (i386_length_and_rw_bits): Likewise.
877 (i386_insert_aligned_watchpoint): Likewise.
878 (i386_remove_aligned_watchpoint): Likewise.
879 (i386_handle_nonaligned_watchpoint): Likewise.
880 (i386_update_inferior_debug_regs): Likewise.
881 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
882 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
883 (i386_region_ok_for_watchpoint):
884 Use i386_dr_region_ok_for_watchpoint.
885 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
887 2014-06-19 Gary Benson <gbenson@redhat.com>
889 * i386-nat.c (i386_insert_hw_breakpoint): Use
890 i386_insert_watchpoint.
891 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
893 2014-06-19 Gary Benson <gbenson@redhat.com>
895 * i386-nat.c (i386_dr_show): Renamed to
896 i386_show_dr and made static. All uses updated.
897 (i386_dr_length_and_rw_bits): Renamed to
898 i386_length_and_rw_bits and made static.
900 (i386_dr_insert_aligned_watchpoint): Renamed to
901 i386_insert_aligned_watchpoint and made static.
903 (i386_dr_remove_aligned_watchpoint): Renamed to
904 i386_remove_aligned_watchpoint and made static.
906 (i386_dr_update_inferior_debug_regs): Renamed to
907 i386_update_inferior_debug_regs and made static.
909 * nat/i386-dregs.h (i386_dr_show): Removed.
910 (i386_dr_length_and_rw_bits): Likewise.
911 (i386_dr_insert_aligned_watchpoint): Likewise.
912 (i386_dr_remove_aligned_watchpoint): Likewise.
913 (i386_dr_update_inferior_debug_regs): Likewise.
915 2014-06-19 Gary Benson <gbenson@redhat.com>
917 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
918 * configure: Regenerate.
919 * config.in: Likewise.
920 * main.c (signal.h): New include.
921 (setup_alternate_signal_stack): New function.
922 (captured_main): Call the above.
923 * cp-support.c (signal.h): New include.
924 (catch_demangler_crashes): New flag.
925 (SIGJMP_BUF): New define.
926 (SIGSETJMP): Likewise.
927 (SIGLONGJMP): Likewise.
928 (gdb_demangle_jmp_buf): New static global.
929 (gdb_demangle_attempt_core_dump): Likewise.
930 (gdb_demangle_signal_handler): New function.
931 (gdb_demangle): If catch_demangler_crashes is set, install the
932 above signal handler before calling bfd_demangle, and restore
933 the original signal handler afterwards. Display the offending
934 symbol and call demangler_warning the first time a segmentation
936 (_initialize_cp_support): New maint set/show command.
938 2014-06-19 Gary Benson <gbenson@redhat.com>
940 * utils.h (resource_limit_kind): New enum.
941 (can_dump_core): New declaration.
942 (warn_cant_dump_core): Likewise.
943 (dump_core): Likewise.
944 * utils.c (dump_core): Made nonstatic. Added new
945 parameter "limit_kind".
946 (can_dump_core): Made nonstatic. Moved printing code to...
947 (warn_cant_dump_core): New function.
948 (can_dump_core_warn): Likewise.
949 (internal_vproblem): Replace calls to can_dump_core with
950 calls to can_dump_core_warn. Supply new argument to each.
952 2014-06-19 Gary Benson <gbenson@redhat.com>
954 * utils.h (demangler_vwarning): New declaration.
955 (demangler_warning): Likewise.
956 * utils.c (struct internal_problem)
957 <user_settable_should_quit>: New field.
958 <user_settable_should_dump_core>: Likewise
959 (internal_error_problem): Add values for above new fields.
960 (internal_warning_problem): Likewise.
961 (demangler_warning_problem): New static global.
962 (demangler_vwarning): New function.
963 (demangler_warning): Likewise.
964 (add_internal_problem_command): Selectively add commands.
965 (_initialize_utils): New internal problem command.
966 * maint.c (maintenance_demangler_warning): New function.
967 (_initialize_maint_cmds): New command.
969 2014-06-18 Tom Tromey <tromey@redhat.com>
971 * f-valprint.c (info_common_command_for_block): Update.
972 * symtab.h (struct general_symbol_info) <common_block>: Now
975 2014-06-18 Tom Tromey <tromey@redhat.com>
977 * symtab.h (struct symtab) <blockvector>: Now const.
978 * ada-lang.c (ada_add_global_exceptions): Update.
979 * buildsym.c (augment_type_symtab): Update.
980 * dwarf2read.c (dw2_lookup_symbol): Update.
981 * jit.c (finalize_symtab): Update.
982 * jv-lang.c (add_class_symtab_symbol): Update.
983 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
985 * objfiles.c (objfile_relocate1): Update.
986 * psymtab.c (lookup_symbol_aux_psymtabs)
987 (maintenance_check_psymtabs): Update.
988 * python/py-symtab.c (stpy_global_block, stpy_static_block):
990 * spu-tdep.c (spu_catch_start): Update.
991 * symmisc.c (dump_symtab_1): Update.
992 * symtab.c (lookup_global_symbol_from_objfile)
993 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
994 (basic_lookup_transparent_type_quick)
995 (basic_lookup_transparent_type, find_pc_sect_symtab)
996 (find_pc_sect_line, search_symbols): Update.
997 * block.c (find_block_in_blockvector): Make "bl" const.
998 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1000 (blockvector_contains_pc): Make "bv" const.
1001 (block_for_pc_sect): Update.
1002 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1003 (blockvector_contains_pc): Update.
1004 * breakpoint.c (resolve_sal_pc): Update.
1005 * inline-frame.c (block_starting_point_at): Update.
1007 2014-06-18 Tom Tromey <tromey@redhat.com>
1009 * completer.c (complete_line): Make "line_buffer" const.
1010 * completer.h (complete_line): Update.
1012 2014-06-18 Tom Tromey <tromey@redhat.com>
1014 * symtab.c (add_macro_name): Remove unneeded cast.
1016 2014-06-18 Tom Tromey <tromey@redhat.com>
1018 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1019 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1021 2014-06-18 Tom Tromey <tromey@redhat.com>
1023 * probe.c (info_probes_for_ops): Make "arg" const.
1024 * probe.h (info_probes_for_ops): Update.
1026 2014-06-18 Tom Tromey <tromey@redhat.com>
1028 * varobj.c (varobj_create): Update.
1029 * valops.c (value_of_this): Update.
1030 * tracepoint.c (add_local_symbols, scope_info): Update.
1031 * symtab.h (struct general_symbol_info) <block>: Now const.
1032 * symtab.c (skip_prologue_sal)
1033 (default_make_symbol_completion_list_break_on)
1034 (skip_prologue_using_sal): Update.
1035 * stack.h (iterate_over_block_locals)
1036 (iterate_over_block_local_vars): Update.
1037 * stack.c (print_frame_args): Update.
1038 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1040 (get_selected_block): Make return type const.
1041 * python/py-frame.c (frapy_block): Update.
1042 * python/py-block.c (gdbpy_block_for_pc): Update.
1043 * p-exp.y (%union) <bval>: Now const.
1044 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1045 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1046 * m2-exp.y (%union) <bval>: Now const.
1047 * linespec.c (get_current_search_block): Make return type const.
1048 (create_sals_line_offset, find_label_symbols): Update.
1049 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1051 (block_starting_point_at): Make "block" const.
1052 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1053 (check_exception_resume): Update.
1054 * guile/scm-frame.c (gdbscm_frame_block): Update.
1055 * guile/scm-block.c (gdbscm_lookup_block): Update.
1056 * frame.h (get_frame_block): Update.
1057 (get_selected_block): Make return type const.
1058 * frame.c (frame_id_inner): Update.
1059 * f-valprint.c (info_common_command_for_block)
1060 (info_common_command): Update.
1061 * dwarf2loc.c (dwarf2_find_location_expression)
1062 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1063 (locexpr_describe_location_piece): Update.
1064 * c-exp.y (%union) <bval>: Now const.
1065 * breakpoint.c (resolve_sal_pc): Update.
1066 * blockframe.c (get_frame_block):Make return type const.
1067 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1068 (block_innermost_frame): Update.
1069 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1070 (block_for_pc, block_for_pc_sect): Update.
1071 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1073 (block_for_pc_sect, block_for_pc): Make return type const.
1074 * ax-gdb.c (gen_expr): Update.
1075 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1076 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1077 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1078 (ada_read_var_value): Update.
1079 * ada-exp.y (struct name_info) <block>: Now const.
1081 (block_lookup): Constify.
1083 2014-06-18 Gary Benson <gbenson@redhat.com>
1085 * nat/i386-dregs.h: New file.
1086 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1087 * i386-nat.h (i386-dregs.h): New include.
1088 (DR_FIRSTADDR): Now in i386-dregs.h.
1089 (DR_LASTADDR): Likewise.
1090 (DR_NADDR): Likewise.
1091 (DR_STATUS): Likewise.
1092 (DR_CONTROL): Likewise.
1093 (i386_debug_reg_state): Likewise.
1094 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1096 2014-06-18 Don Breazeal <donb@codesourcery.com>
1098 * breakpoint.c (set_longjmp_breakpoint): Call
1099 momentary_breakpoint_from_master with additional argument.
1100 (set_longjmp_breakpoint_for_call_dummy): Call
1101 momentary_breakpoint_from_master with additional argument.
1102 (set_std_terminate_breakpoint): Call
1103 momentary_breakpoint_from_master with additional argument.
1104 (momentary_breakpoint_from_master): Add argument to function
1105 definition and use it to initialize structure member flag.
1106 (clone_momentary_breakpoint): Call
1107 momentary_breakpoint_from_master with additional argument.
1108 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1109 member flags set in momentary_breakpoint_from_master.
1111 2014-06-18 Gary Benson <gbenson@redhat.com>
1113 * i386-nat.c (i386_show_dr): Renamed to
1114 i386_dr_show and made nonstatic. All uses updated.
1115 (i386_length_and_rw_bits): Renamed to
1116 i386_dr_length_and_rw_bits and made nonstatic.
1118 (i386_insert_aligned_watchpoint): Renamed to
1119 i386_dr_insert_aligned_watchpoint and made nonstatic.
1121 (i386_remove_aligned_watchpoint): Renamed to
1122 i386_dr_remove_aligned_watchpoint and made nonstatic.
1124 (i386_update_inferior_debug_regs): Renamed to
1125 i386_dr_update_inferior_debug_regs and made nonstatic.
1128 2014-06-18 Gary Benson <gbenson@redhat.com>
1130 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1131 (i386_dr_low_can_set_control): Likewise.
1132 (i386_dr_low_set_addr): Likewise.
1133 (i386_dr_low_set_control): Likewise.
1134 (i386_dr_low_get_addr): Likewise.
1135 (i386_dr_low_get_status): Likewise.
1136 (i386_dr_low_get_control): Likewise.
1137 (i386_insert_aligned_watchpoint): Use new macros.
1138 (i386_update_inferior_debug_regs): Likewise.
1139 (i386_stopped_data_address): Likewise.
1141 2014-06-18 Gary Benson <gbenson@redhat.com>
1143 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1144 New parameter. All uses updated.
1146 2014-06-18 Gary Benson <gbenson@redhat.com>
1148 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1151 2014-06-18 Gary Benson <gbenson@redhat.com>
1153 * i386-nat.c (debug_printf): New macro.
1154 (i386_get_debug_register_length): Likewise.
1155 (TARGET_HAS_DR_LEN_8): Use above macro.
1156 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1157 and printf_unfiltered. Use phex to format values.
1159 2014-06-18 Gary Benson <gbenson@redhat.com>
1161 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1164 2014-06-18 Gary Benson <gbenson@redhat.com>
1166 * i386-nat.c: Comment changes.
1168 2014-06-18 Gary Benson <gbenson@redhat.com>
1170 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1172 2014-06-18 Gary Benson <gbenson@redhat.com>
1174 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1175 (i386_insert_aligned_watchpoint): Likewise.
1176 (i386_remove_aligned_watchpoint): Likewise.
1177 (i386_handle_nonaligned_watchpoint): Likewise.
1179 2014-06-18 Gary Benson <gbenson@redhat.com>
1181 * i386-nat.c: Whitespace changes.
1183 2014-06-17 Samuel Bronson <naesten@gmail.com>
1185 * MAINTAINERS: Update Roland McGrath's email address.
1186 Thanks to Sergio Durigan Junior for pointing out that he left
1187 Red Hat a while ago, and giving me a current address.
1189 2014-06-17 Tom Tromey <tromey@redhat.com>
1191 * utils.h (savestring): Remove declaration.
1193 2014-06-17 Tom Tromey <tromey@redhat.com>
1195 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1197 2014-06-16 Keith Seitz <keiths@redhat.com>
1200 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1201 to update the varobj if inferior_ptid is null_ptid.
1203 2014-06-16 Tom Tromey <tromey@redhat.com>
1205 * target.h (struct target_ops) <to_info_proc>: Make parameter
1207 (target_info_proc): Update.
1208 * target.c (target_info_proc): Make "args" const.
1209 * procfs.c (procfs_info_proc): Update.
1210 * linux-tdep.c (linux_info_proc): Update.
1211 (linux_core_info_proc_mappings): Make "args" const.
1212 (linux_core_info_proc): Update.
1213 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1214 * gdbarch.c: Rebuild.
1215 * gdbarch.h: Rebuild.
1216 * corelow.c (core_info_proc): Update.
1218 2014-06-16 Tom Tromey <tromey@redhat.com>
1220 * target.h (struct target_ops) <to_disconnect>: Make parameter
1222 (target_disconnect): Update.
1223 * target.c (target_disconnect): Make "args" const.
1224 * target-delegates.c: Rebuild.
1225 * remote.c (remote_disconnect): Update.
1226 * record.h (record_disconnect): Update.
1227 * record.c (record_disconnect): Update.
1228 * inf-child.c (inf_child_disconnect): Update.
1230 2014-06-16 Tom Tromey <tromey@redhat.com>
1232 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1233 * target.c (debug_to_rcmd, default_rcmd): Update.
1234 * target-delegates.c: Rebuild.
1235 * remote.c (remote_rcmd): Update.
1236 * monitor.c (monitor_rcmd): Update.
1238 2014-06-16 Pedro Alves <palves@redhat.com>
1240 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1241 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1242 have OBJF_SHARED set.
1243 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1244 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1245 instead of OBJF_USERLOADED.
1246 * objfiles.h (OBJF_SHARED): Update comment.
1247 (userloaded_objfile_contains_address_p): Rename to ...
1248 (shared_objfile_contains_address_p): ... this, and update
1250 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1252 (remove_symbol_file_command): Skip objfiles that don't have
1255 2014-06-16 Tom Tromey <tromey@redhat.com>
1257 * minsyms.h (prim_record_minimal_symbol)
1258 (prim_record_minimal_symbol_and_info): Update comments.
1260 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1262 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1263 or --without-guile, according to how GDB was built.
1265 2014-06-13 Tom Tromey <tromey@redhat.com>
1267 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1269 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1271 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1273 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1274 help_list.Pass all_commands, not -1, to help_list.
1275 * cli/cli-dump.c (dump_command, append_command)
1276 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1277 (binary_dump_command, binary_append_command): Pass all_commands,
1278 not -1, to help_list.
1279 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1281 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1283 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1285 * top.c (set_history): Pass all_commands, not -1, to help_list.
1286 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1287 all_commands, not -1, to help_list.
1288 * symfile.c (overlay_command): Pass all_commands, not -1, to
1290 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1292 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1294 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1296 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1297 not -1, to help_list.
1298 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1299 not -1, to help_list.
1300 * maint.c (maintenance_command, maintenance_info_command)
1301 (maintenance_print_command, maintenance_set_cmd): Pass
1302 all_commands, not -1, to help_list.
1303 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1305 * language.c (set_check): Pass all_commands, not -1, to help_list.
1306 * infcmd.c (unset_command): Pass all_commands, not -1, to
1308 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1310 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1312 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1314 * breakpoint.c (save_command): Pass all_commands, not -1, to
1316 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1317 all_commands, not -1, to help_list.
1319 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1321 * regcache.c (struct register_to_invalidate): New structure.
1322 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1324 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1326 2014-06-12 Yao Qi <yao@codesourcery.com>
1328 * varobj.c (varobj_get_num_children): Call
1329 varobj_is_dynamic_p.
1330 (varobj_list_children): Likewise.
1331 (varobj_update): Likewise. Update comments.
1333 2014-06-12 Yao Qi <yao@codesourcery.com>
1335 * varobj.c (varobj_pretty_printed_p): Rename to ...
1336 (varobj_is_dynamic_p): ... this. New function.
1337 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1338 (varobj_is_dynamic_p): Declare.
1339 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1340 (mi_print_value_p, varobj_update_one): Likewise.
1342 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1343 Yao Qi <yao@codesourcery.com>
1345 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1346 (varobj_get_iterator): Wrap up code for pretty-printer by
1347 "#if HAVE_PYTHON" and "#endif".
1348 (update_dynamic_varobj_children): Likewise.
1350 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1351 Yao Qi <yao@codesourcery.com>
1353 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1354 gdb_python_initialized is false. Move some code from varobj.c.
1355 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1356 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1357 (struct varobj_item): Moved to varobj-iter.h".
1358 (varobj_clear_saved_item): New function.
1359 (update_dynamic_varobj_children): Move python-related code to
1361 (free_variable): Call varobj_clear_saved_item and
1364 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1365 Yao Qi <yao@codesourcery.com>
1367 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1368 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1369 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1370 (py-varobj.o): New rule.
1371 * python/py-varobj.c: New file.
1372 * python/python-internal.h (py_varobj_get_iterator): Declare.
1373 * varobj-iter.h: New file.
1374 * varobj.c: Include "varobj-iter.h"
1375 (struct varobj) <child_iter>: Change its type from "PyObject *"
1376 to "struct varobj_iter *".
1377 <saved_item>: Likewise.
1378 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1379 [HAVE_PYTHON] (varobj_get_iterator): New function.
1380 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1381 python-specific code to python/py-varobj.c.
1382 (install_visualizer): Call varobj_iter_delete instead of
1384 * varobj.h (varobj_ensure_python_env): Declare.
1386 2014-06-12 Yao Qi <yao@codesourcery.com>
1388 * varobj.c (struct varobj_item): New structure.
1389 (create_child_with_value): Update declaration.
1390 (varobj_add_child): Replace arguments 'name' and 'value' with
1391 'item'. All callers updated.
1392 (install_dynamic_child): Likewise.
1393 (update_dynamic_varobj_children): Likewise.
1394 (varobj_add_child): Likewise.
1395 (create_child_with_value): Likewise.
1397 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1399 * NEWS: Create a new section for the next release branch.
1400 Rename the section of the current branch, now that it has
1403 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1405 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1406 * version.in: Bump version to 7.8.50.DATE-cvs.
1408 2014-06-11 Pedro Alves <palves@redhat.com>
1411 * ser-mingw.c (net_windows_socket_check_pending): New function.
1412 (net_windows_select_thread): Ignore spurious wakeups. Use
1413 net_windows_socket_check_pending.
1414 (net_windows_wait_handle): Check for pending events with
1415 ioctlsocket, through net_windows_socket_check_pending, instead of
1416 checking the socket's event.
1418 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1420 * python/python-internal.h (gdb_PyObject_GetAttrString)
1421 (gdb_PyObject_HasAttrString): New inline function definitions.
1422 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1423 char * of the second argument to PyObject_GetAttrString.
1425 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1427 * serial.c (serial_write): Fix index of character to be printed
1428 in call to serial_logchar when serial debug traces are enabled.
1430 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1432 * gdbtypes (resolve_dynamic_range): Add function description.
1434 2014-06-09 Pedro Alves <palves@redhat.com>
1436 * linux-nat.c (linux_child_follow_fork): Initialize status with
1437 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1438 inner block. Only pass the signal to PTRACE_DETACH if in pass
1441 2014-06-09 Gary Benson <gbenson@redhat.com>
1443 * common/signals.c (gdb_signal_from_host): Reorder to separate
1444 the always-available ANSI-standard signals from the signals that
1446 (do_gdb_signal_to_host): Likewise.
1447 * proc-events.c (signal_table): Likewise.
1449 2014-06-08 Hui Zhu <hui@codesourcery.com>
1451 * common/linux-ptrace.c (linux_disable_event_reporting): New
1453 * common/linux-ptrace.h (linux_disable_event_reporting): New
1455 * linux-nat.c (linux_child_follow_fork): Do a single step before
1458 2014-06-07 Keith Seitz <keiths@redhat.com>
1462 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1463 from symbol_matches_domain in symtab.c. All local callers
1464 of symbol_matches_domain updated.
1465 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1466 search STRUCT_DOMAIN.
1467 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1468 independently. standard_lookup will do that automatically.
1469 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1470 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1471 (cp_lookup_symbol_in_namespace): Likewise.
1472 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1473 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1474 may return a STRUCT_DOMAIN match.
1475 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1476 * cp-support.c: Include language.h.
1477 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1479 * psymtab.c (match_partial_symbol): Compare the requested
1480 domain with the symbol's domain directly.
1481 (lookup_partial_symbol): Likewise.
1482 * symtab.c (lookup_symbol_in_language): Explain when/why
1483 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1484 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1485 appropriate languages.
1486 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1487 and moved to ada-lang.c
1488 (lookup_block_symbol): Explain that this function only returns
1489 symbol matching the requested DOMAIN.
1490 Compare the requested domain with the symbol's domain directly.
1491 (iterate_over_symbols): Compare the requested domain with the
1492 symbol's domain directly.
1493 * symtab.h (symbol_matches_domain): Remove.
1495 2014-06-06 Doug Evans <xdje42@gmail.com>
1497 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1498 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1499 (gdbscm_guile_version_is_at_least): Declare.
1500 (gdbscm_scm_string_to_int): Declare.
1501 * guile/guile.c (gdbscm_guile_major_version): New global.
1502 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1503 (guile_datadir): New static global.
1504 (gdbscm_guile_data_directory): New function.
1505 (initialize_scheme_side): Update.
1506 (misc_guile_functions): Add guile-data-directory.
1507 (initialize_gdb_module): Fetch guile version number.
1508 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1509 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1510 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1511 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1513 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1514 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1515 * guile/scm-value.c (gdbscm_value_to_string): Only call
1516 scm_port_conversion_strategy if Guile version >= 2.0.6.
1518 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1520 * main.c (print_gdb_help): Add -q and --silent.
1522 2014-06-06 Gary Benson <gbenson@redhat.com>
1524 * common/signals.c: Remove preprocessor conditionals for
1525 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1526 SIGSEGV and SIGTERM.
1527 * proc-events.c: Likewise.
1529 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1531 * symfile.c (symfile_free_objfile): Remove restriction to
1533 * symfile-mem.c (symbol_file_add_from_memory): Call
1534 add_target_sections_of_objfile.
1536 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1538 * guile/scm-value.c (gdbscm_history_append_x): Use
1539 'vlscm_get_value_smob_arg_unsafe' instead of
1540 'vlscm_scm_to_value'.
1542 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1545 * utils.c (printchar): Don't escape at all if quoter is NUL.
1546 Update function documentation to clarify effect of parameter
1548 * remote.c (escape_buffer): Pass '\\' as the quoter to
1549 fputstrn_unfiltered.
1550 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1551 generate the output.
1552 (mi_solib_unloaded): Same.
1554 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1556 * development.sh: Delete.
1557 * Makefile.in (config.status): Adjust dependency on development.sh.
1558 * configure.ac: Adjust development.sh source call.
1559 * configure: Regenerate.
1561 2014-06-04 Doug Evans <xdje42@gmail.com>
1563 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1564 is_scheme_bkpt, spec.
1565 (bpscm_make_breakpoint_smob): Initialize new members.
1566 (gdbscm_create_breakpoint_x): Split into two ...
1567 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1568 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1569 (scheme_function breakpoint_functions): Update.
1570 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1571 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1572 register-breakpoint!.
1574 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1577 * mem-break.c (z_type_supported): Return zero if
1578 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1580 2014-06-04 Tom Tromey <tromey@redhat.com>
1582 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1583 value_from_contents_and_address_unresolved.
1584 (ada_template_to_fixed_record_type_1): Likewise.
1585 (ada_which_variant_applies): Likewise.
1586 * value.h (value_from_contents_and_address_unresolved): Declare.
1587 * value.c (value_from_contents_and_address_unresolved): New
1589 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1590 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1591 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1593 2014-06-04 Tom Tromey <tromey@redhat.com>
1595 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1597 2014-06-04 Tom Tromey <tromey@redhat.com>
1599 * procfs.c (procfs_attach): Make "args" const.
1600 * windows-nat.c (windows_attach): Make "args" const.
1601 * nto-procfs.c (procfs_attach): Make "args" const.
1602 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1603 * go32-nat.c (go32_attach): Make "args" const.
1604 * gnu-nat.c (gnu_attach): Make "args" const.
1605 * darwin-nat.c (darwin_attach): Make "args" const.
1606 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1607 * linux-nat.c (linux_nat_attach): Make "args" const.
1608 * remote.c (extended_remote_attach_1, extended_remote_attach):
1610 * target.h (struct target_ops) <to_attach>: Make "args" const.
1611 (find_default_attach): Likewise.
1612 * utils.c (parse_pid_to_attach): Make "args" const.
1613 * utils.h (parse_pid_to_attach): Update.
1615 2014-06-04 Tom Tromey <tromey@redhat.com>
1617 * target-delegates.c: Rebuild.
1618 * target.c (default_thread_address_space): New function.
1619 (target_thread_address_space): Simplify.
1620 * target.h (struct target_ops) <to_thread_address_space>: Add
1621 TARGET_DEFAULT_FUNC.
1623 2014-06-04 Doug Evans <xdje42@gmail.com>
1625 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1627 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1629 * record-btrace.c: Include event-loop.h and inf-loop.h.
1630 (record_btrace_resume_exec_dir)
1631 (record_btrace_async_inferior_event_handler)
1632 (record_btrace_handle_async_inferior_event): New.
1633 (record_btrace_open): Create async event handler.
1634 (record_btrace_close): Delete async event handler.
1635 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1636 Mark async event handler.
1637 (record_btrace_execution_direction): New.
1638 (init_record_btrace_ops): Initialize to_execution_direction.
1640 2014-06-03 Doug Evans <xdje42@gmail.com>
1642 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1643 (gdbscm_make_parameter): Ditto.
1645 2014-06-03 Doug Evans <dje@google.com>
1647 * exec.c (exec_close_1): Call clear_section_table instead of
1648 resize_section_table.
1649 (clear_section_table): New function.
1650 (resize_section_table): Make static. Rename arg num_added to
1652 * exec.h (clear_section_table): Declare.
1653 (resize_section_table): Delete.
1654 * progspace.c (release_program_space): Call clear_section_table
1655 instead of resize_section_table.
1657 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1659 * NEWS (Python Scripting): Add entry about the new xmethods
1662 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1664 * python/py-xmethods.c: New file.
1665 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1666 (objfpy_dealloc): XDECREF on the new xmethods field.
1667 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1669 (objfpy_get_xmethods): New function.
1670 (objfile_getset): New entry 'xmethods'.
1671 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1672 (pspy_dealloc): XDECREF on the new xmethods field.
1673 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1675 (pspy_get_xmethods): New function.
1676 (pspace_getset): New entry 'xmethods'.
1677 * python/python-internal.h: Add declarations for new functions.
1678 * python/python.c (_initialize_python): Invoke
1679 gdbpy_initialize_xmethods.
1680 * python/lib/gdb/__init__.py (xmethods): New
1682 * python/lib/gdb/xmethod.py: New file.
1683 * python/lib/gdb/command/xmethods.py: New file.
1685 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1687 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1688 best match method returned by find_overload_match is an xmethod.
1689 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1690 the best matching operator returned by find_overload_match is an
1692 * valops.c: #include "extension.h".
1693 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1694 Return void. The list of matching source methods is returned in
1695 "fn_list" and a vector of matching debug method workers is
1696 returned in "xm_worker_vec". Update all callers.
1697 (value_find_oload_method_list): Likewise.
1698 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1699 non-NULL, then the index of the best matching method in this
1700 vector is returned. Update all callers.
1701 (find_overload_match): Include xmethods while performing overload
1704 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1706 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1707 * extension-priv.h (struct extension_language_ops): Add the
1709 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1710 get_matching_xmethod_workers, get_xmethod_argtypes,
1711 invoke_xmethod, free_xmethod_worker,
1712 free_xmethod_worker_vec): New functions.
1713 * extension.h: #include "common/vec.h".
1714 New function declarations.
1715 (struct xmethod_worker): New struct.
1716 (VEC (xmethod_worker_ptr)): New vector type.
1717 (xmethod_worker_ptr): New typedef.
1718 (xmethod_worker_vec): Likewise.
1719 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1721 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1722 (struct builtin_type): New field "xmethod".
1723 * valarith.c (value_ptradd): Assert that the value argument is not
1725 * valops.c (value_must_coerce_to_target): Return 0 for
1726 lval_xcallable values.
1727 * value.c (struct value): New field XM_WORKER in the field
1729 (value_address, value_raw_address): Return 0 for lval_xcallable
1731 (set_value_address): Assert that the value is not an
1733 (value_free): Free the associated xmethod worker when freeing
1734 lval_xcallable values.
1735 (set_value_component_location): Assert that the WHOLE value is not
1737 (value_of_xmethod, call_xmethod): New functions.
1738 * value.h: Declare "struct xmethod_worker".
1739 Declare new functions value_of_xmethod, call_xmethod.
1741 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1742 Pedro Alves <palves@redhat.com>
1744 PR breakpoints/17000
1745 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1746 New function, extracted from software_breakpoint_inserted_here_p.
1747 (software_breakpoint_inserted_here_p): Replace factored out code
1748 by call to find_non_raw_software_breakpoint_inserted_here.
1749 (bp_target_info_copy_insertion_state): New function.
1750 (bkpt_insert_location): Handle the case of a single-step
1751 breakpoint already inserted at the same address.
1752 (bkpt_remove_location): Handle the case of a single-step
1753 breakpoint still inserted at the same address.
1754 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1755 breakpoint already inserted at the same address.
1756 (deprecated_remove_raw_breakpoint): Handle the case of a
1757 non-raw breakpoint still inserted at the same address.
1758 (find_single_step_breakpoint): New function, extracted from
1759 single_step_breakpoint_inserted_here_p.
1760 (find_single_step_breakpoint): New function,
1761 factored out from single_step_breakpoint_inserted_here_p.
1762 (single_step_breakpoint_inserted_here_p): Reimplement.
1764 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1766 Pushed by Joel Brobecker <brobecker@adacore.com>
1767 * source.c (show_substitute_path_command): Fix display of matching
1770 2014-06-03 Gary Benson <gbenson@redhat.com>
1772 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1774 2014-06-02 Doug Evans <xdje42@gmail.com>
1776 Add parameter support for Guile.
1777 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1778 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1779 (scm-param.o): New rule.
1780 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1781 (gdbscm_misc_error): Declare.
1782 (gdbscm_canonicalize_command_name): Declare.
1783 (gdbscm_scm_to_host_string): Declare.
1784 (gdbscm_scm_from_host_string): Declare.
1785 (gdbscm_initialize_parameters): Declare.
1786 * guile/guile.c (initialize_gdb_module): Call
1787 gdbscm_initialize_parameters.
1788 * guile/lib/gdb.scm: Export parameter symbols.
1789 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1790 cmdscm_canonicalize_name and made public. All callers updated.
1791 * guile/scm-exception.c (gdbscm_misc_error): New function.
1792 * guile/scm-param.c: New file.
1793 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1794 (gdbscm_scm_to_host_string): New function.
1795 (gdbscm_scm_from_host_string): New function.
1796 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1798 2014-06-02 Doug Evans <xdje42@gmail.com>
1800 Add command support for Guile.
1801 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1802 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1803 (scm-cmd.o): New rule.
1804 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1805 (gdbscm_user_error_p): Declare.
1806 (gdbscm_parse_command_name): Declare.
1807 (gdbscm_valid_command_class_p): Declare.
1808 (gdbscm_initialize_commands): Declare.
1809 * guile/guile.c (initialize_gdb_module): Call
1810 gdbscm_initialize_commands.
1811 * guile/lib/gdb.scm: Export command symbols.
1812 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1813 (throw-user-error): New function.
1814 * guile/scm-cmd.c: New file.
1815 * guile/scm-exception.c (user_error_symbol): New static global.
1816 (gdbscm_user_error_p): New function.
1817 (gdbscm_initialize_exceptions): Set user_error_symbol.
1818 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1820 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1822 * top.c (command_loop): Handle comments here...
1823 (command_line_input): ... not here.
1825 2014-06-02 Doug Evans <xdje42@gmail.com>
1827 Add progspace support for Guile.
1828 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1829 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1830 (scm-progspace.o): New rule.
1831 * guile/guile-internal.h (pspace_smob): New typedef.
1832 (psscm_pspace_smob_pretty_printers): Declare.
1833 (psscm_pspace_smob_from_pspace): Declare.
1834 (psscm_scm_from_pspace): Declare.
1835 * guile/guile.c (initialize_gdb_module): Call
1836 gdbscm_initialize_pspaces.
1837 * guile/lib/gdb.scm: Export progspace symbols.
1838 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1840 (append-pretty-printer!): Ditto.
1841 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1843 * guile/scm-progspace.c: New file.
1845 2014-06-03 Alan Modra <amodra@gmail.com>
1847 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1848 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1850 2014-06-02 Doug Evans <dje@google.com>
1852 Add support for skeletonless type units.
1853 * dwarf2read.c (struct dwarf2_per_objfile): New member
1854 n_allocated_type_units.
1855 (struct dwarf2_per_objfile) <tu_stats>: New member
1856 nr_all_type_units_reallocs.
1857 (create_signatured_type_table_from_index): Initialize
1858 n_allocated_type_units
1859 (create_all_type_units): Ditto.
1860 (add_type_unit): Move up in file. New arg slot.
1861 All callers updated. Increase space for all_type_units more
1863 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1864 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1865 (lookup_dwp_signatured_type): Ditto.
1866 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1867 All callers updated.
1868 (build_type_psymtabs_1): Leave type_unit_groups as
1869 NULL if no TUs present.
1870 (print_tu_stats): New function.
1871 (process_skeletonless_type_unit): New function.
1872 (process_dwo_file_for_skeletonless_type_units): New
1874 (process_skeletonless_type_units): New function.
1875 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1876 Call print tu_stats if debugging enabled.
1878 2014-06-02 Pedro Alves <palves@redhat.com>
1880 * breakpoint.c (build_target_command_list): Don't build a command
1881 list if we have any duplicate location that isn't a dprintf.
1883 2014-06-02 Pedro Alves <palves@redhat.com>
1885 * breakpoint.c (dprintf_breakpoint_hit): New function.
1886 (initialize_breakpoint_ops): Install it as dprintf's
1887 breakpoint_hit method.
1889 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1891 * source.c (substitute_path_rule_matches): Simplify using
1892 filename_ncmp instead of FILENAME_CMP.
1894 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1896 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1898 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1900 * configure.ac: When Guile is available, check for the
1901 availability of 'scm_new_smob'.
1902 * configure, config.h.in: Regenerate.
1903 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1906 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1908 * frame.c (struct frame_info): Add stop_string field.
1909 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1910 (get_prev_frame_always): Old content moved into
1911 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1912 TRY_CATCH, handle MEMORY_ERROR exceptions.
1913 (frame_stop_reason_string): New function definition.
1914 * frame.h (unwind_stop_reason_to_string): Extend comment to
1915 mention frame_stop_reason_string.
1916 (frame_stop_reason_string): New function declaration.
1917 * stack.c (frame_info): Switch to frame_stop_reason_string.
1918 (backtrace_command_1): Switch to frame_stop_reason_string.
1919 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1920 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1921 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1923 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1925 * frame.c (frame_stop_reason_string): Rename to ...
1926 (unwind_stop_reason_to_string): this.
1927 * frame.h (frame_stop_reason_string): Rename to ...
1928 (unwind_stop_reason_to_string): this.
1929 * stack.c (frame_info): Update call to frame_stop_reason_string.
1930 (backtrace_command_1): Likewise.
1931 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1932 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1934 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1936 * frame.c (remove_prev_frame): New function.
1937 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1940 2014-05-29 Pedro Alves <palves@redhat.com>
1942 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1943 and make it const. When a single-step decays to a continue,
1944 clear 'step', not 'hw_step'. Pass whether the caller wanted
1945 to step to user_visible_resume_ptid, not what we ask the
1948 2014-05-29 Pedro Alves <palves@redhat.com>
1950 * infrun.c (process_event_stop_test, handle_step_into_function)
1951 (handle_step_into_function_backward): Adjust.
1952 Don't set the even thread's stop_step and call stop_waiting before
1953 calling end_stepping_range. Instead do that ...
1954 (end_stepping_range): ... here. Take an ecs pointer parameter.
1956 2014-05-29 Pedro Alves <palves@redhat.com>
1958 * infrun.c (stop_stepping): Rename to ...
1959 (stop_waiting): ... this.
1960 (proceed): Update comment.
1961 (process_event_stop_test, handle_inferior_event)
1962 (handle_signal_stop, handle_step_into_function)
1963 (handle_step_into_function_backward): Update.
1965 2014-05-29 Pedro Alves <palves@redhat.com>
1967 * infcall.c (run_inferior_call): Don't check whether the current
1968 thread is running after the proceed call.
1970 2014-05-29 Pedro Alves <palves@redhat.com>
1971 Tom Tromey <tromey@redhat.com>
1973 * NEWS: Mention "maint set target-async", "set mi-async", and that
1974 background execution commands are now always available.
1975 * target.h (target_async_permitted): Update comment.
1976 * target.c (target_async_permitted, target_async_permitted_1):
1978 (set_target_async_command): Rename to ...
1979 (maint_set_target_async_command): ... this.
1980 (show_target_async_command): Rename to ...
1981 (maint_show_target_async_command): ... this.
1982 (_initialize_target): Adjust.
1983 * infcmd.c (prepare_execution_command): Make extern.
1984 * inferior.h (prepare_execution_command): Declare.
1985 * infrun.c (set_observer_mode): Leave target async alone.
1986 * mi/mi-interp.c (mi_interpreter_init): Install
1987 mi_on_sync_execution_done as sync_execution_done observer.
1988 (mi_on_sync_execution_done): New function.
1989 (mi_execute_command_input_handler): Don't print the prompt if we
1990 just started a synchronous command with an async target.
1991 (mi_on_resume): Check sync_execution before printing prompt.
1992 * mi/mi-main.h (mi_async_p): Declare.
1993 * mi/mi-main.c: Include gdbcmd.h.
1994 (mi_async_p): New function.
1995 (mi_async, mi_async_1): New globals.
1996 (set_mi_async_command, show_mi_async_command, mi_async): New
1998 (exec_continue): Call prepare_execution_command.
1999 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2000 (mi_execute_async_cli_command): Use mi_async_p.
2001 (_initialize_mi_main): Install "set mi-async". Make
2002 "target-async" a deprecated alias.
2004 2014-05-29 Pedro Alves <palves@redhat.com>
2006 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2007 (_initialize_cli_interp): Adjust.
2008 * event-loop.c: Include "observer.h".
2009 (start_event_loop): Notify 'command_error' observers instead of
2010 calling display_gdb_prompt. Remove FIXME comment.
2011 * event-top.c (display_gdb_prompt): Remove call into the
2013 * inf-loop.c: Include "observer.h".
2014 (inferior_event_handler): Notify 'command_error' observers instead
2015 of calling display_gdb_prompt.
2016 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2017 observers instead of calling display_gdb_prompt.
2018 * interps.c (interp_set): Don't call display_gdb_prompt.
2019 (current_interp_display_prompt_p): Delete.
2020 * interps.h (interp_prompt_p): Delete declaration.
2021 (interp_prompt_p_ftype): Delete.
2022 (struct interp_procs) <prompt_proc_p>: Delete field.
2023 (current_interp_display_prompt_p): Delete declaration.
2024 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2025 (_initialize_mi_interp): Adjust.
2026 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2027 'command_error' observers.
2028 (tui_on_sync_execution_done, tui_on_command_error): New
2030 (tui_display_prompt_p): Delete.
2031 (_initialize_tui_interp): Adjust.
2033 2014-05-29 Pedro Alves <palves@redhat.com>
2036 * cli/cli-interp.c: Include infrun.h and observer.h.
2037 (cli_uiout, cli_interp): New globals.
2038 (cli_on_signal_received, cli_on_end_stepping_range)
2039 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2041 (cli_interpreter_init): Install them as 'end_stepping_range',
2042 'signal_received' 'signal_exited', 'exited' and 'no_history'
2044 (_initialize_cli_interp): Remove cli_interp local.
2045 * infrun.c (handle_inferior_event): Call the several stop reason
2046 observers instead of printing the stop reason directly.
2047 (end_stepping_range): New function.
2048 (print_end_stepping_range_reason, print_signal_exited_reason)
2049 (print_exited_reason, print_signal_received_reason)
2050 (print_no_history_reason): Make static, and add an uiout
2051 parameter. Print to that instead of to CURRENT_UIOUT.
2052 * infrun.h (print_end_stepping_range_reason)
2053 (print_signal_exited_reason, print_exited_reason)
2054 (print_signal_received_reason print_no_history_reason): New
2056 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2058 <cli_uiout>: New field.
2059 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2060 uiout for CLI output. Install 'signal_received',
2061 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2063 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2064 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2065 (mi_on_no_history): New functions.
2066 (ui_out_free_cleanup): Delete function.
2067 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2068 instead use the one already stored in the MI interpreter data.
2069 (mi_ui_out): Adjust.
2070 * tui/tui-interp.c: Include infrun.h and observer.h.
2071 (tui_interp): New global.
2072 (tui_on_signal_received, tui_on_end_stepping_range)
2073 (tui_on_signal_exited, tui_on_exited)
2074 (tui_on_no_history): New functions.
2075 (tui_init): Install them as 'end_stepping_range',
2076 'signal_received' 'signal_exited', 'exited' and 'no_history'
2078 (_initialize_tui_interp): Delete tui_interp local.
2080 2014-05-29 Pedro Alves <palves@redhat.com>
2083 * linux-nat.c (linux_nat_resume_callback): Rename the second
2084 parameter to 'except'. Skip LP if it points to EXCEPT.
2085 (linux_nat_resume): Don't mark the event lwp as not stopped
2086 before resuming sibling lwps. Instead ask
2087 linux_nat_resume_callback to skip the event lwp. Mark it as not
2088 stopped after actually resuming it.
2089 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2091 (wait_lwp): Mark the lwp as stopped here.
2092 (stop_wait_callback): Mark the lwp as not stopped right after
2093 resuming it. Don't mark lwps as stopped here.
2094 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2095 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2097 2014-05-29 Pedro Alves <palves@redhat.com>
2100 * infrun.c (resume): Determine how much to resume depending on
2101 whether the caller wanted a step, not whether we can hardware step
2102 the target. Mark all threads that we intend to run as running,
2103 unless we're calling an inferior function.
2104 (normal_stop): If the thread is running an infcall, don't finish
2106 * target.c (target_resume): Don't mark threads as running here.
2108 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2110 * serial.c (_initialize_serial): Remove support for
2111 the "set remotebaud" and "show remotebaud" commands.
2112 * NEWS: Add entry documenting the removal of that command.
2114 2014-05-28 Yao Qi <yao@codesourcery.com>
2116 * charset.c: Fix typo in comments.
2118 2014-05-27 Gary Benson <gbenson@redhat.com>
2120 * utils.c (internal_vproblem): Prompt for a bug report.
2122 2014-05-26 Andy Wingo <wingo@igalia.com>
2124 * guile/scm-arch.c (arscm_mark_arch_smob):
2125 * guile/scm-block.c (bkscm_mark_block_smob)
2126 (bkscm_mark_block_syms_progress_smob):
2127 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2128 * guile/scm-exception.c (exscm_mark_exception_smob):
2129 * guile/scm-frame.c (frscm_mark_frame_smob):
2130 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2131 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2132 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2133 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2134 (ppscm_mark_pretty_printer_worker_smob):
2135 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2136 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2137 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2138 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2140 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2143 2014-05-26 Andy Wingo <wingo@igalia.com>
2144 Doug Evans <xdje42@gmail.com>
2146 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2147 empty_base_class. All uses updated.
2148 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2149 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2151 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2152 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2153 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2154 (gdbscm_gsmob_has_property_p, add_property_name)
2155 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2156 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2157 (gdb-object-has-property?, gdb-object-properties): Remove.
2158 (gdb-object-kind): Renamed from gsmob-kind.
2160 2014-05-26 Andy Wingo <wingo@igalia.com>
2162 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2163 * configure: Regenerate.
2165 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2167 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2169 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2171 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2172 (replay_memory_access_read_only, replay_memory_access_read_write)
2173 (replay_memory_access_types, replay_memory_access)
2174 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2175 (cmd_set_record_btrace, cmd_show_record_btrace)
2176 (cmd_show_replay_memory_access): New.
2177 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2178 (record_btrace_remove_breakpoint): Replace
2179 record_btrace_allow_memory_access with replay_memory_access.
2180 (_initialize_record_btrace): Add commands.
2181 * NEWS: Announce it.
2183 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2185 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2187 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2189 * MAINTAINERS (Write After Approval): Move self back from
2192 2014-05-22 Pedro Alves <palves@redhat.com>
2194 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2195 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2196 (disable_randomization, enum exec_direction_kind)
2197 (execution_direction, stop_registers, start_remote)
2198 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2199 (wait_for_inferior, normal_stop, get_last_target_status)
2200 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2201 (insert_step_resume_breakpoint_at_sal)
2202 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2203 (set_step_info, print_stop_event, signal_stop_state)
2204 (signal_print_state, signal_pass_state, signal_stop_update)
2205 (signal_print_update, signal_pass_update)
2206 (update_signals_program_target, clear_exit_convenience_vars)
2207 (displaced_step_dump_bytes, update_observer_mode)
2208 (signal_catch_update, gdb_signal_from_command): Move
2210 * infrun.h: ... to this new file.
2211 * amd64-tdep.c: Include infrun.h.
2212 * annotate.c: Include infrun.h.
2213 * arch-utils.c: Include infrun.h.
2214 * arm-linux-tdep.c: Include infrun.h.
2215 * arm-tdep.c: Include infrun.h.
2216 * break-catch-sig.c: Include infrun.h.
2217 * breakpoint.c: Include infrun.h.
2218 * common/agent.c: Include infrun.h instead of inferior.h.
2219 * corelow.c: Include infrun.h.
2220 * event-top.c: Include infrun.h.
2221 * go32-nat.c: Include infrun.h.
2222 * i386-tdep.c: Include infrun.h.
2223 * inf-loop.c: Include infrun.h.
2224 * infcall.c: Include infrun.h.
2225 * infcmd.c: Include infrun.h.
2226 * infrun.c: Include infrun.h.
2227 * linux-fork.c: Include infrun.h.
2228 * linux-nat.c: Include infrun.h.
2229 * linux-thread-db.c: Include infrun.h.
2230 * monitor.c: Include infrun.h.
2231 * nto-tdep.c: Include infrun.h.
2232 * procfs.c: Include infrun.h.
2233 * record-btrace.c: Include infrun.h.
2234 * record-full.c: Include infrun.h.
2235 * remote-m32r-sdi.c: Include infrun.h.
2236 * remote-mips.c: Include infrun.h.
2237 * remote-notif.c: Include infrun.h.
2238 * remote-sim.c: Include infrun.h.
2239 * remote.c: Include infrun.h.
2240 * reverse.c: Include infrun.h.
2241 * rs6000-tdep.c: Include infrun.h.
2242 * s390-linux-tdep.c: Include infrun.h.
2243 * solib-irix.c: Include infrun.h.
2244 * solib-osf.c: Include infrun.h.
2245 * solib-svr4.c: Include infrun.h.
2246 * target.c: Include infrun.h.
2247 * top.c: Include infrun.h.
2248 * windows-nat.c: Include infrun.h.
2249 * mi/mi-interp.c: Include infrun.h.
2250 * mi/mi-main.c: Include infrun.h.
2251 * python/py-threadevent.c: Include infrun.h.
2253 2014-05-22 Pedro Alves <palves@redhat.com>
2255 * infrun.c (handle_inferior_event): Store the exit code for
2256 --return-child-result here, instead of ...
2257 (print_exited_reason): ... here.
2259 2014-05-21 Pedro Alves <palves@redhat.com>
2262 * gdbthread.h (struct thread_control_state): New field
2264 * infrun.c (follow_fork): Copy the new thread control field to the
2266 (clear_proceed_status_thread): Clear the new thread control field.
2267 (proceed): Set the new thread control field.
2268 * interps.h (command_interp): Declare.
2269 * interps.c (command_interpreter): New global.
2270 (command_interp): New function.
2271 (interp_exec): Set `command_interpreter' while here.
2272 * cli-out.c (cli_uiout_dtor): New function.
2273 (cli_ui_out_impl): Install it.
2274 * mi/mi-interp.c: Include cli-out.h.
2275 (mi_cmd_interpreter_exec): Add comment.
2276 (restore_current_uiout_cleanup): New function.
2277 (ui_out_free_cleanup): New function.
2278 (mi_on_normal_stop): If finishing an execution command started by
2279 a CLI command, or any kind of breakpoint-like event triggered,
2280 print the stop event to the output (CLI) stream.
2281 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2283 2014-05-21 Pedro Alves <palves@redhat.com>
2285 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2286 current source line having changed.
2287 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2288 * infrun.c (normal_stop): Adjust call to
2289 set_current_sal_from_frame.
2290 * source.c (clear_lines_listed_range): New function.
2291 (set_current_source_symtab_and_line, identify_source_line): Clear
2292 the lines listed range.
2293 (line_info): Handle the first "info line" after the current source
2294 line having changed.
2295 * stack.c (print_stack_frame): Remove center handling.
2296 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2299 2014-05-21 Pedro Alves <palves@redhat.com>
2301 * inf-child.c (inf_child_mourn_inferior): New function.
2302 * inf-child.h (inf_child_mourn_inferior): New declaration.
2303 * darwin-nat.c (darwin_mourn_inferior): Use
2304 inf_child_mourn_inferior.
2305 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2306 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2307 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2308 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2309 * windows-nat.c (windows_mourn_inferior): Likewise.
2311 2014-05-21 Doug Evans <xdje42@gmail.com>
2313 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2315 2014-05-21 Doug Evans <xdje42@gmail.com>
2317 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2318 (gdbscm_out_of_range_error): Ditto.
2319 (gdbscm_memory_error): Ditto.
2320 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2321 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2322 (gdbscm_out_of_range_error): Update.
2323 (gdbscm_memory_error): Update.
2324 (gdbscm_scm_to_target_string_unsafe): Delete.
2326 2014-05-21 Pedro Alves <palves@redhat.com>
2328 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2330 (inf_child_open_target): New function.
2331 (inf_child_open): Use inf_child_open_target to push the target
2332 instead of erroring out.
2333 (inf_child_disconnect, inf_child_close)
2334 (inf_child_maybe_unpush_target): New functions.
2335 (inf_child_target): Install inf_child_disconnect and
2336 inf_child_close. Store a pointer to the returned object.
2337 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2339 * target.c (auto_connect_native_target): New global.
2340 (show_default_run_target): New function.
2341 (find_default_run_target): Return NULL if automatically connecting
2342 to the native target is disabled.
2343 (_initialize_target): Install set/show auto-connect-native-target.
2344 * NEWS: Mention "set auto-connect-native-target", and "target
2346 * linux-nat.c (super_close): New global.
2347 (linux_nat_close): Call super_close.
2348 (linux_nat_add_target): Store a pointer to the base class's
2350 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2351 inf_child_maybe_unpush.
2352 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2354 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2355 the inferior. Use inf_child_maybe_unpush_target.
2356 (inf_ttrace_attach): Don't push the target if it is already
2358 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2359 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2360 after mourning the inferior. Use inf_child_maybe_unpush_target.
2361 (darwin_attach_pid): Don't push the target if it is already
2363 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2364 mourning the inferior. Use inf_child_maybe_unpush_target.
2365 (gnu_detach): Use inf_child_maybe_unpush_target.
2366 * go32-nat.c (go32_create_inferior): Don't push the target if it
2368 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2369 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2370 (procfs_open): Rename to ...
2371 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2372 comments. Can target_preopen before changing node. Call
2373 inf_child_open_target to push the target explicitly.
2374 (procfs_attach): Don't push the target if it is already pushed.
2375 (procfs_detach): Use inf_child_maybe_unpush_target.
2376 (procfs_create_inferior): Don't push the target if it is already
2378 (nto_native_ops): New global.
2379 (procfs_open): Reimplement.
2380 (procfs_native_open): New function.
2381 (init_procfs_targets): Install procfs_native_open as to_open of
2382 "target native". Store a pointer to the "native" target in
2384 * procfs.c (procfs_attach): Don't push the target if it is already
2386 (procfs_detach): Use inf_child_maybe_unpush_target.
2387 (procfs_mourn_inferior): Only unpush the target after mourning the
2388 inferior. Use inf_child_maybe_unpush_target.
2389 (procfs_init_inferior): Don't push the target if it is already
2391 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2392 if it is already pushed.
2394 2014-05-21 Pedro Alves <palves@redhat.com>
2396 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2397 and "procfs" targets are now called "native" instead.
2399 2014-05-21 Pedro Alves <palves@redhat.com>
2401 * go32-nat.c (go32_open): Delete.
2402 (go32_target): Don't override the to_open method.
2404 2014-05-21 Pedro Alves <palves@redhat.com>
2406 * nto-procfs.c (procfs_can_run): New function.
2407 (nto_procfs_ops): New global.
2408 (init_procfs_targets): New, based on procfs_target. Install
2409 "target native" in addition to "target procfs".
2410 (_initialize_procfs): Call init_procfs_targets instead of adding
2413 2014-05-21 Pedro Alves <palves@redhat.com>
2415 * windows-nat.c (windows_target): Don't override to_shortname,
2416 to_longname or to_doc.
2418 2014-05-21 Pedro Alves <palves@redhat.com>
2420 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2423 2014-05-21 Pedro Alves <palves@redhat.com>
2425 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2426 to_shortname, to_longname or to_doc.
2428 2014-05-21 Pedro Alves <palves@redhat.com>
2430 * go32-nat.c (go32_target): Don't override to_shortname,
2431 to_longname or to_doc.
2433 2014-05-21 Pedro Alves <palves@redhat.com>
2435 * inf-child.c (inf_child_open): Remove mention of "child".
2436 (inf_child_target): Rename target to "native" instead of "child".
2438 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2440 * Makefile.in (SFILES): Delete "regset.c".
2441 (COMMON_OBS): Delete "regset.o".
2443 * regset.h (regset_alloc): Delete prototype.
2445 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2447 * sparc-linux-tdep.c (sparc32_linux_gregset)
2448 (sparc32_linux_fpregset): New static regset structures.
2449 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2450 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2452 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2453 (sparc64_linux_fpregset): New static regset structures.
2454 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2455 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2456 New static regset structures.
2457 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2458 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2459 New static regset structures.
2460 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2461 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2462 New static regset structures.
2463 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2464 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2465 New static regset structures.
2466 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2468 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2470 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2471 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2472 register maps ("regmaps") from "*regset" to "*regmap". Do this
2473 for all regmap types and variables.
2474 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2475 (sparc32_linux_supply_core_gregset)
2476 (sparc32_linux_collect_core_gregset)
2477 (sparc32_linux_supply_core_fpregset)
2478 (sparc32_linux_collect_core_fpregset): Likewise.
2479 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2480 (sparc_gregmap, sparc_fpregmap): ... these.
2481 (sparc_supply_gregset, sparc_collect_gregset)
2482 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2483 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2484 (_initialize_sparc_nat): Rename regmaps.
2485 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2486 (sparc_gregmap, sparc_fpregmap): ... these.
2487 (sparc_supply_gregset, sparc_collect_gregset)
2488 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2489 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2491 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2492 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2494 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2496 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2497 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2498 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2500 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2501 (sparc32_bsd_fpregset): Rename to...
2502 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2503 (sparc32_bsd_fpregmap): ... these.
2504 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2505 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2506 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2507 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2508 (struct sparc_gregmap, struct sparc_fpregmap)
2509 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2510 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2511 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2512 (sparc32_supply_regset, sparc32_collect_gregset)
2513 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2515 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2516 (sparc64_linux_ptrace_gregmap): ... this.
2517 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2518 (_initialize_sparc64_linux_nat): Rename regmaps.
2519 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2520 (sparc64_linux_core_gregmap): ... this.
2521 (sparc64_linux_supply_core_gregset)
2522 (sparc64_linux_collect_core_gregset)
2523 (sparc64_linux_supply_core_fpregset)
2524 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2525 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2526 (sparc64_sol2_fpregset): Rename to...
2527 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2528 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2529 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2531 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2532 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2533 (sparc64_bsd_fpregset): Rename to...
2534 (struct sparc_gregmap, sparc64_sol2_gregmap)
2535 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2536 (sparc64_bsd_fpregmap): ... these.
2537 (sparc64_supply_gregset, sparc64_collect_gregset)
2538 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2540 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2541 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2542 (sparc64fbsd_gregmap): ... this.
2543 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2544 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2546 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2547 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2548 (sparc64nbsd_collect_fpregset): Likewise.
2549 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2550 (sparc64nbsd_gregmap): ... this.
2551 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2553 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2554 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2555 (sparc64obsd_gregmap): ... this.
2556 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2558 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2559 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2560 (sparc32nbsd_gregmap): ... this.
2561 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566 * score-tdep.c (score7_linux_gregset): New static regset
2568 (score7_linux_regset_from_core_section): Remove dynamic regset
2570 (score_gdbarch_init): Drop allocation of tdep structure.
2571 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2573 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2577 (am33_regset_from_core_section): Remove dynamic regset
2580 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2582 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2583 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2585 (mips_linux_regset_from_core_section): Remove dynamic regset
2587 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2588 'gregset64', 'fpregset', and 'fpregset64'.
2589 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2590 deleted tdep fields.
2592 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2594 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2596 (amd64_regset_from_core_section): Remove dynamic regset
2598 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2600 (amd64obsd_regset_from_core_section): Remove dynamic regset
2602 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2604 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2605 x86-common regset supply function.
2606 * i386-tdep.c (i386_collect_gregset): Make static.
2607 (i386_gregset): New global regset structure.
2608 (i386_fpregset, i386_xstateregset): New static regset structures.
2609 (i386_regset_from_core_section): Remove dynamic regset
2611 (i386_gdbarch_init): Remove initialization of tdep fields
2612 'gregset', 'fpregset', and 'xstateregset'.
2613 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2614 'fpregset', and 'xstateregset'.
2615 (i386_collect_gregset): Remove prototype.
2616 (i386_gregset): New declaration.
2617 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2619 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2622 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2624 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2625 (arm_linux_vfpregset): New static regset structures.
2626 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2628 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2629 and 'vfpregset' fields.
2631 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2634 (aarch64_linux_fpregset): New static regset structures.
2635 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2636 of regset structures.
2637 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2640 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642 * regset.h (struct regset): Remove gdbarch field.
2643 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2644 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2645 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2647 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2648 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2649 (ppc32_linux_vsxregset): Likewise.
2650 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2651 via the regcache instead of the regset.
2652 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2653 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2654 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2655 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2658 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2661 Constify structures.
2662 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2663 (alphanbsd_aout_gregset): Likewise.
2664 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2665 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2667 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2668 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2670 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2671 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2672 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2673 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2674 * m88k-tdep.c (m88k_gregset): Likewise.
2675 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2676 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2677 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2678 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2679 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2680 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2681 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2682 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2683 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2685 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2686 * sh-tdep.h (sh_corefile_gregset): Likewise.
2687 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2688 * vax-tdep.c (vax_gregset): Likewise.
2690 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2692 Fix TLS access for -static -pthread.
2693 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2694 (try_thread_db_load_1): Initialize it.
2695 (thread_db_get_thread_local_address): Call it if LM is zero.
2696 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2697 * target.h (struct target_ops) (to_get_thread_local_address): Add
2698 load_module_addr comment.
2700 2014-05-21 Pedro Alves <palves@redhat.com>
2702 * dcache.c (dcache_read_memory_partial): If reading the cache line
2703 fails, fallback to reading just the memory the caller wanted.
2705 2014-05-20 Doug Evans <dje@google.com>
2707 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2708 instead of get_current_arch.
2710 2014-05-20 Pedro Alves <palves@redhat.com>
2712 * NEWS: Mention that compare-sections now works with all targets.
2714 * remote.c (PACKET_qCRC): New enum value.
2715 (remote_verify_memory): Don't send qCRC if the target has no
2716 execution. Use packet_support/packet_ok. If the target doesn't
2717 support the qCRC packet, fallback to a deep memory copy.
2718 (compare_sections_command): Say "target image" instead of "remote
2720 (_initialize_remote): Add PACKET_qCRC to the list of config
2721 packets that have no associated command. Extend comment.
2722 * target.c (simple_verify_memory, default_verify_memory): New
2724 * target.h (struct target_ops) <to_verify_memory>: Default to
2725 default_verify_memory.
2726 (simple_verify_memory): New declaration.
2727 * target-delegates.c: Regenerate.
2729 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2731 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2733 2014-05-20 Hui Zhu <hui@codesourcery.com>
2734 Yao Qi <yao@codesourcery.com>
2737 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2738 and change address of sp and pc.
2740 2014-05-19 Tom Tromey <tromey@redhat.com>
2742 * gdbtypes.c (rank_function): Use XNEWVEC.
2743 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2745 2014-05-19 Doug Evans <dje@google.com>
2747 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2748 build_type_unit_groups and moved closer to only caller. Remove
2749 arguments. All references updated. Remove outdated .gdb_index
2751 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2752 build_type_psymtabs_1.
2754 2014-05-19 Doug Evans <dje@google.com>
2756 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2757 n_type_unit_groups, all_type_unit_groups. All uses removed.
2758 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2759 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2760 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2761 (add_type_unit_group_to_table): Delete.
2763 2014-05-19 Doug Evans <dje@google.com>
2765 * eval.c (evaluate_subexp_standard): Add some comments.
2767 2014-05-17 Doug Evans <xdje42@gmail.com>
2769 * progspace.c (remove_program_space): Delete, unused.
2770 * progspace.h (remove_program_space): Ditto.
2772 2014-05-17 Doug Evans <xdje42@gmail.com>
2774 * inferior.c (prune_inferiors): Fix comment.
2775 (remove_inferior_command): Call prune_program_spaces.
2777 2014-05-16 Doug Evans <dje@google.com>
2779 New command line option -D.
2781 * main.c (set_gdb_data_directory): New function.
2782 (captured_main): Recognize -D. Flag error for --data-directory "".
2783 Call set_gdb_data_directory.
2784 (print_gdb_help): Print --data-directory, -D.
2785 * main.h (set_gdb_data_directory): Declare.
2786 * top.c (staged_gdb_datadir): New static global.
2787 (set_gdb_datadir): Call set_gdb_data_directory
2788 (show_gdb_datadir): New function.
2789 (init_main): Update init of data-directory parameter.
2791 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2793 Import the "dirfd" gnulib module.
2794 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2795 * gnulib/aclocal.m4: Update.
2796 * gnulib/config.in: Update.
2797 * gnulib/configure: Update.
2798 * gnulib/import/Makefile.am: Update.
2799 * gnulib/import/Makefile.in: Update.
2800 * gnulib/import/dirfd.c: New.
2801 * gnulib/import/m4/dirfd.m4: New.
2802 * gnulib/import/m4/gnulib-cache.m4: Update.
2803 * gnulib/import/m4/gnulib-comp.m4: Update.
2805 2014-05-16 Pierre Muller <muller@sourceware.org>
2806 Yao Qi <yao@codesourcery.com>
2808 * valprint.c (print_wchar): Move the code on checking whether
2809 W is a printable wide char to the default branch of switch
2810 statement below. Call wchar_printable instead of gdb_iswprint.
2812 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2814 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2815 ldr.w and ldrd instructions.
2817 2014-05-15 Doug Evans <dje@google.com>
2819 * dwarf2read.c (read_structure_type): Delete outdated comments.
2821 2014-05-14 Tom Tromey <tromey@redhat.com>
2823 * macrocmd.c (print_macro_definition): Reindent.
2825 2014-05-13 Doug Evans <xdje42@gmail.com>
2827 * python/py-cmd.c (cmdpy_completer): Add comment.
2828 (completers): Make const.
2830 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2832 * infrun.c (resume): Remove should_resume (unused). Move up
2833 declaration of resume_ptid.
2835 2014-05-13 Tom Tromey <tromey@redhat.com>
2837 * language.h (unop_type_check): Remove.
2838 (binop_type_check): Don't declare.
2840 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2842 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2843 call to regcache_raw_collect.
2845 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2847 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2848 mi_console->quote as the quoting character.
2850 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2852 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2854 2014-04-29 Tom Tromey <tromey@redhat.com>
2856 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2857 "show debug varobj".
2859 2014-05-07 Kyle McMartin <kyle@redhat.com>
2861 Pushed by Joel Brobecker <brobecker@adacore.com>.
2862 * aarch64-tdep.c (aarch64_software_single_step): New function.
2863 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2864 with aarch64_software_single_step.
2866 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2870 2014-05-05 Keith Seitz <keiths@redhat.com>
2872 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2873 variable or history value is successfully parsed.
2875 2014-05-05 Yao Qi <yao@codesourcery.com>
2876 Pedro Alves <palves@redhat.com>
2878 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2879 address of blocks that intersects the requested range. Trim
2880 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2882 * ctf.c (ctf_xfer_partial): Likewise.
2884 2014-05-05 Yao Qi <yao@codesourcery.com>
2886 * printcmd.c (display_command): Remove the check to
2887 target_has_execution.
2889 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2891 * ppcobsd-nat.c: Include "obsd-nat.h".
2892 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2894 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2896 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2898 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2899 and 16-bit signed and unsigned arguments. Update comment.
2900 (stap_parse_probe_arguments): Extend code to handle such
2901 arguments. Use warning instead of complaint to notify about
2902 unrecognized bitness.
2904 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2906 PR breakpoints/16889
2907 * stap-probe.c (stap_parse_probe_arguments): Simplify
2908 check for non-prefixed probes (i.e., probes whose
2909 arguments do not start with "N@"). Always set the
2910 argument type to a sane value.
2912 2014-05-01 David Taylor <dtaylor@emc.com>
2914 * remote.c (compare_sections_command): Add -r option to compare
2915 all loadable read-only sections.
2917 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2919 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2920 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2922 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2923 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2924 Remove unused CORE_ADDR argument. Update all callers.
2926 2014-04-29 Pedro Alves <palves@redhat.com>
2928 * remote.c (struct packet_config) <detect>: Extend comment.
2929 (add_packet_config_cmd): Don't set the config's detect or support
2931 (init_all_packet_configs): Also initialize the config's 'detect'
2933 (reset_all_packet_configs_support): New function.
2934 (remote_open_1): Call reset_all_packet_configs_support instead of
2935 init_all_packet_configs.
2936 (_initialize_remote): Initialize all packet configs. Assert that
2937 all packets have an associated command, except a few known
2940 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2942 * dwarf2read.c (read_subrange_type): Handle dynamic
2943 DW_AT_lower_bound attributes.
2945 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2947 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2948 dynamic bounds before computing its upper bound.
2949 (ada_discrete_type_low_bound): Same as above with the lower bound.
2951 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2953 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2954 range types. Adjust the array handling implementation to
2955 take advantage of this change.
2956 (resolve_dynamic_range): New function, mostly extracted from
2957 resolve_dynamic_bounds.
2958 (resolve_dynamic_array): New function, mostly extracted from
2959 resolve_dynamic_bounds.
2960 (resolve_dynamic_bounds): Delete.
2961 (resolve_dynamic_type): Reimplement. Add handling of
2962 TYPE_CODE_RANGE types.
2964 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2966 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2967 handling of parallel ___XA types.
2969 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2971 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2972 unnecessary second call to static_unwrap_type.
2974 2014-04-27 Hui Zhu <hui@codesourcery.com>
2976 * stack.c (print_frame_info): Call do_gdb_disassembly with
2977 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2979 2014-04-26 Doug Evans <xdje42@gmail.com>
2981 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2983 2014-04-25 Pedro Alves <palves@redhat.com>
2986 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2987 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2988 and newline from built string.
2989 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2990 (linux_ptrace_attach_fail_reason): ... this.
2991 * linux-nat.c (linux_nat_attach): Adjust to use
2992 linux_ptrace_attach_fail_reason.
2994 2014-04-25 Pedro Alves <palves@redhat.com>
2996 * remote.c (struct remote_state): Remove multi_process_aware,
2997 non_stop_aware, cond_tracepoints, cond_breakpoints,
2998 breakpoint_commands, fast_tracepoints, static_tracepoints,
2999 install_in_trace, disconnected_tracing,
3000 enable_disable_tracepoints, string_tracing, and
3001 augmented_libraries_svr4_read fields.
3002 (remote_multi_process_p): Move further below in the file.
3003 (struct packet_config): Add comments.
3004 (update_packet_config): Delete function.
3005 (show_packet_config_cmd): Use packet_config_support.
3006 (add_packet_config_cmd): Use NULL as set callback.
3007 (packet_ok): "set remote foo-packet"-style commands no longer
3008 change config->supported -- adjust.
3009 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3010 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3011 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3012 (PACKET_QNonStop, PACKET_multiprocess_feature)
3013 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3014 (PACKET_DisconnectedTracing_feature)
3015 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3016 (set_remote_protocol_packet_cmd): Delete function.
3017 (packet_config_support, packet_support): New functions.
3018 (set_remote_protocol_Z_packet_cmd): Don't call
3019 update_packet_config.
3020 (remote_query_attached, remote_pass_signals)
3021 (remote_program_signals, remote_threads_info)
3022 (remote_threads_extra_info, remote_start_remote): Use
3024 (remote_start_remote): Use packet_config_support and
3026 (init_all_packet_configs): Set all packets to unknown support,
3027 instead of calling update_packet_config.
3028 (remote_check_symbols): Use packet_support.
3029 (remote_supported_packet): Unconditionally set the packet config's
3031 (remote_multi_process_feature, remote_non_stop_feature)
3032 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3033 (remote_breakpoint_commands_feature)
3034 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3035 (remote_install_in_trace_feature)
3036 (remote_disconnected_tracing_feature)
3037 (remote_enable_disable_tracepoint_feature)
3038 (remote_string_tracing_feature)
3039 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3040 (remote_protocol_features): Adjust to use remote_supported_packet
3041 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3042 "ConditionalTracepoints", "ConditionalBreakpoints",
3043 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3044 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3045 "EnableDisableTracepoints", and "tracenz".
3046 (remote_query_supported): Use packet_support.
3047 (remote_open_1): Adjust.
3048 (extended_remote_attach_1): Use packet_support. Switch on the
3049 result of packet_ok instead of checking whether the packet ended
3051 (remote_vcont_resume): Use packet_support.
3052 (remote_resume, remote_stop_ns, fetch_register_using_p)
3053 (remote_prepare_to_store, store_register_using_P)
3054 (check_binary_download, remote_write_bytes): Use packet_support.
3055 (remote_vkill): Use packet_support. Switch on the result of
3056 packet_ok instead of checking whether the packet ended up
3058 (extended_remote_supports_disable_randomization): Use
3060 (extended_remote_run): Switch on the result of packet_ok instead
3061 of checking whether the packet ended up disabled.
3062 (remote_insert_breakpoint, remote_remove_breakpoint)
3063 (remote_insert_watchpoint, remote_remove_watchpoint)
3064 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3066 (remote_search_memory): Use packet_config_support.
3067 (remote_get_thread_local_address, remote_get_tib_address)
3068 (remote_hostio_send_command, remote_can_execute_reverse): Use
3070 (remote_supports_cond_tracepoints)
3071 (remote_supports_cond_breakpoints)
3072 (remote_supports_fast_tracepoints)
3073 (remote_supports_static_tracepoints)
3074 (remote_supports_install_in_trace)
3075 (remote_supports_enable_disable_tracepoint)
3076 (remote_supports_string_tracing)
3077 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3078 the packet config says the feature is enabled or disabled.
3079 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3080 (remote_get_trace_status): Use packet_support.
3081 (remote_set_disconnected_tracing): Adjust to check whether the
3082 feature is enabled with packet_support.
3083 (remote_set_trace_buffer_size, remote_use_agent)
3084 (remote_can_use_agent, remote_supports_btrace): Use
3086 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3087 Use packet_config_support.
3088 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3089 the packet config says the feature is enabled or disabled.
3090 (set_range_stepping): Use packet_support.
3092 2014-04-25 Tom Tromey <tromey@redhat.com>
3094 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3097 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3099 * NEWS: Mention support for C99 variable length arrays.
3101 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3103 * ada-lang.c (standard_exc): Expand introductory comment.
3105 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3106 Walfred Tedeschi <walfred.tedeschi@intel.com>
3108 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3110 (amd64_linux_read_description): Add code to handle AVX512 xstate
3111 mask and return respective tdesc.
3112 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3113 and features/i386/x32-avx512-linux.c.
3114 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3115 (amd64_linux_core_read_description): Add code to handle AVX512
3116 xstate mask and return respective tdesc.
3117 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3118 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3120 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3121 (tdesc_amd64_avx512_linux): New prototype.
3122 (tdesc_x32_avx512_linux): Likewise.
3123 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3124 features/i386/x32-avx512.c.
3125 (amd64_ymm_avx512_names): New register names for pseudo
3127 (amd64_ymmh_avx512_names): New register names for raw registers
3129 (amd64_k_names): New register names for K registers.
3130 (amd64_zmmh_names): New register names for ZMM raw registers.
3131 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3132 (amd64_xmm_avx512_names): New register names for XMM16-31
3134 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3136 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3137 if feature is present.
3138 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3139 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3140 (AMD64_NUM_REGS): Adjust to new number of registers.
3141 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3142 registers supplied via XSTATE by AVX512 registers.
3143 (i386_linux_read_description): Add case for AVX512.
3144 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3145 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3146 (i386_linux_core_read_description): Add case for AVX512.
3147 (i386_linux_init_abi): Install supported register note section
3149 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3151 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3152 registers to be number of zmm7h + 1.
3153 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3154 * i386-tdep.c: Include features/i386/i386-avx512.c.
3155 (i386_zmm_names): Add ZMM pseudo register names array.
3156 (i386_zmmh_names): Add ZMM raw register names array.
3157 (i386_k_names): Add K raw register names array.
3158 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3159 registers. AVX512 has 16 more ZMM registers than there are YMM
3161 (i386_zmmh_regnum_p): Add function to look up register number of
3163 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3164 (i386_k_regnum_p): Likewise for K raw registers.
3165 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3166 registers added by AVX512.
3167 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3168 registers added by AVX512.
3169 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3171 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3172 (i386_pseudo_register_name): Add ZMM pseudo registers.
3173 (i386_zmm_type): Construct and return vector registers type for ZMM
3175 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3176 ZMM0-31 pseudo registers and K registers.
3177 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3178 and YMM16-31 registers from register cache.
3179 (i386_pseudo_register_write): Add code to write K, ZMM and
3181 (i386_register_reggroup_p): Add code to include/exclude AVX512
3182 registers in/from respective register groups.
3183 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3184 registers if feature is present in xcr0.
3185 (i386_gdbarch_init): Add code to initialize AVX512 feature
3186 variables in tdep structure, wire in pseudo registers and call
3187 initialize_tdesc_i386_avx512.
3188 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3190 (i386_regnum): Add AVX512 registers.
3191 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3192 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3193 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3194 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3196 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3197 (i386_ymm_avx512_regnum_p): Likewise.
3198 (i386_k_regnum_p): Likewise.
3199 (i386_zmm_regnum_p): Likewise.
3200 (i386_zmmh_regnum_p): Likewise.
3201 * i387-tdep.c : Update year in copyright notice.
3202 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3204 (XSAVE_YMM_AVX512_ADDR): New macro.
3205 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3207 (XSAVE_XMM_AVX512_ADDR): New macro.
3208 (xsave_avx512_k_offset): New table for K register offsets in
3210 (XSAVE_AVX512_K_ADDR): New macro.
3211 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3213 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3214 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3216 (i387_collect_xsave): Add code to collect AVX512 registers from
3218 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3219 of XMM16-31 registers.
3220 (I387_NUM_K_REGS): New define for number of K registers.
3221 (I387_K0_REGNUM): New define for K0 register number.
3222 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3223 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3224 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3226 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3227 (I387_XMM16_REGNUM): New define for XMM16 register number.
3228 (I387_YMM0_REGNUM): New define for YMM0 register number.
3229 (I387_KEND_REGNUM): New define for last K register number.
3230 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3231 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3233 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3235 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3237 * features/Makefile: Add AVX512 related files.
3238 * features/i386/32bit-avx512.xml: New file.
3239 * features/i386/64bit-avx512.xml: Likewise.
3240 * features/i386/amd64-avx512-linux.c: Likewise.
3241 * features/i386/amd64-avx512-linux.xml: Likewise.
3242 * features/i386/amd64-avx512.c: Likewise.
3243 * features/i386/amd64-avx512.xml: Likewise.
3244 * features/i386/i386-avx512-linux.c: Likewise.
3245 * features/i386/i386-avx512-linux.xml: Likewise.
3246 * features/i386/i386-avx512.c: Likewise.
3247 * features/i386/i386-avx512.xml: Likewise.
3248 * features/i386/x32-avx512-linux.c: Likewise.
3249 * features/i386/x32-avx512-linux.xml: Likewise.
3250 * features/i386/x32-avx512.c: Likewise.
3251 * features/i386/x32-avx512.xml: Likewise.
3252 * regformats/i386/amd64-avx512-linux.dat: New file.
3253 * regformats/i386/amd64-avx512.dat: Likewise.
3254 * regformats/i386/i386-avx512-linux.dat: Likewise.
3255 * regformats/i386/i386-avx512.dat: Likewise.
3256 * regformats/i386/x32-avx512-linux.dat: Likewise.
3257 * regformats/i386/x32-avx512.dat: Likewise.
3258 * NEWS: Add note about new support for AVX512.
3261 2014-04-23 Pedro Alves <palves@redhat.com>
3263 * breakpoint.c (insert_bp_location): Tolerate errors if the
3264 breakpoint is set in a user-loaded objfile.
3265 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3266 location is marked shlib_disabled. If the breakpoint is set in a
3267 user-loaded objfile is a GDB-side memory breakpoint, validate it
3268 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3269 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3271 * mem-break.c (memory_validate_breakpoint): New function.
3272 * objfiles.c (userloaded_objfile_contains_address_p): New
3274 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3275 * target.h (memory_validate_breakpoint): New declaration.
3277 2014-04-23 Pedro Alves <palves@redhat.com>
3279 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3280 the breakpoint is set in a shared library, only suppress
3281 errors for software breakpoints, not hardware breakpoints.
3283 2014-04-22 Pedro Alves <palves@redhat.com>
3285 * infrun.c (schedlock_applies): New function, factored out from
3286 find_thread_needs_step_over.
3287 (find_thread_needs_step_over): Use it.
3288 (switch_back_to_stepped_thread): Always clear trap_expected if the
3289 step over is finished. Return early if scheduler locking applies.
3290 Look for the stepping thread and a potential step-over thread with
3292 (currently_stepping_or_nexting_callback): Delete.
3294 2014-04-22 Nick Clifton <nickc@redhat.com>
3296 * NEWS: Mention that ARM sim now supports tracing.
3298 2014-04-22 Yao Qi <yao@codesourcery.com>
3300 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3302 * tracefile.c (tracefile_fetch_registers): ... it. New
3304 * tracefile.h (tracefile_fetch_registers): Declare.
3305 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3306 tracefile_fetch_registers.
3308 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3311 * windows-nat.c (thread_rec): Don't display a warning when
3312 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3313 fails for any reason, set th->suspended to -1, so that we don't
3314 try to resume such a thread. Also, don't return NULL in these
3315 cases, to avoid completely ruin the session due to "PC register is
3316 not available" error.
3317 (do_windows_fetch_inferior_registers): Check errors in
3318 GetThreadContext call.
3319 (windows_continue): Accept an additional argument KILLED; if not
3320 zero, ignore errors in the SetThreadContext call, since the
3321 inferior was killed and is shutting down.
3322 (windows_resume, get_windows_debug_event)
3323 (windows_create_inferior, windows_mourn_inferior)
3324 (windows_kill_inferior): All callers of windows_continue changed
3325 to adjust to its new calling sequence.
3327 2014-04-19 Yao Qi <yao@codesourcery.com>
3329 * ctf.c (ctf_open): Call post_create_inferior.
3331 2014-04-19 Yao Qi <yao@codesourcery.com>
3333 * ctf.c (handle_id): New static variable.
3334 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3335 value. Get the declaration of event "register" and get length
3336 of field "contents".
3338 2014-04-19 Yao Qi <yao@codesourcery.com>
3340 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3342 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3344 * valops.c (oload_method_static): Remove unnecessary argument
3345 METHOD. Update all callers.
3347 2014-04-18 Pedro alves <palves@redhat.com>
3348 Tom Tromey <tromey@redhat.com>
3351 * frame.c (get_prev_frame_1): Rename to ...
3352 (get_prev_frame_always): ... this, and make extern. Adjust.
3353 (skip_artificial_frames): Use get_prev_frame_always.
3354 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3355 (get_frame_unwind_stop_reason): Adjust to rename.
3356 * frame.h (get_prev_frame_always): Declare.
3357 * inline-frame.c: Include frame.h.
3358 (inline_frame_this_id): Use get_prev_frame_always.
3360 2014-04-18 Tristan Gingold <gingold@adacore.com>
3362 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3363 code by using bfd_mach_o_get_base_address.
3365 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3367 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3368 (spu_ax_pseudo_register_collect): New function.
3369 (spu_ax_pseudo_register_push_stack): Likewise.
3370 (spu_dwarf_reg_to_regnum): Likewise.
3371 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3373 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3375 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3376 Replace FRAME argument with FRAME_ID.
3377 * gdbarch.c, gdbarch.h: Regenerate.
3378 * findvar.c (default_value_from_register): Add GDBARCH argument;
3379 replace FRAME by FRAME_ID. No longer call get_frame_id.
3380 (value_from_register): Update call to gdbarch_value_from_register.
3381 * value.h (default_value_from_register): Update prototype.
3382 * s390-linux-tdep.c (s390_value_from_register): Update interface
3383 and call to default_value_from_register.
3384 * spu-tdep.c (spu_value_from_register): Likewise.
3386 * findvar.c (address_from_register): Remove TYPE argument.
3387 Do not call value_from_register; use gdbarch_value_from_register
3388 with null_frame_id instead.
3389 * value.h (address_from_register): Update prototype.
3390 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3391 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3392 address_from_register interface change.
3394 2014-04-17 Yao Qi <yao@codesourcery.com>
3396 * gdbtypes.h: Update comments to link to types and macros'
3399 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3401 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3403 2014-04-16 Keith Seitz <keiths@redhat.com>
3406 * dwarf2read.c (skip_one_die): Check that all relative-offset
3407 sibling DIEs fall within range of the current reader's buffer.
3408 (read_partial_die): Likewise.
3410 2014-04-16 Keith Seitz <keiths@redhat.com>
3413 * cp-namespace.c (lookup_symbol_file): If the type name of
3414 `this' is NULL, return immediately.
3416 2014-04-14 Keith Seitz <keiths@redhat.com>
3419 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3420 from symbol_matches_domain in symtab.c. All local callers
3421 of symbol_matches_domain updated.
3422 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3423 search STRUCT_DOMAIN.
3424 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3425 independently. standard_lookup will do that automatically.
3426 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3427 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3428 (cp_lookup_symbol_in_namespace): Likewise.
3429 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3430 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3431 may return a STRUCT_DOMAIN match.
3432 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3433 * cp-support.c: Include language.h.
3434 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3436 * psymtab.c (match_partial_symbol): Compare the requested
3437 domain with the symbol's domain directly.
3438 (lookup_partial_symbol): Likewise.
3439 * symtab.c (lookup_symbol_in_language): Explain when/why
3440 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3441 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3442 appropriate languages.
3443 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3444 and moved to ada-lang.c
3445 (lookup_block_symbol): Explain that this function only returns
3446 symbol matching the requested DOMAIN.
3447 Compare the requested domain with the symbol's domain directly.
3448 (iterate_over_symbols): Compare the requested domain with the
3449 symbol's domain directly.
3450 * symtab.h (symbol_matches_domain): Remove.
3452 2014-04-14 Tom Tromey <tromey@redhat.com>
3455 * c-exp.y (type_aggregate_p): New function.
3456 (qualified_name, classify_inner_name): Use it.
3457 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3458 and TYPE_TARGET_TYPE of an enum type.
3459 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3461 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3462 handle TYPE_DECLARED_CLASS.
3463 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3465 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3466 * valops.c (enum_constant_from_type): New function.
3467 (value_aggregate_elt): Use it.
3468 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3471 2014-04-14 Tom Tromey <tromey@redhat.com>
3473 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3474 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3476 * value.h (value_aggregate_elt): Update.
3478 2014-04-14 Tom Tromey <tromey@redhat.com>
3480 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3482 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3484 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3485 (evaluate_subexp_standard): Pass noside argument.
3486 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3487 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3488 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3489 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3490 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3492 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3494 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3495 points to a constant blob.
3497 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3499 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3500 property and store it as the high bound and flag the range accordingly.
3501 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3502 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3503 * gdbtypes.h (enum range_flags): New enum.
3504 (struct range_bounds): Add flags member.
3506 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3508 * c-typeprint.c (c_type_print_varspec_suffix): Added
3509 check for not yet resolved high bound. If unresolved, print
3510 "variable length" string to the console instead of random
3513 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3515 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3517 (ada_template_to_fixed_record_type_1): Likewise.
3518 (ada_to_fixed_type_1): Likewise.
3519 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3520 (cp_print_value): Likewise.
3521 * d-valprint.c (dynamic_array_type): Likewise.
3522 * findvar.c (address_of_variable): Likewise.
3523 * jv-valprint.c (java_value_print): Likewise.
3524 * valops.c (value_ind): Likewise.
3525 * value.c (coerce_ref): Likewise.
3527 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3529 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3530 value and retrieve the dynamic type size.
3532 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3534 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3535 passed to sizeof is dynamic evaluate the argument to compute the length.
3537 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3538 Joel Brobecker <brobecker@adacore.com>
3540 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3541 (dwarf2_evaluate_property): New function.
3542 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3543 * dwarf2read.c (attr_to_dynamic_prop): New function.
3544 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3546 * gdbtypes.c: Include dwarf2loc.h.
3547 (is_dynamic_type): New function.
3548 (resolve_dynamic_type): New function.
3549 (resolve_dynamic_bounds): New function.
3550 (get_type_length): New function.
3551 (check_typedef): Use get_type_length to compute type length.
3552 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3553 (TYPE_LOW_BOUND_KIND): New macro.
3554 (is_dynamic_type): New function prototype.
3555 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3556 to resolve dynamic properties of the type. Update comment.
3557 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3559 2014-04-14 Richard Henderson <rth@redhat.com>
3561 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3563 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3564 Doug Evans <xdje42@gmail.com>
3566 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3567 dereference TYPE_CODE_REF values.
3569 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3571 Revert the following changes due to regressions:
3573 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3574 (dwarf2_evaluate_property): New function.
3575 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3576 * dwarf2read.c (attr_to_dynamic_prop): New function.
3577 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3579 * gdbtypes.c: Include dwarf2loc.h.
3580 (is_dynamic_type): New function.
3581 (resolve_dynamic_type): New function.
3582 (resolve_dynamic_bounds): New function.
3583 (get_type_length): New function.
3584 (check_typedef): Use get_type_length to compute type length.
3585 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3586 (TYPE_LOW_BOUND_KIND): New macro.
3587 (is_dynamic_type): New function prototype.
3588 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3589 to resolve dynamic properties of the type. Update comment.
3590 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3592 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3593 passed to sizeof is dynamic evaluate the argument to compute the length.
3595 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3596 value and retrieve the dynamic type size.
3598 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3599 (ada_template_to_fixed_record_type_1): Likewise.
3600 (ada_to_fixed_type_1): Likewise.
3601 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3602 (cp_print_value): Likewise.
3603 * d-valprint.c (dynamic_array_type): Likewise.
3604 * eval.c (evaluate_subexp_with_coercion): Likewise.
3605 * findvar.c (address_of_variable): Likewise.
3606 * jv-valprint.c (java_value_print): Likewise.
3607 * valops.c (value_ind): Likewise.
3608 * value.c (coerce_ref): Likewise.
3610 * c-typeprint.c (c_type_print_varspec_suffix): Added
3611 check for not yet resolved high bound. If unresolved, print
3612 "variable length" string to the console instead of random
3615 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3616 property and store it as the high bound and flag the range accordingly.
3617 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3618 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3619 * gdbtypes.h (enum range_flags): New enum.
3620 (struct range_bounds): Add flags member.
3622 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3623 points to a constant blob.
3625 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3626 (evaluate_subexp_standard): Pass noside argument.
3627 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3628 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3629 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3630 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3631 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3633 2014-04-11 Keith Seitz <keiths@redhat.com>
3636 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3637 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3640 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3642 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3643 (evaluate_subexp_standard): Pass noside argument.
3644 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3645 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3646 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3647 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3648 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3650 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3652 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3653 points to a constant blob.
3655 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3657 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3658 property and store it as the high bound and flag the range accordingly.
3659 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3660 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3661 * gdbtypes.h (enum range_flags): New enum.
3662 (struct range_bounds): Add flags member.
3664 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3666 * c-typeprint.c (c_type_print_varspec_suffix): Added
3667 check for not yet resolved high bound. If unresolved, print
3668 "variable length" string to the console instead of random
3671 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3673 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3674 (ada_template_to_fixed_record_type_1): Likewise.
3675 (ada_to_fixed_type_1): Likewise.
3676 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3677 (cp_print_value): Likewise.
3678 * d-valprint.c (dynamic_array_type): Likewise.
3679 * eval.c (evaluate_subexp_with_coercion): Likewise.
3680 * findvar.c (address_of_variable): Likewise.
3681 * jv-valprint.c (java_value_print): Likewise.
3682 * valops.c (value_ind): Likewise.
3683 * value.c (coerce_ref): Likewise.
3685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3687 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3688 value and retrieve the dynamic type size.
3690 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3692 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3693 passed to sizeof is dynamic evaluate the argument to compute the length.
3695 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3697 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3698 (dwarf2_evaluate_property): New function.
3699 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3700 * dwarf2read.c (attr_to_dynamic_prop): New function.
3701 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3703 * gdbtypes.c: Include dwarf2loc.h.
3704 (is_dynamic_type): New function.
3705 (resolve_dynamic_type): New function.
3706 (resolve_dynamic_bounds): New function.
3707 (get_type_length): New function.
3708 (check_typedef): Use get_type_length to compute type length.
3709 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3710 (TYPE_LOW_BOUND_KIND): New macro.
3711 (is_dynamic_type): New function prototype.
3712 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3713 to resolve dynamic properties of the type. Update comment.
3714 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3718 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3719 declaring high/low bounds and change uses accordingly. Call
3720 create_range_type instead of create_static_range_type.
3721 * gdbtypes.c (create_range_type): New function.
3722 (create_range_type): Convert bounds into struct bound_prop and pass
3723 them to create_range_type.
3724 * gdbtypes.h (struct bound_prop): New struct.
3725 (create_range_type): New function prototype.
3726 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3727 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3728 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3730 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3732 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3734 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3735 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3736 * ada-lang.c: All uses of create_range_type updated.
3737 * coffread.c: All uses of create_range_type updated.
3738 * dwarf2read.c: All uses of create_range_type updated.
3739 * f-exp.y: All uses of create_range_type updated.
3740 * m2-valprint.c: All uses of create_range_type updated.
3741 * mdebugread.c: All uses of create_range_type updated.
3742 * stabsread.c: All uses of create_range_type updated.
3743 * valops.c: All uses of create_range_type updated.
3744 * valprint.c: All uses of create_range_type updated.
3746 2014-04-10 Pedro Alves <palves@redhat.com>
3748 * breakpoint.c (single_step_breakpoints)
3749 (single_step_gdbarch): Move up in the file.
3750 (one_breakpoint_xfer_memory): New function, factored out from ...
3751 (breakpoint_xfer_memory): ... here. Also process single-step
3754 2014-04-09 Tristan Gingold <gingold@adacore.com>
3756 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3758 (darwin_decode_exception_message): Free port only after use.
3760 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3762 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3763 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3764 when setting the size of call_length.
3766 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3768 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3769 dereference TYPE_CODE_REF values.
3771 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3773 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3774 end of warning message.
3776 2014-04-03 Doug Evans <dje@google.com>
3778 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3779 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3781 2014-04-02 Alan Modra <amodra@gmail.com>
3783 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3784 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3785 (struct symbol_file_add_from_memory_args): Add size field.
3786 (find_vdso_size): New function.
3787 (add_vsyscall_page): Attempt to find vdso size.
3789 2014-04-01 Doug Evans <dje@google.com>
3791 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3793 2014-04-01 Tristan Gingold <gingold@adacore.com>
3795 * darwin-nat.c (darwin_encode_reply): Add prototype.
3796 (darwin_decode_exception_message): Reply to unknown inferiors.
3797 (darwin_decode_message): Handle message by id. Ignore message
3798 to unknown inferior.
3799 (darwin_wait): Discard unknown messages, add debug trace.
3801 2014-03-31 Doug Evans <dje@google.com>
3803 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3806 2014-03-31 Doug Evans <dje@google.com>
3808 New option "set print symbol-loading".
3810 * solib.c (solib_read_symbols): Only print symbol loading messages
3812 (solib_add): If symbol loading is in "brief" mode, notify user
3813 symbols are being loaded.
3814 (reload_shared_libraries_1): Ditto.
3815 * symfile.c (print_symbol_loading_off): New static global.
3816 (print_symbol_loading_brief): New static global.
3817 (print_symbol_loading_full): New static global.
3818 (print_symbol_loading_enums): New static global.
3819 (print_symbol_loading): New static global.
3820 (print_symbol_loading_p): New function.
3821 (symbol_file_add_with_addrs): Only print symbol loading messages
3823 (_initialize_symfile): Register "print symbol-loading" set/show
3825 * symfile.h (print_symbol_loading_p): Declare.
3827 2014-03-30 Doug Evans <xdje42@gmail.com>
3829 * infrun.c (set_last_target_status): New function.
3830 (handle_inferior_event): Call it.
3832 2014-03-30 Doug Evans <xdje42@gmail.com>
3834 * inferior.h (enum stop_kind): Improve comment.
3836 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3838 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3839 a reference, strip the reference layer before calling
3840 the lang_ops value_has_mutated callback.
3842 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3844 Remove some globals from our parser.
3845 * language.c (unk_lang_parser): Add "struct parser_state"
3847 * language.h (struct language_defn) <la_parser>: Likewise.
3848 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3849 (initialize_expout): Add "struct parser_state" argument.
3850 Rewrite function to use the parser state.
3851 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3852 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3853 write_exp_elt_longcst, write_exp_elt_dblcst,
3854 write_exp_elt_decfloatcst, write_exp_elt_type,
3855 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3856 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3857 write_dollar_variable): Likewise.
3858 (parse_exp_in_context_1): Use parser state.
3859 (insert_type_address_space): Add "struct parser_state" argument.
3861 (increase_expout_size): New function.
3862 * parser-defs.h: Forward declare "struct language_defn" and
3863 "struct parser_state".
3864 (expout, expout_size, expout_ptr): Remove extern declarations.
3865 (parse_gdbarch, parse_language): Rewrite macro declarations to
3866 accept the parser state.
3867 (struct parser_state): New struct.
3868 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3869 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3870 write_exp_elt_decfloatcst, write_exp_elt_type,
3871 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3872 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3873 write_exp_msymbol, write_dollar_variable,
3874 mark_struct_expression, insert_type_address_space): Add "struct
3875 parser_state" argument.
3876 (increase_expout_size): New function.
3877 * utils.c (do_clear_parser_state): New function.
3878 (make_cleanup_clear_parser_state): Likewise.
3879 * utils.h (make_cleanup_clear_parser_state): New function
3881 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3882 Update calls to write_exp* in order to pass the parser state.
3883 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3884 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3885 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3886 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3887 * stap-probe.c (stap_parse_register_operand): Likewise.
3888 (stap_parse_single_operand): Likewise.
3889 (stap_parse_argument_1): Likewise.
3890 (stap_parse_argument): Use parser state.
3891 * stap-probe.h: Include "parser-defs.h".
3892 (struct stap_parse_info) <pstate>: New field.
3893 * c-exp.y (parse_type): Rewrite to use parser state.
3894 (yyparse): Redefine to c_parse_internal.
3895 (pstate): New global variable.
3896 (parse_number): Add "struct parser_state" argument.
3897 (write_destructor_name): Likewise.
3898 (type_exp): Update calls to write_exp* and similars in order to
3900 (exp1, exp, variable, qualified_name, space_identifier,
3901 typename, typebase): Likewise.
3902 (write_destructor_name, parse_number, lex_one_token,
3903 classify_name, classify_inner_name, c_parse): Add "struct
3904 parser_state" argument. Update function to use parser state.
3905 * c-lang.h: Forward declare "struct parser_state".
3906 (c_parse): Add "struct parser_state" argument.
3907 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3908 (yyparse): Redefine macro to ada_parse_internal.
3909 (pstate): New variable.
3910 (write_int, write_object_renaming, write_var_or_type,
3911 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3912 type_int, type_long, type_long_long, type_float, type_double,
3913 type_long_double, type_char, type_boolean, type_system_address):
3914 Add "struct parser_state" argument.
3915 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3916 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3917 var_or_type, aggregate, aggregate_component_list,
3918 positional_list, others, component_group,
3919 component_associations): Update calls to write_exp* and similar
3920 functions in order to use parser state.
3921 (ada_parse, write_var_from_sym, write_int,
3922 write_exp_op_with_string, write_object_renaming,
3923 find_primitive_type, write_selectors, write_ambiguous_var,
3924 write_var_or_type, write_name_assoc, type_int, type_long,
3925 type_long_long, type_float, type_double, type_long_double,
3926 type_char, type_boolean, type_system_address): Add "struct
3927 parser_state" argument. Adjust function to use parser state.
3928 * ada-lang.c (parse): Likewise.
3929 * ada-lang.h: Forward declare "struct parser_state".
3930 (ada_parse): Add "struct parser_state" argument.
3931 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3932 calls to both functions.
3933 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3935 (yyparse): Redefine macro to f_parse_internal.
3936 (pstate): New variable.
3937 (parse_number): Add "struct parser_state" argument.
3938 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3939 and similars in order to use parser state.
3940 (parse_number): Adjust code to use parser state.
3942 (f_parse): New function.
3943 * f-lang.h: Forward declare "struct parser_state".
3944 (f_parse): Add "struct parser_state" argument.
3945 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3947 (yyparse): Redefine macro for java_parse_internal.
3948 (pstate): New variable.
3949 (push_expression_name, push_expression_name, insert_exp): Add
3950 "struct parser_state" argument.
3951 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3952 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3953 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3954 PostIncrementExpression, PostDecrementExpression,
3955 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3956 UnaryExpressionNotPlusMinus, CastExpression,
3957 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3958 RelationalExpression, EqualityExpression, AndExpression,
3959 ExclusiveOrExpression, InclusiveOrExpression,
3960 ConditionalAndExpression, ConditionalOrExpression,
3961 ConditionalExpression, Assignment, LeftHandSide): Update
3962 calls to write_exp* and similars in order to use parser state.
3963 (parse_number): Ajust code to use parser state.
3965 (java_parse): New function.
3966 (push_variable): Add "struct parser_state" argument. Adjust
3967 code to user parser state.
3968 (push_fieldnames, push_qualified_expression_name,
3969 push_expression_name, insert_exp): Likewise.
3970 * jv-lang.h: Forward declare "struct parser_state".
3971 (java_parse): Add "struct parser_state" argument.
3972 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3974 (yyparse): Redefine macro to m2_parse_internal.
3975 (pstate): New variable.
3976 (type_exp, exp, fblock, variable, type): Update calls to
3977 write_exp* and similars to use parser state.
3979 (m2_parse): New function.
3980 * m2-lang.h: Forward declare "struct parser_state".
3981 (m2_parse): Add "struct parser_state" argument.
3982 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3983 * objc-lang.h: Forward declare "struct parser_state".
3984 (end_msglist): Add "struct parser_state" argument.
3985 * p-exp.y (parse_type): Rewrite macro to use parser state.
3986 (yyparse): Redefine macro to pascal_parse_internal.
3987 (pstate): New variable.
3988 (parse_number): Add "struct parser_state" argument.
3989 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3990 write_exp* and similars in order to use parser state.
3991 (parse_number, yylex): Adjust code to use parser state.
3992 (pascal_parse): New function.
3993 * p-lang.h: Forward declare "struct parser_state".
3994 (pascal_parse): Add "struct parser_state" argument.
3995 * go-exp.y (parse_type): Rewrite macro to use parser state.
3996 (yyparse): Redefine macro to go_parse_internal.
3997 (pstate): New variable.
3998 (parse_number): Add "struct parser_state" argument.
3999 (type_exp, exp1, exp, variable, type): Update calls to
4000 write_exp* and similars in order to use parser state.
4001 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4002 to use parser state.
4003 (go_parse): Likewise.
4004 * go-lang.h: Forward declare "struct parser_state".
4005 (go_parse): Add "struct parser_state" argument.
4007 2014-03-27 Doug Evans <dje@google.com>
4009 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4011 2014-03-27 Doug Evans <dje@google.com>
4013 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4014 Remove argument abbrev_section. All callers updated.
4016 2014-03-27 Doug Evans <dje@google.com>
4018 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4019 addr_base, ranges_base.
4021 2014-03-26 Keith Seitz <keiths@redhat.com>
4023 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4024 types, not VAR_DOMAIN.
4026 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4028 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4030 * features/nios2-linux.c: Regenerated.
4031 * features/nios2.c: Regenerated.
4033 2014-03-25 Pedro Alves <palves@redhat.com>
4035 * cli/cli-script.c (script_from_file): Force the interpreter to
4038 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4040 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4041 small stack allocation.
4043 2014-03-24 Tristan Gingold <gingold@adacore.com>
4045 * darwin-nat.c (exc_server): Remove unused prototype.
4046 (darwin_dump_message): Correctly display data on x86_64.
4047 (darwin_encode_reply): Fix style.
4048 Add comments and fix indentation.
4050 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4052 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4054 2014-03-22 Doug Evans <xdje42@gmail.com>
4056 * infcmd.c: Whitespace fixes.
4057 (interrupt_command): Merge two function comments into one.
4059 2014-03-22 Doug Evans <xdje42@gmail.com>
4061 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4064 2014-03-22 Yao Qi <yao@codesourcery.com>
4066 * remote.c (target_read_live_memory): Remove.
4067 (memory_xfer_live_readonly_partial): Rename it to
4068 remote_xfer_live_readonly_partial. Remove argument 'object'.
4069 All callers updated. Call remote_read_bytes_1
4070 instead of target_read_live_memory.
4071 * tracepoint.c (set_traceframe_number): Remove.
4072 (make_cleanup_restore_traceframe_number): Likewise .
4073 * tracepoint.h (set_traceframe_number): Remove declaration.
4074 (make_cleanup_restore_traceframe_number): Likewise.
4076 2014-03-22 Yao Qi <yao@codesourcery.com>
4078 * remote.c (remote_read_bytes): Move code on reading from the
4080 (remote_read_bytes_1): ... here. New function.
4082 2014-03-22 Yao Qi <yao@codesourcery.com>
4084 * ctf.c (ctf_xfer_partial): Check the return value of
4085 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4086 return TARGET_XFER_UNAVAILABLE.
4087 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4088 * target.c (target_read_live_memory): Move it to remote.c.
4089 (memory_xfer_live_readonly_partial): Likewise.
4090 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4091 * remote.c (target_read_live_memory): Moved from target.c.
4092 (memory_xfer_live_readonly_partial): Likewise.
4093 (remote_read_bytes): Factored out from
4094 memory_xfer_partial_1.
4096 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4098 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4101 2014-03-21 Pedro Alves <palves@redhat.com>
4103 * infrun.c (normal_stop): Extend comment.
4105 2014-03-21 Hui Zhu <hui@codesourcery.com>
4106 Pedro Alves <palves@redhat.com>
4108 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4110 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4111 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4112 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4114 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4116 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4117 `z' formatted output modifier.
4119 2014-03-20 Tom Tromey <tromey@redhat.com>
4120 Sergio Durigan Junior <sergiodj@redhat.com>
4122 * probe.c (parse_probes): Turn assert into an ordinary error.
4123 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4124 exceptions when parsing probes. Rearrange the code for clarity.
4126 2014-03-20 Tom Tromey <tromey@redhat.com>
4129 * top.c (execute_command): Only dispatch events if the command
4132 2014-03-20 Tom Tromey <tromey@redhat.com>
4135 * infcall.c: Include event-top.h.
4136 (run_inferior_call): Call async_disable_stdin if needed.
4138 2014-03-20 Pedro Alves <palves@redhat.com>
4140 * infrun.c (prepare_to_proceed): Delete.
4141 (thread_still_needs_step_over): New function.
4142 (find_thread_needs_step_over): New function.
4143 (proceed): If the current thread needs a step-over, set its
4144 steping_over_breakpoint flag. Adjust to use
4145 find_thread_needs_step_over instead of prepare_to_proceed.
4146 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4147 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4149 (switch_back_to_stepped_thread): Step over breakpoints of all
4150 threads not the stepping thread, before switching back to the
4153 2014-03-20 Pedro Alves <palves@redhat.com>
4155 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4157 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4158 * infrun.c (saved_singlestep_ptid)
4159 (stepping_past_singlestep_breakpoint): Delete.
4160 (resume): Remove stepping_past_singlestep_breakpoint handling.
4161 (proceed): Store the prev_pc of the stepping thread too.
4162 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4164 (enum infwait_states): Delete infwait_thread_hop_state.
4165 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4167 (handle_inferior_event): Adjust.
4168 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4169 handling and the thread-hop code. Before removing single-step
4170 breakpoints, check whether the thread hit a single-step breakpoint
4171 of another thread. If it did, the trap is not a random signal.
4172 (switch_back_to_stepped_thread): If the event thread hit a
4173 single-step breakpoint, unblock it before switching to the
4174 stepping thread. Handle the case of the stepped thread having
4176 (keep_going): Handle the case of the current thread moving past a
4177 single-step breakpoint.
4179 2014-03-20 Pedro Alves <palves@redhat.com>
4182 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4183 are being stepped over.
4184 (breakpoint_address_match): Make extern.
4185 * breakpoint.h (breakpoint_address_match): New declaration.
4186 * inferior.h (stepping_past_instruction_at): New declaration.
4187 * infrun.c (struct step_over_info): New type.
4188 (step_over_info): New global.
4189 (set_step_over_info, clear_step_over_info)
4190 (stepping_past_instruction_at): New functions.
4191 (handle_inferior_event): Clear the step-over info when
4192 trap_expected is cleared.
4193 (resume): Remove now stale comment.
4194 (clear_proceed_status): Clear step-over info.
4195 (proceed): Adjust step-over handling to set or clear the step-over
4196 info instead of removing all breakpoints.
4197 (handle_signal_stop): When setting up a thread-hop, don't remove
4199 (stop_stepping): Clear step-over info.
4200 (keep_going): Adjust step-over handling to set or clear step-over
4201 info and then always inserting breakpoints, instead of removing
4202 all breakpoints when stepping over one.
4204 2014-03-20 Pedro Alves <palves@redhat.com>
4206 * infrun.c (previous_inferior_ptid): Adjust comment.
4207 (deferred_step_ptid): Delete.
4208 (infrun_thread_ptid_changed, prepare_to_proceed)
4209 (init_wait_for_inferior): Adjust.
4210 (handle_signal_stop): Delete deferred_step_ptid handling.
4212 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 * defs.h (sync_quit_force_run): New declaration.
4216 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4217 * event-top.c (async_sigterm_handler): New declaration.
4218 (async_sigterm_token): New variable.
4219 (async_init_signals): Create also async_sigterm_token.
4220 (async_sigterm_handler): New function.
4221 (sync_quit_force_run): New variable.
4222 (handle_sigterm): Replace quit_force call by other calls.
4223 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4225 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4227 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4228 offset into SPE pseudo registers.
4230 2014-03-18 Pedro Alves <palves@redhat.com>
4233 * inferior.h (print_stop_event): Declare.
4234 * infrun.c (print_stop_event): New, factored out from ...
4235 (normal_stop): ... this.
4236 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4237 of bpstat_print/print_stack_frame.
4239 2014-03-17 Tom Tromey <tromey@redhat.com>
4241 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4243 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4245 * ada-lang.c (decode_constrained_packed_array): Perform a
4246 minimal coercion for reference with coerce_ref instead of
4249 2014-03-17 Tristan Gingold <gingold@adacore.com>
4251 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4252 (darwin_solib_create_inferior_hook): Emit a warning if version
4255 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4257 * python/py-value.c (get_field_flag): Cast flag_name argument to
4258 PyObject_GetAttrString to support Python 2.4.
4260 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4262 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4263 (Global Maintainers): Remove Jan Kratochvil.
4265 2014-03-14 Pedro Alves <palves@redhat.com>
4267 * inferior.h (terminal_ours_for_output): Rename to ...
4268 (child_terminal_ours_for_output): ... this.
4269 (terminal_save_ours): Rename to ...
4270 (child_terminal_save_ours): ... this.
4271 (terminal_ours): Rename to ...
4272 (child_terminal_ours): ... this.
4273 (terminal_inferior): Rename to ...
4274 (child_terminal_inferior): ... this.
4275 (terminal_init_inferior): Rename to ...
4276 (child_terminal_init_inferior): ... this.
4277 (terminal_init_inferior_with_pgrp): Rename to ...
4278 (child_terminal_init_inferior_with_pgrp): ... this.
4279 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4280 (child_terminal_init_with_pgrp): ... this.
4281 (terminal_save_ours): Rename to ...
4282 (child_terminal_save_ours): ... this.
4283 (terminal_init_inferior): Rename to ...
4284 (child_terminal_init): ... this. Adjust.
4285 (terminal_inferior): Rename to ...
4286 (child_terminal_inferior): ... this.
4287 (terminal_ours_for_output): Rename to ...
4288 (child_terminal_ours_for_output): ... this. Adjust.
4289 (terminal_ours): Rename to ...
4290 (child_terminal_ours): ... this.
4291 (terminal_ours_1): Rename to ...
4292 (child_terminal_ours_1): ... this. Adjust.
4293 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4294 * windows-nat.c (do_initial_windows_stuff): Adjust.
4295 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4296 (gnu_terminal_init): ... this. Adjust.
4297 (gnu_target): Adjust.
4298 * inf-child.c (inf_child_target): Adjust.
4300 2014-03-13 Doug Evans <xdje42@gmail.com>
4303 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4306 2014-03-13 Doug Evans <xdje42@gmail.com>
4308 * value.c (record_latest_value): Call release_value_or_incref
4309 instead of release_value.
4311 2014-03-13 Pedro Alves <palves@redhat.com>
4313 * procfs.c (procfs_target): Don't override to_shortname,
4314 to_longname or to_doc.
4316 2014-03-13 Pedro Alves <palves@redhat.com>
4318 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4319 Unix in user visible strings.
4321 2014-03-12 Stan Shebs <stan@codesourcery.com>
4323 * gdbtypes.h: Annotate comments for Doxygen, add a page
4324 block comment with some general info.
4326 2014-03-12 Pedro Alves <palves@redhat.com>
4328 * infcmd.c (prepare_execution_command): New function, factored out
4329 from several execution commands.
4330 (run_command_1, continue_command, step_1, jump_command)
4331 (signal_command, until_command, advance_command, finish_command)
4332 (attach_command): Use prepare_execution_command.
4334 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4336 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4339 (struct arm_linux_thread_points): Removed.
4340 (struct arm_linux_process_info): New.
4341 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4342 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4343 (arm_linux_find_breakpoints_by_tid): Removed.
4344 (struct arch_lwp_info): New.
4345 (arm_linux_find_process_pid): New functions.
4346 (arm_linux_add_process): New functions.
4347 (arm_linux_process_info_get): New functions.
4348 (arm_linux_forget_process): New function.
4349 (arm_linux_get_debug_reg_state): New function.
4350 (struct update_registers_data): New.
4351 (update_registers_callback): New function.
4352 (arm_linux_insert_hw_breakpoint1): Updated.
4353 (arm_linux_remove_hw_breakpoint1): Updated.
4354 (arm_linux_insert_hw_breakpoint): Updated.
4355 (arm_linux_remove_hw_breakpoint): Updated.
4356 (arm_linux_insert_watchpoint): Updated.
4357 (arm_linux_remove_watchpoint): Updated.
4358 (arm_linux_new_thread): Updated.
4359 (arm_linux_prepare_to_resume): New function.
4360 (arm_linux_new_fork): New function.
4361 (_initialize_arm_linux_nat): Updated.
4363 2014-03-12 Pedro Alves <palves@redhat.com>
4365 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4367 2014-03-12 Tom Tromey <tromey@redhat.com>
4369 * inf-child.c (return_zero): New function.
4370 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4371 * aix-thread.c (aix_thread_inferior_created): New function.
4372 (aix_thread_attach): Remove.
4373 (init_aix_thread_ops): Don't set to_attach.
4374 (_initialize_aix_thread): Register inferior_created observer.
4375 * corelow.c (init_core_ops): Don't set to_attach or
4377 * exec.c (init_exec_ops): Don't set to_attach or
4379 * infcmd.c (run_command_1): Use find_run_target. Make direct
4381 (attach_command): Use find_attach_target. Make direct target
4383 * record-btrace.c (init_record_btrace_ops): Don't set
4385 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4387 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4388 set to_create_inferior.
4389 * target.c (complete_target_initialization): Add assertion.
4390 (target_create_inferior): Remove.
4391 (find_default_attach, find_default_create_inferior): Remove.
4392 (find_attach_target, find_run_target): New functions.
4393 (find_default_is_async_p, find_default_can_async_p)
4394 (target_supports_non_stop, target_attach): Remove.
4395 (init_dummy_target): Don't set to_create_inferior or
4396 to_supports_non_stop.
4397 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4398 TARGET_DEFAULT_FUNC.
4399 <to_create_inferior>: Add comment.
4400 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4401 TARGET_DEFAULT_RETURN.
4402 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4403 (find_attach_target, find_run_target): Declare.
4404 (target_create_inferior): Remove.
4405 (target_has_execution_1): Update comment.
4406 (target_supports_non_stop): Remove.
4407 * target-delegates.c: Rebuild.
4409 2014-03-12 Pedro Alves <palves@redhat.com>
4411 * inf-child.h: Update comment to not mention Unix.
4413 2014-03-12 Pedro Alves <palves@redhat.com>
4415 * inf-child.c: Update top comment to not mention Unix. Add
4416 generic comment describing how this target is meant to be used.
4417 (inf_child_post_attach, inf_child_post_startup_inferior)
4418 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4421 2014-03-12 Pedro Alves <palves@redhat.com>
4423 * nto-procfs.c: Include inf-child.h.
4424 (procfs_ops): Delete global.
4425 (procfs_can_run): Delete method.
4426 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4427 target pointer instead of referencing procfs_ops.
4428 (procfs_prepare_to_store): Delete.
4429 (init_procfs_ops): Delete function.
4430 (procfs_target): New function, based on init_procfs_ops, but
4431 inherit inf_child_target.
4432 (_initialize_procfs): Use procfs_target.
4434 2014-03-12 Pedro Alves <palves@redhat.com>
4436 * windows-nat.c: Include inf-child.h.
4437 (windows_ops): Delete global.
4438 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4440 (init_windows_ops): Delete function.
4441 (windows_target): New function, based on init_windows_ops, but
4442 inherit inf_child_target.
4443 (_initialize_windows_nat): Use windows_target. Install x86
4444 specific target methods here.
4446 2014-03-10 Doug Evans <xdje42@gmail.com>
4448 * guile/guile.c (call_initialize_gdb_module): New function.
4449 (initialize_guile): Replace call to scm_init_guile with call to
4452 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4454 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4455 in call to TYPE_CODE macro.
4457 2014-03-10 Jerome Guitton <guitton@adacore.com>
4459 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4460 Resolve tagged types to full view.
4462 2014-03-10 Hui Zhu <hui@codesourcery.com>
4464 * target.h (target_insert_breakpoint): Remove "hardware" from its
4467 2014-03-07 Doug Evans <dje@google.com>
4469 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4471 2014-03-07 Doug Evans <dje@google.com>
4473 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4474 Remove unused local comp_dir_attr. Assert exactly one of
4475 stub_comp_unit_die, stub_comp_dir is non-NULL.
4477 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4479 * target.h (complete_target_initialization, add_target):
4482 2014-03-07 Pedro Alves <palves@redhat.com>
4484 * go32-nat.c: Include inf-child.h.
4485 (go32_ops): Delete global.
4486 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4488 (go32_create_inferior): Push the passed in target pointer instead
4489 of referencing go32_ops.
4490 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4491 (go32_target): New function, based on init_go32_ops, but inherit
4493 (_initialize_go32_nat): Use go32_target. Move parts of
4496 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4498 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4499 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4500 SYMBOL_VALUE_ADDRESS.
4501 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4503 2014-03-06 Yao Qi <yao@codesourcery.com>
4505 * breakpoint.c (get_tracepoint_by_number): Remove argument
4506 optional_p. All callers updated. Adjust comments. Update
4508 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4510 2014-03-06 Yao Qi <yao@codesourcery.com>
4512 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4513 early if get_number returns zero. Use 'p' instead of 'args'.
4515 2014-03-06 Yao Qi <yao@codesourcery.com>
4517 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4520 2014-03-06 Yao Qi <yao@codesourcery.com>
4522 PR breakpoints/16508
4523 * tracepoint.c (check_trace_running): New function.
4524 (trace_find_command): Move code to check_trace_running and
4525 call check_trace_running.
4526 (trace_find_pc_command): Likewise.
4527 (trace_find_tracepoint_command): Likewise.
4528 (trace_find_line_command): Likewise.
4529 (trace_find_range_command): Likewise.
4530 * tracepoint.h (check_trace_running): Likewise.
4531 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4533 2014-03-06 Yao Qi <yao@codesourcery.com>
4535 * target.h (struct target_ops) <to_traceframe_info>: Use
4536 TARGET_DEFAULT_NORETURN (tcomplain ()).
4537 * target-delegates.c: Regenerated.
4539 2014-03-05 Pedro Alves <palves@redhat.com>
4542 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4543 void. Update comment.
4544 (dcache_xfer_memory): Delete.
4545 (dcache_read_memory_partial): New, based on the read bits of
4547 (dcache_update): Add status parameter. Use ULONGEST for len, and
4548 adjust. Discard cache lines if the reason for the update was
4550 * dcache.h (dcache_xfer_memory): Delete declaration.
4551 (dcache_read_memory_partial): New declaration.
4552 (dcache_update): Update prototype.
4553 * target.c (raw_memory_xfer_partial): Update the dcache here.
4554 (memory_xfer_partial_1): Don't handle dcache writes here.
4556 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4558 * remote-sim.c (gdbsim_load): Add const to prog.
4560 2014-03-03 Tom Tromey <tromey@redhat.com>
4562 * elfread.c (probe_key): Change to bfd_data.
4563 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4564 now per-BFD, not per-objfile.
4565 * stap-probe.c (stap_probe_destroy): Update comment.
4566 (handle_stap_probe): Allocate on the per-BFD obstack.
4568 2014-03-03 Tom Tromey <tromey@redhat.com>
4570 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4571 * breakpoint.c (create_longjmp_master_breakpoint): Use
4573 (add_location_to_breakpoint, bkpt_probe_insert_location)
4574 (bkpt_probe_remove_location): Update.
4575 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4576 * elfread.c (elf_symfile_relocate_probe): Remove.
4577 (elf_probe_fns): Update.
4578 (insert_exception_resume_breakpoint): Change type of "probe"
4579 parameter to bound_probe.
4580 (check_exception_resume): Update.
4581 * objfiles.c (objfile_relocate1): Don't relocate probes.
4582 * probe.c (bound_probe_s): New typedef.
4583 (parse_probes): Use get_probe_address. Set sal's objfile.
4584 (find_probe_by_pc): Return a bound_probe.
4585 (collect_probes): Return a VEC(bound_probe_s).
4586 (compare_probes): Update.
4587 (gen_ui_out_table_header_info): Change type of "probes"
4589 (info_probes_for_ops): Update.
4590 (get_probe_address): New function.
4591 (probe_safe_evaluate_at_pc): Update.
4592 * probe.h (struct probe_ops) <get_probe_address>: New field.
4593 <set_semaphore, clear_semaphore>: Add objfile parameter.
4594 (struct probe) <objfile>: Remove field.
4596 <address>: Update comment.
4597 (struct bound_probe): New.
4598 (find_probe_by_pc): Return a bound_probe.
4599 (get_probe_address): Declare.
4600 * solib-svr4.c (struct probe_and_action) <address>: New field.
4601 (hash_probe_and_action, equal_probe_and_action): Update.
4602 (register_solib_event_probe): Add address parameter.
4603 (solib_event_probe_at): Update.
4604 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4606 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4607 (stap_get_probe_address): New function.
4608 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4609 (compile_probe_arg): Update.
4610 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4612 (handle_stap_probe): Don't relocate the probe.
4613 (stap_relocate): Remove.
4614 (stap_gen_info_probes_table_values): Update.
4615 (stap_probe_ops): Remove stap_relocate.
4616 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4617 (debug_sym_probe_fns): Update.
4618 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4619 * symtab.c (init_sal): Use memset.
4620 * symtab.h (struct symtab_and_line) <objfile>: New field.
4621 * tracepoint.c (start_tracing, stop_tracing): Update.
4623 2014-03-03 Tom Tromey <tromey@redhat.com>
4625 * probe.h (parse_probes, find_probe_by_pc)
4626 (find_probes_in_objfile): Fix comments.
4628 2014-03-02 Doug Evans <xdje42@gmail.com>
4630 * infrun.c (handle_signal_stop): Replace test for
4631 TARGET_WAITKIND_STOPPED with an assert.
4633 2014-03-02 Doug Evans <xdje42@gmail.com>
4635 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4637 2014-03-02 Doug Evans <xdje42@gmail.com>
4639 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4641 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4643 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4645 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4647 * i386obsd-nat.c: Include "obsd-nat.h".
4648 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4650 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4652 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4654 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4656 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4658 * mips64obsd-nat.c: Include "obsd-nath".
4659 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4661 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4663 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4665 * amd64obsd-nat.c: Include "obsd-nat,h.
4666 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4668 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4670 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4672 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4673 (find_overload_match): Update call to find_oload_champ.
4674 (find_oload_champ_namespace_loop): Likewise
4676 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4678 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4680 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4681 * config/sparc/obsd64.mh: New file.
4682 * sparc64obsd-nat.c: New file.
4684 * obsd-nat.h: New file.
4685 * obsd-nat.c: New file.
4686 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4687 (ALLDEPFILES): Add obsd-nat.c.
4689 2014-02-28 Tom Tromey <tromey@redhat.com>
4691 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4692 * cli-out.h (cli_ui_out_impl): Now const.
4693 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4694 * ui-out.c (struct ui_out) <impl>: Now const.
4695 (default_ui_out_impl): Now const.
4696 (ui_out_new): Make 'impl' parameter const.
4697 * ui-out.h (ui_out_new): Update.
4699 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4701 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4703 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4705 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4707 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4709 Additional PR 8882 fix.
4710 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4712 2014-02-27 Pedro Alves <palves@redhat.com>
4714 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4717 2014-02-27 Pedro Alves <palves@redhat.com>
4720 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4721 * nat/linux-waitpid.c: Include string.h.
4722 (status_to_str): Moved here and made extern.
4723 * nat/linux-waitpid.h (status_to_str): New declaration.
4725 2014-02-27 Hui Zhu <hui@codesourcery.com>
4728 * infrun.c (ptid_match): Move ...
4729 * common/ptid.c (ptid_match): ... here.
4730 * inferior.h (ptid_match): Move ...
4731 * common/ptid.h (ptid_match): ... here.
4733 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4735 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4736 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4739 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4741 * obsd-tdep.c (obsd_auxv_parse): New function.
4742 (obsd_init_abi): Set auxv_parse.
4744 * gdbarch.sh (auxv_parse): New.
4745 * gdbarch.h: Regenerated.
4746 * gdbarch.c: Regenerated.
4747 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4749 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4751 * guile/scm-value.c (gdbscm_history_append_x): New function.
4752 (value_functions): Add it.
4754 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4756 * dwarf2read.c (attr_value_as_address): New function.
4757 (dwarf2_find_base_address, read_call_site_scope): Use
4758 attr_value_as_address in place of DW_ADDR.
4759 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4760 the low and high addresses. Slight rework of the handling
4761 of the high pc being a constant form, and limit it to
4762 DWARF verson 4 or higher.
4763 (dwarf2_record_block_ranges): Likewise.
4764 (read_partial_die): Likewise.
4765 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4767 2014-02-26 Tom Tromey <tromey@redhat.com>
4769 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4771 2014-02-26 Tom Tromey <tromey@redhat.com>
4773 * elfread.c (elf_read_minimal_symbols): Return early if
4774 minimal symbols have already been read. Add "ei" parameter.
4775 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4776 * minsyms.c (prim_record_minimal_symbol_full): Update.
4777 * objfiles.h (struct objstats) <n_minsyms>: Move...
4778 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4779 * symmisc.c (print_objfile_statistics): Update.
4781 2014-02-26 Tom Tromey <tromey@redhat.com>
4783 * elfread.c (elf_read_minimal_symbols): New function, from
4785 (elf_symfile_read): Call it.
4787 2014-02-26 Tom Tromey <tromey@redhat.com>
4789 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4790 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4791 (lookup_minimal_symbol_solib_trampoline)
4792 (lookup_minimal_symbol_by_pc_section_1)
4793 (lookup_minimal_symbol_and_objfile): Update.
4794 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4795 Don't allocate a minimal symbol if minsyms have already been read.
4796 (build_minimal_symbol_hash_tables): Update.
4797 (install_minimal_symbols): Do nothing if minsyms already read.
4798 Use the per-BFD obstack.
4799 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4800 * objfiles.c (allocate_objfile): Call
4801 terminate_minimal_symbol_table later.
4802 (have_minimal_symbols): Update.
4803 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4804 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4805 Move from struct objfile.
4806 <minsyms_read>: New field.
4807 (struct objfile) <msymbols, minimal_symbol_count,
4808 msymbol_hash, msymbol_demangled_hash>: Move.
4809 (ALL_OBJFILE_MSYMBOLS): Update.
4810 * symfile.c (read_symbols): Set minsyms_read.
4811 (reread_symbols): Update.
4812 * symmisc.c (dump_objfile, dump_msymbols): Update.
4814 2014-02-26 Tom Tromey <tromey@redhat.com>
4816 * minsyms.c (msymbols_sort): Remove.
4817 * minsyms.h (msymbols_sort): Remove.
4818 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4819 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4820 * elfread.c (elf_symtab_read): Don't add section offsets.
4821 * xcoffread.c (record_minimal_symbol): Don't add section offset
4822 to minimal symbol address.
4823 * somread.c (text_offset, data_offset): Remove.
4824 (som_symtab_read): Don't add section offsets to minimal symbol
4826 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4827 Don't add section offsets to minimal symbols.
4828 * coffread.c (coff_symtab_read): Don't add section offsets
4829 to minimal symbol addresses.
4830 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4831 to minimal symbol addresses.
4832 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4833 section offset to minimal symbol addresses.
4834 * mdebugread.c (parse_partial_symbols): Don't add section
4835 offset to minimal symbol addresses.
4836 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4837 offset to minimal symbol addresses.
4839 2014-02-26 Tom Tromey <tromey@redhat.com>
4841 * ada-lang.c (ada_main_name): Update.
4842 (ada_add_standard_exceptions): Update.
4843 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4844 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4845 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4846 * auxv.c (ld_so_xfer_auxv): Update.
4847 * avr-tdep.c (avr_scan_prologue): Update.
4848 * ax-gdb.c (gen_var_ref): Update.
4849 * blockframe.c (get_pc_function_start)
4850 (find_pc_partial_function_gnu_ifunc): Update.
4851 * breakpoint.c (create_overlay_event_breakpoint)
4852 (create_longjmp_master_breakpoint)
4853 (create_std_terminate_master_breakpoint)
4854 (create_exception_master_breakpoint): Update.
4855 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4856 * c-valprint.c (c_val_print): Update.
4857 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4858 * common/agent.c (agent_look_up_symbols): Update.
4859 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4860 * dwarf2loc.c (call_site_to_target_addr): Update.
4861 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4862 * elfread.c (elf_gnu_ifunc_record_cache)
4863 (elf_gnu_ifunc_resolve_by_got): Update.
4864 * findvar.c (default_read_var_value): Update.
4865 * frame.c (inside_main_func): Update.
4866 * frv-tdep.c (frv_frame_this_id): Update.
4867 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4868 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4870 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4871 (hppa_hpux_find_dummy_bpaddr): Update.
4872 * hppa-tdep.c (hppa_symbol_address): Update.
4873 * infcmd.c (until_next_command): Update.
4874 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4876 * linespec.c (minsym_found, add_minsym): Update.
4877 * linux-nat.c (get_signo): Update.
4878 * linux-thread-db.c (inferior_has_bug): Update.
4879 * m32c-tdep.c (m32c_return_value)
4880 (m32c_m16c_address_to_pointer): Update.
4881 * m32r-tdep.c (m32r_frame_this_id): Update.
4882 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4883 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4884 * maint.c (maintenance_translate_address): Update.
4885 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4886 (frob_address): New function.
4887 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4888 frob_address. Rename parameter to "pc_in".
4889 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4891 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4893 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4894 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4895 * objc-lang.c (find_objc_msgsend): Update.
4896 * objfiles.c (objfile_relocate1): Update.
4897 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4898 * p-valprint.c (pascal_val_print): Update.
4899 * parse.c (write_exp_msymbol): Update.
4900 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4901 (ppc_elfv2_skip_entrypoint): Update.
4902 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4903 * printcmd.c (build_address_symbolic, msym_info)
4904 (address_info): Update.
4905 * proc-service.c (ps_pglobal_lookup): Update.
4906 * psymtab.c (find_pc_sect_psymtab_closer)
4907 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4908 Change msymbol parameter to bound_minimal_symbol.
4909 * ravenscar-thread.c (get_running_thread_id): Update.
4910 * remote.c (remote_check_symbols): Update.
4911 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4913 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4914 * solib-dsbt.c (lm_base): Update.
4915 * solib-frv.c (lm_base, main_got): Update.
4916 * solib-irix.c (locate_base): Update.
4917 * solib-som.c (som_solib_create_inferior_hook)
4918 (link_map_start): Update.
4919 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4920 * solib-svr4.c (elf_locate_base, enable_break): Update.
4921 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4922 (flush_ea_cache): Update.
4923 * stabsread.c (define_symbol, scan_file_globals): Update.
4924 * stack.c (find_frame_funname): Update.
4925 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4926 (debug_qf_find_pc_sect_symtab): Update.
4927 * symfile.c (simple_read_overlay_table)
4928 (simple_overlay_update): Update.
4929 * symfile.h (struct quick_symbol_functions)
4930 <find_pc_sect_symtab>: Change type of msymbol to
4931 bound_minimal_symbol.
4932 * symmisc.c (dump_msymbols): Update.
4933 * symtab.c (find_pc_sect_symtab_via_partial)
4934 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4935 (search_symbols, print_msymbol_info): Update.
4936 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4937 (MSYMBOL_VALUE_ADDRESS): Redefine.
4938 (BMSYMBOL_VALUE_ADDRESS): New macro.
4939 * tracepoint.c (scope_info): Update.
4940 * tui/tui-disasm.c (tui_find_disassembly_address)
4941 (tui_get_begin_asm_address): Update.
4942 * valops.c (find_function_in_inferior): Update.
4943 * value.c (value_static_field, value_fn_field): Update.
4945 2014-02-26 Tom Tromey <tromey@redhat.com>
4947 * ada-lang.c (ada_update_initial_language): Update.
4948 (ada_main_name, ada_has_this_exception_support): Update.
4949 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4950 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4951 * arm-tdep.c (arm_skip_stub): Update.
4952 * auxv.c (ld_so_xfer_auxv): Update.
4953 * avr-tdep.c (avr_scan_prologue): Update.
4954 * ax-gdb.c (gen_var_ref): Update.
4955 * breakpoint.c (struct breakpoint_objfile_data)
4956 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4957 type to bound_minimal_symbol.
4958 (create_overlay_event_breakpoint)
4959 (create_longjmp_master_breakpoint)
4960 (create_std_terminate_master_breakpoint)
4961 (create_exception_master_breakpoint): Update.
4962 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4963 * c-exp.y (classify_name): Update.
4964 * coffread.c (coff_symfile_read): Update.
4965 * common/agent.c (agent_look_up_symbols): Update.
4966 * d-lang.c (d_main_name): Update.
4967 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4968 * dec-thread.c (enable_dec_thread): Update.
4969 * dwarf2loc.c (call_site_to_target_addr): Update.
4970 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4971 * eval.c (evaluate_subexp_standard): Update.
4972 * findvar.c (struct minsym_lookup_data) <result>: Change type
4973 to bound_minimal_symbol.
4975 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4976 * frame.c (inside_main_func): Update.
4977 * frv-tdep.c (frv_frame_this_id): Update.
4978 * gcore.c (call_target_sbrk): Update.
4979 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4980 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4982 * go-lang.c (go_main_name): Update.
4983 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4984 (hppa_hpux_find_import_stub_for_addr): Update.
4985 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4986 Update. Change return type.
4987 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4989 * jit.c (jit_breakpoint_re_set_internal): Update.
4990 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4992 * linux-nat.c (get_signo): Update.
4993 * linux-thread-db.c (inferior_has_bug): Update
4994 * m32c-tdep.c (m32c_return_value)
4995 (m32c_m16c_address_to_pointer): Update.
4996 * m32r-tdep.c (m32r_frame_this_id): Update.
4997 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4998 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4999 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5000 lookup_minimal_symbol. Change return type.
5001 (lookup_minimal_symbol): Remove.
5002 (lookup_bound_minimal_symbol): Update.
5003 (lookup_minimal_symbol_text): Change return type.
5004 (lookup_minimal_symbol_solib_trampoline): Change return type.
5005 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5006 (lookup_minimal_symbol_solib_trampoline): Change return type.
5007 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5008 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5009 (value_nsstring, find_imps): Update.
5010 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5011 * p-lang.c (pascal_main_name): Update.
5012 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5013 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5014 * proc-service.c (ps_pglobal_lookup): Update.
5015 * ravenscar-thread.c (get_running_thread_msymbol): Change
5017 (has_ravenscar_runtime, get_running_thread_id): Update.
5018 * remote.c (remote_check_symbols): Update.
5019 * sol-thread.c (ps_pglobal_lookup): Update.
5020 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5021 * solib-dsbt.c (lm_base): Update.
5022 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5024 * solib-irix.c (locate_base): Update.
5025 * solib-som.c (som_solib_create_inferior_hook)
5026 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5028 * solib-spu.c (spu_enable_break): Update.
5029 * solib-svr4.c (elf_locate_base, enable_break): Update.
5030 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5031 (flush_ea_cache): Update.
5032 * stabsread.c (define_symbol): Update.
5033 * symfile.c (simple_read_overlay_table): Update.
5034 * symtab.c (find_pc_sect_line): Update.
5035 * tracepoint.c (scope_info): Update.
5036 * tui-disasm.c (tui_get_begin_asm_address): Update.
5037 * value.c (value_static_field): Update.
5039 2014-02-26 Tom Tromey <tromey@redhat.com>
5041 * minsyms.c (prim_record_minimal_symbol_full): Use
5042 SET_MSYMBOL_VALUE_ADDRESS.
5043 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5044 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5045 SET_MSYMBOL_VALUE_ADDRESS.
5046 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5047 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5049 2014-02-26 Tom Tromey <tromey@redhat.com>
5051 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5052 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5053 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5054 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5055 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5056 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5057 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5058 * ada-lang.c (ada_main_name): Update.
5059 (ada_lookup_simple_minsym): Update.
5060 (ada_make_symbol_completion_list): Update.
5061 (ada_add_standard_exceptions): Update.
5062 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5063 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5064 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5065 * arm-tdep.c (skip_prologue_function): Update.
5066 (arm_skip_stack_protector, arm_skip_stub): Update.
5067 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5068 (arm_wince_skip_main_prologue): Update.
5069 * auxv.c (ld_so_xfer_auxv): Update.
5070 * avr-tdep.c (avr_scan_prologue): Update.
5071 * ax-gdb.c (gen_var_ref): Update.
5072 * block.c (call_site_for_pc): Update.
5073 * blockframe.c (get_pc_function_start): Update.
5074 (find_pc_partial_function_gnu_ifunc): Update.
5075 * breakpoint.c (create_overlay_event_breakpoint): Update.
5076 (create_longjmp_master_breakpoint): Update.
5077 (create_std_terminate_master_breakpoint): Update.
5078 (create_exception_master_breakpoint): Update.
5079 (resolve_sal_pc): Update.
5080 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5081 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5083 * c-valprint.c (c_val_print): Update.
5084 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5085 * coffread.c (coff_symfile_read): Update.
5086 * common/agent.c (agent_look_up_symbols): Update.
5087 * dbxread.c (find_stab_function_addr): Update.
5088 (end_psymtab): Update.
5089 * dwarf2loc.c (call_site_to_target_addr): Update.
5090 (func_verify_no_selftailcall): Update.
5091 (tailcall_dump): Update.
5092 (call_site_find_chain_1): Update.
5093 (dwarf_expr_reg_to_entry_parameter): Update.
5094 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5095 (elf_gnu_ifunc_resolve_by_got): Update.
5096 * f-valprint.c (info_common_command): Update.
5097 * findvar.c (read_var_value): Update.
5098 * frame.c (get_prev_frame_1): Update.
5099 (inside_main_func): Update.
5100 * frv-tdep.c (frv_skip_main_prologue): Update.
5101 (frv_frame_this_id): Update.
5102 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5103 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5104 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5105 (gnuv3_skip_trampoline): Update.
5106 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5107 (hppa64_hpux_in_solib_call_trampoline): Update.
5108 (hppa_hpux_skip_trampoline_code): Update.
5109 (hppa64_hpux_search_dummy_call_sequence): Update.
5110 (hppa_hpux_find_import_stub_for_addr): Update.
5111 (hppa_hpux_find_dummy_bpaddr): Update.
5112 * hppa-tdep.c (hppa_symbol_address)
5113 (hppa_lookup_stub_minimal_symbol): Update.
5114 * i386-tdep.c (i386_skip_main_prologue): Update.
5115 (i386_pe_skip_trampoline_code): Update.
5116 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5117 * infcall.c (get_function_name): Update.
5118 * infcmd.c (until_next_command): Update.
5119 * jit.c (jit_breakpoint_re_set_internal): Update.
5120 (jit_inferior_init): Update.
5121 * linespec.c (minsym_found): Update.
5122 (add_minsym): Update.
5123 * linux-fork.c (info_checkpoints_command): Update.
5124 * linux-nat.c (get_signo): Update.
5125 * linux-thread-db.c (inferior_has_bug): Update.
5126 * m32c-tdep.c (m32c_return_value): Update.
5127 (m32c_m16c_address_to_pointer): Update.
5128 (m32c_m16c_pointer_to_address): Update.
5129 * m32r-tdep.c (m32r_frame_this_id): Update.
5130 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5131 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5132 * maint.c (maintenance_translate_address): Update.
5133 * minsyms.c (add_minsym_to_hash_table): Update.
5134 (add_minsym_to_demangled_hash_table): Update.
5135 (msymbol_objfile): Update.
5136 (lookup_minimal_symbol): Update.
5137 (iterate_over_minimal_symbols): Update.
5138 (lookup_minimal_symbol_text): Update.
5139 (lookup_minimal_symbol_by_pc_name): Update.
5140 (lookup_minimal_symbol_solib_trampoline): Update.
5141 (lookup_minimal_symbol_by_pc_section_1): Update.
5142 (lookup_minimal_symbol_and_objfile): Update.
5143 (prim_record_minimal_symbol_full): Update.
5144 (compare_minimal_symbols): Update.
5145 (compact_minimal_symbols): Update.
5146 (build_minimal_symbol_hash_tables): Update.
5147 (install_minimal_symbols): Update.
5148 (terminate_minimal_symbol_table): Update.
5149 (find_solib_trampoline_target): Update.
5150 (minimal_symbol_upper_bound): Update.
5151 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5152 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5153 (mips_skip_pic_trampoline_code): Update.
5154 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5155 * objc-lang.c (selectors_info): Update.
5156 (classes_info): Update.
5157 (find_methods): Update.
5158 (find_imps): Update.
5159 (find_objc_msgsend): Update.
5160 * objfiles.c (objfile_relocate1): Update.
5161 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5162 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5163 * p-valprint.c (pascal_val_print): Update.
5164 * parse.c (write_exp_msymbol): Update.
5165 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5166 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5167 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5168 * printcmd.c (build_address_symbolic): Update.
5170 (address_info): Update.
5171 * proc-service.c (ps_pglobal_lookup): Update.
5172 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5173 (find_pc_sect_psymtab): Update.
5174 * python/py-framefilter.c (py_print_frame): Update.
5175 * ravenscar-thread.c (get_running_thread_id): Update.
5176 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5178 * remote.c (remote_check_symbols): Update.
5179 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5180 (rs6000_skip_trampoline_code): Update.
5181 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5182 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5183 * solib-dsbt.c (lm_base): Update.
5184 * solib-frv.c (lm_base): Update.
5186 * solib-irix.c (locate_base): Update.
5187 * solib-som.c (som_solib_create_inferior_hook): Update.
5188 (som_solib_desire_dynamic_linker_symbols): Update.
5189 (link_map_start): Update.
5190 * solib-spu.c (spu_enable_break): Update.
5191 (ocl_enable_break): Update.
5192 * solib-svr4.c (elf_locate_base): Update.
5193 (enable_break): Update.
5194 * spu-tdep.c (spu_get_overlay_table): Update.
5195 (spu_catch_start): Update.
5196 (flush_ea_cache): Update.
5197 * stabsread.c (define_symbol): Update.
5198 (scan_file_globals): Update.
5199 * stack.c (find_frame_funname): Update.
5200 (frame_info): Update.
5201 * symfile.c (simple_read_overlay_table): Update.
5202 (simple_overlay_update): Update.
5203 * symmisc.c (dump_msymbols): Update.
5204 * symtab.c (fixup_section): Update.
5205 (find_pc_sect_line): Update.
5206 (skip_prologue_sal): Update.
5207 (search_symbols): Update.
5208 (print_msymbol_info): Update.
5209 (rbreak_command): Update.
5210 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5211 (completion_list_objc_symbol): Update.
5212 (default_make_symbol_completion_list_break_on): Update.
5213 * tracepoint.c (scope_info): Update.
5214 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5215 (tui_get_begin_asm_address): Update.
5216 * valops.c (find_function_in_inferior): Update.
5217 * value.c (value_static_field): Update.
5218 (value_fn_field): Update.
5220 2014-02-26 Tom Tromey <tromey@redhat.com>
5222 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5223 bound minimal symbols. Move code that knows about minsym
5225 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5227 * minsyms.h (minimal_symbol_upper_bound): Declare.
5228 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5229 minimal_symbol_upper_bound.
5231 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5233 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5234 Use the type's name if its basic type does not have a tag.
5236 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5238 * dwarf2read.c (read_subrange_type): Add comment.
5240 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5242 * dwarf2read.c (update_enumeration_type_from_children): New
5243 function, mostly extracted from process_structure_scope.
5244 (read_enumeration_type): Call update_enumeration_type_from_children.
5245 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5246 and flag_flag_enum fields.
5248 2014-02-26 Pedro Alves <palves@redhat.com>
5250 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5251 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5252 to_xfer_partial method.
5254 2014-02-26 Pedro Alves <palves@redhat.com>
5256 * target.c (complete_target_initialization): Don't install
5257 default_xfer_partial as to_xfer_partial hook.
5259 (update_current_target): Don't INHERIT nor de_fault
5260 deprecated_xfer_memory. Delete de_fault macro.
5261 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5262 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5263 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5266 2014-02-26 Pedro Alves <palves@redhat.com>
5268 * go32-nat.c (my_write_child): New function.
5269 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5270 (go32_xfer_partial): New function.
5271 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5272 Instead install a to_xfer_partial hook.
5274 2014-02-26 Pedro Alves <palves@redhat.com>
5276 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5277 to_xfer_partial helper. Rewrite.
5278 (procfs_xfer_partial): New function.
5279 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5280 Install a to_xfer_partial hook.
5282 2014-02-26 Pedro Alves <palves@redhat.com>
5284 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5285 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5286 (m32r_xfer_partial): New function.
5287 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5288 Install a to_xfer_partial hook.
5290 2014-02-26 Pedro Alves <palves@redhat.com>
5292 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5294 (mips_xfer_partial): New function.
5295 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5296 hook. Install a to_xfer_partial hook.
5298 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5300 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5301 * gdbtypes.c (create_array_type_with_stride): New function,
5302 renaming create_array_type, but with an added parameter
5303 called "bit_stride".
5304 (create_array_type): Re-implement using
5305 create_array_type_with_stride.
5306 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5307 and DW_AT_bit_stride attributes.
5309 2014-02-26 Pedro Alves <palves@redhat.com>
5311 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5312 task-specific breakpoints.
5314 2014-02-25 Pedro Alves <palves@redhat.com>
5316 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5317 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5319 2014-02-25 Stan Shebs <stan@codesourcery.com>
5321 * defs.h: Annotate comments for Doxygen.
5323 2014-02-25 Tom Tromey <tromey@redhat.com>
5325 * target.h (target_ignore): Don't declare.
5326 * target.c (target_ignore): Remove.
5328 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5331 * auto-load.c (auto_load_objfile_script_1): Change filename to
5334 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5336 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5337 documentation. Adjust prototype to match the target_ops
5338 to_xfer_partial method. Adjust implementation accordingly.
5340 2014-02-25 Hui Zhu <hui@codesourcery.com>
5342 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5345 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5347 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5348 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5349 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5350 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5351 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5352 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5353 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5354 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5356 (rl78_register_type): Use a data pointer type for SP and
5357 new pseudo registers mentioned above. Use a 16 bit integer
5358 type for all other register pairs.
5359 (rl78_register_name, rl78_g10_register_name): Update for
5360 new pseudo registers.
5361 (rl78_pseudo_register_read): Likewise.
5362 (rl78_pseudo_register_write): Likewise.
5363 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5364 to the newly added pseudo registers.
5366 2014-02-24 Doug Evans <dje@google.com>
5368 * value.c (record_latest_value): Fix comment.
5369 * printcmd.c (print_command_1): Remove code to handle -1 return from
5370 record_latest_value.
5372 2014-02-24 Pedro Alves <palves@redhat.com>
5374 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5375 deprecated_xfer_memory hook.
5376 (procfs_xfer_partial): Call procfs_xfer_memory instead
5377 of the deprecated_xfer_memory target hook.
5378 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5381 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5383 * windows-nat.c (windows_xfer_shared_libraries): Return
5384 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5385 requested object is TARGET_OBJECT_LIBRARIES.
5387 2014-02-24 Yao Qi <yao@codesourcery.com>
5389 * target.h (enum target_xfer_status)
5390 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5391 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5393 * corefile.c (memory_error_message): User updated.
5394 * exec.c (section_table_read_available_memory): Likewise.
5395 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5396 * target.c (target_xfer_status_to_string): Likewise.
5397 (raw_memory_xfer_partial): Likewise.
5398 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5399 * valops.c (read_value_memory): Likewise.
5400 * exec.h: Update comments.
5402 2014-02-24 Yao Qi <yao@codesourcery.com>
5404 * target.c (target_xfer_status_to_string): Rename argument err
5406 * target.h (target_xfer_status_to_string): Update declaration.
5407 Replace target_xfer_error_to_string with
5408 target_xfer_status_to_string in comment.
5410 2014-02-24 Yao Qi <yao@codesourcery.com>
5412 * mips-linux-nat.c (super_close): Update its type.
5413 (mips_linux_close): Pass 'self' to super_close.
5415 2014-02-24 Yao Qi <yao@codesourcery.com>
5417 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5418 * corefile.c (read_memory): Adjusted.
5419 * target.c (target_write_with_progress): Adjusted.
5421 2014-02-23 Yao Qi <yao@codesourcery.com>
5425 2013-10-25 Yao Qi <yao@codesourcery.com>
5427 * remote.c (remote_traceframe_info): Return early if
5428 traceframe is not selected.
5430 2013-07-19 Yao Qi <yao@codesourcery.com>
5432 * target.c (update_current_target): Change the default action
5433 of 'to_traceframe_info' from tcomplain to return_zero.
5434 * target.h (struct target_ops) <to_traceframe_info>: Add more
5437 2014-02-23 Yao Qi <yao@codesourcery.com>
5439 * valops.c (read_value_memory): Rewrite it. Call
5440 target_xfer_partial in a loop.
5441 * exec.h (section_table_available_memory): Remove declaration.
5442 Move comments to ...
5443 * exec.c (section_table_available_memory): ... here. Make it
5446 2014-02-23 Yao Qi <yao@codesourcery.com>
5448 * exec.c (section_table_read_available_memory): New function.
5449 * exec.h (section_table_read_available_memory): Declare.
5450 * ctf.c (ctf_xfer_partial): Call
5451 section_table_read_available_memory.
5452 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5454 2014-02-23 Yao Qi <yao@codesourcery.com>
5456 * ctf.c (ctf_xfer_partial): Move code to ...
5457 * exec.c (exec_read_partial_read_only): ... it. New function.
5458 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5459 * tracefile.c: Include "exec.h".
5460 * exec.h (exec_read_partial_read_only): Declare.
5462 2014-02-23 Yao Qi <yao@codesourcery.com>
5464 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5465 (tfile_has_memory): Remove.
5466 (init_tfile_ops): Don't set fields to_has_all_memory and
5467 to_has_memory of tfile_ops.
5468 * tracefile.c (tracefile_has_all_memory): New function.
5469 (tracefile_has_memory): New function.
5470 (init_tracefile_ops): Initialize fields to_has_all_memory and
5471 to_has_memory of 'ops'.
5473 2014-02-23 Yao Qi <yao@codesourcery.com>
5475 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5476 (ctf_thread_alive, ctf_get_trace_status): Remove.
5477 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5479 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5480 (tfile_has_stack, tfile_has_registers): Remove.
5481 (tfile_thread_alive): Remove.
5482 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5484 * tracefile.c (tracefile_has_stack): New function.
5485 (tracefile_has_registers): New function.
5486 (tracefile_thread_alive): New function.
5487 (tracefile_get_trace_status): New function.
5488 (init_tracefile_ops): New function.
5489 * tracefile.h (init_tracefile_ops): Declare.
5491 2014-02-23 Yao Qi <yao@codesourcery.com>
5493 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5494 (O_LARGEFILE): Likewise.
5495 (tfile_ops): Likewise.
5496 (TRACE_HEADER_SIZE): Likewise.
5497 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5498 (cur_data_size): Likewise.
5499 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5500 (tfile_close, tfile_files_info): Likewise.
5501 (tfile_get_trace_status): Likewise.
5502 (tfile_get_tracepoint_status): Likewise.
5503 (tfile_get_traceframe_address): Likewise.
5504 (tfile_trace_find, match_blocktype): Likewise.
5505 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5506 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5507 (tfile_get_trace_state_variable_value): Likewise.
5508 (tfile_has_all_memory, tfile_has_memory): Likewise.
5509 (tfile_has_stack, tfile_has_registers): Likewise.
5510 (tfile_thread_alive, build_traceframe_info): Likewise.
5511 (tfile_traceframe_info, init_tfile_ops): Likewise.
5512 (_initialize_tracepoint): Don't call init_tfile_ops
5513 and add_target_with_completer.
5514 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5515 exec.h, completer.h and filenames.h.
5516 (_initialize_tracefile_tfile): New function.
5518 2014-02-23 Yao Qi <yao@codesourcery.com>
5520 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5522 (HFILES_NO_SRCDIR): Add tracefile.h.
5523 * ctf.c: Include "tracefile.h".
5524 * tracefile.h: New file.
5525 * tracefile.c: New file
5526 * tracefile-tfile.c: New file.
5527 * tracepoint.c: Include "tracefile.h".
5528 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5529 (stop_reason_names): Add const.
5530 (trace_file_writer_xfree): Move it to tracefile.c.
5531 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5532 (trace_save_ctf): Likewise.
5533 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5534 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5535 (tfile_write_header, tfile_write_regblock_type): Likewise.
5536 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5537 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5538 (tfile_write_raw_data, tfile_end): Likewise.
5539 (tfile_trace_file_writer_new): Likewise.
5540 (free_uploaded_tp): Make it extern.
5541 (free_uploaded_tsv): Make it extern.
5542 (_initialize_tracepoint): Move code to register command 'tsave'
5544 * tracepoint.h (stop_reason_names): Declare.
5545 (struct trace_frame_write_ops): Move it to tracefile.h.
5546 (struct trace_file_write_ops): Likewise.
5547 (struct trace_file_writer): Likewise.
5548 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5550 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5553 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5555 (get_cores_used_by_process): New parameter num_cores, use it.
5556 (linux_xfer_osdata_processes): Pass num_cores to it.
5557 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5560 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5562 * target.c (memory_xfer_partial): Fix length arg in call to
5563 breakpoint_xfer_memory.
5565 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5568 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5569 number comes after the + or - signs. Adjust length of register
5570 name to be extracted.
5572 2014-02-20 Tom Tromey <tromey@redhat.com>
5574 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5575 (ada_varobj_ops): Mark "extern".
5577 2014-02-20 Tom Tromey <tromey@redhat.com>
5579 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5581 2014-02-20 Doug Evans <xdje42@gmail.com>
5583 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5584 All callers updated.
5585 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5586 All callers updated.
5587 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5588 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5590 2014-02-20 lin zuojian <manjian2006@gmail.com>
5591 Joel Brobecker <brobecker@adacore.com>
5592 Doug Evans <xdje42@gmail.com>
5595 * dwarf2read.c (struct die_info): New member in_process.
5596 (reset_die_in_process): New function.
5597 (process_die): Set it at the start, reset when returning.
5598 (inherit_abstract_dies): Only call process_die if origin_child_die
5599 not already being processed.
5601 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5603 * windows-nat.c (handle_unload_dll): Add function documentation.
5604 (do_initial_windows_stuff): Add comment explaining why we wait
5605 until after inferior initialization has finished before
5606 processing all DLLs.
5608 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5610 * windows-nat.c (get_module_name): Delete.
5611 (windows_get_exec_module_filename): New function, mostly
5612 inspired from get_module_name.
5613 (windows_pid_to_exec_file): Replace call to get_module_name
5614 by call to windows_get_exec_module_filename.
5616 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5618 * windows-nat.c (handle_load_dll): Rewrite this function's
5619 introductory comment. Remove code using get_module_name
5620 to get the DLL's name.
5622 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5624 * windows-nat.c (get_windows_debug_event): Ignore
5625 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5626 if windows_initialization_done == 0.
5627 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5628 Adjust implementation to always load all DLLs.
5629 (do_initial_windows_stuff): Replace call to
5630 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5632 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5634 * windows-nat.c (_initialize_windows_nat): Deprecate the
5635 "dll-symbols" command. Turn the "add-shared-symbol-files"
5636 and "assf" aliases into commands, and deprecate them as well.
5637 * NEWS: Add entry explaining that "dll-symbols" and its two
5638 aliases are now deprecated.
5640 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5642 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5643 new-line in debug string. Remove trailing spaces.
5645 2014-02-19 Stan Shebs <stan@codesourcery.com>
5647 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5649 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5651 * NEWS: Add entry for the new feature
5652 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5655 2014-02-19 Stan Shebs <stan@codesourcery.com>
5657 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5659 2014-02-19 Pedro Alves <palves@redhat.com>
5661 * common/ptid.h (struct ptid): Mention that process_stratum
5662 targets should prefer ptid.lwp.
5664 2014-02-19 Pedro Alves <palves@redhat.com>
5666 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5667 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5668 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5669 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5670 store remote thread ids rather than ptid.tid.
5671 (_initialize_remote): Adjust.
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target.c (target_get_unwinder): Rewrite.
5676 (target_get_tailcall_unwinder): Rewrite.
5677 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5678 (record_btrace_to_get_tailcall_unwinder): New function.
5679 (init_record_btrace_ops): Update.
5680 * target.h (struct target_ops) <to_get_unwinder,
5681 to_get_tailcall_unwinder>: Now function pointers. Use
5682 TARGET_DEFAULT_RETURN.
5684 2014-02-19 Tom Tromey <tromey@redhat.com>
5686 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5688 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5690 2014-02-19 Tom Tromey <tromey@redhat.com>
5692 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5694 * target-delegates.c: Rebuild.
5695 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5696 TARGET_DEFAULT_FUNC.
5697 * target.c (default_target_decr_pc_after_break): Rename from
5698 forward_target_decr_pc_after_break. Simplify.
5699 (target_decr_pc_after_break): Rely on delegation.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * target.c (update_current_target): Do not INHERIT to_doc or
5704 to_magic. Do not de_fault to_open or to_close.
5706 2014-02-19 Tom Tromey <tromey@redhat.com>
5708 * gcore.h (objfile_find_memory_regions): Declare.
5709 * gcore.c (objfile_find_memory_regions): No longer static. Add
5711 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5712 * exec.c: Include gcore.h.
5713 (exec_set_find_memory_regions): Remove.
5714 (exec_find_memory_regions): Remove.
5715 (exec_do_find_memory_regions): Remove.
5716 (init_exec_ops): Update.
5717 * defs.h (exec_set_find_memory_regions): Remove.
5719 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * target-delegates.c: Rebuild.
5722 * target.h (struct target_ops) <to_extra_thread_info,
5723 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5724 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5725 not 0, in TARGET_DEFAULT_RETURN.
5727 2014-02-19 Tom Tromey <tromey@redhat.com>
5729 * target.c (complete_target_initialization): Remove casts. Use
5730 return_zero_has_execution.
5731 (return_zero): Add "ignore" argument.
5732 (return_zero_has_execution): New function.
5733 (init_dummy_target): Remove casts. Use
5734 return_zero_has_execution.
5736 2014-02-19 Tom Tromey <tromey@redhat.com>
5738 * target.c (update_current_target): Update comments. Do not
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5745 * corelow.c (core_read_description): Delegate when needed.
5746 * remote.c (remote_read_description): Delegate when needed.
5747 * target-delegates.c: Rebuild.
5748 * target.c (target_read_description): Rewrite.
5749 * target.h (struct target_ops) <to_read_description>: Update
5750 comment. Use TARGET_DEFAULT_RETURN.
5752 2014-02-19 Tom Tromey <tromey@redhat.com>
5754 * target-delegates.c: Rebuild.
5755 * target.c (update_current_target): Don't inherit or default
5757 (find_default_run_target): Check against delegate_can_run.
5758 * target.h (struct target_ops) <to_can_run>: Use
5759 TARGET_DEFAULT_RETURN.
5761 2014-02-19 Tom Tromey <tromey@redhat.com>
5763 * target-delegates.c: Rebuild.
5764 * target.c (target_disconnect): Unconditionally delegate.
5765 * target.h (struct target_ops) <to_disconnect>: Use
5766 TARGET_DEFAULT_NORETURN.
5768 2014-02-19 Tom Tromey <tromey@redhat.com>
5770 * record.c (record_stop): Unconditionally delegate.
5771 * target-delegates.c: Rebuild.
5772 * target.c (target_stop_recording): Unconditionally delegate.
5773 * target.h (struct target_ops) <to_stop_recording>: Use
5774 TARGET_DEFAULT_IGNORE.
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target-delegates.c: Rebuild.
5779 * target.c (target_enable_btrace): Unconditionally delegate.
5780 * target.h (struct target_ops) <to_enable_btrace>: Use
5781 TARGET_DEFAULT_NORETURN.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * target-delegates.c: Rebuild.
5786 * target.c (target_read_btrace): Unconditionally delegate.
5787 * target.h (struct target_ops) <to_read_btrace>: Use
5788 TARGET_DEFAULT_NORETURN.
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * target-delegates.c: Rebuild.
5793 * target.c (target_teardown_btrace): Unconditionally delegate.
5794 * target.h (struct target_ops) <to_teardown_btrace>: Use
5795 TARGET_DEFAULT_NORETURN.
5797 2014-02-19 Tom Tromey <tromey@redhat.com>
5799 * target-delegates.c: Rebuild.
5800 * target.c (target_disable_btrace): Unconditionally delegate.
5801 * target.h (struct target_ops) <to_disable_btrace>: Use
5802 TARGET_DEFAULT_NORETURN.
5804 2014-02-19 Tom Tromey <tromey@redhat.com>
5806 * target-delegates.c: Rebuild.
5807 * target.c (default_search_memory): New function.
5808 (simple_search_memory): Update comment.
5809 (target_search_memory): Unconditionally delegate.
5810 * target.h (struct target_ops) <to_search_memory>: Use
5811 TARGET_DEFAULT_FUNC.
5813 2014-02-19 Tom Tromey <tromey@redhat.com>
5815 * auxv.c (default_auxv_parse): No longer static.
5816 (target_auxv_parse): Unconditionally delegate.
5817 * auxv.h (default_auxv_parse): Declare.
5818 * target-delegates.c: Rebuild.
5819 * target.c: Include auxv.h.
5820 * target.h (struct target_ops) <to_auxv_parse>: Use
5821 TARGET_DEFAULT_FUNC.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target-delegates.c: Rebuild.
5826 * target.c (target_memory_map): Unconditionally delegate.
5827 * target.h (struct target_ops) <to_memory_map>: Use
5828 TARGET_DEFAULT_RETURN.
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * target-delegates.c: Rebuild.
5833 * target.c (target_thread_alive): Unconditionally delegate.
5834 * target.h (struct target_ops) <to_thread_alive>: Use
5835 TARGET_DEFAULT_RETURN.
5837 2014-02-19 Tom Tromey <tromey@redhat.com>
5839 * target-delegates.c: Rebuild.
5840 * target.c (target_save_record): Unconditionally delegate.
5841 * target.h (struct target_ops) <to_save_record>: Use
5842 TARGET_DEFAULT_NORETURN.
5844 2014-02-19 Tom Tromey <tromey@redhat.com>
5846 * target-delegates.c: Rebuild.
5847 * target.c (target_delete_record): Unconditionally delegate.
5848 * target.h (struct target_ops) <to_delete_record>: Use
5849 TARGET_DEFAULT_NORETURN.
5851 2014-02-19 Tom Tromey <tromey@redhat.com>
5853 * target-delegates.c: Rebuild.
5854 * target.c (target_record_is_replaying): Unconditionally
5856 * target.h (struct target_ops) <to_record_is_replaying>: Use
5857 TARGET_DEFAULT_RETURN.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target-delegates.c: Rebuild.
5862 * target.c (target_goto_record_begin): Unconditionally delegate.
5863 * target.h (struct target_ops) <to_goto_record_begin>: Use
5864 TARGET_DEFAULT_NORETURN.
5866 2014-02-19 Tom Tromey <tromey@redhat.com>
5868 * target-delegates.c: Rebuild.
5869 * target.c (target_goto_record_end): Unconditionally delegate.
5870 * target.h (struct target_ops) <to_goto_record_end>: Use
5871 TARGET_DEFAULT_NORETURN.
5873 2014-02-19 Tom Tromey <tromey@redhat.com>
5875 * target-delegates.c: Rebuild.
5876 * target.c (target_goto_record): Unconditionally delegate.
5877 * target.h (struct target_ops) <to_goto_record>: Use
5878 TARGET_DEFAULT_NORETURN.
5880 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target-delegates.c: Rebuild.
5883 * target.c (target_insn_history): Unconditionally delegate.
5884 * target.h (struct target_ops) <to_insn_history>: Use
5885 TARGET_DEFAULT_NORETURN.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target-delegates.c: Rebuild.
5890 * target.c (target_insn_history_from): Unconditionally delegate.
5891 * target.h (struct target_ops) <to_insn_history_from>: Use
5892 TARGET_DEFAULT_NORETURN.
5894 2014-02-19 Tom Tromey <tromey@redhat.com>
5896 * target-delegates.c: Rebuild.
5897 * target.c (target_insn_history_range): Unconditionally delegate.
5898 * target.h (struct target_ops) <to_insn_history_range>: Use
5899 TARGET_DEFAULT_NORETURN.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target-delegates.c: Rebuild.
5904 * target.c (target_call_history): Unconditionally delegate.
5905 * target.h (struct target_ops) <to_call_history>: Use
5906 TARGET_DEFAULT_NORETURN.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (target_call_history_from): Unconditionally delegate.
5912 * target.h (struct target_ops) <to_call_history_from>: Use
5913 TARGET_DEFAULT_NORETURN.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target-delegates.c: Rebuild.
5918 * target.c (target_call_history_range): Unconditionally delegate.
5919 * target.h (struct target_ops) <to_call_history_range>: Use
5920 TARGET_DEFAULT_NORETURN.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target-delegates.c: Rebuild.
5925 * target.c (target_verify_memory): Unconditionally delegate.
5926 * target.h (struct target_ops) <to_verify_memory>: Use
5927 TARGET_DEFAULT_NORETURN.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target-delegates.c: Rebuild.
5932 * target.c (target_core_of_thread): Unconditionally delegate.
5933 * target.h (struct target_ops) <to_core_of_thread>: Use
5934 TARGET_DEFAULT_RETURN.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: Rebuild.
5939 * target.c (target_flash_done): Unconditionally delegate.
5940 * target.h (struct target_ops) <to_flash_done>: Use
5941 TARGET_DEFAULT_NORETURN.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (target_flash_erase): Unconditionally delegate.
5947 * target.h (struct target_ops) <to_flash_erase>: Use
5948 TARGET_DEFAULT_NORETURN.
5950 2014-02-19 Tom Tromey <tromey@redhat.com>
5952 * target-delegates.c: Rebuild.
5953 * target.c (target_get_section_table): Unconditionally delegate.
5954 * target.h (struct target_ops) <to_get_section_table>: Use
5955 TARGET_DEFAULT_RETURN.
5957 2014-02-19 Tom Tromey <tromey@redhat.com>
5959 * target-delegates.c: Rebuild.
5960 * target.c (target_pid_to_str): Unconditionally delegate.
5961 (init_dummy_target): Don't initialize to_pid_to_str.
5962 (default_pid_to_str): Rename from dummy_pid_to_str.
5963 * target.h (struct target_ops) <to_pid_to_str>: Use
5964 TARGET_DEFAULT_FUNC.
5966 2014-02-19 Tom Tromey <tromey@redhat.com>
5968 * target-delegates.c: Rebuild.
5969 * target.c (target_find_new_threads): Unconditionally delegate.
5970 * target.h (struct target_ops) <to_find_new_threads>: Use
5971 TARGET_DEFAULT_RETURN.
5973 2014-02-19 Tom Tromey <tromey@redhat.com>
5975 * target-delegates.c: Rebuild.
5976 * target.c (target_program_signals): Unconditionally delegate.
5977 * target.h (struct target_ops) <to_program_signals>: Use
5978 TARGET_DEFAULT_IGNORE.
5980 2014-02-19 Tom Tromey <tromey@redhat.com>
5982 * target-delegates.c: Rebuild.
5983 * target.c (target_pass_signals): Unconditionally delegate.
5984 * target.h (struct target_ops) <to_pass_signals>: Use
5985 TARGET_DEFAULT_IGNORE.
5987 2014-02-19 Tom Tromey <tromey@redhat.com>
5989 * target-delegates.c: Rebuild.
5990 * target.c (default_mourn_inferior): New function.
5991 (target_mourn_inferior): Unconditionally delegate.
5992 * target.h (struct target_ops) <to_mourn_inferior>: Use
5993 TARGET_DEFAULT_FUNC.
5995 2014-02-19 Tom Tromey <tromey@redhat.com>
5997 * target-delegates.c: Rebuild.
5998 * target.c (default_follow_fork): New function.
5999 (target_follow_fork): Unconditionally delegate.
6000 * target.h (struct target_ops) <to_follow_fork>: Use
6001 TARGET_DEFAULT_FUNC.
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6005 * target-delegates.c: Rebuild.
6006 * target.c (target_kill): Unconditionally delegate.
6007 * target.h (struct target_ops) <to_kill>: Use
6008 TARGET_DEFAULT_NORETURN.
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * target-delegates.c: Rebuild.
6013 * target.c (target_masked_watch_num_registers): Unconditionally
6015 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6016 Use TARGET_DEFAULT_RETURN.
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6020 * target-delegates.c: Rebuild.
6021 * target.c (target_remove_mask_watchpoint): Unconditionally
6023 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6024 TARGET_DEFAULT_RETURN.
6026 2014-02-19 Tom Tromey <tromey@redhat.com>
6028 * target-delegates.c: Rebuild.
6029 * target.c (target_insert_mask_watchpoint): Unconditionally
6031 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6032 TARGET_DEFAULT_RETURN.
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target-delegates.c: Rebuild.
6037 * target.c (target_ranged_break_num_registers): Unconditionally
6039 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6040 Use TARGET_DEFAULT_RETURN.
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target-delegates.c: Rebuild.
6045 * target.c (target_fetch_registers): Unconditionally delegate.
6046 * target.h (struct target_ops) <to_fetch_registers>: Use
6047 TARGET_DEFAULT_NORETURN.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target-delegates.c: Rebuild.
6052 * target.c (update_current_target): Don't inherit or default
6054 * target.h (struct target_ops) <to_stop>: Use
6055 TARGET_DEFAULT_IGNORE.
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6059 * target-delegates.c: Rebuild.
6060 * target.c (update_current_target): Don't inherit or default
6061 to_can_run_breakpoint_commands.
6062 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6063 Use TARGET_DEFAULT_RETURN.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target-delegates.c: Rebuild.
6068 * target.c (update_current_target): Don't inherit or default
6069 to_supports_evaluation_of_breakpoint_conditions.
6070 * target.h (struct target_ops)
6071 <to_supports_evaluation_of_breakpoint_conditions>: Use
6072 TARGET_DEFAULT_RETURN.
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6076 * target-delegates.c: Rebuild.
6077 * target.c (update_current_target): Don't inherit or default
6078 to_augmented_libraries_svr4_read.
6079 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6080 Use TARGET_DEFAULT_RETURN.
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * target-delegates.c: Rebuild.
6085 * target.c (update_current_target): Don't inherit or default
6087 * target.h (struct target_ops) <to_can_use_agent>: Use
6088 TARGET_DEFAULT_RETURN.
6090 2014-02-19 Tom Tromey <tromey@redhat.com>
6092 * target-delegates.c: Rebuild.
6093 * target.c (update_current_target): Don't inherit or default
6095 * target.h (struct target_ops) <to_use_agent>: Use
6096 TARGET_DEFAULT_NORETURN.
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * target-delegates.c: Rebuild.
6101 * target.c (update_current_target): Don't inherit or default
6103 (return_null): Remove.
6104 * target.h (struct target_ops) <to_traceframe_info>: Use
6105 TARGET_DEFAULT_RETURN.
6107 2014-02-19 Tom Tromey <tromey@redhat.com>
6109 * target-delegates.c: Rebuild.
6110 * target.c (update_current_target): Don't inherit or default
6111 to_static_tracepoint_markers_by_strid.
6112 * target.h (struct target_ops)
6113 <to_static_tracepoint_markers_by_strid>: Use
6114 TARGET_DEFAULT_NORETURN.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target-delegates.c: Rebuild.
6119 * target.c (update_current_target): Don't inherit or default
6120 to_static_tracepoint_marker_at.
6121 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6122 Use TARGET_DEFAULT_RETURN.
6124 2014-02-19 Tom Tromey <tromey@redhat.com>
6126 * target-delegates.c: Rebuild.
6127 * target.c (update_current_target): Don't inherit or default
6129 * target.h (struct target_ops) <to_set_permissions>: Use
6130 TARGET_DEFAULT_IGNORE.
6132 2014-02-19 Tom Tromey <tromey@redhat.com>
6134 * target-delegates.c: Rebuild.
6135 * target.c (update_current_target): Don't inherit or default
6137 * target.h (struct target_ops) <to_get_tib_address>: Use
6138 TARGET_DEFAULT_NORETURN.
6140 2014-02-19 Tom Tromey <tromey@redhat.com>
6142 * target-delegates.c: Rebuild.
6143 * target.c (update_current_target): Don't inherit or default
6145 * target.h (struct target_ops) <to_set_trace_notes>: Use
6146 TARGET_DEFAULT_RETURN.
6148 2014-02-19 Tom Tromey <tromey@redhat.com>
6150 * target-delegates.c: Rebuild.
6151 * target.c (update_current_target): Don't initialize
6152 to_set_trace_buffer_size.
6153 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6154 TARGET_DEFAULT_IGNORE.
6156 2014-02-19 Tom Tromey <tromey@redhat.com>
6158 * target-delegates.c: Rebuild.
6159 * target.c (update_current_target): Don't inherit or default
6160 to_set_circular_trace_buffer.
6161 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6162 TARGET_DEFAULT_IGNORE.
6164 2014-02-19 Tom Tromey <tromey@redhat.com>
6166 * target-delegates.c: Rebuild.
6167 * target.c (update_current_target): Don't inherit or default
6168 to_set_disconnected_tracing.
6169 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6170 TARGET_DEFAULT_IGNORE.
6172 2014-02-19 Tom Tromey <tromey@redhat.com>
6174 * target-delegates.c: Rebuild.
6175 * target.c (update_current_target): Don't inherit or default
6176 to_get_min_fast_tracepoint_insn_len.
6177 (return_minus_one): Remove.
6178 * target.h (struct target_ops)
6179 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6181 2014-02-19 Tom Tromey <tromey@redhat.com>
6183 * target-delegates.c: Rebuild.
6184 * target.c (update_current_target): Don't inherit or default
6185 to_get_raw_trace_data.
6186 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6187 TARGET_DEFAULT_NORETURN.
6189 2014-02-19 Tom Tromey <tromey@redhat.com>
6191 * target-delegates.c: Rebuild.
6192 * target.c (update_current_target): Don't inherit or default
6193 to_upload_trace_state_variables.
6194 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6195 Use TARGET_DEFAULT_RETURN.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target-delegates.c: Rebuild.
6200 * target.c (update_current_target): Don't inherit or default
6201 to_upload_tracepoints.
6202 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6203 TARGET_DEFAULT_RETURN.
6205 2014-02-19 Tom Tromey <tromey@redhat.com>
6207 * target-delegates.c: Rebuild.
6208 * target.c (update_current_target): Don't inherit or default
6210 * target.h (struct target_ops) <to_save_trace_data>: Use
6211 TARGET_DEFAULT_NORETURN.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target-delegates.c: Rebuild.
6216 * target.c (update_current_target): Don't inherit or default
6217 to_get_trace_state_variable_value.
6218 * target.h (struct target_ops)
6219 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6221 2014-02-19 Tom Tromey <tromey@redhat.com>
6223 * target-delegates.c: Rebuild.
6224 * target.c (update_current_target): Don't inherit or default
6226 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * target-delegates.c: Rebuild.
6231 * target.c (update_current_target): Don't inherit or default
6233 * target.h (struct target_ops) <to_trace_stop>: Use
6234 TARGET_DEFAULT_NORETURN.
6236 2014-02-19 Tom Tromey <tromey@redhat.com>
6238 * target-delegates.c: Rebuild.
6239 * target.c (update_current_target): Don't inherit or default
6240 to_get_tracepoint_status.
6241 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6242 TARGET_DEFAULT_NORETURN.
6244 2014-02-19 Tom Tromey <tromey@redhat.com>
6246 * target-delegates.c: Rebuild.
6247 * target.c (update_current_target): Don't inherit or default
6248 to_get_trace_status.
6249 * target.h (struct target_ops) <to_get_trace_status>: Use
6250 TARGET_DEFAULT_RETURN.
6252 2014-02-19 Tom Tromey <tromey@redhat.com>
6254 * target-delegates.c: Rebuild.
6255 * target.c (update_current_target): Don't inherit or default
6257 * target.h (struct target_ops) <to_trace_start>: Use
6258 TARGET_DEFAULT_NORETURN.
6260 2014-02-19 Tom Tromey <tromey@redhat.com>
6262 * target-delegates.c: Rebuild.
6263 * target.c (update_current_target): Don't inherit or default
6264 to_trace_set_readonly_regions.
6265 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6266 Use TARGET_DEFAULT_NORETURN.
6268 2014-02-19 Tom Tromey <tromey@redhat.com>
6270 * target-delegates.c: Rebuild.
6271 * target.c (update_current_target): Don't inherit or default
6272 to_disable_tracepoint.
6273 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6274 TARGET_DEFAULT_NORETURN.
6276 2014-02-19 Tom Tromey <tromey@redhat.com>
6278 * target-delegates.c: Rebuild.
6279 * target.c (update_current_target): Don't inherit or default
6280 to_enable_tracepoint.
6281 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6282 TARGET_DEFAULT_NORETURN.
6284 2014-02-19 Tom Tromey <tromey@redhat.com>
6286 * target-delegates.c: Rebuild.
6287 * target.c (update_current_target): Don't inherit or default
6288 to_download_trace_state_variable.
6289 * target.h (struct target_ops) <to_download_trace_state_variable>:
6290 Use TARGET_DEFAULT_NORETURN.
6292 2014-02-19 Tom Tromey <tromey@redhat.com>
6294 * target-delegates.c: Rebuild.
6295 * target.c (update_current_target): Don't inherit or default
6296 to_can_download_tracepoint.
6297 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6298 TARGET_DEFAULT_RETURN.
6300 2014-02-19 Tom Tromey <tromey@redhat.com>
6302 * target-delegates.c: Rebuild.
6303 * target.c (update_current_target): Don't inherit or default
6304 to_download_tracepoint.
6305 * target.h (struct target_ops) <to_download_tracepoint>: Use
6306 TARGET_DEFAULT_NORETURN.
6308 2014-02-19 Tom Tromey <tromey@redhat.com>
6310 * target-delegates.c: Rebuild.
6311 * target.c (update_current_target): Don't inherit or default
6313 * target.h (struct target_ops) <to_trace_init>: Use
6314 TARGET_DEFAULT_RETURN.
6316 2014-02-19 Tom Tromey <tromey@redhat.com>
6318 * target-delegates.c: Rebuild.
6319 * target.c (update_current_target): Don't inherit or default
6320 to_supports_string_tracing.
6321 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6322 TARGET_DEFAULT_RETURN.
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target-delegates.c: Rebuild.
6327 * target.c (update_current_target): Don't inherit or default
6328 to_supports_enable_disable_tracepoint.
6329 * target.h (struct target_ops)
6330 <to_supports_enable_disable_tracepoint>: Use
6331 TARGET_DEFAULT_RETURN.
6333 2014-02-19 Tom Tromey <tromey@redhat.com>
6335 * target-delegates.c: Rebuild.
6336 * target.c (update_current_target): Don't inherit or default
6337 to_supports_multi_process.
6338 * target.h (struct target_ops) <to_supports_multi_process>: Use
6339 TARGET_DEFAULT_RETURN.
6341 2014-02-19 Tom Tromey <tromey@redhat.com>
6343 * target-delegates.c: Rebuild.
6344 * target.c (update_current_target): Don't inherit or default
6345 to_get_ada_task_ptid.
6346 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6347 TARGET_DEFAULT_FUNC.
6349 2014-02-19 Tom Tromey <tromey@redhat.com>
6351 * target-delegates.c: Rebuild.
6352 * target.c (update_current_target): Don't inherit or default
6353 to_thread_architecture.
6354 * target.h (struct target_ops) <to_thread_architecture>: Use
6355 TARGET_DEFAULT_FUNC.
6357 2014-02-19 Tom Tromey <tromey@redhat.com>
6359 * target-delegates.c: Rebuild.
6360 * target.c (update_current_target): Don't inherit or default
6361 to_execution_direction.
6362 * target.h (struct target_ops) <to_execution_direction>: Use
6363 TARGET_DEFAULT_FUNC.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target-delegates.c: Rebuild.
6368 * target.c (update_current_target): Don't inherit or default
6369 to_can_execute_reverse.
6370 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6371 TARGET_DEFAULT_RETURN.
6372 (target_can_execute_reverse): Unconditionally delegate.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target-delegates.c: Rebuild.
6377 * target.c (update_current_target): Don't inherit or default
6379 (dummy_goto_bookmark): Remove.
6380 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6381 * target.h (struct target_ops) <to_goto_bookmark>: Use
6382 TARGET_DEFAULT_NORETURN.
6384 2014-02-19 Tom Tromey <tromey@redhat.com>
6386 * target-delegates.c: Rebuild.
6387 * target.c (update_current_target): Don't inherit or default
6389 (dummy_get_bookmark): Remove.
6390 (init_dummy_target): Don't inherit or default to_get_bookmark.
6391 * target.h (struct target_ops) <to_get_bookmark>: Use
6392 TARGET_DEFAULT_NORETURN
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * target-delegates.c: Rebuild.
6397 * target.c (update_current_target): Don't inherit or default
6398 to_make_corefile_notes.
6399 (init_dummy_target): Don't initialize to_make_corefile_notes.
6400 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6401 TARGET_DEFAULT_FUNC.
6403 2014-02-19 Tom Tromey <tromey@redhat.com>
6405 * target-delegates.c: Rebuild.
6406 * target.c (update_current_target): Don't inherit or default
6407 to_find_memory_regions.
6408 (init_dummy_target): Don't initialize to_find_memory_regions.
6409 * target.h (struct target_ops) <to_find_memory_regions>: Use
6410 TARGET_DEFAULT_FUNC.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target-delegates.c: Rebuild.
6415 * target.c (update_current_target): Don't inherit or default
6417 * target.h (struct target_ops) <to_log_command>: Use
6418 TARGET_DEFAULT_IGNORE.
6419 (target_log_command): Unconditionally delegate.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (update_current_target): Don't inherit or default
6425 to_pid_to_exec_file.
6426 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6427 TARGET_DEFAULT_RETURN.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (update_current_target): Don't inherit or default
6434 (target_thread_name): Unconditionally delegate.
6435 * target.h (struct target_ops) <to_thread_name>: Use
6436 TARGET_DEFAULT_RETURN.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target-delegates.c: Rebuild.
6441 * target.c (update_current_target): Don't inherit or default
6442 to_extra_thread_info.
6443 * target.h (struct target_ops) <to_extra_thread_info>: Use
6444 TARGET_DEFAULT_RETURN.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target-delegates.c: Rebuild.
6449 * target.c (update_current_target): Don't inherit or default
6451 * target.h (struct target_ops) <to_has_exited>: Use
6452 TARGET_DEFAULT_RETURN..
6454 2014-02-19 Tom Tromey <tromey@redhat.com>
6456 * target-delegates.c: Rebuild.
6457 * target.c (update_current_target): Don't inherit or default
6458 to_set_syscall_catchpoint.
6459 (return_one): Remove.
6460 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6461 TARGET_DEFAULT_RETURN.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * target-delegates.c: Rebuild.
6466 * target.c (update_current_target): Don't inherit or default
6467 to_insert_exec_catchpoint.
6468 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6469 TARGET_DEFAULT_RETURN.
6471 2014-01-08 Tom Tromey <tromey@redhat.com>
6473 * target-delegates.c: Rebuild.
6474 * target.c (update_current_target): Don't inherit or default
6475 to_insert_exec_catchpoint.
6476 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6477 TARGET_DEFAULT_RETURN.
6479 2014-02-19 Tom Tromey <tromey@redhat.com>
6481 * target-delegates.c: Rebuild.
6482 * target.c (update_current_target): Don't inherit or default
6483 to_remove_vfork_catchpoint.
6484 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6485 TARGET_DEFAULT_RETURN.
6487 2014-02-19 Tom Tromey <tromey@redhat.com>
6489 * target-delegates.c: Rebuild.
6490 * target.c (update_current_target): Don't inherit or default
6491 to_insert_vfork_catchpoint.
6492 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6493 TARGET_DEFAULT_RETURN.
6495 2014-02-19 Tom Tromey <tromey@redhat.com>
6497 * target-delegates.c: Rebuild.
6498 * target.c (update_current_target): Don't inherit or default
6499 to_remove_fork_catchpoint.
6500 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6501 TARGET_DEFAULT_RETURN.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (update_current_target): Don't inherit or default
6507 to_insert_fork_catchpoint.
6508 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6509 TARGET_DEFAULT_RETURN.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (update_current_target): Don't inherit or default
6515 to_post_startup_inferior.
6516 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6517 TARGET_DEFAULT_IGNORE.
6519 2014-02-19 Tom Tromey <tromey@redhat.com>
6521 * target-delegates.c: Rebuild.
6522 * target.c (update_current_target): Don't inherit or default
6524 * target.h (struct target_ops) <to_load>: Use
6525 TARGET_DEFAULT_NORETURN.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target-delegates.c: Rebuild.
6530 * target.c (update_current_target): Don't inherit or default
6532 * target.h (struct target_ops) <to_terminal_info>: Use
6533 TARGET_DEFAULT_FUNC.
6535 2014-02-19 Tom Tromey <tromey@redhat.com>
6537 * target-delegates.c: Rebuild.
6538 * target.c (update_current_target): Don't inherit or default
6539 to_terminal_save_ours.
6540 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6541 TARGET_DEFAULT_IGNORE.
6543 2014-02-19 Tom Tromey <tromey@redhat.com>
6545 * target-delegates.c: Rebuild.
6546 * target.c (update_current_target): Don't inherit or default
6548 * target.h (struct target_ops) <to_terminal_ours>: Use
6549 TARGET_DEFAULT_IGNORE.
6551 2014-02-19 Tom Tromey <tromey@redhat.com>
6553 * target-delegates.c: Rebuild.
6554 * target.c (update_current_target): Don't inherit or default
6555 to_terminal_ours_for_output.
6556 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6557 TARGET_DEFAULT_IGNORE.
6559 2014-02-19 Tom Tromey <tromey@redhat.com>
6561 * target-delegates.c: Rebuild.
6562 * target.c (update_current_target): Don't inherit or default
6563 to_terminal_inferior.
6564 * target.h (struct target_ops) <to_terminal_inferior>: Use
6565 TARGET_DEFAULT_IGNORE.
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target-delegates.c: Rebuild.
6570 * target.c (update_current_target): Don't inherit or default
6572 * target.h (struct target_ops) <to_terminal_init>: Use
6573 TARGET_DEFAULT_IGNORE.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * target-delegates.c: Rebuild.
6578 * target.c (update_current_target): Don't inherit or default
6579 to_can_accel_watchpoint_condition.
6580 * target.h (struct target_ops)
6581 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6583 2014-02-19 Tom Tromey <tromey@redhat.com>
6585 * target-delegates.c: Rebuild.
6586 * target.c (update_current_target): Don't inherit or default
6587 to_region_ok_for_hw_watchpoint.
6588 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6589 Use TARGET_DEFAULT_FUNC.
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target-delegates.c: Rebuild.
6594 * target.c (update_current_target): Don't inherit or default
6595 to_watchpoint_addr_within_range.
6596 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6597 Use TARGET_DEFAULT_FUNC.
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * target-delegates.c: Rebuild.
6602 * target.c (update_current_target): Don't inherit or default
6603 to_remove_watchpoint.
6604 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6605 TARGET_DEFAULT_NORETURN.
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target-delegates.c: Rebuild.
6610 * target.c (update_current_target): Don't inherit or default
6611 to_insert_watchpoint.
6612 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6613 TARGET_DEFAULT_RETURN.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target-delegates.c: Rebuild.
6618 * target.c (update_current_target): Don't inherit or default
6619 to_remove_hw_breakpoint.
6620 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6621 TARGET_DEFAULT_RETURN.
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target-delegates.c: Rebuild.
6626 * target.c (update_current_target): Don't inherit or default
6627 to_insert_hw_breakpoint.
6628 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6629 TARGET_DEFAULT_RETURN.
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target-delegates.c: Rebuild.
6634 * target.c (update_current_target): Don't inherit or default
6635 to_can_use_hw_breakpoint.
6636 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6637 TARGET_DEFAULT_RETURN.
6639 2014-02-19 Tom Tromey <tromey@redhat.com>
6641 * target-delegates.c: Rebuild.
6642 * target.c (update_current_target): Don't inherit or default
6644 * target.h (struct target_ops) <to_files_info>: Use
6645 TARGET_DEFAULT_IGNORE.
6647 2014-02-19 Tom Tromey <tromey@redhat.com>
6649 * target-delegates.c: Rebuild.
6650 * target.c (update_current_target): Don't inherit or default
6652 * target.h (struct target_ops) <to_store>: Use
6653 TARGET_DEFAULT_NORETURN.
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target-delegates.c: Rebuild.
6658 * target.c (update_current_target): Don't inherit or default
6660 * target.h (struct target_ops) <to_post_attach>: Use
6661 TARGET_DEFAULT_IGNORE.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target-delegates.c: Rebuild.
6666 * target.c (update_current_target): Don't inherit or default
6668 (default_rcmd): New function.
6669 (do_monitor_command): Unconditionally delegate.
6670 * target.h (struct target_ops) <to_rmcd>: Use
6671 TARGET_DEFAULT_FUNC.
6673 2014-02-19 Tom Tromey <tromey@redhat.com>
6675 * target-delegates.c: Rebuild.
6676 * target.c (init_dummy_target): Don't initialize to_attach.
6677 (target_attach): Unconditionally delegate.
6678 * target.h (struct target_ops) <to_attach>: Use
6679 TARGET_DEFAULT_FUNC.
6681 2014-02-19 Tom Tromey <tromey@redhat.com>
6683 * target-delegates.c: Rebuild.
6684 * target.c (target_detach): Unconditionally delegate.
6685 (init_dummy_target): Don't initialize to_detach.
6686 * target.h (struct target_ops) <to_detach>: Use
6687 TARGET_DEFAULT_IGNORE.
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6693 (target_augmented_libraries_svr4_read): Add argument.
6694 * target.c (update_current_target): Update.
6695 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6698 2014-02-19 Tom Tromey <tromey@redhat.com>
6700 * target.h (struct target_ops) <to_call_history_range>: Add
6702 * target.c (target_call_history_range): Add argument.
6703 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6705 (record_btrace_call_history_from): Update.
6707 2014-02-19 Tom Tromey <tromey@redhat.com>
6709 * target.h (struct target_ops) <to_call_history_from>: Add
6711 * target.c (target_call_history_from): Add argument.
6712 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6715 2014-02-19 Tom Tromey <tromey@redhat.com>
6717 * target.h (struct target_ops) <to_call_history>: Add argument.
6718 * target.c (target_call_history): Add argument.
6719 * record-btrace.c (record_btrace_call_history): Add 'self'
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target.h (struct target_ops) <to_insn_history_range>: Add
6726 * target.c (target_insn_history_range): Add argument.
6727 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6729 (record_btrace_insn_history_from): Update.
6731 2014-02-19 Tom Tromey <tromey@redhat.com>
6733 * target.h (struct target_ops) <to_insn_history_from>: Add
6735 * target.c (target_insn_history_from): Add argument.
6736 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6739 2014-02-19 Tom Tromey <tromey@redhat.com>
6741 * target.h (struct target_ops) <to_insn_history>: Add argument.
6742 * target.c (target_insn_history): Add argument.
6743 * record-btrace.c (record_btrace_insn_history): Add 'self'
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target.h (struct target_ops) <to_goto_record>: Add argument.
6749 * target.c (target_goto_record): Add argument.
6750 * record-full.c (record_full_goto): Add 'self' argument.
6751 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6756 * target.c (target_goto_record_end): Add argument.
6757 * record-full.c (record_full_goto_end): Add 'self' argument.
6758 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6760 2014-02-19 Tom Tromey <tromey@redhat.com>
6762 * target.h (struct target_ops) <to_goto_record_begin>: Add
6764 * target.c (target_goto_record_begin): Add argument.
6765 * record-full.c (record_full_goto_begin): Add 'self' argument.
6766 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6769 2014-02-19 Tom Tromey <tromey@redhat.com>
6771 * target.h (struct target_ops) <to_record_is_replaying>: Add
6773 * target.c (target_record_is_replaying): Add argument.
6774 * record-full.c (record_full_is_replaying): Add 'self' argument.
6775 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6777 (record_btrace_xfer_partial, record_btrace_store_registers)
6778 (record_btrace_prepare_to_store, record_btrace_resume)
6779 (record_btrace_wait, record_btrace_decr_pc_after_break)
6780 (record_btrace_find_new_threads, record_btrace_thread_alive):
6783 2014-02-19 Tom Tromey <tromey@redhat.com>
6785 * target.h (struct target_ops) <to_delete_record>: Add argument.
6786 * target.c (target_delete_record): Add argument.
6787 * record-full.c (record_full_delete): Add 'self' argument.
6789 2014-02-19 Tom Tromey <tromey@redhat.com>
6791 * target.h (struct target_ops) <to_save_record>: Add argument.
6792 * target.c (target_save_record): Add argument.
6793 * record-full.c (record_full_save): Add 'self' argument.
6794 (record_full_save): Add 'self' argument.
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6798 * target.h (struct target_ops) <to_info_record>: Add argument.
6799 * target.c (target_info_record): Add argument.
6800 * record.c (info_record_command): Add argument.
6801 * record-full.c (record_full_info): Add 'self' argument.
6802 * record-btrace.c (record_btrace_info): Add 'self' argument.
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6806 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6807 * target.c (target_stop_recording): Add argument.
6808 * record.c (record_stop): Add argument.
6809 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6812 2014-02-19 Tom Tromey <tromey@redhat.com>
6814 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6815 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6816 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6818 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6819 (_initialize_amd64_linux_nat): Use it.
6820 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6821 (_initialize_i386_linux_nat): Use it.
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6826 * target.c (target_teardown_btrace): Add argument.
6827 * remote.c (remote_teardown_btrace): Add 'self' argument.
6828 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6830 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6836 * target.c (target_disable_btrace): Add argument.
6837 * remote.c (remote_disable_btrace): Add 'self' argument.
6838 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6840 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6843 2014-02-19 Tom Tromey <tromey@redhat.com>
6845 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6846 * target.c (target_enable_btrace): Add argument.
6847 * remote.c (remote_enable_btrace): Add 'self' argument.
6848 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6850 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6853 2014-02-19 Tom Tromey <tromey@redhat.com>
6855 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6856 (target_can_use_agent): Add argument.
6857 * target.c (update_current_target): Update.
6858 * remote.c (remote_can_use_agent): Add 'self' argument.
6859 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6861 2014-02-19 Tom Tromey <tromey@redhat.com>
6863 * target.h (struct target_ops) <to_use_agent>: Add argument.
6864 (target_use_agent): Add argument.
6865 * target.c (update_current_target): Update.
6866 * remote.c (remote_use_agent): Add 'self' argument.
6867 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6869 2014-02-19 Tom Tromey <tromey@redhat.com>
6871 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6872 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6873 (target_traceframe_info): Add argument.
6874 * target.c (update_current_target): Update.
6875 * remote.c (remote_traceframe_info): Add 'self' argument.
6876 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6878 2014-02-19 Tom Tromey <tromey@redhat.com>
6880 * target.h (target_static_tracepoint_markers_by_strid): Add
6882 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6884 * target.c (update_current_target): Update.
6885 * remote.c (struct target_ops)
6886 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6887 * linux-nat.c (struct target_ops)
6888 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6890 2014-02-19 Tom Tromey <tromey@redhat.com>
6892 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6894 (target_static_tracepoint_marker_at): Add argument.
6895 * target.c (update_current_target): Update.
6896 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6899 2014-02-19 Tom Tromey <tromey@redhat.com>
6901 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6902 (target_set_permissions): Add argument.
6903 * target.c (update_current_target): Update.
6904 * remote.c (remote_set_permissions): Add 'self' argument.
6905 (remote_start_remote): Update.
6907 2014-02-19 Tom Tromey <tromey@redhat.com>
6909 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6910 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6911 (target_get_tib_address): Add argument.
6912 * target.c (update_current_target): Update.
6913 * remote.c (remote_get_tib_address): Add 'self' argument.
6915 2014-02-19 Tom Tromey <tromey@redhat.com>
6917 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6918 (target_set_trace_notes): Add argument.
6919 * target.c (update_current_target): Update.
6920 * remote.c (remote_set_trace_notes): Add 'self' argument.
6922 2014-02-19 Tom Tromey <tromey@redhat.com>
6924 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6926 (target_set_trace_buffer_size): Add argument.
6927 * target.c (update_current_target): Update.
6928 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6930 2014-02-19 Tom Tromey <tromey@redhat.com>
6932 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6934 (target_set_circular_trace_buffer): Add argument.
6935 * target.c (update_current_target): Update.
6936 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6939 2014-02-19 Tom Tromey <tromey@redhat.com>
6941 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6943 (target_set_disconnected_tracing): Add argument.
6944 * target.c (update_current_target): Update.
6945 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6947 2014-02-19 Tom Tromey <tromey@redhat.com>
6949 * target.h (struct target_ops)
6950 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6951 (target_get_min_fast_tracepoint_insn_len): Add argument.
6952 * target.c (update_current_target): Update.
6953 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6956 2014-02-19 Tom Tromey <tromey@redhat.com>
6958 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6960 (target_get_raw_trace_data): Add argument.
6961 * target.c (update_current_target): Update.
6962 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6964 2014-02-19 Tom Tromey <tromey@redhat.com>
6966 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6968 (target_upload_trace_state_variables): Add argument.
6969 * target.c (update_current_target): Update.
6970 * remote.c (remote_upload_trace_state_variables): Add 'self'
6972 (remote_start_remote): Update.
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6976 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6978 (target_upload_tracepoints): Add argument.
6979 * target.c (update_current_target): Update.
6980 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6981 (remote_start_remote): Update.
6983 2014-02-19 Tom Tromey <tromey@redhat.com>
6985 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6986 (target_save_trace_data): Add argument.
6987 * target.c (update_current_target): Update.
6988 * remote.c (remote_save_trace_data): Add 'self' argument.
6990 2014-02-19 Tom Tromey <tromey@redhat.com>
6992 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6994 * target.h (struct target_ops)
6995 <to_get_trace_state_variable_value>: Add argument.
6996 (target_get_trace_state_variable_value): Add argument.
6997 * target.c (update_current_target): Update.
6998 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7000 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7005 * target.h (struct target_ops) <to_trace_find>: Add argument.
7006 (target_trace_find): Add argument.
7007 * target.c (update_current_target): Update.
7008 * remote.c (remote_trace_find): Add 'self' argument.
7009 * ctf.c (ctf_trace_find): Add 'self' argument.
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7014 (target_trace_stop): Add argument.
7015 * target.c (update_current_target): Update.
7016 * remote.c (remote_trace_stop): Add 'self' argument.
7018 2014-02-19 Tom Tromey <tromey@redhat.com>
7020 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7021 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7023 (target_get_tracepoint_status): Add argument.
7024 * target.c (update_current_target): Update.
7025 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7027 2014-02-19 Tom Tromey <tromey@redhat.com>
7029 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7030 * target.h (struct target_ops) <to_get_trace_status>: Add
7032 (target_get_trace_status): Add argument.
7033 * target.c (update_current_target): Update.
7034 * remote.c (remote_get_trace_status): Add 'self' argument.
7035 (remote_start_remote, remote_can_download_tracepoint): Update.
7036 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7038 2014-02-19 Tom Tromey <tromey@redhat.com>
7040 * target.h (struct target_ops) <to_trace_start>: Add argument.
7041 (target_trace_start): Add argument.
7042 * target.c (update_current_target): Update.
7043 * remote.c (remote_trace_start): Add 'self' argument.
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7049 (target_trace_set_readonly_regions): Add argument.
7050 * target.c (update_current_target): Update.
7051 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7054 2014-02-19 Tom Tromey <tromey@redhat.com>
7056 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7058 (target_disable_tracepoint): Add argument.
7059 * target.c (update_current_target): Update.
7060 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7062 2014-02-19 Tom Tromey <tromey@redhat.com>
7064 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7066 (target_enable_tracepoint): Add argument.
7067 * target.c (update_current_target): Update.
7068 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7070 2014-02-19 Tom Tromey <tromey@redhat.com>
7072 * target.h (struct target_ops) <to_download_trace_state_variable>:
7074 (target_download_trace_state_variable): Add argument.
7075 * target.c (update_current_target): Update.
7076 * remote.c (remote_download_trace_state_variable): Add 'self'
7079 2014-02-19 Tom Tromey <tromey@redhat.com>
7081 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7083 (target_can_download_tracepoint): Add argument.
7084 * target.c (update_current_target): Update.
7085 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7087 2014-02-19 Tom Tromey <tromey@redhat.com>
7089 * target.h (struct target_ops) <to_download_tracepoint>: Add
7091 (target_download_tracepoint): Add argument.
7092 * target.c (update_current_target): Update.
7093 * remote.c (remote_download_tracepoint): Add 'self' argument.
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * target.h (struct target_ops) <to_trace_init>: Add argument.
7098 (target_trace_init): Add argument.
7099 * target.c (update_current_target): Update.
7100 * remote.c (remote_trace_init): Add 'self' argument.
7102 2014-02-19 Tom Tromey <tromey@redhat.com>
7104 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7105 * target.c (target_fileio_readlink): Add argument.
7106 * remote.c (remote_hostio_readlink): Add 'self' argument.
7107 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7112 * target.c (target_fileio_unlink): Add argument.
7113 * remote.c (remote_hostio_unlink): Add 'self' argument.
7114 (remote_file_delete): Update.
7115 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7117 2014-02-19 Tom Tromey <tromey@redhat.com>
7119 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7120 * target.c (target_fileio_close): Add argument.
7121 * remote.c (remote_hostio_close): Add 'self' argument.
7122 (remote_hostio_close_cleanup): Update.
7123 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7125 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7127 2014-02-19 Tom Tromey <tromey@redhat.com>
7129 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7130 * target.c (target_fileio_pread): Add argument.
7131 * remote.c (remote_hostio_pread): Add 'self' argument.
7132 (remote_bfd_iovec_pread, remote_file_get): Update.
7133 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7137 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7138 * target.c (target_fileio_pwrite): Add argument.
7139 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7140 (remote_file_put): Update.
7141 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7143 2014-02-19 Tom Tromey <tromey@redhat.com>
7145 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7146 * target.c (target_fileio_open): Add argument.
7147 * remote.c (remote_hostio_open): Add 'self' argument.
7148 (remote_bfd_iovec_open): Add 'self' argument.
7149 (remote_file_put): Add 'self' argument.
7150 (remote_file_get): Add 'self' argument.
7151 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7153 2014-02-19 Tom Tromey <tromey@redhat.com>
7155 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7157 (target_can_run_breakpoint_commands): Add argument.
7158 * target.c (update_current_target): Update.
7159 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7161 (remote_insert_breakpoint): Add 'self' argument.
7162 (remote_insert_hw_breakpoint): Add 'self' argument.
7163 (remote_can_run_breakpoint_commands): Add 'self' argument.
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target.h (struct target_ops)
7168 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7169 (target_supports_evaluation_of_breakpoint_conditions): Add
7171 * target.c (update_current_target): Update.
7172 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7174 (remote_insert_breakpoint): Add 'self' argument.
7175 (remote_insert_hw_breakpoint): Add 'self' argument.
7176 (remote_supports_cond_breakpoints): Add 'self' argument.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7182 (target_supports_string_tracing): Add argument.
7183 * target.c (update_current_target): Update.
7184 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7186 2014-02-19 Tom Tromey <tromey@redhat.com>
7188 * target.h (struct target_ops)
7189 <to_supports_disable_randomization>: Add argument.
7190 * target.c (find_default_supports_disable_randomization): Add
7192 (target_supports_disable_randomization): Add argument.
7193 (find_default_supports_disable_randomization): Add 'self'
7195 * remote.c (extended_remote_supports_disable_randomization): Add
7197 (remote_supports_disable_randomization): Add 'self' argument.
7198 (extended_remote_create_inferior): Update.
7199 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7202 2014-02-19 Tom Tromey <tromey@redhat.com>
7204 * target.h (struct target_ops)
7205 <to_supports_enable_disable_tracepoint>: Add argument.
7206 (target_supports_enable_disable_tracepoint): Add argument.
7207 * target.c (update_current_target): Update.
7208 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7213 * target.h (struct target_ops) <to_supports_multi_process>: Add
7215 (target_supports_multi_process): Add argument.
7216 * target.c (update_current_target): Update.
7217 * remote.c (remote_supports_multi_process): Add 'self' argument.
7218 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7220 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7223 2014-02-19 Tom Tromey <tromey@redhat.com>
7225 * target.h (struct target_ops) <to_execution_direction>: Add
7227 (target_execution_direction): Add argument.
7228 * target.c (default_execution_direction): Add 'self' argument.
7229 * record-full.c (record_full_execution_direction): Add 'self'
7232 2014-02-19 Tom Tromey <tromey@redhat.com>
7234 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7236 (target_can_execute_reverse): Add argument.
7237 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7238 * record-full.c (record_full_can_execute_reverse): Add 'self'
7240 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7243 2014-02-19 Tom Tromey <tromey@redhat.com>
7245 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7246 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7248 (target_get_ada_task_ptid): Add argument.
7249 * target.c (update_current_target): Update.
7250 (default_get_ada_task_ptid): Add 'self' argument.
7251 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7252 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7253 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7255 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7257 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7259 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7261 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7262 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7268 (target_goto_bookmark): Add argument.
7269 * target.c (dummy_goto_bookmark): Add 'self' argument.
7270 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7275 (target_get_bookmark): Add argument.
7276 * target.c (dummy_get_bookmark): Add 'self' argument.
7277 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7283 (target_make_corefile_notes): Add argument.
7284 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7285 * procfs.c (procfs_make_note_section): Add 'self' argument.
7286 (procfs_make_note_section): Add 'self' argument.
7287 (procfs_make_note_section): Add 'self' argument.
7288 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7290 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7291 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7292 * exec.c (exec_make_note_section): Add 'self' argument.
7293 (exec_make_note_section): Add 'self' argument.
7295 2014-02-19 Tom Tromey <tromey@redhat.com>
7297 * target.h (struct target_ops) <to_find_memory_regions>: Add
7299 (target_find_memory_regions): Add argument.
7300 * target.c (dummy_find_memory_regions): Add 'self' argument.
7301 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7302 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7303 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7304 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7305 * exec. (exec_do_find_memory_regions): New global.
7306 (exec_set_find_memory_regions): Rewrite.
7307 (exec_find_memory_regions): New function.
7308 (init_exec_ops): Use exec_find_memory_regions.
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target.h (struct target_ops) <to_supports_non_stop>: Add
7314 * target.c (find_default_supports_non_stop): Add argument.
7315 (target_supports_non_stop): Add argument.
7316 (find_default_supports_non_stop): Add 'self' argument.
7317 * remote.c (remote_supports_non_stop): Add 'self' argument.
7318 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7322 * target.h (struct target_ops) <to_log_command>: Add argument.
7323 (target_log_command): Add argument.
7324 * serial.h (serial_log_command): Add 'self' argument.
7325 * serial.c (serial_log_command): Add 'self' argument.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7330 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7332 (target_pid_to_exec_file): Add argument.
7333 * target.c (debug_to_pid_to_exec_file): Add argument.
7334 (update_current_target): Update.
7335 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7336 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7337 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7338 (linux_handle_extended_wait): Update.
7339 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7340 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7341 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7342 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7344 2014-02-19 Tom Tromey <tromey@redhat.com>
7346 * target.h (struct target_ops) <to_rcmd>: Add argument.
7347 (target_rcmd): Add argument.
7348 * target.c (debug_to_rcmd): Add argument.
7349 (update_current_target, do_monitor_command): Update.
7350 * remote.c (remote_rcmd): Add 'self' argument.
7351 * monitor.c (monitor_rcmd): Add 'self' argument.
7353 2014-02-19 Tom Tromey <tromey@redhat.com>
7355 * windows-nat.c (windows_stop): Add 'self' argument.
7356 * target.h (struct target_ops) <to_stop>: Add argument.
7357 * target.c (target_stop): Add argument.
7358 (debug_to_stop): Add argument.
7359 (update_current_target): Update.
7360 * remote.c (remote_stop): Add 'self' argument.
7361 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7362 (gdbsim_cntrl_c): Update.
7363 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7364 * procfs.c (procfs_stop): Add 'self' argument.
7365 * nto-procfs.c (procfs_stop): Add 'self' argument.
7366 * monitor.c (monitor_stop): Add 'self' argument.
7367 (monitor_open): Update.
7368 * linux-nat.c (linux_nat_stop): Add argument.
7369 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7370 * gnu-nat.c (gnu_stop): Add 'self' argument.
7371 * darwin-nat.c (darwin_stop): Add 'self' argument.
7373 2014-02-19 Tom Tromey <tromey@redhat.com>
7375 * target.h (struct target_ops) <to_thread_name>: Add argument.
7376 * target.c (target_thread_name): Add argument.
7377 (update_current_target): Update.
7378 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7380 2014-02-19 Tom Tromey <tromey@redhat.com>
7382 * target.h (struct target_ops) <to_extra_thread_info>: Add
7384 (target_extra_thread_info): Add argument.
7385 * target.c (update_current_target): Update.
7386 * remote.c (remote_threads_extra_info): Add 'self' argument.
7387 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7389 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7390 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7391 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7393 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7395 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7397 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7400 2014-02-19 Tom Tromey <tromey@redhat.com>
7402 * target.h (struct target_ops) <to_program_signals>: Add argument.
7403 * target.c (target_program_signals): Add argument.
7404 * remote.c (remote_program_signals): Add 'self' argument.
7406 2014-02-19 Tom Tromey <tromey@redhat.com>
7408 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7409 * target.c (target_pass_signals): Add argument.
7410 * remote.c (remote_pass_signals): Add 'self' argument.
7411 (remote_start_remote): Update.
7412 * procfs.c (procfs_pass_signals): Add 'self' argument.
7413 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7414 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7415 (linux_nat_create_inferior, linux_nat_attach): Update.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * windows-nat.c (windows_can_run): Add 'self' argument.
7420 * target.h (struct target_ops) <to_can_run>: Add argument.
7421 (target_can_run): Add argument.
7422 * target.c (debug_to_can_run): Add argument.
7423 (update_current_target): Update.
7424 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7425 * inf-child.c (inf_child_can_run): Add 'self' argument.
7426 * go32-nat.c (go32_can_run): Add 'self' argument.
7428 2014-02-19 Tom Tromey <tromey@redhat.com>
7430 * target.h (struct target_ops) <to_has_exited>: Add argument.
7431 (target_has_exited): Add argument.
7432 * target.c (debug_to_has_exited): Add argument.
7433 (update_current_target): Update.
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7437 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7439 (target_set_syscall_catchpoint): Add argument.
7440 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7442 * target.c (update_current_target): Update.
7444 2014-02-19 Tom Tromey <tromey@redhat.com>
7446 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7448 (target_remove_exec_catchpoint): Add argument.
7449 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7450 (update_current_target): Update.
7451 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7454 2014-02-19 Tom Tromey <tromey@redhat.com>
7456 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7458 (target_insert_exec_catchpoint): Add argument.
7459 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7460 (update_current_target): Update.
7461 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7466 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7468 (target_remove_vfork_catchpoint): Add argument.
7469 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7470 (update_current_target): Update.
7471 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7474 2014-02-19 Tom Tromey <tromey@redhat.com>
7476 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7478 (target_insert_vfork_catchpoint): Add argument.
7479 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7480 (update_current_target): Update.
7481 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7488 (target_remove_fork_catchpoint): Add argument.
7489 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7490 (update_current_target): Update.
7491 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7494 2014-02-19 Tom Tromey <tromey@redhat.com>
7496 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7498 (target_insert_fork_catchpoint): Add argument.
7499 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7500 (update_current_target): Update.
7501 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7506 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7508 (target_post_startup_inferior): Add argument.
7509 * target.c (debug_to_post_startup_inferior): Add argument.
7510 (update_current_target): Update.
7511 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7513 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7515 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7517 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7519 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7521 (super_post_startup_inferior): Likewise.
7522 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7524 (super_post_startup_inferior): Likewise.
7525 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7526 Add 'self' argument.
7527 (super_post_startup_inferior): Likewise.
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7531 * target.h (struct target_ops) <to_load>: Add argument.
7532 * target.c (target_load): Add argument.
7533 (debug_to_load): Add argument.
7534 (update_current_target): Update.
7535 * remote.c (remote_load): Add 'self' argument.
7536 * remote-sim.c (gdbsim_load): Add 'self' argument.
7537 * remote-mips.c (mips_load): Add 'self' argument.
7538 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7539 * monitor.c (monitor_load): Add 'self' argument.
7540 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7542 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7545 (target_terminal_info): Add argument.
7546 * target.c (debug_to_terminal_info): Add argument.
7547 (default_terminal_info): Likewise.
7548 * inflow.c (child_terminal_info): Add 'self' argument.
7549 * inferior.h (child_terminal_info): Add 'self' argument.
7550 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7554 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7556 (target_terminal_save_ours): Add argument.
7557 * target.c (debug_to_terminal_save_ours): Add argument.
7558 (update_current_target): Update.
7559 * inflow.c (terminal_save_ours): Add 'self' argument.
7560 * inferior.h (terminal_save_ours): Add 'self' argument.
7562 2014-02-19 Tom Tromey <tromey@redhat.com>
7564 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7565 (target_terminal_ours): Add argument.
7566 * target.c (debug_to_terminal_ours): Add argument.
7567 (update_current_target): Update.
7568 * remote.c (remote_terminal_ours): Add 'self' argument.
7569 (remote_close): Update.
7570 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7571 * inflow.c (terminal_ours): Add 'self' argument.
7572 * inferior.h (terminal_ours): Add 'self' argument.
7573 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7575 2014-02-19 Pedro Alves <palves@redhat.com>
7576 Tom Tromey <tromey@redhat.com>
7578 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7580 (target_terminal_ours_for_output): Add argument.
7581 * target.c (debug_to_terminal_ours_for_output): Add argument.
7582 (update_current_target): Update.
7583 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7584 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7585 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target.h (struct target_ops) <to_terminal_inferior>: Add
7591 * target.c (target_terminal_inferior): Add argument.
7592 (update_current_target): Update.
7593 * remote.c (remote_terminal_inferior): Add 'self' argument.
7594 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7595 * inflow.c (terminal_inferior): Add 'self' argument.
7596 * inferior.h (terminal_inferior): Add 'self' argument.
7597 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7598 (go32_terminal_inferior): Add 'self' argument.
7600 2014-02-19 Tom Tromey <tromey@redhat.com>
7602 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7603 (target_terminal_init): Add argument.
7604 * target.c (debug_to_terminal_init): Add argument.
7605 (update_current_target): Update.
7606 * inflow.c (terminal_init_inferior): Add 'self' argument.
7607 * inferior.h (terminal_init_inferior): Add 'self' argument.
7608 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7609 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7611 2014-02-19 Tom Tromey <tromey@redhat.com>
7613 * target.h (struct target_ops)
7614 <to_can_accel_watchpoint_condition>: Add argument.
7615 (target_can_accel_watchpoint_condition): Add argument.
7616 * target.c (debug_to_can_accel_watchpoint_condition): Add
7618 (update_current_target): Update.
7619 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7626 (target_region_ok_for_hw_watchpoint): Add argument.
7627 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7628 (default_region_ok_for_hw_watchpoint): Add argument.
7629 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7630 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7632 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7634 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7636 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7638 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7640 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7642 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7643 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7645 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7646 Add 'self' argument.
7648 2014-02-19 Tom Tromey <tromey@redhat.com>
7650 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7652 (target_insert_watchpoint): Add argument.
7653 * target.c (debug_to_insert_watchpoint): Add argument.
7654 (update_current_target): Update.
7655 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7656 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7657 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7658 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7659 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7660 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7662 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7663 (procfs_insert_hw_watchpoint): Add 'self' argument.
7664 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7666 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7668 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7670 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7671 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7673 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7678 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7680 (target_remove_watchpoint): Add argument.
7681 * target.c (debug_to_remove_watchpoint): Add argument.
7682 (update_current_target): Update.
7683 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7684 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7685 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7686 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7687 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7688 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7690 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7691 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7693 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7695 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7697 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7698 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7700 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7703 2014-02-19 Tom Tromey <tromey@redhat.com>
7705 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7707 (target_remove_hw_breakpoint): Add argument.
7708 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7709 (update_current_target): Update.
7710 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7711 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7713 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7714 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7716 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7721 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7723 (target_insert_hw_breakpoint): Add argument.
7724 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7725 (update_current_target): Update.
7726 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7727 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7729 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7730 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7731 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7733 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7736 2014-02-19 Tom Tromey <tromey@redhat.com>
7738 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7740 (target_can_use_hardware_watchpoint): Add argument.
7741 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7742 (update_current_target): Update.
7743 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7745 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7747 * remote.c (remote_check_watch_resources): Add 'self' argument.
7748 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7749 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7751 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7752 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7754 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7756 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7758 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7760 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7762 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7764 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7765 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7767 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7770 2014-02-19 Tom Tromey <tromey@redhat.com>
7772 * target.h (struct target_ops) <to_post_attach>: Add argument.
7773 (target_post_attach): Add argument.
7774 * target.c (debug_to_post_attach): Add argument.
7775 (update_current_target): Update.
7776 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7777 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7778 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7779 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7780 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7784 * windows-nat.c (windows_close): Add 'self' argument.
7785 * tracepoint.c (tfile_close): Add 'self' argument.
7786 * target.h (struct target_ops) <to_close>: Add argument.
7787 * target.c (target_close): Add argument.
7788 (update_current_target): Update.
7789 * remote.c (remote_close): Add 'self' argument.
7790 * remote-sim.c (gdbsim_close): Add 'self' argument.
7791 * remote-mips.c (mips_close): Add 'self' argument.
7792 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7793 * record-full.c (record_full_close): Add 'self' argument.
7794 * record-btrace.c (record_btrace_close): Add 'self' argument.
7795 * monitor.h (monitor_close): Add 'self' argument.
7796 * monitor.c (monitor_close): Add 'self' argument.
7797 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7798 * linux-nat.c (linux_nat_close): Add argument.
7799 * go32-nat.c (go32_close): Add 'self' argument.
7800 * exec.c (exec_close_1): Add 'self' argument.
7801 * ctf.c (ctf_close): Add 'self' argument.
7802 * corelow.c (core_close): Add 'self' argument.
7803 (core_close_cleanup): Update.
7804 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7805 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * remote.c (remote_load): New function.
7810 (init_remote_ops): Use it.
7812 2014-02-19 Tom Tromey <tromey@redhat.com>
7814 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7816 * common/linux-btrace.h (linux_supports_btrace): Update.
7817 * remote.c (remote_supports_btrace): Add "self" argument.
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_supports_btrace): Remove.
7820 * target.h (struct target_ops) <to_supports_btrace>: Add
7821 target_ops argument.
7822 (target_supports_btrace): New define.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * record-full.c (record_full_beneath_to_resume_ops)
7827 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7828 (record_full_beneath_to_wait)
7829 (record_full_beneath_to_store_registers_ops)
7830 (record_full_beneath_to_store_registers)
7831 (record_full_beneath_to_xfer_partial_ops)
7832 (record_full_beneath_to_xfer_partial)
7833 (record_full_beneath_to_insert_breakpoint_ops)
7834 (record_full_beneath_to_insert_breakpoint)
7835 (record_full_beneath_to_remove_breakpoint_ops)
7836 (record_full_beneath_to_remove_breakpoint)
7837 (record_full_beneath_to_stopped_by_watchpoint)
7838 (record_full_beneath_to_stopped_data_address)
7839 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7840 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7841 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7842 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7843 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7844 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7845 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7846 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7847 (record_full_resume, record_full_wait_1)
7848 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7849 (record_full_store_registers, record_full_xfer_partial)
7850 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7851 (record_full_async, record_full_core_xfer_partial): Use target
7853 * target-delegates.c: Rebuild.
7854 * target.c (current_xfer_partial): Remove.
7855 (update_current_target): Do not INHERIT or de_fault
7856 to_insert_breakpoint, to_remove_breakpoint,
7857 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7858 to_is_async_p, to_async. Do not set to_xfer_partial field.
7859 (default_xfer_partial): Simplify.
7860 (current_xfer_partial): Remove.
7861 (target_wait, target_resume): Simplify.
7862 (find_default_can_async_p, find_default_is_async_p): Update.
7863 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7864 to_xfer_partial, to_stopped_by_watchpoint,
7865 to_stopped_data_address.
7866 (target_store_registers): Simplify.
7867 (forward_target_remove_breakpoint)
7868 (forward_target_insert_breakpoint): Remove.
7869 (target_remove_breakpoint, target_insert_breakpoint)
7870 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7871 * target.h (struct target_ops) <to_resume, to_wait,
7872 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7873 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7874 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7876 (forward_target_remove_breakpoint)
7877 (forward_target_insert_breakpoint): Remove.
7878 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7880 (record_btrace_insert_breakpoint): Delegate directly.
7882 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target-delegates.c: New file.
7886 * target.c: Include target-delegates.c.
7887 (init_dummy_target): Call install_dummy_methods.
7888 (complete_target_initialization): Call install_delegators.
7889 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7890 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7891 * make-target-delegates: New file.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * record.c (find_record_target): Use find_target_at.
7896 * target.c (find_target_at): New function.
7897 * target.h (find_target_at): Declare.
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7903 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7905 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7906 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7908 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7910 * linux-nat.c (save_sigtrap): Update.
7911 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7912 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7913 (linux_nat_close): Update.
7914 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7916 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7918 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7919 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7920 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7921 (tmp_to_async): Add 'ops' argument.
7922 (record_full_stopped_by_watchpoint, record_full_async)
7923 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7925 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7926 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7927 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7928 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7929 (remote_is_async_p, remote_async): Add 'ops' argument.
7930 (remote_stopped_data_address): Update.
7931 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7932 * target.c (update_current_target)
7933 (find_default_can_async_p, find_default_is_async_p): Update.
7934 (init_dummy_target): Update.
7935 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7936 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7937 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7938 (target_can_async_p, target_is_async_p, target_async)
7939 (target_stopped_by_watchpoint): Update.
7941 2014-02-19 Yao Qi <yao@codesourcery.com>
7944 * gdbarch.sh: Remove startup_gdbarch.
7945 * gdbarch.c: Regenerated.
7946 * gdbarch.h: Likewise.
7948 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7950 * rl78-tdep.c (rl78_g10_register_name): New function.
7951 (rl78_return_value): Add g10 support.
7952 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7955 2014-02-17 Doug Evans <xdje42@gmail.com>
7957 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7958 (SUBDIR_GUILE_SRCS): Ditto.
7959 (scm-gsmob.o): Ditto.
7961 2014-02-17 Yao Qi <yao@codesourcery.com>
7963 * gnu-nat.c (ILL_RPC): Declare defined function.
7965 2014-02-17 Yao Qi <yao@codesourcery.com>
7967 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7968 mach_msg_type_number_t.
7969 (gnu_write_inferior): Likewise.
7971 2014-02-17 Yao Qi <yao@codesourcery.com>
7973 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7975 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7976 (inf_validate_procs, inf_signal): Likewise.
7977 (S_exception_raise_request): Likewise.
7978 (do_mach_notify_dead_name): Likewise.
7979 (steal_exc_port): Likewise.
7980 (gnu_read_inferior): Change 'copy_count''s type to
7981 mach_msg_type_number_t.
7982 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7985 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7987 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7988 flag. Adjust all users; in particular...
7989 (gnu_wait): ..., don't decrement its value in here...
7990 (gnu_create_inferior): ..., and instead set the flag in here,
7991 around the startup_inferior call, and call that one with
7992 START_INFERIOR_TRAPS_EXPECTED.
7994 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7995 (ILL_RPC): ... new macro.
7996 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7997 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7998 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7999 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8000 functions with ILL_RPC macro.
8001 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8002 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8003 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8004 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8005 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8006 (S_proc_getlogin_reply, S_proc_getsid_reply)
8007 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8008 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8009 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8010 (S_proc_getnports_reply, S_proc_is_important_reply)
8011 (S_proc_get_code_reply): New stub functions, generated with
8014 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8015 collected the type check structures.
8017 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8019 2014-02-14 Doug Evans <dje@google.com>
8021 * target.c (target_write_partial): Fix result type.
8023 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8025 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8026 the proper offsets to access fpregset_t.
8028 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8030 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8031 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8032 * h8300-tdep.c (setmachinelist): Remove global.
8033 * hppa-tdep.c (hppa_sigtramp): Remove global.
8034 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8035 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8036 * ravenscar-thread.c (update_target_observer): Remove global.
8037 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8039 2014-02-12 Tom Tromey <tromey@redhat.com>
8041 * common/rsp-low.c: Update comments.
8042 * common/rsp-low.h: Update comments.
8044 2014-02-12 Tom Tromey <tromey@redhat.com>
8046 * common/rsp-low.c (convert_ascii_to_int): Remove.
8047 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8049 2014-02-12 Tom Tromey <tromey@redhat.com>
8051 * common/rsp-low.h (unhexify): Don't declare.
8052 * common/rsp-low.c (unhexify): Remove.
8054 2014-02-12 Tom Tromey <tromey@redhat.com>
8056 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8057 * common/rsp-low.c (convert_int_to_ascii): Remove.
8059 2014-02-12 Tom Tromey <tromey@redhat.com>
8061 * common/rsp-low.h (hexify): Don't declare.
8062 * common/rsp-low.c (hexify): Remove.
8064 2014-02-12 Tom Tromey <tromey@redhat.com>
8066 * common/rsp-low.c (hexify): Never take strlen of argument.
8068 2014-02-12 Tom Tromey <tromey@redhat.com>
8070 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8071 * remote.c (extended_remote_run, remote_rcmd)
8072 (remote_download_trace_state_variable, remote_save_trace_data)
8073 (remote_set_trace_notes): Update.
8074 * tracepoint.c (encode_source_string, tfile_write_status)
8075 (tfile_write_uploaded_tsv): Update.
8077 2014-02-12 Tom Tromey <tromey@redhat.com>
8079 * tracepoint.c: Include rsp-low.h.
8080 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8081 * remote.c: Include rsp-low.h.
8082 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8083 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8084 (remote_unescape_input): Move to common/rsp-low.c.
8085 * common/rsp-low.h: New file.
8086 * common/rsp-low.c: New file.
8087 * Makefile.in (SFILES): Add common/rsp-low.c.
8088 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8089 (COMMON_OBS): Add rsp-low.o.
8090 (rsp-low.o): New target.
8092 2014-02-12 Tom Tromey <tromey@redhat.com>
8094 * utils.h: Include print-utils.h.
8095 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8096 (int_string, core_addr_to_string, core_addr_to_string_nz)
8097 (hex_string, hex_string_custom): Don't declare.
8098 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8099 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8100 (hex_string_custom, int_string, core_addr_to_string)
8101 (core_addr_to_string_nz, host_address_to_string): Move to
8102 common/print-utils.c.
8103 * common/print-utils.h: New file.
8104 * common/print-utils.c: New file
8105 * Makefile.in (SFILES): Add common/print-utils.c.
8106 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8107 (COMMON_OBS): Add print-utils.o.
8108 (print-utils.o): New target.
8110 2014-02-12 Tom Tromey <tromey@redhat.com>
8112 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8114 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8116 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8118 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8120 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8121 if a PT_IO ptrace request returns sucessfully but indicates that 0
8122 bytes were transferred.
8124 2014-02-12 Pedro Alves <palves@redhat.com>
8125 Kevin Buettner <kevinb@redhat.com>
8127 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8128 TYPE_INSTANCE_FLAG_CODE_SPACE.
8130 2014-02-12 Pedro Alves <palves@redhat.com>
8132 * h8300-tdep.c (pseudo_from_raw_register)
8133 (raw_from_pseudo_register): New functions.
8134 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8137 2014-02-12 Pedro Alves <palves@redhat.com>
8139 * h8300-tdep.c (h8300_register_sim_regno): New function.
8140 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8141 gdbarch_register_sim_regno hook.
8143 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8145 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8147 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8149 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8151 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8153 * obsd-tdep.h (obsd_init_abi): New prototype.
8154 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8155 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8156 (obsd_init_abi): New functions.
8157 * i386obsd-tdep.c: Include "obsd-tdep.h".
8158 (i386obsd_init_abi): Call obsd_init_abi.
8159 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8160 (amd64obsd_init_abi): Call obsd_init_abi.
8161 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8162 obsd-tdep.c to gdb_target_obs.
8164 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8166 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8167 double float arguments to 16-byte in the argument slots.
8169 2014-02-11 Doug Evans <xdje42@gmail.com>
8171 * configure.ac: Don't crash if pkg-config is not found and guile
8172 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8174 * configure: Regenerate.
8176 2014-02-11 Yao Qi <yao@codesourcery.com>
8178 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8179 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8180 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8181 * gnu-nat.c (gnu_xfer_memory): Likewise.
8182 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8183 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8184 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8185 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8187 2014-02-11 Yao Qi <yao@codesourcery.com>
8189 * target.h (enum target_xfer_error): Rename to ...
8190 (enum target_xfer_status): ... it. New. All users updated.
8191 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8193 (TARGET_XFER_STATUS_ERROR_P): New macro.
8194 (target_xfer_error_to_string): Remove declaration.
8195 (target_xfer_status_to_string): Declare.
8196 (target_xfer_partial_ftype): Adjust it.
8197 (struct target_ops) <to_xfer_partial>: Return
8198 target_xfer_status. Add argument xfered_len. Update
8200 * target.c (target_xfer_error_to_string): Rename to ...
8201 (target_xfer_status_to_string): ... it. New. All callers
8203 (target_read_live_memory): Likewise. Call target_xfer_partial
8204 instead of target_read.
8205 (memory_xfer_live_readonly_partial): Return
8206 target_xfer_status. Add argument xfered_len.
8207 (raw_memory_xfer_partial): Likewise.
8208 (memory_xfer_partial_1): Likewise.
8209 (memory_xfer_partial): Likewise.
8210 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8211 properly. Update debug message.
8212 (default_xfer_partial, current_xfer_partial): Likewise.
8213 (target_write_partial): Likewise.
8214 (target_read_partial): Likewise. All callers updated.
8215 (read_whatever_is_readable): Likewise.
8216 (target_write_with_progress): Likewise.
8217 (target_read_alloc_1): Likewise.
8219 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8220 * auxv.c (procfs_xfer_auxv): Likewise.
8221 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8222 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8223 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8224 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8225 * corefile.c (read_memory): Adjust.
8226 * corelow.c (core_xfer_partial): Likewise.
8227 * ctf.c (ctf_xfer_partial): Likewise.
8228 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8230 (darwin_xfer_partial): Likewise.
8231 * exec.c (section_table_xfer_memory_partial): Likewise. All
8233 (exec_xfer_partial): Likewise.
8234 * exec.h (section_table_xfer_memory_partial): Update
8236 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8238 (gnu_xfer_partial): Likewise.
8239 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8240 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8241 (ia64_hpux_xfer_solib_got): Likewise.
8242 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8243 type of 'partial_len' to ULONGEST.
8244 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8245 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8246 (linux_nat_xfer_partial): Likewise.
8247 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8248 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8249 * monitor.c (monitor_xfer_memory): Likewise.
8250 (monitor_xfer_partial): Likewise.
8251 * procfs.c (procfs_xfer_partial): Likewise.
8252 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8253 * record-full.c (record_full_xfer_partial): Likewise.
8254 (record_full_core_xfer_partial): Likewise.
8255 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8256 (gdbsim_xfer_partial): Likewise.
8257 * remote.c (remote_write_bytes_aux): Likewise. All callers
8259 (remote_write_bytes, remote_read_bytes): Likewise. All
8261 (remote_flash_erase): Likewise. All callers updated.
8262 (remote_write_qxfer): Likewise. All callers updated.
8263 (remote_read_qxfer): Likewise. All callers updated.
8264 (remote_xfer_partial): Likewise.
8265 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8266 (rs6000_xfer_shared_libraries): Likewise.
8267 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8268 (sol_thread_xfer_partial): Likewise.
8269 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8270 (sparc_xfer_partial): Likewise.
8271 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8273 (spu_xfer_partial): Likewise.
8274 * spu-multiarch.c (spu_xfer_partial): Likewise.
8275 * tracepoint.c (tfile_xfer_partial): Likewise.
8276 * windows-nat.c (windows_xfer_memory): Likewise.
8277 (windows_xfer_shared_libraries): Likewise.
8278 (windows_xfer_partial): Likewise.
8279 * valprint.c: Replace 'target_xfer_error' with
8280 'target_xfer_status' in comments.
8282 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8284 Checked in by Joel Brobecker <brobecker@adacore.com>.
8285 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8287 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8289 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8290 function parameters.
8292 2014-02-10 Will Newton <will.newton@linaro.org>
8294 * elfread.c (elf_rel_plt_read): Look for a .got section if
8295 looking up .got.plt fails.
8296 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8297 on address passed to elf_gnu_ifunc_record_cache.
8298 (elf_gnu_ifunc_resolve_addr): Likewise.
8299 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8301 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8303 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8304 (X_RETTURN): New macro.
8305 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8307 * sparc64-tdep.c (sparc64_init_abi): Hook
8308 sparc_in_function_epilogue_p.
8310 2014-02-10 Gary Benson <gbenson@redhat.com>
8312 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8313 Rename name_matcher to symbol_matcher.
8315 2014-02-10 Gary Benson <gbenson@redhat.com>
8317 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8318 Use expand_symtabs_file_matcher_ftype and
8319 expand_symtabs_symbol_matcher_ftype.
8321 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8323 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8324 (struct ada_symbol_cache): New.
8325 (ada_free_symbol_cache): Forward declare.
8326 (struct ada_pspace_data): New.
8327 (ada_pspace_data_handle): New static global.
8328 (get_ada_pspace_data, ada_pspace_data_cleanup)
8329 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8330 (cache_space, cache): Delete, now folded inside struct
8332 (ada_get_symbol_cache): New function.
8333 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8335 (_initialize_ada_language): Remove initialization of cache_space.
8336 Move call to observer_attach_inferior_exit up, grouping it
8337 with the other observer registrations inside this function.
8338 Rename command to be more general. Add call to
8339 register_program_space_data_with_cleanup.
8341 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8343 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8344 ada_new_objfile_observer.
8345 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8346 (_initialize_tasks): Update uses of ada_new_objfile_observer
8347 and ada_tasks_normal_stop_observer.
8349 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8351 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8352 returned by the 'Length attribute to integer.
8354 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8356 * ada-lang.c (_initialize_ada_language): Initialize
8357 cache_space obstack.
8359 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8361 * ada-lang.c (HASH_SIZE): New macro.
8362 (struct cache_entry): New type.
8363 (cache_space, cache): New static globals.
8364 (ada_clear_symbol_cache, find_entry): New functions.
8365 (lookup_cached_symbol, cache_symbol): Implement.
8366 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8367 (_initialize_ada_language): Attach ada_new_objfile_observer
8368 and ada_free_objfile_observer.
8370 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8372 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8373 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8374 struct block * parameter.
8375 (ada_lookup_symbol_list_worker): Constify local variable "block".
8376 Remove cast which is no longer necessary.
8378 2014-02-10 Doug Evans <xdje42@gmail.com>
8380 Add Guile as an extension language.
8381 * NEWS: Mention Guile scripting.
8382 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8383 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8384 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8385 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8386 (CLIBS): Add GUILE_LIBS.
8387 (install-guile): New rule.
8388 (guile.o): New rule.
8389 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8390 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8391 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8392 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8393 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8394 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8395 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8396 * configure.ac: New option --with-guile.
8397 * configure: Regenerate.
8398 * config.in: Regenerate.
8399 * auto-load.c: Remove #include "python/python.h". Add #include
8400 "gdb/section-scripts.h".
8401 (source_section_scripts): Handle Guile scripts.
8402 (_initialize_auto_load): Add name of Guile objfile script to
8403 scripts-directory help text.
8404 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8405 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8406 (struct breakpoint): New member scm_bp_object.
8407 * defs.h (enum command_control_type): New value guile_control.
8408 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8410 (show_user): Update comment.
8411 (_initialize_cli_cmds): Update help text for "show user". Update help
8412 text for max-user-call-depth.
8413 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8415 (multi_line_command_p): Add guile_control.
8416 (print_command_lines): Handle guile_control.
8417 (execute_control_command, recurse_read_control_structure): Ditto.
8418 (process_next_line): Recognize "guile" commands.
8419 * disasm.c (gdb_disassemble_info): Make non-static.
8420 * disasm.h: #include "dis-asm.h".
8421 (struct gdbarch): Add forward decl.
8422 (gdb_disassemble_info): Declare.
8423 * extension.c: #include "guile/guile.h".
8424 (extension_languages): Add guile.
8425 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8426 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8427 * gdbtypes.c (get_unsigned_type_max): New function.
8428 (get_signed_type_minmax): New function.
8429 * gdbtypes.h (get_unsigned_type_max): Declare.
8430 (get_signed_type_minmax): Declare.
8431 * guile/README: New file.
8432 * guile/guile-internal.h: New file.
8433 * guile/guile.c: New file.
8434 * guile/guile.h: New file.
8435 * guile/scm-arch.c: New file.
8436 * guile/scm-auto-load.c: New file.
8437 * guile/scm-block.c: New file.
8438 * guile/scm-breakpoint.c: New file.
8439 * guile/scm-disasm.c: New file.
8440 * guile/scm-exception.c: New file.
8441 * guile/scm-frame.c: New file.
8442 * guile/scm-gsmob.c: New file.
8443 * guile/scm-iterator.c: New file.
8444 * guile/scm-lazy-string.c: New file.
8445 * guile/scm-math.c: New file.
8446 * guile/scm-objfile.c: New file.
8447 * guile/scm-ports.c: New file.
8448 * guile/scm-pretty-print.c: New file.
8449 * guile/scm-safe-call.c: New file.
8450 * guile/scm-string.c: New file.
8451 * guile/scm-symbol.c: New file.
8452 * guile/scm-symtab.c: New file.
8453 * guile/scm-type.c: New file.
8454 * guile/scm-utils.c: New file.
8455 * guile/scm-value.c: New file.
8456 * guile/lib/gdb.scm: New file.
8457 * guile/lib/gdb/boot.scm: New file.
8458 * guile/lib/gdb/experimental.scm: New file.
8459 * guile/lib/gdb/init.scm: New file.
8460 * guile/lib/gdb/iterator.scm: New file.
8461 * guile/lib/gdb/printing.scm: New file.
8462 * guile/lib/gdb/types.scm: New file.
8463 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8464 (VPATH): Add $(GUILE_SRCDIR).
8465 (GUILE_DIR): New variable.
8466 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8467 (all): Add stamp-guile dependency.
8468 (stamp-guile): New rule.
8469 (clean-guile, install-guile, uninstall-guile): New rules.
8470 (install-only): Add install-guile dependency.
8471 (uninstall): Add uninstall-guile dependency.
8472 (clean): Add clean-guile dependency.
8474 2014-02-09 Doug Evans <xdje42@gmail.com>
8476 Revert this patch (which I approved, mea culpa).
8478 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8480 * Makefile.in (all-lib): Remove.
8481 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8483 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8485 Fix Python stack corruption.
8486 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8489 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8491 * Makefile.in (all-lib): Remove.
8492 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8494 2014-02-07 Doug Evans <dje@google.com>
8496 * extension-priv.h (extension_language_script_ops): Add comment.
8497 (extension_language_ops): Add comment.
8498 (active_ext_lang_state): Fix typo in comment.
8500 2014-02-07 Pedro Alves <palves@redhat.com>
8502 PR breakpoints/16292
8503 * infrun.c (handle_signal_stop) <signal arrives while stepping
8504 over a breakpoint>: Switch back to the stepping thread.
8506 2014-02-07 Yao Qi <yao@codesourcery.com>
8508 * target.c (target_xfer_partial): Return zero if LEN is zero.
8510 2014-02-07 Yao Qi <yao@codesourcery.com>
8512 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8513 (ld_so_xfer_auxv): Likewise.
8514 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8515 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8516 * corelow.c (core_xfer_partial): Likewise.
8517 * ctf.c (ctf_xfer_partial): Likewise.
8518 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8519 (darwin_xfer_partial): Likewise.
8520 * exec.c (exec_xfer_partial): Likewise.
8521 * gnu-nat.c (gnu_xfer_partial): Likewise.
8522 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8523 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8524 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8525 * linux-nat.c (linux_xfer_siginfo): Likewise.
8526 (linux_proc_xfer_spu): Likewise.
8527 * procfs.c (procfs_xfer_partial): Likewise.
8528 * record-full.c (record_full_xfer_partial): Likewise.
8529 (record_full_core_xfer_partial): Likewise.
8530 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8531 * remote.c (remote_write_qxfer): Likewise.
8532 (remote_write_qxfer, remote_read_qxfer): Likewise.
8533 (remote_xfer_partial): Likewise.
8534 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8535 (rs6000_xfer_shared_libraries): Likewise.
8536 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8537 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8538 (spu_xfer_partial): Likewise.
8539 * target.c (memory_xfer_partial_1): Likewise.
8540 * tracepoint.c (tfile_xfer_partial): Likewise.
8541 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8542 (windows_xfer_partial): Likewise.
8544 2014-02-07 Yao Qi <yao@codesourcery.com>
8546 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8548 (core_xfer_shared_libraries_aix): Likewise.
8549 * gdbarch.c, gdbarch.h: Regenerated.
8550 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8551 ULONGEST. Change 'len_avail' type to ULONGEST.
8552 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8553 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8555 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8557 2014-02-07 Yao Qi <yao@codesourcery.com>
8559 * corefile.c (memory_error): Get 'exception' from ERR and pass
8560 'exception' to throw_error.
8562 2014-02-06 Doug Evans <xdje42@gmail.com>
8564 * configure.ac (libpython checking): Remove all but python.o from
8565 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8566 * configure: Regenerate.
8568 * Makefile.in (SFILES): Add extension.c.
8569 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8570 (COMMON_OBS): Add extension.o.
8571 * extension.h: New file.
8572 * extension-priv.h: New file.
8573 * extension.c: New file.
8575 * python/python-internal.h: #include "extension.h".
8576 (gdbpy_auto_load_enabled): Declare.
8577 (gdbpy_apply_val_pretty_printer): Declare.
8578 (gdbpy_apply_frame_filter): Declare.
8579 (gdbpy_preserve_values): Declare.
8580 (gdbpy_breakpoint_cond_says_stop): Declare.
8581 (gdbpy_breakpoint_has_cond): Declare.
8582 (void source_python_script_for_objfile): Delete.
8583 * python/python.c: #include "extension-priv.h".
8584 Delete inclusion of "observer.h".
8585 (extension_language_python): Moved here and renamed from
8586 script_language_python in py-auto-load.c.
8587 Redefined to be of type extension_language_defn.
8588 (python_extension_script_ops): New global.
8589 (python_extension_ops): New global.
8590 (struct python_env): New member previous_active.
8591 (restore_python_env): Call restore_active_ext_lang.
8592 (ensure_python_env): Call set_active_ext_lang.
8593 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8595 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8597 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8599 (gdbpy_eval_from_control_command): Renamed from
8600 eval_python_from_control_command, made static. New arg extlang.
8601 (gdbpy_source_script) Renamed from source_python_script, made static.
8603 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8604 result to int. New arg extlang.
8605 (gdbpy_source_objfile_script): Renamed from
8606 source_python_script_for_objfile, made static. New arg extlang.
8607 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8608 static. New args extlang, extlang_printers. Change result type to
8610 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8611 static. New arg extlang. Rename arg printers to extlang_printers
8612 and change type to ext_lang_type_printers *.
8613 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8614 static. Replace argument arg with extlang, extlang_printers.
8615 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8616 (!HAVE_PYTHON, source_python_script): Delete.
8617 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8618 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8619 (!HAVE_PYTHON, start_type_printers): Delete.
8620 (!HAVE_PYTHON, apply_type_printers): Delete.
8621 (!HAVE_PYTHON, free_type_printers): Delete.
8622 (_initialize_python): Delete call to observer_attach_before_prompt.
8623 (finalize_python): Set/restore active extension language.
8624 (gdbpy_finish_initialization) Renamed from
8625 finish_python_initialization, made static. New arg extlang.
8626 (gdbpy_initialized): New function.
8627 * python/python.h: #include "extension.h". Delete #include
8628 "value.h", "mi/mi-cmds.h".
8629 (extension_language_python): Declare.
8630 (GDBPY_AUTO_FILE_NAME): Delete.
8631 (enum py_bt_status): Moved to extension.h and renamed to
8633 (enum frame_filter_flags): Moved to extension.h.
8634 (enum py_frame_args): Moved to extension.h and renamed to
8635 ext_lang_frame_args.
8636 (finish_python_initialization): Delete.
8637 (eval_python_from_control_command): Delete.
8638 (source_python_script): Delete.
8639 (apply_val_pretty_printer): Delete.
8640 (apply_frame_filter): Delete.
8641 (preserve_python_values): Delete.
8642 (gdbpy_script_language_defn): Delete.
8643 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8644 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8646 * auto-load.c: #include "extension.h".
8647 (GDB_AUTO_FILE_NAME): Delete.
8648 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8649 (script_language_gdb): Delete, moved to extension.c and renamed to
8650 extension_language_gdb.
8651 (source_gdb_script_for_objfile): Delete.
8652 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8653 (loaded_script): Change type of language member to
8654 struct extension_language_defn *.
8655 (init_loaded_scripts_info): Initialize
8656 unsupported_script_warning_printed.
8657 (maybe_add_script): Make static. Change type of language arg to
8658 struct extension_language_defn *.
8659 (clear_section_scripts): Reset unsupported_script_warning_printed.
8660 (auto_load_objfile_script_1): Rewrite to use extension language API.
8661 (auto_load_objfile_script): Make public. Remove support-compiled-in
8662 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8663 (source_section_scripts): Rewrite to use extension language API.
8664 (load_auto_scripts_for_objfile): Rewrite to use
8665 auto_load_scripts_for_objfile.
8666 (collect_matching_scripts_data): Change type of language member to
8667 struct extension_language_defn *.
8668 (auto_load_info_scripts): Change type of language arg to
8669 struct extension_language_defn *.
8670 (unsupported_script_warning_print): New function.
8671 (script_not_found_warning_print): Make static.
8672 (_initialize_auto_load): Rewrite construction of scripts-directory
8674 * auto-load.h (struct objfile): Add forward decl.
8675 (struct script_language): Delete.
8676 (struct auto_load_pspace_info): Add forward decl.
8677 (struct extension_language_defn): Add forward decl.
8678 (maybe_add_script): Delete.
8679 (auto_load_objfile_script): Declare.
8680 (script_not_found_warning_print): Delete.
8681 (auto_load_info_scripts): Update prototype.
8682 (auto_load_gdb_scripts_enabled): Declare.
8683 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8684 auto_load_python_scripts_enabled and made public.
8685 (script_language_python): Delete, moved to python.c.
8686 (gdbpy_script_language_defn): Delete.
8687 (info_auto_load_python_scripts): Update to use
8688 extension_language_python.
8690 * breakpoint.c (condition_command): Replace call to
8691 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8692 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8693 with call to breakpoint_ext_lang_cond_says_stop.
8694 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8695 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8696 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8697 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8699 (local_setattro): Print name of extension language with existing
8702 * valprint.c (val_print, value_print): Update to call
8703 apply_ext_lang_val_pretty_printer.
8704 * cp-valprint.c (cp_print_value): Update call to
8705 apply_ext_lang_val_pretty_printer.
8706 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8707 (gdbpy_apply_val_pretty_printer): Renamed from
8708 apply_val_pretty_printer. New arg extlang.
8709 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8711 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8712 extension language API.
8713 * cli/cli-script.c (execute_control_command): Update to call
8714 eval_ext_lang_from_control_command.
8716 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8717 enum ext_lang_bt_status values. Update call to
8718 apply_ext_lang_frame_filter.
8719 (mi_cmd_stack_list_locals): Ditto.
8720 (mi_cmd_stack_list_args): Ditto.
8721 (mi_cmd_stack_list_variables): Ditto.
8722 * mi/mi-main.c: Delete #include "python/python-internal.h".
8723 Add #include "extension.h".
8724 (mi_cmd_list_features): Replace reference to python internal variable
8725 gdb_python_initialized with call to ext_lang_initialized_p.
8727 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8728 Update to use enum ext_lang_frame_args. Update to call
8729 apply_ext_lang_frame_filter.
8730 * python/py-framefilter.c (extract_sym): Update to use enum
8732 (extract_value, py_print_type, py_print_value): Ditto.
8733 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8734 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8735 (py_print_frame): Ditto.
8736 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8737 New arg extlang. Update to use enum ext_lang_bt_status.
8739 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8740 finish_python_initialization. Replace with call to
8741 finish_ext_lang_initialization.
8743 * typeprint.c (do_free_global_table): Update to call
8744 free_ext_lang_type_printers.
8745 (create_global_typedef_table): Update to call
8746 start_ext_lang_type_printers.
8747 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8748 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8749 (type_print_options): Change type of global_printers from "void *"
8750 to "struct ext_lang_type_printers *".
8752 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8753 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8754 (gdbpy_preserve_values): Renamed from preserve_python_values.
8756 (!HAVE_PYTHON, preserve_python_values): Delete.
8758 * utils.c (quit_flag): Delete, moved to extension.c.
8759 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8762 * eval.c: Delete #include "python/python.h".
8763 * main.c: Delete #include "python/python.h".
8765 * defs.h: Update comment.
8767 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8771 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8773 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8776 2014-02-05 Yao Qi <yao@codesourcery.com>
8778 * remote.c (remote_pass_signals): Remove local 'buf' and use
8780 (remote_program_signals): Likewise.
8782 2014-02-05 Yao Qi <yao@codesourcery.com>
8784 * ctf.c: Include "inferior.h" and "gdbthread.h".
8785 (CTF_PID): A new macro.
8786 (ctf_open): Call inferior_appeared and add_thread_silent.
8787 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8788 (ctf_thread_alive): New function.
8789 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8791 2014-02-05 Yao Qi <yao@codesourcery.com>
8795 2013-05-24 Yao Qi <yao@codesourcery.com>
8797 * tracepoint.c (TFILE_PID): Remove.
8798 (tfile_open): Don't add thread and inferior.
8799 (tfile_close): Don't set 'inferior_ptid'. Don't call
8800 exit_inferior_silent.
8801 (tfile_thread_alive): Remove.
8802 (init_tfile_ops): Don't set field 'to_thread_alive' of
8805 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8807 * remote.c (remote_start_remote): Call remote_check_symbols even
8808 if only symbol-file (not file) has been given.
8810 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8812 * gdbarch.sh (skip_entrypoint): New callback.
8813 * gdbarch.c, gdbarch.h: Regenerate.
8814 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8815 * infrun.c (fill_in_stop_func): Likewise.
8816 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8817 (ppc_elfv2_elf_make_msymbol_special): New function.
8818 (ppc_elfv2_skip_entrypoint): Likewise.
8819 (ppc_linux_init_abi): Install them for ELFv2.
8821 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8823 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8824 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8825 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8826 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8827 structures returned in GPRs.
8829 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8831 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8832 offset to the stack parameter list for the ELFv2 ABI.
8834 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8836 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8837 set_gdbarch_convert_from_func_ptr_addr and
8838 set_gdbarch_elf_make_msymbol_special for ELFv1.
8839 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8840 function descriptors on ELFv1.
8841 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8842 set up r12 at function entry.
8844 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8846 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8847 (struct gdbarch_tdep): New member elf_abi.
8849 * rs6000-tdep.c: Include "elf/ppc64.h".
8850 (rs6000_gdbarch_init): Detect ELF ABI version.
8852 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8854 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8855 within a register pair holding a DFP 128-bit value on little-endian.
8856 (ppc64_sysv_abi_return_value_base): Likewise.
8857 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8858 (dfp_pseudo_register_write): Likewise.
8860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8862 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8863 offset on little-endian when passing _Decimal32.
8864 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8866 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8868 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8869 of the overlapped FP register within the VSX register on little-
8871 (efpr_pseudo_register_write): Likewise.
8873 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8875 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8876 offset on little-endian when passing small structures.
8878 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8880 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8881 (struct ppc64_sysv_argpos): New data structure.
8882 (ppc64_sysv_abi_push_float): Remove.
8883 (ppc64_sysv_abi_push_val): New function.
8884 (ppc64_sysv_abi_push_integer): Likewise.
8885 (ppc64_sysv_abi_push_freg): Likewise.
8886 (ppc64_sysv_abi_push_vreg): Likewise.
8887 (ppc64_sysv_abi_push_param): Likewise.
8888 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8889 (ppc64_sysv_abi_return_value_base): New function.
8890 (ppc64_sysv_abi_return_value): Refactor to use it.
8892 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8894 * NEWS: Document new target powerpc64le-*-linux*.
8896 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8898 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8899 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8901 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8902 register set used in ELF core dumps. Add floating-point register set.
8904 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8906 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8907 dwarf2_to_gdb[] table using symbolic constants. Adjust
8908 penultimate entry from number representing the PC register
8909 to symbolic constant representing the MDR register. Add
8910 constant for the PC register to the end of the table.
8912 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8914 * bsd-kvm.c: Include <sys/param.h>
8916 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8918 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8920 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8922 * ada-lang.h (clear_ada_sym_cache): Delete.
8924 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8926 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8928 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8930 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8931 the sigreturn register save area only if the syscall is
8934 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8936 * valops.c (value_slice): Minor reformatting.
8938 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8940 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8942 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8944 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8946 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8947 (ada_ignore_descriptive_types_p): New static global.
8948 (find_parallel_type_by_descriptive_type): Return immediately
8949 if ada_ignore_descriptive_types_p is set.
8950 (_initialize_ada_language): Register new commands "maintenance
8951 set ada", "maintenance show ada", "maintenance set ada
8952 ignore-descriptive-types" and "maintenance show ada
8953 ignore-descriptive-types".
8954 * NEWS: Add entry for new "maint ada set/show
8955 ignore-descriptive-types" commands.
8957 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8959 * record-btrace.c (record_btrace_close): Call btrace_teardown
8962 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8964 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8967 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8969 * ada-typeprint (type_is_full_subrange_of_target_type):
8971 (print_range): Add parameter bounds_prefered_p. If not set,
8972 try printing range types using the name of their base type.
8973 (print_range_type): Add parameter bounds_prefered_p.
8974 Use it in call to print_range.
8975 (print_array_type, ada_print_type): Update calls to print_range
8976 and print_range_type.
8978 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8980 * ada-typeprint.c (print_array_type, print_choices, print_range)
8981 (print_range_bound, print_dynamic_range_bound, print_range_type):
8984 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8986 * ada-typeprint.c (print_range): Add missing empty line
8987 after local declaration.
8989 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8991 * ada-valprint.c (print_optional_low_bound): Get index_type's
8992 target type for as long as it is a TYPE_CODE_RANGE.
8994 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8996 * procfs.c (procfs_make_note_section): Remove assertion and
8999 2014-01-24 Yao Qi <yao@codesourcery.com>
9001 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9002 * corelow.c (get_core_siginfo): Likewise.
9004 2014-01-24 Yao Qi <yao@codesourcery.com>
9006 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9007 ULONGEST. Don't check 'len' is negative.
9008 (remote_write_bytes): Change type of 'len' to ULONGEST.
9010 2014-01-23 Tom Tromey <tromey@redhat.com>
9013 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9014 Handle exception from frame.block.
9015 (FrameVars.fetch_frame_locals): Likewise.
9017 2014-01-23 Tom Tromey <tromey@redhat.com>
9020 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9021 on a NULL pointer. Move "goto error" to correct place.
9023 2014-01-23 Tom Tromey <tromey@redhat.com>
9026 * python/py-framefilter.c (apply_frame_filter): Call
9027 ensure_python_env after computing gdbarch.
9029 2014-01-23 Yao Qi <yao@codesourcery.com>
9031 * target.c (raw_memory_xfer_partial): Change argument type
9032 from void * to gdb_byte *.
9033 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9035 2014-01-22 Doug Evans <dje@google.com>
9037 New gdbserver option --debug-format=timestamp.
9040 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9042 * syscalls/s390x-linux.xml: New file.
9043 * syscalls/s390-linux.xml: New file.
9044 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9045 (XML_SYSCALL_FILENAME_S390X): Likewise.
9046 (op_svc): New enum value for SVC opcode.
9047 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9048 (s390_linux_get_syscall_number): New function.
9049 (s390_gdbarch_init): Register '*get_syscall_number' and the
9050 syscall xml file name.
9051 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9052 "s390-linux.xml" and "s390x-linux.xml".
9053 * NEWS: Announce new feature.
9055 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9057 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9059 2014-01-22 Pedro Alves <palves@redhat.com>
9061 * xtensa-config.c: Include defs.h.
9063 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9065 * common/common-utils.h: Add "ARI:" comment beside __func__
9068 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9070 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9071 documentation a bit.
9073 2014-01-21 Roland McGrath <mcgrathr@google.com>
9075 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9076 * configure: Regenerate.
9077 * aclocal.m4: Regenerate.
9078 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9079 New substituted variables.
9080 (install-strip): New target.
9081 (INSTALL_SCRIPT): New substituted variable.
9082 (FLAGS_TO_PASS): Add it.
9083 (install-only): Use $(INSTALL_SCRIPT) rather than
9084 $(INSTALL_PROGRAM) for gcore.
9086 2014-01-20 Tom Tromey <tromey@redhat.com>
9088 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9091 2014-01-20 Tom Tromey <tromey@redhat.com>
9093 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9094 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9095 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9096 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9097 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9098 (struct cmd_list_element) <flags>: Remove.
9099 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9100 doc_allocated>: New fields.
9101 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9103 * maint.c (maintenance_do_deprecate): Update.
9104 * top.c (execute_command): Update.
9106 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9108 * xtensa-linux-nat.c: Include asm/ptrace.h.
9110 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9112 * Makefile.in (SFILES): Add d-support.c.
9113 (COMMON_OBS): Add d-support.o.
9114 * d-lang.h (d_parse_symbol): Add comment, now defined in
9116 * d-lang.c (parse_call_convention)
9117 (parse_attributes, parse_function_types)
9118 (parse_function_args, parse_type, parse_identifier)
9119 (call_convention_p, d_parse_symbol): Move functions to ...
9120 * d-support.c: ... New file.
9122 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9124 * d-lang.h (d_parse_symbol): Add declaration.
9125 * d-lang.c (extract_identifiers)
9126 (extract_type_info): Remove functions.
9127 (parse_call_convention, parse_attributes)
9128 (parse_function_types, parse_function_args)
9129 (parse_type, parse_identifier, call_convention_p)
9130 (d_parse_symbol): New functions.
9131 (d_demangle): Use d_parse_symbol to demangle D symbols.
9133 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9135 * d-lang.h (struct builtin_d_type): New data type.
9136 (builtin_d_type): Add declaration.
9137 * d-lang.c (d_language_arch_info, build_d_types)
9138 (builtin_d_type): New functions.
9139 (enum d_primitive_types): New data type.
9140 (d_language_defn): Change c_language_arch_info to
9141 d_language_arch_info.
9142 (d_type_data): New static variable.
9143 (_initialize_d_language): Initialize d_type_data.
9145 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9147 * d-lang.h (d_main_name): Add declaration.
9148 * d-lang.c (d_main_name): New function.
9149 * symtab.c (find_main_name): Add call to d_main_name.
9151 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9153 * d-lang.c (d_language_defn): Change macro_expansion_c to
9156 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9158 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9160 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9162 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9163 gdb_exception" declaration.
9164 * remote.c (getpkt_or_notif_sane): Likewise.
9166 2014-01-17 Doug Evans <dje@google.com>
9168 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9169 function, contents of dirnames_to_char_ptr_vec_append moved here.
9170 (delim_string_to_char_ptr_vec): New function.
9171 (dirnames_to_char_ptr_vec_append): Rewrite.
9172 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9174 2014-01-17 Doug Evans <dje@google.com>
9176 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9178 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9179 #include "common-utils.h".
9180 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9181 * common/vec.h (VEC_ASSERT_PASS): Update.
9182 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9183 (MACH_CHECK_ERROR): Update.
9185 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9187 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9189 * gdbarch.h: Regenerate.
9191 2014-01-16 Tom Tromey <tromey@redhat.com>
9193 * value.c (struct value) <regnum>: Move earlier.
9195 2014-01-16 Tom Tromey <tromey@redhat.com>
9197 * remote.c (extended_remote_create_inferior): Rename from
9198 extended_remote_create_inferior_1. Add "ops" argument. Remove
9201 2014-01-16 Pedro Alves <palves@redhat.com>
9203 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9204 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9207 2014-01-16 Doug Evans <dje@google.com>
9209 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9213 * btrace.h (btrace_thread_flag): New.
9214 (struct btrace_thread_info) <flags>: New.
9215 * record-btrace.c (record_btrace_resume_thread)
9216 (record_btrace_find_thread_to_move, btrace_step_no_history)
9217 (btrace_step_stopped, record_btrace_start_replaying)
9218 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9219 (record_btrace_find_resume_thread): New.
9220 (record_btrace_resume, record_btrace_wait): Extend.
9221 (record_btrace_can_execute_reverse): New.
9222 (record_btrace_open): Fail in non-stop mode.
9223 (record_btrace_set_replay): Split into this, ...
9224 (record_btrace_stop_replaying): ... this, ...
9225 (record_btrace_clear_histories): ... and this.
9226 (init_record_btrace_ops): Init to_can_execute_reverse.
9227 * NEWS: Announce it.
9229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9231 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9232 (forward_target_decr_pc_after_break)
9233 (target_decr_pc_after_break): New.
9234 * target.c (forward_target_decr_pc_after_break)
9235 (target_decr_pc_after_break): New.
9236 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9237 instead of gdbarch_decr_pc_after_break.
9238 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9239 instead of gdbarch_decr_pc_after_break.
9240 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9241 instead of gdbarch_decr_pc_after_break.
9242 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9243 instead of gdbarch_decr_pc_after_break.
9244 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9245 instead of gdbarch_decr_pc_after_break.
9246 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9247 instead of gdbarch_decr_pc_after_break.
9249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9251 * btrace.c: Include regcache.h.
9252 (btrace_add_pc): New.
9253 (btrace_enable): Call btrace_add_pc.
9254 (btrace_is_empty): New.
9255 * btrace.h (btrace_is_empty): New.
9256 * record-btrace.c (require_btrace, record_btrace_info): Call
9259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9261 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9262 Support delta reads.
9263 (linux_disable_btrace): Change return type.
9264 * common/linux-btrace.h (linux_read_btrace): Change parameters
9265 and return type to allow error reporting. Update users.
9266 (linux_disable_btrace): Change return type. Update users.
9267 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9269 (btrace_error): New.
9270 (btrace_block) <begin>: Comment on BEGIN == 0.
9271 * btrace.c (btrace_compute_ftrace): Start from the end of
9273 (btrace_stitch_trace, btrace_clear_history): New.
9274 (btrace_fetch): Read delta trace, return if replaying.
9275 (btrace_clear): Move clear history code to btrace_clear_history.
9276 (parse_xml_btrace): Throw an error if parsing failed.
9277 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9278 and return type to allow error reporting.
9279 (target_read_btrace): Change parameters and return type to allow
9281 * target.c (target_read_btrace): Update.
9282 * remote.c (remote_read_btrace): Support delta reads. Pass
9284 * NEWS: Announce it.
9286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9288 * record.h (record_btrace_frame_unwind)
9289 (record_btrace_tailcall_frame_unwind): New declarations.
9290 * dwarf2-frame: Include record.h
9291 (dwarf2_frame_cfa): Throw an error for btrace frames.
9292 * record-btrace.c: Include hashtab.h.
9293 (btrace_get_bfun_name): New.
9294 (btrace_call_history): Call btrace_get_bfun_name.
9295 (struct btrace_frame_cache): New.
9297 (bfcache_hash, bfcache_eq, bfcache_new): New.
9298 (btrace_get_frame_function): New.
9299 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9300 (record_btrace_frame_this_id): Compute own id.
9301 (record_btrace_frame_prev_register): Provide PC, throw_error
9302 for all other registers.
9303 (record_btrace_frame_sniffer): Detect btrace frames.
9304 (record_btrace_tailcall_frame_sniffer): New.
9305 (record_btrace_frame_dealloc_cache): New.
9306 (record_btrace_frame_unwind): Add new functions.
9307 (record_btrace_tailcall_frame_unwind): New.
9308 (_initialize_record_btrace): Allocate cache.
9309 * btrace.c (btrace_clear): Call reinit_frame_cache.
9310 * NEWS: Announce it.
9312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9314 * record-btrace.c (record_btrace_set_replay)
9315 (record_btrace_goto_begin, record_btrace_goto_end)
9316 (record_btrace_goto): New.
9317 (init_record_btrace_ops): Initialize them.
9318 * NEWS: Announce it.
9320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9322 * record-btrace.c (record_btrace_find_new_threads)
9323 (record_btrace_thread_alive): New.
9324 (init_record_btrace_ops): Initialize to_find_new_threads and
9327 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9329 * record-btrace.c (record_btrace_resume): New.
9330 (record_btrace_wait): New.
9331 (init_record_btrace_ops): Initialize to_wait and to_resume.
9333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9335 * record-btrace.c (record_btrace_xfer_partial)
9336 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9337 (record_btrace_allow_memory_access): New.
9338 (init_record_btrace_ops): Initialize new methods.
9339 * target.c (raw_memory_xfer_partial): Bail out if target reports
9340 that this memory is not available.
9342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9344 * target.h (target_ops) <to_insert_breakpoint>
9345 <to_remove_breakpoint>: Add target_ops parameter.
9346 (forward_target_insert_breakpoint): New.
9347 (forward_target_remove_breakpoint): New.
9348 (memory_remove_breakpoint, memory_insert_breakpoint):
9349 Add target_ops parameter.
9350 * target.c (target_insert_breakpoint): Split into this and ...
9351 (forward_target_insert_breakpoint): ... this.
9352 (target_remove_breakpoint): Split into this and ...
9353 (forward_target_remove_breakpoint): ... this.
9354 (debug_to_insert_breakpoint): Add target_ops parameter.
9355 Call forward_target_insert_breakpoint.
9356 (debug_to_remove_breakpoint): Add target_ops parameter.
9357 Call forward_target_remove_breakpoint.
9358 (update_current_target): Do not inherit or default to_insert_breakpoint
9359 and to_remove_breakpoint.
9360 * corelow.c (ignore): Add target_ops parameter.
9361 * exec.c (ignore): Add target_ops parameter.
9362 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9363 Add target_ops parameter.
9364 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9365 Add target_ops parameter.
9366 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9367 Add target_ops parameter.
9368 * record-full.c (record_full_beneath_to_insert_breakpoint)
9369 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9370 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9371 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9372 (record_full_core_remove_breakpoint): Add target_ops parameter.
9374 (record_full_beneath_to_insert_breakpoint_ops)
9375 (record_full_beneath_to_remove_breakpoint_ops)
9376 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9377 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9378 tmp_to_remove_breakpoint_ops,
9379 record_full_beneath_to_insert_breakpoint_ops, and
9380 record_full_beneath_to_remove_breakpoint_ops.
9381 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9382 (m32r_remove_breakpoint): Add target_ops parameter.
9383 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9384 Add target_ops parameter.
9385 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9386 Add target_ops parameter.
9388 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9389 Markus Metzger <markus.t.metzger@intel.com>
9391 * record-btrace.c: Include frame-unwind.h.
9392 (record_btrace_frame_unwind_stop_reason)
9393 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9394 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9396 (init_record_btrace_ops): Install it.
9398 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9400 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9403 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9405 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9408 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9410 * frame-unwind.c: Include target.h.
9411 (frame_unwind_try_unwinder): New function with code from ...
9412 (frame_unwind_find_by_frame): ... here. New variable
9413 unwinder_from_target, call also target_get_unwinder)
9414 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9415 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9416 * target.h (struct target_ops): New fields to_get_unwinder and
9417 to_get_tailcall_unwinder.
9418 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9422 * record-btrace.c (record_btrace_fetch_registers)
9423 (record_btrace_store_registers)
9424 (record_btrace_to_prepare_to_store): New.
9425 (init_record_btrace_ops): Add the above.
9427 2014-01-16 Tom Tromey <tromey@redhat.com>
9429 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9430 * target.h (struct target_ops) <to_prepare_to_store>: Add
9432 (target_prepare_to_store): Add argument.
9433 * target.c (debug_to_prepare_to_store): Add argument.
9434 (update_current_target): Update.
9435 * remote.c (remote_prepare_to_store): Add 'self' argument.
9436 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9437 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9438 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9439 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9441 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9442 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9443 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9444 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9445 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9449 * btrace.h (replay) <replay>: New.
9450 (btrace_is_replaying): New.
9451 * btrace.c (btrace_clear): Free replay iterator.
9452 (btrace_is_replaying): New.
9453 * record-btrace.c (record_btrace_is_replaying): New.
9454 (record_btrace_info): Print insn number if replaying.
9455 (record_btrace_insn_history): Start at replay position.
9456 (record_btrace_call_history): Start at replay position.
9457 (init_record_btrace_ops): Init to_record_is_replaying.
9459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9461 * record-btrace.c (record_btrace_insn_history_range): Include
9463 (record_btrace_insn_history_from): Adjust range.
9464 (record_btrace_call_history_range): Include
9466 (record_btrace_call_history_from): Adjust range.
9467 * NEWS: Announce changes.
9469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9471 * record.h (enum record_print_flag)
9472 <record_print_indent_calls>: New.
9473 * record.c (get_call_history_modifiers): Recognize /c modifier.
9474 (_initialize_record): Document /c modifier.
9475 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9476 Reorder fields. Optionally indent the function name. Update
9478 * NEWS: Announce changes.
9480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9482 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9486 * btrace.c (ftrace_new_function): Start counting at one.
9487 * record-btrace.c (record_btrace_info): Adjust number of calls
9489 * NEWS: Announce it.
9491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9493 * record-btrace.c (btrace_call_history_insn_range): Print
9494 insn range as [begin, end].
9496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9498 * btrace.h (struct btrace_func_link): New.
9499 (enum btrace_function_flag): New.
9500 (struct btrace_inst): Rename to ...
9501 (struct btrace_insn): ...this. Update all users.
9502 (struct btrace_func) <ibegin, iend>: Remove.
9503 (struct btrace_func_link): New.
9504 (struct btrace_func): Rename to ...
9505 (struct btrace_function): ...this. Update all users.
9506 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9507 (number, level, flags>: New.
9508 (struct btrace_insn_iterator): Rename to ...
9509 (struct btrace_insn_history): ...this.
9511 (struct btrace_insn_iterator, btrace_call_iterator): New.
9512 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9513 (struct btrace_target_info) <begin, end, level>
9514 <insn_history, call_history>: New.
9515 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9516 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9517 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9518 (btrace_call_number, btrace_call_begin, btrace_call_end)
9519 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9520 (btrace_find_function_by_number, btrace_set_insn_history)
9521 (btrace_set_call_history): New.
9522 * btrace.c (btrace_init_insn_iterator)
9523 (btrace_init_func_iterator, compute_itrace): Remove.
9524 (ftrace_print_function_name, ftrace_print_filename)
9525 (ftrace_skip_file): Change
9527 (ftrace_init_func): Remove.
9528 (ftrace_debug): Use new btrace_function fields.
9529 (ftrace_function_switched): Also consider gaining and
9530 losing symbol information).
9531 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9532 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9533 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9535 (ftrace_new_function): Move. Remove debug print.
9536 (ftrace_update_lines, ftrace_update_insns): New.
9537 (ftrace_update_function): Check for call, ret, and jump.
9538 (compute_ftrace): Renamed to ...
9539 (btrace_compute_ftrace): ...this. Rewritten to compute call
9541 (btrace_fetch, btrace_clear): Updated.
9542 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9543 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9544 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9545 (btrace_call_number, btrace_call_begin, btrace_call_end)
9546 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9547 (btrace_find_function_by_number, btrace_set_insn_history)
9548 (btrace_set_call_history): New.
9549 * record-btrace.c (require_btrace): Use new btrace thread
9551 (record_btrace_info, btrace_insn_history)
9552 (record_btrace_insn_history, record_btrace_insn_history_range):
9553 Use new btrace thread info fields and new iterator.
9554 (btrace_func_history_src_line): Rename to ...
9555 (btrace_call_history_src_line): ...this. Use new btrace
9557 (btrace_func_history): Rename to ...
9558 (btrace_call_history): ...this. Use new btrace thread info
9559 fields and new iterator.
9560 (record_btrace_call_history, record_btrace_call_history_range):
9561 Use new btrace thread info fields and new iterator.
9563 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9565 * frame.h (frame_id_build_unavailable_stack_special): New.
9566 * frame.c (frame_id_build_unavailable_stack_special): New.
9568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9570 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9571 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9572 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9574 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9575 (i386_insn_is_jump, i386_jmp_p): New.
9576 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9577 insn_is_jump to gdbarch.
9578 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9579 * gdbarch.h: Regenerated.
9580 * gdbarch.c: Regenerated.
9581 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9582 (default_insn_is_jump): New.
9583 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9584 (default_insn_is_jump): New.
9586 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9588 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9590 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9591 (btrace_read_type) <btrace_read_new>: Change to ...
9592 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9596 * common/linux-btrace.c (linux_read_btrace): Free trace from
9599 2014-01-15 Doug Evans <dje@google.com>
9601 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9604 2014-01-15 Tom Tromey <tromey@redhat.com>
9606 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9607 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9608 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9609 (set_objfile_main_name): New function.
9610 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9611 language_of_main>: New fields.
9612 (set_objfile_main_name): Declare.
9613 * symtab.c (find_main_name): Loop over objfiles to find the main
9615 (set_main_name): Now static.
9616 (get_main_info): Add comment.
9617 * symtab.h (set_main_name): Don't declare.
9619 2014-01-15 Tom Tromey <tromey@redhat.com>
9621 * symtab.c (main_progspace_key): New global.
9622 (struct main_info): New.
9623 (name_of_main, language_of_main): Remove.
9624 (get_main_info, main_info_cleanup): New function.
9625 (set_main_name, main_name, main_language): Use get_main_info.
9626 (_initialize_symtab): Initialize main_progspace_key.
9628 2014-01-15 Tom Tromey <tromey@redhat.com>
9630 * dbxread.c (process_one_symbol): Update.
9631 * dwarf2read.c (read_partial_die): Update.
9632 * symfile.c (set_initial_language): Call main_language.
9633 * symtab.c (language_of_main): Now static.
9634 (set_main_name): Add 'lang' parameter.
9635 (find_main_name): Update.
9636 (main_language): New function.
9637 (symtab_observer_executable_changed): Update.
9638 * symtab.h (set_main_name): Update.
9639 (language_of_main): Remove.
9640 (main_language): Declare.
9642 2014-01-15 Tom Tromey <tromey@redhat.com>
9644 * symfile.c (init_entry_point_info): Use new "initialized" field.
9646 * objfiles.h (struct entry_point) <initialized>: New field.
9647 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9648 (struct objfile) <ei>: ...here. Remove.
9649 * objfiles.c (entry_point_address_query): Update.
9651 2014-01-15 Tom Tromey <tromey@redhat.com>
9653 * objfiles.c (entry_point_address_query): Relocate entry point
9655 (objfile_relocate1): Do not relocate entry point address.
9656 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9657 <the_bfd_section_index>: New field.
9658 * symfile.c (init_entry_point_info): Find the entry point's
9661 2014-01-15 Tom Tromey <tromey@redhat.com>
9663 * solib-frv.c (enable_break): Use entry_point_address_query.
9665 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9667 * NEWS: Add note on improved process record-replay on
9668 arm*-linux* targets.
9670 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9672 * arm-tdep.c (enum arm_record_result): New enum.
9673 (arm_record_unsupported_insn): New function.
9674 (arm_record_coproc_data_proc): Removed.
9675 (thumb2_record_ld_st_multiple): New function.
9676 (thumb2_record_ld_st_dual_ex_tbb): New function.
9677 (thumb2_record_data_proc_sreg_mimm): New function.
9678 (thumb2_record_ps_dest_generic): New function.
9679 (thumb2_record_branch_misc_cntrl): New function.
9680 (thumb2_record_str_single_data): New function.
9681 (thumb2_record_ld_mem_hints): New function.
9682 (thumb2_record_ld_word): New function.
9683 (thumb2_record_lmul_lmla_div): New function.
9684 (thumb2_record_decode_insn_handler): New function.
9685 (decode_insn): Add thumb32 instruction handlers.
9687 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9689 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9690 (struct arm_linux_record_tdep): Declare.
9691 (arm_canonicalize_syscall): New function.
9692 (arm_all_but_pc_registers_record): New function.
9693 (arm_linux_syscall_record): New function.
9694 (arm_linux_init_abi): Add syscall recording constructs.
9695 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9696 decoding. (arm_record_coproc_data_proc): Update arm syscall
9698 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9699 <arm_syscall_record>: New field.
9700 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9703 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9705 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9706 register for push instruction recording.
9708 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9710 * arm-tdep.c (thumb_record_misc): Update to correct logical
9711 error while recording ldm, ldmia and pop instructions.
9713 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9715 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9717 2014-01-15 Pedro Alves <palves@redhat.com>
9719 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9720 (go32_resume, go32_fetch_registers, store_register)
9721 (go32_store_registers, go32_prepare_to_store)
9722 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9723 (go32_create_inferior, go32_can_run, go32_terminal_init)
9724 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9727 2014-01-15 Tom Tromey <tromey@redhat.com>
9729 * target.h (async_callback_ftype): New typedef.
9730 (struct target_ops) <to_async>: Use it.
9732 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9734 * python/py-value.c (get_field_type): Remove unnecessary curly
9735 braces for single-statement if block.
9737 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9739 * python/py-type.c (convert_field): Add missing empty line
9742 2014-01-14 Doug Evans <dje@google.com>
9744 * symfile.h (expand_symtabs_matching): Renamed from
9745 expand_partial_symbol_names. Update prototype.
9746 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9747 * symfile.c (expand_symtabs_matching): Renamed from
9748 expand_partial_symbol_names. New args file_matcher, kind.
9749 Rename arg fun to symbol_matcher.
9750 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9751 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9752 ada_expand_partial_symbol_name.
9753 (ada_make_symbol_completion_list): Update to call
9754 expand_symtabs_matching.
9755 (ada_add_global_exceptions): Call expand_symtabs_matching.
9756 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9757 call map_symbol_filenames.
9758 * symtab.c (sources_info): Update to call map_symbol_filenames.
9759 (search_symbols): Call expand_symtabs_matching.
9760 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9761 (default_make_symbol_completion_list_break_on): Update to call
9762 expand_symtabs_matching.
9763 (make_source_files_completion_list): Update to call
9764 map_symbol_filenames.
9766 2014-01-14 Doug Evans <dje@google.com>
9768 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9769 (expand_symtabs_symbol_matcher_ftype): New typedef.
9770 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9771 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9772 * symfile.c (expand_partial_symbol_names): Update to use
9773 expand_symtabs_symbol_matcher_ftype.
9774 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9775 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9776 Arg name_matcher renamed to symbol_matcher.
9777 * psymtab.c (recursively_search_psymtabs): Update to use
9778 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9780 (expand_symtabs_matching_via_partial): Update to use
9781 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9782 Arg name_matcher renamed to symbol_matcher.
9784 2014-01-14 Doug Evans <dje@google.com>
9786 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9787 (map_partial_symbol_filenames): Ditto.
9788 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9789 (map_partial_symbol_filenames): Ditto.
9790 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9791 (map_partial_symbol_filenames): Ditto.
9792 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9793 (map_partial_symbol_filenames): Ditto.
9794 * symtab.c: Delete #include "psymtab.h".
9796 2014-01-14 Pedro Alves <palves@redhat.com>
9797 Tom Tromey <tromey@redhat.com>
9799 * infrun.c (use_displaced_stepping): Use find_record_target
9800 instead of RECORD_IS_USED.
9801 (adjust_pc_after_break): Use record_full_is_used instead of
9803 * record-btrace.c (record_btrace_open): Call record_preopen
9804 instead of checking RECORD_IS_USED.
9805 * record-full.c (record_full_shortname)
9806 (record_full_core_shortname): New globals.
9807 (record_full_is_used): New function.
9808 (find_full_open): Call record_preopen instead of checking
9810 (init_record_full_ops): Set the target's shortname to
9811 record_full_shortname.
9812 (init_record_full_core_ops): Set the target's shortname to
9813 record_full_core_shortname.
9814 * record-full.h (record_full_is_used): Declare.
9815 * record.c (find_record_target): Make extern.
9816 (record_preopen): New function.
9817 * record.h (RECORD_IS_USED): Delete macro.
9818 (find_record_target, record_preopen): Declare functions.
9820 2014-01-14 Yao Qi <yao@codesourcery.com>
9822 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9823 'len''s type to ULONGEST.
9824 (core_xfer_shared_libraries_aix): Likewise.
9825 * gdbarch.c, gdbarch.h: Regenerated.
9826 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9827 Change type of 'len' to ULONGEST.
9828 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9829 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9831 2014-01-14 Yao Qi <yao@codesourcery.com>
9833 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9834 type of 'len' to ULONGEST.
9835 (linux_xfer_osdata_processgroups): Likewise.
9836 (linux_xfer_osdata_threads): Likewise.
9837 (linux_xfer_osdata_fds): Likewise.
9838 (linux_xfer_osdata_isockets): Likewise.
9839 (linux_xfer_osdata_shm): Likewise.
9840 (linux_xfer_osdata_sem): Likewise.
9841 (linux_xfer_osdata_msg): Likewise.
9842 (linux_common_xfer_osdata): Likewise.
9843 (struct osdata_type) <getter>: Likewise.
9844 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9847 2014-01-14 Yao Qi <yao@codesourcery.com>
9849 * target.h (target_xfer_partial_ftype): Update.
9850 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9852 * aix-thread.c (aix_thread_xfer_partial): Change type of
9853 argument 'len' to ULONGEST.
9854 * auxv.c (procfs_xfer_auxv): Likewise.
9855 (ld_so_xfer_auxv): Likewise.
9856 (memory_xfer_auxv): Likewise.
9857 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9858 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9859 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9860 * corelow.c (core_xfer_partial): Likewise.
9861 * ctf.c (ctf_xfer_partial): Likewise.
9862 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9864 (darwin_read_dyld_info): Likewise.
9865 (darwin_xfer_partial): Likewise.
9866 * exec.c (section_table_xfer_memory_partial): Likewise.
9867 (exec_xfer_partial): Likewise.
9868 * exec.h (section_table_xfer_memory_partial): Update
9870 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9871 instead of plongest.
9872 (gnu_xfer_partial): Likewise.
9873 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9874 (ia64_hpux_xfer_solib_got): Likewise.
9875 (ia64_hpux_xfer_partial): Likewise.
9876 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9877 * inf-ptrace.c (inf_ptrace_xfer_partial):
9878 * inf-ttrace.c (inf_ttrace_xfer_partial):
9879 * linux-nat.c (linux_xfer_siginfo): Likewise.
9880 (linux_nat_xfer_partial): Likewise.
9881 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9882 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9883 * monitor.c (monitor_xfer_memory): Likewise.
9884 (monitor_xfer_partial): Likewise.
9885 * procfs.c (procfs_xfer_partial): Likewise.
9886 * record-full.c (record_full_xfer_partial): Likewise.
9887 (record_full_core_xfer_partial): Likewise.
9888 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9889 instead of plongest.
9890 (gdbsim_xfer_partial): Likewise.
9891 * remote.c (remote_xfer_partial): Likewise.
9892 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9893 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9895 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9896 (rs6000_xfer_shared_libraries): Likewise.
9897 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9898 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9899 (sparc_xfer_partial): Likewise.
9900 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9901 (spu_xfer_partial): Likewise.
9902 * spu-multiarch.c (spu_xfer_partial): Likewise.
9903 * target.c (target_read_live_memory): Likewise.
9904 (memory_xfer_live_readonly_partial): Likewise.
9905 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9906 (target_xfer_partial, default_xfer_partial): Likewise.
9907 (current_xfer_partial): Likewise.
9908 * tracepoint.c (tfile_xfer_partial): Likewise.
9909 * windows-nat.c (windows_xfer_memory): Likewise. Call
9910 pulongest instead of plongest.
9911 (windows_xfer_partial): Likewise.
9912 (windows_xfer_shared_libraries): Likewise.
9914 2014-01-14 Yao Qi <yao@codesourcery.com>
9916 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9917 target_xfer_partial_ftype.
9919 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9923 * valops.c (value_struct_elt_bitpos): New function
9924 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9925 object to 'None' if the field name is an empty string ("").
9926 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9927 attribute to look for a field when 'name' is 'None'.
9928 (get_field_type): New function
9930 2014-01-13 Doug Evans <dje@google.com>
9933 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9934 (try_open_dwop_file): Ditto.
9935 * gdb_bfd.c: #include "vec.h".
9936 (bfdp): New typedef.
9937 (struct gdb_bfd_data): New member included_bfds.
9938 (gdb_bfd_unref): Unref all included bfds.
9939 (gdb_bfd_record_inclusion): New function.
9940 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9942 2014-01-13 Tom Tromey <tromey@redhat.com>
9944 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9946 2014-01-13 Tom Tromey <tromey@redhat.com>
9948 * defs.h (use_windows): Remove.
9949 * gdb.c (main): Update.
9950 * main.c (captured_main, gdb_main): Update.
9951 * main.h (struct captured_main_args) <use_windows>: Remove.
9952 * top.c (use_windows): Remove.
9954 2014-01-13 Tom Tromey <tromey@redhat.com>
9956 * defs.h (deprecated_flush_hook): Remove.
9958 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9961 * linux-thread-db.c (try_thread_db_load): Add parameter
9962 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9963 (try_thread_db_load_from_pdir_1): Move it there from here.
9964 (try_thread_db_load_from_sdir): Update caller.
9965 (try_thread_db_load_from_dir): Move it there from here.
9967 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9969 * regformats/regdat.sh: Always rewrite the register file.
9971 2014-01-13 Pedro Alves <palves@redhat.com>
9973 * Makefile.in (CHECK_HEADERS): New variable.
9974 (check-headers:): New rule.
9976 2014-01-13 Tom Tromey <tromey@redhat.com>
9978 * cli/cli-setshow.c (do_set_command): Update.
9979 * defs.h (deprecated_set_hook): Remove.
9980 * top.c (deprecated_set_hook): Remove.
9982 2014-01-13 Pedro Alves <palves@redhat.com>
9984 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9985 the tracepoint if the PC is a pseudo-register.
9987 2014-01-13 Tom Tromey <tromey@redhat.com>
9989 * defs.h (XCALLOC): Remove.
9990 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9991 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9992 * dwarf2loc.c (allocate_piece_closure): Likewise.
9993 * elfread.c (elf_symfile_segments): Likewise.
9994 (elf_symfile_segments): Likewise.
9995 * gdbtypes.c (copy_type_recursive): Likewise.
9996 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9997 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9998 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10000 * mt-tdep.c (mt_gdbarch_init): Likewise.
10001 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10003 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10004 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10005 * registry.c (registry_alloc_data): Likewise.
10006 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10007 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10008 * serial.c (serial_fdopen_ops): Likewise.
10009 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10011 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10012 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10015 2014-01-13 Tom Tromey <tromey@redhat.com>
10017 * defs.h (XMALLOC): Remove.
10018 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10019 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10020 * cli-out.c (struct ui_out *): Likewise.
10021 * cli/cli-dump.c (add_dump_command): Likewise.
10022 (add_dump_command): Likewise.
10023 * complaints.c (get_complaints): Likewise.
10024 (find_complaint): Likewise.
10025 * dwarf2-frame.c (execute_cfa_program): Likewise.
10026 * dwarf2read.c (abbrev_table_read_table): Likewise.
10027 * gdbarch.sh: Likewise.
10028 * gdbarch.c: Rebuild.
10029 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10030 * interps.c (interp_new): Likewise.
10031 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10032 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10033 * mi/mi-console.c (mi_console_file_new): Likewise.
10034 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10035 * mi/mi-out.c (mi_out_new): Likewise.
10036 * mi/mi-parse.c (mi_parse): Likewise.
10037 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10038 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10039 * observer.c (xalloc_observer_list_node): Likewise.
10040 * regcache.c (regcache_xmalloc_1): Likewise.
10041 * reggroups.c (reggroup_new): Likewise.
10042 (_initialize_reggroup): Likewise.
10043 * registry.c (register_data_with_cleanup): Likewise.
10044 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10045 * ser-base.c (serial_ttystate): Likewise.
10046 * ser-mingw.c (make_pipe_state): Likewise.
10047 * ser-pipe.c (pipe_open): Likewise.
10048 * serial.c (serial_open): Likewise.
10049 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10050 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10051 (tui_alloc_win_info): Likewise.
10052 (tui_add_content_elements): Likewise.
10053 * tui/tui-file.c (tui_file_new): Likewise.
10054 * tui/tui-out.c (tui_out_new): Likewise.
10055 * ui-file.c (mem_file_new): Likewise.
10056 * ui-out.c (push_level): Likewise.
10057 (make_cleanup_ui_out_end): Likewise.
10058 (append_header_to_list): Likewise.
10059 (ui_out_new): Likewise.
10060 * user-regs.c (user_reg_add_builtin): Likewise.
10062 2014-01-13 Tom Tromey <tromey@redhat.com>
10064 * defs.h (XZALLOC): Remove.
10065 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10066 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10067 (get_ada_tasks_inferior_data): Likewise.
10068 * auto-load.c (get_auto_load_pspace_data): Likewise.
10069 * auxv.c (get_auxv_inferior_data): Likewise.
10070 * bfd-target.c (target_bfd_reopen): Likewise.
10071 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10072 (deprecated_insert_raw_breakpoint): Likewise.
10073 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10074 * corelow.c (core_open): Likewise.
10075 * darwin-nat.c (darwin_check_new_threads): Likewise.
10076 (darwin_attach_pid): Likewise.
10077 * dummy-frame.c (dummy_frame_push): Likewise.
10078 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10079 * dwarf2loc.c (allocate_piece_closure): Likewise.
10080 * elfread.c (elf_symfile_segments): Likewise.
10081 * eval.c (ptrmath_type_p): Likewise.
10082 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10083 * gdbtypes.c (alloc_type_arch): Likewise.
10084 (alloc_type_instance): Likewise.
10085 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10086 * inf-child.c (inf_child_can_use_agent): Likewise.
10087 * inflow.c (get_inflow_inferior_data): Likewise.
10088 * infrun.c (save_infcall_suspend_state): Likewise.
10089 * jit.c (jit_reader_load): Likewise.
10090 (get_jit_objfile_data): Likewise.
10091 (get_jit_program_space_data): Likewise.
10092 (jit_object_open_impl): Likewise.
10093 (jit_symtab_open_impl): Likewise.
10094 (jit_block_open_impl): Likewise.
10095 (jit_frame_sniffer): Likewise.
10096 * linux-fork.c (add_fork): Likewise.
10097 * maint.c (make_command_stats_cleanup): Likewise.
10098 * objfiles.c (get_objfile_pspace_data): Likewise.
10099 * opencl-lang.c (struct lval_closure): Likewise.
10100 * osdata.c (osdata_start_osdata): Likewise.
10101 * progspace.c (new_address_space): Likewise.
10102 (add_program_space): Likewise.
10103 * remote-sim.c (get_sim_inferior_data): Likewise.
10104 * sh-tdep.c (sh_gdbarch_init): Likewise.
10105 * skip.c (Ignore): Likewise.
10106 (skip_delete_command): Likewise.
10107 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10108 (library_list_start_library): Likewise.
10109 (solib_aix_current_sos): Likewise.
10110 * solib-darwin.c (get_darwin_info): Likewise.
10111 (darwin_current_sos): Likewise.
10112 * solib-dsbt.c (get_dsbt_info): Likewise.
10113 * solib-ia64-hpux.c (new_so_list): Likewise.
10114 (ia64_hpux_get_solib_linkage_addr): Likewise.
10115 * solib-spu.c (append_ocl_sos): Likewise.
10116 (spu_current_sos): Likewise.
10117 * solib-svr4.c (get_svr4_info): Likewise.
10118 (svr4_keep_data_in_core): Likewise.
10119 (library_list_start_library): Likewise.
10120 (svr4_default_sos): Likewise.
10121 (svr4_read_so_list): Likewise.
10122 * solib-target.c (library_list_start_library): Likewise.
10123 (solib_target_current_sos): Likewise.
10124 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10125 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10126 * symfile.c (default_symfile_segments): Likewise.
10127 * target-descriptions.c (tdesc_data_init): Likewise.
10128 (tdesc_create_reg): Likewise.
10129 (struct tdesc_type *): Likewise.
10130 (tdesc_create_vector): Likewise.
10131 (tdesc_set_struct_size): Likewise.
10132 (struct tdesc_type *): Likewise.
10133 (tdesc_free_feature): Likewise.
10134 (tdesc_create_feature): Likewise.
10135 * windows-nat.c (windows_add_thread): Likewise.
10136 (windows_make_so): Likewise.
10137 * xml-support.c (gdb_xml_body_text): Likewise.
10138 (gdb_xml_create_parser_and_cleanup): Likewise.
10139 (xml_process_xincludes): Likewise.
10140 * xml-syscall.c (allocate_syscalls_info): Likewise.
10141 (syscall_create_syscall_desc): Likewise.
10143 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10145 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10146 function, with code from i386_stap_parse_special_token.
10147 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10148 (i386_stap_parse_special_token): Move code to the two functions
10149 above; simplify it.
10151 2014-01-09 Pedro Alves <palves@redhat.com>
10152 Hui Zhu <hui@codesourcery.com>
10155 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10156 bp_err_string. Don't mark the location shlib_disabled if the
10157 error thrown wasn't a generic or memory error. Catch errors
10158 thrown while inserting breakpoints in overlayed code. Output
10159 error message of software breakpoints.
10160 * remote.c (remote_insert_breakpoint): If this breakpoint has
10161 target-side commands but this stub doesn't support Z0 packets,
10162 throw NOT_SUPPORTED_ERROR error.
10163 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10164 * target.h (target_insert_breakpoint): Extend comment.
10165 (target_insert_hw_breakpoint): Add comment.
10167 2014-01-08 Pedro Alves <palves@redhat.com>
10169 * remote.c (remote_add_thread): Add threads silently if starting
10171 (remote_notice_new_inferior): If in all-stop, and starting up,
10172 don't call notice_new_inferior.
10173 (get_current_thread): New function, factored out from ...
10174 (add_current_inferior_and_thread): ... this. Adjust.
10175 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10176 found any thread, then select the remote's current thread as GDB's
10177 current thread too.
10179 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10181 * NEWS: Create a new section for the next release branch.
10182 Rename the section of the current branch, now that it has
10185 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10187 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10188 * version.in: Bump version to 7.7.50.DATE-cvs.
10190 2014-01-08 Yao Qi <yao@codesourcery.com>
10192 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10193 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10194 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10196 2014-01-08 Yao Qi <yao@codesourcery.com>
10198 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10199 return value of bfd_get_filename to symbol_file_add_from_bfd.
10201 2014-01-08 Pierre Muller <muller@sourceware.org>
10204 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10205 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10206 to prim_record_mininal_symbol_and_info.
10207 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10208 in call to prim_record_minimal_symbol_and_info.
10209 (read_pe_exported_syms): Set index field of section_data.
10211 2014-01-07 Andrew Pinski <apinski@cavium.com>
10213 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10214 * features/aarch64.c: Regenerate.
10216 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10218 * target.c (return_null): Define.
10219 (update_current_target): Use it instead of return_zero for
10220 functions that return a pointer.
10222 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10224 * source.c (add_path): Fix check for duplicated paths in the previously
10227 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10229 * ada-lang.c: Remove duplicated include statements.
10230 * alphabsd-nat.c: Ditto.
10231 * amd64-darwin-tdep.c: Ditto.
10232 * amd64fbsd-nat.c: Ditto.
10233 * auto-load.c: Ditto.
10235 * breakpoint.c: Ditto.
10236 * dbxread.c: Ditto.
10237 * fork-child.c: Ditto.
10238 * gdb_usleep.c: Ditto.
10239 * i386-darwin-tdep.c: Ditto.
10240 * i386fbsd-nat.c: Ditto.
10242 * inferior.c: Ditto.
10243 * jv-lang.c: Ditto.
10244 * linux-nat.c: Ditto.
10245 * linux-tdep.c: Ditto.
10246 * m68kbsd-nat.c: Ditto.
10247 * m68klinux-nat.c: Ditto.
10248 * microblaze-tdep.c: Ditto.
10249 * mips-linux-tdep.c: Ditto.
10250 * mn10300-tdep.c: Ditto.
10251 * nto-tdep.c: Ditto.
10252 * opencl-lang.c: Ditto.
10254 * printcmd.c: Ditto.
10255 * regcache.c: Ditto.
10256 * remote-m32r-sdi.c: Ditto.
10258 * symfile.c: Ditto.
10260 * tilegx-linux-nat.c: Ditto.
10261 * tilegx-tdep.c: Ditto.
10262 * tracepoint.c: Ditto.
10264 * vaxbsd-nat.c: Ditto.
10265 * windows-nat.c: Ditto.
10266 * xtensa-tdep.c: Ditto.
10268 2014-01-07 Yao Qi <yao@codesourcery.com>
10270 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10272 2014-01-07 Yao Qi <yao@codesourcery.com>
10273 Joel Brobecker <brobecker@adacore.com>
10275 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10276 (pdc_write_regs): Likewise.
10277 (fetch_regs_kernel_thread): Likewise.
10278 (store_regs_kernel_thread): Likewise.
10280 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10282 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10283 tagged type objects to their actual type.
10285 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10287 * ada-valprint.c (print_field_values): Add "language" parameter.
10288 Update calls to print_field_values and print_variant_part.
10289 Pass new parameter "language" in call to val_print instead
10290 of "current_language". Replace call to ada_val_print by call
10292 (print_variant_part): Add "language" parameter.
10293 (ada_val_print_struct_union): Update call to print_field_values.
10295 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10297 * ada-valprint.c (ui_memcpy): Delete.
10298 (ada_print_floating): Update documentation. Add empty line
10299 between between function documentation and implementation.
10300 Delete variable "buffer". Use ui_file_xstrdup in place of
10301 ui_file_put. Minor adjustments following this change.
10303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10305 * ada-valprint.c (ada_val_print_string): New function,
10306 extracted from ada_val_print_array.
10307 (ada_val_print_array): Replace extracted code by call
10308 to ada_val_print_string followed by a return. Move
10309 "else" branch to the function's top block.
10311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10313 * ada-valprint.c (ada_val_print_array): Move implementation
10314 down. Rename parameter "offset" and "val" into "offset_aligned"
10315 and "original_value" respectively. Add parameter "offset".
10317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10319 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10320 re-organizing the code. Change the "???" message printed
10321 when target type is a TYPE_CODE_UNDEF into
10322 "<ref to undefined type>".
10324 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10326 * ada-valprint.c (print_record): Delete, implementation inlined...
10327 (ada_val_print_struct_union): ... here. Remove call to
10328 ada_check_typedef in inlined implementation.
10330 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10332 * ada-valprint.c (ada_val_print_gnat_array): New function,
10333 extracted from ada_val_print_1;
10334 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10335 (ada_val_print_flt, ada_val_print_struct_union)
10336 (ada_val_print_ref): Likewise.
10337 (ada_val_print_1): Delete variables i and elttype.
10338 Replace extracted-out code by call to corresponding
10341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10343 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10345 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10347 * ada-valprint.c (ada_val_print_1): Replace calls to
10348 ada_val_print_1 by calls to val_print.
10350 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10352 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10353 Update calls to self accordingly. Replace calls to c_val_print
10354 by calls to val_print.
10356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10358 * ada-valprint.c (print_record): Delete declaration.
10359 (adjust_type_signedness, ada_val_print_1): Likewise.
10360 (ada_val_print): Move function implementation down.
10361 (print_variant_part, print_field_values, print_record):
10362 Move function implementation up.
10364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10366 * python/py-type.c (typy_get_name): New function.
10367 (type_object_getset): Add entry for attribute "name".
10368 * NEWS: Add entry mentioning this new attribute.
10370 2014-01-07 Yao Qi <yao@codesourcery.com>
10372 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10375 2014-01-07 Yao Qi <yao@codesourcery.com>
10377 * gnu-nat.c (info_port_rights): Add qualifier const to
10380 2014-01-07 Yao Qi <yao@codesourcery.com>
10382 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10384 2014-01-07 Yao Qi <yao@codesourcery.com>
10386 * gnu-nat.c (make_inf) Update declaration.
10387 (make_inf): Make it static.
10388 (inf_set_traced): Likewise.
10389 (inf_port_to_thread, inf_task_died_status): Likewise.
10391 2014-01-07 Yao Qi <yao@codesourcery.com>
10393 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10395 2014-01-07 Yao Qi <yao@codesourcery.com>
10397 * gnu-nat.c (_initialize_gnu_nat): Declare.
10399 2014-01-07 Yao Qi <yao@codesourcery.com>
10401 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10403 (struct gdbarch_info) <byte_order>: Change type to
10405 <byte_order_for_code>: Likewise.
10406 * gdbarch.c, gdbarch.h: Regenerated.
10408 2014-01-06 Sasha Smundak <asmundak@google.com>
10410 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10412 2014-01-06 Tom Tromey <tromey@redhat.com>
10414 * doublest.c (convert_doublest_to_floatformat): Use const, not
10416 * somread.c (som_symtab_read): Likewise.
10418 2014-01-07 Hui Zhu <hui@codesourcery.com>
10420 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10421 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10422 (gdb_bfd_fopen): Ditto.
10423 (gdb_bfd_openr): Ditto.
10424 (gdb_bfd_openw): Ditto.
10425 (gdb_bfd_openr_iovec): Ditto.
10426 (gdb_bfd_fdopenr): Ditto.
10427 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10428 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10430 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10432 * symfile-mem.c (symbol_file_add_from_memory): Removed
10433 gdb_bfd_stash_filename.
10435 2014-01-03 Doug Evans <dje@google.com>
10437 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10440 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10442 Update year range in copyright notice of all files.
10444 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10446 * top.c (print_gdb_version): Set copyright year to 2014.
10448 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10450 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10452 For older changes see ChangeLog-2013.
10458 version-control: never