1 2014-07-18 Tom Tromey <tromey@redhat.com>
4 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
7 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
8 * windows-nat.c (windows_xfer_partial): Always delegate.
9 * record-btrace.c (record_btrace_xfer_partial): Simplify
11 (record_btrace_fetch_registers, record_btrace_store_registers)
12 (record_btrace_prepare_to_store, record_btrace_resume)
13 (record_btrace_wait, record_btrace_find_new_threads)
14 (record_btrace_thread_alive): Likewise.
15 * procfs.c (procfs_xfer_partial): Always delegate.
16 * corelow.c (core_xfer_partial): Always delegate.
17 * sol-thread.c (sol_find_new_threads): Simplify delegation.
19 2014-07-18 Tom Tromey <tromey@redhat.com>
21 * exec.c (exec_make_note_section): Move earlier.
23 2014-07-17 Doug Evans <dje@google.com>
26 * maint.c (count_symtabs_and_blocks): Handle NULL
27 current_program_space.
28 (report_command_stats): Check global enabled flag in addition to
29 recorded enabled flag.
30 (make_command_stats_cleanup): Handle msg_type == 0, startup.
32 2014-07-16 Pedro Alves <palves@redhat.com>
34 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
36 2014-07-16 Tom Tromey <tromey@redhat.com>
38 * target.h (struct target_ops) <to_delete_record>: Reformat
41 2014-07-16 Tom Tromey <tromey@redhat.com>
43 * target-delegates.c: Rebuild.
45 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
47 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
48 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
49 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
50 (avr_pointer_to_address): Likewise.
51 (avr_address_class_type_flags): New function.
52 (avr_address_class_type_flags_to_name): Likewise.
53 (avr_address_class_name_to_type_flags): Likewise.
54 (avr_gdbarch_init): Set address_class_type_flags,
55 address_class_type_flags_to_name and
56 address_class_name_to_type_flags.
58 2014-07-15 Pedro Alves <palves@redhat.com>
60 * linux-nat.c (kill_callback): Save errno and work with saved
63 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
65 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
67 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
69 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
70 breakpoint support correctly.
72 2014-07-14 Pedro Alves <palves@redhat.com>
74 * utils.c (prompt_for_continue): Call target_terminal_ours.
76 2014-07-14 Pedro Alves <palves@redhat.com>
78 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
79 catch_errors. Don't re-enable stdin or notify observers where,
81 (fetch_inferior_event_wrapper): Delete.
83 2014-07-14 Pedro Alves <palves@redhat.com>
86 * top.c: Include "inf-loop.h".
87 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
89 (gdb_readline_wrapper_cleanup): Make the target async again, if it
91 (gdb_readline_wrapper): Store whether the target is async, and
94 2014-07-14 Pedro Alves <palves@redhat.com>
97 * top.c (gdb_readline_wrapper_line): Tweak comment.
98 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
99 the input handler callback.
101 2014-07-14 Pedro Alves <palves@redhat.com>
104 * main.c: Include event-top.h.
105 (handle_command_errors): New function.
106 (catch_command_errors, catch_command_errors_const): Use it.
108 2014-07-14 Pedro Alves <palves@redhat.com>
110 * exceptions.c (catch_command_errors, catch_command_errors_const):
112 * exceptions.h (catch_command_errors_ftype)
113 (catch_command_errors_const_ftype): Moved to main.c.
114 (catch_command_errors, catch_command_errors_const): Delete
116 * main.c (catch_command_errors_ftype)
117 (catch_command_errors_const_ftype): Moved here from exceptions.h.
118 (catch_command_errors, catch_command_errors_const)): Moved here
119 from exceptions.c and make static.
121 2014-07-14 Pedro Alves <palves@redhat.com>
123 * exceptions.c (print_any_exception): Delete.
124 (catch_exceptions_with_msg): Use exception_print instead of
126 (catch_errors): Use exception_fprintf instead of
128 (catch_command_errors, catch_command_errors_const): Use
129 exception_print instead of print_any_exception.
131 2014-07-14 Pedro Alves <palves@redhat.com>
133 * infcall.c (run_inferior_call): Set 'sync_execution' while
134 running the inferior call.
136 2014-07-14 Pedro Alves <palves@redhat.com>
138 * value.c (value_contents_equal): Delete function.
139 * value.h (value_contents_equal): Delete declaration.
141 2014-07-14 Tom Tromey <tromey@redhat.com>
144 * gdbtypes.c (is_dynamic_type_internal): New function, from
146 (is_dynamic_type): Rewrite.
147 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
148 (resolve_dynamic_struct): Likewise.
149 (resolve_dynamic_type_internal): New function, from
150 resolve_dynamic_type.
151 (resolve_dynamic_type): Rewrite.
153 2014-07-14 Tom Tromey <tromey@redhat.com>
155 * target.c (target_require_runnable): Also check record_stratum.
158 2014-07-11 Yao Qi <yao@codesourcery.com>
160 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
161 thumb_instruction_restores_sp return true.
163 2014-07-11 Yao Qi <yao@codesourcery.com>
165 * arm-tdep.c (thumb_instruction_restores_sp): New function.
166 (thumb_in_function_epilogue_p): Call
167 thumb_instruction_restores_sp.
169 2014-07-11 Yao Qi <yao@codesourcery.com>
171 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
173 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
175 2014-07-11 Gary Benson <gbenson@redhat.com>
177 * amd64-linux-nat.c (gdbcore.h): Remove include.
178 (regset.h): Likewise.
179 (nat/linux-btrace.h): Likewise.
180 (btrace.h): Likewise.
181 (gdb_assert.h): Likewise.
182 (string.h): Likewise.
183 (sys/uio.h): Likewise.
184 (sys/debugreg.h): Likewise.
185 (sys/syscall.h): Likewise.
186 (sys/procfs.h): Likewise.
187 (sys/user.h): Likewise.
188 (asm/ptrace.h): Likewise.
189 (i386-nat.h): Likewise.
190 * i386-linux-nat.c (i386-nat.h): Likewise.
191 (regset.h): Likewise.
192 (target.h): Likewise.
193 (linux-nat.h): Likewise.
194 (nat/linux-btrace.h): Likewise.
195 (btrace.h): Likewise.
196 (gdb_assert.h): Likewise.
197 (string.h): Likewise.
198 (sys/uio.h): Likewise.
199 (sys/user.h): Likewise.
200 (sys/procfs.h): Likewise.
201 (sys/reg.h): Likewise.
202 (sys/debugreg.h): Likewise.
203 (ORIG_EAX): Remove definition.
205 2014-07-11 Gary Benson <gbenson@redhat.com>
207 * i386-linux-nat.h: New file.
208 * x86-linux-nat.h: Likewise.
209 * x86-linux-nat.c: Likewise.
210 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
211 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
212 * config/i386/linux64.mh (NATDEPFILES): Likewise.
213 * amd64-linux-nat.c (x86-linux-nat.h): New include.
214 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
215 (PTRACE_SETREGSET): Likewise.
216 (arch_lwp_info): Now in x86-linux-nat.c.
217 (have_ptrace_getregset): Now in x86-linux-nat.h.
218 (x86_linux_dr_get): Now in x86-linux-nat.c.
219 (x86_linux_dr_set): Likewise.
220 (x86_linux_dr_get_addr): Likewise.
221 (x86_linux_dr_get_control): Likewise.
222 (x86_linux_dr_get_status): Likewise.
223 (update_debug_registers_callback): Likewise.
224 (x86_linux_dr_set_control): Likewise.
225 (x86_linux_dr_set_addr): Likewise.
226 (x86_linux_prepare_to_resume): Likewise.
227 (x86_linux_new_thread): Likewise.
228 (x86_linux_new_fork): Likewise.
229 (x86_linux_get_thread_area): Likewise.
230 (super_post_startup_inferior): Likewise.
231 (x86_linux_child_post_startup_inferior): Likewise.
232 (AMD64_LINUX_USER64_CS): Likewise.
233 (AMD64_LINUX_X32_DS): Likewise.
234 (x86_linux_read_description): Likewise.
235 (x86_linux_enable_btrace): Likewise.
236 (x86_linux_disable_btrace): Likewise.
237 (x86_linux_teardown_btrace): Likewise.
238 (x86_linux_read_btrace): Likewise.
239 (x86_linux_create_target): Likewise.
240 (x86_linux_add_target): Likewise.
241 * i386-linux-nat.c (x86-linux-nat.h): New include.
242 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
243 (PTRACE_SETREGSET): Likewise.
244 (arch_lwp_info): Now in x86-linux-nat.c.
245 (have_ptrace_getregset): Now in x86-linux-nat.h.
246 (x86_linux_dr_get): Now in x86-linux-nat.c.
247 (x86_linux_dr_set): Likewise.
248 (x86_linux_dr_get_addr): Likewise.
249 (x86_linux_dr_get_control): Likewise.
250 (x86_linux_dr_get_status): Likewise.
251 (update_debug_registers_callback): Likewise.
252 (x86_linux_dr_set_control): Likewise.
253 (x86_linux_dr_set_addr): Likewise.
254 (x86_linux_prepare_to_resume): Likewise.
255 (x86_linux_new_thread): Likewise.
256 (x86_linux_new_fork): Likewise.
257 (x86_linux_get_thread_area): Likewise.
258 (super_post_startup_inferior): Likewise.
259 (x86_linux_child_post_startup_inferior): Likewise.
260 (AMD64_LINUX_USER64_CS): Likewise.
261 (AMD64_LINUX_X32_DS): Likewise.
262 (x86_linux_read_description): Likewise.
263 (x86_linux_enable_btrace): Likewise.
264 (x86_linux_disable_btrace): Likewise.
265 (x86_linux_teardown_btrace): Likewise.
266 (x86_linux_read_btrace): Likewise.
267 (x86_linux_create_target): Likewise.
268 (x86_linux_add_target): Likewise.
270 2014-07-11 Gary Benson <gbenson@redhat.com>
272 * amd64-linux-nat.c: Comment and whitespace changes.
273 * i386-linux-nat.c: Comment and whitespace changes.
275 2014-07-11 Gary Benson <gbenson@redhat.com>
277 * amd64-linux-nat.c (x86_linux_create_target): New function.
278 (x86_linux_add_target): Likewise.
279 (_initialize_amd64_linux_nat): Delegate to the above new functions.
280 * i386-linux-nat.c (x86_linux_create_target): New function.
281 (x86_linux_add_target): Likewise.
282 (_initialize_i386_linux_nat): Delegate to the above new functions.
284 2014-07-11 Gary Benson <gbenson@redhat.com>
286 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
287 (ps_get_thread_area): Delegate to the above in 32-bit mode.
288 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
289 (ps_get_thread_area): Delegate to the above.
291 2014-07-11 Gary Benson <gbenson@redhat.com>
293 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
294 x86_linux_read_description. All uses updated. amd64-specific
295 code conditionalized. Conditionalized i386-specific code added.
296 Redundant cast removed.
297 * i386-linux-nat.c (i386_linux_read_description): Renamed to
298 x86_linux_read_description. All uses updated. i386-specific
299 code conditionalized. Conditionalized amd64-specific code added.
300 One sizeof replaced with the actual type it is describing.
302 2014-07-11 Gary Benson <gbenson@redhat.com>
304 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
305 x86_linux_dr_get. All uses updated.
306 (amd64_linux_dr_set): Renamed to
307 x86_linux_dr_set. All uses updated.
308 (amd64_linux_dr_get_addr): Renamed to
309 x86_linux_dr_get_addr. All uses updated.
310 (amd64_linux_dr_get_control): Renamed to
311 x86_linux_dr_get_control. All uses updated.
312 (amd64_linux_dr_get_status): Renamed to
313 x86_linux_dr_get_status. All uses updated.
314 (amd64_linux_dr_set_control): Renamed to
315 x86_linux_dr_set_control. All uses updated.
316 (amd64_linux_dr_set_addr): Renamed to
317 x86_linux_dr_set_addr. All uses updated.
318 (amd64_linux_prepare_to_resume): Renamed to
319 x86_linux_prepare_to_resume. All uses updated.
320 (amd64_linux_new_thread): Renamed to
321 x86_linux_new_thread. All uses updated.
322 (amd64_linux_new_fork): Renamed to
323 x86_linux_new_fork. All uses updated.
324 (amd64_linux_child_post_startup_inferior): Renamed to
325 x86_linux_child_post_startup_inferior. All uses updated.
326 (amd64_linux_enable_btrace): Renamed to
327 x86_linux_enable_btrace. All uses updated.
328 (amd64_linux_disable_btrace): Renamed to
329 x86_linux_disable_btrace. All uses updated.
330 (amd64_linux_teardown_btrace): Renamed to
331 x86_linux_teardown_btrace. All uses updated.
332 (amd64_linux_read_btrace): Renamed to
333 x86_linux_read_btrace. All uses updated.
334 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
335 x86_linux_dr_get. All uses updated.
336 (i386_linux_dr_set): Renamed to
337 x86_linux_dr_set. All uses updated.
338 (i386_linux_dr_get_addr): Renamed to
339 x86_linux_dr_get_addr. All uses updated.
340 (i386_linux_dr_get_control): Renamed to
341 x86_linux_dr_get_control. All uses updated.
342 (i386_linux_dr_get_status): Renamed to
343 x86_linux_dr_get_status. All uses updated.
344 (i386_linux_dr_set_control): Renamed to
345 x86_linux_dr_set_control. All uses updated.
346 (i386_linux_dr_set_addr): Renamed to
347 x86_linux_dr_set_addr. All uses updated.
348 (i386_linux_prepare_to_resume): Renamed to
349 x86_linux_prepare_to_resume. All uses updated.
350 (i386_linux_new_thread): Renamed to
351 x86_linux_new_thread. All uses updated.
352 (i386_linux_new_fork): Renamed to
353 x86_linux_new_fork. All uses updated.
354 (i386_linux_child_post_startup_inferior): Renamed to
355 x86_linux_child_post_startup_inferior. All uses updated.
356 (i386_linux_enable_btrace): Renamed to
357 x86_linux_enable_btrace. All uses updated.
358 (i386_linux_disable_btrace): Renamed to
359 x86_linux_disable_btrace. All uses updated.
360 (i386_linux_teardown_btrace): Renamed to
361 x86_linux_teardown_btrace. All uses updated.
362 (i386_linux_read_btrace): Renamed to
363 x86_linux_read_btrace. All uses updated.
365 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
367 * remote.c (extended_remote_post_attach): New function.
368 (init_extended_remote_ops): Install it as to_post_attach method.
370 2014-07-09 Pedro Alves <palves@redhat.com>
372 * infcmd.c (attach_command_post_wait): Don't call
373 target_terminal_inferior here.
374 (attach_command): Call it here instead.
376 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
378 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
380 * c-varobj.c (c_is_path_expr_parent): New function, moved core
381 from varobj.c, with additional checks.
382 (c_varobj_ops): Fill in is_path_expr_parent field.
383 (cplus_varobj_ops): Fill in is_path_expr_parent field.
384 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
386 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
388 (varobj_default_is_path_expr_parent): New function.
389 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
390 (varobj_default_is_path_expr_parent): Declare new function.
392 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
394 * infcmd.c (finish_backward): Turn internal error into normal error.
396 2014-07-07 Pedro Alves <palves@redhat.com>
399 * remote.c (async_handle_remote_sigint)
400 (async_handle_remote_sigint_twice): Call
401 gdb_call_async_signal_handler instead of
402 mark_async_signal_handler.
404 2014-07-07 Tom Tromey <tromey@redhat.com>
406 * target-delegates.c: Rebuild.
407 * target.c (target_info_record): Remove.
408 * record.c (info_record_command): Unconditionally call
410 * target.h (struct target_ops) <to_info_record>: Use
411 TARGET_DEFAULT_IGNORE.
412 (target_info_record): Remove.
414 2014-07-07 Tom Tromey <tromey@redhat.com>
416 * target.h (struct target_ops) <to_get_thread_local_address>: Use
417 TARGET_DEFAULT_NORETURN.
418 * target.c (generic_tls_error): New function.
419 (target_translate_tls_address): Don't search target stack.
420 * target-delegates.c: Rebuild.
421 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
423 * linux-thread-db.c (thread_db_get_thread_local_address):
424 Unconditionally call beneath target.
426 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
428 * cli/cli-logging.c (pop_output_files): Assign targerr to
431 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
433 * MAINTAINERS (Write After Approval): Update my email address.
435 2014-07-02 Gary Benson <gbenson@redhat.com>
437 * proc-service.c (ps_xfer_memory): Update comment.
438 (ps_pstop): Remove unused function.
439 (ps_pcontinue): Likewise.
440 (ps_lstop): Likewise.
441 (ps_lcontinue): Likewise.
442 (ps_lgetxregsize): Likewise.
443 (ps_lgetxregs): Likewise.
444 (ps_lsetxregs): Likewise.
446 (ps_ptread): Likewise.
447 (ps_ptwrite): Likewise.
449 2014-07-01 Mark Wielaard <mjw@redhat.com>
451 * dwarf2read.c (add_array_cv_type): New function.
452 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
453 (read_tag_volatile_type): Likewise.
455 2014-07-01 Tom Tromey <tromey@redhat.com>
457 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
458 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
459 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
460 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
461 * command.h (cmd_cfunc_ftype): Move earlier.
462 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
463 (add_com, add_info): Use cmd_cfunc_ftype.
465 2014-06-30 Tom Tromey <tromey@redhat.com>
467 * symtab.c (operator_chars): Make parameters and return type
469 (file_matches): Make "files" const.
470 (struct search_symbols_data) <files>: Now const.
471 (search_symbols): Make "regexp" and "files" parameters const.
473 (symtab_symbol_info): Remove cast.
474 (rbreak_command): Update.
475 * symtab.h (search_symbols): Update.
477 2014-06-27 Yao Qi <yao@codesourcery.com>
479 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
480 Change parameter type to 'struct thread_info *'. Caller
482 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
484 * dummy-frame.c (struct dummy_frame_id): New.
485 (dummy_frame_id_eq): New function.
486 (struct dummy_frame) <id>: Change its type to 'struct
488 (dummy_frame_push): Add parameter ptid and save it in
490 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
492 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
494 (lookup_dummy_frame): Change parameter type to 'struct
495 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
496 instead of frame_id_eq.
497 (dummy_frame_pop): Add parameter ptid. Callers updated.
498 Update comments. Compose dummy_frame_id and pass it to
500 (dummy_frame_discard): Add parameter ptid.
501 (dummy_frame_sniffer): Compose dummy_frame_id and call
502 dummy_frame_id_eq instead of frame_id_eq.
503 (fprint_dummy_frames): Print ptid.
504 * dummy-frame.h: Remove comments.
505 (dummy_frame_push): Add ptid in declaration.
506 (dummy_frame_pop, dummy_frame_discard): Likewise.
508 2014-06-26 Tom Tromey <tromey@redhat.com>
510 * cli/cli-cmds.c (error_no_arg): Make "why" const.
511 * command.h (error_no_arg): Update.
513 2014-06-26 Tom Tromey <tromey@redhat.com>
515 * cli/cli-setshow.c (do_set_command): Make "arg" const.
516 (do_show_command): Make "arg" const.
517 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
519 2014-06-26 Tom Tromey <tromey@redhat.com>
521 * record-full.c (record_full_get_bookmark): Make "args" const.
522 (record_full_goto_bookmark): Make "raw_bookmark" const.
523 * record.c (record_goto): New function.
524 (cmd_record_goto): Use it. Now static.
525 * record.h (record_goto): Declare.
526 (cmd_record_goto): Remove declaration.
527 * target-delegates.c: Rebuild.
528 * target.h (struct target_ops) <to_get_bookmark,
529 to_goto_bookmark>: Make parameter const.
531 2014-06-26 Tom Tromey <tromey@redhat.com>
533 * defs.h (generic_load): Update.
534 * m32r-rom.c (m32r_load_gen): Make "filename" const.
535 * monitor.c (monitor_load): Make "args" const.
536 * remote-m32r-sdi.c (m32r_load): Make "args" const.
537 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
539 (mips_load): Make "file" const.
540 * remote-sim.c (gdbsim_load): Make "args" const.
541 * remote.c (remote_load): Make "name" const.
542 * symfile.c (generic_load): Make "args" const.
543 * target-delegates.c: Rebuild.
544 * target.c (target_load): Make "arg" const.
545 (debug_to_load): Make "args" const.
546 * target.h (struct target_ops) <to_load>: Make parameter const.
547 (target_load): Update.
549 2014-06-26 Tom Tromey <tromey@redhat.com>
552 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
553 (dwarf2_physname, read_partial_die)
554 (guess_partial_die_structure_name, fixup_partial_die)
555 (guess_full_die_structure_name, anonymous_struct_prefix)
556 (dwarf2_name): Use per-BFD obstack.
558 2014-06-26 Yao Qi <yao@codesourcery.com>
560 * dummy-frame.c (dummy_frame_sniffer): Move local variables
561 dummyframe and this_id into inner block below.
563 2014-06-26 Yao Qi <yao@codesourcery.com>
565 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
566 with "signal_pass[0]" in the initialization of signal_pass.
568 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
570 * record-btrace.c (record_btrace_generating_corefile)
571 (record_btrace_prepare_to_generate_core)
572 (record_btrace_done_generating_core): New.
573 (record_btrace_xfer_partial, record_btrace_fetch_registers)
574 (record_btrace_store_registers, record_btrace_prepare_to_store):
575 Forward request when generating a core file.
576 (record_btrace_open): Set record_btrace_generating_corefile to zero.
577 (init_record_btrace_ops): Set to_prepare_to_generate_core and
578 to_done_generating_core.
580 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
582 * target.h (target_ops) <to_prepare_to_generate_core>
583 <to_done_generating_core>: New.
584 (target_prepare_to_generate_core, target_done_generating_core): New.
585 * target.c (target_prepare_to_generate_core)
586 (target_done_generating_core): New.
587 * target-delegates.c: Regenerate.
588 * gcore.c: (write_gcore_file): Rename to ...
589 (write_gcore_file_1): ...this.
590 (write_gcore_file): Call target_prepare_to_generate_core
591 and target_done_generating_core.
593 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
595 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
596 * gcore.c (write_gcore_file): Free memory returned from
598 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
599 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
601 2014-06-24 Yao Qi <yao@codesourcery.com>
603 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
604 (arm_linux_init_abi): Set skip_trampoline_code with
605 gdbarch_skip_trampoline_code instead of
606 find_solib_trampoline_target.
608 2014-06-24 Yao Qi <yao@codesourcery.com>
610 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
611 arm_skip_bx_reg returns non-zero.
613 2014-06-24 Yao Qi <yao@codesourcery.com>
615 * arm-tdep.c (arm_skip_bx_reg): New function.
616 (arm_skip_stub): Call arm_skip_bx_reg.
618 2014-06-23 Don Breazeal <donb@codesourcery.com>
620 * MAINTAINERS: Add myself as write-after-approval maintainer.
622 2014-06-23 Pedro Alves <palves@redhat.com>
624 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
625 DR_CONTROL before setting DR0..DR3.
626 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
627 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
628 bits of DR_CONTROL related to the debug register slot being
629 disabled. If all slots are vacant, clear local slowdown as well,
630 and assert DR_CONTROL is 0.
632 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
634 * python/lib/gdb/command/xmethods.py
635 (get_method_matchers_in_loci): Lookup xmethod matchers in the
636 current progspace only if the string "progspace" matches LOCUS_RE.
638 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
640 Fix --with-system-readline with readline-6.3 patch 5.
641 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
642 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
645 2014-06-20 Tom Tromey <tromey@redhat.com>
647 * dwarf2read.c (dw2_get_real_path): Use correct type in
649 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
651 2014-06-20 Gary Benson <gbenson@redhat.com>
653 * common/gdb_thread_db.h: Moved to nat. All includes updated.
654 * common/glibc_thread_db.h: Likewise.
655 * common/i386-cpuid.h: Likewise.
656 * common/i386-gcc-cpuid.h: Likewise.
657 * common/linux-btrace.h: Likewise.
658 * common/linux-osdata.h: Likewise.
659 * common/linux-procfs.h: Likewise.
660 * common/linux-ptrace.h: Likewise.
661 * common/mips-linux-watch.h: Likewise.
662 * common/linux-btrace.c: Moved to nat.
663 * common/linux-osdata.c: Likewise.
664 * common/linux-procfs.c: Likewise.
665 * common/linux-ptrace.c: Likewise.
666 * common/mips-linux-watch.c: Likewise.
667 * nat/gdb_thread_db.h: Moved from common.
668 * nat/glibc_thread_db.h: Likewise.
669 * nat/i386-cpuid.h: Likewise.
670 * nat/i386-gcc-cpuid.h: Likewise.
671 * nat/linux-btrace.c: Likewise.
672 * nat/linux-btrace.h: Likewise.
673 * nat/linux-osdata.c: Likewise.
674 * nat/linux-osdata.h: Likewise.
675 * nat/linux-procfs.c: Likewise.
676 * nat/linux-procfs.h: Likewise.
677 * nat/linux-ptrace.c: Likewise.
678 * nat/linux-ptrace.h: Likewise.
679 * nat/mips-linux-watch.c: Likewise.
680 * nat/mips-linux-watch.h: Likewise.
681 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
682 (object file files): Reordered.
683 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
684 of glibc_thread_db.h.
686 2014-06-20 Gary Benson <gbenson@redhat.com>
688 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
689 (i386_dr_low_type): Moved to nat/i386-dregs.h.
690 (i386_dr_low): Likewise.
691 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
692 (i386_dr_low_set_addr): Likewise.
693 (i386_dr_low_get_addr): Likewise.
694 (i386_dr_low_can_set_control): Likewise.
695 (i386_dr_low_set_control): Likewise.
696 (i386_dr_low_get_control): Likewise.
697 (i386_dr_low_get_status): Likewise.
698 (i386_get_debug_register_length): Likewise.
699 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
700 (i386_dr_low): Likewise.
701 * nat/i386-dregs.c (i386-low.h): Remove include.
702 (i386-nat.h): Likewise.
703 (nat/i386-dregs.h): New include.
704 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
705 (i386_dr_low_set_addr): Likewise.
706 (i386_dr_low_get_addr): Likewise.
707 (i386_dr_low_can_set_control): Likewise.
708 (i386_dr_low_set_control): Likewise.
709 (i386_dr_low_get_control): Likewise.
710 (i386_dr_low_get_status): Likewise.
711 (i386_get_debug_register_length): Likewise.
712 (debug_hw_points): Likewise.
714 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
716 * Makefile.in (SFILES): Add d-exp.y.
717 (YYFILES): Add d-exp.c.
718 (YYOBJ): Add d-exp.o.
719 (local-maintainer-clean): Delete d-exp.c.
721 * d-lang.h (d_parse): New declaration.
722 (d_error): New declaration.
723 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
724 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
725 PREC_ORDER operators.
726 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
728 2014-06-19 Yao Qi <yao@codesourcery.com>
730 * gdbthread.h (any_running): Remove the declaration.
731 * thread.c (any_running): Remove.
733 2014-06-19 Yao Qi <yao@codesourcery.com>
735 * gdbthread.h (struct thread_info) <state>: Change its type to
736 'enum thread_state'. Update comments.
738 2014-06-19 Pedro Alves <palves@redhat.com>
740 * gdbthread.h (ALL_THREADS): Delete.
741 (ALL_NON_EXITED_THREADS): New macro.
742 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
743 instead of ALL_THREADS.
744 * infrun.c (find_thread_needs_step_over)
745 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
746 instead of ALL_THREADS.
747 * record-btrace.c (record_btrace_open)
748 (record_btrace_stop_recording, record_btrace_close)
749 (record_btrace_is_replaying, record_btrace_resume)
750 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
751 * remote.c (append_pending_thread_resumptions): Likewise.
752 * thread.c (thread_apply_all_command): Likewise.
754 2014-06-19 Gary Benson <gbenson@redhat.com>
756 * i386-nat.c (i386_stopped_by_watchpoint):
757 Use i386_dr_stopped_by_watchpoint.
758 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
759 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
761 2014-06-19 Gary Benson <gbenson@redhat.com>
763 * nat/i386-dregs.c: New file.
764 * Makefile.in (i386-dregs.o): New rule.
765 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
766 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
767 * config/i386/darwin.mh (NATDEPFILES): Likewise.
768 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
769 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
770 * config/i386/go32.mh (NATDEPFILES): Likewise.
771 * config/i386/linux.mh (NATDEPFILES): Likewise.
772 * config/i386/linux64.mh (NATDEPFILES): Likewise.
773 * config/i386/mingw.mh (NATDEPFILES): Likewise.
774 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
775 * i386-nat.h (debug_hw_points): New declaration.
776 * i386-nat.c (breakpoint.h): Remove include.
777 (command.h): Likewise.
778 (target.h): Likewise.
779 (gdb_assert.h): Likewise.
780 (debug_hw_points): Made nonstatic.
781 (debug_printf): Now in i386-dregs.c.
782 (TARGET_HAS_DR_LEN_8): Likewise.
783 (DR_CONTROL_SHIFT): Likewise.
784 (DR_CONTROL_SIZE): Likewise.
785 (DR_RW_EXECUTE): Likewise.
786 (DR_RW_WRITE): Likewise.
787 (DR_RW_READ): Likewise.
788 (DR_RW_IORW): Likewise.
789 (DR_LEN_1): Likewise.
790 (DR_LEN_2): Likewise.
791 (DR_LEN_4): Likewise.
792 (DR_LEN_8): Likewise.
793 (DR_LOCAL_ENABLE_SHIFT): Likewise.
794 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
795 (DR_ENABLE_SIZE): Likewise.
796 (DR_LOCAL_SLOWDOWN): Likewise.
797 (DR_GLOBAL_SLOWDOWN): Likewise.
798 (DR_CONTROL_RESERVED): Likewise.
799 (I386_DR_CONTROL_MASK): Likewise.
800 (I386_DR_VACANT): Likewise.
801 (I386_DR_LOCAL_ENABLE): Likewise.
802 (I386_DR_GLOBAL_ENABLE): Likewise.
803 (I386_DR_DISABLE): Likewise.
804 (I386_DR_SET_RW_LEN): Likewise.
805 (I386_DR_GET_RW_LEN): Likewise.
806 (I386_DR_WATCH_HIT): Likewise.
807 (i386_wp_op_t): Likewise.
808 (i386_show_dr): Likewise.
809 (i386_length_and_rw_bits): Likewise.
810 (i386_insert_aligned_watchpoint): Likewise.
811 (i386_remove_aligned_watchpoint): Likewise.
812 (i386_handle_nonaligned_watchpoint): Likewise.
813 (i386_update_inferior_debug_regs): Likewise.
814 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
815 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
816 (i386_region_ok_for_watchpoint):
817 Use i386_dr_region_ok_for_watchpoint.
818 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
820 2014-06-19 Gary Benson <gbenson@redhat.com>
822 * i386-nat.c (i386_insert_hw_breakpoint): Use
823 i386_insert_watchpoint.
824 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
826 2014-06-19 Gary Benson <gbenson@redhat.com>
828 * i386-nat.c (i386_dr_show): Renamed to
829 i386_show_dr and made static. All uses updated.
830 (i386_dr_length_and_rw_bits): Renamed to
831 i386_length_and_rw_bits and made static.
833 (i386_dr_insert_aligned_watchpoint): Renamed to
834 i386_insert_aligned_watchpoint and made static.
836 (i386_dr_remove_aligned_watchpoint): Renamed to
837 i386_remove_aligned_watchpoint and made static.
839 (i386_dr_update_inferior_debug_regs): Renamed to
840 i386_update_inferior_debug_regs and made static.
842 * nat/i386-dregs.h (i386_dr_show): Removed.
843 (i386_dr_length_and_rw_bits): Likewise.
844 (i386_dr_insert_aligned_watchpoint): Likewise.
845 (i386_dr_remove_aligned_watchpoint): Likewise.
846 (i386_dr_update_inferior_debug_regs): Likewise.
848 2014-06-19 Gary Benson <gbenson@redhat.com>
850 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
851 * configure: Regenerate.
852 * config.in: Likewise.
853 * main.c (signal.h): New include.
854 (setup_alternate_signal_stack): New function.
855 (captured_main): Call the above.
856 * cp-support.c (signal.h): New include.
857 (catch_demangler_crashes): New flag.
858 (SIGJMP_BUF): New define.
859 (SIGSETJMP): Likewise.
860 (SIGLONGJMP): Likewise.
861 (gdb_demangle_jmp_buf): New static global.
862 (gdb_demangle_attempt_core_dump): Likewise.
863 (gdb_demangle_signal_handler): New function.
864 (gdb_demangle): If catch_demangler_crashes is set, install the
865 above signal handler before calling bfd_demangle, and restore
866 the original signal handler afterwards. Display the offending
867 symbol and call demangler_warning the first time a segmentation
869 (_initialize_cp_support): New maint set/show command.
871 2014-06-19 Gary Benson <gbenson@redhat.com>
873 * utils.h (resource_limit_kind): New enum.
874 (can_dump_core): New declaration.
875 (warn_cant_dump_core): Likewise.
876 (dump_core): Likewise.
877 * utils.c (dump_core): Made nonstatic. Added new
878 parameter "limit_kind".
879 (can_dump_core): Made nonstatic. Moved printing code to...
880 (warn_cant_dump_core): New function.
881 (can_dump_core_warn): Likewise.
882 (internal_vproblem): Replace calls to can_dump_core with
883 calls to can_dump_core_warn. Supply new argument to each.
885 2014-06-19 Gary Benson <gbenson@redhat.com>
887 * utils.h (demangler_vwarning): New declaration.
888 (demangler_warning): Likewise.
889 * utils.c (struct internal_problem)
890 <user_settable_should_quit>: New field.
891 <user_settable_should_dump_core>: Likewise
892 (internal_error_problem): Add values for above new fields.
893 (internal_warning_problem): Likewise.
894 (demangler_warning_problem): New static global.
895 (demangler_vwarning): New function.
896 (demangler_warning): Likewise.
897 (add_internal_problem_command): Selectively add commands.
898 (_initialize_utils): New internal problem command.
899 * maint.c (maintenance_demangler_warning): New function.
900 (_initialize_maint_cmds): New command.
902 2014-06-18 Tom Tromey <tromey@redhat.com>
904 * f-valprint.c (info_common_command_for_block): Update.
905 * symtab.h (struct general_symbol_info) <common_block>: Now
908 2014-06-18 Tom Tromey <tromey@redhat.com>
910 * symtab.h (struct symtab) <blockvector>: Now const.
911 * ada-lang.c (ada_add_global_exceptions): Update.
912 * buildsym.c (augment_type_symtab): Update.
913 * dwarf2read.c (dw2_lookup_symbol): Update.
914 * jit.c (finalize_symtab): Update.
915 * jv-lang.c (add_class_symtab_symbol): Update.
916 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
918 * objfiles.c (objfile_relocate1): Update.
919 * psymtab.c (lookup_symbol_aux_psymtabs)
920 (maintenance_check_psymtabs): Update.
921 * python/py-symtab.c (stpy_global_block, stpy_static_block):
923 * spu-tdep.c (spu_catch_start): Update.
924 * symmisc.c (dump_symtab_1): Update.
925 * symtab.c (lookup_global_symbol_from_objfile)
926 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
927 (basic_lookup_transparent_type_quick)
928 (basic_lookup_transparent_type, find_pc_sect_symtab)
929 (find_pc_sect_line, search_symbols): Update.
930 * block.c (find_block_in_blockvector): Make "bl" const.
931 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
933 (blockvector_contains_pc): Make "bv" const.
934 (block_for_pc_sect): Update.
935 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
936 (blockvector_contains_pc): Update.
937 * breakpoint.c (resolve_sal_pc): Update.
938 * inline-frame.c (block_starting_point_at): Update.
940 2014-06-18 Tom Tromey <tromey@redhat.com>
942 * completer.c (complete_line): Make "line_buffer" const.
943 * completer.h (complete_line): Update.
945 2014-06-18 Tom Tromey <tromey@redhat.com>
947 * symtab.c (add_macro_name): Remove unneeded cast.
949 2014-06-18 Tom Tromey <tromey@redhat.com>
951 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
952 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
954 2014-06-18 Tom Tromey <tromey@redhat.com>
956 * probe.c (info_probes_for_ops): Make "arg" const.
957 * probe.h (info_probes_for_ops): Update.
959 2014-06-18 Tom Tromey <tromey@redhat.com>
961 * varobj.c (varobj_create): Update.
962 * valops.c (value_of_this): Update.
963 * tracepoint.c (add_local_symbols, scope_info): Update.
964 * symtab.h (struct general_symbol_info) <block>: Now const.
965 * symtab.c (skip_prologue_sal)
966 (default_make_symbol_completion_list_break_on)
967 (skip_prologue_using_sal): Update.
968 * stack.h (iterate_over_block_locals)
969 (iterate_over_block_local_vars): Update.
970 * stack.c (print_frame_args): Update.
971 (iterate_over_block_locals, iterate_over_block_local_vars): Make
973 (get_selected_block): Make return type const.
974 * python/py-frame.c (frapy_block): Update.
975 * python/py-block.c (gdbpy_block_for_pc): Update.
976 * p-exp.y (%union) <bval>: Now const.
977 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
978 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
979 * m2-exp.y (%union) <bval>: Now const.
980 * linespec.c (get_current_search_block): Make return type const.
981 (create_sals_line_offset, find_label_symbols): Update.
982 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
984 (block_starting_point_at): Make "block" const.
985 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
986 (check_exception_resume): Update.
987 * guile/scm-frame.c (gdbscm_frame_block): Update.
988 * guile/scm-block.c (gdbscm_lookup_block): Update.
989 * frame.h (get_frame_block): Update.
990 (get_selected_block): Make return type const.
991 * frame.c (frame_id_inner): Update.
992 * f-valprint.c (info_common_command_for_block)
993 (info_common_command): Update.
994 * dwarf2loc.c (dwarf2_find_location_expression)
995 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
996 (locexpr_describe_location_piece): Update.
997 * c-exp.y (%union) <bval>: Now const.
998 * breakpoint.c (resolve_sal_pc): Update.
999 * blockframe.c (get_frame_block):Make return type const.
1000 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1001 (block_innermost_frame): Update.
1002 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1003 (block_for_pc, block_for_pc_sect): Update.
1004 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1006 (block_for_pc_sect, block_for_pc): Make return type const.
1007 * ax-gdb.c (gen_expr): Update.
1008 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1009 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1010 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1011 (ada_read_var_value): Update.
1012 * ada-exp.y (struct name_info) <block>: Now const.
1014 (block_lookup): Constify.
1016 2014-06-18 Gary Benson <gbenson@redhat.com>
1018 * nat/i386-dregs.h: New file.
1019 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1020 * i386-nat.h (i386-dregs.h): New include.
1021 (DR_FIRSTADDR): Now in i386-dregs.h.
1022 (DR_LASTADDR): Likewise.
1023 (DR_NADDR): Likewise.
1024 (DR_STATUS): Likewise.
1025 (DR_CONTROL): Likewise.
1026 (i386_debug_reg_state): Likewise.
1027 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1029 2014-06-18 Don Breazeal <donb@codesourcery.com>
1031 * breakpoint.c (set_longjmp_breakpoint): Call
1032 momentary_breakpoint_from_master with additional argument.
1033 (set_longjmp_breakpoint_for_call_dummy): Call
1034 momentary_breakpoint_from_master with additional argument.
1035 (set_std_terminate_breakpoint): Call
1036 momentary_breakpoint_from_master with additional argument.
1037 (momentary_breakpoint_from_master): Add argument to function
1038 definition and use it to initialize structure member flag.
1039 (clone_momentary_breakpoint): Call
1040 momentary_breakpoint_from_master with additional argument.
1041 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1042 member flags set in momentary_breakpoint_from_master.
1044 2014-06-18 Gary Benson <gbenson@redhat.com>
1046 * i386-nat.c (i386_show_dr): Renamed to
1047 i386_dr_show and made nonstatic. All uses updated.
1048 (i386_length_and_rw_bits): Renamed to
1049 i386_dr_length_and_rw_bits and made nonstatic.
1051 (i386_insert_aligned_watchpoint): Renamed to
1052 i386_dr_insert_aligned_watchpoint and made nonstatic.
1054 (i386_remove_aligned_watchpoint): Renamed to
1055 i386_dr_remove_aligned_watchpoint and made nonstatic.
1057 (i386_update_inferior_debug_regs): Renamed to
1058 i386_dr_update_inferior_debug_regs and made nonstatic.
1061 2014-06-18 Gary Benson <gbenson@redhat.com>
1063 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1064 (i386_dr_low_can_set_control): Likewise.
1065 (i386_dr_low_set_addr): Likewise.
1066 (i386_dr_low_set_control): Likewise.
1067 (i386_dr_low_get_addr): Likewise.
1068 (i386_dr_low_get_status): Likewise.
1069 (i386_dr_low_get_control): Likewise.
1070 (i386_insert_aligned_watchpoint): Use new macros.
1071 (i386_update_inferior_debug_regs): Likewise.
1072 (i386_stopped_data_address): Likewise.
1074 2014-06-18 Gary Benson <gbenson@redhat.com>
1076 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1077 New parameter. All uses updated.
1079 2014-06-18 Gary Benson <gbenson@redhat.com>
1081 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1084 2014-06-18 Gary Benson <gbenson@redhat.com>
1086 * i386-nat.c (debug_printf): New macro.
1087 (i386_get_debug_register_length): Likewise.
1088 (TARGET_HAS_DR_LEN_8): Use above macro.
1089 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1090 and printf_unfiltered. Use phex to format values.
1092 2014-06-18 Gary Benson <gbenson@redhat.com>
1094 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1097 2014-06-18 Gary Benson <gbenson@redhat.com>
1099 * i386-nat.c: Comment changes.
1101 2014-06-18 Gary Benson <gbenson@redhat.com>
1103 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1105 2014-06-18 Gary Benson <gbenson@redhat.com>
1107 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1108 (i386_insert_aligned_watchpoint): Likewise.
1109 (i386_remove_aligned_watchpoint): Likewise.
1110 (i386_handle_nonaligned_watchpoint): Likewise.
1112 2014-06-18 Gary Benson <gbenson@redhat.com>
1114 * i386-nat.c: Whitespace changes.
1116 2014-06-17 Samuel Bronson <naesten@gmail.com>
1118 * MAINTAINERS: Update Roland McGrath's email address.
1119 Thanks to Sergio Durigan Junior for pointing out that he left
1120 Red Hat a while ago, and giving me a current address.
1122 2014-06-17 Tom Tromey <tromey@redhat.com>
1124 * utils.h (savestring): Remove declaration.
1126 2014-06-17 Tom Tromey <tromey@redhat.com>
1128 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1130 2014-06-16 Keith Seitz <keiths@redhat.com>
1133 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1134 to update the varobj if inferior_ptid is null_ptid.
1136 2014-06-16 Tom Tromey <tromey@redhat.com>
1138 * target.h (struct target_ops) <to_info_proc>: Make parameter
1140 (target_info_proc): Update.
1141 * target.c (target_info_proc): Make "args" const.
1142 * procfs.c (procfs_info_proc): Update.
1143 * linux-tdep.c (linux_info_proc): Update.
1144 (linux_core_info_proc_mappings): Make "args" const.
1145 (linux_core_info_proc): Update.
1146 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1147 * gdbarch.c: Rebuild.
1148 * gdbarch.h: Rebuild.
1149 * corelow.c (core_info_proc): Update.
1151 2014-06-16 Tom Tromey <tromey@redhat.com>
1153 * target.h (struct target_ops) <to_disconnect>: Make parameter
1155 (target_disconnect): Update.
1156 * target.c (target_disconnect): Make "args" const.
1157 * target-delegates.c: Rebuild.
1158 * remote.c (remote_disconnect): Update.
1159 * record.h (record_disconnect): Update.
1160 * record.c (record_disconnect): Update.
1161 * inf-child.c (inf_child_disconnect): Update.
1163 2014-06-16 Tom Tromey <tromey@redhat.com>
1165 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1166 * target.c (debug_to_rcmd, default_rcmd): Update.
1167 * target-delegates.c: Rebuild.
1168 * remote.c (remote_rcmd): Update.
1169 * monitor.c (monitor_rcmd): Update.
1171 2014-06-16 Pedro Alves <palves@redhat.com>
1173 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1174 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1175 have OBJF_SHARED set.
1176 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1177 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1178 instead of OBJF_USERLOADED.
1179 * objfiles.h (OBJF_SHARED): Update comment.
1180 (userloaded_objfile_contains_address_p): Rename to ...
1181 (shared_objfile_contains_address_p): ... this, and update
1183 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1185 (remove_symbol_file_command): Skip objfiles that don't have
1188 2014-06-16 Tom Tromey <tromey@redhat.com>
1190 * minsyms.h (prim_record_minimal_symbol)
1191 (prim_record_minimal_symbol_and_info): Update comments.
1193 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1195 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1196 or --without-guile, according to how GDB was built.
1198 2014-06-13 Tom Tromey <tromey@redhat.com>
1200 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1202 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1204 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1206 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1207 help_list.Pass all_commands, not -1, to help_list.
1208 * cli/cli-dump.c (dump_command, append_command)
1209 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1210 (binary_dump_command, binary_append_command): Pass all_commands,
1211 not -1, to help_list.
1212 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1214 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1216 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1218 * top.c (set_history): Pass all_commands, not -1, to help_list.
1219 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1220 all_commands, not -1, to help_list.
1221 * symfile.c (overlay_command): Pass all_commands, not -1, to
1223 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1225 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1227 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1229 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1230 not -1, to help_list.
1231 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1232 not -1, to help_list.
1233 * maint.c (maintenance_command, maintenance_info_command)
1234 (maintenance_print_command, maintenance_set_cmd): Pass
1235 all_commands, not -1, to help_list.
1236 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1238 * language.c (set_check): Pass all_commands, not -1, to help_list.
1239 * infcmd.c (unset_command): Pass all_commands, not -1, to
1241 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1243 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1245 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1247 * breakpoint.c (save_command): Pass all_commands, not -1, to
1249 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1250 all_commands, not -1, to help_list.
1252 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1254 * regcache.c (struct register_to_invalidate): New structure.
1255 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1257 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1259 2014-06-12 Yao Qi <yao@codesourcery.com>
1261 * varobj.c (varobj_get_num_children): Call
1262 varobj_is_dynamic_p.
1263 (varobj_list_children): Likewise.
1264 (varobj_update): Likewise. Update comments.
1266 2014-06-12 Yao Qi <yao@codesourcery.com>
1268 * varobj.c (varobj_pretty_printed_p): Rename to ...
1269 (varobj_is_dynamic_p): ... this. New function.
1270 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1271 (varobj_is_dynamic_p): Declare.
1272 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1273 (mi_print_value_p, varobj_update_one): Likewise.
1275 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1276 Yao Qi <yao@codesourcery.com>
1278 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1279 (varobj_get_iterator): Wrap up code for pretty-printer by
1280 "#if HAVE_PYTHON" and "#endif".
1281 (update_dynamic_varobj_children): Likewise.
1283 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1284 Yao Qi <yao@codesourcery.com>
1286 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1287 gdb_python_initialized is false. Move some code from varobj.c.
1288 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1289 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1290 (struct varobj_item): Moved to varobj-iter.h".
1291 (varobj_clear_saved_item): New function.
1292 (update_dynamic_varobj_children): Move python-related code to
1294 (free_variable): Call varobj_clear_saved_item and
1297 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1298 Yao Qi <yao@codesourcery.com>
1300 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1301 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1302 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1303 (py-varobj.o): New rule.
1304 * python/py-varobj.c: New file.
1305 * python/python-internal.h (py_varobj_get_iterator): Declare.
1306 * varobj-iter.h: New file.
1307 * varobj.c: Include "varobj-iter.h"
1308 (struct varobj) <child_iter>: Change its type from "PyObject *"
1309 to "struct varobj_iter *".
1310 <saved_item>: Likewise.
1311 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1312 [HAVE_PYTHON] (varobj_get_iterator): New function.
1313 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1314 python-specific code to python/py-varobj.c.
1315 (install_visualizer): Call varobj_iter_delete instead of
1317 * varobj.h (varobj_ensure_python_env): Declare.
1319 2014-06-12 Yao Qi <yao@codesourcery.com>
1321 * varobj.c (struct varobj_item): New structure.
1322 (create_child_with_value): Update declaration.
1323 (varobj_add_child): Replace arguments 'name' and 'value' with
1324 'item'. All callers updated.
1325 (install_dynamic_child): Likewise.
1326 (update_dynamic_varobj_children): Likewise.
1327 (varobj_add_child): Likewise.
1328 (create_child_with_value): Likewise.
1330 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1332 * NEWS: Create a new section for the next release branch.
1333 Rename the section of the current branch, now that it has
1336 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1338 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1339 * version.in: Bump version to 7.8.50.DATE-cvs.
1341 2014-06-11 Pedro Alves <palves@redhat.com>
1344 * ser-mingw.c (net_windows_socket_check_pending): New function.
1345 (net_windows_select_thread): Ignore spurious wakeups. Use
1346 net_windows_socket_check_pending.
1347 (net_windows_wait_handle): Check for pending events with
1348 ioctlsocket, through net_windows_socket_check_pending, instead of
1349 checking the socket's event.
1351 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1353 * python/python-internal.h (gdb_PyObject_GetAttrString)
1354 (gdb_PyObject_HasAttrString): New inline function definitions.
1355 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1356 char * of the second argument to PyObject_GetAttrString.
1358 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1360 * serial.c (serial_write): Fix index of character to be printed
1361 in call to serial_logchar when serial debug traces are enabled.
1363 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1365 * gdbtypes (resolve_dynamic_range): Add function description.
1367 2014-06-09 Pedro Alves <palves@redhat.com>
1369 * linux-nat.c (linux_child_follow_fork): Initialize status with
1370 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1371 inner block. Only pass the signal to PTRACE_DETACH if in pass
1374 2014-06-09 Gary Benson <gbenson@redhat.com>
1376 * common/signals.c (gdb_signal_from_host): Reorder to separate
1377 the always-available ANSI-standard signals from the signals that
1379 (do_gdb_signal_to_host): Likewise.
1380 * proc-events.c (signal_table): Likewise.
1382 2014-06-08 Hui Zhu <hui@codesourcery.com>
1384 * common/linux-ptrace.c (linux_disable_event_reporting): New
1386 * common/linux-ptrace.h (linux_disable_event_reporting): New
1388 * linux-nat.c (linux_child_follow_fork): Do a single step before
1391 2014-06-07 Keith Seitz <keiths@redhat.com>
1395 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1396 from symbol_matches_domain in symtab.c. All local callers
1397 of symbol_matches_domain updated.
1398 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1399 search STRUCT_DOMAIN.
1400 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1401 independently. standard_lookup will do that automatically.
1402 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1403 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1404 (cp_lookup_symbol_in_namespace): Likewise.
1405 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1406 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1407 may return a STRUCT_DOMAIN match.
1408 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1409 * cp-support.c: Include language.h.
1410 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1412 * psymtab.c (match_partial_symbol): Compare the requested
1413 domain with the symbol's domain directly.
1414 (lookup_partial_symbol): Likewise.
1415 * symtab.c (lookup_symbol_in_language): Explain when/why
1416 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1417 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1418 appropriate languages.
1419 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1420 and moved to ada-lang.c
1421 (lookup_block_symbol): Explain that this function only returns
1422 symbol matching the requested DOMAIN.
1423 Compare the requested domain with the symbol's domain directly.
1424 (iterate_over_symbols): Compare the requested domain with the
1425 symbol's domain directly.
1426 * symtab.h (symbol_matches_domain): Remove.
1428 2014-06-06 Doug Evans <xdje42@gmail.com>
1430 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1431 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1432 (gdbscm_guile_version_is_at_least): Declare.
1433 (gdbscm_scm_string_to_int): Declare.
1434 * guile/guile.c (gdbscm_guile_major_version): New global.
1435 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1436 (guile_datadir): New static global.
1437 (gdbscm_guile_data_directory): New function.
1438 (initialize_scheme_side): Update.
1439 (misc_guile_functions): Add guile-data-directory.
1440 (initialize_gdb_module): Fetch guile version number.
1441 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1442 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1443 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1444 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1446 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1447 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1448 * guile/scm-value.c (gdbscm_value_to_string): Only call
1449 scm_port_conversion_strategy if Guile version >= 2.0.6.
1451 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1453 * main.c (print_gdb_help): Add -q and --silent.
1455 2014-06-06 Gary Benson <gbenson@redhat.com>
1457 * common/signals.c: Remove preprocessor conditionals for
1458 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1459 SIGSEGV and SIGTERM.
1460 * proc-events.c: Likewise.
1462 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1464 * symfile.c (symfile_free_objfile): Remove restriction to
1466 * symfile-mem.c (symbol_file_add_from_memory): Call
1467 add_target_sections_of_objfile.
1469 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1471 * guile/scm-value.c (gdbscm_history_append_x): Use
1472 'vlscm_get_value_smob_arg_unsafe' instead of
1473 'vlscm_scm_to_value'.
1475 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1478 * utils.c (printchar): Don't escape at all if quoter is NUL.
1479 Update function documentation to clarify effect of parameter
1481 * remote.c (escape_buffer): Pass '\\' as the quoter to
1482 fputstrn_unfiltered.
1483 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1484 generate the output.
1485 (mi_solib_unloaded): Same.
1487 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1489 * development.sh: Delete.
1490 * Makefile.in (config.status): Adjust dependency on development.sh.
1491 * configure.ac: Adjust development.sh source call.
1492 * configure: Regenerate.
1494 2014-06-04 Doug Evans <xdje42@gmail.com>
1496 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1497 is_scheme_bkpt, spec.
1498 (bpscm_make_breakpoint_smob): Initialize new members.
1499 (gdbscm_create_breakpoint_x): Split into two ...
1500 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1501 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1502 (scheme_function breakpoint_functions): Update.
1503 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1504 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1505 register-breakpoint!.
1507 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1510 * mem-break.c (z_type_supported): Return zero if
1511 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1513 2014-06-04 Tom Tromey <tromey@redhat.com>
1515 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1516 value_from_contents_and_address_unresolved.
1517 (ada_template_to_fixed_record_type_1): Likewise.
1518 (ada_which_variant_applies): Likewise.
1519 * value.h (value_from_contents_and_address_unresolved): Declare.
1520 * value.c (value_from_contents_and_address_unresolved): New
1522 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1523 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1524 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1526 2014-06-04 Tom Tromey <tromey@redhat.com>
1528 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1530 2014-06-04 Tom Tromey <tromey@redhat.com>
1532 * procfs.c (procfs_attach): Make "args" const.
1533 * windows-nat.c (windows_attach): Make "args" const.
1534 * nto-procfs.c (procfs_attach): Make "args" const.
1535 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1536 * go32-nat.c (go32_attach): Make "args" const.
1537 * gnu-nat.c (gnu_attach): Make "args" const.
1538 * darwin-nat.c (darwin_attach): Make "args" const.
1539 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1540 * linux-nat.c (linux_nat_attach): Make "args" const.
1541 * remote.c (extended_remote_attach_1, extended_remote_attach):
1543 * target.h (struct target_ops) <to_attach>: Make "args" const.
1544 (find_default_attach): Likewise.
1545 * utils.c (parse_pid_to_attach): Make "args" const.
1546 * utils.h (parse_pid_to_attach): Update.
1548 2014-06-04 Tom Tromey <tromey@redhat.com>
1550 * target-delegates.c: Rebuild.
1551 * target.c (default_thread_address_space): New function.
1552 (target_thread_address_space): Simplify.
1553 * target.h (struct target_ops) <to_thread_address_space>: Add
1554 TARGET_DEFAULT_FUNC.
1556 2014-06-04 Doug Evans <xdje42@gmail.com>
1558 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1560 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1562 * record-btrace.c: Include event-loop.h and inf-loop.h.
1563 (record_btrace_resume_exec_dir)
1564 (record_btrace_async_inferior_event_handler)
1565 (record_btrace_handle_async_inferior_event): New.
1566 (record_btrace_open): Create async event handler.
1567 (record_btrace_close): Delete async event handler.
1568 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1569 Mark async event handler.
1570 (record_btrace_execution_direction): New.
1571 (init_record_btrace_ops): Initialize to_execution_direction.
1573 2014-06-03 Doug Evans <xdje42@gmail.com>
1575 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1576 (gdbscm_make_parameter): Ditto.
1578 2014-06-03 Doug Evans <dje@google.com>
1580 * exec.c (exec_close_1): Call clear_section_table instead of
1581 resize_section_table.
1582 (clear_section_table): New function.
1583 (resize_section_table): Make static. Rename arg num_added to
1585 * exec.h (clear_section_table): Declare.
1586 (resize_section_table): Delete.
1587 * progspace.c (release_program_space): Call clear_section_table
1588 instead of resize_section_table.
1590 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1592 * NEWS (Python Scripting): Add entry about the new xmethods
1595 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1597 * python/py-xmethods.c: New file.
1598 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1599 (objfpy_dealloc): XDECREF on the new xmethods field.
1600 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1602 (objfpy_get_xmethods): New function.
1603 (objfile_getset): New entry 'xmethods'.
1604 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1605 (pspy_dealloc): XDECREF on the new xmethods field.
1606 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1608 (pspy_get_xmethods): New function.
1609 (pspace_getset): New entry 'xmethods'.
1610 * python/python-internal.h: Add declarations for new functions.
1611 * python/python.c (_initialize_python): Invoke
1612 gdbpy_initialize_xmethods.
1613 * python/lib/gdb/__init__.py (xmethods): New
1615 * python/lib/gdb/xmethod.py: New file.
1616 * python/lib/gdb/command/xmethods.py: New file.
1618 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1620 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1621 best match method returned by find_overload_match is an xmethod.
1622 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1623 the best matching operator returned by find_overload_match is an
1625 * valops.c: #include "extension.h".
1626 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1627 Return void. The list of matching source methods is returned in
1628 "fn_list" and a vector of matching debug method workers is
1629 returned in "xm_worker_vec". Update all callers.
1630 (value_find_oload_method_list): Likewise.
1631 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1632 non-NULL, then the index of the best matching method in this
1633 vector is returned. Update all callers.
1634 (find_overload_match): Include xmethods while performing overload
1637 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1639 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1640 * extension-priv.h (struct extension_language_ops): Add the
1642 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1643 get_matching_xmethod_workers, get_xmethod_argtypes,
1644 invoke_xmethod, free_xmethod_worker,
1645 free_xmethod_worker_vec): New functions.
1646 * extension.h: #include "common/vec.h".
1647 New function declarations.
1648 (struct xmethod_worker): New struct.
1649 (VEC (xmethod_worker_ptr)): New vector type.
1650 (xmethod_worker_ptr): New typedef.
1651 (xmethod_worker_vec): Likewise.
1652 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1654 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1655 (struct builtin_type): New field "xmethod".
1656 * valarith.c (value_ptradd): Assert that the value argument is not
1658 * valops.c (value_must_coerce_to_target): Return 0 for
1659 lval_xcallable values.
1660 * value.c (struct value): New field XM_WORKER in the field
1662 (value_address, value_raw_address): Return 0 for lval_xcallable
1664 (set_value_address): Assert that the value is not an
1666 (value_free): Free the associated xmethod worker when freeing
1667 lval_xcallable values.
1668 (set_value_component_location): Assert that the WHOLE value is not
1670 (value_of_xmethod, call_xmethod): New functions.
1671 * value.h: Declare "struct xmethod_worker".
1672 Declare new functions value_of_xmethod, call_xmethod.
1674 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1675 Pedro Alves <palves@redhat.com>
1677 PR breakpoints/17000
1678 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1679 New function, extracted from software_breakpoint_inserted_here_p.
1680 (software_breakpoint_inserted_here_p): Replace factored out code
1681 by call to find_non_raw_software_breakpoint_inserted_here.
1682 (bp_target_info_copy_insertion_state): New function.
1683 (bkpt_insert_location): Handle the case of a single-step
1684 breakpoint already inserted at the same address.
1685 (bkpt_remove_location): Handle the case of a single-step
1686 breakpoint still inserted at the same address.
1687 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1688 breakpoint already inserted at the same address.
1689 (deprecated_remove_raw_breakpoint): Handle the case of a
1690 non-raw breakpoint still inserted at the same address.
1691 (find_single_step_breakpoint): New function, extracted from
1692 single_step_breakpoint_inserted_here_p.
1693 (find_single_step_breakpoint): New function,
1694 factored out from single_step_breakpoint_inserted_here_p.
1695 (single_step_breakpoint_inserted_here_p): Reimplement.
1697 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1699 Pushed by Joel Brobecker <brobecker@adacore.com>
1700 * source.c (show_substitute_path_command): Fix display of matching
1703 2014-06-03 Gary Benson <gbenson@redhat.com>
1705 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1707 2014-06-02 Doug Evans <xdje42@gmail.com>
1709 Add parameter support for Guile.
1710 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1711 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1712 (scm-param.o): New rule.
1713 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1714 (gdbscm_misc_error): Declare.
1715 (gdbscm_canonicalize_command_name): Declare.
1716 (gdbscm_scm_to_host_string): Declare.
1717 (gdbscm_scm_from_host_string): Declare.
1718 (gdbscm_initialize_parameters): Declare.
1719 * guile/guile.c (initialize_gdb_module): Call
1720 gdbscm_initialize_parameters.
1721 * guile/lib/gdb.scm: Export parameter symbols.
1722 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1723 cmdscm_canonicalize_name and made public. All callers updated.
1724 * guile/scm-exception.c (gdbscm_misc_error): New function.
1725 * guile/scm-param.c: New file.
1726 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1727 (gdbscm_scm_to_host_string): New function.
1728 (gdbscm_scm_from_host_string): New function.
1729 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1731 2014-06-02 Doug Evans <xdje42@gmail.com>
1733 Add command support for Guile.
1734 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1735 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1736 (scm-cmd.o): New rule.
1737 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1738 (gdbscm_user_error_p): Declare.
1739 (gdbscm_parse_command_name): Declare.
1740 (gdbscm_valid_command_class_p): Declare.
1741 (gdbscm_initialize_commands): Declare.
1742 * guile/guile.c (initialize_gdb_module): Call
1743 gdbscm_initialize_commands.
1744 * guile/lib/gdb.scm: Export command symbols.
1745 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1746 (throw-user-error): New function.
1747 * guile/scm-cmd.c: New file.
1748 * guile/scm-exception.c (user_error_symbol): New static global.
1749 (gdbscm_user_error_p): New function.
1750 (gdbscm_initialize_exceptions): Set user_error_symbol.
1751 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1753 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1755 * top.c (command_loop): Handle comments here...
1756 (command_line_input): ... not here.
1758 2014-06-02 Doug Evans <xdje42@gmail.com>
1760 Add progspace support for Guile.
1761 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1762 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1763 (scm-progspace.o): New rule.
1764 * guile/guile-internal.h (pspace_smob): New typedef.
1765 (psscm_pspace_smob_pretty_printers): Declare.
1766 (psscm_pspace_smob_from_pspace): Declare.
1767 (psscm_scm_from_pspace): Declare.
1768 * guile/guile.c (initialize_gdb_module): Call
1769 gdbscm_initialize_pspaces.
1770 * guile/lib/gdb.scm: Export progspace symbols.
1771 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1773 (append-pretty-printer!): Ditto.
1774 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1776 * guile/scm-progspace.c: New file.
1778 2014-06-03 Alan Modra <amodra@gmail.com>
1780 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1781 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1783 2014-06-02 Doug Evans <dje@google.com>
1785 Add support for skeletonless type units.
1786 * dwarf2read.c (struct dwarf2_per_objfile): New member
1787 n_allocated_type_units.
1788 (struct dwarf2_per_objfile) <tu_stats>: New member
1789 nr_all_type_units_reallocs.
1790 (create_signatured_type_table_from_index): Initialize
1791 n_allocated_type_units
1792 (create_all_type_units): Ditto.
1793 (add_type_unit): Move up in file. New arg slot.
1794 All callers updated. Increase space for all_type_units more
1796 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1797 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1798 (lookup_dwp_signatured_type): Ditto.
1799 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1800 All callers updated.
1801 (build_type_psymtabs_1): Leave type_unit_groups as
1802 NULL if no TUs present.
1803 (print_tu_stats): New function.
1804 (process_skeletonless_type_unit): New function.
1805 (process_dwo_file_for_skeletonless_type_units): New
1807 (process_skeletonless_type_units): New function.
1808 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1809 Call print tu_stats if debugging enabled.
1811 2014-06-02 Pedro Alves <palves@redhat.com>
1813 * breakpoint.c (build_target_command_list): Don't build a command
1814 list if we have any duplicate location that isn't a dprintf.
1816 2014-06-02 Pedro Alves <palves@redhat.com>
1818 * breakpoint.c (dprintf_breakpoint_hit): New function.
1819 (initialize_breakpoint_ops): Install it as dprintf's
1820 breakpoint_hit method.
1822 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1824 * source.c (substitute_path_rule_matches): Simplify using
1825 filename_ncmp instead of FILENAME_CMP.
1827 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1829 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1831 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1833 * configure.ac: When Guile is available, check for the
1834 availability of 'scm_new_smob'.
1835 * configure, config.h.in: Regenerate.
1836 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1839 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1841 * frame.c (struct frame_info): Add stop_string field.
1842 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1843 (get_prev_frame_always): Old content moved into
1844 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1845 TRY_CATCH, handle MEMORY_ERROR exceptions.
1846 (frame_stop_reason_string): New function definition.
1847 * frame.h (unwind_stop_reason_to_string): Extend comment to
1848 mention frame_stop_reason_string.
1849 (frame_stop_reason_string): New function declaration.
1850 * stack.c (frame_info): Switch to frame_stop_reason_string.
1851 (backtrace_command_1): Switch to frame_stop_reason_string.
1852 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1853 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1854 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1856 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1858 * frame.c (frame_stop_reason_string): Rename to ...
1859 (unwind_stop_reason_to_string): this.
1860 * frame.h (frame_stop_reason_string): Rename to ...
1861 (unwind_stop_reason_to_string): this.
1862 * stack.c (frame_info): Update call to frame_stop_reason_string.
1863 (backtrace_command_1): Likewise.
1864 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1865 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1867 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1869 * frame.c (remove_prev_frame): New function.
1870 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1873 2014-05-29 Pedro Alves <palves@redhat.com>
1875 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1876 and make it const. When a single-step decays to a continue,
1877 clear 'step', not 'hw_step'. Pass whether the caller wanted
1878 to step to user_visible_resume_ptid, not what we ask the
1881 2014-05-29 Pedro Alves <palves@redhat.com>
1883 * infrun.c (process_event_stop_test, handle_step_into_function)
1884 (handle_step_into_function_backward): Adjust.
1885 Don't set the even thread's stop_step and call stop_waiting before
1886 calling end_stepping_range. Instead do that ...
1887 (end_stepping_range): ... here. Take an ecs pointer parameter.
1889 2014-05-29 Pedro Alves <palves@redhat.com>
1891 * infrun.c (stop_stepping): Rename to ...
1892 (stop_waiting): ... this.
1893 (proceed): Update comment.
1894 (process_event_stop_test, handle_inferior_event)
1895 (handle_signal_stop, handle_step_into_function)
1896 (handle_step_into_function_backward): Update.
1898 2014-05-29 Pedro Alves <palves@redhat.com>
1900 * infcall.c (run_inferior_call): Don't check whether the current
1901 thread is running after the proceed call.
1903 2014-05-29 Pedro Alves <palves@redhat.com>
1904 Tom Tromey <tromey@redhat.com>
1906 * NEWS: Mention "maint set target-async", "set mi-async", and that
1907 background execution commands are now always available.
1908 * target.h (target_async_permitted): Update comment.
1909 * target.c (target_async_permitted, target_async_permitted_1):
1911 (set_target_async_command): Rename to ...
1912 (maint_set_target_async_command): ... this.
1913 (show_target_async_command): Rename to ...
1914 (maint_show_target_async_command): ... this.
1915 (_initialize_target): Adjust.
1916 * infcmd.c (prepare_execution_command): Make extern.
1917 * inferior.h (prepare_execution_command): Declare.
1918 * infrun.c (set_observer_mode): Leave target async alone.
1919 * mi/mi-interp.c (mi_interpreter_init): Install
1920 mi_on_sync_execution_done as sync_execution_done observer.
1921 (mi_on_sync_execution_done): New function.
1922 (mi_execute_command_input_handler): Don't print the prompt if we
1923 just started a synchronous command with an async target.
1924 (mi_on_resume): Check sync_execution before printing prompt.
1925 * mi/mi-main.h (mi_async_p): Declare.
1926 * mi/mi-main.c: Include gdbcmd.h.
1927 (mi_async_p): New function.
1928 (mi_async, mi_async_1): New globals.
1929 (set_mi_async_command, show_mi_async_command, mi_async): New
1931 (exec_continue): Call prepare_execution_command.
1932 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1933 (mi_execute_async_cli_command): Use mi_async_p.
1934 (_initialize_mi_main): Install "set mi-async". Make
1935 "target-async" a deprecated alias.
1937 2014-05-29 Pedro Alves <palves@redhat.com>
1939 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1940 (_initialize_cli_interp): Adjust.
1941 * event-loop.c: Include "observer.h".
1942 (start_event_loop): Notify 'command_error' observers instead of
1943 calling display_gdb_prompt. Remove FIXME comment.
1944 * event-top.c (display_gdb_prompt): Remove call into the
1946 * inf-loop.c: Include "observer.h".
1947 (inferior_event_handler): Notify 'command_error' observers instead
1948 of calling display_gdb_prompt.
1949 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1950 observers instead of calling display_gdb_prompt.
1951 * interps.c (interp_set): Don't call display_gdb_prompt.
1952 (current_interp_display_prompt_p): Delete.
1953 * interps.h (interp_prompt_p): Delete declaration.
1954 (interp_prompt_p_ftype): Delete.
1955 (struct interp_procs) <prompt_proc_p>: Delete field.
1956 (current_interp_display_prompt_p): Delete declaration.
1957 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1958 (_initialize_mi_interp): Adjust.
1959 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1960 'command_error' observers.
1961 (tui_on_sync_execution_done, tui_on_command_error): New
1963 (tui_display_prompt_p): Delete.
1964 (_initialize_tui_interp): Adjust.
1966 2014-05-29 Pedro Alves <palves@redhat.com>
1969 * cli/cli-interp.c: Include infrun.h and observer.h.
1970 (cli_uiout, cli_interp): New globals.
1971 (cli_on_signal_received, cli_on_end_stepping_range)
1972 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1974 (cli_interpreter_init): Install them as 'end_stepping_range',
1975 'signal_received' 'signal_exited', 'exited' and 'no_history'
1977 (_initialize_cli_interp): Remove cli_interp local.
1978 * infrun.c (handle_inferior_event): Call the several stop reason
1979 observers instead of printing the stop reason directly.
1980 (end_stepping_range): New function.
1981 (print_end_stepping_range_reason, print_signal_exited_reason)
1982 (print_exited_reason, print_signal_received_reason)
1983 (print_no_history_reason): Make static, and add an uiout
1984 parameter. Print to that instead of to CURRENT_UIOUT.
1985 * infrun.h (print_end_stepping_range_reason)
1986 (print_signal_exited_reason, print_exited_reason)
1987 (print_signal_received_reason print_no_history_reason): New
1989 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1991 <cli_uiout>: New field.
1992 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1993 uiout for CLI output. Install 'signal_received',
1994 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1996 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1997 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1998 (mi_on_no_history): New functions.
1999 (ui_out_free_cleanup): Delete function.
2000 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2001 instead use the one already stored in the MI interpreter data.
2002 (mi_ui_out): Adjust.
2003 * tui/tui-interp.c: Include infrun.h and observer.h.
2004 (tui_interp): New global.
2005 (tui_on_signal_received, tui_on_end_stepping_range)
2006 (tui_on_signal_exited, tui_on_exited)
2007 (tui_on_no_history): New functions.
2008 (tui_init): Install them as 'end_stepping_range',
2009 'signal_received' 'signal_exited', 'exited' and 'no_history'
2011 (_initialize_tui_interp): Delete tui_interp local.
2013 2014-05-29 Pedro Alves <palves@redhat.com>
2016 * linux-nat.c (linux_nat_resume_callback): Rename the second
2017 parameter to 'except'. Skip LP if it points to EXCEPT.
2018 (linux_nat_resume): Don't mark the event lwp as not stopped
2019 before resuming sibling lwps. Instead ask
2020 linux_nat_resume_callback to skip the event lwp. Mark it as not
2021 stopped after actually resuming it.
2022 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2024 (wait_lwp): Mark the lwp as stopped here.
2025 (stop_wait_callback): Mark the lwp as not stopped right after
2026 resuming it. Don't mark lwps as stopped here.
2027 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2028 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2030 2014-05-29 Pedro Alves <palves@redhat.com>
2033 * infrun.c (resume): Determine how much to resume depending on
2034 whether the caller wanted a step, not whether we can hardware step
2035 the target. Mark all threads that we intend to run as running,
2036 unless we're calling an inferior function.
2037 (normal_stop): If the thread is running an infcall, don't finish
2039 * target.c (target_resume): Don't mark threads as running here.
2041 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2043 * serial.c (_initialize_serial): Remove support for
2044 the "set remotebaud" and "show remotebaud" commands.
2045 * NEWS: Add entry documenting the removal of that command.
2047 2014-05-28 Yao Qi <yao@codesourcery.com>
2049 * charset.c: Fix typo in comments.
2051 2014-05-27 Gary Benson <gbenson@redhat.com>
2053 * utils.c (internal_vproblem): Prompt for a bug report.
2055 2014-05-26 Andy Wingo <wingo@igalia.com>
2057 * guile/scm-arch.c (arscm_mark_arch_smob):
2058 * guile/scm-block.c (bkscm_mark_block_smob)
2059 (bkscm_mark_block_syms_progress_smob):
2060 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2061 * guile/scm-exception.c (exscm_mark_exception_smob):
2062 * guile/scm-frame.c (frscm_mark_frame_smob):
2063 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2064 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2065 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2066 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2067 (ppscm_mark_pretty_printer_worker_smob):
2068 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2069 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2070 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2071 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2073 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2076 2014-05-26 Andy Wingo <wingo@igalia.com>
2077 Doug Evans <xdje42@gmail.com>
2079 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2080 empty_base_class. All uses updated.
2081 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2082 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2084 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2085 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2086 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2087 (gdbscm_gsmob_has_property_p, add_property_name)
2088 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2089 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2090 (gdb-object-has-property?, gdb-object-properties): Remove.
2091 (gdb-object-kind): Renamed from gsmob-kind.
2093 2014-05-26 Andy Wingo <wingo@igalia.com>
2095 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2096 * configure: Regenerate.
2098 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2100 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2102 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2104 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2105 (replay_memory_access_read_only, replay_memory_access_read_write)
2106 (replay_memory_access_types, replay_memory_access)
2107 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2108 (cmd_set_record_btrace, cmd_show_record_btrace)
2109 (cmd_show_replay_memory_access): New.
2110 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2111 (record_btrace_remove_breakpoint): Replace
2112 record_btrace_allow_memory_access with replay_memory_access.
2113 (_initialize_record_btrace): Add commands.
2114 * NEWS: Announce it.
2116 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2118 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2120 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2122 * MAINTAINERS (Write After Approval): Move self back from
2125 2014-05-22 Pedro Alves <palves@redhat.com>
2127 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2128 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2129 (disable_randomization, enum exec_direction_kind)
2130 (execution_direction, stop_registers, start_remote)
2131 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2132 (wait_for_inferior, normal_stop, get_last_target_status)
2133 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2134 (insert_step_resume_breakpoint_at_sal)
2135 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2136 (set_step_info, print_stop_event, signal_stop_state)
2137 (signal_print_state, signal_pass_state, signal_stop_update)
2138 (signal_print_update, signal_pass_update)
2139 (update_signals_program_target, clear_exit_convenience_vars)
2140 (displaced_step_dump_bytes, update_observer_mode)
2141 (signal_catch_update, gdb_signal_from_command): Move
2143 * infrun.h: ... to this new file.
2144 * amd64-tdep.c: Include infrun.h.
2145 * annotate.c: Include infrun.h.
2146 * arch-utils.c: Include infrun.h.
2147 * arm-linux-tdep.c: Include infrun.h.
2148 * arm-tdep.c: Include infrun.h.
2149 * break-catch-sig.c: Include infrun.h.
2150 * breakpoint.c: Include infrun.h.
2151 * common/agent.c: Include infrun.h instead of inferior.h.
2152 * corelow.c: Include infrun.h.
2153 * event-top.c: Include infrun.h.
2154 * go32-nat.c: Include infrun.h.
2155 * i386-tdep.c: Include infrun.h.
2156 * inf-loop.c: Include infrun.h.
2157 * infcall.c: Include infrun.h.
2158 * infcmd.c: Include infrun.h.
2159 * infrun.c: Include infrun.h.
2160 * linux-fork.c: Include infrun.h.
2161 * linux-nat.c: Include infrun.h.
2162 * linux-thread-db.c: Include infrun.h.
2163 * monitor.c: Include infrun.h.
2164 * nto-tdep.c: Include infrun.h.
2165 * procfs.c: Include infrun.h.
2166 * record-btrace.c: Include infrun.h.
2167 * record-full.c: Include infrun.h.
2168 * remote-m32r-sdi.c: Include infrun.h.
2169 * remote-mips.c: Include infrun.h.
2170 * remote-notif.c: Include infrun.h.
2171 * remote-sim.c: Include infrun.h.
2172 * remote.c: Include infrun.h.
2173 * reverse.c: Include infrun.h.
2174 * rs6000-tdep.c: Include infrun.h.
2175 * s390-linux-tdep.c: Include infrun.h.
2176 * solib-irix.c: Include infrun.h.
2177 * solib-osf.c: Include infrun.h.
2178 * solib-svr4.c: Include infrun.h.
2179 * target.c: Include infrun.h.
2180 * top.c: Include infrun.h.
2181 * windows-nat.c: Include infrun.h.
2182 * mi/mi-interp.c: Include infrun.h.
2183 * mi/mi-main.c: Include infrun.h.
2184 * python/py-threadevent.c: Include infrun.h.
2186 2014-05-22 Pedro Alves <palves@redhat.com>
2188 * infrun.c (handle_inferior_event): Store the exit code for
2189 --return-child-result here, instead of ...
2190 (print_exited_reason): ... here.
2192 2014-05-21 Pedro Alves <palves@redhat.com>
2195 * gdbthread.h (struct thread_control_state): New field
2197 * infrun.c (follow_fork): Copy the new thread control field to the
2199 (clear_proceed_status_thread): Clear the new thread control field.
2200 (proceed): Set the new thread control field.
2201 * interps.h (command_interp): Declare.
2202 * interps.c (command_interpreter): New global.
2203 (command_interp): New function.
2204 (interp_exec): Set `command_interpreter' while here.
2205 * cli-out.c (cli_uiout_dtor): New function.
2206 (cli_ui_out_impl): Install it.
2207 * mi/mi-interp.c: Include cli-out.h.
2208 (mi_cmd_interpreter_exec): Add comment.
2209 (restore_current_uiout_cleanup): New function.
2210 (ui_out_free_cleanup): New function.
2211 (mi_on_normal_stop): If finishing an execution command started by
2212 a CLI command, or any kind of breakpoint-like event triggered,
2213 print the stop event to the output (CLI) stream.
2214 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2216 2014-05-21 Pedro Alves <palves@redhat.com>
2218 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2219 current source line having changed.
2220 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2221 * infrun.c (normal_stop): Adjust call to
2222 set_current_sal_from_frame.
2223 * source.c (clear_lines_listed_range): New function.
2224 (set_current_source_symtab_and_line, identify_source_line): Clear
2225 the lines listed range.
2226 (line_info): Handle the first "info line" after the current source
2227 line having changed.
2228 * stack.c (print_stack_frame): Remove center handling.
2229 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2232 2014-05-21 Pedro Alves <palves@redhat.com>
2234 * inf-child.c (inf_child_mourn_inferior): New function.
2235 * inf-child.h (inf_child_mourn_inferior): New declaration.
2236 * darwin-nat.c (darwin_mourn_inferior): Use
2237 inf_child_mourn_inferior.
2238 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2239 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2240 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2241 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2242 * windows-nat.c (windows_mourn_inferior): Likewise.
2244 2014-05-21 Doug Evans <xdje42@gmail.com>
2246 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2248 2014-05-21 Doug Evans <xdje42@gmail.com>
2250 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2251 (gdbscm_out_of_range_error): Ditto.
2252 (gdbscm_memory_error): Ditto.
2253 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2254 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2255 (gdbscm_out_of_range_error): Update.
2256 (gdbscm_memory_error): Update.
2257 (gdbscm_scm_to_target_string_unsafe): Delete.
2259 2014-05-21 Pedro Alves <palves@redhat.com>
2261 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2263 (inf_child_open_target): New function.
2264 (inf_child_open): Use inf_child_open_target to push the target
2265 instead of erroring out.
2266 (inf_child_disconnect, inf_child_close)
2267 (inf_child_maybe_unpush_target): New functions.
2268 (inf_child_target): Install inf_child_disconnect and
2269 inf_child_close. Store a pointer to the returned object.
2270 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2272 * target.c (auto_connect_native_target): New global.
2273 (show_default_run_target): New function.
2274 (find_default_run_target): Return NULL if automatically connecting
2275 to the native target is disabled.
2276 (_initialize_target): Install set/show auto-connect-native-target.
2277 * NEWS: Mention "set auto-connect-native-target", and "target
2279 * linux-nat.c (super_close): New global.
2280 (linux_nat_close): Call super_close.
2281 (linux_nat_add_target): Store a pointer to the base class's
2283 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2284 inf_child_maybe_unpush.
2285 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2287 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2288 the inferior. Use inf_child_maybe_unpush_target.
2289 (inf_ttrace_attach): Don't push the target if it is already
2291 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2292 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2293 after mourning the inferior. Use inf_child_maybe_unpush_target.
2294 (darwin_attach_pid): Don't push the target if it is already
2296 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2297 mourning the inferior. Use inf_child_maybe_unpush_target.
2298 (gnu_detach): Use inf_child_maybe_unpush_target.
2299 * go32-nat.c (go32_create_inferior): Don't push the target if it
2301 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2302 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2303 (procfs_open): Rename to ...
2304 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2305 comments. Can target_preopen before changing node. Call
2306 inf_child_open_target to push the target explicitly.
2307 (procfs_attach): Don't push the target if it is already pushed.
2308 (procfs_detach): Use inf_child_maybe_unpush_target.
2309 (procfs_create_inferior): Don't push the target if it is already
2311 (nto_native_ops): New global.
2312 (procfs_open): Reimplement.
2313 (procfs_native_open): New function.
2314 (init_procfs_targets): Install procfs_native_open as to_open of
2315 "target native". Store a pointer to the "native" target in
2317 * procfs.c (procfs_attach): Don't push the target if it is already
2319 (procfs_detach): Use inf_child_maybe_unpush_target.
2320 (procfs_mourn_inferior): Only unpush the target after mourning the
2321 inferior. Use inf_child_maybe_unpush_target.
2322 (procfs_init_inferior): Don't push the target if it is already
2324 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2325 if it is already pushed.
2327 2014-05-21 Pedro Alves <palves@redhat.com>
2329 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2330 and "procfs" targets are now called "native" instead.
2332 2014-05-21 Pedro Alves <palves@redhat.com>
2334 * go32-nat.c (go32_open): Delete.
2335 (go32_target): Don't override the to_open method.
2337 2014-05-21 Pedro Alves <palves@redhat.com>
2339 * nto-procfs.c (procfs_can_run): New function.
2340 (nto_procfs_ops): New global.
2341 (init_procfs_targets): New, based on procfs_target. Install
2342 "target native" in addition to "target procfs".
2343 (_initialize_procfs): Call init_procfs_targets instead of adding
2346 2014-05-21 Pedro Alves <palves@redhat.com>
2348 * windows-nat.c (windows_target): Don't override to_shortname,
2349 to_longname or to_doc.
2351 2014-05-21 Pedro Alves <palves@redhat.com>
2353 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2356 2014-05-21 Pedro Alves <palves@redhat.com>
2358 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2359 to_shortname, to_longname or to_doc.
2361 2014-05-21 Pedro Alves <palves@redhat.com>
2363 * go32-nat.c (go32_target): Don't override to_shortname,
2364 to_longname or to_doc.
2366 2014-05-21 Pedro Alves <palves@redhat.com>
2368 * inf-child.c (inf_child_open): Remove mention of "child".
2369 (inf_child_target): Rename target to "native" instead of "child".
2371 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2373 * Makefile.in (SFILES): Delete "regset.c".
2374 (COMMON_OBS): Delete "regset.o".
2376 * regset.h (regset_alloc): Delete prototype.
2378 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2380 * sparc-linux-tdep.c (sparc32_linux_gregset)
2381 (sparc32_linux_fpregset): New static regset structures.
2382 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2383 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2385 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2386 (sparc64_linux_fpregset): New static regset structures.
2387 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2388 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2389 New static regset structures.
2390 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2391 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2392 New static regset structures.
2393 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2394 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2395 New static regset structures.
2396 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2397 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2398 New static regset structures.
2399 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2401 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2403 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2404 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2405 register maps ("regmaps") from "*regset" to "*regmap". Do this
2406 for all regmap types and variables.
2407 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2408 (sparc32_linux_supply_core_gregset)
2409 (sparc32_linux_collect_core_gregset)
2410 (sparc32_linux_supply_core_fpregset)
2411 (sparc32_linux_collect_core_fpregset): Likewise.
2412 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2413 (sparc_gregmap, sparc_fpregmap): ... these.
2414 (sparc_supply_gregset, sparc_collect_gregset)
2415 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2416 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2417 (_initialize_sparc_nat): Rename regmaps.
2418 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2419 (sparc_gregmap, sparc_fpregmap): ... these.
2420 (sparc_supply_gregset, sparc_collect_gregset)
2421 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2422 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2424 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2425 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2427 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2429 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2430 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2431 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2433 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2434 (sparc32_bsd_fpregset): Rename to...
2435 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2436 (sparc32_bsd_fpregmap): ... these.
2437 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2438 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2439 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2440 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2441 (struct sparc_gregmap, struct sparc_fpregmap)
2442 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2443 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2444 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2445 (sparc32_supply_regset, sparc32_collect_gregset)
2446 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2448 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2449 (sparc64_linux_ptrace_gregmap): ... this.
2450 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2451 (_initialize_sparc64_linux_nat): Rename regmaps.
2452 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2453 (sparc64_linux_core_gregmap): ... this.
2454 (sparc64_linux_supply_core_gregset)
2455 (sparc64_linux_collect_core_gregset)
2456 (sparc64_linux_supply_core_fpregset)
2457 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2458 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2459 (sparc64_sol2_fpregset): Rename to...
2460 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2461 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2462 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2464 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2465 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2466 (sparc64_bsd_fpregset): Rename to...
2467 (struct sparc_gregmap, sparc64_sol2_gregmap)
2468 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2469 (sparc64_bsd_fpregmap): ... these.
2470 (sparc64_supply_gregset, sparc64_collect_gregset)
2471 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2473 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2474 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2475 (sparc64fbsd_gregmap): ... this.
2476 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2477 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2479 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2480 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2481 (sparc64nbsd_collect_fpregset): Likewise.
2482 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2483 (sparc64nbsd_gregmap): ... this.
2484 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2486 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2487 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2488 (sparc64obsd_gregmap): ... this.
2489 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2491 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2492 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2493 (sparc32nbsd_gregmap): ... this.
2494 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2497 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2499 * score-tdep.c (score7_linux_gregset): New static regset
2501 (score7_linux_regset_from_core_section): Remove dynamic regset
2503 (score_gdbarch_init): Drop allocation of tdep structure.
2504 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2506 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2508 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2510 (am33_regset_from_core_section): Remove dynamic regset
2513 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2515 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2516 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2518 (mips_linux_regset_from_core_section): Remove dynamic regset
2520 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2521 'gregset64', 'fpregset', and 'fpregset64'.
2522 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2523 deleted tdep fields.
2525 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2527 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2529 (amd64_regset_from_core_section): Remove dynamic regset
2531 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2533 (amd64obsd_regset_from_core_section): Remove dynamic regset
2535 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2537 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2538 x86-common regset supply function.
2539 * i386-tdep.c (i386_collect_gregset): Make static.
2540 (i386_gregset): New global regset structure.
2541 (i386_fpregset, i386_xstateregset): New static regset structures.
2542 (i386_regset_from_core_section): Remove dynamic regset
2544 (i386_gdbarch_init): Remove initialization of tdep fields
2545 'gregset', 'fpregset', and 'xstateregset'.
2546 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2547 'fpregset', and 'xstateregset'.
2548 (i386_collect_gregset): Remove prototype.
2549 (i386_gregset): New declaration.
2550 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2552 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2555 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2557 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2558 (arm_linux_vfpregset): New static regset structures.
2559 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2561 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2562 and 'vfpregset' fields.
2564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2567 (aarch64_linux_fpregset): New static regset structures.
2568 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2569 of regset structures.
2570 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2573 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575 * regset.h (struct regset): Remove gdbarch field.
2576 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2577 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2578 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2580 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2581 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2582 (ppc32_linux_vsxregset): Likewise.
2583 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2584 via the regcache instead of the regset.
2585 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2586 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2587 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2588 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2593 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2594 Constify structures.
2595 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2596 (alphanbsd_aout_gregset): Likewise.
2597 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2598 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2600 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2601 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2603 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2604 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2605 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2606 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2607 * m88k-tdep.c (m88k_gregset): Likewise.
2608 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2609 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2610 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2611 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2612 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2613 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2614 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2615 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2616 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2618 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2619 * sh-tdep.h (sh_corefile_gregset): Likewise.
2620 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2621 * vax-tdep.c (vax_gregset): Likewise.
2623 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2625 Fix TLS access for -static -pthread.
2626 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2627 (try_thread_db_load_1): Initialize it.
2628 (thread_db_get_thread_local_address): Call it if LM is zero.
2629 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2630 * target.h (struct target_ops) (to_get_thread_local_address): Add
2631 load_module_addr comment.
2633 2014-05-21 Pedro Alves <palves@redhat.com>
2635 * dcache.c (dcache_read_memory_partial): If reading the cache line
2636 fails, fallback to reading just the memory the caller wanted.
2638 2014-05-20 Doug Evans <dje@google.com>
2640 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2641 instead of get_current_arch.
2643 2014-05-20 Pedro Alves <palves@redhat.com>
2645 * NEWS: Mention that compare-sections now works with all targets.
2647 * remote.c (PACKET_qCRC): New enum value.
2648 (remote_verify_memory): Don't send qCRC if the target has no
2649 execution. Use packet_support/packet_ok. If the target doesn't
2650 support the qCRC packet, fallback to a deep memory copy.
2651 (compare_sections_command): Say "target image" instead of "remote
2653 (_initialize_remote): Add PACKET_qCRC to the list of config
2654 packets that have no associated command. Extend comment.
2655 * target.c (simple_verify_memory, default_verify_memory): New
2657 * target.h (struct target_ops) <to_verify_memory>: Default to
2658 default_verify_memory.
2659 (simple_verify_memory): New declaration.
2660 * target-delegates.c: Regenerate.
2662 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2664 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2666 2014-05-20 Hui Zhu <hui@codesourcery.com>
2667 Yao Qi <yao@codesourcery.com>
2670 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2671 and change address of sp and pc.
2673 2014-05-19 Tom Tromey <tromey@redhat.com>
2675 * gdbtypes.c (rank_function): Use XNEWVEC.
2676 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2678 2014-05-19 Doug Evans <dje@google.com>
2680 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2681 build_type_unit_groups and moved closer to only caller. Remove
2682 arguments. All references updated. Remove outdated .gdb_index
2684 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2685 build_type_psymtabs_1.
2687 2014-05-19 Doug Evans <dje@google.com>
2689 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2690 n_type_unit_groups, all_type_unit_groups. All uses removed.
2691 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2692 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2693 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2694 (add_type_unit_group_to_table): Delete.
2696 2014-05-19 Doug Evans <dje@google.com>
2698 * eval.c (evaluate_subexp_standard): Add some comments.
2700 2014-05-17 Doug Evans <xdje42@gmail.com>
2702 * progspace.c (remove_program_space): Delete, unused.
2703 * progspace.h (remove_program_space): Ditto.
2705 2014-05-17 Doug Evans <xdje42@gmail.com>
2707 * inferior.c (prune_inferiors): Fix comment.
2708 (remove_inferior_command): Call prune_program_spaces.
2710 2014-05-16 Doug Evans <dje@google.com>
2712 New command line option -D.
2714 * main.c (set_gdb_data_directory): New function.
2715 (captured_main): Recognize -D. Flag error for --data-directory "".
2716 Call set_gdb_data_directory.
2717 (print_gdb_help): Print --data-directory, -D.
2718 * main.h (set_gdb_data_directory): Declare.
2719 * top.c (staged_gdb_datadir): New static global.
2720 (set_gdb_datadir): Call set_gdb_data_directory
2721 (show_gdb_datadir): New function.
2722 (init_main): Update init of data-directory parameter.
2724 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2726 Import the "dirfd" gnulib module.
2727 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2728 * gnulib/aclocal.m4: Update.
2729 * gnulib/config.in: Update.
2730 * gnulib/configure: Update.
2731 * gnulib/import/Makefile.am: Update.
2732 * gnulib/import/Makefile.in: Update.
2733 * gnulib/import/dirfd.c: New.
2734 * gnulib/import/m4/dirfd.m4: New.
2735 * gnulib/import/m4/gnulib-cache.m4: Update.
2736 * gnulib/import/m4/gnulib-comp.m4: Update.
2738 2014-05-16 Pierre Muller <muller@sourceware.org>
2739 Yao Qi <yao@codesourcery.com>
2741 * valprint.c (print_wchar): Move the code on checking whether
2742 W is a printable wide char to the default branch of switch
2743 statement below. Call wchar_printable instead of gdb_iswprint.
2745 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2747 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2748 ldr.w and ldrd instructions.
2750 2014-05-15 Doug Evans <dje@google.com>
2752 * dwarf2read.c (read_structure_type): Delete outdated comments.
2754 2014-05-14 Tom Tromey <tromey@redhat.com>
2756 * macrocmd.c (print_macro_definition): Reindent.
2758 2014-05-13 Doug Evans <xdje42@gmail.com>
2760 * python/py-cmd.c (cmdpy_completer): Add comment.
2761 (completers): Make const.
2763 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2765 * infrun.c (resume): Remove should_resume (unused). Move up
2766 declaration of resume_ptid.
2768 2014-05-13 Tom Tromey <tromey@redhat.com>
2770 * language.h (unop_type_check): Remove.
2771 (binop_type_check): Don't declare.
2773 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2775 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2776 call to regcache_raw_collect.
2778 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2780 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2781 mi_console->quote as the quoting character.
2783 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2785 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2787 2014-04-29 Tom Tromey <tromey@redhat.com>
2789 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2790 "show debug varobj".
2792 2014-05-07 Kyle McMartin <kyle@redhat.com>
2794 Pushed by Joel Brobecker <brobecker@adacore.com>.
2795 * aarch64-tdep.c (aarch64_software_single_step): New function.
2796 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2797 with aarch64_software_single_step.
2799 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2803 2014-05-05 Keith Seitz <keiths@redhat.com>
2805 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2806 variable or history value is successfully parsed.
2808 2014-05-05 Yao Qi <yao@codesourcery.com>
2809 Pedro Alves <palves@redhat.com>
2811 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2812 address of blocks that intersects the requested range. Trim
2813 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2815 * ctf.c (ctf_xfer_partial): Likewise.
2817 2014-05-05 Yao Qi <yao@codesourcery.com>
2819 * printcmd.c (display_command): Remove the check to
2820 target_has_execution.
2822 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2824 * ppcobsd-nat.c: Include "obsd-nat.h".
2825 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2827 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2829 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2831 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2832 and 16-bit signed and unsigned arguments. Update comment.
2833 (stap_parse_probe_arguments): Extend code to handle such
2834 arguments. Use warning instead of complaint to notify about
2835 unrecognized bitness.
2837 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2839 PR breakpoints/16889
2840 * stap-probe.c (stap_parse_probe_arguments): Simplify
2841 check for non-prefixed probes (i.e., probes whose
2842 arguments do not start with "N@"). Always set the
2843 argument type to a sane value.
2845 2014-05-01 David Taylor <dtaylor@emc.com>
2847 * remote.c (compare_sections_command): Add -r option to compare
2848 all loadable read-only sections.
2850 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2852 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2853 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2855 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2856 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2857 Remove unused CORE_ADDR argument. Update all callers.
2859 2014-04-29 Pedro Alves <palves@redhat.com>
2861 * remote.c (struct packet_config) <detect>: Extend comment.
2862 (add_packet_config_cmd): Don't set the config's detect or support
2864 (init_all_packet_configs): Also initialize the config's 'detect'
2866 (reset_all_packet_configs_support): New function.
2867 (remote_open_1): Call reset_all_packet_configs_support instead of
2868 init_all_packet_configs.
2869 (_initialize_remote): Initialize all packet configs. Assert that
2870 all packets have an associated command, except a few known
2873 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2875 * dwarf2read.c (read_subrange_type): Handle dynamic
2876 DW_AT_lower_bound attributes.
2878 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2880 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2881 dynamic bounds before computing its upper bound.
2882 (ada_discrete_type_low_bound): Same as above with the lower bound.
2884 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2886 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2887 range types. Adjust the array handling implementation to
2888 take advantage of this change.
2889 (resolve_dynamic_range): New function, mostly extracted from
2890 resolve_dynamic_bounds.
2891 (resolve_dynamic_array): New function, mostly extracted from
2892 resolve_dynamic_bounds.
2893 (resolve_dynamic_bounds): Delete.
2894 (resolve_dynamic_type): Reimplement. Add handling of
2895 TYPE_CODE_RANGE types.
2897 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2899 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2900 handling of parallel ___XA types.
2902 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2904 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2905 unnecessary second call to static_unwrap_type.
2907 2014-04-27 Hui Zhu <hui@codesourcery.com>
2909 * stack.c (print_frame_info): Call do_gdb_disassembly with
2910 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2912 2014-04-26 Doug Evans <xdje42@gmail.com>
2914 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2916 2014-04-25 Pedro Alves <palves@redhat.com>
2919 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2920 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2921 and newline from built string.
2922 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2923 (linux_ptrace_attach_fail_reason): ... this.
2924 * linux-nat.c (linux_nat_attach): Adjust to use
2925 linux_ptrace_attach_fail_reason.
2927 2014-04-25 Pedro Alves <palves@redhat.com>
2929 * remote.c (struct remote_state): Remove multi_process_aware,
2930 non_stop_aware, cond_tracepoints, cond_breakpoints,
2931 breakpoint_commands, fast_tracepoints, static_tracepoints,
2932 install_in_trace, disconnected_tracing,
2933 enable_disable_tracepoints, string_tracing, and
2934 augmented_libraries_svr4_read fields.
2935 (remote_multi_process_p): Move further below in the file.
2936 (struct packet_config): Add comments.
2937 (update_packet_config): Delete function.
2938 (show_packet_config_cmd): Use packet_config_support.
2939 (add_packet_config_cmd): Use NULL as set callback.
2940 (packet_ok): "set remote foo-packet"-style commands no longer
2941 change config->supported -- adjust.
2942 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2943 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2944 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2945 (PACKET_QNonStop, PACKET_multiprocess_feature)
2946 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2947 (PACKET_DisconnectedTracing_feature)
2948 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2949 (set_remote_protocol_packet_cmd): Delete function.
2950 (packet_config_support, packet_support): New functions.
2951 (set_remote_protocol_Z_packet_cmd): Don't call
2952 update_packet_config.
2953 (remote_query_attached, remote_pass_signals)
2954 (remote_program_signals, remote_threads_info)
2955 (remote_threads_extra_info, remote_start_remote): Use
2957 (remote_start_remote): Use packet_config_support and
2959 (init_all_packet_configs): Set all packets to unknown support,
2960 instead of calling update_packet_config.
2961 (remote_check_symbols): Use packet_support.
2962 (remote_supported_packet): Unconditionally set the packet config's
2964 (remote_multi_process_feature, remote_non_stop_feature)
2965 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2966 (remote_breakpoint_commands_feature)
2967 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2968 (remote_install_in_trace_feature)
2969 (remote_disconnected_tracing_feature)
2970 (remote_enable_disable_tracepoint_feature)
2971 (remote_string_tracing_feature)
2972 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2973 (remote_protocol_features): Adjust to use remote_supported_packet
2974 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2975 "ConditionalTracepoints", "ConditionalBreakpoints",
2976 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2977 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2978 "EnableDisableTracepoints", and "tracenz".
2979 (remote_query_supported): Use packet_support.
2980 (remote_open_1): Adjust.
2981 (extended_remote_attach_1): Use packet_support. Switch on the
2982 result of packet_ok instead of checking whether the packet ended
2984 (remote_vcont_resume): Use packet_support.
2985 (remote_resume, remote_stop_ns, fetch_register_using_p)
2986 (remote_prepare_to_store, store_register_using_P)
2987 (check_binary_download, remote_write_bytes): Use packet_support.
2988 (remote_vkill): Use packet_support. Switch on the result of
2989 packet_ok instead of checking whether the packet ended up
2991 (extended_remote_supports_disable_randomization): Use
2993 (extended_remote_run): Switch on the result of packet_ok instead
2994 of checking whether the packet ended up disabled.
2995 (remote_insert_breakpoint, remote_remove_breakpoint)
2996 (remote_insert_watchpoint, remote_remove_watchpoint)
2997 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2999 (remote_search_memory): Use packet_config_support.
3000 (remote_get_thread_local_address, remote_get_tib_address)
3001 (remote_hostio_send_command, remote_can_execute_reverse): Use
3003 (remote_supports_cond_tracepoints)
3004 (remote_supports_cond_breakpoints)
3005 (remote_supports_fast_tracepoints)
3006 (remote_supports_static_tracepoints)
3007 (remote_supports_install_in_trace)
3008 (remote_supports_enable_disable_tracepoint)
3009 (remote_supports_string_tracing)
3010 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3011 the packet config says the feature is enabled or disabled.
3012 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3013 (remote_get_trace_status): Use packet_support.
3014 (remote_set_disconnected_tracing): Adjust to check whether the
3015 feature is enabled with packet_support.
3016 (remote_set_trace_buffer_size, remote_use_agent)
3017 (remote_can_use_agent, remote_supports_btrace): Use
3019 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3020 Use packet_config_support.
3021 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3022 the packet config says the feature is enabled or disabled.
3023 (set_range_stepping): Use packet_support.
3025 2014-04-25 Tom Tromey <tromey@redhat.com>
3027 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3030 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3032 * NEWS: Mention support for C99 variable length arrays.
3034 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3036 * ada-lang.c (standard_exc): Expand introductory comment.
3038 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3039 Walfred Tedeschi <walfred.tedeschi@intel.com>
3041 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3043 (amd64_linux_read_description): Add code to handle AVX512 xstate
3044 mask and return respective tdesc.
3045 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3046 and features/i386/x32-avx512-linux.c.
3047 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3048 (amd64_linux_core_read_description): Add code to handle AVX512
3049 xstate mask and return respective tdesc.
3050 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3051 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3053 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3054 (tdesc_amd64_avx512_linux): New prototype.
3055 (tdesc_x32_avx512_linux): Likewise.
3056 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3057 features/i386/x32-avx512.c.
3058 (amd64_ymm_avx512_names): New register names for pseudo
3060 (amd64_ymmh_avx512_names): New register names for raw registers
3062 (amd64_k_names): New register names for K registers.
3063 (amd64_zmmh_names): New register names for ZMM raw registers.
3064 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3065 (amd64_xmm_avx512_names): New register names for XMM16-31
3067 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3069 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3070 if feature is present.
3071 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3072 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3073 (AMD64_NUM_REGS): Adjust to new number of registers.
3074 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3075 registers supplied via XSTATE by AVX512 registers.
3076 (i386_linux_read_description): Add case for AVX512.
3077 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3078 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3079 (i386_linux_core_read_description): Add case for AVX512.
3080 (i386_linux_init_abi): Install supported register note section
3082 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3084 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3085 registers to be number of zmm7h + 1.
3086 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3087 * i386-tdep.c: Include features/i386/i386-avx512.c.
3088 (i386_zmm_names): Add ZMM pseudo register names array.
3089 (i386_zmmh_names): Add ZMM raw register names array.
3090 (i386_k_names): Add K raw register names array.
3091 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3092 registers. AVX512 has 16 more ZMM registers than there are YMM
3094 (i386_zmmh_regnum_p): Add function to look up register number of
3096 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3097 (i386_k_regnum_p): Likewise for K raw registers.
3098 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3099 registers added by AVX512.
3100 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3101 registers added by AVX512.
3102 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3104 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3105 (i386_pseudo_register_name): Add ZMM pseudo registers.
3106 (i386_zmm_type): Construct and return vector registers type for ZMM
3108 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3109 ZMM0-31 pseudo registers and K registers.
3110 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3111 and YMM16-31 registers from register cache.
3112 (i386_pseudo_register_write): Add code to write K, ZMM and
3114 (i386_register_reggroup_p): Add code to include/exclude AVX512
3115 registers in/from respective register groups.
3116 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3117 registers if feature is present in xcr0.
3118 (i386_gdbarch_init): Add code to initialize AVX512 feature
3119 variables in tdep structure, wire in pseudo registers and call
3120 initialize_tdesc_i386_avx512.
3121 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3123 (i386_regnum): Add AVX512 registers.
3124 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3125 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3126 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3127 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3129 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3130 (i386_ymm_avx512_regnum_p): Likewise.
3131 (i386_k_regnum_p): Likewise.
3132 (i386_zmm_regnum_p): Likewise.
3133 (i386_zmmh_regnum_p): Likewise.
3134 * i387-tdep.c : Update year in copyright notice.
3135 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3137 (XSAVE_YMM_AVX512_ADDR): New macro.
3138 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3140 (XSAVE_XMM_AVX512_ADDR): New macro.
3141 (xsave_avx512_k_offset): New table for K register offsets in
3143 (XSAVE_AVX512_K_ADDR): New macro.
3144 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3146 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3147 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3149 (i387_collect_xsave): Add code to collect AVX512 registers from
3151 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3152 of XMM16-31 registers.
3153 (I387_NUM_K_REGS): New define for number of K registers.
3154 (I387_K0_REGNUM): New define for K0 register number.
3155 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3156 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3157 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3159 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3160 (I387_XMM16_REGNUM): New define for XMM16 register number.
3161 (I387_YMM0_REGNUM): New define for YMM0 register number.
3162 (I387_KEND_REGNUM): New define for last K register number.
3163 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3164 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3166 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3168 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3170 * features/Makefile: Add AVX512 related files.
3171 * features/i386/32bit-avx512.xml: New file.
3172 * features/i386/64bit-avx512.xml: Likewise.
3173 * features/i386/amd64-avx512-linux.c: Likewise.
3174 * features/i386/amd64-avx512-linux.xml: Likewise.
3175 * features/i386/amd64-avx512.c: Likewise.
3176 * features/i386/amd64-avx512.xml: Likewise.
3177 * features/i386/i386-avx512-linux.c: Likewise.
3178 * features/i386/i386-avx512-linux.xml: Likewise.
3179 * features/i386/i386-avx512.c: Likewise.
3180 * features/i386/i386-avx512.xml: Likewise.
3181 * features/i386/x32-avx512-linux.c: Likewise.
3182 * features/i386/x32-avx512-linux.xml: Likewise.
3183 * features/i386/x32-avx512.c: Likewise.
3184 * features/i386/x32-avx512.xml: Likewise.
3185 * regformats/i386/amd64-avx512-linux.dat: New file.
3186 * regformats/i386/amd64-avx512.dat: Likewise.
3187 * regformats/i386/i386-avx512-linux.dat: Likewise.
3188 * regformats/i386/i386-avx512.dat: Likewise.
3189 * regformats/i386/x32-avx512-linux.dat: Likewise.
3190 * regformats/i386/x32-avx512.dat: Likewise.
3191 * NEWS: Add note about new support for AVX512.
3194 2014-04-23 Pedro Alves <palves@redhat.com>
3196 * breakpoint.c (insert_bp_location): Tolerate errors if the
3197 breakpoint is set in a user-loaded objfile.
3198 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3199 location is marked shlib_disabled. If the breakpoint is set in a
3200 user-loaded objfile is a GDB-side memory breakpoint, validate it
3201 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3202 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3204 * mem-break.c (memory_validate_breakpoint): New function.
3205 * objfiles.c (userloaded_objfile_contains_address_p): New
3207 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3208 * target.h (memory_validate_breakpoint): New declaration.
3210 2014-04-23 Pedro Alves <palves@redhat.com>
3212 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3213 the breakpoint is set in a shared library, only suppress
3214 errors for software breakpoints, not hardware breakpoints.
3216 2014-04-22 Pedro Alves <palves@redhat.com>
3218 * infrun.c (schedlock_applies): New function, factored out from
3219 find_thread_needs_step_over.
3220 (find_thread_needs_step_over): Use it.
3221 (switch_back_to_stepped_thread): Always clear trap_expected if the
3222 step over is finished. Return early if scheduler locking applies.
3223 Look for the stepping thread and a potential step-over thread with
3225 (currently_stepping_or_nexting_callback): Delete.
3227 2014-04-22 Nick Clifton <nickc@redhat.com>
3229 * NEWS: Mention that ARM sim now supports tracing.
3231 2014-04-22 Yao Qi <yao@codesourcery.com>
3233 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3235 * tracefile.c (tracefile_fetch_registers): ... it. New
3237 * tracefile.h (tracefile_fetch_registers): Declare.
3238 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3239 tracefile_fetch_registers.
3241 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3244 * windows-nat.c (thread_rec): Don't display a warning when
3245 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3246 fails for any reason, set th->suspended to -1, so that we don't
3247 try to resume such a thread. Also, don't return NULL in these
3248 cases, to avoid completely ruin the session due to "PC register is
3249 not available" error.
3250 (do_windows_fetch_inferior_registers): Check errors in
3251 GetThreadContext call.
3252 (windows_continue): Accept an additional argument KILLED; if not
3253 zero, ignore errors in the SetThreadContext call, since the
3254 inferior was killed and is shutting down.
3255 (windows_resume, get_windows_debug_event)
3256 (windows_create_inferior, windows_mourn_inferior)
3257 (windows_kill_inferior): All callers of windows_continue changed
3258 to adjust to its new calling sequence.
3260 2014-04-19 Yao Qi <yao@codesourcery.com>
3262 * ctf.c (ctf_open): Call post_create_inferior.
3264 2014-04-19 Yao Qi <yao@codesourcery.com>
3266 * ctf.c (handle_id): New static variable.
3267 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3268 value. Get the declaration of event "register" and get length
3269 of field "contents".
3271 2014-04-19 Yao Qi <yao@codesourcery.com>
3273 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3275 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3277 * valops.c (oload_method_static): Remove unnecessary argument
3278 METHOD. Update all callers.
3280 2014-04-18 Pedro alves <palves@redhat.com>
3281 Tom Tromey <tromey@redhat.com>
3284 * frame.c (get_prev_frame_1): Rename to ...
3285 (get_prev_frame_always): ... this, and make extern. Adjust.
3286 (skip_artificial_frames): Use get_prev_frame_always.
3287 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3288 (get_frame_unwind_stop_reason): Adjust to rename.
3289 * frame.h (get_prev_frame_always): Declare.
3290 * inline-frame.c: Include frame.h.
3291 (inline_frame_this_id): Use get_prev_frame_always.
3293 2014-04-18 Tristan Gingold <gingold@adacore.com>
3295 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3296 code by using bfd_mach_o_get_base_address.
3298 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3300 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3301 (spu_ax_pseudo_register_collect): New function.
3302 (spu_ax_pseudo_register_push_stack): Likewise.
3303 (spu_dwarf_reg_to_regnum): Likewise.
3304 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3306 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3308 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3309 Replace FRAME argument with FRAME_ID.
3310 * gdbarch.c, gdbarch.h: Regenerate.
3311 * findvar.c (default_value_from_register): Add GDBARCH argument;
3312 replace FRAME by FRAME_ID. No longer call get_frame_id.
3313 (value_from_register): Update call to gdbarch_value_from_register.
3314 * value.h (default_value_from_register): Update prototype.
3315 * s390-linux-tdep.c (s390_value_from_register): Update interface
3316 and call to default_value_from_register.
3317 * spu-tdep.c (spu_value_from_register): Likewise.
3319 * findvar.c (address_from_register): Remove TYPE argument.
3320 Do not call value_from_register; use gdbarch_value_from_register
3321 with null_frame_id instead.
3322 * value.h (address_from_register): Update prototype.
3323 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3324 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3325 address_from_register interface change.
3327 2014-04-17 Yao Qi <yao@codesourcery.com>
3329 * gdbtypes.h: Update comments to link to types and macros'
3332 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3334 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3336 2014-04-16 Keith Seitz <keiths@redhat.com>
3339 * dwarf2read.c (skip_one_die): Check that all relative-offset
3340 sibling DIEs fall within range of the current reader's buffer.
3341 (read_partial_die): Likewise.
3343 2014-04-16 Keith Seitz <keiths@redhat.com>
3346 * cp-namespace.c (lookup_symbol_file): If the type name of
3347 `this' is NULL, return immediately.
3349 2014-04-14 Keith Seitz <keiths@redhat.com>
3352 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3353 from symbol_matches_domain in symtab.c. All local callers
3354 of symbol_matches_domain updated.
3355 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3356 search STRUCT_DOMAIN.
3357 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3358 independently. standard_lookup will do that automatically.
3359 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3360 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3361 (cp_lookup_symbol_in_namespace): Likewise.
3362 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3363 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3364 may return a STRUCT_DOMAIN match.
3365 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3366 * cp-support.c: Include language.h.
3367 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3369 * psymtab.c (match_partial_symbol): Compare the requested
3370 domain with the symbol's domain directly.
3371 (lookup_partial_symbol): Likewise.
3372 * symtab.c (lookup_symbol_in_language): Explain when/why
3373 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3374 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3375 appropriate languages.
3376 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3377 and moved to ada-lang.c
3378 (lookup_block_symbol): Explain that this function only returns
3379 symbol matching the requested DOMAIN.
3380 Compare the requested domain with the symbol's domain directly.
3381 (iterate_over_symbols): Compare the requested domain with the
3382 symbol's domain directly.
3383 * symtab.h (symbol_matches_domain): Remove.
3385 2014-04-14 Tom Tromey <tromey@redhat.com>
3388 * c-exp.y (type_aggregate_p): New function.
3389 (qualified_name, classify_inner_name): Use it.
3390 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3391 and TYPE_TARGET_TYPE of an enum type.
3392 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3394 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3395 handle TYPE_DECLARED_CLASS.
3396 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3398 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3399 * valops.c (enum_constant_from_type): New function.
3400 (value_aggregate_elt): Use it.
3401 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3404 2014-04-14 Tom Tromey <tromey@redhat.com>
3406 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3407 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3409 * value.h (value_aggregate_elt): Update.
3411 2014-04-14 Tom Tromey <tromey@redhat.com>
3413 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3415 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3417 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3418 (evaluate_subexp_standard): Pass noside argument.
3419 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3420 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3421 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3422 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3423 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3425 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3427 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3428 points to a constant blob.
3430 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3432 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3433 property and store it as the high bound and flag the range accordingly.
3434 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3435 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3436 * gdbtypes.h (enum range_flags): New enum.
3437 (struct range_bounds): Add flags member.
3439 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3441 * c-typeprint.c (c_type_print_varspec_suffix): Added
3442 check for not yet resolved high bound. If unresolved, print
3443 "variable length" string to the console instead of random
3446 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3448 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3450 (ada_template_to_fixed_record_type_1): Likewise.
3451 (ada_to_fixed_type_1): Likewise.
3452 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3453 (cp_print_value): Likewise.
3454 * d-valprint.c (dynamic_array_type): Likewise.
3455 * findvar.c (address_of_variable): Likewise.
3456 * jv-valprint.c (java_value_print): Likewise.
3457 * valops.c (value_ind): Likewise.
3458 * value.c (coerce_ref): Likewise.
3460 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3462 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3463 value and retrieve the dynamic type size.
3465 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3467 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3468 passed to sizeof is dynamic evaluate the argument to compute the length.
3470 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3471 Joel Brobecker <brobecker@adacore.com>
3473 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3474 (dwarf2_evaluate_property): New function.
3475 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3476 * dwarf2read.c (attr_to_dynamic_prop): New function.
3477 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3479 * gdbtypes.c: Include dwarf2loc.h.
3480 (is_dynamic_type): New function.
3481 (resolve_dynamic_type): New function.
3482 (resolve_dynamic_bounds): New function.
3483 (get_type_length): New function.
3484 (check_typedef): Use get_type_length to compute type length.
3485 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3486 (TYPE_LOW_BOUND_KIND): New macro.
3487 (is_dynamic_type): New function prototype.
3488 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3489 to resolve dynamic properties of the type. Update comment.
3490 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3492 2014-04-14 Richard Henderson <rth@redhat.com>
3494 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3496 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3497 Doug Evans <xdje42@gmail.com>
3499 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3500 dereference TYPE_CODE_REF values.
3502 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3504 Revert the following changes due to regressions:
3506 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3507 (dwarf2_evaluate_property): New function.
3508 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3509 * dwarf2read.c (attr_to_dynamic_prop): New function.
3510 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3512 * gdbtypes.c: Include dwarf2loc.h.
3513 (is_dynamic_type): New function.
3514 (resolve_dynamic_type): New function.
3515 (resolve_dynamic_bounds): New function.
3516 (get_type_length): New function.
3517 (check_typedef): Use get_type_length to compute type length.
3518 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3519 (TYPE_LOW_BOUND_KIND): New macro.
3520 (is_dynamic_type): New function prototype.
3521 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3522 to resolve dynamic properties of the type. Update comment.
3523 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3525 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3526 passed to sizeof is dynamic evaluate the argument to compute the length.
3528 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3529 value and retrieve the dynamic type size.
3531 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3532 (ada_template_to_fixed_record_type_1): Likewise.
3533 (ada_to_fixed_type_1): Likewise.
3534 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3535 (cp_print_value): Likewise.
3536 * d-valprint.c (dynamic_array_type): Likewise.
3537 * eval.c (evaluate_subexp_with_coercion): Likewise.
3538 * findvar.c (address_of_variable): Likewise.
3539 * jv-valprint.c (java_value_print): Likewise.
3540 * valops.c (value_ind): Likewise.
3541 * value.c (coerce_ref): Likewise.
3543 * c-typeprint.c (c_type_print_varspec_suffix): Added
3544 check for not yet resolved high bound. If unresolved, print
3545 "variable length" string to the console instead of random
3548 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3549 property and store it as the high bound and flag the range accordingly.
3550 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3551 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3552 * gdbtypes.h (enum range_flags): New enum.
3553 (struct range_bounds): Add flags member.
3555 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3556 points to a constant blob.
3558 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3559 (evaluate_subexp_standard): Pass noside argument.
3560 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3561 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3562 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3563 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3564 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3566 2014-04-11 Keith Seitz <keiths@redhat.com>
3569 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3570 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3575 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3576 (evaluate_subexp_standard): Pass noside argument.
3577 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3578 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3579 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3580 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3581 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3583 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3585 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3586 points to a constant blob.
3588 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3590 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3591 property and store it as the high bound and flag the range accordingly.
3592 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3593 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3594 * gdbtypes.h (enum range_flags): New enum.
3595 (struct range_bounds): Add flags member.
3597 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3599 * c-typeprint.c (c_type_print_varspec_suffix): Added
3600 check for not yet resolved high bound. If unresolved, print
3601 "variable length" string to the console instead of random
3604 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3606 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3607 (ada_template_to_fixed_record_type_1): Likewise.
3608 (ada_to_fixed_type_1): Likewise.
3609 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3610 (cp_print_value): Likewise.
3611 * d-valprint.c (dynamic_array_type): Likewise.
3612 * eval.c (evaluate_subexp_with_coercion): Likewise.
3613 * findvar.c (address_of_variable): Likewise.
3614 * jv-valprint.c (java_value_print): Likewise.
3615 * valops.c (value_ind): Likewise.
3616 * value.c (coerce_ref): Likewise.
3618 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3620 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3621 value and retrieve the dynamic type size.
3623 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3625 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3626 passed to sizeof is dynamic evaluate the argument to compute the length.
3628 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3630 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3631 (dwarf2_evaluate_property): New function.
3632 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3633 * dwarf2read.c (attr_to_dynamic_prop): New function.
3634 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3636 * gdbtypes.c: Include dwarf2loc.h.
3637 (is_dynamic_type): New function.
3638 (resolve_dynamic_type): New function.
3639 (resolve_dynamic_bounds): New function.
3640 (get_type_length): New function.
3641 (check_typedef): Use get_type_length to compute type length.
3642 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3643 (TYPE_LOW_BOUND_KIND): New macro.
3644 (is_dynamic_type): New function prototype.
3645 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3646 to resolve dynamic properties of the type. Update comment.
3647 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3649 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3651 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3652 declaring high/low bounds and change uses accordingly. Call
3653 create_range_type instead of create_static_range_type.
3654 * gdbtypes.c (create_range_type): New function.
3655 (create_range_type): Convert bounds into struct bound_prop and pass
3656 them to create_range_type.
3657 * gdbtypes.h (struct bound_prop): New struct.
3658 (create_range_type): New function prototype.
3659 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3660 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3661 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3663 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3665 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3667 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3668 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3669 * ada-lang.c: All uses of create_range_type updated.
3670 * coffread.c: All uses of create_range_type updated.
3671 * dwarf2read.c: All uses of create_range_type updated.
3672 * f-exp.y: All uses of create_range_type updated.
3673 * m2-valprint.c: All uses of create_range_type updated.
3674 * mdebugread.c: All uses of create_range_type updated.
3675 * stabsread.c: All uses of create_range_type updated.
3676 * valops.c: All uses of create_range_type updated.
3677 * valprint.c: All uses of create_range_type updated.
3679 2014-04-10 Pedro Alves <palves@redhat.com>
3681 * breakpoint.c (single_step_breakpoints)
3682 (single_step_gdbarch): Move up in the file.
3683 (one_breakpoint_xfer_memory): New function, factored out from ...
3684 (breakpoint_xfer_memory): ... here. Also process single-step
3687 2014-04-09 Tristan Gingold <gingold@adacore.com>
3689 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3691 (darwin_decode_exception_message): Free port only after use.
3693 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3695 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3696 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3697 when setting the size of call_length.
3699 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3701 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3702 dereference TYPE_CODE_REF values.
3704 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3706 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3707 end of warning message.
3709 2014-04-03 Doug Evans <dje@google.com>
3711 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3712 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3714 2014-04-02 Alan Modra <amodra@gmail.com>
3716 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3717 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3718 (struct symbol_file_add_from_memory_args): Add size field.
3719 (find_vdso_size): New function.
3720 (add_vsyscall_page): Attempt to find vdso size.
3722 2014-04-01 Doug Evans <dje@google.com>
3724 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3726 2014-04-01 Tristan Gingold <gingold@adacore.com>
3728 * darwin-nat.c (darwin_encode_reply): Add prototype.
3729 (darwin_decode_exception_message): Reply to unknown inferiors.
3730 (darwin_decode_message): Handle message by id. Ignore message
3731 to unknown inferior.
3732 (darwin_wait): Discard unknown messages, add debug trace.
3734 2014-03-31 Doug Evans <dje@google.com>
3736 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3739 2014-03-31 Doug Evans <dje@google.com>
3741 New option "set print symbol-loading".
3743 * solib.c (solib_read_symbols): Only print symbol loading messages
3745 (solib_add): If symbol loading is in "brief" mode, notify user
3746 symbols are being loaded.
3747 (reload_shared_libraries_1): Ditto.
3748 * symfile.c (print_symbol_loading_off): New static global.
3749 (print_symbol_loading_brief): New static global.
3750 (print_symbol_loading_full): New static global.
3751 (print_symbol_loading_enums): New static global.
3752 (print_symbol_loading): New static global.
3753 (print_symbol_loading_p): New function.
3754 (symbol_file_add_with_addrs): Only print symbol loading messages
3756 (_initialize_symfile): Register "print symbol-loading" set/show
3758 * symfile.h (print_symbol_loading_p): Declare.
3760 2014-03-30 Doug Evans <xdje42@gmail.com>
3762 * infrun.c (set_last_target_status): New function.
3763 (handle_inferior_event): Call it.
3765 2014-03-30 Doug Evans <xdje42@gmail.com>
3767 * inferior.h (enum stop_kind): Improve comment.
3769 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3771 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3772 a reference, strip the reference layer before calling
3773 the lang_ops value_has_mutated callback.
3775 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3777 Remove some globals from our parser.
3778 * language.c (unk_lang_parser): Add "struct parser_state"
3780 * language.h (struct language_defn) <la_parser>: Likewise.
3781 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3782 (initialize_expout): Add "struct parser_state" argument.
3783 Rewrite function to use the parser state.
3784 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3785 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3786 write_exp_elt_longcst, write_exp_elt_dblcst,
3787 write_exp_elt_decfloatcst, write_exp_elt_type,
3788 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3789 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3790 write_dollar_variable): Likewise.
3791 (parse_exp_in_context_1): Use parser state.
3792 (insert_type_address_space): Add "struct parser_state" argument.
3794 (increase_expout_size): New function.
3795 * parser-defs.h: Forward declare "struct language_defn" and
3796 "struct parser_state".
3797 (expout, expout_size, expout_ptr): Remove extern declarations.
3798 (parse_gdbarch, parse_language): Rewrite macro declarations to
3799 accept the parser state.
3800 (struct parser_state): New struct.
3801 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3802 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3803 write_exp_elt_decfloatcst, write_exp_elt_type,
3804 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3805 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3806 write_exp_msymbol, write_dollar_variable,
3807 mark_struct_expression, insert_type_address_space): Add "struct
3808 parser_state" argument.
3809 (increase_expout_size): New function.
3810 * utils.c (do_clear_parser_state): New function.
3811 (make_cleanup_clear_parser_state): Likewise.
3812 * utils.h (make_cleanup_clear_parser_state): New function
3814 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3815 Update calls to write_exp* in order to pass the parser state.
3816 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3817 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3818 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3819 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3820 * stap-probe.c (stap_parse_register_operand): Likewise.
3821 (stap_parse_single_operand): Likewise.
3822 (stap_parse_argument_1): Likewise.
3823 (stap_parse_argument): Use parser state.
3824 * stap-probe.h: Include "parser-defs.h".
3825 (struct stap_parse_info) <pstate>: New field.
3826 * c-exp.y (parse_type): Rewrite to use parser state.
3827 (yyparse): Redefine to c_parse_internal.
3828 (pstate): New global variable.
3829 (parse_number): Add "struct parser_state" argument.
3830 (write_destructor_name): Likewise.
3831 (type_exp): Update calls to write_exp* and similars in order to
3833 (exp1, exp, variable, qualified_name, space_identifier,
3834 typename, typebase): Likewise.
3835 (write_destructor_name, parse_number, lex_one_token,
3836 classify_name, classify_inner_name, c_parse): Add "struct
3837 parser_state" argument. Update function to use parser state.
3838 * c-lang.h: Forward declare "struct parser_state".
3839 (c_parse): Add "struct parser_state" argument.
3840 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3841 (yyparse): Redefine macro to ada_parse_internal.
3842 (pstate): New variable.
3843 (write_int, write_object_renaming, write_var_or_type,
3844 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3845 type_int, type_long, type_long_long, type_float, type_double,
3846 type_long_double, type_char, type_boolean, type_system_address):
3847 Add "struct parser_state" argument.
3848 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3849 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3850 var_or_type, aggregate, aggregate_component_list,
3851 positional_list, others, component_group,
3852 component_associations): Update calls to write_exp* and similar
3853 functions in order to use parser state.
3854 (ada_parse, write_var_from_sym, write_int,
3855 write_exp_op_with_string, write_object_renaming,
3856 find_primitive_type, write_selectors, write_ambiguous_var,
3857 write_var_or_type, write_name_assoc, type_int, type_long,
3858 type_long_long, type_float, type_double, type_long_double,
3859 type_char, type_boolean, type_system_address): Add "struct
3860 parser_state" argument. Adjust function to use parser state.
3861 * ada-lang.c (parse): Likewise.
3862 * ada-lang.h: Forward declare "struct parser_state".
3863 (ada_parse): Add "struct parser_state" argument.
3864 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3865 calls to both functions.
3866 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3868 (yyparse): Redefine macro to f_parse_internal.
3869 (pstate): New variable.
3870 (parse_number): Add "struct parser_state" argument.
3871 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3872 and similars in order to use parser state.
3873 (parse_number): Adjust code to use parser state.
3875 (f_parse): New function.
3876 * f-lang.h: Forward declare "struct parser_state".
3877 (f_parse): Add "struct parser_state" argument.
3878 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3880 (yyparse): Redefine macro for java_parse_internal.
3881 (pstate): New variable.
3882 (push_expression_name, push_expression_name, insert_exp): Add
3883 "struct parser_state" argument.
3884 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3885 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3886 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3887 PostIncrementExpression, PostDecrementExpression,
3888 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3889 UnaryExpressionNotPlusMinus, CastExpression,
3890 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3891 RelationalExpression, EqualityExpression, AndExpression,
3892 ExclusiveOrExpression, InclusiveOrExpression,
3893 ConditionalAndExpression, ConditionalOrExpression,
3894 ConditionalExpression, Assignment, LeftHandSide): Update
3895 calls to write_exp* and similars in order to use parser state.
3896 (parse_number): Ajust code to use parser state.
3898 (java_parse): New function.
3899 (push_variable): Add "struct parser_state" argument. Adjust
3900 code to user parser state.
3901 (push_fieldnames, push_qualified_expression_name,
3902 push_expression_name, insert_exp): Likewise.
3903 * jv-lang.h: Forward declare "struct parser_state".
3904 (java_parse): Add "struct parser_state" argument.
3905 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3907 (yyparse): Redefine macro to m2_parse_internal.
3908 (pstate): New variable.
3909 (type_exp, exp, fblock, variable, type): Update calls to
3910 write_exp* and similars to use parser state.
3912 (m2_parse): New function.
3913 * m2-lang.h: Forward declare "struct parser_state".
3914 (m2_parse): Add "struct parser_state" argument.
3915 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3916 * objc-lang.h: Forward declare "struct parser_state".
3917 (end_msglist): Add "struct parser_state" argument.
3918 * p-exp.y (parse_type): Rewrite macro to use parser state.
3919 (yyparse): Redefine macro to pascal_parse_internal.
3920 (pstate): New variable.
3921 (parse_number): Add "struct parser_state" argument.
3922 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3923 write_exp* and similars in order to use parser state.
3924 (parse_number, yylex): Adjust code to use parser state.
3925 (pascal_parse): New function.
3926 * p-lang.h: Forward declare "struct parser_state".
3927 (pascal_parse): Add "struct parser_state" argument.
3928 * go-exp.y (parse_type): Rewrite macro to use parser state.
3929 (yyparse): Redefine macro to go_parse_internal.
3930 (pstate): New variable.
3931 (parse_number): Add "struct parser_state" argument.
3932 (type_exp, exp1, exp, variable, type): Update calls to
3933 write_exp* and similars in order to use parser state.
3934 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3935 to use parser state.
3936 (go_parse): Likewise.
3937 * go-lang.h: Forward declare "struct parser_state".
3938 (go_parse): Add "struct parser_state" argument.
3940 2014-03-27 Doug Evans <dje@google.com>
3942 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3944 2014-03-27 Doug Evans <dje@google.com>
3946 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3947 Remove argument abbrev_section. All callers updated.
3949 2014-03-27 Doug Evans <dje@google.com>
3951 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3952 addr_base, ranges_base.
3954 2014-03-26 Keith Seitz <keiths@redhat.com>
3956 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3957 types, not VAR_DOMAIN.
3959 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3961 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3963 * features/nios2-linux.c: Regenerated.
3964 * features/nios2.c: Regenerated.
3966 2014-03-25 Pedro Alves <palves@redhat.com>
3968 * cli/cli-script.c (script_from_file): Force the interpreter to
3971 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3973 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3974 small stack allocation.
3976 2014-03-24 Tristan Gingold <gingold@adacore.com>
3978 * darwin-nat.c (exc_server): Remove unused prototype.
3979 (darwin_dump_message): Correctly display data on x86_64.
3980 (darwin_encode_reply): Fix style.
3981 Add comments and fix indentation.
3983 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3985 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3987 2014-03-22 Doug Evans <xdje42@gmail.com>
3989 * infcmd.c: Whitespace fixes.
3990 (interrupt_command): Merge two function comments into one.
3992 2014-03-22 Doug Evans <xdje42@gmail.com>
3994 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3997 2014-03-22 Yao Qi <yao@codesourcery.com>
3999 * remote.c (target_read_live_memory): Remove.
4000 (memory_xfer_live_readonly_partial): Rename it to
4001 remote_xfer_live_readonly_partial. Remove argument 'object'.
4002 All callers updated. Call remote_read_bytes_1
4003 instead of target_read_live_memory.
4004 * tracepoint.c (set_traceframe_number): Remove.
4005 (make_cleanup_restore_traceframe_number): Likewise .
4006 * tracepoint.h (set_traceframe_number): Remove declaration.
4007 (make_cleanup_restore_traceframe_number): Likewise.
4009 2014-03-22 Yao Qi <yao@codesourcery.com>
4011 * remote.c (remote_read_bytes): Move code on reading from the
4013 (remote_read_bytes_1): ... here. New function.
4015 2014-03-22 Yao Qi <yao@codesourcery.com>
4017 * ctf.c (ctf_xfer_partial): Check the return value of
4018 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4019 return TARGET_XFER_UNAVAILABLE.
4020 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4021 * target.c (target_read_live_memory): Move it to remote.c.
4022 (memory_xfer_live_readonly_partial): Likewise.
4023 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4024 * remote.c (target_read_live_memory): Moved from target.c.
4025 (memory_xfer_live_readonly_partial): Likewise.
4026 (remote_read_bytes): Factored out from
4027 memory_xfer_partial_1.
4029 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4031 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4034 2014-03-21 Pedro Alves <palves@redhat.com>
4036 * infrun.c (normal_stop): Extend comment.
4038 2014-03-21 Hui Zhu <hui@codesourcery.com>
4039 Pedro Alves <palves@redhat.com>
4041 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4043 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4044 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4045 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4047 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4049 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4050 `z' formatted output modifier.
4052 2014-03-20 Tom Tromey <tromey@redhat.com>
4053 Sergio Durigan Junior <sergiodj@redhat.com>
4055 * probe.c (parse_probes): Turn assert into an ordinary error.
4056 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4057 exceptions when parsing probes. Rearrange the code for clarity.
4059 2014-03-20 Tom Tromey <tromey@redhat.com>
4062 * top.c (execute_command): Only dispatch events if the command
4065 2014-03-20 Tom Tromey <tromey@redhat.com>
4068 * infcall.c: Include event-top.h.
4069 (run_inferior_call): Call async_disable_stdin if needed.
4071 2014-03-20 Pedro Alves <palves@redhat.com>
4073 * infrun.c (prepare_to_proceed): Delete.
4074 (thread_still_needs_step_over): New function.
4075 (find_thread_needs_step_over): New function.
4076 (proceed): If the current thread needs a step-over, set its
4077 steping_over_breakpoint flag. Adjust to use
4078 find_thread_needs_step_over instead of prepare_to_proceed.
4079 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4080 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4082 (switch_back_to_stepped_thread): Step over breakpoints of all
4083 threads not the stepping thread, before switching back to the
4086 2014-03-20 Pedro Alves <palves@redhat.com>
4088 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4090 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4091 * infrun.c (saved_singlestep_ptid)
4092 (stepping_past_singlestep_breakpoint): Delete.
4093 (resume): Remove stepping_past_singlestep_breakpoint handling.
4094 (proceed): Store the prev_pc of the stepping thread too.
4095 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4097 (enum infwait_states): Delete infwait_thread_hop_state.
4098 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4100 (handle_inferior_event): Adjust.
4101 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4102 handling and the thread-hop code. Before removing single-step
4103 breakpoints, check whether the thread hit a single-step breakpoint
4104 of another thread. If it did, the trap is not a random signal.
4105 (switch_back_to_stepped_thread): If the event thread hit a
4106 single-step breakpoint, unblock it before switching to the
4107 stepping thread. Handle the case of the stepped thread having
4109 (keep_going): Handle the case of the current thread moving past a
4110 single-step breakpoint.
4112 2014-03-20 Pedro Alves <palves@redhat.com>
4115 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4116 are being stepped over.
4117 (breakpoint_address_match): Make extern.
4118 * breakpoint.h (breakpoint_address_match): New declaration.
4119 * inferior.h (stepping_past_instruction_at): New declaration.
4120 * infrun.c (struct step_over_info): New type.
4121 (step_over_info): New global.
4122 (set_step_over_info, clear_step_over_info)
4123 (stepping_past_instruction_at): New functions.
4124 (handle_inferior_event): Clear the step-over info when
4125 trap_expected is cleared.
4126 (resume): Remove now stale comment.
4127 (clear_proceed_status): Clear step-over info.
4128 (proceed): Adjust step-over handling to set or clear the step-over
4129 info instead of removing all breakpoints.
4130 (handle_signal_stop): When setting up a thread-hop, don't remove
4132 (stop_stepping): Clear step-over info.
4133 (keep_going): Adjust step-over handling to set or clear step-over
4134 info and then always inserting breakpoints, instead of removing
4135 all breakpoints when stepping over one.
4137 2014-03-20 Pedro Alves <palves@redhat.com>
4139 * infrun.c (previous_inferior_ptid): Adjust comment.
4140 (deferred_step_ptid): Delete.
4141 (infrun_thread_ptid_changed, prepare_to_proceed)
4142 (init_wait_for_inferior): Adjust.
4143 (handle_signal_stop): Delete deferred_step_ptid handling.
4145 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * defs.h (sync_quit_force_run): New declaration.
4149 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4150 * event-top.c (async_sigterm_handler): New declaration.
4151 (async_sigterm_token): New variable.
4152 (async_init_signals): Create also async_sigterm_token.
4153 (async_sigterm_handler): New function.
4154 (sync_quit_force_run): New variable.
4155 (handle_sigterm): Replace quit_force call by other calls.
4156 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4158 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4160 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4161 offset into SPE pseudo registers.
4163 2014-03-18 Pedro Alves <palves@redhat.com>
4166 * inferior.h (print_stop_event): Declare.
4167 * infrun.c (print_stop_event): New, factored out from ...
4168 (normal_stop): ... this.
4169 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4170 of bpstat_print/print_stack_frame.
4172 2014-03-17 Tom Tromey <tromey@redhat.com>
4174 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4176 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4178 * ada-lang.c (decode_constrained_packed_array): Perform a
4179 minimal coercion for reference with coerce_ref instead of
4182 2014-03-17 Tristan Gingold <gingold@adacore.com>
4184 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4185 (darwin_solib_create_inferior_hook): Emit a warning if version
4188 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4190 * python/py-value.c (get_field_flag): Cast flag_name argument to
4191 PyObject_GetAttrString to support Python 2.4.
4193 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4195 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4196 (Global Maintainers): Remove Jan Kratochvil.
4198 2014-03-14 Pedro Alves <palves@redhat.com>
4200 * inferior.h (terminal_ours_for_output): Rename to ...
4201 (child_terminal_ours_for_output): ... this.
4202 (terminal_save_ours): Rename to ...
4203 (child_terminal_save_ours): ... this.
4204 (terminal_ours): Rename to ...
4205 (child_terminal_ours): ... this.
4206 (terminal_inferior): Rename to ...
4207 (child_terminal_inferior): ... this.
4208 (terminal_init_inferior): Rename to ...
4209 (child_terminal_init_inferior): ... this.
4210 (terminal_init_inferior_with_pgrp): Rename to ...
4211 (child_terminal_init_inferior_with_pgrp): ... this.
4212 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4213 (child_terminal_init_with_pgrp): ... this.
4214 (terminal_save_ours): Rename to ...
4215 (child_terminal_save_ours): ... this.
4216 (terminal_init_inferior): Rename to ...
4217 (child_terminal_init): ... this. Adjust.
4218 (terminal_inferior): Rename to ...
4219 (child_terminal_inferior): ... this.
4220 (terminal_ours_for_output): Rename to ...
4221 (child_terminal_ours_for_output): ... this. Adjust.
4222 (terminal_ours): Rename to ...
4223 (child_terminal_ours): ... this.
4224 (terminal_ours_1): Rename to ...
4225 (child_terminal_ours_1): ... this. Adjust.
4226 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4227 * windows-nat.c (do_initial_windows_stuff): Adjust.
4228 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4229 (gnu_terminal_init): ... this. Adjust.
4230 (gnu_target): Adjust.
4231 * inf-child.c (inf_child_target): Adjust.
4233 2014-03-13 Doug Evans <xdje42@gmail.com>
4236 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4239 2014-03-13 Doug Evans <xdje42@gmail.com>
4241 * value.c (record_latest_value): Call release_value_or_incref
4242 instead of release_value.
4244 2014-03-13 Pedro Alves <palves@redhat.com>
4246 * procfs.c (procfs_target): Don't override to_shortname,
4247 to_longname or to_doc.
4249 2014-03-13 Pedro Alves <palves@redhat.com>
4251 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4252 Unix in user visible strings.
4254 2014-03-12 Stan Shebs <stan@codesourcery.com>
4256 * gdbtypes.h: Annotate comments for Doxygen, add a page
4257 block comment with some general info.
4259 2014-03-12 Pedro Alves <palves@redhat.com>
4261 * infcmd.c (prepare_execution_command): New function, factored out
4262 from several execution commands.
4263 (run_command_1, continue_command, step_1, jump_command)
4264 (signal_command, until_command, advance_command, finish_command)
4265 (attach_command): Use prepare_execution_command.
4267 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4269 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4272 (struct arm_linux_thread_points): Removed.
4273 (struct arm_linux_process_info): New.
4274 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4275 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4276 (arm_linux_find_breakpoints_by_tid): Removed.
4277 (struct arch_lwp_info): New.
4278 (arm_linux_find_process_pid): New functions.
4279 (arm_linux_add_process): New functions.
4280 (arm_linux_process_info_get): New functions.
4281 (arm_linux_forget_process): New function.
4282 (arm_linux_get_debug_reg_state): New function.
4283 (struct update_registers_data): New.
4284 (update_registers_callback): New function.
4285 (arm_linux_insert_hw_breakpoint1): Updated.
4286 (arm_linux_remove_hw_breakpoint1): Updated.
4287 (arm_linux_insert_hw_breakpoint): Updated.
4288 (arm_linux_remove_hw_breakpoint): Updated.
4289 (arm_linux_insert_watchpoint): Updated.
4290 (arm_linux_remove_watchpoint): Updated.
4291 (arm_linux_new_thread): Updated.
4292 (arm_linux_prepare_to_resume): New function.
4293 (arm_linux_new_fork): New function.
4294 (_initialize_arm_linux_nat): Updated.
4296 2014-03-12 Pedro Alves <palves@redhat.com>
4298 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4300 2014-03-12 Tom Tromey <tromey@redhat.com>
4302 * inf-child.c (return_zero): New function.
4303 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4304 * aix-thread.c (aix_thread_inferior_created): New function.
4305 (aix_thread_attach): Remove.
4306 (init_aix_thread_ops): Don't set to_attach.
4307 (_initialize_aix_thread): Register inferior_created observer.
4308 * corelow.c (init_core_ops): Don't set to_attach or
4310 * exec.c (init_exec_ops): Don't set to_attach or
4312 * infcmd.c (run_command_1): Use find_run_target. Make direct
4314 (attach_command): Use find_attach_target. Make direct target
4316 * record-btrace.c (init_record_btrace_ops): Don't set
4318 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4320 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4321 set to_create_inferior.
4322 * target.c (complete_target_initialization): Add assertion.
4323 (target_create_inferior): Remove.
4324 (find_default_attach, find_default_create_inferior): Remove.
4325 (find_attach_target, find_run_target): New functions.
4326 (find_default_is_async_p, find_default_can_async_p)
4327 (target_supports_non_stop, target_attach): Remove.
4328 (init_dummy_target): Don't set to_create_inferior or
4329 to_supports_non_stop.
4330 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4331 TARGET_DEFAULT_FUNC.
4332 <to_create_inferior>: Add comment.
4333 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4334 TARGET_DEFAULT_RETURN.
4335 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4336 (find_attach_target, find_run_target): Declare.
4337 (target_create_inferior): Remove.
4338 (target_has_execution_1): Update comment.
4339 (target_supports_non_stop): Remove.
4340 * target-delegates.c: Rebuild.
4342 2014-03-12 Pedro Alves <palves@redhat.com>
4344 * inf-child.h: Update comment to not mention Unix.
4346 2014-03-12 Pedro Alves <palves@redhat.com>
4348 * inf-child.c: Update top comment to not mention Unix. Add
4349 generic comment describing how this target is meant to be used.
4350 (inf_child_post_attach, inf_child_post_startup_inferior)
4351 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4354 2014-03-12 Pedro Alves <palves@redhat.com>
4356 * nto-procfs.c: Include inf-child.h.
4357 (procfs_ops): Delete global.
4358 (procfs_can_run): Delete method.
4359 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4360 target pointer instead of referencing procfs_ops.
4361 (procfs_prepare_to_store): Delete.
4362 (init_procfs_ops): Delete function.
4363 (procfs_target): New function, based on init_procfs_ops, but
4364 inherit inf_child_target.
4365 (_initialize_procfs): Use procfs_target.
4367 2014-03-12 Pedro Alves <palves@redhat.com>
4369 * windows-nat.c: Include inf-child.h.
4370 (windows_ops): Delete global.
4371 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4373 (init_windows_ops): Delete function.
4374 (windows_target): New function, based on init_windows_ops, but
4375 inherit inf_child_target.
4376 (_initialize_windows_nat): Use windows_target. Install x86
4377 specific target methods here.
4379 2014-03-10 Doug Evans <xdje42@gmail.com>
4381 * guile/guile.c (call_initialize_gdb_module): New function.
4382 (initialize_guile): Replace call to scm_init_guile with call to
4385 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4387 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4388 in call to TYPE_CODE macro.
4390 2014-03-10 Jerome Guitton <guitton@adacore.com>
4392 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4393 Resolve tagged types to full view.
4395 2014-03-10 Hui Zhu <hui@codesourcery.com>
4397 * target.h (target_insert_breakpoint): Remove "hardware" from its
4400 2014-03-07 Doug Evans <dje@google.com>
4402 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4404 2014-03-07 Doug Evans <dje@google.com>
4406 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4407 Remove unused local comp_dir_attr. Assert exactly one of
4408 stub_comp_unit_die, stub_comp_dir is non-NULL.
4410 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4412 * target.h (complete_target_initialization, add_target):
4415 2014-03-07 Pedro Alves <palves@redhat.com>
4417 * go32-nat.c: Include inf-child.h.
4418 (go32_ops): Delete global.
4419 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4421 (go32_create_inferior): Push the passed in target pointer instead
4422 of referencing go32_ops.
4423 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4424 (go32_target): New function, based on init_go32_ops, but inherit
4426 (_initialize_go32_nat): Use go32_target. Move parts of
4429 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4431 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4432 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4433 SYMBOL_VALUE_ADDRESS.
4434 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4436 2014-03-06 Yao Qi <yao@codesourcery.com>
4438 * breakpoint.c (get_tracepoint_by_number): Remove argument
4439 optional_p. All callers updated. Adjust comments. Update
4441 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4443 2014-03-06 Yao Qi <yao@codesourcery.com>
4445 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4446 early if get_number returns zero. Use 'p' instead of 'args'.
4448 2014-03-06 Yao Qi <yao@codesourcery.com>
4450 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4453 2014-03-06 Yao Qi <yao@codesourcery.com>
4455 PR breakpoints/16508
4456 * tracepoint.c (check_trace_running): New function.
4457 (trace_find_command): Move code to check_trace_running and
4458 call check_trace_running.
4459 (trace_find_pc_command): Likewise.
4460 (trace_find_tracepoint_command): Likewise.
4461 (trace_find_line_command): Likewise.
4462 (trace_find_range_command): Likewise.
4463 * tracepoint.h (check_trace_running): Likewise.
4464 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4466 2014-03-06 Yao Qi <yao@codesourcery.com>
4468 * target.h (struct target_ops) <to_traceframe_info>: Use
4469 TARGET_DEFAULT_NORETURN (tcomplain ()).
4470 * target-delegates.c: Regenerated.
4472 2014-03-05 Pedro Alves <palves@redhat.com>
4475 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4476 void. Update comment.
4477 (dcache_xfer_memory): Delete.
4478 (dcache_read_memory_partial): New, based on the read bits of
4480 (dcache_update): Add status parameter. Use ULONGEST for len, and
4481 adjust. Discard cache lines if the reason for the update was
4483 * dcache.h (dcache_xfer_memory): Delete declaration.
4484 (dcache_read_memory_partial): New declaration.
4485 (dcache_update): Update prototype.
4486 * target.c (raw_memory_xfer_partial): Update the dcache here.
4487 (memory_xfer_partial_1): Don't handle dcache writes here.
4489 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4491 * remote-sim.c (gdbsim_load): Add const to prog.
4493 2014-03-03 Tom Tromey <tromey@redhat.com>
4495 * elfread.c (probe_key): Change to bfd_data.
4496 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4497 now per-BFD, not per-objfile.
4498 * stap-probe.c (stap_probe_destroy): Update comment.
4499 (handle_stap_probe): Allocate on the per-BFD obstack.
4501 2014-03-03 Tom Tromey <tromey@redhat.com>
4503 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4504 * breakpoint.c (create_longjmp_master_breakpoint): Use
4506 (add_location_to_breakpoint, bkpt_probe_insert_location)
4507 (bkpt_probe_remove_location): Update.
4508 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4509 * elfread.c (elf_symfile_relocate_probe): Remove.
4510 (elf_probe_fns): Update.
4511 (insert_exception_resume_breakpoint): Change type of "probe"
4512 parameter to bound_probe.
4513 (check_exception_resume): Update.
4514 * objfiles.c (objfile_relocate1): Don't relocate probes.
4515 * probe.c (bound_probe_s): New typedef.
4516 (parse_probes): Use get_probe_address. Set sal's objfile.
4517 (find_probe_by_pc): Return a bound_probe.
4518 (collect_probes): Return a VEC(bound_probe_s).
4519 (compare_probes): Update.
4520 (gen_ui_out_table_header_info): Change type of "probes"
4522 (info_probes_for_ops): Update.
4523 (get_probe_address): New function.
4524 (probe_safe_evaluate_at_pc): Update.
4525 * probe.h (struct probe_ops) <get_probe_address>: New field.
4526 <set_semaphore, clear_semaphore>: Add objfile parameter.
4527 (struct probe) <objfile>: Remove field.
4529 <address>: Update comment.
4530 (struct bound_probe): New.
4531 (find_probe_by_pc): Return a bound_probe.
4532 (get_probe_address): Declare.
4533 * solib-svr4.c (struct probe_and_action) <address>: New field.
4534 (hash_probe_and_action, equal_probe_and_action): Update.
4535 (register_solib_event_probe): Add address parameter.
4536 (solib_event_probe_at): Update.
4537 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4539 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4540 (stap_get_probe_address): New function.
4541 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4542 (compile_probe_arg): Update.
4543 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4545 (handle_stap_probe): Don't relocate the probe.
4546 (stap_relocate): Remove.
4547 (stap_gen_info_probes_table_values): Update.
4548 (stap_probe_ops): Remove stap_relocate.
4549 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4550 (debug_sym_probe_fns): Update.
4551 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4552 * symtab.c (init_sal): Use memset.
4553 * symtab.h (struct symtab_and_line) <objfile>: New field.
4554 * tracepoint.c (start_tracing, stop_tracing): Update.
4556 2014-03-03 Tom Tromey <tromey@redhat.com>
4558 * probe.h (parse_probes, find_probe_by_pc)
4559 (find_probes_in_objfile): Fix comments.
4561 2014-03-02 Doug Evans <xdje42@gmail.com>
4563 * infrun.c (handle_signal_stop): Replace test for
4564 TARGET_WAITKIND_STOPPED with an assert.
4566 2014-03-02 Doug Evans <xdje42@gmail.com>
4568 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4570 2014-03-02 Doug Evans <xdje42@gmail.com>
4572 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4574 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4576 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4578 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4580 * i386obsd-nat.c: Include "obsd-nat.h".
4581 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4583 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4585 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4587 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4589 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4591 * mips64obsd-nat.c: Include "obsd-nath".
4592 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4594 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4596 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4598 * amd64obsd-nat.c: Include "obsd-nat,h.
4599 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4601 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4603 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4605 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4606 (find_overload_match): Update call to find_oload_champ.
4607 (find_oload_champ_namespace_loop): Likewise
4609 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4611 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4613 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4614 * config/sparc/obsd64.mh: New file.
4615 * sparc64obsd-nat.c: New file.
4617 * obsd-nat.h: New file.
4618 * obsd-nat.c: New file.
4619 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4620 (ALLDEPFILES): Add obsd-nat.c.
4622 2014-02-28 Tom Tromey <tromey@redhat.com>
4624 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4625 * cli-out.h (cli_ui_out_impl): Now const.
4626 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4627 * ui-out.c (struct ui_out) <impl>: Now const.
4628 (default_ui_out_impl): Now const.
4629 (ui_out_new): Make 'impl' parameter const.
4630 * ui-out.h (ui_out_new): Update.
4632 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4634 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4636 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4638 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4640 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4642 Additional PR 8882 fix.
4643 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4645 2014-02-27 Pedro Alves <palves@redhat.com>
4647 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4650 2014-02-27 Pedro Alves <palves@redhat.com>
4653 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4654 * nat/linux-waitpid.c: Include string.h.
4655 (status_to_str): Moved here and made extern.
4656 * nat/linux-waitpid.h (status_to_str): New declaration.
4658 2014-02-27 Hui Zhu <hui@codesourcery.com>
4661 * infrun.c (ptid_match): Move ...
4662 * common/ptid.c (ptid_match): ... here.
4663 * inferior.h (ptid_match): Move ...
4664 * common/ptid.h (ptid_match): ... here.
4666 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4668 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4669 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4672 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4674 * obsd-tdep.c (obsd_auxv_parse): New function.
4675 (obsd_init_abi): Set auxv_parse.
4677 * gdbarch.sh (auxv_parse): New.
4678 * gdbarch.h: Regenerated.
4679 * gdbarch.c: Regenerated.
4680 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4682 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4684 * guile/scm-value.c (gdbscm_history_append_x): New function.
4685 (value_functions): Add it.
4687 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4689 * dwarf2read.c (attr_value_as_address): New function.
4690 (dwarf2_find_base_address, read_call_site_scope): Use
4691 attr_value_as_address in place of DW_ADDR.
4692 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4693 the low and high addresses. Slight rework of the handling
4694 of the high pc being a constant form, and limit it to
4695 DWARF verson 4 or higher.
4696 (dwarf2_record_block_ranges): Likewise.
4697 (read_partial_die): Likewise.
4698 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4700 2014-02-26 Tom Tromey <tromey@redhat.com>
4702 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4704 2014-02-26 Tom Tromey <tromey@redhat.com>
4706 * elfread.c (elf_read_minimal_symbols): Return early if
4707 minimal symbols have already been read. Add "ei" parameter.
4708 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4709 * minsyms.c (prim_record_minimal_symbol_full): Update.
4710 * objfiles.h (struct objstats) <n_minsyms>: Move...
4711 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4712 * symmisc.c (print_objfile_statistics): Update.
4714 2014-02-26 Tom Tromey <tromey@redhat.com>
4716 * elfread.c (elf_read_minimal_symbols): New function, from
4718 (elf_symfile_read): Call it.
4720 2014-02-26 Tom Tromey <tromey@redhat.com>
4722 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4723 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4724 (lookup_minimal_symbol_solib_trampoline)
4725 (lookup_minimal_symbol_by_pc_section_1)
4726 (lookup_minimal_symbol_and_objfile): Update.
4727 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4728 Don't allocate a minimal symbol if minsyms have already been read.
4729 (build_minimal_symbol_hash_tables): Update.
4730 (install_minimal_symbols): Do nothing if minsyms already read.
4731 Use the per-BFD obstack.
4732 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4733 * objfiles.c (allocate_objfile): Call
4734 terminate_minimal_symbol_table later.
4735 (have_minimal_symbols): Update.
4736 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4737 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4738 Move from struct objfile.
4739 <minsyms_read>: New field.
4740 (struct objfile) <msymbols, minimal_symbol_count,
4741 msymbol_hash, msymbol_demangled_hash>: Move.
4742 (ALL_OBJFILE_MSYMBOLS): Update.
4743 * symfile.c (read_symbols): Set minsyms_read.
4744 (reread_symbols): Update.
4745 * symmisc.c (dump_objfile, dump_msymbols): Update.
4747 2014-02-26 Tom Tromey <tromey@redhat.com>
4749 * minsyms.c (msymbols_sort): Remove.
4750 * minsyms.h (msymbols_sort): Remove.
4751 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4752 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4753 * elfread.c (elf_symtab_read): Don't add section offsets.
4754 * xcoffread.c (record_minimal_symbol): Don't add section offset
4755 to minimal symbol address.
4756 * somread.c (text_offset, data_offset): Remove.
4757 (som_symtab_read): Don't add section offsets to minimal symbol
4759 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4760 Don't add section offsets to minimal symbols.
4761 * coffread.c (coff_symtab_read): Don't add section offsets
4762 to minimal symbol addresses.
4763 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4764 to minimal symbol addresses.
4765 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4766 section offset to minimal symbol addresses.
4767 * mdebugread.c (parse_partial_symbols): Don't add section
4768 offset to minimal symbol addresses.
4769 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4770 offset to minimal symbol addresses.
4772 2014-02-26 Tom Tromey <tromey@redhat.com>
4774 * ada-lang.c (ada_main_name): Update.
4775 (ada_add_standard_exceptions): Update.
4776 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4777 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4778 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4779 * auxv.c (ld_so_xfer_auxv): Update.
4780 * avr-tdep.c (avr_scan_prologue): Update.
4781 * ax-gdb.c (gen_var_ref): Update.
4782 * blockframe.c (get_pc_function_start)
4783 (find_pc_partial_function_gnu_ifunc): Update.
4784 * breakpoint.c (create_overlay_event_breakpoint)
4785 (create_longjmp_master_breakpoint)
4786 (create_std_terminate_master_breakpoint)
4787 (create_exception_master_breakpoint): Update.
4788 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4789 * c-valprint.c (c_val_print): Update.
4790 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4791 * common/agent.c (agent_look_up_symbols): Update.
4792 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4793 * dwarf2loc.c (call_site_to_target_addr): Update.
4794 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4795 * elfread.c (elf_gnu_ifunc_record_cache)
4796 (elf_gnu_ifunc_resolve_by_got): Update.
4797 * findvar.c (default_read_var_value): Update.
4798 * frame.c (inside_main_func): Update.
4799 * frv-tdep.c (frv_frame_this_id): Update.
4800 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4801 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4803 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4804 (hppa_hpux_find_dummy_bpaddr): Update.
4805 * hppa-tdep.c (hppa_symbol_address): Update.
4806 * infcmd.c (until_next_command): Update.
4807 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4809 * linespec.c (minsym_found, add_minsym): Update.
4810 * linux-nat.c (get_signo): Update.
4811 * linux-thread-db.c (inferior_has_bug): Update.
4812 * m32c-tdep.c (m32c_return_value)
4813 (m32c_m16c_address_to_pointer): Update.
4814 * m32r-tdep.c (m32r_frame_this_id): Update.
4815 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4816 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4817 * maint.c (maintenance_translate_address): Update.
4818 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4819 (frob_address): New function.
4820 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4821 frob_address. Rename parameter to "pc_in".
4822 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4824 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4826 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4827 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4828 * objc-lang.c (find_objc_msgsend): Update.
4829 * objfiles.c (objfile_relocate1): Update.
4830 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4831 * p-valprint.c (pascal_val_print): Update.
4832 * parse.c (write_exp_msymbol): Update.
4833 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4834 (ppc_elfv2_skip_entrypoint): Update.
4835 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4836 * printcmd.c (build_address_symbolic, msym_info)
4837 (address_info): Update.
4838 * proc-service.c (ps_pglobal_lookup): Update.
4839 * psymtab.c (find_pc_sect_psymtab_closer)
4840 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4841 Change msymbol parameter to bound_minimal_symbol.
4842 * ravenscar-thread.c (get_running_thread_id): Update.
4843 * remote.c (remote_check_symbols): Update.
4844 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4846 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4847 * solib-dsbt.c (lm_base): Update.
4848 * solib-frv.c (lm_base, main_got): Update.
4849 * solib-irix.c (locate_base): Update.
4850 * solib-som.c (som_solib_create_inferior_hook)
4851 (link_map_start): Update.
4852 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4853 * solib-svr4.c (elf_locate_base, enable_break): Update.
4854 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4855 (flush_ea_cache): Update.
4856 * stabsread.c (define_symbol, scan_file_globals): Update.
4857 * stack.c (find_frame_funname): Update.
4858 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4859 (debug_qf_find_pc_sect_symtab): Update.
4860 * symfile.c (simple_read_overlay_table)
4861 (simple_overlay_update): Update.
4862 * symfile.h (struct quick_symbol_functions)
4863 <find_pc_sect_symtab>: Change type of msymbol to
4864 bound_minimal_symbol.
4865 * symmisc.c (dump_msymbols): Update.
4866 * symtab.c (find_pc_sect_symtab_via_partial)
4867 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4868 (search_symbols, print_msymbol_info): Update.
4869 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4870 (MSYMBOL_VALUE_ADDRESS): Redefine.
4871 (BMSYMBOL_VALUE_ADDRESS): New macro.
4872 * tracepoint.c (scope_info): Update.
4873 * tui/tui-disasm.c (tui_find_disassembly_address)
4874 (tui_get_begin_asm_address): Update.
4875 * valops.c (find_function_in_inferior): Update.
4876 * value.c (value_static_field, value_fn_field): Update.
4878 2014-02-26 Tom Tromey <tromey@redhat.com>
4880 * ada-lang.c (ada_update_initial_language): Update.
4881 (ada_main_name, ada_has_this_exception_support): Update.
4882 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4883 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4884 * arm-tdep.c (arm_skip_stub): Update.
4885 * auxv.c (ld_so_xfer_auxv): Update.
4886 * avr-tdep.c (avr_scan_prologue): Update.
4887 * ax-gdb.c (gen_var_ref): Update.
4888 * breakpoint.c (struct breakpoint_objfile_data)
4889 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4890 type to bound_minimal_symbol.
4891 (create_overlay_event_breakpoint)
4892 (create_longjmp_master_breakpoint)
4893 (create_std_terminate_master_breakpoint)
4894 (create_exception_master_breakpoint): Update.
4895 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4896 * c-exp.y (classify_name): Update.
4897 * coffread.c (coff_symfile_read): Update.
4898 * common/agent.c (agent_look_up_symbols): Update.
4899 * d-lang.c (d_main_name): Update.
4900 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4901 * dec-thread.c (enable_dec_thread): Update.
4902 * dwarf2loc.c (call_site_to_target_addr): Update.
4903 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4904 * eval.c (evaluate_subexp_standard): Update.
4905 * findvar.c (struct minsym_lookup_data) <result>: Change type
4906 to bound_minimal_symbol.
4908 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4909 * frame.c (inside_main_func): Update.
4910 * frv-tdep.c (frv_frame_this_id): Update.
4911 * gcore.c (call_target_sbrk): Update.
4912 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4913 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4915 * go-lang.c (go_main_name): Update.
4916 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4917 (hppa_hpux_find_import_stub_for_addr): Update.
4918 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4919 Update. Change return type.
4920 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4922 * jit.c (jit_breakpoint_re_set_internal): Update.
4923 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4925 * linux-nat.c (get_signo): Update.
4926 * linux-thread-db.c (inferior_has_bug): Update
4927 * m32c-tdep.c (m32c_return_value)
4928 (m32c_m16c_address_to_pointer): Update.
4929 * m32r-tdep.c (m32r_frame_this_id): Update.
4930 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4931 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4932 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4933 lookup_minimal_symbol. Change return type.
4934 (lookup_minimal_symbol): Remove.
4935 (lookup_bound_minimal_symbol): Update.
4936 (lookup_minimal_symbol_text): Change return type.
4937 (lookup_minimal_symbol_solib_trampoline): Change return type.
4938 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4939 (lookup_minimal_symbol_solib_trampoline): Change return type.
4940 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4941 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4942 (value_nsstring, find_imps): Update.
4943 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4944 * p-lang.c (pascal_main_name): Update.
4945 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4946 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4947 * proc-service.c (ps_pglobal_lookup): Update.
4948 * ravenscar-thread.c (get_running_thread_msymbol): Change
4950 (has_ravenscar_runtime, get_running_thread_id): Update.
4951 * remote.c (remote_check_symbols): Update.
4952 * sol-thread.c (ps_pglobal_lookup): Update.
4953 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4954 * solib-dsbt.c (lm_base): Update.
4955 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4957 * solib-irix.c (locate_base): Update.
4958 * solib-som.c (som_solib_create_inferior_hook)
4959 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4961 * solib-spu.c (spu_enable_break): Update.
4962 * solib-svr4.c (elf_locate_base, enable_break): Update.
4963 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4964 (flush_ea_cache): Update.
4965 * stabsread.c (define_symbol): Update.
4966 * symfile.c (simple_read_overlay_table): Update.
4967 * symtab.c (find_pc_sect_line): Update.
4968 * tracepoint.c (scope_info): Update.
4969 * tui-disasm.c (tui_get_begin_asm_address): Update.
4970 * value.c (value_static_field): Update.
4972 2014-02-26 Tom Tromey <tromey@redhat.com>
4974 * minsyms.c (prim_record_minimal_symbol_full): Use
4975 SET_MSYMBOL_VALUE_ADDRESS.
4976 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4977 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4978 SET_MSYMBOL_VALUE_ADDRESS.
4979 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4980 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4982 2014-02-26 Tom Tromey <tromey@redhat.com>
4984 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4985 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4986 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4987 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4988 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4989 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4990 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4991 * ada-lang.c (ada_main_name): Update.
4992 (ada_lookup_simple_minsym): Update.
4993 (ada_make_symbol_completion_list): Update.
4994 (ada_add_standard_exceptions): Update.
4995 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4996 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4997 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4998 * arm-tdep.c (skip_prologue_function): Update.
4999 (arm_skip_stack_protector, arm_skip_stub): Update.
5000 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5001 (arm_wince_skip_main_prologue): Update.
5002 * auxv.c (ld_so_xfer_auxv): Update.
5003 * avr-tdep.c (avr_scan_prologue): Update.
5004 * ax-gdb.c (gen_var_ref): Update.
5005 * block.c (call_site_for_pc): Update.
5006 * blockframe.c (get_pc_function_start): Update.
5007 (find_pc_partial_function_gnu_ifunc): Update.
5008 * breakpoint.c (create_overlay_event_breakpoint): Update.
5009 (create_longjmp_master_breakpoint): Update.
5010 (create_std_terminate_master_breakpoint): Update.
5011 (create_exception_master_breakpoint): Update.
5012 (resolve_sal_pc): Update.
5013 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5014 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5016 * c-valprint.c (c_val_print): Update.
5017 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5018 * coffread.c (coff_symfile_read): Update.
5019 * common/agent.c (agent_look_up_symbols): Update.
5020 * dbxread.c (find_stab_function_addr): Update.
5021 (end_psymtab): Update.
5022 * dwarf2loc.c (call_site_to_target_addr): Update.
5023 (func_verify_no_selftailcall): Update.
5024 (tailcall_dump): Update.
5025 (call_site_find_chain_1): Update.
5026 (dwarf_expr_reg_to_entry_parameter): Update.
5027 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5028 (elf_gnu_ifunc_resolve_by_got): Update.
5029 * f-valprint.c (info_common_command): Update.
5030 * findvar.c (read_var_value): Update.
5031 * frame.c (get_prev_frame_1): Update.
5032 (inside_main_func): Update.
5033 * frv-tdep.c (frv_skip_main_prologue): Update.
5034 (frv_frame_this_id): Update.
5035 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5036 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5037 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5038 (gnuv3_skip_trampoline): Update.
5039 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5040 (hppa64_hpux_in_solib_call_trampoline): Update.
5041 (hppa_hpux_skip_trampoline_code): Update.
5042 (hppa64_hpux_search_dummy_call_sequence): Update.
5043 (hppa_hpux_find_import_stub_for_addr): Update.
5044 (hppa_hpux_find_dummy_bpaddr): Update.
5045 * hppa-tdep.c (hppa_symbol_address)
5046 (hppa_lookup_stub_minimal_symbol): Update.
5047 * i386-tdep.c (i386_skip_main_prologue): Update.
5048 (i386_pe_skip_trampoline_code): Update.
5049 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5050 * infcall.c (get_function_name): Update.
5051 * infcmd.c (until_next_command): Update.
5052 * jit.c (jit_breakpoint_re_set_internal): Update.
5053 (jit_inferior_init): Update.
5054 * linespec.c (minsym_found): Update.
5055 (add_minsym): Update.
5056 * linux-fork.c (info_checkpoints_command): Update.
5057 * linux-nat.c (get_signo): Update.
5058 * linux-thread-db.c (inferior_has_bug): Update.
5059 * m32c-tdep.c (m32c_return_value): Update.
5060 (m32c_m16c_address_to_pointer): Update.
5061 (m32c_m16c_pointer_to_address): Update.
5062 * m32r-tdep.c (m32r_frame_this_id): Update.
5063 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5064 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5065 * maint.c (maintenance_translate_address): Update.
5066 * minsyms.c (add_minsym_to_hash_table): Update.
5067 (add_minsym_to_demangled_hash_table): Update.
5068 (msymbol_objfile): Update.
5069 (lookup_minimal_symbol): Update.
5070 (iterate_over_minimal_symbols): Update.
5071 (lookup_minimal_symbol_text): Update.
5072 (lookup_minimal_symbol_by_pc_name): Update.
5073 (lookup_minimal_symbol_solib_trampoline): Update.
5074 (lookup_minimal_symbol_by_pc_section_1): Update.
5075 (lookup_minimal_symbol_and_objfile): Update.
5076 (prim_record_minimal_symbol_full): Update.
5077 (compare_minimal_symbols): Update.
5078 (compact_minimal_symbols): Update.
5079 (build_minimal_symbol_hash_tables): Update.
5080 (install_minimal_symbols): Update.
5081 (terminate_minimal_symbol_table): Update.
5082 (find_solib_trampoline_target): Update.
5083 (minimal_symbol_upper_bound): Update.
5084 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5085 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5086 (mips_skip_pic_trampoline_code): Update.
5087 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5088 * objc-lang.c (selectors_info): Update.
5089 (classes_info): Update.
5090 (find_methods): Update.
5091 (find_imps): Update.
5092 (find_objc_msgsend): Update.
5093 * objfiles.c (objfile_relocate1): Update.
5094 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5095 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5096 * p-valprint.c (pascal_val_print): Update.
5097 * parse.c (write_exp_msymbol): Update.
5098 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5099 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5100 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5101 * printcmd.c (build_address_symbolic): Update.
5103 (address_info): Update.
5104 * proc-service.c (ps_pglobal_lookup): Update.
5105 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5106 (find_pc_sect_psymtab): Update.
5107 * python/py-framefilter.c (py_print_frame): Update.
5108 * ravenscar-thread.c (get_running_thread_id): Update.
5109 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5111 * remote.c (remote_check_symbols): Update.
5112 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5113 (rs6000_skip_trampoline_code): Update.
5114 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5115 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5116 * solib-dsbt.c (lm_base): Update.
5117 * solib-frv.c (lm_base): Update.
5119 * solib-irix.c (locate_base): Update.
5120 * solib-som.c (som_solib_create_inferior_hook): Update.
5121 (som_solib_desire_dynamic_linker_symbols): Update.
5122 (link_map_start): Update.
5123 * solib-spu.c (spu_enable_break): Update.
5124 (ocl_enable_break): Update.
5125 * solib-svr4.c (elf_locate_base): Update.
5126 (enable_break): Update.
5127 * spu-tdep.c (spu_get_overlay_table): Update.
5128 (spu_catch_start): Update.
5129 (flush_ea_cache): Update.
5130 * stabsread.c (define_symbol): Update.
5131 (scan_file_globals): Update.
5132 * stack.c (find_frame_funname): Update.
5133 (frame_info): Update.
5134 * symfile.c (simple_read_overlay_table): Update.
5135 (simple_overlay_update): Update.
5136 * symmisc.c (dump_msymbols): Update.
5137 * symtab.c (fixup_section): Update.
5138 (find_pc_sect_line): Update.
5139 (skip_prologue_sal): Update.
5140 (search_symbols): Update.
5141 (print_msymbol_info): Update.
5142 (rbreak_command): Update.
5143 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5144 (completion_list_objc_symbol): Update.
5145 (default_make_symbol_completion_list_break_on): Update.
5146 * tracepoint.c (scope_info): Update.
5147 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5148 (tui_get_begin_asm_address): Update.
5149 * valops.c (find_function_in_inferior): Update.
5150 * value.c (value_static_field): Update.
5151 (value_fn_field): Update.
5153 2014-02-26 Tom Tromey <tromey@redhat.com>
5155 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5156 bound minimal symbols. Move code that knows about minsym
5158 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5160 * minsyms.h (minimal_symbol_upper_bound): Declare.
5161 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5162 minimal_symbol_upper_bound.
5164 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5166 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5167 Use the type's name if its basic type does not have a tag.
5169 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5171 * dwarf2read.c (read_subrange_type): Add comment.
5173 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5175 * dwarf2read.c (update_enumeration_type_from_children): New
5176 function, mostly extracted from process_structure_scope.
5177 (read_enumeration_type): Call update_enumeration_type_from_children.
5178 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5179 and flag_flag_enum fields.
5181 2014-02-26 Pedro Alves <palves@redhat.com>
5183 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5184 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5185 to_xfer_partial method.
5187 2014-02-26 Pedro Alves <palves@redhat.com>
5189 * target.c (complete_target_initialization): Don't install
5190 default_xfer_partial as to_xfer_partial hook.
5192 (update_current_target): Don't INHERIT nor de_fault
5193 deprecated_xfer_memory. Delete de_fault macro.
5194 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5195 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5196 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5199 2014-02-26 Pedro Alves <palves@redhat.com>
5201 * go32-nat.c (my_write_child): New function.
5202 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5203 (go32_xfer_partial): New function.
5204 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5205 Instead install a to_xfer_partial hook.
5207 2014-02-26 Pedro Alves <palves@redhat.com>
5209 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5210 to_xfer_partial helper. Rewrite.
5211 (procfs_xfer_partial): New function.
5212 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5213 Install a to_xfer_partial hook.
5215 2014-02-26 Pedro Alves <palves@redhat.com>
5217 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5218 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5219 (m32r_xfer_partial): New function.
5220 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5221 Install a to_xfer_partial hook.
5223 2014-02-26 Pedro Alves <palves@redhat.com>
5225 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5227 (mips_xfer_partial): New function.
5228 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5229 hook. Install a to_xfer_partial hook.
5231 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5233 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5234 * gdbtypes.c (create_array_type_with_stride): New function,
5235 renaming create_array_type, but with an added parameter
5236 called "bit_stride".
5237 (create_array_type): Re-implement using
5238 create_array_type_with_stride.
5239 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5240 and DW_AT_bit_stride attributes.
5242 2014-02-26 Pedro Alves <palves@redhat.com>
5244 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5245 task-specific breakpoints.
5247 2014-02-25 Pedro Alves <palves@redhat.com>
5249 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5250 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5252 2014-02-25 Stan Shebs <stan@codesourcery.com>
5254 * defs.h: Annotate comments for Doxygen.
5256 2014-02-25 Tom Tromey <tromey@redhat.com>
5258 * target.h (target_ignore): Don't declare.
5259 * target.c (target_ignore): Remove.
5261 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5264 * auto-load.c (auto_load_objfile_script_1): Change filename to
5267 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5269 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5270 documentation. Adjust prototype to match the target_ops
5271 to_xfer_partial method. Adjust implementation accordingly.
5273 2014-02-25 Hui Zhu <hui@codesourcery.com>
5275 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5278 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5280 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5281 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5282 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5283 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5284 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5285 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5286 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5287 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5289 (rl78_register_type): Use a data pointer type for SP and
5290 new pseudo registers mentioned above. Use a 16 bit integer
5291 type for all other register pairs.
5292 (rl78_register_name, rl78_g10_register_name): Update for
5293 new pseudo registers.
5294 (rl78_pseudo_register_read): Likewise.
5295 (rl78_pseudo_register_write): Likewise.
5296 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5297 to the newly added pseudo registers.
5299 2014-02-24 Doug Evans <dje@google.com>
5301 * value.c (record_latest_value): Fix comment.
5302 * printcmd.c (print_command_1): Remove code to handle -1 return from
5303 record_latest_value.
5305 2014-02-24 Pedro Alves <palves@redhat.com>
5307 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5308 deprecated_xfer_memory hook.
5309 (procfs_xfer_partial): Call procfs_xfer_memory instead
5310 of the deprecated_xfer_memory target hook.
5311 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5314 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5316 * windows-nat.c (windows_xfer_shared_libraries): Return
5317 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5318 requested object is TARGET_OBJECT_LIBRARIES.
5320 2014-02-24 Yao Qi <yao@codesourcery.com>
5322 * target.h (enum target_xfer_status)
5323 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5324 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5326 * corefile.c (memory_error_message): User updated.
5327 * exec.c (section_table_read_available_memory): Likewise.
5328 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5329 * target.c (target_xfer_status_to_string): Likewise.
5330 (raw_memory_xfer_partial): Likewise.
5331 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5332 * valops.c (read_value_memory): Likewise.
5333 * exec.h: Update comments.
5335 2014-02-24 Yao Qi <yao@codesourcery.com>
5337 * target.c (target_xfer_status_to_string): Rename argument err
5339 * target.h (target_xfer_status_to_string): Update declaration.
5340 Replace target_xfer_error_to_string with
5341 target_xfer_status_to_string in comment.
5343 2014-02-24 Yao Qi <yao@codesourcery.com>
5345 * mips-linux-nat.c (super_close): Update its type.
5346 (mips_linux_close): Pass 'self' to super_close.
5348 2014-02-24 Yao Qi <yao@codesourcery.com>
5350 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5351 * corefile.c (read_memory): Adjusted.
5352 * target.c (target_write_with_progress): Adjusted.
5354 2014-02-23 Yao Qi <yao@codesourcery.com>
5358 2013-10-25 Yao Qi <yao@codesourcery.com>
5360 * remote.c (remote_traceframe_info): Return early if
5361 traceframe is not selected.
5363 2013-07-19 Yao Qi <yao@codesourcery.com>
5365 * target.c (update_current_target): Change the default action
5366 of 'to_traceframe_info' from tcomplain to return_zero.
5367 * target.h (struct target_ops) <to_traceframe_info>: Add more
5370 2014-02-23 Yao Qi <yao@codesourcery.com>
5372 * valops.c (read_value_memory): Rewrite it. Call
5373 target_xfer_partial in a loop.
5374 * exec.h (section_table_available_memory): Remove declaration.
5375 Move comments to ...
5376 * exec.c (section_table_available_memory): ... here. Make it
5379 2014-02-23 Yao Qi <yao@codesourcery.com>
5381 * exec.c (section_table_read_available_memory): New function.
5382 * exec.h (section_table_read_available_memory): Declare.
5383 * ctf.c (ctf_xfer_partial): Call
5384 section_table_read_available_memory.
5385 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5387 2014-02-23 Yao Qi <yao@codesourcery.com>
5389 * ctf.c (ctf_xfer_partial): Move code to ...
5390 * exec.c (exec_read_partial_read_only): ... it. New function.
5391 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5392 * tracefile.c: Include "exec.h".
5393 * exec.h (exec_read_partial_read_only): Declare.
5395 2014-02-23 Yao Qi <yao@codesourcery.com>
5397 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5398 (tfile_has_memory): Remove.
5399 (init_tfile_ops): Don't set fields to_has_all_memory and
5400 to_has_memory of tfile_ops.
5401 * tracefile.c (tracefile_has_all_memory): New function.
5402 (tracefile_has_memory): New function.
5403 (init_tracefile_ops): Initialize fields to_has_all_memory and
5404 to_has_memory of 'ops'.
5406 2014-02-23 Yao Qi <yao@codesourcery.com>
5408 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5409 (ctf_thread_alive, ctf_get_trace_status): Remove.
5410 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5412 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5413 (tfile_has_stack, tfile_has_registers): Remove.
5414 (tfile_thread_alive): Remove.
5415 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5417 * tracefile.c (tracefile_has_stack): New function.
5418 (tracefile_has_registers): New function.
5419 (tracefile_thread_alive): New function.
5420 (tracefile_get_trace_status): New function.
5421 (init_tracefile_ops): New function.
5422 * tracefile.h (init_tracefile_ops): Declare.
5424 2014-02-23 Yao Qi <yao@codesourcery.com>
5426 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5427 (O_LARGEFILE): Likewise.
5428 (tfile_ops): Likewise.
5429 (TRACE_HEADER_SIZE): Likewise.
5430 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5431 (cur_data_size): Likewise.
5432 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5433 (tfile_close, tfile_files_info): Likewise.
5434 (tfile_get_trace_status): Likewise.
5435 (tfile_get_tracepoint_status): Likewise.
5436 (tfile_get_traceframe_address): Likewise.
5437 (tfile_trace_find, match_blocktype): Likewise.
5438 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5439 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5440 (tfile_get_trace_state_variable_value): Likewise.
5441 (tfile_has_all_memory, tfile_has_memory): Likewise.
5442 (tfile_has_stack, tfile_has_registers): Likewise.
5443 (tfile_thread_alive, build_traceframe_info): Likewise.
5444 (tfile_traceframe_info, init_tfile_ops): Likewise.
5445 (_initialize_tracepoint): Don't call init_tfile_ops
5446 and add_target_with_completer.
5447 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5448 exec.h, completer.h and filenames.h.
5449 (_initialize_tracefile_tfile): New function.
5451 2014-02-23 Yao Qi <yao@codesourcery.com>
5453 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5455 (HFILES_NO_SRCDIR): Add tracefile.h.
5456 * ctf.c: Include "tracefile.h".
5457 * tracefile.h: New file.
5458 * tracefile.c: New file
5459 * tracefile-tfile.c: New file.
5460 * tracepoint.c: Include "tracefile.h".
5461 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5462 (stop_reason_names): Add const.
5463 (trace_file_writer_xfree): Move it to tracefile.c.
5464 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5465 (trace_save_ctf): Likewise.
5466 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5467 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5468 (tfile_write_header, tfile_write_regblock_type): Likewise.
5469 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5470 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5471 (tfile_write_raw_data, tfile_end): Likewise.
5472 (tfile_trace_file_writer_new): Likewise.
5473 (free_uploaded_tp): Make it extern.
5474 (free_uploaded_tsv): Make it extern.
5475 (_initialize_tracepoint): Move code to register command 'tsave'
5477 * tracepoint.h (stop_reason_names): Declare.
5478 (struct trace_frame_write_ops): Move it to tracefile.h.
5479 (struct trace_file_write_ops): Likewise.
5480 (struct trace_file_writer): Likewise.
5481 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5483 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5486 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5488 (get_cores_used_by_process): New parameter num_cores, use it.
5489 (linux_xfer_osdata_processes): Pass num_cores to it.
5490 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5493 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5495 * target.c (memory_xfer_partial): Fix length arg in call to
5496 breakpoint_xfer_memory.
5498 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5501 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5502 number comes after the + or - signs. Adjust length of register
5503 name to be extracted.
5505 2014-02-20 Tom Tromey <tromey@redhat.com>
5507 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5508 (ada_varobj_ops): Mark "extern".
5510 2014-02-20 Tom Tromey <tromey@redhat.com>
5512 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5514 2014-02-20 Doug Evans <xdje42@gmail.com>
5516 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5517 All callers updated.
5518 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5519 All callers updated.
5520 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5521 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5523 2014-02-20 lin zuojian <manjian2006@gmail.com>
5524 Joel Brobecker <brobecker@adacore.com>
5525 Doug Evans <xdje42@gmail.com>
5528 * dwarf2read.c (struct die_info): New member in_process.
5529 (reset_die_in_process): New function.
5530 (process_die): Set it at the start, reset when returning.
5531 (inherit_abstract_dies): Only call process_die if origin_child_die
5532 not already being processed.
5534 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5536 * windows-nat.c (handle_unload_dll): Add function documentation.
5537 (do_initial_windows_stuff): Add comment explaining why we wait
5538 until after inferior initialization has finished before
5539 processing all DLLs.
5541 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5543 * windows-nat.c (get_module_name): Delete.
5544 (windows_get_exec_module_filename): New function, mostly
5545 inspired from get_module_name.
5546 (windows_pid_to_exec_file): Replace call to get_module_name
5547 by call to windows_get_exec_module_filename.
5549 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5551 * windows-nat.c (handle_load_dll): Rewrite this function's
5552 introductory comment. Remove code using get_module_name
5553 to get the DLL's name.
5555 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5557 * windows-nat.c (get_windows_debug_event): Ignore
5558 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5559 if windows_initialization_done == 0.
5560 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5561 Adjust implementation to always load all DLLs.
5562 (do_initial_windows_stuff): Replace call to
5563 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5565 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5567 * windows-nat.c (_initialize_windows_nat): Deprecate the
5568 "dll-symbols" command. Turn the "add-shared-symbol-files"
5569 and "assf" aliases into commands, and deprecate them as well.
5570 * NEWS: Add entry explaining that "dll-symbols" and its two
5571 aliases are now deprecated.
5573 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5575 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5576 new-line in debug string. Remove trailing spaces.
5578 2014-02-19 Stan Shebs <stan@codesourcery.com>
5580 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5582 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5584 * NEWS: Add entry for the new feature
5585 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5588 2014-02-19 Stan Shebs <stan@codesourcery.com>
5590 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5592 2014-02-19 Pedro Alves <palves@redhat.com>
5594 * common/ptid.h (struct ptid): Mention that process_stratum
5595 targets should prefer ptid.lwp.
5597 2014-02-19 Pedro Alves <palves@redhat.com>
5599 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5600 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5601 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5602 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5603 store remote thread ids rather than ptid.tid.
5604 (_initialize_remote): Adjust.
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.c (target_get_unwinder): Rewrite.
5609 (target_get_tailcall_unwinder): Rewrite.
5610 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5611 (record_btrace_to_get_tailcall_unwinder): New function.
5612 (init_record_btrace_ops): Update.
5613 * target.h (struct target_ops) <to_get_unwinder,
5614 to_get_tailcall_unwinder>: Now function pointers. Use
5615 TARGET_DEFAULT_RETURN.
5617 2014-02-19 Tom Tromey <tromey@redhat.com>
5619 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5621 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5623 2014-02-19 Tom Tromey <tromey@redhat.com>
5625 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5627 * target-delegates.c: Rebuild.
5628 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5629 TARGET_DEFAULT_FUNC.
5630 * target.c (default_target_decr_pc_after_break): Rename from
5631 forward_target_decr_pc_after_break. Simplify.
5632 (target_decr_pc_after_break): Rely on delegation.
5634 2014-02-19 Tom Tromey <tromey@redhat.com>
5636 * target.c (update_current_target): Do not INHERIT to_doc or
5637 to_magic. Do not de_fault to_open or to_close.
5639 2014-02-19 Tom Tromey <tromey@redhat.com>
5641 * gcore.h (objfile_find_memory_regions): Declare.
5642 * gcore.c (objfile_find_memory_regions): No longer static. Add
5644 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5645 * exec.c: Include gcore.h.
5646 (exec_set_find_memory_regions): Remove.
5647 (exec_find_memory_regions): Remove.
5648 (exec_do_find_memory_regions): Remove.
5649 (init_exec_ops): Update.
5650 * defs.h (exec_set_find_memory_regions): Remove.
5652 2014-02-19 Tom Tromey <tromey@redhat.com>
5654 * target-delegates.c: Rebuild.
5655 * target.h (struct target_ops) <to_extra_thread_info,
5656 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5657 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5658 not 0, in TARGET_DEFAULT_RETURN.
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * target.c (complete_target_initialization): Remove casts. Use
5663 return_zero_has_execution.
5664 (return_zero): Add "ignore" argument.
5665 (return_zero_has_execution): New function.
5666 (init_dummy_target): Remove casts. Use
5667 return_zero_has_execution.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target.c (update_current_target): Update comments. Do not
5674 2014-02-19 Tom Tromey <tromey@redhat.com>
5676 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5678 * corelow.c (core_read_description): Delegate when needed.
5679 * remote.c (remote_read_description): Delegate when needed.
5680 * target-delegates.c: Rebuild.
5681 * target.c (target_read_description): Rewrite.
5682 * target.h (struct target_ops) <to_read_description>: Update
5683 comment. Use TARGET_DEFAULT_RETURN.
5685 2014-02-19 Tom Tromey <tromey@redhat.com>
5687 * target-delegates.c: Rebuild.
5688 * target.c (update_current_target): Don't inherit or default
5690 (find_default_run_target): Check against delegate_can_run.
5691 * target.h (struct target_ops) <to_can_run>: Use
5692 TARGET_DEFAULT_RETURN.
5694 2014-02-19 Tom Tromey <tromey@redhat.com>
5696 * target-delegates.c: Rebuild.
5697 * target.c (target_disconnect): Unconditionally delegate.
5698 * target.h (struct target_ops) <to_disconnect>: Use
5699 TARGET_DEFAULT_NORETURN.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * record.c (record_stop): Unconditionally delegate.
5704 * target-delegates.c: Rebuild.
5705 * target.c (target_stop_recording): Unconditionally delegate.
5706 * target.h (struct target_ops) <to_stop_recording>: Use
5707 TARGET_DEFAULT_IGNORE.
5709 2014-02-19 Tom Tromey <tromey@redhat.com>
5711 * target-delegates.c: Rebuild.
5712 * target.c (target_enable_btrace): Unconditionally delegate.
5713 * target.h (struct target_ops) <to_enable_btrace>: Use
5714 TARGET_DEFAULT_NORETURN.
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target-delegates.c: Rebuild.
5719 * target.c (target_read_btrace): Unconditionally delegate.
5720 * target.h (struct target_ops) <to_read_btrace>: Use
5721 TARGET_DEFAULT_NORETURN.
5723 2014-02-19 Tom Tromey <tromey@redhat.com>
5725 * target-delegates.c: Rebuild.
5726 * target.c (target_teardown_btrace): Unconditionally delegate.
5727 * target.h (struct target_ops) <to_teardown_btrace>: Use
5728 TARGET_DEFAULT_NORETURN.
5730 2014-02-19 Tom Tromey <tromey@redhat.com>
5732 * target-delegates.c: Rebuild.
5733 * target.c (target_disable_btrace): Unconditionally delegate.
5734 * target.h (struct target_ops) <to_disable_btrace>: Use
5735 TARGET_DEFAULT_NORETURN.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target-delegates.c: Rebuild.
5740 * target.c (default_search_memory): New function.
5741 (simple_search_memory): Update comment.
5742 (target_search_memory): Unconditionally delegate.
5743 * target.h (struct target_ops) <to_search_memory>: Use
5744 TARGET_DEFAULT_FUNC.
5746 2014-02-19 Tom Tromey <tromey@redhat.com>
5748 * auxv.c (default_auxv_parse): No longer static.
5749 (target_auxv_parse): Unconditionally delegate.
5750 * auxv.h (default_auxv_parse): Declare.
5751 * target-delegates.c: Rebuild.
5752 * target.c: Include auxv.h.
5753 * target.h (struct target_ops) <to_auxv_parse>: Use
5754 TARGET_DEFAULT_FUNC.
5756 2014-02-19 Tom Tromey <tromey@redhat.com>
5758 * target-delegates.c: Rebuild.
5759 * target.c (target_memory_map): Unconditionally delegate.
5760 * target.h (struct target_ops) <to_memory_map>: Use
5761 TARGET_DEFAULT_RETURN.
5763 2014-02-19 Tom Tromey <tromey@redhat.com>
5765 * target-delegates.c: Rebuild.
5766 * target.c (target_thread_alive): Unconditionally delegate.
5767 * target.h (struct target_ops) <to_thread_alive>: Use
5768 TARGET_DEFAULT_RETURN.
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target-delegates.c: Rebuild.
5773 * target.c (target_save_record): Unconditionally delegate.
5774 * target.h (struct target_ops) <to_save_record>: Use
5775 TARGET_DEFAULT_NORETURN.
5777 2014-02-19 Tom Tromey <tromey@redhat.com>
5779 * target-delegates.c: Rebuild.
5780 * target.c (target_delete_record): Unconditionally delegate.
5781 * target.h (struct target_ops) <to_delete_record>: Use
5782 TARGET_DEFAULT_NORETURN.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target-delegates.c: Rebuild.
5787 * target.c (target_record_is_replaying): Unconditionally
5789 * target.h (struct target_ops) <to_record_is_replaying>: Use
5790 TARGET_DEFAULT_RETURN.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * target-delegates.c: Rebuild.
5795 * target.c (target_goto_record_begin): Unconditionally delegate.
5796 * target.h (struct target_ops) <to_goto_record_begin>: Use
5797 TARGET_DEFAULT_NORETURN.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target-delegates.c: Rebuild.
5802 * target.c (target_goto_record_end): Unconditionally delegate.
5803 * target.h (struct target_ops) <to_goto_record_end>: Use
5804 TARGET_DEFAULT_NORETURN.
5806 2014-02-19 Tom Tromey <tromey@redhat.com>
5808 * target-delegates.c: Rebuild.
5809 * target.c (target_goto_record): Unconditionally delegate.
5810 * target.h (struct target_ops) <to_goto_record>: Use
5811 TARGET_DEFAULT_NORETURN.
5813 2014-02-19 Tom Tromey <tromey@redhat.com>
5815 * target-delegates.c: Rebuild.
5816 * target.c (target_insn_history): Unconditionally delegate.
5817 * target.h (struct target_ops) <to_insn_history>: Use
5818 TARGET_DEFAULT_NORETURN.
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * target-delegates.c: Rebuild.
5823 * target.c (target_insn_history_from): Unconditionally delegate.
5824 * target.h (struct target_ops) <to_insn_history_from>: Use
5825 TARGET_DEFAULT_NORETURN.
5827 2014-02-19 Tom Tromey <tromey@redhat.com>
5829 * target-delegates.c: Rebuild.
5830 * target.c (target_insn_history_range): Unconditionally delegate.
5831 * target.h (struct target_ops) <to_insn_history_range>: Use
5832 TARGET_DEFAULT_NORETURN.
5834 2014-02-19 Tom Tromey <tromey@redhat.com>
5836 * target-delegates.c: Rebuild.
5837 * target.c (target_call_history): Unconditionally delegate.
5838 * target.h (struct target_ops) <to_call_history>: Use
5839 TARGET_DEFAULT_NORETURN.
5841 2014-02-19 Tom Tromey <tromey@redhat.com>
5843 * target-delegates.c: Rebuild.
5844 * target.c (target_call_history_from): Unconditionally delegate.
5845 * target.h (struct target_ops) <to_call_history_from>: Use
5846 TARGET_DEFAULT_NORETURN.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target-delegates.c: Rebuild.
5851 * target.c (target_call_history_range): Unconditionally delegate.
5852 * target.h (struct target_ops) <to_call_history_range>: Use
5853 TARGET_DEFAULT_NORETURN.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (target_verify_memory): Unconditionally delegate.
5859 * target.h (struct target_ops) <to_verify_memory>: Use
5860 TARGET_DEFAULT_NORETURN.
5862 2014-02-19 Tom Tromey <tromey@redhat.com>
5864 * target-delegates.c: Rebuild.
5865 * target.c (target_core_of_thread): Unconditionally delegate.
5866 * target.h (struct target_ops) <to_core_of_thread>: Use
5867 TARGET_DEFAULT_RETURN.
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5871 * target-delegates.c: Rebuild.
5872 * target.c (target_flash_done): Unconditionally delegate.
5873 * target.h (struct target_ops) <to_flash_done>: Use
5874 TARGET_DEFAULT_NORETURN.
5876 2014-02-19 Tom Tromey <tromey@redhat.com>
5878 * target-delegates.c: Rebuild.
5879 * target.c (target_flash_erase): Unconditionally delegate.
5880 * target.h (struct target_ops) <to_flash_erase>: Use
5881 TARGET_DEFAULT_NORETURN.
5883 2014-02-19 Tom Tromey <tromey@redhat.com>
5885 * target-delegates.c: Rebuild.
5886 * target.c (target_get_section_table): Unconditionally delegate.
5887 * target.h (struct target_ops) <to_get_section_table>: Use
5888 TARGET_DEFAULT_RETURN.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target-delegates.c: Rebuild.
5893 * target.c (target_pid_to_str): Unconditionally delegate.
5894 (init_dummy_target): Don't initialize to_pid_to_str.
5895 (default_pid_to_str): Rename from dummy_pid_to_str.
5896 * target.h (struct target_ops) <to_pid_to_str>: Use
5897 TARGET_DEFAULT_FUNC.
5899 2014-02-19 Tom Tromey <tromey@redhat.com>
5901 * target-delegates.c: Rebuild.
5902 * target.c (target_find_new_threads): Unconditionally delegate.
5903 * target.h (struct target_ops) <to_find_new_threads>: Use
5904 TARGET_DEFAULT_RETURN.
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target-delegates.c: Rebuild.
5909 * target.c (target_program_signals): Unconditionally delegate.
5910 * target.h (struct target_ops) <to_program_signals>: Use
5911 TARGET_DEFAULT_IGNORE.
5913 2014-02-19 Tom Tromey <tromey@redhat.com>
5915 * target-delegates.c: Rebuild.
5916 * target.c (target_pass_signals): Unconditionally delegate.
5917 * target.h (struct target_ops) <to_pass_signals>: Use
5918 TARGET_DEFAULT_IGNORE.
5920 2014-02-19 Tom Tromey <tromey@redhat.com>
5922 * target-delegates.c: Rebuild.
5923 * target.c (default_mourn_inferior): New function.
5924 (target_mourn_inferior): Unconditionally delegate.
5925 * target.h (struct target_ops) <to_mourn_inferior>: Use
5926 TARGET_DEFAULT_FUNC.
5928 2014-02-19 Tom Tromey <tromey@redhat.com>
5930 * target-delegates.c: Rebuild.
5931 * target.c (default_follow_fork): New function.
5932 (target_follow_fork): Unconditionally delegate.
5933 * target.h (struct target_ops) <to_follow_fork>: Use
5934 TARGET_DEFAULT_FUNC.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: Rebuild.
5939 * target.c (target_kill): Unconditionally delegate.
5940 * target.h (struct target_ops) <to_kill>: Use
5941 TARGET_DEFAULT_NORETURN.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (target_masked_watch_num_registers): Unconditionally
5948 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5949 Use TARGET_DEFAULT_RETURN.
5951 2014-02-19 Tom Tromey <tromey@redhat.com>
5953 * target-delegates.c: Rebuild.
5954 * target.c (target_remove_mask_watchpoint): Unconditionally
5956 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5957 TARGET_DEFAULT_RETURN.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target-delegates.c: Rebuild.
5962 * target.c (target_insert_mask_watchpoint): Unconditionally
5964 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5965 TARGET_DEFAULT_RETURN.
5967 2014-02-19 Tom Tromey <tromey@redhat.com>
5969 * target-delegates.c: Rebuild.
5970 * target.c (target_ranged_break_num_registers): Unconditionally
5972 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5973 Use TARGET_DEFAULT_RETURN.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * target-delegates.c: Rebuild.
5978 * target.c (target_fetch_registers): Unconditionally delegate.
5979 * target.h (struct target_ops) <to_fetch_registers>: Use
5980 TARGET_DEFAULT_NORETURN.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target-delegates.c: Rebuild.
5985 * target.c (update_current_target): Don't inherit or default
5987 * target.h (struct target_ops) <to_stop>: Use
5988 TARGET_DEFAULT_IGNORE.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target-delegates.c: Rebuild.
5993 * target.c (update_current_target): Don't inherit or default
5994 to_can_run_breakpoint_commands.
5995 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5996 Use TARGET_DEFAULT_RETURN.
5998 2014-02-19 Tom Tromey <tromey@redhat.com>
6000 * target-delegates.c: Rebuild.
6001 * target.c (update_current_target): Don't inherit or default
6002 to_supports_evaluation_of_breakpoint_conditions.
6003 * target.h (struct target_ops)
6004 <to_supports_evaluation_of_breakpoint_conditions>: Use
6005 TARGET_DEFAULT_RETURN.
6007 2014-02-19 Tom Tromey <tromey@redhat.com>
6009 * target-delegates.c: Rebuild.
6010 * target.c (update_current_target): Don't inherit or default
6011 to_augmented_libraries_svr4_read.
6012 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6013 Use TARGET_DEFAULT_RETURN.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * target-delegates.c: Rebuild.
6018 * target.c (update_current_target): Don't inherit or default
6020 * target.h (struct target_ops) <to_can_use_agent>: Use
6021 TARGET_DEFAULT_RETURN.
6023 2014-02-19 Tom Tromey <tromey@redhat.com>
6025 * target-delegates.c: Rebuild.
6026 * target.c (update_current_target): Don't inherit or default
6028 * target.h (struct target_ops) <to_use_agent>: Use
6029 TARGET_DEFAULT_NORETURN.
6031 2014-02-19 Tom Tromey <tromey@redhat.com>
6033 * target-delegates.c: Rebuild.
6034 * target.c (update_current_target): Don't inherit or default
6036 (return_null): Remove.
6037 * target.h (struct target_ops) <to_traceframe_info>: Use
6038 TARGET_DEFAULT_RETURN.
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target-delegates.c: Rebuild.
6043 * target.c (update_current_target): Don't inherit or default
6044 to_static_tracepoint_markers_by_strid.
6045 * target.h (struct target_ops)
6046 <to_static_tracepoint_markers_by_strid>: Use
6047 TARGET_DEFAULT_NORETURN.
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target-delegates.c: Rebuild.
6052 * target.c (update_current_target): Don't inherit or default
6053 to_static_tracepoint_marker_at.
6054 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6055 Use TARGET_DEFAULT_RETURN.
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6059 * target-delegates.c: Rebuild.
6060 * target.c (update_current_target): Don't inherit or default
6062 * target.h (struct target_ops) <to_set_permissions>: Use
6063 TARGET_DEFAULT_IGNORE.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target-delegates.c: Rebuild.
6068 * target.c (update_current_target): Don't inherit or default
6070 * target.h (struct target_ops) <to_get_tib_address>: Use
6071 TARGET_DEFAULT_NORETURN.
6073 2014-02-19 Tom Tromey <tromey@redhat.com>
6075 * target-delegates.c: Rebuild.
6076 * target.c (update_current_target): Don't inherit or default
6078 * target.h (struct target_ops) <to_set_trace_notes>: Use
6079 TARGET_DEFAULT_RETURN.
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * target-delegates.c: Rebuild.
6084 * target.c (update_current_target): Don't initialize
6085 to_set_trace_buffer_size.
6086 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6087 TARGET_DEFAULT_IGNORE.
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target-delegates.c: Rebuild.
6092 * target.c (update_current_target): Don't inherit or default
6093 to_set_circular_trace_buffer.
6094 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6095 TARGET_DEFAULT_IGNORE.
6097 2014-02-19 Tom Tromey <tromey@redhat.com>
6099 * target-delegates.c: Rebuild.
6100 * target.c (update_current_target): Don't inherit or default
6101 to_set_disconnected_tracing.
6102 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6103 TARGET_DEFAULT_IGNORE.
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target-delegates.c: Rebuild.
6108 * target.c (update_current_target): Don't inherit or default
6109 to_get_min_fast_tracepoint_insn_len.
6110 (return_minus_one): Remove.
6111 * target.h (struct target_ops)
6112 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6116 * target-delegates.c: Rebuild.
6117 * target.c (update_current_target): Don't inherit or default
6118 to_get_raw_trace_data.
6119 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6120 TARGET_DEFAULT_NORETURN.
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target-delegates.c: Rebuild.
6125 * target.c (update_current_target): Don't inherit or default
6126 to_upload_trace_state_variables.
6127 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6128 Use TARGET_DEFAULT_RETURN.
6130 2014-02-19 Tom Tromey <tromey@redhat.com>
6132 * target-delegates.c: Rebuild.
6133 * target.c (update_current_target): Don't inherit or default
6134 to_upload_tracepoints.
6135 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6136 TARGET_DEFAULT_RETURN.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target-delegates.c: Rebuild.
6141 * target.c (update_current_target): Don't inherit or default
6143 * target.h (struct target_ops) <to_save_trace_data>: Use
6144 TARGET_DEFAULT_NORETURN.
6146 2014-02-19 Tom Tromey <tromey@redhat.com>
6148 * target-delegates.c: Rebuild.
6149 * target.c (update_current_target): Don't inherit or default
6150 to_get_trace_state_variable_value.
6151 * target.h (struct target_ops)
6152 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6154 2014-02-19 Tom Tromey <tromey@redhat.com>
6156 * target-delegates.c: Rebuild.
6157 * target.c (update_current_target): Don't inherit or default
6159 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * target-delegates.c: Rebuild.
6164 * target.c (update_current_target): Don't inherit or default
6166 * target.h (struct target_ops) <to_trace_stop>: Use
6167 TARGET_DEFAULT_NORETURN.
6169 2014-02-19 Tom Tromey <tromey@redhat.com>
6171 * target-delegates.c: Rebuild.
6172 * target.c (update_current_target): Don't inherit or default
6173 to_get_tracepoint_status.
6174 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6175 TARGET_DEFAULT_NORETURN.
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_trace_status.
6182 * target.h (struct target_ops) <to_get_trace_status>: Use
6183 TARGET_DEFAULT_RETURN.
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
6190 * target.h (struct target_ops) <to_trace_start>: Use
6191 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
6198 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6199 Use TARGET_DEFAULT_NORETURN.
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
6205 to_disable_tracepoint.
6206 * target.h (struct target_ops) <to_disable_tracepoint>: 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_enable_tracepoint.
6214 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6215 TARGET_DEFAULT_NORETURN.
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
6221 to_download_trace_state_variable.
6222 * target.h (struct target_ops) <to_download_trace_state_variable>:
6223 Use TARGET_DEFAULT_NORETURN.
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target-delegates.c: Rebuild.
6228 * target.c (update_current_target): Don't inherit or default
6229 to_can_download_tracepoint.
6230 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6231 TARGET_DEFAULT_RETURN.
6233 2014-02-19 Tom Tromey <tromey@redhat.com>
6235 * target-delegates.c: Rebuild.
6236 * target.c (update_current_target): Don't inherit or default
6237 to_download_tracepoint.
6238 * target.h (struct target_ops) <to_download_tracepoint>: Use
6239 TARGET_DEFAULT_NORETURN.
6241 2014-02-19 Tom Tromey <tromey@redhat.com>
6243 * target-delegates.c: Rebuild.
6244 * target.c (update_current_target): Don't inherit or default
6246 * target.h (struct target_ops) <to_trace_init>: Use
6247 TARGET_DEFAULT_RETURN.
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * target-delegates.c: Rebuild.
6252 * target.c (update_current_target): Don't inherit or default
6253 to_supports_string_tracing.
6254 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6255 TARGET_DEFAULT_RETURN.
6257 2014-02-19 Tom Tromey <tromey@redhat.com>
6259 * target-delegates.c: Rebuild.
6260 * target.c (update_current_target): Don't inherit or default
6261 to_supports_enable_disable_tracepoint.
6262 * target.h (struct target_ops)
6263 <to_supports_enable_disable_tracepoint>: Use
6264 TARGET_DEFAULT_RETURN.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * target-delegates.c: Rebuild.
6269 * target.c (update_current_target): Don't inherit or default
6270 to_supports_multi_process.
6271 * target.h (struct target_ops) <to_supports_multi_process>: Use
6272 TARGET_DEFAULT_RETURN.
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target-delegates.c: Rebuild.
6277 * target.c (update_current_target): Don't inherit or default
6278 to_get_ada_task_ptid.
6279 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6280 TARGET_DEFAULT_FUNC.
6282 2014-02-19 Tom Tromey <tromey@redhat.com>
6284 * target-delegates.c: Rebuild.
6285 * target.c (update_current_target): Don't inherit or default
6286 to_thread_architecture.
6287 * target.h (struct target_ops) <to_thread_architecture>: Use
6288 TARGET_DEFAULT_FUNC.
6290 2014-02-19 Tom Tromey <tromey@redhat.com>
6292 * target-delegates.c: Rebuild.
6293 * target.c (update_current_target): Don't inherit or default
6294 to_execution_direction.
6295 * target.h (struct target_ops) <to_execution_direction>: Use
6296 TARGET_DEFAULT_FUNC.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target-delegates.c: Rebuild.
6301 * target.c (update_current_target): Don't inherit or default
6302 to_can_execute_reverse.
6303 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6304 TARGET_DEFAULT_RETURN.
6305 (target_can_execute_reverse): Unconditionally delegate.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * target-delegates.c: Rebuild.
6310 * target.c (update_current_target): Don't inherit or default
6312 (dummy_goto_bookmark): Remove.
6313 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6314 * target.h (struct target_ops) <to_goto_bookmark>: Use
6315 TARGET_DEFAULT_NORETURN.
6317 2014-02-19 Tom Tromey <tromey@redhat.com>
6319 * target-delegates.c: Rebuild.
6320 * target.c (update_current_target): Don't inherit or default
6322 (dummy_get_bookmark): Remove.
6323 (init_dummy_target): Don't inherit or default to_get_bookmark.
6324 * target.h (struct target_ops) <to_get_bookmark>: Use
6325 TARGET_DEFAULT_NORETURN
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target-delegates.c: Rebuild.
6330 * target.c (update_current_target): Don't inherit or default
6331 to_make_corefile_notes.
6332 (init_dummy_target): Don't initialize to_make_corefile_notes.
6333 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6334 TARGET_DEFAULT_FUNC.
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target-delegates.c: Rebuild.
6339 * target.c (update_current_target): Don't inherit or default
6340 to_find_memory_regions.
6341 (init_dummy_target): Don't initialize to_find_memory_regions.
6342 * target.h (struct target_ops) <to_find_memory_regions>: 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
6350 * target.h (struct target_ops) <to_log_command>: Use
6351 TARGET_DEFAULT_IGNORE.
6352 (target_log_command): Unconditionally delegate.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (update_current_target): Don't inherit or default
6358 to_pid_to_exec_file.
6359 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6360 TARGET_DEFAULT_RETURN.
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target-delegates.c: Rebuild.
6365 * target.c (update_current_target): Don't inherit or default
6367 (target_thread_name): Unconditionally delegate.
6368 * target.h (struct target_ops) <to_thread_name>: Use
6369 TARGET_DEFAULT_RETURN.
6371 2014-02-19 Tom Tromey <tromey@redhat.com>
6373 * target-delegates.c: Rebuild.
6374 * target.c (update_current_target): Don't inherit or default
6375 to_extra_thread_info.
6376 * target.h (struct target_ops) <to_extra_thread_info>: Use
6377 TARGET_DEFAULT_RETURN.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * target-delegates.c: Rebuild.
6382 * target.c (update_current_target): Don't inherit or default
6384 * target.h (struct target_ops) <to_has_exited>: Use
6385 TARGET_DEFAULT_RETURN..
6387 2014-02-19 Tom Tromey <tromey@redhat.com>
6389 * target-delegates.c: Rebuild.
6390 * target.c (update_current_target): Don't inherit or default
6391 to_set_syscall_catchpoint.
6392 (return_one): Remove.
6393 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6394 TARGET_DEFAULT_RETURN.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target-delegates.c: Rebuild.
6399 * target.c (update_current_target): Don't inherit or default
6400 to_insert_exec_catchpoint.
6401 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6402 TARGET_DEFAULT_RETURN.
6404 2014-01-08 Tom Tromey <tromey@redhat.com>
6406 * target-delegates.c: Rebuild.
6407 * target.c (update_current_target): Don't inherit or default
6408 to_insert_exec_catchpoint.
6409 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6410 TARGET_DEFAULT_RETURN.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target-delegates.c: Rebuild.
6415 * target.c (update_current_target): Don't inherit or default
6416 to_remove_vfork_catchpoint.
6417 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6418 TARGET_DEFAULT_RETURN.
6420 2014-02-19 Tom Tromey <tromey@redhat.com>
6422 * target-delegates.c: Rebuild.
6423 * target.c (update_current_target): Don't inherit or default
6424 to_insert_vfork_catchpoint.
6425 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6426 TARGET_DEFAULT_RETURN.
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6430 * target-delegates.c: Rebuild.
6431 * target.c (update_current_target): Don't inherit or default
6432 to_remove_fork_catchpoint.
6433 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6434 TARGET_DEFAULT_RETURN.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target-delegates.c: Rebuild.
6439 * target.c (update_current_target): Don't inherit or default
6440 to_insert_fork_catchpoint.
6441 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6442 TARGET_DEFAULT_RETURN.
6444 2014-02-19 Tom Tromey <tromey@redhat.com>
6446 * target-delegates.c: Rebuild.
6447 * target.c (update_current_target): Don't inherit or default
6448 to_post_startup_inferior.
6449 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6450 TARGET_DEFAULT_IGNORE.
6452 2014-02-19 Tom Tromey <tromey@redhat.com>
6454 * target-delegates.c: Rebuild.
6455 * target.c (update_current_target): Don't inherit or default
6457 * target.h (struct target_ops) <to_load>: Use
6458 TARGET_DEFAULT_NORETURN.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target-delegates.c: Rebuild.
6463 * target.c (update_current_target): Don't inherit or default
6465 * target.h (struct target_ops) <to_terminal_info>: Use
6466 TARGET_DEFAULT_FUNC.
6468 2014-02-19 Tom Tromey <tromey@redhat.com>
6470 * target-delegates.c: Rebuild.
6471 * target.c (update_current_target): Don't inherit or default
6472 to_terminal_save_ours.
6473 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6474 TARGET_DEFAULT_IGNORE.
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6478 * target-delegates.c: Rebuild.
6479 * target.c (update_current_target): Don't inherit or default
6481 * target.h (struct target_ops) <to_terminal_ours>: Use
6482 TARGET_DEFAULT_IGNORE.
6484 2014-02-19 Tom Tromey <tromey@redhat.com>
6486 * target-delegates.c: Rebuild.
6487 * target.c (update_current_target): Don't inherit or default
6488 to_terminal_ours_for_output.
6489 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6490 TARGET_DEFAULT_IGNORE.
6492 2014-02-19 Tom Tromey <tromey@redhat.com>
6494 * target-delegates.c: Rebuild.
6495 * target.c (update_current_target): Don't inherit or default
6496 to_terminal_inferior.
6497 * target.h (struct target_ops) <to_terminal_inferior>: Use
6498 TARGET_DEFAULT_IGNORE.
6500 2014-02-19 Tom Tromey <tromey@redhat.com>
6502 * target-delegates.c: Rebuild.
6503 * target.c (update_current_target): Don't inherit or default
6505 * target.h (struct target_ops) <to_terminal_init>: Use
6506 TARGET_DEFAULT_IGNORE.
6508 2014-02-19 Tom Tromey <tromey@redhat.com>
6510 * target-delegates.c: Rebuild.
6511 * target.c (update_current_target): Don't inherit or default
6512 to_can_accel_watchpoint_condition.
6513 * target.h (struct target_ops)
6514 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6516 2014-02-19 Tom Tromey <tromey@redhat.com>
6518 * target-delegates.c: Rebuild.
6519 * target.c (update_current_target): Don't inherit or default
6520 to_region_ok_for_hw_watchpoint.
6521 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6522 Use TARGET_DEFAULT_FUNC.
6524 2014-02-19 Tom Tromey <tromey@redhat.com>
6526 * target-delegates.c: Rebuild.
6527 * target.c (update_current_target): Don't inherit or default
6528 to_watchpoint_addr_within_range.
6529 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6530 Use TARGET_DEFAULT_FUNC.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target-delegates.c: Rebuild.
6535 * target.c (update_current_target): Don't inherit or default
6536 to_remove_watchpoint.
6537 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6538 TARGET_DEFAULT_NORETURN.
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target-delegates.c: Rebuild.
6543 * target.c (update_current_target): Don't inherit or default
6544 to_insert_watchpoint.
6545 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6546 TARGET_DEFAULT_RETURN.
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6550 * target-delegates.c: Rebuild.
6551 * target.c (update_current_target): Don't inherit or default
6552 to_remove_hw_breakpoint.
6553 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6554 TARGET_DEFAULT_RETURN.
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6558 * target-delegates.c: Rebuild.
6559 * target.c (update_current_target): Don't inherit or default
6560 to_insert_hw_breakpoint.
6561 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6562 TARGET_DEFAULT_RETURN.
6564 2014-02-19 Tom Tromey <tromey@redhat.com>
6566 * target-delegates.c: Rebuild.
6567 * target.c (update_current_target): Don't inherit or default
6568 to_can_use_hw_breakpoint.
6569 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6570 TARGET_DEFAULT_RETURN.
6572 2014-02-19 Tom Tromey <tromey@redhat.com>
6574 * target-delegates.c: Rebuild.
6575 * target.c (update_current_target): Don't inherit or default
6577 * target.h (struct target_ops) <to_files_info>: Use
6578 TARGET_DEFAULT_IGNORE.
6580 2014-02-19 Tom Tromey <tromey@redhat.com>
6582 * target-delegates.c: Rebuild.
6583 * target.c (update_current_target): Don't inherit or default
6585 * target.h (struct target_ops) <to_store>: Use
6586 TARGET_DEFAULT_NORETURN.
6588 2014-02-19 Tom Tromey <tromey@redhat.com>
6590 * target-delegates.c: Rebuild.
6591 * target.c (update_current_target): Don't inherit or default
6593 * target.h (struct target_ops) <to_post_attach>: Use
6594 TARGET_DEFAULT_IGNORE.
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6598 * target-delegates.c: Rebuild.
6599 * target.c (update_current_target): Don't inherit or default
6601 (default_rcmd): New function.
6602 (do_monitor_command): Unconditionally delegate.
6603 * target.h (struct target_ops) <to_rmcd>: Use
6604 TARGET_DEFAULT_FUNC.
6606 2014-02-19 Tom Tromey <tromey@redhat.com>
6608 * target-delegates.c: Rebuild.
6609 * target.c (init_dummy_target): Don't initialize to_attach.
6610 (target_attach): Unconditionally delegate.
6611 * target.h (struct target_ops) <to_attach>: Use
6612 TARGET_DEFAULT_FUNC.
6614 2014-02-19 Tom Tromey <tromey@redhat.com>
6616 * target-delegates.c: Rebuild.
6617 * target.c (target_detach): Unconditionally delegate.
6618 (init_dummy_target): Don't initialize to_detach.
6619 * target.h (struct target_ops) <to_detach>: Use
6620 TARGET_DEFAULT_IGNORE.
6622 2014-02-19 Tom Tromey <tromey@redhat.com>
6624 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6626 (target_augmented_libraries_svr4_read): Add argument.
6627 * target.c (update_current_target): Update.
6628 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target.h (struct target_ops) <to_call_history_range>: Add
6635 * target.c (target_call_history_range): Add argument.
6636 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6638 (record_btrace_call_history_from): Update.
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * target.h (struct target_ops) <to_call_history_from>: Add
6644 * target.c (target_call_history_from): Add argument.
6645 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target.h (struct target_ops) <to_call_history>: Add argument.
6651 * target.c (target_call_history): Add argument.
6652 * record-btrace.c (record_btrace_call_history): Add 'self'
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target.h (struct target_ops) <to_insn_history_range>: Add
6659 * target.c (target_insn_history_range): Add argument.
6660 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6662 (record_btrace_insn_history_from): Update.
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * target.h (struct target_ops) <to_insn_history_from>: Add
6668 * target.c (target_insn_history_from): Add argument.
6669 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6672 2014-02-19 Tom Tromey <tromey@redhat.com>
6674 * target.h (struct target_ops) <to_insn_history>: Add argument.
6675 * target.c (target_insn_history): Add argument.
6676 * record-btrace.c (record_btrace_insn_history): Add 'self'
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * target.h (struct target_ops) <to_goto_record>: Add argument.
6682 * target.c (target_goto_record): Add argument.
6683 * record-full.c (record_full_goto): Add 'self' argument.
6684 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6689 * target.c (target_goto_record_end): Add argument.
6690 * record-full.c (record_full_goto_end): Add 'self' argument.
6691 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target.h (struct target_ops) <to_goto_record_begin>: Add
6697 * target.c (target_goto_record_begin): Add argument.
6698 * record-full.c (record_full_goto_begin): Add 'self' argument.
6699 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6702 2014-02-19 Tom Tromey <tromey@redhat.com>
6704 * target.h (struct target_ops) <to_record_is_replaying>: Add
6706 * target.c (target_record_is_replaying): Add argument.
6707 * record-full.c (record_full_is_replaying): Add 'self' argument.
6708 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6710 (record_btrace_xfer_partial, record_btrace_store_registers)
6711 (record_btrace_prepare_to_store, record_btrace_resume)
6712 (record_btrace_wait, record_btrace_decr_pc_after_break)
6713 (record_btrace_find_new_threads, record_btrace_thread_alive):
6716 2014-02-19 Tom Tromey <tromey@redhat.com>
6718 * target.h (struct target_ops) <to_delete_record>: Add argument.
6719 * target.c (target_delete_record): Add argument.
6720 * record-full.c (record_full_delete): Add 'self' argument.
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target.h (struct target_ops) <to_save_record>: Add argument.
6725 * target.c (target_save_record): Add argument.
6726 * record-full.c (record_full_save): Add 'self' argument.
6727 (record_full_save): Add 'self' argument.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target.h (struct target_ops) <to_info_record>: Add argument.
6732 * target.c (target_info_record): Add argument.
6733 * record.c (info_record_command): Add argument.
6734 * record-full.c (record_full_info): Add 'self' argument.
6735 * record-btrace.c (record_btrace_info): Add 'self' argument.
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6739 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6740 * target.c (target_stop_recording): Add argument.
6741 * record.c (record_stop): Add argument.
6742 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6745 2014-02-19 Tom Tromey <tromey@redhat.com>
6747 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6748 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6749 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6751 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6752 (_initialize_amd64_linux_nat): Use it.
6753 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6754 (_initialize_i386_linux_nat): Use it.
6756 2014-02-19 Tom Tromey <tromey@redhat.com>
6758 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6759 * target.c (target_teardown_btrace): Add argument.
6760 * remote.c (remote_teardown_btrace): Add 'self' argument.
6761 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6763 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6769 * target.c (target_disable_btrace): Add argument.
6770 * remote.c (remote_disable_btrace): Add 'self' argument.
6771 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6773 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6776 2014-02-19 Tom Tromey <tromey@redhat.com>
6778 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6779 * target.c (target_enable_btrace): Add argument.
6780 * remote.c (remote_enable_btrace): Add 'self' argument.
6781 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6783 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6786 2014-02-19 Tom Tromey <tromey@redhat.com>
6788 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6789 (target_can_use_agent): Add argument.
6790 * target.c (update_current_target): Update.
6791 * remote.c (remote_can_use_agent): Add 'self' argument.
6792 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6794 2014-02-19 Tom Tromey <tromey@redhat.com>
6796 * target.h (struct target_ops) <to_use_agent>: Add argument.
6797 (target_use_agent): Add argument.
6798 * target.c (update_current_target): Update.
6799 * remote.c (remote_use_agent): Add 'self' argument.
6800 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6802 2014-02-19 Tom Tromey <tromey@redhat.com>
6804 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6805 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6806 (target_traceframe_info): Add argument.
6807 * target.c (update_current_target): Update.
6808 * remote.c (remote_traceframe_info): Add 'self' argument.
6809 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * target.h (target_static_tracepoint_markers_by_strid): Add
6815 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6817 * target.c (update_current_target): Update.
6818 * remote.c (struct target_ops)
6819 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6820 * linux-nat.c (struct target_ops)
6821 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6827 (target_static_tracepoint_marker_at): Add argument.
6828 * target.c (update_current_target): Update.
6829 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6832 2014-02-19 Tom Tromey <tromey@redhat.com>
6834 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6835 (target_set_permissions): Add argument.
6836 * target.c (update_current_target): Update.
6837 * remote.c (remote_set_permissions): Add 'self' argument.
6838 (remote_start_remote): Update.
6840 2014-02-19 Tom Tromey <tromey@redhat.com>
6842 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6843 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6844 (target_get_tib_address): Add argument.
6845 * target.c (update_current_target): Update.
6846 * remote.c (remote_get_tib_address): Add 'self' argument.
6848 2014-02-19 Tom Tromey <tromey@redhat.com>
6850 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6851 (target_set_trace_notes): Add argument.
6852 * target.c (update_current_target): Update.
6853 * remote.c (remote_set_trace_notes): Add 'self' argument.
6855 2014-02-19 Tom Tromey <tromey@redhat.com>
6857 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6859 (target_set_trace_buffer_size): Add argument.
6860 * target.c (update_current_target): Update.
6861 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6863 2014-02-19 Tom Tromey <tromey@redhat.com>
6865 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6867 (target_set_circular_trace_buffer): Add argument.
6868 * target.c (update_current_target): Update.
6869 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6872 2014-02-19 Tom Tromey <tromey@redhat.com>
6874 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6876 (target_set_disconnected_tracing): Add argument.
6877 * target.c (update_current_target): Update.
6878 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target.h (struct target_ops)
6883 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6884 (target_get_min_fast_tracepoint_insn_len): Add argument.
6885 * target.c (update_current_target): Update.
6886 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6893 (target_get_raw_trace_data): Add argument.
6894 * target.c (update_current_target): Update.
6895 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6897 2014-02-19 Tom Tromey <tromey@redhat.com>
6899 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6901 (target_upload_trace_state_variables): Add argument.
6902 * target.c (update_current_target): Update.
6903 * remote.c (remote_upload_trace_state_variables): Add 'self'
6905 (remote_start_remote): Update.
6907 2014-02-19 Tom Tromey <tromey@redhat.com>
6909 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6911 (target_upload_tracepoints): Add argument.
6912 * target.c (update_current_target): Update.
6913 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6914 (remote_start_remote): Update.
6916 2014-02-19 Tom Tromey <tromey@redhat.com>
6918 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6919 (target_save_trace_data): Add argument.
6920 * target.c (update_current_target): Update.
6921 * remote.c (remote_save_trace_data): Add 'self' argument.
6923 2014-02-19 Tom Tromey <tromey@redhat.com>
6925 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6927 * target.h (struct target_ops)
6928 <to_get_trace_state_variable_value>: Add argument.
6929 (target_get_trace_state_variable_value): Add argument.
6930 * target.c (update_current_target): Update.
6931 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6933 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6937 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6938 * target.h (struct target_ops) <to_trace_find>: Add argument.
6939 (target_trace_find): Add argument.
6940 * target.c (update_current_target): Update.
6941 * remote.c (remote_trace_find): Add 'self' argument.
6942 * ctf.c (ctf_trace_find): Add 'self' argument.
6944 2014-02-19 Tom Tromey <tromey@redhat.com>
6946 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6947 (target_trace_stop): Add argument.
6948 * target.c (update_current_target): Update.
6949 * remote.c (remote_trace_stop): Add 'self' argument.
6951 2014-02-19 Tom Tromey <tromey@redhat.com>
6953 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6954 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6956 (target_get_tracepoint_status): Add argument.
6957 * target.c (update_current_target): Update.
6958 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6960 2014-02-19 Tom Tromey <tromey@redhat.com>
6962 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6963 * target.h (struct target_ops) <to_get_trace_status>: Add
6965 (target_get_trace_status): Add argument.
6966 * target.c (update_current_target): Update.
6967 * remote.c (remote_get_trace_status): Add 'self' argument.
6968 (remote_start_remote, remote_can_download_tracepoint): Update.
6969 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target.h (struct target_ops) <to_trace_start>: Add argument.
6974 (target_trace_start): Add argument.
6975 * target.c (update_current_target): Update.
6976 * remote.c (remote_trace_start): Add 'self' argument.
6978 2014-02-19 Tom Tromey <tromey@redhat.com>
6980 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6982 (target_trace_set_readonly_regions): Add argument.
6983 * target.c (update_current_target): Update.
6984 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6991 (target_disable_tracepoint): Add argument.
6992 * target.c (update_current_target): Update.
6993 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6995 2014-02-19 Tom Tromey <tromey@redhat.com>
6997 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6999 (target_enable_tracepoint): Add argument.
7000 * target.c (update_current_target): Update.
7001 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7005 * target.h (struct target_ops) <to_download_trace_state_variable>:
7007 (target_download_trace_state_variable): Add argument.
7008 * target.c (update_current_target): Update.
7009 * remote.c (remote_download_trace_state_variable): Add 'self'
7012 2014-02-19 Tom Tromey <tromey@redhat.com>
7014 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7016 (target_can_download_tracepoint): Add argument.
7017 * target.c (update_current_target): Update.
7018 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7020 2014-02-19 Tom Tromey <tromey@redhat.com>
7022 * target.h (struct target_ops) <to_download_tracepoint>: Add
7024 (target_download_tracepoint): Add argument.
7025 * target.c (update_current_target): Update.
7026 * remote.c (remote_download_tracepoint): Add 'self' argument.
7028 2014-02-19 Tom Tromey <tromey@redhat.com>
7030 * target.h (struct target_ops) <to_trace_init>: Add argument.
7031 (target_trace_init): Add argument.
7032 * target.c (update_current_target): Update.
7033 * remote.c (remote_trace_init): Add 'self' argument.
7035 2014-02-19 Tom Tromey <tromey@redhat.com>
7037 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7038 * target.c (target_fileio_readlink): Add argument.
7039 * remote.c (remote_hostio_readlink): Add 'self' argument.
7040 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7045 * target.c (target_fileio_unlink): Add argument.
7046 * remote.c (remote_hostio_unlink): Add 'self' argument.
7047 (remote_file_delete): Update.
7048 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7050 2014-02-19 Tom Tromey <tromey@redhat.com>
7052 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7053 * target.c (target_fileio_close): Add argument.
7054 * remote.c (remote_hostio_close): Add 'self' argument.
7055 (remote_hostio_close_cleanup): Update.
7056 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7058 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7060 2014-02-19 Tom Tromey <tromey@redhat.com>
7062 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7063 * target.c (target_fileio_pread): Add argument.
7064 * remote.c (remote_hostio_pread): Add 'self' argument.
7065 (remote_bfd_iovec_pread, remote_file_get): Update.
7066 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7068 2014-02-19 Tom Tromey <tromey@redhat.com>
7070 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7071 * target.c (target_fileio_pwrite): Add argument.
7072 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7073 (remote_file_put): Update.
7074 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7076 2014-02-19 Tom Tromey <tromey@redhat.com>
7078 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7079 * target.c (target_fileio_open): Add argument.
7080 * remote.c (remote_hostio_open): Add 'self' argument.
7081 (remote_bfd_iovec_open): Add 'self' argument.
7082 (remote_file_put): Add 'self' argument.
7083 (remote_file_get): Add 'self' argument.
7084 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7086 2014-02-19 Tom Tromey <tromey@redhat.com>
7088 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7090 (target_can_run_breakpoint_commands): Add argument.
7091 * target.c (update_current_target): Update.
7092 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7094 (remote_insert_breakpoint): Add 'self' argument.
7095 (remote_insert_hw_breakpoint): Add 'self' argument.
7096 (remote_can_run_breakpoint_commands): Add 'self' argument.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target.h (struct target_ops)
7101 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7102 (target_supports_evaluation_of_breakpoint_conditions): Add
7104 * target.c (update_current_target): Update.
7105 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7107 (remote_insert_breakpoint): Add 'self' argument.
7108 (remote_insert_hw_breakpoint): Add 'self' argument.
7109 (remote_supports_cond_breakpoints): Add 'self' argument.
7111 2014-02-19 Tom Tromey <tromey@redhat.com>
7113 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7115 (target_supports_string_tracing): Add argument.
7116 * target.c (update_current_target): Update.
7117 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7119 2014-02-19 Tom Tromey <tromey@redhat.com>
7121 * target.h (struct target_ops)
7122 <to_supports_disable_randomization>: Add argument.
7123 * target.c (find_default_supports_disable_randomization): Add
7125 (target_supports_disable_randomization): Add argument.
7126 (find_default_supports_disable_randomization): Add 'self'
7128 * remote.c (extended_remote_supports_disable_randomization): Add
7130 (remote_supports_disable_randomization): Add 'self' argument.
7131 (extended_remote_create_inferior): Update.
7132 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7137 * target.h (struct target_ops)
7138 <to_supports_enable_disable_tracepoint>: Add argument.
7139 (target_supports_enable_disable_tracepoint): Add argument.
7140 * target.c (update_current_target): Update.
7141 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target.h (struct target_ops) <to_supports_multi_process>: Add
7148 (target_supports_multi_process): Add argument.
7149 * target.c (update_current_target): Update.
7150 * remote.c (remote_supports_multi_process): Add 'self' argument.
7151 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7153 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7156 2014-02-19 Tom Tromey <tromey@redhat.com>
7158 * target.h (struct target_ops) <to_execution_direction>: Add
7160 (target_execution_direction): Add argument.
7161 * target.c (default_execution_direction): Add 'self' argument.
7162 * record-full.c (record_full_execution_direction): Add 'self'
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7169 (target_can_execute_reverse): Add argument.
7170 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7171 * record-full.c (record_full_can_execute_reverse): Add 'self'
7173 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7176 2014-02-19 Tom Tromey <tromey@redhat.com>
7178 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7179 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7181 (target_get_ada_task_ptid): Add argument.
7182 * target.c (update_current_target): Update.
7183 (default_get_ada_task_ptid): Add 'self' argument.
7184 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7185 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7186 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7188 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7190 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7192 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7194 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7195 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7198 2014-02-19 Tom Tromey <tromey@redhat.com>
7200 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7201 (target_goto_bookmark): Add argument.
7202 * target.c (dummy_goto_bookmark): Add 'self' argument.
7203 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7207 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7208 (target_get_bookmark): Add argument.
7209 * target.c (dummy_get_bookmark): Add 'self' argument.
7210 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7212 2014-02-19 Tom Tromey <tromey@redhat.com>
7214 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7216 (target_make_corefile_notes): Add argument.
7217 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7218 * procfs.c (procfs_make_note_section): Add 'self' argument.
7219 (procfs_make_note_section): Add 'self' argument.
7220 (procfs_make_note_section): Add 'self' argument.
7221 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7223 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7224 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7225 * exec.c (exec_make_note_section): Add 'self' argument.
7226 (exec_make_note_section): Add 'self' argument.
7228 2014-02-19 Tom Tromey <tromey@redhat.com>
7230 * target.h (struct target_ops) <to_find_memory_regions>: Add
7232 (target_find_memory_regions): Add argument.
7233 * target.c (dummy_find_memory_regions): Add 'self' argument.
7234 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7235 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7236 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7237 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7238 * exec. (exec_do_find_memory_regions): New global.
7239 (exec_set_find_memory_regions): Rewrite.
7240 (exec_find_memory_regions): New function.
7241 (init_exec_ops): Use exec_find_memory_regions.
7243 2014-02-19 Tom Tromey <tromey@redhat.com>
7245 * target.h (struct target_ops) <to_supports_non_stop>: Add
7247 * target.c (find_default_supports_non_stop): Add argument.
7248 (target_supports_non_stop): Add argument.
7249 (find_default_supports_non_stop): Add 'self' argument.
7250 * remote.c (remote_supports_non_stop): Add 'self' argument.
7251 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7253 2014-02-19 Tom Tromey <tromey@redhat.com>
7255 * target.h (struct target_ops) <to_log_command>: Add argument.
7256 (target_log_command): Add argument.
7257 * serial.h (serial_log_command): Add 'self' argument.
7258 * serial.c (serial_log_command): Add 'self' argument.
7260 2014-02-19 Tom Tromey <tromey@redhat.com>
7262 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7263 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7265 (target_pid_to_exec_file): Add argument.
7266 * target.c (debug_to_pid_to_exec_file): Add argument.
7267 (update_current_target): Update.
7268 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7269 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7270 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7271 (linux_handle_extended_wait): Update.
7272 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7273 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7274 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7275 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7277 2014-02-19 Tom Tromey <tromey@redhat.com>
7279 * target.h (struct target_ops) <to_rcmd>: Add argument.
7280 (target_rcmd): Add argument.
7281 * target.c (debug_to_rcmd): Add argument.
7282 (update_current_target, do_monitor_command): Update.
7283 * remote.c (remote_rcmd): Add 'self' argument.
7284 * monitor.c (monitor_rcmd): Add 'self' argument.
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * windows-nat.c (windows_stop): Add 'self' argument.
7289 * target.h (struct target_ops) <to_stop>: Add argument.
7290 * target.c (target_stop): Add argument.
7291 (debug_to_stop): Add argument.
7292 (update_current_target): Update.
7293 * remote.c (remote_stop): Add 'self' argument.
7294 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7295 (gdbsim_cntrl_c): Update.
7296 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7297 * procfs.c (procfs_stop): Add 'self' argument.
7298 * nto-procfs.c (procfs_stop): Add 'self' argument.
7299 * monitor.c (monitor_stop): Add 'self' argument.
7300 (monitor_open): Update.
7301 * linux-nat.c (linux_nat_stop): Add argument.
7302 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7303 * gnu-nat.c (gnu_stop): Add 'self' argument.
7304 * darwin-nat.c (darwin_stop): Add 'self' argument.
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7308 * target.h (struct target_ops) <to_thread_name>: Add argument.
7309 * target.c (target_thread_name): Add argument.
7310 (update_current_target): Update.
7311 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7313 2014-02-19 Tom Tromey <tromey@redhat.com>
7315 * target.h (struct target_ops) <to_extra_thread_info>: Add
7317 (target_extra_thread_info): Add argument.
7318 * target.c (update_current_target): Update.
7319 * remote.c (remote_threads_extra_info): Add 'self' argument.
7320 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7322 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7323 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7324 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7326 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7328 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7330 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target.h (struct target_ops) <to_program_signals>: Add argument.
7336 * target.c (target_program_signals): Add argument.
7337 * remote.c (remote_program_signals): Add 'self' argument.
7339 2014-02-19 Tom Tromey <tromey@redhat.com>
7341 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7342 * target.c (target_pass_signals): Add argument.
7343 * remote.c (remote_pass_signals): Add 'self' argument.
7344 (remote_start_remote): Update.
7345 * procfs.c (procfs_pass_signals): Add 'self' argument.
7346 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7347 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7348 (linux_nat_create_inferior, linux_nat_attach): Update.
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7352 * windows-nat.c (windows_can_run): Add 'self' argument.
7353 * target.h (struct target_ops) <to_can_run>: Add argument.
7354 (target_can_run): Add argument.
7355 * target.c (debug_to_can_run): Add argument.
7356 (update_current_target): Update.
7357 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7358 * inf-child.c (inf_child_can_run): Add 'self' argument.
7359 * go32-nat.c (go32_can_run): Add 'self' argument.
7361 2014-02-19 Tom Tromey <tromey@redhat.com>
7363 * target.h (struct target_ops) <to_has_exited>: Add argument.
7364 (target_has_exited): Add argument.
7365 * target.c (debug_to_has_exited): Add argument.
7366 (update_current_target): Update.
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7370 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7372 (target_set_syscall_catchpoint): Add argument.
7373 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7375 * target.c (update_current_target): Update.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7381 (target_remove_exec_catchpoint): Add argument.
7382 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7383 (update_current_target): Update.
7384 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7387 2014-02-19 Tom Tromey <tromey@redhat.com>
7389 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7391 (target_insert_exec_catchpoint): Add argument.
7392 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7393 (update_current_target): Update.
7394 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7397 2014-02-19 Tom Tromey <tromey@redhat.com>
7399 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7401 (target_remove_vfork_catchpoint): Add argument.
7402 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7403 (update_current_target): Update.
7404 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7407 2014-02-19 Tom Tromey <tromey@redhat.com>
7409 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7411 (target_insert_vfork_catchpoint): Add argument.
7412 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7413 (update_current_target): Update.
7414 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7421 (target_remove_fork_catchpoint): Add argument.
7422 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7423 (update_current_target): Update.
7424 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7427 2014-02-19 Tom Tromey <tromey@redhat.com>
7429 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7431 (target_insert_fork_catchpoint): Add argument.
7432 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7433 (update_current_target): Update.
7434 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7437 2014-02-19 Tom Tromey <tromey@redhat.com>
7439 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7441 (target_post_startup_inferior): Add argument.
7442 * target.c (debug_to_post_startup_inferior): Add argument.
7443 (update_current_target): Update.
7444 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7446 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7448 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7450 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7452 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7454 (super_post_startup_inferior): Likewise.
7455 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7457 (super_post_startup_inferior): Likewise.
7458 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7459 Add 'self' argument.
7460 (super_post_startup_inferior): Likewise.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target.h (struct target_ops) <to_load>: Add argument.
7465 * target.c (target_load): Add argument.
7466 (debug_to_load): Add argument.
7467 (update_current_target): Update.
7468 * remote.c (remote_load): Add 'self' argument.
7469 * remote-sim.c (gdbsim_load): Add 'self' argument.
7470 * remote-mips.c (mips_load): Add 'self' argument.
7471 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7472 * monitor.c (monitor_load): Add 'self' argument.
7473 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7475 2014-02-19 Tom Tromey <tromey@redhat.com>
7477 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7478 (target_terminal_info): Add argument.
7479 * target.c (debug_to_terminal_info): Add argument.
7480 (default_terminal_info): Likewise.
7481 * inflow.c (child_terminal_info): Add 'self' argument.
7482 * inferior.h (child_terminal_info): Add 'self' argument.
7483 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7485 2014-02-19 Tom Tromey <tromey@redhat.com>
7487 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7489 (target_terminal_save_ours): Add argument.
7490 * target.c (debug_to_terminal_save_ours): Add argument.
7491 (update_current_target): Update.
7492 * inflow.c (terminal_save_ours): Add 'self' argument.
7493 * inferior.h (terminal_save_ours): Add 'self' argument.
7495 2014-02-19 Tom Tromey <tromey@redhat.com>
7497 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7498 (target_terminal_ours): Add argument.
7499 * target.c (debug_to_terminal_ours): Add argument.
7500 (update_current_target): Update.
7501 * remote.c (remote_terminal_ours): Add 'self' argument.
7502 (remote_close): Update.
7503 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7504 * inflow.c (terminal_ours): Add 'self' argument.
7505 * inferior.h (terminal_ours): Add 'self' argument.
7506 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7508 2014-02-19 Pedro Alves <palves@redhat.com>
7509 Tom Tromey <tromey@redhat.com>
7511 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7513 (target_terminal_ours_for_output): Add argument.
7514 * target.c (debug_to_terminal_ours_for_output): Add argument.
7515 (update_current_target): Update.
7516 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7517 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7518 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7522 * target.h (struct target_ops) <to_terminal_inferior>: Add
7524 * target.c (target_terminal_inferior): Add argument.
7525 (update_current_target): Update.
7526 * remote.c (remote_terminal_inferior): Add 'self' argument.
7527 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7528 * inflow.c (terminal_inferior): Add 'self' argument.
7529 * inferior.h (terminal_inferior): Add 'self' argument.
7530 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7531 (go32_terminal_inferior): Add 'self' argument.
7533 2014-02-19 Tom Tromey <tromey@redhat.com>
7535 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7536 (target_terminal_init): Add argument.
7537 * target.c (debug_to_terminal_init): Add argument.
7538 (update_current_target): Update.
7539 * inflow.c (terminal_init_inferior): Add 'self' argument.
7540 * inferior.h (terminal_init_inferior): Add 'self' argument.
7541 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7542 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7544 2014-02-19 Tom Tromey <tromey@redhat.com>
7546 * target.h (struct target_ops)
7547 <to_can_accel_watchpoint_condition>: Add argument.
7548 (target_can_accel_watchpoint_condition): Add argument.
7549 * target.c (debug_to_can_accel_watchpoint_condition): Add
7551 (update_current_target): Update.
7552 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7555 2014-02-19 Tom Tromey <tromey@redhat.com>
7557 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7559 (target_region_ok_for_hw_watchpoint): Add argument.
7560 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7561 (default_region_ok_for_hw_watchpoint): Add argument.
7562 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7563 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7565 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7567 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7569 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7571 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7573 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7575 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7576 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7578 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7579 Add 'self' argument.
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7583 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7585 (target_insert_watchpoint): Add argument.
7586 * target.c (debug_to_insert_watchpoint): Add argument.
7587 (update_current_target): Update.
7588 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7589 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7590 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7591 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7592 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7593 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7595 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7596 (procfs_insert_hw_watchpoint): Add 'self' argument.
7597 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7599 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7601 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7603 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7604 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7606 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7613 (target_remove_watchpoint): Add argument.
7614 * target.c (debug_to_remove_watchpoint): Add argument.
7615 (update_current_target): Update.
7616 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7617 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7618 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7619 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7620 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7621 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7623 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7624 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7626 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7628 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7630 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7631 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7633 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7640 (target_remove_hw_breakpoint): Add argument.
7641 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7642 (update_current_target): Update.
7643 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7644 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7646 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7647 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7649 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7652 2014-02-19 Tom Tromey <tromey@redhat.com>
7654 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7656 (target_insert_hw_breakpoint): Add argument.
7657 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7658 (update_current_target): Update.
7659 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7660 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7662 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7663 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7664 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7666 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7669 2014-02-19 Tom Tromey <tromey@redhat.com>
7671 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7673 (target_can_use_hardware_watchpoint): Add argument.
7674 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7675 (update_current_target): Update.
7676 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7678 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7680 * remote.c (remote_check_watch_resources): Add 'self' argument.
7681 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7682 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7684 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7685 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7687 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7689 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7691 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7693 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7695 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7697 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7698 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7700 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7703 2014-02-19 Tom Tromey <tromey@redhat.com>
7705 * target.h (struct target_ops) <to_post_attach>: Add argument.
7706 (target_post_attach): Add argument.
7707 * target.c (debug_to_post_attach): Add argument.
7708 (update_current_target): Update.
7709 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7710 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7711 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7712 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7713 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * windows-nat.c (windows_close): Add 'self' argument.
7718 * tracepoint.c (tfile_close): Add 'self' argument.
7719 * target.h (struct target_ops) <to_close>: Add argument.
7720 * target.c (target_close): Add argument.
7721 (update_current_target): Update.
7722 * remote.c (remote_close): Add 'self' argument.
7723 * remote-sim.c (gdbsim_close): Add 'self' argument.
7724 * remote-mips.c (mips_close): Add 'self' argument.
7725 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7726 * record-full.c (record_full_close): Add 'self' argument.
7727 * record-btrace.c (record_btrace_close): Add 'self' argument.
7728 * monitor.h (monitor_close): Add 'self' argument.
7729 * monitor.c (monitor_close): Add 'self' argument.
7730 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7731 * linux-nat.c (linux_nat_close): Add argument.
7732 * go32-nat.c (go32_close): Add 'self' argument.
7733 * exec.c (exec_close_1): Add 'self' argument.
7734 * ctf.c (ctf_close): Add 'self' argument.
7735 * corelow.c (core_close): Add 'self' argument.
7736 (core_close_cleanup): Update.
7737 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7738 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * remote.c (remote_load): New function.
7743 (init_remote_ops): Use it.
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7747 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7749 * common/linux-btrace.h (linux_supports_btrace): Update.
7750 * remote.c (remote_supports_btrace): Add "self" argument.
7751 * target-delegates.c: Rebuild.
7752 * target.c (target_supports_btrace): Remove.
7753 * target.h (struct target_ops) <to_supports_btrace>: Add
7754 target_ops argument.
7755 (target_supports_btrace): New define.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * record-full.c (record_full_beneath_to_resume_ops)
7760 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7761 (record_full_beneath_to_wait)
7762 (record_full_beneath_to_store_registers_ops)
7763 (record_full_beneath_to_store_registers)
7764 (record_full_beneath_to_xfer_partial_ops)
7765 (record_full_beneath_to_xfer_partial)
7766 (record_full_beneath_to_insert_breakpoint_ops)
7767 (record_full_beneath_to_insert_breakpoint)
7768 (record_full_beneath_to_remove_breakpoint_ops)
7769 (record_full_beneath_to_remove_breakpoint)
7770 (record_full_beneath_to_stopped_by_watchpoint)
7771 (record_full_beneath_to_stopped_data_address)
7772 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7773 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7774 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7775 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7776 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7777 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7778 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7779 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7780 (record_full_resume, record_full_wait_1)
7781 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7782 (record_full_store_registers, record_full_xfer_partial)
7783 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7784 (record_full_async, record_full_core_xfer_partial): Use target
7786 * target-delegates.c: Rebuild.
7787 * target.c (current_xfer_partial): Remove.
7788 (update_current_target): Do not INHERIT or de_fault
7789 to_insert_breakpoint, to_remove_breakpoint,
7790 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7791 to_is_async_p, to_async. Do not set to_xfer_partial field.
7792 (default_xfer_partial): Simplify.
7793 (current_xfer_partial): Remove.
7794 (target_wait, target_resume): Simplify.
7795 (find_default_can_async_p, find_default_is_async_p): Update.
7796 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7797 to_xfer_partial, to_stopped_by_watchpoint,
7798 to_stopped_data_address.
7799 (target_store_registers): Simplify.
7800 (forward_target_remove_breakpoint)
7801 (forward_target_insert_breakpoint): Remove.
7802 (target_remove_breakpoint, target_insert_breakpoint)
7803 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7804 * target.h (struct target_ops) <to_resume, to_wait,
7805 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7806 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7807 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7809 (forward_target_remove_breakpoint)
7810 (forward_target_insert_breakpoint): Remove.
7811 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7813 (record_btrace_insert_breakpoint): Delegate directly.
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7818 * target-delegates.c: New file.
7819 * target.c: Include target-delegates.c.
7820 (init_dummy_target): Call install_dummy_methods.
7821 (complete_target_initialization): Call install_delegators.
7822 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7823 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7824 * make-target-delegates: New file.
7826 2014-02-19 Tom Tromey <tromey@redhat.com>
7828 * record.c (find_record_target): Use find_target_at.
7829 * target.c (find_target_at): New function.
7830 * target.h (find_target_at): Declare.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7836 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7838 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7839 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7841 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7843 * linux-nat.c (save_sigtrap): Update.
7844 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7845 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7846 (linux_nat_close): Update.
7847 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7849 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7851 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7852 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7853 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7854 (tmp_to_async): Add 'ops' argument.
7855 (record_full_stopped_by_watchpoint, record_full_async)
7856 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7858 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7859 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7860 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7861 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7862 (remote_is_async_p, remote_async): Add 'ops' argument.
7863 (remote_stopped_data_address): Update.
7864 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7865 * target.c (update_current_target)
7866 (find_default_can_async_p, find_default_is_async_p): Update.
7867 (init_dummy_target): Update.
7868 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7869 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7870 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7871 (target_can_async_p, target_is_async_p, target_async)
7872 (target_stopped_by_watchpoint): Update.
7874 2014-02-19 Yao Qi <yao@codesourcery.com>
7877 * gdbarch.sh: Remove startup_gdbarch.
7878 * gdbarch.c: Regenerated.
7879 * gdbarch.h: Likewise.
7881 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7883 * rl78-tdep.c (rl78_g10_register_name): New function.
7884 (rl78_return_value): Add g10 support.
7885 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7888 2014-02-17 Doug Evans <xdje42@gmail.com>
7890 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7891 (SUBDIR_GUILE_SRCS): Ditto.
7892 (scm-gsmob.o): Ditto.
7894 2014-02-17 Yao Qi <yao@codesourcery.com>
7896 * gnu-nat.c (ILL_RPC): Declare defined function.
7898 2014-02-17 Yao Qi <yao@codesourcery.com>
7900 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7901 mach_msg_type_number_t.
7902 (gnu_write_inferior): Likewise.
7904 2014-02-17 Yao Qi <yao@codesourcery.com>
7906 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7908 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7909 (inf_validate_procs, inf_signal): Likewise.
7910 (S_exception_raise_request): Likewise.
7911 (do_mach_notify_dead_name): Likewise.
7912 (steal_exc_port): Likewise.
7913 (gnu_read_inferior): Change 'copy_count''s type to
7914 mach_msg_type_number_t.
7915 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7918 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7920 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7921 flag. Adjust all users; in particular...
7922 (gnu_wait): ..., don't decrement its value in here...
7923 (gnu_create_inferior): ..., and instead set the flag in here,
7924 around the startup_inferior call, and call that one with
7925 START_INFERIOR_TRAPS_EXPECTED.
7927 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7928 (ILL_RPC): ... new macro.
7929 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7930 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7931 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7932 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7933 functions with ILL_RPC macro.
7934 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7935 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7936 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7937 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7938 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7939 (S_proc_getlogin_reply, S_proc_getsid_reply)
7940 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7941 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7942 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7943 (S_proc_getnports_reply, S_proc_is_important_reply)
7944 (S_proc_get_code_reply): New stub functions, generated with
7947 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7948 collected the type check structures.
7950 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7952 2014-02-14 Doug Evans <dje@google.com>
7954 * target.c (target_write_partial): Fix result type.
7956 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7958 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7959 the proper offsets to access fpregset_t.
7961 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7963 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7964 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7965 * h8300-tdep.c (setmachinelist): Remove global.
7966 * hppa-tdep.c (hppa_sigtramp): Remove global.
7967 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7968 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7969 * ravenscar-thread.c (update_target_observer): Remove global.
7970 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7972 2014-02-12 Tom Tromey <tromey@redhat.com>
7974 * common/rsp-low.c: Update comments.
7975 * common/rsp-low.h: Update comments.
7977 2014-02-12 Tom Tromey <tromey@redhat.com>
7979 * common/rsp-low.c (convert_ascii_to_int): Remove.
7980 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7982 2014-02-12 Tom Tromey <tromey@redhat.com>
7984 * common/rsp-low.h (unhexify): Don't declare.
7985 * common/rsp-low.c (unhexify): Remove.
7987 2014-02-12 Tom Tromey <tromey@redhat.com>
7989 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7990 * common/rsp-low.c (convert_int_to_ascii): Remove.
7992 2014-02-12 Tom Tromey <tromey@redhat.com>
7994 * common/rsp-low.h (hexify): Don't declare.
7995 * common/rsp-low.c (hexify): Remove.
7997 2014-02-12 Tom Tromey <tromey@redhat.com>
7999 * common/rsp-low.c (hexify): Never take strlen of argument.
8001 2014-02-12 Tom Tromey <tromey@redhat.com>
8003 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8004 * remote.c (extended_remote_run, remote_rcmd)
8005 (remote_download_trace_state_variable, remote_save_trace_data)
8006 (remote_set_trace_notes): Update.
8007 * tracepoint.c (encode_source_string, tfile_write_status)
8008 (tfile_write_uploaded_tsv): Update.
8010 2014-02-12 Tom Tromey <tromey@redhat.com>
8012 * tracepoint.c: Include rsp-low.h.
8013 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8014 * remote.c: Include rsp-low.h.
8015 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8016 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8017 (remote_unescape_input): Move to common/rsp-low.c.
8018 * common/rsp-low.h: New file.
8019 * common/rsp-low.c: New file.
8020 * Makefile.in (SFILES): Add common/rsp-low.c.
8021 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8022 (COMMON_OBS): Add rsp-low.o.
8023 (rsp-low.o): New target.
8025 2014-02-12 Tom Tromey <tromey@redhat.com>
8027 * utils.h: Include print-utils.h.
8028 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8029 (int_string, core_addr_to_string, core_addr_to_string_nz)
8030 (hex_string, hex_string_custom): Don't declare.
8031 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8032 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8033 (hex_string_custom, int_string, core_addr_to_string)
8034 (core_addr_to_string_nz, host_address_to_string): Move to
8035 common/print-utils.c.
8036 * common/print-utils.h: New file.
8037 * common/print-utils.c: New file
8038 * Makefile.in (SFILES): Add common/print-utils.c.
8039 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8040 (COMMON_OBS): Add print-utils.o.
8041 (print-utils.o): New target.
8043 2014-02-12 Tom Tromey <tromey@redhat.com>
8045 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8047 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8049 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8051 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8053 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8054 if a PT_IO ptrace request returns sucessfully but indicates that 0
8055 bytes were transferred.
8057 2014-02-12 Pedro Alves <palves@redhat.com>
8058 Kevin Buettner <kevinb@redhat.com>
8060 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8061 TYPE_INSTANCE_FLAG_CODE_SPACE.
8063 2014-02-12 Pedro Alves <palves@redhat.com>
8065 * h8300-tdep.c (pseudo_from_raw_register)
8066 (raw_from_pseudo_register): New functions.
8067 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8070 2014-02-12 Pedro Alves <palves@redhat.com>
8072 * h8300-tdep.c (h8300_register_sim_regno): New function.
8073 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8074 gdbarch_register_sim_regno hook.
8076 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8078 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8080 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8082 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8084 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8086 * obsd-tdep.h (obsd_init_abi): New prototype.
8087 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8088 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8089 (obsd_init_abi): New functions.
8090 * i386obsd-tdep.c: Include "obsd-tdep.h".
8091 (i386obsd_init_abi): Call obsd_init_abi.
8092 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8093 (amd64obsd_init_abi): Call obsd_init_abi.
8094 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8095 obsd-tdep.c to gdb_target_obs.
8097 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8099 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8100 double float arguments to 16-byte in the argument slots.
8102 2014-02-11 Doug Evans <xdje42@gmail.com>
8104 * configure.ac: Don't crash if pkg-config is not found and guile
8105 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8107 * configure: Regenerate.
8109 2014-02-11 Yao Qi <yao@codesourcery.com>
8111 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8112 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8113 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8114 * gnu-nat.c (gnu_xfer_memory): Likewise.
8115 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8116 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8117 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8118 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8120 2014-02-11 Yao Qi <yao@codesourcery.com>
8122 * target.h (enum target_xfer_error): Rename to ...
8123 (enum target_xfer_status): ... it. New. All users updated.
8124 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8126 (TARGET_XFER_STATUS_ERROR_P): New macro.
8127 (target_xfer_error_to_string): Remove declaration.
8128 (target_xfer_status_to_string): Declare.
8129 (target_xfer_partial_ftype): Adjust it.
8130 (struct target_ops) <to_xfer_partial>: Return
8131 target_xfer_status. Add argument xfered_len. Update
8133 * target.c (target_xfer_error_to_string): Rename to ...
8134 (target_xfer_status_to_string): ... it. New. All callers
8136 (target_read_live_memory): Likewise. Call target_xfer_partial
8137 instead of target_read.
8138 (memory_xfer_live_readonly_partial): Return
8139 target_xfer_status. Add argument xfered_len.
8140 (raw_memory_xfer_partial): Likewise.
8141 (memory_xfer_partial_1): Likewise.
8142 (memory_xfer_partial): Likewise.
8143 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8144 properly. Update debug message.
8145 (default_xfer_partial, current_xfer_partial): Likewise.
8146 (target_write_partial): Likewise.
8147 (target_read_partial): Likewise. All callers updated.
8148 (read_whatever_is_readable): Likewise.
8149 (target_write_with_progress): Likewise.
8150 (target_read_alloc_1): Likewise.
8152 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8153 * auxv.c (procfs_xfer_auxv): Likewise.
8154 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8155 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8156 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8157 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8158 * corefile.c (read_memory): Adjust.
8159 * corelow.c (core_xfer_partial): Likewise.
8160 * ctf.c (ctf_xfer_partial): Likewise.
8161 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8163 (darwin_xfer_partial): Likewise.
8164 * exec.c (section_table_xfer_memory_partial): Likewise. All
8166 (exec_xfer_partial): Likewise.
8167 * exec.h (section_table_xfer_memory_partial): Update
8169 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8171 (gnu_xfer_partial): Likewise.
8172 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8173 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8174 (ia64_hpux_xfer_solib_got): Likewise.
8175 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8176 type of 'partial_len' to ULONGEST.
8177 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8178 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8179 (linux_nat_xfer_partial): Likewise.
8180 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8181 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8182 * monitor.c (monitor_xfer_memory): Likewise.
8183 (monitor_xfer_partial): Likewise.
8184 * procfs.c (procfs_xfer_partial): Likewise.
8185 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8186 * record-full.c (record_full_xfer_partial): Likewise.
8187 (record_full_core_xfer_partial): Likewise.
8188 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8189 (gdbsim_xfer_partial): Likewise.
8190 * remote.c (remote_write_bytes_aux): Likewise. All callers
8192 (remote_write_bytes, remote_read_bytes): Likewise. All
8194 (remote_flash_erase): Likewise. All callers updated.
8195 (remote_write_qxfer): Likewise. All callers updated.
8196 (remote_read_qxfer): Likewise. All callers updated.
8197 (remote_xfer_partial): Likewise.
8198 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8199 (rs6000_xfer_shared_libraries): Likewise.
8200 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8201 (sol_thread_xfer_partial): Likewise.
8202 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8203 (sparc_xfer_partial): Likewise.
8204 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8206 (spu_xfer_partial): Likewise.
8207 * spu-multiarch.c (spu_xfer_partial): Likewise.
8208 * tracepoint.c (tfile_xfer_partial): Likewise.
8209 * windows-nat.c (windows_xfer_memory): Likewise.
8210 (windows_xfer_shared_libraries): Likewise.
8211 (windows_xfer_partial): Likewise.
8212 * valprint.c: Replace 'target_xfer_error' with
8213 'target_xfer_status' in comments.
8215 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8217 Checked in by Joel Brobecker <brobecker@adacore.com>.
8218 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8220 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8222 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8223 function parameters.
8225 2014-02-10 Will Newton <will.newton@linaro.org>
8227 * elfread.c (elf_rel_plt_read): Look for a .got section if
8228 looking up .got.plt fails.
8229 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8230 on address passed to elf_gnu_ifunc_record_cache.
8231 (elf_gnu_ifunc_resolve_addr): Likewise.
8232 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8234 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8236 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8237 (X_RETTURN): New macro.
8238 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8240 * sparc64-tdep.c (sparc64_init_abi): Hook
8241 sparc_in_function_epilogue_p.
8243 2014-02-10 Gary Benson <gbenson@redhat.com>
8245 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8246 Rename name_matcher to symbol_matcher.
8248 2014-02-10 Gary Benson <gbenson@redhat.com>
8250 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8251 Use expand_symtabs_file_matcher_ftype and
8252 expand_symtabs_symbol_matcher_ftype.
8254 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8256 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8257 (struct ada_symbol_cache): New.
8258 (ada_free_symbol_cache): Forward declare.
8259 (struct ada_pspace_data): New.
8260 (ada_pspace_data_handle): New static global.
8261 (get_ada_pspace_data, ada_pspace_data_cleanup)
8262 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8263 (cache_space, cache): Delete, now folded inside struct
8265 (ada_get_symbol_cache): New function.
8266 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8268 (_initialize_ada_language): Remove initialization of cache_space.
8269 Move call to observer_attach_inferior_exit up, grouping it
8270 with the other observer registrations inside this function.
8271 Rename command to be more general. Add call to
8272 register_program_space_data_with_cleanup.
8274 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8276 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8277 ada_new_objfile_observer.
8278 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8279 (_initialize_tasks): Update uses of ada_new_objfile_observer
8280 and ada_tasks_normal_stop_observer.
8282 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8284 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8285 returned by the 'Length attribute to integer.
8287 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8289 * ada-lang.c (_initialize_ada_language): Initialize
8290 cache_space obstack.
8292 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8294 * ada-lang.c (HASH_SIZE): New macro.
8295 (struct cache_entry): New type.
8296 (cache_space, cache): New static globals.
8297 (ada_clear_symbol_cache, find_entry): New functions.
8298 (lookup_cached_symbol, cache_symbol): Implement.
8299 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8300 (_initialize_ada_language): Attach ada_new_objfile_observer
8301 and ada_free_objfile_observer.
8303 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8305 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8306 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8307 struct block * parameter.
8308 (ada_lookup_symbol_list_worker): Constify local variable "block".
8309 Remove cast which is no longer necessary.
8311 2014-02-10 Doug Evans <xdje42@gmail.com>
8313 Add Guile as an extension language.
8314 * NEWS: Mention Guile scripting.
8315 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8316 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8317 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8318 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8319 (CLIBS): Add GUILE_LIBS.
8320 (install-guile): New rule.
8321 (guile.o): New rule.
8322 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8323 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8324 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8325 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8326 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8327 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8328 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8329 * configure.ac: New option --with-guile.
8330 * configure: Regenerate.
8331 * config.in: Regenerate.
8332 * auto-load.c: Remove #include "python/python.h". Add #include
8333 "gdb/section-scripts.h".
8334 (source_section_scripts): Handle Guile scripts.
8335 (_initialize_auto_load): Add name of Guile objfile script to
8336 scripts-directory help text.
8337 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8338 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8339 (struct breakpoint): New member scm_bp_object.
8340 * defs.h (enum command_control_type): New value guile_control.
8341 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8343 (show_user): Update comment.
8344 (_initialize_cli_cmds): Update help text for "show user". Update help
8345 text for max-user-call-depth.
8346 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8348 (multi_line_command_p): Add guile_control.
8349 (print_command_lines): Handle guile_control.
8350 (execute_control_command, recurse_read_control_structure): Ditto.
8351 (process_next_line): Recognize "guile" commands.
8352 * disasm.c (gdb_disassemble_info): Make non-static.
8353 * disasm.h: #include "dis-asm.h".
8354 (struct gdbarch): Add forward decl.
8355 (gdb_disassemble_info): Declare.
8356 * extension.c: #include "guile/guile.h".
8357 (extension_languages): Add guile.
8358 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8359 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8360 * gdbtypes.c (get_unsigned_type_max): New function.
8361 (get_signed_type_minmax): New function.
8362 * gdbtypes.h (get_unsigned_type_max): Declare.
8363 (get_signed_type_minmax): Declare.
8364 * guile/README: New file.
8365 * guile/guile-internal.h: New file.
8366 * guile/guile.c: New file.
8367 * guile/guile.h: New file.
8368 * guile/scm-arch.c: New file.
8369 * guile/scm-auto-load.c: New file.
8370 * guile/scm-block.c: New file.
8371 * guile/scm-breakpoint.c: New file.
8372 * guile/scm-disasm.c: New file.
8373 * guile/scm-exception.c: New file.
8374 * guile/scm-frame.c: New file.
8375 * guile/scm-gsmob.c: New file.
8376 * guile/scm-iterator.c: New file.
8377 * guile/scm-lazy-string.c: New file.
8378 * guile/scm-math.c: New file.
8379 * guile/scm-objfile.c: New file.
8380 * guile/scm-ports.c: New file.
8381 * guile/scm-pretty-print.c: New file.
8382 * guile/scm-safe-call.c: New file.
8383 * guile/scm-string.c: New file.
8384 * guile/scm-symbol.c: New file.
8385 * guile/scm-symtab.c: New file.
8386 * guile/scm-type.c: New file.
8387 * guile/scm-utils.c: New file.
8388 * guile/scm-value.c: New file.
8389 * guile/lib/gdb.scm: New file.
8390 * guile/lib/gdb/boot.scm: New file.
8391 * guile/lib/gdb/experimental.scm: New file.
8392 * guile/lib/gdb/init.scm: New file.
8393 * guile/lib/gdb/iterator.scm: New file.
8394 * guile/lib/gdb/printing.scm: New file.
8395 * guile/lib/gdb/types.scm: New file.
8396 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8397 (VPATH): Add $(GUILE_SRCDIR).
8398 (GUILE_DIR): New variable.
8399 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8400 (all): Add stamp-guile dependency.
8401 (stamp-guile): New rule.
8402 (clean-guile, install-guile, uninstall-guile): New rules.
8403 (install-only): Add install-guile dependency.
8404 (uninstall): Add uninstall-guile dependency.
8405 (clean): Add clean-guile dependency.
8407 2014-02-09 Doug Evans <xdje42@gmail.com>
8409 Revert this patch (which I approved, mea culpa).
8411 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8413 * Makefile.in (all-lib): Remove.
8414 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8416 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8418 Fix Python stack corruption.
8419 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8422 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8424 * Makefile.in (all-lib): Remove.
8425 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8427 2014-02-07 Doug Evans <dje@google.com>
8429 * extension-priv.h (extension_language_script_ops): Add comment.
8430 (extension_language_ops): Add comment.
8431 (active_ext_lang_state): Fix typo in comment.
8433 2014-02-07 Pedro Alves <palves@redhat.com>
8435 PR breakpoints/16292
8436 * infrun.c (handle_signal_stop) <signal arrives while stepping
8437 over a breakpoint>: Switch back to the stepping thread.
8439 2014-02-07 Yao Qi <yao@codesourcery.com>
8441 * target.c (target_xfer_partial): Return zero if LEN is zero.
8443 2014-02-07 Yao Qi <yao@codesourcery.com>
8445 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8446 (ld_so_xfer_auxv): Likewise.
8447 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8448 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8449 * corelow.c (core_xfer_partial): Likewise.
8450 * ctf.c (ctf_xfer_partial): Likewise.
8451 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8452 (darwin_xfer_partial): Likewise.
8453 * exec.c (exec_xfer_partial): Likewise.
8454 * gnu-nat.c (gnu_xfer_partial): Likewise.
8455 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8456 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8457 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8458 * linux-nat.c (linux_xfer_siginfo): Likewise.
8459 (linux_proc_xfer_spu): Likewise.
8460 * procfs.c (procfs_xfer_partial): Likewise.
8461 * record-full.c (record_full_xfer_partial): Likewise.
8462 (record_full_core_xfer_partial): Likewise.
8463 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8464 * remote.c (remote_write_qxfer): Likewise.
8465 (remote_write_qxfer, remote_read_qxfer): Likewise.
8466 (remote_xfer_partial): Likewise.
8467 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8468 (rs6000_xfer_shared_libraries): Likewise.
8469 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8470 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8471 (spu_xfer_partial): Likewise.
8472 * target.c (memory_xfer_partial_1): Likewise.
8473 * tracepoint.c (tfile_xfer_partial): Likewise.
8474 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8475 (windows_xfer_partial): Likewise.
8477 2014-02-07 Yao Qi <yao@codesourcery.com>
8479 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8481 (core_xfer_shared_libraries_aix): Likewise.
8482 * gdbarch.c, gdbarch.h: Regenerated.
8483 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8484 ULONGEST. Change 'len_avail' type to ULONGEST.
8485 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8486 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8488 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8490 2014-02-07 Yao Qi <yao@codesourcery.com>
8492 * corefile.c (memory_error): Get 'exception' from ERR and pass
8493 'exception' to throw_error.
8495 2014-02-06 Doug Evans <xdje42@gmail.com>
8497 * configure.ac (libpython checking): Remove all but python.o from
8498 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8499 * configure: Regenerate.
8501 * Makefile.in (SFILES): Add extension.c.
8502 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8503 (COMMON_OBS): Add extension.o.
8504 * extension.h: New file.
8505 * extension-priv.h: New file.
8506 * extension.c: New file.
8508 * python/python-internal.h: #include "extension.h".
8509 (gdbpy_auto_load_enabled): Declare.
8510 (gdbpy_apply_val_pretty_printer): Declare.
8511 (gdbpy_apply_frame_filter): Declare.
8512 (gdbpy_preserve_values): Declare.
8513 (gdbpy_breakpoint_cond_says_stop): Declare.
8514 (gdbpy_breakpoint_has_cond): Declare.
8515 (void source_python_script_for_objfile): Delete.
8516 * python/python.c: #include "extension-priv.h".
8517 Delete inclusion of "observer.h".
8518 (extension_language_python): Moved here and renamed from
8519 script_language_python in py-auto-load.c.
8520 Redefined to be of type extension_language_defn.
8521 (python_extension_script_ops): New global.
8522 (python_extension_ops): New global.
8523 (struct python_env): New member previous_active.
8524 (restore_python_env): Call restore_active_ext_lang.
8525 (ensure_python_env): Call set_active_ext_lang.
8526 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8528 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8530 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8532 (gdbpy_eval_from_control_command): Renamed from
8533 eval_python_from_control_command, made static. New arg extlang.
8534 (gdbpy_source_script) Renamed from source_python_script, made static.
8536 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8537 result to int. New arg extlang.
8538 (gdbpy_source_objfile_script): Renamed from
8539 source_python_script_for_objfile, made static. New arg extlang.
8540 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8541 static. New args extlang, extlang_printers. Change result type to
8543 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8544 static. New arg extlang. Rename arg printers to extlang_printers
8545 and change type to ext_lang_type_printers *.
8546 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8547 static. Replace argument arg with extlang, extlang_printers.
8548 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8549 (!HAVE_PYTHON, source_python_script): Delete.
8550 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8551 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8552 (!HAVE_PYTHON, start_type_printers): Delete.
8553 (!HAVE_PYTHON, apply_type_printers): Delete.
8554 (!HAVE_PYTHON, free_type_printers): Delete.
8555 (_initialize_python): Delete call to observer_attach_before_prompt.
8556 (finalize_python): Set/restore active extension language.
8557 (gdbpy_finish_initialization) Renamed from
8558 finish_python_initialization, made static. New arg extlang.
8559 (gdbpy_initialized): New function.
8560 * python/python.h: #include "extension.h". Delete #include
8561 "value.h", "mi/mi-cmds.h".
8562 (extension_language_python): Declare.
8563 (GDBPY_AUTO_FILE_NAME): Delete.
8564 (enum py_bt_status): Moved to extension.h and renamed to
8566 (enum frame_filter_flags): Moved to extension.h.
8567 (enum py_frame_args): Moved to extension.h and renamed to
8568 ext_lang_frame_args.
8569 (finish_python_initialization): Delete.
8570 (eval_python_from_control_command): Delete.
8571 (source_python_script): Delete.
8572 (apply_val_pretty_printer): Delete.
8573 (apply_frame_filter): Delete.
8574 (preserve_python_values): Delete.
8575 (gdbpy_script_language_defn): Delete.
8576 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8577 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8579 * auto-load.c: #include "extension.h".
8580 (GDB_AUTO_FILE_NAME): Delete.
8581 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8582 (script_language_gdb): Delete, moved to extension.c and renamed to
8583 extension_language_gdb.
8584 (source_gdb_script_for_objfile): Delete.
8585 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8586 (loaded_script): Change type of language member to
8587 struct extension_language_defn *.
8588 (init_loaded_scripts_info): Initialize
8589 unsupported_script_warning_printed.
8590 (maybe_add_script): Make static. Change type of language arg to
8591 struct extension_language_defn *.
8592 (clear_section_scripts): Reset unsupported_script_warning_printed.
8593 (auto_load_objfile_script_1): Rewrite to use extension language API.
8594 (auto_load_objfile_script): Make public. Remove support-compiled-in
8595 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8596 (source_section_scripts): Rewrite to use extension language API.
8597 (load_auto_scripts_for_objfile): Rewrite to use
8598 auto_load_scripts_for_objfile.
8599 (collect_matching_scripts_data): Change type of language member to
8600 struct extension_language_defn *.
8601 (auto_load_info_scripts): Change type of language arg to
8602 struct extension_language_defn *.
8603 (unsupported_script_warning_print): New function.
8604 (script_not_found_warning_print): Make static.
8605 (_initialize_auto_load): Rewrite construction of scripts-directory
8607 * auto-load.h (struct objfile): Add forward decl.
8608 (struct script_language): Delete.
8609 (struct auto_load_pspace_info): Add forward decl.
8610 (struct extension_language_defn): Add forward decl.
8611 (maybe_add_script): Delete.
8612 (auto_load_objfile_script): Declare.
8613 (script_not_found_warning_print): Delete.
8614 (auto_load_info_scripts): Update prototype.
8615 (auto_load_gdb_scripts_enabled): Declare.
8616 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8617 auto_load_python_scripts_enabled and made public.
8618 (script_language_python): Delete, moved to python.c.
8619 (gdbpy_script_language_defn): Delete.
8620 (info_auto_load_python_scripts): Update to use
8621 extension_language_python.
8623 * breakpoint.c (condition_command): Replace call to
8624 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8625 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8626 with call to breakpoint_ext_lang_cond_says_stop.
8627 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8628 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8629 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8630 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8632 (local_setattro): Print name of extension language with existing
8635 * valprint.c (val_print, value_print): Update to call
8636 apply_ext_lang_val_pretty_printer.
8637 * cp-valprint.c (cp_print_value): Update call to
8638 apply_ext_lang_val_pretty_printer.
8639 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8640 (gdbpy_apply_val_pretty_printer): Renamed from
8641 apply_val_pretty_printer. New arg extlang.
8642 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8644 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8645 extension language API.
8646 * cli/cli-script.c (execute_control_command): Update to call
8647 eval_ext_lang_from_control_command.
8649 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8650 enum ext_lang_bt_status values. Update call to
8651 apply_ext_lang_frame_filter.
8652 (mi_cmd_stack_list_locals): Ditto.
8653 (mi_cmd_stack_list_args): Ditto.
8654 (mi_cmd_stack_list_variables): Ditto.
8655 * mi/mi-main.c: Delete #include "python/python-internal.h".
8656 Add #include "extension.h".
8657 (mi_cmd_list_features): Replace reference to python internal variable
8658 gdb_python_initialized with call to ext_lang_initialized_p.
8660 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8661 Update to use enum ext_lang_frame_args. Update to call
8662 apply_ext_lang_frame_filter.
8663 * python/py-framefilter.c (extract_sym): Update to use enum
8665 (extract_value, py_print_type, py_print_value): Ditto.
8666 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8667 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8668 (py_print_frame): Ditto.
8669 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8670 New arg extlang. Update to use enum ext_lang_bt_status.
8672 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8673 finish_python_initialization. Replace with call to
8674 finish_ext_lang_initialization.
8676 * typeprint.c (do_free_global_table): Update to call
8677 free_ext_lang_type_printers.
8678 (create_global_typedef_table): Update to call
8679 start_ext_lang_type_printers.
8680 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8681 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8682 (type_print_options): Change type of global_printers from "void *"
8683 to "struct ext_lang_type_printers *".
8685 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8686 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8687 (gdbpy_preserve_values): Renamed from preserve_python_values.
8689 (!HAVE_PYTHON, preserve_python_values): Delete.
8691 * utils.c (quit_flag): Delete, moved to extension.c.
8692 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8695 * eval.c: Delete #include "python/python.h".
8696 * main.c: Delete #include "python/python.h".
8698 * defs.h: Update comment.
8700 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8704 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8706 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8709 2014-02-05 Yao Qi <yao@codesourcery.com>
8711 * remote.c (remote_pass_signals): Remove local 'buf' and use
8713 (remote_program_signals): Likewise.
8715 2014-02-05 Yao Qi <yao@codesourcery.com>
8717 * ctf.c: Include "inferior.h" and "gdbthread.h".
8718 (CTF_PID): A new macro.
8719 (ctf_open): Call inferior_appeared and add_thread_silent.
8720 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8721 (ctf_thread_alive): New function.
8722 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8724 2014-02-05 Yao Qi <yao@codesourcery.com>
8728 2013-05-24 Yao Qi <yao@codesourcery.com>
8730 * tracepoint.c (TFILE_PID): Remove.
8731 (tfile_open): Don't add thread and inferior.
8732 (tfile_close): Don't set 'inferior_ptid'. Don't call
8733 exit_inferior_silent.
8734 (tfile_thread_alive): Remove.
8735 (init_tfile_ops): Don't set field 'to_thread_alive' of
8738 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8740 * remote.c (remote_start_remote): Call remote_check_symbols even
8741 if only symbol-file (not file) has been given.
8743 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8745 * gdbarch.sh (skip_entrypoint): New callback.
8746 * gdbarch.c, gdbarch.h: Regenerate.
8747 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8748 * infrun.c (fill_in_stop_func): Likewise.
8749 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8750 (ppc_elfv2_elf_make_msymbol_special): New function.
8751 (ppc_elfv2_skip_entrypoint): Likewise.
8752 (ppc_linux_init_abi): Install them for ELFv2.
8754 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8756 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8757 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8758 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8759 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8760 structures returned in GPRs.
8762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8764 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8765 offset to the stack parameter list for the ELFv2 ABI.
8767 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8769 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8770 set_gdbarch_convert_from_func_ptr_addr and
8771 set_gdbarch_elf_make_msymbol_special for ELFv1.
8772 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8773 function descriptors on ELFv1.
8774 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8775 set up r12 at function entry.
8777 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8779 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8780 (struct gdbarch_tdep): New member elf_abi.
8782 * rs6000-tdep.c: Include "elf/ppc64.h".
8783 (rs6000_gdbarch_init): Detect ELF ABI version.
8785 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8787 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8788 within a register pair holding a DFP 128-bit value on little-endian.
8789 (ppc64_sysv_abi_return_value_base): Likewise.
8790 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8791 (dfp_pseudo_register_write): Likewise.
8793 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8795 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8796 offset on little-endian when passing _Decimal32.
8797 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8799 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8801 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8802 of the overlapped FP register within the VSX register on little-
8804 (efpr_pseudo_register_write): Likewise.
8806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8808 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8809 offset on little-endian when passing small structures.
8811 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8813 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8814 (struct ppc64_sysv_argpos): New data structure.
8815 (ppc64_sysv_abi_push_float): Remove.
8816 (ppc64_sysv_abi_push_val): New function.
8817 (ppc64_sysv_abi_push_integer): Likewise.
8818 (ppc64_sysv_abi_push_freg): Likewise.
8819 (ppc64_sysv_abi_push_vreg): Likewise.
8820 (ppc64_sysv_abi_push_param): Likewise.
8821 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8822 (ppc64_sysv_abi_return_value_base): New function.
8823 (ppc64_sysv_abi_return_value): Refactor to use it.
8825 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8827 * NEWS: Document new target powerpc64le-*-linux*.
8829 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8831 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8832 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8834 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8835 register set used in ELF core dumps. Add floating-point register set.
8837 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8839 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8840 dwarf2_to_gdb[] table using symbolic constants. Adjust
8841 penultimate entry from number representing the PC register
8842 to symbolic constant representing the MDR register. Add
8843 constant for the PC register to the end of the table.
8845 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8847 * bsd-kvm.c: Include <sys/param.h>
8849 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8851 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8853 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8855 * ada-lang.h (clear_ada_sym_cache): Delete.
8857 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8859 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8861 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8863 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8864 the sigreturn register save area only if the syscall is
8867 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8869 * valops.c (value_slice): Minor reformatting.
8871 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8873 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8875 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8877 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8879 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8880 (ada_ignore_descriptive_types_p): New static global.
8881 (find_parallel_type_by_descriptive_type): Return immediately
8882 if ada_ignore_descriptive_types_p is set.
8883 (_initialize_ada_language): Register new commands "maintenance
8884 set ada", "maintenance show ada", "maintenance set ada
8885 ignore-descriptive-types" and "maintenance show ada
8886 ignore-descriptive-types".
8887 * NEWS: Add entry for new "maint ada set/show
8888 ignore-descriptive-types" commands.
8890 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8892 * record-btrace.c (record_btrace_close): Call btrace_teardown
8895 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8897 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8900 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8902 * ada-typeprint (type_is_full_subrange_of_target_type):
8904 (print_range): Add parameter bounds_prefered_p. If not set,
8905 try printing range types using the name of their base type.
8906 (print_range_type): Add parameter bounds_prefered_p.
8907 Use it in call to print_range.
8908 (print_array_type, ada_print_type): Update calls to print_range
8909 and print_range_type.
8911 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8913 * ada-typeprint.c (print_array_type, print_choices, print_range)
8914 (print_range_bound, print_dynamic_range_bound, print_range_type):
8917 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8919 * ada-typeprint.c (print_range): Add missing empty line
8920 after local declaration.
8922 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8924 * ada-valprint.c (print_optional_low_bound): Get index_type's
8925 target type for as long as it is a TYPE_CODE_RANGE.
8927 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8929 * procfs.c (procfs_make_note_section): Remove assertion and
8932 2014-01-24 Yao Qi <yao@codesourcery.com>
8934 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8935 * corelow.c (get_core_siginfo): Likewise.
8937 2014-01-24 Yao Qi <yao@codesourcery.com>
8939 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8940 ULONGEST. Don't check 'len' is negative.
8941 (remote_write_bytes): Change type of 'len' to ULONGEST.
8943 2014-01-23 Tom Tromey <tromey@redhat.com>
8946 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8947 Handle exception from frame.block.
8948 (FrameVars.fetch_frame_locals): Likewise.
8950 2014-01-23 Tom Tromey <tromey@redhat.com>
8953 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8954 on a NULL pointer. Move "goto error" to correct place.
8956 2014-01-23 Tom Tromey <tromey@redhat.com>
8959 * python/py-framefilter.c (apply_frame_filter): Call
8960 ensure_python_env after computing gdbarch.
8962 2014-01-23 Yao Qi <yao@codesourcery.com>
8964 * target.c (raw_memory_xfer_partial): Change argument type
8965 from void * to gdb_byte *.
8966 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8968 2014-01-22 Doug Evans <dje@google.com>
8970 New gdbserver option --debug-format=timestamp.
8973 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8975 * syscalls/s390x-linux.xml: New file.
8976 * syscalls/s390-linux.xml: New file.
8977 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8978 (XML_SYSCALL_FILENAME_S390X): Likewise.
8979 (op_svc): New enum value for SVC opcode.
8980 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8981 (s390_linux_get_syscall_number): New function.
8982 (s390_gdbarch_init): Register '*get_syscall_number' and the
8983 syscall xml file name.
8984 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8985 "s390-linux.xml" and "s390x-linux.xml".
8986 * NEWS: Announce new feature.
8988 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8990 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8992 2014-01-22 Pedro Alves <palves@redhat.com>
8994 * xtensa-config.c: Include defs.h.
8996 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8998 * common/common-utils.h: Add "ARI:" comment beside __func__
9001 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9003 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9004 documentation a bit.
9006 2014-01-21 Roland McGrath <mcgrathr@google.com>
9008 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9009 * configure: Regenerate.
9010 * aclocal.m4: Regenerate.
9011 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9012 New substituted variables.
9013 (install-strip): New target.
9014 (INSTALL_SCRIPT): New substituted variable.
9015 (FLAGS_TO_PASS): Add it.
9016 (install-only): Use $(INSTALL_SCRIPT) rather than
9017 $(INSTALL_PROGRAM) for gcore.
9019 2014-01-20 Tom Tromey <tromey@redhat.com>
9021 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9024 2014-01-20 Tom Tromey <tromey@redhat.com>
9026 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9027 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9028 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9029 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9030 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9031 (struct cmd_list_element) <flags>: Remove.
9032 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9033 doc_allocated>: New fields.
9034 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9036 * maint.c (maintenance_do_deprecate): Update.
9037 * top.c (execute_command): Update.
9039 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9041 * xtensa-linux-nat.c: Include asm/ptrace.h.
9043 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9045 * Makefile.in (SFILES): Add d-support.c.
9046 (COMMON_OBS): Add d-support.o.
9047 * d-lang.h (d_parse_symbol): Add comment, now defined in
9049 * d-lang.c (parse_call_convention)
9050 (parse_attributes, parse_function_types)
9051 (parse_function_args, parse_type, parse_identifier)
9052 (call_convention_p, d_parse_symbol): Move functions to ...
9053 * d-support.c: ... New file.
9055 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9057 * d-lang.h (d_parse_symbol): Add declaration.
9058 * d-lang.c (extract_identifiers)
9059 (extract_type_info): Remove functions.
9060 (parse_call_convention, parse_attributes)
9061 (parse_function_types, parse_function_args)
9062 (parse_type, parse_identifier, call_convention_p)
9063 (d_parse_symbol): New functions.
9064 (d_demangle): Use d_parse_symbol to demangle D symbols.
9066 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9068 * d-lang.h (struct builtin_d_type): New data type.
9069 (builtin_d_type): Add declaration.
9070 * d-lang.c (d_language_arch_info, build_d_types)
9071 (builtin_d_type): New functions.
9072 (enum d_primitive_types): New data type.
9073 (d_language_defn): Change c_language_arch_info to
9074 d_language_arch_info.
9075 (d_type_data): New static variable.
9076 (_initialize_d_language): Initialize d_type_data.
9078 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9080 * d-lang.h (d_main_name): Add declaration.
9081 * d-lang.c (d_main_name): New function.
9082 * symtab.c (find_main_name): Add call to d_main_name.
9084 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9086 * d-lang.c (d_language_defn): Change macro_expansion_c to
9089 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9091 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9093 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9095 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9096 gdb_exception" declaration.
9097 * remote.c (getpkt_or_notif_sane): Likewise.
9099 2014-01-17 Doug Evans <dje@google.com>
9101 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9102 function, contents of dirnames_to_char_ptr_vec_append moved here.
9103 (delim_string_to_char_ptr_vec): New function.
9104 (dirnames_to_char_ptr_vec_append): Rewrite.
9105 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9107 2014-01-17 Doug Evans <dje@google.com>
9109 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9111 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9112 #include "common-utils.h".
9113 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9114 * common/vec.h (VEC_ASSERT_PASS): Update.
9115 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9116 (MACH_CHECK_ERROR): Update.
9118 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9120 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9122 * gdbarch.h: Regenerate.
9124 2014-01-16 Tom Tromey <tromey@redhat.com>
9126 * value.c (struct value) <regnum>: Move earlier.
9128 2014-01-16 Tom Tromey <tromey@redhat.com>
9130 * remote.c (extended_remote_create_inferior): Rename from
9131 extended_remote_create_inferior_1. Add "ops" argument. Remove
9134 2014-01-16 Pedro Alves <palves@redhat.com>
9136 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9137 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9140 2014-01-16 Doug Evans <dje@google.com>
9142 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9146 * btrace.h (btrace_thread_flag): New.
9147 (struct btrace_thread_info) <flags>: New.
9148 * record-btrace.c (record_btrace_resume_thread)
9149 (record_btrace_find_thread_to_move, btrace_step_no_history)
9150 (btrace_step_stopped, record_btrace_start_replaying)
9151 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9152 (record_btrace_find_resume_thread): New.
9153 (record_btrace_resume, record_btrace_wait): Extend.
9154 (record_btrace_can_execute_reverse): New.
9155 (record_btrace_open): Fail in non-stop mode.
9156 (record_btrace_set_replay): Split into this, ...
9157 (record_btrace_stop_replaying): ... this, ...
9158 (record_btrace_clear_histories): ... and this.
9159 (init_record_btrace_ops): Init to_can_execute_reverse.
9160 * NEWS: Announce it.
9162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9164 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9165 (forward_target_decr_pc_after_break)
9166 (target_decr_pc_after_break): New.
9167 * target.c (forward_target_decr_pc_after_break)
9168 (target_decr_pc_after_break): New.
9169 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9170 instead of gdbarch_decr_pc_after_break.
9171 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9172 instead of gdbarch_decr_pc_after_break.
9173 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9174 instead of gdbarch_decr_pc_after_break.
9175 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9176 instead of gdbarch_decr_pc_after_break.
9177 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9178 instead of gdbarch_decr_pc_after_break.
9179 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9180 instead of gdbarch_decr_pc_after_break.
9182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9184 * btrace.c: Include regcache.h.
9185 (btrace_add_pc): New.
9186 (btrace_enable): Call btrace_add_pc.
9187 (btrace_is_empty): New.
9188 * btrace.h (btrace_is_empty): New.
9189 * record-btrace.c (require_btrace, record_btrace_info): Call
9192 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9194 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9195 Support delta reads.
9196 (linux_disable_btrace): Change return type.
9197 * common/linux-btrace.h (linux_read_btrace): Change parameters
9198 and return type to allow error reporting. Update users.
9199 (linux_disable_btrace): Change return type. Update users.
9200 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9202 (btrace_error): New.
9203 (btrace_block) <begin>: Comment on BEGIN == 0.
9204 * btrace.c (btrace_compute_ftrace): Start from the end of
9206 (btrace_stitch_trace, btrace_clear_history): New.
9207 (btrace_fetch): Read delta trace, return if replaying.
9208 (btrace_clear): Move clear history code to btrace_clear_history.
9209 (parse_xml_btrace): Throw an error if parsing failed.
9210 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9211 and return type to allow error reporting.
9212 (target_read_btrace): Change parameters and return type to allow
9214 * target.c (target_read_btrace): Update.
9215 * remote.c (remote_read_btrace): Support delta reads. Pass
9217 * NEWS: Announce it.
9219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9221 * record.h (record_btrace_frame_unwind)
9222 (record_btrace_tailcall_frame_unwind): New declarations.
9223 * dwarf2-frame: Include record.h
9224 (dwarf2_frame_cfa): Throw an error for btrace frames.
9225 * record-btrace.c: Include hashtab.h.
9226 (btrace_get_bfun_name): New.
9227 (btrace_call_history): Call btrace_get_bfun_name.
9228 (struct btrace_frame_cache): New.
9230 (bfcache_hash, bfcache_eq, bfcache_new): New.
9231 (btrace_get_frame_function): New.
9232 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9233 (record_btrace_frame_this_id): Compute own id.
9234 (record_btrace_frame_prev_register): Provide PC, throw_error
9235 for all other registers.
9236 (record_btrace_frame_sniffer): Detect btrace frames.
9237 (record_btrace_tailcall_frame_sniffer): New.
9238 (record_btrace_frame_dealloc_cache): New.
9239 (record_btrace_frame_unwind): Add new functions.
9240 (record_btrace_tailcall_frame_unwind): New.
9241 (_initialize_record_btrace): Allocate cache.
9242 * btrace.c (btrace_clear): Call reinit_frame_cache.
9243 * NEWS: Announce it.
9245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9247 * record-btrace.c (record_btrace_set_replay)
9248 (record_btrace_goto_begin, record_btrace_goto_end)
9249 (record_btrace_goto): New.
9250 (init_record_btrace_ops): Initialize them.
9251 * NEWS: Announce it.
9253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9255 * record-btrace.c (record_btrace_find_new_threads)
9256 (record_btrace_thread_alive): New.
9257 (init_record_btrace_ops): Initialize to_find_new_threads and
9260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9262 * record-btrace.c (record_btrace_resume): New.
9263 (record_btrace_wait): New.
9264 (init_record_btrace_ops): Initialize to_wait and to_resume.
9266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9268 * record-btrace.c (record_btrace_xfer_partial)
9269 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9270 (record_btrace_allow_memory_access): New.
9271 (init_record_btrace_ops): Initialize new methods.
9272 * target.c (raw_memory_xfer_partial): Bail out if target reports
9273 that this memory is not available.
9275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9277 * target.h (target_ops) <to_insert_breakpoint>
9278 <to_remove_breakpoint>: Add target_ops parameter.
9279 (forward_target_insert_breakpoint): New.
9280 (forward_target_remove_breakpoint): New.
9281 (memory_remove_breakpoint, memory_insert_breakpoint):
9282 Add target_ops parameter.
9283 * target.c (target_insert_breakpoint): Split into this and ...
9284 (forward_target_insert_breakpoint): ... this.
9285 (target_remove_breakpoint): Split into this and ...
9286 (forward_target_remove_breakpoint): ... this.
9287 (debug_to_insert_breakpoint): Add target_ops parameter.
9288 Call forward_target_insert_breakpoint.
9289 (debug_to_remove_breakpoint): Add target_ops parameter.
9290 Call forward_target_remove_breakpoint.
9291 (update_current_target): Do not inherit or default to_insert_breakpoint
9292 and to_remove_breakpoint.
9293 * corelow.c (ignore): Add target_ops parameter.
9294 * exec.c (ignore): Add target_ops parameter.
9295 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9296 Add target_ops parameter.
9297 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9298 Add target_ops parameter.
9299 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9300 Add target_ops parameter.
9301 * record-full.c (record_full_beneath_to_insert_breakpoint)
9302 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9303 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9304 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9305 (record_full_core_remove_breakpoint): Add target_ops parameter.
9307 (record_full_beneath_to_insert_breakpoint_ops)
9308 (record_full_beneath_to_remove_breakpoint_ops)
9309 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9310 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9311 tmp_to_remove_breakpoint_ops,
9312 record_full_beneath_to_insert_breakpoint_ops, and
9313 record_full_beneath_to_remove_breakpoint_ops.
9314 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9315 (m32r_remove_breakpoint): Add target_ops parameter.
9316 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9317 Add target_ops parameter.
9318 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9319 Add target_ops parameter.
9321 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9322 Markus Metzger <markus.t.metzger@intel.com>
9324 * record-btrace.c: Include frame-unwind.h.
9325 (record_btrace_frame_unwind_stop_reason)
9326 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9327 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9329 (init_record_btrace_ops): Install it.
9331 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9333 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9336 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9338 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9341 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9343 * frame-unwind.c: Include target.h.
9344 (frame_unwind_try_unwinder): New function with code from ...
9345 (frame_unwind_find_by_frame): ... here. New variable
9346 unwinder_from_target, call also target_get_unwinder)
9347 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9348 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9349 * target.h (struct target_ops): New fields to_get_unwinder and
9350 to_get_tailcall_unwinder.
9351 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9355 * record-btrace.c (record_btrace_fetch_registers)
9356 (record_btrace_store_registers)
9357 (record_btrace_to_prepare_to_store): New.
9358 (init_record_btrace_ops): Add the above.
9360 2014-01-16 Tom Tromey <tromey@redhat.com>
9362 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9363 * target.h (struct target_ops) <to_prepare_to_store>: Add
9365 (target_prepare_to_store): Add argument.
9366 * target.c (debug_to_prepare_to_store): Add argument.
9367 (update_current_target): Update.
9368 * remote.c (remote_prepare_to_store): Add 'self' argument.
9369 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9370 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9371 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9372 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9374 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9375 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9376 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9377 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9378 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9382 * btrace.h (replay) <replay>: New.
9383 (btrace_is_replaying): New.
9384 * btrace.c (btrace_clear): Free replay iterator.
9385 (btrace_is_replaying): New.
9386 * record-btrace.c (record_btrace_is_replaying): New.
9387 (record_btrace_info): Print insn number if replaying.
9388 (record_btrace_insn_history): Start at replay position.
9389 (record_btrace_call_history): Start at replay position.
9390 (init_record_btrace_ops): Init to_record_is_replaying.
9392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9394 * record-btrace.c (record_btrace_insn_history_range): Include
9396 (record_btrace_insn_history_from): Adjust range.
9397 (record_btrace_call_history_range): Include
9399 (record_btrace_call_history_from): Adjust range.
9400 * NEWS: Announce changes.
9402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9404 * record.h (enum record_print_flag)
9405 <record_print_indent_calls>: New.
9406 * record.c (get_call_history_modifiers): Recognize /c modifier.
9407 (_initialize_record): Document /c modifier.
9408 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9409 Reorder fields. Optionally indent the function name. Update
9411 * NEWS: Announce changes.
9413 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9415 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9419 * btrace.c (ftrace_new_function): Start counting at one.
9420 * record-btrace.c (record_btrace_info): Adjust number of calls
9422 * NEWS: Announce it.
9424 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9426 * record-btrace.c (btrace_call_history_insn_range): Print
9427 insn range as [begin, end].
9429 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9431 * btrace.h (struct btrace_func_link): New.
9432 (enum btrace_function_flag): New.
9433 (struct btrace_inst): Rename to ...
9434 (struct btrace_insn): ...this. Update all users.
9435 (struct btrace_func) <ibegin, iend>: Remove.
9436 (struct btrace_func_link): New.
9437 (struct btrace_func): Rename to ...
9438 (struct btrace_function): ...this. Update all users.
9439 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9440 (number, level, flags>: New.
9441 (struct btrace_insn_iterator): Rename to ...
9442 (struct btrace_insn_history): ...this.
9444 (struct btrace_insn_iterator, btrace_call_iterator): New.
9445 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9446 (struct btrace_target_info) <begin, end, level>
9447 <insn_history, call_history>: New.
9448 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9449 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9450 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9451 (btrace_call_number, btrace_call_begin, btrace_call_end)
9452 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9453 (btrace_find_function_by_number, btrace_set_insn_history)
9454 (btrace_set_call_history): New.
9455 * btrace.c (btrace_init_insn_iterator)
9456 (btrace_init_func_iterator, compute_itrace): Remove.
9457 (ftrace_print_function_name, ftrace_print_filename)
9458 (ftrace_skip_file): Change
9460 (ftrace_init_func): Remove.
9461 (ftrace_debug): Use new btrace_function fields.
9462 (ftrace_function_switched): Also consider gaining and
9463 losing symbol information).
9464 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9465 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9466 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9468 (ftrace_new_function): Move. Remove debug print.
9469 (ftrace_update_lines, ftrace_update_insns): New.
9470 (ftrace_update_function): Check for call, ret, and jump.
9471 (compute_ftrace): Renamed to ...
9472 (btrace_compute_ftrace): ...this. Rewritten to compute call
9474 (btrace_fetch, btrace_clear): Updated.
9475 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9476 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9477 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9478 (btrace_call_number, btrace_call_begin, btrace_call_end)
9479 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9480 (btrace_find_function_by_number, btrace_set_insn_history)
9481 (btrace_set_call_history): New.
9482 * record-btrace.c (require_btrace): Use new btrace thread
9484 (record_btrace_info, btrace_insn_history)
9485 (record_btrace_insn_history, record_btrace_insn_history_range):
9486 Use new btrace thread info fields and new iterator.
9487 (btrace_func_history_src_line): Rename to ...
9488 (btrace_call_history_src_line): ...this. Use new btrace
9490 (btrace_func_history): Rename to ...
9491 (btrace_call_history): ...this. Use new btrace thread info
9492 fields and new iterator.
9493 (record_btrace_call_history, record_btrace_call_history_range):
9494 Use new btrace thread info fields and new iterator.
9496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9498 * frame.h (frame_id_build_unavailable_stack_special): New.
9499 * frame.c (frame_id_build_unavailable_stack_special): New.
9501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9503 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9504 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9505 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9507 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9508 (i386_insn_is_jump, i386_jmp_p): New.
9509 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9510 insn_is_jump to gdbarch.
9511 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9512 * gdbarch.h: Regenerated.
9513 * gdbarch.c: Regenerated.
9514 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9515 (default_insn_is_jump): New.
9516 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9517 (default_insn_is_jump): New.
9519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9521 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9523 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9524 (btrace_read_type) <btrace_read_new>: Change to ...
9525 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9529 * common/linux-btrace.c (linux_read_btrace): Free trace from
9532 2014-01-15 Doug Evans <dje@google.com>
9534 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9537 2014-01-15 Tom Tromey <tromey@redhat.com>
9539 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9540 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9541 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9542 (set_objfile_main_name): New function.
9543 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9544 language_of_main>: New fields.
9545 (set_objfile_main_name): Declare.
9546 * symtab.c (find_main_name): Loop over objfiles to find the main
9548 (set_main_name): Now static.
9549 (get_main_info): Add comment.
9550 * symtab.h (set_main_name): Don't declare.
9552 2014-01-15 Tom Tromey <tromey@redhat.com>
9554 * symtab.c (main_progspace_key): New global.
9555 (struct main_info): New.
9556 (name_of_main, language_of_main): Remove.
9557 (get_main_info, main_info_cleanup): New function.
9558 (set_main_name, main_name, main_language): Use get_main_info.
9559 (_initialize_symtab): Initialize main_progspace_key.
9561 2014-01-15 Tom Tromey <tromey@redhat.com>
9563 * dbxread.c (process_one_symbol): Update.
9564 * dwarf2read.c (read_partial_die): Update.
9565 * symfile.c (set_initial_language): Call main_language.
9566 * symtab.c (language_of_main): Now static.
9567 (set_main_name): Add 'lang' parameter.
9568 (find_main_name): Update.
9569 (main_language): New function.
9570 (symtab_observer_executable_changed): Update.
9571 * symtab.h (set_main_name): Update.
9572 (language_of_main): Remove.
9573 (main_language): Declare.
9575 2014-01-15 Tom Tromey <tromey@redhat.com>
9577 * symfile.c (init_entry_point_info): Use new "initialized" field.
9579 * objfiles.h (struct entry_point) <initialized>: New field.
9580 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9581 (struct objfile) <ei>: ...here. Remove.
9582 * objfiles.c (entry_point_address_query): Update.
9584 2014-01-15 Tom Tromey <tromey@redhat.com>
9586 * objfiles.c (entry_point_address_query): Relocate entry point
9588 (objfile_relocate1): Do not relocate entry point address.
9589 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9590 <the_bfd_section_index>: New field.
9591 * symfile.c (init_entry_point_info): Find the entry point's
9594 2014-01-15 Tom Tromey <tromey@redhat.com>
9596 * solib-frv.c (enable_break): Use entry_point_address_query.
9598 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9600 * NEWS: Add note on improved process record-replay on
9601 arm*-linux* targets.
9603 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9605 * arm-tdep.c (enum arm_record_result): New enum.
9606 (arm_record_unsupported_insn): New function.
9607 (arm_record_coproc_data_proc): Removed.
9608 (thumb2_record_ld_st_multiple): New function.
9609 (thumb2_record_ld_st_dual_ex_tbb): New function.
9610 (thumb2_record_data_proc_sreg_mimm): New function.
9611 (thumb2_record_ps_dest_generic): New function.
9612 (thumb2_record_branch_misc_cntrl): New function.
9613 (thumb2_record_str_single_data): New function.
9614 (thumb2_record_ld_mem_hints): New function.
9615 (thumb2_record_ld_word): New function.
9616 (thumb2_record_lmul_lmla_div): New function.
9617 (thumb2_record_decode_insn_handler): New function.
9618 (decode_insn): Add thumb32 instruction handlers.
9620 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9622 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9623 (struct arm_linux_record_tdep): Declare.
9624 (arm_canonicalize_syscall): New function.
9625 (arm_all_but_pc_registers_record): New function.
9626 (arm_linux_syscall_record): New function.
9627 (arm_linux_init_abi): Add syscall recording constructs.
9628 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9629 decoding. (arm_record_coproc_data_proc): Update arm syscall
9631 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9632 <arm_syscall_record>: New field.
9633 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9636 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9638 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9639 register for push instruction recording.
9641 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9643 * arm-tdep.c (thumb_record_misc): Update to correct logical
9644 error while recording ldm, ldmia and pop instructions.
9646 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9648 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9650 2014-01-15 Pedro Alves <palves@redhat.com>
9652 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9653 (go32_resume, go32_fetch_registers, store_register)
9654 (go32_store_registers, go32_prepare_to_store)
9655 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9656 (go32_create_inferior, go32_can_run, go32_terminal_init)
9657 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9660 2014-01-15 Tom Tromey <tromey@redhat.com>
9662 * target.h (async_callback_ftype): New typedef.
9663 (struct target_ops) <to_async>: Use it.
9665 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9667 * python/py-value.c (get_field_type): Remove unnecessary curly
9668 braces for single-statement if block.
9670 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9672 * python/py-type.c (convert_field): Add missing empty line
9675 2014-01-14 Doug Evans <dje@google.com>
9677 * symfile.h (expand_symtabs_matching): Renamed from
9678 expand_partial_symbol_names. Update prototype.
9679 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9680 * symfile.c (expand_symtabs_matching): Renamed from
9681 expand_partial_symbol_names. New args file_matcher, kind.
9682 Rename arg fun to symbol_matcher.
9683 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9684 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9685 ada_expand_partial_symbol_name.
9686 (ada_make_symbol_completion_list): Update to call
9687 expand_symtabs_matching.
9688 (ada_add_global_exceptions): Call expand_symtabs_matching.
9689 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9690 call map_symbol_filenames.
9691 * symtab.c (sources_info): Update to call map_symbol_filenames.
9692 (search_symbols): Call expand_symtabs_matching.
9693 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9694 (default_make_symbol_completion_list_break_on): Update to call
9695 expand_symtabs_matching.
9696 (make_source_files_completion_list): Update to call
9697 map_symbol_filenames.
9699 2014-01-14 Doug Evans <dje@google.com>
9701 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9702 (expand_symtabs_symbol_matcher_ftype): New typedef.
9703 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9705 * symfile.c (expand_partial_symbol_names): Update to use
9706 expand_symtabs_symbol_matcher_ftype.
9707 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9708 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9709 Arg name_matcher renamed to symbol_matcher.
9710 * psymtab.c (recursively_search_psymtabs): Update to use
9711 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9713 (expand_symtabs_matching_via_partial): Update to use
9714 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9715 Arg name_matcher renamed to symbol_matcher.
9717 2014-01-14 Doug Evans <dje@google.com>
9719 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9720 (map_partial_symbol_filenames): Ditto.
9721 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9722 (map_partial_symbol_filenames): Ditto.
9723 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9724 (map_partial_symbol_filenames): Ditto.
9725 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9726 (map_partial_symbol_filenames): Ditto.
9727 * symtab.c: Delete #include "psymtab.h".
9729 2014-01-14 Pedro Alves <palves@redhat.com>
9730 Tom Tromey <tromey@redhat.com>
9732 * infrun.c (use_displaced_stepping): Use find_record_target
9733 instead of RECORD_IS_USED.
9734 (adjust_pc_after_break): Use record_full_is_used instead of
9736 * record-btrace.c (record_btrace_open): Call record_preopen
9737 instead of checking RECORD_IS_USED.
9738 * record-full.c (record_full_shortname)
9739 (record_full_core_shortname): New globals.
9740 (record_full_is_used): New function.
9741 (find_full_open): Call record_preopen instead of checking
9743 (init_record_full_ops): Set the target's shortname to
9744 record_full_shortname.
9745 (init_record_full_core_ops): Set the target's shortname to
9746 record_full_core_shortname.
9747 * record-full.h (record_full_is_used): Declare.
9748 * record.c (find_record_target): Make extern.
9749 (record_preopen): New function.
9750 * record.h (RECORD_IS_USED): Delete macro.
9751 (find_record_target, record_preopen): Declare functions.
9753 2014-01-14 Yao Qi <yao@codesourcery.com>
9755 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9756 'len''s type to ULONGEST.
9757 (core_xfer_shared_libraries_aix): Likewise.
9758 * gdbarch.c, gdbarch.h: Regenerated.
9759 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9760 Change type of 'len' to ULONGEST.
9761 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9762 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9764 2014-01-14 Yao Qi <yao@codesourcery.com>
9766 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9767 type of 'len' to ULONGEST.
9768 (linux_xfer_osdata_processgroups): Likewise.
9769 (linux_xfer_osdata_threads): Likewise.
9770 (linux_xfer_osdata_fds): Likewise.
9771 (linux_xfer_osdata_isockets): Likewise.
9772 (linux_xfer_osdata_shm): Likewise.
9773 (linux_xfer_osdata_sem): Likewise.
9774 (linux_xfer_osdata_msg): Likewise.
9775 (linux_common_xfer_osdata): Likewise.
9776 (struct osdata_type) <getter>: Likewise.
9777 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9780 2014-01-14 Yao Qi <yao@codesourcery.com>
9782 * target.h (target_xfer_partial_ftype): Update.
9783 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9785 * aix-thread.c (aix_thread_xfer_partial): Change type of
9786 argument 'len' to ULONGEST.
9787 * auxv.c (procfs_xfer_auxv): Likewise.
9788 (ld_so_xfer_auxv): Likewise.
9789 (memory_xfer_auxv): Likewise.
9790 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9791 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9792 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9793 * corelow.c (core_xfer_partial): Likewise.
9794 * ctf.c (ctf_xfer_partial): Likewise.
9795 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9797 (darwin_read_dyld_info): Likewise.
9798 (darwin_xfer_partial): Likewise.
9799 * exec.c (section_table_xfer_memory_partial): Likewise.
9800 (exec_xfer_partial): Likewise.
9801 * exec.h (section_table_xfer_memory_partial): Update
9803 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9804 instead of plongest.
9805 (gnu_xfer_partial): Likewise.
9806 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9807 (ia64_hpux_xfer_solib_got): Likewise.
9808 (ia64_hpux_xfer_partial): Likewise.
9809 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9810 * inf-ptrace.c (inf_ptrace_xfer_partial):
9811 * inf-ttrace.c (inf_ttrace_xfer_partial):
9812 * linux-nat.c (linux_xfer_siginfo): Likewise.
9813 (linux_nat_xfer_partial): Likewise.
9814 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9815 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9816 * monitor.c (monitor_xfer_memory): Likewise.
9817 (monitor_xfer_partial): Likewise.
9818 * procfs.c (procfs_xfer_partial): Likewise.
9819 * record-full.c (record_full_xfer_partial): Likewise.
9820 (record_full_core_xfer_partial): Likewise.
9821 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9822 instead of plongest.
9823 (gdbsim_xfer_partial): Likewise.
9824 * remote.c (remote_xfer_partial): Likewise.
9825 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9826 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9828 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9829 (rs6000_xfer_shared_libraries): Likewise.
9830 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9831 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9832 (sparc_xfer_partial): Likewise.
9833 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9834 (spu_xfer_partial): Likewise.
9835 * spu-multiarch.c (spu_xfer_partial): Likewise.
9836 * target.c (target_read_live_memory): Likewise.
9837 (memory_xfer_live_readonly_partial): Likewise.
9838 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9839 (target_xfer_partial, default_xfer_partial): Likewise.
9840 (current_xfer_partial): Likewise.
9841 * tracepoint.c (tfile_xfer_partial): Likewise.
9842 * windows-nat.c (windows_xfer_memory): Likewise. Call
9843 pulongest instead of plongest.
9844 (windows_xfer_partial): Likewise.
9845 (windows_xfer_shared_libraries): Likewise.
9847 2014-01-14 Yao Qi <yao@codesourcery.com>
9849 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9850 target_xfer_partial_ftype.
9852 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9856 * valops.c (value_struct_elt_bitpos): New function
9857 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9858 object to 'None' if the field name is an empty string ("").
9859 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9860 attribute to look for a field when 'name' is 'None'.
9861 (get_field_type): New function
9863 2014-01-13 Doug Evans <dje@google.com>
9866 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9867 (try_open_dwop_file): Ditto.
9868 * gdb_bfd.c: #include "vec.h".
9869 (bfdp): New typedef.
9870 (struct gdb_bfd_data): New member included_bfds.
9871 (gdb_bfd_unref): Unref all included bfds.
9872 (gdb_bfd_record_inclusion): New function.
9873 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9875 2014-01-13 Tom Tromey <tromey@redhat.com>
9877 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9879 2014-01-13 Tom Tromey <tromey@redhat.com>
9881 * defs.h (use_windows): Remove.
9882 * gdb.c (main): Update.
9883 * main.c (captured_main, gdb_main): Update.
9884 * main.h (struct captured_main_args) <use_windows>: Remove.
9885 * top.c (use_windows): Remove.
9887 2014-01-13 Tom Tromey <tromey@redhat.com>
9889 * defs.h (deprecated_flush_hook): Remove.
9891 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9894 * linux-thread-db.c (try_thread_db_load): Add parameter
9895 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9896 (try_thread_db_load_from_pdir_1): Move it there from here.
9897 (try_thread_db_load_from_sdir): Update caller.
9898 (try_thread_db_load_from_dir): Move it there from here.
9900 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9902 * regformats/regdat.sh: Always rewrite the register file.
9904 2014-01-13 Pedro Alves <palves@redhat.com>
9906 * Makefile.in (CHECK_HEADERS): New variable.
9907 (check-headers:): New rule.
9909 2014-01-13 Tom Tromey <tromey@redhat.com>
9911 * cli/cli-setshow.c (do_set_command): Update.
9912 * defs.h (deprecated_set_hook): Remove.
9913 * top.c (deprecated_set_hook): Remove.
9915 2014-01-13 Pedro Alves <palves@redhat.com>
9917 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9918 the tracepoint if the PC is a pseudo-register.
9920 2014-01-13 Tom Tromey <tromey@redhat.com>
9922 * defs.h (XCALLOC): Remove.
9923 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9924 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9925 * dwarf2loc.c (allocate_piece_closure): Likewise.
9926 * elfread.c (elf_symfile_segments): Likewise.
9927 (elf_symfile_segments): Likewise.
9928 * gdbtypes.c (copy_type_recursive): Likewise.
9929 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9930 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9931 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9933 * mt-tdep.c (mt_gdbarch_init): Likewise.
9934 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9936 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9937 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9938 * registry.c (registry_alloc_data): Likewise.
9939 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9940 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9941 * serial.c (serial_fdopen_ops): Likewise.
9942 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9944 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9945 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9948 2014-01-13 Tom Tromey <tromey@redhat.com>
9950 * defs.h (XMALLOC): Remove.
9951 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9952 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9953 * cli-out.c (struct ui_out *): Likewise.
9954 * cli/cli-dump.c (add_dump_command): Likewise.
9955 (add_dump_command): Likewise.
9956 * complaints.c (get_complaints): Likewise.
9957 (find_complaint): Likewise.
9958 * dwarf2-frame.c (execute_cfa_program): Likewise.
9959 * dwarf2read.c (abbrev_table_read_table): Likewise.
9960 * gdbarch.sh: Likewise.
9961 * gdbarch.c: Rebuild.
9962 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9963 * interps.c (interp_new): Likewise.
9964 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9965 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9966 * mi/mi-console.c (mi_console_file_new): Likewise.
9967 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9968 * mi/mi-out.c (mi_out_new): Likewise.
9969 * mi/mi-parse.c (mi_parse): Likewise.
9970 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9971 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9972 * observer.c (xalloc_observer_list_node): Likewise.
9973 * regcache.c (regcache_xmalloc_1): Likewise.
9974 * reggroups.c (reggroup_new): Likewise.
9975 (_initialize_reggroup): Likewise.
9976 * registry.c (register_data_with_cleanup): Likewise.
9977 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9978 * ser-base.c (serial_ttystate): Likewise.
9979 * ser-mingw.c (make_pipe_state): Likewise.
9980 * ser-pipe.c (pipe_open): Likewise.
9981 * serial.c (serial_open): Likewise.
9982 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9983 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9984 (tui_alloc_win_info): Likewise.
9985 (tui_add_content_elements): Likewise.
9986 * tui/tui-file.c (tui_file_new): Likewise.
9987 * tui/tui-out.c (tui_out_new): Likewise.
9988 * ui-file.c (mem_file_new): Likewise.
9989 * ui-out.c (push_level): Likewise.
9990 (make_cleanup_ui_out_end): Likewise.
9991 (append_header_to_list): Likewise.
9992 (ui_out_new): Likewise.
9993 * user-regs.c (user_reg_add_builtin): Likewise.
9995 2014-01-13 Tom Tromey <tromey@redhat.com>
9997 * defs.h (XZALLOC): Remove.
9998 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9999 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10000 (get_ada_tasks_inferior_data): Likewise.
10001 * auto-load.c (get_auto_load_pspace_data): Likewise.
10002 * auxv.c (get_auxv_inferior_data): Likewise.
10003 * bfd-target.c (target_bfd_reopen): Likewise.
10004 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10005 (deprecated_insert_raw_breakpoint): Likewise.
10006 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10007 * corelow.c (core_open): Likewise.
10008 * darwin-nat.c (darwin_check_new_threads): Likewise.
10009 (darwin_attach_pid): Likewise.
10010 * dummy-frame.c (dummy_frame_push): Likewise.
10011 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10012 * dwarf2loc.c (allocate_piece_closure): Likewise.
10013 * elfread.c (elf_symfile_segments): Likewise.
10014 * eval.c (ptrmath_type_p): Likewise.
10015 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10016 * gdbtypes.c (alloc_type_arch): Likewise.
10017 (alloc_type_instance): Likewise.
10018 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10019 * inf-child.c (inf_child_can_use_agent): Likewise.
10020 * inflow.c (get_inflow_inferior_data): Likewise.
10021 * infrun.c (save_infcall_suspend_state): Likewise.
10022 * jit.c (jit_reader_load): Likewise.
10023 (get_jit_objfile_data): Likewise.
10024 (get_jit_program_space_data): Likewise.
10025 (jit_object_open_impl): Likewise.
10026 (jit_symtab_open_impl): Likewise.
10027 (jit_block_open_impl): Likewise.
10028 (jit_frame_sniffer): Likewise.
10029 * linux-fork.c (add_fork): Likewise.
10030 * maint.c (make_command_stats_cleanup): Likewise.
10031 * objfiles.c (get_objfile_pspace_data): Likewise.
10032 * opencl-lang.c (struct lval_closure): Likewise.
10033 * osdata.c (osdata_start_osdata): Likewise.
10034 * progspace.c (new_address_space): Likewise.
10035 (add_program_space): Likewise.
10036 * remote-sim.c (get_sim_inferior_data): Likewise.
10037 * sh-tdep.c (sh_gdbarch_init): Likewise.
10038 * skip.c (Ignore): Likewise.
10039 (skip_delete_command): Likewise.
10040 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10041 (library_list_start_library): Likewise.
10042 (solib_aix_current_sos): Likewise.
10043 * solib-darwin.c (get_darwin_info): Likewise.
10044 (darwin_current_sos): Likewise.
10045 * solib-dsbt.c (get_dsbt_info): Likewise.
10046 * solib-ia64-hpux.c (new_so_list): Likewise.
10047 (ia64_hpux_get_solib_linkage_addr): Likewise.
10048 * solib-spu.c (append_ocl_sos): Likewise.
10049 (spu_current_sos): Likewise.
10050 * solib-svr4.c (get_svr4_info): Likewise.
10051 (svr4_keep_data_in_core): Likewise.
10052 (library_list_start_library): Likewise.
10053 (svr4_default_sos): Likewise.
10054 (svr4_read_so_list): Likewise.
10055 * solib-target.c (library_list_start_library): Likewise.
10056 (solib_target_current_sos): Likewise.
10057 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10058 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10059 * symfile.c (default_symfile_segments): Likewise.
10060 * target-descriptions.c (tdesc_data_init): Likewise.
10061 (tdesc_create_reg): Likewise.
10062 (struct tdesc_type *): Likewise.
10063 (tdesc_create_vector): Likewise.
10064 (tdesc_set_struct_size): Likewise.
10065 (struct tdesc_type *): Likewise.
10066 (tdesc_free_feature): Likewise.
10067 (tdesc_create_feature): Likewise.
10068 * windows-nat.c (windows_add_thread): Likewise.
10069 (windows_make_so): Likewise.
10070 * xml-support.c (gdb_xml_body_text): Likewise.
10071 (gdb_xml_create_parser_and_cleanup): Likewise.
10072 (xml_process_xincludes): Likewise.
10073 * xml-syscall.c (allocate_syscalls_info): Likewise.
10074 (syscall_create_syscall_desc): Likewise.
10076 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10078 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10079 function, with code from i386_stap_parse_special_token.
10080 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10081 (i386_stap_parse_special_token): Move code to the two functions
10082 above; simplify it.
10084 2014-01-09 Pedro Alves <palves@redhat.com>
10085 Hui Zhu <hui@codesourcery.com>
10088 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10089 bp_err_string. Don't mark the location shlib_disabled if the
10090 error thrown wasn't a generic or memory error. Catch errors
10091 thrown while inserting breakpoints in overlayed code. Output
10092 error message of software breakpoints.
10093 * remote.c (remote_insert_breakpoint): If this breakpoint has
10094 target-side commands but this stub doesn't support Z0 packets,
10095 throw NOT_SUPPORTED_ERROR error.
10096 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10097 * target.h (target_insert_breakpoint): Extend comment.
10098 (target_insert_hw_breakpoint): Add comment.
10100 2014-01-08 Pedro Alves <palves@redhat.com>
10102 * remote.c (remote_add_thread): Add threads silently if starting
10104 (remote_notice_new_inferior): If in all-stop, and starting up,
10105 don't call notice_new_inferior.
10106 (get_current_thread): New function, factored out from ...
10107 (add_current_inferior_and_thread): ... this. Adjust.
10108 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10109 found any thread, then select the remote's current thread as GDB's
10110 current thread too.
10112 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10114 * NEWS: Create a new section for the next release branch.
10115 Rename the section of the current branch, now that it has
10118 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10120 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10121 * version.in: Bump version to 7.7.50.DATE-cvs.
10123 2014-01-08 Yao Qi <yao@codesourcery.com>
10125 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10126 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10127 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10129 2014-01-08 Yao Qi <yao@codesourcery.com>
10131 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10132 return value of bfd_get_filename to symbol_file_add_from_bfd.
10134 2014-01-08 Pierre Muller <muller@sourceware.org>
10137 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10138 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10139 to prim_record_mininal_symbol_and_info.
10140 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10141 in call to prim_record_minimal_symbol_and_info.
10142 (read_pe_exported_syms): Set index field of section_data.
10144 2014-01-07 Andrew Pinski <apinski@cavium.com>
10146 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10147 * features/aarch64.c: Regenerate.
10149 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10151 * target.c (return_null): Define.
10152 (update_current_target): Use it instead of return_zero for
10153 functions that return a pointer.
10155 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10157 * source.c (add_path): Fix check for duplicated paths in the previously
10160 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10162 * ada-lang.c: Remove duplicated include statements.
10163 * alphabsd-nat.c: Ditto.
10164 * amd64-darwin-tdep.c: Ditto.
10165 * amd64fbsd-nat.c: Ditto.
10166 * auto-load.c: Ditto.
10168 * breakpoint.c: Ditto.
10169 * dbxread.c: Ditto.
10170 * fork-child.c: Ditto.
10171 * gdb_usleep.c: Ditto.
10172 * i386-darwin-tdep.c: Ditto.
10173 * i386fbsd-nat.c: Ditto.
10175 * inferior.c: Ditto.
10176 * jv-lang.c: Ditto.
10177 * linux-nat.c: Ditto.
10178 * linux-tdep.c: Ditto.
10179 * m68kbsd-nat.c: Ditto.
10180 * m68klinux-nat.c: Ditto.
10181 * microblaze-tdep.c: Ditto.
10182 * mips-linux-tdep.c: Ditto.
10183 * mn10300-tdep.c: Ditto.
10184 * nto-tdep.c: Ditto.
10185 * opencl-lang.c: Ditto.
10187 * printcmd.c: Ditto.
10188 * regcache.c: Ditto.
10189 * remote-m32r-sdi.c: Ditto.
10191 * symfile.c: Ditto.
10193 * tilegx-linux-nat.c: Ditto.
10194 * tilegx-tdep.c: Ditto.
10195 * tracepoint.c: Ditto.
10197 * vaxbsd-nat.c: Ditto.
10198 * windows-nat.c: Ditto.
10199 * xtensa-tdep.c: Ditto.
10201 2014-01-07 Yao Qi <yao@codesourcery.com>
10203 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10205 2014-01-07 Yao Qi <yao@codesourcery.com>
10206 Joel Brobecker <brobecker@adacore.com>
10208 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10209 (pdc_write_regs): Likewise.
10210 (fetch_regs_kernel_thread): Likewise.
10211 (store_regs_kernel_thread): Likewise.
10213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10215 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10216 tagged type objects to their actual type.
10218 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10220 * ada-valprint.c (print_field_values): Add "language" parameter.
10221 Update calls to print_field_values and print_variant_part.
10222 Pass new parameter "language" in call to val_print instead
10223 of "current_language". Replace call to ada_val_print by call
10225 (print_variant_part): Add "language" parameter.
10226 (ada_val_print_struct_union): Update call to print_field_values.
10228 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10230 * ada-valprint.c (ui_memcpy): Delete.
10231 (ada_print_floating): Update documentation. Add empty line
10232 between between function documentation and implementation.
10233 Delete variable "buffer". Use ui_file_xstrdup in place of
10234 ui_file_put. Minor adjustments following this change.
10236 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10238 * ada-valprint.c (ada_val_print_string): New function,
10239 extracted from ada_val_print_array.
10240 (ada_val_print_array): Replace extracted code by call
10241 to ada_val_print_string followed by a return. Move
10242 "else" branch to the function's top block.
10244 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10246 * ada-valprint.c (ada_val_print_array): Move implementation
10247 down. Rename parameter "offset" and "val" into "offset_aligned"
10248 and "original_value" respectively. Add parameter "offset".
10250 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10252 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10253 re-organizing the code. Change the "???" message printed
10254 when target type is a TYPE_CODE_UNDEF into
10255 "<ref to undefined type>".
10257 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10259 * ada-valprint.c (print_record): Delete, implementation inlined...
10260 (ada_val_print_struct_union): ... here. Remove call to
10261 ada_check_typedef in inlined implementation.
10263 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10265 * ada-valprint.c (ada_val_print_gnat_array): New function,
10266 extracted from ada_val_print_1;
10267 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10268 (ada_val_print_flt, ada_val_print_struct_union)
10269 (ada_val_print_ref): Likewise.
10270 (ada_val_print_1): Delete variables i and elttype.
10271 Replace extracted-out code by call to corresponding
10274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10276 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10278 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10280 * ada-valprint.c (ada_val_print_1): Replace calls to
10281 ada_val_print_1 by calls to val_print.
10283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10285 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10286 Update calls to self accordingly. Replace calls to c_val_print
10287 by calls to val_print.
10289 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10291 * ada-valprint.c (print_record): Delete declaration.
10292 (adjust_type_signedness, ada_val_print_1): Likewise.
10293 (ada_val_print): Move function implementation down.
10294 (print_variant_part, print_field_values, print_record):
10295 Move function implementation up.
10297 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10299 * python/py-type.c (typy_get_name): New function.
10300 (type_object_getset): Add entry for attribute "name".
10301 * NEWS: Add entry mentioning this new attribute.
10303 2014-01-07 Yao Qi <yao@codesourcery.com>
10305 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10308 2014-01-07 Yao Qi <yao@codesourcery.com>
10310 * gnu-nat.c (info_port_rights): Add qualifier const to
10313 2014-01-07 Yao Qi <yao@codesourcery.com>
10315 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10317 2014-01-07 Yao Qi <yao@codesourcery.com>
10319 * gnu-nat.c (make_inf) Update declaration.
10320 (make_inf): Make it static.
10321 (inf_set_traced): Likewise.
10322 (inf_port_to_thread, inf_task_died_status): Likewise.
10324 2014-01-07 Yao Qi <yao@codesourcery.com>
10326 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10328 2014-01-07 Yao Qi <yao@codesourcery.com>
10330 * gnu-nat.c (_initialize_gnu_nat): Declare.
10332 2014-01-07 Yao Qi <yao@codesourcery.com>
10334 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10336 (struct gdbarch_info) <byte_order>: Change type to
10338 <byte_order_for_code>: Likewise.
10339 * gdbarch.c, gdbarch.h: Regenerated.
10341 2014-01-06 Sasha Smundak <asmundak@google.com>
10343 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10345 2014-01-06 Tom Tromey <tromey@redhat.com>
10347 * doublest.c (convert_doublest_to_floatformat): Use const, not
10349 * somread.c (som_symtab_read): Likewise.
10351 2014-01-07 Hui Zhu <hui@codesourcery.com>
10353 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10354 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10355 (gdb_bfd_fopen): Ditto.
10356 (gdb_bfd_openr): Ditto.
10357 (gdb_bfd_openw): Ditto.
10358 (gdb_bfd_openr_iovec): Ditto.
10359 (gdb_bfd_fdopenr): Ditto.
10360 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10361 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10363 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10365 * symfile-mem.c (symbol_file_add_from_memory): Removed
10366 gdb_bfd_stash_filename.
10368 2014-01-03 Doug Evans <dje@google.com>
10370 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10373 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10375 Update year range in copyright notice of all files.
10377 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10379 * top.c (print_gdb_version): Set copyright year to 2014.
10381 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10383 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10385 For older changes see ChangeLog-2013.
10391 version-control: never