1 2014-07-20 Yao Qi <yao@codesourcery.com>
3 * std-operator.def: Remove BINOP_RANGE.
4 * breakpoint.c (watchpoint_exp_is_const): Update.
5 * expprint.c (dump_subexp_body_standard): Likewise.
6 * eval.c (init_array_element): Remove dead code.
7 (evaluate_subexp_standard): Likewise.
9 2014-07-20 Yao Qi <yao@codesourcery.com>
11 * std-operator.def: Remove BINOP_IN.
12 * breakpoint.c (watchpoint_exp_is_const): Update.
13 * eval.c (evaluate_subexp_standard): Likewise.
14 * expprint.c (dump_subexp_body_standard): Likewise.
16 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
18 * microblaze-tdep.c (microblaze_register_names): Add
19 the rshr and rslr register names.
20 (microblaze_gdbarch_init): Use of tdesc_has_registers.
21 Use of tdesc_find_feature. Use of tdesc_data_alloc.
22 Use of tdesc_numbered_register. Use of
23 microblaze_register_g_packet_guesses. Use of
24 tdesc_use_registers. Use of set_gdbarch_register_type.
25 (microblaze_register_g_packet_guesses): New.
26 * microblaze-tdep.h (microblaze_reg_num): Add
27 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
28 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
29 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
30 * features/microblaze-core.xml: New file.
31 * features/microblaze-stack-protect.xml: New file.
32 * features/microblaze-with-stack-protect.c: New file.
33 * features/microblaze-with-stack-protect.xml: New file.
34 * features/microblaze.xml: New file.
35 * features/microblaze.c: New file.
36 * features/Makefile (microblaze-with-stack-protect): Add
37 microblaze-with-stack-protect microblaze and microblaze-expedite.
38 * regformats/microblaze-with-stack-protect.dat: New file.
39 * regformats/microblaze.dat: New file.
40 * doc/gdb.texinfo (MicroBlaze Features): Added.
42 2014-07-18 Tom Tromey <tromey@redhat.com>
44 * exec.c (exec_ops): Now static.
45 * exec.h (exec_ops): Don't declare.
47 2014-07-18 Tom Tromey <tromey@redhat.com>
49 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
50 to find_target_beneath.
51 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
53 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
55 2014-07-18 Tom Tromey <tromey@redhat.com>
58 * utils.c (quit): Use target_supports_terminal_ours.
59 * target.h (target_supports_terminal_ours): Declare.
60 * target.c (target_supports_delete_record): Don't check
61 to_delete_record against NULL.
62 (target_supports_terminal_ours): New function.
64 2014-07-18 Tom Tromey <tromey@redhat.com>
67 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
68 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
69 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
70 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
71 * windows-nat.c (windows_xfer_partial): Always delegate.
72 * record-btrace.c (record_btrace_xfer_partial): Simplify
74 (record_btrace_fetch_registers, record_btrace_store_registers)
75 (record_btrace_prepare_to_store, record_btrace_resume)
76 (record_btrace_wait, record_btrace_find_new_threads)
77 (record_btrace_thread_alive): Likewise.
78 * procfs.c (procfs_xfer_partial): Always delegate.
79 * corelow.c (core_xfer_partial): Always delegate.
80 * sol-thread.c (sol_find_new_threads): Simplify delegation.
82 2014-07-18 Tom Tromey <tromey@redhat.com>
84 * exec.c (exec_make_note_section): Move earlier.
86 2014-07-17 Doug Evans <dje@google.com>
89 * maint.c (count_symtabs_and_blocks): Handle NULL
90 current_program_space.
91 (report_command_stats): Check global enabled flag in addition to
92 recorded enabled flag.
93 (make_command_stats_cleanup): Handle msg_type == 0, startup.
95 2014-07-16 Pedro Alves <palves@redhat.com>
97 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
99 2014-07-16 Tom Tromey <tromey@redhat.com>
101 * target.h (struct target_ops) <to_delete_record>: Reformat
104 2014-07-16 Tom Tromey <tromey@redhat.com>
106 * target-delegates.c: Rebuild.
108 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
110 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
111 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
112 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
113 (avr_pointer_to_address): Likewise.
114 (avr_address_class_type_flags): New function.
115 (avr_address_class_type_flags_to_name): Likewise.
116 (avr_address_class_name_to_type_flags): Likewise.
117 (avr_gdbarch_init): Set address_class_type_flags,
118 address_class_type_flags_to_name and
119 address_class_name_to_type_flags.
121 2014-07-15 Pedro Alves <palves@redhat.com>
123 * linux-nat.c (kill_callback): Save errno and work with saved
126 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
128 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
130 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
132 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
133 breakpoint support correctly.
135 2014-07-14 Pedro Alves <palves@redhat.com>
137 * utils.c (prompt_for_continue): Call target_terminal_ours.
139 2014-07-14 Pedro Alves <palves@redhat.com>
141 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
142 catch_errors. Don't re-enable stdin or notify observers where,
144 (fetch_inferior_event_wrapper): Delete.
146 2014-07-14 Pedro Alves <palves@redhat.com>
149 * top.c: Include "inf-loop.h".
150 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
152 (gdb_readline_wrapper_cleanup): Make the target async again, if it
154 (gdb_readline_wrapper): Store whether the target is async, and
157 2014-07-14 Pedro Alves <palves@redhat.com>
160 * top.c (gdb_readline_wrapper_line): Tweak comment.
161 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
162 the input handler callback.
164 2014-07-14 Pedro Alves <palves@redhat.com>
167 * main.c: Include event-top.h.
168 (handle_command_errors): New function.
169 (catch_command_errors, catch_command_errors_const): Use it.
171 2014-07-14 Pedro Alves <palves@redhat.com>
173 * exceptions.c (catch_command_errors, catch_command_errors_const):
175 * exceptions.h (catch_command_errors_ftype)
176 (catch_command_errors_const_ftype): Moved to main.c.
177 (catch_command_errors, catch_command_errors_const): Delete
179 * main.c (catch_command_errors_ftype)
180 (catch_command_errors_const_ftype): Moved here from exceptions.h.
181 (catch_command_errors, catch_command_errors_const)): Moved here
182 from exceptions.c and make static.
184 2014-07-14 Pedro Alves <palves@redhat.com>
186 * exceptions.c (print_any_exception): Delete.
187 (catch_exceptions_with_msg): Use exception_print instead of
189 (catch_errors): Use exception_fprintf instead of
191 (catch_command_errors, catch_command_errors_const): Use
192 exception_print instead of print_any_exception.
194 2014-07-14 Pedro Alves <palves@redhat.com>
196 * infcall.c (run_inferior_call): Set 'sync_execution' while
197 running the inferior call.
199 2014-07-14 Pedro Alves <palves@redhat.com>
201 * value.c (value_contents_equal): Delete function.
202 * value.h (value_contents_equal): Delete declaration.
204 2014-07-14 Tom Tromey <tromey@redhat.com>
207 * gdbtypes.c (is_dynamic_type_internal): New function, from
209 (is_dynamic_type): Rewrite.
210 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
211 (resolve_dynamic_struct): Likewise.
212 (resolve_dynamic_type_internal): New function, from
213 resolve_dynamic_type.
214 (resolve_dynamic_type): Rewrite.
216 2014-07-14 Tom Tromey <tromey@redhat.com>
218 * target.c (target_require_runnable): Also check record_stratum.
221 2014-07-11 Yao Qi <yao@codesourcery.com>
223 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
224 thumb_instruction_restores_sp return true.
226 2014-07-11 Yao Qi <yao@codesourcery.com>
228 * arm-tdep.c (thumb_instruction_restores_sp): New function.
229 (thumb_in_function_epilogue_p): Call
230 thumb_instruction_restores_sp.
232 2014-07-11 Yao Qi <yao@codesourcery.com>
234 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
236 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
238 2014-07-11 Gary Benson <gbenson@redhat.com>
240 * amd64-linux-nat.c (gdbcore.h): Remove include.
241 (regset.h): Likewise.
242 (nat/linux-btrace.h): Likewise.
243 (btrace.h): Likewise.
244 (gdb_assert.h): Likewise.
245 (string.h): Likewise.
246 (sys/uio.h): Likewise.
247 (sys/debugreg.h): Likewise.
248 (sys/syscall.h): Likewise.
249 (sys/procfs.h): Likewise.
250 (sys/user.h): Likewise.
251 (asm/ptrace.h): Likewise.
252 (i386-nat.h): Likewise.
253 * i386-linux-nat.c (i386-nat.h): Likewise.
254 (regset.h): Likewise.
255 (target.h): Likewise.
256 (linux-nat.h): Likewise.
257 (nat/linux-btrace.h): Likewise.
258 (btrace.h): Likewise.
259 (gdb_assert.h): Likewise.
260 (string.h): Likewise.
261 (sys/uio.h): Likewise.
262 (sys/user.h): Likewise.
263 (sys/procfs.h): Likewise.
264 (sys/reg.h): Likewise.
265 (sys/debugreg.h): Likewise.
266 (ORIG_EAX): Remove definition.
268 2014-07-11 Gary Benson <gbenson@redhat.com>
270 * i386-linux-nat.h: New file.
271 * x86-linux-nat.h: Likewise.
272 * x86-linux-nat.c: Likewise.
273 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
274 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
275 * config/i386/linux64.mh (NATDEPFILES): Likewise.
276 * amd64-linux-nat.c (x86-linux-nat.h): New include.
277 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
278 (PTRACE_SETREGSET): Likewise.
279 (arch_lwp_info): Now in x86-linux-nat.c.
280 (have_ptrace_getregset): Now in x86-linux-nat.h.
281 (x86_linux_dr_get): Now in x86-linux-nat.c.
282 (x86_linux_dr_set): Likewise.
283 (x86_linux_dr_get_addr): Likewise.
284 (x86_linux_dr_get_control): Likewise.
285 (x86_linux_dr_get_status): Likewise.
286 (update_debug_registers_callback): Likewise.
287 (x86_linux_dr_set_control): Likewise.
288 (x86_linux_dr_set_addr): Likewise.
289 (x86_linux_prepare_to_resume): Likewise.
290 (x86_linux_new_thread): Likewise.
291 (x86_linux_new_fork): Likewise.
292 (x86_linux_get_thread_area): Likewise.
293 (super_post_startup_inferior): Likewise.
294 (x86_linux_child_post_startup_inferior): Likewise.
295 (AMD64_LINUX_USER64_CS): Likewise.
296 (AMD64_LINUX_X32_DS): Likewise.
297 (x86_linux_read_description): Likewise.
298 (x86_linux_enable_btrace): Likewise.
299 (x86_linux_disable_btrace): Likewise.
300 (x86_linux_teardown_btrace): Likewise.
301 (x86_linux_read_btrace): Likewise.
302 (x86_linux_create_target): Likewise.
303 (x86_linux_add_target): Likewise.
304 * i386-linux-nat.c (x86-linux-nat.h): New include.
305 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
306 (PTRACE_SETREGSET): Likewise.
307 (arch_lwp_info): Now in x86-linux-nat.c.
308 (have_ptrace_getregset): Now in x86-linux-nat.h.
309 (x86_linux_dr_get): Now in x86-linux-nat.c.
310 (x86_linux_dr_set): Likewise.
311 (x86_linux_dr_get_addr): Likewise.
312 (x86_linux_dr_get_control): Likewise.
313 (x86_linux_dr_get_status): Likewise.
314 (update_debug_registers_callback): Likewise.
315 (x86_linux_dr_set_control): Likewise.
316 (x86_linux_dr_set_addr): Likewise.
317 (x86_linux_prepare_to_resume): Likewise.
318 (x86_linux_new_thread): Likewise.
319 (x86_linux_new_fork): Likewise.
320 (x86_linux_get_thread_area): Likewise.
321 (super_post_startup_inferior): Likewise.
322 (x86_linux_child_post_startup_inferior): Likewise.
323 (AMD64_LINUX_USER64_CS): Likewise.
324 (AMD64_LINUX_X32_DS): Likewise.
325 (x86_linux_read_description): Likewise.
326 (x86_linux_enable_btrace): Likewise.
327 (x86_linux_disable_btrace): Likewise.
328 (x86_linux_teardown_btrace): Likewise.
329 (x86_linux_read_btrace): Likewise.
330 (x86_linux_create_target): Likewise.
331 (x86_linux_add_target): Likewise.
333 2014-07-11 Gary Benson <gbenson@redhat.com>
335 * amd64-linux-nat.c: Comment and whitespace changes.
336 * i386-linux-nat.c: Comment and whitespace changes.
338 2014-07-11 Gary Benson <gbenson@redhat.com>
340 * amd64-linux-nat.c (x86_linux_create_target): New function.
341 (x86_linux_add_target): Likewise.
342 (_initialize_amd64_linux_nat): Delegate to the above new functions.
343 * i386-linux-nat.c (x86_linux_create_target): New function.
344 (x86_linux_add_target): Likewise.
345 (_initialize_i386_linux_nat): Delegate to the above new functions.
347 2014-07-11 Gary Benson <gbenson@redhat.com>
349 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
350 (ps_get_thread_area): Delegate to the above in 32-bit mode.
351 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
352 (ps_get_thread_area): Delegate to the above.
354 2014-07-11 Gary Benson <gbenson@redhat.com>
356 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
357 x86_linux_read_description. All uses updated. amd64-specific
358 code conditionalized. Conditionalized i386-specific code added.
359 Redundant cast removed.
360 * i386-linux-nat.c (i386_linux_read_description): Renamed to
361 x86_linux_read_description. All uses updated. i386-specific
362 code conditionalized. Conditionalized amd64-specific code added.
363 One sizeof replaced with the actual type it is describing.
365 2014-07-11 Gary Benson <gbenson@redhat.com>
367 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
368 x86_linux_dr_get. All uses updated.
369 (amd64_linux_dr_set): Renamed to
370 x86_linux_dr_set. All uses updated.
371 (amd64_linux_dr_get_addr): Renamed to
372 x86_linux_dr_get_addr. All uses updated.
373 (amd64_linux_dr_get_control): Renamed to
374 x86_linux_dr_get_control. All uses updated.
375 (amd64_linux_dr_get_status): Renamed to
376 x86_linux_dr_get_status. All uses updated.
377 (amd64_linux_dr_set_control): Renamed to
378 x86_linux_dr_set_control. All uses updated.
379 (amd64_linux_dr_set_addr): Renamed to
380 x86_linux_dr_set_addr. All uses updated.
381 (amd64_linux_prepare_to_resume): Renamed to
382 x86_linux_prepare_to_resume. All uses updated.
383 (amd64_linux_new_thread): Renamed to
384 x86_linux_new_thread. All uses updated.
385 (amd64_linux_new_fork): Renamed to
386 x86_linux_new_fork. All uses updated.
387 (amd64_linux_child_post_startup_inferior): Renamed to
388 x86_linux_child_post_startup_inferior. All uses updated.
389 (amd64_linux_enable_btrace): Renamed to
390 x86_linux_enable_btrace. All uses updated.
391 (amd64_linux_disable_btrace): Renamed to
392 x86_linux_disable_btrace. All uses updated.
393 (amd64_linux_teardown_btrace): Renamed to
394 x86_linux_teardown_btrace. All uses updated.
395 (amd64_linux_read_btrace): Renamed to
396 x86_linux_read_btrace. All uses updated.
397 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
398 x86_linux_dr_get. All uses updated.
399 (i386_linux_dr_set): Renamed to
400 x86_linux_dr_set. All uses updated.
401 (i386_linux_dr_get_addr): Renamed to
402 x86_linux_dr_get_addr. All uses updated.
403 (i386_linux_dr_get_control): Renamed to
404 x86_linux_dr_get_control. All uses updated.
405 (i386_linux_dr_get_status): Renamed to
406 x86_linux_dr_get_status. All uses updated.
407 (i386_linux_dr_set_control): Renamed to
408 x86_linux_dr_set_control. All uses updated.
409 (i386_linux_dr_set_addr): Renamed to
410 x86_linux_dr_set_addr. All uses updated.
411 (i386_linux_prepare_to_resume): Renamed to
412 x86_linux_prepare_to_resume. All uses updated.
413 (i386_linux_new_thread): Renamed to
414 x86_linux_new_thread. All uses updated.
415 (i386_linux_new_fork): Renamed to
416 x86_linux_new_fork. All uses updated.
417 (i386_linux_child_post_startup_inferior): Renamed to
418 x86_linux_child_post_startup_inferior. All uses updated.
419 (i386_linux_enable_btrace): Renamed to
420 x86_linux_enable_btrace. All uses updated.
421 (i386_linux_disable_btrace): Renamed to
422 x86_linux_disable_btrace. All uses updated.
423 (i386_linux_teardown_btrace): Renamed to
424 x86_linux_teardown_btrace. All uses updated.
425 (i386_linux_read_btrace): Renamed to
426 x86_linux_read_btrace. All uses updated.
428 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
430 * remote.c (extended_remote_post_attach): New function.
431 (init_extended_remote_ops): Install it as to_post_attach method.
433 2014-07-09 Pedro Alves <palves@redhat.com>
435 * infcmd.c (attach_command_post_wait): Don't call
436 target_terminal_inferior here.
437 (attach_command): Call it here instead.
439 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
441 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
443 * c-varobj.c (c_is_path_expr_parent): New function, moved core
444 from varobj.c, with additional checks.
445 (c_varobj_ops): Fill in is_path_expr_parent field.
446 (cplus_varobj_ops): Fill in is_path_expr_parent field.
447 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
449 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
451 (varobj_default_is_path_expr_parent): New function.
452 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
453 (varobj_default_is_path_expr_parent): Declare new function.
455 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
457 * infcmd.c (finish_backward): Turn internal error into normal error.
459 2014-07-07 Pedro Alves <palves@redhat.com>
462 * remote.c (async_handle_remote_sigint)
463 (async_handle_remote_sigint_twice): Call
464 gdb_call_async_signal_handler instead of
465 mark_async_signal_handler.
467 2014-07-07 Tom Tromey <tromey@redhat.com>
469 * target-delegates.c: Rebuild.
470 * target.c (target_info_record): Remove.
471 * record.c (info_record_command): Unconditionally call
473 * target.h (struct target_ops) <to_info_record>: Use
474 TARGET_DEFAULT_IGNORE.
475 (target_info_record): Remove.
477 2014-07-07 Tom Tromey <tromey@redhat.com>
479 * target.h (struct target_ops) <to_get_thread_local_address>: Use
480 TARGET_DEFAULT_NORETURN.
481 * target.c (generic_tls_error): New function.
482 (target_translate_tls_address): Don't search target stack.
483 * target-delegates.c: Rebuild.
484 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
486 * linux-thread-db.c (thread_db_get_thread_local_address):
487 Unconditionally call beneath target.
489 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
491 * cli/cli-logging.c (pop_output_files): Assign targerr to
494 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
496 * MAINTAINERS (Write After Approval): Update my email address.
498 2014-07-02 Gary Benson <gbenson@redhat.com>
500 * proc-service.c (ps_xfer_memory): Update comment.
501 (ps_pstop): Remove unused function.
502 (ps_pcontinue): Likewise.
503 (ps_lstop): Likewise.
504 (ps_lcontinue): Likewise.
505 (ps_lgetxregsize): Likewise.
506 (ps_lgetxregs): Likewise.
507 (ps_lsetxregs): Likewise.
509 (ps_ptread): Likewise.
510 (ps_ptwrite): Likewise.
512 2014-07-01 Mark Wielaard <mjw@redhat.com>
514 * dwarf2read.c (add_array_cv_type): New function.
515 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
516 (read_tag_volatile_type): Likewise.
518 2014-07-01 Tom Tromey <tromey@redhat.com>
520 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
521 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
522 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
523 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
524 * command.h (cmd_cfunc_ftype): Move earlier.
525 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
526 (add_com, add_info): Use cmd_cfunc_ftype.
528 2014-06-30 Tom Tromey <tromey@redhat.com>
530 * symtab.c (operator_chars): Make parameters and return type
532 (file_matches): Make "files" const.
533 (struct search_symbols_data) <files>: Now const.
534 (search_symbols): Make "regexp" and "files" parameters const.
536 (symtab_symbol_info): Remove cast.
537 (rbreak_command): Update.
538 * symtab.h (search_symbols): Update.
540 2014-06-27 Yao Qi <yao@codesourcery.com>
542 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
543 Change parameter type to 'struct thread_info *'. Caller
545 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
547 * dummy-frame.c (struct dummy_frame_id): New.
548 (dummy_frame_id_eq): New function.
549 (struct dummy_frame) <id>: Change its type to 'struct
551 (dummy_frame_push): Add parameter ptid and save it in
553 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
555 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
557 (lookup_dummy_frame): Change parameter type to 'struct
558 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
559 instead of frame_id_eq.
560 (dummy_frame_pop): Add parameter ptid. Callers updated.
561 Update comments. Compose dummy_frame_id and pass it to
563 (dummy_frame_discard): Add parameter ptid.
564 (dummy_frame_sniffer): Compose dummy_frame_id and call
565 dummy_frame_id_eq instead of frame_id_eq.
566 (fprint_dummy_frames): Print ptid.
567 * dummy-frame.h: Remove comments.
568 (dummy_frame_push): Add ptid in declaration.
569 (dummy_frame_pop, dummy_frame_discard): Likewise.
571 2014-06-26 Tom Tromey <tromey@redhat.com>
573 * cli/cli-cmds.c (error_no_arg): Make "why" const.
574 * command.h (error_no_arg): Update.
576 2014-06-26 Tom Tromey <tromey@redhat.com>
578 * cli/cli-setshow.c (do_set_command): Make "arg" const.
579 (do_show_command): Make "arg" const.
580 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
582 2014-06-26 Tom Tromey <tromey@redhat.com>
584 * record-full.c (record_full_get_bookmark): Make "args" const.
585 (record_full_goto_bookmark): Make "raw_bookmark" const.
586 * record.c (record_goto): New function.
587 (cmd_record_goto): Use it. Now static.
588 * record.h (record_goto): Declare.
589 (cmd_record_goto): Remove declaration.
590 * target-delegates.c: Rebuild.
591 * target.h (struct target_ops) <to_get_bookmark,
592 to_goto_bookmark>: Make parameter const.
594 2014-06-26 Tom Tromey <tromey@redhat.com>
596 * defs.h (generic_load): Update.
597 * m32r-rom.c (m32r_load_gen): Make "filename" const.
598 * monitor.c (monitor_load): Make "args" const.
599 * remote-m32r-sdi.c (m32r_load): Make "args" const.
600 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
602 (mips_load): Make "file" const.
603 * remote-sim.c (gdbsim_load): Make "args" const.
604 * remote.c (remote_load): Make "name" const.
605 * symfile.c (generic_load): Make "args" const.
606 * target-delegates.c: Rebuild.
607 * target.c (target_load): Make "arg" const.
608 (debug_to_load): Make "args" const.
609 * target.h (struct target_ops) <to_load>: Make parameter const.
610 (target_load): Update.
612 2014-06-26 Tom Tromey <tromey@redhat.com>
615 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
616 (dwarf2_physname, read_partial_die)
617 (guess_partial_die_structure_name, fixup_partial_die)
618 (guess_full_die_structure_name, anonymous_struct_prefix)
619 (dwarf2_name): Use per-BFD obstack.
621 2014-06-26 Yao Qi <yao@codesourcery.com>
623 * dummy-frame.c (dummy_frame_sniffer): Move local variables
624 dummyframe and this_id into inner block below.
626 2014-06-26 Yao Qi <yao@codesourcery.com>
628 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
629 with "signal_pass[0]" in the initialization of signal_pass.
631 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
633 * record-btrace.c (record_btrace_generating_corefile)
634 (record_btrace_prepare_to_generate_core)
635 (record_btrace_done_generating_core): New.
636 (record_btrace_xfer_partial, record_btrace_fetch_registers)
637 (record_btrace_store_registers, record_btrace_prepare_to_store):
638 Forward request when generating a core file.
639 (record_btrace_open): Set record_btrace_generating_corefile to zero.
640 (init_record_btrace_ops): Set to_prepare_to_generate_core and
641 to_done_generating_core.
643 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
645 * target.h (target_ops) <to_prepare_to_generate_core>
646 <to_done_generating_core>: New.
647 (target_prepare_to_generate_core, target_done_generating_core): New.
648 * target.c (target_prepare_to_generate_core)
649 (target_done_generating_core): New.
650 * target-delegates.c: Regenerate.
651 * gcore.c: (write_gcore_file): Rename to ...
652 (write_gcore_file_1): ...this.
653 (write_gcore_file): Call target_prepare_to_generate_core
654 and target_done_generating_core.
656 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
658 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
659 * gcore.c (write_gcore_file): Free memory returned from
661 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
662 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
664 2014-06-24 Yao Qi <yao@codesourcery.com>
666 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
667 (arm_linux_init_abi): Set skip_trampoline_code with
668 gdbarch_skip_trampoline_code instead of
669 find_solib_trampoline_target.
671 2014-06-24 Yao Qi <yao@codesourcery.com>
673 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
674 arm_skip_bx_reg returns non-zero.
676 2014-06-24 Yao Qi <yao@codesourcery.com>
678 * arm-tdep.c (arm_skip_bx_reg): New function.
679 (arm_skip_stub): Call arm_skip_bx_reg.
681 2014-06-23 Don Breazeal <donb@codesourcery.com>
683 * MAINTAINERS: Add myself as write-after-approval maintainer.
685 2014-06-23 Pedro Alves <palves@redhat.com>
687 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
688 DR_CONTROL before setting DR0..DR3.
689 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
690 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
691 bits of DR_CONTROL related to the debug register slot being
692 disabled. If all slots are vacant, clear local slowdown as well,
693 and assert DR_CONTROL is 0.
695 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
697 * python/lib/gdb/command/xmethods.py
698 (get_method_matchers_in_loci): Lookup xmethod matchers in the
699 current progspace only if the string "progspace" matches LOCUS_RE.
701 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
703 Fix --with-system-readline with readline-6.3 patch 5.
704 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
705 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
708 2014-06-20 Tom Tromey <tromey@redhat.com>
710 * dwarf2read.c (dw2_get_real_path): Use correct type in
712 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
714 2014-06-20 Gary Benson <gbenson@redhat.com>
716 * common/gdb_thread_db.h: Moved to nat. All includes updated.
717 * common/glibc_thread_db.h: Likewise.
718 * common/i386-cpuid.h: Likewise.
719 * common/i386-gcc-cpuid.h: Likewise.
720 * common/linux-btrace.h: Likewise.
721 * common/linux-osdata.h: Likewise.
722 * common/linux-procfs.h: Likewise.
723 * common/linux-ptrace.h: Likewise.
724 * common/mips-linux-watch.h: Likewise.
725 * common/linux-btrace.c: Moved to nat.
726 * common/linux-osdata.c: Likewise.
727 * common/linux-procfs.c: Likewise.
728 * common/linux-ptrace.c: Likewise.
729 * common/mips-linux-watch.c: Likewise.
730 * nat/gdb_thread_db.h: Moved from common.
731 * nat/glibc_thread_db.h: Likewise.
732 * nat/i386-cpuid.h: Likewise.
733 * nat/i386-gcc-cpuid.h: Likewise.
734 * nat/linux-btrace.c: Likewise.
735 * nat/linux-btrace.h: Likewise.
736 * nat/linux-osdata.c: Likewise.
737 * nat/linux-osdata.h: Likewise.
738 * nat/linux-procfs.c: Likewise.
739 * nat/linux-procfs.h: Likewise.
740 * nat/linux-ptrace.c: Likewise.
741 * nat/linux-ptrace.h: Likewise.
742 * nat/mips-linux-watch.c: Likewise.
743 * nat/mips-linux-watch.h: Likewise.
744 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
745 (object file files): Reordered.
746 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
747 of glibc_thread_db.h.
749 2014-06-20 Gary Benson <gbenson@redhat.com>
751 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
752 (i386_dr_low_type): Moved to nat/i386-dregs.h.
753 (i386_dr_low): Likewise.
754 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
755 (i386_dr_low_set_addr): Likewise.
756 (i386_dr_low_get_addr): Likewise.
757 (i386_dr_low_can_set_control): Likewise.
758 (i386_dr_low_set_control): Likewise.
759 (i386_dr_low_get_control): Likewise.
760 (i386_dr_low_get_status): Likewise.
761 (i386_get_debug_register_length): Likewise.
762 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
763 (i386_dr_low): Likewise.
764 * nat/i386-dregs.c (i386-low.h): Remove include.
765 (i386-nat.h): Likewise.
766 (nat/i386-dregs.h): New include.
767 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
768 (i386_dr_low_set_addr): Likewise.
769 (i386_dr_low_get_addr): Likewise.
770 (i386_dr_low_can_set_control): Likewise.
771 (i386_dr_low_set_control): Likewise.
772 (i386_dr_low_get_control): Likewise.
773 (i386_dr_low_get_status): Likewise.
774 (i386_get_debug_register_length): Likewise.
775 (debug_hw_points): Likewise.
777 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
779 * Makefile.in (SFILES): Add d-exp.y.
780 (YYFILES): Add d-exp.c.
781 (YYOBJ): Add d-exp.o.
782 (local-maintainer-clean): Delete d-exp.c.
784 * d-lang.h (d_parse): New declaration.
785 (d_error): New declaration.
786 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
787 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
788 PREC_ORDER operators.
789 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
791 2014-06-19 Yao Qi <yao@codesourcery.com>
793 * gdbthread.h (any_running): Remove the declaration.
794 * thread.c (any_running): Remove.
796 2014-06-19 Yao Qi <yao@codesourcery.com>
798 * gdbthread.h (struct thread_info) <state>: Change its type to
799 'enum thread_state'. Update comments.
801 2014-06-19 Pedro Alves <palves@redhat.com>
803 * gdbthread.h (ALL_THREADS): Delete.
804 (ALL_NON_EXITED_THREADS): New macro.
805 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
806 instead of ALL_THREADS.
807 * infrun.c (find_thread_needs_step_over)
808 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
809 instead of ALL_THREADS.
810 * record-btrace.c (record_btrace_open)
811 (record_btrace_stop_recording, record_btrace_close)
812 (record_btrace_is_replaying, record_btrace_resume)
813 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
814 * remote.c (append_pending_thread_resumptions): Likewise.
815 * thread.c (thread_apply_all_command): Likewise.
817 2014-06-19 Gary Benson <gbenson@redhat.com>
819 * i386-nat.c (i386_stopped_by_watchpoint):
820 Use i386_dr_stopped_by_watchpoint.
821 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
822 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
824 2014-06-19 Gary Benson <gbenson@redhat.com>
826 * nat/i386-dregs.c: New file.
827 * Makefile.in (i386-dregs.o): New rule.
828 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
829 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
830 * config/i386/darwin.mh (NATDEPFILES): Likewise.
831 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
832 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
833 * config/i386/go32.mh (NATDEPFILES): Likewise.
834 * config/i386/linux.mh (NATDEPFILES): Likewise.
835 * config/i386/linux64.mh (NATDEPFILES): Likewise.
836 * config/i386/mingw.mh (NATDEPFILES): Likewise.
837 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
838 * i386-nat.h (debug_hw_points): New declaration.
839 * i386-nat.c (breakpoint.h): Remove include.
840 (command.h): Likewise.
841 (target.h): Likewise.
842 (gdb_assert.h): Likewise.
843 (debug_hw_points): Made nonstatic.
844 (debug_printf): Now in i386-dregs.c.
845 (TARGET_HAS_DR_LEN_8): Likewise.
846 (DR_CONTROL_SHIFT): Likewise.
847 (DR_CONTROL_SIZE): Likewise.
848 (DR_RW_EXECUTE): Likewise.
849 (DR_RW_WRITE): Likewise.
850 (DR_RW_READ): Likewise.
851 (DR_RW_IORW): Likewise.
852 (DR_LEN_1): Likewise.
853 (DR_LEN_2): Likewise.
854 (DR_LEN_4): Likewise.
855 (DR_LEN_8): Likewise.
856 (DR_LOCAL_ENABLE_SHIFT): Likewise.
857 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
858 (DR_ENABLE_SIZE): Likewise.
859 (DR_LOCAL_SLOWDOWN): Likewise.
860 (DR_GLOBAL_SLOWDOWN): Likewise.
861 (DR_CONTROL_RESERVED): Likewise.
862 (I386_DR_CONTROL_MASK): Likewise.
863 (I386_DR_VACANT): Likewise.
864 (I386_DR_LOCAL_ENABLE): Likewise.
865 (I386_DR_GLOBAL_ENABLE): Likewise.
866 (I386_DR_DISABLE): Likewise.
867 (I386_DR_SET_RW_LEN): Likewise.
868 (I386_DR_GET_RW_LEN): Likewise.
869 (I386_DR_WATCH_HIT): Likewise.
870 (i386_wp_op_t): Likewise.
871 (i386_show_dr): Likewise.
872 (i386_length_and_rw_bits): Likewise.
873 (i386_insert_aligned_watchpoint): Likewise.
874 (i386_remove_aligned_watchpoint): Likewise.
875 (i386_handle_nonaligned_watchpoint): Likewise.
876 (i386_update_inferior_debug_regs): Likewise.
877 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
878 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
879 (i386_region_ok_for_watchpoint):
880 Use i386_dr_region_ok_for_watchpoint.
881 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
883 2014-06-19 Gary Benson <gbenson@redhat.com>
885 * i386-nat.c (i386_insert_hw_breakpoint): Use
886 i386_insert_watchpoint.
887 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
889 2014-06-19 Gary Benson <gbenson@redhat.com>
891 * i386-nat.c (i386_dr_show): Renamed to
892 i386_show_dr and made static. All uses updated.
893 (i386_dr_length_and_rw_bits): Renamed to
894 i386_length_and_rw_bits and made static.
896 (i386_dr_insert_aligned_watchpoint): Renamed to
897 i386_insert_aligned_watchpoint and made static.
899 (i386_dr_remove_aligned_watchpoint): Renamed to
900 i386_remove_aligned_watchpoint and made static.
902 (i386_dr_update_inferior_debug_regs): Renamed to
903 i386_update_inferior_debug_regs and made static.
905 * nat/i386-dregs.h (i386_dr_show): Removed.
906 (i386_dr_length_and_rw_bits): Likewise.
907 (i386_dr_insert_aligned_watchpoint): Likewise.
908 (i386_dr_remove_aligned_watchpoint): Likewise.
909 (i386_dr_update_inferior_debug_regs): Likewise.
911 2014-06-19 Gary Benson <gbenson@redhat.com>
913 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
914 * configure: Regenerate.
915 * config.in: Likewise.
916 * main.c (signal.h): New include.
917 (setup_alternate_signal_stack): New function.
918 (captured_main): Call the above.
919 * cp-support.c (signal.h): New include.
920 (catch_demangler_crashes): New flag.
921 (SIGJMP_BUF): New define.
922 (SIGSETJMP): Likewise.
923 (SIGLONGJMP): Likewise.
924 (gdb_demangle_jmp_buf): New static global.
925 (gdb_demangle_attempt_core_dump): Likewise.
926 (gdb_demangle_signal_handler): New function.
927 (gdb_demangle): If catch_demangler_crashes is set, install the
928 above signal handler before calling bfd_demangle, and restore
929 the original signal handler afterwards. Display the offending
930 symbol and call demangler_warning the first time a segmentation
932 (_initialize_cp_support): New maint set/show command.
934 2014-06-19 Gary Benson <gbenson@redhat.com>
936 * utils.h (resource_limit_kind): New enum.
937 (can_dump_core): New declaration.
938 (warn_cant_dump_core): Likewise.
939 (dump_core): Likewise.
940 * utils.c (dump_core): Made nonstatic. Added new
941 parameter "limit_kind".
942 (can_dump_core): Made nonstatic. Moved printing code to...
943 (warn_cant_dump_core): New function.
944 (can_dump_core_warn): Likewise.
945 (internal_vproblem): Replace calls to can_dump_core with
946 calls to can_dump_core_warn. Supply new argument to each.
948 2014-06-19 Gary Benson <gbenson@redhat.com>
950 * utils.h (demangler_vwarning): New declaration.
951 (demangler_warning): Likewise.
952 * utils.c (struct internal_problem)
953 <user_settable_should_quit>: New field.
954 <user_settable_should_dump_core>: Likewise
955 (internal_error_problem): Add values for above new fields.
956 (internal_warning_problem): Likewise.
957 (demangler_warning_problem): New static global.
958 (demangler_vwarning): New function.
959 (demangler_warning): Likewise.
960 (add_internal_problem_command): Selectively add commands.
961 (_initialize_utils): New internal problem command.
962 * maint.c (maintenance_demangler_warning): New function.
963 (_initialize_maint_cmds): New command.
965 2014-06-18 Tom Tromey <tromey@redhat.com>
967 * f-valprint.c (info_common_command_for_block): Update.
968 * symtab.h (struct general_symbol_info) <common_block>: Now
971 2014-06-18 Tom Tromey <tromey@redhat.com>
973 * symtab.h (struct symtab) <blockvector>: Now const.
974 * ada-lang.c (ada_add_global_exceptions): Update.
975 * buildsym.c (augment_type_symtab): Update.
976 * dwarf2read.c (dw2_lookup_symbol): Update.
977 * jit.c (finalize_symtab): Update.
978 * jv-lang.c (add_class_symtab_symbol): Update.
979 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
981 * objfiles.c (objfile_relocate1): Update.
982 * psymtab.c (lookup_symbol_aux_psymtabs)
983 (maintenance_check_psymtabs): Update.
984 * python/py-symtab.c (stpy_global_block, stpy_static_block):
986 * spu-tdep.c (spu_catch_start): Update.
987 * symmisc.c (dump_symtab_1): Update.
988 * symtab.c (lookup_global_symbol_from_objfile)
989 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
990 (basic_lookup_transparent_type_quick)
991 (basic_lookup_transparent_type, find_pc_sect_symtab)
992 (find_pc_sect_line, search_symbols): Update.
993 * block.c (find_block_in_blockvector): Make "bl" const.
994 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
996 (blockvector_contains_pc): Make "bv" const.
997 (block_for_pc_sect): Update.
998 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
999 (blockvector_contains_pc): Update.
1000 * breakpoint.c (resolve_sal_pc): Update.
1001 * inline-frame.c (block_starting_point_at): Update.
1003 2014-06-18 Tom Tromey <tromey@redhat.com>
1005 * completer.c (complete_line): Make "line_buffer" const.
1006 * completer.h (complete_line): Update.
1008 2014-06-18 Tom Tromey <tromey@redhat.com>
1010 * symtab.c (add_macro_name): Remove unneeded cast.
1012 2014-06-18 Tom Tromey <tromey@redhat.com>
1014 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1015 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1017 2014-06-18 Tom Tromey <tromey@redhat.com>
1019 * probe.c (info_probes_for_ops): Make "arg" const.
1020 * probe.h (info_probes_for_ops): Update.
1022 2014-06-18 Tom Tromey <tromey@redhat.com>
1024 * varobj.c (varobj_create): Update.
1025 * valops.c (value_of_this): Update.
1026 * tracepoint.c (add_local_symbols, scope_info): Update.
1027 * symtab.h (struct general_symbol_info) <block>: Now const.
1028 * symtab.c (skip_prologue_sal)
1029 (default_make_symbol_completion_list_break_on)
1030 (skip_prologue_using_sal): Update.
1031 * stack.h (iterate_over_block_locals)
1032 (iterate_over_block_local_vars): Update.
1033 * stack.c (print_frame_args): Update.
1034 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1036 (get_selected_block): Make return type const.
1037 * python/py-frame.c (frapy_block): Update.
1038 * python/py-block.c (gdbpy_block_for_pc): Update.
1039 * p-exp.y (%union) <bval>: Now const.
1040 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1041 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1042 * m2-exp.y (%union) <bval>: Now const.
1043 * linespec.c (get_current_search_block): Make return type const.
1044 (create_sals_line_offset, find_label_symbols): Update.
1045 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1047 (block_starting_point_at): Make "block" const.
1048 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1049 (check_exception_resume): Update.
1050 * guile/scm-frame.c (gdbscm_frame_block): Update.
1051 * guile/scm-block.c (gdbscm_lookup_block): Update.
1052 * frame.h (get_frame_block): Update.
1053 (get_selected_block): Make return type const.
1054 * frame.c (frame_id_inner): Update.
1055 * f-valprint.c (info_common_command_for_block)
1056 (info_common_command): Update.
1057 * dwarf2loc.c (dwarf2_find_location_expression)
1058 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1059 (locexpr_describe_location_piece): Update.
1060 * c-exp.y (%union) <bval>: Now const.
1061 * breakpoint.c (resolve_sal_pc): Update.
1062 * blockframe.c (get_frame_block):Make return type const.
1063 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1064 (block_innermost_frame): Update.
1065 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1066 (block_for_pc, block_for_pc_sect): Update.
1067 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1069 (block_for_pc_sect, block_for_pc): Make return type const.
1070 * ax-gdb.c (gen_expr): Update.
1071 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1072 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1073 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1074 (ada_read_var_value): Update.
1075 * ada-exp.y (struct name_info) <block>: Now const.
1077 (block_lookup): Constify.
1079 2014-06-18 Gary Benson <gbenson@redhat.com>
1081 * nat/i386-dregs.h: New file.
1082 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1083 * i386-nat.h (i386-dregs.h): New include.
1084 (DR_FIRSTADDR): Now in i386-dregs.h.
1085 (DR_LASTADDR): Likewise.
1086 (DR_NADDR): Likewise.
1087 (DR_STATUS): Likewise.
1088 (DR_CONTROL): Likewise.
1089 (i386_debug_reg_state): Likewise.
1090 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1092 2014-06-18 Don Breazeal <donb@codesourcery.com>
1094 * breakpoint.c (set_longjmp_breakpoint): Call
1095 momentary_breakpoint_from_master with additional argument.
1096 (set_longjmp_breakpoint_for_call_dummy): Call
1097 momentary_breakpoint_from_master with additional argument.
1098 (set_std_terminate_breakpoint): Call
1099 momentary_breakpoint_from_master with additional argument.
1100 (momentary_breakpoint_from_master): Add argument to function
1101 definition and use it to initialize structure member flag.
1102 (clone_momentary_breakpoint): Call
1103 momentary_breakpoint_from_master with additional argument.
1104 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1105 member flags set in momentary_breakpoint_from_master.
1107 2014-06-18 Gary Benson <gbenson@redhat.com>
1109 * i386-nat.c (i386_show_dr): Renamed to
1110 i386_dr_show and made nonstatic. All uses updated.
1111 (i386_length_and_rw_bits): Renamed to
1112 i386_dr_length_and_rw_bits and made nonstatic.
1114 (i386_insert_aligned_watchpoint): Renamed to
1115 i386_dr_insert_aligned_watchpoint and made nonstatic.
1117 (i386_remove_aligned_watchpoint): Renamed to
1118 i386_dr_remove_aligned_watchpoint and made nonstatic.
1120 (i386_update_inferior_debug_regs): Renamed to
1121 i386_dr_update_inferior_debug_regs and made nonstatic.
1124 2014-06-18 Gary Benson <gbenson@redhat.com>
1126 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1127 (i386_dr_low_can_set_control): Likewise.
1128 (i386_dr_low_set_addr): Likewise.
1129 (i386_dr_low_set_control): Likewise.
1130 (i386_dr_low_get_addr): Likewise.
1131 (i386_dr_low_get_status): Likewise.
1132 (i386_dr_low_get_control): Likewise.
1133 (i386_insert_aligned_watchpoint): Use new macros.
1134 (i386_update_inferior_debug_regs): Likewise.
1135 (i386_stopped_data_address): Likewise.
1137 2014-06-18 Gary Benson <gbenson@redhat.com>
1139 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1140 New parameter. All uses updated.
1142 2014-06-18 Gary Benson <gbenson@redhat.com>
1144 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1147 2014-06-18 Gary Benson <gbenson@redhat.com>
1149 * i386-nat.c (debug_printf): New macro.
1150 (i386_get_debug_register_length): Likewise.
1151 (TARGET_HAS_DR_LEN_8): Use above macro.
1152 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1153 and printf_unfiltered. Use phex to format values.
1155 2014-06-18 Gary Benson <gbenson@redhat.com>
1157 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1160 2014-06-18 Gary Benson <gbenson@redhat.com>
1162 * i386-nat.c: Comment changes.
1164 2014-06-18 Gary Benson <gbenson@redhat.com>
1166 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1168 2014-06-18 Gary Benson <gbenson@redhat.com>
1170 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1171 (i386_insert_aligned_watchpoint): Likewise.
1172 (i386_remove_aligned_watchpoint): Likewise.
1173 (i386_handle_nonaligned_watchpoint): Likewise.
1175 2014-06-18 Gary Benson <gbenson@redhat.com>
1177 * i386-nat.c: Whitespace changes.
1179 2014-06-17 Samuel Bronson <naesten@gmail.com>
1181 * MAINTAINERS: Update Roland McGrath's email address.
1182 Thanks to Sergio Durigan Junior for pointing out that he left
1183 Red Hat a while ago, and giving me a current address.
1185 2014-06-17 Tom Tromey <tromey@redhat.com>
1187 * utils.h (savestring): Remove declaration.
1189 2014-06-17 Tom Tromey <tromey@redhat.com>
1191 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1193 2014-06-16 Keith Seitz <keiths@redhat.com>
1196 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1197 to update the varobj if inferior_ptid is null_ptid.
1199 2014-06-16 Tom Tromey <tromey@redhat.com>
1201 * target.h (struct target_ops) <to_info_proc>: Make parameter
1203 (target_info_proc): Update.
1204 * target.c (target_info_proc): Make "args" const.
1205 * procfs.c (procfs_info_proc): Update.
1206 * linux-tdep.c (linux_info_proc): Update.
1207 (linux_core_info_proc_mappings): Make "args" const.
1208 (linux_core_info_proc): Update.
1209 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1210 * gdbarch.c: Rebuild.
1211 * gdbarch.h: Rebuild.
1212 * corelow.c (core_info_proc): Update.
1214 2014-06-16 Tom Tromey <tromey@redhat.com>
1216 * target.h (struct target_ops) <to_disconnect>: Make parameter
1218 (target_disconnect): Update.
1219 * target.c (target_disconnect): Make "args" const.
1220 * target-delegates.c: Rebuild.
1221 * remote.c (remote_disconnect): Update.
1222 * record.h (record_disconnect): Update.
1223 * record.c (record_disconnect): Update.
1224 * inf-child.c (inf_child_disconnect): Update.
1226 2014-06-16 Tom Tromey <tromey@redhat.com>
1228 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1229 * target.c (debug_to_rcmd, default_rcmd): Update.
1230 * target-delegates.c: Rebuild.
1231 * remote.c (remote_rcmd): Update.
1232 * monitor.c (monitor_rcmd): Update.
1234 2014-06-16 Pedro Alves <palves@redhat.com>
1236 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1237 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1238 have OBJF_SHARED set.
1239 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1240 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1241 instead of OBJF_USERLOADED.
1242 * objfiles.h (OBJF_SHARED): Update comment.
1243 (userloaded_objfile_contains_address_p): Rename to ...
1244 (shared_objfile_contains_address_p): ... this, and update
1246 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1248 (remove_symbol_file_command): Skip objfiles that don't have
1251 2014-06-16 Tom Tromey <tromey@redhat.com>
1253 * minsyms.h (prim_record_minimal_symbol)
1254 (prim_record_minimal_symbol_and_info): Update comments.
1256 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1258 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1259 or --without-guile, according to how GDB was built.
1261 2014-06-13 Tom Tromey <tromey@redhat.com>
1263 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1265 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1267 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1269 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1270 help_list.Pass all_commands, not -1, to help_list.
1271 * cli/cli-dump.c (dump_command, append_command)
1272 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1273 (binary_dump_command, binary_append_command): Pass all_commands,
1274 not -1, to help_list.
1275 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1277 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1279 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1281 * top.c (set_history): Pass all_commands, not -1, to help_list.
1282 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1283 all_commands, not -1, to help_list.
1284 * symfile.c (overlay_command): Pass all_commands, not -1, to
1286 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1288 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1290 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1292 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1293 not -1, to help_list.
1294 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1295 not -1, to help_list.
1296 * maint.c (maintenance_command, maintenance_info_command)
1297 (maintenance_print_command, maintenance_set_cmd): Pass
1298 all_commands, not -1, to help_list.
1299 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1301 * language.c (set_check): Pass all_commands, not -1, to help_list.
1302 * infcmd.c (unset_command): Pass all_commands, not -1, to
1304 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1306 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1308 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1310 * breakpoint.c (save_command): Pass all_commands, not -1, to
1312 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1313 all_commands, not -1, to help_list.
1315 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1317 * regcache.c (struct register_to_invalidate): New structure.
1318 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1320 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1322 2014-06-12 Yao Qi <yao@codesourcery.com>
1324 * varobj.c (varobj_get_num_children): Call
1325 varobj_is_dynamic_p.
1326 (varobj_list_children): Likewise.
1327 (varobj_update): Likewise. Update comments.
1329 2014-06-12 Yao Qi <yao@codesourcery.com>
1331 * varobj.c (varobj_pretty_printed_p): Rename to ...
1332 (varobj_is_dynamic_p): ... this. New function.
1333 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1334 (varobj_is_dynamic_p): Declare.
1335 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1336 (mi_print_value_p, varobj_update_one): Likewise.
1338 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1339 Yao Qi <yao@codesourcery.com>
1341 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1342 (varobj_get_iterator): Wrap up code for pretty-printer by
1343 "#if HAVE_PYTHON" and "#endif".
1344 (update_dynamic_varobj_children): Likewise.
1346 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1347 Yao Qi <yao@codesourcery.com>
1349 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1350 gdb_python_initialized is false. Move some code from varobj.c.
1351 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1352 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1353 (struct varobj_item): Moved to varobj-iter.h".
1354 (varobj_clear_saved_item): New function.
1355 (update_dynamic_varobj_children): Move python-related code to
1357 (free_variable): Call varobj_clear_saved_item and
1360 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1361 Yao Qi <yao@codesourcery.com>
1363 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1364 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1365 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1366 (py-varobj.o): New rule.
1367 * python/py-varobj.c: New file.
1368 * python/python-internal.h (py_varobj_get_iterator): Declare.
1369 * varobj-iter.h: New file.
1370 * varobj.c: Include "varobj-iter.h"
1371 (struct varobj) <child_iter>: Change its type from "PyObject *"
1372 to "struct varobj_iter *".
1373 <saved_item>: Likewise.
1374 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1375 [HAVE_PYTHON] (varobj_get_iterator): New function.
1376 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1377 python-specific code to python/py-varobj.c.
1378 (install_visualizer): Call varobj_iter_delete instead of
1380 * varobj.h (varobj_ensure_python_env): Declare.
1382 2014-06-12 Yao Qi <yao@codesourcery.com>
1384 * varobj.c (struct varobj_item): New structure.
1385 (create_child_with_value): Update declaration.
1386 (varobj_add_child): Replace arguments 'name' and 'value' with
1387 'item'. All callers updated.
1388 (install_dynamic_child): Likewise.
1389 (update_dynamic_varobj_children): Likewise.
1390 (varobj_add_child): Likewise.
1391 (create_child_with_value): Likewise.
1393 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1395 * NEWS: Create a new section for the next release branch.
1396 Rename the section of the current branch, now that it has
1399 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1401 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1402 * version.in: Bump version to 7.8.50.DATE-cvs.
1404 2014-06-11 Pedro Alves <palves@redhat.com>
1407 * ser-mingw.c (net_windows_socket_check_pending): New function.
1408 (net_windows_select_thread): Ignore spurious wakeups. Use
1409 net_windows_socket_check_pending.
1410 (net_windows_wait_handle): Check for pending events with
1411 ioctlsocket, through net_windows_socket_check_pending, instead of
1412 checking the socket's event.
1414 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1416 * python/python-internal.h (gdb_PyObject_GetAttrString)
1417 (gdb_PyObject_HasAttrString): New inline function definitions.
1418 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1419 char * of the second argument to PyObject_GetAttrString.
1421 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1423 * serial.c (serial_write): Fix index of character to be printed
1424 in call to serial_logchar when serial debug traces are enabled.
1426 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1428 * gdbtypes (resolve_dynamic_range): Add function description.
1430 2014-06-09 Pedro Alves <palves@redhat.com>
1432 * linux-nat.c (linux_child_follow_fork): Initialize status with
1433 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1434 inner block. Only pass the signal to PTRACE_DETACH if in pass
1437 2014-06-09 Gary Benson <gbenson@redhat.com>
1439 * common/signals.c (gdb_signal_from_host): Reorder to separate
1440 the always-available ANSI-standard signals from the signals that
1442 (do_gdb_signal_to_host): Likewise.
1443 * proc-events.c (signal_table): Likewise.
1445 2014-06-08 Hui Zhu <hui@codesourcery.com>
1447 * common/linux-ptrace.c (linux_disable_event_reporting): New
1449 * common/linux-ptrace.h (linux_disable_event_reporting): New
1451 * linux-nat.c (linux_child_follow_fork): Do a single step before
1454 2014-06-07 Keith Seitz <keiths@redhat.com>
1458 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1459 from symbol_matches_domain in symtab.c. All local callers
1460 of symbol_matches_domain updated.
1461 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1462 search STRUCT_DOMAIN.
1463 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1464 independently. standard_lookup will do that automatically.
1465 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1466 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1467 (cp_lookup_symbol_in_namespace): Likewise.
1468 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1469 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1470 may return a STRUCT_DOMAIN match.
1471 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1472 * cp-support.c: Include language.h.
1473 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1475 * psymtab.c (match_partial_symbol): Compare the requested
1476 domain with the symbol's domain directly.
1477 (lookup_partial_symbol): Likewise.
1478 * symtab.c (lookup_symbol_in_language): Explain when/why
1479 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1480 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1481 appropriate languages.
1482 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1483 and moved to ada-lang.c
1484 (lookup_block_symbol): Explain that this function only returns
1485 symbol matching the requested DOMAIN.
1486 Compare the requested domain with the symbol's domain directly.
1487 (iterate_over_symbols): Compare the requested domain with the
1488 symbol's domain directly.
1489 * symtab.h (symbol_matches_domain): Remove.
1491 2014-06-06 Doug Evans <xdje42@gmail.com>
1493 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1494 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1495 (gdbscm_guile_version_is_at_least): Declare.
1496 (gdbscm_scm_string_to_int): Declare.
1497 * guile/guile.c (gdbscm_guile_major_version): New global.
1498 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1499 (guile_datadir): New static global.
1500 (gdbscm_guile_data_directory): New function.
1501 (initialize_scheme_side): Update.
1502 (misc_guile_functions): Add guile-data-directory.
1503 (initialize_gdb_module): Fetch guile version number.
1504 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1505 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1506 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1507 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1509 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1510 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1511 * guile/scm-value.c (gdbscm_value_to_string): Only call
1512 scm_port_conversion_strategy if Guile version >= 2.0.6.
1514 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1516 * main.c (print_gdb_help): Add -q and --silent.
1518 2014-06-06 Gary Benson <gbenson@redhat.com>
1520 * common/signals.c: Remove preprocessor conditionals for
1521 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1522 SIGSEGV and SIGTERM.
1523 * proc-events.c: Likewise.
1525 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1527 * symfile.c (symfile_free_objfile): Remove restriction to
1529 * symfile-mem.c (symbol_file_add_from_memory): Call
1530 add_target_sections_of_objfile.
1532 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1534 * guile/scm-value.c (gdbscm_history_append_x): Use
1535 'vlscm_get_value_smob_arg_unsafe' instead of
1536 'vlscm_scm_to_value'.
1538 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1541 * utils.c (printchar): Don't escape at all if quoter is NUL.
1542 Update function documentation to clarify effect of parameter
1544 * remote.c (escape_buffer): Pass '\\' as the quoter to
1545 fputstrn_unfiltered.
1546 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1547 generate the output.
1548 (mi_solib_unloaded): Same.
1550 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1552 * development.sh: Delete.
1553 * Makefile.in (config.status): Adjust dependency on development.sh.
1554 * configure.ac: Adjust development.sh source call.
1555 * configure: Regenerate.
1557 2014-06-04 Doug Evans <xdje42@gmail.com>
1559 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1560 is_scheme_bkpt, spec.
1561 (bpscm_make_breakpoint_smob): Initialize new members.
1562 (gdbscm_create_breakpoint_x): Split into two ...
1563 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1564 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1565 (scheme_function breakpoint_functions): Update.
1566 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1567 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1568 register-breakpoint!.
1570 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1573 * mem-break.c (z_type_supported): Return zero if
1574 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1576 2014-06-04 Tom Tromey <tromey@redhat.com>
1578 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1579 value_from_contents_and_address_unresolved.
1580 (ada_template_to_fixed_record_type_1): Likewise.
1581 (ada_which_variant_applies): Likewise.
1582 * value.h (value_from_contents_and_address_unresolved): Declare.
1583 * value.c (value_from_contents_and_address_unresolved): New
1585 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1586 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1587 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1589 2014-06-04 Tom Tromey <tromey@redhat.com>
1591 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1593 2014-06-04 Tom Tromey <tromey@redhat.com>
1595 * procfs.c (procfs_attach): Make "args" const.
1596 * windows-nat.c (windows_attach): Make "args" const.
1597 * nto-procfs.c (procfs_attach): Make "args" const.
1598 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1599 * go32-nat.c (go32_attach): Make "args" const.
1600 * gnu-nat.c (gnu_attach): Make "args" const.
1601 * darwin-nat.c (darwin_attach): Make "args" const.
1602 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1603 * linux-nat.c (linux_nat_attach): Make "args" const.
1604 * remote.c (extended_remote_attach_1, extended_remote_attach):
1606 * target.h (struct target_ops) <to_attach>: Make "args" const.
1607 (find_default_attach): Likewise.
1608 * utils.c (parse_pid_to_attach): Make "args" const.
1609 * utils.h (parse_pid_to_attach): Update.
1611 2014-06-04 Tom Tromey <tromey@redhat.com>
1613 * target-delegates.c: Rebuild.
1614 * target.c (default_thread_address_space): New function.
1615 (target_thread_address_space): Simplify.
1616 * target.h (struct target_ops) <to_thread_address_space>: Add
1617 TARGET_DEFAULT_FUNC.
1619 2014-06-04 Doug Evans <xdje42@gmail.com>
1621 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1623 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1625 * record-btrace.c: Include event-loop.h and inf-loop.h.
1626 (record_btrace_resume_exec_dir)
1627 (record_btrace_async_inferior_event_handler)
1628 (record_btrace_handle_async_inferior_event): New.
1629 (record_btrace_open): Create async event handler.
1630 (record_btrace_close): Delete async event handler.
1631 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1632 Mark async event handler.
1633 (record_btrace_execution_direction): New.
1634 (init_record_btrace_ops): Initialize to_execution_direction.
1636 2014-06-03 Doug Evans <xdje42@gmail.com>
1638 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1639 (gdbscm_make_parameter): Ditto.
1641 2014-06-03 Doug Evans <dje@google.com>
1643 * exec.c (exec_close_1): Call clear_section_table instead of
1644 resize_section_table.
1645 (clear_section_table): New function.
1646 (resize_section_table): Make static. Rename arg num_added to
1648 * exec.h (clear_section_table): Declare.
1649 (resize_section_table): Delete.
1650 * progspace.c (release_program_space): Call clear_section_table
1651 instead of resize_section_table.
1653 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1655 * NEWS (Python Scripting): Add entry about the new xmethods
1658 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1660 * python/py-xmethods.c: New file.
1661 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1662 (objfpy_dealloc): XDECREF on the new xmethods field.
1663 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1665 (objfpy_get_xmethods): New function.
1666 (objfile_getset): New entry 'xmethods'.
1667 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1668 (pspy_dealloc): XDECREF on the new xmethods field.
1669 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1671 (pspy_get_xmethods): New function.
1672 (pspace_getset): New entry 'xmethods'.
1673 * python/python-internal.h: Add declarations for new functions.
1674 * python/python.c (_initialize_python): Invoke
1675 gdbpy_initialize_xmethods.
1676 * python/lib/gdb/__init__.py (xmethods): New
1678 * python/lib/gdb/xmethod.py: New file.
1679 * python/lib/gdb/command/xmethods.py: New file.
1681 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1683 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1684 best match method returned by find_overload_match is an xmethod.
1685 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1686 the best matching operator returned by find_overload_match is an
1688 * valops.c: #include "extension.h".
1689 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1690 Return void. The list of matching source methods is returned in
1691 "fn_list" and a vector of matching debug method workers is
1692 returned in "xm_worker_vec". Update all callers.
1693 (value_find_oload_method_list): Likewise.
1694 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1695 non-NULL, then the index of the best matching method in this
1696 vector is returned. Update all callers.
1697 (find_overload_match): Include xmethods while performing overload
1700 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1702 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1703 * extension-priv.h (struct extension_language_ops): Add the
1705 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1706 get_matching_xmethod_workers, get_xmethod_argtypes,
1707 invoke_xmethod, free_xmethod_worker,
1708 free_xmethod_worker_vec): New functions.
1709 * extension.h: #include "common/vec.h".
1710 New function declarations.
1711 (struct xmethod_worker): New struct.
1712 (VEC (xmethod_worker_ptr)): New vector type.
1713 (xmethod_worker_ptr): New typedef.
1714 (xmethod_worker_vec): Likewise.
1715 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1717 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1718 (struct builtin_type): New field "xmethod".
1719 * valarith.c (value_ptradd): Assert that the value argument is not
1721 * valops.c (value_must_coerce_to_target): Return 0 for
1722 lval_xcallable values.
1723 * value.c (struct value): New field XM_WORKER in the field
1725 (value_address, value_raw_address): Return 0 for lval_xcallable
1727 (set_value_address): Assert that the value is not an
1729 (value_free): Free the associated xmethod worker when freeing
1730 lval_xcallable values.
1731 (set_value_component_location): Assert that the WHOLE value is not
1733 (value_of_xmethod, call_xmethod): New functions.
1734 * value.h: Declare "struct xmethod_worker".
1735 Declare new functions value_of_xmethod, call_xmethod.
1737 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1738 Pedro Alves <palves@redhat.com>
1740 PR breakpoints/17000
1741 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1742 New function, extracted from software_breakpoint_inserted_here_p.
1743 (software_breakpoint_inserted_here_p): Replace factored out code
1744 by call to find_non_raw_software_breakpoint_inserted_here.
1745 (bp_target_info_copy_insertion_state): New function.
1746 (bkpt_insert_location): Handle the case of a single-step
1747 breakpoint already inserted at the same address.
1748 (bkpt_remove_location): Handle the case of a single-step
1749 breakpoint still inserted at the same address.
1750 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1751 breakpoint already inserted at the same address.
1752 (deprecated_remove_raw_breakpoint): Handle the case of a
1753 non-raw breakpoint still inserted at the same address.
1754 (find_single_step_breakpoint): New function, extracted from
1755 single_step_breakpoint_inserted_here_p.
1756 (find_single_step_breakpoint): New function,
1757 factored out from single_step_breakpoint_inserted_here_p.
1758 (single_step_breakpoint_inserted_here_p): Reimplement.
1760 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1762 Pushed by Joel Brobecker <brobecker@adacore.com>
1763 * source.c (show_substitute_path_command): Fix display of matching
1766 2014-06-03 Gary Benson <gbenson@redhat.com>
1768 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1770 2014-06-02 Doug Evans <xdje42@gmail.com>
1772 Add parameter support for Guile.
1773 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1774 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1775 (scm-param.o): New rule.
1776 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1777 (gdbscm_misc_error): Declare.
1778 (gdbscm_canonicalize_command_name): Declare.
1779 (gdbscm_scm_to_host_string): Declare.
1780 (gdbscm_scm_from_host_string): Declare.
1781 (gdbscm_initialize_parameters): Declare.
1782 * guile/guile.c (initialize_gdb_module): Call
1783 gdbscm_initialize_parameters.
1784 * guile/lib/gdb.scm: Export parameter symbols.
1785 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1786 cmdscm_canonicalize_name and made public. All callers updated.
1787 * guile/scm-exception.c (gdbscm_misc_error): New function.
1788 * guile/scm-param.c: New file.
1789 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1790 (gdbscm_scm_to_host_string): New function.
1791 (gdbscm_scm_from_host_string): New function.
1792 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1794 2014-06-02 Doug Evans <xdje42@gmail.com>
1796 Add command support for Guile.
1797 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1798 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1799 (scm-cmd.o): New rule.
1800 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1801 (gdbscm_user_error_p): Declare.
1802 (gdbscm_parse_command_name): Declare.
1803 (gdbscm_valid_command_class_p): Declare.
1804 (gdbscm_initialize_commands): Declare.
1805 * guile/guile.c (initialize_gdb_module): Call
1806 gdbscm_initialize_commands.
1807 * guile/lib/gdb.scm: Export command symbols.
1808 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1809 (throw-user-error): New function.
1810 * guile/scm-cmd.c: New file.
1811 * guile/scm-exception.c (user_error_symbol): New static global.
1812 (gdbscm_user_error_p): New function.
1813 (gdbscm_initialize_exceptions): Set user_error_symbol.
1814 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1816 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1818 * top.c (command_loop): Handle comments here...
1819 (command_line_input): ... not here.
1821 2014-06-02 Doug Evans <xdje42@gmail.com>
1823 Add progspace support for Guile.
1824 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1825 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1826 (scm-progspace.o): New rule.
1827 * guile/guile-internal.h (pspace_smob): New typedef.
1828 (psscm_pspace_smob_pretty_printers): Declare.
1829 (psscm_pspace_smob_from_pspace): Declare.
1830 (psscm_scm_from_pspace): Declare.
1831 * guile/guile.c (initialize_gdb_module): Call
1832 gdbscm_initialize_pspaces.
1833 * guile/lib/gdb.scm: Export progspace symbols.
1834 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1836 (append-pretty-printer!): Ditto.
1837 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1839 * guile/scm-progspace.c: New file.
1841 2014-06-03 Alan Modra <amodra@gmail.com>
1843 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1844 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1846 2014-06-02 Doug Evans <dje@google.com>
1848 Add support for skeletonless type units.
1849 * dwarf2read.c (struct dwarf2_per_objfile): New member
1850 n_allocated_type_units.
1851 (struct dwarf2_per_objfile) <tu_stats>: New member
1852 nr_all_type_units_reallocs.
1853 (create_signatured_type_table_from_index): Initialize
1854 n_allocated_type_units
1855 (create_all_type_units): Ditto.
1856 (add_type_unit): Move up in file. New arg slot.
1857 All callers updated. Increase space for all_type_units more
1859 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1860 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1861 (lookup_dwp_signatured_type): Ditto.
1862 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1863 All callers updated.
1864 (build_type_psymtabs_1): Leave type_unit_groups as
1865 NULL if no TUs present.
1866 (print_tu_stats): New function.
1867 (process_skeletonless_type_unit): New function.
1868 (process_dwo_file_for_skeletonless_type_units): New
1870 (process_skeletonless_type_units): New function.
1871 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1872 Call print tu_stats if debugging enabled.
1874 2014-06-02 Pedro Alves <palves@redhat.com>
1876 * breakpoint.c (build_target_command_list): Don't build a command
1877 list if we have any duplicate location that isn't a dprintf.
1879 2014-06-02 Pedro Alves <palves@redhat.com>
1881 * breakpoint.c (dprintf_breakpoint_hit): New function.
1882 (initialize_breakpoint_ops): Install it as dprintf's
1883 breakpoint_hit method.
1885 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1887 * source.c (substitute_path_rule_matches): Simplify using
1888 filename_ncmp instead of FILENAME_CMP.
1890 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1892 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1894 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1896 * configure.ac: When Guile is available, check for the
1897 availability of 'scm_new_smob'.
1898 * configure, config.h.in: Regenerate.
1899 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1902 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1904 * frame.c (struct frame_info): Add stop_string field.
1905 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1906 (get_prev_frame_always): Old content moved into
1907 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1908 TRY_CATCH, handle MEMORY_ERROR exceptions.
1909 (frame_stop_reason_string): New function definition.
1910 * frame.h (unwind_stop_reason_to_string): Extend comment to
1911 mention frame_stop_reason_string.
1912 (frame_stop_reason_string): New function declaration.
1913 * stack.c (frame_info): Switch to frame_stop_reason_string.
1914 (backtrace_command_1): Switch to frame_stop_reason_string.
1915 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1916 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1917 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1919 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1921 * frame.c (frame_stop_reason_string): Rename to ...
1922 (unwind_stop_reason_to_string): this.
1923 * frame.h (frame_stop_reason_string): Rename to ...
1924 (unwind_stop_reason_to_string): this.
1925 * stack.c (frame_info): Update call to frame_stop_reason_string.
1926 (backtrace_command_1): Likewise.
1927 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1928 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1930 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1932 * frame.c (remove_prev_frame): New function.
1933 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1936 2014-05-29 Pedro Alves <palves@redhat.com>
1938 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1939 and make it const. When a single-step decays to a continue,
1940 clear 'step', not 'hw_step'. Pass whether the caller wanted
1941 to step to user_visible_resume_ptid, not what we ask the
1944 2014-05-29 Pedro Alves <palves@redhat.com>
1946 * infrun.c (process_event_stop_test, handle_step_into_function)
1947 (handle_step_into_function_backward): Adjust.
1948 Don't set the even thread's stop_step and call stop_waiting before
1949 calling end_stepping_range. Instead do that ...
1950 (end_stepping_range): ... here. Take an ecs pointer parameter.
1952 2014-05-29 Pedro Alves <palves@redhat.com>
1954 * infrun.c (stop_stepping): Rename to ...
1955 (stop_waiting): ... this.
1956 (proceed): Update comment.
1957 (process_event_stop_test, handle_inferior_event)
1958 (handle_signal_stop, handle_step_into_function)
1959 (handle_step_into_function_backward): Update.
1961 2014-05-29 Pedro Alves <palves@redhat.com>
1963 * infcall.c (run_inferior_call): Don't check whether the current
1964 thread is running after the proceed call.
1966 2014-05-29 Pedro Alves <palves@redhat.com>
1967 Tom Tromey <tromey@redhat.com>
1969 * NEWS: Mention "maint set target-async", "set mi-async", and that
1970 background execution commands are now always available.
1971 * target.h (target_async_permitted): Update comment.
1972 * target.c (target_async_permitted, target_async_permitted_1):
1974 (set_target_async_command): Rename to ...
1975 (maint_set_target_async_command): ... this.
1976 (show_target_async_command): Rename to ...
1977 (maint_show_target_async_command): ... this.
1978 (_initialize_target): Adjust.
1979 * infcmd.c (prepare_execution_command): Make extern.
1980 * inferior.h (prepare_execution_command): Declare.
1981 * infrun.c (set_observer_mode): Leave target async alone.
1982 * mi/mi-interp.c (mi_interpreter_init): Install
1983 mi_on_sync_execution_done as sync_execution_done observer.
1984 (mi_on_sync_execution_done): New function.
1985 (mi_execute_command_input_handler): Don't print the prompt if we
1986 just started a synchronous command with an async target.
1987 (mi_on_resume): Check sync_execution before printing prompt.
1988 * mi/mi-main.h (mi_async_p): Declare.
1989 * mi/mi-main.c: Include gdbcmd.h.
1990 (mi_async_p): New function.
1991 (mi_async, mi_async_1): New globals.
1992 (set_mi_async_command, show_mi_async_command, mi_async): New
1994 (exec_continue): Call prepare_execution_command.
1995 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1996 (mi_execute_async_cli_command): Use mi_async_p.
1997 (_initialize_mi_main): Install "set mi-async". Make
1998 "target-async" a deprecated alias.
2000 2014-05-29 Pedro Alves <palves@redhat.com>
2002 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2003 (_initialize_cli_interp): Adjust.
2004 * event-loop.c: Include "observer.h".
2005 (start_event_loop): Notify 'command_error' observers instead of
2006 calling display_gdb_prompt. Remove FIXME comment.
2007 * event-top.c (display_gdb_prompt): Remove call into the
2009 * inf-loop.c: Include "observer.h".
2010 (inferior_event_handler): Notify 'command_error' observers instead
2011 of calling display_gdb_prompt.
2012 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2013 observers instead of calling display_gdb_prompt.
2014 * interps.c (interp_set): Don't call display_gdb_prompt.
2015 (current_interp_display_prompt_p): Delete.
2016 * interps.h (interp_prompt_p): Delete declaration.
2017 (interp_prompt_p_ftype): Delete.
2018 (struct interp_procs) <prompt_proc_p>: Delete field.
2019 (current_interp_display_prompt_p): Delete declaration.
2020 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2021 (_initialize_mi_interp): Adjust.
2022 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2023 'command_error' observers.
2024 (tui_on_sync_execution_done, tui_on_command_error): New
2026 (tui_display_prompt_p): Delete.
2027 (_initialize_tui_interp): Adjust.
2029 2014-05-29 Pedro Alves <palves@redhat.com>
2032 * cli/cli-interp.c: Include infrun.h and observer.h.
2033 (cli_uiout, cli_interp): New globals.
2034 (cli_on_signal_received, cli_on_end_stepping_range)
2035 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2037 (cli_interpreter_init): Install them as 'end_stepping_range',
2038 'signal_received' 'signal_exited', 'exited' and 'no_history'
2040 (_initialize_cli_interp): Remove cli_interp local.
2041 * infrun.c (handle_inferior_event): Call the several stop reason
2042 observers instead of printing the stop reason directly.
2043 (end_stepping_range): New function.
2044 (print_end_stepping_range_reason, print_signal_exited_reason)
2045 (print_exited_reason, print_signal_received_reason)
2046 (print_no_history_reason): Make static, and add an uiout
2047 parameter. Print to that instead of to CURRENT_UIOUT.
2048 * infrun.h (print_end_stepping_range_reason)
2049 (print_signal_exited_reason, print_exited_reason)
2050 (print_signal_received_reason print_no_history_reason): New
2052 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2054 <cli_uiout>: New field.
2055 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2056 uiout for CLI output. Install 'signal_received',
2057 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2059 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2060 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2061 (mi_on_no_history): New functions.
2062 (ui_out_free_cleanup): Delete function.
2063 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2064 instead use the one already stored in the MI interpreter data.
2065 (mi_ui_out): Adjust.
2066 * tui/tui-interp.c: Include infrun.h and observer.h.
2067 (tui_interp): New global.
2068 (tui_on_signal_received, tui_on_end_stepping_range)
2069 (tui_on_signal_exited, tui_on_exited)
2070 (tui_on_no_history): New functions.
2071 (tui_init): Install them as 'end_stepping_range',
2072 'signal_received' 'signal_exited', 'exited' and 'no_history'
2074 (_initialize_tui_interp): Delete tui_interp local.
2076 2014-05-29 Pedro Alves <palves@redhat.com>
2079 * linux-nat.c (linux_nat_resume_callback): Rename the second
2080 parameter to 'except'. Skip LP if it points to EXCEPT.
2081 (linux_nat_resume): Don't mark the event lwp as not stopped
2082 before resuming sibling lwps. Instead ask
2083 linux_nat_resume_callback to skip the event lwp. Mark it as not
2084 stopped after actually resuming it.
2085 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2087 (wait_lwp): Mark the lwp as stopped here.
2088 (stop_wait_callback): Mark the lwp as not stopped right after
2089 resuming it. Don't mark lwps as stopped here.
2090 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2091 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2093 2014-05-29 Pedro Alves <palves@redhat.com>
2096 * infrun.c (resume): Determine how much to resume depending on
2097 whether the caller wanted a step, not whether we can hardware step
2098 the target. Mark all threads that we intend to run as running,
2099 unless we're calling an inferior function.
2100 (normal_stop): If the thread is running an infcall, don't finish
2102 * target.c (target_resume): Don't mark threads as running here.
2104 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2106 * serial.c (_initialize_serial): Remove support for
2107 the "set remotebaud" and "show remotebaud" commands.
2108 * NEWS: Add entry documenting the removal of that command.
2110 2014-05-28 Yao Qi <yao@codesourcery.com>
2112 * charset.c: Fix typo in comments.
2114 2014-05-27 Gary Benson <gbenson@redhat.com>
2116 * utils.c (internal_vproblem): Prompt for a bug report.
2118 2014-05-26 Andy Wingo <wingo@igalia.com>
2120 * guile/scm-arch.c (arscm_mark_arch_smob):
2121 * guile/scm-block.c (bkscm_mark_block_smob)
2122 (bkscm_mark_block_syms_progress_smob):
2123 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2124 * guile/scm-exception.c (exscm_mark_exception_smob):
2125 * guile/scm-frame.c (frscm_mark_frame_smob):
2126 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2127 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2128 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2129 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2130 (ppscm_mark_pretty_printer_worker_smob):
2131 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2132 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2133 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2134 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2136 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2139 2014-05-26 Andy Wingo <wingo@igalia.com>
2140 Doug Evans <xdje42@gmail.com>
2142 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2143 empty_base_class. All uses updated.
2144 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2145 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2147 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2148 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2149 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2150 (gdbscm_gsmob_has_property_p, add_property_name)
2151 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2152 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2153 (gdb-object-has-property?, gdb-object-properties): Remove.
2154 (gdb-object-kind): Renamed from gsmob-kind.
2156 2014-05-26 Andy Wingo <wingo@igalia.com>
2158 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2159 * configure: Regenerate.
2161 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2163 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2165 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2167 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2168 (replay_memory_access_read_only, replay_memory_access_read_write)
2169 (replay_memory_access_types, replay_memory_access)
2170 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2171 (cmd_set_record_btrace, cmd_show_record_btrace)
2172 (cmd_show_replay_memory_access): New.
2173 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2174 (record_btrace_remove_breakpoint): Replace
2175 record_btrace_allow_memory_access with replay_memory_access.
2176 (_initialize_record_btrace): Add commands.
2177 * NEWS: Announce it.
2179 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2181 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2183 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2185 * MAINTAINERS (Write After Approval): Move self back from
2188 2014-05-22 Pedro Alves <palves@redhat.com>
2190 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2191 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2192 (disable_randomization, enum exec_direction_kind)
2193 (execution_direction, stop_registers, start_remote)
2194 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2195 (wait_for_inferior, normal_stop, get_last_target_status)
2196 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2197 (insert_step_resume_breakpoint_at_sal)
2198 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2199 (set_step_info, print_stop_event, signal_stop_state)
2200 (signal_print_state, signal_pass_state, signal_stop_update)
2201 (signal_print_update, signal_pass_update)
2202 (update_signals_program_target, clear_exit_convenience_vars)
2203 (displaced_step_dump_bytes, update_observer_mode)
2204 (signal_catch_update, gdb_signal_from_command): Move
2206 * infrun.h: ... to this new file.
2207 * amd64-tdep.c: Include infrun.h.
2208 * annotate.c: Include infrun.h.
2209 * arch-utils.c: Include infrun.h.
2210 * arm-linux-tdep.c: Include infrun.h.
2211 * arm-tdep.c: Include infrun.h.
2212 * break-catch-sig.c: Include infrun.h.
2213 * breakpoint.c: Include infrun.h.
2214 * common/agent.c: Include infrun.h instead of inferior.h.
2215 * corelow.c: Include infrun.h.
2216 * event-top.c: Include infrun.h.
2217 * go32-nat.c: Include infrun.h.
2218 * i386-tdep.c: Include infrun.h.
2219 * inf-loop.c: Include infrun.h.
2220 * infcall.c: Include infrun.h.
2221 * infcmd.c: Include infrun.h.
2222 * infrun.c: Include infrun.h.
2223 * linux-fork.c: Include infrun.h.
2224 * linux-nat.c: Include infrun.h.
2225 * linux-thread-db.c: Include infrun.h.
2226 * monitor.c: Include infrun.h.
2227 * nto-tdep.c: Include infrun.h.
2228 * procfs.c: Include infrun.h.
2229 * record-btrace.c: Include infrun.h.
2230 * record-full.c: Include infrun.h.
2231 * remote-m32r-sdi.c: Include infrun.h.
2232 * remote-mips.c: Include infrun.h.
2233 * remote-notif.c: Include infrun.h.
2234 * remote-sim.c: Include infrun.h.
2235 * remote.c: Include infrun.h.
2236 * reverse.c: Include infrun.h.
2237 * rs6000-tdep.c: Include infrun.h.
2238 * s390-linux-tdep.c: Include infrun.h.
2239 * solib-irix.c: Include infrun.h.
2240 * solib-osf.c: Include infrun.h.
2241 * solib-svr4.c: Include infrun.h.
2242 * target.c: Include infrun.h.
2243 * top.c: Include infrun.h.
2244 * windows-nat.c: Include infrun.h.
2245 * mi/mi-interp.c: Include infrun.h.
2246 * mi/mi-main.c: Include infrun.h.
2247 * python/py-threadevent.c: Include infrun.h.
2249 2014-05-22 Pedro Alves <palves@redhat.com>
2251 * infrun.c (handle_inferior_event): Store the exit code for
2252 --return-child-result here, instead of ...
2253 (print_exited_reason): ... here.
2255 2014-05-21 Pedro Alves <palves@redhat.com>
2258 * gdbthread.h (struct thread_control_state): New field
2260 * infrun.c (follow_fork): Copy the new thread control field to the
2262 (clear_proceed_status_thread): Clear the new thread control field.
2263 (proceed): Set the new thread control field.
2264 * interps.h (command_interp): Declare.
2265 * interps.c (command_interpreter): New global.
2266 (command_interp): New function.
2267 (interp_exec): Set `command_interpreter' while here.
2268 * cli-out.c (cli_uiout_dtor): New function.
2269 (cli_ui_out_impl): Install it.
2270 * mi/mi-interp.c: Include cli-out.h.
2271 (mi_cmd_interpreter_exec): Add comment.
2272 (restore_current_uiout_cleanup): New function.
2273 (ui_out_free_cleanup): New function.
2274 (mi_on_normal_stop): If finishing an execution command started by
2275 a CLI command, or any kind of breakpoint-like event triggered,
2276 print the stop event to the output (CLI) stream.
2277 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2279 2014-05-21 Pedro Alves <palves@redhat.com>
2281 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2282 current source line having changed.
2283 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2284 * infrun.c (normal_stop): Adjust call to
2285 set_current_sal_from_frame.
2286 * source.c (clear_lines_listed_range): New function.
2287 (set_current_source_symtab_and_line, identify_source_line): Clear
2288 the lines listed range.
2289 (line_info): Handle the first "info line" after the current source
2290 line having changed.
2291 * stack.c (print_stack_frame): Remove center handling.
2292 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2295 2014-05-21 Pedro Alves <palves@redhat.com>
2297 * inf-child.c (inf_child_mourn_inferior): New function.
2298 * inf-child.h (inf_child_mourn_inferior): New declaration.
2299 * darwin-nat.c (darwin_mourn_inferior): Use
2300 inf_child_mourn_inferior.
2301 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2302 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2303 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2304 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2305 * windows-nat.c (windows_mourn_inferior): Likewise.
2307 2014-05-21 Doug Evans <xdje42@gmail.com>
2309 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2311 2014-05-21 Doug Evans <xdje42@gmail.com>
2313 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2314 (gdbscm_out_of_range_error): Ditto.
2315 (gdbscm_memory_error): Ditto.
2316 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2317 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2318 (gdbscm_out_of_range_error): Update.
2319 (gdbscm_memory_error): Update.
2320 (gdbscm_scm_to_target_string_unsafe): Delete.
2322 2014-05-21 Pedro Alves <palves@redhat.com>
2324 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2326 (inf_child_open_target): New function.
2327 (inf_child_open): Use inf_child_open_target to push the target
2328 instead of erroring out.
2329 (inf_child_disconnect, inf_child_close)
2330 (inf_child_maybe_unpush_target): New functions.
2331 (inf_child_target): Install inf_child_disconnect and
2332 inf_child_close. Store a pointer to the returned object.
2333 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2335 * target.c (auto_connect_native_target): New global.
2336 (show_default_run_target): New function.
2337 (find_default_run_target): Return NULL if automatically connecting
2338 to the native target is disabled.
2339 (_initialize_target): Install set/show auto-connect-native-target.
2340 * NEWS: Mention "set auto-connect-native-target", and "target
2342 * linux-nat.c (super_close): New global.
2343 (linux_nat_close): Call super_close.
2344 (linux_nat_add_target): Store a pointer to the base class's
2346 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2347 inf_child_maybe_unpush.
2348 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2350 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2351 the inferior. Use inf_child_maybe_unpush_target.
2352 (inf_ttrace_attach): Don't push the target if it is already
2354 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2355 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2356 after mourning the inferior. Use inf_child_maybe_unpush_target.
2357 (darwin_attach_pid): Don't push the target if it is already
2359 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2360 mourning the inferior. Use inf_child_maybe_unpush_target.
2361 (gnu_detach): Use inf_child_maybe_unpush_target.
2362 * go32-nat.c (go32_create_inferior): Don't push the target if it
2364 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2365 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2366 (procfs_open): Rename to ...
2367 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2368 comments. Can target_preopen before changing node. Call
2369 inf_child_open_target to push the target explicitly.
2370 (procfs_attach): Don't push the target if it is already pushed.
2371 (procfs_detach): Use inf_child_maybe_unpush_target.
2372 (procfs_create_inferior): Don't push the target if it is already
2374 (nto_native_ops): New global.
2375 (procfs_open): Reimplement.
2376 (procfs_native_open): New function.
2377 (init_procfs_targets): Install procfs_native_open as to_open of
2378 "target native". Store a pointer to the "native" target in
2380 * procfs.c (procfs_attach): Don't push the target if it is already
2382 (procfs_detach): Use inf_child_maybe_unpush_target.
2383 (procfs_mourn_inferior): Only unpush the target after mourning the
2384 inferior. Use inf_child_maybe_unpush_target.
2385 (procfs_init_inferior): Don't push the target if it is already
2387 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2388 if it is already pushed.
2390 2014-05-21 Pedro Alves <palves@redhat.com>
2392 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2393 and "procfs" targets are now called "native" instead.
2395 2014-05-21 Pedro Alves <palves@redhat.com>
2397 * go32-nat.c (go32_open): Delete.
2398 (go32_target): Don't override the to_open method.
2400 2014-05-21 Pedro Alves <palves@redhat.com>
2402 * nto-procfs.c (procfs_can_run): New function.
2403 (nto_procfs_ops): New global.
2404 (init_procfs_targets): New, based on procfs_target. Install
2405 "target native" in addition to "target procfs".
2406 (_initialize_procfs): Call init_procfs_targets instead of adding
2409 2014-05-21 Pedro Alves <palves@redhat.com>
2411 * windows-nat.c (windows_target): Don't override to_shortname,
2412 to_longname or to_doc.
2414 2014-05-21 Pedro Alves <palves@redhat.com>
2416 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2419 2014-05-21 Pedro Alves <palves@redhat.com>
2421 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2422 to_shortname, to_longname or to_doc.
2424 2014-05-21 Pedro Alves <palves@redhat.com>
2426 * go32-nat.c (go32_target): Don't override to_shortname,
2427 to_longname or to_doc.
2429 2014-05-21 Pedro Alves <palves@redhat.com>
2431 * inf-child.c (inf_child_open): Remove mention of "child".
2432 (inf_child_target): Rename target to "native" instead of "child".
2434 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2436 * Makefile.in (SFILES): Delete "regset.c".
2437 (COMMON_OBS): Delete "regset.o".
2439 * regset.h (regset_alloc): Delete prototype.
2441 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2443 * sparc-linux-tdep.c (sparc32_linux_gregset)
2444 (sparc32_linux_fpregset): New static regset structures.
2445 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2446 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2448 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2449 (sparc64_linux_fpregset): New static regset structures.
2450 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2451 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2452 New static regset structures.
2453 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2454 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2455 New static regset structures.
2456 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2457 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2458 New static regset structures.
2459 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2460 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2461 New static regset structures.
2462 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2464 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2466 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2467 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2468 register maps ("regmaps") from "*regset" to "*regmap". Do this
2469 for all regmap types and variables.
2470 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2471 (sparc32_linux_supply_core_gregset)
2472 (sparc32_linux_collect_core_gregset)
2473 (sparc32_linux_supply_core_fpregset)
2474 (sparc32_linux_collect_core_fpregset): Likewise.
2475 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2476 (sparc_gregmap, sparc_fpregmap): ... these.
2477 (sparc_supply_gregset, sparc_collect_gregset)
2478 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2479 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2480 (_initialize_sparc_nat): Rename regmaps.
2481 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2482 (sparc_gregmap, sparc_fpregmap): ... these.
2483 (sparc_supply_gregset, sparc_collect_gregset)
2484 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2485 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2487 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2488 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2490 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2492 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2493 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2494 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2496 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2497 (sparc32_bsd_fpregset): Rename to...
2498 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2499 (sparc32_bsd_fpregmap): ... these.
2500 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2501 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2502 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2503 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2504 (struct sparc_gregmap, struct sparc_fpregmap)
2505 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2506 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2507 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2508 (sparc32_supply_regset, sparc32_collect_gregset)
2509 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2511 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2512 (sparc64_linux_ptrace_gregmap): ... this.
2513 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2514 (_initialize_sparc64_linux_nat): Rename regmaps.
2515 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2516 (sparc64_linux_core_gregmap): ... this.
2517 (sparc64_linux_supply_core_gregset)
2518 (sparc64_linux_collect_core_gregset)
2519 (sparc64_linux_supply_core_fpregset)
2520 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2521 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2522 (sparc64_sol2_fpregset): Rename to...
2523 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2524 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2525 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2527 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2528 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2529 (sparc64_bsd_fpregset): Rename to...
2530 (struct sparc_gregmap, sparc64_sol2_gregmap)
2531 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2532 (sparc64_bsd_fpregmap): ... these.
2533 (sparc64_supply_gregset, sparc64_collect_gregset)
2534 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2536 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2537 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2538 (sparc64fbsd_gregmap): ... this.
2539 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2540 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2542 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2543 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2544 (sparc64nbsd_collect_fpregset): Likewise.
2545 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2546 (sparc64nbsd_gregmap): ... this.
2547 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2549 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2550 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2551 (sparc64obsd_gregmap): ... this.
2552 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2554 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2555 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2556 (sparc32nbsd_gregmap): ... this.
2557 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2562 * score-tdep.c (score7_linux_gregset): New static regset
2564 (score7_linux_regset_from_core_section): Remove dynamic regset
2566 (score_gdbarch_init): Drop allocation of tdep structure.
2567 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2569 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2571 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2573 (am33_regset_from_core_section): Remove dynamic regset
2576 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2578 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2579 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2581 (mips_linux_regset_from_core_section): Remove dynamic regset
2583 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2584 'gregset64', 'fpregset', and 'fpregset64'.
2585 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2586 deleted tdep fields.
2588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2590 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2592 (amd64_regset_from_core_section): Remove dynamic regset
2594 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2596 (amd64obsd_regset_from_core_section): Remove dynamic regset
2598 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2600 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2601 x86-common regset supply function.
2602 * i386-tdep.c (i386_collect_gregset): Make static.
2603 (i386_gregset): New global regset structure.
2604 (i386_fpregset, i386_xstateregset): New static regset structures.
2605 (i386_regset_from_core_section): Remove dynamic regset
2607 (i386_gdbarch_init): Remove initialization of tdep fields
2608 'gregset', 'fpregset', and 'xstateregset'.
2609 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2610 'fpregset', and 'xstateregset'.
2611 (i386_collect_gregset): Remove prototype.
2612 (i386_gregset): New declaration.
2613 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2615 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2620 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2621 (arm_linux_vfpregset): New static regset structures.
2622 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2624 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2625 and 'vfpregset' fields.
2627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2630 (aarch64_linux_fpregset): New static regset structures.
2631 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2632 of regset structures.
2633 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2636 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2638 * regset.h (struct regset): Remove gdbarch field.
2639 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2640 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2641 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2643 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2644 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2645 (ppc32_linux_vsxregset): Likewise.
2646 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2647 via the regcache instead of the regset.
2648 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2649 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2650 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2651 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2656 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2657 Constify structures.
2658 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2659 (alphanbsd_aout_gregset): Likewise.
2660 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2661 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2663 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2664 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2666 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2667 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2668 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2669 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2670 * m88k-tdep.c (m88k_gregset): Likewise.
2671 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2672 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2673 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2674 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2675 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2676 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2677 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2678 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2679 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2681 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2682 * sh-tdep.h (sh_corefile_gregset): Likewise.
2683 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2684 * vax-tdep.c (vax_gregset): Likewise.
2686 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2688 Fix TLS access for -static -pthread.
2689 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2690 (try_thread_db_load_1): Initialize it.
2691 (thread_db_get_thread_local_address): Call it if LM is zero.
2692 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2693 * target.h (struct target_ops) (to_get_thread_local_address): Add
2694 load_module_addr comment.
2696 2014-05-21 Pedro Alves <palves@redhat.com>
2698 * dcache.c (dcache_read_memory_partial): If reading the cache line
2699 fails, fallback to reading just the memory the caller wanted.
2701 2014-05-20 Doug Evans <dje@google.com>
2703 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2704 instead of get_current_arch.
2706 2014-05-20 Pedro Alves <palves@redhat.com>
2708 * NEWS: Mention that compare-sections now works with all targets.
2710 * remote.c (PACKET_qCRC): New enum value.
2711 (remote_verify_memory): Don't send qCRC if the target has no
2712 execution. Use packet_support/packet_ok. If the target doesn't
2713 support the qCRC packet, fallback to a deep memory copy.
2714 (compare_sections_command): Say "target image" instead of "remote
2716 (_initialize_remote): Add PACKET_qCRC to the list of config
2717 packets that have no associated command. Extend comment.
2718 * target.c (simple_verify_memory, default_verify_memory): New
2720 * target.h (struct target_ops) <to_verify_memory>: Default to
2721 default_verify_memory.
2722 (simple_verify_memory): New declaration.
2723 * target-delegates.c: Regenerate.
2725 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2727 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2729 2014-05-20 Hui Zhu <hui@codesourcery.com>
2730 Yao Qi <yao@codesourcery.com>
2733 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2734 and change address of sp and pc.
2736 2014-05-19 Tom Tromey <tromey@redhat.com>
2738 * gdbtypes.c (rank_function): Use XNEWVEC.
2739 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2741 2014-05-19 Doug Evans <dje@google.com>
2743 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2744 build_type_unit_groups and moved closer to only caller. Remove
2745 arguments. All references updated. Remove outdated .gdb_index
2747 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2748 build_type_psymtabs_1.
2750 2014-05-19 Doug Evans <dje@google.com>
2752 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2753 n_type_unit_groups, all_type_unit_groups. All uses removed.
2754 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2755 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2756 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2757 (add_type_unit_group_to_table): Delete.
2759 2014-05-19 Doug Evans <dje@google.com>
2761 * eval.c (evaluate_subexp_standard): Add some comments.
2763 2014-05-17 Doug Evans <xdje42@gmail.com>
2765 * progspace.c (remove_program_space): Delete, unused.
2766 * progspace.h (remove_program_space): Ditto.
2768 2014-05-17 Doug Evans <xdje42@gmail.com>
2770 * inferior.c (prune_inferiors): Fix comment.
2771 (remove_inferior_command): Call prune_program_spaces.
2773 2014-05-16 Doug Evans <dje@google.com>
2775 New command line option -D.
2777 * main.c (set_gdb_data_directory): New function.
2778 (captured_main): Recognize -D. Flag error for --data-directory "".
2779 Call set_gdb_data_directory.
2780 (print_gdb_help): Print --data-directory, -D.
2781 * main.h (set_gdb_data_directory): Declare.
2782 * top.c (staged_gdb_datadir): New static global.
2783 (set_gdb_datadir): Call set_gdb_data_directory
2784 (show_gdb_datadir): New function.
2785 (init_main): Update init of data-directory parameter.
2787 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2789 Import the "dirfd" gnulib module.
2790 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2791 * gnulib/aclocal.m4: Update.
2792 * gnulib/config.in: Update.
2793 * gnulib/configure: Update.
2794 * gnulib/import/Makefile.am: Update.
2795 * gnulib/import/Makefile.in: Update.
2796 * gnulib/import/dirfd.c: New.
2797 * gnulib/import/m4/dirfd.m4: New.
2798 * gnulib/import/m4/gnulib-cache.m4: Update.
2799 * gnulib/import/m4/gnulib-comp.m4: Update.
2801 2014-05-16 Pierre Muller <muller@sourceware.org>
2802 Yao Qi <yao@codesourcery.com>
2804 * valprint.c (print_wchar): Move the code on checking whether
2805 W is a printable wide char to the default branch of switch
2806 statement below. Call wchar_printable instead of gdb_iswprint.
2808 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2810 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2811 ldr.w and ldrd instructions.
2813 2014-05-15 Doug Evans <dje@google.com>
2815 * dwarf2read.c (read_structure_type): Delete outdated comments.
2817 2014-05-14 Tom Tromey <tromey@redhat.com>
2819 * macrocmd.c (print_macro_definition): Reindent.
2821 2014-05-13 Doug Evans <xdje42@gmail.com>
2823 * python/py-cmd.c (cmdpy_completer): Add comment.
2824 (completers): Make const.
2826 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2828 * infrun.c (resume): Remove should_resume (unused). Move up
2829 declaration of resume_ptid.
2831 2014-05-13 Tom Tromey <tromey@redhat.com>
2833 * language.h (unop_type_check): Remove.
2834 (binop_type_check): Don't declare.
2836 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2838 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2839 call to regcache_raw_collect.
2841 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2843 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2844 mi_console->quote as the quoting character.
2846 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2848 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2850 2014-04-29 Tom Tromey <tromey@redhat.com>
2852 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2853 "show debug varobj".
2855 2014-05-07 Kyle McMartin <kyle@redhat.com>
2857 Pushed by Joel Brobecker <brobecker@adacore.com>.
2858 * aarch64-tdep.c (aarch64_software_single_step): New function.
2859 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2860 with aarch64_software_single_step.
2862 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2866 2014-05-05 Keith Seitz <keiths@redhat.com>
2868 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2869 variable or history value is successfully parsed.
2871 2014-05-05 Yao Qi <yao@codesourcery.com>
2872 Pedro Alves <palves@redhat.com>
2874 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2875 address of blocks that intersects the requested range. Trim
2876 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2878 * ctf.c (ctf_xfer_partial): Likewise.
2880 2014-05-05 Yao Qi <yao@codesourcery.com>
2882 * printcmd.c (display_command): Remove the check to
2883 target_has_execution.
2885 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2887 * ppcobsd-nat.c: Include "obsd-nat.h".
2888 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2890 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2892 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2894 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2895 and 16-bit signed and unsigned arguments. Update comment.
2896 (stap_parse_probe_arguments): Extend code to handle such
2897 arguments. Use warning instead of complaint to notify about
2898 unrecognized bitness.
2900 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2902 PR breakpoints/16889
2903 * stap-probe.c (stap_parse_probe_arguments): Simplify
2904 check for non-prefixed probes (i.e., probes whose
2905 arguments do not start with "N@"). Always set the
2906 argument type to a sane value.
2908 2014-05-01 David Taylor <dtaylor@emc.com>
2910 * remote.c (compare_sections_command): Add -r option to compare
2911 all loadable read-only sections.
2913 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2915 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2916 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2918 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2919 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2920 Remove unused CORE_ADDR argument. Update all callers.
2922 2014-04-29 Pedro Alves <palves@redhat.com>
2924 * remote.c (struct packet_config) <detect>: Extend comment.
2925 (add_packet_config_cmd): Don't set the config's detect or support
2927 (init_all_packet_configs): Also initialize the config's 'detect'
2929 (reset_all_packet_configs_support): New function.
2930 (remote_open_1): Call reset_all_packet_configs_support instead of
2931 init_all_packet_configs.
2932 (_initialize_remote): Initialize all packet configs. Assert that
2933 all packets have an associated command, except a few known
2936 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2938 * dwarf2read.c (read_subrange_type): Handle dynamic
2939 DW_AT_lower_bound attributes.
2941 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2943 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2944 dynamic bounds before computing its upper bound.
2945 (ada_discrete_type_low_bound): Same as above with the lower bound.
2947 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2949 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2950 range types. Adjust the array handling implementation to
2951 take advantage of this change.
2952 (resolve_dynamic_range): New function, mostly extracted from
2953 resolve_dynamic_bounds.
2954 (resolve_dynamic_array): New function, mostly extracted from
2955 resolve_dynamic_bounds.
2956 (resolve_dynamic_bounds): Delete.
2957 (resolve_dynamic_type): Reimplement. Add handling of
2958 TYPE_CODE_RANGE types.
2960 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2962 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2963 handling of parallel ___XA types.
2965 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2967 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2968 unnecessary second call to static_unwrap_type.
2970 2014-04-27 Hui Zhu <hui@codesourcery.com>
2972 * stack.c (print_frame_info): Call do_gdb_disassembly with
2973 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2975 2014-04-26 Doug Evans <xdje42@gmail.com>
2977 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2979 2014-04-25 Pedro Alves <palves@redhat.com>
2982 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2983 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2984 and newline from built string.
2985 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2986 (linux_ptrace_attach_fail_reason): ... this.
2987 * linux-nat.c (linux_nat_attach): Adjust to use
2988 linux_ptrace_attach_fail_reason.
2990 2014-04-25 Pedro Alves <palves@redhat.com>
2992 * remote.c (struct remote_state): Remove multi_process_aware,
2993 non_stop_aware, cond_tracepoints, cond_breakpoints,
2994 breakpoint_commands, fast_tracepoints, static_tracepoints,
2995 install_in_trace, disconnected_tracing,
2996 enable_disable_tracepoints, string_tracing, and
2997 augmented_libraries_svr4_read fields.
2998 (remote_multi_process_p): Move further below in the file.
2999 (struct packet_config): Add comments.
3000 (update_packet_config): Delete function.
3001 (show_packet_config_cmd): Use packet_config_support.
3002 (add_packet_config_cmd): Use NULL as set callback.
3003 (packet_ok): "set remote foo-packet"-style commands no longer
3004 change config->supported -- adjust.
3005 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3006 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3007 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3008 (PACKET_QNonStop, PACKET_multiprocess_feature)
3009 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3010 (PACKET_DisconnectedTracing_feature)
3011 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3012 (set_remote_protocol_packet_cmd): Delete function.
3013 (packet_config_support, packet_support): New functions.
3014 (set_remote_protocol_Z_packet_cmd): Don't call
3015 update_packet_config.
3016 (remote_query_attached, remote_pass_signals)
3017 (remote_program_signals, remote_threads_info)
3018 (remote_threads_extra_info, remote_start_remote): Use
3020 (remote_start_remote): Use packet_config_support and
3022 (init_all_packet_configs): Set all packets to unknown support,
3023 instead of calling update_packet_config.
3024 (remote_check_symbols): Use packet_support.
3025 (remote_supported_packet): Unconditionally set the packet config's
3027 (remote_multi_process_feature, remote_non_stop_feature)
3028 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3029 (remote_breakpoint_commands_feature)
3030 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3031 (remote_install_in_trace_feature)
3032 (remote_disconnected_tracing_feature)
3033 (remote_enable_disable_tracepoint_feature)
3034 (remote_string_tracing_feature)
3035 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3036 (remote_protocol_features): Adjust to use remote_supported_packet
3037 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3038 "ConditionalTracepoints", "ConditionalBreakpoints",
3039 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3040 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3041 "EnableDisableTracepoints", and "tracenz".
3042 (remote_query_supported): Use packet_support.
3043 (remote_open_1): Adjust.
3044 (extended_remote_attach_1): Use packet_support. Switch on the
3045 result of packet_ok instead of checking whether the packet ended
3047 (remote_vcont_resume): Use packet_support.
3048 (remote_resume, remote_stop_ns, fetch_register_using_p)
3049 (remote_prepare_to_store, store_register_using_P)
3050 (check_binary_download, remote_write_bytes): Use packet_support.
3051 (remote_vkill): Use packet_support. Switch on the result of
3052 packet_ok instead of checking whether the packet ended up
3054 (extended_remote_supports_disable_randomization): Use
3056 (extended_remote_run): Switch on the result of packet_ok instead
3057 of checking whether the packet ended up disabled.
3058 (remote_insert_breakpoint, remote_remove_breakpoint)
3059 (remote_insert_watchpoint, remote_remove_watchpoint)
3060 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3062 (remote_search_memory): Use packet_config_support.
3063 (remote_get_thread_local_address, remote_get_tib_address)
3064 (remote_hostio_send_command, remote_can_execute_reverse): Use
3066 (remote_supports_cond_tracepoints)
3067 (remote_supports_cond_breakpoints)
3068 (remote_supports_fast_tracepoints)
3069 (remote_supports_static_tracepoints)
3070 (remote_supports_install_in_trace)
3071 (remote_supports_enable_disable_tracepoint)
3072 (remote_supports_string_tracing)
3073 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3074 the packet config says the feature is enabled or disabled.
3075 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3076 (remote_get_trace_status): Use packet_support.
3077 (remote_set_disconnected_tracing): Adjust to check whether the
3078 feature is enabled with packet_support.
3079 (remote_set_trace_buffer_size, remote_use_agent)
3080 (remote_can_use_agent, remote_supports_btrace): Use
3082 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3083 Use packet_config_support.
3084 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3085 the packet config says the feature is enabled or disabled.
3086 (set_range_stepping): Use packet_support.
3088 2014-04-25 Tom Tromey <tromey@redhat.com>
3090 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3093 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3095 * NEWS: Mention support for C99 variable length arrays.
3097 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3099 * ada-lang.c (standard_exc): Expand introductory comment.
3101 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3102 Walfred Tedeschi <walfred.tedeschi@intel.com>
3104 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3106 (amd64_linux_read_description): Add code to handle AVX512 xstate
3107 mask and return respective tdesc.
3108 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3109 and features/i386/x32-avx512-linux.c.
3110 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3111 (amd64_linux_core_read_description): Add code to handle AVX512
3112 xstate mask and return respective tdesc.
3113 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3114 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3116 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3117 (tdesc_amd64_avx512_linux): New prototype.
3118 (tdesc_x32_avx512_linux): Likewise.
3119 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3120 features/i386/x32-avx512.c.
3121 (amd64_ymm_avx512_names): New register names for pseudo
3123 (amd64_ymmh_avx512_names): New register names for raw registers
3125 (amd64_k_names): New register names for K registers.
3126 (amd64_zmmh_names): New register names for ZMM raw registers.
3127 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3128 (amd64_xmm_avx512_names): New register names for XMM16-31
3130 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3132 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3133 if feature is present.
3134 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3135 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3136 (AMD64_NUM_REGS): Adjust to new number of registers.
3137 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3138 registers supplied via XSTATE by AVX512 registers.
3139 (i386_linux_read_description): Add case for AVX512.
3140 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3141 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3142 (i386_linux_core_read_description): Add case for AVX512.
3143 (i386_linux_init_abi): Install supported register note section
3145 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3147 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3148 registers to be number of zmm7h + 1.
3149 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3150 * i386-tdep.c: Include features/i386/i386-avx512.c.
3151 (i386_zmm_names): Add ZMM pseudo register names array.
3152 (i386_zmmh_names): Add ZMM raw register names array.
3153 (i386_k_names): Add K raw register names array.
3154 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3155 registers. AVX512 has 16 more ZMM registers than there are YMM
3157 (i386_zmmh_regnum_p): Add function to look up register number of
3159 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3160 (i386_k_regnum_p): Likewise for K raw registers.
3161 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3162 registers added by AVX512.
3163 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3164 registers added by AVX512.
3165 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3167 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3168 (i386_pseudo_register_name): Add ZMM pseudo registers.
3169 (i386_zmm_type): Construct and return vector registers type for ZMM
3171 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3172 ZMM0-31 pseudo registers and K registers.
3173 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3174 and YMM16-31 registers from register cache.
3175 (i386_pseudo_register_write): Add code to write K, ZMM and
3177 (i386_register_reggroup_p): Add code to include/exclude AVX512
3178 registers in/from respective register groups.
3179 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3180 registers if feature is present in xcr0.
3181 (i386_gdbarch_init): Add code to initialize AVX512 feature
3182 variables in tdep structure, wire in pseudo registers and call
3183 initialize_tdesc_i386_avx512.
3184 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3186 (i386_regnum): Add AVX512 registers.
3187 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3188 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3189 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3190 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3192 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3193 (i386_ymm_avx512_regnum_p): Likewise.
3194 (i386_k_regnum_p): Likewise.
3195 (i386_zmm_regnum_p): Likewise.
3196 (i386_zmmh_regnum_p): Likewise.
3197 * i387-tdep.c : Update year in copyright notice.
3198 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3200 (XSAVE_YMM_AVX512_ADDR): New macro.
3201 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3203 (XSAVE_XMM_AVX512_ADDR): New macro.
3204 (xsave_avx512_k_offset): New table for K register offsets in
3206 (XSAVE_AVX512_K_ADDR): New macro.
3207 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3209 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3210 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3212 (i387_collect_xsave): Add code to collect AVX512 registers from
3214 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3215 of XMM16-31 registers.
3216 (I387_NUM_K_REGS): New define for number of K registers.
3217 (I387_K0_REGNUM): New define for K0 register number.
3218 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3219 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3220 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3222 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3223 (I387_XMM16_REGNUM): New define for XMM16 register number.
3224 (I387_YMM0_REGNUM): New define for YMM0 register number.
3225 (I387_KEND_REGNUM): New define for last K register number.
3226 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3227 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3229 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3231 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3233 * features/Makefile: Add AVX512 related files.
3234 * features/i386/32bit-avx512.xml: New file.
3235 * features/i386/64bit-avx512.xml: Likewise.
3236 * features/i386/amd64-avx512-linux.c: Likewise.
3237 * features/i386/amd64-avx512-linux.xml: Likewise.
3238 * features/i386/amd64-avx512.c: Likewise.
3239 * features/i386/amd64-avx512.xml: Likewise.
3240 * features/i386/i386-avx512-linux.c: Likewise.
3241 * features/i386/i386-avx512-linux.xml: Likewise.
3242 * features/i386/i386-avx512.c: Likewise.
3243 * features/i386/i386-avx512.xml: Likewise.
3244 * features/i386/x32-avx512-linux.c: Likewise.
3245 * features/i386/x32-avx512-linux.xml: Likewise.
3246 * features/i386/x32-avx512.c: Likewise.
3247 * features/i386/x32-avx512.xml: Likewise.
3248 * regformats/i386/amd64-avx512-linux.dat: New file.
3249 * regformats/i386/amd64-avx512.dat: Likewise.
3250 * regformats/i386/i386-avx512-linux.dat: Likewise.
3251 * regformats/i386/i386-avx512.dat: Likewise.
3252 * regformats/i386/x32-avx512-linux.dat: Likewise.
3253 * regformats/i386/x32-avx512.dat: Likewise.
3254 * NEWS: Add note about new support for AVX512.
3257 2014-04-23 Pedro Alves <palves@redhat.com>
3259 * breakpoint.c (insert_bp_location): Tolerate errors if the
3260 breakpoint is set in a user-loaded objfile.
3261 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3262 location is marked shlib_disabled. If the breakpoint is set in a
3263 user-loaded objfile is a GDB-side memory breakpoint, validate it
3264 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3265 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3267 * mem-break.c (memory_validate_breakpoint): New function.
3268 * objfiles.c (userloaded_objfile_contains_address_p): New
3270 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3271 * target.h (memory_validate_breakpoint): New declaration.
3273 2014-04-23 Pedro Alves <palves@redhat.com>
3275 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3276 the breakpoint is set in a shared library, only suppress
3277 errors for software breakpoints, not hardware breakpoints.
3279 2014-04-22 Pedro Alves <palves@redhat.com>
3281 * infrun.c (schedlock_applies): New function, factored out from
3282 find_thread_needs_step_over.
3283 (find_thread_needs_step_over): Use it.
3284 (switch_back_to_stepped_thread): Always clear trap_expected if the
3285 step over is finished. Return early if scheduler locking applies.
3286 Look for the stepping thread and a potential step-over thread with
3288 (currently_stepping_or_nexting_callback): Delete.
3290 2014-04-22 Nick Clifton <nickc@redhat.com>
3292 * NEWS: Mention that ARM sim now supports tracing.
3294 2014-04-22 Yao Qi <yao@codesourcery.com>
3296 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3298 * tracefile.c (tracefile_fetch_registers): ... it. New
3300 * tracefile.h (tracefile_fetch_registers): Declare.
3301 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3302 tracefile_fetch_registers.
3304 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3307 * windows-nat.c (thread_rec): Don't display a warning when
3308 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3309 fails for any reason, set th->suspended to -1, so that we don't
3310 try to resume such a thread. Also, don't return NULL in these
3311 cases, to avoid completely ruin the session due to "PC register is
3312 not available" error.
3313 (do_windows_fetch_inferior_registers): Check errors in
3314 GetThreadContext call.
3315 (windows_continue): Accept an additional argument KILLED; if not
3316 zero, ignore errors in the SetThreadContext call, since the
3317 inferior was killed and is shutting down.
3318 (windows_resume, get_windows_debug_event)
3319 (windows_create_inferior, windows_mourn_inferior)
3320 (windows_kill_inferior): All callers of windows_continue changed
3321 to adjust to its new calling sequence.
3323 2014-04-19 Yao Qi <yao@codesourcery.com>
3325 * ctf.c (ctf_open): Call post_create_inferior.
3327 2014-04-19 Yao Qi <yao@codesourcery.com>
3329 * ctf.c (handle_id): New static variable.
3330 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3331 value. Get the declaration of event "register" and get length
3332 of field "contents".
3334 2014-04-19 Yao Qi <yao@codesourcery.com>
3336 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3338 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3340 * valops.c (oload_method_static): Remove unnecessary argument
3341 METHOD. Update all callers.
3343 2014-04-18 Pedro alves <palves@redhat.com>
3344 Tom Tromey <tromey@redhat.com>
3347 * frame.c (get_prev_frame_1): Rename to ...
3348 (get_prev_frame_always): ... this, and make extern. Adjust.
3349 (skip_artificial_frames): Use get_prev_frame_always.
3350 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3351 (get_frame_unwind_stop_reason): Adjust to rename.
3352 * frame.h (get_prev_frame_always): Declare.
3353 * inline-frame.c: Include frame.h.
3354 (inline_frame_this_id): Use get_prev_frame_always.
3356 2014-04-18 Tristan Gingold <gingold@adacore.com>
3358 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3359 code by using bfd_mach_o_get_base_address.
3361 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3363 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3364 (spu_ax_pseudo_register_collect): New function.
3365 (spu_ax_pseudo_register_push_stack): Likewise.
3366 (spu_dwarf_reg_to_regnum): Likewise.
3367 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3369 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3371 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3372 Replace FRAME argument with FRAME_ID.
3373 * gdbarch.c, gdbarch.h: Regenerate.
3374 * findvar.c (default_value_from_register): Add GDBARCH argument;
3375 replace FRAME by FRAME_ID. No longer call get_frame_id.
3376 (value_from_register): Update call to gdbarch_value_from_register.
3377 * value.h (default_value_from_register): Update prototype.
3378 * s390-linux-tdep.c (s390_value_from_register): Update interface
3379 and call to default_value_from_register.
3380 * spu-tdep.c (spu_value_from_register): Likewise.
3382 * findvar.c (address_from_register): Remove TYPE argument.
3383 Do not call value_from_register; use gdbarch_value_from_register
3384 with null_frame_id instead.
3385 * value.h (address_from_register): Update prototype.
3386 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3387 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3388 address_from_register interface change.
3390 2014-04-17 Yao Qi <yao@codesourcery.com>
3392 * gdbtypes.h: Update comments to link to types and macros'
3395 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3397 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3399 2014-04-16 Keith Seitz <keiths@redhat.com>
3402 * dwarf2read.c (skip_one_die): Check that all relative-offset
3403 sibling DIEs fall within range of the current reader's buffer.
3404 (read_partial_die): Likewise.
3406 2014-04-16 Keith Seitz <keiths@redhat.com>
3409 * cp-namespace.c (lookup_symbol_file): If the type name of
3410 `this' is NULL, return immediately.
3412 2014-04-14 Keith Seitz <keiths@redhat.com>
3415 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3416 from symbol_matches_domain in symtab.c. All local callers
3417 of symbol_matches_domain updated.
3418 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3419 search STRUCT_DOMAIN.
3420 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3421 independently. standard_lookup will do that automatically.
3422 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3423 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3424 (cp_lookup_symbol_in_namespace): Likewise.
3425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3426 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3427 may return a STRUCT_DOMAIN match.
3428 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3429 * cp-support.c: Include language.h.
3430 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3432 * psymtab.c (match_partial_symbol): Compare the requested
3433 domain with the symbol's domain directly.
3434 (lookup_partial_symbol): Likewise.
3435 * symtab.c (lookup_symbol_in_language): Explain when/why
3436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3438 appropriate languages.
3439 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3440 and moved to ada-lang.c
3441 (lookup_block_symbol): Explain that this function only returns
3442 symbol matching the requested DOMAIN.
3443 Compare the requested domain with the symbol's domain directly.
3444 (iterate_over_symbols): Compare the requested domain with the
3445 symbol's domain directly.
3446 * symtab.h (symbol_matches_domain): Remove.
3448 2014-04-14 Tom Tromey <tromey@redhat.com>
3451 * c-exp.y (type_aggregate_p): New function.
3452 (qualified_name, classify_inner_name): Use it.
3453 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3454 and TYPE_TARGET_TYPE of an enum type.
3455 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3457 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3458 handle TYPE_DECLARED_CLASS.
3459 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3461 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3462 * valops.c (enum_constant_from_type): New function.
3463 (value_aggregate_elt): Use it.
3464 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3467 2014-04-14 Tom Tromey <tromey@redhat.com>
3469 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3470 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3472 * value.h (value_aggregate_elt): Update.
3474 2014-04-14 Tom Tromey <tromey@redhat.com>
3476 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3478 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3480 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3481 (evaluate_subexp_standard): Pass noside argument.
3482 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3483 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3484 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3485 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3486 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3488 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3490 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3491 points to a constant blob.
3493 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3495 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3496 property and store it as the high bound and flag the range accordingly.
3497 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3498 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3499 * gdbtypes.h (enum range_flags): New enum.
3500 (struct range_bounds): Add flags member.
3502 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3504 * c-typeprint.c (c_type_print_varspec_suffix): Added
3505 check for not yet resolved high bound. If unresolved, print
3506 "variable length" string to the console instead of random
3509 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3511 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3513 (ada_template_to_fixed_record_type_1): Likewise.
3514 (ada_to_fixed_type_1): Likewise.
3515 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3516 (cp_print_value): Likewise.
3517 * d-valprint.c (dynamic_array_type): Likewise.
3518 * findvar.c (address_of_variable): Likewise.
3519 * jv-valprint.c (java_value_print): Likewise.
3520 * valops.c (value_ind): Likewise.
3521 * value.c (coerce_ref): Likewise.
3523 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3525 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3526 value and retrieve the dynamic type size.
3528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3530 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3531 passed to sizeof is dynamic evaluate the argument to compute the length.
3533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3534 Joel Brobecker <brobecker@adacore.com>
3536 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3537 (dwarf2_evaluate_property): New function.
3538 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3539 * dwarf2read.c (attr_to_dynamic_prop): New function.
3540 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3542 * gdbtypes.c: Include dwarf2loc.h.
3543 (is_dynamic_type): New function.
3544 (resolve_dynamic_type): New function.
3545 (resolve_dynamic_bounds): New function.
3546 (get_type_length): New function.
3547 (check_typedef): Use get_type_length to compute type length.
3548 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3549 (TYPE_LOW_BOUND_KIND): New macro.
3550 (is_dynamic_type): New function prototype.
3551 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3552 to resolve dynamic properties of the type. Update comment.
3553 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3555 2014-04-14 Richard Henderson <rth@redhat.com>
3557 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3559 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3560 Doug Evans <xdje42@gmail.com>
3562 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3563 dereference TYPE_CODE_REF values.
3565 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3567 Revert the following changes due to regressions:
3569 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3570 (dwarf2_evaluate_property): New function.
3571 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3572 * dwarf2read.c (attr_to_dynamic_prop): New function.
3573 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3575 * gdbtypes.c: Include dwarf2loc.h.
3576 (is_dynamic_type): New function.
3577 (resolve_dynamic_type): New function.
3578 (resolve_dynamic_bounds): New function.
3579 (get_type_length): New function.
3580 (check_typedef): Use get_type_length to compute type length.
3581 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3582 (TYPE_LOW_BOUND_KIND): New macro.
3583 (is_dynamic_type): New function prototype.
3584 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3585 to resolve dynamic properties of the type. Update comment.
3586 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3588 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3589 passed to sizeof is dynamic evaluate the argument to compute the length.
3591 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3592 value and retrieve the dynamic type size.
3594 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3595 (ada_template_to_fixed_record_type_1): Likewise.
3596 (ada_to_fixed_type_1): Likewise.
3597 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3598 (cp_print_value): Likewise.
3599 * d-valprint.c (dynamic_array_type): Likewise.
3600 * eval.c (evaluate_subexp_with_coercion): Likewise.
3601 * findvar.c (address_of_variable): Likewise.
3602 * jv-valprint.c (java_value_print): Likewise.
3603 * valops.c (value_ind): Likewise.
3604 * value.c (coerce_ref): Likewise.
3606 * c-typeprint.c (c_type_print_varspec_suffix): Added
3607 check for not yet resolved high bound. If unresolved, print
3608 "variable length" string to the console instead of random
3611 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3612 property and store it as the high bound and flag the range accordingly.
3613 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3614 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3615 * gdbtypes.h (enum range_flags): New enum.
3616 (struct range_bounds): Add flags member.
3618 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3619 points to a constant blob.
3621 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3622 (evaluate_subexp_standard): Pass noside argument.
3623 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3624 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3625 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3626 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3627 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3629 2014-04-11 Keith Seitz <keiths@redhat.com>
3632 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3633 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3636 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3638 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3639 (evaluate_subexp_standard): Pass noside argument.
3640 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3641 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3642 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3643 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3644 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3646 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3648 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3649 points to a constant blob.
3651 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3653 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3654 property and store it as the high bound and flag the range accordingly.
3655 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3656 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3657 * gdbtypes.h (enum range_flags): New enum.
3658 (struct range_bounds): Add flags member.
3660 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3662 * c-typeprint.c (c_type_print_varspec_suffix): Added
3663 check for not yet resolved high bound. If unresolved, print
3664 "variable length" string to the console instead of random
3667 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3669 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3670 (ada_template_to_fixed_record_type_1): Likewise.
3671 (ada_to_fixed_type_1): Likewise.
3672 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3673 (cp_print_value): Likewise.
3674 * d-valprint.c (dynamic_array_type): Likewise.
3675 * eval.c (evaluate_subexp_with_coercion): Likewise.
3676 * findvar.c (address_of_variable): Likewise.
3677 * jv-valprint.c (java_value_print): Likewise.
3678 * valops.c (value_ind): Likewise.
3679 * value.c (coerce_ref): Likewise.
3681 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3683 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3684 value and retrieve the dynamic type size.
3686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3688 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3689 passed to sizeof is dynamic evaluate the argument to compute the length.
3691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3693 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3694 (dwarf2_evaluate_property): New function.
3695 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3696 * dwarf2read.c (attr_to_dynamic_prop): New function.
3697 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3699 * gdbtypes.c: Include dwarf2loc.h.
3700 (is_dynamic_type): New function.
3701 (resolve_dynamic_type): New function.
3702 (resolve_dynamic_bounds): New function.
3703 (get_type_length): New function.
3704 (check_typedef): Use get_type_length to compute type length.
3705 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3706 (TYPE_LOW_BOUND_KIND): New macro.
3707 (is_dynamic_type): New function prototype.
3708 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3709 to resolve dynamic properties of the type. Update comment.
3710 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3714 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3715 declaring high/low bounds and change uses accordingly. Call
3716 create_range_type instead of create_static_range_type.
3717 * gdbtypes.c (create_range_type): New function.
3718 (create_range_type): Convert bounds into struct bound_prop and pass
3719 them to create_range_type.
3720 * gdbtypes.h (struct bound_prop): New struct.
3721 (create_range_type): New function prototype.
3722 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3723 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3724 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3726 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3730 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3731 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3732 * ada-lang.c: All uses of create_range_type updated.
3733 * coffread.c: All uses of create_range_type updated.
3734 * dwarf2read.c: All uses of create_range_type updated.
3735 * f-exp.y: All uses of create_range_type updated.
3736 * m2-valprint.c: All uses of create_range_type updated.
3737 * mdebugread.c: All uses of create_range_type updated.
3738 * stabsread.c: All uses of create_range_type updated.
3739 * valops.c: All uses of create_range_type updated.
3740 * valprint.c: All uses of create_range_type updated.
3742 2014-04-10 Pedro Alves <palves@redhat.com>
3744 * breakpoint.c (single_step_breakpoints)
3745 (single_step_gdbarch): Move up in the file.
3746 (one_breakpoint_xfer_memory): New function, factored out from ...
3747 (breakpoint_xfer_memory): ... here. Also process single-step
3750 2014-04-09 Tristan Gingold <gingold@adacore.com>
3752 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3754 (darwin_decode_exception_message): Free port only after use.
3756 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3758 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3759 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3760 when setting the size of call_length.
3762 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3764 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3765 dereference TYPE_CODE_REF values.
3767 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3769 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3770 end of warning message.
3772 2014-04-03 Doug Evans <dje@google.com>
3774 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3775 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3777 2014-04-02 Alan Modra <amodra@gmail.com>
3779 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3780 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3781 (struct symbol_file_add_from_memory_args): Add size field.
3782 (find_vdso_size): New function.
3783 (add_vsyscall_page): Attempt to find vdso size.
3785 2014-04-01 Doug Evans <dje@google.com>
3787 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3789 2014-04-01 Tristan Gingold <gingold@adacore.com>
3791 * darwin-nat.c (darwin_encode_reply): Add prototype.
3792 (darwin_decode_exception_message): Reply to unknown inferiors.
3793 (darwin_decode_message): Handle message by id. Ignore message
3794 to unknown inferior.
3795 (darwin_wait): Discard unknown messages, add debug trace.
3797 2014-03-31 Doug Evans <dje@google.com>
3799 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3802 2014-03-31 Doug Evans <dje@google.com>
3804 New option "set print symbol-loading".
3806 * solib.c (solib_read_symbols): Only print symbol loading messages
3808 (solib_add): If symbol loading is in "brief" mode, notify user
3809 symbols are being loaded.
3810 (reload_shared_libraries_1): Ditto.
3811 * symfile.c (print_symbol_loading_off): New static global.
3812 (print_symbol_loading_brief): New static global.
3813 (print_symbol_loading_full): New static global.
3814 (print_symbol_loading_enums): New static global.
3815 (print_symbol_loading): New static global.
3816 (print_symbol_loading_p): New function.
3817 (symbol_file_add_with_addrs): Only print symbol loading messages
3819 (_initialize_symfile): Register "print symbol-loading" set/show
3821 * symfile.h (print_symbol_loading_p): Declare.
3823 2014-03-30 Doug Evans <xdje42@gmail.com>
3825 * infrun.c (set_last_target_status): New function.
3826 (handle_inferior_event): Call it.
3828 2014-03-30 Doug Evans <xdje42@gmail.com>
3830 * inferior.h (enum stop_kind): Improve comment.
3832 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3834 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3835 a reference, strip the reference layer before calling
3836 the lang_ops value_has_mutated callback.
3838 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3840 Remove some globals from our parser.
3841 * language.c (unk_lang_parser): Add "struct parser_state"
3843 * language.h (struct language_defn) <la_parser>: Likewise.
3844 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3845 (initialize_expout): Add "struct parser_state" argument.
3846 Rewrite function to use the parser state.
3847 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3848 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3849 write_exp_elt_longcst, write_exp_elt_dblcst,
3850 write_exp_elt_decfloatcst, write_exp_elt_type,
3851 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3852 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3853 write_dollar_variable): Likewise.
3854 (parse_exp_in_context_1): Use parser state.
3855 (insert_type_address_space): Add "struct parser_state" argument.
3857 (increase_expout_size): New function.
3858 * parser-defs.h: Forward declare "struct language_defn" and
3859 "struct parser_state".
3860 (expout, expout_size, expout_ptr): Remove extern declarations.
3861 (parse_gdbarch, parse_language): Rewrite macro declarations to
3862 accept the parser state.
3863 (struct parser_state): New struct.
3864 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3865 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3866 write_exp_elt_decfloatcst, write_exp_elt_type,
3867 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3868 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3869 write_exp_msymbol, write_dollar_variable,
3870 mark_struct_expression, insert_type_address_space): Add "struct
3871 parser_state" argument.
3872 (increase_expout_size): New function.
3873 * utils.c (do_clear_parser_state): New function.
3874 (make_cleanup_clear_parser_state): Likewise.
3875 * utils.h (make_cleanup_clear_parser_state): New function
3877 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3878 Update calls to write_exp* in order to pass the parser state.
3879 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3880 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3881 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3882 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3883 * stap-probe.c (stap_parse_register_operand): Likewise.
3884 (stap_parse_single_operand): Likewise.
3885 (stap_parse_argument_1): Likewise.
3886 (stap_parse_argument): Use parser state.
3887 * stap-probe.h: Include "parser-defs.h".
3888 (struct stap_parse_info) <pstate>: New field.
3889 * c-exp.y (parse_type): Rewrite to use parser state.
3890 (yyparse): Redefine to c_parse_internal.
3891 (pstate): New global variable.
3892 (parse_number): Add "struct parser_state" argument.
3893 (write_destructor_name): Likewise.
3894 (type_exp): Update calls to write_exp* and similars in order to
3896 (exp1, exp, variable, qualified_name, space_identifier,
3897 typename, typebase): Likewise.
3898 (write_destructor_name, parse_number, lex_one_token,
3899 classify_name, classify_inner_name, c_parse): Add "struct
3900 parser_state" argument. Update function to use parser state.
3901 * c-lang.h: Forward declare "struct parser_state".
3902 (c_parse): Add "struct parser_state" argument.
3903 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3904 (yyparse): Redefine macro to ada_parse_internal.
3905 (pstate): New variable.
3906 (write_int, write_object_renaming, write_var_or_type,
3907 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3908 type_int, type_long, type_long_long, type_float, type_double,
3909 type_long_double, type_char, type_boolean, type_system_address):
3910 Add "struct parser_state" argument.
3911 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3912 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3913 var_or_type, aggregate, aggregate_component_list,
3914 positional_list, others, component_group,
3915 component_associations): Update calls to write_exp* and similar
3916 functions in order to use parser state.
3917 (ada_parse, write_var_from_sym, write_int,
3918 write_exp_op_with_string, write_object_renaming,
3919 find_primitive_type, write_selectors, write_ambiguous_var,
3920 write_var_or_type, write_name_assoc, type_int, type_long,
3921 type_long_long, type_float, type_double, type_long_double,
3922 type_char, type_boolean, type_system_address): Add "struct
3923 parser_state" argument. Adjust function to use parser state.
3924 * ada-lang.c (parse): Likewise.
3925 * ada-lang.h: Forward declare "struct parser_state".
3926 (ada_parse): Add "struct parser_state" argument.
3927 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3928 calls to both functions.
3929 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3931 (yyparse): Redefine macro to f_parse_internal.
3932 (pstate): New variable.
3933 (parse_number): Add "struct parser_state" argument.
3934 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3935 and similars in order to use parser state.
3936 (parse_number): Adjust code to use parser state.
3938 (f_parse): New function.
3939 * f-lang.h: Forward declare "struct parser_state".
3940 (f_parse): Add "struct parser_state" argument.
3941 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3943 (yyparse): Redefine macro for java_parse_internal.
3944 (pstate): New variable.
3945 (push_expression_name, push_expression_name, insert_exp): Add
3946 "struct parser_state" argument.
3947 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3948 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3949 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3950 PostIncrementExpression, PostDecrementExpression,
3951 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3952 UnaryExpressionNotPlusMinus, CastExpression,
3953 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3954 RelationalExpression, EqualityExpression, AndExpression,
3955 ExclusiveOrExpression, InclusiveOrExpression,
3956 ConditionalAndExpression, ConditionalOrExpression,
3957 ConditionalExpression, Assignment, LeftHandSide): Update
3958 calls to write_exp* and similars in order to use parser state.
3959 (parse_number): Ajust code to use parser state.
3961 (java_parse): New function.
3962 (push_variable): Add "struct parser_state" argument. Adjust
3963 code to user parser state.
3964 (push_fieldnames, push_qualified_expression_name,
3965 push_expression_name, insert_exp): Likewise.
3966 * jv-lang.h: Forward declare "struct parser_state".
3967 (java_parse): Add "struct parser_state" argument.
3968 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3970 (yyparse): Redefine macro to m2_parse_internal.
3971 (pstate): New variable.
3972 (type_exp, exp, fblock, variable, type): Update calls to
3973 write_exp* and similars to use parser state.
3975 (m2_parse): New function.
3976 * m2-lang.h: Forward declare "struct parser_state".
3977 (m2_parse): Add "struct parser_state" argument.
3978 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3979 * objc-lang.h: Forward declare "struct parser_state".
3980 (end_msglist): Add "struct parser_state" argument.
3981 * p-exp.y (parse_type): Rewrite macro to use parser state.
3982 (yyparse): Redefine macro to pascal_parse_internal.
3983 (pstate): New variable.
3984 (parse_number): Add "struct parser_state" argument.
3985 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3986 write_exp* and similars in order to use parser state.
3987 (parse_number, yylex): Adjust code to use parser state.
3988 (pascal_parse): New function.
3989 * p-lang.h: Forward declare "struct parser_state".
3990 (pascal_parse): Add "struct parser_state" argument.
3991 * go-exp.y (parse_type): Rewrite macro to use parser state.
3992 (yyparse): Redefine macro to go_parse_internal.
3993 (pstate): New variable.
3994 (parse_number): Add "struct parser_state" argument.
3995 (type_exp, exp1, exp, variable, type): Update calls to
3996 write_exp* and similars in order to use parser state.
3997 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3998 to use parser state.
3999 (go_parse): Likewise.
4000 * go-lang.h: Forward declare "struct parser_state".
4001 (go_parse): Add "struct parser_state" argument.
4003 2014-03-27 Doug Evans <dje@google.com>
4005 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4007 2014-03-27 Doug Evans <dje@google.com>
4009 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4010 Remove argument abbrev_section. All callers updated.
4012 2014-03-27 Doug Evans <dje@google.com>
4014 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4015 addr_base, ranges_base.
4017 2014-03-26 Keith Seitz <keiths@redhat.com>
4019 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4020 types, not VAR_DOMAIN.
4022 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4024 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4026 * features/nios2-linux.c: Regenerated.
4027 * features/nios2.c: Regenerated.
4029 2014-03-25 Pedro Alves <palves@redhat.com>
4031 * cli/cli-script.c (script_from_file): Force the interpreter to
4034 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4036 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4037 small stack allocation.
4039 2014-03-24 Tristan Gingold <gingold@adacore.com>
4041 * darwin-nat.c (exc_server): Remove unused prototype.
4042 (darwin_dump_message): Correctly display data on x86_64.
4043 (darwin_encode_reply): Fix style.
4044 Add comments and fix indentation.
4046 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4048 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4050 2014-03-22 Doug Evans <xdje42@gmail.com>
4052 * infcmd.c: Whitespace fixes.
4053 (interrupt_command): Merge two function comments into one.
4055 2014-03-22 Doug Evans <xdje42@gmail.com>
4057 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4060 2014-03-22 Yao Qi <yao@codesourcery.com>
4062 * remote.c (target_read_live_memory): Remove.
4063 (memory_xfer_live_readonly_partial): Rename it to
4064 remote_xfer_live_readonly_partial. Remove argument 'object'.
4065 All callers updated. Call remote_read_bytes_1
4066 instead of target_read_live_memory.
4067 * tracepoint.c (set_traceframe_number): Remove.
4068 (make_cleanup_restore_traceframe_number): Likewise .
4069 * tracepoint.h (set_traceframe_number): Remove declaration.
4070 (make_cleanup_restore_traceframe_number): Likewise.
4072 2014-03-22 Yao Qi <yao@codesourcery.com>
4074 * remote.c (remote_read_bytes): Move code on reading from the
4076 (remote_read_bytes_1): ... here. New function.
4078 2014-03-22 Yao Qi <yao@codesourcery.com>
4080 * ctf.c (ctf_xfer_partial): Check the return value of
4081 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4082 return TARGET_XFER_UNAVAILABLE.
4083 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4084 * target.c (target_read_live_memory): Move it to remote.c.
4085 (memory_xfer_live_readonly_partial): Likewise.
4086 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4087 * remote.c (target_read_live_memory): Moved from target.c.
4088 (memory_xfer_live_readonly_partial): Likewise.
4089 (remote_read_bytes): Factored out from
4090 memory_xfer_partial_1.
4092 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4094 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4097 2014-03-21 Pedro Alves <palves@redhat.com>
4099 * infrun.c (normal_stop): Extend comment.
4101 2014-03-21 Hui Zhu <hui@codesourcery.com>
4102 Pedro Alves <palves@redhat.com>
4104 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4106 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4107 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4108 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4110 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4112 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4113 `z' formatted output modifier.
4115 2014-03-20 Tom Tromey <tromey@redhat.com>
4116 Sergio Durigan Junior <sergiodj@redhat.com>
4118 * probe.c (parse_probes): Turn assert into an ordinary error.
4119 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4120 exceptions when parsing probes. Rearrange the code for clarity.
4122 2014-03-20 Tom Tromey <tromey@redhat.com>
4125 * top.c (execute_command): Only dispatch events if the command
4128 2014-03-20 Tom Tromey <tromey@redhat.com>
4131 * infcall.c: Include event-top.h.
4132 (run_inferior_call): Call async_disable_stdin if needed.
4134 2014-03-20 Pedro Alves <palves@redhat.com>
4136 * infrun.c (prepare_to_proceed): Delete.
4137 (thread_still_needs_step_over): New function.
4138 (find_thread_needs_step_over): New function.
4139 (proceed): If the current thread needs a step-over, set its
4140 steping_over_breakpoint flag. Adjust to use
4141 find_thread_needs_step_over instead of prepare_to_proceed.
4142 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4143 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4145 (switch_back_to_stepped_thread): Step over breakpoints of all
4146 threads not the stepping thread, before switching back to the
4149 2014-03-20 Pedro Alves <palves@redhat.com>
4151 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4153 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4154 * infrun.c (saved_singlestep_ptid)
4155 (stepping_past_singlestep_breakpoint): Delete.
4156 (resume): Remove stepping_past_singlestep_breakpoint handling.
4157 (proceed): Store the prev_pc of the stepping thread too.
4158 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4160 (enum infwait_states): Delete infwait_thread_hop_state.
4161 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4163 (handle_inferior_event): Adjust.
4164 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4165 handling and the thread-hop code. Before removing single-step
4166 breakpoints, check whether the thread hit a single-step breakpoint
4167 of another thread. If it did, the trap is not a random signal.
4168 (switch_back_to_stepped_thread): If the event thread hit a
4169 single-step breakpoint, unblock it before switching to the
4170 stepping thread. Handle the case of the stepped thread having
4172 (keep_going): Handle the case of the current thread moving past a
4173 single-step breakpoint.
4175 2014-03-20 Pedro Alves <palves@redhat.com>
4178 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4179 are being stepped over.
4180 (breakpoint_address_match): Make extern.
4181 * breakpoint.h (breakpoint_address_match): New declaration.
4182 * inferior.h (stepping_past_instruction_at): New declaration.
4183 * infrun.c (struct step_over_info): New type.
4184 (step_over_info): New global.
4185 (set_step_over_info, clear_step_over_info)
4186 (stepping_past_instruction_at): New functions.
4187 (handle_inferior_event): Clear the step-over info when
4188 trap_expected is cleared.
4189 (resume): Remove now stale comment.
4190 (clear_proceed_status): Clear step-over info.
4191 (proceed): Adjust step-over handling to set or clear the step-over
4192 info instead of removing all breakpoints.
4193 (handle_signal_stop): When setting up a thread-hop, don't remove
4195 (stop_stepping): Clear step-over info.
4196 (keep_going): Adjust step-over handling to set or clear step-over
4197 info and then always inserting breakpoints, instead of removing
4198 all breakpoints when stepping over one.
4200 2014-03-20 Pedro Alves <palves@redhat.com>
4202 * infrun.c (previous_inferior_ptid): Adjust comment.
4203 (deferred_step_ptid): Delete.
4204 (infrun_thread_ptid_changed, prepare_to_proceed)
4205 (init_wait_for_inferior): Adjust.
4206 (handle_signal_stop): Delete deferred_step_ptid handling.
4208 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4211 * defs.h (sync_quit_force_run): New declaration.
4212 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4213 * event-top.c (async_sigterm_handler): New declaration.
4214 (async_sigterm_token): New variable.
4215 (async_init_signals): Create also async_sigterm_token.
4216 (async_sigterm_handler): New function.
4217 (sync_quit_force_run): New variable.
4218 (handle_sigterm): Replace quit_force call by other calls.
4219 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4221 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4223 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4224 offset into SPE pseudo registers.
4226 2014-03-18 Pedro Alves <palves@redhat.com>
4229 * inferior.h (print_stop_event): Declare.
4230 * infrun.c (print_stop_event): New, factored out from ...
4231 (normal_stop): ... this.
4232 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4233 of bpstat_print/print_stack_frame.
4235 2014-03-17 Tom Tromey <tromey@redhat.com>
4237 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4239 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4241 * ada-lang.c (decode_constrained_packed_array): Perform a
4242 minimal coercion for reference with coerce_ref instead of
4245 2014-03-17 Tristan Gingold <gingold@adacore.com>
4247 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4248 (darwin_solib_create_inferior_hook): Emit a warning if version
4251 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4253 * python/py-value.c (get_field_flag): Cast flag_name argument to
4254 PyObject_GetAttrString to support Python 2.4.
4256 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4258 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4259 (Global Maintainers): Remove Jan Kratochvil.
4261 2014-03-14 Pedro Alves <palves@redhat.com>
4263 * inferior.h (terminal_ours_for_output): Rename to ...
4264 (child_terminal_ours_for_output): ... this.
4265 (terminal_save_ours): Rename to ...
4266 (child_terminal_save_ours): ... this.
4267 (terminal_ours): Rename to ...
4268 (child_terminal_ours): ... this.
4269 (terminal_inferior): Rename to ...
4270 (child_terminal_inferior): ... this.
4271 (terminal_init_inferior): Rename to ...
4272 (child_terminal_init_inferior): ... this.
4273 (terminal_init_inferior_with_pgrp): Rename to ...
4274 (child_terminal_init_inferior_with_pgrp): ... this.
4275 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4276 (child_terminal_init_with_pgrp): ... this.
4277 (terminal_save_ours): Rename to ...
4278 (child_terminal_save_ours): ... this.
4279 (terminal_init_inferior): Rename to ...
4280 (child_terminal_init): ... this. Adjust.
4281 (terminal_inferior): Rename to ...
4282 (child_terminal_inferior): ... this.
4283 (terminal_ours_for_output): Rename to ...
4284 (child_terminal_ours_for_output): ... this. Adjust.
4285 (terminal_ours): Rename to ...
4286 (child_terminal_ours): ... this.
4287 (terminal_ours_1): Rename to ...
4288 (child_terminal_ours_1): ... this. Adjust.
4289 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4290 * windows-nat.c (do_initial_windows_stuff): Adjust.
4291 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4292 (gnu_terminal_init): ... this. Adjust.
4293 (gnu_target): Adjust.
4294 * inf-child.c (inf_child_target): Adjust.
4296 2014-03-13 Doug Evans <xdje42@gmail.com>
4299 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4302 2014-03-13 Doug Evans <xdje42@gmail.com>
4304 * value.c (record_latest_value): Call release_value_or_incref
4305 instead of release_value.
4307 2014-03-13 Pedro Alves <palves@redhat.com>
4309 * procfs.c (procfs_target): Don't override to_shortname,
4310 to_longname or to_doc.
4312 2014-03-13 Pedro Alves <palves@redhat.com>
4314 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4315 Unix in user visible strings.
4317 2014-03-12 Stan Shebs <stan@codesourcery.com>
4319 * gdbtypes.h: Annotate comments for Doxygen, add a page
4320 block comment with some general info.
4322 2014-03-12 Pedro Alves <palves@redhat.com>
4324 * infcmd.c (prepare_execution_command): New function, factored out
4325 from several execution commands.
4326 (run_command_1, continue_command, step_1, jump_command)
4327 (signal_command, until_command, advance_command, finish_command)
4328 (attach_command): Use prepare_execution_command.
4330 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4332 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4335 (struct arm_linux_thread_points): Removed.
4336 (struct arm_linux_process_info): New.
4337 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4338 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4339 (arm_linux_find_breakpoints_by_tid): Removed.
4340 (struct arch_lwp_info): New.
4341 (arm_linux_find_process_pid): New functions.
4342 (arm_linux_add_process): New functions.
4343 (arm_linux_process_info_get): New functions.
4344 (arm_linux_forget_process): New function.
4345 (arm_linux_get_debug_reg_state): New function.
4346 (struct update_registers_data): New.
4347 (update_registers_callback): New function.
4348 (arm_linux_insert_hw_breakpoint1): Updated.
4349 (arm_linux_remove_hw_breakpoint1): Updated.
4350 (arm_linux_insert_hw_breakpoint): Updated.
4351 (arm_linux_remove_hw_breakpoint): Updated.
4352 (arm_linux_insert_watchpoint): Updated.
4353 (arm_linux_remove_watchpoint): Updated.
4354 (arm_linux_new_thread): Updated.
4355 (arm_linux_prepare_to_resume): New function.
4356 (arm_linux_new_fork): New function.
4357 (_initialize_arm_linux_nat): Updated.
4359 2014-03-12 Pedro Alves <palves@redhat.com>
4361 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4363 2014-03-12 Tom Tromey <tromey@redhat.com>
4365 * inf-child.c (return_zero): New function.
4366 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4367 * aix-thread.c (aix_thread_inferior_created): New function.
4368 (aix_thread_attach): Remove.
4369 (init_aix_thread_ops): Don't set to_attach.
4370 (_initialize_aix_thread): Register inferior_created observer.
4371 * corelow.c (init_core_ops): Don't set to_attach or
4373 * exec.c (init_exec_ops): Don't set to_attach or
4375 * infcmd.c (run_command_1): Use find_run_target. Make direct
4377 (attach_command): Use find_attach_target. Make direct target
4379 * record-btrace.c (init_record_btrace_ops): Don't set
4381 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4383 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4384 set to_create_inferior.
4385 * target.c (complete_target_initialization): Add assertion.
4386 (target_create_inferior): Remove.
4387 (find_default_attach, find_default_create_inferior): Remove.
4388 (find_attach_target, find_run_target): New functions.
4389 (find_default_is_async_p, find_default_can_async_p)
4390 (target_supports_non_stop, target_attach): Remove.
4391 (init_dummy_target): Don't set to_create_inferior or
4392 to_supports_non_stop.
4393 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4394 TARGET_DEFAULT_FUNC.
4395 <to_create_inferior>: Add comment.
4396 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4397 TARGET_DEFAULT_RETURN.
4398 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4399 (find_attach_target, find_run_target): Declare.
4400 (target_create_inferior): Remove.
4401 (target_has_execution_1): Update comment.
4402 (target_supports_non_stop): Remove.
4403 * target-delegates.c: Rebuild.
4405 2014-03-12 Pedro Alves <palves@redhat.com>
4407 * inf-child.h: Update comment to not mention Unix.
4409 2014-03-12 Pedro Alves <palves@redhat.com>
4411 * inf-child.c: Update top comment to not mention Unix. Add
4412 generic comment describing how this target is meant to be used.
4413 (inf_child_post_attach, inf_child_post_startup_inferior)
4414 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4417 2014-03-12 Pedro Alves <palves@redhat.com>
4419 * nto-procfs.c: Include inf-child.h.
4420 (procfs_ops): Delete global.
4421 (procfs_can_run): Delete method.
4422 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4423 target pointer instead of referencing procfs_ops.
4424 (procfs_prepare_to_store): Delete.
4425 (init_procfs_ops): Delete function.
4426 (procfs_target): New function, based on init_procfs_ops, but
4427 inherit inf_child_target.
4428 (_initialize_procfs): Use procfs_target.
4430 2014-03-12 Pedro Alves <palves@redhat.com>
4432 * windows-nat.c: Include inf-child.h.
4433 (windows_ops): Delete global.
4434 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4436 (init_windows_ops): Delete function.
4437 (windows_target): New function, based on init_windows_ops, but
4438 inherit inf_child_target.
4439 (_initialize_windows_nat): Use windows_target. Install x86
4440 specific target methods here.
4442 2014-03-10 Doug Evans <xdje42@gmail.com>
4444 * guile/guile.c (call_initialize_gdb_module): New function.
4445 (initialize_guile): Replace call to scm_init_guile with call to
4448 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4450 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4451 in call to TYPE_CODE macro.
4453 2014-03-10 Jerome Guitton <guitton@adacore.com>
4455 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4456 Resolve tagged types to full view.
4458 2014-03-10 Hui Zhu <hui@codesourcery.com>
4460 * target.h (target_insert_breakpoint): Remove "hardware" from its
4463 2014-03-07 Doug Evans <dje@google.com>
4465 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4467 2014-03-07 Doug Evans <dje@google.com>
4469 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4470 Remove unused local comp_dir_attr. Assert exactly one of
4471 stub_comp_unit_die, stub_comp_dir is non-NULL.
4473 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4475 * target.h (complete_target_initialization, add_target):
4478 2014-03-07 Pedro Alves <palves@redhat.com>
4480 * go32-nat.c: Include inf-child.h.
4481 (go32_ops): Delete global.
4482 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4484 (go32_create_inferior): Push the passed in target pointer instead
4485 of referencing go32_ops.
4486 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4487 (go32_target): New function, based on init_go32_ops, but inherit
4489 (_initialize_go32_nat): Use go32_target. Move parts of
4492 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4494 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4495 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4496 SYMBOL_VALUE_ADDRESS.
4497 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4499 2014-03-06 Yao Qi <yao@codesourcery.com>
4501 * breakpoint.c (get_tracepoint_by_number): Remove argument
4502 optional_p. All callers updated. Adjust comments. Update
4504 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4506 2014-03-06 Yao Qi <yao@codesourcery.com>
4508 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4509 early if get_number returns zero. Use 'p' instead of 'args'.
4511 2014-03-06 Yao Qi <yao@codesourcery.com>
4513 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4516 2014-03-06 Yao Qi <yao@codesourcery.com>
4518 PR breakpoints/16508
4519 * tracepoint.c (check_trace_running): New function.
4520 (trace_find_command): Move code to check_trace_running and
4521 call check_trace_running.
4522 (trace_find_pc_command): Likewise.
4523 (trace_find_tracepoint_command): Likewise.
4524 (trace_find_line_command): Likewise.
4525 (trace_find_range_command): Likewise.
4526 * tracepoint.h (check_trace_running): Likewise.
4527 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4529 2014-03-06 Yao Qi <yao@codesourcery.com>
4531 * target.h (struct target_ops) <to_traceframe_info>: Use
4532 TARGET_DEFAULT_NORETURN (tcomplain ()).
4533 * target-delegates.c: Regenerated.
4535 2014-03-05 Pedro Alves <palves@redhat.com>
4538 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4539 void. Update comment.
4540 (dcache_xfer_memory): Delete.
4541 (dcache_read_memory_partial): New, based on the read bits of
4543 (dcache_update): Add status parameter. Use ULONGEST for len, and
4544 adjust. Discard cache lines if the reason for the update was
4546 * dcache.h (dcache_xfer_memory): Delete declaration.
4547 (dcache_read_memory_partial): New declaration.
4548 (dcache_update): Update prototype.
4549 * target.c (raw_memory_xfer_partial): Update the dcache here.
4550 (memory_xfer_partial_1): Don't handle dcache writes here.
4552 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4554 * remote-sim.c (gdbsim_load): Add const to prog.
4556 2014-03-03 Tom Tromey <tromey@redhat.com>
4558 * elfread.c (probe_key): Change to bfd_data.
4559 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4560 now per-BFD, not per-objfile.
4561 * stap-probe.c (stap_probe_destroy): Update comment.
4562 (handle_stap_probe): Allocate on the per-BFD obstack.
4564 2014-03-03 Tom Tromey <tromey@redhat.com>
4566 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4567 * breakpoint.c (create_longjmp_master_breakpoint): Use
4569 (add_location_to_breakpoint, bkpt_probe_insert_location)
4570 (bkpt_probe_remove_location): Update.
4571 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4572 * elfread.c (elf_symfile_relocate_probe): Remove.
4573 (elf_probe_fns): Update.
4574 (insert_exception_resume_breakpoint): Change type of "probe"
4575 parameter to bound_probe.
4576 (check_exception_resume): Update.
4577 * objfiles.c (objfile_relocate1): Don't relocate probes.
4578 * probe.c (bound_probe_s): New typedef.
4579 (parse_probes): Use get_probe_address. Set sal's objfile.
4580 (find_probe_by_pc): Return a bound_probe.
4581 (collect_probes): Return a VEC(bound_probe_s).
4582 (compare_probes): Update.
4583 (gen_ui_out_table_header_info): Change type of "probes"
4585 (info_probes_for_ops): Update.
4586 (get_probe_address): New function.
4587 (probe_safe_evaluate_at_pc): Update.
4588 * probe.h (struct probe_ops) <get_probe_address>: New field.
4589 <set_semaphore, clear_semaphore>: Add objfile parameter.
4590 (struct probe) <objfile>: Remove field.
4592 <address>: Update comment.
4593 (struct bound_probe): New.
4594 (find_probe_by_pc): Return a bound_probe.
4595 (get_probe_address): Declare.
4596 * solib-svr4.c (struct probe_and_action) <address>: New field.
4597 (hash_probe_and_action, equal_probe_and_action): Update.
4598 (register_solib_event_probe): Add address parameter.
4599 (solib_event_probe_at): Update.
4600 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4602 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4603 (stap_get_probe_address): New function.
4604 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4605 (compile_probe_arg): Update.
4606 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4608 (handle_stap_probe): Don't relocate the probe.
4609 (stap_relocate): Remove.
4610 (stap_gen_info_probes_table_values): Update.
4611 (stap_probe_ops): Remove stap_relocate.
4612 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4613 (debug_sym_probe_fns): Update.
4614 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4615 * symtab.c (init_sal): Use memset.
4616 * symtab.h (struct symtab_and_line) <objfile>: New field.
4617 * tracepoint.c (start_tracing, stop_tracing): Update.
4619 2014-03-03 Tom Tromey <tromey@redhat.com>
4621 * probe.h (parse_probes, find_probe_by_pc)
4622 (find_probes_in_objfile): Fix comments.
4624 2014-03-02 Doug Evans <xdje42@gmail.com>
4626 * infrun.c (handle_signal_stop): Replace test for
4627 TARGET_WAITKIND_STOPPED with an assert.
4629 2014-03-02 Doug Evans <xdje42@gmail.com>
4631 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4633 2014-03-02 Doug Evans <xdje42@gmail.com>
4635 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4637 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4639 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4641 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4643 * i386obsd-nat.c: Include "obsd-nat.h".
4644 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4646 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4648 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4650 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4652 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4654 * mips64obsd-nat.c: Include "obsd-nath".
4655 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4657 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4659 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4661 * amd64obsd-nat.c: Include "obsd-nat,h.
4662 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4664 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4666 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4668 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4669 (find_overload_match): Update call to find_oload_champ.
4670 (find_oload_champ_namespace_loop): Likewise
4672 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4674 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4676 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4677 * config/sparc/obsd64.mh: New file.
4678 * sparc64obsd-nat.c: New file.
4680 * obsd-nat.h: New file.
4681 * obsd-nat.c: New file.
4682 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4683 (ALLDEPFILES): Add obsd-nat.c.
4685 2014-02-28 Tom Tromey <tromey@redhat.com>
4687 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4688 * cli-out.h (cli_ui_out_impl): Now const.
4689 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4690 * ui-out.c (struct ui_out) <impl>: Now const.
4691 (default_ui_out_impl): Now const.
4692 (ui_out_new): Make 'impl' parameter const.
4693 * ui-out.h (ui_out_new): Update.
4695 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4697 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4699 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4701 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4703 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 Additional PR 8882 fix.
4706 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4708 2014-02-27 Pedro Alves <palves@redhat.com>
4710 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4713 2014-02-27 Pedro Alves <palves@redhat.com>
4716 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4717 * nat/linux-waitpid.c: Include string.h.
4718 (status_to_str): Moved here and made extern.
4719 * nat/linux-waitpid.h (status_to_str): New declaration.
4721 2014-02-27 Hui Zhu <hui@codesourcery.com>
4724 * infrun.c (ptid_match): Move ...
4725 * common/ptid.c (ptid_match): ... here.
4726 * inferior.h (ptid_match): Move ...
4727 * common/ptid.h (ptid_match): ... here.
4729 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4731 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4732 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4735 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4737 * obsd-tdep.c (obsd_auxv_parse): New function.
4738 (obsd_init_abi): Set auxv_parse.
4740 * gdbarch.sh (auxv_parse): New.
4741 * gdbarch.h: Regenerated.
4742 * gdbarch.c: Regenerated.
4743 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4745 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4747 * guile/scm-value.c (gdbscm_history_append_x): New function.
4748 (value_functions): Add it.
4750 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4752 * dwarf2read.c (attr_value_as_address): New function.
4753 (dwarf2_find_base_address, read_call_site_scope): Use
4754 attr_value_as_address in place of DW_ADDR.
4755 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4756 the low and high addresses. Slight rework of the handling
4757 of the high pc being a constant form, and limit it to
4758 DWARF verson 4 or higher.
4759 (dwarf2_record_block_ranges): Likewise.
4760 (read_partial_die): Likewise.
4761 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4763 2014-02-26 Tom Tromey <tromey@redhat.com>
4765 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4767 2014-02-26 Tom Tromey <tromey@redhat.com>
4769 * elfread.c (elf_read_minimal_symbols): Return early if
4770 minimal symbols have already been read. Add "ei" parameter.
4771 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4772 * minsyms.c (prim_record_minimal_symbol_full): Update.
4773 * objfiles.h (struct objstats) <n_minsyms>: Move...
4774 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4775 * symmisc.c (print_objfile_statistics): Update.
4777 2014-02-26 Tom Tromey <tromey@redhat.com>
4779 * elfread.c (elf_read_minimal_symbols): New function, from
4781 (elf_symfile_read): Call it.
4783 2014-02-26 Tom Tromey <tromey@redhat.com>
4785 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4786 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4787 (lookup_minimal_symbol_solib_trampoline)
4788 (lookup_minimal_symbol_by_pc_section_1)
4789 (lookup_minimal_symbol_and_objfile): Update.
4790 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4791 Don't allocate a minimal symbol if minsyms have already been read.
4792 (build_minimal_symbol_hash_tables): Update.
4793 (install_minimal_symbols): Do nothing if minsyms already read.
4794 Use the per-BFD obstack.
4795 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4796 * objfiles.c (allocate_objfile): Call
4797 terminate_minimal_symbol_table later.
4798 (have_minimal_symbols): Update.
4799 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4800 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4801 Move from struct objfile.
4802 <minsyms_read>: New field.
4803 (struct objfile) <msymbols, minimal_symbol_count,
4804 msymbol_hash, msymbol_demangled_hash>: Move.
4805 (ALL_OBJFILE_MSYMBOLS): Update.
4806 * symfile.c (read_symbols): Set minsyms_read.
4807 (reread_symbols): Update.
4808 * symmisc.c (dump_objfile, dump_msymbols): Update.
4810 2014-02-26 Tom Tromey <tromey@redhat.com>
4812 * minsyms.c (msymbols_sort): Remove.
4813 * minsyms.h (msymbols_sort): Remove.
4814 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4815 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4816 * elfread.c (elf_symtab_read): Don't add section offsets.
4817 * xcoffread.c (record_minimal_symbol): Don't add section offset
4818 to minimal symbol address.
4819 * somread.c (text_offset, data_offset): Remove.
4820 (som_symtab_read): Don't add section offsets to minimal symbol
4822 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4823 Don't add section offsets to minimal symbols.
4824 * coffread.c (coff_symtab_read): Don't add section offsets
4825 to minimal symbol addresses.
4826 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4827 to minimal symbol addresses.
4828 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4829 section offset to minimal symbol addresses.
4830 * mdebugread.c (parse_partial_symbols): Don't add section
4831 offset to minimal symbol addresses.
4832 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4833 offset to minimal symbol addresses.
4835 2014-02-26 Tom Tromey <tromey@redhat.com>
4837 * ada-lang.c (ada_main_name): Update.
4838 (ada_add_standard_exceptions): Update.
4839 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4840 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4841 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4842 * auxv.c (ld_so_xfer_auxv): Update.
4843 * avr-tdep.c (avr_scan_prologue): Update.
4844 * ax-gdb.c (gen_var_ref): Update.
4845 * blockframe.c (get_pc_function_start)
4846 (find_pc_partial_function_gnu_ifunc): Update.
4847 * breakpoint.c (create_overlay_event_breakpoint)
4848 (create_longjmp_master_breakpoint)
4849 (create_std_terminate_master_breakpoint)
4850 (create_exception_master_breakpoint): Update.
4851 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4852 * c-valprint.c (c_val_print): Update.
4853 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4854 * common/agent.c (agent_look_up_symbols): Update.
4855 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4856 * dwarf2loc.c (call_site_to_target_addr): Update.
4857 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4858 * elfread.c (elf_gnu_ifunc_record_cache)
4859 (elf_gnu_ifunc_resolve_by_got): Update.
4860 * findvar.c (default_read_var_value): Update.
4861 * frame.c (inside_main_func): Update.
4862 * frv-tdep.c (frv_frame_this_id): Update.
4863 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4864 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4866 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4867 (hppa_hpux_find_dummy_bpaddr): Update.
4868 * hppa-tdep.c (hppa_symbol_address): Update.
4869 * infcmd.c (until_next_command): Update.
4870 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4872 * linespec.c (minsym_found, add_minsym): Update.
4873 * linux-nat.c (get_signo): Update.
4874 * linux-thread-db.c (inferior_has_bug): Update.
4875 * m32c-tdep.c (m32c_return_value)
4876 (m32c_m16c_address_to_pointer): Update.
4877 * m32r-tdep.c (m32r_frame_this_id): Update.
4878 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4879 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4880 * maint.c (maintenance_translate_address): Update.
4881 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4882 (frob_address): New function.
4883 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4884 frob_address. Rename parameter to "pc_in".
4885 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4887 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4889 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4890 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4891 * objc-lang.c (find_objc_msgsend): Update.
4892 * objfiles.c (objfile_relocate1): Update.
4893 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4894 * p-valprint.c (pascal_val_print): Update.
4895 * parse.c (write_exp_msymbol): Update.
4896 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4897 (ppc_elfv2_skip_entrypoint): Update.
4898 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4899 * printcmd.c (build_address_symbolic, msym_info)
4900 (address_info): Update.
4901 * proc-service.c (ps_pglobal_lookup): Update.
4902 * psymtab.c (find_pc_sect_psymtab_closer)
4903 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4904 Change msymbol parameter to bound_minimal_symbol.
4905 * ravenscar-thread.c (get_running_thread_id): Update.
4906 * remote.c (remote_check_symbols): Update.
4907 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4909 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4910 * solib-dsbt.c (lm_base): Update.
4911 * solib-frv.c (lm_base, main_got): Update.
4912 * solib-irix.c (locate_base): Update.
4913 * solib-som.c (som_solib_create_inferior_hook)
4914 (link_map_start): Update.
4915 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4916 * solib-svr4.c (elf_locate_base, enable_break): Update.
4917 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4918 (flush_ea_cache): Update.
4919 * stabsread.c (define_symbol, scan_file_globals): Update.
4920 * stack.c (find_frame_funname): Update.
4921 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4922 (debug_qf_find_pc_sect_symtab): Update.
4923 * symfile.c (simple_read_overlay_table)
4924 (simple_overlay_update): Update.
4925 * symfile.h (struct quick_symbol_functions)
4926 <find_pc_sect_symtab>: Change type of msymbol to
4927 bound_minimal_symbol.
4928 * symmisc.c (dump_msymbols): Update.
4929 * symtab.c (find_pc_sect_symtab_via_partial)
4930 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4931 (search_symbols, print_msymbol_info): Update.
4932 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4933 (MSYMBOL_VALUE_ADDRESS): Redefine.
4934 (BMSYMBOL_VALUE_ADDRESS): New macro.
4935 * tracepoint.c (scope_info): Update.
4936 * tui/tui-disasm.c (tui_find_disassembly_address)
4937 (tui_get_begin_asm_address): Update.
4938 * valops.c (find_function_in_inferior): Update.
4939 * value.c (value_static_field, value_fn_field): Update.
4941 2014-02-26 Tom Tromey <tromey@redhat.com>
4943 * ada-lang.c (ada_update_initial_language): Update.
4944 (ada_main_name, ada_has_this_exception_support): Update.
4945 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4946 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4947 * arm-tdep.c (arm_skip_stub): Update.
4948 * auxv.c (ld_so_xfer_auxv): Update.
4949 * avr-tdep.c (avr_scan_prologue): Update.
4950 * ax-gdb.c (gen_var_ref): Update.
4951 * breakpoint.c (struct breakpoint_objfile_data)
4952 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4953 type to bound_minimal_symbol.
4954 (create_overlay_event_breakpoint)
4955 (create_longjmp_master_breakpoint)
4956 (create_std_terminate_master_breakpoint)
4957 (create_exception_master_breakpoint): Update.
4958 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4959 * c-exp.y (classify_name): Update.
4960 * coffread.c (coff_symfile_read): Update.
4961 * common/agent.c (agent_look_up_symbols): Update.
4962 * d-lang.c (d_main_name): Update.
4963 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4964 * dec-thread.c (enable_dec_thread): Update.
4965 * dwarf2loc.c (call_site_to_target_addr): Update.
4966 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4967 * eval.c (evaluate_subexp_standard): Update.
4968 * findvar.c (struct minsym_lookup_data) <result>: Change type
4969 to bound_minimal_symbol.
4971 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4972 * frame.c (inside_main_func): Update.
4973 * frv-tdep.c (frv_frame_this_id): Update.
4974 * gcore.c (call_target_sbrk): Update.
4975 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4976 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4978 * go-lang.c (go_main_name): Update.
4979 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4980 (hppa_hpux_find_import_stub_for_addr): Update.
4981 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4982 Update. Change return type.
4983 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4985 * jit.c (jit_breakpoint_re_set_internal): Update.
4986 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4988 * linux-nat.c (get_signo): Update.
4989 * linux-thread-db.c (inferior_has_bug): Update
4990 * m32c-tdep.c (m32c_return_value)
4991 (m32c_m16c_address_to_pointer): Update.
4992 * m32r-tdep.c (m32r_frame_this_id): Update.
4993 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4994 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4995 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4996 lookup_minimal_symbol. Change return type.
4997 (lookup_minimal_symbol): Remove.
4998 (lookup_bound_minimal_symbol): Update.
4999 (lookup_minimal_symbol_text): Change return type.
5000 (lookup_minimal_symbol_solib_trampoline): Change return type.
5001 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5002 (lookup_minimal_symbol_solib_trampoline): Change return type.
5003 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5004 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5005 (value_nsstring, find_imps): Update.
5006 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5007 * p-lang.c (pascal_main_name): Update.
5008 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5009 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5010 * proc-service.c (ps_pglobal_lookup): Update.
5011 * ravenscar-thread.c (get_running_thread_msymbol): Change
5013 (has_ravenscar_runtime, get_running_thread_id): Update.
5014 * remote.c (remote_check_symbols): Update.
5015 * sol-thread.c (ps_pglobal_lookup): Update.
5016 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5017 * solib-dsbt.c (lm_base): Update.
5018 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5020 * solib-irix.c (locate_base): Update.
5021 * solib-som.c (som_solib_create_inferior_hook)
5022 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5024 * solib-spu.c (spu_enable_break): Update.
5025 * solib-svr4.c (elf_locate_base, enable_break): Update.
5026 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5027 (flush_ea_cache): Update.
5028 * stabsread.c (define_symbol): Update.
5029 * symfile.c (simple_read_overlay_table): Update.
5030 * symtab.c (find_pc_sect_line): Update.
5031 * tracepoint.c (scope_info): Update.
5032 * tui-disasm.c (tui_get_begin_asm_address): Update.
5033 * value.c (value_static_field): Update.
5035 2014-02-26 Tom Tromey <tromey@redhat.com>
5037 * minsyms.c (prim_record_minimal_symbol_full): Use
5038 SET_MSYMBOL_VALUE_ADDRESS.
5039 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5040 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5041 SET_MSYMBOL_VALUE_ADDRESS.
5042 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5043 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5045 2014-02-26 Tom Tromey <tromey@redhat.com>
5047 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5048 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5049 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5050 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5051 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5052 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5053 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5054 * ada-lang.c (ada_main_name): Update.
5055 (ada_lookup_simple_minsym): Update.
5056 (ada_make_symbol_completion_list): Update.
5057 (ada_add_standard_exceptions): Update.
5058 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5059 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5060 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5061 * arm-tdep.c (skip_prologue_function): Update.
5062 (arm_skip_stack_protector, arm_skip_stub): Update.
5063 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5064 (arm_wince_skip_main_prologue): Update.
5065 * auxv.c (ld_so_xfer_auxv): Update.
5066 * avr-tdep.c (avr_scan_prologue): Update.
5067 * ax-gdb.c (gen_var_ref): Update.
5068 * block.c (call_site_for_pc): Update.
5069 * blockframe.c (get_pc_function_start): Update.
5070 (find_pc_partial_function_gnu_ifunc): Update.
5071 * breakpoint.c (create_overlay_event_breakpoint): Update.
5072 (create_longjmp_master_breakpoint): Update.
5073 (create_std_terminate_master_breakpoint): Update.
5074 (create_exception_master_breakpoint): Update.
5075 (resolve_sal_pc): Update.
5076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5077 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5079 * c-valprint.c (c_val_print): Update.
5080 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5081 * coffread.c (coff_symfile_read): Update.
5082 * common/agent.c (agent_look_up_symbols): Update.
5083 * dbxread.c (find_stab_function_addr): Update.
5084 (end_psymtab): Update.
5085 * dwarf2loc.c (call_site_to_target_addr): Update.
5086 (func_verify_no_selftailcall): Update.
5087 (tailcall_dump): Update.
5088 (call_site_find_chain_1): Update.
5089 (dwarf_expr_reg_to_entry_parameter): Update.
5090 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5091 (elf_gnu_ifunc_resolve_by_got): Update.
5092 * f-valprint.c (info_common_command): Update.
5093 * findvar.c (read_var_value): Update.
5094 * frame.c (get_prev_frame_1): Update.
5095 (inside_main_func): Update.
5096 * frv-tdep.c (frv_skip_main_prologue): Update.
5097 (frv_frame_this_id): Update.
5098 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5099 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5100 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5101 (gnuv3_skip_trampoline): Update.
5102 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5103 (hppa64_hpux_in_solib_call_trampoline): Update.
5104 (hppa_hpux_skip_trampoline_code): Update.
5105 (hppa64_hpux_search_dummy_call_sequence): Update.
5106 (hppa_hpux_find_import_stub_for_addr): Update.
5107 (hppa_hpux_find_dummy_bpaddr): Update.
5108 * hppa-tdep.c (hppa_symbol_address)
5109 (hppa_lookup_stub_minimal_symbol): Update.
5110 * i386-tdep.c (i386_skip_main_prologue): Update.
5111 (i386_pe_skip_trampoline_code): Update.
5112 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5113 * infcall.c (get_function_name): Update.
5114 * infcmd.c (until_next_command): Update.
5115 * jit.c (jit_breakpoint_re_set_internal): Update.
5116 (jit_inferior_init): Update.
5117 * linespec.c (minsym_found): Update.
5118 (add_minsym): Update.
5119 * linux-fork.c (info_checkpoints_command): Update.
5120 * linux-nat.c (get_signo): Update.
5121 * linux-thread-db.c (inferior_has_bug): Update.
5122 * m32c-tdep.c (m32c_return_value): Update.
5123 (m32c_m16c_address_to_pointer): Update.
5124 (m32c_m16c_pointer_to_address): Update.
5125 * m32r-tdep.c (m32r_frame_this_id): Update.
5126 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5127 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5128 * maint.c (maintenance_translate_address): Update.
5129 * minsyms.c (add_minsym_to_hash_table): Update.
5130 (add_minsym_to_demangled_hash_table): Update.
5131 (msymbol_objfile): Update.
5132 (lookup_minimal_symbol): Update.
5133 (iterate_over_minimal_symbols): Update.
5134 (lookup_minimal_symbol_text): Update.
5135 (lookup_minimal_symbol_by_pc_name): Update.
5136 (lookup_minimal_symbol_solib_trampoline): Update.
5137 (lookup_minimal_symbol_by_pc_section_1): Update.
5138 (lookup_minimal_symbol_and_objfile): Update.
5139 (prim_record_minimal_symbol_full): Update.
5140 (compare_minimal_symbols): Update.
5141 (compact_minimal_symbols): Update.
5142 (build_minimal_symbol_hash_tables): Update.
5143 (install_minimal_symbols): Update.
5144 (terminate_minimal_symbol_table): Update.
5145 (find_solib_trampoline_target): Update.
5146 (minimal_symbol_upper_bound): Update.
5147 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5148 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5149 (mips_skip_pic_trampoline_code): Update.
5150 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5151 * objc-lang.c (selectors_info): Update.
5152 (classes_info): Update.
5153 (find_methods): Update.
5154 (find_imps): Update.
5155 (find_objc_msgsend): Update.
5156 * objfiles.c (objfile_relocate1): Update.
5157 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5158 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5159 * p-valprint.c (pascal_val_print): Update.
5160 * parse.c (write_exp_msymbol): Update.
5161 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5162 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5163 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5164 * printcmd.c (build_address_symbolic): Update.
5166 (address_info): Update.
5167 * proc-service.c (ps_pglobal_lookup): Update.
5168 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5169 (find_pc_sect_psymtab): Update.
5170 * python/py-framefilter.c (py_print_frame): Update.
5171 * ravenscar-thread.c (get_running_thread_id): Update.
5172 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5174 * remote.c (remote_check_symbols): Update.
5175 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5176 (rs6000_skip_trampoline_code): Update.
5177 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5178 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5179 * solib-dsbt.c (lm_base): Update.
5180 * solib-frv.c (lm_base): Update.
5182 * solib-irix.c (locate_base): Update.
5183 * solib-som.c (som_solib_create_inferior_hook): Update.
5184 (som_solib_desire_dynamic_linker_symbols): Update.
5185 (link_map_start): Update.
5186 * solib-spu.c (spu_enable_break): Update.
5187 (ocl_enable_break): Update.
5188 * solib-svr4.c (elf_locate_base): Update.
5189 (enable_break): Update.
5190 * spu-tdep.c (spu_get_overlay_table): Update.
5191 (spu_catch_start): Update.
5192 (flush_ea_cache): Update.
5193 * stabsread.c (define_symbol): Update.
5194 (scan_file_globals): Update.
5195 * stack.c (find_frame_funname): Update.
5196 (frame_info): Update.
5197 * symfile.c (simple_read_overlay_table): Update.
5198 (simple_overlay_update): Update.
5199 * symmisc.c (dump_msymbols): Update.
5200 * symtab.c (fixup_section): Update.
5201 (find_pc_sect_line): Update.
5202 (skip_prologue_sal): Update.
5203 (search_symbols): Update.
5204 (print_msymbol_info): Update.
5205 (rbreak_command): Update.
5206 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5207 (completion_list_objc_symbol): Update.
5208 (default_make_symbol_completion_list_break_on): Update.
5209 * tracepoint.c (scope_info): Update.
5210 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5211 (tui_get_begin_asm_address): Update.
5212 * valops.c (find_function_in_inferior): Update.
5213 * value.c (value_static_field): Update.
5214 (value_fn_field): Update.
5216 2014-02-26 Tom Tromey <tromey@redhat.com>
5218 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5219 bound minimal symbols. Move code that knows about minsym
5221 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5223 * minsyms.h (minimal_symbol_upper_bound): Declare.
5224 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5225 minimal_symbol_upper_bound.
5227 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5229 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5230 Use the type's name if its basic type does not have a tag.
5232 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5234 * dwarf2read.c (read_subrange_type): Add comment.
5236 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5238 * dwarf2read.c (update_enumeration_type_from_children): New
5239 function, mostly extracted from process_structure_scope.
5240 (read_enumeration_type): Call update_enumeration_type_from_children.
5241 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5242 and flag_flag_enum fields.
5244 2014-02-26 Pedro Alves <palves@redhat.com>
5246 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5247 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5248 to_xfer_partial method.
5250 2014-02-26 Pedro Alves <palves@redhat.com>
5252 * target.c (complete_target_initialization): Don't install
5253 default_xfer_partial as to_xfer_partial hook.
5255 (update_current_target): Don't INHERIT nor de_fault
5256 deprecated_xfer_memory. Delete de_fault macro.
5257 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5258 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5259 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5262 2014-02-26 Pedro Alves <palves@redhat.com>
5264 * go32-nat.c (my_write_child): New function.
5265 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5266 (go32_xfer_partial): New function.
5267 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5268 Instead install a to_xfer_partial hook.
5270 2014-02-26 Pedro Alves <palves@redhat.com>
5272 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5273 to_xfer_partial helper. Rewrite.
5274 (procfs_xfer_partial): New function.
5275 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5276 Install a to_xfer_partial hook.
5278 2014-02-26 Pedro Alves <palves@redhat.com>
5280 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5281 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5282 (m32r_xfer_partial): New function.
5283 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5284 Install a to_xfer_partial hook.
5286 2014-02-26 Pedro Alves <palves@redhat.com>
5288 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5290 (mips_xfer_partial): New function.
5291 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5292 hook. Install a to_xfer_partial hook.
5294 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5296 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5297 * gdbtypes.c (create_array_type_with_stride): New function,
5298 renaming create_array_type, but with an added parameter
5299 called "bit_stride".
5300 (create_array_type): Re-implement using
5301 create_array_type_with_stride.
5302 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5303 and DW_AT_bit_stride attributes.
5305 2014-02-26 Pedro Alves <palves@redhat.com>
5307 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5308 task-specific breakpoints.
5310 2014-02-25 Pedro Alves <palves@redhat.com>
5312 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5313 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5315 2014-02-25 Stan Shebs <stan@codesourcery.com>
5317 * defs.h: Annotate comments for Doxygen.
5319 2014-02-25 Tom Tromey <tromey@redhat.com>
5321 * target.h (target_ignore): Don't declare.
5322 * target.c (target_ignore): Remove.
5324 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5327 * auto-load.c (auto_load_objfile_script_1): Change filename to
5330 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5332 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5333 documentation. Adjust prototype to match the target_ops
5334 to_xfer_partial method. Adjust implementation accordingly.
5336 2014-02-25 Hui Zhu <hui@codesourcery.com>
5338 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5341 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5343 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5344 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5345 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5346 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5347 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5348 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5349 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5350 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5352 (rl78_register_type): Use a data pointer type for SP and
5353 new pseudo registers mentioned above. Use a 16 bit integer
5354 type for all other register pairs.
5355 (rl78_register_name, rl78_g10_register_name): Update for
5356 new pseudo registers.
5357 (rl78_pseudo_register_read): Likewise.
5358 (rl78_pseudo_register_write): Likewise.
5359 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5360 to the newly added pseudo registers.
5362 2014-02-24 Doug Evans <dje@google.com>
5364 * value.c (record_latest_value): Fix comment.
5365 * printcmd.c (print_command_1): Remove code to handle -1 return from
5366 record_latest_value.
5368 2014-02-24 Pedro Alves <palves@redhat.com>
5370 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5371 deprecated_xfer_memory hook.
5372 (procfs_xfer_partial): Call procfs_xfer_memory instead
5373 of the deprecated_xfer_memory target hook.
5374 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5377 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5379 * windows-nat.c (windows_xfer_shared_libraries): Return
5380 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5381 requested object is TARGET_OBJECT_LIBRARIES.
5383 2014-02-24 Yao Qi <yao@codesourcery.com>
5385 * target.h (enum target_xfer_status)
5386 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5387 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5389 * corefile.c (memory_error_message): User updated.
5390 * exec.c (section_table_read_available_memory): Likewise.
5391 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5392 * target.c (target_xfer_status_to_string): Likewise.
5393 (raw_memory_xfer_partial): Likewise.
5394 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5395 * valops.c (read_value_memory): Likewise.
5396 * exec.h: Update comments.
5398 2014-02-24 Yao Qi <yao@codesourcery.com>
5400 * target.c (target_xfer_status_to_string): Rename argument err
5402 * target.h (target_xfer_status_to_string): Update declaration.
5403 Replace target_xfer_error_to_string with
5404 target_xfer_status_to_string in comment.
5406 2014-02-24 Yao Qi <yao@codesourcery.com>
5408 * mips-linux-nat.c (super_close): Update its type.
5409 (mips_linux_close): Pass 'self' to super_close.
5411 2014-02-24 Yao Qi <yao@codesourcery.com>
5413 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5414 * corefile.c (read_memory): Adjusted.
5415 * target.c (target_write_with_progress): Adjusted.
5417 2014-02-23 Yao Qi <yao@codesourcery.com>
5421 2013-10-25 Yao Qi <yao@codesourcery.com>
5423 * remote.c (remote_traceframe_info): Return early if
5424 traceframe is not selected.
5426 2013-07-19 Yao Qi <yao@codesourcery.com>
5428 * target.c (update_current_target): Change the default action
5429 of 'to_traceframe_info' from tcomplain to return_zero.
5430 * target.h (struct target_ops) <to_traceframe_info>: Add more
5433 2014-02-23 Yao Qi <yao@codesourcery.com>
5435 * valops.c (read_value_memory): Rewrite it. Call
5436 target_xfer_partial in a loop.
5437 * exec.h (section_table_available_memory): Remove declaration.
5438 Move comments to ...
5439 * exec.c (section_table_available_memory): ... here. Make it
5442 2014-02-23 Yao Qi <yao@codesourcery.com>
5444 * exec.c (section_table_read_available_memory): New function.
5445 * exec.h (section_table_read_available_memory): Declare.
5446 * ctf.c (ctf_xfer_partial): Call
5447 section_table_read_available_memory.
5448 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5450 2014-02-23 Yao Qi <yao@codesourcery.com>
5452 * ctf.c (ctf_xfer_partial): Move code to ...
5453 * exec.c (exec_read_partial_read_only): ... it. New function.
5454 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5455 * tracefile.c: Include "exec.h".
5456 * exec.h (exec_read_partial_read_only): Declare.
5458 2014-02-23 Yao Qi <yao@codesourcery.com>
5460 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5461 (tfile_has_memory): Remove.
5462 (init_tfile_ops): Don't set fields to_has_all_memory and
5463 to_has_memory of tfile_ops.
5464 * tracefile.c (tracefile_has_all_memory): New function.
5465 (tracefile_has_memory): New function.
5466 (init_tracefile_ops): Initialize fields to_has_all_memory and
5467 to_has_memory of 'ops'.
5469 2014-02-23 Yao Qi <yao@codesourcery.com>
5471 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5472 (ctf_thread_alive, ctf_get_trace_status): Remove.
5473 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5475 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5476 (tfile_has_stack, tfile_has_registers): Remove.
5477 (tfile_thread_alive): Remove.
5478 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5480 * tracefile.c (tracefile_has_stack): New function.
5481 (tracefile_has_registers): New function.
5482 (tracefile_thread_alive): New function.
5483 (tracefile_get_trace_status): New function.
5484 (init_tracefile_ops): New function.
5485 * tracefile.h (init_tracefile_ops): Declare.
5487 2014-02-23 Yao Qi <yao@codesourcery.com>
5489 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5490 (O_LARGEFILE): Likewise.
5491 (tfile_ops): Likewise.
5492 (TRACE_HEADER_SIZE): Likewise.
5493 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5494 (cur_data_size): Likewise.
5495 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5496 (tfile_close, tfile_files_info): Likewise.
5497 (tfile_get_trace_status): Likewise.
5498 (tfile_get_tracepoint_status): Likewise.
5499 (tfile_get_traceframe_address): Likewise.
5500 (tfile_trace_find, match_blocktype): Likewise.
5501 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5502 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5503 (tfile_get_trace_state_variable_value): Likewise.
5504 (tfile_has_all_memory, tfile_has_memory): Likewise.
5505 (tfile_has_stack, tfile_has_registers): Likewise.
5506 (tfile_thread_alive, build_traceframe_info): Likewise.
5507 (tfile_traceframe_info, init_tfile_ops): Likewise.
5508 (_initialize_tracepoint): Don't call init_tfile_ops
5509 and add_target_with_completer.
5510 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5511 exec.h, completer.h and filenames.h.
5512 (_initialize_tracefile_tfile): New function.
5514 2014-02-23 Yao Qi <yao@codesourcery.com>
5516 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5518 (HFILES_NO_SRCDIR): Add tracefile.h.
5519 * ctf.c: Include "tracefile.h".
5520 * tracefile.h: New file.
5521 * tracefile.c: New file
5522 * tracefile-tfile.c: New file.
5523 * tracepoint.c: Include "tracefile.h".
5524 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5525 (stop_reason_names): Add const.
5526 (trace_file_writer_xfree): Move it to tracefile.c.
5527 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5528 (trace_save_ctf): Likewise.
5529 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5530 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5531 (tfile_write_header, tfile_write_regblock_type): Likewise.
5532 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5533 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5534 (tfile_write_raw_data, tfile_end): Likewise.
5535 (tfile_trace_file_writer_new): Likewise.
5536 (free_uploaded_tp): Make it extern.
5537 (free_uploaded_tsv): Make it extern.
5538 (_initialize_tracepoint): Move code to register command 'tsave'
5540 * tracepoint.h (stop_reason_names): Declare.
5541 (struct trace_frame_write_ops): Move it to tracefile.h.
5542 (struct trace_file_write_ops): Likewise.
5543 (struct trace_file_writer): Likewise.
5544 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5546 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5549 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5551 (get_cores_used_by_process): New parameter num_cores, use it.
5552 (linux_xfer_osdata_processes): Pass num_cores to it.
5553 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5556 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5558 * target.c (memory_xfer_partial): Fix length arg in call to
5559 breakpoint_xfer_memory.
5561 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5564 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5565 number comes after the + or - signs. Adjust length of register
5566 name to be extracted.
5568 2014-02-20 Tom Tromey <tromey@redhat.com>
5570 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5571 (ada_varobj_ops): Mark "extern".
5573 2014-02-20 Tom Tromey <tromey@redhat.com>
5575 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5577 2014-02-20 Doug Evans <xdje42@gmail.com>
5579 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5580 All callers updated.
5581 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5582 All callers updated.
5583 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5584 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5586 2014-02-20 lin zuojian <manjian2006@gmail.com>
5587 Joel Brobecker <brobecker@adacore.com>
5588 Doug Evans <xdje42@gmail.com>
5591 * dwarf2read.c (struct die_info): New member in_process.
5592 (reset_die_in_process): New function.
5593 (process_die): Set it at the start, reset when returning.
5594 (inherit_abstract_dies): Only call process_die if origin_child_die
5595 not already being processed.
5597 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5599 * windows-nat.c (handle_unload_dll): Add function documentation.
5600 (do_initial_windows_stuff): Add comment explaining why we wait
5601 until after inferior initialization has finished before
5602 processing all DLLs.
5604 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5606 * windows-nat.c (get_module_name): Delete.
5607 (windows_get_exec_module_filename): New function, mostly
5608 inspired from get_module_name.
5609 (windows_pid_to_exec_file): Replace call to get_module_name
5610 by call to windows_get_exec_module_filename.
5612 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5614 * windows-nat.c (handle_load_dll): Rewrite this function's
5615 introductory comment. Remove code using get_module_name
5616 to get the DLL's name.
5618 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5620 * windows-nat.c (get_windows_debug_event): Ignore
5621 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5622 if windows_initialization_done == 0.
5623 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5624 Adjust implementation to always load all DLLs.
5625 (do_initial_windows_stuff): Replace call to
5626 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5628 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5630 * windows-nat.c (_initialize_windows_nat): Deprecate the
5631 "dll-symbols" command. Turn the "add-shared-symbol-files"
5632 and "assf" aliases into commands, and deprecate them as well.
5633 * NEWS: Add entry explaining that "dll-symbols" and its two
5634 aliases are now deprecated.
5636 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5638 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5639 new-line in debug string. Remove trailing spaces.
5641 2014-02-19 Stan Shebs <stan@codesourcery.com>
5643 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5645 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5647 * NEWS: Add entry for the new feature
5648 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5651 2014-02-19 Stan Shebs <stan@codesourcery.com>
5653 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5655 2014-02-19 Pedro Alves <palves@redhat.com>
5657 * common/ptid.h (struct ptid): Mention that process_stratum
5658 targets should prefer ptid.lwp.
5660 2014-02-19 Pedro Alves <palves@redhat.com>
5662 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5663 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5664 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5665 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5666 store remote thread ids rather than ptid.tid.
5667 (_initialize_remote): Adjust.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target.c (target_get_unwinder): Rewrite.
5672 (target_get_tailcall_unwinder): Rewrite.
5673 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5674 (record_btrace_to_get_tailcall_unwinder): New function.
5675 (init_record_btrace_ops): Update.
5676 * target.h (struct target_ops) <to_get_unwinder,
5677 to_get_tailcall_unwinder>: Now function pointers. Use
5678 TARGET_DEFAULT_RETURN.
5680 2014-02-19 Tom Tromey <tromey@redhat.com>
5682 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5684 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5690 * target-delegates.c: Rebuild.
5691 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5692 TARGET_DEFAULT_FUNC.
5693 * target.c (default_target_decr_pc_after_break): Rename from
5694 forward_target_decr_pc_after_break. Simplify.
5695 (target_decr_pc_after_break): Rely on delegation.
5697 2014-02-19 Tom Tromey <tromey@redhat.com>
5699 * target.c (update_current_target): Do not INHERIT to_doc or
5700 to_magic. Do not de_fault to_open or to_close.
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * gcore.h (objfile_find_memory_regions): Declare.
5705 * gcore.c (objfile_find_memory_regions): No longer static. Add
5707 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5708 * exec.c: Include gcore.h.
5709 (exec_set_find_memory_regions): Remove.
5710 (exec_find_memory_regions): Remove.
5711 (exec_do_find_memory_regions): Remove.
5712 (init_exec_ops): Update.
5713 * defs.h (exec_set_find_memory_regions): Remove.
5715 2014-02-19 Tom Tromey <tromey@redhat.com>
5717 * target-delegates.c: Rebuild.
5718 * target.h (struct target_ops) <to_extra_thread_info,
5719 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5720 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5721 not 0, in TARGET_DEFAULT_RETURN.
5723 2014-02-19 Tom Tromey <tromey@redhat.com>
5725 * target.c (complete_target_initialization): Remove casts. Use
5726 return_zero_has_execution.
5727 (return_zero): Add "ignore" argument.
5728 (return_zero_has_execution): New function.
5729 (init_dummy_target): Remove casts. Use
5730 return_zero_has_execution.
5732 2014-02-19 Tom Tromey <tromey@redhat.com>
5734 * target.c (update_current_target): Update comments. Do not
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5741 * corelow.c (core_read_description): Delegate when needed.
5742 * remote.c (remote_read_description): Delegate when needed.
5743 * target-delegates.c: Rebuild.
5744 * target.c (target_read_description): Rewrite.
5745 * target.h (struct target_ops) <to_read_description>: Update
5746 comment. Use TARGET_DEFAULT_RETURN.
5748 2014-02-19 Tom Tromey <tromey@redhat.com>
5750 * target-delegates.c: Rebuild.
5751 * target.c (update_current_target): Don't inherit or default
5753 (find_default_run_target): Check against delegate_can_run.
5754 * target.h (struct target_ops) <to_can_run>: Use
5755 TARGET_DEFAULT_RETURN.
5757 2014-02-19 Tom Tromey <tromey@redhat.com>
5759 * target-delegates.c: Rebuild.
5760 * target.c (target_disconnect): Unconditionally delegate.
5761 * target.h (struct target_ops) <to_disconnect>: Use
5762 TARGET_DEFAULT_NORETURN.
5764 2014-02-19 Tom Tromey <tromey@redhat.com>
5766 * record.c (record_stop): Unconditionally delegate.
5767 * target-delegates.c: Rebuild.
5768 * target.c (target_stop_recording): Unconditionally delegate.
5769 * target.h (struct target_ops) <to_stop_recording>: Use
5770 TARGET_DEFAULT_IGNORE.
5772 2014-02-19 Tom Tromey <tromey@redhat.com>
5774 * target-delegates.c: Rebuild.
5775 * target.c (target_enable_btrace): Unconditionally delegate.
5776 * target.h (struct target_ops) <to_enable_btrace>: Use
5777 TARGET_DEFAULT_NORETURN.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * target-delegates.c: Rebuild.
5782 * target.c (target_read_btrace): Unconditionally delegate.
5783 * target.h (struct target_ops) <to_read_btrace>: Use
5784 TARGET_DEFAULT_NORETURN.
5786 2014-02-19 Tom Tromey <tromey@redhat.com>
5788 * target-delegates.c: Rebuild.
5789 * target.c (target_teardown_btrace): Unconditionally delegate.
5790 * target.h (struct target_ops) <to_teardown_btrace>: Use
5791 TARGET_DEFAULT_NORETURN.
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * target-delegates.c: Rebuild.
5796 * target.c (target_disable_btrace): Unconditionally delegate.
5797 * target.h (struct target_ops) <to_disable_btrace>: Use
5798 TARGET_DEFAULT_NORETURN.
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target-delegates.c: Rebuild.
5803 * target.c (default_search_memory): New function.
5804 (simple_search_memory): Update comment.
5805 (target_search_memory): Unconditionally delegate.
5806 * target.h (struct target_ops) <to_search_memory>: Use
5807 TARGET_DEFAULT_FUNC.
5809 2014-02-19 Tom Tromey <tromey@redhat.com>
5811 * auxv.c (default_auxv_parse): No longer static.
5812 (target_auxv_parse): Unconditionally delegate.
5813 * auxv.h (default_auxv_parse): Declare.
5814 * target-delegates.c: Rebuild.
5815 * target.c: Include auxv.h.
5816 * target.h (struct target_ops) <to_auxv_parse>: Use
5817 TARGET_DEFAULT_FUNC.
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * target-delegates.c: Rebuild.
5822 * target.c (target_memory_map): Unconditionally delegate.
5823 * target.h (struct target_ops) <to_memory_map>: Use
5824 TARGET_DEFAULT_RETURN.
5826 2014-02-19 Tom Tromey <tromey@redhat.com>
5828 * target-delegates.c: Rebuild.
5829 * target.c (target_thread_alive): Unconditionally delegate.
5830 * target.h (struct target_ops) <to_thread_alive>: Use
5831 TARGET_DEFAULT_RETURN.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target-delegates.c: Rebuild.
5836 * target.c (target_save_record): Unconditionally delegate.
5837 * target.h (struct target_ops) <to_save_record>: Use
5838 TARGET_DEFAULT_NORETURN.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target-delegates.c: Rebuild.
5843 * target.c (target_delete_record): Unconditionally delegate.
5844 * target.h (struct target_ops) <to_delete_record>: Use
5845 TARGET_DEFAULT_NORETURN.
5847 2014-02-19 Tom Tromey <tromey@redhat.com>
5849 * target-delegates.c: Rebuild.
5850 * target.c (target_record_is_replaying): Unconditionally
5852 * target.h (struct target_ops) <to_record_is_replaying>: Use
5853 TARGET_DEFAULT_RETURN.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (target_goto_record_begin): Unconditionally delegate.
5859 * target.h (struct target_ops) <to_goto_record_begin>: Use
5860 TARGET_DEFAULT_NORETURN.
5862 2014-02-19 Tom Tromey <tromey@redhat.com>
5864 * target-delegates.c: Rebuild.
5865 * target.c (target_goto_record_end): Unconditionally delegate.
5866 * target.h (struct target_ops) <to_goto_record_end>: Use
5867 TARGET_DEFAULT_NORETURN.
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5871 * target-delegates.c: Rebuild.
5872 * target.c (target_goto_record): Unconditionally delegate.
5873 * target.h (struct target_ops) <to_goto_record>: Use
5874 TARGET_DEFAULT_NORETURN.
5876 2014-02-19 Tom Tromey <tromey@redhat.com>
5878 * target-delegates.c: Rebuild.
5879 * target.c (target_insn_history): Unconditionally delegate.
5880 * target.h (struct target_ops) <to_insn_history>: Use
5881 TARGET_DEFAULT_NORETURN.
5883 2014-02-19 Tom Tromey <tromey@redhat.com>
5885 * target-delegates.c: Rebuild.
5886 * target.c (target_insn_history_from): Unconditionally delegate.
5887 * target.h (struct target_ops) <to_insn_history_from>: Use
5888 TARGET_DEFAULT_NORETURN.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target-delegates.c: Rebuild.
5893 * target.c (target_insn_history_range): Unconditionally delegate.
5894 * target.h (struct target_ops) <to_insn_history_range>: Use
5895 TARGET_DEFAULT_NORETURN.
5897 2014-02-19 Tom Tromey <tromey@redhat.com>
5899 * target-delegates.c: Rebuild.
5900 * target.c (target_call_history): Unconditionally delegate.
5901 * target.h (struct target_ops) <to_call_history>: Use
5902 TARGET_DEFAULT_NORETURN.
5904 2014-02-19 Tom Tromey <tromey@redhat.com>
5906 * target-delegates.c: Rebuild.
5907 * target.c (target_call_history_from): Unconditionally delegate.
5908 * target.h (struct target_ops) <to_call_history_from>: Use
5909 TARGET_DEFAULT_NORETURN.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target-delegates.c: Rebuild.
5914 * target.c (target_call_history_range): Unconditionally delegate.
5915 * target.h (struct target_ops) <to_call_history_range>: Use
5916 TARGET_DEFAULT_NORETURN.
5918 2014-02-19 Tom Tromey <tromey@redhat.com>
5920 * target-delegates.c: Rebuild.
5921 * target.c (target_verify_memory): Unconditionally delegate.
5922 * target.h (struct target_ops) <to_verify_memory>: Use
5923 TARGET_DEFAULT_NORETURN.
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target-delegates.c: Rebuild.
5928 * target.c (target_core_of_thread): Unconditionally delegate.
5929 * target.h (struct target_ops) <to_core_of_thread>: Use
5930 TARGET_DEFAULT_RETURN.
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5934 * target-delegates.c: Rebuild.
5935 * target.c (target_flash_done): Unconditionally delegate.
5936 * target.h (struct target_ops) <to_flash_done>: Use
5937 TARGET_DEFAULT_NORETURN.
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * target-delegates.c: Rebuild.
5942 * target.c (target_flash_erase): Unconditionally delegate.
5943 * target.h (struct target_ops) <to_flash_erase>: Use
5944 TARGET_DEFAULT_NORETURN.
5946 2014-02-19 Tom Tromey <tromey@redhat.com>
5948 * target-delegates.c: Rebuild.
5949 * target.c (target_get_section_table): Unconditionally delegate.
5950 * target.h (struct target_ops) <to_get_section_table>: Use
5951 TARGET_DEFAULT_RETURN.
5953 2014-02-19 Tom Tromey <tromey@redhat.com>
5955 * target-delegates.c: Rebuild.
5956 * target.c (target_pid_to_str): Unconditionally delegate.
5957 (init_dummy_target): Don't initialize to_pid_to_str.
5958 (default_pid_to_str): Rename from dummy_pid_to_str.
5959 * target.h (struct target_ops) <to_pid_to_str>: Use
5960 TARGET_DEFAULT_FUNC.
5962 2014-02-19 Tom Tromey <tromey@redhat.com>
5964 * target-delegates.c: Rebuild.
5965 * target.c (target_find_new_threads): Unconditionally delegate.
5966 * target.h (struct target_ops) <to_find_new_threads>: Use
5967 TARGET_DEFAULT_RETURN.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target-delegates.c: Rebuild.
5972 * target.c (target_program_signals): Unconditionally delegate.
5973 * target.h (struct target_ops) <to_program_signals>: Use
5974 TARGET_DEFAULT_IGNORE.
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target-delegates.c: Rebuild.
5979 * target.c (target_pass_signals): Unconditionally delegate.
5980 * target.h (struct target_ops) <to_pass_signals>: Use
5981 TARGET_DEFAULT_IGNORE.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target-delegates.c: Rebuild.
5986 * target.c (default_mourn_inferior): New function.
5987 (target_mourn_inferior): Unconditionally delegate.
5988 * target.h (struct target_ops) <to_mourn_inferior>: Use
5989 TARGET_DEFAULT_FUNC.
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target-delegates.c: Rebuild.
5994 * target.c (default_follow_fork): New function.
5995 (target_follow_fork): Unconditionally delegate.
5996 * target.h (struct target_ops) <to_follow_fork>: Use
5997 TARGET_DEFAULT_FUNC.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * target-delegates.c: Rebuild.
6002 * target.c (target_kill): Unconditionally delegate.
6003 * target.h (struct target_ops) <to_kill>: Use
6004 TARGET_DEFAULT_NORETURN.
6006 2014-02-19 Tom Tromey <tromey@redhat.com>
6008 * target-delegates.c: Rebuild.
6009 * target.c (target_masked_watch_num_registers): Unconditionally
6011 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6012 Use TARGET_DEFAULT_RETURN.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target-delegates.c: Rebuild.
6017 * target.c (target_remove_mask_watchpoint): Unconditionally
6019 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6020 TARGET_DEFAULT_RETURN.
6022 2014-02-19 Tom Tromey <tromey@redhat.com>
6024 * target-delegates.c: Rebuild.
6025 * target.c (target_insert_mask_watchpoint): Unconditionally
6027 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6028 TARGET_DEFAULT_RETURN.
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target-delegates.c: Rebuild.
6033 * target.c (target_ranged_break_num_registers): Unconditionally
6035 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6036 Use TARGET_DEFAULT_RETURN.
6038 2014-02-19 Tom Tromey <tromey@redhat.com>
6040 * target-delegates.c: Rebuild.
6041 * target.c (target_fetch_registers): Unconditionally delegate.
6042 * target.h (struct target_ops) <to_fetch_registers>: Use
6043 TARGET_DEFAULT_NORETURN.
6045 2014-02-19 Tom Tromey <tromey@redhat.com>
6047 * target-delegates.c: Rebuild.
6048 * target.c (update_current_target): Don't inherit or default
6050 * target.h (struct target_ops) <to_stop>: Use
6051 TARGET_DEFAULT_IGNORE.
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * target-delegates.c: Rebuild.
6056 * target.c (update_current_target): Don't inherit or default
6057 to_can_run_breakpoint_commands.
6058 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6059 Use TARGET_DEFAULT_RETURN.
6061 2014-02-19 Tom Tromey <tromey@redhat.com>
6063 * target-delegates.c: Rebuild.
6064 * target.c (update_current_target): Don't inherit or default
6065 to_supports_evaluation_of_breakpoint_conditions.
6066 * target.h (struct target_ops)
6067 <to_supports_evaluation_of_breakpoint_conditions>: Use
6068 TARGET_DEFAULT_RETURN.
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * target-delegates.c: Rebuild.
6073 * target.c (update_current_target): Don't inherit or default
6074 to_augmented_libraries_svr4_read.
6075 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6076 Use TARGET_DEFAULT_RETURN.
6078 2014-02-19 Tom Tromey <tromey@redhat.com>
6080 * target-delegates.c: Rebuild.
6081 * target.c (update_current_target): Don't inherit or default
6083 * target.h (struct target_ops) <to_can_use_agent>: Use
6084 TARGET_DEFAULT_RETURN.
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6088 * target-delegates.c: Rebuild.
6089 * target.c (update_current_target): Don't inherit or default
6091 * target.h (struct target_ops) <to_use_agent>: Use
6092 TARGET_DEFAULT_NORETURN.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * target-delegates.c: Rebuild.
6097 * target.c (update_current_target): Don't inherit or default
6099 (return_null): Remove.
6100 * target.h (struct target_ops) <to_traceframe_info>: Use
6101 TARGET_DEFAULT_RETURN.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target-delegates.c: Rebuild.
6106 * target.c (update_current_target): Don't inherit or default
6107 to_static_tracepoint_markers_by_strid.
6108 * target.h (struct target_ops)
6109 <to_static_tracepoint_markers_by_strid>: Use
6110 TARGET_DEFAULT_NORETURN.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target-delegates.c: Rebuild.
6115 * target.c (update_current_target): Don't inherit or default
6116 to_static_tracepoint_marker_at.
6117 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6118 Use TARGET_DEFAULT_RETURN.
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target-delegates.c: Rebuild.
6123 * target.c (update_current_target): Don't inherit or default
6125 * target.h (struct target_ops) <to_set_permissions>: Use
6126 TARGET_DEFAULT_IGNORE.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target-delegates.c: Rebuild.
6131 * target.c (update_current_target): Don't inherit or default
6133 * target.h (struct target_ops) <to_get_tib_address>: Use
6134 TARGET_DEFAULT_NORETURN.
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target-delegates.c: Rebuild.
6139 * target.c (update_current_target): Don't inherit or default
6141 * target.h (struct target_ops) <to_set_trace_notes>: Use
6142 TARGET_DEFAULT_RETURN.
6144 2014-02-19 Tom Tromey <tromey@redhat.com>
6146 * target-delegates.c: Rebuild.
6147 * target.c (update_current_target): Don't initialize
6148 to_set_trace_buffer_size.
6149 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6150 TARGET_DEFAULT_IGNORE.
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6154 * target-delegates.c: Rebuild.
6155 * target.c (update_current_target): Don't inherit or default
6156 to_set_circular_trace_buffer.
6157 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6158 TARGET_DEFAULT_IGNORE.
6160 2014-02-19 Tom Tromey <tromey@redhat.com>
6162 * target-delegates.c: Rebuild.
6163 * target.c (update_current_target): Don't inherit or default
6164 to_set_disconnected_tracing.
6165 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6166 TARGET_DEFAULT_IGNORE.
6168 2014-02-19 Tom Tromey <tromey@redhat.com>
6170 * target-delegates.c: Rebuild.
6171 * target.c (update_current_target): Don't inherit or default
6172 to_get_min_fast_tracepoint_insn_len.
6173 (return_minus_one): Remove.
6174 * target.h (struct target_ops)
6175 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6177 2014-02-19 Tom Tromey <tromey@redhat.com>
6179 * target-delegates.c: Rebuild.
6180 * target.c (update_current_target): Don't inherit or default
6181 to_get_raw_trace_data.
6182 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6183 TARGET_DEFAULT_NORETURN.
6185 2014-02-19 Tom Tromey <tromey@redhat.com>
6187 * target-delegates.c: Rebuild.
6188 * target.c (update_current_target): Don't inherit or default
6189 to_upload_trace_state_variables.
6190 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6191 Use TARGET_DEFAULT_RETURN.
6193 2014-02-19 Tom Tromey <tromey@redhat.com>
6195 * target-delegates.c: Rebuild.
6196 * target.c (update_current_target): Don't inherit or default
6197 to_upload_tracepoints.
6198 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6199 TARGET_DEFAULT_RETURN.
6201 2014-02-19 Tom Tromey <tromey@redhat.com>
6203 * target-delegates.c: Rebuild.
6204 * target.c (update_current_target): Don't inherit or default
6206 * target.h (struct target_ops) <to_save_trace_data>: Use
6207 TARGET_DEFAULT_NORETURN.
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * target-delegates.c: Rebuild.
6212 * target.c (update_current_target): Don't inherit or default
6213 to_get_trace_state_variable_value.
6214 * target.h (struct target_ops)
6215 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target-delegates.c: Rebuild.
6220 * target.c (update_current_target): Don't inherit or default
6222 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6224 2014-02-19 Tom Tromey <tromey@redhat.com>
6226 * target-delegates.c: Rebuild.
6227 * target.c (update_current_target): Don't inherit or default
6229 * target.h (struct target_ops) <to_trace_stop>: Use
6230 TARGET_DEFAULT_NORETURN.
6232 2014-02-19 Tom Tromey <tromey@redhat.com>
6234 * target-delegates.c: Rebuild.
6235 * target.c (update_current_target): Don't inherit or default
6236 to_get_tracepoint_status.
6237 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6238 TARGET_DEFAULT_NORETURN.
6240 2014-02-19 Tom Tromey <tromey@redhat.com>
6242 * target-delegates.c: Rebuild.
6243 * target.c (update_current_target): Don't inherit or default
6244 to_get_trace_status.
6245 * target.h (struct target_ops) <to_get_trace_status>: Use
6246 TARGET_DEFAULT_RETURN.
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6250 * target-delegates.c: Rebuild.
6251 * target.c (update_current_target): Don't inherit or default
6253 * target.h (struct target_ops) <to_trace_start>: Use
6254 TARGET_DEFAULT_NORETURN.
6256 2014-02-19 Tom Tromey <tromey@redhat.com>
6258 * target-delegates.c: Rebuild.
6259 * target.c (update_current_target): Don't inherit or default
6260 to_trace_set_readonly_regions.
6261 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6262 Use TARGET_DEFAULT_NORETURN.
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * target-delegates.c: Rebuild.
6267 * target.c (update_current_target): Don't inherit or default
6268 to_disable_tracepoint.
6269 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6270 TARGET_DEFAULT_NORETURN.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target-delegates.c: Rebuild.
6275 * target.c (update_current_target): Don't inherit or default
6276 to_enable_tracepoint.
6277 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6278 TARGET_DEFAULT_NORETURN.
6280 2014-02-19 Tom Tromey <tromey@redhat.com>
6282 * target-delegates.c: Rebuild.
6283 * target.c (update_current_target): Don't inherit or default
6284 to_download_trace_state_variable.
6285 * target.h (struct target_ops) <to_download_trace_state_variable>:
6286 Use TARGET_DEFAULT_NORETURN.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * target-delegates.c: Rebuild.
6291 * target.c (update_current_target): Don't inherit or default
6292 to_can_download_tracepoint.
6293 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6294 TARGET_DEFAULT_RETURN.
6296 2014-02-19 Tom Tromey <tromey@redhat.com>
6298 * target-delegates.c: Rebuild.
6299 * target.c (update_current_target): Don't inherit or default
6300 to_download_tracepoint.
6301 * target.h (struct target_ops) <to_download_tracepoint>: Use
6302 TARGET_DEFAULT_NORETURN.
6304 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target-delegates.c: Rebuild.
6307 * target.c (update_current_target): Don't inherit or default
6309 * target.h (struct target_ops) <to_trace_init>: Use
6310 TARGET_DEFAULT_RETURN.
6312 2014-02-19 Tom Tromey <tromey@redhat.com>
6314 * target-delegates.c: Rebuild.
6315 * target.c (update_current_target): Don't inherit or default
6316 to_supports_string_tracing.
6317 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6318 TARGET_DEFAULT_RETURN.
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * target-delegates.c: Rebuild.
6323 * target.c (update_current_target): Don't inherit or default
6324 to_supports_enable_disable_tracepoint.
6325 * target.h (struct target_ops)
6326 <to_supports_enable_disable_tracepoint>: Use
6327 TARGET_DEFAULT_RETURN.
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6331 * target-delegates.c: Rebuild.
6332 * target.c (update_current_target): Don't inherit or default
6333 to_supports_multi_process.
6334 * target.h (struct target_ops) <to_supports_multi_process>: Use
6335 TARGET_DEFAULT_RETURN.
6337 2014-02-19 Tom Tromey <tromey@redhat.com>
6339 * target-delegates.c: Rebuild.
6340 * target.c (update_current_target): Don't inherit or default
6341 to_get_ada_task_ptid.
6342 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6343 TARGET_DEFAULT_FUNC.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * target-delegates.c: Rebuild.
6348 * target.c (update_current_target): Don't inherit or default
6349 to_thread_architecture.
6350 * target.h (struct target_ops) <to_thread_architecture>: Use
6351 TARGET_DEFAULT_FUNC.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * target-delegates.c: Rebuild.
6356 * target.c (update_current_target): Don't inherit or default
6357 to_execution_direction.
6358 * target.h (struct target_ops) <to_execution_direction>: Use
6359 TARGET_DEFAULT_FUNC.
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6363 * target-delegates.c: Rebuild.
6364 * target.c (update_current_target): Don't inherit or default
6365 to_can_execute_reverse.
6366 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6367 TARGET_DEFAULT_RETURN.
6368 (target_can_execute_reverse): Unconditionally delegate.
6370 2014-02-19 Tom Tromey <tromey@redhat.com>
6372 * target-delegates.c: Rebuild.
6373 * target.c (update_current_target): Don't inherit or default
6375 (dummy_goto_bookmark): Remove.
6376 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6377 * target.h (struct target_ops) <to_goto_bookmark>: Use
6378 TARGET_DEFAULT_NORETURN.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (update_current_target): Don't inherit or default
6385 (dummy_get_bookmark): Remove.
6386 (init_dummy_target): Don't inherit or default to_get_bookmark.
6387 * target.h (struct target_ops) <to_get_bookmark>: Use
6388 TARGET_DEFAULT_NORETURN
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target-delegates.c: Rebuild.
6393 * target.c (update_current_target): Don't inherit or default
6394 to_make_corefile_notes.
6395 (init_dummy_target): Don't initialize to_make_corefile_notes.
6396 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6397 TARGET_DEFAULT_FUNC.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target-delegates.c: Rebuild.
6402 * target.c (update_current_target): Don't inherit or default
6403 to_find_memory_regions.
6404 (init_dummy_target): Don't initialize to_find_memory_regions.
6405 * target.h (struct target_ops) <to_find_memory_regions>: Use
6406 TARGET_DEFAULT_FUNC.
6408 2014-02-19 Tom Tromey <tromey@redhat.com>
6410 * target-delegates.c: Rebuild.
6411 * target.c (update_current_target): Don't inherit or default
6413 * target.h (struct target_ops) <to_log_command>: Use
6414 TARGET_DEFAULT_IGNORE.
6415 (target_log_command): Unconditionally delegate.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target-delegates.c: Rebuild.
6420 * target.c (update_current_target): Don't inherit or default
6421 to_pid_to_exec_file.
6422 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6423 TARGET_DEFAULT_RETURN.
6425 2014-02-19 Tom Tromey <tromey@redhat.com>
6427 * target-delegates.c: Rebuild.
6428 * target.c (update_current_target): Don't inherit or default
6430 (target_thread_name): Unconditionally delegate.
6431 * target.h (struct target_ops) <to_thread_name>: Use
6432 TARGET_DEFAULT_RETURN.
6434 2014-02-19 Tom Tromey <tromey@redhat.com>
6436 * target-delegates.c: Rebuild.
6437 * target.c (update_current_target): Don't inherit or default
6438 to_extra_thread_info.
6439 * target.h (struct target_ops) <to_extra_thread_info>: Use
6440 TARGET_DEFAULT_RETURN.
6442 2014-02-19 Tom Tromey <tromey@redhat.com>
6444 * target-delegates.c: Rebuild.
6445 * target.c (update_current_target): Don't inherit or default
6447 * target.h (struct target_ops) <to_has_exited>: Use
6448 TARGET_DEFAULT_RETURN..
6450 2014-02-19 Tom Tromey <tromey@redhat.com>
6452 * target-delegates.c: Rebuild.
6453 * target.c (update_current_target): Don't inherit or default
6454 to_set_syscall_catchpoint.
6455 (return_one): Remove.
6456 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6457 TARGET_DEFAULT_RETURN.
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target-delegates.c: Rebuild.
6462 * target.c (update_current_target): Don't inherit or default
6463 to_insert_exec_catchpoint.
6464 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6465 TARGET_DEFAULT_RETURN.
6467 2014-01-08 Tom Tromey <tromey@redhat.com>
6469 * target-delegates.c: Rebuild.
6470 * target.c (update_current_target): Don't inherit or default
6471 to_insert_exec_catchpoint.
6472 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6473 TARGET_DEFAULT_RETURN.
6475 2014-02-19 Tom Tromey <tromey@redhat.com>
6477 * target-delegates.c: Rebuild.
6478 * target.c (update_current_target): Don't inherit or default
6479 to_remove_vfork_catchpoint.
6480 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6481 TARGET_DEFAULT_RETURN.
6483 2014-02-19 Tom Tromey <tromey@redhat.com>
6485 * target-delegates.c: Rebuild.
6486 * target.c (update_current_target): Don't inherit or default
6487 to_insert_vfork_catchpoint.
6488 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6489 TARGET_DEFAULT_RETURN.
6491 2014-02-19 Tom Tromey <tromey@redhat.com>
6493 * target-delegates.c: Rebuild.
6494 * target.c (update_current_target): Don't inherit or default
6495 to_remove_fork_catchpoint.
6496 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6497 TARGET_DEFAULT_RETURN.
6499 2014-02-19 Tom Tromey <tromey@redhat.com>
6501 * target-delegates.c: Rebuild.
6502 * target.c (update_current_target): Don't inherit or default
6503 to_insert_fork_catchpoint.
6504 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6505 TARGET_DEFAULT_RETURN.
6507 2014-02-19 Tom Tromey <tromey@redhat.com>
6509 * target-delegates.c: Rebuild.
6510 * target.c (update_current_target): Don't inherit or default
6511 to_post_startup_inferior.
6512 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6513 TARGET_DEFAULT_IGNORE.
6515 2014-02-19 Tom Tromey <tromey@redhat.com>
6517 * target-delegates.c: Rebuild.
6518 * target.c (update_current_target): Don't inherit or default
6520 * target.h (struct target_ops) <to_load>: Use
6521 TARGET_DEFAULT_NORETURN.
6523 2014-02-19 Tom Tromey <tromey@redhat.com>
6525 * target-delegates.c: Rebuild.
6526 * target.c (update_current_target): Don't inherit or default
6528 * target.h (struct target_ops) <to_terminal_info>: Use
6529 TARGET_DEFAULT_FUNC.
6531 2014-02-19 Tom Tromey <tromey@redhat.com>
6533 * target-delegates.c: Rebuild.
6534 * target.c (update_current_target): Don't inherit or default
6535 to_terminal_save_ours.
6536 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6537 TARGET_DEFAULT_IGNORE.
6539 2014-02-19 Tom Tromey <tromey@redhat.com>
6541 * target-delegates.c: Rebuild.
6542 * target.c (update_current_target): Don't inherit or default
6544 * target.h (struct target_ops) <to_terminal_ours>: Use
6545 TARGET_DEFAULT_IGNORE.
6547 2014-02-19 Tom Tromey <tromey@redhat.com>
6549 * target-delegates.c: Rebuild.
6550 * target.c (update_current_target): Don't inherit or default
6551 to_terminal_ours_for_output.
6552 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6553 TARGET_DEFAULT_IGNORE.
6555 2014-02-19 Tom Tromey <tromey@redhat.com>
6557 * target-delegates.c: Rebuild.
6558 * target.c (update_current_target): Don't inherit or default
6559 to_terminal_inferior.
6560 * target.h (struct target_ops) <to_terminal_inferior>: Use
6561 TARGET_DEFAULT_IGNORE.
6563 2014-02-19 Tom Tromey <tromey@redhat.com>
6565 * target-delegates.c: Rebuild.
6566 * target.c (update_current_target): Don't inherit or default
6568 * target.h (struct target_ops) <to_terminal_init>: Use
6569 TARGET_DEFAULT_IGNORE.
6571 2014-02-19 Tom Tromey <tromey@redhat.com>
6573 * target-delegates.c: Rebuild.
6574 * target.c (update_current_target): Don't inherit or default
6575 to_can_accel_watchpoint_condition.
6576 * target.h (struct target_ops)
6577 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6579 2014-02-19 Tom Tromey <tromey@redhat.com>
6581 * target-delegates.c: Rebuild.
6582 * target.c (update_current_target): Don't inherit or default
6583 to_region_ok_for_hw_watchpoint.
6584 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6585 Use TARGET_DEFAULT_FUNC.
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6589 * target-delegates.c: Rebuild.
6590 * target.c (update_current_target): Don't inherit or default
6591 to_watchpoint_addr_within_range.
6592 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6593 Use TARGET_DEFAULT_FUNC.
6595 2014-02-19 Tom Tromey <tromey@redhat.com>
6597 * target-delegates.c: Rebuild.
6598 * target.c (update_current_target): Don't inherit or default
6599 to_remove_watchpoint.
6600 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6601 TARGET_DEFAULT_NORETURN.
6603 2014-02-19 Tom Tromey <tromey@redhat.com>
6605 * target-delegates.c: Rebuild.
6606 * target.c (update_current_target): Don't inherit or default
6607 to_insert_watchpoint.
6608 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6609 TARGET_DEFAULT_RETURN.
6611 2014-02-19 Tom Tromey <tromey@redhat.com>
6613 * target-delegates.c: Rebuild.
6614 * target.c (update_current_target): Don't inherit or default
6615 to_remove_hw_breakpoint.
6616 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6617 TARGET_DEFAULT_RETURN.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target-delegates.c: Rebuild.
6622 * target.c (update_current_target): Don't inherit or default
6623 to_insert_hw_breakpoint.
6624 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6625 TARGET_DEFAULT_RETURN.
6627 2014-02-19 Tom Tromey <tromey@redhat.com>
6629 * target-delegates.c: Rebuild.
6630 * target.c (update_current_target): Don't inherit or default
6631 to_can_use_hw_breakpoint.
6632 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6633 TARGET_DEFAULT_RETURN.
6635 2014-02-19 Tom Tromey <tromey@redhat.com>
6637 * target-delegates.c: Rebuild.
6638 * target.c (update_current_target): Don't inherit or default
6640 * target.h (struct target_ops) <to_files_info>: Use
6641 TARGET_DEFAULT_IGNORE.
6643 2014-02-19 Tom Tromey <tromey@redhat.com>
6645 * target-delegates.c: Rebuild.
6646 * target.c (update_current_target): Don't inherit or default
6648 * target.h (struct target_ops) <to_store>: Use
6649 TARGET_DEFAULT_NORETURN.
6651 2014-02-19 Tom Tromey <tromey@redhat.com>
6653 * target-delegates.c: Rebuild.
6654 * target.c (update_current_target): Don't inherit or default
6656 * target.h (struct target_ops) <to_post_attach>: Use
6657 TARGET_DEFAULT_IGNORE.
6659 2014-02-19 Tom Tromey <tromey@redhat.com>
6661 * target-delegates.c: Rebuild.
6662 * target.c (update_current_target): Don't inherit or default
6664 (default_rcmd): New function.
6665 (do_monitor_command): Unconditionally delegate.
6666 * target.h (struct target_ops) <to_rmcd>: Use
6667 TARGET_DEFAULT_FUNC.
6669 2014-02-19 Tom Tromey <tromey@redhat.com>
6671 * target-delegates.c: Rebuild.
6672 * target.c (init_dummy_target): Don't initialize to_attach.
6673 (target_attach): Unconditionally delegate.
6674 * target.h (struct target_ops) <to_attach>: Use
6675 TARGET_DEFAULT_FUNC.
6677 2014-02-19 Tom Tromey <tromey@redhat.com>
6679 * target-delegates.c: Rebuild.
6680 * target.c (target_detach): Unconditionally delegate.
6681 (init_dummy_target): Don't initialize to_detach.
6682 * target.h (struct target_ops) <to_detach>: Use
6683 TARGET_DEFAULT_IGNORE.
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6689 (target_augmented_libraries_svr4_read): Add argument.
6690 * target.c (update_current_target): Update.
6691 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6694 2014-02-19 Tom Tromey <tromey@redhat.com>
6696 * target.h (struct target_ops) <to_call_history_range>: Add
6698 * target.c (target_call_history_range): Add argument.
6699 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6701 (record_btrace_call_history_from): Update.
6703 2014-02-19 Tom Tromey <tromey@redhat.com>
6705 * target.h (struct target_ops) <to_call_history_from>: Add
6707 * target.c (target_call_history_from): Add argument.
6708 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target.h (struct target_ops) <to_call_history>: Add argument.
6714 * target.c (target_call_history): Add argument.
6715 * record-btrace.c (record_btrace_call_history): Add 'self'
6718 2014-02-19 Tom Tromey <tromey@redhat.com>
6720 * target.h (struct target_ops) <to_insn_history_range>: Add
6722 * target.c (target_insn_history_range): Add argument.
6723 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6725 (record_btrace_insn_history_from): Update.
6727 2014-02-19 Tom Tromey <tromey@redhat.com>
6729 * target.h (struct target_ops) <to_insn_history_from>: Add
6731 * target.c (target_insn_history_from): Add argument.
6732 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6735 2014-02-19 Tom Tromey <tromey@redhat.com>
6737 * target.h (struct target_ops) <to_insn_history>: Add argument.
6738 * target.c (target_insn_history): Add argument.
6739 * record-btrace.c (record_btrace_insn_history): Add 'self'
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6744 * target.h (struct target_ops) <to_goto_record>: Add argument.
6745 * target.c (target_goto_record): Add argument.
6746 * record-full.c (record_full_goto): Add 'self' argument.
6747 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6749 2014-02-19 Tom Tromey <tromey@redhat.com>
6751 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6752 * target.c (target_goto_record_end): Add argument.
6753 * record-full.c (record_full_goto_end): Add 'self' argument.
6754 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6756 2014-02-19 Tom Tromey <tromey@redhat.com>
6758 * target.h (struct target_ops) <to_goto_record_begin>: Add
6760 * target.c (target_goto_record_begin): Add argument.
6761 * record-full.c (record_full_goto_begin): Add 'self' argument.
6762 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6765 2014-02-19 Tom Tromey <tromey@redhat.com>
6767 * target.h (struct target_ops) <to_record_is_replaying>: Add
6769 * target.c (target_record_is_replaying): Add argument.
6770 * record-full.c (record_full_is_replaying): Add 'self' argument.
6771 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6773 (record_btrace_xfer_partial, record_btrace_store_registers)
6774 (record_btrace_prepare_to_store, record_btrace_resume)
6775 (record_btrace_wait, record_btrace_decr_pc_after_break)
6776 (record_btrace_find_new_threads, record_btrace_thread_alive):
6779 2014-02-19 Tom Tromey <tromey@redhat.com>
6781 * target.h (struct target_ops) <to_delete_record>: Add argument.
6782 * target.c (target_delete_record): Add argument.
6783 * record-full.c (record_full_delete): Add 'self' argument.
6785 2014-02-19 Tom Tromey <tromey@redhat.com>
6787 * target.h (struct target_ops) <to_save_record>: Add argument.
6788 * target.c (target_save_record): Add argument.
6789 * record-full.c (record_full_save): Add 'self' argument.
6790 (record_full_save): Add 'self' argument.
6792 2014-02-19 Tom Tromey <tromey@redhat.com>
6794 * target.h (struct target_ops) <to_info_record>: Add argument.
6795 * target.c (target_info_record): Add argument.
6796 * record.c (info_record_command): Add argument.
6797 * record-full.c (record_full_info): Add 'self' argument.
6798 * record-btrace.c (record_btrace_info): Add 'self' argument.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6802 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6803 * target.c (target_stop_recording): Add argument.
6804 * record.c (record_stop): Add argument.
6805 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6808 2014-02-19 Tom Tromey <tromey@redhat.com>
6810 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6811 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6812 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6814 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6815 (_initialize_amd64_linux_nat): Use it.
6816 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6817 (_initialize_i386_linux_nat): Use it.
6819 2014-02-19 Tom Tromey <tromey@redhat.com>
6821 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6822 * target.c (target_teardown_btrace): Add argument.
6823 * remote.c (remote_teardown_btrace): Add 'self' argument.
6824 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6826 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6829 2014-02-19 Tom Tromey <tromey@redhat.com>
6831 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6832 * target.c (target_disable_btrace): Add argument.
6833 * remote.c (remote_disable_btrace): Add 'self' argument.
6834 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6836 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6839 2014-02-19 Tom Tromey <tromey@redhat.com>
6841 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6842 * target.c (target_enable_btrace): Add argument.
6843 * remote.c (remote_enable_btrace): Add 'self' argument.
6844 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6846 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6852 (target_can_use_agent): Add argument.
6853 * target.c (update_current_target): Update.
6854 * remote.c (remote_can_use_agent): Add 'self' argument.
6855 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6857 2014-02-19 Tom Tromey <tromey@redhat.com>
6859 * target.h (struct target_ops) <to_use_agent>: Add argument.
6860 (target_use_agent): Add argument.
6861 * target.c (update_current_target): Update.
6862 * remote.c (remote_use_agent): Add 'self' argument.
6863 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6865 2014-02-19 Tom Tromey <tromey@redhat.com>
6867 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6868 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6869 (target_traceframe_info): Add argument.
6870 * target.c (update_current_target): Update.
6871 * remote.c (remote_traceframe_info): Add 'self' argument.
6872 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6874 2014-02-19 Tom Tromey <tromey@redhat.com>
6876 * target.h (target_static_tracepoint_markers_by_strid): Add
6878 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6880 * target.c (update_current_target): Update.
6881 * remote.c (struct target_ops)
6882 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6883 * linux-nat.c (struct target_ops)
6884 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6886 2014-02-19 Tom Tromey <tromey@redhat.com>
6888 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6890 (target_static_tracepoint_marker_at): Add argument.
6891 * target.c (update_current_target): Update.
6892 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6895 2014-02-19 Tom Tromey <tromey@redhat.com>
6897 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6898 (target_set_permissions): Add argument.
6899 * target.c (update_current_target): Update.
6900 * remote.c (remote_set_permissions): Add 'self' argument.
6901 (remote_start_remote): Update.
6903 2014-02-19 Tom Tromey <tromey@redhat.com>
6905 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6906 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6907 (target_get_tib_address): Add argument.
6908 * target.c (update_current_target): Update.
6909 * remote.c (remote_get_tib_address): Add 'self' argument.
6911 2014-02-19 Tom Tromey <tromey@redhat.com>
6913 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6914 (target_set_trace_notes): Add argument.
6915 * target.c (update_current_target): Update.
6916 * remote.c (remote_set_trace_notes): Add 'self' argument.
6918 2014-02-19 Tom Tromey <tromey@redhat.com>
6920 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6922 (target_set_trace_buffer_size): Add argument.
6923 * target.c (update_current_target): Update.
6924 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6930 (target_set_circular_trace_buffer): Add argument.
6931 * target.c (update_current_target): Update.
6932 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6937 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6939 (target_set_disconnected_tracing): Add argument.
6940 * target.c (update_current_target): Update.
6941 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6943 2014-02-19 Tom Tromey <tromey@redhat.com>
6945 * target.h (struct target_ops)
6946 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6947 (target_get_min_fast_tracepoint_insn_len): Add argument.
6948 * target.c (update_current_target): Update.
6949 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6952 2014-02-19 Tom Tromey <tromey@redhat.com>
6954 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6956 (target_get_raw_trace_data): Add argument.
6957 * target.c (update_current_target): Update.
6958 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6960 2014-02-19 Tom Tromey <tromey@redhat.com>
6962 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6964 (target_upload_trace_state_variables): Add argument.
6965 * target.c (update_current_target): Update.
6966 * remote.c (remote_upload_trace_state_variables): Add 'self'
6968 (remote_start_remote): Update.
6970 2014-02-19 Tom Tromey <tromey@redhat.com>
6972 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6974 (target_upload_tracepoints): Add argument.
6975 * target.c (update_current_target): Update.
6976 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6977 (remote_start_remote): Update.
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6982 (target_save_trace_data): Add argument.
6983 * target.c (update_current_target): Update.
6984 * remote.c (remote_save_trace_data): Add 'self' argument.
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6990 * target.h (struct target_ops)
6991 <to_get_trace_state_variable_value>: Add argument.
6992 (target_get_trace_state_variable_value): Add argument.
6993 * target.c (update_current_target): Update.
6994 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6996 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6998 2014-02-19 Tom Tromey <tromey@redhat.com>
7000 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7001 * target.h (struct target_ops) <to_trace_find>: Add argument.
7002 (target_trace_find): Add argument.
7003 * target.c (update_current_target): Update.
7004 * remote.c (remote_trace_find): Add 'self' argument.
7005 * ctf.c (ctf_trace_find): Add 'self' argument.
7007 2014-02-19 Tom Tromey <tromey@redhat.com>
7009 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7010 (target_trace_stop): Add argument.
7011 * target.c (update_current_target): Update.
7012 * remote.c (remote_trace_stop): Add 'self' argument.
7014 2014-02-19 Tom Tromey <tromey@redhat.com>
7016 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7017 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7019 (target_get_tracepoint_status): Add argument.
7020 * target.c (update_current_target): Update.
7021 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7023 2014-02-19 Tom Tromey <tromey@redhat.com>
7025 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7026 * target.h (struct target_ops) <to_get_trace_status>: Add
7028 (target_get_trace_status): Add argument.
7029 * target.c (update_current_target): Update.
7030 * remote.c (remote_get_trace_status): Add 'self' argument.
7031 (remote_start_remote, remote_can_download_tracepoint): Update.
7032 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7034 2014-02-19 Tom Tromey <tromey@redhat.com>
7036 * target.h (struct target_ops) <to_trace_start>: Add argument.
7037 (target_trace_start): Add argument.
7038 * target.c (update_current_target): Update.
7039 * remote.c (remote_trace_start): Add 'self' argument.
7041 2014-02-19 Tom Tromey <tromey@redhat.com>
7043 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7045 (target_trace_set_readonly_regions): Add argument.
7046 * target.c (update_current_target): Update.
7047 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7050 2014-02-19 Tom Tromey <tromey@redhat.com>
7052 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7054 (target_disable_tracepoint): Add argument.
7055 * target.c (update_current_target): Update.
7056 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7058 2014-02-19 Tom Tromey <tromey@redhat.com>
7060 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7062 (target_enable_tracepoint): Add argument.
7063 * target.c (update_current_target): Update.
7064 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7066 2014-02-19 Tom Tromey <tromey@redhat.com>
7068 * target.h (struct target_ops) <to_download_trace_state_variable>:
7070 (target_download_trace_state_variable): Add argument.
7071 * target.c (update_current_target): Update.
7072 * remote.c (remote_download_trace_state_variable): Add 'self'
7075 2014-02-19 Tom Tromey <tromey@redhat.com>
7077 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7079 (target_can_download_tracepoint): Add argument.
7080 * target.c (update_current_target): Update.
7081 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7083 2014-02-19 Tom Tromey <tromey@redhat.com>
7085 * target.h (struct target_ops) <to_download_tracepoint>: Add
7087 (target_download_tracepoint): Add argument.
7088 * target.c (update_current_target): Update.
7089 * remote.c (remote_download_tracepoint): Add 'self' argument.
7091 2014-02-19 Tom Tromey <tromey@redhat.com>
7093 * target.h (struct target_ops) <to_trace_init>: Add argument.
7094 (target_trace_init): Add argument.
7095 * target.c (update_current_target): Update.
7096 * remote.c (remote_trace_init): Add 'self' argument.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7101 * target.c (target_fileio_readlink): Add argument.
7102 * remote.c (remote_hostio_readlink): Add 'self' argument.
7103 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7105 2014-02-19 Tom Tromey <tromey@redhat.com>
7107 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7108 * target.c (target_fileio_unlink): Add argument.
7109 * remote.c (remote_hostio_unlink): Add 'self' argument.
7110 (remote_file_delete): Update.
7111 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7113 2014-02-19 Tom Tromey <tromey@redhat.com>
7115 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7116 * target.c (target_fileio_close): Add argument.
7117 * remote.c (remote_hostio_close): Add 'self' argument.
7118 (remote_hostio_close_cleanup): Update.
7119 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7121 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7123 2014-02-19 Tom Tromey <tromey@redhat.com>
7125 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7126 * target.c (target_fileio_pread): Add argument.
7127 * remote.c (remote_hostio_pread): Add 'self' argument.
7128 (remote_bfd_iovec_pread, remote_file_get): Update.
7129 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7131 2014-02-19 Tom Tromey <tromey@redhat.com>
7133 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7134 * target.c (target_fileio_pwrite): Add argument.
7135 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7136 (remote_file_put): Update.
7137 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7139 2014-02-19 Tom Tromey <tromey@redhat.com>
7141 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7142 * target.c (target_fileio_open): Add argument.
7143 * remote.c (remote_hostio_open): Add 'self' argument.
7144 (remote_bfd_iovec_open): Add 'self' argument.
7145 (remote_file_put): Add 'self' argument.
7146 (remote_file_get): Add 'self' argument.
7147 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7149 2014-02-19 Tom Tromey <tromey@redhat.com>
7151 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7153 (target_can_run_breakpoint_commands): Add argument.
7154 * target.c (update_current_target): Update.
7155 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7157 (remote_insert_breakpoint): Add 'self' argument.
7158 (remote_insert_hw_breakpoint): Add 'self' argument.
7159 (remote_can_run_breakpoint_commands): Add 'self' argument.
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7163 * target.h (struct target_ops)
7164 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7165 (target_supports_evaluation_of_breakpoint_conditions): Add
7167 * target.c (update_current_target): Update.
7168 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7170 (remote_insert_breakpoint): Add 'self' argument.
7171 (remote_insert_hw_breakpoint): Add 'self' argument.
7172 (remote_supports_cond_breakpoints): Add 'self' argument.
7174 2014-02-19 Tom Tromey <tromey@redhat.com>
7176 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7178 (target_supports_string_tracing): Add argument.
7179 * target.c (update_current_target): Update.
7180 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * target.h (struct target_ops)
7185 <to_supports_disable_randomization>: Add argument.
7186 * target.c (find_default_supports_disable_randomization): Add
7188 (target_supports_disable_randomization): Add argument.
7189 (find_default_supports_disable_randomization): Add 'self'
7191 * remote.c (extended_remote_supports_disable_randomization): Add
7193 (remote_supports_disable_randomization): Add 'self' argument.
7194 (extended_remote_create_inferior): Update.
7195 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7198 2014-02-19 Tom Tromey <tromey@redhat.com>
7200 * target.h (struct target_ops)
7201 <to_supports_enable_disable_tracepoint>: Add argument.
7202 (target_supports_enable_disable_tracepoint): Add argument.
7203 * target.c (update_current_target): Update.
7204 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7207 2014-02-19 Tom Tromey <tromey@redhat.com>
7209 * target.h (struct target_ops) <to_supports_multi_process>: Add
7211 (target_supports_multi_process): Add argument.
7212 * target.c (update_current_target): Update.
7213 * remote.c (remote_supports_multi_process): Add 'self' argument.
7214 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7216 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7219 2014-02-19 Tom Tromey <tromey@redhat.com>
7221 * target.h (struct target_ops) <to_execution_direction>: Add
7223 (target_execution_direction): Add argument.
7224 * target.c (default_execution_direction): Add 'self' argument.
7225 * record-full.c (record_full_execution_direction): Add 'self'
7228 2014-02-19 Tom Tromey <tromey@redhat.com>
7230 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7232 (target_can_execute_reverse): Add argument.
7233 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7234 * record-full.c (record_full_can_execute_reverse): Add 'self'
7236 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7239 2014-02-19 Tom Tromey <tromey@redhat.com>
7241 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7242 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7244 (target_get_ada_task_ptid): Add argument.
7245 * target.c (update_current_target): Update.
7246 (default_get_ada_task_ptid): Add 'self' argument.
7247 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7248 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7249 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7251 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7253 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7255 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7257 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7258 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7261 2014-02-19 Tom Tromey <tromey@redhat.com>
7263 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7264 (target_goto_bookmark): Add argument.
7265 * target.c (dummy_goto_bookmark): Add 'self' argument.
7266 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7270 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7271 (target_get_bookmark): Add argument.
7272 * target.c (dummy_get_bookmark): Add 'self' argument.
7273 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7277 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7279 (target_make_corefile_notes): Add argument.
7280 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7281 * procfs.c (procfs_make_note_section): Add 'self' argument.
7282 (procfs_make_note_section): Add 'self' argument.
7283 (procfs_make_note_section): Add 'self' argument.
7284 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7286 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7287 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7288 * exec.c (exec_make_note_section): Add 'self' argument.
7289 (exec_make_note_section): Add 'self' argument.
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7293 * target.h (struct target_ops) <to_find_memory_regions>: Add
7295 (target_find_memory_regions): Add argument.
7296 * target.c (dummy_find_memory_regions): Add 'self' argument.
7297 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7298 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7299 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7300 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7301 * exec. (exec_do_find_memory_regions): New global.
7302 (exec_set_find_memory_regions): Rewrite.
7303 (exec_find_memory_regions): New function.
7304 (init_exec_ops): Use exec_find_memory_regions.
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7308 * target.h (struct target_ops) <to_supports_non_stop>: Add
7310 * target.c (find_default_supports_non_stop): Add argument.
7311 (target_supports_non_stop): Add argument.
7312 (find_default_supports_non_stop): Add 'self' argument.
7313 * remote.c (remote_supports_non_stop): Add 'self' argument.
7314 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7316 2014-02-19 Tom Tromey <tromey@redhat.com>
7318 * target.h (struct target_ops) <to_log_command>: Add argument.
7319 (target_log_command): Add argument.
7320 * serial.h (serial_log_command): Add 'self' argument.
7321 * serial.c (serial_log_command): Add 'self' argument.
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7325 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7326 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7328 (target_pid_to_exec_file): Add argument.
7329 * target.c (debug_to_pid_to_exec_file): Add argument.
7330 (update_current_target): Update.
7331 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7332 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7333 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7334 (linux_handle_extended_wait): Update.
7335 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7336 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7337 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7338 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7342 * target.h (struct target_ops) <to_rcmd>: Add argument.
7343 (target_rcmd): Add argument.
7344 * target.c (debug_to_rcmd): Add argument.
7345 (update_current_target, do_monitor_command): Update.
7346 * remote.c (remote_rcmd): Add 'self' argument.
7347 * monitor.c (monitor_rcmd): Add 'self' argument.
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7351 * windows-nat.c (windows_stop): Add 'self' argument.
7352 * target.h (struct target_ops) <to_stop>: Add argument.
7353 * target.c (target_stop): Add argument.
7354 (debug_to_stop): Add argument.
7355 (update_current_target): Update.
7356 * remote.c (remote_stop): Add 'self' argument.
7357 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7358 (gdbsim_cntrl_c): Update.
7359 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7360 * procfs.c (procfs_stop): Add 'self' argument.
7361 * nto-procfs.c (procfs_stop): Add 'self' argument.
7362 * monitor.c (monitor_stop): Add 'self' argument.
7363 (monitor_open): Update.
7364 * linux-nat.c (linux_nat_stop): Add argument.
7365 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7366 * gnu-nat.c (gnu_stop): Add 'self' argument.
7367 * darwin-nat.c (darwin_stop): Add 'self' argument.
7369 2014-02-19 Tom Tromey <tromey@redhat.com>
7371 * target.h (struct target_ops) <to_thread_name>: Add argument.
7372 * target.c (target_thread_name): Add argument.
7373 (update_current_target): Update.
7374 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7376 2014-02-19 Tom Tromey <tromey@redhat.com>
7378 * target.h (struct target_ops) <to_extra_thread_info>: Add
7380 (target_extra_thread_info): Add argument.
7381 * target.c (update_current_target): Update.
7382 * remote.c (remote_threads_extra_info): Add 'self' argument.
7383 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7385 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7386 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7387 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7389 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7391 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7393 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * target.h (struct target_ops) <to_program_signals>: Add argument.
7399 * target.c (target_program_signals): Add argument.
7400 * remote.c (remote_program_signals): Add 'self' argument.
7402 2014-02-19 Tom Tromey <tromey@redhat.com>
7404 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7405 * target.c (target_pass_signals): Add argument.
7406 * remote.c (remote_pass_signals): Add 'self' argument.
7407 (remote_start_remote): Update.
7408 * procfs.c (procfs_pass_signals): Add 'self' argument.
7409 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7410 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7411 (linux_nat_create_inferior, linux_nat_attach): Update.
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7415 * windows-nat.c (windows_can_run): Add 'self' argument.
7416 * target.h (struct target_ops) <to_can_run>: Add argument.
7417 (target_can_run): Add argument.
7418 * target.c (debug_to_can_run): Add argument.
7419 (update_current_target): Update.
7420 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7421 * inf-child.c (inf_child_can_run): Add 'self' argument.
7422 * go32-nat.c (go32_can_run): Add 'self' argument.
7424 2014-02-19 Tom Tromey <tromey@redhat.com>
7426 * target.h (struct target_ops) <to_has_exited>: Add argument.
7427 (target_has_exited): Add argument.
7428 * target.c (debug_to_has_exited): Add argument.
7429 (update_current_target): Update.
7431 2014-02-19 Tom Tromey <tromey@redhat.com>
7433 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7435 (target_set_syscall_catchpoint): Add argument.
7436 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7438 * target.c (update_current_target): Update.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7444 (target_remove_exec_catchpoint): Add argument.
7445 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7446 (update_current_target): Update.
7447 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7450 2014-02-19 Tom Tromey <tromey@redhat.com>
7452 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7454 (target_insert_exec_catchpoint): Add argument.
7455 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7456 (update_current_target): Update.
7457 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7460 2014-02-19 Tom Tromey <tromey@redhat.com>
7462 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7464 (target_remove_vfork_catchpoint): Add argument.
7465 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7466 (update_current_target): Update.
7467 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7474 (target_insert_vfork_catchpoint): Add argument.
7475 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7476 (update_current_target): Update.
7477 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7480 2014-02-19 Tom Tromey <tromey@redhat.com>
7482 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7484 (target_remove_fork_catchpoint): Add argument.
7485 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7486 (update_current_target): Update.
7487 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7490 2014-02-19 Tom Tromey <tromey@redhat.com>
7492 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7494 (target_insert_fork_catchpoint): Add argument.
7495 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7496 (update_current_target): Update.
7497 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7504 (target_post_startup_inferior): Add argument.
7505 * target.c (debug_to_post_startup_inferior): Add argument.
7506 (update_current_target): Update.
7507 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7509 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7511 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7513 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7515 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7517 (super_post_startup_inferior): Likewise.
7518 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7520 (super_post_startup_inferior): Likewise.
7521 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7522 Add 'self' argument.
7523 (super_post_startup_inferior): Likewise.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * target.h (struct target_ops) <to_load>: Add argument.
7528 * target.c (target_load): Add argument.
7529 (debug_to_load): Add argument.
7530 (update_current_target): Update.
7531 * remote.c (remote_load): Add 'self' argument.
7532 * remote-sim.c (gdbsim_load): Add 'self' argument.
7533 * remote-mips.c (mips_load): Add 'self' argument.
7534 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7535 * monitor.c (monitor_load): Add 'self' argument.
7536 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7541 (target_terminal_info): Add argument.
7542 * target.c (debug_to_terminal_info): Add argument.
7543 (default_terminal_info): Likewise.
7544 * inflow.c (child_terminal_info): Add 'self' argument.
7545 * inferior.h (child_terminal_info): Add 'self' argument.
7546 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7552 (target_terminal_save_ours): Add argument.
7553 * target.c (debug_to_terminal_save_ours): Add argument.
7554 (update_current_target): Update.
7555 * inflow.c (terminal_save_ours): Add 'self' argument.
7556 * inferior.h (terminal_save_ours): Add 'self' argument.
7558 2014-02-19 Tom Tromey <tromey@redhat.com>
7560 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7561 (target_terminal_ours): Add argument.
7562 * target.c (debug_to_terminal_ours): Add argument.
7563 (update_current_target): Update.
7564 * remote.c (remote_terminal_ours): Add 'self' argument.
7565 (remote_close): Update.
7566 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7567 * inflow.c (terminal_ours): Add 'self' argument.
7568 * inferior.h (terminal_ours): Add 'self' argument.
7569 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7571 2014-02-19 Pedro Alves <palves@redhat.com>
7572 Tom Tromey <tromey@redhat.com>
7574 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7576 (target_terminal_ours_for_output): Add argument.
7577 * target.c (debug_to_terminal_ours_for_output): Add argument.
7578 (update_current_target): Update.
7579 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7580 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7581 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7583 2014-02-19 Tom Tromey <tromey@redhat.com>
7585 * target.h (struct target_ops) <to_terminal_inferior>: Add
7587 * target.c (target_terminal_inferior): Add argument.
7588 (update_current_target): Update.
7589 * remote.c (remote_terminal_inferior): Add 'self' argument.
7590 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7591 * inflow.c (terminal_inferior): Add 'self' argument.
7592 * inferior.h (terminal_inferior): Add 'self' argument.
7593 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7594 (go32_terminal_inferior): Add 'self' argument.
7596 2014-02-19 Tom Tromey <tromey@redhat.com>
7598 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7599 (target_terminal_init): Add argument.
7600 * target.c (debug_to_terminal_init): Add argument.
7601 (update_current_target): Update.
7602 * inflow.c (terminal_init_inferior): Add 'self' argument.
7603 * inferior.h (terminal_init_inferior): Add 'self' argument.
7604 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7605 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7607 2014-02-19 Tom Tromey <tromey@redhat.com>
7609 * target.h (struct target_ops)
7610 <to_can_accel_watchpoint_condition>: Add argument.
7611 (target_can_accel_watchpoint_condition): Add argument.
7612 * target.c (debug_to_can_accel_watchpoint_condition): Add
7614 (update_current_target): Update.
7615 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7618 2014-02-19 Tom Tromey <tromey@redhat.com>
7620 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7622 (target_region_ok_for_hw_watchpoint): Add argument.
7623 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7624 (default_region_ok_for_hw_watchpoint): Add argument.
7625 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7626 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7628 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7630 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7632 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7634 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7636 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7638 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7639 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7641 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7642 Add 'self' argument.
7644 2014-02-19 Tom Tromey <tromey@redhat.com>
7646 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7648 (target_insert_watchpoint): Add argument.
7649 * target.c (debug_to_insert_watchpoint): Add argument.
7650 (update_current_target): Update.
7651 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7652 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7653 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7654 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7655 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7656 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7658 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7659 (procfs_insert_hw_watchpoint): Add 'self' argument.
7660 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7662 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7664 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7666 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7667 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7669 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7674 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7676 (target_remove_watchpoint): Add argument.
7677 * target.c (debug_to_remove_watchpoint): Add argument.
7678 (update_current_target): Update.
7679 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7680 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7681 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7682 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7683 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7684 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7686 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7687 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7689 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7691 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7693 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7694 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7696 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7701 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7703 (target_remove_hw_breakpoint): Add argument.
7704 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7705 (update_current_target): Update.
7706 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7707 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7709 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7710 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7712 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7719 (target_insert_hw_breakpoint): Add argument.
7720 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7721 (update_current_target): Update.
7722 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7723 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7725 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7726 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7727 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7729 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7734 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7736 (target_can_use_hardware_watchpoint): Add argument.
7737 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7738 (update_current_target): Update.
7739 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7741 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7743 * remote.c (remote_check_watch_resources): Add 'self' argument.
7744 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7745 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7747 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7748 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7750 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7752 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7754 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7756 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7758 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7760 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7761 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7763 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target.h (struct target_ops) <to_post_attach>: Add argument.
7769 (target_post_attach): Add argument.
7770 * target.c (debug_to_post_attach): Add argument.
7771 (update_current_target): Update.
7772 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7773 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7774 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7775 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7776 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7778 2014-02-19 Tom Tromey <tromey@redhat.com>
7780 * windows-nat.c (windows_close): Add 'self' argument.
7781 * tracepoint.c (tfile_close): Add 'self' argument.
7782 * target.h (struct target_ops) <to_close>: Add argument.
7783 * target.c (target_close): Add argument.
7784 (update_current_target): Update.
7785 * remote.c (remote_close): Add 'self' argument.
7786 * remote-sim.c (gdbsim_close): Add 'self' argument.
7787 * remote-mips.c (mips_close): Add 'self' argument.
7788 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7789 * record-full.c (record_full_close): Add 'self' argument.
7790 * record-btrace.c (record_btrace_close): Add 'self' argument.
7791 * monitor.h (monitor_close): Add 'self' argument.
7792 * monitor.c (monitor_close): Add 'self' argument.
7793 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7794 * linux-nat.c (linux_nat_close): Add argument.
7795 * go32-nat.c (go32_close): Add 'self' argument.
7796 * exec.c (exec_close_1): Add 'self' argument.
7797 * ctf.c (ctf_close): Add 'self' argument.
7798 * corelow.c (core_close): Add 'self' argument.
7799 (core_close_cleanup): Update.
7800 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7801 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * remote.c (remote_load): New function.
7806 (init_remote_ops): Use it.
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7810 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7812 * common/linux-btrace.h (linux_supports_btrace): Update.
7813 * remote.c (remote_supports_btrace): Add "self" argument.
7814 * target-delegates.c: Rebuild.
7815 * target.c (target_supports_btrace): Remove.
7816 * target.h (struct target_ops) <to_supports_btrace>: Add
7817 target_ops argument.
7818 (target_supports_btrace): New define.
7820 2014-02-19 Tom Tromey <tromey@redhat.com>
7822 * record-full.c (record_full_beneath_to_resume_ops)
7823 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7824 (record_full_beneath_to_wait)
7825 (record_full_beneath_to_store_registers_ops)
7826 (record_full_beneath_to_store_registers)
7827 (record_full_beneath_to_xfer_partial_ops)
7828 (record_full_beneath_to_xfer_partial)
7829 (record_full_beneath_to_insert_breakpoint_ops)
7830 (record_full_beneath_to_insert_breakpoint)
7831 (record_full_beneath_to_remove_breakpoint_ops)
7832 (record_full_beneath_to_remove_breakpoint)
7833 (record_full_beneath_to_stopped_by_watchpoint)
7834 (record_full_beneath_to_stopped_data_address)
7835 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7836 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7837 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7838 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7839 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7840 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7841 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7842 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7843 (record_full_resume, record_full_wait_1)
7844 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7845 (record_full_store_registers, record_full_xfer_partial)
7846 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7847 (record_full_async, record_full_core_xfer_partial): Use target
7849 * target-delegates.c: Rebuild.
7850 * target.c (current_xfer_partial): Remove.
7851 (update_current_target): Do not INHERIT or de_fault
7852 to_insert_breakpoint, to_remove_breakpoint,
7853 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7854 to_is_async_p, to_async. Do not set to_xfer_partial field.
7855 (default_xfer_partial): Simplify.
7856 (current_xfer_partial): Remove.
7857 (target_wait, target_resume): Simplify.
7858 (find_default_can_async_p, find_default_is_async_p): Update.
7859 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7860 to_xfer_partial, to_stopped_by_watchpoint,
7861 to_stopped_data_address.
7862 (target_store_registers): Simplify.
7863 (forward_target_remove_breakpoint)
7864 (forward_target_insert_breakpoint): Remove.
7865 (target_remove_breakpoint, target_insert_breakpoint)
7866 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7867 * target.h (struct target_ops) <to_resume, to_wait,
7868 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7869 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7870 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7872 (forward_target_remove_breakpoint)
7873 (forward_target_insert_breakpoint): Remove.
7874 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7876 (record_btrace_insert_breakpoint): Delegate directly.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target-delegates.c: New file.
7882 * target.c: Include target-delegates.c.
7883 (init_dummy_target): Call install_dummy_methods.
7884 (complete_target_initialization): Call install_delegators.
7885 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7886 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7887 * make-target-delegates: New file.
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7891 * record.c (find_record_target): Use find_target_at.
7892 * target.c (find_target_at): New function.
7893 * target.h (find_target_at): Declare.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7899 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7901 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7902 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7904 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7906 * linux-nat.c (save_sigtrap): Update.
7907 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7908 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7909 (linux_nat_close): Update.
7910 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7912 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7914 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7915 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7916 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7917 (tmp_to_async): Add 'ops' argument.
7918 (record_full_stopped_by_watchpoint, record_full_async)
7919 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7921 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7922 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7923 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7924 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7925 (remote_is_async_p, remote_async): Add 'ops' argument.
7926 (remote_stopped_data_address): Update.
7927 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7928 * target.c (update_current_target)
7929 (find_default_can_async_p, find_default_is_async_p): Update.
7930 (init_dummy_target): Update.
7931 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7932 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7933 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7934 (target_can_async_p, target_is_async_p, target_async)
7935 (target_stopped_by_watchpoint): Update.
7937 2014-02-19 Yao Qi <yao@codesourcery.com>
7940 * gdbarch.sh: Remove startup_gdbarch.
7941 * gdbarch.c: Regenerated.
7942 * gdbarch.h: Likewise.
7944 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7946 * rl78-tdep.c (rl78_g10_register_name): New function.
7947 (rl78_return_value): Add g10 support.
7948 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7951 2014-02-17 Doug Evans <xdje42@gmail.com>
7953 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7954 (SUBDIR_GUILE_SRCS): Ditto.
7955 (scm-gsmob.o): Ditto.
7957 2014-02-17 Yao Qi <yao@codesourcery.com>
7959 * gnu-nat.c (ILL_RPC): Declare defined function.
7961 2014-02-17 Yao Qi <yao@codesourcery.com>
7963 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7964 mach_msg_type_number_t.
7965 (gnu_write_inferior): Likewise.
7967 2014-02-17 Yao Qi <yao@codesourcery.com>
7969 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7971 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7972 (inf_validate_procs, inf_signal): Likewise.
7973 (S_exception_raise_request): Likewise.
7974 (do_mach_notify_dead_name): Likewise.
7975 (steal_exc_port): Likewise.
7976 (gnu_read_inferior): Change 'copy_count''s type to
7977 mach_msg_type_number_t.
7978 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7981 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7983 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7984 flag. Adjust all users; in particular...
7985 (gnu_wait): ..., don't decrement its value in here...
7986 (gnu_create_inferior): ..., and instead set the flag in here,
7987 around the startup_inferior call, and call that one with
7988 START_INFERIOR_TRAPS_EXPECTED.
7990 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7991 (ILL_RPC): ... new macro.
7992 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7993 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7994 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7995 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7996 functions with ILL_RPC macro.
7997 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7998 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7999 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8000 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8001 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8002 (S_proc_getlogin_reply, S_proc_getsid_reply)
8003 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8004 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8005 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8006 (S_proc_getnports_reply, S_proc_is_important_reply)
8007 (S_proc_get_code_reply): New stub functions, generated with
8010 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8011 collected the type check structures.
8013 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8015 2014-02-14 Doug Evans <dje@google.com>
8017 * target.c (target_write_partial): Fix result type.
8019 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8021 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8022 the proper offsets to access fpregset_t.
8024 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8026 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8027 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8028 * h8300-tdep.c (setmachinelist): Remove global.
8029 * hppa-tdep.c (hppa_sigtramp): Remove global.
8030 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8031 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8032 * ravenscar-thread.c (update_target_observer): Remove global.
8033 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8035 2014-02-12 Tom Tromey <tromey@redhat.com>
8037 * common/rsp-low.c: Update comments.
8038 * common/rsp-low.h: Update comments.
8040 2014-02-12 Tom Tromey <tromey@redhat.com>
8042 * common/rsp-low.c (convert_ascii_to_int): Remove.
8043 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8045 2014-02-12 Tom Tromey <tromey@redhat.com>
8047 * common/rsp-low.h (unhexify): Don't declare.
8048 * common/rsp-low.c (unhexify): Remove.
8050 2014-02-12 Tom Tromey <tromey@redhat.com>
8052 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8053 * common/rsp-low.c (convert_int_to_ascii): Remove.
8055 2014-02-12 Tom Tromey <tromey@redhat.com>
8057 * common/rsp-low.h (hexify): Don't declare.
8058 * common/rsp-low.c (hexify): Remove.
8060 2014-02-12 Tom Tromey <tromey@redhat.com>
8062 * common/rsp-low.c (hexify): Never take strlen of argument.
8064 2014-02-12 Tom Tromey <tromey@redhat.com>
8066 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8067 * remote.c (extended_remote_run, remote_rcmd)
8068 (remote_download_trace_state_variable, remote_save_trace_data)
8069 (remote_set_trace_notes): Update.
8070 * tracepoint.c (encode_source_string, tfile_write_status)
8071 (tfile_write_uploaded_tsv): Update.
8073 2014-02-12 Tom Tromey <tromey@redhat.com>
8075 * tracepoint.c: Include rsp-low.h.
8076 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8077 * remote.c: Include rsp-low.h.
8078 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8079 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8080 (remote_unescape_input): Move to common/rsp-low.c.
8081 * common/rsp-low.h: New file.
8082 * common/rsp-low.c: New file.
8083 * Makefile.in (SFILES): Add common/rsp-low.c.
8084 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8085 (COMMON_OBS): Add rsp-low.o.
8086 (rsp-low.o): New target.
8088 2014-02-12 Tom Tromey <tromey@redhat.com>
8090 * utils.h: Include print-utils.h.
8091 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8092 (int_string, core_addr_to_string, core_addr_to_string_nz)
8093 (hex_string, hex_string_custom): Don't declare.
8094 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8095 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8096 (hex_string_custom, int_string, core_addr_to_string)
8097 (core_addr_to_string_nz, host_address_to_string): Move to
8098 common/print-utils.c.
8099 * common/print-utils.h: New file.
8100 * common/print-utils.c: New file
8101 * Makefile.in (SFILES): Add common/print-utils.c.
8102 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8103 (COMMON_OBS): Add print-utils.o.
8104 (print-utils.o): New target.
8106 2014-02-12 Tom Tromey <tromey@redhat.com>
8108 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8110 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8112 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8114 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8116 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8117 if a PT_IO ptrace request returns sucessfully but indicates that 0
8118 bytes were transferred.
8120 2014-02-12 Pedro Alves <palves@redhat.com>
8121 Kevin Buettner <kevinb@redhat.com>
8123 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8124 TYPE_INSTANCE_FLAG_CODE_SPACE.
8126 2014-02-12 Pedro Alves <palves@redhat.com>
8128 * h8300-tdep.c (pseudo_from_raw_register)
8129 (raw_from_pseudo_register): New functions.
8130 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8133 2014-02-12 Pedro Alves <palves@redhat.com>
8135 * h8300-tdep.c (h8300_register_sim_regno): New function.
8136 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8137 gdbarch_register_sim_regno hook.
8139 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8141 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8143 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8145 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8147 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8149 * obsd-tdep.h (obsd_init_abi): New prototype.
8150 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8151 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8152 (obsd_init_abi): New functions.
8153 * i386obsd-tdep.c: Include "obsd-tdep.h".
8154 (i386obsd_init_abi): Call obsd_init_abi.
8155 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8156 (amd64obsd_init_abi): Call obsd_init_abi.
8157 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8158 obsd-tdep.c to gdb_target_obs.
8160 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8162 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8163 double float arguments to 16-byte in the argument slots.
8165 2014-02-11 Doug Evans <xdje42@gmail.com>
8167 * configure.ac: Don't crash if pkg-config is not found and guile
8168 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8170 * configure: Regenerate.
8172 2014-02-11 Yao Qi <yao@codesourcery.com>
8174 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8175 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8176 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8177 * gnu-nat.c (gnu_xfer_memory): Likewise.
8178 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8179 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8180 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8183 2014-02-11 Yao Qi <yao@codesourcery.com>
8185 * target.h (enum target_xfer_error): Rename to ...
8186 (enum target_xfer_status): ... it. New. All users updated.
8187 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8189 (TARGET_XFER_STATUS_ERROR_P): New macro.
8190 (target_xfer_error_to_string): Remove declaration.
8191 (target_xfer_status_to_string): Declare.
8192 (target_xfer_partial_ftype): Adjust it.
8193 (struct target_ops) <to_xfer_partial>: Return
8194 target_xfer_status. Add argument xfered_len. Update
8196 * target.c (target_xfer_error_to_string): Rename to ...
8197 (target_xfer_status_to_string): ... it. New. All callers
8199 (target_read_live_memory): Likewise. Call target_xfer_partial
8200 instead of target_read.
8201 (memory_xfer_live_readonly_partial): Return
8202 target_xfer_status. Add argument xfered_len.
8203 (raw_memory_xfer_partial): Likewise.
8204 (memory_xfer_partial_1): Likewise.
8205 (memory_xfer_partial): Likewise.
8206 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8207 properly. Update debug message.
8208 (default_xfer_partial, current_xfer_partial): Likewise.
8209 (target_write_partial): Likewise.
8210 (target_read_partial): Likewise. All callers updated.
8211 (read_whatever_is_readable): Likewise.
8212 (target_write_with_progress): Likewise.
8213 (target_read_alloc_1): Likewise.
8215 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8216 * auxv.c (procfs_xfer_auxv): Likewise.
8217 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8218 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8219 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8220 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8221 * corefile.c (read_memory): Adjust.
8222 * corelow.c (core_xfer_partial): Likewise.
8223 * ctf.c (ctf_xfer_partial): Likewise.
8224 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8226 (darwin_xfer_partial): Likewise.
8227 * exec.c (section_table_xfer_memory_partial): Likewise. All
8229 (exec_xfer_partial): Likewise.
8230 * exec.h (section_table_xfer_memory_partial): Update
8232 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8234 (gnu_xfer_partial): Likewise.
8235 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8236 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8237 (ia64_hpux_xfer_solib_got): Likewise.
8238 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8239 type of 'partial_len' to ULONGEST.
8240 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8241 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8242 (linux_nat_xfer_partial): Likewise.
8243 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8244 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8245 * monitor.c (monitor_xfer_memory): Likewise.
8246 (monitor_xfer_partial): Likewise.
8247 * procfs.c (procfs_xfer_partial): Likewise.
8248 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8249 * record-full.c (record_full_xfer_partial): Likewise.
8250 (record_full_core_xfer_partial): Likewise.
8251 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8252 (gdbsim_xfer_partial): Likewise.
8253 * remote.c (remote_write_bytes_aux): Likewise. All callers
8255 (remote_write_bytes, remote_read_bytes): Likewise. All
8257 (remote_flash_erase): Likewise. All callers updated.
8258 (remote_write_qxfer): Likewise. All callers updated.
8259 (remote_read_qxfer): Likewise. All callers updated.
8260 (remote_xfer_partial): Likewise.
8261 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8262 (rs6000_xfer_shared_libraries): Likewise.
8263 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8264 (sol_thread_xfer_partial): Likewise.
8265 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8266 (sparc_xfer_partial): Likewise.
8267 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8269 (spu_xfer_partial): Likewise.
8270 * spu-multiarch.c (spu_xfer_partial): Likewise.
8271 * tracepoint.c (tfile_xfer_partial): Likewise.
8272 * windows-nat.c (windows_xfer_memory): Likewise.
8273 (windows_xfer_shared_libraries): Likewise.
8274 (windows_xfer_partial): Likewise.
8275 * valprint.c: Replace 'target_xfer_error' with
8276 'target_xfer_status' in comments.
8278 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8280 Checked in by Joel Brobecker <brobecker@adacore.com>.
8281 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8283 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8285 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8286 function parameters.
8288 2014-02-10 Will Newton <will.newton@linaro.org>
8290 * elfread.c (elf_rel_plt_read): Look for a .got section if
8291 looking up .got.plt fails.
8292 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8293 on address passed to elf_gnu_ifunc_record_cache.
8294 (elf_gnu_ifunc_resolve_addr): Likewise.
8295 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8297 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8299 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8300 (X_RETTURN): New macro.
8301 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8303 * sparc64-tdep.c (sparc64_init_abi): Hook
8304 sparc_in_function_epilogue_p.
8306 2014-02-10 Gary Benson <gbenson@redhat.com>
8308 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8309 Rename name_matcher to symbol_matcher.
8311 2014-02-10 Gary Benson <gbenson@redhat.com>
8313 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8314 Use expand_symtabs_file_matcher_ftype and
8315 expand_symtabs_symbol_matcher_ftype.
8317 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8319 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8320 (struct ada_symbol_cache): New.
8321 (ada_free_symbol_cache): Forward declare.
8322 (struct ada_pspace_data): New.
8323 (ada_pspace_data_handle): New static global.
8324 (get_ada_pspace_data, ada_pspace_data_cleanup)
8325 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8326 (cache_space, cache): Delete, now folded inside struct
8328 (ada_get_symbol_cache): New function.
8329 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8331 (_initialize_ada_language): Remove initialization of cache_space.
8332 Move call to observer_attach_inferior_exit up, grouping it
8333 with the other observer registrations inside this function.
8334 Rename command to be more general. Add call to
8335 register_program_space_data_with_cleanup.
8337 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8339 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8340 ada_new_objfile_observer.
8341 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8342 (_initialize_tasks): Update uses of ada_new_objfile_observer
8343 and ada_tasks_normal_stop_observer.
8345 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8347 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8348 returned by the 'Length attribute to integer.
8350 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8352 * ada-lang.c (_initialize_ada_language): Initialize
8353 cache_space obstack.
8355 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8357 * ada-lang.c (HASH_SIZE): New macro.
8358 (struct cache_entry): New type.
8359 (cache_space, cache): New static globals.
8360 (ada_clear_symbol_cache, find_entry): New functions.
8361 (lookup_cached_symbol, cache_symbol): Implement.
8362 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8363 (_initialize_ada_language): Attach ada_new_objfile_observer
8364 and ada_free_objfile_observer.
8366 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8368 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8369 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8370 struct block * parameter.
8371 (ada_lookup_symbol_list_worker): Constify local variable "block".
8372 Remove cast which is no longer necessary.
8374 2014-02-10 Doug Evans <xdje42@gmail.com>
8376 Add Guile as an extension language.
8377 * NEWS: Mention Guile scripting.
8378 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8379 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8380 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8381 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8382 (CLIBS): Add GUILE_LIBS.
8383 (install-guile): New rule.
8384 (guile.o): New rule.
8385 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8386 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8387 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8388 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8389 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8390 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8391 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8392 * configure.ac: New option --with-guile.
8393 * configure: Regenerate.
8394 * config.in: Regenerate.
8395 * auto-load.c: Remove #include "python/python.h". Add #include
8396 "gdb/section-scripts.h".
8397 (source_section_scripts): Handle Guile scripts.
8398 (_initialize_auto_load): Add name of Guile objfile script to
8399 scripts-directory help text.
8400 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8401 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8402 (struct breakpoint): New member scm_bp_object.
8403 * defs.h (enum command_control_type): New value guile_control.
8404 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8406 (show_user): Update comment.
8407 (_initialize_cli_cmds): Update help text for "show user". Update help
8408 text for max-user-call-depth.
8409 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8411 (multi_line_command_p): Add guile_control.
8412 (print_command_lines): Handle guile_control.
8413 (execute_control_command, recurse_read_control_structure): Ditto.
8414 (process_next_line): Recognize "guile" commands.
8415 * disasm.c (gdb_disassemble_info): Make non-static.
8416 * disasm.h: #include "dis-asm.h".
8417 (struct gdbarch): Add forward decl.
8418 (gdb_disassemble_info): Declare.
8419 * extension.c: #include "guile/guile.h".
8420 (extension_languages): Add guile.
8421 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8422 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8423 * gdbtypes.c (get_unsigned_type_max): New function.
8424 (get_signed_type_minmax): New function.
8425 * gdbtypes.h (get_unsigned_type_max): Declare.
8426 (get_signed_type_minmax): Declare.
8427 * guile/README: New file.
8428 * guile/guile-internal.h: New file.
8429 * guile/guile.c: New file.
8430 * guile/guile.h: New file.
8431 * guile/scm-arch.c: New file.
8432 * guile/scm-auto-load.c: New file.
8433 * guile/scm-block.c: New file.
8434 * guile/scm-breakpoint.c: New file.
8435 * guile/scm-disasm.c: New file.
8436 * guile/scm-exception.c: New file.
8437 * guile/scm-frame.c: New file.
8438 * guile/scm-gsmob.c: New file.
8439 * guile/scm-iterator.c: New file.
8440 * guile/scm-lazy-string.c: New file.
8441 * guile/scm-math.c: New file.
8442 * guile/scm-objfile.c: New file.
8443 * guile/scm-ports.c: New file.
8444 * guile/scm-pretty-print.c: New file.
8445 * guile/scm-safe-call.c: New file.
8446 * guile/scm-string.c: New file.
8447 * guile/scm-symbol.c: New file.
8448 * guile/scm-symtab.c: New file.
8449 * guile/scm-type.c: New file.
8450 * guile/scm-utils.c: New file.
8451 * guile/scm-value.c: New file.
8452 * guile/lib/gdb.scm: New file.
8453 * guile/lib/gdb/boot.scm: New file.
8454 * guile/lib/gdb/experimental.scm: New file.
8455 * guile/lib/gdb/init.scm: New file.
8456 * guile/lib/gdb/iterator.scm: New file.
8457 * guile/lib/gdb/printing.scm: New file.
8458 * guile/lib/gdb/types.scm: New file.
8459 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8460 (VPATH): Add $(GUILE_SRCDIR).
8461 (GUILE_DIR): New variable.
8462 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8463 (all): Add stamp-guile dependency.
8464 (stamp-guile): New rule.
8465 (clean-guile, install-guile, uninstall-guile): New rules.
8466 (install-only): Add install-guile dependency.
8467 (uninstall): Add uninstall-guile dependency.
8468 (clean): Add clean-guile dependency.
8470 2014-02-09 Doug Evans <xdje42@gmail.com>
8472 Revert this patch (which I approved, mea culpa).
8474 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8476 * Makefile.in (all-lib): Remove.
8477 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8479 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8481 Fix Python stack corruption.
8482 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8485 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8487 * Makefile.in (all-lib): Remove.
8488 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8490 2014-02-07 Doug Evans <dje@google.com>
8492 * extension-priv.h (extension_language_script_ops): Add comment.
8493 (extension_language_ops): Add comment.
8494 (active_ext_lang_state): Fix typo in comment.
8496 2014-02-07 Pedro Alves <palves@redhat.com>
8498 PR breakpoints/16292
8499 * infrun.c (handle_signal_stop) <signal arrives while stepping
8500 over a breakpoint>: Switch back to the stepping thread.
8502 2014-02-07 Yao Qi <yao@codesourcery.com>
8504 * target.c (target_xfer_partial): Return zero if LEN is zero.
8506 2014-02-07 Yao Qi <yao@codesourcery.com>
8508 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8509 (ld_so_xfer_auxv): Likewise.
8510 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8511 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8512 * corelow.c (core_xfer_partial): Likewise.
8513 * ctf.c (ctf_xfer_partial): Likewise.
8514 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8515 (darwin_xfer_partial): Likewise.
8516 * exec.c (exec_xfer_partial): Likewise.
8517 * gnu-nat.c (gnu_xfer_partial): Likewise.
8518 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8519 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8520 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8521 * linux-nat.c (linux_xfer_siginfo): Likewise.
8522 (linux_proc_xfer_spu): Likewise.
8523 * procfs.c (procfs_xfer_partial): Likewise.
8524 * record-full.c (record_full_xfer_partial): Likewise.
8525 (record_full_core_xfer_partial): Likewise.
8526 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8527 * remote.c (remote_write_qxfer): Likewise.
8528 (remote_write_qxfer, remote_read_qxfer): Likewise.
8529 (remote_xfer_partial): Likewise.
8530 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8531 (rs6000_xfer_shared_libraries): Likewise.
8532 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8533 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8534 (spu_xfer_partial): Likewise.
8535 * target.c (memory_xfer_partial_1): Likewise.
8536 * tracepoint.c (tfile_xfer_partial): Likewise.
8537 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8538 (windows_xfer_partial): Likewise.
8540 2014-02-07 Yao Qi <yao@codesourcery.com>
8542 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8544 (core_xfer_shared_libraries_aix): Likewise.
8545 * gdbarch.c, gdbarch.h: Regenerated.
8546 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8547 ULONGEST. Change 'len_avail' type to ULONGEST.
8548 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8549 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8551 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8553 2014-02-07 Yao Qi <yao@codesourcery.com>
8555 * corefile.c (memory_error): Get 'exception' from ERR and pass
8556 'exception' to throw_error.
8558 2014-02-06 Doug Evans <xdje42@gmail.com>
8560 * configure.ac (libpython checking): Remove all but python.o from
8561 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8562 * configure: Regenerate.
8564 * Makefile.in (SFILES): Add extension.c.
8565 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8566 (COMMON_OBS): Add extension.o.
8567 * extension.h: New file.
8568 * extension-priv.h: New file.
8569 * extension.c: New file.
8571 * python/python-internal.h: #include "extension.h".
8572 (gdbpy_auto_load_enabled): Declare.
8573 (gdbpy_apply_val_pretty_printer): Declare.
8574 (gdbpy_apply_frame_filter): Declare.
8575 (gdbpy_preserve_values): Declare.
8576 (gdbpy_breakpoint_cond_says_stop): Declare.
8577 (gdbpy_breakpoint_has_cond): Declare.
8578 (void source_python_script_for_objfile): Delete.
8579 * python/python.c: #include "extension-priv.h".
8580 Delete inclusion of "observer.h".
8581 (extension_language_python): Moved here and renamed from
8582 script_language_python in py-auto-load.c.
8583 Redefined to be of type extension_language_defn.
8584 (python_extension_script_ops): New global.
8585 (python_extension_ops): New global.
8586 (struct python_env): New member previous_active.
8587 (restore_python_env): Call restore_active_ext_lang.
8588 (ensure_python_env): Call set_active_ext_lang.
8589 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8591 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8593 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8595 (gdbpy_eval_from_control_command): Renamed from
8596 eval_python_from_control_command, made static. New arg extlang.
8597 (gdbpy_source_script) Renamed from source_python_script, made static.
8599 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8600 result to int. New arg extlang.
8601 (gdbpy_source_objfile_script): Renamed from
8602 source_python_script_for_objfile, made static. New arg extlang.
8603 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8604 static. New args extlang, extlang_printers. Change result type to
8606 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8607 static. New arg extlang. Rename arg printers to extlang_printers
8608 and change type to ext_lang_type_printers *.
8609 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8610 static. Replace argument arg with extlang, extlang_printers.
8611 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8612 (!HAVE_PYTHON, source_python_script): Delete.
8613 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8614 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8615 (!HAVE_PYTHON, start_type_printers): Delete.
8616 (!HAVE_PYTHON, apply_type_printers): Delete.
8617 (!HAVE_PYTHON, free_type_printers): Delete.
8618 (_initialize_python): Delete call to observer_attach_before_prompt.
8619 (finalize_python): Set/restore active extension language.
8620 (gdbpy_finish_initialization) Renamed from
8621 finish_python_initialization, made static. New arg extlang.
8622 (gdbpy_initialized): New function.
8623 * python/python.h: #include "extension.h". Delete #include
8624 "value.h", "mi/mi-cmds.h".
8625 (extension_language_python): Declare.
8626 (GDBPY_AUTO_FILE_NAME): Delete.
8627 (enum py_bt_status): Moved to extension.h and renamed to
8629 (enum frame_filter_flags): Moved to extension.h.
8630 (enum py_frame_args): Moved to extension.h and renamed to
8631 ext_lang_frame_args.
8632 (finish_python_initialization): Delete.
8633 (eval_python_from_control_command): Delete.
8634 (source_python_script): Delete.
8635 (apply_val_pretty_printer): Delete.
8636 (apply_frame_filter): Delete.
8637 (preserve_python_values): Delete.
8638 (gdbpy_script_language_defn): Delete.
8639 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8640 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8642 * auto-load.c: #include "extension.h".
8643 (GDB_AUTO_FILE_NAME): Delete.
8644 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8645 (script_language_gdb): Delete, moved to extension.c and renamed to
8646 extension_language_gdb.
8647 (source_gdb_script_for_objfile): Delete.
8648 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8649 (loaded_script): Change type of language member to
8650 struct extension_language_defn *.
8651 (init_loaded_scripts_info): Initialize
8652 unsupported_script_warning_printed.
8653 (maybe_add_script): Make static. Change type of language arg to
8654 struct extension_language_defn *.
8655 (clear_section_scripts): Reset unsupported_script_warning_printed.
8656 (auto_load_objfile_script_1): Rewrite to use extension language API.
8657 (auto_load_objfile_script): Make public. Remove support-compiled-in
8658 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8659 (source_section_scripts): Rewrite to use extension language API.
8660 (load_auto_scripts_for_objfile): Rewrite to use
8661 auto_load_scripts_for_objfile.
8662 (collect_matching_scripts_data): Change type of language member to
8663 struct extension_language_defn *.
8664 (auto_load_info_scripts): Change type of language arg to
8665 struct extension_language_defn *.
8666 (unsupported_script_warning_print): New function.
8667 (script_not_found_warning_print): Make static.
8668 (_initialize_auto_load): Rewrite construction of scripts-directory
8670 * auto-load.h (struct objfile): Add forward decl.
8671 (struct script_language): Delete.
8672 (struct auto_load_pspace_info): Add forward decl.
8673 (struct extension_language_defn): Add forward decl.
8674 (maybe_add_script): Delete.
8675 (auto_load_objfile_script): Declare.
8676 (script_not_found_warning_print): Delete.
8677 (auto_load_info_scripts): Update prototype.
8678 (auto_load_gdb_scripts_enabled): Declare.
8679 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8680 auto_load_python_scripts_enabled and made public.
8681 (script_language_python): Delete, moved to python.c.
8682 (gdbpy_script_language_defn): Delete.
8683 (info_auto_load_python_scripts): Update to use
8684 extension_language_python.
8686 * breakpoint.c (condition_command): Replace call to
8687 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8688 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8689 with call to breakpoint_ext_lang_cond_says_stop.
8690 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8691 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8692 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8693 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8695 (local_setattro): Print name of extension language with existing
8698 * valprint.c (val_print, value_print): Update to call
8699 apply_ext_lang_val_pretty_printer.
8700 * cp-valprint.c (cp_print_value): Update call to
8701 apply_ext_lang_val_pretty_printer.
8702 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8703 (gdbpy_apply_val_pretty_printer): Renamed from
8704 apply_val_pretty_printer. New arg extlang.
8705 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8707 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8708 extension language API.
8709 * cli/cli-script.c (execute_control_command): Update to call
8710 eval_ext_lang_from_control_command.
8712 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8713 enum ext_lang_bt_status values. Update call to
8714 apply_ext_lang_frame_filter.
8715 (mi_cmd_stack_list_locals): Ditto.
8716 (mi_cmd_stack_list_args): Ditto.
8717 (mi_cmd_stack_list_variables): Ditto.
8718 * mi/mi-main.c: Delete #include "python/python-internal.h".
8719 Add #include "extension.h".
8720 (mi_cmd_list_features): Replace reference to python internal variable
8721 gdb_python_initialized with call to ext_lang_initialized_p.
8723 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8724 Update to use enum ext_lang_frame_args. Update to call
8725 apply_ext_lang_frame_filter.
8726 * python/py-framefilter.c (extract_sym): Update to use enum
8728 (extract_value, py_print_type, py_print_value): Ditto.
8729 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8730 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8731 (py_print_frame): Ditto.
8732 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8733 New arg extlang. Update to use enum ext_lang_bt_status.
8735 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8736 finish_python_initialization. Replace with call to
8737 finish_ext_lang_initialization.
8739 * typeprint.c (do_free_global_table): Update to call
8740 free_ext_lang_type_printers.
8741 (create_global_typedef_table): Update to call
8742 start_ext_lang_type_printers.
8743 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8744 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8745 (type_print_options): Change type of global_printers from "void *"
8746 to "struct ext_lang_type_printers *".
8748 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8749 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8750 (gdbpy_preserve_values): Renamed from preserve_python_values.
8752 (!HAVE_PYTHON, preserve_python_values): Delete.
8754 * utils.c (quit_flag): Delete, moved to extension.c.
8755 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8758 * eval.c: Delete #include "python/python.h".
8759 * main.c: Delete #include "python/python.h".
8761 * defs.h: Update comment.
8763 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8767 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8769 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8772 2014-02-05 Yao Qi <yao@codesourcery.com>
8774 * remote.c (remote_pass_signals): Remove local 'buf' and use
8776 (remote_program_signals): Likewise.
8778 2014-02-05 Yao Qi <yao@codesourcery.com>
8780 * ctf.c: Include "inferior.h" and "gdbthread.h".
8781 (CTF_PID): A new macro.
8782 (ctf_open): Call inferior_appeared and add_thread_silent.
8783 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8784 (ctf_thread_alive): New function.
8785 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8787 2014-02-05 Yao Qi <yao@codesourcery.com>
8791 2013-05-24 Yao Qi <yao@codesourcery.com>
8793 * tracepoint.c (TFILE_PID): Remove.
8794 (tfile_open): Don't add thread and inferior.
8795 (tfile_close): Don't set 'inferior_ptid'. Don't call
8796 exit_inferior_silent.
8797 (tfile_thread_alive): Remove.
8798 (init_tfile_ops): Don't set field 'to_thread_alive' of
8801 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8803 * remote.c (remote_start_remote): Call remote_check_symbols even
8804 if only symbol-file (not file) has been given.
8806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8808 * gdbarch.sh (skip_entrypoint): New callback.
8809 * gdbarch.c, gdbarch.h: Regenerate.
8810 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8811 * infrun.c (fill_in_stop_func): Likewise.
8812 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8813 (ppc_elfv2_elf_make_msymbol_special): New function.
8814 (ppc_elfv2_skip_entrypoint): Likewise.
8815 (ppc_linux_init_abi): Install them for ELFv2.
8817 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8819 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8820 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8821 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8822 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8823 structures returned in GPRs.
8825 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8827 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8828 offset to the stack parameter list for the ELFv2 ABI.
8830 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8832 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8833 set_gdbarch_convert_from_func_ptr_addr and
8834 set_gdbarch_elf_make_msymbol_special for ELFv1.
8835 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8836 function descriptors on ELFv1.
8837 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8838 set up r12 at function entry.
8840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8842 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8843 (struct gdbarch_tdep): New member elf_abi.
8845 * rs6000-tdep.c: Include "elf/ppc64.h".
8846 (rs6000_gdbarch_init): Detect ELF ABI version.
8848 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8850 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8851 within a register pair holding a DFP 128-bit value on little-endian.
8852 (ppc64_sysv_abi_return_value_base): Likewise.
8853 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8854 (dfp_pseudo_register_write): Likewise.
8856 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8858 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8859 offset on little-endian when passing _Decimal32.
8860 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8862 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8864 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8865 of the overlapped FP register within the VSX register on little-
8867 (efpr_pseudo_register_write): Likewise.
8869 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8871 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8872 offset on little-endian when passing small structures.
8874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8876 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8877 (struct ppc64_sysv_argpos): New data structure.
8878 (ppc64_sysv_abi_push_float): Remove.
8879 (ppc64_sysv_abi_push_val): New function.
8880 (ppc64_sysv_abi_push_integer): Likewise.
8881 (ppc64_sysv_abi_push_freg): Likewise.
8882 (ppc64_sysv_abi_push_vreg): Likewise.
8883 (ppc64_sysv_abi_push_param): Likewise.
8884 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8885 (ppc64_sysv_abi_return_value_base): New function.
8886 (ppc64_sysv_abi_return_value): Refactor to use it.
8888 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8890 * NEWS: Document new target powerpc64le-*-linux*.
8892 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8894 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8895 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8897 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8898 register set used in ELF core dumps. Add floating-point register set.
8900 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8902 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8903 dwarf2_to_gdb[] table using symbolic constants. Adjust
8904 penultimate entry from number representing the PC register
8905 to symbolic constant representing the MDR register. Add
8906 constant for the PC register to the end of the table.
8908 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8910 * bsd-kvm.c: Include <sys/param.h>
8912 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8914 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8916 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8918 * ada-lang.h (clear_ada_sym_cache): Delete.
8920 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8922 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8924 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8926 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8927 the sigreturn register save area only if the syscall is
8930 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8932 * valops.c (value_slice): Minor reformatting.
8934 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8936 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8938 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8940 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8942 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8943 (ada_ignore_descriptive_types_p): New static global.
8944 (find_parallel_type_by_descriptive_type): Return immediately
8945 if ada_ignore_descriptive_types_p is set.
8946 (_initialize_ada_language): Register new commands "maintenance
8947 set ada", "maintenance show ada", "maintenance set ada
8948 ignore-descriptive-types" and "maintenance show ada
8949 ignore-descriptive-types".
8950 * NEWS: Add entry for new "maint ada set/show
8951 ignore-descriptive-types" commands.
8953 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8955 * record-btrace.c (record_btrace_close): Call btrace_teardown
8958 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8960 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8963 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8965 * ada-typeprint (type_is_full_subrange_of_target_type):
8967 (print_range): Add parameter bounds_prefered_p. If not set,
8968 try printing range types using the name of their base type.
8969 (print_range_type): Add parameter bounds_prefered_p.
8970 Use it in call to print_range.
8971 (print_array_type, ada_print_type): Update calls to print_range
8972 and print_range_type.
8974 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8976 * ada-typeprint.c (print_array_type, print_choices, print_range)
8977 (print_range_bound, print_dynamic_range_bound, print_range_type):
8980 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8982 * ada-typeprint.c (print_range): Add missing empty line
8983 after local declaration.
8985 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8987 * ada-valprint.c (print_optional_low_bound): Get index_type's
8988 target type for as long as it is a TYPE_CODE_RANGE.
8990 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8992 * procfs.c (procfs_make_note_section): Remove assertion and
8995 2014-01-24 Yao Qi <yao@codesourcery.com>
8997 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8998 * corelow.c (get_core_siginfo): Likewise.
9000 2014-01-24 Yao Qi <yao@codesourcery.com>
9002 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9003 ULONGEST. Don't check 'len' is negative.
9004 (remote_write_bytes): Change type of 'len' to ULONGEST.
9006 2014-01-23 Tom Tromey <tromey@redhat.com>
9009 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9010 Handle exception from frame.block.
9011 (FrameVars.fetch_frame_locals): Likewise.
9013 2014-01-23 Tom Tromey <tromey@redhat.com>
9016 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9017 on a NULL pointer. Move "goto error" to correct place.
9019 2014-01-23 Tom Tromey <tromey@redhat.com>
9022 * python/py-framefilter.c (apply_frame_filter): Call
9023 ensure_python_env after computing gdbarch.
9025 2014-01-23 Yao Qi <yao@codesourcery.com>
9027 * target.c (raw_memory_xfer_partial): Change argument type
9028 from void * to gdb_byte *.
9029 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9031 2014-01-22 Doug Evans <dje@google.com>
9033 New gdbserver option --debug-format=timestamp.
9036 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9038 * syscalls/s390x-linux.xml: New file.
9039 * syscalls/s390-linux.xml: New file.
9040 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9041 (XML_SYSCALL_FILENAME_S390X): Likewise.
9042 (op_svc): New enum value for SVC opcode.
9043 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9044 (s390_linux_get_syscall_number): New function.
9045 (s390_gdbarch_init): Register '*get_syscall_number' and the
9046 syscall xml file name.
9047 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9048 "s390-linux.xml" and "s390x-linux.xml".
9049 * NEWS: Announce new feature.
9051 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9053 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9055 2014-01-22 Pedro Alves <palves@redhat.com>
9057 * xtensa-config.c: Include defs.h.
9059 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9061 * common/common-utils.h: Add "ARI:" comment beside __func__
9064 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9066 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9067 documentation a bit.
9069 2014-01-21 Roland McGrath <mcgrathr@google.com>
9071 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9072 * configure: Regenerate.
9073 * aclocal.m4: Regenerate.
9074 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9075 New substituted variables.
9076 (install-strip): New target.
9077 (INSTALL_SCRIPT): New substituted variable.
9078 (FLAGS_TO_PASS): Add it.
9079 (install-only): Use $(INSTALL_SCRIPT) rather than
9080 $(INSTALL_PROGRAM) for gcore.
9082 2014-01-20 Tom Tromey <tromey@redhat.com>
9084 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9087 2014-01-20 Tom Tromey <tromey@redhat.com>
9089 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9090 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9091 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9092 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9093 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9094 (struct cmd_list_element) <flags>: Remove.
9095 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9096 doc_allocated>: New fields.
9097 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9099 * maint.c (maintenance_do_deprecate): Update.
9100 * top.c (execute_command): Update.
9102 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9104 * xtensa-linux-nat.c: Include asm/ptrace.h.
9106 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9108 * Makefile.in (SFILES): Add d-support.c.
9109 (COMMON_OBS): Add d-support.o.
9110 * d-lang.h (d_parse_symbol): Add comment, now defined in
9112 * d-lang.c (parse_call_convention)
9113 (parse_attributes, parse_function_types)
9114 (parse_function_args, parse_type, parse_identifier)
9115 (call_convention_p, d_parse_symbol): Move functions to ...
9116 * d-support.c: ... New file.
9118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9120 * d-lang.h (d_parse_symbol): Add declaration.
9121 * d-lang.c (extract_identifiers)
9122 (extract_type_info): Remove functions.
9123 (parse_call_convention, parse_attributes)
9124 (parse_function_types, parse_function_args)
9125 (parse_type, parse_identifier, call_convention_p)
9126 (d_parse_symbol): New functions.
9127 (d_demangle): Use d_parse_symbol to demangle D symbols.
9129 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9131 * d-lang.h (struct builtin_d_type): New data type.
9132 (builtin_d_type): Add declaration.
9133 * d-lang.c (d_language_arch_info, build_d_types)
9134 (builtin_d_type): New functions.
9135 (enum d_primitive_types): New data type.
9136 (d_language_defn): Change c_language_arch_info to
9137 d_language_arch_info.
9138 (d_type_data): New static variable.
9139 (_initialize_d_language): Initialize d_type_data.
9141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9143 * d-lang.h (d_main_name): Add declaration.
9144 * d-lang.c (d_main_name): New function.
9145 * symtab.c (find_main_name): Add call to d_main_name.
9147 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9149 * d-lang.c (d_language_defn): Change macro_expansion_c to
9152 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9154 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9156 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9158 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9159 gdb_exception" declaration.
9160 * remote.c (getpkt_or_notif_sane): Likewise.
9162 2014-01-17 Doug Evans <dje@google.com>
9164 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9165 function, contents of dirnames_to_char_ptr_vec_append moved here.
9166 (delim_string_to_char_ptr_vec): New function.
9167 (dirnames_to_char_ptr_vec_append): Rewrite.
9168 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9170 2014-01-17 Doug Evans <dje@google.com>
9172 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9174 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9175 #include "common-utils.h".
9176 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9177 * common/vec.h (VEC_ASSERT_PASS): Update.
9178 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9179 (MACH_CHECK_ERROR): Update.
9181 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9183 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9185 * gdbarch.h: Regenerate.
9187 2014-01-16 Tom Tromey <tromey@redhat.com>
9189 * value.c (struct value) <regnum>: Move earlier.
9191 2014-01-16 Tom Tromey <tromey@redhat.com>
9193 * remote.c (extended_remote_create_inferior): Rename from
9194 extended_remote_create_inferior_1. Add "ops" argument. Remove
9197 2014-01-16 Pedro Alves <palves@redhat.com>
9199 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9200 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9203 2014-01-16 Doug Evans <dje@google.com>
9205 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9207 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9209 * btrace.h (btrace_thread_flag): New.
9210 (struct btrace_thread_info) <flags>: New.
9211 * record-btrace.c (record_btrace_resume_thread)
9212 (record_btrace_find_thread_to_move, btrace_step_no_history)
9213 (btrace_step_stopped, record_btrace_start_replaying)
9214 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9215 (record_btrace_find_resume_thread): New.
9216 (record_btrace_resume, record_btrace_wait): Extend.
9217 (record_btrace_can_execute_reverse): New.
9218 (record_btrace_open): Fail in non-stop mode.
9219 (record_btrace_set_replay): Split into this, ...
9220 (record_btrace_stop_replaying): ... this, ...
9221 (record_btrace_clear_histories): ... and this.
9222 (init_record_btrace_ops): Init to_can_execute_reverse.
9223 * NEWS: Announce it.
9225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9227 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9228 (forward_target_decr_pc_after_break)
9229 (target_decr_pc_after_break): New.
9230 * target.c (forward_target_decr_pc_after_break)
9231 (target_decr_pc_after_break): New.
9232 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9233 instead of gdbarch_decr_pc_after_break.
9234 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9235 instead of gdbarch_decr_pc_after_break.
9236 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9237 instead of gdbarch_decr_pc_after_break.
9238 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9239 instead of gdbarch_decr_pc_after_break.
9240 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9241 instead of gdbarch_decr_pc_after_break.
9242 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9243 instead of gdbarch_decr_pc_after_break.
9245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9247 * btrace.c: Include regcache.h.
9248 (btrace_add_pc): New.
9249 (btrace_enable): Call btrace_add_pc.
9250 (btrace_is_empty): New.
9251 * btrace.h (btrace_is_empty): New.
9252 * record-btrace.c (require_btrace, record_btrace_info): Call
9255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9257 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9258 Support delta reads.
9259 (linux_disable_btrace): Change return type.
9260 * common/linux-btrace.h (linux_read_btrace): Change parameters
9261 and return type to allow error reporting. Update users.
9262 (linux_disable_btrace): Change return type. Update users.
9263 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9265 (btrace_error): New.
9266 (btrace_block) <begin>: Comment on BEGIN == 0.
9267 * btrace.c (btrace_compute_ftrace): Start from the end of
9269 (btrace_stitch_trace, btrace_clear_history): New.
9270 (btrace_fetch): Read delta trace, return if replaying.
9271 (btrace_clear): Move clear history code to btrace_clear_history.
9272 (parse_xml_btrace): Throw an error if parsing failed.
9273 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9274 and return type to allow error reporting.
9275 (target_read_btrace): Change parameters and return type to allow
9277 * target.c (target_read_btrace): Update.
9278 * remote.c (remote_read_btrace): Support delta reads. Pass
9280 * NEWS: Announce it.
9282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9284 * record.h (record_btrace_frame_unwind)
9285 (record_btrace_tailcall_frame_unwind): New declarations.
9286 * dwarf2-frame: Include record.h
9287 (dwarf2_frame_cfa): Throw an error for btrace frames.
9288 * record-btrace.c: Include hashtab.h.
9289 (btrace_get_bfun_name): New.
9290 (btrace_call_history): Call btrace_get_bfun_name.
9291 (struct btrace_frame_cache): New.
9293 (bfcache_hash, bfcache_eq, bfcache_new): New.
9294 (btrace_get_frame_function): New.
9295 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9296 (record_btrace_frame_this_id): Compute own id.
9297 (record_btrace_frame_prev_register): Provide PC, throw_error
9298 for all other registers.
9299 (record_btrace_frame_sniffer): Detect btrace frames.
9300 (record_btrace_tailcall_frame_sniffer): New.
9301 (record_btrace_frame_dealloc_cache): New.
9302 (record_btrace_frame_unwind): Add new functions.
9303 (record_btrace_tailcall_frame_unwind): New.
9304 (_initialize_record_btrace): Allocate cache.
9305 * btrace.c (btrace_clear): Call reinit_frame_cache.
9306 * NEWS: Announce it.
9308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9310 * record-btrace.c (record_btrace_set_replay)
9311 (record_btrace_goto_begin, record_btrace_goto_end)
9312 (record_btrace_goto): New.
9313 (init_record_btrace_ops): Initialize them.
9314 * NEWS: Announce it.
9316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9318 * record-btrace.c (record_btrace_find_new_threads)
9319 (record_btrace_thread_alive): New.
9320 (init_record_btrace_ops): Initialize to_find_new_threads and
9323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9325 * record-btrace.c (record_btrace_resume): New.
9326 (record_btrace_wait): New.
9327 (init_record_btrace_ops): Initialize to_wait and to_resume.
9329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9331 * record-btrace.c (record_btrace_xfer_partial)
9332 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9333 (record_btrace_allow_memory_access): New.
9334 (init_record_btrace_ops): Initialize new methods.
9335 * target.c (raw_memory_xfer_partial): Bail out if target reports
9336 that this memory is not available.
9338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9340 * target.h (target_ops) <to_insert_breakpoint>
9341 <to_remove_breakpoint>: Add target_ops parameter.
9342 (forward_target_insert_breakpoint): New.
9343 (forward_target_remove_breakpoint): New.
9344 (memory_remove_breakpoint, memory_insert_breakpoint):
9345 Add target_ops parameter.
9346 * target.c (target_insert_breakpoint): Split into this and ...
9347 (forward_target_insert_breakpoint): ... this.
9348 (target_remove_breakpoint): Split into this and ...
9349 (forward_target_remove_breakpoint): ... this.
9350 (debug_to_insert_breakpoint): Add target_ops parameter.
9351 Call forward_target_insert_breakpoint.
9352 (debug_to_remove_breakpoint): Add target_ops parameter.
9353 Call forward_target_remove_breakpoint.
9354 (update_current_target): Do not inherit or default to_insert_breakpoint
9355 and to_remove_breakpoint.
9356 * corelow.c (ignore): Add target_ops parameter.
9357 * exec.c (ignore): Add target_ops parameter.
9358 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9359 Add target_ops parameter.
9360 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9361 Add target_ops parameter.
9362 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9363 Add target_ops parameter.
9364 * record-full.c (record_full_beneath_to_insert_breakpoint)
9365 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9366 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9367 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9368 (record_full_core_remove_breakpoint): Add target_ops parameter.
9370 (record_full_beneath_to_insert_breakpoint_ops)
9371 (record_full_beneath_to_remove_breakpoint_ops)
9372 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9373 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9374 tmp_to_remove_breakpoint_ops,
9375 record_full_beneath_to_insert_breakpoint_ops, and
9376 record_full_beneath_to_remove_breakpoint_ops.
9377 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9378 (m32r_remove_breakpoint): Add target_ops parameter.
9379 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9380 Add target_ops parameter.
9381 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9382 Add target_ops parameter.
9384 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9385 Markus Metzger <markus.t.metzger@intel.com>
9387 * record-btrace.c: Include frame-unwind.h.
9388 (record_btrace_frame_unwind_stop_reason)
9389 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9390 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9392 (init_record_btrace_ops): Install it.
9394 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9396 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9399 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9401 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9404 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9406 * frame-unwind.c: Include target.h.
9407 (frame_unwind_try_unwinder): New function with code from ...
9408 (frame_unwind_find_by_frame): ... here. New variable
9409 unwinder_from_target, call also target_get_unwinder)
9410 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9411 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9412 * target.h (struct target_ops): New fields to_get_unwinder and
9413 to_get_tailcall_unwinder.
9414 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9418 * record-btrace.c (record_btrace_fetch_registers)
9419 (record_btrace_store_registers)
9420 (record_btrace_to_prepare_to_store): New.
9421 (init_record_btrace_ops): Add the above.
9423 2014-01-16 Tom Tromey <tromey@redhat.com>
9425 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9426 * target.h (struct target_ops) <to_prepare_to_store>: Add
9428 (target_prepare_to_store): Add argument.
9429 * target.c (debug_to_prepare_to_store): Add argument.
9430 (update_current_target): Update.
9431 * remote.c (remote_prepare_to_store): Add 'self' argument.
9432 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9433 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9434 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9435 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9437 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9438 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9439 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9440 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9441 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9445 * btrace.h (replay) <replay>: New.
9446 (btrace_is_replaying): New.
9447 * btrace.c (btrace_clear): Free replay iterator.
9448 (btrace_is_replaying): New.
9449 * record-btrace.c (record_btrace_is_replaying): New.
9450 (record_btrace_info): Print insn number if replaying.
9451 (record_btrace_insn_history): Start at replay position.
9452 (record_btrace_call_history): Start at replay position.
9453 (init_record_btrace_ops): Init to_record_is_replaying.
9455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9457 * record-btrace.c (record_btrace_insn_history_range): Include
9459 (record_btrace_insn_history_from): Adjust range.
9460 (record_btrace_call_history_range): Include
9462 (record_btrace_call_history_from): Adjust range.
9463 * NEWS: Announce changes.
9465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9467 * record.h (enum record_print_flag)
9468 <record_print_indent_calls>: New.
9469 * record.c (get_call_history_modifiers): Recognize /c modifier.
9470 (_initialize_record): Document /c modifier.
9471 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9472 Reorder fields. Optionally indent the function name. Update
9474 * NEWS: Announce changes.
9476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9478 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9482 * btrace.c (ftrace_new_function): Start counting at one.
9483 * record-btrace.c (record_btrace_info): Adjust number of calls
9485 * NEWS: Announce it.
9487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9489 * record-btrace.c (btrace_call_history_insn_range): Print
9490 insn range as [begin, end].
9492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9494 * btrace.h (struct btrace_func_link): New.
9495 (enum btrace_function_flag): New.
9496 (struct btrace_inst): Rename to ...
9497 (struct btrace_insn): ...this. Update all users.
9498 (struct btrace_func) <ibegin, iend>: Remove.
9499 (struct btrace_func_link): New.
9500 (struct btrace_func): Rename to ...
9501 (struct btrace_function): ...this. Update all users.
9502 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9503 (number, level, flags>: New.
9504 (struct btrace_insn_iterator): Rename to ...
9505 (struct btrace_insn_history): ...this.
9507 (struct btrace_insn_iterator, btrace_call_iterator): New.
9508 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9509 (struct btrace_target_info) <begin, end, level>
9510 <insn_history, call_history>: New.
9511 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9512 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9513 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9514 (btrace_call_number, btrace_call_begin, btrace_call_end)
9515 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9516 (btrace_find_function_by_number, btrace_set_insn_history)
9517 (btrace_set_call_history): New.
9518 * btrace.c (btrace_init_insn_iterator)
9519 (btrace_init_func_iterator, compute_itrace): Remove.
9520 (ftrace_print_function_name, ftrace_print_filename)
9521 (ftrace_skip_file): Change
9523 (ftrace_init_func): Remove.
9524 (ftrace_debug): Use new btrace_function fields.
9525 (ftrace_function_switched): Also consider gaining and
9526 losing symbol information).
9527 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9528 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9529 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9531 (ftrace_new_function): Move. Remove debug print.
9532 (ftrace_update_lines, ftrace_update_insns): New.
9533 (ftrace_update_function): Check for call, ret, and jump.
9534 (compute_ftrace): Renamed to ...
9535 (btrace_compute_ftrace): ...this. Rewritten to compute call
9537 (btrace_fetch, btrace_clear): Updated.
9538 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9539 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9540 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9541 (btrace_call_number, btrace_call_begin, btrace_call_end)
9542 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9543 (btrace_find_function_by_number, btrace_set_insn_history)
9544 (btrace_set_call_history): New.
9545 * record-btrace.c (require_btrace): Use new btrace thread
9547 (record_btrace_info, btrace_insn_history)
9548 (record_btrace_insn_history, record_btrace_insn_history_range):
9549 Use new btrace thread info fields and new iterator.
9550 (btrace_func_history_src_line): Rename to ...
9551 (btrace_call_history_src_line): ...this. Use new btrace
9553 (btrace_func_history): Rename to ...
9554 (btrace_call_history): ...this. Use new btrace thread info
9555 fields and new iterator.
9556 (record_btrace_call_history, record_btrace_call_history_range):
9557 Use new btrace thread info fields and new iterator.
9559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9561 * frame.h (frame_id_build_unavailable_stack_special): New.
9562 * frame.c (frame_id_build_unavailable_stack_special): New.
9564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9566 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9567 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9568 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9570 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9571 (i386_insn_is_jump, i386_jmp_p): New.
9572 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9573 insn_is_jump to gdbarch.
9574 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9575 * gdbarch.h: Regenerated.
9576 * gdbarch.c: Regenerated.
9577 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9578 (default_insn_is_jump): New.
9579 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9580 (default_insn_is_jump): New.
9582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9584 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9586 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9587 (btrace_read_type) <btrace_read_new>: Change to ...
9588 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9592 * common/linux-btrace.c (linux_read_btrace): Free trace from
9595 2014-01-15 Doug Evans <dje@google.com>
9597 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9600 2014-01-15 Tom Tromey <tromey@redhat.com>
9602 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9603 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9604 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9605 (set_objfile_main_name): New function.
9606 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9607 language_of_main>: New fields.
9608 (set_objfile_main_name): Declare.
9609 * symtab.c (find_main_name): Loop over objfiles to find the main
9611 (set_main_name): Now static.
9612 (get_main_info): Add comment.
9613 * symtab.h (set_main_name): Don't declare.
9615 2014-01-15 Tom Tromey <tromey@redhat.com>
9617 * symtab.c (main_progspace_key): New global.
9618 (struct main_info): New.
9619 (name_of_main, language_of_main): Remove.
9620 (get_main_info, main_info_cleanup): New function.
9621 (set_main_name, main_name, main_language): Use get_main_info.
9622 (_initialize_symtab): Initialize main_progspace_key.
9624 2014-01-15 Tom Tromey <tromey@redhat.com>
9626 * dbxread.c (process_one_symbol): Update.
9627 * dwarf2read.c (read_partial_die): Update.
9628 * symfile.c (set_initial_language): Call main_language.
9629 * symtab.c (language_of_main): Now static.
9630 (set_main_name): Add 'lang' parameter.
9631 (find_main_name): Update.
9632 (main_language): New function.
9633 (symtab_observer_executable_changed): Update.
9634 * symtab.h (set_main_name): Update.
9635 (language_of_main): Remove.
9636 (main_language): Declare.
9638 2014-01-15 Tom Tromey <tromey@redhat.com>
9640 * symfile.c (init_entry_point_info): Use new "initialized" field.
9642 * objfiles.h (struct entry_point) <initialized>: New field.
9643 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9644 (struct objfile) <ei>: ...here. Remove.
9645 * objfiles.c (entry_point_address_query): Update.
9647 2014-01-15 Tom Tromey <tromey@redhat.com>
9649 * objfiles.c (entry_point_address_query): Relocate entry point
9651 (objfile_relocate1): Do not relocate entry point address.
9652 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9653 <the_bfd_section_index>: New field.
9654 * symfile.c (init_entry_point_info): Find the entry point's
9657 2014-01-15 Tom Tromey <tromey@redhat.com>
9659 * solib-frv.c (enable_break): Use entry_point_address_query.
9661 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9663 * NEWS: Add note on improved process record-replay on
9664 arm*-linux* targets.
9666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9668 * arm-tdep.c (enum arm_record_result): New enum.
9669 (arm_record_unsupported_insn): New function.
9670 (arm_record_coproc_data_proc): Removed.
9671 (thumb2_record_ld_st_multiple): New function.
9672 (thumb2_record_ld_st_dual_ex_tbb): New function.
9673 (thumb2_record_data_proc_sreg_mimm): New function.
9674 (thumb2_record_ps_dest_generic): New function.
9675 (thumb2_record_branch_misc_cntrl): New function.
9676 (thumb2_record_str_single_data): New function.
9677 (thumb2_record_ld_mem_hints): New function.
9678 (thumb2_record_ld_word): New function.
9679 (thumb2_record_lmul_lmla_div): New function.
9680 (thumb2_record_decode_insn_handler): New function.
9681 (decode_insn): Add thumb32 instruction handlers.
9683 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9685 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9686 (struct arm_linux_record_tdep): Declare.
9687 (arm_canonicalize_syscall): New function.
9688 (arm_all_but_pc_registers_record): New function.
9689 (arm_linux_syscall_record): New function.
9690 (arm_linux_init_abi): Add syscall recording constructs.
9691 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9692 decoding. (arm_record_coproc_data_proc): Update arm syscall
9694 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9695 <arm_syscall_record>: New field.
9696 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9699 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9701 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9702 register for push instruction recording.
9704 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9706 * arm-tdep.c (thumb_record_misc): Update to correct logical
9707 error while recording ldm, ldmia and pop instructions.
9709 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9711 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9713 2014-01-15 Pedro Alves <palves@redhat.com>
9715 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9716 (go32_resume, go32_fetch_registers, store_register)
9717 (go32_store_registers, go32_prepare_to_store)
9718 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9719 (go32_create_inferior, go32_can_run, go32_terminal_init)
9720 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9723 2014-01-15 Tom Tromey <tromey@redhat.com>
9725 * target.h (async_callback_ftype): New typedef.
9726 (struct target_ops) <to_async>: Use it.
9728 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9730 * python/py-value.c (get_field_type): Remove unnecessary curly
9731 braces for single-statement if block.
9733 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9735 * python/py-type.c (convert_field): Add missing empty line
9738 2014-01-14 Doug Evans <dje@google.com>
9740 * symfile.h (expand_symtabs_matching): Renamed from
9741 expand_partial_symbol_names. Update prototype.
9742 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9743 * symfile.c (expand_symtabs_matching): Renamed from
9744 expand_partial_symbol_names. New args file_matcher, kind.
9745 Rename arg fun to symbol_matcher.
9746 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9747 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9748 ada_expand_partial_symbol_name.
9749 (ada_make_symbol_completion_list): Update to call
9750 expand_symtabs_matching.
9751 (ada_add_global_exceptions): Call expand_symtabs_matching.
9752 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9753 call map_symbol_filenames.
9754 * symtab.c (sources_info): Update to call map_symbol_filenames.
9755 (search_symbols): Call expand_symtabs_matching.
9756 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9757 (default_make_symbol_completion_list_break_on): Update to call
9758 expand_symtabs_matching.
9759 (make_source_files_completion_list): Update to call
9760 map_symbol_filenames.
9762 2014-01-14 Doug Evans <dje@google.com>
9764 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9765 (expand_symtabs_symbol_matcher_ftype): New typedef.
9766 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9767 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9768 * symfile.c (expand_partial_symbol_names): Update to use
9769 expand_symtabs_symbol_matcher_ftype.
9770 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9771 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9772 Arg name_matcher renamed to symbol_matcher.
9773 * psymtab.c (recursively_search_psymtabs): Update to use
9774 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9776 (expand_symtabs_matching_via_partial): Update to use
9777 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9778 Arg name_matcher renamed to symbol_matcher.
9780 2014-01-14 Doug Evans <dje@google.com>
9782 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9783 (map_partial_symbol_filenames): Ditto.
9784 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9785 (map_partial_symbol_filenames): Ditto.
9786 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9787 (map_partial_symbol_filenames): Ditto.
9788 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9789 (map_partial_symbol_filenames): Ditto.
9790 * symtab.c: Delete #include "psymtab.h".
9792 2014-01-14 Pedro Alves <palves@redhat.com>
9793 Tom Tromey <tromey@redhat.com>
9795 * infrun.c (use_displaced_stepping): Use find_record_target
9796 instead of RECORD_IS_USED.
9797 (adjust_pc_after_break): Use record_full_is_used instead of
9799 * record-btrace.c (record_btrace_open): Call record_preopen
9800 instead of checking RECORD_IS_USED.
9801 * record-full.c (record_full_shortname)
9802 (record_full_core_shortname): New globals.
9803 (record_full_is_used): New function.
9804 (find_full_open): Call record_preopen instead of checking
9806 (init_record_full_ops): Set the target's shortname to
9807 record_full_shortname.
9808 (init_record_full_core_ops): Set the target's shortname to
9809 record_full_core_shortname.
9810 * record-full.h (record_full_is_used): Declare.
9811 * record.c (find_record_target): Make extern.
9812 (record_preopen): New function.
9813 * record.h (RECORD_IS_USED): Delete macro.
9814 (find_record_target, record_preopen): Declare functions.
9816 2014-01-14 Yao Qi <yao@codesourcery.com>
9818 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9819 'len''s type to ULONGEST.
9820 (core_xfer_shared_libraries_aix): Likewise.
9821 * gdbarch.c, gdbarch.h: Regenerated.
9822 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9823 Change type of 'len' to ULONGEST.
9824 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9825 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9827 2014-01-14 Yao Qi <yao@codesourcery.com>
9829 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9830 type of 'len' to ULONGEST.
9831 (linux_xfer_osdata_processgroups): Likewise.
9832 (linux_xfer_osdata_threads): Likewise.
9833 (linux_xfer_osdata_fds): Likewise.
9834 (linux_xfer_osdata_isockets): Likewise.
9835 (linux_xfer_osdata_shm): Likewise.
9836 (linux_xfer_osdata_sem): Likewise.
9837 (linux_xfer_osdata_msg): Likewise.
9838 (linux_common_xfer_osdata): Likewise.
9839 (struct osdata_type) <getter>: Likewise.
9840 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9843 2014-01-14 Yao Qi <yao@codesourcery.com>
9845 * target.h (target_xfer_partial_ftype): Update.
9846 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9848 * aix-thread.c (aix_thread_xfer_partial): Change type of
9849 argument 'len' to ULONGEST.
9850 * auxv.c (procfs_xfer_auxv): Likewise.
9851 (ld_so_xfer_auxv): Likewise.
9852 (memory_xfer_auxv): Likewise.
9853 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9854 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9855 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9856 * corelow.c (core_xfer_partial): Likewise.
9857 * ctf.c (ctf_xfer_partial): Likewise.
9858 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9860 (darwin_read_dyld_info): Likewise.
9861 (darwin_xfer_partial): Likewise.
9862 * exec.c (section_table_xfer_memory_partial): Likewise.
9863 (exec_xfer_partial): Likewise.
9864 * exec.h (section_table_xfer_memory_partial): Update
9866 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9867 instead of plongest.
9868 (gnu_xfer_partial): Likewise.
9869 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9870 (ia64_hpux_xfer_solib_got): Likewise.
9871 (ia64_hpux_xfer_partial): Likewise.
9872 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9873 * inf-ptrace.c (inf_ptrace_xfer_partial):
9874 * inf-ttrace.c (inf_ttrace_xfer_partial):
9875 * linux-nat.c (linux_xfer_siginfo): Likewise.
9876 (linux_nat_xfer_partial): Likewise.
9877 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9878 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9879 * monitor.c (monitor_xfer_memory): Likewise.
9880 (monitor_xfer_partial): Likewise.
9881 * procfs.c (procfs_xfer_partial): Likewise.
9882 * record-full.c (record_full_xfer_partial): Likewise.
9883 (record_full_core_xfer_partial): Likewise.
9884 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9885 instead of plongest.
9886 (gdbsim_xfer_partial): Likewise.
9887 * remote.c (remote_xfer_partial): Likewise.
9888 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9889 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9891 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9892 (rs6000_xfer_shared_libraries): Likewise.
9893 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9894 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9895 (sparc_xfer_partial): Likewise.
9896 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9897 (spu_xfer_partial): Likewise.
9898 * spu-multiarch.c (spu_xfer_partial): Likewise.
9899 * target.c (target_read_live_memory): Likewise.
9900 (memory_xfer_live_readonly_partial): Likewise.
9901 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9902 (target_xfer_partial, default_xfer_partial): Likewise.
9903 (current_xfer_partial): Likewise.
9904 * tracepoint.c (tfile_xfer_partial): Likewise.
9905 * windows-nat.c (windows_xfer_memory): Likewise. Call
9906 pulongest instead of plongest.
9907 (windows_xfer_partial): Likewise.
9908 (windows_xfer_shared_libraries): Likewise.
9910 2014-01-14 Yao Qi <yao@codesourcery.com>
9912 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9913 target_xfer_partial_ftype.
9915 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9919 * valops.c (value_struct_elt_bitpos): New function
9920 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9921 object to 'None' if the field name is an empty string ("").
9922 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9923 attribute to look for a field when 'name' is 'None'.
9924 (get_field_type): New function
9926 2014-01-13 Doug Evans <dje@google.com>
9929 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9930 (try_open_dwop_file): Ditto.
9931 * gdb_bfd.c: #include "vec.h".
9932 (bfdp): New typedef.
9933 (struct gdb_bfd_data): New member included_bfds.
9934 (gdb_bfd_unref): Unref all included bfds.
9935 (gdb_bfd_record_inclusion): New function.
9936 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9938 2014-01-13 Tom Tromey <tromey@redhat.com>
9940 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9942 2014-01-13 Tom Tromey <tromey@redhat.com>
9944 * defs.h (use_windows): Remove.
9945 * gdb.c (main): Update.
9946 * main.c (captured_main, gdb_main): Update.
9947 * main.h (struct captured_main_args) <use_windows>: Remove.
9948 * top.c (use_windows): Remove.
9950 2014-01-13 Tom Tromey <tromey@redhat.com>
9952 * defs.h (deprecated_flush_hook): Remove.
9954 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9957 * linux-thread-db.c (try_thread_db_load): Add parameter
9958 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9959 (try_thread_db_load_from_pdir_1): Move it there from here.
9960 (try_thread_db_load_from_sdir): Update caller.
9961 (try_thread_db_load_from_dir): Move it there from here.
9963 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9965 * regformats/regdat.sh: Always rewrite the register file.
9967 2014-01-13 Pedro Alves <palves@redhat.com>
9969 * Makefile.in (CHECK_HEADERS): New variable.
9970 (check-headers:): New rule.
9972 2014-01-13 Tom Tromey <tromey@redhat.com>
9974 * cli/cli-setshow.c (do_set_command): Update.
9975 * defs.h (deprecated_set_hook): Remove.
9976 * top.c (deprecated_set_hook): Remove.
9978 2014-01-13 Pedro Alves <palves@redhat.com>
9980 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9981 the tracepoint if the PC is a pseudo-register.
9983 2014-01-13 Tom Tromey <tromey@redhat.com>
9985 * defs.h (XCALLOC): Remove.
9986 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9987 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9988 * dwarf2loc.c (allocate_piece_closure): Likewise.
9989 * elfread.c (elf_symfile_segments): Likewise.
9990 (elf_symfile_segments): Likewise.
9991 * gdbtypes.c (copy_type_recursive): Likewise.
9992 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9993 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9994 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9996 * mt-tdep.c (mt_gdbarch_init): Likewise.
9997 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9999 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10000 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10001 * registry.c (registry_alloc_data): Likewise.
10002 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10003 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10004 * serial.c (serial_fdopen_ops): Likewise.
10005 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10007 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10008 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10011 2014-01-13 Tom Tromey <tromey@redhat.com>
10013 * defs.h (XMALLOC): Remove.
10014 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10015 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10016 * cli-out.c (struct ui_out *): Likewise.
10017 * cli/cli-dump.c (add_dump_command): Likewise.
10018 (add_dump_command): Likewise.
10019 * complaints.c (get_complaints): Likewise.
10020 (find_complaint): Likewise.
10021 * dwarf2-frame.c (execute_cfa_program): Likewise.
10022 * dwarf2read.c (abbrev_table_read_table): Likewise.
10023 * gdbarch.sh: Likewise.
10024 * gdbarch.c: Rebuild.
10025 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10026 * interps.c (interp_new): Likewise.
10027 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10028 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10029 * mi/mi-console.c (mi_console_file_new): Likewise.
10030 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10031 * mi/mi-out.c (mi_out_new): Likewise.
10032 * mi/mi-parse.c (mi_parse): Likewise.
10033 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10034 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10035 * observer.c (xalloc_observer_list_node): Likewise.
10036 * regcache.c (regcache_xmalloc_1): Likewise.
10037 * reggroups.c (reggroup_new): Likewise.
10038 (_initialize_reggroup): Likewise.
10039 * registry.c (register_data_with_cleanup): Likewise.
10040 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10041 * ser-base.c (serial_ttystate): Likewise.
10042 * ser-mingw.c (make_pipe_state): Likewise.
10043 * ser-pipe.c (pipe_open): Likewise.
10044 * serial.c (serial_open): Likewise.
10045 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10046 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10047 (tui_alloc_win_info): Likewise.
10048 (tui_add_content_elements): Likewise.
10049 * tui/tui-file.c (tui_file_new): Likewise.
10050 * tui/tui-out.c (tui_out_new): Likewise.
10051 * ui-file.c (mem_file_new): Likewise.
10052 * ui-out.c (push_level): Likewise.
10053 (make_cleanup_ui_out_end): Likewise.
10054 (append_header_to_list): Likewise.
10055 (ui_out_new): Likewise.
10056 * user-regs.c (user_reg_add_builtin): Likewise.
10058 2014-01-13 Tom Tromey <tromey@redhat.com>
10060 * defs.h (XZALLOC): Remove.
10061 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10062 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10063 (get_ada_tasks_inferior_data): Likewise.
10064 * auto-load.c (get_auto_load_pspace_data): Likewise.
10065 * auxv.c (get_auxv_inferior_data): Likewise.
10066 * bfd-target.c (target_bfd_reopen): Likewise.
10067 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10068 (deprecated_insert_raw_breakpoint): Likewise.
10069 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10070 * corelow.c (core_open): Likewise.
10071 * darwin-nat.c (darwin_check_new_threads): Likewise.
10072 (darwin_attach_pid): Likewise.
10073 * dummy-frame.c (dummy_frame_push): Likewise.
10074 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10075 * dwarf2loc.c (allocate_piece_closure): Likewise.
10076 * elfread.c (elf_symfile_segments): Likewise.
10077 * eval.c (ptrmath_type_p): Likewise.
10078 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10079 * gdbtypes.c (alloc_type_arch): Likewise.
10080 (alloc_type_instance): Likewise.
10081 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10082 * inf-child.c (inf_child_can_use_agent): Likewise.
10083 * inflow.c (get_inflow_inferior_data): Likewise.
10084 * infrun.c (save_infcall_suspend_state): Likewise.
10085 * jit.c (jit_reader_load): Likewise.
10086 (get_jit_objfile_data): Likewise.
10087 (get_jit_program_space_data): Likewise.
10088 (jit_object_open_impl): Likewise.
10089 (jit_symtab_open_impl): Likewise.
10090 (jit_block_open_impl): Likewise.
10091 (jit_frame_sniffer): Likewise.
10092 * linux-fork.c (add_fork): Likewise.
10093 * maint.c (make_command_stats_cleanup): Likewise.
10094 * objfiles.c (get_objfile_pspace_data): Likewise.
10095 * opencl-lang.c (struct lval_closure): Likewise.
10096 * osdata.c (osdata_start_osdata): Likewise.
10097 * progspace.c (new_address_space): Likewise.
10098 (add_program_space): Likewise.
10099 * remote-sim.c (get_sim_inferior_data): Likewise.
10100 * sh-tdep.c (sh_gdbarch_init): Likewise.
10101 * skip.c (Ignore): Likewise.
10102 (skip_delete_command): Likewise.
10103 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10104 (library_list_start_library): Likewise.
10105 (solib_aix_current_sos): Likewise.
10106 * solib-darwin.c (get_darwin_info): Likewise.
10107 (darwin_current_sos): Likewise.
10108 * solib-dsbt.c (get_dsbt_info): Likewise.
10109 * solib-ia64-hpux.c (new_so_list): Likewise.
10110 (ia64_hpux_get_solib_linkage_addr): Likewise.
10111 * solib-spu.c (append_ocl_sos): Likewise.
10112 (spu_current_sos): Likewise.
10113 * solib-svr4.c (get_svr4_info): Likewise.
10114 (svr4_keep_data_in_core): Likewise.
10115 (library_list_start_library): Likewise.
10116 (svr4_default_sos): Likewise.
10117 (svr4_read_so_list): Likewise.
10118 * solib-target.c (library_list_start_library): Likewise.
10119 (solib_target_current_sos): Likewise.
10120 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10121 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10122 * symfile.c (default_symfile_segments): Likewise.
10123 * target-descriptions.c (tdesc_data_init): Likewise.
10124 (tdesc_create_reg): Likewise.
10125 (struct tdesc_type *): Likewise.
10126 (tdesc_create_vector): Likewise.
10127 (tdesc_set_struct_size): Likewise.
10128 (struct tdesc_type *): Likewise.
10129 (tdesc_free_feature): Likewise.
10130 (tdesc_create_feature): Likewise.
10131 * windows-nat.c (windows_add_thread): Likewise.
10132 (windows_make_so): Likewise.
10133 * xml-support.c (gdb_xml_body_text): Likewise.
10134 (gdb_xml_create_parser_and_cleanup): Likewise.
10135 (xml_process_xincludes): Likewise.
10136 * xml-syscall.c (allocate_syscalls_info): Likewise.
10137 (syscall_create_syscall_desc): Likewise.
10139 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10141 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10142 function, with code from i386_stap_parse_special_token.
10143 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10144 (i386_stap_parse_special_token): Move code to the two functions
10145 above; simplify it.
10147 2014-01-09 Pedro Alves <palves@redhat.com>
10148 Hui Zhu <hui@codesourcery.com>
10151 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10152 bp_err_string. Don't mark the location shlib_disabled if the
10153 error thrown wasn't a generic or memory error. Catch errors
10154 thrown while inserting breakpoints in overlayed code. Output
10155 error message of software breakpoints.
10156 * remote.c (remote_insert_breakpoint): If this breakpoint has
10157 target-side commands but this stub doesn't support Z0 packets,
10158 throw NOT_SUPPORTED_ERROR error.
10159 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10160 * target.h (target_insert_breakpoint): Extend comment.
10161 (target_insert_hw_breakpoint): Add comment.
10163 2014-01-08 Pedro Alves <palves@redhat.com>
10165 * remote.c (remote_add_thread): Add threads silently if starting
10167 (remote_notice_new_inferior): If in all-stop, and starting up,
10168 don't call notice_new_inferior.
10169 (get_current_thread): New function, factored out from ...
10170 (add_current_inferior_and_thread): ... this. Adjust.
10171 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10172 found any thread, then select the remote's current thread as GDB's
10173 current thread too.
10175 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10177 * NEWS: Create a new section for the next release branch.
10178 Rename the section of the current branch, now that it has
10181 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10183 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10184 * version.in: Bump version to 7.7.50.DATE-cvs.
10186 2014-01-08 Yao Qi <yao@codesourcery.com>
10188 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10189 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10190 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10192 2014-01-08 Yao Qi <yao@codesourcery.com>
10194 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10195 return value of bfd_get_filename to symbol_file_add_from_bfd.
10197 2014-01-08 Pierre Muller <muller@sourceware.org>
10200 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10201 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10202 to prim_record_mininal_symbol_and_info.
10203 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10204 in call to prim_record_minimal_symbol_and_info.
10205 (read_pe_exported_syms): Set index field of section_data.
10207 2014-01-07 Andrew Pinski <apinski@cavium.com>
10209 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10210 * features/aarch64.c: Regenerate.
10212 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10214 * target.c (return_null): Define.
10215 (update_current_target): Use it instead of return_zero for
10216 functions that return a pointer.
10218 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10220 * source.c (add_path): Fix check for duplicated paths in the previously
10223 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10225 * ada-lang.c: Remove duplicated include statements.
10226 * alphabsd-nat.c: Ditto.
10227 * amd64-darwin-tdep.c: Ditto.
10228 * amd64fbsd-nat.c: Ditto.
10229 * auto-load.c: Ditto.
10231 * breakpoint.c: Ditto.
10232 * dbxread.c: Ditto.
10233 * fork-child.c: Ditto.
10234 * gdb_usleep.c: Ditto.
10235 * i386-darwin-tdep.c: Ditto.
10236 * i386fbsd-nat.c: Ditto.
10238 * inferior.c: Ditto.
10239 * jv-lang.c: Ditto.
10240 * linux-nat.c: Ditto.
10241 * linux-tdep.c: Ditto.
10242 * m68kbsd-nat.c: Ditto.
10243 * m68klinux-nat.c: Ditto.
10244 * microblaze-tdep.c: Ditto.
10245 * mips-linux-tdep.c: Ditto.
10246 * mn10300-tdep.c: Ditto.
10247 * nto-tdep.c: Ditto.
10248 * opencl-lang.c: Ditto.
10250 * printcmd.c: Ditto.
10251 * regcache.c: Ditto.
10252 * remote-m32r-sdi.c: Ditto.
10254 * symfile.c: Ditto.
10256 * tilegx-linux-nat.c: Ditto.
10257 * tilegx-tdep.c: Ditto.
10258 * tracepoint.c: Ditto.
10260 * vaxbsd-nat.c: Ditto.
10261 * windows-nat.c: Ditto.
10262 * xtensa-tdep.c: Ditto.
10264 2014-01-07 Yao Qi <yao@codesourcery.com>
10266 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10268 2014-01-07 Yao Qi <yao@codesourcery.com>
10269 Joel Brobecker <brobecker@adacore.com>
10271 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10272 (pdc_write_regs): Likewise.
10273 (fetch_regs_kernel_thread): Likewise.
10274 (store_regs_kernel_thread): Likewise.
10276 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10278 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10279 tagged type objects to their actual type.
10281 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10283 * ada-valprint.c (print_field_values): Add "language" parameter.
10284 Update calls to print_field_values and print_variant_part.
10285 Pass new parameter "language" in call to val_print instead
10286 of "current_language". Replace call to ada_val_print by call
10288 (print_variant_part): Add "language" parameter.
10289 (ada_val_print_struct_union): Update call to print_field_values.
10291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10293 * ada-valprint.c (ui_memcpy): Delete.
10294 (ada_print_floating): Update documentation. Add empty line
10295 between between function documentation and implementation.
10296 Delete variable "buffer". Use ui_file_xstrdup in place of
10297 ui_file_put. Minor adjustments following this change.
10299 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10301 * ada-valprint.c (ada_val_print_string): New function,
10302 extracted from ada_val_print_array.
10303 (ada_val_print_array): Replace extracted code by call
10304 to ada_val_print_string followed by a return. Move
10305 "else" branch to the function's top block.
10307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10309 * ada-valprint.c (ada_val_print_array): Move implementation
10310 down. Rename parameter "offset" and "val" into "offset_aligned"
10311 and "original_value" respectively. Add parameter "offset".
10313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10315 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10316 re-organizing the code. Change the "???" message printed
10317 when target type is a TYPE_CODE_UNDEF into
10318 "<ref to undefined type>".
10320 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10322 * ada-valprint.c (print_record): Delete, implementation inlined...
10323 (ada_val_print_struct_union): ... here. Remove call to
10324 ada_check_typedef in inlined implementation.
10326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10328 * ada-valprint.c (ada_val_print_gnat_array): New function,
10329 extracted from ada_val_print_1;
10330 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10331 (ada_val_print_flt, ada_val_print_struct_union)
10332 (ada_val_print_ref): Likewise.
10333 (ada_val_print_1): Delete variables i and elttype.
10334 Replace extracted-out code by call to corresponding
10337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10339 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10343 * ada-valprint.c (ada_val_print_1): Replace calls to
10344 ada_val_print_1 by calls to val_print.
10346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10348 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10349 Update calls to self accordingly. Replace calls to c_val_print
10350 by calls to val_print.
10352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10354 * ada-valprint.c (print_record): Delete declaration.
10355 (adjust_type_signedness, ada_val_print_1): Likewise.
10356 (ada_val_print): Move function implementation down.
10357 (print_variant_part, print_field_values, print_record):
10358 Move function implementation up.
10360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10362 * python/py-type.c (typy_get_name): New function.
10363 (type_object_getset): Add entry for attribute "name".
10364 * NEWS: Add entry mentioning this new attribute.
10366 2014-01-07 Yao Qi <yao@codesourcery.com>
10368 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10371 2014-01-07 Yao Qi <yao@codesourcery.com>
10373 * gnu-nat.c (info_port_rights): Add qualifier const to
10376 2014-01-07 Yao Qi <yao@codesourcery.com>
10378 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10380 2014-01-07 Yao Qi <yao@codesourcery.com>
10382 * gnu-nat.c (make_inf) Update declaration.
10383 (make_inf): Make it static.
10384 (inf_set_traced): Likewise.
10385 (inf_port_to_thread, inf_task_died_status): Likewise.
10387 2014-01-07 Yao Qi <yao@codesourcery.com>
10389 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10391 2014-01-07 Yao Qi <yao@codesourcery.com>
10393 * gnu-nat.c (_initialize_gnu_nat): Declare.
10395 2014-01-07 Yao Qi <yao@codesourcery.com>
10397 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10399 (struct gdbarch_info) <byte_order>: Change type to
10401 <byte_order_for_code>: Likewise.
10402 * gdbarch.c, gdbarch.h: Regenerated.
10404 2014-01-06 Sasha Smundak <asmundak@google.com>
10406 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10408 2014-01-06 Tom Tromey <tromey@redhat.com>
10410 * doublest.c (convert_doublest_to_floatformat): Use const, not
10412 * somread.c (som_symtab_read): Likewise.
10414 2014-01-07 Hui Zhu <hui@codesourcery.com>
10416 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10417 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10418 (gdb_bfd_fopen): Ditto.
10419 (gdb_bfd_openr): Ditto.
10420 (gdb_bfd_openw): Ditto.
10421 (gdb_bfd_openr_iovec): Ditto.
10422 (gdb_bfd_fdopenr): Ditto.
10423 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10424 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10426 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10428 * symfile-mem.c (symbol_file_add_from_memory): Removed
10429 gdb_bfd_stash_filename.
10431 2014-01-03 Doug Evans <dje@google.com>
10433 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10436 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10438 Update year range in copyright notice of all files.
10440 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10442 * top.c (print_gdb_version): Set copyright year to 2014.
10444 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10446 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10448 For older changes see ChangeLog-2013.
10454 version-control: never