1 2014-07-17 Doug Evans <dje@google.com>
3 * maint.c (count_symtabs_and_blocks): Handle NULL
5 (report_command_stats): Check global enabled flag in addition to
7 (make_command_stats_cleanup): Handle msg_type == 0, startup.
9 2014-07-16 Pedro Alves <palves@redhat.com>
11 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
13 2014-07-16 Tom Tromey <tromey@redhat.com>
15 * target.h (struct target_ops) <to_delete_record>: Reformat
18 2014-07-16 Tom Tromey <tromey@redhat.com>
20 * target-delegates.c: Rebuild.
22 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
24 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
25 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
26 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
27 (avr_pointer_to_address): Likewise.
28 (avr_address_class_type_flags): New function.
29 (avr_address_class_type_flags_to_name): Likewise.
30 (avr_address_class_name_to_type_flags): Likewise.
31 (avr_gdbarch_init): Set address_class_type_flags,
32 address_class_type_flags_to_name and
33 address_class_name_to_type_flags.
35 2014-07-15 Pedro Alves <palves@redhat.com>
37 * linux-nat.c (kill_callback): Save errno and work with saved
40 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
42 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
44 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
46 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
47 breakpoint support correctly.
49 2014-07-14 Pedro Alves <palves@redhat.com>
51 * utils.c (prompt_for_continue): Call target_terminal_ours.
53 2014-07-14 Pedro Alves <palves@redhat.com>
55 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
56 catch_errors. Don't re-enable stdin or notify observers where,
58 (fetch_inferior_event_wrapper): Delete.
60 2014-07-14 Pedro Alves <palves@redhat.com>
63 * top.c: Include "inf-loop.h".
64 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
66 (gdb_readline_wrapper_cleanup): Make the target async again, if it
68 (gdb_readline_wrapper): Store whether the target is async, and
71 2014-07-14 Pedro Alves <palves@redhat.com>
74 * top.c (gdb_readline_wrapper_line): Tweak comment.
75 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
76 the input handler callback.
78 2014-07-14 Pedro Alves <palves@redhat.com>
81 * main.c: Include event-top.h.
82 (handle_command_errors): New function.
83 (catch_command_errors, catch_command_errors_const): Use it.
85 2014-07-14 Pedro Alves <palves@redhat.com>
87 * exceptions.c (catch_command_errors, catch_command_errors_const):
89 * exceptions.h (catch_command_errors_ftype)
90 (catch_command_errors_const_ftype): Moved to main.c.
91 (catch_command_errors, catch_command_errors_const): Delete
93 * main.c (catch_command_errors_ftype)
94 (catch_command_errors_const_ftype): Moved here from exceptions.h.
95 (catch_command_errors, catch_command_errors_const)): Moved here
96 from exceptions.c and make static.
98 2014-07-14 Pedro Alves <palves@redhat.com>
100 * exceptions.c (print_any_exception): Delete.
101 (catch_exceptions_with_msg): Use exception_print instead of
103 (catch_errors): Use exception_fprintf instead of
105 (catch_command_errors, catch_command_errors_const): Use
106 exception_print instead of print_any_exception.
108 2014-07-14 Pedro Alves <palves@redhat.com>
110 * infcall.c (run_inferior_call): Set 'sync_execution' while
111 running the inferior call.
113 2014-07-14 Pedro Alves <palves@redhat.com>
115 * value.c (value_contents_equal): Delete function.
116 * value.h (value_contents_equal): Delete declaration.
118 2014-07-14 Tom Tromey <tromey@redhat.com>
121 * gdbtypes.c (is_dynamic_type_internal): New function, from
123 (is_dynamic_type): Rewrite.
124 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
125 (resolve_dynamic_struct): Likewise.
126 (resolve_dynamic_type_internal): New function, from
127 resolve_dynamic_type.
128 (resolve_dynamic_type): Rewrite.
130 2014-07-14 Tom Tromey <tromey@redhat.com>
132 * target.c (target_require_runnable): Also check record_stratum.
135 2014-07-11 Yao Qi <yao@codesourcery.com>
137 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
138 thumb_instruction_restores_sp return true.
140 2014-07-11 Yao Qi <yao@codesourcery.com>
142 * arm-tdep.c (thumb_instruction_restores_sp): New function.
143 (thumb_in_function_epilogue_p): Call
144 thumb_instruction_restores_sp.
146 2014-07-11 Yao Qi <yao@codesourcery.com>
148 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
150 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
152 2014-07-11 Gary Benson <gbenson@redhat.com>
154 * amd64-linux-nat.c (gdbcore.h): Remove include.
155 (regset.h): Likewise.
156 (nat/linux-btrace.h): Likewise.
157 (btrace.h): Likewise.
158 (gdb_assert.h): Likewise.
159 (string.h): Likewise.
160 (sys/uio.h): Likewise.
161 (sys/debugreg.h): Likewise.
162 (sys/syscall.h): Likewise.
163 (sys/procfs.h): Likewise.
164 (sys/user.h): Likewise.
165 (asm/ptrace.h): Likewise.
166 (i386-nat.h): Likewise.
167 * i386-linux-nat.c (i386-nat.h): Likewise.
168 (regset.h): Likewise.
169 (target.h): Likewise.
170 (linux-nat.h): Likewise.
171 (nat/linux-btrace.h): Likewise.
172 (btrace.h): Likewise.
173 (gdb_assert.h): Likewise.
174 (string.h): Likewise.
175 (sys/uio.h): Likewise.
176 (sys/user.h): Likewise.
177 (sys/procfs.h): Likewise.
178 (sys/reg.h): Likewise.
179 (sys/debugreg.h): Likewise.
180 (ORIG_EAX): Remove definition.
182 2014-07-11 Gary Benson <gbenson@redhat.com>
184 * i386-linux-nat.h: New file.
185 * x86-linux-nat.h: Likewise.
186 * x86-linux-nat.c: Likewise.
187 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
188 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
189 * config/i386/linux64.mh (NATDEPFILES): Likewise.
190 * amd64-linux-nat.c (x86-linux-nat.h): New include.
191 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
192 (PTRACE_SETREGSET): Likewise.
193 (arch_lwp_info): Now in x86-linux-nat.c.
194 (have_ptrace_getregset): Now in x86-linux-nat.h.
195 (x86_linux_dr_get): Now in x86-linux-nat.c.
196 (x86_linux_dr_set): Likewise.
197 (x86_linux_dr_get_addr): Likewise.
198 (x86_linux_dr_get_control): Likewise.
199 (x86_linux_dr_get_status): Likewise.
200 (update_debug_registers_callback): Likewise.
201 (x86_linux_dr_set_control): Likewise.
202 (x86_linux_dr_set_addr): Likewise.
203 (x86_linux_prepare_to_resume): Likewise.
204 (x86_linux_new_thread): Likewise.
205 (x86_linux_new_fork): Likewise.
206 (x86_linux_get_thread_area): Likewise.
207 (super_post_startup_inferior): Likewise.
208 (x86_linux_child_post_startup_inferior): Likewise.
209 (AMD64_LINUX_USER64_CS): Likewise.
210 (AMD64_LINUX_X32_DS): Likewise.
211 (x86_linux_read_description): Likewise.
212 (x86_linux_enable_btrace): Likewise.
213 (x86_linux_disable_btrace): Likewise.
214 (x86_linux_teardown_btrace): Likewise.
215 (x86_linux_read_btrace): Likewise.
216 (x86_linux_create_target): Likewise.
217 (x86_linux_add_target): Likewise.
218 * i386-linux-nat.c (x86-linux-nat.h): New include.
219 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
220 (PTRACE_SETREGSET): Likewise.
221 (arch_lwp_info): Now in x86-linux-nat.c.
222 (have_ptrace_getregset): Now in x86-linux-nat.h.
223 (x86_linux_dr_get): Now in x86-linux-nat.c.
224 (x86_linux_dr_set): Likewise.
225 (x86_linux_dr_get_addr): Likewise.
226 (x86_linux_dr_get_control): Likewise.
227 (x86_linux_dr_get_status): Likewise.
228 (update_debug_registers_callback): Likewise.
229 (x86_linux_dr_set_control): Likewise.
230 (x86_linux_dr_set_addr): Likewise.
231 (x86_linux_prepare_to_resume): Likewise.
232 (x86_linux_new_thread): Likewise.
233 (x86_linux_new_fork): Likewise.
234 (x86_linux_get_thread_area): Likewise.
235 (super_post_startup_inferior): Likewise.
236 (x86_linux_child_post_startup_inferior): Likewise.
237 (AMD64_LINUX_USER64_CS): Likewise.
238 (AMD64_LINUX_X32_DS): Likewise.
239 (x86_linux_read_description): Likewise.
240 (x86_linux_enable_btrace): Likewise.
241 (x86_linux_disable_btrace): Likewise.
242 (x86_linux_teardown_btrace): Likewise.
243 (x86_linux_read_btrace): Likewise.
244 (x86_linux_create_target): Likewise.
245 (x86_linux_add_target): Likewise.
247 2014-07-11 Gary Benson <gbenson@redhat.com>
249 * amd64-linux-nat.c: Comment and whitespace changes.
250 * i386-linux-nat.c: Comment and whitespace changes.
252 2014-07-11 Gary Benson <gbenson@redhat.com>
254 * amd64-linux-nat.c (x86_linux_create_target): New function.
255 (x86_linux_add_target): Likewise.
256 (_initialize_amd64_linux_nat): Delegate to the above new functions.
257 * i386-linux-nat.c (x86_linux_create_target): New function.
258 (x86_linux_add_target): Likewise.
259 (_initialize_i386_linux_nat): Delegate to the above new functions.
261 2014-07-11 Gary Benson <gbenson@redhat.com>
263 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
264 (ps_get_thread_area): Delegate to the above in 32-bit mode.
265 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
266 (ps_get_thread_area): Delegate to the above.
268 2014-07-11 Gary Benson <gbenson@redhat.com>
270 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
271 x86_linux_read_description. All uses updated. amd64-specific
272 code conditionalized. Conditionalized i386-specific code added.
273 Redundant cast removed.
274 * i386-linux-nat.c (i386_linux_read_description): Renamed to
275 x86_linux_read_description. All uses updated. i386-specific
276 code conditionalized. Conditionalized amd64-specific code added.
277 One sizeof replaced with the actual type it is describing.
279 2014-07-11 Gary Benson <gbenson@redhat.com>
281 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
282 x86_linux_dr_get. All uses updated.
283 (amd64_linux_dr_set): Renamed to
284 x86_linux_dr_set. All uses updated.
285 (amd64_linux_dr_get_addr): Renamed to
286 x86_linux_dr_get_addr. All uses updated.
287 (amd64_linux_dr_get_control): Renamed to
288 x86_linux_dr_get_control. All uses updated.
289 (amd64_linux_dr_get_status): Renamed to
290 x86_linux_dr_get_status. All uses updated.
291 (amd64_linux_dr_set_control): Renamed to
292 x86_linux_dr_set_control. All uses updated.
293 (amd64_linux_dr_set_addr): Renamed to
294 x86_linux_dr_set_addr. All uses updated.
295 (amd64_linux_prepare_to_resume): Renamed to
296 x86_linux_prepare_to_resume. All uses updated.
297 (amd64_linux_new_thread): Renamed to
298 x86_linux_new_thread. All uses updated.
299 (amd64_linux_new_fork): Renamed to
300 x86_linux_new_fork. All uses updated.
301 (amd64_linux_child_post_startup_inferior): Renamed to
302 x86_linux_child_post_startup_inferior. All uses updated.
303 (amd64_linux_enable_btrace): Renamed to
304 x86_linux_enable_btrace. All uses updated.
305 (amd64_linux_disable_btrace): Renamed to
306 x86_linux_disable_btrace. All uses updated.
307 (amd64_linux_teardown_btrace): Renamed to
308 x86_linux_teardown_btrace. All uses updated.
309 (amd64_linux_read_btrace): Renamed to
310 x86_linux_read_btrace. All uses updated.
311 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
312 x86_linux_dr_get. All uses updated.
313 (i386_linux_dr_set): Renamed to
314 x86_linux_dr_set. All uses updated.
315 (i386_linux_dr_get_addr): Renamed to
316 x86_linux_dr_get_addr. All uses updated.
317 (i386_linux_dr_get_control): Renamed to
318 x86_linux_dr_get_control. All uses updated.
319 (i386_linux_dr_get_status): Renamed to
320 x86_linux_dr_get_status. All uses updated.
321 (i386_linux_dr_set_control): Renamed to
322 x86_linux_dr_set_control. All uses updated.
323 (i386_linux_dr_set_addr): Renamed to
324 x86_linux_dr_set_addr. All uses updated.
325 (i386_linux_prepare_to_resume): Renamed to
326 x86_linux_prepare_to_resume. All uses updated.
327 (i386_linux_new_thread): Renamed to
328 x86_linux_new_thread. All uses updated.
329 (i386_linux_new_fork): Renamed to
330 x86_linux_new_fork. All uses updated.
331 (i386_linux_child_post_startup_inferior): Renamed to
332 x86_linux_child_post_startup_inferior. All uses updated.
333 (i386_linux_enable_btrace): Renamed to
334 x86_linux_enable_btrace. All uses updated.
335 (i386_linux_disable_btrace): Renamed to
336 x86_linux_disable_btrace. All uses updated.
337 (i386_linux_teardown_btrace): Renamed to
338 x86_linux_teardown_btrace. All uses updated.
339 (i386_linux_read_btrace): Renamed to
340 x86_linux_read_btrace. All uses updated.
342 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
344 * remote.c (extended_remote_post_attach): New function.
345 (init_extended_remote_ops): Install it as to_post_attach method.
347 2014-07-09 Pedro Alves <palves@redhat.com>
349 * infcmd.c (attach_command_post_wait): Don't call
350 target_terminal_inferior here.
351 (attach_command): Call it here instead.
353 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
355 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
357 * c-varobj.c (c_is_path_expr_parent): New function, moved core
358 from varobj.c, with additional checks.
359 (c_varobj_ops): Fill in is_path_expr_parent field.
360 (cplus_varobj_ops): Fill in is_path_expr_parent field.
361 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
363 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
365 (varobj_default_is_path_expr_parent): New function.
366 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
367 (varobj_default_is_path_expr_parent): Declare new function.
369 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
371 * infcmd.c (finish_backward): Turn internal error into normal error.
373 2014-07-07 Pedro Alves <palves@redhat.com>
376 * remote.c (async_handle_remote_sigint)
377 (async_handle_remote_sigint_twice): Call
378 gdb_call_async_signal_handler instead of
379 mark_async_signal_handler.
381 2014-07-07 Tom Tromey <tromey@redhat.com>
383 * target-delegates.c: Rebuild.
384 * target.c (target_info_record): Remove.
385 * record.c (info_record_command): Unconditionally call
387 * target.h (struct target_ops) <to_info_record>: Use
388 TARGET_DEFAULT_IGNORE.
389 (target_info_record): Remove.
391 2014-07-07 Tom Tromey <tromey@redhat.com>
393 * target.h (struct target_ops) <to_get_thread_local_address>: Use
394 TARGET_DEFAULT_NORETURN.
395 * target.c (generic_tls_error): New function.
396 (target_translate_tls_address): Don't search target stack.
397 * target-delegates.c: Rebuild.
398 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
400 * linux-thread-db.c (thread_db_get_thread_local_address):
401 Unconditionally call beneath target.
403 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
405 * cli/cli-logging.c (pop_output_files): Assign targerr to
408 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
410 * MAINTAINERS (Write After Approval): Update my email address.
412 2014-07-02 Gary Benson <gbenson@redhat.com>
414 * proc-service.c (ps_xfer_memory): Update comment.
415 (ps_pstop): Remove unused function.
416 (ps_pcontinue): Likewise.
417 (ps_lstop): Likewise.
418 (ps_lcontinue): Likewise.
419 (ps_lgetxregsize): Likewise.
420 (ps_lgetxregs): Likewise.
421 (ps_lsetxregs): Likewise.
423 (ps_ptread): Likewise.
424 (ps_ptwrite): Likewise.
426 2014-07-01 Mark Wielaard <mjw@redhat.com>
428 * dwarf2read.c (add_array_cv_type): New function.
429 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
430 (read_tag_volatile_type): Likewise.
432 2014-07-01 Tom Tromey <tromey@redhat.com>
434 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
435 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
436 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
437 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
438 * command.h (cmd_cfunc_ftype): Move earlier.
439 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
440 (add_com, add_info): Use cmd_cfunc_ftype.
442 2014-06-30 Tom Tromey <tromey@redhat.com>
444 * symtab.c (operator_chars): Make parameters and return type
446 (file_matches): Make "files" const.
447 (struct search_symbols_data) <files>: Now const.
448 (search_symbols): Make "regexp" and "files" parameters const.
450 (symtab_symbol_info): Remove cast.
451 (rbreak_command): Update.
452 * symtab.h (search_symbols): Update.
454 2014-06-27 Yao Qi <yao@codesourcery.com>
456 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
457 Change parameter type to 'struct thread_info *'. Caller
459 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
461 * dummy-frame.c (struct dummy_frame_id): New.
462 (dummy_frame_id_eq): New function.
463 (struct dummy_frame) <id>: Change its type to 'struct
465 (dummy_frame_push): Add parameter ptid and save it in
467 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
469 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
471 (lookup_dummy_frame): Change parameter type to 'struct
472 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
473 instead of frame_id_eq.
474 (dummy_frame_pop): Add parameter ptid. Callers updated.
475 Update comments. Compose dummy_frame_id and pass it to
477 (dummy_frame_discard): Add parameter ptid.
478 (dummy_frame_sniffer): Compose dummy_frame_id and call
479 dummy_frame_id_eq instead of frame_id_eq.
480 (fprint_dummy_frames): Print ptid.
481 * dummy-frame.h: Remove comments.
482 (dummy_frame_push): Add ptid in declaration.
483 (dummy_frame_pop, dummy_frame_discard): Likewise.
485 2014-06-26 Tom Tromey <tromey@redhat.com>
487 * cli/cli-cmds.c (error_no_arg): Make "why" const.
488 * command.h (error_no_arg): Update.
490 2014-06-26 Tom Tromey <tromey@redhat.com>
492 * cli/cli-setshow.c (do_set_command): Make "arg" const.
493 (do_show_command): Make "arg" const.
494 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
496 2014-06-26 Tom Tromey <tromey@redhat.com>
498 * record-full.c (record_full_get_bookmark): Make "args" const.
499 (record_full_goto_bookmark): Make "raw_bookmark" const.
500 * record.c (record_goto): New function.
501 (cmd_record_goto): Use it. Now static.
502 * record.h (record_goto): Declare.
503 (cmd_record_goto): Remove declaration.
504 * target-delegates.c: Rebuild.
505 * target.h (struct target_ops) <to_get_bookmark,
506 to_goto_bookmark>: Make parameter const.
508 2014-06-26 Tom Tromey <tromey@redhat.com>
510 * defs.h (generic_load): Update.
511 * m32r-rom.c (m32r_load_gen): Make "filename" const.
512 * monitor.c (monitor_load): Make "args" const.
513 * remote-m32r-sdi.c (m32r_load): Make "args" const.
514 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
516 (mips_load): Make "file" const.
517 * remote-sim.c (gdbsim_load): Make "args" const.
518 * remote.c (remote_load): Make "name" const.
519 * symfile.c (generic_load): Make "args" const.
520 * target-delegates.c: Rebuild.
521 * target.c (target_load): Make "arg" const.
522 (debug_to_load): Make "args" const.
523 * target.h (struct target_ops) <to_load>: Make parameter const.
524 (target_load): Update.
526 2014-06-26 Tom Tromey <tromey@redhat.com>
529 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
530 (dwarf2_physname, read_partial_die)
531 (guess_partial_die_structure_name, fixup_partial_die)
532 (guess_full_die_structure_name, anonymous_struct_prefix)
533 (dwarf2_name): Use per-BFD obstack.
535 2014-06-26 Yao Qi <yao@codesourcery.com>
537 * dummy-frame.c (dummy_frame_sniffer): Move local variables
538 dummyframe and this_id into inner block below.
540 2014-06-26 Yao Qi <yao@codesourcery.com>
542 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
543 with "signal_pass[0]" in the initialization of signal_pass.
545 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
547 * record-btrace.c (record_btrace_generating_corefile)
548 (record_btrace_prepare_to_generate_core)
549 (record_btrace_done_generating_core): New.
550 (record_btrace_xfer_partial, record_btrace_fetch_registers)
551 (record_btrace_store_registers, record_btrace_prepare_to_store):
552 Forward request when generating a core file.
553 (record_btrace_open): Set record_btrace_generating_corefile to zero.
554 (init_record_btrace_ops): Set to_prepare_to_generate_core and
555 to_done_generating_core.
557 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
559 * target.h (target_ops) <to_prepare_to_generate_core>
560 <to_done_generating_core>: New.
561 (target_prepare_to_generate_core, target_done_generating_core): New.
562 * target.c (target_prepare_to_generate_core)
563 (target_done_generating_core): New.
564 * target-delegates.c: Regenerate.
565 * gcore.c: (write_gcore_file): Rename to ...
566 (write_gcore_file_1): ...this.
567 (write_gcore_file): Call target_prepare_to_generate_core
568 and target_done_generating_core.
570 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
572 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
573 * gcore.c (write_gcore_file): Free memory returned from
575 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
576 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
578 2014-06-24 Yao Qi <yao@codesourcery.com>
580 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
581 (arm_linux_init_abi): Set skip_trampoline_code with
582 gdbarch_skip_trampoline_code instead of
583 find_solib_trampoline_target.
585 2014-06-24 Yao Qi <yao@codesourcery.com>
587 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
588 arm_skip_bx_reg returns non-zero.
590 2014-06-24 Yao Qi <yao@codesourcery.com>
592 * arm-tdep.c (arm_skip_bx_reg): New function.
593 (arm_skip_stub): Call arm_skip_bx_reg.
595 2014-06-23 Don Breazeal <donb@codesourcery.com>
597 * MAINTAINERS: Add myself as write-after-approval maintainer.
599 2014-06-23 Pedro Alves <palves@redhat.com>
601 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
602 DR_CONTROL before setting DR0..DR3.
603 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
604 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
605 bits of DR_CONTROL related to the debug register slot being
606 disabled. If all slots are vacant, clear local slowdown as well,
607 and assert DR_CONTROL is 0.
609 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
611 * python/lib/gdb/command/xmethods.py
612 (get_method_matchers_in_loci): Lookup xmethod matchers in the
613 current progspace only if the string "progspace" matches LOCUS_RE.
615 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
617 Fix --with-system-readline with readline-6.3 patch 5.
618 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
619 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
622 2014-06-20 Tom Tromey <tromey@redhat.com>
624 * dwarf2read.c (dw2_get_real_path): Use correct type in
626 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
628 2014-06-20 Gary Benson <gbenson@redhat.com>
630 * common/gdb_thread_db.h: Moved to nat. All includes updated.
631 * common/glibc_thread_db.h: Likewise.
632 * common/i386-cpuid.h: Likewise.
633 * common/i386-gcc-cpuid.h: Likewise.
634 * common/linux-btrace.h: Likewise.
635 * common/linux-osdata.h: Likewise.
636 * common/linux-procfs.h: Likewise.
637 * common/linux-ptrace.h: Likewise.
638 * common/mips-linux-watch.h: Likewise.
639 * common/linux-btrace.c: Moved to nat.
640 * common/linux-osdata.c: Likewise.
641 * common/linux-procfs.c: Likewise.
642 * common/linux-ptrace.c: Likewise.
643 * common/mips-linux-watch.c: Likewise.
644 * nat/gdb_thread_db.h: Moved from common.
645 * nat/glibc_thread_db.h: Likewise.
646 * nat/i386-cpuid.h: Likewise.
647 * nat/i386-gcc-cpuid.h: Likewise.
648 * nat/linux-btrace.c: Likewise.
649 * nat/linux-btrace.h: Likewise.
650 * nat/linux-osdata.c: Likewise.
651 * nat/linux-osdata.h: Likewise.
652 * nat/linux-procfs.c: Likewise.
653 * nat/linux-procfs.h: Likewise.
654 * nat/linux-ptrace.c: Likewise.
655 * nat/linux-ptrace.h: Likewise.
656 * nat/mips-linux-watch.c: Likewise.
657 * nat/mips-linux-watch.h: Likewise.
658 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
659 (object file files): Reordered.
660 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
661 of glibc_thread_db.h.
663 2014-06-20 Gary Benson <gbenson@redhat.com>
665 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
666 (i386_dr_low_type): Moved to nat/i386-dregs.h.
667 (i386_dr_low): Likewise.
668 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
669 (i386_dr_low_set_addr): Likewise.
670 (i386_dr_low_get_addr): Likewise.
671 (i386_dr_low_can_set_control): Likewise.
672 (i386_dr_low_set_control): Likewise.
673 (i386_dr_low_get_control): Likewise.
674 (i386_dr_low_get_status): Likewise.
675 (i386_get_debug_register_length): Likewise.
676 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
677 (i386_dr_low): Likewise.
678 * nat/i386-dregs.c (i386-low.h): Remove include.
679 (i386-nat.h): Likewise.
680 (nat/i386-dregs.h): New include.
681 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
682 (i386_dr_low_set_addr): Likewise.
683 (i386_dr_low_get_addr): Likewise.
684 (i386_dr_low_can_set_control): Likewise.
685 (i386_dr_low_set_control): Likewise.
686 (i386_dr_low_get_control): Likewise.
687 (i386_dr_low_get_status): Likewise.
688 (i386_get_debug_register_length): Likewise.
689 (debug_hw_points): Likewise.
691 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
693 * Makefile.in (SFILES): Add d-exp.y.
694 (YYFILES): Add d-exp.c.
695 (YYOBJ): Add d-exp.o.
696 (local-maintainer-clean): Delete d-exp.c.
698 * d-lang.h (d_parse): New declaration.
699 (d_error): New declaration.
700 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
701 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
702 PREC_ORDER operators.
703 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
705 2014-06-19 Yao Qi <yao@codesourcery.com>
707 * gdbthread.h (any_running): Remove the declaration.
708 * thread.c (any_running): Remove.
710 2014-06-19 Yao Qi <yao@codesourcery.com>
712 * gdbthread.h (struct thread_info) <state>: Change its type to
713 'enum thread_state'. Update comments.
715 2014-06-19 Pedro Alves <palves@redhat.com>
717 * gdbthread.h (ALL_THREADS): Delete.
718 (ALL_NON_EXITED_THREADS): New macro.
719 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
720 instead of ALL_THREADS.
721 * infrun.c (find_thread_needs_step_over)
722 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
723 instead of ALL_THREADS.
724 * record-btrace.c (record_btrace_open)
725 (record_btrace_stop_recording, record_btrace_close)
726 (record_btrace_is_replaying, record_btrace_resume)
727 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
728 * remote.c (append_pending_thread_resumptions): Likewise.
729 * thread.c (thread_apply_all_command): Likewise.
731 2014-06-19 Gary Benson <gbenson@redhat.com>
733 * i386-nat.c (i386_stopped_by_watchpoint):
734 Use i386_dr_stopped_by_watchpoint.
735 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
736 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
738 2014-06-19 Gary Benson <gbenson@redhat.com>
740 * nat/i386-dregs.c: New file.
741 * Makefile.in (i386-dregs.o): New rule.
742 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
743 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
744 * config/i386/darwin.mh (NATDEPFILES): Likewise.
745 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
746 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
747 * config/i386/go32.mh (NATDEPFILES): Likewise.
748 * config/i386/linux.mh (NATDEPFILES): Likewise.
749 * config/i386/linux64.mh (NATDEPFILES): Likewise.
750 * config/i386/mingw.mh (NATDEPFILES): Likewise.
751 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
752 * i386-nat.h (debug_hw_points): New declaration.
753 * i386-nat.c (breakpoint.h): Remove include.
754 (command.h): Likewise.
755 (target.h): Likewise.
756 (gdb_assert.h): Likewise.
757 (debug_hw_points): Made nonstatic.
758 (debug_printf): Now in i386-dregs.c.
759 (TARGET_HAS_DR_LEN_8): Likewise.
760 (DR_CONTROL_SHIFT): Likewise.
761 (DR_CONTROL_SIZE): Likewise.
762 (DR_RW_EXECUTE): Likewise.
763 (DR_RW_WRITE): Likewise.
764 (DR_RW_READ): Likewise.
765 (DR_RW_IORW): Likewise.
766 (DR_LEN_1): Likewise.
767 (DR_LEN_2): Likewise.
768 (DR_LEN_4): Likewise.
769 (DR_LEN_8): Likewise.
770 (DR_LOCAL_ENABLE_SHIFT): Likewise.
771 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
772 (DR_ENABLE_SIZE): Likewise.
773 (DR_LOCAL_SLOWDOWN): Likewise.
774 (DR_GLOBAL_SLOWDOWN): Likewise.
775 (DR_CONTROL_RESERVED): Likewise.
776 (I386_DR_CONTROL_MASK): Likewise.
777 (I386_DR_VACANT): Likewise.
778 (I386_DR_LOCAL_ENABLE): Likewise.
779 (I386_DR_GLOBAL_ENABLE): Likewise.
780 (I386_DR_DISABLE): Likewise.
781 (I386_DR_SET_RW_LEN): Likewise.
782 (I386_DR_GET_RW_LEN): Likewise.
783 (I386_DR_WATCH_HIT): Likewise.
784 (i386_wp_op_t): Likewise.
785 (i386_show_dr): Likewise.
786 (i386_length_and_rw_bits): Likewise.
787 (i386_insert_aligned_watchpoint): Likewise.
788 (i386_remove_aligned_watchpoint): Likewise.
789 (i386_handle_nonaligned_watchpoint): Likewise.
790 (i386_update_inferior_debug_regs): Likewise.
791 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
792 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
793 (i386_region_ok_for_watchpoint):
794 Use i386_dr_region_ok_for_watchpoint.
795 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
797 2014-06-19 Gary Benson <gbenson@redhat.com>
799 * i386-nat.c (i386_insert_hw_breakpoint): Use
800 i386_insert_watchpoint.
801 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
803 2014-06-19 Gary Benson <gbenson@redhat.com>
805 * i386-nat.c (i386_dr_show): Renamed to
806 i386_show_dr and made static. All uses updated.
807 (i386_dr_length_and_rw_bits): Renamed to
808 i386_length_and_rw_bits and made static.
810 (i386_dr_insert_aligned_watchpoint): Renamed to
811 i386_insert_aligned_watchpoint and made static.
813 (i386_dr_remove_aligned_watchpoint): Renamed to
814 i386_remove_aligned_watchpoint and made static.
816 (i386_dr_update_inferior_debug_regs): Renamed to
817 i386_update_inferior_debug_regs and made static.
819 * nat/i386-dregs.h (i386_dr_show): Removed.
820 (i386_dr_length_and_rw_bits): Likewise.
821 (i386_dr_insert_aligned_watchpoint): Likewise.
822 (i386_dr_remove_aligned_watchpoint): Likewise.
823 (i386_dr_update_inferior_debug_regs): Likewise.
825 2014-06-19 Gary Benson <gbenson@redhat.com>
827 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
828 * configure: Regenerate.
829 * config.in: Likewise.
830 * main.c (signal.h): New include.
831 (setup_alternate_signal_stack): New function.
832 (captured_main): Call the above.
833 * cp-support.c (signal.h): New include.
834 (catch_demangler_crashes): New flag.
835 (SIGJMP_BUF): New define.
836 (SIGSETJMP): Likewise.
837 (SIGLONGJMP): Likewise.
838 (gdb_demangle_jmp_buf): New static global.
839 (gdb_demangle_attempt_core_dump): Likewise.
840 (gdb_demangle_signal_handler): New function.
841 (gdb_demangle): If catch_demangler_crashes is set, install the
842 above signal handler before calling bfd_demangle, and restore
843 the original signal handler afterwards. Display the offending
844 symbol and call demangler_warning the first time a segmentation
846 (_initialize_cp_support): New maint set/show command.
848 2014-06-19 Gary Benson <gbenson@redhat.com>
850 * utils.h (resource_limit_kind): New enum.
851 (can_dump_core): New declaration.
852 (warn_cant_dump_core): Likewise.
853 (dump_core): Likewise.
854 * utils.c (dump_core): Made nonstatic. Added new
855 parameter "limit_kind".
856 (can_dump_core): Made nonstatic. Moved printing code to...
857 (warn_cant_dump_core): New function.
858 (can_dump_core_warn): Likewise.
859 (internal_vproblem): Replace calls to can_dump_core with
860 calls to can_dump_core_warn. Supply new argument to each.
862 2014-06-19 Gary Benson <gbenson@redhat.com>
864 * utils.h (demangler_vwarning): New declaration.
865 (demangler_warning): Likewise.
866 * utils.c (struct internal_problem)
867 <user_settable_should_quit>: New field.
868 <user_settable_should_dump_core>: Likewise
869 (internal_error_problem): Add values for above new fields.
870 (internal_warning_problem): Likewise.
871 (demangler_warning_problem): New static global.
872 (demangler_vwarning): New function.
873 (demangler_warning): Likewise.
874 (add_internal_problem_command): Selectively add commands.
875 (_initialize_utils): New internal problem command.
876 * maint.c (maintenance_demangler_warning): New function.
877 (_initialize_maint_cmds): New command.
879 2014-06-18 Tom Tromey <tromey@redhat.com>
881 * f-valprint.c (info_common_command_for_block): Update.
882 * symtab.h (struct general_symbol_info) <common_block>: Now
885 2014-06-18 Tom Tromey <tromey@redhat.com>
887 * symtab.h (struct symtab) <blockvector>: Now const.
888 * ada-lang.c (ada_add_global_exceptions): Update.
889 * buildsym.c (augment_type_symtab): Update.
890 * dwarf2read.c (dw2_lookup_symbol): Update.
891 * jit.c (finalize_symtab): Update.
892 * jv-lang.c (add_class_symtab_symbol): Update.
893 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
895 * objfiles.c (objfile_relocate1): Update.
896 * psymtab.c (lookup_symbol_aux_psymtabs)
897 (maintenance_check_psymtabs): Update.
898 * python/py-symtab.c (stpy_global_block, stpy_static_block):
900 * spu-tdep.c (spu_catch_start): Update.
901 * symmisc.c (dump_symtab_1): Update.
902 * symtab.c (lookup_global_symbol_from_objfile)
903 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
904 (basic_lookup_transparent_type_quick)
905 (basic_lookup_transparent_type, find_pc_sect_symtab)
906 (find_pc_sect_line, search_symbols): Update.
907 * block.c (find_block_in_blockvector): Make "bl" const.
908 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
910 (blockvector_contains_pc): Make "bv" const.
911 (block_for_pc_sect): Update.
912 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
913 (blockvector_contains_pc): Update.
914 * breakpoint.c (resolve_sal_pc): Update.
915 * inline-frame.c (block_starting_point_at): Update.
917 2014-06-18 Tom Tromey <tromey@redhat.com>
919 * completer.c (complete_line): Make "line_buffer" const.
920 * completer.h (complete_line): Update.
922 2014-06-18 Tom Tromey <tromey@redhat.com>
924 * symtab.c (add_macro_name): Remove unneeded cast.
926 2014-06-18 Tom Tromey <tromey@redhat.com>
928 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
929 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
931 2014-06-18 Tom Tromey <tromey@redhat.com>
933 * probe.c (info_probes_for_ops): Make "arg" const.
934 * probe.h (info_probes_for_ops): Update.
936 2014-06-18 Tom Tromey <tromey@redhat.com>
938 * varobj.c (varobj_create): Update.
939 * valops.c (value_of_this): Update.
940 * tracepoint.c (add_local_symbols, scope_info): Update.
941 * symtab.h (struct general_symbol_info) <block>: Now const.
942 * symtab.c (skip_prologue_sal)
943 (default_make_symbol_completion_list_break_on)
944 (skip_prologue_using_sal): Update.
945 * stack.h (iterate_over_block_locals)
946 (iterate_over_block_local_vars): Update.
947 * stack.c (print_frame_args): Update.
948 (iterate_over_block_locals, iterate_over_block_local_vars): Make
950 (get_selected_block): Make return type const.
951 * python/py-frame.c (frapy_block): Update.
952 * python/py-block.c (gdbpy_block_for_pc): Update.
953 * p-exp.y (%union) <bval>: Now const.
954 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
955 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
956 * m2-exp.y (%union) <bval>: Now const.
957 * linespec.c (get_current_search_block): Make return type const.
958 (create_sals_line_offset, find_label_symbols): Update.
959 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
961 (block_starting_point_at): Make "block" const.
962 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
963 (check_exception_resume): Update.
964 * guile/scm-frame.c (gdbscm_frame_block): Update.
965 * guile/scm-block.c (gdbscm_lookup_block): Update.
966 * frame.h (get_frame_block): Update.
967 (get_selected_block): Make return type const.
968 * frame.c (frame_id_inner): Update.
969 * f-valprint.c (info_common_command_for_block)
970 (info_common_command): Update.
971 * dwarf2loc.c (dwarf2_find_location_expression)
972 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
973 (locexpr_describe_location_piece): Update.
974 * c-exp.y (%union) <bval>: Now const.
975 * breakpoint.c (resolve_sal_pc): Update.
976 * blockframe.c (get_frame_block):Make return type const.
977 (get_pc_function_start, get_frame_function, find_pc_sect_function)
978 (block_innermost_frame): Update.
979 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
980 (block_for_pc, block_for_pc_sect): Update.
981 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
983 (block_for_pc_sect, block_for_pc): Make return type const.
984 * ax-gdb.c (gen_expr): Update.
985 * alpha-mdebug-tdep.c (find_proc_desc): Update.
986 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
987 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
988 (ada_read_var_value): Update.
989 * ada-exp.y (struct name_info) <block>: Now const.
991 (block_lookup): Constify.
993 2014-06-18 Gary Benson <gbenson@redhat.com>
995 * nat/i386-dregs.h: New file.
996 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
997 * i386-nat.h (i386-dregs.h): New include.
998 (DR_FIRSTADDR): Now in i386-dregs.h.
999 (DR_LASTADDR): Likewise.
1000 (DR_NADDR): Likewise.
1001 (DR_STATUS): Likewise.
1002 (DR_CONTROL): Likewise.
1003 (i386_debug_reg_state): Likewise.
1004 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1006 2014-06-18 Don Breazeal <donb@codesourcery.com>
1008 * breakpoint.c (set_longjmp_breakpoint): Call
1009 momentary_breakpoint_from_master with additional argument.
1010 (set_longjmp_breakpoint_for_call_dummy): Call
1011 momentary_breakpoint_from_master with additional argument.
1012 (set_std_terminate_breakpoint): Call
1013 momentary_breakpoint_from_master with additional argument.
1014 (momentary_breakpoint_from_master): Add argument to function
1015 definition and use it to initialize structure member flag.
1016 (clone_momentary_breakpoint): Call
1017 momentary_breakpoint_from_master with additional argument.
1018 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1019 member flags set in momentary_breakpoint_from_master.
1021 2014-06-18 Gary Benson <gbenson@redhat.com>
1023 * i386-nat.c (i386_show_dr): Renamed to
1024 i386_dr_show and made nonstatic. All uses updated.
1025 (i386_length_and_rw_bits): Renamed to
1026 i386_dr_length_and_rw_bits and made nonstatic.
1028 (i386_insert_aligned_watchpoint): Renamed to
1029 i386_dr_insert_aligned_watchpoint and made nonstatic.
1031 (i386_remove_aligned_watchpoint): Renamed to
1032 i386_dr_remove_aligned_watchpoint and made nonstatic.
1034 (i386_update_inferior_debug_regs): Renamed to
1035 i386_dr_update_inferior_debug_regs and made nonstatic.
1038 2014-06-18 Gary Benson <gbenson@redhat.com>
1040 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1041 (i386_dr_low_can_set_control): Likewise.
1042 (i386_dr_low_set_addr): Likewise.
1043 (i386_dr_low_set_control): Likewise.
1044 (i386_dr_low_get_addr): Likewise.
1045 (i386_dr_low_get_status): Likewise.
1046 (i386_dr_low_get_control): Likewise.
1047 (i386_insert_aligned_watchpoint): Use new macros.
1048 (i386_update_inferior_debug_regs): Likewise.
1049 (i386_stopped_data_address): Likewise.
1051 2014-06-18 Gary Benson <gbenson@redhat.com>
1053 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1054 New parameter. All uses updated.
1056 2014-06-18 Gary Benson <gbenson@redhat.com>
1058 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1061 2014-06-18 Gary Benson <gbenson@redhat.com>
1063 * i386-nat.c (debug_printf): New macro.
1064 (i386_get_debug_register_length): Likewise.
1065 (TARGET_HAS_DR_LEN_8): Use above macro.
1066 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1067 and printf_unfiltered. Use phex to format values.
1069 2014-06-18 Gary Benson <gbenson@redhat.com>
1071 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1074 2014-06-18 Gary Benson <gbenson@redhat.com>
1076 * i386-nat.c: Comment changes.
1078 2014-06-18 Gary Benson <gbenson@redhat.com>
1080 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1082 2014-06-18 Gary Benson <gbenson@redhat.com>
1084 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1085 (i386_insert_aligned_watchpoint): Likewise.
1086 (i386_remove_aligned_watchpoint): Likewise.
1087 (i386_handle_nonaligned_watchpoint): Likewise.
1089 2014-06-18 Gary Benson <gbenson@redhat.com>
1091 * i386-nat.c: Whitespace changes.
1093 2014-06-17 Samuel Bronson <naesten@gmail.com>
1095 * MAINTAINERS: Update Roland McGrath's email address.
1096 Thanks to Sergio Durigan Junior for pointing out that he left
1097 Red Hat a while ago, and giving me a current address.
1099 2014-06-17 Tom Tromey <tromey@redhat.com>
1101 * utils.h (savestring): Remove declaration.
1103 2014-06-17 Tom Tromey <tromey@redhat.com>
1105 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1107 2014-06-16 Keith Seitz <keiths@redhat.com>
1110 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1111 to update the varobj if inferior_ptid is null_ptid.
1113 2014-06-16 Tom Tromey <tromey@redhat.com>
1115 * target.h (struct target_ops) <to_info_proc>: Make parameter
1117 (target_info_proc): Update.
1118 * target.c (target_info_proc): Make "args" const.
1119 * procfs.c (procfs_info_proc): Update.
1120 * linux-tdep.c (linux_info_proc): Update.
1121 (linux_core_info_proc_mappings): Make "args" const.
1122 (linux_core_info_proc): Update.
1123 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1124 * gdbarch.c: Rebuild.
1125 * gdbarch.h: Rebuild.
1126 * corelow.c (core_info_proc): Update.
1128 2014-06-16 Tom Tromey <tromey@redhat.com>
1130 * target.h (struct target_ops) <to_disconnect>: Make parameter
1132 (target_disconnect): Update.
1133 * target.c (target_disconnect): Make "args" const.
1134 * target-delegates.c: Rebuild.
1135 * remote.c (remote_disconnect): Update.
1136 * record.h (record_disconnect): Update.
1137 * record.c (record_disconnect): Update.
1138 * inf-child.c (inf_child_disconnect): Update.
1140 2014-06-16 Tom Tromey <tromey@redhat.com>
1142 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1143 * target.c (debug_to_rcmd, default_rcmd): Update.
1144 * target-delegates.c: Rebuild.
1145 * remote.c (remote_rcmd): Update.
1146 * monitor.c (monitor_rcmd): Update.
1148 2014-06-16 Pedro Alves <palves@redhat.com>
1150 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1151 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1152 have OBJF_SHARED set.
1153 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1154 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1155 instead of OBJF_USERLOADED.
1156 * objfiles.h (OBJF_SHARED): Update comment.
1157 (userloaded_objfile_contains_address_p): Rename to ...
1158 (shared_objfile_contains_address_p): ... this, and update
1160 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1162 (remove_symbol_file_command): Skip objfiles that don't have
1165 2014-06-16 Tom Tromey <tromey@redhat.com>
1167 * minsyms.h (prim_record_minimal_symbol)
1168 (prim_record_minimal_symbol_and_info): Update comments.
1170 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1172 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1173 or --without-guile, according to how GDB was built.
1175 2014-06-13 Tom Tromey <tromey@redhat.com>
1177 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1179 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1181 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1183 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1184 help_list.Pass all_commands, not -1, to help_list.
1185 * cli/cli-dump.c (dump_command, append_command)
1186 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1187 (binary_dump_command, binary_append_command): Pass all_commands,
1188 not -1, to help_list.
1189 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1191 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1193 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1195 * top.c (set_history): Pass all_commands, not -1, to help_list.
1196 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1197 all_commands, not -1, to help_list.
1198 * symfile.c (overlay_command): Pass all_commands, not -1, to
1200 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1202 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1204 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1206 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1207 not -1, to help_list.
1208 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1209 not -1, to help_list.
1210 * maint.c (maintenance_command, maintenance_info_command)
1211 (maintenance_print_command, maintenance_set_cmd): Pass
1212 all_commands, not -1, to help_list.
1213 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1215 * language.c (set_check): Pass all_commands, not -1, to help_list.
1216 * infcmd.c (unset_command): Pass all_commands, not -1, to
1218 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1220 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1222 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1224 * breakpoint.c (save_command): Pass all_commands, not -1, to
1226 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1227 all_commands, not -1, to help_list.
1229 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1231 * regcache.c (struct register_to_invalidate): New structure.
1232 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1234 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1236 2014-06-12 Yao Qi <yao@codesourcery.com>
1238 * varobj.c (varobj_get_num_children): Call
1239 varobj_is_dynamic_p.
1240 (varobj_list_children): Likewise.
1241 (varobj_update): Likewise. Update comments.
1243 2014-06-12 Yao Qi <yao@codesourcery.com>
1245 * varobj.c (varobj_pretty_printed_p): Rename to ...
1246 (varobj_is_dynamic_p): ... this. New function.
1247 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1248 (varobj_is_dynamic_p): Declare.
1249 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1250 (mi_print_value_p, varobj_update_one): Likewise.
1252 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1253 Yao Qi <yao@codesourcery.com>
1255 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1256 (varobj_get_iterator): Wrap up code for pretty-printer by
1257 "#if HAVE_PYTHON" and "#endif".
1258 (update_dynamic_varobj_children): Likewise.
1260 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1261 Yao Qi <yao@codesourcery.com>
1263 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1264 gdb_python_initialized is false. Move some code from varobj.c.
1265 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1266 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1267 (struct varobj_item): Moved to varobj-iter.h".
1268 (varobj_clear_saved_item): New function.
1269 (update_dynamic_varobj_children): Move python-related code to
1271 (free_variable): Call varobj_clear_saved_item and
1274 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1275 Yao Qi <yao@codesourcery.com>
1277 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1278 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1279 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1280 (py-varobj.o): New rule.
1281 * python/py-varobj.c: New file.
1282 * python/python-internal.h (py_varobj_get_iterator): Declare.
1283 * varobj-iter.h: New file.
1284 * varobj.c: Include "varobj-iter.h"
1285 (struct varobj) <child_iter>: Change its type from "PyObject *"
1286 to "struct varobj_iter *".
1287 <saved_item>: Likewise.
1288 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1289 [HAVE_PYTHON] (varobj_get_iterator): New function.
1290 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1291 python-specific code to python/py-varobj.c.
1292 (install_visualizer): Call varobj_iter_delete instead of
1294 * varobj.h (varobj_ensure_python_env): Declare.
1296 2014-06-12 Yao Qi <yao@codesourcery.com>
1298 * varobj.c (struct varobj_item): New structure.
1299 (create_child_with_value): Update declaration.
1300 (varobj_add_child): Replace arguments 'name' and 'value' with
1301 'item'. All callers updated.
1302 (install_dynamic_child): Likewise.
1303 (update_dynamic_varobj_children): Likewise.
1304 (varobj_add_child): Likewise.
1305 (create_child_with_value): Likewise.
1307 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1309 * NEWS: Create a new section for the next release branch.
1310 Rename the section of the current branch, now that it has
1313 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1315 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1316 * version.in: Bump version to 7.8.50.DATE-cvs.
1318 2014-06-11 Pedro Alves <palves@redhat.com>
1321 * ser-mingw.c (net_windows_socket_check_pending): New function.
1322 (net_windows_select_thread): Ignore spurious wakeups. Use
1323 net_windows_socket_check_pending.
1324 (net_windows_wait_handle): Check for pending events with
1325 ioctlsocket, through net_windows_socket_check_pending, instead of
1326 checking the socket's event.
1328 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1330 * python/python-internal.h (gdb_PyObject_GetAttrString)
1331 (gdb_PyObject_HasAttrString): New inline function definitions.
1332 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1333 char * of the second argument to PyObject_GetAttrString.
1335 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1337 * serial.c (serial_write): Fix index of character to be printed
1338 in call to serial_logchar when serial debug traces are enabled.
1340 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1342 * gdbtypes (resolve_dynamic_range): Add function description.
1344 2014-06-09 Pedro Alves <palves@redhat.com>
1346 * linux-nat.c (linux_child_follow_fork): Initialize status with
1347 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1348 inner block. Only pass the signal to PTRACE_DETACH if in pass
1351 2014-06-09 Gary Benson <gbenson@redhat.com>
1353 * common/signals.c (gdb_signal_from_host): Reorder to separate
1354 the always-available ANSI-standard signals from the signals that
1356 (do_gdb_signal_to_host): Likewise.
1357 * proc-events.c (signal_table): Likewise.
1359 2014-06-08 Hui Zhu <hui@codesourcery.com>
1361 * common/linux-ptrace.c (linux_disable_event_reporting): New
1363 * common/linux-ptrace.h (linux_disable_event_reporting): New
1365 * linux-nat.c (linux_child_follow_fork): Do a single step before
1368 2014-06-07 Keith Seitz <keiths@redhat.com>
1372 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1373 from symbol_matches_domain in symtab.c. All local callers
1374 of symbol_matches_domain updated.
1375 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1376 search STRUCT_DOMAIN.
1377 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1378 independently. standard_lookup will do that automatically.
1379 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1380 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1381 (cp_lookup_symbol_in_namespace): Likewise.
1382 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1383 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1384 may return a STRUCT_DOMAIN match.
1385 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1386 * cp-support.c: Include language.h.
1387 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1389 * psymtab.c (match_partial_symbol): Compare the requested
1390 domain with the symbol's domain directly.
1391 (lookup_partial_symbol): Likewise.
1392 * symtab.c (lookup_symbol_in_language): Explain when/why
1393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1394 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1395 appropriate languages.
1396 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1397 and moved to ada-lang.c
1398 (lookup_block_symbol): Explain that this function only returns
1399 symbol matching the requested DOMAIN.
1400 Compare the requested domain with the symbol's domain directly.
1401 (iterate_over_symbols): Compare the requested domain with the
1402 symbol's domain directly.
1403 * symtab.h (symbol_matches_domain): Remove.
1405 2014-06-06 Doug Evans <xdje42@gmail.com>
1407 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1408 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1409 (gdbscm_guile_version_is_at_least): Declare.
1410 (gdbscm_scm_string_to_int): Declare.
1411 * guile/guile.c (gdbscm_guile_major_version): New global.
1412 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1413 (guile_datadir): New static global.
1414 (gdbscm_guile_data_directory): New function.
1415 (initialize_scheme_side): Update.
1416 (misc_guile_functions): Add guile-data-directory.
1417 (initialize_gdb_module): Fetch guile version number.
1418 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1419 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1420 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1421 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1423 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1424 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1425 * guile/scm-value.c (gdbscm_value_to_string): Only call
1426 scm_port_conversion_strategy if Guile version >= 2.0.6.
1428 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1430 * main.c (print_gdb_help): Add -q and --silent.
1432 2014-06-06 Gary Benson <gbenson@redhat.com>
1434 * common/signals.c: Remove preprocessor conditionals for
1435 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1436 SIGSEGV and SIGTERM.
1437 * proc-events.c: Likewise.
1439 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1441 * symfile.c (symfile_free_objfile): Remove restriction to
1443 * symfile-mem.c (symbol_file_add_from_memory): Call
1444 add_target_sections_of_objfile.
1446 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1448 * guile/scm-value.c (gdbscm_history_append_x): Use
1449 'vlscm_get_value_smob_arg_unsafe' instead of
1450 'vlscm_scm_to_value'.
1452 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1455 * utils.c (printchar): Don't escape at all if quoter is NUL.
1456 Update function documentation to clarify effect of parameter
1458 * remote.c (escape_buffer): Pass '\\' as the quoter to
1459 fputstrn_unfiltered.
1460 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1461 generate the output.
1462 (mi_solib_unloaded): Same.
1464 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1466 * development.sh: Delete.
1467 * Makefile.in (config.status): Adjust dependency on development.sh.
1468 * configure.ac: Adjust development.sh source call.
1469 * configure: Regenerate.
1471 2014-06-04 Doug Evans <xdje42@gmail.com>
1473 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1474 is_scheme_bkpt, spec.
1475 (bpscm_make_breakpoint_smob): Initialize new members.
1476 (gdbscm_create_breakpoint_x): Split into two ...
1477 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1478 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1479 (scheme_function breakpoint_functions): Update.
1480 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1481 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1482 register-breakpoint!.
1484 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1487 * mem-break.c (z_type_supported): Return zero if
1488 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1490 2014-06-04 Tom Tromey <tromey@redhat.com>
1492 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1493 value_from_contents_and_address_unresolved.
1494 (ada_template_to_fixed_record_type_1): Likewise.
1495 (ada_which_variant_applies): Likewise.
1496 * value.h (value_from_contents_and_address_unresolved): Declare.
1497 * value.c (value_from_contents_and_address_unresolved): New
1499 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1500 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1501 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1503 2014-06-04 Tom Tromey <tromey@redhat.com>
1505 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1507 2014-06-04 Tom Tromey <tromey@redhat.com>
1509 * procfs.c (procfs_attach): Make "args" const.
1510 * windows-nat.c (windows_attach): Make "args" const.
1511 * nto-procfs.c (procfs_attach): Make "args" const.
1512 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1513 * go32-nat.c (go32_attach): Make "args" const.
1514 * gnu-nat.c (gnu_attach): Make "args" const.
1515 * darwin-nat.c (darwin_attach): Make "args" const.
1516 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1517 * linux-nat.c (linux_nat_attach): Make "args" const.
1518 * remote.c (extended_remote_attach_1, extended_remote_attach):
1520 * target.h (struct target_ops) <to_attach>: Make "args" const.
1521 (find_default_attach): Likewise.
1522 * utils.c (parse_pid_to_attach): Make "args" const.
1523 * utils.h (parse_pid_to_attach): Update.
1525 2014-06-04 Tom Tromey <tromey@redhat.com>
1527 * target-delegates.c: Rebuild.
1528 * target.c (default_thread_address_space): New function.
1529 (target_thread_address_space): Simplify.
1530 * target.h (struct target_ops) <to_thread_address_space>: Add
1531 TARGET_DEFAULT_FUNC.
1533 2014-06-04 Doug Evans <xdje42@gmail.com>
1535 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1537 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1539 * record-btrace.c: Include event-loop.h and inf-loop.h.
1540 (record_btrace_resume_exec_dir)
1541 (record_btrace_async_inferior_event_handler)
1542 (record_btrace_handle_async_inferior_event): New.
1543 (record_btrace_open): Create async event handler.
1544 (record_btrace_close): Delete async event handler.
1545 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1546 Mark async event handler.
1547 (record_btrace_execution_direction): New.
1548 (init_record_btrace_ops): Initialize to_execution_direction.
1550 2014-06-03 Doug Evans <xdje42@gmail.com>
1552 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1553 (gdbscm_make_parameter): Ditto.
1555 2014-06-03 Doug Evans <dje@google.com>
1557 * exec.c (exec_close_1): Call clear_section_table instead of
1558 resize_section_table.
1559 (clear_section_table): New function.
1560 (resize_section_table): Make static. Rename arg num_added to
1562 * exec.h (clear_section_table): Declare.
1563 (resize_section_table): Delete.
1564 * progspace.c (release_program_space): Call clear_section_table
1565 instead of resize_section_table.
1567 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1569 * NEWS (Python Scripting): Add entry about the new xmethods
1572 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1574 * python/py-xmethods.c: New file.
1575 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1576 (objfpy_dealloc): XDECREF on the new xmethods field.
1577 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1579 (objfpy_get_xmethods): New function.
1580 (objfile_getset): New entry 'xmethods'.
1581 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1582 (pspy_dealloc): XDECREF on the new xmethods field.
1583 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1585 (pspy_get_xmethods): New function.
1586 (pspace_getset): New entry 'xmethods'.
1587 * python/python-internal.h: Add declarations for new functions.
1588 * python/python.c (_initialize_python): Invoke
1589 gdbpy_initialize_xmethods.
1590 * python/lib/gdb/__init__.py (xmethods): New
1592 * python/lib/gdb/xmethod.py: New file.
1593 * python/lib/gdb/command/xmethods.py: New file.
1595 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1597 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1598 best match method returned by find_overload_match is an xmethod.
1599 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1600 the best matching operator returned by find_overload_match is an
1602 * valops.c: #include "extension.h".
1603 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1604 Return void. The list of matching source methods is returned in
1605 "fn_list" and a vector of matching debug method workers is
1606 returned in "xm_worker_vec". Update all callers.
1607 (value_find_oload_method_list): Likewise.
1608 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1609 non-NULL, then the index of the best matching method in this
1610 vector is returned. Update all callers.
1611 (find_overload_match): Include xmethods while performing overload
1614 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1616 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1617 * extension-priv.h (struct extension_language_ops): Add the
1619 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1620 get_matching_xmethod_workers, get_xmethod_argtypes,
1621 invoke_xmethod, free_xmethod_worker,
1622 free_xmethod_worker_vec): New functions.
1623 * extension.h: #include "common/vec.h".
1624 New function declarations.
1625 (struct xmethod_worker): New struct.
1626 (VEC (xmethod_worker_ptr)): New vector type.
1627 (xmethod_worker_ptr): New typedef.
1628 (xmethod_worker_vec): Likewise.
1629 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1631 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1632 (struct builtin_type): New field "xmethod".
1633 * valarith.c (value_ptradd): Assert that the value argument is not
1635 * valops.c (value_must_coerce_to_target): Return 0 for
1636 lval_xcallable values.
1637 * value.c (struct value): New field XM_WORKER in the field
1639 (value_address, value_raw_address): Return 0 for lval_xcallable
1641 (set_value_address): Assert that the value is not an
1643 (value_free): Free the associated xmethod worker when freeing
1644 lval_xcallable values.
1645 (set_value_component_location): Assert that the WHOLE value is not
1647 (value_of_xmethod, call_xmethod): New functions.
1648 * value.h: Declare "struct xmethod_worker".
1649 Declare new functions value_of_xmethod, call_xmethod.
1651 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1652 Pedro Alves <palves@redhat.com>
1654 PR breakpoints/17000
1655 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1656 New function, extracted from software_breakpoint_inserted_here_p.
1657 (software_breakpoint_inserted_here_p): Replace factored out code
1658 by call to find_non_raw_software_breakpoint_inserted_here.
1659 (bp_target_info_copy_insertion_state): New function.
1660 (bkpt_insert_location): Handle the case of a single-step
1661 breakpoint already inserted at the same address.
1662 (bkpt_remove_location): Handle the case of a single-step
1663 breakpoint still inserted at the same address.
1664 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1665 breakpoint already inserted at the same address.
1666 (deprecated_remove_raw_breakpoint): Handle the case of a
1667 non-raw breakpoint still inserted at the same address.
1668 (find_single_step_breakpoint): New function, extracted from
1669 single_step_breakpoint_inserted_here_p.
1670 (find_single_step_breakpoint): New function,
1671 factored out from single_step_breakpoint_inserted_here_p.
1672 (single_step_breakpoint_inserted_here_p): Reimplement.
1674 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1676 Pushed by Joel Brobecker <brobecker@adacore.com>
1677 * source.c (show_substitute_path_command): Fix display of matching
1680 2014-06-03 Gary Benson <gbenson@redhat.com>
1682 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1684 2014-06-02 Doug Evans <xdje42@gmail.com>
1686 Add parameter support for Guile.
1687 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1688 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1689 (scm-param.o): New rule.
1690 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1691 (gdbscm_misc_error): Declare.
1692 (gdbscm_canonicalize_command_name): Declare.
1693 (gdbscm_scm_to_host_string): Declare.
1694 (gdbscm_scm_from_host_string): Declare.
1695 (gdbscm_initialize_parameters): Declare.
1696 * guile/guile.c (initialize_gdb_module): Call
1697 gdbscm_initialize_parameters.
1698 * guile/lib/gdb.scm: Export parameter symbols.
1699 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1700 cmdscm_canonicalize_name and made public. All callers updated.
1701 * guile/scm-exception.c (gdbscm_misc_error): New function.
1702 * guile/scm-param.c: New file.
1703 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1704 (gdbscm_scm_to_host_string): New function.
1705 (gdbscm_scm_from_host_string): New function.
1706 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1708 2014-06-02 Doug Evans <xdje42@gmail.com>
1710 Add command support for Guile.
1711 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1712 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1713 (scm-cmd.o): New rule.
1714 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1715 (gdbscm_user_error_p): Declare.
1716 (gdbscm_parse_command_name): Declare.
1717 (gdbscm_valid_command_class_p): Declare.
1718 (gdbscm_initialize_commands): Declare.
1719 * guile/guile.c (initialize_gdb_module): Call
1720 gdbscm_initialize_commands.
1721 * guile/lib/gdb.scm: Export command symbols.
1722 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1723 (throw-user-error): New function.
1724 * guile/scm-cmd.c: New file.
1725 * guile/scm-exception.c (user_error_symbol): New static global.
1726 (gdbscm_user_error_p): New function.
1727 (gdbscm_initialize_exceptions): Set user_error_symbol.
1728 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1730 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1732 * top.c (command_loop): Handle comments here...
1733 (command_line_input): ... not here.
1735 2014-06-02 Doug Evans <xdje42@gmail.com>
1737 Add progspace support for Guile.
1738 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1739 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1740 (scm-progspace.o): New rule.
1741 * guile/guile-internal.h (pspace_smob): New typedef.
1742 (psscm_pspace_smob_pretty_printers): Declare.
1743 (psscm_pspace_smob_from_pspace): Declare.
1744 (psscm_scm_from_pspace): Declare.
1745 * guile/guile.c (initialize_gdb_module): Call
1746 gdbscm_initialize_pspaces.
1747 * guile/lib/gdb.scm: Export progspace symbols.
1748 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1750 (append-pretty-printer!): Ditto.
1751 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1753 * guile/scm-progspace.c: New file.
1755 2014-06-03 Alan Modra <amodra@gmail.com>
1757 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1758 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1760 2014-06-02 Doug Evans <dje@google.com>
1762 Add support for skeletonless type units.
1763 * dwarf2read.c (struct dwarf2_per_objfile): New member
1764 n_allocated_type_units.
1765 (struct dwarf2_per_objfile) <tu_stats>: New member
1766 nr_all_type_units_reallocs.
1767 (create_signatured_type_table_from_index): Initialize
1768 n_allocated_type_units
1769 (create_all_type_units): Ditto.
1770 (add_type_unit): Move up in file. New arg slot.
1771 All callers updated. Increase space for all_type_units more
1773 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1774 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1775 (lookup_dwp_signatured_type): Ditto.
1776 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1777 All callers updated.
1778 (build_type_psymtabs_1): Leave type_unit_groups as
1779 NULL if no TUs present.
1780 (print_tu_stats): New function.
1781 (process_skeletonless_type_unit): New function.
1782 (process_dwo_file_for_skeletonless_type_units): New
1784 (process_skeletonless_type_units): New function.
1785 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1786 Call print tu_stats if debugging enabled.
1788 2014-06-02 Pedro Alves <palves@redhat.com>
1790 * breakpoint.c (build_target_command_list): Don't build a command
1791 list if we have any duplicate location that isn't a dprintf.
1793 2014-06-02 Pedro Alves <palves@redhat.com>
1795 * breakpoint.c (dprintf_breakpoint_hit): New function.
1796 (initialize_breakpoint_ops): Install it as dprintf's
1797 breakpoint_hit method.
1799 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1801 * source.c (substitute_path_rule_matches): Simplify using
1802 filename_ncmp instead of FILENAME_CMP.
1804 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1806 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1808 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1810 * configure.ac: When Guile is available, check for the
1811 availability of 'scm_new_smob'.
1812 * configure, config.h.in: Regenerate.
1813 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1816 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1818 * frame.c (struct frame_info): Add stop_string field.
1819 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1820 (get_prev_frame_always): Old content moved into
1821 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1822 TRY_CATCH, handle MEMORY_ERROR exceptions.
1823 (frame_stop_reason_string): New function definition.
1824 * frame.h (unwind_stop_reason_to_string): Extend comment to
1825 mention frame_stop_reason_string.
1826 (frame_stop_reason_string): New function declaration.
1827 * stack.c (frame_info): Switch to frame_stop_reason_string.
1828 (backtrace_command_1): Switch to frame_stop_reason_string.
1829 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1830 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1831 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1833 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1835 * frame.c (frame_stop_reason_string): Rename to ...
1836 (unwind_stop_reason_to_string): this.
1837 * frame.h (frame_stop_reason_string): Rename to ...
1838 (unwind_stop_reason_to_string): this.
1839 * stack.c (frame_info): Update call to frame_stop_reason_string.
1840 (backtrace_command_1): Likewise.
1841 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1842 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1844 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1846 * frame.c (remove_prev_frame): New function.
1847 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1850 2014-05-29 Pedro Alves <palves@redhat.com>
1852 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1853 and make it const. When a single-step decays to a continue,
1854 clear 'step', not 'hw_step'. Pass whether the caller wanted
1855 to step to user_visible_resume_ptid, not what we ask the
1858 2014-05-29 Pedro Alves <palves@redhat.com>
1860 * infrun.c (process_event_stop_test, handle_step_into_function)
1861 (handle_step_into_function_backward): Adjust.
1862 Don't set the even thread's stop_step and call stop_waiting before
1863 calling end_stepping_range. Instead do that ...
1864 (end_stepping_range): ... here. Take an ecs pointer parameter.
1866 2014-05-29 Pedro Alves <palves@redhat.com>
1868 * infrun.c (stop_stepping): Rename to ...
1869 (stop_waiting): ... this.
1870 (proceed): Update comment.
1871 (process_event_stop_test, handle_inferior_event)
1872 (handle_signal_stop, handle_step_into_function)
1873 (handle_step_into_function_backward): Update.
1875 2014-05-29 Pedro Alves <palves@redhat.com>
1877 * infcall.c (run_inferior_call): Don't check whether the current
1878 thread is running after the proceed call.
1880 2014-05-29 Pedro Alves <palves@redhat.com>
1881 Tom Tromey <tromey@redhat.com>
1883 * NEWS: Mention "maint set target-async", "set mi-async", and that
1884 background execution commands are now always available.
1885 * target.h (target_async_permitted): Update comment.
1886 * target.c (target_async_permitted, target_async_permitted_1):
1888 (set_target_async_command): Rename to ...
1889 (maint_set_target_async_command): ... this.
1890 (show_target_async_command): Rename to ...
1891 (maint_show_target_async_command): ... this.
1892 (_initialize_target): Adjust.
1893 * infcmd.c (prepare_execution_command): Make extern.
1894 * inferior.h (prepare_execution_command): Declare.
1895 * infrun.c (set_observer_mode): Leave target async alone.
1896 * mi/mi-interp.c (mi_interpreter_init): Install
1897 mi_on_sync_execution_done as sync_execution_done observer.
1898 (mi_on_sync_execution_done): New function.
1899 (mi_execute_command_input_handler): Don't print the prompt if we
1900 just started a synchronous command with an async target.
1901 (mi_on_resume): Check sync_execution before printing prompt.
1902 * mi/mi-main.h (mi_async_p): Declare.
1903 * mi/mi-main.c: Include gdbcmd.h.
1904 (mi_async_p): New function.
1905 (mi_async, mi_async_1): New globals.
1906 (set_mi_async_command, show_mi_async_command, mi_async): New
1908 (exec_continue): Call prepare_execution_command.
1909 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1910 (mi_execute_async_cli_command): Use mi_async_p.
1911 (_initialize_mi_main): Install "set mi-async". Make
1912 "target-async" a deprecated alias.
1914 2014-05-29 Pedro Alves <palves@redhat.com>
1916 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1917 (_initialize_cli_interp): Adjust.
1918 * event-loop.c: Include "observer.h".
1919 (start_event_loop): Notify 'command_error' observers instead of
1920 calling display_gdb_prompt. Remove FIXME comment.
1921 * event-top.c (display_gdb_prompt): Remove call into the
1923 * inf-loop.c: Include "observer.h".
1924 (inferior_event_handler): Notify 'command_error' observers instead
1925 of calling display_gdb_prompt.
1926 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1927 observers instead of calling display_gdb_prompt.
1928 * interps.c (interp_set): Don't call display_gdb_prompt.
1929 (current_interp_display_prompt_p): Delete.
1930 * interps.h (interp_prompt_p): Delete declaration.
1931 (interp_prompt_p_ftype): Delete.
1932 (struct interp_procs) <prompt_proc_p>: Delete field.
1933 (current_interp_display_prompt_p): Delete declaration.
1934 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1935 (_initialize_mi_interp): Adjust.
1936 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1937 'command_error' observers.
1938 (tui_on_sync_execution_done, tui_on_command_error): New
1940 (tui_display_prompt_p): Delete.
1941 (_initialize_tui_interp): Adjust.
1943 2014-05-29 Pedro Alves <palves@redhat.com>
1946 * cli/cli-interp.c: Include infrun.h and observer.h.
1947 (cli_uiout, cli_interp): New globals.
1948 (cli_on_signal_received, cli_on_end_stepping_range)
1949 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1951 (cli_interpreter_init): Install them as 'end_stepping_range',
1952 'signal_received' 'signal_exited', 'exited' and 'no_history'
1954 (_initialize_cli_interp): Remove cli_interp local.
1955 * infrun.c (handle_inferior_event): Call the several stop reason
1956 observers instead of printing the stop reason directly.
1957 (end_stepping_range): New function.
1958 (print_end_stepping_range_reason, print_signal_exited_reason)
1959 (print_exited_reason, print_signal_received_reason)
1960 (print_no_history_reason): Make static, and add an uiout
1961 parameter. Print to that instead of to CURRENT_UIOUT.
1962 * infrun.h (print_end_stepping_range_reason)
1963 (print_signal_exited_reason, print_exited_reason)
1964 (print_signal_received_reason print_no_history_reason): New
1966 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1968 <cli_uiout>: New field.
1969 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1970 uiout for CLI output. Install 'signal_received',
1971 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1973 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1974 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1975 (mi_on_no_history): New functions.
1976 (ui_out_free_cleanup): Delete function.
1977 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1978 instead use the one already stored in the MI interpreter data.
1979 (mi_ui_out): Adjust.
1980 * tui/tui-interp.c: Include infrun.h and observer.h.
1981 (tui_interp): New global.
1982 (tui_on_signal_received, tui_on_end_stepping_range)
1983 (tui_on_signal_exited, tui_on_exited)
1984 (tui_on_no_history): New functions.
1985 (tui_init): Install them as 'end_stepping_range',
1986 'signal_received' 'signal_exited', 'exited' and 'no_history'
1988 (_initialize_tui_interp): Delete tui_interp local.
1990 2014-05-29 Pedro Alves <palves@redhat.com>
1993 * linux-nat.c (linux_nat_resume_callback): Rename the second
1994 parameter to 'except'. Skip LP if it points to EXCEPT.
1995 (linux_nat_resume): Don't mark the event lwp as not stopped
1996 before resuming sibling lwps. Instead ask
1997 linux_nat_resume_callback to skip the event lwp. Mark it as not
1998 stopped after actually resuming it.
1999 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2001 (wait_lwp): Mark the lwp as stopped here.
2002 (stop_wait_callback): Mark the lwp as not stopped right after
2003 resuming it. Don't mark lwps as stopped here.
2004 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2005 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2007 2014-05-29 Pedro Alves <palves@redhat.com>
2010 * infrun.c (resume): Determine how much to resume depending on
2011 whether the caller wanted a step, not whether we can hardware step
2012 the target. Mark all threads that we intend to run as running,
2013 unless we're calling an inferior function.
2014 (normal_stop): If the thread is running an infcall, don't finish
2016 * target.c (target_resume): Don't mark threads as running here.
2018 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2020 * serial.c (_initialize_serial): Remove support for
2021 the "set remotebaud" and "show remotebaud" commands.
2022 * NEWS: Add entry documenting the removal of that command.
2024 2014-05-28 Yao Qi <yao@codesourcery.com>
2026 * charset.c: Fix typo in comments.
2028 2014-05-27 Gary Benson <gbenson@redhat.com>
2030 * utils.c (internal_vproblem): Prompt for a bug report.
2032 2014-05-26 Andy Wingo <wingo@igalia.com>
2034 * guile/scm-arch.c (arscm_mark_arch_smob):
2035 * guile/scm-block.c (bkscm_mark_block_smob)
2036 (bkscm_mark_block_syms_progress_smob):
2037 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2038 * guile/scm-exception.c (exscm_mark_exception_smob):
2039 * guile/scm-frame.c (frscm_mark_frame_smob):
2040 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2041 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2042 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2043 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2044 (ppscm_mark_pretty_printer_worker_smob):
2045 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2046 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2047 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2048 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2050 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2053 2014-05-26 Andy Wingo <wingo@igalia.com>
2054 Doug Evans <xdje42@gmail.com>
2056 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2057 empty_base_class. All uses updated.
2058 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2059 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2061 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2062 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2063 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2064 (gdbscm_gsmob_has_property_p, add_property_name)
2065 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2066 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2067 (gdb-object-has-property?, gdb-object-properties): Remove.
2068 (gdb-object-kind): Renamed from gsmob-kind.
2070 2014-05-26 Andy Wingo <wingo@igalia.com>
2072 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2073 * configure: Regenerate.
2075 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2077 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2079 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2081 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2082 (replay_memory_access_read_only, replay_memory_access_read_write)
2083 (replay_memory_access_types, replay_memory_access)
2084 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2085 (cmd_set_record_btrace, cmd_show_record_btrace)
2086 (cmd_show_replay_memory_access): New.
2087 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2088 (record_btrace_remove_breakpoint): Replace
2089 record_btrace_allow_memory_access with replay_memory_access.
2090 (_initialize_record_btrace): Add commands.
2091 * NEWS: Announce it.
2093 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2095 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2097 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2099 * MAINTAINERS (Write After Approval): Move self back from
2102 2014-05-22 Pedro Alves <palves@redhat.com>
2104 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2105 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2106 (disable_randomization, enum exec_direction_kind)
2107 (execution_direction, stop_registers, start_remote)
2108 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2109 (wait_for_inferior, normal_stop, get_last_target_status)
2110 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2111 (insert_step_resume_breakpoint_at_sal)
2112 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2113 (set_step_info, print_stop_event, signal_stop_state)
2114 (signal_print_state, signal_pass_state, signal_stop_update)
2115 (signal_print_update, signal_pass_update)
2116 (update_signals_program_target, clear_exit_convenience_vars)
2117 (displaced_step_dump_bytes, update_observer_mode)
2118 (signal_catch_update, gdb_signal_from_command): Move
2120 * infrun.h: ... to this new file.
2121 * amd64-tdep.c: Include infrun.h.
2122 * annotate.c: Include infrun.h.
2123 * arch-utils.c: Include infrun.h.
2124 * arm-linux-tdep.c: Include infrun.h.
2125 * arm-tdep.c: Include infrun.h.
2126 * break-catch-sig.c: Include infrun.h.
2127 * breakpoint.c: Include infrun.h.
2128 * common/agent.c: Include infrun.h instead of inferior.h.
2129 * corelow.c: Include infrun.h.
2130 * event-top.c: Include infrun.h.
2131 * go32-nat.c: Include infrun.h.
2132 * i386-tdep.c: Include infrun.h.
2133 * inf-loop.c: Include infrun.h.
2134 * infcall.c: Include infrun.h.
2135 * infcmd.c: Include infrun.h.
2136 * infrun.c: Include infrun.h.
2137 * linux-fork.c: Include infrun.h.
2138 * linux-nat.c: Include infrun.h.
2139 * linux-thread-db.c: Include infrun.h.
2140 * monitor.c: Include infrun.h.
2141 * nto-tdep.c: Include infrun.h.
2142 * procfs.c: Include infrun.h.
2143 * record-btrace.c: Include infrun.h.
2144 * record-full.c: Include infrun.h.
2145 * remote-m32r-sdi.c: Include infrun.h.
2146 * remote-mips.c: Include infrun.h.
2147 * remote-notif.c: Include infrun.h.
2148 * remote-sim.c: Include infrun.h.
2149 * remote.c: Include infrun.h.
2150 * reverse.c: Include infrun.h.
2151 * rs6000-tdep.c: Include infrun.h.
2152 * s390-linux-tdep.c: Include infrun.h.
2153 * solib-irix.c: Include infrun.h.
2154 * solib-osf.c: Include infrun.h.
2155 * solib-svr4.c: Include infrun.h.
2156 * target.c: Include infrun.h.
2157 * top.c: Include infrun.h.
2158 * windows-nat.c: Include infrun.h.
2159 * mi/mi-interp.c: Include infrun.h.
2160 * mi/mi-main.c: Include infrun.h.
2161 * python/py-threadevent.c: Include infrun.h.
2163 2014-05-22 Pedro Alves <palves@redhat.com>
2165 * infrun.c (handle_inferior_event): Store the exit code for
2166 --return-child-result here, instead of ...
2167 (print_exited_reason): ... here.
2169 2014-05-21 Pedro Alves <palves@redhat.com>
2172 * gdbthread.h (struct thread_control_state): New field
2174 * infrun.c (follow_fork): Copy the new thread control field to the
2176 (clear_proceed_status_thread): Clear the new thread control field.
2177 (proceed): Set the new thread control field.
2178 * interps.h (command_interp): Declare.
2179 * interps.c (command_interpreter): New global.
2180 (command_interp): New function.
2181 (interp_exec): Set `command_interpreter' while here.
2182 * cli-out.c (cli_uiout_dtor): New function.
2183 (cli_ui_out_impl): Install it.
2184 * mi/mi-interp.c: Include cli-out.h.
2185 (mi_cmd_interpreter_exec): Add comment.
2186 (restore_current_uiout_cleanup): New function.
2187 (ui_out_free_cleanup): New function.
2188 (mi_on_normal_stop): If finishing an execution command started by
2189 a CLI command, or any kind of breakpoint-like event triggered,
2190 print the stop event to the output (CLI) stream.
2191 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2193 2014-05-21 Pedro Alves <palves@redhat.com>
2195 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2196 current source line having changed.
2197 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2198 * infrun.c (normal_stop): Adjust call to
2199 set_current_sal_from_frame.
2200 * source.c (clear_lines_listed_range): New function.
2201 (set_current_source_symtab_and_line, identify_source_line): Clear
2202 the lines listed range.
2203 (line_info): Handle the first "info line" after the current source
2204 line having changed.
2205 * stack.c (print_stack_frame): Remove center handling.
2206 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2209 2014-05-21 Pedro Alves <palves@redhat.com>
2211 * inf-child.c (inf_child_mourn_inferior): New function.
2212 * inf-child.h (inf_child_mourn_inferior): New declaration.
2213 * darwin-nat.c (darwin_mourn_inferior): Use
2214 inf_child_mourn_inferior.
2215 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2216 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2217 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2218 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2219 * windows-nat.c (windows_mourn_inferior): Likewise.
2221 2014-05-21 Doug Evans <xdje42@gmail.com>
2223 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2225 2014-05-21 Doug Evans <xdje42@gmail.com>
2227 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2228 (gdbscm_out_of_range_error): Ditto.
2229 (gdbscm_memory_error): Ditto.
2230 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2231 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2232 (gdbscm_out_of_range_error): Update.
2233 (gdbscm_memory_error): Update.
2234 (gdbscm_scm_to_target_string_unsafe): Delete.
2236 2014-05-21 Pedro Alves <palves@redhat.com>
2238 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2240 (inf_child_open_target): New function.
2241 (inf_child_open): Use inf_child_open_target to push the target
2242 instead of erroring out.
2243 (inf_child_disconnect, inf_child_close)
2244 (inf_child_maybe_unpush_target): New functions.
2245 (inf_child_target): Install inf_child_disconnect and
2246 inf_child_close. Store a pointer to the returned object.
2247 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2249 * target.c (auto_connect_native_target): New global.
2250 (show_default_run_target): New function.
2251 (find_default_run_target): Return NULL if automatically connecting
2252 to the native target is disabled.
2253 (_initialize_target): Install set/show auto-connect-native-target.
2254 * NEWS: Mention "set auto-connect-native-target", and "target
2256 * linux-nat.c (super_close): New global.
2257 (linux_nat_close): Call super_close.
2258 (linux_nat_add_target): Store a pointer to the base class's
2260 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2261 inf_child_maybe_unpush.
2262 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2264 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2265 the inferior. Use inf_child_maybe_unpush_target.
2266 (inf_ttrace_attach): Don't push the target if it is already
2268 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2269 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2270 after mourning the inferior. Use inf_child_maybe_unpush_target.
2271 (darwin_attach_pid): Don't push the target if it is already
2273 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2274 mourning the inferior. Use inf_child_maybe_unpush_target.
2275 (gnu_detach): Use inf_child_maybe_unpush_target.
2276 * go32-nat.c (go32_create_inferior): Don't push the target if it
2278 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2279 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2280 (procfs_open): Rename to ...
2281 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2282 comments. Can target_preopen before changing node. Call
2283 inf_child_open_target to push the target explicitly.
2284 (procfs_attach): Don't push the target if it is already pushed.
2285 (procfs_detach): Use inf_child_maybe_unpush_target.
2286 (procfs_create_inferior): Don't push the target if it is already
2288 (nto_native_ops): New global.
2289 (procfs_open): Reimplement.
2290 (procfs_native_open): New function.
2291 (init_procfs_targets): Install procfs_native_open as to_open of
2292 "target native". Store a pointer to the "native" target in
2294 * procfs.c (procfs_attach): Don't push the target if it is already
2296 (procfs_detach): Use inf_child_maybe_unpush_target.
2297 (procfs_mourn_inferior): Only unpush the target after mourning the
2298 inferior. Use inf_child_maybe_unpush_target.
2299 (procfs_init_inferior): Don't push the target if it is already
2301 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2302 if it is already pushed.
2304 2014-05-21 Pedro Alves <palves@redhat.com>
2306 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2307 and "procfs" targets are now called "native" instead.
2309 2014-05-21 Pedro Alves <palves@redhat.com>
2311 * go32-nat.c (go32_open): Delete.
2312 (go32_target): Don't override the to_open method.
2314 2014-05-21 Pedro Alves <palves@redhat.com>
2316 * nto-procfs.c (procfs_can_run): New function.
2317 (nto_procfs_ops): New global.
2318 (init_procfs_targets): New, based on procfs_target. Install
2319 "target native" in addition to "target procfs".
2320 (_initialize_procfs): Call init_procfs_targets instead of adding
2323 2014-05-21 Pedro Alves <palves@redhat.com>
2325 * windows-nat.c (windows_target): Don't override to_shortname,
2326 to_longname or to_doc.
2328 2014-05-21 Pedro Alves <palves@redhat.com>
2330 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2333 2014-05-21 Pedro Alves <palves@redhat.com>
2335 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2336 to_shortname, to_longname or to_doc.
2338 2014-05-21 Pedro Alves <palves@redhat.com>
2340 * go32-nat.c (go32_target): Don't override to_shortname,
2341 to_longname or to_doc.
2343 2014-05-21 Pedro Alves <palves@redhat.com>
2345 * inf-child.c (inf_child_open): Remove mention of "child".
2346 (inf_child_target): Rename target to "native" instead of "child".
2348 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2350 * Makefile.in (SFILES): Delete "regset.c".
2351 (COMMON_OBS): Delete "regset.o".
2353 * regset.h (regset_alloc): Delete prototype.
2355 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2357 * sparc-linux-tdep.c (sparc32_linux_gregset)
2358 (sparc32_linux_fpregset): New static regset structures.
2359 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2360 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2362 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2363 (sparc64_linux_fpregset): New static regset structures.
2364 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2365 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2366 New static regset structures.
2367 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2368 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2369 New static regset structures.
2370 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2371 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2372 New static regset structures.
2373 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2374 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2375 New static regset structures.
2376 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2378 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2380 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2381 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2382 register maps ("regmaps") from "*regset" to "*regmap". Do this
2383 for all regmap types and variables.
2384 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2385 (sparc32_linux_supply_core_gregset)
2386 (sparc32_linux_collect_core_gregset)
2387 (sparc32_linux_supply_core_fpregset)
2388 (sparc32_linux_collect_core_fpregset): Likewise.
2389 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2390 (sparc_gregmap, sparc_fpregmap): ... these.
2391 (sparc_supply_gregset, sparc_collect_gregset)
2392 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2393 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2394 (_initialize_sparc_nat): Rename regmaps.
2395 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2396 (sparc_gregmap, sparc_fpregmap): ... these.
2397 (sparc_supply_gregset, sparc_collect_gregset)
2398 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2399 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2401 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2402 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2404 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2406 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2407 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2408 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2410 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2411 (sparc32_bsd_fpregset): Rename to...
2412 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2413 (sparc32_bsd_fpregmap): ... these.
2414 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2415 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2416 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2417 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2418 (struct sparc_gregmap, struct sparc_fpregmap)
2419 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2420 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2421 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2422 (sparc32_supply_regset, sparc32_collect_gregset)
2423 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2425 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2426 (sparc64_linux_ptrace_gregmap): ... this.
2427 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2428 (_initialize_sparc64_linux_nat): Rename regmaps.
2429 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2430 (sparc64_linux_core_gregmap): ... this.
2431 (sparc64_linux_supply_core_gregset)
2432 (sparc64_linux_collect_core_gregset)
2433 (sparc64_linux_supply_core_fpregset)
2434 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2435 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2436 (sparc64_sol2_fpregset): Rename to...
2437 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2438 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2439 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2441 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2442 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2443 (sparc64_bsd_fpregset): Rename to...
2444 (struct sparc_gregmap, sparc64_sol2_gregmap)
2445 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2446 (sparc64_bsd_fpregmap): ... these.
2447 (sparc64_supply_gregset, sparc64_collect_gregset)
2448 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2450 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2451 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2452 (sparc64fbsd_gregmap): ... this.
2453 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2454 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2456 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2457 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2458 (sparc64nbsd_collect_fpregset): Likewise.
2459 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2460 (sparc64nbsd_gregmap): ... this.
2461 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2463 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2464 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2465 (sparc64obsd_gregmap): ... this.
2466 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2468 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2469 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2470 (sparc32nbsd_gregmap): ... this.
2471 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2474 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2476 * score-tdep.c (score7_linux_gregset): New static regset
2478 (score7_linux_regset_from_core_section): Remove dynamic regset
2480 (score_gdbarch_init): Drop allocation of tdep structure.
2481 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2483 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2487 (am33_regset_from_core_section): Remove dynamic regset
2490 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2493 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2495 (mips_linux_regset_from_core_section): Remove dynamic regset
2497 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2498 'gregset64', 'fpregset', and 'fpregset64'.
2499 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2500 deleted tdep fields.
2502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2504 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2506 (amd64_regset_from_core_section): Remove dynamic regset
2508 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2510 (amd64obsd_regset_from_core_section): Remove dynamic regset
2512 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2514 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2515 x86-common regset supply function.
2516 * i386-tdep.c (i386_collect_gregset): Make static.
2517 (i386_gregset): New global regset structure.
2518 (i386_fpregset, i386_xstateregset): New static regset structures.
2519 (i386_regset_from_core_section): Remove dynamic regset
2521 (i386_gdbarch_init): Remove initialization of tdep fields
2522 'gregset', 'fpregset', and 'xstateregset'.
2523 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2524 'fpregset', and 'xstateregset'.
2525 (i386_collect_gregset): Remove prototype.
2526 (i386_gregset): New declaration.
2527 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2529 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2532 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2534 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2535 (arm_linux_vfpregset): New static regset structures.
2536 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2538 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2539 and 'vfpregset' fields.
2541 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2543 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2544 (aarch64_linux_fpregset): New static regset structures.
2545 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2546 of regset structures.
2547 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2550 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2552 * regset.h (struct regset): Remove gdbarch field.
2553 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2554 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2555 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2557 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2558 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2559 (ppc32_linux_vsxregset): Likewise.
2560 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2561 via the regcache instead of the regset.
2562 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2563 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2564 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2565 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2568 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2570 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2571 Constify structures.
2572 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2573 (alphanbsd_aout_gregset): Likewise.
2574 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2575 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2577 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2578 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2580 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2581 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2582 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2583 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2584 * m88k-tdep.c (m88k_gregset): Likewise.
2585 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2586 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2587 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2588 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2589 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2590 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2591 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2592 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2593 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2595 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2596 * sh-tdep.h (sh_corefile_gregset): Likewise.
2597 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2598 * vax-tdep.c (vax_gregset): Likewise.
2600 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2602 Fix TLS access for -static -pthread.
2603 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2604 (try_thread_db_load_1): Initialize it.
2605 (thread_db_get_thread_local_address): Call it if LM is zero.
2606 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2607 * target.h (struct target_ops) (to_get_thread_local_address): Add
2608 load_module_addr comment.
2610 2014-05-21 Pedro Alves <palves@redhat.com>
2612 * dcache.c (dcache_read_memory_partial): If reading the cache line
2613 fails, fallback to reading just the memory the caller wanted.
2615 2014-05-20 Doug Evans <dje@google.com>
2617 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2618 instead of get_current_arch.
2620 2014-05-20 Pedro Alves <palves@redhat.com>
2622 * NEWS: Mention that compare-sections now works with all targets.
2624 * remote.c (PACKET_qCRC): New enum value.
2625 (remote_verify_memory): Don't send qCRC if the target has no
2626 execution. Use packet_support/packet_ok. If the target doesn't
2627 support the qCRC packet, fallback to a deep memory copy.
2628 (compare_sections_command): Say "target image" instead of "remote
2630 (_initialize_remote): Add PACKET_qCRC to the list of config
2631 packets that have no associated command. Extend comment.
2632 * target.c (simple_verify_memory, default_verify_memory): New
2634 * target.h (struct target_ops) <to_verify_memory>: Default to
2635 default_verify_memory.
2636 (simple_verify_memory): New declaration.
2637 * target-delegates.c: Regenerate.
2639 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2641 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2643 2014-05-20 Hui Zhu <hui@codesourcery.com>
2644 Yao Qi <yao@codesourcery.com>
2647 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2648 and change address of sp and pc.
2650 2014-05-19 Tom Tromey <tromey@redhat.com>
2652 * gdbtypes.c (rank_function): Use XNEWVEC.
2653 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2655 2014-05-19 Doug Evans <dje@google.com>
2657 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2658 build_type_unit_groups and moved closer to only caller. Remove
2659 arguments. All references updated. Remove outdated .gdb_index
2661 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2662 build_type_psymtabs_1.
2664 2014-05-19 Doug Evans <dje@google.com>
2666 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2667 n_type_unit_groups, all_type_unit_groups. All uses removed.
2668 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2669 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2670 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2671 (add_type_unit_group_to_table): Delete.
2673 2014-05-19 Doug Evans <dje@google.com>
2675 * eval.c (evaluate_subexp_standard): Add some comments.
2677 2014-05-17 Doug Evans <xdje42@gmail.com>
2679 * progspace.c (remove_program_space): Delete, unused.
2680 * progspace.h (remove_program_space): Ditto.
2682 2014-05-17 Doug Evans <xdje42@gmail.com>
2684 * inferior.c (prune_inferiors): Fix comment.
2685 (remove_inferior_command): Call prune_program_spaces.
2687 2014-05-16 Doug Evans <dje@google.com>
2689 New command line option -D.
2691 * main.c (set_gdb_data_directory): New function.
2692 (captured_main): Recognize -D. Flag error for --data-directory "".
2693 Call set_gdb_data_directory.
2694 (print_gdb_help): Print --data-directory, -D.
2695 * main.h (set_gdb_data_directory): Declare.
2696 * top.c (staged_gdb_datadir): New static global.
2697 (set_gdb_datadir): Call set_gdb_data_directory
2698 (show_gdb_datadir): New function.
2699 (init_main): Update init of data-directory parameter.
2701 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2703 Import the "dirfd" gnulib module.
2704 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2705 * gnulib/aclocal.m4: Update.
2706 * gnulib/config.in: Update.
2707 * gnulib/configure: Update.
2708 * gnulib/import/Makefile.am: Update.
2709 * gnulib/import/Makefile.in: Update.
2710 * gnulib/import/dirfd.c: New.
2711 * gnulib/import/m4/dirfd.m4: New.
2712 * gnulib/import/m4/gnulib-cache.m4: Update.
2713 * gnulib/import/m4/gnulib-comp.m4: Update.
2715 2014-05-16 Pierre Muller <muller@sourceware.org>
2716 Yao Qi <yao@codesourcery.com>
2718 * valprint.c (print_wchar): Move the code on checking whether
2719 W is a printable wide char to the default branch of switch
2720 statement below. Call wchar_printable instead of gdb_iswprint.
2722 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2724 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2725 ldr.w and ldrd instructions.
2727 2014-05-15 Doug Evans <dje@google.com>
2729 * dwarf2read.c (read_structure_type): Delete outdated comments.
2731 2014-05-14 Tom Tromey <tromey@redhat.com>
2733 * macrocmd.c (print_macro_definition): Reindent.
2735 2014-05-13 Doug Evans <xdje42@gmail.com>
2737 * python/py-cmd.c (cmdpy_completer): Add comment.
2738 (completers): Make const.
2740 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2742 * infrun.c (resume): Remove should_resume (unused). Move up
2743 declaration of resume_ptid.
2745 2014-05-13 Tom Tromey <tromey@redhat.com>
2747 * language.h (unop_type_check): Remove.
2748 (binop_type_check): Don't declare.
2750 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2752 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2753 call to regcache_raw_collect.
2755 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2757 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2758 mi_console->quote as the quoting character.
2760 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2762 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2764 2014-04-29 Tom Tromey <tromey@redhat.com>
2766 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2767 "show debug varobj".
2769 2014-05-07 Kyle McMartin <kyle@redhat.com>
2771 Pushed by Joel Brobecker <brobecker@adacore.com>.
2772 * aarch64-tdep.c (aarch64_software_single_step): New function.
2773 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2774 with aarch64_software_single_step.
2776 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2780 2014-05-05 Keith Seitz <keiths@redhat.com>
2782 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2783 variable or history value is successfully parsed.
2785 2014-05-05 Yao Qi <yao@codesourcery.com>
2786 Pedro Alves <palves@redhat.com>
2788 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2789 address of blocks that intersects the requested range. Trim
2790 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2792 * ctf.c (ctf_xfer_partial): Likewise.
2794 2014-05-05 Yao Qi <yao@codesourcery.com>
2796 * printcmd.c (display_command): Remove the check to
2797 target_has_execution.
2799 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2801 * ppcobsd-nat.c: Include "obsd-nat.h".
2802 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2804 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2806 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2808 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2809 and 16-bit signed and unsigned arguments. Update comment.
2810 (stap_parse_probe_arguments): Extend code to handle such
2811 arguments. Use warning instead of complaint to notify about
2812 unrecognized bitness.
2814 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2816 PR breakpoints/16889
2817 * stap-probe.c (stap_parse_probe_arguments): Simplify
2818 check for non-prefixed probes (i.e., probes whose
2819 arguments do not start with "N@"). Always set the
2820 argument type to a sane value.
2822 2014-05-01 David Taylor <dtaylor@emc.com>
2824 * remote.c (compare_sections_command): Add -r option to compare
2825 all loadable read-only sections.
2827 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2829 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2830 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2832 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2833 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2834 Remove unused CORE_ADDR argument. Update all callers.
2836 2014-04-29 Pedro Alves <palves@redhat.com>
2838 * remote.c (struct packet_config) <detect>: Extend comment.
2839 (add_packet_config_cmd): Don't set the config's detect or support
2841 (init_all_packet_configs): Also initialize the config's 'detect'
2843 (reset_all_packet_configs_support): New function.
2844 (remote_open_1): Call reset_all_packet_configs_support instead of
2845 init_all_packet_configs.
2846 (_initialize_remote): Initialize all packet configs. Assert that
2847 all packets have an associated command, except a few known
2850 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2852 * dwarf2read.c (read_subrange_type): Handle dynamic
2853 DW_AT_lower_bound attributes.
2855 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2857 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2858 dynamic bounds before computing its upper bound.
2859 (ada_discrete_type_low_bound): Same as above with the lower bound.
2861 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2863 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2864 range types. Adjust the array handling implementation to
2865 take advantage of this change.
2866 (resolve_dynamic_range): New function, mostly extracted from
2867 resolve_dynamic_bounds.
2868 (resolve_dynamic_array): New function, mostly extracted from
2869 resolve_dynamic_bounds.
2870 (resolve_dynamic_bounds): Delete.
2871 (resolve_dynamic_type): Reimplement. Add handling of
2872 TYPE_CODE_RANGE types.
2874 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2876 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2877 handling of parallel ___XA types.
2879 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2881 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2882 unnecessary second call to static_unwrap_type.
2884 2014-04-27 Hui Zhu <hui@codesourcery.com>
2886 * stack.c (print_frame_info): Call do_gdb_disassembly with
2887 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2889 2014-04-26 Doug Evans <xdje42@gmail.com>
2891 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2893 2014-04-25 Pedro Alves <palves@redhat.com>
2896 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2897 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2898 and newline from built string.
2899 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2900 (linux_ptrace_attach_fail_reason): ... this.
2901 * linux-nat.c (linux_nat_attach): Adjust to use
2902 linux_ptrace_attach_fail_reason.
2904 2014-04-25 Pedro Alves <palves@redhat.com>
2906 * remote.c (struct remote_state): Remove multi_process_aware,
2907 non_stop_aware, cond_tracepoints, cond_breakpoints,
2908 breakpoint_commands, fast_tracepoints, static_tracepoints,
2909 install_in_trace, disconnected_tracing,
2910 enable_disable_tracepoints, string_tracing, and
2911 augmented_libraries_svr4_read fields.
2912 (remote_multi_process_p): Move further below in the file.
2913 (struct packet_config): Add comments.
2914 (update_packet_config): Delete function.
2915 (show_packet_config_cmd): Use packet_config_support.
2916 (add_packet_config_cmd): Use NULL as set callback.
2917 (packet_ok): "set remote foo-packet"-style commands no longer
2918 change config->supported -- adjust.
2919 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2920 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2921 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2922 (PACKET_QNonStop, PACKET_multiprocess_feature)
2923 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2924 (PACKET_DisconnectedTracing_feature)
2925 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2926 (set_remote_protocol_packet_cmd): Delete function.
2927 (packet_config_support, packet_support): New functions.
2928 (set_remote_protocol_Z_packet_cmd): Don't call
2929 update_packet_config.
2930 (remote_query_attached, remote_pass_signals)
2931 (remote_program_signals, remote_threads_info)
2932 (remote_threads_extra_info, remote_start_remote): Use
2934 (remote_start_remote): Use packet_config_support and
2936 (init_all_packet_configs): Set all packets to unknown support,
2937 instead of calling update_packet_config.
2938 (remote_check_symbols): Use packet_support.
2939 (remote_supported_packet): Unconditionally set the packet config's
2941 (remote_multi_process_feature, remote_non_stop_feature)
2942 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2943 (remote_breakpoint_commands_feature)
2944 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2945 (remote_install_in_trace_feature)
2946 (remote_disconnected_tracing_feature)
2947 (remote_enable_disable_tracepoint_feature)
2948 (remote_string_tracing_feature)
2949 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2950 (remote_protocol_features): Adjust to use remote_supported_packet
2951 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2952 "ConditionalTracepoints", "ConditionalBreakpoints",
2953 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2954 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2955 "EnableDisableTracepoints", and "tracenz".
2956 (remote_query_supported): Use packet_support.
2957 (remote_open_1): Adjust.
2958 (extended_remote_attach_1): Use packet_support. Switch on the
2959 result of packet_ok instead of checking whether the packet ended
2961 (remote_vcont_resume): Use packet_support.
2962 (remote_resume, remote_stop_ns, fetch_register_using_p)
2963 (remote_prepare_to_store, store_register_using_P)
2964 (check_binary_download, remote_write_bytes): Use packet_support.
2965 (remote_vkill): Use packet_support. Switch on the result of
2966 packet_ok instead of checking whether the packet ended up
2968 (extended_remote_supports_disable_randomization): Use
2970 (extended_remote_run): Switch on the result of packet_ok instead
2971 of checking whether the packet ended up disabled.
2972 (remote_insert_breakpoint, remote_remove_breakpoint)
2973 (remote_insert_watchpoint, remote_remove_watchpoint)
2974 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2976 (remote_search_memory): Use packet_config_support.
2977 (remote_get_thread_local_address, remote_get_tib_address)
2978 (remote_hostio_send_command, remote_can_execute_reverse): Use
2980 (remote_supports_cond_tracepoints)
2981 (remote_supports_cond_breakpoints)
2982 (remote_supports_fast_tracepoints)
2983 (remote_supports_static_tracepoints)
2984 (remote_supports_install_in_trace)
2985 (remote_supports_enable_disable_tracepoint)
2986 (remote_supports_string_tracing)
2987 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2988 the packet config says the feature is enabled or disabled.
2989 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2990 (remote_get_trace_status): Use packet_support.
2991 (remote_set_disconnected_tracing): Adjust to check whether the
2992 feature is enabled with packet_support.
2993 (remote_set_trace_buffer_size, remote_use_agent)
2994 (remote_can_use_agent, remote_supports_btrace): Use
2996 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2997 Use packet_config_support.
2998 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2999 the packet config says the feature is enabled or disabled.
3000 (set_range_stepping): Use packet_support.
3002 2014-04-25 Tom Tromey <tromey@redhat.com>
3004 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3007 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3009 * NEWS: Mention support for C99 variable length arrays.
3011 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3013 * ada-lang.c (standard_exc): Expand introductory comment.
3015 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3016 Walfred Tedeschi <walfred.tedeschi@intel.com>
3018 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3020 (amd64_linux_read_description): Add code to handle AVX512 xstate
3021 mask and return respective tdesc.
3022 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3023 and features/i386/x32-avx512-linux.c.
3024 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3025 (amd64_linux_core_read_description): Add code to handle AVX512
3026 xstate mask and return respective tdesc.
3027 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3028 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3030 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3031 (tdesc_amd64_avx512_linux): New prototype.
3032 (tdesc_x32_avx512_linux): Likewise.
3033 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3034 features/i386/x32-avx512.c.
3035 (amd64_ymm_avx512_names): New register names for pseudo
3037 (amd64_ymmh_avx512_names): New register names for raw registers
3039 (amd64_k_names): New register names for K registers.
3040 (amd64_zmmh_names): New register names for ZMM raw registers.
3041 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3042 (amd64_xmm_avx512_names): New register names for XMM16-31
3044 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3046 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3047 if feature is present.
3048 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3049 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3050 (AMD64_NUM_REGS): Adjust to new number of registers.
3051 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3052 registers supplied via XSTATE by AVX512 registers.
3053 (i386_linux_read_description): Add case for AVX512.
3054 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3055 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3056 (i386_linux_core_read_description): Add case for AVX512.
3057 (i386_linux_init_abi): Install supported register note section
3059 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3061 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3062 registers to be number of zmm7h + 1.
3063 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3064 * i386-tdep.c: Include features/i386/i386-avx512.c.
3065 (i386_zmm_names): Add ZMM pseudo register names array.
3066 (i386_zmmh_names): Add ZMM raw register names array.
3067 (i386_k_names): Add K raw register names array.
3068 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3069 registers. AVX512 has 16 more ZMM registers than there are YMM
3071 (i386_zmmh_regnum_p): Add function to look up register number of
3073 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3074 (i386_k_regnum_p): Likewise for K raw registers.
3075 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3076 registers added by AVX512.
3077 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3078 registers added by AVX512.
3079 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3081 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3082 (i386_pseudo_register_name): Add ZMM pseudo registers.
3083 (i386_zmm_type): Construct and return vector registers type for ZMM
3085 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3086 ZMM0-31 pseudo registers and K registers.
3087 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3088 and YMM16-31 registers from register cache.
3089 (i386_pseudo_register_write): Add code to write K, ZMM and
3091 (i386_register_reggroup_p): Add code to include/exclude AVX512
3092 registers in/from respective register groups.
3093 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3094 registers if feature is present in xcr0.
3095 (i386_gdbarch_init): Add code to initialize AVX512 feature
3096 variables in tdep structure, wire in pseudo registers and call
3097 initialize_tdesc_i386_avx512.
3098 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3100 (i386_regnum): Add AVX512 registers.
3101 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3102 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3103 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3104 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3106 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3107 (i386_ymm_avx512_regnum_p): Likewise.
3108 (i386_k_regnum_p): Likewise.
3109 (i386_zmm_regnum_p): Likewise.
3110 (i386_zmmh_regnum_p): Likewise.
3111 * i387-tdep.c : Update year in copyright notice.
3112 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3114 (XSAVE_YMM_AVX512_ADDR): New macro.
3115 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3117 (XSAVE_XMM_AVX512_ADDR): New macro.
3118 (xsave_avx512_k_offset): New table for K register offsets in
3120 (XSAVE_AVX512_K_ADDR): New macro.
3121 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3123 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3124 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3126 (i387_collect_xsave): Add code to collect AVX512 registers from
3128 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3129 of XMM16-31 registers.
3130 (I387_NUM_K_REGS): New define for number of K registers.
3131 (I387_K0_REGNUM): New define for K0 register number.
3132 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3133 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3134 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3136 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3137 (I387_XMM16_REGNUM): New define for XMM16 register number.
3138 (I387_YMM0_REGNUM): New define for YMM0 register number.
3139 (I387_KEND_REGNUM): New define for last K register number.
3140 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3141 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3143 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3145 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3147 * features/Makefile: Add AVX512 related files.
3148 * features/i386/32bit-avx512.xml: New file.
3149 * features/i386/64bit-avx512.xml: Likewise.
3150 * features/i386/amd64-avx512-linux.c: Likewise.
3151 * features/i386/amd64-avx512-linux.xml: Likewise.
3152 * features/i386/amd64-avx512.c: Likewise.
3153 * features/i386/amd64-avx512.xml: Likewise.
3154 * features/i386/i386-avx512-linux.c: Likewise.
3155 * features/i386/i386-avx512-linux.xml: Likewise.
3156 * features/i386/i386-avx512.c: Likewise.
3157 * features/i386/i386-avx512.xml: Likewise.
3158 * features/i386/x32-avx512-linux.c: Likewise.
3159 * features/i386/x32-avx512-linux.xml: Likewise.
3160 * features/i386/x32-avx512.c: Likewise.
3161 * features/i386/x32-avx512.xml: Likewise.
3162 * regformats/i386/amd64-avx512-linux.dat: New file.
3163 * regformats/i386/amd64-avx512.dat: Likewise.
3164 * regformats/i386/i386-avx512-linux.dat: Likewise.
3165 * regformats/i386/i386-avx512.dat: Likewise.
3166 * regformats/i386/x32-avx512-linux.dat: Likewise.
3167 * regformats/i386/x32-avx512.dat: Likewise.
3168 * NEWS: Add note about new support for AVX512.
3171 2014-04-23 Pedro Alves <palves@redhat.com>
3173 * breakpoint.c (insert_bp_location): Tolerate errors if the
3174 breakpoint is set in a user-loaded objfile.
3175 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3176 location is marked shlib_disabled. If the breakpoint is set in a
3177 user-loaded objfile is a GDB-side memory breakpoint, validate it
3178 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3179 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3181 * mem-break.c (memory_validate_breakpoint): New function.
3182 * objfiles.c (userloaded_objfile_contains_address_p): New
3184 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3185 * target.h (memory_validate_breakpoint): New declaration.
3187 2014-04-23 Pedro Alves <palves@redhat.com>
3189 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3190 the breakpoint is set in a shared library, only suppress
3191 errors for software breakpoints, not hardware breakpoints.
3193 2014-04-22 Pedro Alves <palves@redhat.com>
3195 * infrun.c (schedlock_applies): New function, factored out from
3196 find_thread_needs_step_over.
3197 (find_thread_needs_step_over): Use it.
3198 (switch_back_to_stepped_thread): Always clear trap_expected if the
3199 step over is finished. Return early if scheduler locking applies.
3200 Look for the stepping thread and a potential step-over thread with
3202 (currently_stepping_or_nexting_callback): Delete.
3204 2014-04-22 Nick Clifton <nickc@redhat.com>
3206 * NEWS: Mention that ARM sim now supports tracing.
3208 2014-04-22 Yao Qi <yao@codesourcery.com>
3210 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3212 * tracefile.c (tracefile_fetch_registers): ... it. New
3214 * tracefile.h (tracefile_fetch_registers): Declare.
3215 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3216 tracefile_fetch_registers.
3218 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3221 * windows-nat.c (thread_rec): Don't display a warning when
3222 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3223 fails for any reason, set th->suspended to -1, so that we don't
3224 try to resume such a thread. Also, don't return NULL in these
3225 cases, to avoid completely ruin the session due to "PC register is
3226 not available" error.
3227 (do_windows_fetch_inferior_registers): Check errors in
3228 GetThreadContext call.
3229 (windows_continue): Accept an additional argument KILLED; if not
3230 zero, ignore errors in the SetThreadContext call, since the
3231 inferior was killed and is shutting down.
3232 (windows_resume, get_windows_debug_event)
3233 (windows_create_inferior, windows_mourn_inferior)
3234 (windows_kill_inferior): All callers of windows_continue changed
3235 to adjust to its new calling sequence.
3237 2014-04-19 Yao Qi <yao@codesourcery.com>
3239 * ctf.c (ctf_open): Call post_create_inferior.
3241 2014-04-19 Yao Qi <yao@codesourcery.com>
3243 * ctf.c (handle_id): New static variable.
3244 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3245 value. Get the declaration of event "register" and get length
3246 of field "contents".
3248 2014-04-19 Yao Qi <yao@codesourcery.com>
3250 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3252 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3254 * valops.c (oload_method_static): Remove unnecessary argument
3255 METHOD. Update all callers.
3257 2014-04-18 Pedro alves <palves@redhat.com>
3258 Tom Tromey <tromey@redhat.com>
3261 * frame.c (get_prev_frame_1): Rename to ...
3262 (get_prev_frame_always): ... this, and make extern. Adjust.
3263 (skip_artificial_frames): Use get_prev_frame_always.
3264 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3265 (get_frame_unwind_stop_reason): Adjust to rename.
3266 * frame.h (get_prev_frame_always): Declare.
3267 * inline-frame.c: Include frame.h.
3268 (inline_frame_this_id): Use get_prev_frame_always.
3270 2014-04-18 Tristan Gingold <gingold@adacore.com>
3272 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3273 code by using bfd_mach_o_get_base_address.
3275 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3277 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3278 (spu_ax_pseudo_register_collect): New function.
3279 (spu_ax_pseudo_register_push_stack): Likewise.
3280 (spu_dwarf_reg_to_regnum): Likewise.
3281 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3283 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3285 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3286 Replace FRAME argument with FRAME_ID.
3287 * gdbarch.c, gdbarch.h: Regenerate.
3288 * findvar.c (default_value_from_register): Add GDBARCH argument;
3289 replace FRAME by FRAME_ID. No longer call get_frame_id.
3290 (value_from_register): Update call to gdbarch_value_from_register.
3291 * value.h (default_value_from_register): Update prototype.
3292 * s390-linux-tdep.c (s390_value_from_register): Update interface
3293 and call to default_value_from_register.
3294 * spu-tdep.c (spu_value_from_register): Likewise.
3296 * findvar.c (address_from_register): Remove TYPE argument.
3297 Do not call value_from_register; use gdbarch_value_from_register
3298 with null_frame_id instead.
3299 * value.h (address_from_register): Update prototype.
3300 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3301 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3302 address_from_register interface change.
3304 2014-04-17 Yao Qi <yao@codesourcery.com>
3306 * gdbtypes.h: Update comments to link to types and macros'
3309 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3311 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3313 2014-04-16 Keith Seitz <keiths@redhat.com>
3316 * dwarf2read.c (skip_one_die): Check that all relative-offset
3317 sibling DIEs fall within range of the current reader's buffer.
3318 (read_partial_die): Likewise.
3320 2014-04-16 Keith Seitz <keiths@redhat.com>
3323 * cp-namespace.c (lookup_symbol_file): If the type name of
3324 `this' is NULL, return immediately.
3326 2014-04-14 Keith Seitz <keiths@redhat.com>
3329 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3330 from symbol_matches_domain in symtab.c. All local callers
3331 of symbol_matches_domain updated.
3332 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3333 search STRUCT_DOMAIN.
3334 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3335 independently. standard_lookup will do that automatically.
3336 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3337 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3338 (cp_lookup_symbol_in_namespace): Likewise.
3339 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3340 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3341 may return a STRUCT_DOMAIN match.
3342 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3343 * cp-support.c: Include language.h.
3344 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3346 * psymtab.c (match_partial_symbol): Compare the requested
3347 domain with the symbol's domain directly.
3348 (lookup_partial_symbol): Likewise.
3349 * symtab.c (lookup_symbol_in_language): Explain when/why
3350 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3351 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3352 appropriate languages.
3353 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3354 and moved to ada-lang.c
3355 (lookup_block_symbol): Explain that this function only returns
3356 symbol matching the requested DOMAIN.
3357 Compare the requested domain with the symbol's domain directly.
3358 (iterate_over_symbols): Compare the requested domain with the
3359 symbol's domain directly.
3360 * symtab.h (symbol_matches_domain): Remove.
3362 2014-04-14 Tom Tromey <tromey@redhat.com>
3365 * c-exp.y (type_aggregate_p): New function.
3366 (qualified_name, classify_inner_name): Use it.
3367 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3368 and TYPE_TARGET_TYPE of an enum type.
3369 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3371 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3372 handle TYPE_DECLARED_CLASS.
3373 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3375 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3376 * valops.c (enum_constant_from_type): New function.
3377 (value_aggregate_elt): Use it.
3378 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3381 2014-04-14 Tom Tromey <tromey@redhat.com>
3383 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3384 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3386 * value.h (value_aggregate_elt): Update.
3388 2014-04-14 Tom Tromey <tromey@redhat.com>
3390 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3392 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3394 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3395 (evaluate_subexp_standard): Pass noside argument.
3396 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3397 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3398 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3399 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3400 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3402 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3404 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3405 points to a constant blob.
3407 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3409 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3410 property and store it as the high bound and flag the range accordingly.
3411 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3412 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3413 * gdbtypes.h (enum range_flags): New enum.
3414 (struct range_bounds): Add flags member.
3416 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3418 * c-typeprint.c (c_type_print_varspec_suffix): Added
3419 check for not yet resolved high bound. If unresolved, print
3420 "variable length" string to the console instead of random
3423 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3425 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3427 (ada_template_to_fixed_record_type_1): Likewise.
3428 (ada_to_fixed_type_1): Likewise.
3429 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3430 (cp_print_value): Likewise.
3431 * d-valprint.c (dynamic_array_type): Likewise.
3432 * findvar.c (address_of_variable): Likewise.
3433 * jv-valprint.c (java_value_print): Likewise.
3434 * valops.c (value_ind): Likewise.
3435 * value.c (coerce_ref): Likewise.
3437 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3439 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3440 value and retrieve the dynamic type size.
3442 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3444 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3445 passed to sizeof is dynamic evaluate the argument to compute the length.
3447 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3448 Joel Brobecker <brobecker@adacore.com>
3450 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3451 (dwarf2_evaluate_property): New function.
3452 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3453 * dwarf2read.c (attr_to_dynamic_prop): New function.
3454 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3456 * gdbtypes.c: Include dwarf2loc.h.
3457 (is_dynamic_type): New function.
3458 (resolve_dynamic_type): New function.
3459 (resolve_dynamic_bounds): New function.
3460 (get_type_length): New function.
3461 (check_typedef): Use get_type_length to compute type length.
3462 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3463 (TYPE_LOW_BOUND_KIND): New macro.
3464 (is_dynamic_type): New function prototype.
3465 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3466 to resolve dynamic properties of the type. Update comment.
3467 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3469 2014-04-14 Richard Henderson <rth@redhat.com>
3471 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3473 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3474 Doug Evans <xdje42@gmail.com>
3476 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3477 dereference TYPE_CODE_REF values.
3479 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3481 Revert the following changes due to regressions:
3483 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3484 (dwarf2_evaluate_property): New function.
3485 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3486 * dwarf2read.c (attr_to_dynamic_prop): New function.
3487 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3489 * gdbtypes.c: Include dwarf2loc.h.
3490 (is_dynamic_type): New function.
3491 (resolve_dynamic_type): New function.
3492 (resolve_dynamic_bounds): New function.
3493 (get_type_length): New function.
3494 (check_typedef): Use get_type_length to compute type length.
3495 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3496 (TYPE_LOW_BOUND_KIND): New macro.
3497 (is_dynamic_type): New function prototype.
3498 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3499 to resolve dynamic properties of the type. Update comment.
3500 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3502 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3503 passed to sizeof is dynamic evaluate the argument to compute the length.
3505 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3506 value and retrieve the dynamic type size.
3508 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3509 (ada_template_to_fixed_record_type_1): Likewise.
3510 (ada_to_fixed_type_1): Likewise.
3511 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3512 (cp_print_value): Likewise.
3513 * d-valprint.c (dynamic_array_type): Likewise.
3514 * eval.c (evaluate_subexp_with_coercion): Likewise.
3515 * findvar.c (address_of_variable): Likewise.
3516 * jv-valprint.c (java_value_print): Likewise.
3517 * valops.c (value_ind): Likewise.
3518 * value.c (coerce_ref): Likewise.
3520 * c-typeprint.c (c_type_print_varspec_suffix): Added
3521 check for not yet resolved high bound. If unresolved, print
3522 "variable length" string to the console instead of random
3525 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3526 property and store it as the high bound and flag the range accordingly.
3527 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3528 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3529 * gdbtypes.h (enum range_flags): New enum.
3530 (struct range_bounds): Add flags member.
3532 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3533 points to a constant blob.
3535 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3536 (evaluate_subexp_standard): Pass noside argument.
3537 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3538 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3539 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3540 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3541 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3543 2014-04-11 Keith Seitz <keiths@redhat.com>
3546 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3547 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3550 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3552 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3553 (evaluate_subexp_standard): Pass noside argument.
3554 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3555 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3556 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3557 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3558 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3560 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3562 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3563 points to a constant blob.
3565 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3567 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3568 property and store it as the high bound and flag the range accordingly.
3569 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3570 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3571 * gdbtypes.h (enum range_flags): New enum.
3572 (struct range_bounds): Add flags member.
3574 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3576 * c-typeprint.c (c_type_print_varspec_suffix): Added
3577 check for not yet resolved high bound. If unresolved, print
3578 "variable length" string to the console instead of random
3581 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3583 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3584 (ada_template_to_fixed_record_type_1): Likewise.
3585 (ada_to_fixed_type_1): Likewise.
3586 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3587 (cp_print_value): Likewise.
3588 * d-valprint.c (dynamic_array_type): Likewise.
3589 * eval.c (evaluate_subexp_with_coercion): Likewise.
3590 * findvar.c (address_of_variable): Likewise.
3591 * jv-valprint.c (java_value_print): Likewise.
3592 * valops.c (value_ind): Likewise.
3593 * value.c (coerce_ref): Likewise.
3595 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3597 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3598 value and retrieve the dynamic type size.
3600 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3602 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3603 passed to sizeof is dynamic evaluate the argument to compute the length.
3605 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3607 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3608 (dwarf2_evaluate_property): New function.
3609 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3610 * dwarf2read.c (attr_to_dynamic_prop): New function.
3611 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3613 * gdbtypes.c: Include dwarf2loc.h.
3614 (is_dynamic_type): New function.
3615 (resolve_dynamic_type): New function.
3616 (resolve_dynamic_bounds): New function.
3617 (get_type_length): New function.
3618 (check_typedef): Use get_type_length to compute type length.
3619 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3620 (TYPE_LOW_BOUND_KIND): New macro.
3621 (is_dynamic_type): New function prototype.
3622 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3623 to resolve dynamic properties of the type. Update comment.
3624 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3626 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3628 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3629 declaring high/low bounds and change uses accordingly. Call
3630 create_range_type instead of create_static_range_type.
3631 * gdbtypes.c (create_range_type): New function.
3632 (create_range_type): Convert bounds into struct bound_prop and pass
3633 them to create_range_type.
3634 * gdbtypes.h (struct bound_prop): New struct.
3635 (create_range_type): New function prototype.
3636 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3637 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3638 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3640 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3642 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3644 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3645 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3646 * ada-lang.c: All uses of create_range_type updated.
3647 * coffread.c: All uses of create_range_type updated.
3648 * dwarf2read.c: All uses of create_range_type updated.
3649 * f-exp.y: All uses of create_range_type updated.
3650 * m2-valprint.c: All uses of create_range_type updated.
3651 * mdebugread.c: All uses of create_range_type updated.
3652 * stabsread.c: All uses of create_range_type updated.
3653 * valops.c: All uses of create_range_type updated.
3654 * valprint.c: All uses of create_range_type updated.
3656 2014-04-10 Pedro Alves <palves@redhat.com>
3658 * breakpoint.c (single_step_breakpoints)
3659 (single_step_gdbarch): Move up in the file.
3660 (one_breakpoint_xfer_memory): New function, factored out from ...
3661 (breakpoint_xfer_memory): ... here. Also process single-step
3664 2014-04-09 Tristan Gingold <gingold@adacore.com>
3666 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3668 (darwin_decode_exception_message): Free port only after use.
3670 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3672 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3673 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3674 when setting the size of call_length.
3676 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3678 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3679 dereference TYPE_CODE_REF values.
3681 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3683 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3684 end of warning message.
3686 2014-04-03 Doug Evans <dje@google.com>
3688 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3689 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3691 2014-04-02 Alan Modra <amodra@gmail.com>
3693 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3694 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3695 (struct symbol_file_add_from_memory_args): Add size field.
3696 (find_vdso_size): New function.
3697 (add_vsyscall_page): Attempt to find vdso size.
3699 2014-04-01 Doug Evans <dje@google.com>
3701 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3703 2014-04-01 Tristan Gingold <gingold@adacore.com>
3705 * darwin-nat.c (darwin_encode_reply): Add prototype.
3706 (darwin_decode_exception_message): Reply to unknown inferiors.
3707 (darwin_decode_message): Handle message by id. Ignore message
3708 to unknown inferior.
3709 (darwin_wait): Discard unknown messages, add debug trace.
3711 2014-03-31 Doug Evans <dje@google.com>
3713 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3716 2014-03-31 Doug Evans <dje@google.com>
3718 New option "set print symbol-loading".
3720 * solib.c (solib_read_symbols): Only print symbol loading messages
3722 (solib_add): If symbol loading is in "brief" mode, notify user
3723 symbols are being loaded.
3724 (reload_shared_libraries_1): Ditto.
3725 * symfile.c (print_symbol_loading_off): New static global.
3726 (print_symbol_loading_brief): New static global.
3727 (print_symbol_loading_full): New static global.
3728 (print_symbol_loading_enums): New static global.
3729 (print_symbol_loading): New static global.
3730 (print_symbol_loading_p): New function.
3731 (symbol_file_add_with_addrs): Only print symbol loading messages
3733 (_initialize_symfile): Register "print symbol-loading" set/show
3735 * symfile.h (print_symbol_loading_p): Declare.
3737 2014-03-30 Doug Evans <xdje42@gmail.com>
3739 * infrun.c (set_last_target_status): New function.
3740 (handle_inferior_event): Call it.
3742 2014-03-30 Doug Evans <xdje42@gmail.com>
3744 * inferior.h (enum stop_kind): Improve comment.
3746 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3748 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3749 a reference, strip the reference layer before calling
3750 the lang_ops value_has_mutated callback.
3752 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3754 Remove some globals from our parser.
3755 * language.c (unk_lang_parser): Add "struct parser_state"
3757 * language.h (struct language_defn) <la_parser>: Likewise.
3758 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3759 (initialize_expout): Add "struct parser_state" argument.
3760 Rewrite function to use the parser state.
3761 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3762 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3763 write_exp_elt_longcst, write_exp_elt_dblcst,
3764 write_exp_elt_decfloatcst, write_exp_elt_type,
3765 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3766 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3767 write_dollar_variable): Likewise.
3768 (parse_exp_in_context_1): Use parser state.
3769 (insert_type_address_space): Add "struct parser_state" argument.
3771 (increase_expout_size): New function.
3772 * parser-defs.h: Forward declare "struct language_defn" and
3773 "struct parser_state".
3774 (expout, expout_size, expout_ptr): Remove extern declarations.
3775 (parse_gdbarch, parse_language): Rewrite macro declarations to
3776 accept the parser state.
3777 (struct parser_state): New struct.
3778 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3779 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3780 write_exp_elt_decfloatcst, write_exp_elt_type,
3781 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3782 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3783 write_exp_msymbol, write_dollar_variable,
3784 mark_struct_expression, insert_type_address_space): Add "struct
3785 parser_state" argument.
3786 (increase_expout_size): New function.
3787 * utils.c (do_clear_parser_state): New function.
3788 (make_cleanup_clear_parser_state): Likewise.
3789 * utils.h (make_cleanup_clear_parser_state): New function
3791 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3792 Update calls to write_exp* in order to pass the parser state.
3793 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3794 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3795 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3796 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3797 * stap-probe.c (stap_parse_register_operand): Likewise.
3798 (stap_parse_single_operand): Likewise.
3799 (stap_parse_argument_1): Likewise.
3800 (stap_parse_argument): Use parser state.
3801 * stap-probe.h: Include "parser-defs.h".
3802 (struct stap_parse_info) <pstate>: New field.
3803 * c-exp.y (parse_type): Rewrite to use parser state.
3804 (yyparse): Redefine to c_parse_internal.
3805 (pstate): New global variable.
3806 (parse_number): Add "struct parser_state" argument.
3807 (write_destructor_name): Likewise.
3808 (type_exp): Update calls to write_exp* and similars in order to
3810 (exp1, exp, variable, qualified_name, space_identifier,
3811 typename, typebase): Likewise.
3812 (write_destructor_name, parse_number, lex_one_token,
3813 classify_name, classify_inner_name, c_parse): Add "struct
3814 parser_state" argument. Update function to use parser state.
3815 * c-lang.h: Forward declare "struct parser_state".
3816 (c_parse): Add "struct parser_state" argument.
3817 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3818 (yyparse): Redefine macro to ada_parse_internal.
3819 (pstate): New variable.
3820 (write_int, write_object_renaming, write_var_or_type,
3821 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3822 type_int, type_long, type_long_long, type_float, type_double,
3823 type_long_double, type_char, type_boolean, type_system_address):
3824 Add "struct parser_state" argument.
3825 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3826 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3827 var_or_type, aggregate, aggregate_component_list,
3828 positional_list, others, component_group,
3829 component_associations): Update calls to write_exp* and similar
3830 functions in order to use parser state.
3831 (ada_parse, write_var_from_sym, write_int,
3832 write_exp_op_with_string, write_object_renaming,
3833 find_primitive_type, write_selectors, write_ambiguous_var,
3834 write_var_or_type, write_name_assoc, type_int, type_long,
3835 type_long_long, type_float, type_double, type_long_double,
3836 type_char, type_boolean, type_system_address): Add "struct
3837 parser_state" argument. Adjust function to use parser state.
3838 * ada-lang.c (parse): Likewise.
3839 * ada-lang.h: Forward declare "struct parser_state".
3840 (ada_parse): Add "struct parser_state" argument.
3841 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3842 calls to both functions.
3843 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3845 (yyparse): Redefine macro to f_parse_internal.
3846 (pstate): New variable.
3847 (parse_number): Add "struct parser_state" argument.
3848 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3849 and similars in order to use parser state.
3850 (parse_number): Adjust code to use parser state.
3852 (f_parse): New function.
3853 * f-lang.h: Forward declare "struct parser_state".
3854 (f_parse): Add "struct parser_state" argument.
3855 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3857 (yyparse): Redefine macro for java_parse_internal.
3858 (pstate): New variable.
3859 (push_expression_name, push_expression_name, insert_exp): Add
3860 "struct parser_state" argument.
3861 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3862 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3863 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3864 PostIncrementExpression, PostDecrementExpression,
3865 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3866 UnaryExpressionNotPlusMinus, CastExpression,
3867 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3868 RelationalExpression, EqualityExpression, AndExpression,
3869 ExclusiveOrExpression, InclusiveOrExpression,
3870 ConditionalAndExpression, ConditionalOrExpression,
3871 ConditionalExpression, Assignment, LeftHandSide): Update
3872 calls to write_exp* and similars in order to use parser state.
3873 (parse_number): Ajust code to use parser state.
3875 (java_parse): New function.
3876 (push_variable): Add "struct parser_state" argument. Adjust
3877 code to user parser state.
3878 (push_fieldnames, push_qualified_expression_name,
3879 push_expression_name, insert_exp): Likewise.
3880 * jv-lang.h: Forward declare "struct parser_state".
3881 (java_parse): Add "struct parser_state" argument.
3882 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3884 (yyparse): Redefine macro to m2_parse_internal.
3885 (pstate): New variable.
3886 (type_exp, exp, fblock, variable, type): Update calls to
3887 write_exp* and similars to use parser state.
3889 (m2_parse): New function.
3890 * m2-lang.h: Forward declare "struct parser_state".
3891 (m2_parse): Add "struct parser_state" argument.
3892 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3893 * objc-lang.h: Forward declare "struct parser_state".
3894 (end_msglist): Add "struct parser_state" argument.
3895 * p-exp.y (parse_type): Rewrite macro to use parser state.
3896 (yyparse): Redefine macro to pascal_parse_internal.
3897 (pstate): New variable.
3898 (parse_number): Add "struct parser_state" argument.
3899 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3900 write_exp* and similars in order to use parser state.
3901 (parse_number, yylex): Adjust code to use parser state.
3902 (pascal_parse): New function.
3903 * p-lang.h: Forward declare "struct parser_state".
3904 (pascal_parse): Add "struct parser_state" argument.
3905 * go-exp.y (parse_type): Rewrite macro to use parser state.
3906 (yyparse): Redefine macro to go_parse_internal.
3907 (pstate): New variable.
3908 (parse_number): Add "struct parser_state" argument.
3909 (type_exp, exp1, exp, variable, type): Update calls to
3910 write_exp* and similars in order to use parser state.
3911 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3912 to use parser state.
3913 (go_parse): Likewise.
3914 * go-lang.h: Forward declare "struct parser_state".
3915 (go_parse): Add "struct parser_state" argument.
3917 2014-03-27 Doug Evans <dje@google.com>
3919 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3921 2014-03-27 Doug Evans <dje@google.com>
3923 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3924 Remove argument abbrev_section. All callers updated.
3926 2014-03-27 Doug Evans <dje@google.com>
3928 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3929 addr_base, ranges_base.
3931 2014-03-26 Keith Seitz <keiths@redhat.com>
3933 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3934 types, not VAR_DOMAIN.
3936 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3938 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3940 * features/nios2-linux.c: Regenerated.
3941 * features/nios2.c: Regenerated.
3943 2014-03-25 Pedro Alves <palves@redhat.com>
3945 * cli/cli-script.c (script_from_file): Force the interpreter to
3948 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3950 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3951 small stack allocation.
3953 2014-03-24 Tristan Gingold <gingold@adacore.com>
3955 * darwin-nat.c (exc_server): Remove unused prototype.
3956 (darwin_dump_message): Correctly display data on x86_64.
3957 (darwin_encode_reply): Fix style.
3958 Add comments and fix indentation.
3960 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3962 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3964 2014-03-22 Doug Evans <xdje42@gmail.com>
3966 * infcmd.c: Whitespace fixes.
3967 (interrupt_command): Merge two function comments into one.
3969 2014-03-22 Doug Evans <xdje42@gmail.com>
3971 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3974 2014-03-22 Yao Qi <yao@codesourcery.com>
3976 * remote.c (target_read_live_memory): Remove.
3977 (memory_xfer_live_readonly_partial): Rename it to
3978 remote_xfer_live_readonly_partial. Remove argument 'object'.
3979 All callers updated. Call remote_read_bytes_1
3980 instead of target_read_live_memory.
3981 * tracepoint.c (set_traceframe_number): Remove.
3982 (make_cleanup_restore_traceframe_number): Likewise .
3983 * tracepoint.h (set_traceframe_number): Remove declaration.
3984 (make_cleanup_restore_traceframe_number): Likewise.
3986 2014-03-22 Yao Qi <yao@codesourcery.com>
3988 * remote.c (remote_read_bytes): Move code on reading from the
3990 (remote_read_bytes_1): ... here. New function.
3992 2014-03-22 Yao Qi <yao@codesourcery.com>
3994 * ctf.c (ctf_xfer_partial): Check the return value of
3995 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3996 return TARGET_XFER_UNAVAILABLE.
3997 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3998 * target.c (target_read_live_memory): Move it to remote.c.
3999 (memory_xfer_live_readonly_partial): Likewise.
4000 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4001 * remote.c (target_read_live_memory): Moved from target.c.
4002 (memory_xfer_live_readonly_partial): Likewise.
4003 (remote_read_bytes): Factored out from
4004 memory_xfer_partial_1.
4006 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4008 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4011 2014-03-21 Pedro Alves <palves@redhat.com>
4013 * infrun.c (normal_stop): Extend comment.
4015 2014-03-21 Hui Zhu <hui@codesourcery.com>
4016 Pedro Alves <palves@redhat.com>
4018 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4020 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4021 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4022 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4024 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4026 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4027 `z' formatted output modifier.
4029 2014-03-20 Tom Tromey <tromey@redhat.com>
4030 Sergio Durigan Junior <sergiodj@redhat.com>
4032 * probe.c (parse_probes): Turn assert into an ordinary error.
4033 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4034 exceptions when parsing probes. Rearrange the code for clarity.
4036 2014-03-20 Tom Tromey <tromey@redhat.com>
4039 * top.c (execute_command): Only dispatch events if the command
4042 2014-03-20 Tom Tromey <tromey@redhat.com>
4045 * infcall.c: Include event-top.h.
4046 (run_inferior_call): Call async_disable_stdin if needed.
4048 2014-03-20 Pedro Alves <palves@redhat.com>
4050 * infrun.c (prepare_to_proceed): Delete.
4051 (thread_still_needs_step_over): New function.
4052 (find_thread_needs_step_over): New function.
4053 (proceed): If the current thread needs a step-over, set its
4054 steping_over_breakpoint flag. Adjust to use
4055 find_thread_needs_step_over instead of prepare_to_proceed.
4056 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4057 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4059 (switch_back_to_stepped_thread): Step over breakpoints of all
4060 threads not the stepping thread, before switching back to the
4063 2014-03-20 Pedro Alves <palves@redhat.com>
4065 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4067 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4068 * infrun.c (saved_singlestep_ptid)
4069 (stepping_past_singlestep_breakpoint): Delete.
4070 (resume): Remove stepping_past_singlestep_breakpoint handling.
4071 (proceed): Store the prev_pc of the stepping thread too.
4072 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4074 (enum infwait_states): Delete infwait_thread_hop_state.
4075 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4077 (handle_inferior_event): Adjust.
4078 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4079 handling and the thread-hop code. Before removing single-step
4080 breakpoints, check whether the thread hit a single-step breakpoint
4081 of another thread. If it did, the trap is not a random signal.
4082 (switch_back_to_stepped_thread): If the event thread hit a
4083 single-step breakpoint, unblock it before switching to the
4084 stepping thread. Handle the case of the stepped thread having
4086 (keep_going): Handle the case of the current thread moving past a
4087 single-step breakpoint.
4089 2014-03-20 Pedro Alves <palves@redhat.com>
4092 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4093 are being stepped over.
4094 (breakpoint_address_match): Make extern.
4095 * breakpoint.h (breakpoint_address_match): New declaration.
4096 * inferior.h (stepping_past_instruction_at): New declaration.
4097 * infrun.c (struct step_over_info): New type.
4098 (step_over_info): New global.
4099 (set_step_over_info, clear_step_over_info)
4100 (stepping_past_instruction_at): New functions.
4101 (handle_inferior_event): Clear the step-over info when
4102 trap_expected is cleared.
4103 (resume): Remove now stale comment.
4104 (clear_proceed_status): Clear step-over info.
4105 (proceed): Adjust step-over handling to set or clear the step-over
4106 info instead of removing all breakpoints.
4107 (handle_signal_stop): When setting up a thread-hop, don't remove
4109 (stop_stepping): Clear step-over info.
4110 (keep_going): Adjust step-over handling to set or clear step-over
4111 info and then always inserting breakpoints, instead of removing
4112 all breakpoints when stepping over one.
4114 2014-03-20 Pedro Alves <palves@redhat.com>
4116 * infrun.c (previous_inferior_ptid): Adjust comment.
4117 (deferred_step_ptid): Delete.
4118 (infrun_thread_ptid_changed, prepare_to_proceed)
4119 (init_wait_for_inferior): Adjust.
4120 (handle_signal_stop): Delete deferred_step_ptid handling.
4122 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4125 * defs.h (sync_quit_force_run): New declaration.
4126 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4127 * event-top.c (async_sigterm_handler): New declaration.
4128 (async_sigterm_token): New variable.
4129 (async_init_signals): Create also async_sigterm_token.
4130 (async_sigterm_handler): New function.
4131 (sync_quit_force_run): New variable.
4132 (handle_sigterm): Replace quit_force call by other calls.
4133 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4135 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4137 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4138 offset into SPE pseudo registers.
4140 2014-03-18 Pedro Alves <palves@redhat.com>
4143 * inferior.h (print_stop_event): Declare.
4144 * infrun.c (print_stop_event): New, factored out from ...
4145 (normal_stop): ... this.
4146 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4147 of bpstat_print/print_stack_frame.
4149 2014-03-17 Tom Tromey <tromey@redhat.com>
4151 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4153 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4155 * ada-lang.c (decode_constrained_packed_array): Perform a
4156 minimal coercion for reference with coerce_ref instead of
4159 2014-03-17 Tristan Gingold <gingold@adacore.com>
4161 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4162 (darwin_solib_create_inferior_hook): Emit a warning if version
4165 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4167 * python/py-value.c (get_field_flag): Cast flag_name argument to
4168 PyObject_GetAttrString to support Python 2.4.
4170 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4172 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4173 (Global Maintainers): Remove Jan Kratochvil.
4175 2014-03-14 Pedro Alves <palves@redhat.com>
4177 * inferior.h (terminal_ours_for_output): Rename to ...
4178 (child_terminal_ours_for_output): ... this.
4179 (terminal_save_ours): Rename to ...
4180 (child_terminal_save_ours): ... this.
4181 (terminal_ours): Rename to ...
4182 (child_terminal_ours): ... this.
4183 (terminal_inferior): Rename to ...
4184 (child_terminal_inferior): ... this.
4185 (terminal_init_inferior): Rename to ...
4186 (child_terminal_init_inferior): ... this.
4187 (terminal_init_inferior_with_pgrp): Rename to ...
4188 (child_terminal_init_inferior_with_pgrp): ... this.
4189 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4190 (child_terminal_init_with_pgrp): ... this.
4191 (terminal_save_ours): Rename to ...
4192 (child_terminal_save_ours): ... this.
4193 (terminal_init_inferior): Rename to ...
4194 (child_terminal_init): ... this. Adjust.
4195 (terminal_inferior): Rename to ...
4196 (child_terminal_inferior): ... this.
4197 (terminal_ours_for_output): Rename to ...
4198 (child_terminal_ours_for_output): ... this. Adjust.
4199 (terminal_ours): Rename to ...
4200 (child_terminal_ours): ... this.
4201 (terminal_ours_1): Rename to ...
4202 (child_terminal_ours_1): ... this. Adjust.
4203 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4204 * windows-nat.c (do_initial_windows_stuff): Adjust.
4205 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4206 (gnu_terminal_init): ... this. Adjust.
4207 (gnu_target): Adjust.
4208 * inf-child.c (inf_child_target): Adjust.
4210 2014-03-13 Doug Evans <xdje42@gmail.com>
4213 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4216 2014-03-13 Doug Evans <xdje42@gmail.com>
4218 * value.c (record_latest_value): Call release_value_or_incref
4219 instead of release_value.
4221 2014-03-13 Pedro Alves <palves@redhat.com>
4223 * procfs.c (procfs_target): Don't override to_shortname,
4224 to_longname or to_doc.
4226 2014-03-13 Pedro Alves <palves@redhat.com>
4228 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4229 Unix in user visible strings.
4231 2014-03-12 Stan Shebs <stan@codesourcery.com>
4233 * gdbtypes.h: Annotate comments for Doxygen, add a page
4234 block comment with some general info.
4236 2014-03-12 Pedro Alves <palves@redhat.com>
4238 * infcmd.c (prepare_execution_command): New function, factored out
4239 from several execution commands.
4240 (run_command_1, continue_command, step_1, jump_command)
4241 (signal_command, until_command, advance_command, finish_command)
4242 (attach_command): Use prepare_execution_command.
4244 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4246 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4249 (struct arm_linux_thread_points): Removed.
4250 (struct arm_linux_process_info): New.
4251 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4252 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4253 (arm_linux_find_breakpoints_by_tid): Removed.
4254 (struct arch_lwp_info): New.
4255 (arm_linux_find_process_pid): New functions.
4256 (arm_linux_add_process): New functions.
4257 (arm_linux_process_info_get): New functions.
4258 (arm_linux_forget_process): New function.
4259 (arm_linux_get_debug_reg_state): New function.
4260 (struct update_registers_data): New.
4261 (update_registers_callback): New function.
4262 (arm_linux_insert_hw_breakpoint1): Updated.
4263 (arm_linux_remove_hw_breakpoint1): Updated.
4264 (arm_linux_insert_hw_breakpoint): Updated.
4265 (arm_linux_remove_hw_breakpoint): Updated.
4266 (arm_linux_insert_watchpoint): Updated.
4267 (arm_linux_remove_watchpoint): Updated.
4268 (arm_linux_new_thread): Updated.
4269 (arm_linux_prepare_to_resume): New function.
4270 (arm_linux_new_fork): New function.
4271 (_initialize_arm_linux_nat): Updated.
4273 2014-03-12 Pedro Alves <palves@redhat.com>
4275 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4277 2014-03-12 Tom Tromey <tromey@redhat.com>
4279 * inf-child.c (return_zero): New function.
4280 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4281 * aix-thread.c (aix_thread_inferior_created): New function.
4282 (aix_thread_attach): Remove.
4283 (init_aix_thread_ops): Don't set to_attach.
4284 (_initialize_aix_thread): Register inferior_created observer.
4285 * corelow.c (init_core_ops): Don't set to_attach or
4287 * exec.c (init_exec_ops): Don't set to_attach or
4289 * infcmd.c (run_command_1): Use find_run_target. Make direct
4291 (attach_command): Use find_attach_target. Make direct target
4293 * record-btrace.c (init_record_btrace_ops): Don't set
4295 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4297 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4298 set to_create_inferior.
4299 * target.c (complete_target_initialization): Add assertion.
4300 (target_create_inferior): Remove.
4301 (find_default_attach, find_default_create_inferior): Remove.
4302 (find_attach_target, find_run_target): New functions.
4303 (find_default_is_async_p, find_default_can_async_p)
4304 (target_supports_non_stop, target_attach): Remove.
4305 (init_dummy_target): Don't set to_create_inferior or
4306 to_supports_non_stop.
4307 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4308 TARGET_DEFAULT_FUNC.
4309 <to_create_inferior>: Add comment.
4310 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4311 TARGET_DEFAULT_RETURN.
4312 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4313 (find_attach_target, find_run_target): Declare.
4314 (target_create_inferior): Remove.
4315 (target_has_execution_1): Update comment.
4316 (target_supports_non_stop): Remove.
4317 * target-delegates.c: Rebuild.
4319 2014-03-12 Pedro Alves <palves@redhat.com>
4321 * inf-child.h: Update comment to not mention Unix.
4323 2014-03-12 Pedro Alves <palves@redhat.com>
4325 * inf-child.c: Update top comment to not mention Unix. Add
4326 generic comment describing how this target is meant to be used.
4327 (inf_child_post_attach, inf_child_post_startup_inferior)
4328 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4331 2014-03-12 Pedro Alves <palves@redhat.com>
4333 * nto-procfs.c: Include inf-child.h.
4334 (procfs_ops): Delete global.
4335 (procfs_can_run): Delete method.
4336 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4337 target pointer instead of referencing procfs_ops.
4338 (procfs_prepare_to_store): Delete.
4339 (init_procfs_ops): Delete function.
4340 (procfs_target): New function, based on init_procfs_ops, but
4341 inherit inf_child_target.
4342 (_initialize_procfs): Use procfs_target.
4344 2014-03-12 Pedro Alves <palves@redhat.com>
4346 * windows-nat.c: Include inf-child.h.
4347 (windows_ops): Delete global.
4348 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4350 (init_windows_ops): Delete function.
4351 (windows_target): New function, based on init_windows_ops, but
4352 inherit inf_child_target.
4353 (_initialize_windows_nat): Use windows_target. Install x86
4354 specific target methods here.
4356 2014-03-10 Doug Evans <xdje42@gmail.com>
4358 * guile/guile.c (call_initialize_gdb_module): New function.
4359 (initialize_guile): Replace call to scm_init_guile with call to
4362 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4364 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4365 in call to TYPE_CODE macro.
4367 2014-03-10 Jerome Guitton <guitton@adacore.com>
4369 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4370 Resolve tagged types to full view.
4372 2014-03-10 Hui Zhu <hui@codesourcery.com>
4374 * target.h (target_insert_breakpoint): Remove "hardware" from its
4377 2014-03-07 Doug Evans <dje@google.com>
4379 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4381 2014-03-07 Doug Evans <dje@google.com>
4383 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4384 Remove unused local comp_dir_attr. Assert exactly one of
4385 stub_comp_unit_die, stub_comp_dir is non-NULL.
4387 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4389 * target.h (complete_target_initialization, add_target):
4392 2014-03-07 Pedro Alves <palves@redhat.com>
4394 * go32-nat.c: Include inf-child.h.
4395 (go32_ops): Delete global.
4396 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4398 (go32_create_inferior): Push the passed in target pointer instead
4399 of referencing go32_ops.
4400 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4401 (go32_target): New function, based on init_go32_ops, but inherit
4403 (_initialize_go32_nat): Use go32_target. Move parts of
4406 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4408 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4409 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4410 SYMBOL_VALUE_ADDRESS.
4411 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4413 2014-03-06 Yao Qi <yao@codesourcery.com>
4415 * breakpoint.c (get_tracepoint_by_number): Remove argument
4416 optional_p. All callers updated. Adjust comments. Update
4418 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4420 2014-03-06 Yao Qi <yao@codesourcery.com>
4422 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4423 early if get_number returns zero. Use 'p' instead of 'args'.
4425 2014-03-06 Yao Qi <yao@codesourcery.com>
4427 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4430 2014-03-06 Yao Qi <yao@codesourcery.com>
4432 PR breakpoints/16508
4433 * tracepoint.c (check_trace_running): New function.
4434 (trace_find_command): Move code to check_trace_running and
4435 call check_trace_running.
4436 (trace_find_pc_command): Likewise.
4437 (trace_find_tracepoint_command): Likewise.
4438 (trace_find_line_command): Likewise.
4439 (trace_find_range_command): Likewise.
4440 * tracepoint.h (check_trace_running): Likewise.
4441 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4443 2014-03-06 Yao Qi <yao@codesourcery.com>
4445 * target.h (struct target_ops) <to_traceframe_info>: Use
4446 TARGET_DEFAULT_NORETURN (tcomplain ()).
4447 * target-delegates.c: Regenerated.
4449 2014-03-05 Pedro Alves <palves@redhat.com>
4452 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4453 void. Update comment.
4454 (dcache_xfer_memory): Delete.
4455 (dcache_read_memory_partial): New, based on the read bits of
4457 (dcache_update): Add status parameter. Use ULONGEST for len, and
4458 adjust. Discard cache lines if the reason for the update was
4460 * dcache.h (dcache_xfer_memory): Delete declaration.
4461 (dcache_read_memory_partial): New declaration.
4462 (dcache_update): Update prototype.
4463 * target.c (raw_memory_xfer_partial): Update the dcache here.
4464 (memory_xfer_partial_1): Don't handle dcache writes here.
4466 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4468 * remote-sim.c (gdbsim_load): Add const to prog.
4470 2014-03-03 Tom Tromey <tromey@redhat.com>
4472 * elfread.c (probe_key): Change to bfd_data.
4473 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4474 now per-BFD, not per-objfile.
4475 * stap-probe.c (stap_probe_destroy): Update comment.
4476 (handle_stap_probe): Allocate on the per-BFD obstack.
4478 2014-03-03 Tom Tromey <tromey@redhat.com>
4480 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4481 * breakpoint.c (create_longjmp_master_breakpoint): Use
4483 (add_location_to_breakpoint, bkpt_probe_insert_location)
4484 (bkpt_probe_remove_location): Update.
4485 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4486 * elfread.c (elf_symfile_relocate_probe): Remove.
4487 (elf_probe_fns): Update.
4488 (insert_exception_resume_breakpoint): Change type of "probe"
4489 parameter to bound_probe.
4490 (check_exception_resume): Update.
4491 * objfiles.c (objfile_relocate1): Don't relocate probes.
4492 * probe.c (bound_probe_s): New typedef.
4493 (parse_probes): Use get_probe_address. Set sal's objfile.
4494 (find_probe_by_pc): Return a bound_probe.
4495 (collect_probes): Return a VEC(bound_probe_s).
4496 (compare_probes): Update.
4497 (gen_ui_out_table_header_info): Change type of "probes"
4499 (info_probes_for_ops): Update.
4500 (get_probe_address): New function.
4501 (probe_safe_evaluate_at_pc): Update.
4502 * probe.h (struct probe_ops) <get_probe_address>: New field.
4503 <set_semaphore, clear_semaphore>: Add objfile parameter.
4504 (struct probe) <objfile>: Remove field.
4506 <address>: Update comment.
4507 (struct bound_probe): New.
4508 (find_probe_by_pc): Return a bound_probe.
4509 (get_probe_address): Declare.
4510 * solib-svr4.c (struct probe_and_action) <address>: New field.
4511 (hash_probe_and_action, equal_probe_and_action): Update.
4512 (register_solib_event_probe): Add address parameter.
4513 (solib_event_probe_at): Update.
4514 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4516 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4517 (stap_get_probe_address): New function.
4518 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4519 (compile_probe_arg): Update.
4520 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4522 (handle_stap_probe): Don't relocate the probe.
4523 (stap_relocate): Remove.
4524 (stap_gen_info_probes_table_values): Update.
4525 (stap_probe_ops): Remove stap_relocate.
4526 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4527 (debug_sym_probe_fns): Update.
4528 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4529 * symtab.c (init_sal): Use memset.
4530 * symtab.h (struct symtab_and_line) <objfile>: New field.
4531 * tracepoint.c (start_tracing, stop_tracing): Update.
4533 2014-03-03 Tom Tromey <tromey@redhat.com>
4535 * probe.h (parse_probes, find_probe_by_pc)
4536 (find_probes_in_objfile): Fix comments.
4538 2014-03-02 Doug Evans <xdje42@gmail.com>
4540 * infrun.c (handle_signal_stop): Replace test for
4541 TARGET_WAITKIND_STOPPED with an assert.
4543 2014-03-02 Doug Evans <xdje42@gmail.com>
4545 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4547 2014-03-02 Doug Evans <xdje42@gmail.com>
4549 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4551 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4553 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4555 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4557 * i386obsd-nat.c: Include "obsd-nat.h".
4558 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4560 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4562 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4564 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4566 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4568 * mips64obsd-nat.c: Include "obsd-nath".
4569 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4571 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4573 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4575 * amd64obsd-nat.c: Include "obsd-nat,h.
4576 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4578 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4580 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4582 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4583 (find_overload_match): Update call to find_oload_champ.
4584 (find_oload_champ_namespace_loop): Likewise
4586 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4588 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4590 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4591 * config/sparc/obsd64.mh: New file.
4592 * sparc64obsd-nat.c: New file.
4594 * obsd-nat.h: New file.
4595 * obsd-nat.c: New file.
4596 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4597 (ALLDEPFILES): Add obsd-nat.c.
4599 2014-02-28 Tom Tromey <tromey@redhat.com>
4601 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4602 * cli-out.h (cli_ui_out_impl): Now const.
4603 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4604 * ui-out.c (struct ui_out) <impl>: Now const.
4605 (default_ui_out_impl): Now const.
4606 (ui_out_new): Make 'impl' parameter const.
4607 * ui-out.h (ui_out_new): Update.
4609 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4611 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4613 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4615 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4617 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4619 Additional PR 8882 fix.
4620 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4622 2014-02-27 Pedro Alves <palves@redhat.com>
4624 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4627 2014-02-27 Pedro Alves <palves@redhat.com>
4630 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4631 * nat/linux-waitpid.c: Include string.h.
4632 (status_to_str): Moved here and made extern.
4633 * nat/linux-waitpid.h (status_to_str): New declaration.
4635 2014-02-27 Hui Zhu <hui@codesourcery.com>
4638 * infrun.c (ptid_match): Move ...
4639 * common/ptid.c (ptid_match): ... here.
4640 * inferior.h (ptid_match): Move ...
4641 * common/ptid.h (ptid_match): ... here.
4643 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4645 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4646 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4649 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4651 * obsd-tdep.c (obsd_auxv_parse): New function.
4652 (obsd_init_abi): Set auxv_parse.
4654 * gdbarch.sh (auxv_parse): New.
4655 * gdbarch.h: Regenerated.
4656 * gdbarch.c: Regenerated.
4657 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4659 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4661 * guile/scm-value.c (gdbscm_history_append_x): New function.
4662 (value_functions): Add it.
4664 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4666 * dwarf2read.c (attr_value_as_address): New function.
4667 (dwarf2_find_base_address, read_call_site_scope): Use
4668 attr_value_as_address in place of DW_ADDR.
4669 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4670 the low and high addresses. Slight rework of the handling
4671 of the high pc being a constant form, and limit it to
4672 DWARF verson 4 or higher.
4673 (dwarf2_record_block_ranges): Likewise.
4674 (read_partial_die): Likewise.
4675 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4677 2014-02-26 Tom Tromey <tromey@redhat.com>
4679 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4681 2014-02-26 Tom Tromey <tromey@redhat.com>
4683 * elfread.c (elf_read_minimal_symbols): Return early if
4684 minimal symbols have already been read. Add "ei" parameter.
4685 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4686 * minsyms.c (prim_record_minimal_symbol_full): Update.
4687 * objfiles.h (struct objstats) <n_minsyms>: Move...
4688 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4689 * symmisc.c (print_objfile_statistics): Update.
4691 2014-02-26 Tom Tromey <tromey@redhat.com>
4693 * elfread.c (elf_read_minimal_symbols): New function, from
4695 (elf_symfile_read): Call it.
4697 2014-02-26 Tom Tromey <tromey@redhat.com>
4699 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4700 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4701 (lookup_minimal_symbol_solib_trampoline)
4702 (lookup_minimal_symbol_by_pc_section_1)
4703 (lookup_minimal_symbol_and_objfile): Update.
4704 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4705 Don't allocate a minimal symbol if minsyms have already been read.
4706 (build_minimal_symbol_hash_tables): Update.
4707 (install_minimal_symbols): Do nothing if minsyms already read.
4708 Use the per-BFD obstack.
4709 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4710 * objfiles.c (allocate_objfile): Call
4711 terminate_minimal_symbol_table later.
4712 (have_minimal_symbols): Update.
4713 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4714 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4715 Move from struct objfile.
4716 <minsyms_read>: New field.
4717 (struct objfile) <msymbols, minimal_symbol_count,
4718 msymbol_hash, msymbol_demangled_hash>: Move.
4719 (ALL_OBJFILE_MSYMBOLS): Update.
4720 * symfile.c (read_symbols): Set minsyms_read.
4721 (reread_symbols): Update.
4722 * symmisc.c (dump_objfile, dump_msymbols): Update.
4724 2014-02-26 Tom Tromey <tromey@redhat.com>
4726 * minsyms.c (msymbols_sort): Remove.
4727 * minsyms.h (msymbols_sort): Remove.
4728 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4729 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4730 * elfread.c (elf_symtab_read): Don't add section offsets.
4731 * xcoffread.c (record_minimal_symbol): Don't add section offset
4732 to minimal symbol address.
4733 * somread.c (text_offset, data_offset): Remove.
4734 (som_symtab_read): Don't add section offsets to minimal symbol
4736 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4737 Don't add section offsets to minimal symbols.
4738 * coffread.c (coff_symtab_read): Don't add section offsets
4739 to minimal symbol addresses.
4740 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4741 to minimal symbol addresses.
4742 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4743 section offset to minimal symbol addresses.
4744 * mdebugread.c (parse_partial_symbols): Don't add section
4745 offset to minimal symbol addresses.
4746 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4747 offset to minimal symbol addresses.
4749 2014-02-26 Tom Tromey <tromey@redhat.com>
4751 * ada-lang.c (ada_main_name): Update.
4752 (ada_add_standard_exceptions): Update.
4753 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4754 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4755 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4756 * auxv.c (ld_so_xfer_auxv): Update.
4757 * avr-tdep.c (avr_scan_prologue): Update.
4758 * ax-gdb.c (gen_var_ref): Update.
4759 * blockframe.c (get_pc_function_start)
4760 (find_pc_partial_function_gnu_ifunc): Update.
4761 * breakpoint.c (create_overlay_event_breakpoint)
4762 (create_longjmp_master_breakpoint)
4763 (create_std_terminate_master_breakpoint)
4764 (create_exception_master_breakpoint): Update.
4765 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4766 * c-valprint.c (c_val_print): Update.
4767 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4768 * common/agent.c (agent_look_up_symbols): Update.
4769 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4770 * dwarf2loc.c (call_site_to_target_addr): Update.
4771 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4772 * elfread.c (elf_gnu_ifunc_record_cache)
4773 (elf_gnu_ifunc_resolve_by_got): Update.
4774 * findvar.c (default_read_var_value): Update.
4775 * frame.c (inside_main_func): Update.
4776 * frv-tdep.c (frv_frame_this_id): Update.
4777 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4778 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4780 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4781 (hppa_hpux_find_dummy_bpaddr): Update.
4782 * hppa-tdep.c (hppa_symbol_address): Update.
4783 * infcmd.c (until_next_command): Update.
4784 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4786 * linespec.c (minsym_found, add_minsym): Update.
4787 * linux-nat.c (get_signo): Update.
4788 * linux-thread-db.c (inferior_has_bug): Update.
4789 * m32c-tdep.c (m32c_return_value)
4790 (m32c_m16c_address_to_pointer): Update.
4791 * m32r-tdep.c (m32r_frame_this_id): Update.
4792 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4793 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4794 * maint.c (maintenance_translate_address): Update.
4795 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4796 (frob_address): New function.
4797 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4798 frob_address. Rename parameter to "pc_in".
4799 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4801 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4803 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4804 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4805 * objc-lang.c (find_objc_msgsend): Update.
4806 * objfiles.c (objfile_relocate1): Update.
4807 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4808 * p-valprint.c (pascal_val_print): Update.
4809 * parse.c (write_exp_msymbol): Update.
4810 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4811 (ppc_elfv2_skip_entrypoint): Update.
4812 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4813 * printcmd.c (build_address_symbolic, msym_info)
4814 (address_info): Update.
4815 * proc-service.c (ps_pglobal_lookup): Update.
4816 * psymtab.c (find_pc_sect_psymtab_closer)
4817 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4818 Change msymbol parameter to bound_minimal_symbol.
4819 * ravenscar-thread.c (get_running_thread_id): Update.
4820 * remote.c (remote_check_symbols): Update.
4821 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4823 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4824 * solib-dsbt.c (lm_base): Update.
4825 * solib-frv.c (lm_base, main_got): Update.
4826 * solib-irix.c (locate_base): Update.
4827 * solib-som.c (som_solib_create_inferior_hook)
4828 (link_map_start): Update.
4829 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4830 * solib-svr4.c (elf_locate_base, enable_break): Update.
4831 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4832 (flush_ea_cache): Update.
4833 * stabsread.c (define_symbol, scan_file_globals): Update.
4834 * stack.c (find_frame_funname): Update.
4835 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4836 (debug_qf_find_pc_sect_symtab): Update.
4837 * symfile.c (simple_read_overlay_table)
4838 (simple_overlay_update): Update.
4839 * symfile.h (struct quick_symbol_functions)
4840 <find_pc_sect_symtab>: Change type of msymbol to
4841 bound_minimal_symbol.
4842 * symmisc.c (dump_msymbols): Update.
4843 * symtab.c (find_pc_sect_symtab_via_partial)
4844 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4845 (search_symbols, print_msymbol_info): Update.
4846 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4847 (MSYMBOL_VALUE_ADDRESS): Redefine.
4848 (BMSYMBOL_VALUE_ADDRESS): New macro.
4849 * tracepoint.c (scope_info): Update.
4850 * tui/tui-disasm.c (tui_find_disassembly_address)
4851 (tui_get_begin_asm_address): Update.
4852 * valops.c (find_function_in_inferior): Update.
4853 * value.c (value_static_field, value_fn_field): Update.
4855 2014-02-26 Tom Tromey <tromey@redhat.com>
4857 * ada-lang.c (ada_update_initial_language): Update.
4858 (ada_main_name, ada_has_this_exception_support): Update.
4859 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4860 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4861 * arm-tdep.c (arm_skip_stub): Update.
4862 * auxv.c (ld_so_xfer_auxv): Update.
4863 * avr-tdep.c (avr_scan_prologue): Update.
4864 * ax-gdb.c (gen_var_ref): Update.
4865 * breakpoint.c (struct breakpoint_objfile_data)
4866 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4867 type to bound_minimal_symbol.
4868 (create_overlay_event_breakpoint)
4869 (create_longjmp_master_breakpoint)
4870 (create_std_terminate_master_breakpoint)
4871 (create_exception_master_breakpoint): Update.
4872 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4873 * c-exp.y (classify_name): Update.
4874 * coffread.c (coff_symfile_read): Update.
4875 * common/agent.c (agent_look_up_symbols): Update.
4876 * d-lang.c (d_main_name): Update.
4877 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4878 * dec-thread.c (enable_dec_thread): Update.
4879 * dwarf2loc.c (call_site_to_target_addr): Update.
4880 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4881 * eval.c (evaluate_subexp_standard): Update.
4882 * findvar.c (struct minsym_lookup_data) <result>: Change type
4883 to bound_minimal_symbol.
4885 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4886 * frame.c (inside_main_func): Update.
4887 * frv-tdep.c (frv_frame_this_id): Update.
4888 * gcore.c (call_target_sbrk): Update.
4889 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4890 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4892 * go-lang.c (go_main_name): Update.
4893 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4894 (hppa_hpux_find_import_stub_for_addr): Update.
4895 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4896 Update. Change return type.
4897 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4899 * jit.c (jit_breakpoint_re_set_internal): Update.
4900 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4902 * linux-nat.c (get_signo): Update.
4903 * linux-thread-db.c (inferior_has_bug): Update
4904 * m32c-tdep.c (m32c_return_value)
4905 (m32c_m16c_address_to_pointer): Update.
4906 * m32r-tdep.c (m32r_frame_this_id): Update.
4907 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4908 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4909 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4910 lookup_minimal_symbol. Change return type.
4911 (lookup_minimal_symbol): Remove.
4912 (lookup_bound_minimal_symbol): Update.
4913 (lookup_minimal_symbol_text): Change return type.
4914 (lookup_minimal_symbol_solib_trampoline): Change return type.
4915 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4916 (lookup_minimal_symbol_solib_trampoline): Change return type.
4917 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4918 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4919 (value_nsstring, find_imps): Update.
4920 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4921 * p-lang.c (pascal_main_name): Update.
4922 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4923 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4924 * proc-service.c (ps_pglobal_lookup): Update.
4925 * ravenscar-thread.c (get_running_thread_msymbol): Change
4927 (has_ravenscar_runtime, get_running_thread_id): Update.
4928 * remote.c (remote_check_symbols): Update.
4929 * sol-thread.c (ps_pglobal_lookup): Update.
4930 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4931 * solib-dsbt.c (lm_base): Update.
4932 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4934 * solib-irix.c (locate_base): Update.
4935 * solib-som.c (som_solib_create_inferior_hook)
4936 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4938 * solib-spu.c (spu_enable_break): Update.
4939 * solib-svr4.c (elf_locate_base, enable_break): Update.
4940 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4941 (flush_ea_cache): Update.
4942 * stabsread.c (define_symbol): Update.
4943 * symfile.c (simple_read_overlay_table): Update.
4944 * symtab.c (find_pc_sect_line): Update.
4945 * tracepoint.c (scope_info): Update.
4946 * tui-disasm.c (tui_get_begin_asm_address): Update.
4947 * value.c (value_static_field): Update.
4949 2014-02-26 Tom Tromey <tromey@redhat.com>
4951 * minsyms.c (prim_record_minimal_symbol_full): Use
4952 SET_MSYMBOL_VALUE_ADDRESS.
4953 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4954 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4955 SET_MSYMBOL_VALUE_ADDRESS.
4956 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4957 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4959 2014-02-26 Tom Tromey <tromey@redhat.com>
4961 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4962 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4963 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4964 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4965 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4966 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4967 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4968 * ada-lang.c (ada_main_name): Update.
4969 (ada_lookup_simple_minsym): Update.
4970 (ada_make_symbol_completion_list): Update.
4971 (ada_add_standard_exceptions): Update.
4972 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4973 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4974 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4975 * arm-tdep.c (skip_prologue_function): Update.
4976 (arm_skip_stack_protector, arm_skip_stub): Update.
4977 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4978 (arm_wince_skip_main_prologue): Update.
4979 * auxv.c (ld_so_xfer_auxv): Update.
4980 * avr-tdep.c (avr_scan_prologue): Update.
4981 * ax-gdb.c (gen_var_ref): Update.
4982 * block.c (call_site_for_pc): Update.
4983 * blockframe.c (get_pc_function_start): Update.
4984 (find_pc_partial_function_gnu_ifunc): Update.
4985 * breakpoint.c (create_overlay_event_breakpoint): Update.
4986 (create_longjmp_master_breakpoint): Update.
4987 (create_std_terminate_master_breakpoint): Update.
4988 (create_exception_master_breakpoint): Update.
4989 (resolve_sal_pc): Update.
4990 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4991 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4993 * c-valprint.c (c_val_print): Update.
4994 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4995 * coffread.c (coff_symfile_read): Update.
4996 * common/agent.c (agent_look_up_symbols): Update.
4997 * dbxread.c (find_stab_function_addr): Update.
4998 (end_psymtab): Update.
4999 * dwarf2loc.c (call_site_to_target_addr): Update.
5000 (func_verify_no_selftailcall): Update.
5001 (tailcall_dump): Update.
5002 (call_site_find_chain_1): Update.
5003 (dwarf_expr_reg_to_entry_parameter): Update.
5004 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5005 (elf_gnu_ifunc_resolve_by_got): Update.
5006 * f-valprint.c (info_common_command): Update.
5007 * findvar.c (read_var_value): Update.
5008 * frame.c (get_prev_frame_1): Update.
5009 (inside_main_func): Update.
5010 * frv-tdep.c (frv_skip_main_prologue): Update.
5011 (frv_frame_this_id): Update.
5012 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5013 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5014 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5015 (gnuv3_skip_trampoline): Update.
5016 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5017 (hppa64_hpux_in_solib_call_trampoline): Update.
5018 (hppa_hpux_skip_trampoline_code): Update.
5019 (hppa64_hpux_search_dummy_call_sequence): Update.
5020 (hppa_hpux_find_import_stub_for_addr): Update.
5021 (hppa_hpux_find_dummy_bpaddr): Update.
5022 * hppa-tdep.c (hppa_symbol_address)
5023 (hppa_lookup_stub_minimal_symbol): Update.
5024 * i386-tdep.c (i386_skip_main_prologue): Update.
5025 (i386_pe_skip_trampoline_code): Update.
5026 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5027 * infcall.c (get_function_name): Update.
5028 * infcmd.c (until_next_command): Update.
5029 * jit.c (jit_breakpoint_re_set_internal): Update.
5030 (jit_inferior_init): Update.
5031 * linespec.c (minsym_found): Update.
5032 (add_minsym): Update.
5033 * linux-fork.c (info_checkpoints_command): Update.
5034 * linux-nat.c (get_signo): Update.
5035 * linux-thread-db.c (inferior_has_bug): Update.
5036 * m32c-tdep.c (m32c_return_value): Update.
5037 (m32c_m16c_address_to_pointer): Update.
5038 (m32c_m16c_pointer_to_address): Update.
5039 * m32r-tdep.c (m32r_frame_this_id): Update.
5040 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5041 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5042 * maint.c (maintenance_translate_address): Update.
5043 * minsyms.c (add_minsym_to_hash_table): Update.
5044 (add_minsym_to_demangled_hash_table): Update.
5045 (msymbol_objfile): Update.
5046 (lookup_minimal_symbol): Update.
5047 (iterate_over_minimal_symbols): Update.
5048 (lookup_minimal_symbol_text): Update.
5049 (lookup_minimal_symbol_by_pc_name): Update.
5050 (lookup_minimal_symbol_solib_trampoline): Update.
5051 (lookup_minimal_symbol_by_pc_section_1): Update.
5052 (lookup_minimal_symbol_and_objfile): Update.
5053 (prim_record_minimal_symbol_full): Update.
5054 (compare_minimal_symbols): Update.
5055 (compact_minimal_symbols): Update.
5056 (build_minimal_symbol_hash_tables): Update.
5057 (install_minimal_symbols): Update.
5058 (terminate_minimal_symbol_table): Update.
5059 (find_solib_trampoline_target): Update.
5060 (minimal_symbol_upper_bound): Update.
5061 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5062 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5063 (mips_skip_pic_trampoline_code): Update.
5064 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5065 * objc-lang.c (selectors_info): Update.
5066 (classes_info): Update.
5067 (find_methods): Update.
5068 (find_imps): Update.
5069 (find_objc_msgsend): Update.
5070 * objfiles.c (objfile_relocate1): Update.
5071 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5072 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5073 * p-valprint.c (pascal_val_print): Update.
5074 * parse.c (write_exp_msymbol): Update.
5075 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5076 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5077 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5078 * printcmd.c (build_address_symbolic): Update.
5080 (address_info): Update.
5081 * proc-service.c (ps_pglobal_lookup): Update.
5082 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5083 (find_pc_sect_psymtab): Update.
5084 * python/py-framefilter.c (py_print_frame): Update.
5085 * ravenscar-thread.c (get_running_thread_id): Update.
5086 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5088 * remote.c (remote_check_symbols): Update.
5089 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5090 (rs6000_skip_trampoline_code): Update.
5091 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5092 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5093 * solib-dsbt.c (lm_base): Update.
5094 * solib-frv.c (lm_base): Update.
5096 * solib-irix.c (locate_base): Update.
5097 * solib-som.c (som_solib_create_inferior_hook): Update.
5098 (som_solib_desire_dynamic_linker_symbols): Update.
5099 (link_map_start): Update.
5100 * solib-spu.c (spu_enable_break): Update.
5101 (ocl_enable_break): Update.
5102 * solib-svr4.c (elf_locate_base): Update.
5103 (enable_break): Update.
5104 * spu-tdep.c (spu_get_overlay_table): Update.
5105 (spu_catch_start): Update.
5106 (flush_ea_cache): Update.
5107 * stabsread.c (define_symbol): Update.
5108 (scan_file_globals): Update.
5109 * stack.c (find_frame_funname): Update.
5110 (frame_info): Update.
5111 * symfile.c (simple_read_overlay_table): Update.
5112 (simple_overlay_update): Update.
5113 * symmisc.c (dump_msymbols): Update.
5114 * symtab.c (fixup_section): Update.
5115 (find_pc_sect_line): Update.
5116 (skip_prologue_sal): Update.
5117 (search_symbols): Update.
5118 (print_msymbol_info): Update.
5119 (rbreak_command): Update.
5120 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5121 (completion_list_objc_symbol): Update.
5122 (default_make_symbol_completion_list_break_on): Update.
5123 * tracepoint.c (scope_info): Update.
5124 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5125 (tui_get_begin_asm_address): Update.
5126 * valops.c (find_function_in_inferior): Update.
5127 * value.c (value_static_field): Update.
5128 (value_fn_field): Update.
5130 2014-02-26 Tom Tromey <tromey@redhat.com>
5132 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5133 bound minimal symbols. Move code that knows about minsym
5135 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5137 * minsyms.h (minimal_symbol_upper_bound): Declare.
5138 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5139 minimal_symbol_upper_bound.
5141 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5143 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5144 Use the type's name if its basic type does not have a tag.
5146 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5148 * dwarf2read.c (read_subrange_type): Add comment.
5150 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5152 * dwarf2read.c (update_enumeration_type_from_children): New
5153 function, mostly extracted from process_structure_scope.
5154 (read_enumeration_type): Call update_enumeration_type_from_children.
5155 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5156 and flag_flag_enum fields.
5158 2014-02-26 Pedro Alves <palves@redhat.com>
5160 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5161 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5162 to_xfer_partial method.
5164 2014-02-26 Pedro Alves <palves@redhat.com>
5166 * target.c (complete_target_initialization): Don't install
5167 default_xfer_partial as to_xfer_partial hook.
5169 (update_current_target): Don't INHERIT nor de_fault
5170 deprecated_xfer_memory. Delete de_fault macro.
5171 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5172 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5173 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5176 2014-02-26 Pedro Alves <palves@redhat.com>
5178 * go32-nat.c (my_write_child): New function.
5179 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5180 (go32_xfer_partial): New function.
5181 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5182 Instead install a to_xfer_partial hook.
5184 2014-02-26 Pedro Alves <palves@redhat.com>
5186 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5187 to_xfer_partial helper. Rewrite.
5188 (procfs_xfer_partial): New function.
5189 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5190 Install a to_xfer_partial hook.
5192 2014-02-26 Pedro Alves <palves@redhat.com>
5194 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5195 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5196 (m32r_xfer_partial): New function.
5197 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5198 Install a to_xfer_partial hook.
5200 2014-02-26 Pedro Alves <palves@redhat.com>
5202 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5204 (mips_xfer_partial): New function.
5205 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5206 hook. Install a to_xfer_partial hook.
5208 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5210 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5211 * gdbtypes.c (create_array_type_with_stride): New function,
5212 renaming create_array_type, but with an added parameter
5213 called "bit_stride".
5214 (create_array_type): Re-implement using
5215 create_array_type_with_stride.
5216 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5217 and DW_AT_bit_stride attributes.
5219 2014-02-26 Pedro Alves <palves@redhat.com>
5221 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5222 task-specific breakpoints.
5224 2014-02-25 Pedro Alves <palves@redhat.com>
5226 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5227 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5229 2014-02-25 Stan Shebs <stan@codesourcery.com>
5231 * defs.h: Annotate comments for Doxygen.
5233 2014-02-25 Tom Tromey <tromey@redhat.com>
5235 * target.h (target_ignore): Don't declare.
5236 * target.c (target_ignore): Remove.
5238 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 * auto-load.c (auto_load_objfile_script_1): Change filename to
5244 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5246 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5247 documentation. Adjust prototype to match the target_ops
5248 to_xfer_partial method. Adjust implementation accordingly.
5250 2014-02-25 Hui Zhu <hui@codesourcery.com>
5252 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5255 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5257 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5258 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5259 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5260 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5261 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5262 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5263 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5264 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5266 (rl78_register_type): Use a data pointer type for SP and
5267 new pseudo registers mentioned above. Use a 16 bit integer
5268 type for all other register pairs.
5269 (rl78_register_name, rl78_g10_register_name): Update for
5270 new pseudo registers.
5271 (rl78_pseudo_register_read): Likewise.
5272 (rl78_pseudo_register_write): Likewise.
5273 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5274 to the newly added pseudo registers.
5276 2014-02-24 Doug Evans <dje@google.com>
5278 * value.c (record_latest_value): Fix comment.
5279 * printcmd.c (print_command_1): Remove code to handle -1 return from
5280 record_latest_value.
5282 2014-02-24 Pedro Alves <palves@redhat.com>
5284 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5285 deprecated_xfer_memory hook.
5286 (procfs_xfer_partial): Call procfs_xfer_memory instead
5287 of the deprecated_xfer_memory target hook.
5288 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5291 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5293 * windows-nat.c (windows_xfer_shared_libraries): Return
5294 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5295 requested object is TARGET_OBJECT_LIBRARIES.
5297 2014-02-24 Yao Qi <yao@codesourcery.com>
5299 * target.h (enum target_xfer_status)
5300 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5301 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5303 * corefile.c (memory_error_message): User updated.
5304 * exec.c (section_table_read_available_memory): Likewise.
5305 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5306 * target.c (target_xfer_status_to_string): Likewise.
5307 (raw_memory_xfer_partial): Likewise.
5308 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5309 * valops.c (read_value_memory): Likewise.
5310 * exec.h: Update comments.
5312 2014-02-24 Yao Qi <yao@codesourcery.com>
5314 * target.c (target_xfer_status_to_string): Rename argument err
5316 * target.h (target_xfer_status_to_string): Update declaration.
5317 Replace target_xfer_error_to_string with
5318 target_xfer_status_to_string in comment.
5320 2014-02-24 Yao Qi <yao@codesourcery.com>
5322 * mips-linux-nat.c (super_close): Update its type.
5323 (mips_linux_close): Pass 'self' to super_close.
5325 2014-02-24 Yao Qi <yao@codesourcery.com>
5327 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5328 * corefile.c (read_memory): Adjusted.
5329 * target.c (target_write_with_progress): Adjusted.
5331 2014-02-23 Yao Qi <yao@codesourcery.com>
5335 2013-10-25 Yao Qi <yao@codesourcery.com>
5337 * remote.c (remote_traceframe_info): Return early if
5338 traceframe is not selected.
5340 2013-07-19 Yao Qi <yao@codesourcery.com>
5342 * target.c (update_current_target): Change the default action
5343 of 'to_traceframe_info' from tcomplain to return_zero.
5344 * target.h (struct target_ops) <to_traceframe_info>: Add more
5347 2014-02-23 Yao Qi <yao@codesourcery.com>
5349 * valops.c (read_value_memory): Rewrite it. Call
5350 target_xfer_partial in a loop.
5351 * exec.h (section_table_available_memory): Remove declaration.
5352 Move comments to ...
5353 * exec.c (section_table_available_memory): ... here. Make it
5356 2014-02-23 Yao Qi <yao@codesourcery.com>
5358 * exec.c (section_table_read_available_memory): New function.
5359 * exec.h (section_table_read_available_memory): Declare.
5360 * ctf.c (ctf_xfer_partial): Call
5361 section_table_read_available_memory.
5362 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5364 2014-02-23 Yao Qi <yao@codesourcery.com>
5366 * ctf.c (ctf_xfer_partial): Move code to ...
5367 * exec.c (exec_read_partial_read_only): ... it. New function.
5368 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5369 * tracefile.c: Include "exec.h".
5370 * exec.h (exec_read_partial_read_only): Declare.
5372 2014-02-23 Yao Qi <yao@codesourcery.com>
5374 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5375 (tfile_has_memory): Remove.
5376 (init_tfile_ops): Don't set fields to_has_all_memory and
5377 to_has_memory of tfile_ops.
5378 * tracefile.c (tracefile_has_all_memory): New function.
5379 (tracefile_has_memory): New function.
5380 (init_tracefile_ops): Initialize fields to_has_all_memory and
5381 to_has_memory of 'ops'.
5383 2014-02-23 Yao Qi <yao@codesourcery.com>
5385 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5386 (ctf_thread_alive, ctf_get_trace_status): Remove.
5387 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5389 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5390 (tfile_has_stack, tfile_has_registers): Remove.
5391 (tfile_thread_alive): Remove.
5392 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5394 * tracefile.c (tracefile_has_stack): New function.
5395 (tracefile_has_registers): New function.
5396 (tracefile_thread_alive): New function.
5397 (tracefile_get_trace_status): New function.
5398 (init_tracefile_ops): New function.
5399 * tracefile.h (init_tracefile_ops): Declare.
5401 2014-02-23 Yao Qi <yao@codesourcery.com>
5403 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5404 (O_LARGEFILE): Likewise.
5405 (tfile_ops): Likewise.
5406 (TRACE_HEADER_SIZE): Likewise.
5407 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5408 (cur_data_size): Likewise.
5409 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5410 (tfile_close, tfile_files_info): Likewise.
5411 (tfile_get_trace_status): Likewise.
5412 (tfile_get_tracepoint_status): Likewise.
5413 (tfile_get_traceframe_address): Likewise.
5414 (tfile_trace_find, match_blocktype): Likewise.
5415 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5416 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5417 (tfile_get_trace_state_variable_value): Likewise.
5418 (tfile_has_all_memory, tfile_has_memory): Likewise.
5419 (tfile_has_stack, tfile_has_registers): Likewise.
5420 (tfile_thread_alive, build_traceframe_info): Likewise.
5421 (tfile_traceframe_info, init_tfile_ops): Likewise.
5422 (_initialize_tracepoint): Don't call init_tfile_ops
5423 and add_target_with_completer.
5424 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5425 exec.h, completer.h and filenames.h.
5426 (_initialize_tracefile_tfile): New function.
5428 2014-02-23 Yao Qi <yao@codesourcery.com>
5430 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5432 (HFILES_NO_SRCDIR): Add tracefile.h.
5433 * ctf.c: Include "tracefile.h".
5434 * tracefile.h: New file.
5435 * tracefile.c: New file
5436 * tracefile-tfile.c: New file.
5437 * tracepoint.c: Include "tracefile.h".
5438 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5439 (stop_reason_names): Add const.
5440 (trace_file_writer_xfree): Move it to tracefile.c.
5441 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5442 (trace_save_ctf): Likewise.
5443 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5444 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5445 (tfile_write_header, tfile_write_regblock_type): Likewise.
5446 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5447 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5448 (tfile_write_raw_data, tfile_end): Likewise.
5449 (tfile_trace_file_writer_new): Likewise.
5450 (free_uploaded_tp): Make it extern.
5451 (free_uploaded_tsv): Make it extern.
5452 (_initialize_tracepoint): Move code to register command 'tsave'
5454 * tracepoint.h (stop_reason_names): Declare.
5455 (struct trace_frame_write_ops): Move it to tracefile.h.
5456 (struct trace_file_write_ops): Likewise.
5457 (struct trace_file_writer): Likewise.
5458 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5460 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5463 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5465 (get_cores_used_by_process): New parameter num_cores, use it.
5466 (linux_xfer_osdata_processes): Pass num_cores to it.
5467 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5470 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5472 * target.c (memory_xfer_partial): Fix length arg in call to
5473 breakpoint_xfer_memory.
5475 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5478 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5479 number comes after the + or - signs. Adjust length of register
5480 name to be extracted.
5482 2014-02-20 Tom Tromey <tromey@redhat.com>
5484 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5485 (ada_varobj_ops): Mark "extern".
5487 2014-02-20 Tom Tromey <tromey@redhat.com>
5489 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5491 2014-02-20 Doug Evans <xdje42@gmail.com>
5493 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5494 All callers updated.
5495 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5496 All callers updated.
5497 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5498 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5500 2014-02-20 lin zuojian <manjian2006@gmail.com>
5501 Joel Brobecker <brobecker@adacore.com>
5502 Doug Evans <xdje42@gmail.com>
5505 * dwarf2read.c (struct die_info): New member in_process.
5506 (reset_die_in_process): New function.
5507 (process_die): Set it at the start, reset when returning.
5508 (inherit_abstract_dies): Only call process_die if origin_child_die
5509 not already being processed.
5511 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5513 * windows-nat.c (handle_unload_dll): Add function documentation.
5514 (do_initial_windows_stuff): Add comment explaining why we wait
5515 until after inferior initialization has finished before
5516 processing all DLLs.
5518 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5520 * windows-nat.c (get_module_name): Delete.
5521 (windows_get_exec_module_filename): New function, mostly
5522 inspired from get_module_name.
5523 (windows_pid_to_exec_file): Replace call to get_module_name
5524 by call to windows_get_exec_module_filename.
5526 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5528 * windows-nat.c (handle_load_dll): Rewrite this function's
5529 introductory comment. Remove code using get_module_name
5530 to get the DLL's name.
5532 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5534 * windows-nat.c (get_windows_debug_event): Ignore
5535 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5536 if windows_initialization_done == 0.
5537 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5538 Adjust implementation to always load all DLLs.
5539 (do_initial_windows_stuff): Replace call to
5540 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5542 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5544 * windows-nat.c (_initialize_windows_nat): Deprecate the
5545 "dll-symbols" command. Turn the "add-shared-symbol-files"
5546 and "assf" aliases into commands, and deprecate them as well.
5547 * NEWS: Add entry explaining that "dll-symbols" and its two
5548 aliases are now deprecated.
5550 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5552 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5553 new-line in debug string. Remove trailing spaces.
5555 2014-02-19 Stan Shebs <stan@codesourcery.com>
5557 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5559 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5561 * NEWS: Add entry for the new feature
5562 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5565 2014-02-19 Stan Shebs <stan@codesourcery.com>
5567 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5569 2014-02-19 Pedro Alves <palves@redhat.com>
5571 * common/ptid.h (struct ptid): Mention that process_stratum
5572 targets should prefer ptid.lwp.
5574 2014-02-19 Pedro Alves <palves@redhat.com>
5576 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5577 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5578 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5579 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5580 store remote thread ids rather than ptid.tid.
5581 (_initialize_remote): Adjust.
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target.c (target_get_unwinder): Rewrite.
5586 (target_get_tailcall_unwinder): Rewrite.
5587 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5588 (record_btrace_to_get_tailcall_unwinder): New function.
5589 (init_record_btrace_ops): Update.
5590 * target.h (struct target_ops) <to_get_unwinder,
5591 to_get_tailcall_unwinder>: Now function pointers. Use
5592 TARGET_DEFAULT_RETURN.
5594 2014-02-19 Tom Tromey <tromey@redhat.com>
5596 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5598 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5600 2014-02-19 Tom Tromey <tromey@redhat.com>
5602 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5604 * target-delegates.c: Rebuild.
5605 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5606 TARGET_DEFAULT_FUNC.
5607 * target.c (default_target_decr_pc_after_break): Rename from
5608 forward_target_decr_pc_after_break. Simplify.
5609 (target_decr_pc_after_break): Rely on delegation.
5611 2014-02-19 Tom Tromey <tromey@redhat.com>
5613 * target.c (update_current_target): Do not INHERIT to_doc or
5614 to_magic. Do not de_fault to_open or to_close.
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * gcore.h (objfile_find_memory_regions): Declare.
5619 * gcore.c (objfile_find_memory_regions): No longer static. Add
5621 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5622 * exec.c: Include gcore.h.
5623 (exec_set_find_memory_regions): Remove.
5624 (exec_find_memory_regions): Remove.
5625 (exec_do_find_memory_regions): Remove.
5626 (init_exec_ops): Update.
5627 * defs.h (exec_set_find_memory_regions): Remove.
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * target-delegates.c: Rebuild.
5632 * target.h (struct target_ops) <to_extra_thread_info,
5633 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5634 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5635 not 0, in TARGET_DEFAULT_RETURN.
5637 2014-02-19 Tom Tromey <tromey@redhat.com>
5639 * target.c (complete_target_initialization): Remove casts. Use
5640 return_zero_has_execution.
5641 (return_zero): Add "ignore" argument.
5642 (return_zero_has_execution): New function.
5643 (init_dummy_target): Remove casts. Use
5644 return_zero_has_execution.
5646 2014-02-19 Tom Tromey <tromey@redhat.com>
5648 * target.c (update_current_target): Update comments. Do not
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5655 * corelow.c (core_read_description): Delegate when needed.
5656 * remote.c (remote_read_description): Delegate when needed.
5657 * target-delegates.c: Rebuild.
5658 * target.c (target_read_description): Rewrite.
5659 * target.h (struct target_ops) <to_read_description>: Update
5660 comment. Use TARGET_DEFAULT_RETURN.
5662 2014-02-19 Tom Tromey <tromey@redhat.com>
5664 * target-delegates.c: Rebuild.
5665 * target.c (update_current_target): Don't inherit or default
5667 (find_default_run_target): Check against delegate_can_run.
5668 * target.h (struct target_ops) <to_can_run>: Use
5669 TARGET_DEFAULT_RETURN.
5671 2014-02-19 Tom Tromey <tromey@redhat.com>
5673 * target-delegates.c: Rebuild.
5674 * target.c (target_disconnect): Unconditionally delegate.
5675 * target.h (struct target_ops) <to_disconnect>: Use
5676 TARGET_DEFAULT_NORETURN.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * record.c (record_stop): Unconditionally delegate.
5681 * target-delegates.c: Rebuild.
5682 * target.c (target_stop_recording): Unconditionally delegate.
5683 * target.h (struct target_ops) <to_stop_recording>: Use
5684 TARGET_DEFAULT_IGNORE.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target-delegates.c: Rebuild.
5689 * target.c (target_enable_btrace): Unconditionally delegate.
5690 * target.h (struct target_ops) <to_enable_btrace>: Use
5691 TARGET_DEFAULT_NORETURN.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target-delegates.c: Rebuild.
5696 * target.c (target_read_btrace): Unconditionally delegate.
5697 * target.h (struct target_ops) <to_read_btrace>: Use
5698 TARGET_DEFAULT_NORETURN.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target-delegates.c: Rebuild.
5703 * target.c (target_teardown_btrace): Unconditionally delegate.
5704 * target.h (struct target_ops) <to_teardown_btrace>: Use
5705 TARGET_DEFAULT_NORETURN.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target-delegates.c: Rebuild.
5710 * target.c (target_disable_btrace): Unconditionally delegate.
5711 * target.h (struct target_ops) <to_disable_btrace>: Use
5712 TARGET_DEFAULT_NORETURN.
5714 2014-02-19 Tom Tromey <tromey@redhat.com>
5716 * target-delegates.c: Rebuild.
5717 * target.c (default_search_memory): New function.
5718 (simple_search_memory): Update comment.
5719 (target_search_memory): Unconditionally delegate.
5720 * target.h (struct target_ops) <to_search_memory>: Use
5721 TARGET_DEFAULT_FUNC.
5723 2014-02-19 Tom Tromey <tromey@redhat.com>
5725 * auxv.c (default_auxv_parse): No longer static.
5726 (target_auxv_parse): Unconditionally delegate.
5727 * auxv.h (default_auxv_parse): Declare.
5728 * target-delegates.c: Rebuild.
5729 * target.c: Include auxv.h.
5730 * target.h (struct target_ops) <to_auxv_parse>: Use
5731 TARGET_DEFAULT_FUNC.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target-delegates.c: Rebuild.
5736 * target.c (target_memory_map): Unconditionally delegate.
5737 * target.h (struct target_ops) <to_memory_map>: Use
5738 TARGET_DEFAULT_RETURN.
5740 2014-02-19 Tom Tromey <tromey@redhat.com>
5742 * target-delegates.c: Rebuild.
5743 * target.c (target_thread_alive): Unconditionally delegate.
5744 * target.h (struct target_ops) <to_thread_alive>: Use
5745 TARGET_DEFAULT_RETURN.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target-delegates.c: Rebuild.
5750 * target.c (target_save_record): Unconditionally delegate.
5751 * target.h (struct target_ops) <to_save_record>: Use
5752 TARGET_DEFAULT_NORETURN.
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target-delegates.c: Rebuild.
5757 * target.c (target_delete_record): Unconditionally delegate.
5758 * target.h (struct target_ops) <to_delete_record>: Use
5759 TARGET_DEFAULT_NORETURN.
5761 2014-02-19 Tom Tromey <tromey@redhat.com>
5763 * target-delegates.c: Rebuild.
5764 * target.c (target_record_is_replaying): Unconditionally
5766 * target.h (struct target_ops) <to_record_is_replaying>: Use
5767 TARGET_DEFAULT_RETURN.
5769 2014-02-19 Tom Tromey <tromey@redhat.com>
5771 * target-delegates.c: Rebuild.
5772 * target.c (target_goto_record_begin): Unconditionally delegate.
5773 * target.h (struct target_ops) <to_goto_record_begin>: Use
5774 TARGET_DEFAULT_NORETURN.
5776 2014-02-19 Tom Tromey <tromey@redhat.com>
5778 * target-delegates.c: Rebuild.
5779 * target.c (target_goto_record_end): Unconditionally delegate.
5780 * target.h (struct target_ops) <to_goto_record_end>: Use
5781 TARGET_DEFAULT_NORETURN.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * target-delegates.c: Rebuild.
5786 * target.c (target_goto_record): Unconditionally delegate.
5787 * target.h (struct target_ops) <to_goto_record>: Use
5788 TARGET_DEFAULT_NORETURN.
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * target-delegates.c: Rebuild.
5793 * target.c (target_insn_history): Unconditionally delegate.
5794 * target.h (struct target_ops) <to_insn_history>: Use
5795 TARGET_DEFAULT_NORETURN.
5797 2014-02-19 Tom Tromey <tromey@redhat.com>
5799 * target-delegates.c: Rebuild.
5800 * target.c (target_insn_history_from): Unconditionally delegate.
5801 * target.h (struct target_ops) <to_insn_history_from>: Use
5802 TARGET_DEFAULT_NORETURN.
5804 2014-02-19 Tom Tromey <tromey@redhat.com>
5806 * target-delegates.c: Rebuild.
5807 * target.c (target_insn_history_range): Unconditionally delegate.
5808 * target.h (struct target_ops) <to_insn_history_range>: Use
5809 TARGET_DEFAULT_NORETURN.
5811 2014-02-19 Tom Tromey <tromey@redhat.com>
5813 * target-delegates.c: Rebuild.
5814 * target.c (target_call_history): Unconditionally delegate.
5815 * target.h (struct target_ops) <to_call_history>: Use
5816 TARGET_DEFAULT_NORETURN.
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target-delegates.c: Rebuild.
5821 * target.c (target_call_history_from): Unconditionally delegate.
5822 * target.h (struct target_ops) <to_call_history_from>: Use
5823 TARGET_DEFAULT_NORETURN.
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * target-delegates.c: Rebuild.
5828 * target.c (target_call_history_range): Unconditionally delegate.
5829 * target.h (struct target_ops) <to_call_history_range>: Use
5830 TARGET_DEFAULT_NORETURN.
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * target-delegates.c: Rebuild.
5835 * target.c (target_verify_memory): Unconditionally delegate.
5836 * target.h (struct target_ops) <to_verify_memory>: Use
5837 TARGET_DEFAULT_NORETURN.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * target-delegates.c: Rebuild.
5842 * target.c (target_core_of_thread): Unconditionally delegate.
5843 * target.h (struct target_ops) <to_core_of_thread>: Use
5844 TARGET_DEFAULT_RETURN.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target-delegates.c: Rebuild.
5849 * target.c (target_flash_done): Unconditionally delegate.
5850 * target.h (struct target_ops) <to_flash_done>: Use
5851 TARGET_DEFAULT_NORETURN.
5853 2014-02-19 Tom Tromey <tromey@redhat.com>
5855 * target-delegates.c: Rebuild.
5856 * target.c (target_flash_erase): Unconditionally delegate.
5857 * target.h (struct target_ops) <to_flash_erase>: Use
5858 TARGET_DEFAULT_NORETURN.
5860 2014-02-19 Tom Tromey <tromey@redhat.com>
5862 * target-delegates.c: Rebuild.
5863 * target.c (target_get_section_table): Unconditionally delegate.
5864 * target.h (struct target_ops) <to_get_section_table>: Use
5865 TARGET_DEFAULT_RETURN.
5867 2014-02-19 Tom Tromey <tromey@redhat.com>
5869 * target-delegates.c: Rebuild.
5870 * target.c (target_pid_to_str): Unconditionally delegate.
5871 (init_dummy_target): Don't initialize to_pid_to_str.
5872 (default_pid_to_str): Rename from dummy_pid_to_str.
5873 * target.h (struct target_ops) <to_pid_to_str>: Use
5874 TARGET_DEFAULT_FUNC.
5876 2014-02-19 Tom Tromey <tromey@redhat.com>
5878 * target-delegates.c: Rebuild.
5879 * target.c (target_find_new_threads): Unconditionally delegate.
5880 * target.h (struct target_ops) <to_find_new_threads>: Use
5881 TARGET_DEFAULT_RETURN.
5883 2014-02-19 Tom Tromey <tromey@redhat.com>
5885 * target-delegates.c: Rebuild.
5886 * target.c (target_program_signals): Unconditionally delegate.
5887 * target.h (struct target_ops) <to_program_signals>: Use
5888 TARGET_DEFAULT_IGNORE.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target-delegates.c: Rebuild.
5893 * target.c (target_pass_signals): Unconditionally delegate.
5894 * target.h (struct target_ops) <to_pass_signals>: Use
5895 TARGET_DEFAULT_IGNORE.
5897 2014-02-19 Tom Tromey <tromey@redhat.com>
5899 * target-delegates.c: Rebuild.
5900 * target.c (default_mourn_inferior): New function.
5901 (target_mourn_inferior): Unconditionally delegate.
5902 * target.h (struct target_ops) <to_mourn_inferior>: Use
5903 TARGET_DEFAULT_FUNC.
5905 2014-02-19 Tom Tromey <tromey@redhat.com>
5907 * target-delegates.c: Rebuild.
5908 * target.c (default_follow_fork): New function.
5909 (target_follow_fork): Unconditionally delegate.
5910 * target.h (struct target_ops) <to_follow_fork>: Use
5911 TARGET_DEFAULT_FUNC.
5913 2014-02-19 Tom Tromey <tromey@redhat.com>
5915 * target-delegates.c: Rebuild.
5916 * target.c (target_kill): Unconditionally delegate.
5917 * target.h (struct target_ops) <to_kill>: Use
5918 TARGET_DEFAULT_NORETURN.
5920 2014-02-19 Tom Tromey <tromey@redhat.com>
5922 * target-delegates.c: Rebuild.
5923 * target.c (target_masked_watch_num_registers): Unconditionally
5925 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5926 Use TARGET_DEFAULT_RETURN.
5928 2014-02-19 Tom Tromey <tromey@redhat.com>
5930 * target-delegates.c: Rebuild.
5931 * target.c (target_remove_mask_watchpoint): Unconditionally
5933 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5934 TARGET_DEFAULT_RETURN.
5936 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: Rebuild.
5939 * target.c (target_insert_mask_watchpoint): Unconditionally
5941 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5942 TARGET_DEFAULT_RETURN.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target-delegates.c: Rebuild.
5947 * target.c (target_ranged_break_num_registers): Unconditionally
5949 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5950 Use TARGET_DEFAULT_RETURN.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * target-delegates.c: Rebuild.
5955 * target.c (target_fetch_registers): Unconditionally delegate.
5956 * target.h (struct target_ops) <to_fetch_registers>: Use
5957 TARGET_DEFAULT_NORETURN.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target-delegates.c: Rebuild.
5962 * target.c (update_current_target): Don't inherit or default
5964 * target.h (struct target_ops) <to_stop>: Use
5965 TARGET_DEFAULT_IGNORE.
5967 2014-02-19 Tom Tromey <tromey@redhat.com>
5969 * target-delegates.c: Rebuild.
5970 * target.c (update_current_target): Don't inherit or default
5971 to_can_run_breakpoint_commands.
5972 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5973 Use TARGET_DEFAULT_RETURN.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * target-delegates.c: Rebuild.
5978 * target.c (update_current_target): Don't inherit or default
5979 to_supports_evaluation_of_breakpoint_conditions.
5980 * target.h (struct target_ops)
5981 <to_supports_evaluation_of_breakpoint_conditions>: Use
5982 TARGET_DEFAULT_RETURN.
5984 2014-02-19 Tom Tromey <tromey@redhat.com>
5986 * target-delegates.c: Rebuild.
5987 * target.c (update_current_target): Don't inherit or default
5988 to_augmented_libraries_svr4_read.
5989 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5990 Use TARGET_DEFAULT_RETURN.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target-delegates.c: Rebuild.
5995 * target.c (update_current_target): Don't inherit or default
5997 * target.h (struct target_ops) <to_can_use_agent>: Use
5998 TARGET_DEFAULT_RETURN.
6000 2014-02-19 Tom Tromey <tromey@redhat.com>
6002 * target-delegates.c: Rebuild.
6003 * target.c (update_current_target): Don't inherit or default
6005 * target.h (struct target_ops) <to_use_agent>: Use
6006 TARGET_DEFAULT_NORETURN.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target-delegates.c: Rebuild.
6011 * target.c (update_current_target): Don't inherit or default
6013 (return_null): Remove.
6014 * target.h (struct target_ops) <to_traceframe_info>: Use
6015 TARGET_DEFAULT_RETURN.
6017 2014-02-19 Tom Tromey <tromey@redhat.com>
6019 * target-delegates.c: Rebuild.
6020 * target.c (update_current_target): Don't inherit or default
6021 to_static_tracepoint_markers_by_strid.
6022 * target.h (struct target_ops)
6023 <to_static_tracepoint_markers_by_strid>: Use
6024 TARGET_DEFAULT_NORETURN.
6026 2014-02-19 Tom Tromey <tromey@redhat.com>
6028 * target-delegates.c: Rebuild.
6029 * target.c (update_current_target): Don't inherit or default
6030 to_static_tracepoint_marker_at.
6031 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6032 Use TARGET_DEFAULT_RETURN.
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target-delegates.c: Rebuild.
6037 * target.c (update_current_target): Don't inherit or default
6039 * target.h (struct target_ops) <to_set_permissions>: Use
6040 TARGET_DEFAULT_IGNORE.
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target-delegates.c: Rebuild.
6045 * target.c (update_current_target): Don't inherit or default
6047 * target.h (struct target_ops) <to_get_tib_address>: Use
6048 TARGET_DEFAULT_NORETURN.
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * target-delegates.c: Rebuild.
6053 * target.c (update_current_target): Don't inherit or default
6055 * target.h (struct target_ops) <to_set_trace_notes>: Use
6056 TARGET_DEFAULT_RETURN.
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target-delegates.c: Rebuild.
6061 * target.c (update_current_target): Don't initialize
6062 to_set_trace_buffer_size.
6063 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6064 TARGET_DEFAULT_IGNORE.
6066 2014-02-19 Tom Tromey <tromey@redhat.com>
6068 * target-delegates.c: Rebuild.
6069 * target.c (update_current_target): Don't inherit or default
6070 to_set_circular_trace_buffer.
6071 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6072 TARGET_DEFAULT_IGNORE.
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6076 * target-delegates.c: Rebuild.
6077 * target.c (update_current_target): Don't inherit or default
6078 to_set_disconnected_tracing.
6079 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6080 TARGET_DEFAULT_IGNORE.
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * target-delegates.c: Rebuild.
6085 * target.c (update_current_target): Don't inherit or default
6086 to_get_min_fast_tracepoint_insn_len.
6087 (return_minus_one): Remove.
6088 * target.h (struct target_ops)
6089 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6091 2014-02-19 Tom Tromey <tromey@redhat.com>
6093 * target-delegates.c: Rebuild.
6094 * target.c (update_current_target): Don't inherit or default
6095 to_get_raw_trace_data.
6096 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6097 TARGET_DEFAULT_NORETURN.
6099 2014-02-19 Tom Tromey <tromey@redhat.com>
6101 * target-delegates.c: Rebuild.
6102 * target.c (update_current_target): Don't inherit or default
6103 to_upload_trace_state_variables.
6104 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6105 Use TARGET_DEFAULT_RETURN.
6107 2014-02-19 Tom Tromey <tromey@redhat.com>
6109 * target-delegates.c: Rebuild.
6110 * target.c (update_current_target): Don't inherit or default
6111 to_upload_tracepoints.
6112 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6113 TARGET_DEFAULT_RETURN.
6115 2014-02-19 Tom Tromey <tromey@redhat.com>
6117 * target-delegates.c: Rebuild.
6118 * target.c (update_current_target): Don't inherit or default
6120 * target.h (struct target_ops) <to_save_trace_data>: Use
6121 TARGET_DEFAULT_NORETURN.
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * target-delegates.c: Rebuild.
6126 * target.c (update_current_target): Don't inherit or default
6127 to_get_trace_state_variable_value.
6128 * target.h (struct target_ops)
6129 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target-delegates.c: Rebuild.
6134 * target.c (update_current_target): Don't inherit or default
6136 * target.h (struct target_ops): Use 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_trace_stop>: 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_tracepoint_status.
6151 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6152 TARGET_DEFAULT_NORETURN.
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
6158 to_get_trace_status.
6159 * target.h (struct target_ops) <to_get_trace_status>: Use
6160 TARGET_DEFAULT_RETURN.
6162 2014-02-19 Tom Tromey <tromey@redhat.com>
6164 * target-delegates.c: Rebuild.
6165 * target.c (update_current_target): Don't inherit or default
6167 * target.h (struct target_ops) <to_trace_start>: Use
6168 TARGET_DEFAULT_NORETURN.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * target-delegates.c: Rebuild.
6173 * target.c (update_current_target): Don't inherit or default
6174 to_trace_set_readonly_regions.
6175 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6176 Use TARGET_DEFAULT_NORETURN.
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6180 * target-delegates.c: Rebuild.
6181 * target.c (update_current_target): Don't inherit or default
6182 to_disable_tracepoint.
6183 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6184 TARGET_DEFAULT_NORETURN.
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6188 * target-delegates.c: Rebuild.
6189 * target.c (update_current_target): Don't inherit or default
6190 to_enable_tracepoint.
6191 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6192 TARGET_DEFAULT_NORETURN.
6194 2014-02-19 Tom Tromey <tromey@redhat.com>
6196 * target-delegates.c: Rebuild.
6197 * target.c (update_current_target): Don't inherit or default
6198 to_download_trace_state_variable.
6199 * target.h (struct target_ops) <to_download_trace_state_variable>:
6200 Use TARGET_DEFAULT_NORETURN.
6202 2014-02-19 Tom Tromey <tromey@redhat.com>
6204 * target-delegates.c: Rebuild.
6205 * target.c (update_current_target): Don't inherit or default
6206 to_can_download_tracepoint.
6207 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6208 TARGET_DEFAULT_RETURN.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target-delegates.c: Rebuild.
6213 * target.c (update_current_target): Don't inherit or default
6214 to_download_tracepoint.
6215 * target.h (struct target_ops) <to_download_tracepoint>: Use
6216 TARGET_DEFAULT_NORETURN.
6218 2014-02-19 Tom Tromey <tromey@redhat.com>
6220 * target-delegates.c: Rebuild.
6221 * target.c (update_current_target): Don't inherit or default
6223 * target.h (struct target_ops) <to_trace_init>: Use
6224 TARGET_DEFAULT_RETURN.
6226 2014-02-19 Tom Tromey <tromey@redhat.com>
6228 * target-delegates.c: Rebuild.
6229 * target.c (update_current_target): Don't inherit or default
6230 to_supports_string_tracing.
6231 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6232 TARGET_DEFAULT_RETURN.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target-delegates.c: Rebuild.
6237 * target.c (update_current_target): Don't inherit or default
6238 to_supports_enable_disable_tracepoint.
6239 * target.h (struct target_ops)
6240 <to_supports_enable_disable_tracepoint>: Use
6241 TARGET_DEFAULT_RETURN.
6243 2014-02-19 Tom Tromey <tromey@redhat.com>
6245 * target-delegates.c: Rebuild.
6246 * target.c (update_current_target): Don't inherit or default
6247 to_supports_multi_process.
6248 * target.h (struct target_ops) <to_supports_multi_process>: Use
6249 TARGET_DEFAULT_RETURN.
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * target-delegates.c: Rebuild.
6254 * target.c (update_current_target): Don't inherit or default
6255 to_get_ada_task_ptid.
6256 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6257 TARGET_DEFAULT_FUNC.
6259 2014-02-19 Tom Tromey <tromey@redhat.com>
6261 * target-delegates.c: Rebuild.
6262 * target.c (update_current_target): Don't inherit or default
6263 to_thread_architecture.
6264 * target.h (struct target_ops) <to_thread_architecture>: Use
6265 TARGET_DEFAULT_FUNC.
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target-delegates.c: Rebuild.
6270 * target.c (update_current_target): Don't inherit or default
6271 to_execution_direction.
6272 * target.h (struct target_ops) <to_execution_direction>: Use
6273 TARGET_DEFAULT_FUNC.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target-delegates.c: Rebuild.
6278 * target.c (update_current_target): Don't inherit or default
6279 to_can_execute_reverse.
6280 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6281 TARGET_DEFAULT_RETURN.
6282 (target_can_execute_reverse): Unconditionally delegate.
6284 2014-02-19 Tom Tromey <tromey@redhat.com>
6286 * target-delegates.c: Rebuild.
6287 * target.c (update_current_target): Don't inherit or default
6289 (dummy_goto_bookmark): Remove.
6290 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6291 * target.h (struct target_ops) <to_goto_bookmark>: Use
6292 TARGET_DEFAULT_NORETURN.
6294 2014-02-19 Tom Tromey <tromey@redhat.com>
6296 * target-delegates.c: Rebuild.
6297 * target.c (update_current_target): Don't inherit or default
6299 (dummy_get_bookmark): Remove.
6300 (init_dummy_target): Don't inherit or default to_get_bookmark.
6301 * target.h (struct target_ops) <to_get_bookmark>: Use
6302 TARGET_DEFAULT_NORETURN
6304 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target-delegates.c: Rebuild.
6307 * target.c (update_current_target): Don't inherit or default
6308 to_make_corefile_notes.
6309 (init_dummy_target): Don't initialize to_make_corefile_notes.
6310 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6311 TARGET_DEFAULT_FUNC.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * target-delegates.c: Rebuild.
6316 * target.c (update_current_target): Don't inherit or default
6317 to_find_memory_regions.
6318 (init_dummy_target): Don't initialize to_find_memory_regions.
6319 * target.h (struct target_ops) <to_find_memory_regions>: Use
6320 TARGET_DEFAULT_FUNC.
6322 2014-02-19 Tom Tromey <tromey@redhat.com>
6324 * target-delegates.c: Rebuild.
6325 * target.c (update_current_target): Don't inherit or default
6327 * target.h (struct target_ops) <to_log_command>: Use
6328 TARGET_DEFAULT_IGNORE.
6329 (target_log_command): Unconditionally delegate.
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target-delegates.c: Rebuild.
6334 * target.c (update_current_target): Don't inherit or default
6335 to_pid_to_exec_file.
6336 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6337 TARGET_DEFAULT_RETURN.
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * target-delegates.c: Rebuild.
6342 * target.c (update_current_target): Don't inherit or default
6344 (target_thread_name): Unconditionally delegate.
6345 * target.h (struct target_ops) <to_thread_name>: Use
6346 TARGET_DEFAULT_RETURN.
6348 2014-02-19 Tom Tromey <tromey@redhat.com>
6350 * target-delegates.c: Rebuild.
6351 * target.c (update_current_target): Don't inherit or default
6352 to_extra_thread_info.
6353 * target.h (struct target_ops) <to_extra_thread_info>: Use
6354 TARGET_DEFAULT_RETURN.
6356 2014-02-19 Tom Tromey <tromey@redhat.com>
6358 * target-delegates.c: Rebuild.
6359 * target.c (update_current_target): Don't inherit or default
6361 * target.h (struct target_ops) <to_has_exited>: Use
6362 TARGET_DEFAULT_RETURN..
6364 2014-02-19 Tom Tromey <tromey@redhat.com>
6366 * target-delegates.c: Rebuild.
6367 * target.c (update_current_target): Don't inherit or default
6368 to_set_syscall_catchpoint.
6369 (return_one): Remove.
6370 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6371 TARGET_DEFAULT_RETURN.
6373 2014-02-19 Tom Tromey <tromey@redhat.com>
6375 * target-delegates.c: Rebuild.
6376 * target.c (update_current_target): Don't inherit or default
6377 to_insert_exec_catchpoint.
6378 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6379 TARGET_DEFAULT_RETURN.
6381 2014-01-08 Tom Tromey <tromey@redhat.com>
6383 * target-delegates.c: Rebuild.
6384 * target.c (update_current_target): Don't inherit or default
6385 to_insert_exec_catchpoint.
6386 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6387 TARGET_DEFAULT_RETURN.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target-delegates.c: Rebuild.
6392 * target.c (update_current_target): Don't inherit or default
6393 to_remove_vfork_catchpoint.
6394 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6395 TARGET_DEFAULT_RETURN.
6397 2014-02-19 Tom Tromey <tromey@redhat.com>
6399 * target-delegates.c: Rebuild.
6400 * target.c (update_current_target): Don't inherit or default
6401 to_insert_vfork_catchpoint.
6402 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6403 TARGET_DEFAULT_RETURN.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target-delegates.c: Rebuild.
6408 * target.c (update_current_target): Don't inherit or default
6409 to_remove_fork_catchpoint.
6410 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6411 TARGET_DEFAULT_RETURN.
6413 2014-02-19 Tom Tromey <tromey@redhat.com>
6415 * target-delegates.c: Rebuild.
6416 * target.c (update_current_target): Don't inherit or default
6417 to_insert_fork_catchpoint.
6418 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6419 TARGET_DEFAULT_RETURN.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (update_current_target): Don't inherit or default
6425 to_post_startup_inferior.
6426 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6427 TARGET_DEFAULT_IGNORE.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (update_current_target): Don't inherit or default
6434 * target.h (struct target_ops) <to_load>: Use
6435 TARGET_DEFAULT_NORETURN.
6437 2014-02-19 Tom Tromey <tromey@redhat.com>
6439 * target-delegates.c: Rebuild.
6440 * target.c (update_current_target): Don't inherit or default
6442 * target.h (struct target_ops) <to_terminal_info>: Use
6443 TARGET_DEFAULT_FUNC.
6445 2014-02-19 Tom Tromey <tromey@redhat.com>
6447 * target-delegates.c: Rebuild.
6448 * target.c (update_current_target): Don't inherit or default
6449 to_terminal_save_ours.
6450 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6451 TARGET_DEFAULT_IGNORE.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (update_current_target): Don't inherit or default
6458 * target.h (struct target_ops) <to_terminal_ours>: Use
6459 TARGET_DEFAULT_IGNORE.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target-delegates.c: Rebuild.
6464 * target.c (update_current_target): Don't inherit or default
6465 to_terminal_ours_for_output.
6466 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6467 TARGET_DEFAULT_IGNORE.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (update_current_target): Don't inherit or default
6473 to_terminal_inferior.
6474 * target.h (struct target_ops) <to_terminal_inferior>: Use
6475 TARGET_DEFAULT_IGNORE.
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target-delegates.c: Rebuild.
6480 * target.c (update_current_target): Don't inherit or default
6482 * target.h (struct target_ops) <to_terminal_init>: Use
6483 TARGET_DEFAULT_IGNORE.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (update_current_target): Don't inherit or default
6489 to_can_accel_watchpoint_condition.
6490 * target.h (struct target_ops)
6491 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target-delegates.c: Rebuild.
6496 * target.c (update_current_target): Don't inherit or default
6497 to_region_ok_for_hw_watchpoint.
6498 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6499 Use TARGET_DEFAULT_FUNC.
6501 2014-02-19 Tom Tromey <tromey@redhat.com>
6503 * target-delegates.c: Rebuild.
6504 * target.c (update_current_target): Don't inherit or default
6505 to_watchpoint_addr_within_range.
6506 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6507 Use TARGET_DEFAULT_FUNC.
6509 2014-02-19 Tom Tromey <tromey@redhat.com>
6511 * target-delegates.c: Rebuild.
6512 * target.c (update_current_target): Don't inherit or default
6513 to_remove_watchpoint.
6514 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6515 TARGET_DEFAULT_NORETURN.
6517 2014-02-19 Tom Tromey <tromey@redhat.com>
6519 * target-delegates.c: Rebuild.
6520 * target.c (update_current_target): Don't inherit or default
6521 to_insert_watchpoint.
6522 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6523 TARGET_DEFAULT_RETURN.
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6527 * target-delegates.c: Rebuild.
6528 * target.c (update_current_target): Don't inherit or default
6529 to_remove_hw_breakpoint.
6530 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6531 TARGET_DEFAULT_RETURN.
6533 2014-02-19 Tom Tromey <tromey@redhat.com>
6535 * target-delegates.c: Rebuild.
6536 * target.c (update_current_target): Don't inherit or default
6537 to_insert_hw_breakpoint.
6538 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6539 TARGET_DEFAULT_RETURN.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target-delegates.c: Rebuild.
6544 * target.c (update_current_target): Don't inherit or default
6545 to_can_use_hw_breakpoint.
6546 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6547 TARGET_DEFAULT_RETURN.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target-delegates.c: Rebuild.
6552 * target.c (update_current_target): Don't inherit or default
6554 * target.h (struct target_ops) <to_files_info>: Use
6555 TARGET_DEFAULT_IGNORE.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (update_current_target): Don't inherit or default
6562 * target.h (struct target_ops) <to_store>: Use
6563 TARGET_DEFAULT_NORETURN.
6565 2014-02-19 Tom Tromey <tromey@redhat.com>
6567 * target-delegates.c: Rebuild.
6568 * target.c (update_current_target): Don't inherit or default
6570 * target.h (struct target_ops) <to_post_attach>: Use
6571 TARGET_DEFAULT_IGNORE.
6573 2014-02-19 Tom Tromey <tromey@redhat.com>
6575 * target-delegates.c: Rebuild.
6576 * target.c (update_current_target): Don't inherit or default
6578 (default_rcmd): New function.
6579 (do_monitor_command): Unconditionally delegate.
6580 * target.h (struct target_ops) <to_rmcd>: Use
6581 TARGET_DEFAULT_FUNC.
6583 2014-02-19 Tom Tromey <tromey@redhat.com>
6585 * target-delegates.c: Rebuild.
6586 * target.c (init_dummy_target): Don't initialize to_attach.
6587 (target_attach): Unconditionally delegate.
6588 * target.h (struct target_ops) <to_attach>: Use
6589 TARGET_DEFAULT_FUNC.
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target-delegates.c: Rebuild.
6594 * target.c (target_detach): Unconditionally delegate.
6595 (init_dummy_target): Don't initialize to_detach.
6596 * target.h (struct target_ops) <to_detach>: Use
6597 TARGET_DEFAULT_IGNORE.
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6603 (target_augmented_libraries_svr4_read): Add argument.
6604 * target.c (update_current_target): Update.
6605 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target.h (struct target_ops) <to_call_history_range>: Add
6612 * target.c (target_call_history_range): Add argument.
6613 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6615 (record_btrace_call_history_from): Update.
6617 2014-02-19 Tom Tromey <tromey@redhat.com>
6619 * target.h (struct target_ops) <to_call_history_from>: Add
6621 * target.c (target_call_history_from): Add argument.
6622 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6625 2014-02-19 Tom Tromey <tromey@redhat.com>
6627 * target.h (struct target_ops) <to_call_history>: Add argument.
6628 * target.c (target_call_history): Add argument.
6629 * record-btrace.c (record_btrace_call_history): Add 'self'
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target.h (struct target_ops) <to_insn_history_range>: Add
6636 * target.c (target_insn_history_range): Add argument.
6637 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6639 (record_btrace_insn_history_from): Update.
6641 2014-02-19 Tom Tromey <tromey@redhat.com>
6643 * target.h (struct target_ops) <to_insn_history_from>: Add
6645 * target.c (target_insn_history_from): Add argument.
6646 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target.h (struct target_ops) <to_insn_history>: Add argument.
6652 * target.c (target_insn_history): Add argument.
6653 * record-btrace.c (record_btrace_insn_history): Add 'self'
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target.h (struct target_ops) <to_goto_record>: Add argument.
6659 * target.c (target_goto_record): Add argument.
6660 * record-full.c (record_full_goto): Add 'self' argument.
6661 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6666 * target.c (target_goto_record_end): Add argument.
6667 * record-full.c (record_full_goto_end): Add 'self' argument.
6668 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6670 2014-02-19 Tom Tromey <tromey@redhat.com>
6672 * target.h (struct target_ops) <to_goto_record_begin>: Add
6674 * target.c (target_goto_record_begin): Add argument.
6675 * record-full.c (record_full_goto_begin): Add 'self' argument.
6676 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * target.h (struct target_ops) <to_record_is_replaying>: Add
6683 * target.c (target_record_is_replaying): Add argument.
6684 * record-full.c (record_full_is_replaying): Add 'self' argument.
6685 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6687 (record_btrace_xfer_partial, record_btrace_store_registers)
6688 (record_btrace_prepare_to_store, record_btrace_resume)
6689 (record_btrace_wait, record_btrace_decr_pc_after_break)
6690 (record_btrace_find_new_threads, record_btrace_thread_alive):
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target.h (struct target_ops) <to_delete_record>: Add argument.
6696 * target.c (target_delete_record): Add argument.
6697 * record-full.c (record_full_delete): Add 'self' argument.
6699 2014-02-19 Tom Tromey <tromey@redhat.com>
6701 * target.h (struct target_ops) <to_save_record>: Add argument.
6702 * target.c (target_save_record): Add argument.
6703 * record-full.c (record_full_save): Add 'self' argument.
6704 (record_full_save): Add 'self' argument.
6706 2014-02-19 Tom Tromey <tromey@redhat.com>
6708 * target.h (struct target_ops) <to_info_record>: Add argument.
6709 * target.c (target_info_record): Add argument.
6710 * record.c (info_record_command): Add argument.
6711 * record-full.c (record_full_info): Add 'self' argument.
6712 * record-btrace.c (record_btrace_info): Add 'self' argument.
6714 2014-02-19 Tom Tromey <tromey@redhat.com>
6716 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6717 * target.c (target_stop_recording): Add argument.
6718 * record.c (record_stop): Add argument.
6719 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6725 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6726 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6728 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6729 (_initialize_amd64_linux_nat): Use it.
6730 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6731 (_initialize_i386_linux_nat): Use it.
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6735 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6736 * target.c (target_teardown_btrace): Add argument.
6737 * remote.c (remote_teardown_btrace): Add 'self' argument.
6738 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6740 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6743 2014-02-19 Tom Tromey <tromey@redhat.com>
6745 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6746 * target.c (target_disable_btrace): Add argument.
6747 * remote.c (remote_disable_btrace): Add 'self' argument.
6748 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6750 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6753 2014-02-19 Tom Tromey <tromey@redhat.com>
6755 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6756 * target.c (target_enable_btrace): Add argument.
6757 * remote.c (remote_enable_btrace): Add 'self' argument.
6758 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6760 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6763 2014-02-19 Tom Tromey <tromey@redhat.com>
6765 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6766 (target_can_use_agent): Add argument.
6767 * target.c (update_current_target): Update.
6768 * remote.c (remote_can_use_agent): Add 'self' argument.
6769 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6771 2014-02-19 Tom Tromey <tromey@redhat.com>
6773 * target.h (struct target_ops) <to_use_agent>: Add argument.
6774 (target_use_agent): Add argument.
6775 * target.c (update_current_target): Update.
6776 * remote.c (remote_use_agent): Add 'self' argument.
6777 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6779 2014-02-19 Tom Tromey <tromey@redhat.com>
6781 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6782 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6783 (target_traceframe_info): Add argument.
6784 * target.c (update_current_target): Update.
6785 * remote.c (remote_traceframe_info): Add 'self' argument.
6786 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6788 2014-02-19 Tom Tromey <tromey@redhat.com>
6790 * target.h (target_static_tracepoint_markers_by_strid): Add
6792 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6794 * target.c (update_current_target): Update.
6795 * remote.c (struct target_ops)
6796 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6797 * linux-nat.c (struct target_ops)
6798 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6802 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6804 (target_static_tracepoint_marker_at): Add argument.
6805 * target.c (update_current_target): Update.
6806 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6809 2014-02-19 Tom Tromey <tromey@redhat.com>
6811 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6812 (target_set_permissions): Add argument.
6813 * target.c (update_current_target): Update.
6814 * remote.c (remote_set_permissions): Add 'self' argument.
6815 (remote_start_remote): Update.
6817 2014-02-19 Tom Tromey <tromey@redhat.com>
6819 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6820 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6821 (target_get_tib_address): Add argument.
6822 * target.c (update_current_target): Update.
6823 * remote.c (remote_get_tib_address): Add 'self' argument.
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6828 (target_set_trace_notes): Add argument.
6829 * target.c (update_current_target): Update.
6830 * remote.c (remote_set_trace_notes): Add 'self' argument.
6832 2014-02-19 Tom Tromey <tromey@redhat.com>
6834 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6836 (target_set_trace_buffer_size): Add argument.
6837 * target.c (update_current_target): Update.
6838 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6840 2014-02-19 Tom Tromey <tromey@redhat.com>
6842 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6844 (target_set_circular_trace_buffer): Add argument.
6845 * target.c (update_current_target): Update.
6846 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6853 (target_set_disconnected_tracing): Add argument.
6854 * target.c (update_current_target): Update.
6855 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6857 2014-02-19 Tom Tromey <tromey@redhat.com>
6859 * target.h (struct target_ops)
6860 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6861 (target_get_min_fast_tracepoint_insn_len): Add argument.
6862 * target.c (update_current_target): Update.
6863 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6866 2014-02-19 Tom Tromey <tromey@redhat.com>
6868 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6870 (target_get_raw_trace_data): Add argument.
6871 * target.c (update_current_target): Update.
6872 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6874 2014-02-19 Tom Tromey <tromey@redhat.com>
6876 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6878 (target_upload_trace_state_variables): Add argument.
6879 * target.c (update_current_target): Update.
6880 * remote.c (remote_upload_trace_state_variables): Add 'self'
6882 (remote_start_remote): Update.
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6888 (target_upload_tracepoints): Add argument.
6889 * target.c (update_current_target): Update.
6890 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6891 (remote_start_remote): Update.
6893 2014-02-19 Tom Tromey <tromey@redhat.com>
6895 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6896 (target_save_trace_data): Add argument.
6897 * target.c (update_current_target): Update.
6898 * remote.c (remote_save_trace_data): Add 'self' argument.
6900 2014-02-19 Tom Tromey <tromey@redhat.com>
6902 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6904 * target.h (struct target_ops)
6905 <to_get_trace_state_variable_value>: Add argument.
6906 (target_get_trace_state_variable_value): Add argument.
6907 * target.c (update_current_target): Update.
6908 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6910 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6912 2014-02-19 Tom Tromey <tromey@redhat.com>
6914 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6915 * target.h (struct target_ops) <to_trace_find>: Add argument.
6916 (target_trace_find): Add argument.
6917 * target.c (update_current_target): Update.
6918 * remote.c (remote_trace_find): Add 'self' argument.
6919 * ctf.c (ctf_trace_find): Add 'self' argument.
6921 2014-02-19 Tom Tromey <tromey@redhat.com>
6923 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6924 (target_trace_stop): Add argument.
6925 * target.c (update_current_target): Update.
6926 * remote.c (remote_trace_stop): Add 'self' argument.
6928 2014-02-19 Tom Tromey <tromey@redhat.com>
6930 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6931 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6933 (target_get_tracepoint_status): Add argument.
6934 * target.c (update_current_target): Update.
6935 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6937 2014-02-19 Tom Tromey <tromey@redhat.com>
6939 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6940 * target.h (struct target_ops) <to_get_trace_status>: Add
6942 (target_get_trace_status): Add argument.
6943 * target.c (update_current_target): Update.
6944 * remote.c (remote_get_trace_status): Add 'self' argument.
6945 (remote_start_remote, remote_can_download_tracepoint): Update.
6946 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6948 2014-02-19 Tom Tromey <tromey@redhat.com>
6950 * target.h (struct target_ops) <to_trace_start>: Add argument.
6951 (target_trace_start): Add argument.
6952 * target.c (update_current_target): Update.
6953 * remote.c (remote_trace_start): Add 'self' argument.
6955 2014-02-19 Tom Tromey <tromey@redhat.com>
6957 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6959 (target_trace_set_readonly_regions): Add argument.
6960 * target.c (update_current_target): Update.
6961 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6964 2014-02-19 Tom Tromey <tromey@redhat.com>
6966 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6968 (target_disable_tracepoint): Add argument.
6969 * target.c (update_current_target): Update.
6970 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6972 2014-02-19 Tom Tromey <tromey@redhat.com>
6974 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6976 (target_enable_tracepoint): Add argument.
6977 * target.c (update_current_target): Update.
6978 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6980 2014-02-19 Tom Tromey <tromey@redhat.com>
6982 * target.h (struct target_ops) <to_download_trace_state_variable>:
6984 (target_download_trace_state_variable): Add argument.
6985 * target.c (update_current_target): Update.
6986 * remote.c (remote_download_trace_state_variable): Add 'self'
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6993 (target_can_download_tracepoint): Add argument.
6994 * target.c (update_current_target): Update.
6995 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6997 2014-02-19 Tom Tromey <tromey@redhat.com>
6999 * target.h (struct target_ops) <to_download_tracepoint>: Add
7001 (target_download_tracepoint): Add argument.
7002 * target.c (update_current_target): Update.
7003 * remote.c (remote_download_tracepoint): Add 'self' argument.
7005 2014-02-19 Tom Tromey <tromey@redhat.com>
7007 * target.h (struct target_ops) <to_trace_init>: Add argument.
7008 (target_trace_init): Add argument.
7009 * target.c (update_current_target): Update.
7010 * remote.c (remote_trace_init): Add 'self' argument.
7012 2014-02-19 Tom Tromey <tromey@redhat.com>
7014 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7015 * target.c (target_fileio_readlink): Add argument.
7016 * remote.c (remote_hostio_readlink): Add 'self' argument.
7017 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7019 2014-02-19 Tom Tromey <tromey@redhat.com>
7021 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7022 * target.c (target_fileio_unlink): Add argument.
7023 * remote.c (remote_hostio_unlink): Add 'self' argument.
7024 (remote_file_delete): Update.
7025 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7027 2014-02-19 Tom Tromey <tromey@redhat.com>
7029 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7030 * target.c (target_fileio_close): Add argument.
7031 * remote.c (remote_hostio_close): Add 'self' argument.
7032 (remote_hostio_close_cleanup): Update.
7033 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7035 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7040 * target.c (target_fileio_pread): Add argument.
7041 * remote.c (remote_hostio_pread): Add 'self' argument.
7042 (remote_bfd_iovec_pread, remote_file_get): Update.
7043 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7048 * target.c (target_fileio_pwrite): Add argument.
7049 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7050 (remote_file_put): Update.
7051 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7056 * target.c (target_fileio_open): Add argument.
7057 * remote.c (remote_hostio_open): Add 'self' argument.
7058 (remote_bfd_iovec_open): Add 'self' argument.
7059 (remote_file_put): Add 'self' argument.
7060 (remote_file_get): Add 'self' argument.
7061 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7063 2014-02-19 Tom Tromey <tromey@redhat.com>
7065 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7067 (target_can_run_breakpoint_commands): Add argument.
7068 * target.c (update_current_target): Update.
7069 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7071 (remote_insert_breakpoint): Add 'self' argument.
7072 (remote_insert_hw_breakpoint): Add 'self' argument.
7073 (remote_can_run_breakpoint_commands): Add 'self' argument.
7075 2014-02-19 Tom Tromey <tromey@redhat.com>
7077 * target.h (struct target_ops)
7078 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7079 (target_supports_evaluation_of_breakpoint_conditions): Add
7081 * target.c (update_current_target): Update.
7082 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7084 (remote_insert_breakpoint): Add 'self' argument.
7085 (remote_insert_hw_breakpoint): Add 'self' argument.
7086 (remote_supports_cond_breakpoints): Add 'self' argument.
7088 2014-02-19 Tom Tromey <tromey@redhat.com>
7090 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7092 (target_supports_string_tracing): Add argument.
7093 * target.c (update_current_target): Update.
7094 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7096 2014-02-19 Tom Tromey <tromey@redhat.com>
7098 * target.h (struct target_ops)
7099 <to_supports_disable_randomization>: Add argument.
7100 * target.c (find_default_supports_disable_randomization): Add
7102 (target_supports_disable_randomization): Add argument.
7103 (find_default_supports_disable_randomization): Add 'self'
7105 * remote.c (extended_remote_supports_disable_randomization): Add
7107 (remote_supports_disable_randomization): Add 'self' argument.
7108 (extended_remote_create_inferior): Update.
7109 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7112 2014-02-19 Tom Tromey <tromey@redhat.com>
7114 * target.h (struct target_ops)
7115 <to_supports_enable_disable_tracepoint>: Add argument.
7116 (target_supports_enable_disable_tracepoint): Add argument.
7117 * target.c (update_current_target): Update.
7118 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7121 2014-02-19 Tom Tromey <tromey@redhat.com>
7123 * target.h (struct target_ops) <to_supports_multi_process>: Add
7125 (target_supports_multi_process): Add argument.
7126 * target.c (update_current_target): Update.
7127 * remote.c (remote_supports_multi_process): Add 'self' argument.
7128 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7130 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target.h (struct target_ops) <to_execution_direction>: Add
7137 (target_execution_direction): Add argument.
7138 * target.c (default_execution_direction): Add 'self' argument.
7139 * record-full.c (record_full_execution_direction): Add 'self'
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7144 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7146 (target_can_execute_reverse): Add argument.
7147 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7148 * record-full.c (record_full_can_execute_reverse): Add 'self'
7150 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7153 2014-02-19 Tom Tromey <tromey@redhat.com>
7155 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7156 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7158 (target_get_ada_task_ptid): Add argument.
7159 * target.c (update_current_target): Update.
7160 (default_get_ada_task_ptid): Add 'self' argument.
7161 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7162 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7163 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7165 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7167 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7169 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7171 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7172 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7177 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7178 (target_goto_bookmark): Add argument.
7179 * target.c (dummy_goto_bookmark): Add 'self' argument.
7180 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7185 (target_get_bookmark): Add argument.
7186 * target.c (dummy_get_bookmark): Add 'self' argument.
7187 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7193 (target_make_corefile_notes): Add argument.
7194 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7195 * procfs.c (procfs_make_note_section): Add 'self' argument.
7196 (procfs_make_note_section): Add 'self' argument.
7197 (procfs_make_note_section): Add 'self' argument.
7198 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7200 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7201 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7202 * exec.c (exec_make_note_section): Add 'self' argument.
7203 (exec_make_note_section): Add 'self' argument.
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7207 * target.h (struct target_ops) <to_find_memory_regions>: Add
7209 (target_find_memory_regions): Add argument.
7210 * target.c (dummy_find_memory_regions): Add 'self' argument.
7211 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7212 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7213 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7214 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7215 * exec. (exec_do_find_memory_regions): New global.
7216 (exec_set_find_memory_regions): Rewrite.
7217 (exec_find_memory_regions): New function.
7218 (init_exec_ops): Use exec_find_memory_regions.
7220 2014-02-19 Tom Tromey <tromey@redhat.com>
7222 * target.h (struct target_ops) <to_supports_non_stop>: Add
7224 * target.c (find_default_supports_non_stop): Add argument.
7225 (target_supports_non_stop): Add argument.
7226 (find_default_supports_non_stop): Add 'self' argument.
7227 * remote.c (remote_supports_non_stop): Add 'self' argument.
7228 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * target.h (struct target_ops) <to_log_command>: Add argument.
7233 (target_log_command): Add argument.
7234 * serial.h (serial_log_command): Add 'self' argument.
7235 * serial.c (serial_log_command): Add 'self' argument.
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7240 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7242 (target_pid_to_exec_file): Add argument.
7243 * target.c (debug_to_pid_to_exec_file): Add argument.
7244 (update_current_target): Update.
7245 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7246 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7247 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7248 (linux_handle_extended_wait): Update.
7249 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7250 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7251 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7252 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7256 * target.h (struct target_ops) <to_rcmd>: Add argument.
7257 (target_rcmd): Add argument.
7258 * target.c (debug_to_rcmd): Add argument.
7259 (update_current_target, do_monitor_command): Update.
7260 * remote.c (remote_rcmd): Add 'self' argument.
7261 * monitor.c (monitor_rcmd): Add 'self' argument.
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * windows-nat.c (windows_stop): Add 'self' argument.
7266 * target.h (struct target_ops) <to_stop>: Add argument.
7267 * target.c (target_stop): Add argument.
7268 (debug_to_stop): Add argument.
7269 (update_current_target): Update.
7270 * remote.c (remote_stop): Add 'self' argument.
7271 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7272 (gdbsim_cntrl_c): Update.
7273 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7274 * procfs.c (procfs_stop): Add 'self' argument.
7275 * nto-procfs.c (procfs_stop): Add 'self' argument.
7276 * monitor.c (monitor_stop): Add 'self' argument.
7277 (monitor_open): Update.
7278 * linux-nat.c (linux_nat_stop): Add argument.
7279 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7280 * gnu-nat.c (gnu_stop): Add 'self' argument.
7281 * darwin-nat.c (darwin_stop): Add 'self' argument.
7283 2014-02-19 Tom Tromey <tromey@redhat.com>
7285 * target.h (struct target_ops) <to_thread_name>: Add argument.
7286 * target.c (target_thread_name): Add argument.
7287 (update_current_target): Update.
7288 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7290 2014-02-19 Tom Tromey <tromey@redhat.com>
7292 * target.h (struct target_ops) <to_extra_thread_info>: Add
7294 (target_extra_thread_info): Add argument.
7295 * target.c (update_current_target): Update.
7296 * remote.c (remote_threads_extra_info): Add 'self' argument.
7297 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7299 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7300 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7301 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7303 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7305 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7307 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target.h (struct target_ops) <to_program_signals>: Add argument.
7313 * target.c (target_program_signals): Add argument.
7314 * remote.c (remote_program_signals): Add 'self' argument.
7316 2014-02-19 Tom Tromey <tromey@redhat.com>
7318 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7319 * target.c (target_pass_signals): Add argument.
7320 * remote.c (remote_pass_signals): Add 'self' argument.
7321 (remote_start_remote): Update.
7322 * procfs.c (procfs_pass_signals): Add 'self' argument.
7323 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7324 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7325 (linux_nat_create_inferior, linux_nat_attach): Update.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * windows-nat.c (windows_can_run): Add 'self' argument.
7330 * target.h (struct target_ops) <to_can_run>: Add argument.
7331 (target_can_run): Add argument.
7332 * target.c (debug_to_can_run): Add argument.
7333 (update_current_target): Update.
7334 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7335 * inf-child.c (inf_child_can_run): Add 'self' argument.
7336 * go32-nat.c (go32_can_run): Add 'self' argument.
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7340 * target.h (struct target_ops) <to_has_exited>: Add argument.
7341 (target_has_exited): Add argument.
7342 * target.c (debug_to_has_exited): Add argument.
7343 (update_current_target): Update.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7349 (target_set_syscall_catchpoint): Add argument.
7350 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7352 * target.c (update_current_target): Update.
7354 2014-02-19 Tom Tromey <tromey@redhat.com>
7356 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7358 (target_remove_exec_catchpoint): Add argument.
7359 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7360 (update_current_target): Update.
7361 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7364 2014-02-19 Tom Tromey <tromey@redhat.com>
7366 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7368 (target_insert_exec_catchpoint): Add argument.
7369 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7370 (update_current_target): Update.
7371 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7376 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7378 (target_remove_vfork_catchpoint): Add argument.
7379 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7380 (update_current_target): Update.
7381 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7388 (target_insert_vfork_catchpoint): Add argument.
7389 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7390 (update_current_target): Update.
7391 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7394 2014-02-19 Tom Tromey <tromey@redhat.com>
7396 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7398 (target_remove_fork_catchpoint): Add argument.
7399 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7400 (update_current_target): Update.
7401 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7404 2014-02-19 Tom Tromey <tromey@redhat.com>
7406 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7408 (target_insert_fork_catchpoint): Add argument.
7409 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7410 (update_current_target): Update.
7411 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7414 2014-02-19 Tom Tromey <tromey@redhat.com>
7416 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7418 (target_post_startup_inferior): Add argument.
7419 * target.c (debug_to_post_startup_inferior): Add argument.
7420 (update_current_target): Update.
7421 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7423 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7425 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7427 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7429 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7431 (super_post_startup_inferior): Likewise.
7432 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7434 (super_post_startup_inferior): Likewise.
7435 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7436 Add 'self' argument.
7437 (super_post_startup_inferior): Likewise.
7439 2014-02-19 Tom Tromey <tromey@redhat.com>
7441 * target.h (struct target_ops) <to_load>: Add argument.
7442 * target.c (target_load): Add argument.
7443 (debug_to_load): Add argument.
7444 (update_current_target): Update.
7445 * remote.c (remote_load): Add 'self' argument.
7446 * remote-sim.c (gdbsim_load): Add 'self' argument.
7447 * remote-mips.c (mips_load): Add 'self' argument.
7448 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7449 * monitor.c (monitor_load): Add 'self' argument.
7450 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7454 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7455 (target_terminal_info): Add argument.
7456 * target.c (debug_to_terminal_info): Add argument.
7457 (default_terminal_info): Likewise.
7458 * inflow.c (child_terminal_info): Add 'self' argument.
7459 * inferior.h (child_terminal_info): Add 'self' argument.
7460 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7466 (target_terminal_save_ours): Add argument.
7467 * target.c (debug_to_terminal_save_ours): Add argument.
7468 (update_current_target): Update.
7469 * inflow.c (terminal_save_ours): Add 'self' argument.
7470 * inferior.h (terminal_save_ours): Add 'self' argument.
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7474 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7475 (target_terminal_ours): Add argument.
7476 * target.c (debug_to_terminal_ours): Add argument.
7477 (update_current_target): Update.
7478 * remote.c (remote_terminal_ours): Add 'self' argument.
7479 (remote_close): Update.
7480 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7481 * inflow.c (terminal_ours): Add 'self' argument.
7482 * inferior.h (terminal_ours): Add 'self' argument.
7483 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7485 2014-02-19 Pedro Alves <palves@redhat.com>
7486 Tom Tromey <tromey@redhat.com>
7488 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7490 (target_terminal_ours_for_output): Add argument.
7491 * target.c (debug_to_terminal_ours_for_output): Add argument.
7492 (update_current_target): Update.
7493 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7494 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7495 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7497 2014-02-19 Tom Tromey <tromey@redhat.com>
7499 * target.h (struct target_ops) <to_terminal_inferior>: Add
7501 * target.c (target_terminal_inferior): Add argument.
7502 (update_current_target): Update.
7503 * remote.c (remote_terminal_inferior): Add 'self' argument.
7504 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7505 * inflow.c (terminal_inferior): Add 'self' argument.
7506 * inferior.h (terminal_inferior): Add 'self' argument.
7507 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7508 (go32_terminal_inferior): Add 'self' argument.
7510 2014-02-19 Tom Tromey <tromey@redhat.com>
7512 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7513 (target_terminal_init): Add argument.
7514 * target.c (debug_to_terminal_init): Add argument.
7515 (update_current_target): Update.
7516 * inflow.c (terminal_init_inferior): Add 'self' argument.
7517 * inferior.h (terminal_init_inferior): Add 'self' argument.
7518 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7519 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops)
7524 <to_can_accel_watchpoint_condition>: Add argument.
7525 (target_can_accel_watchpoint_condition): Add argument.
7526 * target.c (debug_to_can_accel_watchpoint_condition): Add
7528 (update_current_target): Update.
7529 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7532 2014-02-19 Tom Tromey <tromey@redhat.com>
7534 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7536 (target_region_ok_for_hw_watchpoint): Add argument.
7537 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7538 (default_region_ok_for_hw_watchpoint): Add argument.
7539 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7540 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7542 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7544 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7546 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7548 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7550 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7552 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7553 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7555 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7556 Add 'self' argument.
7558 2014-02-19 Tom Tromey <tromey@redhat.com>
7560 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7562 (target_insert_watchpoint): Add argument.
7563 * target.c (debug_to_insert_watchpoint): Add argument.
7564 (update_current_target): Update.
7565 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7566 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7567 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7568 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7569 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7570 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7572 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7573 (procfs_insert_hw_watchpoint): Add 'self' argument.
7574 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7576 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7578 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7580 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7581 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7583 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7586 2014-02-19 Tom Tromey <tromey@redhat.com>
7588 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7590 (target_remove_watchpoint): Add argument.
7591 * target.c (debug_to_remove_watchpoint): Add argument.
7592 (update_current_target): Update.
7593 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7594 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7595 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7596 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7597 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7598 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7600 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7601 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7603 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7605 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7607 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7608 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7610 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7615 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7617 (target_remove_hw_breakpoint): Add argument.
7618 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7619 (update_current_target): Update.
7620 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7621 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7623 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7624 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7626 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7629 2014-02-19 Tom Tromey <tromey@redhat.com>
7631 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7633 (target_insert_hw_breakpoint): Add argument.
7634 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7635 (update_current_target): Update.
7636 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7637 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7639 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7640 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7641 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7643 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7648 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7650 (target_can_use_hardware_watchpoint): Add argument.
7651 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7652 (update_current_target): Update.
7653 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7655 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7657 * remote.c (remote_check_watch_resources): Add 'self' argument.
7658 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7659 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7661 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7662 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7664 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7666 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7668 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7670 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7672 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7674 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7675 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7677 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7680 2014-02-19 Tom Tromey <tromey@redhat.com>
7682 * target.h (struct target_ops) <to_post_attach>: Add argument.
7683 (target_post_attach): Add argument.
7684 * target.c (debug_to_post_attach): Add argument.
7685 (update_current_target): Update.
7686 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7687 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7688 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7689 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7690 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7694 * windows-nat.c (windows_close): Add 'self' argument.
7695 * tracepoint.c (tfile_close): Add 'self' argument.
7696 * target.h (struct target_ops) <to_close>: Add argument.
7697 * target.c (target_close): Add argument.
7698 (update_current_target): Update.
7699 * remote.c (remote_close): Add 'self' argument.
7700 * remote-sim.c (gdbsim_close): Add 'self' argument.
7701 * remote-mips.c (mips_close): Add 'self' argument.
7702 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7703 * record-full.c (record_full_close): Add 'self' argument.
7704 * record-btrace.c (record_btrace_close): Add 'self' argument.
7705 * monitor.h (monitor_close): Add 'self' argument.
7706 * monitor.c (monitor_close): Add 'self' argument.
7707 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7708 * linux-nat.c (linux_nat_close): Add argument.
7709 * go32-nat.c (go32_close): Add 'self' argument.
7710 * exec.c (exec_close_1): Add 'self' argument.
7711 * ctf.c (ctf_close): Add 'self' argument.
7712 * corelow.c (core_close): Add 'self' argument.
7713 (core_close_cleanup): Update.
7714 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7715 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7719 * remote.c (remote_load): New function.
7720 (init_remote_ops): Use it.
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7724 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7726 * common/linux-btrace.h (linux_supports_btrace): Update.
7727 * remote.c (remote_supports_btrace): Add "self" argument.
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_supports_btrace): Remove.
7730 * target.h (struct target_ops) <to_supports_btrace>: Add
7731 target_ops argument.
7732 (target_supports_btrace): New define.
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * record-full.c (record_full_beneath_to_resume_ops)
7737 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7738 (record_full_beneath_to_wait)
7739 (record_full_beneath_to_store_registers_ops)
7740 (record_full_beneath_to_store_registers)
7741 (record_full_beneath_to_xfer_partial_ops)
7742 (record_full_beneath_to_xfer_partial)
7743 (record_full_beneath_to_insert_breakpoint_ops)
7744 (record_full_beneath_to_insert_breakpoint)
7745 (record_full_beneath_to_remove_breakpoint_ops)
7746 (record_full_beneath_to_remove_breakpoint)
7747 (record_full_beneath_to_stopped_by_watchpoint)
7748 (record_full_beneath_to_stopped_data_address)
7749 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7750 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7751 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7752 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7753 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7754 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7755 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7756 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7757 (record_full_resume, record_full_wait_1)
7758 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7759 (record_full_store_registers, record_full_xfer_partial)
7760 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7761 (record_full_async, record_full_core_xfer_partial): Use target
7763 * target-delegates.c: Rebuild.
7764 * target.c (current_xfer_partial): Remove.
7765 (update_current_target): Do not INHERIT or de_fault
7766 to_insert_breakpoint, to_remove_breakpoint,
7767 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7768 to_is_async_p, to_async. Do not set to_xfer_partial field.
7769 (default_xfer_partial): Simplify.
7770 (current_xfer_partial): Remove.
7771 (target_wait, target_resume): Simplify.
7772 (find_default_can_async_p, find_default_is_async_p): Update.
7773 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7774 to_xfer_partial, to_stopped_by_watchpoint,
7775 to_stopped_data_address.
7776 (target_store_registers): Simplify.
7777 (forward_target_remove_breakpoint)
7778 (forward_target_insert_breakpoint): Remove.
7779 (target_remove_breakpoint, target_insert_breakpoint)
7780 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7781 * target.h (struct target_ops) <to_resume, to_wait,
7782 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7783 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7784 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7786 (forward_target_remove_breakpoint)
7787 (forward_target_insert_breakpoint): Remove.
7788 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7790 (record_btrace_insert_breakpoint): Delegate directly.
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target-delegates.c: New file.
7796 * target.c: Include target-delegates.c.
7797 (init_dummy_target): Call install_dummy_methods.
7798 (complete_target_initialization): Call install_delegators.
7799 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7800 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7801 * make-target-delegates: New file.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * record.c (find_record_target): Use find_target_at.
7806 * target.c (find_target_at): New function.
7807 * target.h (find_target_at): Declare.
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7811 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7813 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7815 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7816 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7818 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7820 * linux-nat.c (save_sigtrap): Update.
7821 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7822 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7823 (linux_nat_close): Update.
7824 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7826 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7828 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7829 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7830 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7831 (tmp_to_async): Add 'ops' argument.
7832 (record_full_stopped_by_watchpoint, record_full_async)
7833 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7835 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7836 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7837 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7838 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7839 (remote_is_async_p, remote_async): Add 'ops' argument.
7840 (remote_stopped_data_address): Update.
7841 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7842 * target.c (update_current_target)
7843 (find_default_can_async_p, find_default_is_async_p): Update.
7844 (init_dummy_target): Update.
7845 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7846 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7847 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7848 (target_can_async_p, target_is_async_p, target_async)
7849 (target_stopped_by_watchpoint): Update.
7851 2014-02-19 Yao Qi <yao@codesourcery.com>
7854 * gdbarch.sh: Remove startup_gdbarch.
7855 * gdbarch.c: Regenerated.
7856 * gdbarch.h: Likewise.
7858 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7860 * rl78-tdep.c (rl78_g10_register_name): New function.
7861 (rl78_return_value): Add g10 support.
7862 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7865 2014-02-17 Doug Evans <xdje42@gmail.com>
7867 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7868 (SUBDIR_GUILE_SRCS): Ditto.
7869 (scm-gsmob.o): Ditto.
7871 2014-02-17 Yao Qi <yao@codesourcery.com>
7873 * gnu-nat.c (ILL_RPC): Declare defined function.
7875 2014-02-17 Yao Qi <yao@codesourcery.com>
7877 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7878 mach_msg_type_number_t.
7879 (gnu_write_inferior): Likewise.
7881 2014-02-17 Yao Qi <yao@codesourcery.com>
7883 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7885 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7886 (inf_validate_procs, inf_signal): Likewise.
7887 (S_exception_raise_request): Likewise.
7888 (do_mach_notify_dead_name): Likewise.
7889 (steal_exc_port): Likewise.
7890 (gnu_read_inferior): Change 'copy_count''s type to
7891 mach_msg_type_number_t.
7892 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7895 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7897 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7898 flag. Adjust all users; in particular...
7899 (gnu_wait): ..., don't decrement its value in here...
7900 (gnu_create_inferior): ..., and instead set the flag in here,
7901 around the startup_inferior call, and call that one with
7902 START_INFERIOR_TRAPS_EXPECTED.
7904 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7905 (ILL_RPC): ... new macro.
7906 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7907 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7908 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7909 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7910 functions with ILL_RPC macro.
7911 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7912 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7913 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7914 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7915 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7916 (S_proc_getlogin_reply, S_proc_getsid_reply)
7917 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7918 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7919 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7920 (S_proc_getnports_reply, S_proc_is_important_reply)
7921 (S_proc_get_code_reply): New stub functions, generated with
7924 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7925 collected the type check structures.
7927 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7929 2014-02-14 Doug Evans <dje@google.com>
7931 * target.c (target_write_partial): Fix result type.
7933 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7935 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7936 the proper offsets to access fpregset_t.
7938 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7940 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7941 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7942 * h8300-tdep.c (setmachinelist): Remove global.
7943 * hppa-tdep.c (hppa_sigtramp): Remove global.
7944 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7945 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7946 * ravenscar-thread.c (update_target_observer): Remove global.
7947 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7949 2014-02-12 Tom Tromey <tromey@redhat.com>
7951 * common/rsp-low.c: Update comments.
7952 * common/rsp-low.h: Update comments.
7954 2014-02-12 Tom Tromey <tromey@redhat.com>
7956 * common/rsp-low.c (convert_ascii_to_int): Remove.
7957 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7959 2014-02-12 Tom Tromey <tromey@redhat.com>
7961 * common/rsp-low.h (unhexify): Don't declare.
7962 * common/rsp-low.c (unhexify): Remove.
7964 2014-02-12 Tom Tromey <tromey@redhat.com>
7966 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7967 * common/rsp-low.c (convert_int_to_ascii): Remove.
7969 2014-02-12 Tom Tromey <tromey@redhat.com>
7971 * common/rsp-low.h (hexify): Don't declare.
7972 * common/rsp-low.c (hexify): Remove.
7974 2014-02-12 Tom Tromey <tromey@redhat.com>
7976 * common/rsp-low.c (hexify): Never take strlen of argument.
7978 2014-02-12 Tom Tromey <tromey@redhat.com>
7980 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7981 * remote.c (extended_remote_run, remote_rcmd)
7982 (remote_download_trace_state_variable, remote_save_trace_data)
7983 (remote_set_trace_notes): Update.
7984 * tracepoint.c (encode_source_string, tfile_write_status)
7985 (tfile_write_uploaded_tsv): Update.
7987 2014-02-12 Tom Tromey <tromey@redhat.com>
7989 * tracepoint.c: Include rsp-low.h.
7990 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7991 * remote.c: Include rsp-low.h.
7992 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7993 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7994 (remote_unescape_input): Move to common/rsp-low.c.
7995 * common/rsp-low.h: New file.
7996 * common/rsp-low.c: New file.
7997 * Makefile.in (SFILES): Add common/rsp-low.c.
7998 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7999 (COMMON_OBS): Add rsp-low.o.
8000 (rsp-low.o): New target.
8002 2014-02-12 Tom Tromey <tromey@redhat.com>
8004 * utils.h: Include print-utils.h.
8005 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8006 (int_string, core_addr_to_string, core_addr_to_string_nz)
8007 (hex_string, hex_string_custom): Don't declare.
8008 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8009 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8010 (hex_string_custom, int_string, core_addr_to_string)
8011 (core_addr_to_string_nz, host_address_to_string): Move to
8012 common/print-utils.c.
8013 * common/print-utils.h: New file.
8014 * common/print-utils.c: New file
8015 * Makefile.in (SFILES): Add common/print-utils.c.
8016 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8017 (COMMON_OBS): Add print-utils.o.
8018 (print-utils.o): New target.
8020 2014-02-12 Tom Tromey <tromey@redhat.com>
8022 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8024 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8026 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8028 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8030 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8031 if a PT_IO ptrace request returns sucessfully but indicates that 0
8032 bytes were transferred.
8034 2014-02-12 Pedro Alves <palves@redhat.com>
8035 Kevin Buettner <kevinb@redhat.com>
8037 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8038 TYPE_INSTANCE_FLAG_CODE_SPACE.
8040 2014-02-12 Pedro Alves <palves@redhat.com>
8042 * h8300-tdep.c (pseudo_from_raw_register)
8043 (raw_from_pseudo_register): New functions.
8044 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8047 2014-02-12 Pedro Alves <palves@redhat.com>
8049 * h8300-tdep.c (h8300_register_sim_regno): New function.
8050 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8051 gdbarch_register_sim_regno hook.
8053 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8055 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8057 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8059 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8061 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8063 * obsd-tdep.h (obsd_init_abi): New prototype.
8064 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8065 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8066 (obsd_init_abi): New functions.
8067 * i386obsd-tdep.c: Include "obsd-tdep.h".
8068 (i386obsd_init_abi): Call obsd_init_abi.
8069 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8070 (amd64obsd_init_abi): Call obsd_init_abi.
8071 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8072 obsd-tdep.c to gdb_target_obs.
8074 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8076 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8077 double float arguments to 16-byte in the argument slots.
8079 2014-02-11 Doug Evans <xdje42@gmail.com>
8081 * configure.ac: Don't crash if pkg-config is not found and guile
8082 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8084 * configure: Regenerate.
8086 2014-02-11 Yao Qi <yao@codesourcery.com>
8088 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8089 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8090 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8091 * gnu-nat.c (gnu_xfer_memory): Likewise.
8092 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8093 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8094 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8095 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8097 2014-02-11 Yao Qi <yao@codesourcery.com>
8099 * target.h (enum target_xfer_error): Rename to ...
8100 (enum target_xfer_status): ... it. New. All users updated.
8101 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8103 (TARGET_XFER_STATUS_ERROR_P): New macro.
8104 (target_xfer_error_to_string): Remove declaration.
8105 (target_xfer_status_to_string): Declare.
8106 (target_xfer_partial_ftype): Adjust it.
8107 (struct target_ops) <to_xfer_partial>: Return
8108 target_xfer_status. Add argument xfered_len. Update
8110 * target.c (target_xfer_error_to_string): Rename to ...
8111 (target_xfer_status_to_string): ... it. New. All callers
8113 (target_read_live_memory): Likewise. Call target_xfer_partial
8114 instead of target_read.
8115 (memory_xfer_live_readonly_partial): Return
8116 target_xfer_status. Add argument xfered_len.
8117 (raw_memory_xfer_partial): Likewise.
8118 (memory_xfer_partial_1): Likewise.
8119 (memory_xfer_partial): Likewise.
8120 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8121 properly. Update debug message.
8122 (default_xfer_partial, current_xfer_partial): Likewise.
8123 (target_write_partial): Likewise.
8124 (target_read_partial): Likewise. All callers updated.
8125 (read_whatever_is_readable): Likewise.
8126 (target_write_with_progress): Likewise.
8127 (target_read_alloc_1): Likewise.
8129 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8130 * auxv.c (procfs_xfer_auxv): Likewise.
8131 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8132 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8133 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8134 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8135 * corefile.c (read_memory): Adjust.
8136 * corelow.c (core_xfer_partial): Likewise.
8137 * ctf.c (ctf_xfer_partial): Likewise.
8138 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8140 (darwin_xfer_partial): Likewise.
8141 * exec.c (section_table_xfer_memory_partial): Likewise. All
8143 (exec_xfer_partial): Likewise.
8144 * exec.h (section_table_xfer_memory_partial): Update
8146 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8148 (gnu_xfer_partial): Likewise.
8149 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8150 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8151 (ia64_hpux_xfer_solib_got): Likewise.
8152 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8153 type of 'partial_len' to ULONGEST.
8154 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8155 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8156 (linux_nat_xfer_partial): Likewise.
8157 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8158 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8159 * monitor.c (monitor_xfer_memory): Likewise.
8160 (monitor_xfer_partial): Likewise.
8161 * procfs.c (procfs_xfer_partial): Likewise.
8162 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8163 * record-full.c (record_full_xfer_partial): Likewise.
8164 (record_full_core_xfer_partial): Likewise.
8165 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8166 (gdbsim_xfer_partial): Likewise.
8167 * remote.c (remote_write_bytes_aux): Likewise. All callers
8169 (remote_write_bytes, remote_read_bytes): Likewise. All
8171 (remote_flash_erase): Likewise. All callers updated.
8172 (remote_write_qxfer): Likewise. All callers updated.
8173 (remote_read_qxfer): Likewise. All callers updated.
8174 (remote_xfer_partial): Likewise.
8175 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8176 (rs6000_xfer_shared_libraries): Likewise.
8177 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8178 (sol_thread_xfer_partial): Likewise.
8179 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8180 (sparc_xfer_partial): Likewise.
8181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8183 (spu_xfer_partial): Likewise.
8184 * spu-multiarch.c (spu_xfer_partial): Likewise.
8185 * tracepoint.c (tfile_xfer_partial): Likewise.
8186 * windows-nat.c (windows_xfer_memory): Likewise.
8187 (windows_xfer_shared_libraries): Likewise.
8188 (windows_xfer_partial): Likewise.
8189 * valprint.c: Replace 'target_xfer_error' with
8190 'target_xfer_status' in comments.
8192 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8194 Checked in by Joel Brobecker <brobecker@adacore.com>.
8195 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8197 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8199 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8200 function parameters.
8202 2014-02-10 Will Newton <will.newton@linaro.org>
8204 * elfread.c (elf_rel_plt_read): Look for a .got section if
8205 looking up .got.plt fails.
8206 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8207 on address passed to elf_gnu_ifunc_record_cache.
8208 (elf_gnu_ifunc_resolve_addr): Likewise.
8209 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8211 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8213 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8214 (X_RETTURN): New macro.
8215 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8217 * sparc64-tdep.c (sparc64_init_abi): Hook
8218 sparc_in_function_epilogue_p.
8220 2014-02-10 Gary Benson <gbenson@redhat.com>
8222 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8223 Rename name_matcher to symbol_matcher.
8225 2014-02-10 Gary Benson <gbenson@redhat.com>
8227 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8228 Use expand_symtabs_file_matcher_ftype and
8229 expand_symtabs_symbol_matcher_ftype.
8231 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8233 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8234 (struct ada_symbol_cache): New.
8235 (ada_free_symbol_cache): Forward declare.
8236 (struct ada_pspace_data): New.
8237 (ada_pspace_data_handle): New static global.
8238 (get_ada_pspace_data, ada_pspace_data_cleanup)
8239 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8240 (cache_space, cache): Delete, now folded inside struct
8242 (ada_get_symbol_cache): New function.
8243 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8245 (_initialize_ada_language): Remove initialization of cache_space.
8246 Move call to observer_attach_inferior_exit up, grouping it
8247 with the other observer registrations inside this function.
8248 Rename command to be more general. Add call to
8249 register_program_space_data_with_cleanup.
8251 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8253 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8254 ada_new_objfile_observer.
8255 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8256 (_initialize_tasks): Update uses of ada_new_objfile_observer
8257 and ada_tasks_normal_stop_observer.
8259 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8261 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8262 returned by the 'Length attribute to integer.
8264 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8266 * ada-lang.c (_initialize_ada_language): Initialize
8267 cache_space obstack.
8269 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8271 * ada-lang.c (HASH_SIZE): New macro.
8272 (struct cache_entry): New type.
8273 (cache_space, cache): New static globals.
8274 (ada_clear_symbol_cache, find_entry): New functions.
8275 (lookup_cached_symbol, cache_symbol): Implement.
8276 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8277 (_initialize_ada_language): Attach ada_new_objfile_observer
8278 and ada_free_objfile_observer.
8280 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8282 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8283 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8284 struct block * parameter.
8285 (ada_lookup_symbol_list_worker): Constify local variable "block".
8286 Remove cast which is no longer necessary.
8288 2014-02-10 Doug Evans <xdje42@gmail.com>
8290 Add Guile as an extension language.
8291 * NEWS: Mention Guile scripting.
8292 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8293 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8294 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8295 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8296 (CLIBS): Add GUILE_LIBS.
8297 (install-guile): New rule.
8298 (guile.o): New rule.
8299 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8300 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8301 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8302 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8303 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8304 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8305 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8306 * configure.ac: New option --with-guile.
8307 * configure: Regenerate.
8308 * config.in: Regenerate.
8309 * auto-load.c: Remove #include "python/python.h". Add #include
8310 "gdb/section-scripts.h".
8311 (source_section_scripts): Handle Guile scripts.
8312 (_initialize_auto_load): Add name of Guile objfile script to
8313 scripts-directory help text.
8314 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8315 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8316 (struct breakpoint): New member scm_bp_object.
8317 * defs.h (enum command_control_type): New value guile_control.
8318 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8320 (show_user): Update comment.
8321 (_initialize_cli_cmds): Update help text for "show user". Update help
8322 text for max-user-call-depth.
8323 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8325 (multi_line_command_p): Add guile_control.
8326 (print_command_lines): Handle guile_control.
8327 (execute_control_command, recurse_read_control_structure): Ditto.
8328 (process_next_line): Recognize "guile" commands.
8329 * disasm.c (gdb_disassemble_info): Make non-static.
8330 * disasm.h: #include "dis-asm.h".
8331 (struct gdbarch): Add forward decl.
8332 (gdb_disassemble_info): Declare.
8333 * extension.c: #include "guile/guile.h".
8334 (extension_languages): Add guile.
8335 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8336 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8337 * gdbtypes.c (get_unsigned_type_max): New function.
8338 (get_signed_type_minmax): New function.
8339 * gdbtypes.h (get_unsigned_type_max): Declare.
8340 (get_signed_type_minmax): Declare.
8341 * guile/README: New file.
8342 * guile/guile-internal.h: New file.
8343 * guile/guile.c: New file.
8344 * guile/guile.h: New file.
8345 * guile/scm-arch.c: New file.
8346 * guile/scm-auto-load.c: New file.
8347 * guile/scm-block.c: New file.
8348 * guile/scm-breakpoint.c: New file.
8349 * guile/scm-disasm.c: New file.
8350 * guile/scm-exception.c: New file.
8351 * guile/scm-frame.c: New file.
8352 * guile/scm-gsmob.c: New file.
8353 * guile/scm-iterator.c: New file.
8354 * guile/scm-lazy-string.c: New file.
8355 * guile/scm-math.c: New file.
8356 * guile/scm-objfile.c: New file.
8357 * guile/scm-ports.c: New file.
8358 * guile/scm-pretty-print.c: New file.
8359 * guile/scm-safe-call.c: New file.
8360 * guile/scm-string.c: New file.
8361 * guile/scm-symbol.c: New file.
8362 * guile/scm-symtab.c: New file.
8363 * guile/scm-type.c: New file.
8364 * guile/scm-utils.c: New file.
8365 * guile/scm-value.c: New file.
8366 * guile/lib/gdb.scm: New file.
8367 * guile/lib/gdb/boot.scm: New file.
8368 * guile/lib/gdb/experimental.scm: New file.
8369 * guile/lib/gdb/init.scm: New file.
8370 * guile/lib/gdb/iterator.scm: New file.
8371 * guile/lib/gdb/printing.scm: New file.
8372 * guile/lib/gdb/types.scm: New file.
8373 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8374 (VPATH): Add $(GUILE_SRCDIR).
8375 (GUILE_DIR): New variable.
8376 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8377 (all): Add stamp-guile dependency.
8378 (stamp-guile): New rule.
8379 (clean-guile, install-guile, uninstall-guile): New rules.
8380 (install-only): Add install-guile dependency.
8381 (uninstall): Add uninstall-guile dependency.
8382 (clean): Add clean-guile dependency.
8384 2014-02-09 Doug Evans <xdje42@gmail.com>
8386 Revert this patch (which I approved, mea culpa).
8388 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8390 * Makefile.in (all-lib): Remove.
8391 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8393 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8395 Fix Python stack corruption.
8396 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8399 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8401 * Makefile.in (all-lib): Remove.
8402 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8404 2014-02-07 Doug Evans <dje@google.com>
8406 * extension-priv.h (extension_language_script_ops): Add comment.
8407 (extension_language_ops): Add comment.
8408 (active_ext_lang_state): Fix typo in comment.
8410 2014-02-07 Pedro Alves <palves@redhat.com>
8412 PR breakpoints/16292
8413 * infrun.c (handle_signal_stop) <signal arrives while stepping
8414 over a breakpoint>: Switch back to the stepping thread.
8416 2014-02-07 Yao Qi <yao@codesourcery.com>
8418 * target.c (target_xfer_partial): Return zero if LEN is zero.
8420 2014-02-07 Yao Qi <yao@codesourcery.com>
8422 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8423 (ld_so_xfer_auxv): Likewise.
8424 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8425 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8426 * corelow.c (core_xfer_partial): Likewise.
8427 * ctf.c (ctf_xfer_partial): Likewise.
8428 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8429 (darwin_xfer_partial): Likewise.
8430 * exec.c (exec_xfer_partial): Likewise.
8431 * gnu-nat.c (gnu_xfer_partial): Likewise.
8432 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8433 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8434 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8435 * linux-nat.c (linux_xfer_siginfo): Likewise.
8436 (linux_proc_xfer_spu): Likewise.
8437 * procfs.c (procfs_xfer_partial): Likewise.
8438 * record-full.c (record_full_xfer_partial): Likewise.
8439 (record_full_core_xfer_partial): Likewise.
8440 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8441 * remote.c (remote_write_qxfer): Likewise.
8442 (remote_write_qxfer, remote_read_qxfer): Likewise.
8443 (remote_xfer_partial): Likewise.
8444 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8445 (rs6000_xfer_shared_libraries): Likewise.
8446 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8447 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8448 (spu_xfer_partial): Likewise.
8449 * target.c (memory_xfer_partial_1): Likewise.
8450 * tracepoint.c (tfile_xfer_partial): Likewise.
8451 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8452 (windows_xfer_partial): Likewise.
8454 2014-02-07 Yao Qi <yao@codesourcery.com>
8456 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8458 (core_xfer_shared_libraries_aix): Likewise.
8459 * gdbarch.c, gdbarch.h: Regenerated.
8460 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8461 ULONGEST. Change 'len_avail' type to ULONGEST.
8462 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8463 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8465 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8467 2014-02-07 Yao Qi <yao@codesourcery.com>
8469 * corefile.c (memory_error): Get 'exception' from ERR and pass
8470 'exception' to throw_error.
8472 2014-02-06 Doug Evans <xdje42@gmail.com>
8474 * configure.ac (libpython checking): Remove all but python.o from
8475 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8476 * configure: Regenerate.
8478 * Makefile.in (SFILES): Add extension.c.
8479 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8480 (COMMON_OBS): Add extension.o.
8481 * extension.h: New file.
8482 * extension-priv.h: New file.
8483 * extension.c: New file.
8485 * python/python-internal.h: #include "extension.h".
8486 (gdbpy_auto_load_enabled): Declare.
8487 (gdbpy_apply_val_pretty_printer): Declare.
8488 (gdbpy_apply_frame_filter): Declare.
8489 (gdbpy_preserve_values): Declare.
8490 (gdbpy_breakpoint_cond_says_stop): Declare.
8491 (gdbpy_breakpoint_has_cond): Declare.
8492 (void source_python_script_for_objfile): Delete.
8493 * python/python.c: #include "extension-priv.h".
8494 Delete inclusion of "observer.h".
8495 (extension_language_python): Moved here and renamed from
8496 script_language_python in py-auto-load.c.
8497 Redefined to be of type extension_language_defn.
8498 (python_extension_script_ops): New global.
8499 (python_extension_ops): New global.
8500 (struct python_env): New member previous_active.
8501 (restore_python_env): Call restore_active_ext_lang.
8502 (ensure_python_env): Call set_active_ext_lang.
8503 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8505 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8507 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8509 (gdbpy_eval_from_control_command): Renamed from
8510 eval_python_from_control_command, made static. New arg extlang.
8511 (gdbpy_source_script) Renamed from source_python_script, made static.
8513 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8514 result to int. New arg extlang.
8515 (gdbpy_source_objfile_script): Renamed from
8516 source_python_script_for_objfile, made static. New arg extlang.
8517 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8518 static. New args extlang, extlang_printers. Change result type to
8520 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8521 static. New arg extlang. Rename arg printers to extlang_printers
8522 and change type to ext_lang_type_printers *.
8523 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8524 static. Replace argument arg with extlang, extlang_printers.
8525 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8526 (!HAVE_PYTHON, source_python_script): Delete.
8527 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8528 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8529 (!HAVE_PYTHON, start_type_printers): Delete.
8530 (!HAVE_PYTHON, apply_type_printers): Delete.
8531 (!HAVE_PYTHON, free_type_printers): Delete.
8532 (_initialize_python): Delete call to observer_attach_before_prompt.
8533 (finalize_python): Set/restore active extension language.
8534 (gdbpy_finish_initialization) Renamed from
8535 finish_python_initialization, made static. New arg extlang.
8536 (gdbpy_initialized): New function.
8537 * python/python.h: #include "extension.h". Delete #include
8538 "value.h", "mi/mi-cmds.h".
8539 (extension_language_python): Declare.
8540 (GDBPY_AUTO_FILE_NAME): Delete.
8541 (enum py_bt_status): Moved to extension.h and renamed to
8543 (enum frame_filter_flags): Moved to extension.h.
8544 (enum py_frame_args): Moved to extension.h and renamed to
8545 ext_lang_frame_args.
8546 (finish_python_initialization): Delete.
8547 (eval_python_from_control_command): Delete.
8548 (source_python_script): Delete.
8549 (apply_val_pretty_printer): Delete.
8550 (apply_frame_filter): Delete.
8551 (preserve_python_values): Delete.
8552 (gdbpy_script_language_defn): Delete.
8553 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8554 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8556 * auto-load.c: #include "extension.h".
8557 (GDB_AUTO_FILE_NAME): Delete.
8558 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8559 (script_language_gdb): Delete, moved to extension.c and renamed to
8560 extension_language_gdb.
8561 (source_gdb_script_for_objfile): Delete.
8562 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8563 (loaded_script): Change type of language member to
8564 struct extension_language_defn *.
8565 (init_loaded_scripts_info): Initialize
8566 unsupported_script_warning_printed.
8567 (maybe_add_script): Make static. Change type of language arg to
8568 struct extension_language_defn *.
8569 (clear_section_scripts): Reset unsupported_script_warning_printed.
8570 (auto_load_objfile_script_1): Rewrite to use extension language API.
8571 (auto_load_objfile_script): Make public. Remove support-compiled-in
8572 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8573 (source_section_scripts): Rewrite to use extension language API.
8574 (load_auto_scripts_for_objfile): Rewrite to use
8575 auto_load_scripts_for_objfile.
8576 (collect_matching_scripts_data): Change type of language member to
8577 struct extension_language_defn *.
8578 (auto_load_info_scripts): Change type of language arg to
8579 struct extension_language_defn *.
8580 (unsupported_script_warning_print): New function.
8581 (script_not_found_warning_print): Make static.
8582 (_initialize_auto_load): Rewrite construction of scripts-directory
8584 * auto-load.h (struct objfile): Add forward decl.
8585 (struct script_language): Delete.
8586 (struct auto_load_pspace_info): Add forward decl.
8587 (struct extension_language_defn): Add forward decl.
8588 (maybe_add_script): Delete.
8589 (auto_load_objfile_script): Declare.
8590 (script_not_found_warning_print): Delete.
8591 (auto_load_info_scripts): Update prototype.
8592 (auto_load_gdb_scripts_enabled): Declare.
8593 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8594 auto_load_python_scripts_enabled and made public.
8595 (script_language_python): Delete, moved to python.c.
8596 (gdbpy_script_language_defn): Delete.
8597 (info_auto_load_python_scripts): Update to use
8598 extension_language_python.
8600 * breakpoint.c (condition_command): Replace call to
8601 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8602 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8603 with call to breakpoint_ext_lang_cond_says_stop.
8604 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8605 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8606 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8607 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8609 (local_setattro): Print name of extension language with existing
8612 * valprint.c (val_print, value_print): Update to call
8613 apply_ext_lang_val_pretty_printer.
8614 * cp-valprint.c (cp_print_value): Update call to
8615 apply_ext_lang_val_pretty_printer.
8616 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8617 (gdbpy_apply_val_pretty_printer): Renamed from
8618 apply_val_pretty_printer. New arg extlang.
8619 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8621 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8622 extension language API.
8623 * cli/cli-script.c (execute_control_command): Update to call
8624 eval_ext_lang_from_control_command.
8626 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8627 enum ext_lang_bt_status values. Update call to
8628 apply_ext_lang_frame_filter.
8629 (mi_cmd_stack_list_locals): Ditto.
8630 (mi_cmd_stack_list_args): Ditto.
8631 (mi_cmd_stack_list_variables): Ditto.
8632 * mi/mi-main.c: Delete #include "python/python-internal.h".
8633 Add #include "extension.h".
8634 (mi_cmd_list_features): Replace reference to python internal variable
8635 gdb_python_initialized with call to ext_lang_initialized_p.
8637 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8638 Update to use enum ext_lang_frame_args. Update to call
8639 apply_ext_lang_frame_filter.
8640 * python/py-framefilter.c (extract_sym): Update to use enum
8642 (extract_value, py_print_type, py_print_value): Ditto.
8643 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8644 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8645 (py_print_frame): Ditto.
8646 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8647 New arg extlang. Update to use enum ext_lang_bt_status.
8649 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8650 finish_python_initialization. Replace with call to
8651 finish_ext_lang_initialization.
8653 * typeprint.c (do_free_global_table): Update to call
8654 free_ext_lang_type_printers.
8655 (create_global_typedef_table): Update to call
8656 start_ext_lang_type_printers.
8657 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8658 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8659 (type_print_options): Change type of global_printers from "void *"
8660 to "struct ext_lang_type_printers *".
8662 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8663 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8664 (gdbpy_preserve_values): Renamed from preserve_python_values.
8666 (!HAVE_PYTHON, preserve_python_values): Delete.
8668 * utils.c (quit_flag): Delete, moved to extension.c.
8669 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8672 * eval.c: Delete #include "python/python.h".
8673 * main.c: Delete #include "python/python.h".
8675 * defs.h: Update comment.
8677 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8681 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8683 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8686 2014-02-05 Yao Qi <yao@codesourcery.com>
8688 * remote.c (remote_pass_signals): Remove local 'buf' and use
8690 (remote_program_signals): Likewise.
8692 2014-02-05 Yao Qi <yao@codesourcery.com>
8694 * ctf.c: Include "inferior.h" and "gdbthread.h".
8695 (CTF_PID): A new macro.
8696 (ctf_open): Call inferior_appeared and add_thread_silent.
8697 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8698 (ctf_thread_alive): New function.
8699 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8701 2014-02-05 Yao Qi <yao@codesourcery.com>
8705 2013-05-24 Yao Qi <yao@codesourcery.com>
8707 * tracepoint.c (TFILE_PID): Remove.
8708 (tfile_open): Don't add thread and inferior.
8709 (tfile_close): Don't set 'inferior_ptid'. Don't call
8710 exit_inferior_silent.
8711 (tfile_thread_alive): Remove.
8712 (init_tfile_ops): Don't set field 'to_thread_alive' of
8715 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8717 * remote.c (remote_start_remote): Call remote_check_symbols even
8718 if only symbol-file (not file) has been given.
8720 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8722 * gdbarch.sh (skip_entrypoint): New callback.
8723 * gdbarch.c, gdbarch.h: Regenerate.
8724 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8725 * infrun.c (fill_in_stop_func): Likewise.
8726 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8727 (ppc_elfv2_elf_make_msymbol_special): New function.
8728 (ppc_elfv2_skip_entrypoint): Likewise.
8729 (ppc_linux_init_abi): Install them for ELFv2.
8731 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8733 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8734 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8735 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8736 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8737 structures returned in GPRs.
8739 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8741 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8742 offset to the stack parameter list for the ELFv2 ABI.
8744 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8746 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8747 set_gdbarch_convert_from_func_ptr_addr and
8748 set_gdbarch_elf_make_msymbol_special for ELFv1.
8749 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8750 function descriptors on ELFv1.
8751 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8752 set up r12 at function entry.
8754 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8756 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8757 (struct gdbarch_tdep): New member elf_abi.
8759 * rs6000-tdep.c: Include "elf/ppc64.h".
8760 (rs6000_gdbarch_init): Detect ELF ABI version.
8762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8764 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8765 within a register pair holding a DFP 128-bit value on little-endian.
8766 (ppc64_sysv_abi_return_value_base): Likewise.
8767 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8768 (dfp_pseudo_register_write): Likewise.
8770 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8772 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8773 offset on little-endian when passing _Decimal32.
8774 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8776 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8778 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8779 of the overlapped FP register within the VSX register on little-
8781 (efpr_pseudo_register_write): Likewise.
8783 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8785 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8786 offset on little-endian when passing small structures.
8788 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8790 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8791 (struct ppc64_sysv_argpos): New data structure.
8792 (ppc64_sysv_abi_push_float): Remove.
8793 (ppc64_sysv_abi_push_val): New function.
8794 (ppc64_sysv_abi_push_integer): Likewise.
8795 (ppc64_sysv_abi_push_freg): Likewise.
8796 (ppc64_sysv_abi_push_vreg): Likewise.
8797 (ppc64_sysv_abi_push_param): Likewise.
8798 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8799 (ppc64_sysv_abi_return_value_base): New function.
8800 (ppc64_sysv_abi_return_value): Refactor to use it.
8802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8804 * NEWS: Document new target powerpc64le-*-linux*.
8806 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8808 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8809 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8811 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8812 register set used in ELF core dumps. Add floating-point register set.
8814 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8816 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8817 dwarf2_to_gdb[] table using symbolic constants. Adjust
8818 penultimate entry from number representing the PC register
8819 to symbolic constant representing the MDR register. Add
8820 constant for the PC register to the end of the table.
8822 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8824 * bsd-kvm.c: Include <sys/param.h>
8826 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8828 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8830 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8832 * ada-lang.h (clear_ada_sym_cache): Delete.
8834 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8836 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8838 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8840 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8841 the sigreturn register save area only if the syscall is
8844 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8846 * valops.c (value_slice): Minor reformatting.
8848 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8850 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8852 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8854 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8856 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8857 (ada_ignore_descriptive_types_p): New static global.
8858 (find_parallel_type_by_descriptive_type): Return immediately
8859 if ada_ignore_descriptive_types_p is set.
8860 (_initialize_ada_language): Register new commands "maintenance
8861 set ada", "maintenance show ada", "maintenance set ada
8862 ignore-descriptive-types" and "maintenance show ada
8863 ignore-descriptive-types".
8864 * NEWS: Add entry for new "maint ada set/show
8865 ignore-descriptive-types" commands.
8867 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8869 * record-btrace.c (record_btrace_close): Call btrace_teardown
8872 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8874 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8877 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8879 * ada-typeprint (type_is_full_subrange_of_target_type):
8881 (print_range): Add parameter bounds_prefered_p. If not set,
8882 try printing range types using the name of their base type.
8883 (print_range_type): Add parameter bounds_prefered_p.
8884 Use it in call to print_range.
8885 (print_array_type, ada_print_type): Update calls to print_range
8886 and print_range_type.
8888 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8890 * ada-typeprint.c (print_array_type, print_choices, print_range)
8891 (print_range_bound, print_dynamic_range_bound, print_range_type):
8894 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8896 * ada-typeprint.c (print_range): Add missing empty line
8897 after local declaration.
8899 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8901 * ada-valprint.c (print_optional_low_bound): Get index_type's
8902 target type for as long as it is a TYPE_CODE_RANGE.
8904 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8906 * procfs.c (procfs_make_note_section): Remove assertion and
8909 2014-01-24 Yao Qi <yao@codesourcery.com>
8911 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8912 * corelow.c (get_core_siginfo): Likewise.
8914 2014-01-24 Yao Qi <yao@codesourcery.com>
8916 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8917 ULONGEST. Don't check 'len' is negative.
8918 (remote_write_bytes): Change type of 'len' to ULONGEST.
8920 2014-01-23 Tom Tromey <tromey@redhat.com>
8923 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8924 Handle exception from frame.block.
8925 (FrameVars.fetch_frame_locals): Likewise.
8927 2014-01-23 Tom Tromey <tromey@redhat.com>
8930 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8931 on a NULL pointer. Move "goto error" to correct place.
8933 2014-01-23 Tom Tromey <tromey@redhat.com>
8936 * python/py-framefilter.c (apply_frame_filter): Call
8937 ensure_python_env after computing gdbarch.
8939 2014-01-23 Yao Qi <yao@codesourcery.com>
8941 * target.c (raw_memory_xfer_partial): Change argument type
8942 from void * to gdb_byte *.
8943 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8945 2014-01-22 Doug Evans <dje@google.com>
8947 New gdbserver option --debug-format=timestamp.
8950 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8952 * syscalls/s390x-linux.xml: New file.
8953 * syscalls/s390-linux.xml: New file.
8954 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8955 (XML_SYSCALL_FILENAME_S390X): Likewise.
8956 (op_svc): New enum value for SVC opcode.
8957 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8958 (s390_linux_get_syscall_number): New function.
8959 (s390_gdbarch_init): Register '*get_syscall_number' and the
8960 syscall xml file name.
8961 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8962 "s390-linux.xml" and "s390x-linux.xml".
8963 * NEWS: Announce new feature.
8965 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8967 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8969 2014-01-22 Pedro Alves <palves@redhat.com>
8971 * xtensa-config.c: Include defs.h.
8973 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8975 * common/common-utils.h: Add "ARI:" comment beside __func__
8978 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8980 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8981 documentation a bit.
8983 2014-01-21 Roland McGrath <mcgrathr@google.com>
8985 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8986 * configure: Regenerate.
8987 * aclocal.m4: Regenerate.
8988 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8989 New substituted variables.
8990 (install-strip): New target.
8991 (INSTALL_SCRIPT): New substituted variable.
8992 (FLAGS_TO_PASS): Add it.
8993 (install-only): Use $(INSTALL_SCRIPT) rather than
8994 $(INSTALL_PROGRAM) for gcore.
8996 2014-01-20 Tom Tromey <tromey@redhat.com>
8998 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9001 2014-01-20 Tom Tromey <tromey@redhat.com>
9003 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9004 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9005 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9006 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9007 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9008 (struct cmd_list_element) <flags>: Remove.
9009 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9010 doc_allocated>: New fields.
9011 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9013 * maint.c (maintenance_do_deprecate): Update.
9014 * top.c (execute_command): Update.
9016 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9018 * xtensa-linux-nat.c: Include asm/ptrace.h.
9020 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9022 * Makefile.in (SFILES): Add d-support.c.
9023 (COMMON_OBS): Add d-support.o.
9024 * d-lang.h (d_parse_symbol): Add comment, now defined in
9026 * d-lang.c (parse_call_convention)
9027 (parse_attributes, parse_function_types)
9028 (parse_function_args, parse_type, parse_identifier)
9029 (call_convention_p, d_parse_symbol): Move functions to ...
9030 * d-support.c: ... New file.
9032 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9034 * d-lang.h (d_parse_symbol): Add declaration.
9035 * d-lang.c (extract_identifiers)
9036 (extract_type_info): Remove functions.
9037 (parse_call_convention, parse_attributes)
9038 (parse_function_types, parse_function_args)
9039 (parse_type, parse_identifier, call_convention_p)
9040 (d_parse_symbol): New functions.
9041 (d_demangle): Use d_parse_symbol to demangle D symbols.
9043 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9045 * d-lang.h (struct builtin_d_type): New data type.
9046 (builtin_d_type): Add declaration.
9047 * d-lang.c (d_language_arch_info, build_d_types)
9048 (builtin_d_type): New functions.
9049 (enum d_primitive_types): New data type.
9050 (d_language_defn): Change c_language_arch_info to
9051 d_language_arch_info.
9052 (d_type_data): New static variable.
9053 (_initialize_d_language): Initialize d_type_data.
9055 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9057 * d-lang.h (d_main_name): Add declaration.
9058 * d-lang.c (d_main_name): New function.
9059 * symtab.c (find_main_name): Add call to d_main_name.
9061 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9063 * d-lang.c (d_language_defn): Change macro_expansion_c to
9066 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9068 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9070 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9072 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9073 gdb_exception" declaration.
9074 * remote.c (getpkt_or_notif_sane): Likewise.
9076 2014-01-17 Doug Evans <dje@google.com>
9078 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9079 function, contents of dirnames_to_char_ptr_vec_append moved here.
9080 (delim_string_to_char_ptr_vec): New function.
9081 (dirnames_to_char_ptr_vec_append): Rewrite.
9082 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9084 2014-01-17 Doug Evans <dje@google.com>
9086 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9088 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9089 #include "common-utils.h".
9090 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9091 * common/vec.h (VEC_ASSERT_PASS): Update.
9092 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9093 (MACH_CHECK_ERROR): Update.
9095 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9097 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9099 * gdbarch.h: Regenerate.
9101 2014-01-16 Tom Tromey <tromey@redhat.com>
9103 * value.c (struct value) <regnum>: Move earlier.
9105 2014-01-16 Tom Tromey <tromey@redhat.com>
9107 * remote.c (extended_remote_create_inferior): Rename from
9108 extended_remote_create_inferior_1. Add "ops" argument. Remove
9111 2014-01-16 Pedro Alves <palves@redhat.com>
9113 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9114 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9117 2014-01-16 Doug Evans <dje@google.com>
9119 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9121 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9123 * btrace.h (btrace_thread_flag): New.
9124 (struct btrace_thread_info) <flags>: New.
9125 * record-btrace.c (record_btrace_resume_thread)
9126 (record_btrace_find_thread_to_move, btrace_step_no_history)
9127 (btrace_step_stopped, record_btrace_start_replaying)
9128 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9129 (record_btrace_find_resume_thread): New.
9130 (record_btrace_resume, record_btrace_wait): Extend.
9131 (record_btrace_can_execute_reverse): New.
9132 (record_btrace_open): Fail in non-stop mode.
9133 (record_btrace_set_replay): Split into this, ...
9134 (record_btrace_stop_replaying): ... this, ...
9135 (record_btrace_clear_histories): ... and this.
9136 (init_record_btrace_ops): Init to_can_execute_reverse.
9137 * NEWS: Announce it.
9139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9141 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9142 (forward_target_decr_pc_after_break)
9143 (target_decr_pc_after_break): New.
9144 * target.c (forward_target_decr_pc_after_break)
9145 (target_decr_pc_after_break): New.
9146 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9147 instead of gdbarch_decr_pc_after_break.
9148 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9149 instead of gdbarch_decr_pc_after_break.
9150 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9151 instead of gdbarch_decr_pc_after_break.
9152 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9153 instead of gdbarch_decr_pc_after_break.
9154 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9155 instead of gdbarch_decr_pc_after_break.
9156 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9157 instead of gdbarch_decr_pc_after_break.
9159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9161 * btrace.c: Include regcache.h.
9162 (btrace_add_pc): New.
9163 (btrace_enable): Call btrace_add_pc.
9164 (btrace_is_empty): New.
9165 * btrace.h (btrace_is_empty): New.
9166 * record-btrace.c (require_btrace, record_btrace_info): Call
9169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9171 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9172 Support delta reads.
9173 (linux_disable_btrace): Change return type.
9174 * common/linux-btrace.h (linux_read_btrace): Change parameters
9175 and return type to allow error reporting. Update users.
9176 (linux_disable_btrace): Change return type. Update users.
9177 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9179 (btrace_error): New.
9180 (btrace_block) <begin>: Comment on BEGIN == 0.
9181 * btrace.c (btrace_compute_ftrace): Start from the end of
9183 (btrace_stitch_trace, btrace_clear_history): New.
9184 (btrace_fetch): Read delta trace, return if replaying.
9185 (btrace_clear): Move clear history code to btrace_clear_history.
9186 (parse_xml_btrace): Throw an error if parsing failed.
9187 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9188 and return type to allow error reporting.
9189 (target_read_btrace): Change parameters and return type to allow
9191 * target.c (target_read_btrace): Update.
9192 * remote.c (remote_read_btrace): Support delta reads. Pass
9194 * NEWS: Announce it.
9196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9198 * record.h (record_btrace_frame_unwind)
9199 (record_btrace_tailcall_frame_unwind): New declarations.
9200 * dwarf2-frame: Include record.h
9201 (dwarf2_frame_cfa): Throw an error for btrace frames.
9202 * record-btrace.c: Include hashtab.h.
9203 (btrace_get_bfun_name): New.
9204 (btrace_call_history): Call btrace_get_bfun_name.
9205 (struct btrace_frame_cache): New.
9207 (bfcache_hash, bfcache_eq, bfcache_new): New.
9208 (btrace_get_frame_function): New.
9209 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9210 (record_btrace_frame_this_id): Compute own id.
9211 (record_btrace_frame_prev_register): Provide PC, throw_error
9212 for all other registers.
9213 (record_btrace_frame_sniffer): Detect btrace frames.
9214 (record_btrace_tailcall_frame_sniffer): New.
9215 (record_btrace_frame_dealloc_cache): New.
9216 (record_btrace_frame_unwind): Add new functions.
9217 (record_btrace_tailcall_frame_unwind): New.
9218 (_initialize_record_btrace): Allocate cache.
9219 * btrace.c (btrace_clear): Call reinit_frame_cache.
9220 * NEWS: Announce it.
9222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9224 * record-btrace.c (record_btrace_set_replay)
9225 (record_btrace_goto_begin, record_btrace_goto_end)
9226 (record_btrace_goto): New.
9227 (init_record_btrace_ops): Initialize them.
9228 * NEWS: Announce it.
9230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9232 * record-btrace.c (record_btrace_find_new_threads)
9233 (record_btrace_thread_alive): New.
9234 (init_record_btrace_ops): Initialize to_find_new_threads and
9237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9239 * record-btrace.c (record_btrace_resume): New.
9240 (record_btrace_wait): New.
9241 (init_record_btrace_ops): Initialize to_wait and to_resume.
9243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9245 * record-btrace.c (record_btrace_xfer_partial)
9246 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9247 (record_btrace_allow_memory_access): New.
9248 (init_record_btrace_ops): Initialize new methods.
9249 * target.c (raw_memory_xfer_partial): Bail out if target reports
9250 that this memory is not available.
9252 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9254 * target.h (target_ops) <to_insert_breakpoint>
9255 <to_remove_breakpoint>: Add target_ops parameter.
9256 (forward_target_insert_breakpoint): New.
9257 (forward_target_remove_breakpoint): New.
9258 (memory_remove_breakpoint, memory_insert_breakpoint):
9259 Add target_ops parameter.
9260 * target.c (target_insert_breakpoint): Split into this and ...
9261 (forward_target_insert_breakpoint): ... this.
9262 (target_remove_breakpoint): Split into this and ...
9263 (forward_target_remove_breakpoint): ... this.
9264 (debug_to_insert_breakpoint): Add target_ops parameter.
9265 Call forward_target_insert_breakpoint.
9266 (debug_to_remove_breakpoint): Add target_ops parameter.
9267 Call forward_target_remove_breakpoint.
9268 (update_current_target): Do not inherit or default to_insert_breakpoint
9269 and to_remove_breakpoint.
9270 * corelow.c (ignore): Add target_ops parameter.
9271 * exec.c (ignore): Add target_ops parameter.
9272 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9273 Add target_ops parameter.
9274 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9275 Add target_ops parameter.
9276 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9277 Add target_ops parameter.
9278 * record-full.c (record_full_beneath_to_insert_breakpoint)
9279 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9280 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9281 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9282 (record_full_core_remove_breakpoint): Add target_ops parameter.
9284 (record_full_beneath_to_insert_breakpoint_ops)
9285 (record_full_beneath_to_remove_breakpoint_ops)
9286 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9287 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9288 tmp_to_remove_breakpoint_ops,
9289 record_full_beneath_to_insert_breakpoint_ops, and
9290 record_full_beneath_to_remove_breakpoint_ops.
9291 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9292 (m32r_remove_breakpoint): Add target_ops parameter.
9293 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9294 Add target_ops parameter.
9295 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9296 Add target_ops parameter.
9298 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9299 Markus Metzger <markus.t.metzger@intel.com>
9301 * record-btrace.c: Include frame-unwind.h.
9302 (record_btrace_frame_unwind_stop_reason)
9303 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9304 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9306 (init_record_btrace_ops): Install it.
9308 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9310 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9313 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9315 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9318 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9320 * frame-unwind.c: Include target.h.
9321 (frame_unwind_try_unwinder): New function with code from ...
9322 (frame_unwind_find_by_frame): ... here. New variable
9323 unwinder_from_target, call also target_get_unwinder)
9324 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9325 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9326 * target.h (struct target_ops): New fields to_get_unwinder and
9327 to_get_tailcall_unwinder.
9328 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9330 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9332 * record-btrace.c (record_btrace_fetch_registers)
9333 (record_btrace_store_registers)
9334 (record_btrace_to_prepare_to_store): New.
9335 (init_record_btrace_ops): Add the above.
9337 2014-01-16 Tom Tromey <tromey@redhat.com>
9339 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9340 * target.h (struct target_ops) <to_prepare_to_store>: Add
9342 (target_prepare_to_store): Add argument.
9343 * target.c (debug_to_prepare_to_store): Add argument.
9344 (update_current_target): Update.
9345 * remote.c (remote_prepare_to_store): Add 'self' argument.
9346 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9347 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9348 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9349 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9351 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9352 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9353 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9354 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9355 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9359 * btrace.h (replay) <replay>: New.
9360 (btrace_is_replaying): New.
9361 * btrace.c (btrace_clear): Free replay iterator.
9362 (btrace_is_replaying): New.
9363 * record-btrace.c (record_btrace_is_replaying): New.
9364 (record_btrace_info): Print insn number if replaying.
9365 (record_btrace_insn_history): Start at replay position.
9366 (record_btrace_call_history): Start at replay position.
9367 (init_record_btrace_ops): Init to_record_is_replaying.
9369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9371 * record-btrace.c (record_btrace_insn_history_range): Include
9373 (record_btrace_insn_history_from): Adjust range.
9374 (record_btrace_call_history_range): Include
9376 (record_btrace_call_history_from): Adjust range.
9377 * NEWS: Announce changes.
9379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9381 * record.h (enum record_print_flag)
9382 <record_print_indent_calls>: New.
9383 * record.c (get_call_history_modifiers): Recognize /c modifier.
9384 (_initialize_record): Document /c modifier.
9385 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9386 Reorder fields. Optionally indent the function name. Update
9388 * NEWS: Announce changes.
9390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9392 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9394 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9396 * btrace.c (ftrace_new_function): Start counting at one.
9397 * record-btrace.c (record_btrace_info): Adjust number of calls
9399 * NEWS: Announce it.
9401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9403 * record-btrace.c (btrace_call_history_insn_range): Print
9404 insn range as [begin, end].
9406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9408 * btrace.h (struct btrace_func_link): New.
9409 (enum btrace_function_flag): New.
9410 (struct btrace_inst): Rename to ...
9411 (struct btrace_insn): ...this. Update all users.
9412 (struct btrace_func) <ibegin, iend>: Remove.
9413 (struct btrace_func_link): New.
9414 (struct btrace_func): Rename to ...
9415 (struct btrace_function): ...this. Update all users.
9416 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9417 (number, level, flags>: New.
9418 (struct btrace_insn_iterator): Rename to ...
9419 (struct btrace_insn_history): ...this.
9421 (struct btrace_insn_iterator, btrace_call_iterator): New.
9422 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9423 (struct btrace_target_info) <begin, end, level>
9424 <insn_history, call_history>: New.
9425 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9426 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9427 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9428 (btrace_call_number, btrace_call_begin, btrace_call_end)
9429 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9430 (btrace_find_function_by_number, btrace_set_insn_history)
9431 (btrace_set_call_history): New.
9432 * btrace.c (btrace_init_insn_iterator)
9433 (btrace_init_func_iterator, compute_itrace): Remove.
9434 (ftrace_print_function_name, ftrace_print_filename)
9435 (ftrace_skip_file): Change
9437 (ftrace_init_func): Remove.
9438 (ftrace_debug): Use new btrace_function fields.
9439 (ftrace_function_switched): Also consider gaining and
9440 losing symbol information).
9441 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9442 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9443 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9445 (ftrace_new_function): Move. Remove debug print.
9446 (ftrace_update_lines, ftrace_update_insns): New.
9447 (ftrace_update_function): Check for call, ret, and jump.
9448 (compute_ftrace): Renamed to ...
9449 (btrace_compute_ftrace): ...this. Rewritten to compute call
9451 (btrace_fetch, btrace_clear): Updated.
9452 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9453 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9454 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9455 (btrace_call_number, btrace_call_begin, btrace_call_end)
9456 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9457 (btrace_find_function_by_number, btrace_set_insn_history)
9458 (btrace_set_call_history): New.
9459 * record-btrace.c (require_btrace): Use new btrace thread
9461 (record_btrace_info, btrace_insn_history)
9462 (record_btrace_insn_history, record_btrace_insn_history_range):
9463 Use new btrace thread info fields and new iterator.
9464 (btrace_func_history_src_line): Rename to ...
9465 (btrace_call_history_src_line): ...this. Use new btrace
9467 (btrace_func_history): Rename to ...
9468 (btrace_call_history): ...this. Use new btrace thread info
9469 fields and new iterator.
9470 (record_btrace_call_history, record_btrace_call_history_range):
9471 Use new btrace thread info fields and new iterator.
9473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9475 * frame.h (frame_id_build_unavailable_stack_special): New.
9476 * frame.c (frame_id_build_unavailable_stack_special): New.
9478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9480 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9481 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9482 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9484 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9485 (i386_insn_is_jump, i386_jmp_p): New.
9486 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9487 insn_is_jump to gdbarch.
9488 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9489 * gdbarch.h: Regenerated.
9490 * gdbarch.c: Regenerated.
9491 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9492 (default_insn_is_jump): New.
9493 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9494 (default_insn_is_jump): New.
9496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9498 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9500 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9501 (btrace_read_type) <btrace_read_new>: Change to ...
9502 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9506 * common/linux-btrace.c (linux_read_btrace): Free trace from
9509 2014-01-15 Doug Evans <dje@google.com>
9511 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9514 2014-01-15 Tom Tromey <tromey@redhat.com>
9516 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9517 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9518 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9519 (set_objfile_main_name): New function.
9520 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9521 language_of_main>: New fields.
9522 (set_objfile_main_name): Declare.
9523 * symtab.c (find_main_name): Loop over objfiles to find the main
9525 (set_main_name): Now static.
9526 (get_main_info): Add comment.
9527 * symtab.h (set_main_name): Don't declare.
9529 2014-01-15 Tom Tromey <tromey@redhat.com>
9531 * symtab.c (main_progspace_key): New global.
9532 (struct main_info): New.
9533 (name_of_main, language_of_main): Remove.
9534 (get_main_info, main_info_cleanup): New function.
9535 (set_main_name, main_name, main_language): Use get_main_info.
9536 (_initialize_symtab): Initialize main_progspace_key.
9538 2014-01-15 Tom Tromey <tromey@redhat.com>
9540 * dbxread.c (process_one_symbol): Update.
9541 * dwarf2read.c (read_partial_die): Update.
9542 * symfile.c (set_initial_language): Call main_language.
9543 * symtab.c (language_of_main): Now static.
9544 (set_main_name): Add 'lang' parameter.
9545 (find_main_name): Update.
9546 (main_language): New function.
9547 (symtab_observer_executable_changed): Update.
9548 * symtab.h (set_main_name): Update.
9549 (language_of_main): Remove.
9550 (main_language): Declare.
9552 2014-01-15 Tom Tromey <tromey@redhat.com>
9554 * symfile.c (init_entry_point_info): Use new "initialized" field.
9556 * objfiles.h (struct entry_point) <initialized>: New field.
9557 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9558 (struct objfile) <ei>: ...here. Remove.
9559 * objfiles.c (entry_point_address_query): Update.
9561 2014-01-15 Tom Tromey <tromey@redhat.com>
9563 * objfiles.c (entry_point_address_query): Relocate entry point
9565 (objfile_relocate1): Do not relocate entry point address.
9566 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9567 <the_bfd_section_index>: New field.
9568 * symfile.c (init_entry_point_info): Find the entry point's
9571 2014-01-15 Tom Tromey <tromey@redhat.com>
9573 * solib-frv.c (enable_break): Use entry_point_address_query.
9575 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9577 * NEWS: Add note on improved process record-replay on
9578 arm*-linux* targets.
9580 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9582 * arm-tdep.c (enum arm_record_result): New enum.
9583 (arm_record_unsupported_insn): New function.
9584 (arm_record_coproc_data_proc): Removed.
9585 (thumb2_record_ld_st_multiple): New function.
9586 (thumb2_record_ld_st_dual_ex_tbb): New function.
9587 (thumb2_record_data_proc_sreg_mimm): New function.
9588 (thumb2_record_ps_dest_generic): New function.
9589 (thumb2_record_branch_misc_cntrl): New function.
9590 (thumb2_record_str_single_data): New function.
9591 (thumb2_record_ld_mem_hints): New function.
9592 (thumb2_record_ld_word): New function.
9593 (thumb2_record_lmul_lmla_div): New function.
9594 (thumb2_record_decode_insn_handler): New function.
9595 (decode_insn): Add thumb32 instruction handlers.
9597 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9599 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9600 (struct arm_linux_record_tdep): Declare.
9601 (arm_canonicalize_syscall): New function.
9602 (arm_all_but_pc_registers_record): New function.
9603 (arm_linux_syscall_record): New function.
9604 (arm_linux_init_abi): Add syscall recording constructs.
9605 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9606 decoding. (arm_record_coproc_data_proc): Update arm syscall
9608 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9609 <arm_syscall_record>: New field.
9610 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9613 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9615 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9616 register for push instruction recording.
9618 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9620 * arm-tdep.c (thumb_record_misc): Update to correct logical
9621 error while recording ldm, ldmia and pop instructions.
9623 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9625 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9627 2014-01-15 Pedro Alves <palves@redhat.com>
9629 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9630 (go32_resume, go32_fetch_registers, store_register)
9631 (go32_store_registers, go32_prepare_to_store)
9632 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9633 (go32_create_inferior, go32_can_run, go32_terminal_init)
9634 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9637 2014-01-15 Tom Tromey <tromey@redhat.com>
9639 * target.h (async_callback_ftype): New typedef.
9640 (struct target_ops) <to_async>: Use it.
9642 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9644 * python/py-value.c (get_field_type): Remove unnecessary curly
9645 braces for single-statement if block.
9647 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9649 * python/py-type.c (convert_field): Add missing empty line
9652 2014-01-14 Doug Evans <dje@google.com>
9654 * symfile.h (expand_symtabs_matching): Renamed from
9655 expand_partial_symbol_names. Update prototype.
9656 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9657 * symfile.c (expand_symtabs_matching): Renamed from
9658 expand_partial_symbol_names. New args file_matcher, kind.
9659 Rename arg fun to symbol_matcher.
9660 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9661 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9662 ada_expand_partial_symbol_name.
9663 (ada_make_symbol_completion_list): Update to call
9664 expand_symtabs_matching.
9665 (ada_add_global_exceptions): Call expand_symtabs_matching.
9666 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9667 call map_symbol_filenames.
9668 * symtab.c (sources_info): Update to call map_symbol_filenames.
9669 (search_symbols): Call expand_symtabs_matching.
9670 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9671 (default_make_symbol_completion_list_break_on): Update to call
9672 expand_symtabs_matching.
9673 (make_source_files_completion_list): Update to call
9674 map_symbol_filenames.
9676 2014-01-14 Doug Evans <dje@google.com>
9678 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9679 (expand_symtabs_symbol_matcher_ftype): New typedef.
9680 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9681 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9682 * symfile.c (expand_partial_symbol_names): Update to use
9683 expand_symtabs_symbol_matcher_ftype.
9684 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9685 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9686 Arg name_matcher renamed to symbol_matcher.
9687 * psymtab.c (recursively_search_psymtabs): Update to use
9688 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9690 (expand_symtabs_matching_via_partial): Update to use
9691 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9692 Arg name_matcher renamed to symbol_matcher.
9694 2014-01-14 Doug Evans <dje@google.com>
9696 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9697 (map_partial_symbol_filenames): Ditto.
9698 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9699 (map_partial_symbol_filenames): Ditto.
9700 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9701 (map_partial_symbol_filenames): Ditto.
9702 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9703 (map_partial_symbol_filenames): Ditto.
9704 * symtab.c: Delete #include "psymtab.h".
9706 2014-01-14 Pedro Alves <palves@redhat.com>
9707 Tom Tromey <tromey@redhat.com>
9709 * infrun.c (use_displaced_stepping): Use find_record_target
9710 instead of RECORD_IS_USED.
9711 (adjust_pc_after_break): Use record_full_is_used instead of
9713 * record-btrace.c (record_btrace_open): Call record_preopen
9714 instead of checking RECORD_IS_USED.
9715 * record-full.c (record_full_shortname)
9716 (record_full_core_shortname): New globals.
9717 (record_full_is_used): New function.
9718 (find_full_open): Call record_preopen instead of checking
9720 (init_record_full_ops): Set the target's shortname to
9721 record_full_shortname.
9722 (init_record_full_core_ops): Set the target's shortname to
9723 record_full_core_shortname.
9724 * record-full.h (record_full_is_used): Declare.
9725 * record.c (find_record_target): Make extern.
9726 (record_preopen): New function.
9727 * record.h (RECORD_IS_USED): Delete macro.
9728 (find_record_target, record_preopen): Declare functions.
9730 2014-01-14 Yao Qi <yao@codesourcery.com>
9732 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9733 'len''s type to ULONGEST.
9734 (core_xfer_shared_libraries_aix): Likewise.
9735 * gdbarch.c, gdbarch.h: Regenerated.
9736 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9737 Change type of 'len' to ULONGEST.
9738 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9739 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9741 2014-01-14 Yao Qi <yao@codesourcery.com>
9743 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9744 type of 'len' to ULONGEST.
9745 (linux_xfer_osdata_processgroups): Likewise.
9746 (linux_xfer_osdata_threads): Likewise.
9747 (linux_xfer_osdata_fds): Likewise.
9748 (linux_xfer_osdata_isockets): Likewise.
9749 (linux_xfer_osdata_shm): Likewise.
9750 (linux_xfer_osdata_sem): Likewise.
9751 (linux_xfer_osdata_msg): Likewise.
9752 (linux_common_xfer_osdata): Likewise.
9753 (struct osdata_type) <getter>: Likewise.
9754 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9757 2014-01-14 Yao Qi <yao@codesourcery.com>
9759 * target.h (target_xfer_partial_ftype): Update.
9760 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9762 * aix-thread.c (aix_thread_xfer_partial): Change type of
9763 argument 'len' to ULONGEST.
9764 * auxv.c (procfs_xfer_auxv): Likewise.
9765 (ld_so_xfer_auxv): Likewise.
9766 (memory_xfer_auxv): Likewise.
9767 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9768 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9769 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9770 * corelow.c (core_xfer_partial): Likewise.
9771 * ctf.c (ctf_xfer_partial): Likewise.
9772 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9774 (darwin_read_dyld_info): Likewise.
9775 (darwin_xfer_partial): Likewise.
9776 * exec.c (section_table_xfer_memory_partial): Likewise.
9777 (exec_xfer_partial): Likewise.
9778 * exec.h (section_table_xfer_memory_partial): Update
9780 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9781 instead of plongest.
9782 (gnu_xfer_partial): Likewise.
9783 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9784 (ia64_hpux_xfer_solib_got): Likewise.
9785 (ia64_hpux_xfer_partial): Likewise.
9786 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9787 * inf-ptrace.c (inf_ptrace_xfer_partial):
9788 * inf-ttrace.c (inf_ttrace_xfer_partial):
9789 * linux-nat.c (linux_xfer_siginfo): Likewise.
9790 (linux_nat_xfer_partial): Likewise.
9791 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9792 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9793 * monitor.c (monitor_xfer_memory): Likewise.
9794 (monitor_xfer_partial): Likewise.
9795 * procfs.c (procfs_xfer_partial): Likewise.
9796 * record-full.c (record_full_xfer_partial): Likewise.
9797 (record_full_core_xfer_partial): Likewise.
9798 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9799 instead of plongest.
9800 (gdbsim_xfer_partial): Likewise.
9801 * remote.c (remote_xfer_partial): Likewise.
9802 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9803 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9805 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9806 (rs6000_xfer_shared_libraries): Likewise.
9807 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9808 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9809 (sparc_xfer_partial): Likewise.
9810 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9811 (spu_xfer_partial): Likewise.
9812 * spu-multiarch.c (spu_xfer_partial): Likewise.
9813 * target.c (target_read_live_memory): Likewise.
9814 (memory_xfer_live_readonly_partial): Likewise.
9815 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9816 (target_xfer_partial, default_xfer_partial): Likewise.
9817 (current_xfer_partial): Likewise.
9818 * tracepoint.c (tfile_xfer_partial): Likewise.
9819 * windows-nat.c (windows_xfer_memory): Likewise. Call
9820 pulongest instead of plongest.
9821 (windows_xfer_partial): Likewise.
9822 (windows_xfer_shared_libraries): Likewise.
9824 2014-01-14 Yao Qi <yao@codesourcery.com>
9826 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9827 target_xfer_partial_ftype.
9829 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9833 * valops.c (value_struct_elt_bitpos): New function
9834 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9835 object to 'None' if the field name is an empty string ("").
9836 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9837 attribute to look for a field when 'name' is 'None'.
9838 (get_field_type): New function
9840 2014-01-13 Doug Evans <dje@google.com>
9843 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9844 (try_open_dwop_file): Ditto.
9845 * gdb_bfd.c: #include "vec.h".
9846 (bfdp): New typedef.
9847 (struct gdb_bfd_data): New member included_bfds.
9848 (gdb_bfd_unref): Unref all included bfds.
9849 (gdb_bfd_record_inclusion): New function.
9850 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9852 2014-01-13 Tom Tromey <tromey@redhat.com>
9854 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9856 2014-01-13 Tom Tromey <tromey@redhat.com>
9858 * defs.h (use_windows): Remove.
9859 * gdb.c (main): Update.
9860 * main.c (captured_main, gdb_main): Update.
9861 * main.h (struct captured_main_args) <use_windows>: Remove.
9862 * top.c (use_windows): Remove.
9864 2014-01-13 Tom Tromey <tromey@redhat.com>
9866 * defs.h (deprecated_flush_hook): Remove.
9868 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9871 * linux-thread-db.c (try_thread_db_load): Add parameter
9872 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9873 (try_thread_db_load_from_pdir_1): Move it there from here.
9874 (try_thread_db_load_from_sdir): Update caller.
9875 (try_thread_db_load_from_dir): Move it there from here.
9877 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9879 * regformats/regdat.sh: Always rewrite the register file.
9881 2014-01-13 Pedro Alves <palves@redhat.com>
9883 * Makefile.in (CHECK_HEADERS): New variable.
9884 (check-headers:): New rule.
9886 2014-01-13 Tom Tromey <tromey@redhat.com>
9888 * cli/cli-setshow.c (do_set_command): Update.
9889 * defs.h (deprecated_set_hook): Remove.
9890 * top.c (deprecated_set_hook): Remove.
9892 2014-01-13 Pedro Alves <palves@redhat.com>
9894 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9895 the tracepoint if the PC is a pseudo-register.
9897 2014-01-13 Tom Tromey <tromey@redhat.com>
9899 * defs.h (XCALLOC): Remove.
9900 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9901 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9902 * dwarf2loc.c (allocate_piece_closure): Likewise.
9903 * elfread.c (elf_symfile_segments): Likewise.
9904 (elf_symfile_segments): Likewise.
9905 * gdbtypes.c (copy_type_recursive): Likewise.
9906 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9907 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9908 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9910 * mt-tdep.c (mt_gdbarch_init): Likewise.
9911 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9913 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9914 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9915 * registry.c (registry_alloc_data): Likewise.
9916 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9917 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9918 * serial.c (serial_fdopen_ops): Likewise.
9919 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9921 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9922 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9925 2014-01-13 Tom Tromey <tromey@redhat.com>
9927 * defs.h (XMALLOC): Remove.
9928 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9929 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9930 * cli-out.c (struct ui_out *): Likewise.
9931 * cli/cli-dump.c (add_dump_command): Likewise.
9932 (add_dump_command): Likewise.
9933 * complaints.c (get_complaints): Likewise.
9934 (find_complaint): Likewise.
9935 * dwarf2-frame.c (execute_cfa_program): Likewise.
9936 * dwarf2read.c (abbrev_table_read_table): Likewise.
9937 * gdbarch.sh: Likewise.
9938 * gdbarch.c: Rebuild.
9939 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9940 * interps.c (interp_new): Likewise.
9941 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9942 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9943 * mi/mi-console.c (mi_console_file_new): Likewise.
9944 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9945 * mi/mi-out.c (mi_out_new): Likewise.
9946 * mi/mi-parse.c (mi_parse): Likewise.
9947 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9948 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9949 * observer.c (xalloc_observer_list_node): Likewise.
9950 * regcache.c (regcache_xmalloc_1): Likewise.
9951 * reggroups.c (reggroup_new): Likewise.
9952 (_initialize_reggroup): Likewise.
9953 * registry.c (register_data_with_cleanup): Likewise.
9954 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9955 * ser-base.c (serial_ttystate): Likewise.
9956 * ser-mingw.c (make_pipe_state): Likewise.
9957 * ser-pipe.c (pipe_open): Likewise.
9958 * serial.c (serial_open): Likewise.
9959 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9960 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9961 (tui_alloc_win_info): Likewise.
9962 (tui_add_content_elements): Likewise.
9963 * tui/tui-file.c (tui_file_new): Likewise.
9964 * tui/tui-out.c (tui_out_new): Likewise.
9965 * ui-file.c (mem_file_new): Likewise.
9966 * ui-out.c (push_level): Likewise.
9967 (make_cleanup_ui_out_end): Likewise.
9968 (append_header_to_list): Likewise.
9969 (ui_out_new): Likewise.
9970 * user-regs.c (user_reg_add_builtin): Likewise.
9972 2014-01-13 Tom Tromey <tromey@redhat.com>
9974 * defs.h (XZALLOC): Remove.
9975 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9976 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9977 (get_ada_tasks_inferior_data): Likewise.
9978 * auto-load.c (get_auto_load_pspace_data): Likewise.
9979 * auxv.c (get_auxv_inferior_data): Likewise.
9980 * bfd-target.c (target_bfd_reopen): Likewise.
9981 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9982 (deprecated_insert_raw_breakpoint): Likewise.
9983 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9984 * corelow.c (core_open): Likewise.
9985 * darwin-nat.c (darwin_check_new_threads): Likewise.
9986 (darwin_attach_pid): Likewise.
9987 * dummy-frame.c (dummy_frame_push): Likewise.
9988 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9989 * dwarf2loc.c (allocate_piece_closure): Likewise.
9990 * elfread.c (elf_symfile_segments): Likewise.
9991 * eval.c (ptrmath_type_p): Likewise.
9992 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9993 * gdbtypes.c (alloc_type_arch): Likewise.
9994 (alloc_type_instance): Likewise.
9995 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9996 * inf-child.c (inf_child_can_use_agent): Likewise.
9997 * inflow.c (get_inflow_inferior_data): Likewise.
9998 * infrun.c (save_infcall_suspend_state): Likewise.
9999 * jit.c (jit_reader_load): Likewise.
10000 (get_jit_objfile_data): Likewise.
10001 (get_jit_program_space_data): Likewise.
10002 (jit_object_open_impl): Likewise.
10003 (jit_symtab_open_impl): Likewise.
10004 (jit_block_open_impl): Likewise.
10005 (jit_frame_sniffer): Likewise.
10006 * linux-fork.c (add_fork): Likewise.
10007 * maint.c (make_command_stats_cleanup): Likewise.
10008 * objfiles.c (get_objfile_pspace_data): Likewise.
10009 * opencl-lang.c (struct lval_closure): Likewise.
10010 * osdata.c (osdata_start_osdata): Likewise.
10011 * progspace.c (new_address_space): Likewise.
10012 (add_program_space): Likewise.
10013 * remote-sim.c (get_sim_inferior_data): Likewise.
10014 * sh-tdep.c (sh_gdbarch_init): Likewise.
10015 * skip.c (Ignore): Likewise.
10016 (skip_delete_command): Likewise.
10017 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10018 (library_list_start_library): Likewise.
10019 (solib_aix_current_sos): Likewise.
10020 * solib-darwin.c (get_darwin_info): Likewise.
10021 (darwin_current_sos): Likewise.
10022 * solib-dsbt.c (get_dsbt_info): Likewise.
10023 * solib-ia64-hpux.c (new_so_list): Likewise.
10024 (ia64_hpux_get_solib_linkage_addr): Likewise.
10025 * solib-spu.c (append_ocl_sos): Likewise.
10026 (spu_current_sos): Likewise.
10027 * solib-svr4.c (get_svr4_info): Likewise.
10028 (svr4_keep_data_in_core): Likewise.
10029 (library_list_start_library): Likewise.
10030 (svr4_default_sos): Likewise.
10031 (svr4_read_so_list): Likewise.
10032 * solib-target.c (library_list_start_library): Likewise.
10033 (solib_target_current_sos): Likewise.
10034 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10035 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10036 * symfile.c (default_symfile_segments): Likewise.
10037 * target-descriptions.c (tdesc_data_init): Likewise.
10038 (tdesc_create_reg): Likewise.
10039 (struct tdesc_type *): Likewise.
10040 (tdesc_create_vector): Likewise.
10041 (tdesc_set_struct_size): Likewise.
10042 (struct tdesc_type *): Likewise.
10043 (tdesc_free_feature): Likewise.
10044 (tdesc_create_feature): Likewise.
10045 * windows-nat.c (windows_add_thread): Likewise.
10046 (windows_make_so): Likewise.
10047 * xml-support.c (gdb_xml_body_text): Likewise.
10048 (gdb_xml_create_parser_and_cleanup): Likewise.
10049 (xml_process_xincludes): Likewise.
10050 * xml-syscall.c (allocate_syscalls_info): Likewise.
10051 (syscall_create_syscall_desc): Likewise.
10053 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10055 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10056 function, with code from i386_stap_parse_special_token.
10057 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10058 (i386_stap_parse_special_token): Move code to the two functions
10059 above; simplify it.
10061 2014-01-09 Pedro Alves <palves@redhat.com>
10062 Hui Zhu <hui@codesourcery.com>
10065 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10066 bp_err_string. Don't mark the location shlib_disabled if the
10067 error thrown wasn't a generic or memory error. Catch errors
10068 thrown while inserting breakpoints in overlayed code. Output
10069 error message of software breakpoints.
10070 * remote.c (remote_insert_breakpoint): If this breakpoint has
10071 target-side commands but this stub doesn't support Z0 packets,
10072 throw NOT_SUPPORTED_ERROR error.
10073 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10074 * target.h (target_insert_breakpoint): Extend comment.
10075 (target_insert_hw_breakpoint): Add comment.
10077 2014-01-08 Pedro Alves <palves@redhat.com>
10079 * remote.c (remote_add_thread): Add threads silently if starting
10081 (remote_notice_new_inferior): If in all-stop, and starting up,
10082 don't call notice_new_inferior.
10083 (get_current_thread): New function, factored out from ...
10084 (add_current_inferior_and_thread): ... this. Adjust.
10085 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10086 found any thread, then select the remote's current thread as GDB's
10087 current thread too.
10089 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10091 * NEWS: Create a new section for the next release branch.
10092 Rename the section of the current branch, now that it has
10095 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10097 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10098 * version.in: Bump version to 7.7.50.DATE-cvs.
10100 2014-01-08 Yao Qi <yao@codesourcery.com>
10102 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10103 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10104 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10106 2014-01-08 Yao Qi <yao@codesourcery.com>
10108 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10109 return value of bfd_get_filename to symbol_file_add_from_bfd.
10111 2014-01-08 Pierre Muller <muller@sourceware.org>
10114 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10115 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10116 to prim_record_mininal_symbol_and_info.
10117 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10118 in call to prim_record_minimal_symbol_and_info.
10119 (read_pe_exported_syms): Set index field of section_data.
10121 2014-01-07 Andrew Pinski <apinski@cavium.com>
10123 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10124 * features/aarch64.c: Regenerate.
10126 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10128 * target.c (return_null): Define.
10129 (update_current_target): Use it instead of return_zero for
10130 functions that return a pointer.
10132 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10134 * source.c (add_path): Fix check for duplicated paths in the previously
10137 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10139 * ada-lang.c: Remove duplicated include statements.
10140 * alphabsd-nat.c: Ditto.
10141 * amd64-darwin-tdep.c: Ditto.
10142 * amd64fbsd-nat.c: Ditto.
10143 * auto-load.c: Ditto.
10145 * breakpoint.c: Ditto.
10146 * dbxread.c: Ditto.
10147 * fork-child.c: Ditto.
10148 * gdb_usleep.c: Ditto.
10149 * i386-darwin-tdep.c: Ditto.
10150 * i386fbsd-nat.c: Ditto.
10152 * inferior.c: Ditto.
10153 * jv-lang.c: Ditto.
10154 * linux-nat.c: Ditto.
10155 * linux-tdep.c: Ditto.
10156 * m68kbsd-nat.c: Ditto.
10157 * m68klinux-nat.c: Ditto.
10158 * microblaze-tdep.c: Ditto.
10159 * mips-linux-tdep.c: Ditto.
10160 * mn10300-tdep.c: Ditto.
10161 * nto-tdep.c: Ditto.
10162 * opencl-lang.c: Ditto.
10164 * printcmd.c: Ditto.
10165 * regcache.c: Ditto.
10166 * remote-m32r-sdi.c: Ditto.
10168 * symfile.c: Ditto.
10170 * tilegx-linux-nat.c: Ditto.
10171 * tilegx-tdep.c: Ditto.
10172 * tracepoint.c: Ditto.
10174 * vaxbsd-nat.c: Ditto.
10175 * windows-nat.c: Ditto.
10176 * xtensa-tdep.c: Ditto.
10178 2014-01-07 Yao Qi <yao@codesourcery.com>
10180 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10182 2014-01-07 Yao Qi <yao@codesourcery.com>
10183 Joel Brobecker <brobecker@adacore.com>
10185 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10186 (pdc_write_regs): Likewise.
10187 (fetch_regs_kernel_thread): Likewise.
10188 (store_regs_kernel_thread): Likewise.
10190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10192 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10193 tagged type objects to their actual type.
10195 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10197 * ada-valprint.c (print_field_values): Add "language" parameter.
10198 Update calls to print_field_values and print_variant_part.
10199 Pass new parameter "language" in call to val_print instead
10200 of "current_language". Replace call to ada_val_print by call
10202 (print_variant_part): Add "language" parameter.
10203 (ada_val_print_struct_union): Update call to print_field_values.
10205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10207 * ada-valprint.c (ui_memcpy): Delete.
10208 (ada_print_floating): Update documentation. Add empty line
10209 between between function documentation and implementation.
10210 Delete variable "buffer". Use ui_file_xstrdup in place of
10211 ui_file_put. Minor adjustments following this change.
10213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10215 * ada-valprint.c (ada_val_print_string): New function,
10216 extracted from ada_val_print_array.
10217 (ada_val_print_array): Replace extracted code by call
10218 to ada_val_print_string followed by a return. Move
10219 "else" branch to the function's top block.
10221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10223 * ada-valprint.c (ada_val_print_array): Move implementation
10224 down. Rename parameter "offset" and "val" into "offset_aligned"
10225 and "original_value" respectively. Add parameter "offset".
10227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10229 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10230 re-organizing the code. Change the "???" message printed
10231 when target type is a TYPE_CODE_UNDEF into
10232 "<ref to undefined type>".
10234 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10236 * ada-valprint.c (print_record): Delete, implementation inlined...
10237 (ada_val_print_struct_union): ... here. Remove call to
10238 ada_check_typedef in inlined implementation.
10240 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10242 * ada-valprint.c (ada_val_print_gnat_array): New function,
10243 extracted from ada_val_print_1;
10244 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10245 (ada_val_print_flt, ada_val_print_struct_union)
10246 (ada_val_print_ref): Likewise.
10247 (ada_val_print_1): Delete variables i and elttype.
10248 Replace extracted-out code by call to corresponding
10251 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10253 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10255 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10257 * ada-valprint.c (ada_val_print_1): Replace calls to
10258 ada_val_print_1 by calls to val_print.
10260 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10262 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10263 Update calls to self accordingly. Replace calls to c_val_print
10264 by calls to val_print.
10266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10268 * ada-valprint.c (print_record): Delete declaration.
10269 (adjust_type_signedness, ada_val_print_1): Likewise.
10270 (ada_val_print): Move function implementation down.
10271 (print_variant_part, print_field_values, print_record):
10272 Move function implementation up.
10274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10276 * python/py-type.c (typy_get_name): New function.
10277 (type_object_getset): Add entry for attribute "name".
10278 * NEWS: Add entry mentioning this new attribute.
10280 2014-01-07 Yao Qi <yao@codesourcery.com>
10282 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10285 2014-01-07 Yao Qi <yao@codesourcery.com>
10287 * gnu-nat.c (info_port_rights): Add qualifier const to
10290 2014-01-07 Yao Qi <yao@codesourcery.com>
10292 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10294 2014-01-07 Yao Qi <yao@codesourcery.com>
10296 * gnu-nat.c (make_inf) Update declaration.
10297 (make_inf): Make it static.
10298 (inf_set_traced): Likewise.
10299 (inf_port_to_thread, inf_task_died_status): Likewise.
10301 2014-01-07 Yao Qi <yao@codesourcery.com>
10303 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10305 2014-01-07 Yao Qi <yao@codesourcery.com>
10307 * gnu-nat.c (_initialize_gnu_nat): Declare.
10309 2014-01-07 Yao Qi <yao@codesourcery.com>
10311 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10313 (struct gdbarch_info) <byte_order>: Change type to
10315 <byte_order_for_code>: Likewise.
10316 * gdbarch.c, gdbarch.h: Regenerated.
10318 2014-01-06 Sasha Smundak <asmundak@google.com>
10320 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10322 2014-01-06 Tom Tromey <tromey@redhat.com>
10324 * doublest.c (convert_doublest_to_floatformat): Use const, not
10326 * somread.c (som_symtab_read): Likewise.
10328 2014-01-07 Hui Zhu <hui@codesourcery.com>
10330 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10331 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10332 (gdb_bfd_fopen): Ditto.
10333 (gdb_bfd_openr): Ditto.
10334 (gdb_bfd_openw): Ditto.
10335 (gdb_bfd_openr_iovec): Ditto.
10336 (gdb_bfd_fdopenr): Ditto.
10337 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10338 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10340 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10342 * symfile-mem.c (symbol_file_add_from_memory): Removed
10343 gdb_bfd_stash_filename.
10345 2014-01-03 Doug Evans <dje@google.com>
10347 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10350 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10352 Update year range in copyright notice of all files.
10354 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10356 * top.c (print_gdb_version): Set copyright year to 2014.
10358 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10360 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10362 For older changes see ChangeLog-2013.
10368 version-control: never