1 2014-07-11 Gary Benson <gbenson@redhat.com>
3 * amd64-linux-nat.c (x86_linux_create_target): New function.
4 (x86_linux_add_target): Likewise.
5 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6 * i386-linux-nat.c (x86_linux_create_target): New function.
7 (x86_linux_add_target): Likewise.
8 (_initialize_i386_linux_nat): Delegate to the above new functions.
10 2014-07-11 Gary Benson <gbenson@redhat.com>
12 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
13 (ps_get_thread_area): Delegate to the above in 32-bit mode.
14 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
15 (ps_get_thread_area): Delegate to the above.
17 2014-07-11 Gary Benson <gbenson@redhat.com>
19 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
20 x86_linux_read_description. All uses updated. amd64-specific
21 code conditionalized. Conditionalized i386-specific code added.
22 Redundant cast removed.
23 * i386-linux-nat.c (i386_linux_read_description): Renamed to
24 x86_linux_read_description. All uses updated. i386-specific
25 code conditionalized. Conditionalized amd64-specific code added.
26 One sizeof replaced with the actual type it is describing.
28 2014-07-11 Gary Benson <gbenson@redhat.com>
30 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
31 x86_linux_dr_get. All uses updated.
32 (amd64_linux_dr_set): Renamed to
33 x86_linux_dr_set. All uses updated.
34 (amd64_linux_dr_get_addr): Renamed to
35 x86_linux_dr_get_addr. All uses updated.
36 (amd64_linux_dr_get_control): Renamed to
37 x86_linux_dr_get_control. All uses updated.
38 (amd64_linux_dr_get_status): Renamed to
39 x86_linux_dr_get_status. All uses updated.
40 (amd64_linux_dr_set_control): Renamed to
41 x86_linux_dr_set_control. All uses updated.
42 (amd64_linux_dr_set_addr): Renamed to
43 x86_linux_dr_set_addr. All uses updated.
44 (amd64_linux_prepare_to_resume): Renamed to
45 x86_linux_prepare_to_resume. All uses updated.
46 (amd64_linux_new_thread): Renamed to
47 x86_linux_new_thread. All uses updated.
48 (amd64_linux_new_fork): Renamed to
49 x86_linux_new_fork. All uses updated.
50 (amd64_linux_child_post_startup_inferior): Renamed to
51 x86_linux_child_post_startup_inferior. All uses updated.
52 (amd64_linux_enable_btrace): Renamed to
53 x86_linux_enable_btrace. All uses updated.
54 (amd64_linux_disable_btrace): Renamed to
55 x86_linux_disable_btrace. All uses updated.
56 (amd64_linux_teardown_btrace): Renamed to
57 x86_linux_teardown_btrace. All uses updated.
58 (amd64_linux_read_btrace): Renamed to
59 x86_linux_read_btrace. All uses updated.
60 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
61 x86_linux_dr_get. All uses updated.
62 (i386_linux_dr_set): Renamed to
63 x86_linux_dr_set. All uses updated.
64 (i386_linux_dr_get_addr): Renamed to
65 x86_linux_dr_get_addr. All uses updated.
66 (i386_linux_dr_get_control): Renamed to
67 x86_linux_dr_get_control. All uses updated.
68 (i386_linux_dr_get_status): Renamed to
69 x86_linux_dr_get_status. All uses updated.
70 (i386_linux_dr_set_control): Renamed to
71 x86_linux_dr_set_control. All uses updated.
72 (i386_linux_dr_set_addr): Renamed to
73 x86_linux_dr_set_addr. All uses updated.
74 (i386_linux_prepare_to_resume): Renamed to
75 x86_linux_prepare_to_resume. All uses updated.
76 (i386_linux_new_thread): Renamed to
77 x86_linux_new_thread. All uses updated.
78 (i386_linux_new_fork): Renamed to
79 x86_linux_new_fork. All uses updated.
80 (i386_linux_child_post_startup_inferior): Renamed to
81 x86_linux_child_post_startup_inferior. All uses updated.
82 (i386_linux_enable_btrace): Renamed to
83 x86_linux_enable_btrace. All uses updated.
84 (i386_linux_disable_btrace): Renamed to
85 x86_linux_disable_btrace. All uses updated.
86 (i386_linux_teardown_btrace): Renamed to
87 x86_linux_teardown_btrace. All uses updated.
88 (i386_linux_read_btrace): Renamed to
89 x86_linux_read_btrace. All uses updated.
91 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
93 * remote.c (extended_remote_post_attach): New function.
94 (init_extended_remote_ops): Install it as to_post_attach method.
96 2014-07-09 Pedro Alves <palves@redhat.com>
98 * infcmd.c (attach_command_post_wait): Don't call
99 target_terminal_inferior here.
100 (attach_command): Call it here instead.
102 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
104 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
106 * c-varobj.c (c_is_path_expr_parent): New function, moved core
107 from varobj.c, with additional checks.
108 (c_varobj_ops): Fill in is_path_expr_parent field.
109 (cplus_varobj_ops): Fill in is_path_expr_parent field.
110 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
112 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
114 (varobj_default_is_path_expr_parent): New function.
115 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
116 (varobj_default_is_path_expr_parent): Declare new function.
118 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
120 * infcmd.c (finish_backward): Turn internal error into normal error.
122 2014-07-07 Pedro Alves <palves@redhat.com>
125 * remote.c (async_handle_remote_sigint)
126 (async_handle_remote_sigint_twice): Call
127 gdb_call_async_signal_handler instead of
128 mark_async_signal_handler.
130 2014-07-07 Tom Tromey <tromey@redhat.com>
132 * target-delegates.c: Rebuild.
133 * target.c (target_info_record): Remove.
134 * record.c (info_record_command): Unconditionally call
136 * target.h (struct target_ops) <to_info_record>: Use
137 TARGET_DEFAULT_IGNORE.
138 (target_info_record): Remove.
140 2014-07-07 Tom Tromey <tromey@redhat.com>
142 * target.h (struct target_ops) <to_get_thread_local_address>: Use
143 TARGET_DEFAULT_NORETURN.
144 * target.c (generic_tls_error): New function.
145 (target_translate_tls_address): Don't search target stack.
146 * target-delegates.c: Rebuild.
147 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
149 * linux-thread-db.c (thread_db_get_thread_local_address):
150 Unconditionally call beneath target.
152 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
154 * cli/cli-logging.c (pop_output_files): Assign targerr to
157 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
159 * MAINTAINERS (Write After Approval): Update my email address.
161 2014-07-02 Gary Benson <gbenson@redhat.com>
163 * proc-service.c (ps_xfer_memory): Update comment.
164 (ps_pstop): Remove unused function.
165 (ps_pcontinue): Likewise.
166 (ps_lstop): Likewise.
167 (ps_lcontinue): Likewise.
168 (ps_lgetxregsize): Likewise.
169 (ps_lgetxregs): Likewise.
170 (ps_lsetxregs): Likewise.
172 (ps_ptread): Likewise.
173 (ps_ptwrite): Likewise.
175 2014-07-01 Mark Wielaard <mjw@redhat.com>
177 * dwarf2read.c (add_array_cv_type): New function.
178 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
179 (read_tag_volatile_type): Likewise.
181 2014-07-01 Tom Tromey <tromey@redhat.com>
183 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
184 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
185 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
186 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
187 * command.h (cmd_cfunc_ftype): Move earlier.
188 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
189 (add_com, add_info): Use cmd_cfunc_ftype.
191 2014-06-30 Tom Tromey <tromey@redhat.com>
193 * symtab.c (operator_chars): Make parameters and return type
195 (file_matches): Make "files" const.
196 (struct search_symbols_data) <files>: Now const.
197 (search_symbols): Make "regexp" and "files" parameters const.
199 (symtab_symbol_info): Remove cast.
200 (rbreak_command): Update.
201 * symtab.h (search_symbols): Update.
203 2014-06-27 Yao Qi <yao@codesourcery.com>
205 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
206 Change parameter type to 'struct thread_info *'. Caller
208 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
210 * dummy-frame.c (struct dummy_frame_id): New.
211 (dummy_frame_id_eq): New function.
212 (struct dummy_frame) <id>: Change its type to 'struct
214 (dummy_frame_push): Add parameter ptid and save it in
216 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
218 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
220 (lookup_dummy_frame): Change parameter type to 'struct
221 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
222 instead of frame_id_eq.
223 (dummy_frame_pop): Add parameter ptid. Callers updated.
224 Update comments. Compose dummy_frame_id and pass it to
226 (dummy_frame_discard): Add parameter ptid.
227 (dummy_frame_sniffer): Compose dummy_frame_id and call
228 dummy_frame_id_eq instead of frame_id_eq.
229 (fprint_dummy_frames): Print ptid.
230 * dummy-frame.h: Remove comments.
231 (dummy_frame_push): Add ptid in declaration.
232 (dummy_frame_pop, dummy_frame_discard): Likewise.
234 2014-06-26 Tom Tromey <tromey@redhat.com>
236 * cli/cli-cmds.c (error_no_arg): Make "why" const.
237 * command.h (error_no_arg): Update.
239 2014-06-26 Tom Tromey <tromey@redhat.com>
241 * cli/cli-setshow.c (do_set_command): Make "arg" const.
242 (do_show_command): Make "arg" const.
243 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
245 2014-06-26 Tom Tromey <tromey@redhat.com>
247 * record-full.c (record_full_get_bookmark): Make "args" const.
248 (record_full_goto_bookmark): Make "raw_bookmark" const.
249 * record.c (record_goto): New function.
250 (cmd_record_goto): Use it. Now static.
251 * record.h (record_goto): Declare.
252 (cmd_record_goto): Remove declaration.
253 * target-delegates.c: Rebuild.
254 * target.h (struct target_ops) <to_get_bookmark,
255 to_goto_bookmark>: Make parameter const.
257 2014-06-26 Tom Tromey <tromey@redhat.com>
259 * defs.h (generic_load): Update.
260 * m32r-rom.c (m32r_load_gen): Make "filename" const.
261 * monitor.c (monitor_load): Make "args" const.
262 * remote-m32r-sdi.c (m32r_load): Make "args" const.
263 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
265 (mips_load): Make "file" const.
266 * remote-sim.c (gdbsim_load): Make "args" const.
267 * remote.c (remote_load): Make "name" const.
268 * symfile.c (generic_load): Make "args" const.
269 * target-delegates.c: Rebuild.
270 * target.c (target_load): Make "arg" const.
271 (debug_to_load): Make "args" const.
272 * target.h (struct target_ops) <to_load>: Make parameter const.
273 (target_load): Update.
275 2014-06-26 Tom Tromey <tromey@redhat.com>
278 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
279 (dwarf2_physname, read_partial_die)
280 (guess_partial_die_structure_name, fixup_partial_die)
281 (guess_full_die_structure_name, anonymous_struct_prefix)
282 (dwarf2_name): Use per-BFD obstack.
284 2014-06-26 Yao Qi <yao@codesourcery.com>
286 * dummy-frame.c (dummy_frame_sniffer): Move local variables
287 dummyframe and this_id into inner block below.
289 2014-06-26 Yao Qi <yao@codesourcery.com>
291 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
292 with "signal_pass[0]" in the initialization of signal_pass.
294 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
296 * record-btrace.c (record_btrace_generating_corefile)
297 (record_btrace_prepare_to_generate_core)
298 (record_btrace_done_generating_core): New.
299 (record_btrace_xfer_partial, record_btrace_fetch_registers)
300 (record_btrace_store_registers, record_btrace_prepare_to_store):
301 Forward request when generating a core file.
302 (record_btrace_open): Set record_btrace_generating_corefile to zero.
303 (init_record_btrace_ops): Set to_prepare_to_generate_core and
304 to_done_generating_core.
306 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
308 * target.h (target_ops) <to_prepare_to_generate_core>
309 <to_done_generating_core>: New.
310 (target_prepare_to_generate_core, target_done_generating_core): New.
311 * target.c (target_prepare_to_generate_core)
312 (target_done_generating_core): New.
313 * target-delegates.c: Regenerate.
314 * gcore.c: (write_gcore_file): Rename to ...
315 (write_gcore_file_1): ...this.
316 (write_gcore_file): Call target_prepare_to_generate_core
317 and target_done_generating_core.
319 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
321 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
322 * gcore.c (write_gcore_file): Free memory returned from
324 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
325 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
327 2014-06-24 Yao Qi <yao@codesourcery.com>
329 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
330 (arm_linux_init_abi): Set skip_trampoline_code with
331 gdbarch_skip_trampoline_code instead of
332 find_solib_trampoline_target.
334 2014-06-24 Yao Qi <yao@codesourcery.com>
336 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
337 arm_skip_bx_reg returns non-zero.
339 2014-06-24 Yao Qi <yao@codesourcery.com>
341 * arm-tdep.c (arm_skip_bx_reg): New function.
342 (arm_skip_stub): Call arm_skip_bx_reg.
344 2014-06-23 Don Breazeal <donb@codesourcery.com>
346 * MAINTAINERS: Add myself as write-after-approval maintainer.
348 2014-06-23 Pedro Alves <palves@redhat.com>
350 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
351 DR_CONTROL before setting DR0..DR3.
352 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
353 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
354 bits of DR_CONTROL related to the debug register slot being
355 disabled. If all slots are vacant, clear local slowdown as well,
356 and assert DR_CONTROL is 0.
358 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
360 * python/lib/gdb/command/xmethods.py
361 (get_method_matchers_in_loci): Lookup xmethod matchers in the
362 current progspace only if the string "progspace" matches LOCUS_RE.
364 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
366 Fix --with-system-readline with readline-6.3 patch 5.
367 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
368 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
371 2014-06-20 Tom Tromey <tromey@redhat.com>
373 * dwarf2read.c (dw2_get_real_path): Use correct type in
375 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
377 2014-06-20 Gary Benson <gbenson@redhat.com>
379 * common/gdb_thread_db.h: Moved to nat. All includes updated.
380 * common/glibc_thread_db.h: Likewise.
381 * common/i386-cpuid.h: Likewise.
382 * common/i386-gcc-cpuid.h: Likewise.
383 * common/linux-btrace.h: Likewise.
384 * common/linux-osdata.h: Likewise.
385 * common/linux-procfs.h: Likewise.
386 * common/linux-ptrace.h: Likewise.
387 * common/mips-linux-watch.h: Likewise.
388 * common/linux-btrace.c: Moved to nat.
389 * common/linux-osdata.c: Likewise.
390 * common/linux-procfs.c: Likewise.
391 * common/linux-ptrace.c: Likewise.
392 * common/mips-linux-watch.c: Likewise.
393 * nat/gdb_thread_db.h: Moved from common.
394 * nat/glibc_thread_db.h: Likewise.
395 * nat/i386-cpuid.h: Likewise.
396 * nat/i386-gcc-cpuid.h: Likewise.
397 * nat/linux-btrace.c: Likewise.
398 * nat/linux-btrace.h: Likewise.
399 * nat/linux-osdata.c: Likewise.
400 * nat/linux-osdata.h: Likewise.
401 * nat/linux-procfs.c: Likewise.
402 * nat/linux-procfs.h: Likewise.
403 * nat/linux-ptrace.c: Likewise.
404 * nat/linux-ptrace.h: Likewise.
405 * nat/mips-linux-watch.c: Likewise.
406 * nat/mips-linux-watch.h: Likewise.
407 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
408 (object file files): Reordered.
409 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
410 of glibc_thread_db.h.
412 2014-06-20 Gary Benson <gbenson@redhat.com>
414 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
415 (i386_dr_low_type): Moved to nat/i386-dregs.h.
416 (i386_dr_low): Likewise.
417 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
418 (i386_dr_low_set_addr): Likewise.
419 (i386_dr_low_get_addr): Likewise.
420 (i386_dr_low_can_set_control): Likewise.
421 (i386_dr_low_set_control): Likewise.
422 (i386_dr_low_get_control): Likewise.
423 (i386_dr_low_get_status): Likewise.
424 (i386_get_debug_register_length): Likewise.
425 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
426 (i386_dr_low): Likewise.
427 * nat/i386-dregs.c (i386-low.h): Remove include.
428 (i386-nat.h): Likewise.
429 (nat/i386-dregs.h): New include.
430 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
431 (i386_dr_low_set_addr): Likewise.
432 (i386_dr_low_get_addr): Likewise.
433 (i386_dr_low_can_set_control): Likewise.
434 (i386_dr_low_set_control): Likewise.
435 (i386_dr_low_get_control): Likewise.
436 (i386_dr_low_get_status): Likewise.
437 (i386_get_debug_register_length): Likewise.
438 (debug_hw_points): Likewise.
440 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
442 * Makefile.in (SFILES): Add d-exp.y.
443 (YYFILES): Add d-exp.c.
444 (YYOBJ): Add d-exp.o.
445 (local-maintainer-clean): Delete d-exp.c.
447 * d-lang.h (d_parse): New declaration.
448 (d_error): New declaration.
449 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
450 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
451 PREC_ORDER operators.
452 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
454 2014-06-19 Yao Qi <yao@codesourcery.com>
456 * gdbthread.h (any_running): Remove the declaration.
457 * thread.c (any_running): Remove.
459 2014-06-19 Yao Qi <yao@codesourcery.com>
461 * gdbthread.h (struct thread_info) <state>: Change its type to
462 'enum thread_state'. Update comments.
464 2014-06-19 Pedro Alves <palves@redhat.com>
466 * gdbthread.h (ALL_THREADS): Delete.
467 (ALL_NON_EXITED_THREADS): New macro.
468 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
469 instead of ALL_THREADS.
470 * infrun.c (find_thread_needs_step_over)
471 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
472 instead of ALL_THREADS.
473 * record-btrace.c (record_btrace_open)
474 (record_btrace_stop_recording, record_btrace_close)
475 (record_btrace_is_replaying, record_btrace_resume)
476 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
477 * remote.c (append_pending_thread_resumptions): Likewise.
478 * thread.c (thread_apply_all_command): Likewise.
480 2014-06-19 Gary Benson <gbenson@redhat.com>
482 * i386-nat.c (i386_stopped_by_watchpoint):
483 Use i386_dr_stopped_by_watchpoint.
484 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
485 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
487 2014-06-19 Gary Benson <gbenson@redhat.com>
489 * nat/i386-dregs.c: New file.
490 * Makefile.in (i386-dregs.o): New rule.
491 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
492 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
493 * config/i386/darwin.mh (NATDEPFILES): Likewise.
494 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
495 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
496 * config/i386/go32.mh (NATDEPFILES): Likewise.
497 * config/i386/linux.mh (NATDEPFILES): Likewise.
498 * config/i386/linux64.mh (NATDEPFILES): Likewise.
499 * config/i386/mingw.mh (NATDEPFILES): Likewise.
500 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
501 * i386-nat.h (debug_hw_points): New declaration.
502 * i386-nat.c (breakpoint.h): Remove include.
503 (command.h): Likewise.
504 (target.h): Likewise.
505 (gdb_assert.h): Likewise.
506 (debug_hw_points): Made nonstatic.
507 (debug_printf): Now in i386-dregs.c.
508 (TARGET_HAS_DR_LEN_8): Likewise.
509 (DR_CONTROL_SHIFT): Likewise.
510 (DR_CONTROL_SIZE): Likewise.
511 (DR_RW_EXECUTE): Likewise.
512 (DR_RW_WRITE): Likewise.
513 (DR_RW_READ): Likewise.
514 (DR_RW_IORW): Likewise.
515 (DR_LEN_1): Likewise.
516 (DR_LEN_2): Likewise.
517 (DR_LEN_4): Likewise.
518 (DR_LEN_8): Likewise.
519 (DR_LOCAL_ENABLE_SHIFT): Likewise.
520 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
521 (DR_ENABLE_SIZE): Likewise.
522 (DR_LOCAL_SLOWDOWN): Likewise.
523 (DR_GLOBAL_SLOWDOWN): Likewise.
524 (DR_CONTROL_RESERVED): Likewise.
525 (I386_DR_CONTROL_MASK): Likewise.
526 (I386_DR_VACANT): Likewise.
527 (I386_DR_LOCAL_ENABLE): Likewise.
528 (I386_DR_GLOBAL_ENABLE): Likewise.
529 (I386_DR_DISABLE): Likewise.
530 (I386_DR_SET_RW_LEN): Likewise.
531 (I386_DR_GET_RW_LEN): Likewise.
532 (I386_DR_WATCH_HIT): Likewise.
533 (i386_wp_op_t): Likewise.
534 (i386_show_dr): Likewise.
535 (i386_length_and_rw_bits): Likewise.
536 (i386_insert_aligned_watchpoint): Likewise.
537 (i386_remove_aligned_watchpoint): Likewise.
538 (i386_handle_nonaligned_watchpoint): Likewise.
539 (i386_update_inferior_debug_regs): Likewise.
540 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
541 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
542 (i386_region_ok_for_watchpoint):
543 Use i386_dr_region_ok_for_watchpoint.
544 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
546 2014-06-19 Gary Benson <gbenson@redhat.com>
548 * i386-nat.c (i386_insert_hw_breakpoint): Use
549 i386_insert_watchpoint.
550 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
552 2014-06-19 Gary Benson <gbenson@redhat.com>
554 * i386-nat.c (i386_dr_show): Renamed to
555 i386_show_dr and made static. All uses updated.
556 (i386_dr_length_and_rw_bits): Renamed to
557 i386_length_and_rw_bits and made static.
559 (i386_dr_insert_aligned_watchpoint): Renamed to
560 i386_insert_aligned_watchpoint and made static.
562 (i386_dr_remove_aligned_watchpoint): Renamed to
563 i386_remove_aligned_watchpoint and made static.
565 (i386_dr_update_inferior_debug_regs): Renamed to
566 i386_update_inferior_debug_regs and made static.
568 * nat/i386-dregs.h (i386_dr_show): Removed.
569 (i386_dr_length_and_rw_bits): Likewise.
570 (i386_dr_insert_aligned_watchpoint): Likewise.
571 (i386_dr_remove_aligned_watchpoint): Likewise.
572 (i386_dr_update_inferior_debug_regs): Likewise.
574 2014-06-19 Gary Benson <gbenson@redhat.com>
576 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
577 * configure: Regenerate.
578 * config.in: Likewise.
579 * main.c (signal.h): New include.
580 (setup_alternate_signal_stack): New function.
581 (captured_main): Call the above.
582 * cp-support.c (signal.h): New include.
583 (catch_demangler_crashes): New flag.
584 (SIGJMP_BUF): New define.
585 (SIGSETJMP): Likewise.
586 (SIGLONGJMP): Likewise.
587 (gdb_demangle_jmp_buf): New static global.
588 (gdb_demangle_attempt_core_dump): Likewise.
589 (gdb_demangle_signal_handler): New function.
590 (gdb_demangle): If catch_demangler_crashes is set, install the
591 above signal handler before calling bfd_demangle, and restore
592 the original signal handler afterwards. Display the offending
593 symbol and call demangler_warning the first time a segmentation
595 (_initialize_cp_support): New maint set/show command.
597 2014-06-19 Gary Benson <gbenson@redhat.com>
599 * utils.h (resource_limit_kind): New enum.
600 (can_dump_core): New declaration.
601 (warn_cant_dump_core): Likewise.
602 (dump_core): Likewise.
603 * utils.c (dump_core): Made nonstatic. Added new
604 parameter "limit_kind".
605 (can_dump_core): Made nonstatic. Moved printing code to...
606 (warn_cant_dump_core): New function.
607 (can_dump_core_warn): Likewise.
608 (internal_vproblem): Replace calls to can_dump_core with
609 calls to can_dump_core_warn. Supply new argument to each.
611 2014-06-19 Gary Benson <gbenson@redhat.com>
613 * utils.h (demangler_vwarning): New declaration.
614 (demangler_warning): Likewise.
615 * utils.c (struct internal_problem)
616 <user_settable_should_quit>: New field.
617 <user_settable_should_dump_core>: Likewise
618 (internal_error_problem): Add values for above new fields.
619 (internal_warning_problem): Likewise.
620 (demangler_warning_problem): New static global.
621 (demangler_vwarning): New function.
622 (demangler_warning): Likewise.
623 (add_internal_problem_command): Selectively add commands.
624 (_initialize_utils): New internal problem command.
625 * maint.c (maintenance_demangler_warning): New function.
626 (_initialize_maint_cmds): New command.
628 2014-06-18 Tom Tromey <tromey@redhat.com>
630 * f-valprint.c (info_common_command_for_block): Update.
631 * symtab.h (struct general_symbol_info) <common_block>: Now
634 2014-06-18 Tom Tromey <tromey@redhat.com>
636 * symtab.h (struct symtab) <blockvector>: Now const.
637 * ada-lang.c (ada_add_global_exceptions): Update.
638 * buildsym.c (augment_type_symtab): Update.
639 * dwarf2read.c (dw2_lookup_symbol): Update.
640 * jit.c (finalize_symtab): Update.
641 * jv-lang.c (add_class_symtab_symbol): Update.
642 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
644 * objfiles.c (objfile_relocate1): Update.
645 * psymtab.c (lookup_symbol_aux_psymtabs)
646 (maintenance_check_psymtabs): Update.
647 * python/py-symtab.c (stpy_global_block, stpy_static_block):
649 * spu-tdep.c (spu_catch_start): Update.
650 * symmisc.c (dump_symtab_1): Update.
651 * symtab.c (lookup_global_symbol_from_objfile)
652 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
653 (basic_lookup_transparent_type_quick)
654 (basic_lookup_transparent_type, find_pc_sect_symtab)
655 (find_pc_sect_line, search_symbols): Update.
656 * block.c (find_block_in_blockvector): Make "bl" const.
657 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
659 (blockvector_contains_pc): Make "bv" const.
660 (block_for_pc_sect): Update.
661 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
662 (blockvector_contains_pc): Update.
663 * breakpoint.c (resolve_sal_pc): Update.
664 * inline-frame.c (block_starting_point_at): Update.
666 2014-06-18 Tom Tromey <tromey@redhat.com>
668 * completer.c (complete_line): Make "line_buffer" const.
669 * completer.h (complete_line): Update.
671 2014-06-18 Tom Tromey <tromey@redhat.com>
673 * symtab.c (add_macro_name): Remove unneeded cast.
675 2014-06-18 Tom Tromey <tromey@redhat.com>
677 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
678 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
680 2014-06-18 Tom Tromey <tromey@redhat.com>
682 * probe.c (info_probes_for_ops): Make "arg" const.
683 * probe.h (info_probes_for_ops): Update.
685 2014-06-18 Tom Tromey <tromey@redhat.com>
687 * varobj.c (varobj_create): Update.
688 * valops.c (value_of_this): Update.
689 * tracepoint.c (add_local_symbols, scope_info): Update.
690 * symtab.h (struct general_symbol_info) <block>: Now const.
691 * symtab.c (skip_prologue_sal)
692 (default_make_symbol_completion_list_break_on)
693 (skip_prologue_using_sal): Update.
694 * stack.h (iterate_over_block_locals)
695 (iterate_over_block_local_vars): Update.
696 * stack.c (print_frame_args): Update.
697 (iterate_over_block_locals, iterate_over_block_local_vars): Make
699 (get_selected_block): Make return type const.
700 * python/py-frame.c (frapy_block): Update.
701 * python/py-block.c (gdbpy_block_for_pc): Update.
702 * p-exp.y (%union) <bval>: Now const.
703 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
704 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
705 * m2-exp.y (%union) <bval>: Now const.
706 * linespec.c (get_current_search_block): Make return type const.
707 (create_sals_line_offset, find_label_symbols): Update.
708 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
710 (block_starting_point_at): Make "block" const.
711 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
712 (check_exception_resume): Update.
713 * guile/scm-frame.c (gdbscm_frame_block): Update.
714 * guile/scm-block.c (gdbscm_lookup_block): Update.
715 * frame.h (get_frame_block): Update.
716 (get_selected_block): Make return type const.
717 * frame.c (frame_id_inner): Update.
718 * f-valprint.c (info_common_command_for_block)
719 (info_common_command): Update.
720 * dwarf2loc.c (dwarf2_find_location_expression)
721 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
722 (locexpr_describe_location_piece): Update.
723 * c-exp.y (%union) <bval>: Now const.
724 * breakpoint.c (resolve_sal_pc): Update.
725 * blockframe.c (get_frame_block):Make return type const.
726 (get_pc_function_start, get_frame_function, find_pc_sect_function)
727 (block_innermost_frame): Update.
728 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
729 (block_for_pc, block_for_pc_sect): Update.
730 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
732 (block_for_pc_sect, block_for_pc): Make return type const.
733 * ax-gdb.c (gen_expr): Update.
734 * alpha-mdebug-tdep.c (find_proc_desc): Update.
735 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
736 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
737 (ada_read_var_value): Update.
738 * ada-exp.y (struct name_info) <block>: Now const.
740 (block_lookup): Constify.
742 2014-06-18 Gary Benson <gbenson@redhat.com>
744 * nat/i386-dregs.h: New file.
745 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
746 * i386-nat.h (i386-dregs.h): New include.
747 (DR_FIRSTADDR): Now in i386-dregs.h.
748 (DR_LASTADDR): Likewise.
749 (DR_NADDR): Likewise.
750 (DR_STATUS): Likewise.
751 (DR_CONTROL): Likewise.
752 (i386_debug_reg_state): Likewise.
753 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
755 2014-06-18 Don Breazeal <donb@codesourcery.com>
757 * breakpoint.c (set_longjmp_breakpoint): Call
758 momentary_breakpoint_from_master with additional argument.
759 (set_longjmp_breakpoint_for_call_dummy): Call
760 momentary_breakpoint_from_master with additional argument.
761 (set_std_terminate_breakpoint): Call
762 momentary_breakpoint_from_master with additional argument.
763 (momentary_breakpoint_from_master): Add argument to function
764 definition and use it to initialize structure member flag.
765 (clone_momentary_breakpoint): Call
766 momentary_breakpoint_from_master with additional argument.
767 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
768 member flags set in momentary_breakpoint_from_master.
770 2014-06-18 Gary Benson <gbenson@redhat.com>
772 * i386-nat.c (i386_show_dr): Renamed to
773 i386_dr_show and made nonstatic. All uses updated.
774 (i386_length_and_rw_bits): Renamed to
775 i386_dr_length_and_rw_bits and made nonstatic.
777 (i386_insert_aligned_watchpoint): Renamed to
778 i386_dr_insert_aligned_watchpoint and made nonstatic.
780 (i386_remove_aligned_watchpoint): Renamed to
781 i386_dr_remove_aligned_watchpoint and made nonstatic.
783 (i386_update_inferior_debug_regs): Renamed to
784 i386_dr_update_inferior_debug_regs and made nonstatic.
787 2014-06-18 Gary Benson <gbenson@redhat.com>
789 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
790 (i386_dr_low_can_set_control): Likewise.
791 (i386_dr_low_set_addr): Likewise.
792 (i386_dr_low_set_control): Likewise.
793 (i386_dr_low_get_addr): Likewise.
794 (i386_dr_low_get_status): Likewise.
795 (i386_dr_low_get_control): Likewise.
796 (i386_insert_aligned_watchpoint): Use new macros.
797 (i386_update_inferior_debug_regs): Likewise.
798 (i386_stopped_data_address): Likewise.
800 2014-06-18 Gary Benson <gbenson@redhat.com>
802 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
803 New parameter. All uses updated.
805 2014-06-18 Gary Benson <gbenson@redhat.com>
807 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
810 2014-06-18 Gary Benson <gbenson@redhat.com>
812 * i386-nat.c (debug_printf): New macro.
813 (i386_get_debug_register_length): Likewise.
814 (TARGET_HAS_DR_LEN_8): Use above macro.
815 (i386_show_dr): Use debug_printf instead of puts_unfiltered
816 and printf_unfiltered. Use phex to format values.
818 2014-06-18 Gary Benson <gbenson@redhat.com>
820 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
823 2014-06-18 Gary Benson <gbenson@redhat.com>
825 * i386-nat.c: Comment changes.
827 2014-06-18 Gary Benson <gbenson@redhat.com>
829 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
831 2014-06-18 Gary Benson <gbenson@redhat.com>
833 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
834 (i386_insert_aligned_watchpoint): Likewise.
835 (i386_remove_aligned_watchpoint): Likewise.
836 (i386_handle_nonaligned_watchpoint): Likewise.
838 2014-06-18 Gary Benson <gbenson@redhat.com>
840 * i386-nat.c: Whitespace changes.
842 2014-06-17 Samuel Bronson <naesten@gmail.com>
844 * MAINTAINERS: Update Roland McGrath's email address.
845 Thanks to Sergio Durigan Junior for pointing out that he left
846 Red Hat a while ago, and giving me a current address.
848 2014-06-17 Tom Tromey <tromey@redhat.com>
850 * utils.h (savestring): Remove declaration.
852 2014-06-17 Tom Tromey <tromey@redhat.com>
854 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
856 2014-06-16 Keith Seitz <keiths@redhat.com>
859 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
860 to update the varobj if inferior_ptid is null_ptid.
862 2014-06-16 Tom Tromey <tromey@redhat.com>
864 * target.h (struct target_ops) <to_info_proc>: Make parameter
866 (target_info_proc): Update.
867 * target.c (target_info_proc): Make "args" const.
868 * procfs.c (procfs_info_proc): Update.
869 * linux-tdep.c (linux_info_proc): Update.
870 (linux_core_info_proc_mappings): Make "args" const.
871 (linux_core_info_proc): Update.
872 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
873 * gdbarch.c: Rebuild.
874 * gdbarch.h: Rebuild.
875 * corelow.c (core_info_proc): Update.
877 2014-06-16 Tom Tromey <tromey@redhat.com>
879 * target.h (struct target_ops) <to_disconnect>: Make parameter
881 (target_disconnect): Update.
882 * target.c (target_disconnect): Make "args" const.
883 * target-delegates.c: Rebuild.
884 * remote.c (remote_disconnect): Update.
885 * record.h (record_disconnect): Update.
886 * record.c (record_disconnect): Update.
887 * inf-child.c (inf_child_disconnect): Update.
889 2014-06-16 Tom Tromey <tromey@redhat.com>
891 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
892 * target.c (debug_to_rcmd, default_rcmd): Update.
893 * target-delegates.c: Rebuild.
894 * remote.c (remote_rcmd): Update.
895 * monitor.c (monitor_rcmd): Update.
897 2014-06-16 Pedro Alves <palves@redhat.com>
899 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
900 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
901 have OBJF_SHARED set.
902 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
903 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
904 instead of OBJF_USERLOADED.
905 * objfiles.h (OBJF_SHARED): Update comment.
906 (userloaded_objfile_contains_address_p): Rename to ...
907 (shared_objfile_contains_address_p): ... this, and update
909 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
911 (remove_symbol_file_command): Skip objfiles that don't have
914 2014-06-16 Tom Tromey <tromey@redhat.com>
916 * minsyms.h (prim_record_minimal_symbol)
917 (prim_record_minimal_symbol_and_info): Update comments.
919 2014-06-14 Eli Zaretskii <eliz@gnu.org>
921 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
922 or --without-guile, according to how GDB was built.
924 2014-06-13 Tom Tromey <tromey@redhat.com>
926 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
928 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
930 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
932 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
933 help_list.Pass all_commands, not -1, to help_list.
934 * cli/cli-dump.c (dump_command, append_command)
935 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
936 (binary_dump_command, binary_append_command): Pass all_commands,
937 not -1, to help_list.
938 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
940 * valprint.c (set_print, set_print_raw): Pass all_commands, not
942 * typeprint.c (set_print_type): Pass all_commands, not -1, to
944 * top.c (set_history): Pass all_commands, not -1, to help_list.
945 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
946 all_commands, not -1, to help_list.
947 * symfile.c (overlay_command): Pass all_commands, not -1, to
949 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
951 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
953 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
955 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
956 not -1, to help_list.
957 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
958 not -1, to help_list.
959 * maint.c (maintenance_command, maintenance_info_command)
960 (maintenance_print_command, maintenance_set_cmd): Pass
961 all_commands, not -1, to help_list.
962 * macrocmd.c (macro_command): Pass all_commands, not -1, to
964 * language.c (set_check): Pass all_commands, not -1, to help_list.
965 * infcmd.c (unset_command): Pass all_commands, not -1, to
967 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
969 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
971 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
973 * breakpoint.c (save_command): Pass all_commands, not -1, to
975 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
976 all_commands, not -1, to help_list.
978 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
980 * regcache.c (struct register_to_invalidate): New structure.
981 (do_register_invalidate, make_cleanup_regcache_invalidate): New
983 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
985 2014-06-12 Yao Qi <yao@codesourcery.com>
987 * varobj.c (varobj_get_num_children): Call
989 (varobj_list_children): Likewise.
990 (varobj_update): Likewise. Update comments.
992 2014-06-12 Yao Qi <yao@codesourcery.com>
994 * varobj.c (varobj_pretty_printed_p): Rename to ...
995 (varobj_is_dynamic_p): ... this. New function.
996 * varobj.h (varobj_pretty_printed_p): Remove declaration.
997 (varobj_is_dynamic_p): Declare.
998 * mi/mi-cmd-var.c (print_varobj): All callers updated.
999 (mi_print_value_p, varobj_update_one): Likewise.
1001 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1002 Yao Qi <yao@codesourcery.com>
1004 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1005 (varobj_get_iterator): Wrap up code for pretty-printer by
1006 "#if HAVE_PYTHON" and "#endif".
1007 (update_dynamic_varobj_children): Likewise.
1009 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1010 Yao Qi <yao@codesourcery.com>
1012 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1013 gdb_python_initialized is false. Move some code from varobj.c.
1014 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1015 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1016 (struct varobj_item): Moved to varobj-iter.h".
1017 (varobj_clear_saved_item): New function.
1018 (update_dynamic_varobj_children): Move python-related code to
1020 (free_variable): Call varobj_clear_saved_item and
1023 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1024 Yao Qi <yao@codesourcery.com>
1026 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1027 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1028 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1029 (py-varobj.o): New rule.
1030 * python/py-varobj.c: New file.
1031 * python/python-internal.h (py_varobj_get_iterator): Declare.
1032 * varobj-iter.h: New file.
1033 * varobj.c: Include "varobj-iter.h"
1034 (struct varobj) <child_iter>: Change its type from "PyObject *"
1035 to "struct varobj_iter *".
1036 <saved_item>: Likewise.
1037 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1038 [HAVE_PYTHON] (varobj_get_iterator): New function.
1039 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1040 python-specific code to python/py-varobj.c.
1041 (install_visualizer): Call varobj_iter_delete instead of
1043 * varobj.h (varobj_ensure_python_env): Declare.
1045 2014-06-12 Yao Qi <yao@codesourcery.com>
1047 * varobj.c (struct varobj_item): New structure.
1048 (create_child_with_value): Update declaration.
1049 (varobj_add_child): Replace arguments 'name' and 'value' with
1050 'item'. All callers updated.
1051 (install_dynamic_child): Likewise.
1052 (update_dynamic_varobj_children): Likewise.
1053 (varobj_add_child): Likewise.
1054 (create_child_with_value): Likewise.
1056 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1058 * NEWS: Create a new section for the next release branch.
1059 Rename the section of the current branch, now that it has
1062 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1064 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1065 * version.in: Bump version to 7.8.50.DATE-cvs.
1067 2014-06-11 Pedro Alves <palves@redhat.com>
1070 * ser-mingw.c (net_windows_socket_check_pending): New function.
1071 (net_windows_select_thread): Ignore spurious wakeups. Use
1072 net_windows_socket_check_pending.
1073 (net_windows_wait_handle): Check for pending events with
1074 ioctlsocket, through net_windows_socket_check_pending, instead of
1075 checking the socket's event.
1077 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1079 * python/python-internal.h (gdb_PyObject_GetAttrString)
1080 (gdb_PyObject_HasAttrString): New inline function definitions.
1081 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1082 char * of the second argument to PyObject_GetAttrString.
1084 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1086 * serial.c (serial_write): Fix index of character to be printed
1087 in call to serial_logchar when serial debug traces are enabled.
1089 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1091 * gdbtypes (resolve_dynamic_range): Add function description.
1093 2014-06-09 Pedro Alves <palves@redhat.com>
1095 * linux-nat.c (linux_child_follow_fork): Initialize status with
1096 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1097 inner block. Only pass the signal to PTRACE_DETACH if in pass
1100 2014-06-09 Gary Benson <gbenson@redhat.com>
1102 * common/signals.c (gdb_signal_from_host): Reorder to separate
1103 the always-available ANSI-standard signals from the signals that
1105 (do_gdb_signal_to_host): Likewise.
1106 * proc-events.c (signal_table): Likewise.
1108 2014-06-08 Hui Zhu <hui@codesourcery.com>
1110 * common/linux-ptrace.c (linux_disable_event_reporting): New
1112 * common/linux-ptrace.h (linux_disable_event_reporting): New
1114 * linux-nat.c (linux_child_follow_fork): Do a single step before
1117 2014-06-07 Keith Seitz <keiths@redhat.com>
1121 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1122 from symbol_matches_domain in symtab.c. All local callers
1123 of symbol_matches_domain updated.
1124 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1125 search STRUCT_DOMAIN.
1126 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1127 independently. standard_lookup will do that automatically.
1128 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1129 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1130 (cp_lookup_symbol_in_namespace): Likewise.
1131 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1132 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1133 may return a STRUCT_DOMAIN match.
1134 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1135 * cp-support.c: Include language.h.
1136 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1138 * psymtab.c (match_partial_symbol): Compare the requested
1139 domain with the symbol's domain directly.
1140 (lookup_partial_symbol): Likewise.
1141 * symtab.c (lookup_symbol_in_language): Explain when/why
1142 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1143 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1144 appropriate languages.
1145 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1146 and moved to ada-lang.c
1147 (lookup_block_symbol): Explain that this function only returns
1148 symbol matching the requested DOMAIN.
1149 Compare the requested domain with the symbol's domain directly.
1150 (iterate_over_symbols): Compare the requested domain with the
1151 symbol's domain directly.
1152 * symtab.h (symbol_matches_domain): Remove.
1154 2014-06-06 Doug Evans <xdje42@gmail.com>
1156 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1157 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1158 (gdbscm_guile_version_is_at_least): Declare.
1159 (gdbscm_scm_string_to_int): Declare.
1160 * guile/guile.c (gdbscm_guile_major_version): New global.
1161 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1162 (guile_datadir): New static global.
1163 (gdbscm_guile_data_directory): New function.
1164 (initialize_scheme_side): Update.
1165 (misc_guile_functions): Add guile-data-directory.
1166 (initialize_gdb_module): Fetch guile version number.
1167 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1168 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1169 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1170 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1172 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1173 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1174 * guile/scm-value.c (gdbscm_value_to_string): Only call
1175 scm_port_conversion_strategy if Guile version >= 2.0.6.
1177 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1179 * main.c (print_gdb_help): Add -q and --silent.
1181 2014-06-06 Gary Benson <gbenson@redhat.com>
1183 * common/signals.c: Remove preprocessor conditionals for
1184 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1185 SIGSEGV and SIGTERM.
1186 * proc-events.c: Likewise.
1188 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1190 * symfile.c (symfile_free_objfile): Remove restriction to
1192 * symfile-mem.c (symbol_file_add_from_memory): Call
1193 add_target_sections_of_objfile.
1195 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1197 * guile/scm-value.c (gdbscm_history_append_x): Use
1198 'vlscm_get_value_smob_arg_unsafe' instead of
1199 'vlscm_scm_to_value'.
1201 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1204 * utils.c (printchar): Don't escape at all if quoter is NUL.
1205 Update function documentation to clarify effect of parameter
1207 * remote.c (escape_buffer): Pass '\\' as the quoter to
1208 fputstrn_unfiltered.
1209 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1210 generate the output.
1211 (mi_solib_unloaded): Same.
1213 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1215 * development.sh: Delete.
1216 * Makefile.in (config.status): Adjust dependency on development.sh.
1217 * configure.ac: Adjust development.sh source call.
1218 * configure: Regenerate.
1220 2014-06-04 Doug Evans <xdje42@gmail.com>
1222 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1223 is_scheme_bkpt, spec.
1224 (bpscm_make_breakpoint_smob): Initialize new members.
1225 (gdbscm_create_breakpoint_x): Split into two ...
1226 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1227 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1228 (scheme_function breakpoint_functions): Update.
1229 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1230 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1231 register-breakpoint!.
1233 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1236 * mem-break.c (z_type_supported): Return zero if
1237 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1239 2014-06-04 Tom Tromey <tromey@redhat.com>
1241 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1242 value_from_contents_and_address_unresolved.
1243 (ada_template_to_fixed_record_type_1): Likewise.
1244 (ada_which_variant_applies): Likewise.
1245 * value.h (value_from_contents_and_address_unresolved): Declare.
1246 * value.c (value_from_contents_and_address_unresolved): New
1248 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1249 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1250 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1252 2014-06-04 Tom Tromey <tromey@redhat.com>
1254 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1256 2014-06-04 Tom Tromey <tromey@redhat.com>
1258 * procfs.c (procfs_attach): Make "args" const.
1259 * windows-nat.c (windows_attach): Make "args" const.
1260 * nto-procfs.c (procfs_attach): Make "args" const.
1261 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1262 * go32-nat.c (go32_attach): Make "args" const.
1263 * gnu-nat.c (gnu_attach): Make "args" const.
1264 * darwin-nat.c (darwin_attach): Make "args" const.
1265 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1266 * linux-nat.c (linux_nat_attach): Make "args" const.
1267 * remote.c (extended_remote_attach_1, extended_remote_attach):
1269 * target.h (struct target_ops) <to_attach>: Make "args" const.
1270 (find_default_attach): Likewise.
1271 * utils.c (parse_pid_to_attach): Make "args" const.
1272 * utils.h (parse_pid_to_attach): Update.
1274 2014-06-04 Tom Tromey <tromey@redhat.com>
1276 * target-delegates.c: Rebuild.
1277 * target.c (default_thread_address_space): New function.
1278 (target_thread_address_space): Simplify.
1279 * target.h (struct target_ops) <to_thread_address_space>: Add
1280 TARGET_DEFAULT_FUNC.
1282 2014-06-04 Doug Evans <xdje42@gmail.com>
1284 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1286 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1288 * record-btrace.c: Include event-loop.h and inf-loop.h.
1289 (record_btrace_resume_exec_dir)
1290 (record_btrace_async_inferior_event_handler)
1291 (record_btrace_handle_async_inferior_event): New.
1292 (record_btrace_open): Create async event handler.
1293 (record_btrace_close): Delete async event handler.
1294 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1295 Mark async event handler.
1296 (record_btrace_execution_direction): New.
1297 (init_record_btrace_ops): Initialize to_execution_direction.
1299 2014-06-03 Doug Evans <xdje42@gmail.com>
1301 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1302 (gdbscm_make_parameter): Ditto.
1304 2014-06-03 Doug Evans <dje@google.com>
1306 * exec.c (exec_close_1): Call clear_section_table instead of
1307 resize_section_table.
1308 (clear_section_table): New function.
1309 (resize_section_table): Make static. Rename arg num_added to
1311 * exec.h (clear_section_table): Declare.
1312 (resize_section_table): Delete.
1313 * progspace.c (release_program_space): Call clear_section_table
1314 instead of resize_section_table.
1316 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1318 * NEWS (Python Scripting): Add entry about the new xmethods
1321 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1323 * python/py-xmethods.c: New file.
1324 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1325 (objfpy_dealloc): XDECREF on the new xmethods field.
1326 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1328 (objfpy_get_xmethods): New function.
1329 (objfile_getset): New entry 'xmethods'.
1330 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1331 (pspy_dealloc): XDECREF on the new xmethods field.
1332 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1334 (pspy_get_xmethods): New function.
1335 (pspace_getset): New entry 'xmethods'.
1336 * python/python-internal.h: Add declarations for new functions.
1337 * python/python.c (_initialize_python): Invoke
1338 gdbpy_initialize_xmethods.
1339 * python/lib/gdb/__init__.py (xmethods): New
1341 * python/lib/gdb/xmethod.py: New file.
1342 * python/lib/gdb/command/xmethods.py: New file.
1344 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1346 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1347 best match method returned by find_overload_match is an xmethod.
1348 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1349 the best matching operator returned by find_overload_match is an
1351 * valops.c: #include "extension.h".
1352 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1353 Return void. The list of matching source methods is returned in
1354 "fn_list" and a vector of matching debug method workers is
1355 returned in "xm_worker_vec". Update all callers.
1356 (value_find_oload_method_list): Likewise.
1357 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1358 non-NULL, then the index of the best matching method in this
1359 vector is returned. Update all callers.
1360 (find_overload_match): Include xmethods while performing overload
1363 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1365 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1366 * extension-priv.h (struct extension_language_ops): Add the
1368 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1369 get_matching_xmethod_workers, get_xmethod_argtypes,
1370 invoke_xmethod, free_xmethod_worker,
1371 free_xmethod_worker_vec): New functions.
1372 * extension.h: #include "common/vec.h".
1373 New function declarations.
1374 (struct xmethod_worker): New struct.
1375 (VEC (xmethod_worker_ptr)): New vector type.
1376 (xmethod_worker_ptr): New typedef.
1377 (xmethod_worker_vec): Likewise.
1378 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1380 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1381 (struct builtin_type): New field "xmethod".
1382 * valarith.c (value_ptradd): Assert that the value argument is not
1384 * valops.c (value_must_coerce_to_target): Return 0 for
1385 lval_xcallable values.
1386 * value.c (struct value): New field XM_WORKER in the field
1388 (value_address, value_raw_address): Return 0 for lval_xcallable
1390 (set_value_address): Assert that the value is not an
1392 (value_free): Free the associated xmethod worker when freeing
1393 lval_xcallable values.
1394 (set_value_component_location): Assert that the WHOLE value is not
1396 (value_of_xmethod, call_xmethod): New functions.
1397 * value.h: Declare "struct xmethod_worker".
1398 Declare new functions value_of_xmethod, call_xmethod.
1400 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1401 Pedro Alves <palves@redhat.com>
1403 PR breakpoints/17000
1404 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1405 New function, extracted from software_breakpoint_inserted_here_p.
1406 (software_breakpoint_inserted_here_p): Replace factored out code
1407 by call to find_non_raw_software_breakpoint_inserted_here.
1408 (bp_target_info_copy_insertion_state): New function.
1409 (bkpt_insert_location): Handle the case of a single-step
1410 breakpoint already inserted at the same address.
1411 (bkpt_remove_location): Handle the case of a single-step
1412 breakpoint still inserted at the same address.
1413 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1414 breakpoint already inserted at the same address.
1415 (deprecated_remove_raw_breakpoint): Handle the case of a
1416 non-raw breakpoint still inserted at the same address.
1417 (find_single_step_breakpoint): New function, extracted from
1418 single_step_breakpoint_inserted_here_p.
1419 (find_single_step_breakpoint): New function,
1420 factored out from single_step_breakpoint_inserted_here_p.
1421 (single_step_breakpoint_inserted_here_p): Reimplement.
1423 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1425 Pushed by Joel Brobecker <brobecker@adacore.com>
1426 * source.c (show_substitute_path_command): Fix display of matching
1429 2014-06-03 Gary Benson <gbenson@redhat.com>
1431 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1433 2014-06-02 Doug Evans <xdje42@gmail.com>
1435 Add parameter support for Guile.
1436 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1437 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1438 (scm-param.o): New rule.
1439 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1440 (gdbscm_misc_error): Declare.
1441 (gdbscm_canonicalize_command_name): Declare.
1442 (gdbscm_scm_to_host_string): Declare.
1443 (gdbscm_scm_from_host_string): Declare.
1444 (gdbscm_initialize_parameters): Declare.
1445 * guile/guile.c (initialize_gdb_module): Call
1446 gdbscm_initialize_parameters.
1447 * guile/lib/gdb.scm: Export parameter symbols.
1448 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1449 cmdscm_canonicalize_name and made public. All callers updated.
1450 * guile/scm-exception.c (gdbscm_misc_error): New function.
1451 * guile/scm-param.c: New file.
1452 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1453 (gdbscm_scm_to_host_string): New function.
1454 (gdbscm_scm_from_host_string): New function.
1455 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1457 2014-06-02 Doug Evans <xdje42@gmail.com>
1459 Add command support for Guile.
1460 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1461 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1462 (scm-cmd.o): New rule.
1463 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1464 (gdbscm_user_error_p): Declare.
1465 (gdbscm_parse_command_name): Declare.
1466 (gdbscm_valid_command_class_p): Declare.
1467 (gdbscm_initialize_commands): Declare.
1468 * guile/guile.c (initialize_gdb_module): Call
1469 gdbscm_initialize_commands.
1470 * guile/lib/gdb.scm: Export command symbols.
1471 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1472 (throw-user-error): New function.
1473 * guile/scm-cmd.c: New file.
1474 * guile/scm-exception.c (user_error_symbol): New static global.
1475 (gdbscm_user_error_p): New function.
1476 (gdbscm_initialize_exceptions): Set user_error_symbol.
1477 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1479 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1481 * top.c (command_loop): Handle comments here...
1482 (command_line_input): ... not here.
1484 2014-06-02 Doug Evans <xdje42@gmail.com>
1486 Add progspace support for Guile.
1487 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1488 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1489 (scm-progspace.o): New rule.
1490 * guile/guile-internal.h (pspace_smob): New typedef.
1491 (psscm_pspace_smob_pretty_printers): Declare.
1492 (psscm_pspace_smob_from_pspace): Declare.
1493 (psscm_scm_from_pspace): Declare.
1494 * guile/guile.c (initialize_gdb_module): Call
1495 gdbscm_initialize_pspaces.
1496 * guile/lib/gdb.scm: Export progspace symbols.
1497 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1499 (append-pretty-printer!): Ditto.
1500 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1502 * guile/scm-progspace.c: New file.
1504 2014-06-03 Alan Modra <amodra@gmail.com>
1506 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1507 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1509 2014-06-02 Doug Evans <dje@google.com>
1511 Add support for skeletonless type units.
1512 * dwarf2read.c (struct dwarf2_per_objfile): New member
1513 n_allocated_type_units.
1514 (struct dwarf2_per_objfile) <tu_stats>: New member
1515 nr_all_type_units_reallocs.
1516 (create_signatured_type_table_from_index): Initialize
1517 n_allocated_type_units
1518 (create_all_type_units): Ditto.
1519 (add_type_unit): Move up in file. New arg slot.
1520 All callers updated. Increase space for all_type_units more
1522 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1523 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1524 (lookup_dwp_signatured_type): Ditto.
1525 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1526 All callers updated.
1527 (build_type_psymtabs_1): Leave type_unit_groups as
1528 NULL if no TUs present.
1529 (print_tu_stats): New function.
1530 (process_skeletonless_type_unit): New function.
1531 (process_dwo_file_for_skeletonless_type_units): New
1533 (process_skeletonless_type_units): New function.
1534 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1535 Call print tu_stats if debugging enabled.
1537 2014-06-02 Pedro Alves <palves@redhat.com>
1539 * breakpoint.c (build_target_command_list): Don't build a command
1540 list if we have any duplicate location that isn't a dprintf.
1542 2014-06-02 Pedro Alves <palves@redhat.com>
1544 * breakpoint.c (dprintf_breakpoint_hit): New function.
1545 (initialize_breakpoint_ops): Install it as dprintf's
1546 breakpoint_hit method.
1548 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1550 * source.c (substitute_path_rule_matches): Simplify using
1551 filename_ncmp instead of FILENAME_CMP.
1553 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1555 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1557 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1559 * configure.ac: When Guile is available, check for the
1560 availability of 'scm_new_smob'.
1561 * configure, config.h.in: Regenerate.
1562 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1565 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1567 * frame.c (struct frame_info): Add stop_string field.
1568 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1569 (get_prev_frame_always): Old content moved into
1570 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1571 TRY_CATCH, handle MEMORY_ERROR exceptions.
1572 (frame_stop_reason_string): New function definition.
1573 * frame.h (unwind_stop_reason_to_string): Extend comment to
1574 mention frame_stop_reason_string.
1575 (frame_stop_reason_string): New function declaration.
1576 * stack.c (frame_info): Switch to frame_stop_reason_string.
1577 (backtrace_command_1): Switch to frame_stop_reason_string.
1578 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1579 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1580 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1582 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1584 * frame.c (frame_stop_reason_string): Rename to ...
1585 (unwind_stop_reason_to_string): this.
1586 * frame.h (frame_stop_reason_string): Rename to ...
1587 (unwind_stop_reason_to_string): this.
1588 * stack.c (frame_info): Update call to frame_stop_reason_string.
1589 (backtrace_command_1): Likewise.
1590 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1591 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1593 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1595 * frame.c (remove_prev_frame): New function.
1596 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1599 2014-05-29 Pedro Alves <palves@redhat.com>
1601 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1602 and make it const. When a single-step decays to a continue,
1603 clear 'step', not 'hw_step'. Pass whether the caller wanted
1604 to step to user_visible_resume_ptid, not what we ask the
1607 2014-05-29 Pedro Alves <palves@redhat.com>
1609 * infrun.c (process_event_stop_test, handle_step_into_function)
1610 (handle_step_into_function_backward): Adjust.
1611 Don't set the even thread's stop_step and call stop_waiting before
1612 calling end_stepping_range. Instead do that ...
1613 (end_stepping_range): ... here. Take an ecs pointer parameter.
1615 2014-05-29 Pedro Alves <palves@redhat.com>
1617 * infrun.c (stop_stepping): Rename to ...
1618 (stop_waiting): ... this.
1619 (proceed): Update comment.
1620 (process_event_stop_test, handle_inferior_event)
1621 (handle_signal_stop, handle_step_into_function)
1622 (handle_step_into_function_backward): Update.
1624 2014-05-29 Pedro Alves <palves@redhat.com>
1626 * infcall.c (run_inferior_call): Don't check whether the current
1627 thread is running after the proceed call.
1629 2014-05-29 Pedro Alves <palves@redhat.com>
1630 Tom Tromey <tromey@redhat.com>
1632 * NEWS: Mention "maint set target-async", "set mi-async", and that
1633 background execution commands are now always available.
1634 * target.h (target_async_permitted): Update comment.
1635 * target.c (target_async_permitted, target_async_permitted_1):
1637 (set_target_async_command): Rename to ...
1638 (maint_set_target_async_command): ... this.
1639 (show_target_async_command): Rename to ...
1640 (maint_show_target_async_command): ... this.
1641 (_initialize_target): Adjust.
1642 * infcmd.c (prepare_execution_command): Make extern.
1643 * inferior.h (prepare_execution_command): Declare.
1644 * infrun.c (set_observer_mode): Leave target async alone.
1645 * mi/mi-interp.c (mi_interpreter_init): Install
1646 mi_on_sync_execution_done as sync_execution_done observer.
1647 (mi_on_sync_execution_done): New function.
1648 (mi_execute_command_input_handler): Don't print the prompt if we
1649 just started a synchronous command with an async target.
1650 (mi_on_resume): Check sync_execution before printing prompt.
1651 * mi/mi-main.h (mi_async_p): Declare.
1652 * mi/mi-main.c: Include gdbcmd.h.
1653 (mi_async_p): New function.
1654 (mi_async, mi_async_1): New globals.
1655 (set_mi_async_command, show_mi_async_command, mi_async): New
1657 (exec_continue): Call prepare_execution_command.
1658 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1659 (mi_execute_async_cli_command): Use mi_async_p.
1660 (_initialize_mi_main): Install "set mi-async". Make
1661 "target-async" a deprecated alias.
1663 2014-05-29 Pedro Alves <palves@redhat.com>
1665 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1666 (_initialize_cli_interp): Adjust.
1667 * event-loop.c: Include "observer.h".
1668 (start_event_loop): Notify 'command_error' observers instead of
1669 calling display_gdb_prompt. Remove FIXME comment.
1670 * event-top.c (display_gdb_prompt): Remove call into the
1672 * inf-loop.c: Include "observer.h".
1673 (inferior_event_handler): Notify 'command_error' observers instead
1674 of calling display_gdb_prompt.
1675 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1676 observers instead of calling display_gdb_prompt.
1677 * interps.c (interp_set): Don't call display_gdb_prompt.
1678 (current_interp_display_prompt_p): Delete.
1679 * interps.h (interp_prompt_p): Delete declaration.
1680 (interp_prompt_p_ftype): Delete.
1681 (struct interp_procs) <prompt_proc_p>: Delete field.
1682 (current_interp_display_prompt_p): Delete declaration.
1683 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1684 (_initialize_mi_interp): Adjust.
1685 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1686 'command_error' observers.
1687 (tui_on_sync_execution_done, tui_on_command_error): New
1689 (tui_display_prompt_p): Delete.
1690 (_initialize_tui_interp): Adjust.
1692 2014-05-29 Pedro Alves <palves@redhat.com>
1695 * cli/cli-interp.c: Include infrun.h and observer.h.
1696 (cli_uiout, cli_interp): New globals.
1697 (cli_on_signal_received, cli_on_end_stepping_range)
1698 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1700 (cli_interpreter_init): Install them as 'end_stepping_range',
1701 'signal_received' 'signal_exited', 'exited' and 'no_history'
1703 (_initialize_cli_interp): Remove cli_interp local.
1704 * infrun.c (handle_inferior_event): Call the several stop reason
1705 observers instead of printing the stop reason directly.
1706 (end_stepping_range): New function.
1707 (print_end_stepping_range_reason, print_signal_exited_reason)
1708 (print_exited_reason, print_signal_received_reason)
1709 (print_no_history_reason): Make static, and add an uiout
1710 parameter. Print to that instead of to CURRENT_UIOUT.
1711 * infrun.h (print_end_stepping_range_reason)
1712 (print_signal_exited_reason, print_exited_reason)
1713 (print_signal_received_reason print_no_history_reason): New
1715 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1717 <cli_uiout>: New field.
1718 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1719 uiout for CLI output. Install 'signal_received',
1720 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1722 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1723 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1724 (mi_on_no_history): New functions.
1725 (ui_out_free_cleanup): Delete function.
1726 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1727 instead use the one already stored in the MI interpreter data.
1728 (mi_ui_out): Adjust.
1729 * tui/tui-interp.c: Include infrun.h and observer.h.
1730 (tui_interp): New global.
1731 (tui_on_signal_received, tui_on_end_stepping_range)
1732 (tui_on_signal_exited, tui_on_exited)
1733 (tui_on_no_history): New functions.
1734 (tui_init): Install them as 'end_stepping_range',
1735 'signal_received' 'signal_exited', 'exited' and 'no_history'
1737 (_initialize_tui_interp): Delete tui_interp local.
1739 2014-05-29 Pedro Alves <palves@redhat.com>
1742 * linux-nat.c (linux_nat_resume_callback): Rename the second
1743 parameter to 'except'. Skip LP if it points to EXCEPT.
1744 (linux_nat_resume): Don't mark the event lwp as not stopped
1745 before resuming sibling lwps. Instead ask
1746 linux_nat_resume_callback to skip the event lwp. Mark it as not
1747 stopped after actually resuming it.
1748 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1750 (wait_lwp): Mark the lwp as stopped here.
1751 (stop_wait_callback): Mark the lwp as not stopped right after
1752 resuming it. Don't mark lwps as stopped here.
1753 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1754 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1756 2014-05-29 Pedro Alves <palves@redhat.com>
1759 * infrun.c (resume): Determine how much to resume depending on
1760 whether the caller wanted a step, not whether we can hardware step
1761 the target. Mark all threads that we intend to run as running,
1762 unless we're calling an inferior function.
1763 (normal_stop): If the thread is running an infcall, don't finish
1765 * target.c (target_resume): Don't mark threads as running here.
1767 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1769 * serial.c (_initialize_serial): Remove support for
1770 the "set remotebaud" and "show remotebaud" commands.
1771 * NEWS: Add entry documenting the removal of that command.
1773 2014-05-28 Yao Qi <yao@codesourcery.com>
1775 * charset.c: Fix typo in comments.
1777 2014-05-27 Gary Benson <gbenson@redhat.com>
1779 * utils.c (internal_vproblem): Prompt for a bug report.
1781 2014-05-26 Andy Wingo <wingo@igalia.com>
1783 * guile/scm-arch.c (arscm_mark_arch_smob):
1784 * guile/scm-block.c (bkscm_mark_block_smob)
1785 (bkscm_mark_block_syms_progress_smob):
1786 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1787 * guile/scm-exception.c (exscm_mark_exception_smob):
1788 * guile/scm-frame.c (frscm_mark_frame_smob):
1789 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1790 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1791 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1792 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1793 (ppscm_mark_pretty_printer_worker_smob):
1794 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1795 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1796 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1797 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1799 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1802 2014-05-26 Andy Wingo <wingo@igalia.com>
1803 Doug Evans <xdje42@gmail.com>
1805 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1806 empty_base_class. All uses updated.
1807 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1808 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1810 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1811 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1812 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1813 (gdbscm_gsmob_has_property_p, add_property_name)
1814 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1815 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1816 (gdb-object-has-property?, gdb-object-properties): Remove.
1817 (gdb-object-kind): Renamed from gsmob-kind.
1819 2014-05-26 Andy Wingo <wingo@igalia.com>
1821 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1822 * configure: Regenerate.
1824 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1826 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1828 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1830 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1831 (replay_memory_access_read_only, replay_memory_access_read_write)
1832 (replay_memory_access_types, replay_memory_access)
1833 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1834 (cmd_set_record_btrace, cmd_show_record_btrace)
1835 (cmd_show_replay_memory_access): New.
1836 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1837 (record_btrace_remove_breakpoint): Replace
1838 record_btrace_allow_memory_access with replay_memory_access.
1839 (_initialize_record_btrace): Add commands.
1840 * NEWS: Announce it.
1842 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1844 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1846 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1848 * MAINTAINERS (Write After Approval): Move self back from
1851 2014-05-22 Pedro Alves <palves@redhat.com>
1853 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1854 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1855 (disable_randomization, enum exec_direction_kind)
1856 (execution_direction, stop_registers, start_remote)
1857 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1858 (wait_for_inferior, normal_stop, get_last_target_status)
1859 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1860 (insert_step_resume_breakpoint_at_sal)
1861 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1862 (set_step_info, print_stop_event, signal_stop_state)
1863 (signal_print_state, signal_pass_state, signal_stop_update)
1864 (signal_print_update, signal_pass_update)
1865 (update_signals_program_target, clear_exit_convenience_vars)
1866 (displaced_step_dump_bytes, update_observer_mode)
1867 (signal_catch_update, gdb_signal_from_command): Move
1869 * infrun.h: ... to this new file.
1870 * amd64-tdep.c: Include infrun.h.
1871 * annotate.c: Include infrun.h.
1872 * arch-utils.c: Include infrun.h.
1873 * arm-linux-tdep.c: Include infrun.h.
1874 * arm-tdep.c: Include infrun.h.
1875 * break-catch-sig.c: Include infrun.h.
1876 * breakpoint.c: Include infrun.h.
1877 * common/agent.c: Include infrun.h instead of inferior.h.
1878 * corelow.c: Include infrun.h.
1879 * event-top.c: Include infrun.h.
1880 * go32-nat.c: Include infrun.h.
1881 * i386-tdep.c: Include infrun.h.
1882 * inf-loop.c: Include infrun.h.
1883 * infcall.c: Include infrun.h.
1884 * infcmd.c: Include infrun.h.
1885 * infrun.c: Include infrun.h.
1886 * linux-fork.c: Include infrun.h.
1887 * linux-nat.c: Include infrun.h.
1888 * linux-thread-db.c: Include infrun.h.
1889 * monitor.c: Include infrun.h.
1890 * nto-tdep.c: Include infrun.h.
1891 * procfs.c: Include infrun.h.
1892 * record-btrace.c: Include infrun.h.
1893 * record-full.c: Include infrun.h.
1894 * remote-m32r-sdi.c: Include infrun.h.
1895 * remote-mips.c: Include infrun.h.
1896 * remote-notif.c: Include infrun.h.
1897 * remote-sim.c: Include infrun.h.
1898 * remote.c: Include infrun.h.
1899 * reverse.c: Include infrun.h.
1900 * rs6000-tdep.c: Include infrun.h.
1901 * s390-linux-tdep.c: Include infrun.h.
1902 * solib-irix.c: Include infrun.h.
1903 * solib-osf.c: Include infrun.h.
1904 * solib-svr4.c: Include infrun.h.
1905 * target.c: Include infrun.h.
1906 * top.c: Include infrun.h.
1907 * windows-nat.c: Include infrun.h.
1908 * mi/mi-interp.c: Include infrun.h.
1909 * mi/mi-main.c: Include infrun.h.
1910 * python/py-threadevent.c: Include infrun.h.
1912 2014-05-22 Pedro Alves <palves@redhat.com>
1914 * infrun.c (handle_inferior_event): Store the exit code for
1915 --return-child-result here, instead of ...
1916 (print_exited_reason): ... here.
1918 2014-05-21 Pedro Alves <palves@redhat.com>
1921 * gdbthread.h (struct thread_control_state): New field
1923 * infrun.c (follow_fork): Copy the new thread control field to the
1925 (clear_proceed_status_thread): Clear the new thread control field.
1926 (proceed): Set the new thread control field.
1927 * interps.h (command_interp): Declare.
1928 * interps.c (command_interpreter): New global.
1929 (command_interp): New function.
1930 (interp_exec): Set `command_interpreter' while here.
1931 * cli-out.c (cli_uiout_dtor): New function.
1932 (cli_ui_out_impl): Install it.
1933 * mi/mi-interp.c: Include cli-out.h.
1934 (mi_cmd_interpreter_exec): Add comment.
1935 (restore_current_uiout_cleanup): New function.
1936 (ui_out_free_cleanup): New function.
1937 (mi_on_normal_stop): If finishing an execution command started by
1938 a CLI command, or any kind of breakpoint-like event triggered,
1939 print the stop event to the output (CLI) stream.
1940 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1942 2014-05-21 Pedro Alves <palves@redhat.com>
1944 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1945 current source line having changed.
1946 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1947 * infrun.c (normal_stop): Adjust call to
1948 set_current_sal_from_frame.
1949 * source.c (clear_lines_listed_range): New function.
1950 (set_current_source_symtab_and_line, identify_source_line): Clear
1951 the lines listed range.
1952 (line_info): Handle the first "info line" after the current source
1953 line having changed.
1954 * stack.c (print_stack_frame): Remove center handling.
1955 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1958 2014-05-21 Pedro Alves <palves@redhat.com>
1960 * inf-child.c (inf_child_mourn_inferior): New function.
1961 * inf-child.h (inf_child_mourn_inferior): New declaration.
1962 * darwin-nat.c (darwin_mourn_inferior): Use
1963 inf_child_mourn_inferior.
1964 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1965 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1966 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1967 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1968 * windows-nat.c (windows_mourn_inferior): Likewise.
1970 2014-05-21 Doug Evans <xdje42@gmail.com>
1972 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1974 2014-05-21 Doug Evans <xdje42@gmail.com>
1976 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1977 (gdbscm_out_of_range_error): Ditto.
1978 (gdbscm_memory_error): Ditto.
1979 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1980 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1981 (gdbscm_out_of_range_error): Update.
1982 (gdbscm_memory_error): Update.
1983 (gdbscm_scm_to_target_string_unsafe): Delete.
1985 2014-05-21 Pedro Alves <palves@redhat.com>
1987 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1989 (inf_child_open_target): New function.
1990 (inf_child_open): Use inf_child_open_target to push the target
1991 instead of erroring out.
1992 (inf_child_disconnect, inf_child_close)
1993 (inf_child_maybe_unpush_target): New functions.
1994 (inf_child_target): Install inf_child_disconnect and
1995 inf_child_close. Store a pointer to the returned object.
1996 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1998 * target.c (auto_connect_native_target): New global.
1999 (show_default_run_target): New function.
2000 (find_default_run_target): Return NULL if automatically connecting
2001 to the native target is disabled.
2002 (_initialize_target): Install set/show auto-connect-native-target.
2003 * NEWS: Mention "set auto-connect-native-target", and "target
2005 * linux-nat.c (super_close): New global.
2006 (linux_nat_close): Call super_close.
2007 (linux_nat_add_target): Store a pointer to the base class's
2009 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2010 inf_child_maybe_unpush.
2011 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2013 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2014 the inferior. Use inf_child_maybe_unpush_target.
2015 (inf_ttrace_attach): Don't push the target if it is already
2017 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2018 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2019 after mourning the inferior. Use inf_child_maybe_unpush_target.
2020 (darwin_attach_pid): Don't push the target if it is already
2022 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2023 mourning the inferior. Use inf_child_maybe_unpush_target.
2024 (gnu_detach): Use inf_child_maybe_unpush_target.
2025 * go32-nat.c (go32_create_inferior): Don't push the target if it
2027 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2028 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2029 (procfs_open): Rename to ...
2030 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2031 comments. Can target_preopen before changing node. Call
2032 inf_child_open_target to push the target explicitly.
2033 (procfs_attach): Don't push the target if it is already pushed.
2034 (procfs_detach): Use inf_child_maybe_unpush_target.
2035 (procfs_create_inferior): Don't push the target if it is already
2037 (nto_native_ops): New global.
2038 (procfs_open): Reimplement.
2039 (procfs_native_open): New function.
2040 (init_procfs_targets): Install procfs_native_open as to_open of
2041 "target native". Store a pointer to the "native" target in
2043 * procfs.c (procfs_attach): Don't push the target if it is already
2045 (procfs_detach): Use inf_child_maybe_unpush_target.
2046 (procfs_mourn_inferior): Only unpush the target after mourning the
2047 inferior. Use inf_child_maybe_unpush_target.
2048 (procfs_init_inferior): Don't push the target if it is already
2050 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2051 if it is already pushed.
2053 2014-05-21 Pedro Alves <palves@redhat.com>
2055 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2056 and "procfs" targets are now called "native" instead.
2058 2014-05-21 Pedro Alves <palves@redhat.com>
2060 * go32-nat.c (go32_open): Delete.
2061 (go32_target): Don't override the to_open method.
2063 2014-05-21 Pedro Alves <palves@redhat.com>
2065 * nto-procfs.c (procfs_can_run): New function.
2066 (nto_procfs_ops): New global.
2067 (init_procfs_targets): New, based on procfs_target. Install
2068 "target native" in addition to "target procfs".
2069 (_initialize_procfs): Call init_procfs_targets instead of adding
2072 2014-05-21 Pedro Alves <palves@redhat.com>
2074 * windows-nat.c (windows_target): Don't override to_shortname,
2075 to_longname or to_doc.
2077 2014-05-21 Pedro Alves <palves@redhat.com>
2079 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2082 2014-05-21 Pedro Alves <palves@redhat.com>
2084 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2085 to_shortname, to_longname or to_doc.
2087 2014-05-21 Pedro Alves <palves@redhat.com>
2089 * go32-nat.c (go32_target): Don't override to_shortname,
2090 to_longname or to_doc.
2092 2014-05-21 Pedro Alves <palves@redhat.com>
2094 * inf-child.c (inf_child_open): Remove mention of "child".
2095 (inf_child_target): Rename target to "native" instead of "child".
2097 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099 * Makefile.in (SFILES): Delete "regset.c".
2100 (COMMON_OBS): Delete "regset.o".
2102 * regset.h (regset_alloc): Delete prototype.
2104 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2106 * sparc-linux-tdep.c (sparc32_linux_gregset)
2107 (sparc32_linux_fpregset): New static regset structures.
2108 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2109 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2111 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2112 (sparc64_linux_fpregset): New static regset structures.
2113 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2114 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2115 New static regset structures.
2116 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2117 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2118 New static regset structures.
2119 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2120 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2121 New static regset structures.
2122 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2123 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2124 New static regset structures.
2125 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2127 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2129 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2130 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2131 register maps ("regmaps") from "*regset" to "*regmap". Do this
2132 for all regmap types and variables.
2133 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2134 (sparc32_linux_supply_core_gregset)
2135 (sparc32_linux_collect_core_gregset)
2136 (sparc32_linux_supply_core_fpregset)
2137 (sparc32_linux_collect_core_fpregset): Likewise.
2138 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2139 (sparc_gregmap, sparc_fpregmap): ... these.
2140 (sparc_supply_gregset, sparc_collect_gregset)
2141 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2142 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2143 (_initialize_sparc_nat): Rename regmaps.
2144 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2145 (sparc_gregmap, sparc_fpregmap): ... these.
2146 (sparc_supply_gregset, sparc_collect_gregset)
2147 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2148 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2150 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2151 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2153 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2155 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2156 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2157 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2159 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2160 (sparc32_bsd_fpregset): Rename to...
2161 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2162 (sparc32_bsd_fpregmap): ... these.
2163 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2164 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2165 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2166 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2167 (struct sparc_gregmap, struct sparc_fpregmap)
2168 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2169 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2170 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2171 (sparc32_supply_regset, sparc32_collect_gregset)
2172 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2174 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2175 (sparc64_linux_ptrace_gregmap): ... this.
2176 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2177 (_initialize_sparc64_linux_nat): Rename regmaps.
2178 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2179 (sparc64_linux_core_gregmap): ... this.
2180 (sparc64_linux_supply_core_gregset)
2181 (sparc64_linux_collect_core_gregset)
2182 (sparc64_linux_supply_core_fpregset)
2183 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2184 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2185 (sparc64_sol2_fpregset): Rename to...
2186 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2187 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2188 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2190 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2191 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2192 (sparc64_bsd_fpregset): Rename to...
2193 (struct sparc_gregmap, sparc64_sol2_gregmap)
2194 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2195 (sparc64_bsd_fpregmap): ... these.
2196 (sparc64_supply_gregset, sparc64_collect_gregset)
2197 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2199 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2200 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2201 (sparc64fbsd_gregmap): ... this.
2202 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2203 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2205 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2206 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2207 (sparc64nbsd_collect_fpregset): Likewise.
2208 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2209 (sparc64nbsd_gregmap): ... this.
2210 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2212 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2213 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2214 (sparc64obsd_gregmap): ... this.
2215 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2217 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2218 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2219 (sparc32nbsd_gregmap): ... this.
2220 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2223 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2225 * score-tdep.c (score7_linux_gregset): New static regset
2227 (score7_linux_regset_from_core_section): Remove dynamic regset
2229 (score_gdbarch_init): Drop allocation of tdep structure.
2230 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2232 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2234 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2236 (am33_regset_from_core_section): Remove dynamic regset
2239 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2242 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2244 (mips_linux_regset_from_core_section): Remove dynamic regset
2246 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2247 'gregset64', 'fpregset', and 'fpregset64'.
2248 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2249 deleted tdep fields.
2251 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2253 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2255 (amd64_regset_from_core_section): Remove dynamic regset
2257 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2259 (amd64obsd_regset_from_core_section): Remove dynamic regset
2261 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2263 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2264 x86-common regset supply function.
2265 * i386-tdep.c (i386_collect_gregset): Make static.
2266 (i386_gregset): New global regset structure.
2267 (i386_fpregset, i386_xstateregset): New static regset structures.
2268 (i386_regset_from_core_section): Remove dynamic regset
2270 (i386_gdbarch_init): Remove initialization of tdep fields
2271 'gregset', 'fpregset', and 'xstateregset'.
2272 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2273 'fpregset', and 'xstateregset'.
2274 (i386_collect_gregset): Remove prototype.
2275 (i386_gregset): New declaration.
2276 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2278 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2281 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2283 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2284 (arm_linux_vfpregset): New static regset structures.
2285 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2287 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2288 and 'vfpregset' fields.
2290 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2292 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2293 (aarch64_linux_fpregset): New static regset structures.
2294 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2295 of regset structures.
2296 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2299 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301 * regset.h (struct regset): Remove gdbarch field.
2302 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2303 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2304 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2306 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2307 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2308 (ppc32_linux_vsxregset): Likewise.
2309 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2310 via the regcache instead of the regset.
2311 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2312 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2313 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2314 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2317 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2319 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2320 Constify structures.
2321 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2322 (alphanbsd_aout_gregset): Likewise.
2323 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2324 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2326 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2327 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2329 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2330 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2331 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2332 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2333 * m88k-tdep.c (m88k_gregset): Likewise.
2334 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2335 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2336 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2337 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2338 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2339 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2340 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2341 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2342 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2344 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2345 * sh-tdep.h (sh_corefile_gregset): Likewise.
2346 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2347 * vax-tdep.c (vax_gregset): Likewise.
2349 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2351 Fix TLS access for -static -pthread.
2352 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2353 (try_thread_db_load_1): Initialize it.
2354 (thread_db_get_thread_local_address): Call it if LM is zero.
2355 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2356 * target.h (struct target_ops) (to_get_thread_local_address): Add
2357 load_module_addr comment.
2359 2014-05-21 Pedro Alves <palves@redhat.com>
2361 * dcache.c (dcache_read_memory_partial): If reading the cache line
2362 fails, fallback to reading just the memory the caller wanted.
2364 2014-05-20 Doug Evans <dje@google.com>
2366 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2367 instead of get_current_arch.
2369 2014-05-20 Pedro Alves <palves@redhat.com>
2371 * NEWS: Mention that compare-sections now works with all targets.
2373 * remote.c (PACKET_qCRC): New enum value.
2374 (remote_verify_memory): Don't send qCRC if the target has no
2375 execution. Use packet_support/packet_ok. If the target doesn't
2376 support the qCRC packet, fallback to a deep memory copy.
2377 (compare_sections_command): Say "target image" instead of "remote
2379 (_initialize_remote): Add PACKET_qCRC to the list of config
2380 packets that have no associated command. Extend comment.
2381 * target.c (simple_verify_memory, default_verify_memory): New
2383 * target.h (struct target_ops) <to_verify_memory>: Default to
2384 default_verify_memory.
2385 (simple_verify_memory): New declaration.
2386 * target-delegates.c: Regenerate.
2388 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2390 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2392 2014-05-20 Hui Zhu <hui@codesourcery.com>
2393 Yao Qi <yao@codesourcery.com>
2396 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2397 and change address of sp and pc.
2399 2014-05-19 Tom Tromey <tromey@redhat.com>
2401 * gdbtypes.c (rank_function): Use XNEWVEC.
2402 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2404 2014-05-19 Doug Evans <dje@google.com>
2406 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2407 build_type_unit_groups and moved closer to only caller. Remove
2408 arguments. All references updated. Remove outdated .gdb_index
2410 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2411 build_type_psymtabs_1.
2413 2014-05-19 Doug Evans <dje@google.com>
2415 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2416 n_type_unit_groups, all_type_unit_groups. All uses removed.
2417 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2418 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2419 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2420 (add_type_unit_group_to_table): Delete.
2422 2014-05-19 Doug Evans <dje@google.com>
2424 * eval.c (evaluate_subexp_standard): Add some comments.
2426 2014-05-17 Doug Evans <xdje42@gmail.com>
2428 * progspace.c (remove_program_space): Delete, unused.
2429 * progspace.h (remove_program_space): Ditto.
2431 2014-05-17 Doug Evans <xdje42@gmail.com>
2433 * inferior.c (prune_inferiors): Fix comment.
2434 (remove_inferior_command): Call prune_program_spaces.
2436 2014-05-16 Doug Evans <dje@google.com>
2438 New command line option -D.
2440 * main.c (set_gdb_data_directory): New function.
2441 (captured_main): Recognize -D. Flag error for --data-directory "".
2442 Call set_gdb_data_directory.
2443 (print_gdb_help): Print --data-directory, -D.
2444 * main.h (set_gdb_data_directory): Declare.
2445 * top.c (staged_gdb_datadir): New static global.
2446 (set_gdb_datadir): Call set_gdb_data_directory
2447 (show_gdb_datadir): New function.
2448 (init_main): Update init of data-directory parameter.
2450 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2452 Import the "dirfd" gnulib module.
2453 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2454 * gnulib/aclocal.m4: Update.
2455 * gnulib/config.in: Update.
2456 * gnulib/configure: Update.
2457 * gnulib/import/Makefile.am: Update.
2458 * gnulib/import/Makefile.in: Update.
2459 * gnulib/import/dirfd.c: New.
2460 * gnulib/import/m4/dirfd.m4: New.
2461 * gnulib/import/m4/gnulib-cache.m4: Update.
2462 * gnulib/import/m4/gnulib-comp.m4: Update.
2464 2014-05-16 Pierre Muller <muller@sourceware.org>
2465 Yao Qi <yao@codesourcery.com>
2467 * valprint.c (print_wchar): Move the code on checking whether
2468 W is a printable wide char to the default branch of switch
2469 statement below. Call wchar_printable instead of gdb_iswprint.
2471 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2473 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2474 ldr.w and ldrd instructions.
2476 2014-05-15 Doug Evans <dje@google.com>
2478 * dwarf2read.c (read_structure_type): Delete outdated comments.
2480 2014-05-14 Tom Tromey <tromey@redhat.com>
2482 * macrocmd.c (print_macro_definition): Reindent.
2484 2014-05-13 Doug Evans <xdje42@gmail.com>
2486 * python/py-cmd.c (cmdpy_completer): Add comment.
2487 (completers): Make const.
2489 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2491 * infrun.c (resume): Remove should_resume (unused). Move up
2492 declaration of resume_ptid.
2494 2014-05-13 Tom Tromey <tromey@redhat.com>
2496 * language.h (unop_type_check): Remove.
2497 (binop_type_check): Don't declare.
2499 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2501 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2502 call to regcache_raw_collect.
2504 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2506 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2507 mi_console->quote as the quoting character.
2509 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2511 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2513 2014-04-29 Tom Tromey <tromey@redhat.com>
2515 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2516 "show debug varobj".
2518 2014-05-07 Kyle McMartin <kyle@redhat.com>
2520 Pushed by Joel Brobecker <brobecker@adacore.com>.
2521 * aarch64-tdep.c (aarch64_software_single_step): New function.
2522 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2523 with aarch64_software_single_step.
2525 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2529 2014-05-05 Keith Seitz <keiths@redhat.com>
2531 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2532 variable or history value is successfully parsed.
2534 2014-05-05 Yao Qi <yao@codesourcery.com>
2535 Pedro Alves <palves@redhat.com>
2537 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2538 address of blocks that intersects the requested range. Trim
2539 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2541 * ctf.c (ctf_xfer_partial): Likewise.
2543 2014-05-05 Yao Qi <yao@codesourcery.com>
2545 * printcmd.c (display_command): Remove the check to
2546 target_has_execution.
2548 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2550 * ppcobsd-nat.c: Include "obsd-nat.h".
2551 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2553 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2555 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2557 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2558 and 16-bit signed and unsigned arguments. Update comment.
2559 (stap_parse_probe_arguments): Extend code to handle such
2560 arguments. Use warning instead of complaint to notify about
2561 unrecognized bitness.
2563 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2565 PR breakpoints/16889
2566 * stap-probe.c (stap_parse_probe_arguments): Simplify
2567 check for non-prefixed probes (i.e., probes whose
2568 arguments do not start with "N@"). Always set the
2569 argument type to a sane value.
2571 2014-05-01 David Taylor <dtaylor@emc.com>
2573 * remote.c (compare_sections_command): Add -r option to compare
2574 all loadable read-only sections.
2576 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2578 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2579 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2581 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2582 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2583 Remove unused CORE_ADDR argument. Update all callers.
2585 2014-04-29 Pedro Alves <palves@redhat.com>
2587 * remote.c (struct packet_config) <detect>: Extend comment.
2588 (add_packet_config_cmd): Don't set the config's detect or support
2590 (init_all_packet_configs): Also initialize the config's 'detect'
2592 (reset_all_packet_configs_support): New function.
2593 (remote_open_1): Call reset_all_packet_configs_support instead of
2594 init_all_packet_configs.
2595 (_initialize_remote): Initialize all packet configs. Assert that
2596 all packets have an associated command, except a few known
2599 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2601 * dwarf2read.c (read_subrange_type): Handle dynamic
2602 DW_AT_lower_bound attributes.
2604 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2606 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2607 dynamic bounds before computing its upper bound.
2608 (ada_discrete_type_low_bound): Same as above with the lower bound.
2610 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2612 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2613 range types. Adjust the array handling implementation to
2614 take advantage of this change.
2615 (resolve_dynamic_range): New function, mostly extracted from
2616 resolve_dynamic_bounds.
2617 (resolve_dynamic_array): New function, mostly extracted from
2618 resolve_dynamic_bounds.
2619 (resolve_dynamic_bounds): Delete.
2620 (resolve_dynamic_type): Reimplement. Add handling of
2621 TYPE_CODE_RANGE types.
2623 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2625 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2626 handling of parallel ___XA types.
2628 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2630 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2631 unnecessary second call to static_unwrap_type.
2633 2014-04-27 Hui Zhu <hui@codesourcery.com>
2635 * stack.c (print_frame_info): Call do_gdb_disassembly with
2636 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2638 2014-04-26 Doug Evans <xdje42@gmail.com>
2640 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2642 2014-04-25 Pedro Alves <palves@redhat.com>
2645 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2646 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2647 and newline from built string.
2648 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2649 (linux_ptrace_attach_fail_reason): ... this.
2650 * linux-nat.c (linux_nat_attach): Adjust to use
2651 linux_ptrace_attach_fail_reason.
2653 2014-04-25 Pedro Alves <palves@redhat.com>
2655 * remote.c (struct remote_state): Remove multi_process_aware,
2656 non_stop_aware, cond_tracepoints, cond_breakpoints,
2657 breakpoint_commands, fast_tracepoints, static_tracepoints,
2658 install_in_trace, disconnected_tracing,
2659 enable_disable_tracepoints, string_tracing, and
2660 augmented_libraries_svr4_read fields.
2661 (remote_multi_process_p): Move further below in the file.
2662 (struct packet_config): Add comments.
2663 (update_packet_config): Delete function.
2664 (show_packet_config_cmd): Use packet_config_support.
2665 (add_packet_config_cmd): Use NULL as set callback.
2666 (packet_ok): "set remote foo-packet"-style commands no longer
2667 change config->supported -- adjust.
2668 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2669 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2670 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2671 (PACKET_QNonStop, PACKET_multiprocess_feature)
2672 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2673 (PACKET_DisconnectedTracing_feature)
2674 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2675 (set_remote_protocol_packet_cmd): Delete function.
2676 (packet_config_support, packet_support): New functions.
2677 (set_remote_protocol_Z_packet_cmd): Don't call
2678 update_packet_config.
2679 (remote_query_attached, remote_pass_signals)
2680 (remote_program_signals, remote_threads_info)
2681 (remote_threads_extra_info, remote_start_remote): Use
2683 (remote_start_remote): Use packet_config_support and
2685 (init_all_packet_configs): Set all packets to unknown support,
2686 instead of calling update_packet_config.
2687 (remote_check_symbols): Use packet_support.
2688 (remote_supported_packet): Unconditionally set the packet config's
2690 (remote_multi_process_feature, remote_non_stop_feature)
2691 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2692 (remote_breakpoint_commands_feature)
2693 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2694 (remote_install_in_trace_feature)
2695 (remote_disconnected_tracing_feature)
2696 (remote_enable_disable_tracepoint_feature)
2697 (remote_string_tracing_feature)
2698 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2699 (remote_protocol_features): Adjust to use remote_supported_packet
2700 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2701 "ConditionalTracepoints", "ConditionalBreakpoints",
2702 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2703 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2704 "EnableDisableTracepoints", and "tracenz".
2705 (remote_query_supported): Use packet_support.
2706 (remote_open_1): Adjust.
2707 (extended_remote_attach_1): Use packet_support. Switch on the
2708 result of packet_ok instead of checking whether the packet ended
2710 (remote_vcont_resume): Use packet_support.
2711 (remote_resume, remote_stop_ns, fetch_register_using_p)
2712 (remote_prepare_to_store, store_register_using_P)
2713 (check_binary_download, remote_write_bytes): Use packet_support.
2714 (remote_vkill): Use packet_support. Switch on the result of
2715 packet_ok instead of checking whether the packet ended up
2717 (extended_remote_supports_disable_randomization): Use
2719 (extended_remote_run): Switch on the result of packet_ok instead
2720 of checking whether the packet ended up disabled.
2721 (remote_insert_breakpoint, remote_remove_breakpoint)
2722 (remote_insert_watchpoint, remote_remove_watchpoint)
2723 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2725 (remote_search_memory): Use packet_config_support.
2726 (remote_get_thread_local_address, remote_get_tib_address)
2727 (remote_hostio_send_command, remote_can_execute_reverse): Use
2729 (remote_supports_cond_tracepoints)
2730 (remote_supports_cond_breakpoints)
2731 (remote_supports_fast_tracepoints)
2732 (remote_supports_static_tracepoints)
2733 (remote_supports_install_in_trace)
2734 (remote_supports_enable_disable_tracepoint)
2735 (remote_supports_string_tracing)
2736 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2737 the packet config says the feature is enabled or disabled.
2738 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2739 (remote_get_trace_status): Use packet_support.
2740 (remote_set_disconnected_tracing): Adjust to check whether the
2741 feature is enabled with packet_support.
2742 (remote_set_trace_buffer_size, remote_use_agent)
2743 (remote_can_use_agent, remote_supports_btrace): Use
2745 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2746 Use packet_config_support.
2747 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2748 the packet config says the feature is enabled or disabled.
2749 (set_range_stepping): Use packet_support.
2751 2014-04-25 Tom Tromey <tromey@redhat.com>
2753 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2756 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2758 * NEWS: Mention support for C99 variable length arrays.
2760 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2762 * ada-lang.c (standard_exc): Expand introductory comment.
2764 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2765 Walfred Tedeschi <walfred.tedeschi@intel.com>
2767 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2769 (amd64_linux_read_description): Add code to handle AVX512 xstate
2770 mask and return respective tdesc.
2771 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2772 and features/i386/x32-avx512-linux.c.
2773 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2774 (amd64_linux_core_read_description): Add code to handle AVX512
2775 xstate mask and return respective tdesc.
2776 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2777 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2779 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2780 (tdesc_amd64_avx512_linux): New prototype.
2781 (tdesc_x32_avx512_linux): Likewise.
2782 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2783 features/i386/x32-avx512.c.
2784 (amd64_ymm_avx512_names): New register names for pseudo
2786 (amd64_ymmh_avx512_names): New register names for raw registers
2788 (amd64_k_names): New register names for K registers.
2789 (amd64_zmmh_names): New register names for ZMM raw registers.
2790 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2791 (amd64_xmm_avx512_names): New register names for XMM16-31
2793 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2795 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2796 if feature is present.
2797 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2798 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2799 (AMD64_NUM_REGS): Adjust to new number of registers.
2800 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2801 registers supplied via XSTATE by AVX512 registers.
2802 (i386_linux_read_description): Add case for AVX512.
2803 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2804 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2805 (i386_linux_core_read_description): Add case for AVX512.
2806 (i386_linux_init_abi): Install supported register note section
2808 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2810 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2811 registers to be number of zmm7h + 1.
2812 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2813 * i386-tdep.c: Include features/i386/i386-avx512.c.
2814 (i386_zmm_names): Add ZMM pseudo register names array.
2815 (i386_zmmh_names): Add ZMM raw register names array.
2816 (i386_k_names): Add K raw register names array.
2817 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2818 registers. AVX512 has 16 more ZMM registers than there are YMM
2820 (i386_zmmh_regnum_p): Add function to look up register number of
2822 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2823 (i386_k_regnum_p): Likewise for K raw registers.
2824 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2825 registers added by AVX512.
2826 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2827 registers added by AVX512.
2828 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2830 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2831 (i386_pseudo_register_name): Add ZMM pseudo registers.
2832 (i386_zmm_type): Construct and return vector registers type for ZMM
2834 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2835 ZMM0-31 pseudo registers and K registers.
2836 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2837 and YMM16-31 registers from register cache.
2838 (i386_pseudo_register_write): Add code to write K, ZMM and
2840 (i386_register_reggroup_p): Add code to include/exclude AVX512
2841 registers in/from respective register groups.
2842 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2843 registers if feature is present in xcr0.
2844 (i386_gdbarch_init): Add code to initialize AVX512 feature
2845 variables in tdep structure, wire in pseudo registers and call
2846 initialize_tdesc_i386_avx512.
2847 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2849 (i386_regnum): Add AVX512 registers.
2850 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2851 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2852 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2853 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2855 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2856 (i386_ymm_avx512_regnum_p): Likewise.
2857 (i386_k_regnum_p): Likewise.
2858 (i386_zmm_regnum_p): Likewise.
2859 (i386_zmmh_regnum_p): Likewise.
2860 * i387-tdep.c : Update year in copyright notice.
2861 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2863 (XSAVE_YMM_AVX512_ADDR): New macro.
2864 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2866 (XSAVE_XMM_AVX512_ADDR): New macro.
2867 (xsave_avx512_k_offset): New table for K register offsets in
2869 (XSAVE_AVX512_K_ADDR): New macro.
2870 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2872 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2873 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2875 (i387_collect_xsave): Add code to collect AVX512 registers from
2877 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2878 of XMM16-31 registers.
2879 (I387_NUM_K_REGS): New define for number of K registers.
2880 (I387_K0_REGNUM): New define for K0 register number.
2881 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2882 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2883 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2885 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2886 (I387_XMM16_REGNUM): New define for XMM16 register number.
2887 (I387_YMM0_REGNUM): New define for YMM0 register number.
2888 (I387_KEND_REGNUM): New define for last K register number.
2889 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2890 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2892 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2894 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2896 * features/Makefile: Add AVX512 related files.
2897 * features/i386/32bit-avx512.xml: New file.
2898 * features/i386/64bit-avx512.xml: Likewise.
2899 * features/i386/amd64-avx512-linux.c: Likewise.
2900 * features/i386/amd64-avx512-linux.xml: Likewise.
2901 * features/i386/amd64-avx512.c: Likewise.
2902 * features/i386/amd64-avx512.xml: Likewise.
2903 * features/i386/i386-avx512-linux.c: Likewise.
2904 * features/i386/i386-avx512-linux.xml: Likewise.
2905 * features/i386/i386-avx512.c: Likewise.
2906 * features/i386/i386-avx512.xml: Likewise.
2907 * features/i386/x32-avx512-linux.c: Likewise.
2908 * features/i386/x32-avx512-linux.xml: Likewise.
2909 * features/i386/x32-avx512.c: Likewise.
2910 * features/i386/x32-avx512.xml: Likewise.
2911 * regformats/i386/amd64-avx512-linux.dat: New file.
2912 * regformats/i386/amd64-avx512.dat: Likewise.
2913 * regformats/i386/i386-avx512-linux.dat: Likewise.
2914 * regformats/i386/i386-avx512.dat: Likewise.
2915 * regformats/i386/x32-avx512-linux.dat: Likewise.
2916 * regformats/i386/x32-avx512.dat: Likewise.
2917 * NEWS: Add note about new support for AVX512.
2920 2014-04-23 Pedro Alves <palves@redhat.com>
2922 * breakpoint.c (insert_bp_location): Tolerate errors if the
2923 breakpoint is set in a user-loaded objfile.
2924 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2925 location is marked shlib_disabled. If the breakpoint is set in a
2926 user-loaded objfile is a GDB-side memory breakpoint, validate it
2927 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2928 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2930 * mem-break.c (memory_validate_breakpoint): New function.
2931 * objfiles.c (userloaded_objfile_contains_address_p): New
2933 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2934 * target.h (memory_validate_breakpoint): New declaration.
2936 2014-04-23 Pedro Alves <palves@redhat.com>
2938 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2939 the breakpoint is set in a shared library, only suppress
2940 errors for software breakpoints, not hardware breakpoints.
2942 2014-04-22 Pedro Alves <palves@redhat.com>
2944 * infrun.c (schedlock_applies): New function, factored out from
2945 find_thread_needs_step_over.
2946 (find_thread_needs_step_over): Use it.
2947 (switch_back_to_stepped_thread): Always clear trap_expected if the
2948 step over is finished. Return early if scheduler locking applies.
2949 Look for the stepping thread and a potential step-over thread with
2951 (currently_stepping_or_nexting_callback): Delete.
2953 2014-04-22 Nick Clifton <nickc@redhat.com>
2955 * NEWS: Mention that ARM sim now supports tracing.
2957 2014-04-22 Yao Qi <yao@codesourcery.com>
2959 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2961 * tracefile.c (tracefile_fetch_registers): ... it. New
2963 * tracefile.h (tracefile_fetch_registers): Declare.
2964 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2965 tracefile_fetch_registers.
2967 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2970 * windows-nat.c (thread_rec): Don't display a warning when
2971 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2972 fails for any reason, set th->suspended to -1, so that we don't
2973 try to resume such a thread. Also, don't return NULL in these
2974 cases, to avoid completely ruin the session due to "PC register is
2975 not available" error.
2976 (do_windows_fetch_inferior_registers): Check errors in
2977 GetThreadContext call.
2978 (windows_continue): Accept an additional argument KILLED; if not
2979 zero, ignore errors in the SetThreadContext call, since the
2980 inferior was killed and is shutting down.
2981 (windows_resume, get_windows_debug_event)
2982 (windows_create_inferior, windows_mourn_inferior)
2983 (windows_kill_inferior): All callers of windows_continue changed
2984 to adjust to its new calling sequence.
2986 2014-04-19 Yao Qi <yao@codesourcery.com>
2988 * ctf.c (ctf_open): Call post_create_inferior.
2990 2014-04-19 Yao Qi <yao@codesourcery.com>
2992 * ctf.c (handle_id): New static variable.
2993 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2994 value. Get the declaration of event "register" and get length
2995 of field "contents".
2997 2014-04-19 Yao Qi <yao@codesourcery.com>
2999 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3001 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3003 * valops.c (oload_method_static): Remove unnecessary argument
3004 METHOD. Update all callers.
3006 2014-04-18 Pedro alves <palves@redhat.com>
3007 Tom Tromey <tromey@redhat.com>
3010 * frame.c (get_prev_frame_1): Rename to ...
3011 (get_prev_frame_always): ... this, and make extern. Adjust.
3012 (skip_artificial_frames): Use get_prev_frame_always.
3013 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3014 (get_frame_unwind_stop_reason): Adjust to rename.
3015 * frame.h (get_prev_frame_always): Declare.
3016 * inline-frame.c: Include frame.h.
3017 (inline_frame_this_id): Use get_prev_frame_always.
3019 2014-04-18 Tristan Gingold <gingold@adacore.com>
3021 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3022 code by using bfd_mach_o_get_base_address.
3024 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3026 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3027 (spu_ax_pseudo_register_collect): New function.
3028 (spu_ax_pseudo_register_push_stack): Likewise.
3029 (spu_dwarf_reg_to_regnum): Likewise.
3030 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3032 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3034 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3035 Replace FRAME argument with FRAME_ID.
3036 * gdbarch.c, gdbarch.h: Regenerate.
3037 * findvar.c (default_value_from_register): Add GDBARCH argument;
3038 replace FRAME by FRAME_ID. No longer call get_frame_id.
3039 (value_from_register): Update call to gdbarch_value_from_register.
3040 * value.h (default_value_from_register): Update prototype.
3041 * s390-linux-tdep.c (s390_value_from_register): Update interface
3042 and call to default_value_from_register.
3043 * spu-tdep.c (spu_value_from_register): Likewise.
3045 * findvar.c (address_from_register): Remove TYPE argument.
3046 Do not call value_from_register; use gdbarch_value_from_register
3047 with null_frame_id instead.
3048 * value.h (address_from_register): Update prototype.
3049 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3050 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3051 address_from_register interface change.
3053 2014-04-17 Yao Qi <yao@codesourcery.com>
3055 * gdbtypes.h: Update comments to link to types and macros'
3058 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3060 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3062 2014-04-16 Keith Seitz <keiths@redhat.com>
3065 * dwarf2read.c (skip_one_die): Check that all relative-offset
3066 sibling DIEs fall within range of the current reader's buffer.
3067 (read_partial_die): Likewise.
3069 2014-04-16 Keith Seitz <keiths@redhat.com>
3072 * cp-namespace.c (lookup_symbol_file): If the type name of
3073 `this' is NULL, return immediately.
3075 2014-04-14 Keith Seitz <keiths@redhat.com>
3078 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3079 from symbol_matches_domain in symtab.c. All local callers
3080 of symbol_matches_domain updated.
3081 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3082 search STRUCT_DOMAIN.
3083 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3084 independently. standard_lookup will do that automatically.
3085 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3086 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3087 (cp_lookup_symbol_in_namespace): Likewise.
3088 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3089 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3090 may return a STRUCT_DOMAIN match.
3091 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3092 * cp-support.c: Include language.h.
3093 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3095 * psymtab.c (match_partial_symbol): Compare the requested
3096 domain with the symbol's domain directly.
3097 (lookup_partial_symbol): Likewise.
3098 * symtab.c (lookup_symbol_in_language): Explain when/why
3099 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3100 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3101 appropriate languages.
3102 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3103 and moved to ada-lang.c
3104 (lookup_block_symbol): Explain that this function only returns
3105 symbol matching the requested DOMAIN.
3106 Compare the requested domain with the symbol's domain directly.
3107 (iterate_over_symbols): Compare the requested domain with the
3108 symbol's domain directly.
3109 * symtab.h (symbol_matches_domain): Remove.
3111 2014-04-14 Tom Tromey <tromey@redhat.com>
3114 * c-exp.y (type_aggregate_p): New function.
3115 (qualified_name, classify_inner_name): Use it.
3116 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3117 and TYPE_TARGET_TYPE of an enum type.
3118 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3120 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3121 handle TYPE_DECLARED_CLASS.
3122 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3124 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3125 * valops.c (enum_constant_from_type): New function.
3126 (value_aggregate_elt): Use it.
3127 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3130 2014-04-14 Tom Tromey <tromey@redhat.com>
3132 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3133 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3135 * value.h (value_aggregate_elt): Update.
3137 2014-04-14 Tom Tromey <tromey@redhat.com>
3139 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3141 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3143 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3144 (evaluate_subexp_standard): Pass noside argument.
3145 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3146 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3147 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3148 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3149 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3151 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3153 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3154 points to a constant blob.
3156 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3158 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3159 property and store it as the high bound and flag the range accordingly.
3160 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3161 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3162 * gdbtypes.h (enum range_flags): New enum.
3163 (struct range_bounds): Add flags member.
3165 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3167 * c-typeprint.c (c_type_print_varspec_suffix): Added
3168 check for not yet resolved high bound. If unresolved, print
3169 "variable length" string to the console instead of random
3172 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3174 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3176 (ada_template_to_fixed_record_type_1): Likewise.
3177 (ada_to_fixed_type_1): Likewise.
3178 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3179 (cp_print_value): Likewise.
3180 * d-valprint.c (dynamic_array_type): Likewise.
3181 * findvar.c (address_of_variable): Likewise.
3182 * jv-valprint.c (java_value_print): Likewise.
3183 * valops.c (value_ind): Likewise.
3184 * value.c (coerce_ref): Likewise.
3186 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3188 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3189 value and retrieve the dynamic type size.
3191 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3193 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3194 passed to sizeof is dynamic evaluate the argument to compute the length.
3196 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3197 Joel Brobecker <brobecker@adacore.com>
3199 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3200 (dwarf2_evaluate_property): New function.
3201 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3202 * dwarf2read.c (attr_to_dynamic_prop): New function.
3203 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3205 * gdbtypes.c: Include dwarf2loc.h.
3206 (is_dynamic_type): New function.
3207 (resolve_dynamic_type): New function.
3208 (resolve_dynamic_bounds): New function.
3209 (get_type_length): New function.
3210 (check_typedef): Use get_type_length to compute type length.
3211 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3212 (TYPE_LOW_BOUND_KIND): New macro.
3213 (is_dynamic_type): New function prototype.
3214 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3215 to resolve dynamic properties of the type. Update comment.
3216 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3218 2014-04-14 Richard Henderson <rth@redhat.com>
3220 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3222 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3223 Doug Evans <xdje42@gmail.com>
3225 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3226 dereference TYPE_CODE_REF values.
3228 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3230 Revert the following changes due to regressions:
3232 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3233 (dwarf2_evaluate_property): New function.
3234 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3235 * dwarf2read.c (attr_to_dynamic_prop): New function.
3236 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3238 * gdbtypes.c: Include dwarf2loc.h.
3239 (is_dynamic_type): New function.
3240 (resolve_dynamic_type): New function.
3241 (resolve_dynamic_bounds): New function.
3242 (get_type_length): New function.
3243 (check_typedef): Use get_type_length to compute type length.
3244 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3245 (TYPE_LOW_BOUND_KIND): New macro.
3246 (is_dynamic_type): New function prototype.
3247 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3248 to resolve dynamic properties of the type. Update comment.
3249 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3251 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3252 passed to sizeof is dynamic evaluate the argument to compute the length.
3254 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3255 value and retrieve the dynamic type size.
3257 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3258 (ada_template_to_fixed_record_type_1): Likewise.
3259 (ada_to_fixed_type_1): Likewise.
3260 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3261 (cp_print_value): Likewise.
3262 * d-valprint.c (dynamic_array_type): Likewise.
3263 * eval.c (evaluate_subexp_with_coercion): Likewise.
3264 * findvar.c (address_of_variable): Likewise.
3265 * jv-valprint.c (java_value_print): Likewise.
3266 * valops.c (value_ind): Likewise.
3267 * value.c (coerce_ref): Likewise.
3269 * c-typeprint.c (c_type_print_varspec_suffix): Added
3270 check for not yet resolved high bound. If unresolved, print
3271 "variable length" string to the console instead of random
3274 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3275 property and store it as the high bound and flag the range accordingly.
3276 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3277 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3278 * gdbtypes.h (enum range_flags): New enum.
3279 (struct range_bounds): Add flags member.
3281 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3282 points to a constant blob.
3284 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3285 (evaluate_subexp_standard): Pass noside argument.
3286 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3287 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3288 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3289 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3290 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3292 2014-04-11 Keith Seitz <keiths@redhat.com>
3295 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3296 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3299 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3301 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3302 (evaluate_subexp_standard): Pass noside argument.
3303 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3304 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3305 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3306 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3307 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3309 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3311 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3312 points to a constant blob.
3314 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3316 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3317 property and store it as the high bound and flag the range accordingly.
3318 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3319 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3320 * gdbtypes.h (enum range_flags): New enum.
3321 (struct range_bounds): Add flags member.
3323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3325 * c-typeprint.c (c_type_print_varspec_suffix): Added
3326 check for not yet resolved high bound. If unresolved, print
3327 "variable length" string to the console instead of random
3330 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3332 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3333 (ada_template_to_fixed_record_type_1): Likewise.
3334 (ada_to_fixed_type_1): Likewise.
3335 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3336 (cp_print_value): Likewise.
3337 * d-valprint.c (dynamic_array_type): Likewise.
3338 * eval.c (evaluate_subexp_with_coercion): Likewise.
3339 * findvar.c (address_of_variable): Likewise.
3340 * jv-valprint.c (java_value_print): Likewise.
3341 * valops.c (value_ind): Likewise.
3342 * value.c (coerce_ref): Likewise.
3344 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3346 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3347 value and retrieve the dynamic type size.
3349 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3351 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3352 passed to sizeof is dynamic evaluate the argument to compute the length.
3354 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3356 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3357 (dwarf2_evaluate_property): New function.
3358 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3359 * dwarf2read.c (attr_to_dynamic_prop): New function.
3360 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3362 * gdbtypes.c: Include dwarf2loc.h.
3363 (is_dynamic_type): New function.
3364 (resolve_dynamic_type): New function.
3365 (resolve_dynamic_bounds): New function.
3366 (get_type_length): New function.
3367 (check_typedef): Use get_type_length to compute type length.
3368 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3369 (TYPE_LOW_BOUND_KIND): New macro.
3370 (is_dynamic_type): New function prototype.
3371 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3372 to resolve dynamic properties of the type. Update comment.
3373 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3375 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3377 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3378 declaring high/low bounds and change uses accordingly. Call
3379 create_range_type instead of create_static_range_type.
3380 * gdbtypes.c (create_range_type): New function.
3381 (create_range_type): Convert bounds into struct bound_prop and pass
3382 them to create_range_type.
3383 * gdbtypes.h (struct bound_prop): New struct.
3384 (create_range_type): New function prototype.
3385 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3386 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3387 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3389 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3391 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3393 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3394 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3395 * ada-lang.c: All uses of create_range_type updated.
3396 * coffread.c: All uses of create_range_type updated.
3397 * dwarf2read.c: All uses of create_range_type updated.
3398 * f-exp.y: All uses of create_range_type updated.
3399 * m2-valprint.c: All uses of create_range_type updated.
3400 * mdebugread.c: All uses of create_range_type updated.
3401 * stabsread.c: All uses of create_range_type updated.
3402 * valops.c: All uses of create_range_type updated.
3403 * valprint.c: All uses of create_range_type updated.
3405 2014-04-10 Pedro Alves <palves@redhat.com>
3407 * breakpoint.c (single_step_breakpoints)
3408 (single_step_gdbarch): Move up in the file.
3409 (one_breakpoint_xfer_memory): New function, factored out from ...
3410 (breakpoint_xfer_memory): ... here. Also process single-step
3413 2014-04-09 Tristan Gingold <gingold@adacore.com>
3415 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3417 (darwin_decode_exception_message): Free port only after use.
3419 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3421 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3422 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3423 when setting the size of call_length.
3425 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3427 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3428 dereference TYPE_CODE_REF values.
3430 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3432 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3433 end of warning message.
3435 2014-04-03 Doug Evans <dje@google.com>
3437 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3438 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3440 2014-04-02 Alan Modra <amodra@gmail.com>
3442 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3443 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3444 (struct symbol_file_add_from_memory_args): Add size field.
3445 (find_vdso_size): New function.
3446 (add_vsyscall_page): Attempt to find vdso size.
3448 2014-04-01 Doug Evans <dje@google.com>
3450 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3452 2014-04-01 Tristan Gingold <gingold@adacore.com>
3454 * darwin-nat.c (darwin_encode_reply): Add prototype.
3455 (darwin_decode_exception_message): Reply to unknown inferiors.
3456 (darwin_decode_message): Handle message by id. Ignore message
3457 to unknown inferior.
3458 (darwin_wait): Discard unknown messages, add debug trace.
3460 2014-03-31 Doug Evans <dje@google.com>
3462 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3465 2014-03-31 Doug Evans <dje@google.com>
3467 New option "set print symbol-loading".
3469 * solib.c (solib_read_symbols): Only print symbol loading messages
3471 (solib_add): If symbol loading is in "brief" mode, notify user
3472 symbols are being loaded.
3473 (reload_shared_libraries_1): Ditto.
3474 * symfile.c (print_symbol_loading_off): New static global.
3475 (print_symbol_loading_brief): New static global.
3476 (print_symbol_loading_full): New static global.
3477 (print_symbol_loading_enums): New static global.
3478 (print_symbol_loading): New static global.
3479 (print_symbol_loading_p): New function.
3480 (symbol_file_add_with_addrs): Only print symbol loading messages
3482 (_initialize_symfile): Register "print symbol-loading" set/show
3484 * symfile.h (print_symbol_loading_p): Declare.
3486 2014-03-30 Doug Evans <xdje42@gmail.com>
3488 * infrun.c (set_last_target_status): New function.
3489 (handle_inferior_event): Call it.
3491 2014-03-30 Doug Evans <xdje42@gmail.com>
3493 * inferior.h (enum stop_kind): Improve comment.
3495 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3497 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3498 a reference, strip the reference layer before calling
3499 the lang_ops value_has_mutated callback.
3501 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3503 Remove some globals from our parser.
3504 * language.c (unk_lang_parser): Add "struct parser_state"
3506 * language.h (struct language_defn) <la_parser>: Likewise.
3507 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3508 (initialize_expout): Add "struct parser_state" argument.
3509 Rewrite function to use the parser state.
3510 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3511 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3512 write_exp_elt_longcst, write_exp_elt_dblcst,
3513 write_exp_elt_decfloatcst, write_exp_elt_type,
3514 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3515 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3516 write_dollar_variable): Likewise.
3517 (parse_exp_in_context_1): Use parser state.
3518 (insert_type_address_space): Add "struct parser_state" argument.
3520 (increase_expout_size): New function.
3521 * parser-defs.h: Forward declare "struct language_defn" and
3522 "struct parser_state".
3523 (expout, expout_size, expout_ptr): Remove extern declarations.
3524 (parse_gdbarch, parse_language): Rewrite macro declarations to
3525 accept the parser state.
3526 (struct parser_state): New struct.
3527 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3528 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3529 write_exp_elt_decfloatcst, write_exp_elt_type,
3530 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3531 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3532 write_exp_msymbol, write_dollar_variable,
3533 mark_struct_expression, insert_type_address_space): Add "struct
3534 parser_state" argument.
3535 (increase_expout_size): New function.
3536 * utils.c (do_clear_parser_state): New function.
3537 (make_cleanup_clear_parser_state): Likewise.
3538 * utils.h (make_cleanup_clear_parser_state): New function
3540 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3541 Update calls to write_exp* in order to pass the parser state.
3542 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3543 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3544 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3545 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3546 * stap-probe.c (stap_parse_register_operand): Likewise.
3547 (stap_parse_single_operand): Likewise.
3548 (stap_parse_argument_1): Likewise.
3549 (stap_parse_argument): Use parser state.
3550 * stap-probe.h: Include "parser-defs.h".
3551 (struct stap_parse_info) <pstate>: New field.
3552 * c-exp.y (parse_type): Rewrite to use parser state.
3553 (yyparse): Redefine to c_parse_internal.
3554 (pstate): New global variable.
3555 (parse_number): Add "struct parser_state" argument.
3556 (write_destructor_name): Likewise.
3557 (type_exp): Update calls to write_exp* and similars in order to
3559 (exp1, exp, variable, qualified_name, space_identifier,
3560 typename, typebase): Likewise.
3561 (write_destructor_name, parse_number, lex_one_token,
3562 classify_name, classify_inner_name, c_parse): Add "struct
3563 parser_state" argument. Update function to use parser state.
3564 * c-lang.h: Forward declare "struct parser_state".
3565 (c_parse): Add "struct parser_state" argument.
3566 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3567 (yyparse): Redefine macro to ada_parse_internal.
3568 (pstate): New variable.
3569 (write_int, write_object_renaming, write_var_or_type,
3570 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3571 type_int, type_long, type_long_long, type_float, type_double,
3572 type_long_double, type_char, type_boolean, type_system_address):
3573 Add "struct parser_state" argument.
3574 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3575 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3576 var_or_type, aggregate, aggregate_component_list,
3577 positional_list, others, component_group,
3578 component_associations): Update calls to write_exp* and similar
3579 functions in order to use parser state.
3580 (ada_parse, write_var_from_sym, write_int,
3581 write_exp_op_with_string, write_object_renaming,
3582 find_primitive_type, write_selectors, write_ambiguous_var,
3583 write_var_or_type, write_name_assoc, type_int, type_long,
3584 type_long_long, type_float, type_double, type_long_double,
3585 type_char, type_boolean, type_system_address): Add "struct
3586 parser_state" argument. Adjust function to use parser state.
3587 * ada-lang.c (parse): Likewise.
3588 * ada-lang.h: Forward declare "struct parser_state".
3589 (ada_parse): Add "struct parser_state" argument.
3590 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3591 calls to both functions.
3592 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3594 (yyparse): Redefine macro to f_parse_internal.
3595 (pstate): New variable.
3596 (parse_number): Add "struct parser_state" argument.
3597 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3598 and similars in order to use parser state.
3599 (parse_number): Adjust code to use parser state.
3601 (f_parse): New function.
3602 * f-lang.h: Forward declare "struct parser_state".
3603 (f_parse): Add "struct parser_state" argument.
3604 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3606 (yyparse): Redefine macro for java_parse_internal.
3607 (pstate): New variable.
3608 (push_expression_name, push_expression_name, insert_exp): Add
3609 "struct parser_state" argument.
3610 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3611 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3612 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3613 PostIncrementExpression, PostDecrementExpression,
3614 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3615 UnaryExpressionNotPlusMinus, CastExpression,
3616 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3617 RelationalExpression, EqualityExpression, AndExpression,
3618 ExclusiveOrExpression, InclusiveOrExpression,
3619 ConditionalAndExpression, ConditionalOrExpression,
3620 ConditionalExpression, Assignment, LeftHandSide): Update
3621 calls to write_exp* and similars in order to use parser state.
3622 (parse_number): Ajust code to use parser state.
3624 (java_parse): New function.
3625 (push_variable): Add "struct parser_state" argument. Adjust
3626 code to user parser state.
3627 (push_fieldnames, push_qualified_expression_name,
3628 push_expression_name, insert_exp): Likewise.
3629 * jv-lang.h: Forward declare "struct parser_state".
3630 (java_parse): Add "struct parser_state" argument.
3631 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3633 (yyparse): Redefine macro to m2_parse_internal.
3634 (pstate): New variable.
3635 (type_exp, exp, fblock, variable, type): Update calls to
3636 write_exp* and similars to use parser state.
3638 (m2_parse): New function.
3639 * m2-lang.h: Forward declare "struct parser_state".
3640 (m2_parse): Add "struct parser_state" argument.
3641 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3642 * objc-lang.h: Forward declare "struct parser_state".
3643 (end_msglist): Add "struct parser_state" argument.
3644 * p-exp.y (parse_type): Rewrite macro to use parser state.
3645 (yyparse): Redefine macro to pascal_parse_internal.
3646 (pstate): New variable.
3647 (parse_number): Add "struct parser_state" argument.
3648 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3649 write_exp* and similars in order to use parser state.
3650 (parse_number, yylex): Adjust code to use parser state.
3651 (pascal_parse): New function.
3652 * p-lang.h: Forward declare "struct parser_state".
3653 (pascal_parse): Add "struct parser_state" argument.
3654 * go-exp.y (parse_type): Rewrite macro to use parser state.
3655 (yyparse): Redefine macro to go_parse_internal.
3656 (pstate): New variable.
3657 (parse_number): Add "struct parser_state" argument.
3658 (type_exp, exp1, exp, variable, type): Update calls to
3659 write_exp* and similars in order to use parser state.
3660 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3661 to use parser state.
3662 (go_parse): Likewise.
3663 * go-lang.h: Forward declare "struct parser_state".
3664 (go_parse): Add "struct parser_state" argument.
3666 2014-03-27 Doug Evans <dje@google.com>
3668 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3670 2014-03-27 Doug Evans <dje@google.com>
3672 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3673 Remove argument abbrev_section. All callers updated.
3675 2014-03-27 Doug Evans <dje@google.com>
3677 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3678 addr_base, ranges_base.
3680 2014-03-26 Keith Seitz <keiths@redhat.com>
3682 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3683 types, not VAR_DOMAIN.
3685 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3687 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3689 * features/nios2-linux.c: Regenerated.
3690 * features/nios2.c: Regenerated.
3692 2014-03-25 Pedro Alves <palves@redhat.com>
3694 * cli/cli-script.c (script_from_file): Force the interpreter to
3697 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3699 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3700 small stack allocation.
3702 2014-03-24 Tristan Gingold <gingold@adacore.com>
3704 * darwin-nat.c (exc_server): Remove unused prototype.
3705 (darwin_dump_message): Correctly display data on x86_64.
3706 (darwin_encode_reply): Fix style.
3707 Add comments and fix indentation.
3709 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3711 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3713 2014-03-22 Doug Evans <xdje42@gmail.com>
3715 * infcmd.c: Whitespace fixes.
3716 (interrupt_command): Merge two function comments into one.
3718 2014-03-22 Doug Evans <xdje42@gmail.com>
3720 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3723 2014-03-22 Yao Qi <yao@codesourcery.com>
3725 * remote.c (target_read_live_memory): Remove.
3726 (memory_xfer_live_readonly_partial): Rename it to
3727 remote_xfer_live_readonly_partial. Remove argument 'object'.
3728 All callers updated. Call remote_read_bytes_1
3729 instead of target_read_live_memory.
3730 * tracepoint.c (set_traceframe_number): Remove.
3731 (make_cleanup_restore_traceframe_number): Likewise .
3732 * tracepoint.h (set_traceframe_number): Remove declaration.
3733 (make_cleanup_restore_traceframe_number): Likewise.
3735 2014-03-22 Yao Qi <yao@codesourcery.com>
3737 * remote.c (remote_read_bytes): Move code on reading from the
3739 (remote_read_bytes_1): ... here. New function.
3741 2014-03-22 Yao Qi <yao@codesourcery.com>
3743 * ctf.c (ctf_xfer_partial): Check the return value of
3744 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3745 return TARGET_XFER_UNAVAILABLE.
3746 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3747 * target.c (target_read_live_memory): Move it to remote.c.
3748 (memory_xfer_live_readonly_partial): Likewise.
3749 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3750 * remote.c (target_read_live_memory): Moved from target.c.
3751 (memory_xfer_live_readonly_partial): Likewise.
3752 (remote_read_bytes): Factored out from
3753 memory_xfer_partial_1.
3755 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3757 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3760 2014-03-21 Pedro Alves <palves@redhat.com>
3762 * infrun.c (normal_stop): Extend comment.
3764 2014-03-21 Hui Zhu <hui@codesourcery.com>
3765 Pedro Alves <palves@redhat.com>
3767 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3769 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3770 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3771 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3773 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3775 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3776 `z' formatted output modifier.
3778 2014-03-20 Tom Tromey <tromey@redhat.com>
3779 Sergio Durigan Junior <sergiodj@redhat.com>
3781 * probe.c (parse_probes): Turn assert into an ordinary error.
3782 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3783 exceptions when parsing probes. Rearrange the code for clarity.
3785 2014-03-20 Tom Tromey <tromey@redhat.com>
3788 * top.c (execute_command): Only dispatch events if the command
3791 2014-03-20 Tom Tromey <tromey@redhat.com>
3794 * infcall.c: Include event-top.h.
3795 (run_inferior_call): Call async_disable_stdin if needed.
3797 2014-03-20 Pedro Alves <palves@redhat.com>
3799 * infrun.c (prepare_to_proceed): Delete.
3800 (thread_still_needs_step_over): New function.
3801 (find_thread_needs_step_over): New function.
3802 (proceed): If the current thread needs a step-over, set its
3803 steping_over_breakpoint flag. Adjust to use
3804 find_thread_needs_step_over instead of prepare_to_proceed.
3805 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3806 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3808 (switch_back_to_stepped_thread): Step over breakpoints of all
3809 threads not the stepping thread, before switching back to the
3812 2014-03-20 Pedro Alves <palves@redhat.com>
3814 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3816 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3817 * infrun.c (saved_singlestep_ptid)
3818 (stepping_past_singlestep_breakpoint): Delete.
3819 (resume): Remove stepping_past_singlestep_breakpoint handling.
3820 (proceed): Store the prev_pc of the stepping thread too.
3821 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3823 (enum infwait_states): Delete infwait_thread_hop_state.
3824 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3826 (handle_inferior_event): Adjust.
3827 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3828 handling and the thread-hop code. Before removing single-step
3829 breakpoints, check whether the thread hit a single-step breakpoint
3830 of another thread. If it did, the trap is not a random signal.
3831 (switch_back_to_stepped_thread): If the event thread hit a
3832 single-step breakpoint, unblock it before switching to the
3833 stepping thread. Handle the case of the stepped thread having
3835 (keep_going): Handle the case of the current thread moving past a
3836 single-step breakpoint.
3838 2014-03-20 Pedro Alves <palves@redhat.com>
3841 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3842 are being stepped over.
3843 (breakpoint_address_match): Make extern.
3844 * breakpoint.h (breakpoint_address_match): New declaration.
3845 * inferior.h (stepping_past_instruction_at): New declaration.
3846 * infrun.c (struct step_over_info): New type.
3847 (step_over_info): New global.
3848 (set_step_over_info, clear_step_over_info)
3849 (stepping_past_instruction_at): New functions.
3850 (handle_inferior_event): Clear the step-over info when
3851 trap_expected is cleared.
3852 (resume): Remove now stale comment.
3853 (clear_proceed_status): Clear step-over info.
3854 (proceed): Adjust step-over handling to set or clear the step-over
3855 info instead of removing all breakpoints.
3856 (handle_signal_stop): When setting up a thread-hop, don't remove
3858 (stop_stepping): Clear step-over info.
3859 (keep_going): Adjust step-over handling to set or clear step-over
3860 info and then always inserting breakpoints, instead of removing
3861 all breakpoints when stepping over one.
3863 2014-03-20 Pedro Alves <palves@redhat.com>
3865 * infrun.c (previous_inferior_ptid): Adjust comment.
3866 (deferred_step_ptid): Delete.
3867 (infrun_thread_ptid_changed, prepare_to_proceed)
3868 (init_wait_for_inferior): Adjust.
3869 (handle_signal_stop): Delete deferred_step_ptid handling.
3871 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3874 * defs.h (sync_quit_force_run): New declaration.
3875 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3876 * event-top.c (async_sigterm_handler): New declaration.
3877 (async_sigterm_token): New variable.
3878 (async_init_signals): Create also async_sigterm_token.
3879 (async_sigterm_handler): New function.
3880 (sync_quit_force_run): New variable.
3881 (handle_sigterm): Replace quit_force call by other calls.
3882 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3884 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3886 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3887 offset into SPE pseudo registers.
3889 2014-03-18 Pedro Alves <palves@redhat.com>
3892 * inferior.h (print_stop_event): Declare.
3893 * infrun.c (print_stop_event): New, factored out from ...
3894 (normal_stop): ... this.
3895 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3896 of bpstat_print/print_stack_frame.
3898 2014-03-17 Tom Tromey <tromey@redhat.com>
3900 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3902 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3904 * ada-lang.c (decode_constrained_packed_array): Perform a
3905 minimal coercion for reference with coerce_ref instead of
3908 2014-03-17 Tristan Gingold <gingold@adacore.com>
3910 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3911 (darwin_solib_create_inferior_hook): Emit a warning if version
3914 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3916 * python/py-value.c (get_field_flag): Cast flag_name argument to
3917 PyObject_GetAttrString to support Python 2.4.
3919 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3921 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3922 (Global Maintainers): Remove Jan Kratochvil.
3924 2014-03-14 Pedro Alves <palves@redhat.com>
3926 * inferior.h (terminal_ours_for_output): Rename to ...
3927 (child_terminal_ours_for_output): ... this.
3928 (terminal_save_ours): Rename to ...
3929 (child_terminal_save_ours): ... this.
3930 (terminal_ours): Rename to ...
3931 (child_terminal_ours): ... this.
3932 (terminal_inferior): Rename to ...
3933 (child_terminal_inferior): ... this.
3934 (terminal_init_inferior): Rename to ...
3935 (child_terminal_init_inferior): ... this.
3936 (terminal_init_inferior_with_pgrp): Rename to ...
3937 (child_terminal_init_inferior_with_pgrp): ... this.
3938 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3939 (child_terminal_init_with_pgrp): ... this.
3940 (terminal_save_ours): Rename to ...
3941 (child_terminal_save_ours): ... this.
3942 (terminal_init_inferior): Rename to ...
3943 (child_terminal_init): ... this. Adjust.
3944 (terminal_inferior): Rename to ...
3945 (child_terminal_inferior): ... this.
3946 (terminal_ours_for_output): Rename to ...
3947 (child_terminal_ours_for_output): ... this. Adjust.
3948 (terminal_ours): Rename to ...
3949 (child_terminal_ours): ... this.
3950 (terminal_ours_1): Rename to ...
3951 (child_terminal_ours_1): ... this. Adjust.
3952 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3953 * windows-nat.c (do_initial_windows_stuff): Adjust.
3954 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3955 (gnu_terminal_init): ... this. Adjust.
3956 (gnu_target): Adjust.
3957 * inf-child.c (inf_child_target): Adjust.
3959 2014-03-13 Doug Evans <xdje42@gmail.com>
3962 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3965 2014-03-13 Doug Evans <xdje42@gmail.com>
3967 * value.c (record_latest_value): Call release_value_or_incref
3968 instead of release_value.
3970 2014-03-13 Pedro Alves <palves@redhat.com>
3972 * procfs.c (procfs_target): Don't override to_shortname,
3973 to_longname or to_doc.
3975 2014-03-13 Pedro Alves <palves@redhat.com>
3977 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3978 Unix in user visible strings.
3980 2014-03-12 Stan Shebs <stan@codesourcery.com>
3982 * gdbtypes.h: Annotate comments for Doxygen, add a page
3983 block comment with some general info.
3985 2014-03-12 Pedro Alves <palves@redhat.com>
3987 * infcmd.c (prepare_execution_command): New function, factored out
3988 from several execution commands.
3989 (run_command_1, continue_command, step_1, jump_command)
3990 (signal_command, until_command, advance_command, finish_command)
3991 (attach_command): Use prepare_execution_command.
3993 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3995 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3998 (struct arm_linux_thread_points): Removed.
3999 (struct arm_linux_process_info): New.
4000 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4001 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4002 (arm_linux_find_breakpoints_by_tid): Removed.
4003 (struct arch_lwp_info): New.
4004 (arm_linux_find_process_pid): New functions.
4005 (arm_linux_add_process): New functions.
4006 (arm_linux_process_info_get): New functions.
4007 (arm_linux_forget_process): New function.
4008 (arm_linux_get_debug_reg_state): New function.
4009 (struct update_registers_data): New.
4010 (update_registers_callback): New function.
4011 (arm_linux_insert_hw_breakpoint1): Updated.
4012 (arm_linux_remove_hw_breakpoint1): Updated.
4013 (arm_linux_insert_hw_breakpoint): Updated.
4014 (arm_linux_remove_hw_breakpoint): Updated.
4015 (arm_linux_insert_watchpoint): Updated.
4016 (arm_linux_remove_watchpoint): Updated.
4017 (arm_linux_new_thread): Updated.
4018 (arm_linux_prepare_to_resume): New function.
4019 (arm_linux_new_fork): New function.
4020 (_initialize_arm_linux_nat): Updated.
4022 2014-03-12 Pedro Alves <palves@redhat.com>
4024 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4026 2014-03-12 Tom Tromey <tromey@redhat.com>
4028 * inf-child.c (return_zero): New function.
4029 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4030 * aix-thread.c (aix_thread_inferior_created): New function.
4031 (aix_thread_attach): Remove.
4032 (init_aix_thread_ops): Don't set to_attach.
4033 (_initialize_aix_thread): Register inferior_created observer.
4034 * corelow.c (init_core_ops): Don't set to_attach or
4036 * exec.c (init_exec_ops): Don't set to_attach or
4038 * infcmd.c (run_command_1): Use find_run_target. Make direct
4040 (attach_command): Use find_attach_target. Make direct target
4042 * record-btrace.c (init_record_btrace_ops): Don't set
4044 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4046 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4047 set to_create_inferior.
4048 * target.c (complete_target_initialization): Add assertion.
4049 (target_create_inferior): Remove.
4050 (find_default_attach, find_default_create_inferior): Remove.
4051 (find_attach_target, find_run_target): New functions.
4052 (find_default_is_async_p, find_default_can_async_p)
4053 (target_supports_non_stop, target_attach): Remove.
4054 (init_dummy_target): Don't set to_create_inferior or
4055 to_supports_non_stop.
4056 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4057 TARGET_DEFAULT_FUNC.
4058 <to_create_inferior>: Add comment.
4059 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4060 TARGET_DEFAULT_RETURN.
4061 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4062 (find_attach_target, find_run_target): Declare.
4063 (target_create_inferior): Remove.
4064 (target_has_execution_1): Update comment.
4065 (target_supports_non_stop): Remove.
4066 * target-delegates.c: Rebuild.
4068 2014-03-12 Pedro Alves <palves@redhat.com>
4070 * inf-child.h: Update comment to not mention Unix.
4072 2014-03-12 Pedro Alves <palves@redhat.com>
4074 * inf-child.c: Update top comment to not mention Unix. Add
4075 generic comment describing how this target is meant to be used.
4076 (inf_child_post_attach, inf_child_post_startup_inferior)
4077 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4080 2014-03-12 Pedro Alves <palves@redhat.com>
4082 * nto-procfs.c: Include inf-child.h.
4083 (procfs_ops): Delete global.
4084 (procfs_can_run): Delete method.
4085 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4086 target pointer instead of referencing procfs_ops.
4087 (procfs_prepare_to_store): Delete.
4088 (init_procfs_ops): Delete function.
4089 (procfs_target): New function, based on init_procfs_ops, but
4090 inherit inf_child_target.
4091 (_initialize_procfs): Use procfs_target.
4093 2014-03-12 Pedro Alves <palves@redhat.com>
4095 * windows-nat.c: Include inf-child.h.
4096 (windows_ops): Delete global.
4097 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4099 (init_windows_ops): Delete function.
4100 (windows_target): New function, based on init_windows_ops, but
4101 inherit inf_child_target.
4102 (_initialize_windows_nat): Use windows_target. Install x86
4103 specific target methods here.
4105 2014-03-10 Doug Evans <xdje42@gmail.com>
4107 * guile/guile.c (call_initialize_gdb_module): New function.
4108 (initialize_guile): Replace call to scm_init_guile with call to
4111 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4113 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4114 in call to TYPE_CODE macro.
4116 2014-03-10 Jerome Guitton <guitton@adacore.com>
4118 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4119 Resolve tagged types to full view.
4121 2014-03-10 Hui Zhu <hui@codesourcery.com>
4123 * target.h (target_insert_breakpoint): Remove "hardware" from its
4126 2014-03-07 Doug Evans <dje@google.com>
4128 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4130 2014-03-07 Doug Evans <dje@google.com>
4132 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4133 Remove unused local comp_dir_attr. Assert exactly one of
4134 stub_comp_unit_die, stub_comp_dir is non-NULL.
4136 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4138 * target.h (complete_target_initialization, add_target):
4141 2014-03-07 Pedro Alves <palves@redhat.com>
4143 * go32-nat.c: Include inf-child.h.
4144 (go32_ops): Delete global.
4145 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4147 (go32_create_inferior): Push the passed in target pointer instead
4148 of referencing go32_ops.
4149 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4150 (go32_target): New function, based on init_go32_ops, but inherit
4152 (_initialize_go32_nat): Use go32_target. Move parts of
4155 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4157 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4158 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4159 SYMBOL_VALUE_ADDRESS.
4160 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4162 2014-03-06 Yao Qi <yao@codesourcery.com>
4164 * breakpoint.c (get_tracepoint_by_number): Remove argument
4165 optional_p. All callers updated. Adjust comments. Update
4167 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4169 2014-03-06 Yao Qi <yao@codesourcery.com>
4171 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4172 early if get_number returns zero. Use 'p' instead of 'args'.
4174 2014-03-06 Yao Qi <yao@codesourcery.com>
4176 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4179 2014-03-06 Yao Qi <yao@codesourcery.com>
4181 PR breakpoints/16508
4182 * tracepoint.c (check_trace_running): New function.
4183 (trace_find_command): Move code to check_trace_running and
4184 call check_trace_running.
4185 (trace_find_pc_command): Likewise.
4186 (trace_find_tracepoint_command): Likewise.
4187 (trace_find_line_command): Likewise.
4188 (trace_find_range_command): Likewise.
4189 * tracepoint.h (check_trace_running): Likewise.
4190 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4192 2014-03-06 Yao Qi <yao@codesourcery.com>
4194 * target.h (struct target_ops) <to_traceframe_info>: Use
4195 TARGET_DEFAULT_NORETURN (tcomplain ()).
4196 * target-delegates.c: Regenerated.
4198 2014-03-05 Pedro Alves <palves@redhat.com>
4201 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4202 void. Update comment.
4203 (dcache_xfer_memory): Delete.
4204 (dcache_read_memory_partial): New, based on the read bits of
4206 (dcache_update): Add status parameter. Use ULONGEST for len, and
4207 adjust. Discard cache lines if the reason for the update was
4209 * dcache.h (dcache_xfer_memory): Delete declaration.
4210 (dcache_read_memory_partial): New declaration.
4211 (dcache_update): Update prototype.
4212 * target.c (raw_memory_xfer_partial): Update the dcache here.
4213 (memory_xfer_partial_1): Don't handle dcache writes here.
4215 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4217 * remote-sim.c (gdbsim_load): Add const to prog.
4219 2014-03-03 Tom Tromey <tromey@redhat.com>
4221 * elfread.c (probe_key): Change to bfd_data.
4222 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4223 now per-BFD, not per-objfile.
4224 * stap-probe.c (stap_probe_destroy): Update comment.
4225 (handle_stap_probe): Allocate on the per-BFD obstack.
4227 2014-03-03 Tom Tromey <tromey@redhat.com>
4229 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4230 * breakpoint.c (create_longjmp_master_breakpoint): Use
4232 (add_location_to_breakpoint, bkpt_probe_insert_location)
4233 (bkpt_probe_remove_location): Update.
4234 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4235 * elfread.c (elf_symfile_relocate_probe): Remove.
4236 (elf_probe_fns): Update.
4237 (insert_exception_resume_breakpoint): Change type of "probe"
4238 parameter to bound_probe.
4239 (check_exception_resume): Update.
4240 * objfiles.c (objfile_relocate1): Don't relocate probes.
4241 * probe.c (bound_probe_s): New typedef.
4242 (parse_probes): Use get_probe_address. Set sal's objfile.
4243 (find_probe_by_pc): Return a bound_probe.
4244 (collect_probes): Return a VEC(bound_probe_s).
4245 (compare_probes): Update.
4246 (gen_ui_out_table_header_info): Change type of "probes"
4248 (info_probes_for_ops): Update.
4249 (get_probe_address): New function.
4250 (probe_safe_evaluate_at_pc): Update.
4251 * probe.h (struct probe_ops) <get_probe_address>: New field.
4252 <set_semaphore, clear_semaphore>: Add objfile parameter.
4253 (struct probe) <objfile>: Remove field.
4255 <address>: Update comment.
4256 (struct bound_probe): New.
4257 (find_probe_by_pc): Return a bound_probe.
4258 (get_probe_address): Declare.
4259 * solib-svr4.c (struct probe_and_action) <address>: New field.
4260 (hash_probe_and_action, equal_probe_and_action): Update.
4261 (register_solib_event_probe): Add address parameter.
4262 (solib_event_probe_at): Update.
4263 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4265 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4266 (stap_get_probe_address): New function.
4267 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4268 (compile_probe_arg): Update.
4269 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4271 (handle_stap_probe): Don't relocate the probe.
4272 (stap_relocate): Remove.
4273 (stap_gen_info_probes_table_values): Update.
4274 (stap_probe_ops): Remove stap_relocate.
4275 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4276 (debug_sym_probe_fns): Update.
4277 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4278 * symtab.c (init_sal): Use memset.
4279 * symtab.h (struct symtab_and_line) <objfile>: New field.
4280 * tracepoint.c (start_tracing, stop_tracing): Update.
4282 2014-03-03 Tom Tromey <tromey@redhat.com>
4284 * probe.h (parse_probes, find_probe_by_pc)
4285 (find_probes_in_objfile): Fix comments.
4287 2014-03-02 Doug Evans <xdje42@gmail.com>
4289 * infrun.c (handle_signal_stop): Replace test for
4290 TARGET_WAITKIND_STOPPED with an assert.
4292 2014-03-02 Doug Evans <xdje42@gmail.com>
4294 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4296 2014-03-02 Doug Evans <xdje42@gmail.com>
4298 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4300 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4302 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4304 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4306 * i386obsd-nat.c: Include "obsd-nat.h".
4307 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4309 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4311 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4313 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4315 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4317 * mips64obsd-nat.c: Include "obsd-nath".
4318 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4320 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4322 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4324 * amd64obsd-nat.c: Include "obsd-nat,h.
4325 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4327 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4329 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4331 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4332 (find_overload_match): Update call to find_oload_champ.
4333 (find_oload_champ_namespace_loop): Likewise
4335 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4337 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4339 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4340 * config/sparc/obsd64.mh: New file.
4341 * sparc64obsd-nat.c: New file.
4343 * obsd-nat.h: New file.
4344 * obsd-nat.c: New file.
4345 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4346 (ALLDEPFILES): Add obsd-nat.c.
4348 2014-02-28 Tom Tromey <tromey@redhat.com>
4350 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4351 * cli-out.h (cli_ui_out_impl): Now const.
4352 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4353 * ui-out.c (struct ui_out) <impl>: Now const.
4354 (default_ui_out_impl): Now const.
4355 (ui_out_new): Make 'impl' parameter const.
4356 * ui-out.h (ui_out_new): Update.
4358 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4360 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4362 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4364 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4366 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4368 Additional PR 8882 fix.
4369 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4371 2014-02-27 Pedro Alves <palves@redhat.com>
4373 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4376 2014-02-27 Pedro Alves <palves@redhat.com>
4379 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4380 * nat/linux-waitpid.c: Include string.h.
4381 (status_to_str): Moved here and made extern.
4382 * nat/linux-waitpid.h (status_to_str): New declaration.
4384 2014-02-27 Hui Zhu <hui@codesourcery.com>
4387 * infrun.c (ptid_match): Move ...
4388 * common/ptid.c (ptid_match): ... here.
4389 * inferior.h (ptid_match): Move ...
4390 * common/ptid.h (ptid_match): ... here.
4392 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4394 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4395 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4398 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4400 * obsd-tdep.c (obsd_auxv_parse): New function.
4401 (obsd_init_abi): Set auxv_parse.
4403 * gdbarch.sh (auxv_parse): New.
4404 * gdbarch.h: Regenerated.
4405 * gdbarch.c: Regenerated.
4406 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4408 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4410 * guile/scm-value.c (gdbscm_history_append_x): New function.
4411 (value_functions): Add it.
4413 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4415 * dwarf2read.c (attr_value_as_address): New function.
4416 (dwarf2_find_base_address, read_call_site_scope): Use
4417 attr_value_as_address in place of DW_ADDR.
4418 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4419 the low and high addresses. Slight rework of the handling
4420 of the high pc being a constant form, and limit it to
4421 DWARF verson 4 or higher.
4422 (dwarf2_record_block_ranges): Likewise.
4423 (read_partial_die): Likewise.
4424 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4426 2014-02-26 Tom Tromey <tromey@redhat.com>
4428 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4430 2014-02-26 Tom Tromey <tromey@redhat.com>
4432 * elfread.c (elf_read_minimal_symbols): Return early if
4433 minimal symbols have already been read. Add "ei" parameter.
4434 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4435 * minsyms.c (prim_record_minimal_symbol_full): Update.
4436 * objfiles.h (struct objstats) <n_minsyms>: Move...
4437 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4438 * symmisc.c (print_objfile_statistics): Update.
4440 2014-02-26 Tom Tromey <tromey@redhat.com>
4442 * elfread.c (elf_read_minimal_symbols): New function, from
4444 (elf_symfile_read): Call it.
4446 2014-02-26 Tom Tromey <tromey@redhat.com>
4448 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4449 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4450 (lookup_minimal_symbol_solib_trampoline)
4451 (lookup_minimal_symbol_by_pc_section_1)
4452 (lookup_minimal_symbol_and_objfile): Update.
4453 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4454 Don't allocate a minimal symbol if minsyms have already been read.
4455 (build_minimal_symbol_hash_tables): Update.
4456 (install_minimal_symbols): Do nothing if minsyms already read.
4457 Use the per-BFD obstack.
4458 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4459 * objfiles.c (allocate_objfile): Call
4460 terminate_minimal_symbol_table later.
4461 (have_minimal_symbols): Update.
4462 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4463 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4464 Move from struct objfile.
4465 <minsyms_read>: New field.
4466 (struct objfile) <msymbols, minimal_symbol_count,
4467 msymbol_hash, msymbol_demangled_hash>: Move.
4468 (ALL_OBJFILE_MSYMBOLS): Update.
4469 * symfile.c (read_symbols): Set minsyms_read.
4470 (reread_symbols): Update.
4471 * symmisc.c (dump_objfile, dump_msymbols): Update.
4473 2014-02-26 Tom Tromey <tromey@redhat.com>
4475 * minsyms.c (msymbols_sort): Remove.
4476 * minsyms.h (msymbols_sort): Remove.
4477 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4478 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4479 * elfread.c (elf_symtab_read): Don't add section offsets.
4480 * xcoffread.c (record_minimal_symbol): Don't add section offset
4481 to minimal symbol address.
4482 * somread.c (text_offset, data_offset): Remove.
4483 (som_symtab_read): Don't add section offsets to minimal symbol
4485 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4486 Don't add section offsets to minimal symbols.
4487 * coffread.c (coff_symtab_read): Don't add section offsets
4488 to minimal symbol addresses.
4489 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4490 to minimal symbol addresses.
4491 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4492 section offset to minimal symbol addresses.
4493 * mdebugread.c (parse_partial_symbols): Don't add section
4494 offset to minimal symbol addresses.
4495 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4496 offset to minimal symbol addresses.
4498 2014-02-26 Tom Tromey <tromey@redhat.com>
4500 * ada-lang.c (ada_main_name): Update.
4501 (ada_add_standard_exceptions): Update.
4502 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4503 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4504 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4505 * auxv.c (ld_so_xfer_auxv): Update.
4506 * avr-tdep.c (avr_scan_prologue): Update.
4507 * ax-gdb.c (gen_var_ref): Update.
4508 * blockframe.c (get_pc_function_start)
4509 (find_pc_partial_function_gnu_ifunc): Update.
4510 * breakpoint.c (create_overlay_event_breakpoint)
4511 (create_longjmp_master_breakpoint)
4512 (create_std_terminate_master_breakpoint)
4513 (create_exception_master_breakpoint): Update.
4514 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4515 * c-valprint.c (c_val_print): Update.
4516 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4517 * common/agent.c (agent_look_up_symbols): Update.
4518 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4519 * dwarf2loc.c (call_site_to_target_addr): Update.
4520 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4521 * elfread.c (elf_gnu_ifunc_record_cache)
4522 (elf_gnu_ifunc_resolve_by_got): Update.
4523 * findvar.c (default_read_var_value): Update.
4524 * frame.c (inside_main_func): Update.
4525 * frv-tdep.c (frv_frame_this_id): Update.
4526 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4527 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4529 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4530 (hppa_hpux_find_dummy_bpaddr): Update.
4531 * hppa-tdep.c (hppa_symbol_address): Update.
4532 * infcmd.c (until_next_command): Update.
4533 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4535 * linespec.c (minsym_found, add_minsym): Update.
4536 * linux-nat.c (get_signo): Update.
4537 * linux-thread-db.c (inferior_has_bug): Update.
4538 * m32c-tdep.c (m32c_return_value)
4539 (m32c_m16c_address_to_pointer): Update.
4540 * m32r-tdep.c (m32r_frame_this_id): Update.
4541 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4542 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4543 * maint.c (maintenance_translate_address): Update.
4544 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4545 (frob_address): New function.
4546 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4547 frob_address. Rename parameter to "pc_in".
4548 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4550 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4552 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4553 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4554 * objc-lang.c (find_objc_msgsend): Update.
4555 * objfiles.c (objfile_relocate1): Update.
4556 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4557 * p-valprint.c (pascal_val_print): Update.
4558 * parse.c (write_exp_msymbol): Update.
4559 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4560 (ppc_elfv2_skip_entrypoint): Update.
4561 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4562 * printcmd.c (build_address_symbolic, msym_info)
4563 (address_info): Update.
4564 * proc-service.c (ps_pglobal_lookup): Update.
4565 * psymtab.c (find_pc_sect_psymtab_closer)
4566 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4567 Change msymbol parameter to bound_minimal_symbol.
4568 * ravenscar-thread.c (get_running_thread_id): Update.
4569 * remote.c (remote_check_symbols): Update.
4570 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4572 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4573 * solib-dsbt.c (lm_base): Update.
4574 * solib-frv.c (lm_base, main_got): Update.
4575 * solib-irix.c (locate_base): Update.
4576 * solib-som.c (som_solib_create_inferior_hook)
4577 (link_map_start): Update.
4578 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4579 * solib-svr4.c (elf_locate_base, enable_break): Update.
4580 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4581 (flush_ea_cache): Update.
4582 * stabsread.c (define_symbol, scan_file_globals): Update.
4583 * stack.c (find_frame_funname): Update.
4584 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4585 (debug_qf_find_pc_sect_symtab): Update.
4586 * symfile.c (simple_read_overlay_table)
4587 (simple_overlay_update): Update.
4588 * symfile.h (struct quick_symbol_functions)
4589 <find_pc_sect_symtab>: Change type of msymbol to
4590 bound_minimal_symbol.
4591 * symmisc.c (dump_msymbols): Update.
4592 * symtab.c (find_pc_sect_symtab_via_partial)
4593 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4594 (search_symbols, print_msymbol_info): Update.
4595 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4596 (MSYMBOL_VALUE_ADDRESS): Redefine.
4597 (BMSYMBOL_VALUE_ADDRESS): New macro.
4598 * tracepoint.c (scope_info): Update.
4599 * tui/tui-disasm.c (tui_find_disassembly_address)
4600 (tui_get_begin_asm_address): Update.
4601 * valops.c (find_function_in_inferior): Update.
4602 * value.c (value_static_field, value_fn_field): Update.
4604 2014-02-26 Tom Tromey <tromey@redhat.com>
4606 * ada-lang.c (ada_update_initial_language): Update.
4607 (ada_main_name, ada_has_this_exception_support): Update.
4608 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4609 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4610 * arm-tdep.c (arm_skip_stub): Update.
4611 * auxv.c (ld_so_xfer_auxv): Update.
4612 * avr-tdep.c (avr_scan_prologue): Update.
4613 * ax-gdb.c (gen_var_ref): Update.
4614 * breakpoint.c (struct breakpoint_objfile_data)
4615 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4616 type to bound_minimal_symbol.
4617 (create_overlay_event_breakpoint)
4618 (create_longjmp_master_breakpoint)
4619 (create_std_terminate_master_breakpoint)
4620 (create_exception_master_breakpoint): Update.
4621 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4622 * c-exp.y (classify_name): Update.
4623 * coffread.c (coff_symfile_read): Update.
4624 * common/agent.c (agent_look_up_symbols): Update.
4625 * d-lang.c (d_main_name): Update.
4626 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4627 * dec-thread.c (enable_dec_thread): Update.
4628 * dwarf2loc.c (call_site_to_target_addr): Update.
4629 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4630 * eval.c (evaluate_subexp_standard): Update.
4631 * findvar.c (struct minsym_lookup_data) <result>: Change type
4632 to bound_minimal_symbol.
4634 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4635 * frame.c (inside_main_func): Update.
4636 * frv-tdep.c (frv_frame_this_id): Update.
4637 * gcore.c (call_target_sbrk): Update.
4638 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4639 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4641 * go-lang.c (go_main_name): Update.
4642 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4643 (hppa_hpux_find_import_stub_for_addr): Update.
4644 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4645 Update. Change return type.
4646 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4648 * jit.c (jit_breakpoint_re_set_internal): Update.
4649 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4651 * linux-nat.c (get_signo): Update.
4652 * linux-thread-db.c (inferior_has_bug): Update
4653 * m32c-tdep.c (m32c_return_value)
4654 (m32c_m16c_address_to_pointer): Update.
4655 * m32r-tdep.c (m32r_frame_this_id): Update.
4656 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4657 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4658 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4659 lookup_minimal_symbol. Change return type.
4660 (lookup_minimal_symbol): Remove.
4661 (lookup_bound_minimal_symbol): Update.
4662 (lookup_minimal_symbol_text): Change return type.
4663 (lookup_minimal_symbol_solib_trampoline): Change return type.
4664 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4665 (lookup_minimal_symbol_solib_trampoline): Change return type.
4666 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4667 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4668 (value_nsstring, find_imps): Update.
4669 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4670 * p-lang.c (pascal_main_name): Update.
4671 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4672 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4673 * proc-service.c (ps_pglobal_lookup): Update.
4674 * ravenscar-thread.c (get_running_thread_msymbol): Change
4676 (has_ravenscar_runtime, get_running_thread_id): Update.
4677 * remote.c (remote_check_symbols): Update.
4678 * sol-thread.c (ps_pglobal_lookup): Update.
4679 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4680 * solib-dsbt.c (lm_base): Update.
4681 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4683 * solib-irix.c (locate_base): Update.
4684 * solib-som.c (som_solib_create_inferior_hook)
4685 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4687 * solib-spu.c (spu_enable_break): Update.
4688 * solib-svr4.c (elf_locate_base, enable_break): Update.
4689 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4690 (flush_ea_cache): Update.
4691 * stabsread.c (define_symbol): Update.
4692 * symfile.c (simple_read_overlay_table): Update.
4693 * symtab.c (find_pc_sect_line): Update.
4694 * tracepoint.c (scope_info): Update.
4695 * tui-disasm.c (tui_get_begin_asm_address): Update.
4696 * value.c (value_static_field): Update.
4698 2014-02-26 Tom Tromey <tromey@redhat.com>
4700 * minsyms.c (prim_record_minimal_symbol_full): Use
4701 SET_MSYMBOL_VALUE_ADDRESS.
4702 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4703 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4704 SET_MSYMBOL_VALUE_ADDRESS.
4705 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4706 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4708 2014-02-26 Tom Tromey <tromey@redhat.com>
4710 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4711 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4712 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4713 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4714 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4715 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4716 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4717 * ada-lang.c (ada_main_name): Update.
4718 (ada_lookup_simple_minsym): Update.
4719 (ada_make_symbol_completion_list): Update.
4720 (ada_add_standard_exceptions): Update.
4721 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4722 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4723 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4724 * arm-tdep.c (skip_prologue_function): Update.
4725 (arm_skip_stack_protector, arm_skip_stub): Update.
4726 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4727 (arm_wince_skip_main_prologue): Update.
4728 * auxv.c (ld_so_xfer_auxv): Update.
4729 * avr-tdep.c (avr_scan_prologue): Update.
4730 * ax-gdb.c (gen_var_ref): Update.
4731 * block.c (call_site_for_pc): Update.
4732 * blockframe.c (get_pc_function_start): Update.
4733 (find_pc_partial_function_gnu_ifunc): Update.
4734 * breakpoint.c (create_overlay_event_breakpoint): Update.
4735 (create_longjmp_master_breakpoint): Update.
4736 (create_std_terminate_master_breakpoint): Update.
4737 (create_exception_master_breakpoint): Update.
4738 (resolve_sal_pc): Update.
4739 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4740 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4742 * c-valprint.c (c_val_print): Update.
4743 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4744 * coffread.c (coff_symfile_read): Update.
4745 * common/agent.c (agent_look_up_symbols): Update.
4746 * dbxread.c (find_stab_function_addr): Update.
4747 (end_psymtab): Update.
4748 * dwarf2loc.c (call_site_to_target_addr): Update.
4749 (func_verify_no_selftailcall): Update.
4750 (tailcall_dump): Update.
4751 (call_site_find_chain_1): Update.
4752 (dwarf_expr_reg_to_entry_parameter): Update.
4753 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4754 (elf_gnu_ifunc_resolve_by_got): Update.
4755 * f-valprint.c (info_common_command): Update.
4756 * findvar.c (read_var_value): Update.
4757 * frame.c (get_prev_frame_1): Update.
4758 (inside_main_func): Update.
4759 * frv-tdep.c (frv_skip_main_prologue): Update.
4760 (frv_frame_this_id): Update.
4761 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4762 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4763 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4764 (gnuv3_skip_trampoline): Update.
4765 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4766 (hppa64_hpux_in_solib_call_trampoline): Update.
4767 (hppa_hpux_skip_trampoline_code): Update.
4768 (hppa64_hpux_search_dummy_call_sequence): Update.
4769 (hppa_hpux_find_import_stub_for_addr): Update.
4770 (hppa_hpux_find_dummy_bpaddr): Update.
4771 * hppa-tdep.c (hppa_symbol_address)
4772 (hppa_lookup_stub_minimal_symbol): Update.
4773 * i386-tdep.c (i386_skip_main_prologue): Update.
4774 (i386_pe_skip_trampoline_code): Update.
4775 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4776 * infcall.c (get_function_name): Update.
4777 * infcmd.c (until_next_command): Update.
4778 * jit.c (jit_breakpoint_re_set_internal): Update.
4779 (jit_inferior_init): Update.
4780 * linespec.c (minsym_found): Update.
4781 (add_minsym): Update.
4782 * linux-fork.c (info_checkpoints_command): Update.
4783 * linux-nat.c (get_signo): Update.
4784 * linux-thread-db.c (inferior_has_bug): Update.
4785 * m32c-tdep.c (m32c_return_value): Update.
4786 (m32c_m16c_address_to_pointer): Update.
4787 (m32c_m16c_pointer_to_address): Update.
4788 * m32r-tdep.c (m32r_frame_this_id): Update.
4789 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4790 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4791 * maint.c (maintenance_translate_address): Update.
4792 * minsyms.c (add_minsym_to_hash_table): Update.
4793 (add_minsym_to_demangled_hash_table): Update.
4794 (msymbol_objfile): Update.
4795 (lookup_minimal_symbol): Update.
4796 (iterate_over_minimal_symbols): Update.
4797 (lookup_minimal_symbol_text): Update.
4798 (lookup_minimal_symbol_by_pc_name): Update.
4799 (lookup_minimal_symbol_solib_trampoline): Update.
4800 (lookup_minimal_symbol_by_pc_section_1): Update.
4801 (lookup_minimal_symbol_and_objfile): Update.
4802 (prim_record_minimal_symbol_full): Update.
4803 (compare_minimal_symbols): Update.
4804 (compact_minimal_symbols): Update.
4805 (build_minimal_symbol_hash_tables): Update.
4806 (install_minimal_symbols): Update.
4807 (terminate_minimal_symbol_table): Update.
4808 (find_solib_trampoline_target): Update.
4809 (minimal_symbol_upper_bound): Update.
4810 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4811 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4812 (mips_skip_pic_trampoline_code): Update.
4813 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4814 * objc-lang.c (selectors_info): Update.
4815 (classes_info): Update.
4816 (find_methods): Update.
4817 (find_imps): Update.
4818 (find_objc_msgsend): Update.
4819 * objfiles.c (objfile_relocate1): Update.
4820 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4821 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4822 * p-valprint.c (pascal_val_print): Update.
4823 * parse.c (write_exp_msymbol): Update.
4824 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4825 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4826 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4827 * printcmd.c (build_address_symbolic): Update.
4829 (address_info): Update.
4830 * proc-service.c (ps_pglobal_lookup): Update.
4831 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4832 (find_pc_sect_psymtab): Update.
4833 * python/py-framefilter.c (py_print_frame): Update.
4834 * ravenscar-thread.c (get_running_thread_id): Update.
4835 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4837 * remote.c (remote_check_symbols): Update.
4838 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4839 (rs6000_skip_trampoline_code): Update.
4840 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4841 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4842 * solib-dsbt.c (lm_base): Update.
4843 * solib-frv.c (lm_base): Update.
4845 * solib-irix.c (locate_base): Update.
4846 * solib-som.c (som_solib_create_inferior_hook): Update.
4847 (som_solib_desire_dynamic_linker_symbols): Update.
4848 (link_map_start): Update.
4849 * solib-spu.c (spu_enable_break): Update.
4850 (ocl_enable_break): Update.
4851 * solib-svr4.c (elf_locate_base): Update.
4852 (enable_break): Update.
4853 * spu-tdep.c (spu_get_overlay_table): Update.
4854 (spu_catch_start): Update.
4855 (flush_ea_cache): Update.
4856 * stabsread.c (define_symbol): Update.
4857 (scan_file_globals): Update.
4858 * stack.c (find_frame_funname): Update.
4859 (frame_info): Update.
4860 * symfile.c (simple_read_overlay_table): Update.
4861 (simple_overlay_update): Update.
4862 * symmisc.c (dump_msymbols): Update.
4863 * symtab.c (fixup_section): Update.
4864 (find_pc_sect_line): Update.
4865 (skip_prologue_sal): Update.
4866 (search_symbols): Update.
4867 (print_msymbol_info): Update.
4868 (rbreak_command): Update.
4869 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4870 (completion_list_objc_symbol): Update.
4871 (default_make_symbol_completion_list_break_on): Update.
4872 * tracepoint.c (scope_info): Update.
4873 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4874 (tui_get_begin_asm_address): Update.
4875 * valops.c (find_function_in_inferior): Update.
4876 * value.c (value_static_field): Update.
4877 (value_fn_field): Update.
4879 2014-02-26 Tom Tromey <tromey@redhat.com>
4881 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4882 bound minimal symbols. Move code that knows about minsym
4884 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4886 * minsyms.h (minimal_symbol_upper_bound): Declare.
4887 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4888 minimal_symbol_upper_bound.
4890 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4892 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4893 Use the type's name if its basic type does not have a tag.
4895 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4897 * dwarf2read.c (read_subrange_type): Add comment.
4899 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4901 * dwarf2read.c (update_enumeration_type_from_children): New
4902 function, mostly extracted from process_structure_scope.
4903 (read_enumeration_type): Call update_enumeration_type_from_children.
4904 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4905 and flag_flag_enum fields.
4907 2014-02-26 Pedro Alves <palves@redhat.com>
4909 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4910 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4911 to_xfer_partial method.
4913 2014-02-26 Pedro Alves <palves@redhat.com>
4915 * target.c (complete_target_initialization): Don't install
4916 default_xfer_partial as to_xfer_partial hook.
4918 (update_current_target): Don't INHERIT nor de_fault
4919 deprecated_xfer_memory. Delete de_fault macro.
4920 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4921 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4922 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4925 2014-02-26 Pedro Alves <palves@redhat.com>
4927 * go32-nat.c (my_write_child): New function.
4928 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4929 (go32_xfer_partial): New function.
4930 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4931 Instead install a to_xfer_partial hook.
4933 2014-02-26 Pedro Alves <palves@redhat.com>
4935 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4936 to_xfer_partial helper. Rewrite.
4937 (procfs_xfer_partial): New function.
4938 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4939 Install a to_xfer_partial hook.
4941 2014-02-26 Pedro Alves <palves@redhat.com>
4943 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4944 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4945 (m32r_xfer_partial): New function.
4946 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4947 Install a to_xfer_partial hook.
4949 2014-02-26 Pedro Alves <palves@redhat.com>
4951 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4953 (mips_xfer_partial): New function.
4954 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4955 hook. Install a to_xfer_partial hook.
4957 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4959 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4960 * gdbtypes.c (create_array_type_with_stride): New function,
4961 renaming create_array_type, but with an added parameter
4962 called "bit_stride".
4963 (create_array_type): Re-implement using
4964 create_array_type_with_stride.
4965 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4966 and DW_AT_bit_stride attributes.
4968 2014-02-26 Pedro Alves <palves@redhat.com>
4970 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4971 task-specific breakpoints.
4973 2014-02-25 Pedro Alves <palves@redhat.com>
4975 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4976 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4978 2014-02-25 Stan Shebs <stan@codesourcery.com>
4980 * defs.h: Annotate comments for Doxygen.
4982 2014-02-25 Tom Tromey <tromey@redhat.com>
4984 * target.h (target_ignore): Don't declare.
4985 * target.c (target_ignore): Remove.
4987 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4990 * auto-load.c (auto_load_objfile_script_1): Change filename to
4993 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4995 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4996 documentation. Adjust prototype to match the target_ops
4997 to_xfer_partial method. Adjust implementation accordingly.
4999 2014-02-25 Hui Zhu <hui@codesourcery.com>
5001 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5004 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5006 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5007 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5008 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5009 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5010 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5011 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5012 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5013 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5015 (rl78_register_type): Use a data pointer type for SP and
5016 new pseudo registers mentioned above. Use a 16 bit integer
5017 type for all other register pairs.
5018 (rl78_register_name, rl78_g10_register_name): Update for
5019 new pseudo registers.
5020 (rl78_pseudo_register_read): Likewise.
5021 (rl78_pseudo_register_write): Likewise.
5022 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5023 to the newly added pseudo registers.
5025 2014-02-24 Doug Evans <dje@google.com>
5027 * value.c (record_latest_value): Fix comment.
5028 * printcmd.c (print_command_1): Remove code to handle -1 return from
5029 record_latest_value.
5031 2014-02-24 Pedro Alves <palves@redhat.com>
5033 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5034 deprecated_xfer_memory hook.
5035 (procfs_xfer_partial): Call procfs_xfer_memory instead
5036 of the deprecated_xfer_memory target hook.
5037 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5040 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5042 * windows-nat.c (windows_xfer_shared_libraries): Return
5043 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5044 requested object is TARGET_OBJECT_LIBRARIES.
5046 2014-02-24 Yao Qi <yao@codesourcery.com>
5048 * target.h (enum target_xfer_status)
5049 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5050 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5052 * corefile.c (memory_error_message): User updated.
5053 * exec.c (section_table_read_available_memory): Likewise.
5054 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5055 * target.c (target_xfer_status_to_string): Likewise.
5056 (raw_memory_xfer_partial): Likewise.
5057 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5058 * valops.c (read_value_memory): Likewise.
5059 * exec.h: Update comments.
5061 2014-02-24 Yao Qi <yao@codesourcery.com>
5063 * target.c (target_xfer_status_to_string): Rename argument err
5065 * target.h (target_xfer_status_to_string): Update declaration.
5066 Replace target_xfer_error_to_string with
5067 target_xfer_status_to_string in comment.
5069 2014-02-24 Yao Qi <yao@codesourcery.com>
5071 * mips-linux-nat.c (super_close): Update its type.
5072 (mips_linux_close): Pass 'self' to super_close.
5074 2014-02-24 Yao Qi <yao@codesourcery.com>
5076 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5077 * corefile.c (read_memory): Adjusted.
5078 * target.c (target_write_with_progress): Adjusted.
5080 2014-02-23 Yao Qi <yao@codesourcery.com>
5084 2013-10-25 Yao Qi <yao@codesourcery.com>
5086 * remote.c (remote_traceframe_info): Return early if
5087 traceframe is not selected.
5089 2013-07-19 Yao Qi <yao@codesourcery.com>
5091 * target.c (update_current_target): Change the default action
5092 of 'to_traceframe_info' from tcomplain to return_zero.
5093 * target.h (struct target_ops) <to_traceframe_info>: Add more
5096 2014-02-23 Yao Qi <yao@codesourcery.com>
5098 * valops.c (read_value_memory): Rewrite it. Call
5099 target_xfer_partial in a loop.
5100 * exec.h (section_table_available_memory): Remove declaration.
5101 Move comments to ...
5102 * exec.c (section_table_available_memory): ... here. Make it
5105 2014-02-23 Yao Qi <yao@codesourcery.com>
5107 * exec.c (section_table_read_available_memory): New function.
5108 * exec.h (section_table_read_available_memory): Declare.
5109 * ctf.c (ctf_xfer_partial): Call
5110 section_table_read_available_memory.
5111 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5113 2014-02-23 Yao Qi <yao@codesourcery.com>
5115 * ctf.c (ctf_xfer_partial): Move code to ...
5116 * exec.c (exec_read_partial_read_only): ... it. New function.
5117 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5118 * tracefile.c: Include "exec.h".
5119 * exec.h (exec_read_partial_read_only): Declare.
5121 2014-02-23 Yao Qi <yao@codesourcery.com>
5123 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5124 (tfile_has_memory): Remove.
5125 (init_tfile_ops): Don't set fields to_has_all_memory and
5126 to_has_memory of tfile_ops.
5127 * tracefile.c (tracefile_has_all_memory): New function.
5128 (tracefile_has_memory): New function.
5129 (init_tracefile_ops): Initialize fields to_has_all_memory and
5130 to_has_memory of 'ops'.
5132 2014-02-23 Yao Qi <yao@codesourcery.com>
5134 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5135 (ctf_thread_alive, ctf_get_trace_status): Remove.
5136 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5138 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5139 (tfile_has_stack, tfile_has_registers): Remove.
5140 (tfile_thread_alive): Remove.
5141 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5143 * tracefile.c (tracefile_has_stack): New function.
5144 (tracefile_has_registers): New function.
5145 (tracefile_thread_alive): New function.
5146 (tracefile_get_trace_status): New function.
5147 (init_tracefile_ops): New function.
5148 * tracefile.h (init_tracefile_ops): Declare.
5150 2014-02-23 Yao Qi <yao@codesourcery.com>
5152 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5153 (O_LARGEFILE): Likewise.
5154 (tfile_ops): Likewise.
5155 (TRACE_HEADER_SIZE): Likewise.
5156 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5157 (cur_data_size): Likewise.
5158 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5159 (tfile_close, tfile_files_info): Likewise.
5160 (tfile_get_trace_status): Likewise.
5161 (tfile_get_tracepoint_status): Likewise.
5162 (tfile_get_traceframe_address): Likewise.
5163 (tfile_trace_find, match_blocktype): Likewise.
5164 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5165 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5166 (tfile_get_trace_state_variable_value): Likewise.
5167 (tfile_has_all_memory, tfile_has_memory): Likewise.
5168 (tfile_has_stack, tfile_has_registers): Likewise.
5169 (tfile_thread_alive, build_traceframe_info): Likewise.
5170 (tfile_traceframe_info, init_tfile_ops): Likewise.
5171 (_initialize_tracepoint): Don't call init_tfile_ops
5172 and add_target_with_completer.
5173 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5174 exec.h, completer.h and filenames.h.
5175 (_initialize_tracefile_tfile): New function.
5177 2014-02-23 Yao Qi <yao@codesourcery.com>
5179 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5181 (HFILES_NO_SRCDIR): Add tracefile.h.
5182 * ctf.c: Include "tracefile.h".
5183 * tracefile.h: New file.
5184 * tracefile.c: New file
5185 * tracefile-tfile.c: New file.
5186 * tracepoint.c: Include "tracefile.h".
5187 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5188 (stop_reason_names): Add const.
5189 (trace_file_writer_xfree): Move it to tracefile.c.
5190 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5191 (trace_save_ctf): Likewise.
5192 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5193 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5194 (tfile_write_header, tfile_write_regblock_type): Likewise.
5195 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5196 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5197 (tfile_write_raw_data, tfile_end): Likewise.
5198 (tfile_trace_file_writer_new): Likewise.
5199 (free_uploaded_tp): Make it extern.
5200 (free_uploaded_tsv): Make it extern.
5201 (_initialize_tracepoint): Move code to register command 'tsave'
5203 * tracepoint.h (stop_reason_names): Declare.
5204 (struct trace_frame_write_ops): Move it to tracefile.h.
5205 (struct trace_file_write_ops): Likewise.
5206 (struct trace_file_writer): Likewise.
5207 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5209 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5212 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5214 (get_cores_used_by_process): New parameter num_cores, use it.
5215 (linux_xfer_osdata_processes): Pass num_cores to it.
5216 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5219 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5221 * target.c (memory_xfer_partial): Fix length arg in call to
5222 breakpoint_xfer_memory.
5224 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5227 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5228 number comes after the + or - signs. Adjust length of register
5229 name to be extracted.
5231 2014-02-20 Tom Tromey <tromey@redhat.com>
5233 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5234 (ada_varobj_ops): Mark "extern".
5236 2014-02-20 Tom Tromey <tromey@redhat.com>
5238 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5240 2014-02-20 Doug Evans <xdje42@gmail.com>
5242 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5243 All callers updated.
5244 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5245 All callers updated.
5246 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5247 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5249 2014-02-20 lin zuojian <manjian2006@gmail.com>
5250 Joel Brobecker <brobecker@adacore.com>
5251 Doug Evans <xdje42@gmail.com>
5254 * dwarf2read.c (struct die_info): New member in_process.
5255 (reset_die_in_process): New function.
5256 (process_die): Set it at the start, reset when returning.
5257 (inherit_abstract_dies): Only call process_die if origin_child_die
5258 not already being processed.
5260 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5262 * windows-nat.c (handle_unload_dll): Add function documentation.
5263 (do_initial_windows_stuff): Add comment explaining why we wait
5264 until after inferior initialization has finished before
5265 processing all DLLs.
5267 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5269 * windows-nat.c (get_module_name): Delete.
5270 (windows_get_exec_module_filename): New function, mostly
5271 inspired from get_module_name.
5272 (windows_pid_to_exec_file): Replace call to get_module_name
5273 by call to windows_get_exec_module_filename.
5275 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5277 * windows-nat.c (handle_load_dll): Rewrite this function's
5278 introductory comment. Remove code using get_module_name
5279 to get the DLL's name.
5281 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5283 * windows-nat.c (get_windows_debug_event): Ignore
5284 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5285 if windows_initialization_done == 0.
5286 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5287 Adjust implementation to always load all DLLs.
5288 (do_initial_windows_stuff): Replace call to
5289 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5291 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5293 * windows-nat.c (_initialize_windows_nat): Deprecate the
5294 "dll-symbols" command. Turn the "add-shared-symbol-files"
5295 and "assf" aliases into commands, and deprecate them as well.
5296 * NEWS: Add entry explaining that "dll-symbols" and its two
5297 aliases are now deprecated.
5299 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5301 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5302 new-line in debug string. Remove trailing spaces.
5304 2014-02-19 Stan Shebs <stan@codesourcery.com>
5306 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5308 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5310 * NEWS: Add entry for the new feature
5311 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5314 2014-02-19 Stan Shebs <stan@codesourcery.com>
5316 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5318 2014-02-19 Pedro Alves <palves@redhat.com>
5320 * common/ptid.h (struct ptid): Mention that process_stratum
5321 targets should prefer ptid.lwp.
5323 2014-02-19 Pedro Alves <palves@redhat.com>
5325 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5326 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5327 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5328 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5329 store remote thread ids rather than ptid.tid.
5330 (_initialize_remote): Adjust.
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target.c (target_get_unwinder): Rewrite.
5335 (target_get_tailcall_unwinder): Rewrite.
5336 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5337 (record_btrace_to_get_tailcall_unwinder): New function.
5338 (init_record_btrace_ops): Update.
5339 * target.h (struct target_ops) <to_get_unwinder,
5340 to_get_tailcall_unwinder>: Now function pointers. Use
5341 TARGET_DEFAULT_RETURN.
5343 2014-02-19 Tom Tromey <tromey@redhat.com>
5345 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5347 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5353 * target-delegates.c: Rebuild.
5354 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5355 TARGET_DEFAULT_FUNC.
5356 * target.c (default_target_decr_pc_after_break): Rename from
5357 forward_target_decr_pc_after_break. Simplify.
5358 (target_decr_pc_after_break): Rely on delegation.
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5362 * target.c (update_current_target): Do not INHERIT to_doc or
5363 to_magic. Do not de_fault to_open or to_close.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * gcore.h (objfile_find_memory_regions): Declare.
5368 * gcore.c (objfile_find_memory_regions): No longer static. Add
5370 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5371 * exec.c: Include gcore.h.
5372 (exec_set_find_memory_regions): Remove.
5373 (exec_find_memory_regions): Remove.
5374 (exec_do_find_memory_regions): Remove.
5375 (init_exec_ops): Update.
5376 * defs.h (exec_set_find_memory_regions): Remove.
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target-delegates.c: Rebuild.
5381 * target.h (struct target_ops) <to_extra_thread_info,
5382 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5383 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5384 not 0, in TARGET_DEFAULT_RETURN.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * target.c (complete_target_initialization): Remove casts. Use
5389 return_zero_has_execution.
5390 (return_zero): Add "ignore" argument.
5391 (return_zero_has_execution): New function.
5392 (init_dummy_target): Remove casts. Use
5393 return_zero_has_execution.
5395 2014-02-19 Tom Tromey <tromey@redhat.com>
5397 * target.c (update_current_target): Update comments. Do not
5400 2014-02-19 Tom Tromey <tromey@redhat.com>
5402 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5404 * corelow.c (core_read_description): Delegate when needed.
5405 * remote.c (remote_read_description): Delegate when needed.
5406 * target-delegates.c: Rebuild.
5407 * target.c (target_read_description): Rewrite.
5408 * target.h (struct target_ops) <to_read_description>: Update
5409 comment. Use TARGET_DEFAULT_RETURN.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * target-delegates.c: Rebuild.
5414 * target.c (update_current_target): Don't inherit or default
5416 (find_default_run_target): Check against delegate_can_run.
5417 * target.h (struct target_ops) <to_can_run>: Use
5418 TARGET_DEFAULT_RETURN.
5420 2014-02-19 Tom Tromey <tromey@redhat.com>
5422 * target-delegates.c: Rebuild.
5423 * target.c (target_disconnect): Unconditionally delegate.
5424 * target.h (struct target_ops) <to_disconnect>: Use
5425 TARGET_DEFAULT_NORETURN.
5427 2014-02-19 Tom Tromey <tromey@redhat.com>
5429 * record.c (record_stop): Unconditionally delegate.
5430 * target-delegates.c: Rebuild.
5431 * target.c (target_stop_recording): Unconditionally delegate.
5432 * target.h (struct target_ops) <to_stop_recording>: Use
5433 TARGET_DEFAULT_IGNORE.
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target-delegates.c: Rebuild.
5438 * target.c (target_enable_btrace): Unconditionally delegate.
5439 * target.h (struct target_ops) <to_enable_btrace>: Use
5440 TARGET_DEFAULT_NORETURN.
5442 2014-02-19 Tom Tromey <tromey@redhat.com>
5444 * target-delegates.c: Rebuild.
5445 * target.c (target_read_btrace): Unconditionally delegate.
5446 * target.h (struct target_ops) <to_read_btrace>: Use
5447 TARGET_DEFAULT_NORETURN.
5449 2014-02-19 Tom Tromey <tromey@redhat.com>
5451 * target-delegates.c: Rebuild.
5452 * target.c (target_teardown_btrace): Unconditionally delegate.
5453 * target.h (struct target_ops) <to_teardown_btrace>: Use
5454 TARGET_DEFAULT_NORETURN.
5456 2014-02-19 Tom Tromey <tromey@redhat.com>
5458 * target-delegates.c: Rebuild.
5459 * target.c (target_disable_btrace): Unconditionally delegate.
5460 * target.h (struct target_ops) <to_disable_btrace>: Use
5461 TARGET_DEFAULT_NORETURN.
5463 2014-02-19 Tom Tromey <tromey@redhat.com>
5465 * target-delegates.c: Rebuild.
5466 * target.c (default_search_memory): New function.
5467 (simple_search_memory): Update comment.
5468 (target_search_memory): Unconditionally delegate.
5469 * target.h (struct target_ops) <to_search_memory>: Use
5470 TARGET_DEFAULT_FUNC.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * auxv.c (default_auxv_parse): No longer static.
5475 (target_auxv_parse): Unconditionally delegate.
5476 * auxv.h (default_auxv_parse): Declare.
5477 * target-delegates.c: Rebuild.
5478 * target.c: Include auxv.h.
5479 * target.h (struct target_ops) <to_auxv_parse>: Use
5480 TARGET_DEFAULT_FUNC.
5482 2014-02-19 Tom Tromey <tromey@redhat.com>
5484 * target-delegates.c: Rebuild.
5485 * target.c (target_memory_map): Unconditionally delegate.
5486 * target.h (struct target_ops) <to_memory_map>: Use
5487 TARGET_DEFAULT_RETURN.
5489 2014-02-19 Tom Tromey <tromey@redhat.com>
5491 * target-delegates.c: Rebuild.
5492 * target.c (target_thread_alive): Unconditionally delegate.
5493 * target.h (struct target_ops) <to_thread_alive>: Use
5494 TARGET_DEFAULT_RETURN.
5496 2014-02-19 Tom Tromey <tromey@redhat.com>
5498 * target-delegates.c: Rebuild.
5499 * target.c (target_save_record): Unconditionally delegate.
5500 * target.h (struct target_ops) <to_save_record>: Use
5501 TARGET_DEFAULT_NORETURN.
5503 2014-02-19 Tom Tromey <tromey@redhat.com>
5505 * target-delegates.c: Rebuild.
5506 * target.c (target_delete_record): Unconditionally delegate.
5507 * target.h (struct target_ops) <to_delete_record>: Use
5508 TARGET_DEFAULT_NORETURN.
5510 2014-02-19 Tom Tromey <tromey@redhat.com>
5512 * target-delegates.c: Rebuild.
5513 * target.c (target_record_is_replaying): Unconditionally
5515 * target.h (struct target_ops) <to_record_is_replaying>: Use
5516 TARGET_DEFAULT_RETURN.
5518 2014-02-19 Tom Tromey <tromey@redhat.com>
5520 * target-delegates.c: Rebuild.
5521 * target.c (target_goto_record_begin): Unconditionally delegate.
5522 * target.h (struct target_ops) <to_goto_record_begin>: Use
5523 TARGET_DEFAULT_NORETURN.
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target-delegates.c: Rebuild.
5528 * target.c (target_goto_record_end): Unconditionally delegate.
5529 * target.h (struct target_ops) <to_goto_record_end>: Use
5530 TARGET_DEFAULT_NORETURN.
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target-delegates.c: Rebuild.
5535 * target.c (target_goto_record): Unconditionally delegate.
5536 * target.h (struct target_ops) <to_goto_record>: Use
5537 TARGET_DEFAULT_NORETURN.
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * target-delegates.c: Rebuild.
5542 * target.c (target_insn_history): Unconditionally delegate.
5543 * target.h (struct target_ops) <to_insn_history>: Use
5544 TARGET_DEFAULT_NORETURN.
5546 2014-02-19 Tom Tromey <tromey@redhat.com>
5548 * target-delegates.c: Rebuild.
5549 * target.c (target_insn_history_from): Unconditionally delegate.
5550 * target.h (struct target_ops) <to_insn_history_from>: Use
5551 TARGET_DEFAULT_NORETURN.
5553 2014-02-19 Tom Tromey <tromey@redhat.com>
5555 * target-delegates.c: Rebuild.
5556 * target.c (target_insn_history_range): Unconditionally delegate.
5557 * target.h (struct target_ops) <to_insn_history_range>: Use
5558 TARGET_DEFAULT_NORETURN.
5560 2014-02-19 Tom Tromey <tromey@redhat.com>
5562 * target-delegates.c: Rebuild.
5563 * target.c (target_call_history): Unconditionally delegate.
5564 * target.h (struct target_ops) <to_call_history>: Use
5565 TARGET_DEFAULT_NORETURN.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target-delegates.c: Rebuild.
5570 * target.c (target_call_history_from): Unconditionally delegate.
5571 * target.h (struct target_ops) <to_call_history_from>: Use
5572 TARGET_DEFAULT_NORETURN.
5574 2014-02-19 Tom Tromey <tromey@redhat.com>
5576 * target-delegates.c: Rebuild.
5577 * target.c (target_call_history_range): Unconditionally delegate.
5578 * target.h (struct target_ops) <to_call_history_range>: Use
5579 TARGET_DEFAULT_NORETURN.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target-delegates.c: Rebuild.
5584 * target.c (target_verify_memory): Unconditionally delegate.
5585 * target.h (struct target_ops) <to_verify_memory>: Use
5586 TARGET_DEFAULT_NORETURN.
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * target-delegates.c: Rebuild.
5591 * target.c (target_core_of_thread): Unconditionally delegate.
5592 * target.h (struct target_ops) <to_core_of_thread>: Use
5593 TARGET_DEFAULT_RETURN.
5595 2014-02-19 Tom Tromey <tromey@redhat.com>
5597 * target-delegates.c: Rebuild.
5598 * target.c (target_flash_done): Unconditionally delegate.
5599 * target.h (struct target_ops) <to_flash_done>: Use
5600 TARGET_DEFAULT_NORETURN.
5602 2014-02-19 Tom Tromey <tromey@redhat.com>
5604 * target-delegates.c: Rebuild.
5605 * target.c (target_flash_erase): Unconditionally delegate.
5606 * target.h (struct target_ops) <to_flash_erase>: Use
5607 TARGET_DEFAULT_NORETURN.
5609 2014-02-19 Tom Tromey <tromey@redhat.com>
5611 * target-delegates.c: Rebuild.
5612 * target.c (target_get_section_table): Unconditionally delegate.
5613 * target.h (struct target_ops) <to_get_section_table>: Use
5614 TARGET_DEFAULT_RETURN.
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * target-delegates.c: Rebuild.
5619 * target.c (target_pid_to_str): Unconditionally delegate.
5620 (init_dummy_target): Don't initialize to_pid_to_str.
5621 (default_pid_to_str): Rename from dummy_pid_to_str.
5622 * target.h (struct target_ops) <to_pid_to_str>: Use
5623 TARGET_DEFAULT_FUNC.
5625 2014-02-19 Tom Tromey <tromey@redhat.com>
5627 * target-delegates.c: Rebuild.
5628 * target.c (target_find_new_threads): Unconditionally delegate.
5629 * target.h (struct target_ops) <to_find_new_threads>: Use
5630 TARGET_DEFAULT_RETURN.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * target-delegates.c: Rebuild.
5635 * target.c (target_program_signals): Unconditionally delegate.
5636 * target.h (struct target_ops) <to_program_signals>: Use
5637 TARGET_DEFAULT_IGNORE.
5639 2014-02-19 Tom Tromey <tromey@redhat.com>
5641 * target-delegates.c: Rebuild.
5642 * target.c (target_pass_signals): Unconditionally delegate.
5643 * target.h (struct target_ops) <to_pass_signals>: Use
5644 TARGET_DEFAULT_IGNORE.
5646 2014-02-19 Tom Tromey <tromey@redhat.com>
5648 * target-delegates.c: Rebuild.
5649 * target.c (default_mourn_inferior): New function.
5650 (target_mourn_inferior): Unconditionally delegate.
5651 * target.h (struct target_ops) <to_mourn_inferior>: Use
5652 TARGET_DEFAULT_FUNC.
5654 2014-02-19 Tom Tromey <tromey@redhat.com>
5656 * target-delegates.c: Rebuild.
5657 * target.c (default_follow_fork): New function.
5658 (target_follow_fork): Unconditionally delegate.
5659 * target.h (struct target_ops) <to_follow_fork>: Use
5660 TARGET_DEFAULT_FUNC.
5662 2014-02-19 Tom Tromey <tromey@redhat.com>
5664 * target-delegates.c: Rebuild.
5665 * target.c (target_kill): Unconditionally delegate.
5666 * target.h (struct target_ops) <to_kill>: Use
5667 TARGET_DEFAULT_NORETURN.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target-delegates.c: Rebuild.
5672 * target.c (target_masked_watch_num_registers): Unconditionally
5674 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5675 Use TARGET_DEFAULT_RETURN.
5677 2014-02-19 Tom Tromey <tromey@redhat.com>
5679 * target-delegates.c: Rebuild.
5680 * target.c (target_remove_mask_watchpoint): Unconditionally
5682 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5683 TARGET_DEFAULT_RETURN.
5685 2014-02-19 Tom Tromey <tromey@redhat.com>
5687 * target-delegates.c: Rebuild.
5688 * target.c (target_insert_mask_watchpoint): Unconditionally
5690 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5691 TARGET_DEFAULT_RETURN.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target-delegates.c: Rebuild.
5696 * target.c (target_ranged_break_num_registers): Unconditionally
5698 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5699 Use TARGET_DEFAULT_RETURN.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * target-delegates.c: Rebuild.
5704 * target.c (target_fetch_registers): Unconditionally delegate.
5705 * target.h (struct target_ops) <to_fetch_registers>: Use
5706 TARGET_DEFAULT_NORETURN.
5708 2014-02-19 Tom Tromey <tromey@redhat.com>
5710 * target-delegates.c: Rebuild.
5711 * target.c (update_current_target): Don't inherit or default
5713 * target.h (struct target_ops) <to_stop>: Use
5714 TARGET_DEFAULT_IGNORE.
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target-delegates.c: Rebuild.
5719 * target.c (update_current_target): Don't inherit or default
5720 to_can_run_breakpoint_commands.
5721 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5722 Use TARGET_DEFAULT_RETURN.
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * target-delegates.c: Rebuild.
5727 * target.c (update_current_target): Don't inherit or default
5728 to_supports_evaluation_of_breakpoint_conditions.
5729 * target.h (struct target_ops)
5730 <to_supports_evaluation_of_breakpoint_conditions>: Use
5731 TARGET_DEFAULT_RETURN.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target-delegates.c: Rebuild.
5736 * target.c (update_current_target): Don't inherit or default
5737 to_augmented_libraries_svr4_read.
5738 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5739 Use TARGET_DEFAULT_RETURN.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target-delegates.c: Rebuild.
5744 * target.c (update_current_target): Don't inherit or default
5746 * target.h (struct target_ops) <to_can_use_agent>: Use
5747 TARGET_DEFAULT_RETURN.
5749 2014-02-19 Tom Tromey <tromey@redhat.com>
5751 * target-delegates.c: Rebuild.
5752 * target.c (update_current_target): Don't inherit or default
5754 * target.h (struct target_ops) <to_use_agent>: Use
5755 TARGET_DEFAULT_NORETURN.
5757 2014-02-19 Tom Tromey <tromey@redhat.com>
5759 * target-delegates.c: Rebuild.
5760 * target.c (update_current_target): Don't inherit or default
5762 (return_null): Remove.
5763 * target.h (struct target_ops) <to_traceframe_info>: Use
5764 TARGET_DEFAULT_RETURN.
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target-delegates.c: Rebuild.
5769 * target.c (update_current_target): Don't inherit or default
5770 to_static_tracepoint_markers_by_strid.
5771 * target.h (struct target_ops)
5772 <to_static_tracepoint_markers_by_strid>: Use
5773 TARGET_DEFAULT_NORETURN.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target-delegates.c: Rebuild.
5778 * target.c (update_current_target): Don't inherit or default
5779 to_static_tracepoint_marker_at.
5780 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5781 Use TARGET_DEFAULT_RETURN.
5783 2014-02-19 Tom Tromey <tromey@redhat.com>
5785 * target-delegates.c: Rebuild.
5786 * target.c (update_current_target): Don't inherit or default
5788 * target.h (struct target_ops) <to_set_permissions>: Use
5789 TARGET_DEFAULT_IGNORE.
5791 2014-02-19 Tom Tromey <tromey@redhat.com>
5793 * target-delegates.c: Rebuild.
5794 * target.c (update_current_target): Don't inherit or default
5796 * target.h (struct target_ops) <to_get_tib_address>: Use
5797 TARGET_DEFAULT_NORETURN.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target-delegates.c: Rebuild.
5802 * target.c (update_current_target): Don't inherit or default
5804 * target.h (struct target_ops) <to_set_trace_notes>: Use
5805 TARGET_DEFAULT_RETURN.
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * target-delegates.c: Rebuild.
5810 * target.c (update_current_target): Don't initialize
5811 to_set_trace_buffer_size.
5812 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5813 TARGET_DEFAULT_IGNORE.
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target-delegates.c: Rebuild.
5818 * target.c (update_current_target): Don't inherit or default
5819 to_set_circular_trace_buffer.
5820 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5821 TARGET_DEFAULT_IGNORE.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target-delegates.c: Rebuild.
5826 * target.c (update_current_target): Don't inherit or default
5827 to_set_disconnected_tracing.
5828 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5829 TARGET_DEFAULT_IGNORE.
5831 2014-02-19 Tom Tromey <tromey@redhat.com>
5833 * target-delegates.c: Rebuild.
5834 * target.c (update_current_target): Don't inherit or default
5835 to_get_min_fast_tracepoint_insn_len.
5836 (return_minus_one): Remove.
5837 * target.h (struct target_ops)
5838 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target-delegates.c: Rebuild.
5843 * target.c (update_current_target): Don't inherit or default
5844 to_get_raw_trace_data.
5845 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5846 TARGET_DEFAULT_NORETURN.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target-delegates.c: Rebuild.
5851 * target.c (update_current_target): Don't inherit or default
5852 to_upload_trace_state_variables.
5853 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5854 Use TARGET_DEFAULT_RETURN.
5856 2014-02-19 Tom Tromey <tromey@redhat.com>
5858 * target-delegates.c: Rebuild.
5859 * target.c (update_current_target): Don't inherit or default
5860 to_upload_tracepoints.
5861 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5862 TARGET_DEFAULT_RETURN.
5864 2014-02-19 Tom Tromey <tromey@redhat.com>
5866 * target-delegates.c: Rebuild.
5867 * target.c (update_current_target): Don't inherit or default
5869 * target.h (struct target_ops) <to_save_trace_data>: Use
5870 TARGET_DEFAULT_NORETURN.
5872 2014-02-19 Tom Tromey <tromey@redhat.com>
5874 * target-delegates.c: Rebuild.
5875 * target.c (update_current_target): Don't inherit or default
5876 to_get_trace_state_variable_value.
5877 * target.h (struct target_ops)
5878 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5880 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target-delegates.c: Rebuild.
5883 * target.c (update_current_target): Don't inherit or default
5885 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target-delegates.c: Rebuild.
5890 * target.c (update_current_target): Don't inherit or default
5892 * target.h (struct target_ops) <to_trace_stop>: Use
5893 TARGET_DEFAULT_NORETURN.
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * target-delegates.c: Rebuild.
5898 * target.c (update_current_target): Don't inherit or default
5899 to_get_tracepoint_status.
5900 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5901 TARGET_DEFAULT_NORETURN.
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * target-delegates.c: Rebuild.
5906 * target.c (update_current_target): Don't inherit or default
5907 to_get_trace_status.
5908 * target.h (struct target_ops) <to_get_trace_status>: Use
5909 TARGET_DEFAULT_RETURN.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target-delegates.c: Rebuild.
5914 * target.c (update_current_target): Don't inherit or default
5916 * target.h (struct target_ops) <to_trace_start>: Use
5917 TARGET_DEFAULT_NORETURN.
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target-delegates.c: Rebuild.
5922 * target.c (update_current_target): Don't inherit or default
5923 to_trace_set_readonly_regions.
5924 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5925 Use TARGET_DEFAULT_NORETURN.
5927 2014-02-19 Tom Tromey <tromey@redhat.com>
5929 * target-delegates.c: Rebuild.
5930 * target.c (update_current_target): Don't inherit or default
5931 to_disable_tracepoint.
5932 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5933 TARGET_DEFAULT_NORETURN.
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5937 * target-delegates.c: Rebuild.
5938 * target.c (update_current_target): Don't inherit or default
5939 to_enable_tracepoint.
5940 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5941 TARGET_DEFAULT_NORETURN.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (update_current_target): Don't inherit or default
5947 to_download_trace_state_variable.
5948 * target.h (struct target_ops) <to_download_trace_state_variable>:
5949 Use TARGET_DEFAULT_NORETURN.
5951 2014-02-19 Tom Tromey <tromey@redhat.com>
5953 * target-delegates.c: Rebuild.
5954 * target.c (update_current_target): Don't inherit or default
5955 to_can_download_tracepoint.
5956 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5957 TARGET_DEFAULT_RETURN.
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
5963 to_download_tracepoint.
5964 * target.h (struct target_ops) <to_download_tracepoint>: Use
5965 TARGET_DEFAULT_NORETURN.
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
5972 * target.h (struct target_ops) <to_trace_init>: Use
5973 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_string_tracing.
5980 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5981 TARGET_DEFAULT_RETURN.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target-delegates.c: Rebuild.
5986 * target.c (update_current_target): Don't inherit or default
5987 to_supports_enable_disable_tracepoint.
5988 * target.h (struct target_ops)
5989 <to_supports_enable_disable_tracepoint>: Use
5990 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
5996 to_supports_multi_process.
5997 * target.h (struct target_ops) <to_supports_multi_process>: 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
6004 to_get_ada_task_ptid.
6005 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6006 TARGET_DEFAULT_FUNC.
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
6012 to_thread_architecture.
6013 * target.h (struct target_ops) <to_thread_architecture>: Use
6014 TARGET_DEFAULT_FUNC.
6016 2014-02-19 Tom Tromey <tromey@redhat.com>
6018 * target-delegates.c: Rebuild.
6019 * target.c (update_current_target): Don't inherit or default
6020 to_execution_direction.
6021 * target.h (struct target_ops) <to_execution_direction>: Use
6022 TARGET_DEFAULT_FUNC.
6024 2014-02-19 Tom Tromey <tromey@redhat.com>
6026 * target-delegates.c: Rebuild.
6027 * target.c (update_current_target): Don't inherit or default
6028 to_can_execute_reverse.
6029 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6030 TARGET_DEFAULT_RETURN.
6031 (target_can_execute_reverse): Unconditionally delegate.
6033 2014-02-19 Tom Tromey <tromey@redhat.com>
6035 * target-delegates.c: Rebuild.
6036 * target.c (update_current_target): Don't inherit or default
6038 (dummy_goto_bookmark): Remove.
6039 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6040 * target.h (struct target_ops) <to_goto_bookmark>: Use
6041 TARGET_DEFAULT_NORETURN.
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target-delegates.c: Rebuild.
6046 * target.c (update_current_target): Don't inherit or default
6048 (dummy_get_bookmark): Remove.
6049 (init_dummy_target): Don't inherit or default to_get_bookmark.
6050 * target.h (struct target_ops) <to_get_bookmark>: Use
6051 TARGET_DEFAULT_NORETURN
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * target-delegates.c: Rebuild.
6056 * target.c (update_current_target): Don't inherit or default
6057 to_make_corefile_notes.
6058 (init_dummy_target): Don't initialize to_make_corefile_notes.
6059 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6060 TARGET_DEFAULT_FUNC.
6062 2014-02-19 Tom Tromey <tromey@redhat.com>
6064 * target-delegates.c: Rebuild.
6065 * target.c (update_current_target): Don't inherit or default
6066 to_find_memory_regions.
6067 (init_dummy_target): Don't initialize to_find_memory_regions.
6068 * target.h (struct target_ops) <to_find_memory_regions>: Use
6069 TARGET_DEFAULT_FUNC.
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * target-delegates.c: Rebuild.
6074 * target.c (update_current_target): Don't inherit or default
6076 * target.h (struct target_ops) <to_log_command>: Use
6077 TARGET_DEFAULT_IGNORE.
6078 (target_log_command): Unconditionally delegate.
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * target-delegates.c: Rebuild.
6083 * target.c (update_current_target): Don't inherit or default
6084 to_pid_to_exec_file.
6085 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6086 TARGET_DEFAULT_RETURN.
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6090 * target-delegates.c: Rebuild.
6091 * target.c (update_current_target): Don't inherit or default
6093 (target_thread_name): Unconditionally delegate.
6094 * target.h (struct target_ops) <to_thread_name>: Use
6095 TARGET_DEFAULT_RETURN.
6097 2014-02-19 Tom Tromey <tromey@redhat.com>
6099 * target-delegates.c: Rebuild.
6100 * target.c (update_current_target): Don't inherit or default
6101 to_extra_thread_info.
6102 * target.h (struct target_ops) <to_extra_thread_info>: Use
6103 TARGET_DEFAULT_RETURN.
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target-delegates.c: Rebuild.
6108 * target.c (update_current_target): Don't inherit or default
6110 * target.h (struct target_ops) <to_has_exited>: Use
6111 TARGET_DEFAULT_RETURN..
6113 2014-02-19 Tom Tromey <tromey@redhat.com>
6115 * target-delegates.c: Rebuild.
6116 * target.c (update_current_target): Don't inherit or default
6117 to_set_syscall_catchpoint.
6118 (return_one): Remove.
6119 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6120 TARGET_DEFAULT_RETURN.
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target-delegates.c: Rebuild.
6125 * target.c (update_current_target): Don't inherit or default
6126 to_insert_exec_catchpoint.
6127 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6128 TARGET_DEFAULT_RETURN.
6130 2014-01-08 Tom Tromey <tromey@redhat.com>
6132 * target-delegates.c: Rebuild.
6133 * target.c (update_current_target): Don't inherit or default
6134 to_insert_exec_catchpoint.
6135 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6136 TARGET_DEFAULT_RETURN.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target-delegates.c: Rebuild.
6141 * target.c (update_current_target): Don't inherit or default
6142 to_remove_vfork_catchpoint.
6143 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6144 TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
6151 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6152 TARGET_DEFAULT_RETURN.
6154 2014-02-19 Tom Tromey <tromey@redhat.com>
6156 * target-delegates.c: Rebuild.
6157 * target.c (update_current_target): Don't inherit or default
6158 to_remove_fork_catchpoint.
6159 * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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
6166 to_insert_fork_catchpoint.
6167 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6168 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
6175 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6176 TARGET_DEFAULT_IGNORE.
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
6183 * target.h (struct target_ops) <to_load>: 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
6191 * target.h (struct target_ops) <to_terminal_info>: Use
6192 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
6199 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6200 TARGET_DEFAULT_IGNORE.
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
6207 * target.h (struct target_ops) <to_terminal_ours>: Use
6208 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
6215 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6216 TARGET_DEFAULT_IGNORE.
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
6222 to_terminal_inferior.
6223 * target.h (struct target_ops) <to_terminal_inferior>: Use
6224 TARGET_DEFAULT_IGNORE.
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
6231 * target.h (struct target_ops) <to_terminal_init>: Use
6232 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
6239 * target.h (struct target_ops)
6240 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target-delegates.c: Rebuild.
6245 * target.c (update_current_target): Don't inherit or default
6246 to_region_ok_for_hw_watchpoint.
6247 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6248 Use TARGET_DEFAULT_FUNC.
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6252 * target-delegates.c: Rebuild.
6253 * target.c (update_current_target): Don't inherit or default
6254 to_watchpoint_addr_within_range.
6255 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6256 Use TARGET_DEFAULT_FUNC.
6258 2014-02-19 Tom Tromey <tromey@redhat.com>
6260 * target-delegates.c: Rebuild.
6261 * target.c (update_current_target): Don't inherit or default
6262 to_remove_watchpoint.
6263 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6264 TARGET_DEFAULT_NORETURN.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * target-delegates.c: Rebuild.
6269 * target.c (update_current_target): Don't inherit or default
6270 to_insert_watchpoint.
6271 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6272 TARGET_DEFAULT_RETURN.
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target-delegates.c: Rebuild.
6277 * target.c (update_current_target): Don't inherit or default
6278 to_remove_hw_breakpoint.
6279 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6280 TARGET_DEFAULT_RETURN.
6282 2014-02-19 Tom Tromey <tromey@redhat.com>
6284 * target-delegates.c: Rebuild.
6285 * target.c (update_current_target): Don't inherit or default
6286 to_insert_hw_breakpoint.
6287 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6288 TARGET_DEFAULT_RETURN.
6290 2014-02-19 Tom Tromey <tromey@redhat.com>
6292 * target-delegates.c: Rebuild.
6293 * target.c (update_current_target): Don't inherit or default
6294 to_can_use_hw_breakpoint.
6295 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6296 TARGET_DEFAULT_RETURN.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target-delegates.c: Rebuild.
6301 * target.c (update_current_target): Don't inherit or default
6303 * target.h (struct target_ops) <to_files_info>: Use
6304 TARGET_DEFAULT_IGNORE.
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * target-delegates.c: Rebuild.
6309 * target.c (update_current_target): Don't inherit or default
6311 * target.h (struct target_ops) <to_store>: Use
6312 TARGET_DEFAULT_NORETURN.
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * target-delegates.c: Rebuild.
6317 * target.c (update_current_target): Don't inherit or default
6319 * target.h (struct target_ops) <to_post_attach>: Use
6320 TARGET_DEFAULT_IGNORE.
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 (default_rcmd): New function.
6328 (do_monitor_command): Unconditionally delegate.
6329 * target.h (struct target_ops) <to_rmcd>: Use
6330 TARGET_DEFAULT_FUNC.
6332 2014-02-19 Tom Tromey <tromey@redhat.com>
6334 * target-delegates.c: Rebuild.
6335 * target.c (init_dummy_target): Don't initialize to_attach.
6336 (target_attach): Unconditionally delegate.
6337 * target.h (struct target_ops) <to_attach>: Use
6338 TARGET_DEFAULT_FUNC.
6340 2014-02-19 Tom Tromey <tromey@redhat.com>
6342 * target-delegates.c: Rebuild.
6343 * target.c (target_detach): Unconditionally delegate.
6344 (init_dummy_target): Don't initialize to_detach.
6345 * target.h (struct target_ops) <to_detach>: Use
6346 TARGET_DEFAULT_IGNORE.
6348 2014-02-19 Tom Tromey <tromey@redhat.com>
6350 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6352 (target_augmented_libraries_svr4_read): Add argument.
6353 * target.c (update_current_target): Update.
6354 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6357 2014-02-19 Tom Tromey <tromey@redhat.com>
6359 * target.h (struct target_ops) <to_call_history_range>: Add
6361 * target.c (target_call_history_range): Add argument.
6362 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6364 (record_btrace_call_history_from): Update.
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * target.h (struct target_ops) <to_call_history_from>: Add
6370 * target.c (target_call_history_from): Add argument.
6371 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target.h (struct target_ops) <to_call_history>: Add argument.
6377 * target.c (target_call_history): Add argument.
6378 * record-btrace.c (record_btrace_call_history): Add 'self'
6381 2014-02-19 Tom Tromey <tromey@redhat.com>
6383 * target.h (struct target_ops) <to_insn_history_range>: Add
6385 * target.c (target_insn_history_range): Add argument.
6386 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6388 (record_btrace_insn_history_from): Update.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target.h (struct target_ops) <to_insn_history_from>: Add
6394 * target.c (target_insn_history_from): Add argument.
6395 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target.h (struct target_ops) <to_insn_history>: Add argument.
6401 * target.c (target_insn_history): Add argument.
6402 * record-btrace.c (record_btrace_insn_history): Add 'self'
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target.h (struct target_ops) <to_goto_record>: Add argument.
6408 * target.c (target_goto_record): Add argument.
6409 * record-full.c (record_full_goto): Add 'self' argument.
6410 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6415 * target.c (target_goto_record_end): Add argument.
6416 * record-full.c (record_full_goto_end): Add 'self' argument.
6417 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6419 2014-02-19 Tom Tromey <tromey@redhat.com>
6421 * target.h (struct target_ops) <to_goto_record_begin>: Add
6423 * target.c (target_goto_record_begin): Add argument.
6424 * record-full.c (record_full_goto_begin): Add 'self' argument.
6425 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6430 * target.h (struct target_ops) <to_record_is_replaying>: Add
6432 * target.c (target_record_is_replaying): Add argument.
6433 * record-full.c (record_full_is_replaying): Add 'self' argument.
6434 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6436 (record_btrace_xfer_partial, record_btrace_store_registers)
6437 (record_btrace_prepare_to_store, record_btrace_resume)
6438 (record_btrace_wait, record_btrace_decr_pc_after_break)
6439 (record_btrace_find_new_threads, record_btrace_thread_alive):
6442 2014-02-19 Tom Tromey <tromey@redhat.com>
6444 * target.h (struct target_ops) <to_delete_record>: Add argument.
6445 * target.c (target_delete_record): Add argument.
6446 * record-full.c (record_full_delete): Add 'self' argument.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * target.h (struct target_ops) <to_save_record>: Add argument.
6451 * target.c (target_save_record): Add argument.
6452 * record-full.c (record_full_save): Add 'self' argument.
6453 (record_full_save): Add 'self' argument.
6455 2014-02-19 Tom Tromey <tromey@redhat.com>
6457 * target.h (struct target_ops) <to_info_record>: Add argument.
6458 * target.c (target_info_record): Add argument.
6459 * record.c (info_record_command): Add argument.
6460 * record-full.c (record_full_info): Add 'self' argument.
6461 * record-btrace.c (record_btrace_info): Add 'self' argument.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6466 * target.c (target_stop_recording): Add argument.
6467 * record.c (record_stop): Add argument.
6468 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6474 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6475 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6477 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6478 (_initialize_amd64_linux_nat): Use it.
6479 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6480 (_initialize_i386_linux_nat): Use it.
6482 2014-02-19 Tom Tromey <tromey@redhat.com>
6484 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6485 * target.c (target_teardown_btrace): Add argument.
6486 * remote.c (remote_teardown_btrace): Add 'self' argument.
6487 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6489 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6492 2014-02-19 Tom Tromey <tromey@redhat.com>
6494 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6495 * target.c (target_disable_btrace): Add argument.
6496 * remote.c (remote_disable_btrace): Add 'self' argument.
6497 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6499 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6502 2014-02-19 Tom Tromey <tromey@redhat.com>
6504 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6505 * target.c (target_enable_btrace): Add argument.
6506 * remote.c (remote_enable_btrace): Add 'self' argument.
6507 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6509 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6512 2014-02-19 Tom Tromey <tromey@redhat.com>
6514 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6515 (target_can_use_agent): Add argument.
6516 * target.c (update_current_target): Update.
6517 * remote.c (remote_can_use_agent): Add 'self' argument.
6518 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target.h (struct target_ops) <to_use_agent>: Add argument.
6523 (target_use_agent): Add argument.
6524 * target.c (update_current_target): Update.
6525 * remote.c (remote_use_agent): Add 'self' argument.
6526 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6528 2014-02-19 Tom Tromey <tromey@redhat.com>
6530 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6531 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6532 (target_traceframe_info): Add argument.
6533 * target.c (update_current_target): Update.
6534 * remote.c (remote_traceframe_info): Add 'self' argument.
6535 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6537 2014-02-19 Tom Tromey <tromey@redhat.com>
6539 * target.h (target_static_tracepoint_markers_by_strid): Add
6541 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6543 * target.c (update_current_target): Update.
6544 * remote.c (struct target_ops)
6545 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6546 * linux-nat.c (struct target_ops)
6547 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6553 (target_static_tracepoint_marker_at): Add argument.
6554 * target.c (update_current_target): Update.
6555 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6561 (target_set_permissions): Add argument.
6562 * target.c (update_current_target): Update.
6563 * remote.c (remote_set_permissions): Add 'self' argument.
6564 (remote_start_remote): Update.
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6569 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6570 (target_get_tib_address): Add argument.
6571 * target.c (update_current_target): Update.
6572 * remote.c (remote_get_tib_address): Add 'self' argument.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6577 (target_set_trace_notes): Add argument.
6578 * target.c (update_current_target): Update.
6579 * remote.c (remote_set_trace_notes): Add 'self' argument.
6581 2014-02-19 Tom Tromey <tromey@redhat.com>
6583 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6585 (target_set_trace_buffer_size): Add argument.
6586 * target.c (update_current_target): Update.
6587 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6589 2014-02-19 Tom Tromey <tromey@redhat.com>
6591 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6593 (target_set_circular_trace_buffer): Add argument.
6594 * target.c (update_current_target): Update.
6595 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6598 2014-02-19 Tom Tromey <tromey@redhat.com>
6600 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6602 (target_set_disconnected_tracing): Add argument.
6603 * target.c (update_current_target): Update.
6604 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6606 2014-02-19 Tom Tromey <tromey@redhat.com>
6608 * target.h (struct target_ops)
6609 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6610 (target_get_min_fast_tracepoint_insn_len): Add argument.
6611 * target.c (update_current_target): Update.
6612 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6619 (target_get_raw_trace_data): Add argument.
6620 * target.c (update_current_target): Update.
6621 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6627 (target_upload_trace_state_variables): Add argument.
6628 * target.c (update_current_target): Update.
6629 * remote.c (remote_upload_trace_state_variables): Add 'self'
6631 (remote_start_remote): Update.
6633 2014-02-19 Tom Tromey <tromey@redhat.com>
6635 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6637 (target_upload_tracepoints): Add argument.
6638 * target.c (update_current_target): Update.
6639 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6640 (remote_start_remote): Update.
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6645 (target_save_trace_data): Add argument.
6646 * target.c (update_current_target): Update.
6647 * remote.c (remote_save_trace_data): Add 'self' argument.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6653 * target.h (struct target_ops)
6654 <to_get_trace_state_variable_value>: Add argument.
6655 (target_get_trace_state_variable_value): Add argument.
6656 * target.c (update_current_target): Update.
6657 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6659 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6664 * target.h (struct target_ops) <to_trace_find>: Add argument.
6665 (target_trace_find): Add argument.
6666 * target.c (update_current_target): Update.
6667 * remote.c (remote_trace_find): Add 'self' argument.
6668 * ctf.c (ctf_trace_find): Add 'self' argument.
6670 2014-02-19 Tom Tromey <tromey@redhat.com>
6672 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6673 (target_trace_stop): Add argument.
6674 * target.c (update_current_target): Update.
6675 * remote.c (remote_trace_stop): Add 'self' argument.
6677 2014-02-19 Tom Tromey <tromey@redhat.com>
6679 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6680 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6682 (target_get_tracepoint_status): Add argument.
6683 * target.c (update_current_target): Update.
6684 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6689 * target.h (struct target_ops) <to_get_trace_status>: Add
6691 (target_get_trace_status): Add argument.
6692 * target.c (update_current_target): Update.
6693 * remote.c (remote_get_trace_status): Add 'self' argument.
6694 (remote_start_remote, remote_can_download_tracepoint): Update.
6695 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6697 2014-02-19 Tom Tromey <tromey@redhat.com>
6699 * target.h (struct target_ops) <to_trace_start>: Add argument.
6700 (target_trace_start): Add argument.
6701 * target.c (update_current_target): Update.
6702 * remote.c (remote_trace_start): Add 'self' argument.
6704 2014-02-19 Tom Tromey <tromey@redhat.com>
6706 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6708 (target_trace_set_readonly_regions): Add argument.
6709 * target.c (update_current_target): Update.
6710 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6713 2014-02-19 Tom Tromey <tromey@redhat.com>
6715 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6717 (target_disable_tracepoint): Add argument.
6718 * target.c (update_current_target): Update.
6719 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6721 2014-02-19 Tom Tromey <tromey@redhat.com>
6723 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6725 (target_enable_tracepoint): Add argument.
6726 * target.c (update_current_target): Update.
6727 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target.h (struct target_ops) <to_download_trace_state_variable>:
6733 (target_download_trace_state_variable): Add argument.
6734 * target.c (update_current_target): Update.
6735 * remote.c (remote_download_trace_state_variable): Add 'self'
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6742 (target_can_download_tracepoint): Add argument.
6743 * target.c (update_current_target): Update.
6744 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target.h (struct target_ops) <to_download_tracepoint>: Add
6750 (target_download_tracepoint): Add argument.
6751 * target.c (update_current_target): Update.
6752 * remote.c (remote_download_tracepoint): Add 'self' argument.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target.h (struct target_ops) <to_trace_init>: Add argument.
6757 (target_trace_init): Add argument.
6758 * target.c (update_current_target): Update.
6759 * remote.c (remote_trace_init): Add 'self' argument.
6761 2014-02-19 Tom Tromey <tromey@redhat.com>
6763 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6764 * target.c (target_fileio_readlink): Add argument.
6765 * remote.c (remote_hostio_readlink): Add 'self' argument.
6766 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6768 2014-02-19 Tom Tromey <tromey@redhat.com>
6770 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6771 * target.c (target_fileio_unlink): Add argument.
6772 * remote.c (remote_hostio_unlink): Add 'self' argument.
6773 (remote_file_delete): Update.
6774 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6776 2014-02-19 Tom Tromey <tromey@redhat.com>
6778 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6779 * target.c (target_fileio_close): Add argument.
6780 * remote.c (remote_hostio_close): Add 'self' argument.
6781 (remote_hostio_close_cleanup): Update.
6782 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6784 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6786 2014-02-19 Tom Tromey <tromey@redhat.com>
6788 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6789 * target.c (target_fileio_pread): Add argument.
6790 * remote.c (remote_hostio_pread): Add 'self' argument.
6791 (remote_bfd_iovec_pread, remote_file_get): Update.
6792 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6794 2014-02-19 Tom Tromey <tromey@redhat.com>
6796 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6797 * target.c (target_fileio_pwrite): Add argument.
6798 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6799 (remote_file_put): Update.
6800 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6802 2014-02-19 Tom Tromey <tromey@redhat.com>
6804 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6805 * target.c (target_fileio_open): Add argument.
6806 * remote.c (remote_hostio_open): Add 'self' argument.
6807 (remote_bfd_iovec_open): Add 'self' argument.
6808 (remote_file_put): Add 'self' argument.
6809 (remote_file_get): Add 'self' argument.
6810 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6812 2014-02-19 Tom Tromey <tromey@redhat.com>
6814 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6816 (target_can_run_breakpoint_commands): Add argument.
6817 * target.c (update_current_target): Update.
6818 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6820 (remote_insert_breakpoint): Add 'self' argument.
6821 (remote_insert_hw_breakpoint): Add 'self' argument.
6822 (remote_can_run_breakpoint_commands): Add 'self' argument.
6824 2014-02-19 Tom Tromey <tromey@redhat.com>
6826 * target.h (struct target_ops)
6827 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6828 (target_supports_evaluation_of_breakpoint_conditions): Add
6830 * target.c (update_current_target): Update.
6831 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6833 (remote_insert_breakpoint): Add 'self' argument.
6834 (remote_insert_hw_breakpoint): Add 'self' argument.
6835 (remote_supports_cond_breakpoints): Add 'self' argument.
6837 2014-02-19 Tom Tromey <tromey@redhat.com>
6839 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6841 (target_supports_string_tracing): Add argument.
6842 * target.c (update_current_target): Update.
6843 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6845 2014-02-19 Tom Tromey <tromey@redhat.com>
6847 * target.h (struct target_ops)
6848 <to_supports_disable_randomization>: Add argument.
6849 * target.c (find_default_supports_disable_randomization): Add
6851 (target_supports_disable_randomization): Add argument.
6852 (find_default_supports_disable_randomization): Add 'self'
6854 * remote.c (extended_remote_supports_disable_randomization): Add
6856 (remote_supports_disable_randomization): Add 'self' argument.
6857 (extended_remote_create_inferior): Update.
6858 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6861 2014-02-19 Tom Tromey <tromey@redhat.com>
6863 * target.h (struct target_ops)
6864 <to_supports_enable_disable_tracepoint>: Add argument.
6865 (target_supports_enable_disable_tracepoint): Add argument.
6866 * target.c (update_current_target): Update.
6867 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6870 2014-02-19 Tom Tromey <tromey@redhat.com>
6872 * target.h (struct target_ops) <to_supports_multi_process>: Add
6874 (target_supports_multi_process): Add argument.
6875 * target.c (update_current_target): Update.
6876 * remote.c (remote_supports_multi_process): Add 'self' argument.
6877 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6879 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6882 2014-02-19 Tom Tromey <tromey@redhat.com>
6884 * target.h (struct target_ops) <to_execution_direction>: Add
6886 (target_execution_direction): Add argument.
6887 * target.c (default_execution_direction): Add 'self' argument.
6888 * record-full.c (record_full_execution_direction): Add 'self'
6891 2014-02-19 Tom Tromey <tromey@redhat.com>
6893 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6895 (target_can_execute_reverse): Add argument.
6896 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6897 * record-full.c (record_full_can_execute_reverse): Add 'self'
6899 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6902 2014-02-19 Tom Tromey <tromey@redhat.com>
6904 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6905 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6907 (target_get_ada_task_ptid): Add argument.
6908 * target.c (update_current_target): Update.
6909 (default_get_ada_task_ptid): Add 'self' argument.
6910 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6911 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6912 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6914 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6916 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6918 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6920 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6921 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6924 2014-02-19 Tom Tromey <tromey@redhat.com>
6926 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6927 (target_goto_bookmark): Add argument.
6928 * target.c (dummy_goto_bookmark): Add 'self' argument.
6929 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6934 (target_get_bookmark): Add argument.
6935 * target.c (dummy_get_bookmark): Add 'self' argument.
6936 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6938 2014-02-19 Tom Tromey <tromey@redhat.com>
6940 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6942 (target_make_corefile_notes): Add argument.
6943 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6944 * procfs.c (procfs_make_note_section): Add 'self' argument.
6945 (procfs_make_note_section): Add 'self' argument.
6946 (procfs_make_note_section): Add 'self' argument.
6947 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6949 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6950 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6951 * exec.c (exec_make_note_section): Add 'self' argument.
6952 (exec_make_note_section): Add 'self' argument.
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * target.h (struct target_ops) <to_find_memory_regions>: Add
6958 (target_find_memory_regions): Add argument.
6959 * target.c (dummy_find_memory_regions): Add 'self' argument.
6960 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6961 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6962 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6963 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6964 * exec. (exec_do_find_memory_regions): New global.
6965 (exec_set_find_memory_regions): Rewrite.
6966 (exec_find_memory_regions): New function.
6967 (init_exec_ops): Use exec_find_memory_regions.
6969 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * target.h (struct target_ops) <to_supports_non_stop>: Add
6973 * target.c (find_default_supports_non_stop): Add argument.
6974 (target_supports_non_stop): Add argument.
6975 (find_default_supports_non_stop): Add 'self' argument.
6976 * remote.c (remote_supports_non_stop): Add 'self' argument.
6977 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * target.h (struct target_ops) <to_log_command>: Add argument.
6982 (target_log_command): Add argument.
6983 * serial.h (serial_log_command): Add 'self' argument.
6984 * serial.c (serial_log_command): Add 'self' argument.
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6989 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6991 (target_pid_to_exec_file): Add argument.
6992 * target.c (debug_to_pid_to_exec_file): Add argument.
6993 (update_current_target): Update.
6994 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6995 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6996 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6997 (linux_handle_extended_wait): Update.
6998 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6999 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7000 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7001 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7005 * target.h (struct target_ops) <to_rcmd>: Add argument.
7006 (target_rcmd): Add argument.
7007 * target.c (debug_to_rcmd): Add argument.
7008 (update_current_target, do_monitor_command): Update.
7009 * remote.c (remote_rcmd): Add 'self' argument.
7010 * monitor.c (monitor_rcmd): Add 'self' argument.
7012 2014-02-19 Tom Tromey <tromey@redhat.com>
7014 * windows-nat.c (windows_stop): Add 'self' argument.
7015 * target.h (struct target_ops) <to_stop>: Add argument.
7016 * target.c (target_stop): Add argument.
7017 (debug_to_stop): Add argument.
7018 (update_current_target): Update.
7019 * remote.c (remote_stop): Add 'self' argument.
7020 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7021 (gdbsim_cntrl_c): Update.
7022 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7023 * procfs.c (procfs_stop): Add 'self' argument.
7024 * nto-procfs.c (procfs_stop): Add 'self' argument.
7025 * monitor.c (monitor_stop): Add 'self' argument.
7026 (monitor_open): Update.
7027 * linux-nat.c (linux_nat_stop): Add argument.
7028 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7029 * gnu-nat.c (gnu_stop): Add 'self' argument.
7030 * darwin-nat.c (darwin_stop): Add 'self' argument.
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7034 * target.h (struct target_ops) <to_thread_name>: Add argument.
7035 * target.c (target_thread_name): Add argument.
7036 (update_current_target): Update.
7037 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7039 2014-02-19 Tom Tromey <tromey@redhat.com>
7041 * target.h (struct target_ops) <to_extra_thread_info>: Add
7043 (target_extra_thread_info): Add argument.
7044 * target.c (update_current_target): Update.
7045 * remote.c (remote_threads_extra_info): Add 'self' argument.
7046 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7048 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7049 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7050 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7052 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7054 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7056 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7059 2014-02-19 Tom Tromey <tromey@redhat.com>
7061 * target.h (struct target_ops) <to_program_signals>: Add argument.
7062 * target.c (target_program_signals): Add argument.
7063 * remote.c (remote_program_signals): Add 'self' argument.
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7067 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7068 * target.c (target_pass_signals): Add argument.
7069 * remote.c (remote_pass_signals): Add 'self' argument.
7070 (remote_start_remote): Update.
7071 * procfs.c (procfs_pass_signals): Add 'self' argument.
7072 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7073 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7074 (linux_nat_create_inferior, linux_nat_attach): Update.
7076 2014-02-19 Tom Tromey <tromey@redhat.com>
7078 * windows-nat.c (windows_can_run): Add 'self' argument.
7079 * target.h (struct target_ops) <to_can_run>: Add argument.
7080 (target_can_run): Add argument.
7081 * target.c (debug_to_can_run): Add argument.
7082 (update_current_target): Update.
7083 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7084 * inf-child.c (inf_child_can_run): Add 'self' argument.
7085 * go32-nat.c (go32_can_run): Add 'self' argument.
7087 2014-02-19 Tom Tromey <tromey@redhat.com>
7089 * target.h (struct target_ops) <to_has_exited>: Add argument.
7090 (target_has_exited): Add argument.
7091 * target.c (debug_to_has_exited): Add argument.
7092 (update_current_target): Update.
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7098 (target_set_syscall_catchpoint): Add argument.
7099 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7101 * target.c (update_current_target): Update.
7103 2014-02-19 Tom Tromey <tromey@redhat.com>
7105 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7107 (target_remove_exec_catchpoint): Add argument.
7108 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7109 (update_current_target): Update.
7110 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7113 2014-02-19 Tom Tromey <tromey@redhat.com>
7115 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7117 (target_insert_exec_catchpoint): Add argument.
7118 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7119 (update_current_target): Update.
7120 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7123 2014-02-19 Tom Tromey <tromey@redhat.com>
7125 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7127 (target_remove_vfork_catchpoint): Add argument.
7128 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7129 (update_current_target): Update.
7130 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7137 (target_insert_vfork_catchpoint): Add argument.
7138 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7139 (update_current_target): Update.
7140 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7143 2014-02-19 Tom Tromey <tromey@redhat.com>
7145 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7147 (target_remove_fork_catchpoint): Add argument.
7148 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7149 (update_current_target): Update.
7150 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7153 2014-02-19 Tom Tromey <tromey@redhat.com>
7155 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7157 (target_insert_fork_catchpoint): Add argument.
7158 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7159 (update_current_target): Update.
7160 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7163 2014-02-19 Tom Tromey <tromey@redhat.com>
7165 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7167 (target_post_startup_inferior): Add argument.
7168 * target.c (debug_to_post_startup_inferior): Add argument.
7169 (update_current_target): Update.
7170 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7172 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7174 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7176 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7178 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7180 (super_post_startup_inferior): Likewise.
7181 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7183 (super_post_startup_inferior): Likewise.
7184 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7185 Add 'self' argument.
7186 (super_post_startup_inferior): Likewise.
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * target.h (struct target_ops) <to_load>: Add argument.
7191 * target.c (target_load): Add argument.
7192 (debug_to_load): Add argument.
7193 (update_current_target): Update.
7194 * remote.c (remote_load): Add 'self' argument.
7195 * remote-sim.c (gdbsim_load): Add 'self' argument.
7196 * remote-mips.c (mips_load): Add 'self' argument.
7197 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7198 * monitor.c (monitor_load): Add 'self' argument.
7199 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7201 2014-02-19 Tom Tromey <tromey@redhat.com>
7203 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7204 (target_terminal_info): Add argument.
7205 * target.c (debug_to_terminal_info): Add argument.
7206 (default_terminal_info): Likewise.
7207 * inflow.c (child_terminal_info): Add 'self' argument.
7208 * inferior.h (child_terminal_info): Add 'self' argument.
7209 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7213 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7215 (target_terminal_save_ours): Add argument.
7216 * target.c (debug_to_terminal_save_ours): Add argument.
7217 (update_current_target): Update.
7218 * inflow.c (terminal_save_ours): Add 'self' argument.
7219 * inferior.h (terminal_save_ours): Add 'self' argument.
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7224 (target_terminal_ours): Add argument.
7225 * target.c (debug_to_terminal_ours): Add argument.
7226 (update_current_target): Update.
7227 * remote.c (remote_terminal_ours): Add 'self' argument.
7228 (remote_close): Update.
7229 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7230 * inflow.c (terminal_ours): Add 'self' argument.
7231 * inferior.h (terminal_ours): Add 'self' argument.
7232 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7234 2014-02-19 Pedro Alves <palves@redhat.com>
7235 Tom Tromey <tromey@redhat.com>
7237 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7239 (target_terminal_ours_for_output): Add argument.
7240 * target.c (debug_to_terminal_ours_for_output): Add argument.
7241 (update_current_target): Update.
7242 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7243 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7244 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7248 * target.h (struct target_ops) <to_terminal_inferior>: Add
7250 * target.c (target_terminal_inferior): Add argument.
7251 (update_current_target): Update.
7252 * remote.c (remote_terminal_inferior): Add 'self' argument.
7253 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7254 * inflow.c (terminal_inferior): Add 'self' argument.
7255 * inferior.h (terminal_inferior): Add 'self' argument.
7256 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7257 (go32_terminal_inferior): Add 'self' argument.
7259 2014-02-19 Tom Tromey <tromey@redhat.com>
7261 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7262 (target_terminal_init): Add argument.
7263 * target.c (debug_to_terminal_init): Add argument.
7264 (update_current_target): Update.
7265 * inflow.c (terminal_init_inferior): Add 'self' argument.
7266 * inferior.h (terminal_init_inferior): Add 'self' argument.
7267 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7268 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7272 * target.h (struct target_ops)
7273 <to_can_accel_watchpoint_condition>: Add argument.
7274 (target_can_accel_watchpoint_condition): Add argument.
7275 * target.c (debug_to_can_accel_watchpoint_condition): Add
7277 (update_current_target): Update.
7278 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7281 2014-02-19 Tom Tromey <tromey@redhat.com>
7283 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7285 (target_region_ok_for_hw_watchpoint): Add argument.
7286 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7287 (default_region_ok_for_hw_watchpoint): Add argument.
7288 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7289 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7291 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7293 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7295 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7297 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7299 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7301 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7302 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7304 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7305 Add 'self' argument.
7307 2014-02-19 Tom Tromey <tromey@redhat.com>
7309 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7311 (target_insert_watchpoint): Add argument.
7312 * target.c (debug_to_insert_watchpoint): Add argument.
7313 (update_current_target): Update.
7314 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7315 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7316 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7317 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7318 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7319 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7321 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7322 (procfs_insert_hw_watchpoint): Add 'self' argument.
7323 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7325 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7327 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7329 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7330 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7332 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7337 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7339 (target_remove_watchpoint): Add argument.
7340 * target.c (debug_to_remove_watchpoint): Add argument.
7341 (update_current_target): Update.
7342 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7343 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7344 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7345 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7346 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7347 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7349 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7350 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7352 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7354 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7356 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7357 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7359 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7362 2014-02-19 Tom Tromey <tromey@redhat.com>
7364 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7366 (target_remove_hw_breakpoint): Add argument.
7367 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7368 (update_current_target): Update.
7369 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7370 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7372 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7373 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7375 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7378 2014-02-19 Tom Tromey <tromey@redhat.com>
7380 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7382 (target_insert_hw_breakpoint): Add argument.
7383 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7384 (update_current_target): Update.
7385 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7386 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7388 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7389 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7390 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7392 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7395 2014-02-19 Tom Tromey <tromey@redhat.com>
7397 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7399 (target_can_use_hardware_watchpoint): Add argument.
7400 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7401 (update_current_target): Update.
7402 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7404 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7406 * remote.c (remote_check_watch_resources): Add 'self' argument.
7407 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7408 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7410 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7411 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7413 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7415 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7417 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7419 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7421 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7423 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7424 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7426 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7429 2014-02-19 Tom Tromey <tromey@redhat.com>
7431 * target.h (struct target_ops) <to_post_attach>: Add argument.
7432 (target_post_attach): Add argument.
7433 * target.c (debug_to_post_attach): Add argument.
7434 (update_current_target): Update.
7435 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7436 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7437 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7438 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7439 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * windows-nat.c (windows_close): Add 'self' argument.
7444 * tracepoint.c (tfile_close): Add 'self' argument.
7445 * target.h (struct target_ops) <to_close>: Add argument.
7446 * target.c (target_close): Add argument.
7447 (update_current_target): Update.
7448 * remote.c (remote_close): Add 'self' argument.
7449 * remote-sim.c (gdbsim_close): Add 'self' argument.
7450 * remote-mips.c (mips_close): Add 'self' argument.
7451 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7452 * record-full.c (record_full_close): Add 'self' argument.
7453 * record-btrace.c (record_btrace_close): Add 'self' argument.
7454 * monitor.h (monitor_close): Add 'self' argument.
7455 * monitor.c (monitor_close): Add 'self' argument.
7456 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7457 * linux-nat.c (linux_nat_close): Add argument.
7458 * go32-nat.c (go32_close): Add 'self' argument.
7459 * exec.c (exec_close_1): Add 'self' argument.
7460 * ctf.c (ctf_close): Add 'self' argument.
7461 * corelow.c (core_close): Add 'self' argument.
7462 (core_close_cleanup): Update.
7463 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7464 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7466 2014-02-19 Tom Tromey <tromey@redhat.com>
7468 * remote.c (remote_load): New function.
7469 (init_remote_ops): Use it.
7471 2014-02-19 Tom Tromey <tromey@redhat.com>
7473 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7475 * common/linux-btrace.h (linux_supports_btrace): Update.
7476 * remote.c (remote_supports_btrace): Add "self" argument.
7477 * target-delegates.c: Rebuild.
7478 * target.c (target_supports_btrace): Remove.
7479 * target.h (struct target_ops) <to_supports_btrace>: Add
7480 target_ops argument.
7481 (target_supports_btrace): New define.
7483 2014-02-19 Tom Tromey <tromey@redhat.com>
7485 * record-full.c (record_full_beneath_to_resume_ops)
7486 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7487 (record_full_beneath_to_wait)
7488 (record_full_beneath_to_store_registers_ops)
7489 (record_full_beneath_to_store_registers)
7490 (record_full_beneath_to_xfer_partial_ops)
7491 (record_full_beneath_to_xfer_partial)
7492 (record_full_beneath_to_insert_breakpoint_ops)
7493 (record_full_beneath_to_insert_breakpoint)
7494 (record_full_beneath_to_remove_breakpoint_ops)
7495 (record_full_beneath_to_remove_breakpoint)
7496 (record_full_beneath_to_stopped_by_watchpoint)
7497 (record_full_beneath_to_stopped_data_address)
7498 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7499 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7500 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7501 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7502 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7503 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7504 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7505 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7506 (record_full_resume, record_full_wait_1)
7507 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7508 (record_full_store_registers, record_full_xfer_partial)
7509 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7510 (record_full_async, record_full_core_xfer_partial): Use target
7512 * target-delegates.c: Rebuild.
7513 * target.c (current_xfer_partial): Remove.
7514 (update_current_target): Do not INHERIT or de_fault
7515 to_insert_breakpoint, to_remove_breakpoint,
7516 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7517 to_is_async_p, to_async. Do not set to_xfer_partial field.
7518 (default_xfer_partial): Simplify.
7519 (current_xfer_partial): Remove.
7520 (target_wait, target_resume): Simplify.
7521 (find_default_can_async_p, find_default_is_async_p): Update.
7522 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7523 to_xfer_partial, to_stopped_by_watchpoint,
7524 to_stopped_data_address.
7525 (target_store_registers): Simplify.
7526 (forward_target_remove_breakpoint)
7527 (forward_target_insert_breakpoint): Remove.
7528 (target_remove_breakpoint, target_insert_breakpoint)
7529 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7530 * target.h (struct target_ops) <to_resume, to_wait,
7531 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7532 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7533 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7535 (forward_target_remove_breakpoint)
7536 (forward_target_insert_breakpoint): Remove.
7537 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7539 (record_btrace_insert_breakpoint): Delegate directly.
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * target-delegates.c: New file.
7545 * target.c: Include target-delegates.c.
7546 (init_dummy_target): Call install_dummy_methods.
7547 (complete_target_initialization): Call install_delegators.
7548 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7549 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7550 * make-target-delegates: New file.
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7554 * record.c (find_record_target): Use find_target_at.
7555 * target.c (find_target_at): New function.
7556 * target.h (find_target_at): Declare.
7558 2014-02-19 Tom Tromey <tromey@redhat.com>
7560 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7562 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7564 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7565 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7567 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7569 * linux-nat.c (save_sigtrap): Update.
7570 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7571 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7572 (linux_nat_close): Update.
7573 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7575 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7577 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7578 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7579 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7580 (tmp_to_async): Add 'ops' argument.
7581 (record_full_stopped_by_watchpoint, record_full_async)
7582 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7584 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7585 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7586 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7587 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7588 (remote_is_async_p, remote_async): Add 'ops' argument.
7589 (remote_stopped_data_address): Update.
7590 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7591 * target.c (update_current_target)
7592 (find_default_can_async_p, find_default_is_async_p): Update.
7593 (init_dummy_target): Update.
7594 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7595 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7596 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7597 (target_can_async_p, target_is_async_p, target_async)
7598 (target_stopped_by_watchpoint): Update.
7600 2014-02-19 Yao Qi <yao@codesourcery.com>
7603 * gdbarch.sh: Remove startup_gdbarch.
7604 * gdbarch.c: Regenerated.
7605 * gdbarch.h: Likewise.
7607 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7609 * rl78-tdep.c (rl78_g10_register_name): New function.
7610 (rl78_return_value): Add g10 support.
7611 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7614 2014-02-17 Doug Evans <xdje42@gmail.com>
7616 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7617 (SUBDIR_GUILE_SRCS): Ditto.
7618 (scm-gsmob.o): Ditto.
7620 2014-02-17 Yao Qi <yao@codesourcery.com>
7622 * gnu-nat.c (ILL_RPC): Declare defined function.
7624 2014-02-17 Yao Qi <yao@codesourcery.com>
7626 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7627 mach_msg_type_number_t.
7628 (gnu_write_inferior): Likewise.
7630 2014-02-17 Yao Qi <yao@codesourcery.com>
7632 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7634 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7635 (inf_validate_procs, inf_signal): Likewise.
7636 (S_exception_raise_request): Likewise.
7637 (do_mach_notify_dead_name): Likewise.
7638 (steal_exc_port): Likewise.
7639 (gnu_read_inferior): Change 'copy_count''s type to
7640 mach_msg_type_number_t.
7641 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7644 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7646 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7647 flag. Adjust all users; in particular...
7648 (gnu_wait): ..., don't decrement its value in here...
7649 (gnu_create_inferior): ..., and instead set the flag in here,
7650 around the startup_inferior call, and call that one with
7651 START_INFERIOR_TRAPS_EXPECTED.
7653 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7654 (ILL_RPC): ... new macro.
7655 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7656 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7657 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7658 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7659 functions with ILL_RPC macro.
7660 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7661 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7662 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7663 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7664 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7665 (S_proc_getlogin_reply, S_proc_getsid_reply)
7666 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7667 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7668 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7669 (S_proc_getnports_reply, S_proc_is_important_reply)
7670 (S_proc_get_code_reply): New stub functions, generated with
7673 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7674 collected the type check structures.
7676 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7678 2014-02-14 Doug Evans <dje@google.com>
7680 * target.c (target_write_partial): Fix result type.
7682 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7684 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7685 the proper offsets to access fpregset_t.
7687 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7689 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7690 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7691 * h8300-tdep.c (setmachinelist): Remove global.
7692 * hppa-tdep.c (hppa_sigtramp): Remove global.
7693 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7694 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7695 * ravenscar-thread.c (update_target_observer): Remove global.
7696 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7698 2014-02-12 Tom Tromey <tromey@redhat.com>
7700 * common/rsp-low.c: Update comments.
7701 * common/rsp-low.h: Update comments.
7703 2014-02-12 Tom Tromey <tromey@redhat.com>
7705 * common/rsp-low.c (convert_ascii_to_int): Remove.
7706 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7708 2014-02-12 Tom Tromey <tromey@redhat.com>
7710 * common/rsp-low.h (unhexify): Don't declare.
7711 * common/rsp-low.c (unhexify): Remove.
7713 2014-02-12 Tom Tromey <tromey@redhat.com>
7715 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7716 * common/rsp-low.c (convert_int_to_ascii): Remove.
7718 2014-02-12 Tom Tromey <tromey@redhat.com>
7720 * common/rsp-low.h (hexify): Don't declare.
7721 * common/rsp-low.c (hexify): Remove.
7723 2014-02-12 Tom Tromey <tromey@redhat.com>
7725 * common/rsp-low.c (hexify): Never take strlen of argument.
7727 2014-02-12 Tom Tromey <tromey@redhat.com>
7729 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7730 * remote.c (extended_remote_run, remote_rcmd)
7731 (remote_download_trace_state_variable, remote_save_trace_data)
7732 (remote_set_trace_notes): Update.
7733 * tracepoint.c (encode_source_string, tfile_write_status)
7734 (tfile_write_uploaded_tsv): Update.
7736 2014-02-12 Tom Tromey <tromey@redhat.com>
7738 * tracepoint.c: Include rsp-low.h.
7739 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7740 * remote.c: Include rsp-low.h.
7741 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7742 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7743 (remote_unescape_input): Move to common/rsp-low.c.
7744 * common/rsp-low.h: New file.
7745 * common/rsp-low.c: New file.
7746 * Makefile.in (SFILES): Add common/rsp-low.c.
7747 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7748 (COMMON_OBS): Add rsp-low.o.
7749 (rsp-low.o): New target.
7751 2014-02-12 Tom Tromey <tromey@redhat.com>
7753 * utils.h: Include print-utils.h.
7754 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7755 (int_string, core_addr_to_string, core_addr_to_string_nz)
7756 (hex_string, hex_string_custom): Don't declare.
7757 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7758 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7759 (hex_string_custom, int_string, core_addr_to_string)
7760 (core_addr_to_string_nz, host_address_to_string): Move to
7761 common/print-utils.c.
7762 * common/print-utils.h: New file.
7763 * common/print-utils.c: New file
7764 * Makefile.in (SFILES): Add common/print-utils.c.
7765 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7766 (COMMON_OBS): Add print-utils.o.
7767 (print-utils.o): New target.
7769 2014-02-12 Tom Tromey <tromey@redhat.com>
7771 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7773 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7775 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7777 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7779 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7780 if a PT_IO ptrace request returns sucessfully but indicates that 0
7781 bytes were transferred.
7783 2014-02-12 Pedro Alves <palves@redhat.com>
7784 Kevin Buettner <kevinb@redhat.com>
7786 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7787 TYPE_INSTANCE_FLAG_CODE_SPACE.
7789 2014-02-12 Pedro Alves <palves@redhat.com>
7791 * h8300-tdep.c (pseudo_from_raw_register)
7792 (raw_from_pseudo_register): New functions.
7793 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7796 2014-02-12 Pedro Alves <palves@redhat.com>
7798 * h8300-tdep.c (h8300_register_sim_regno): New function.
7799 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7800 gdbarch_register_sim_regno hook.
7802 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7804 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7806 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7808 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7810 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7812 * obsd-tdep.h (obsd_init_abi): New prototype.
7813 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7814 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7815 (obsd_init_abi): New functions.
7816 * i386obsd-tdep.c: Include "obsd-tdep.h".
7817 (i386obsd_init_abi): Call obsd_init_abi.
7818 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7819 (amd64obsd_init_abi): Call obsd_init_abi.
7820 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7821 obsd-tdep.c to gdb_target_obs.
7823 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7825 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7826 double float arguments to 16-byte in the argument slots.
7828 2014-02-11 Doug Evans <xdje42@gmail.com>
7830 * configure.ac: Don't crash if pkg-config is not found and guile
7831 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7833 * configure: Regenerate.
7835 2014-02-11 Yao Qi <yao@codesourcery.com>
7837 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7838 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7839 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7840 * gnu-nat.c (gnu_xfer_memory): Likewise.
7841 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7842 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7843 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7844 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7846 2014-02-11 Yao Qi <yao@codesourcery.com>
7848 * target.h (enum target_xfer_error): Rename to ...
7849 (enum target_xfer_status): ... it. New. All users updated.
7850 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7852 (TARGET_XFER_STATUS_ERROR_P): New macro.
7853 (target_xfer_error_to_string): Remove declaration.
7854 (target_xfer_status_to_string): Declare.
7855 (target_xfer_partial_ftype): Adjust it.
7856 (struct target_ops) <to_xfer_partial>: Return
7857 target_xfer_status. Add argument xfered_len. Update
7859 * target.c (target_xfer_error_to_string): Rename to ...
7860 (target_xfer_status_to_string): ... it. New. All callers
7862 (target_read_live_memory): Likewise. Call target_xfer_partial
7863 instead of target_read.
7864 (memory_xfer_live_readonly_partial): Return
7865 target_xfer_status. Add argument xfered_len.
7866 (raw_memory_xfer_partial): Likewise.
7867 (memory_xfer_partial_1): Likewise.
7868 (memory_xfer_partial): Likewise.
7869 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7870 properly. Update debug message.
7871 (default_xfer_partial, current_xfer_partial): Likewise.
7872 (target_write_partial): Likewise.
7873 (target_read_partial): Likewise. All callers updated.
7874 (read_whatever_is_readable): Likewise.
7875 (target_write_with_progress): Likewise.
7876 (target_read_alloc_1): Likewise.
7878 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7879 * auxv.c (procfs_xfer_auxv): Likewise.
7880 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7881 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7882 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7883 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7884 * corefile.c (read_memory): Adjust.
7885 * corelow.c (core_xfer_partial): Likewise.
7886 * ctf.c (ctf_xfer_partial): Likewise.
7887 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7889 (darwin_xfer_partial): Likewise.
7890 * exec.c (section_table_xfer_memory_partial): Likewise. All
7892 (exec_xfer_partial): Likewise.
7893 * exec.h (section_table_xfer_memory_partial): Update
7895 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7897 (gnu_xfer_partial): Likewise.
7898 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7899 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7900 (ia64_hpux_xfer_solib_got): Likewise.
7901 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7902 type of 'partial_len' to ULONGEST.
7903 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7904 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7905 (linux_nat_xfer_partial): Likewise.
7906 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7907 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7908 * monitor.c (monitor_xfer_memory): Likewise.
7909 (monitor_xfer_partial): Likewise.
7910 * procfs.c (procfs_xfer_partial): Likewise.
7911 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7912 * record-full.c (record_full_xfer_partial): Likewise.
7913 (record_full_core_xfer_partial): Likewise.
7914 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7915 (gdbsim_xfer_partial): Likewise.
7916 * remote.c (remote_write_bytes_aux): Likewise. All callers
7918 (remote_write_bytes, remote_read_bytes): Likewise. All
7920 (remote_flash_erase): Likewise. All callers updated.
7921 (remote_write_qxfer): Likewise. All callers updated.
7922 (remote_read_qxfer): Likewise. All callers updated.
7923 (remote_xfer_partial): Likewise.
7924 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7925 (rs6000_xfer_shared_libraries): Likewise.
7926 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7927 (sol_thread_xfer_partial): Likewise.
7928 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7929 (sparc_xfer_partial): Likewise.
7930 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7932 (spu_xfer_partial): Likewise.
7933 * spu-multiarch.c (spu_xfer_partial): Likewise.
7934 * tracepoint.c (tfile_xfer_partial): Likewise.
7935 * windows-nat.c (windows_xfer_memory): Likewise.
7936 (windows_xfer_shared_libraries): Likewise.
7937 (windows_xfer_partial): Likewise.
7938 * valprint.c: Replace 'target_xfer_error' with
7939 'target_xfer_status' in comments.
7941 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7943 Checked in by Joel Brobecker <brobecker@adacore.com>.
7944 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7946 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7948 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7949 function parameters.
7951 2014-02-10 Will Newton <will.newton@linaro.org>
7953 * elfread.c (elf_rel_plt_read): Look for a .got section if
7954 looking up .got.plt fails.
7955 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7956 on address passed to elf_gnu_ifunc_record_cache.
7957 (elf_gnu_ifunc_resolve_addr): Likewise.
7958 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7960 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7962 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7963 (X_RETTURN): New macro.
7964 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7966 * sparc64-tdep.c (sparc64_init_abi): Hook
7967 sparc_in_function_epilogue_p.
7969 2014-02-10 Gary Benson <gbenson@redhat.com>
7971 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7972 Rename name_matcher to symbol_matcher.
7974 2014-02-10 Gary Benson <gbenson@redhat.com>
7976 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7977 Use expand_symtabs_file_matcher_ftype and
7978 expand_symtabs_symbol_matcher_ftype.
7980 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7982 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7983 (struct ada_symbol_cache): New.
7984 (ada_free_symbol_cache): Forward declare.
7985 (struct ada_pspace_data): New.
7986 (ada_pspace_data_handle): New static global.
7987 (get_ada_pspace_data, ada_pspace_data_cleanup)
7988 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7989 (cache_space, cache): Delete, now folded inside struct
7991 (ada_get_symbol_cache): New function.
7992 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7994 (_initialize_ada_language): Remove initialization of cache_space.
7995 Move call to observer_attach_inferior_exit up, grouping it
7996 with the other observer registrations inside this function.
7997 Rename command to be more general. Add call to
7998 register_program_space_data_with_cleanup.
8000 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8002 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8003 ada_new_objfile_observer.
8004 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8005 (_initialize_tasks): Update uses of ada_new_objfile_observer
8006 and ada_tasks_normal_stop_observer.
8008 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8010 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8011 returned by the 'Length attribute to integer.
8013 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8015 * ada-lang.c (_initialize_ada_language): Initialize
8016 cache_space obstack.
8018 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8020 * ada-lang.c (HASH_SIZE): New macro.
8021 (struct cache_entry): New type.
8022 (cache_space, cache): New static globals.
8023 (ada_clear_symbol_cache, find_entry): New functions.
8024 (lookup_cached_symbol, cache_symbol): Implement.
8025 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8026 (_initialize_ada_language): Attach ada_new_objfile_observer
8027 and ada_free_objfile_observer.
8029 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8031 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8032 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8033 struct block * parameter.
8034 (ada_lookup_symbol_list_worker): Constify local variable "block".
8035 Remove cast which is no longer necessary.
8037 2014-02-10 Doug Evans <xdje42@gmail.com>
8039 Add Guile as an extension language.
8040 * NEWS: Mention Guile scripting.
8041 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8042 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8043 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8044 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8045 (CLIBS): Add GUILE_LIBS.
8046 (install-guile): New rule.
8047 (guile.o): New rule.
8048 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8049 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8050 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8051 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8052 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8053 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8054 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8055 * configure.ac: New option --with-guile.
8056 * configure: Regenerate.
8057 * config.in: Regenerate.
8058 * auto-load.c: Remove #include "python/python.h". Add #include
8059 "gdb/section-scripts.h".
8060 (source_section_scripts): Handle Guile scripts.
8061 (_initialize_auto_load): Add name of Guile objfile script to
8062 scripts-directory help text.
8063 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8064 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8065 (struct breakpoint): New member scm_bp_object.
8066 * defs.h (enum command_control_type): New value guile_control.
8067 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8069 (show_user): Update comment.
8070 (_initialize_cli_cmds): Update help text for "show user". Update help
8071 text for max-user-call-depth.
8072 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8074 (multi_line_command_p): Add guile_control.
8075 (print_command_lines): Handle guile_control.
8076 (execute_control_command, recurse_read_control_structure): Ditto.
8077 (process_next_line): Recognize "guile" commands.
8078 * disasm.c (gdb_disassemble_info): Make non-static.
8079 * disasm.h: #include "dis-asm.h".
8080 (struct gdbarch): Add forward decl.
8081 (gdb_disassemble_info): Declare.
8082 * extension.c: #include "guile/guile.h".
8083 (extension_languages): Add guile.
8084 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8085 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8086 * gdbtypes.c (get_unsigned_type_max): New function.
8087 (get_signed_type_minmax): New function.
8088 * gdbtypes.h (get_unsigned_type_max): Declare.
8089 (get_signed_type_minmax): Declare.
8090 * guile/README: New file.
8091 * guile/guile-internal.h: New file.
8092 * guile/guile.c: New file.
8093 * guile/guile.h: New file.
8094 * guile/scm-arch.c: New file.
8095 * guile/scm-auto-load.c: New file.
8096 * guile/scm-block.c: New file.
8097 * guile/scm-breakpoint.c: New file.
8098 * guile/scm-disasm.c: New file.
8099 * guile/scm-exception.c: New file.
8100 * guile/scm-frame.c: New file.
8101 * guile/scm-gsmob.c: New file.
8102 * guile/scm-iterator.c: New file.
8103 * guile/scm-lazy-string.c: New file.
8104 * guile/scm-math.c: New file.
8105 * guile/scm-objfile.c: New file.
8106 * guile/scm-ports.c: New file.
8107 * guile/scm-pretty-print.c: New file.
8108 * guile/scm-safe-call.c: New file.
8109 * guile/scm-string.c: New file.
8110 * guile/scm-symbol.c: New file.
8111 * guile/scm-symtab.c: New file.
8112 * guile/scm-type.c: New file.
8113 * guile/scm-utils.c: New file.
8114 * guile/scm-value.c: New file.
8115 * guile/lib/gdb.scm: New file.
8116 * guile/lib/gdb/boot.scm: New file.
8117 * guile/lib/gdb/experimental.scm: New file.
8118 * guile/lib/gdb/init.scm: New file.
8119 * guile/lib/gdb/iterator.scm: New file.
8120 * guile/lib/gdb/printing.scm: New file.
8121 * guile/lib/gdb/types.scm: New file.
8122 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8123 (VPATH): Add $(GUILE_SRCDIR).
8124 (GUILE_DIR): New variable.
8125 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8126 (all): Add stamp-guile dependency.
8127 (stamp-guile): New rule.
8128 (clean-guile, install-guile, uninstall-guile): New rules.
8129 (install-only): Add install-guile dependency.
8130 (uninstall): Add uninstall-guile dependency.
8131 (clean): Add clean-guile dependency.
8133 2014-02-09 Doug Evans <xdje42@gmail.com>
8135 Revert this patch (which I approved, mea culpa).
8137 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8139 * Makefile.in (all-lib): Remove.
8140 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8142 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8144 Fix Python stack corruption.
8145 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8148 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8150 * Makefile.in (all-lib): Remove.
8151 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8153 2014-02-07 Doug Evans <dje@google.com>
8155 * extension-priv.h (extension_language_script_ops): Add comment.
8156 (extension_language_ops): Add comment.
8157 (active_ext_lang_state): Fix typo in comment.
8159 2014-02-07 Pedro Alves <palves@redhat.com>
8161 PR breakpoints/16292
8162 * infrun.c (handle_signal_stop) <signal arrives while stepping
8163 over a breakpoint>: Switch back to the stepping thread.
8165 2014-02-07 Yao Qi <yao@codesourcery.com>
8167 * target.c (target_xfer_partial): Return zero if LEN is zero.
8169 2014-02-07 Yao Qi <yao@codesourcery.com>
8171 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8172 (ld_so_xfer_auxv): Likewise.
8173 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8174 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8175 * corelow.c (core_xfer_partial): Likewise.
8176 * ctf.c (ctf_xfer_partial): Likewise.
8177 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8178 (darwin_xfer_partial): Likewise.
8179 * exec.c (exec_xfer_partial): Likewise.
8180 * gnu-nat.c (gnu_xfer_partial): Likewise.
8181 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8182 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8183 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8184 * linux-nat.c (linux_xfer_siginfo): Likewise.
8185 (linux_proc_xfer_spu): Likewise.
8186 * procfs.c (procfs_xfer_partial): Likewise.
8187 * record-full.c (record_full_xfer_partial): Likewise.
8188 (record_full_core_xfer_partial): Likewise.
8189 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8190 * remote.c (remote_write_qxfer): Likewise.
8191 (remote_write_qxfer, remote_read_qxfer): Likewise.
8192 (remote_xfer_partial): Likewise.
8193 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8194 (rs6000_xfer_shared_libraries): Likewise.
8195 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8196 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8197 (spu_xfer_partial): Likewise.
8198 * target.c (memory_xfer_partial_1): Likewise.
8199 * tracepoint.c (tfile_xfer_partial): Likewise.
8200 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8201 (windows_xfer_partial): Likewise.
8203 2014-02-07 Yao Qi <yao@codesourcery.com>
8205 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8207 (core_xfer_shared_libraries_aix): Likewise.
8208 * gdbarch.c, gdbarch.h: Regenerated.
8209 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8210 ULONGEST. Change 'len_avail' type to ULONGEST.
8211 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8212 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8214 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8216 2014-02-07 Yao Qi <yao@codesourcery.com>
8218 * corefile.c (memory_error): Get 'exception' from ERR and pass
8219 'exception' to throw_error.
8221 2014-02-06 Doug Evans <xdje42@gmail.com>
8223 * configure.ac (libpython checking): Remove all but python.o from
8224 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8225 * configure: Regenerate.
8227 * Makefile.in (SFILES): Add extension.c.
8228 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8229 (COMMON_OBS): Add extension.o.
8230 * extension.h: New file.
8231 * extension-priv.h: New file.
8232 * extension.c: New file.
8234 * python/python-internal.h: #include "extension.h".
8235 (gdbpy_auto_load_enabled): Declare.
8236 (gdbpy_apply_val_pretty_printer): Declare.
8237 (gdbpy_apply_frame_filter): Declare.
8238 (gdbpy_preserve_values): Declare.
8239 (gdbpy_breakpoint_cond_says_stop): Declare.
8240 (gdbpy_breakpoint_has_cond): Declare.
8241 (void source_python_script_for_objfile): Delete.
8242 * python/python.c: #include "extension-priv.h".
8243 Delete inclusion of "observer.h".
8244 (extension_language_python): Moved here and renamed from
8245 script_language_python in py-auto-load.c.
8246 Redefined to be of type extension_language_defn.
8247 (python_extension_script_ops): New global.
8248 (python_extension_ops): New global.
8249 (struct python_env): New member previous_active.
8250 (restore_python_env): Call restore_active_ext_lang.
8251 (ensure_python_env): Call set_active_ext_lang.
8252 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8254 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8256 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8258 (gdbpy_eval_from_control_command): Renamed from
8259 eval_python_from_control_command, made static. New arg extlang.
8260 (gdbpy_source_script) Renamed from source_python_script, made static.
8262 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8263 result to int. New arg extlang.
8264 (gdbpy_source_objfile_script): Renamed from
8265 source_python_script_for_objfile, made static. New arg extlang.
8266 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8267 static. New args extlang, extlang_printers. Change result type to
8269 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8270 static. New arg extlang. Rename arg printers to extlang_printers
8271 and change type to ext_lang_type_printers *.
8272 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8273 static. Replace argument arg with extlang, extlang_printers.
8274 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8275 (!HAVE_PYTHON, source_python_script): Delete.
8276 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8277 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8278 (!HAVE_PYTHON, start_type_printers): Delete.
8279 (!HAVE_PYTHON, apply_type_printers): Delete.
8280 (!HAVE_PYTHON, free_type_printers): Delete.
8281 (_initialize_python): Delete call to observer_attach_before_prompt.
8282 (finalize_python): Set/restore active extension language.
8283 (gdbpy_finish_initialization) Renamed from
8284 finish_python_initialization, made static. New arg extlang.
8285 (gdbpy_initialized): New function.
8286 * python/python.h: #include "extension.h". Delete #include
8287 "value.h", "mi/mi-cmds.h".
8288 (extension_language_python): Declare.
8289 (GDBPY_AUTO_FILE_NAME): Delete.
8290 (enum py_bt_status): Moved to extension.h and renamed to
8292 (enum frame_filter_flags): Moved to extension.h.
8293 (enum py_frame_args): Moved to extension.h and renamed to
8294 ext_lang_frame_args.
8295 (finish_python_initialization): Delete.
8296 (eval_python_from_control_command): Delete.
8297 (source_python_script): Delete.
8298 (apply_val_pretty_printer): Delete.
8299 (apply_frame_filter): Delete.
8300 (preserve_python_values): Delete.
8301 (gdbpy_script_language_defn): Delete.
8302 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8303 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8305 * auto-load.c: #include "extension.h".
8306 (GDB_AUTO_FILE_NAME): Delete.
8307 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8308 (script_language_gdb): Delete, moved to extension.c and renamed to
8309 extension_language_gdb.
8310 (source_gdb_script_for_objfile): Delete.
8311 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8312 (loaded_script): Change type of language member to
8313 struct extension_language_defn *.
8314 (init_loaded_scripts_info): Initialize
8315 unsupported_script_warning_printed.
8316 (maybe_add_script): Make static. Change type of language arg to
8317 struct extension_language_defn *.
8318 (clear_section_scripts): Reset unsupported_script_warning_printed.
8319 (auto_load_objfile_script_1): Rewrite to use extension language API.
8320 (auto_load_objfile_script): Make public. Remove support-compiled-in
8321 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8322 (source_section_scripts): Rewrite to use extension language API.
8323 (load_auto_scripts_for_objfile): Rewrite to use
8324 auto_load_scripts_for_objfile.
8325 (collect_matching_scripts_data): Change type of language member to
8326 struct extension_language_defn *.
8327 (auto_load_info_scripts): Change type of language arg to
8328 struct extension_language_defn *.
8329 (unsupported_script_warning_print): New function.
8330 (script_not_found_warning_print): Make static.
8331 (_initialize_auto_load): Rewrite construction of scripts-directory
8333 * auto-load.h (struct objfile): Add forward decl.
8334 (struct script_language): Delete.
8335 (struct auto_load_pspace_info): Add forward decl.
8336 (struct extension_language_defn): Add forward decl.
8337 (maybe_add_script): Delete.
8338 (auto_load_objfile_script): Declare.
8339 (script_not_found_warning_print): Delete.
8340 (auto_load_info_scripts): Update prototype.
8341 (auto_load_gdb_scripts_enabled): Declare.
8342 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8343 auto_load_python_scripts_enabled and made public.
8344 (script_language_python): Delete, moved to python.c.
8345 (gdbpy_script_language_defn): Delete.
8346 (info_auto_load_python_scripts): Update to use
8347 extension_language_python.
8349 * breakpoint.c (condition_command): Replace call to
8350 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8351 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8352 with call to breakpoint_ext_lang_cond_says_stop.
8353 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8354 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8355 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8356 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8358 (local_setattro): Print name of extension language with existing
8361 * valprint.c (val_print, value_print): Update to call
8362 apply_ext_lang_val_pretty_printer.
8363 * cp-valprint.c (cp_print_value): Update call to
8364 apply_ext_lang_val_pretty_printer.
8365 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8366 (gdbpy_apply_val_pretty_printer): Renamed from
8367 apply_val_pretty_printer. New arg extlang.
8368 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8370 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8371 extension language API.
8372 * cli/cli-script.c (execute_control_command): Update to call
8373 eval_ext_lang_from_control_command.
8375 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8376 enum ext_lang_bt_status values. Update call to
8377 apply_ext_lang_frame_filter.
8378 (mi_cmd_stack_list_locals): Ditto.
8379 (mi_cmd_stack_list_args): Ditto.
8380 (mi_cmd_stack_list_variables): Ditto.
8381 * mi/mi-main.c: Delete #include "python/python-internal.h".
8382 Add #include "extension.h".
8383 (mi_cmd_list_features): Replace reference to python internal variable
8384 gdb_python_initialized with call to ext_lang_initialized_p.
8386 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8387 Update to use enum ext_lang_frame_args. Update to call
8388 apply_ext_lang_frame_filter.
8389 * python/py-framefilter.c (extract_sym): Update to use enum
8391 (extract_value, py_print_type, py_print_value): Ditto.
8392 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8393 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8394 (py_print_frame): Ditto.
8395 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8396 New arg extlang. Update to use enum ext_lang_bt_status.
8398 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8399 finish_python_initialization. Replace with call to
8400 finish_ext_lang_initialization.
8402 * typeprint.c (do_free_global_table): Update to call
8403 free_ext_lang_type_printers.
8404 (create_global_typedef_table): Update to call
8405 start_ext_lang_type_printers.
8406 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8407 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8408 (type_print_options): Change type of global_printers from "void *"
8409 to "struct ext_lang_type_printers *".
8411 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8412 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8413 (gdbpy_preserve_values): Renamed from preserve_python_values.
8415 (!HAVE_PYTHON, preserve_python_values): Delete.
8417 * utils.c (quit_flag): Delete, moved to extension.c.
8418 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8421 * eval.c: Delete #include "python/python.h".
8422 * main.c: Delete #include "python/python.h".
8424 * defs.h: Update comment.
8426 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8430 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8432 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8435 2014-02-05 Yao Qi <yao@codesourcery.com>
8437 * remote.c (remote_pass_signals): Remove local 'buf' and use
8439 (remote_program_signals): Likewise.
8441 2014-02-05 Yao Qi <yao@codesourcery.com>
8443 * ctf.c: Include "inferior.h" and "gdbthread.h".
8444 (CTF_PID): A new macro.
8445 (ctf_open): Call inferior_appeared and add_thread_silent.
8446 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8447 (ctf_thread_alive): New function.
8448 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8450 2014-02-05 Yao Qi <yao@codesourcery.com>
8454 2013-05-24 Yao Qi <yao@codesourcery.com>
8456 * tracepoint.c (TFILE_PID): Remove.
8457 (tfile_open): Don't add thread and inferior.
8458 (tfile_close): Don't set 'inferior_ptid'. Don't call
8459 exit_inferior_silent.
8460 (tfile_thread_alive): Remove.
8461 (init_tfile_ops): Don't set field 'to_thread_alive' of
8464 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8466 * remote.c (remote_start_remote): Call remote_check_symbols even
8467 if only symbol-file (not file) has been given.
8469 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8471 * gdbarch.sh (skip_entrypoint): New callback.
8472 * gdbarch.c, gdbarch.h: Regenerate.
8473 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8474 * infrun.c (fill_in_stop_func): Likewise.
8475 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8476 (ppc_elfv2_elf_make_msymbol_special): New function.
8477 (ppc_elfv2_skip_entrypoint): Likewise.
8478 (ppc_linux_init_abi): Install them for ELFv2.
8480 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8482 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8483 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8484 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8485 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8486 structures returned in GPRs.
8488 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8490 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8491 offset to the stack parameter list for the ELFv2 ABI.
8493 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8495 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8496 set_gdbarch_convert_from_func_ptr_addr and
8497 set_gdbarch_elf_make_msymbol_special for ELFv1.
8498 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8499 function descriptors on ELFv1.
8500 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8501 set up r12 at function entry.
8503 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8505 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8506 (struct gdbarch_tdep): New member elf_abi.
8508 * rs6000-tdep.c: Include "elf/ppc64.h".
8509 (rs6000_gdbarch_init): Detect ELF ABI version.
8511 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8513 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8514 within a register pair holding a DFP 128-bit value on little-endian.
8515 (ppc64_sysv_abi_return_value_base): Likewise.
8516 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8517 (dfp_pseudo_register_write): Likewise.
8519 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8521 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8522 offset on little-endian when passing _Decimal32.
8523 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8525 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8527 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8528 of the overlapped FP register within the VSX register on little-
8530 (efpr_pseudo_register_write): Likewise.
8532 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8534 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8535 offset on little-endian when passing small structures.
8537 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8539 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8540 (struct ppc64_sysv_argpos): New data structure.
8541 (ppc64_sysv_abi_push_float): Remove.
8542 (ppc64_sysv_abi_push_val): New function.
8543 (ppc64_sysv_abi_push_integer): Likewise.
8544 (ppc64_sysv_abi_push_freg): Likewise.
8545 (ppc64_sysv_abi_push_vreg): Likewise.
8546 (ppc64_sysv_abi_push_param): Likewise.
8547 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8548 (ppc64_sysv_abi_return_value_base): New function.
8549 (ppc64_sysv_abi_return_value): Refactor to use it.
8551 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8553 * NEWS: Document new target powerpc64le-*-linux*.
8555 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8557 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8558 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8560 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8561 register set used in ELF core dumps. Add floating-point register set.
8563 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8565 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8566 dwarf2_to_gdb[] table using symbolic constants. Adjust
8567 penultimate entry from number representing the PC register
8568 to symbolic constant representing the MDR register. Add
8569 constant for the PC register to the end of the table.
8571 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8573 * bsd-kvm.c: Include <sys/param.h>
8575 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8577 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8579 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8581 * ada-lang.h (clear_ada_sym_cache): Delete.
8583 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8585 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8587 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8589 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8590 the sigreturn register save area only if the syscall is
8593 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8595 * valops.c (value_slice): Minor reformatting.
8597 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8599 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8601 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8603 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8605 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8606 (ada_ignore_descriptive_types_p): New static global.
8607 (find_parallel_type_by_descriptive_type): Return immediately
8608 if ada_ignore_descriptive_types_p is set.
8609 (_initialize_ada_language): Register new commands "maintenance
8610 set ada", "maintenance show ada", "maintenance set ada
8611 ignore-descriptive-types" and "maintenance show ada
8612 ignore-descriptive-types".
8613 * NEWS: Add entry for new "maint ada set/show
8614 ignore-descriptive-types" commands.
8616 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8618 * record-btrace.c (record_btrace_close): Call btrace_teardown
8621 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8623 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8626 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8628 * ada-typeprint (type_is_full_subrange_of_target_type):
8630 (print_range): Add parameter bounds_prefered_p. If not set,
8631 try printing range types using the name of their base type.
8632 (print_range_type): Add parameter bounds_prefered_p.
8633 Use it in call to print_range.
8634 (print_array_type, ada_print_type): Update calls to print_range
8635 and print_range_type.
8637 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8639 * ada-typeprint.c (print_array_type, print_choices, print_range)
8640 (print_range_bound, print_dynamic_range_bound, print_range_type):
8643 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8645 * ada-typeprint.c (print_range): Add missing empty line
8646 after local declaration.
8648 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8650 * ada-valprint.c (print_optional_low_bound): Get index_type's
8651 target type for as long as it is a TYPE_CODE_RANGE.
8653 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8655 * procfs.c (procfs_make_note_section): Remove assertion and
8658 2014-01-24 Yao Qi <yao@codesourcery.com>
8660 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8661 * corelow.c (get_core_siginfo): Likewise.
8663 2014-01-24 Yao Qi <yao@codesourcery.com>
8665 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8666 ULONGEST. Don't check 'len' is negative.
8667 (remote_write_bytes): Change type of 'len' to ULONGEST.
8669 2014-01-23 Tom Tromey <tromey@redhat.com>
8672 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8673 Handle exception from frame.block.
8674 (FrameVars.fetch_frame_locals): Likewise.
8676 2014-01-23 Tom Tromey <tromey@redhat.com>
8679 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8680 on a NULL pointer. Move "goto error" to correct place.
8682 2014-01-23 Tom Tromey <tromey@redhat.com>
8685 * python/py-framefilter.c (apply_frame_filter): Call
8686 ensure_python_env after computing gdbarch.
8688 2014-01-23 Yao Qi <yao@codesourcery.com>
8690 * target.c (raw_memory_xfer_partial): Change argument type
8691 from void * to gdb_byte *.
8692 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8694 2014-01-22 Doug Evans <dje@google.com>
8696 New gdbserver option --debug-format=timestamp.
8699 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8701 * syscalls/s390x-linux.xml: New file.
8702 * syscalls/s390-linux.xml: New file.
8703 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8704 (XML_SYSCALL_FILENAME_S390X): Likewise.
8705 (op_svc): New enum value for SVC opcode.
8706 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8707 (s390_linux_get_syscall_number): New function.
8708 (s390_gdbarch_init): Register '*get_syscall_number' and the
8709 syscall xml file name.
8710 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8711 "s390-linux.xml" and "s390x-linux.xml".
8712 * NEWS: Announce new feature.
8714 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8716 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8718 2014-01-22 Pedro Alves <palves@redhat.com>
8720 * xtensa-config.c: Include defs.h.
8722 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8724 * common/common-utils.h: Add "ARI:" comment beside __func__
8727 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8729 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8730 documentation a bit.
8732 2014-01-21 Roland McGrath <mcgrathr@google.com>
8734 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8735 * configure: Regenerate.
8736 * aclocal.m4: Regenerate.
8737 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8738 New substituted variables.
8739 (install-strip): New target.
8740 (INSTALL_SCRIPT): New substituted variable.
8741 (FLAGS_TO_PASS): Add it.
8742 (install-only): Use $(INSTALL_SCRIPT) rather than
8743 $(INSTALL_PROGRAM) for gcore.
8745 2014-01-20 Tom Tromey <tromey@redhat.com>
8747 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8750 2014-01-20 Tom Tromey <tromey@redhat.com>
8752 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8753 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8754 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8755 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8756 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8757 (struct cmd_list_element) <flags>: Remove.
8758 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8759 doc_allocated>: New fields.
8760 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8762 * maint.c (maintenance_do_deprecate): Update.
8763 * top.c (execute_command): Update.
8765 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8767 * xtensa-linux-nat.c: Include asm/ptrace.h.
8769 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8771 * Makefile.in (SFILES): Add d-support.c.
8772 (COMMON_OBS): Add d-support.o.
8773 * d-lang.h (d_parse_symbol): Add comment, now defined in
8775 * d-lang.c (parse_call_convention)
8776 (parse_attributes, parse_function_types)
8777 (parse_function_args, parse_type, parse_identifier)
8778 (call_convention_p, d_parse_symbol): Move functions to ...
8779 * d-support.c: ... New file.
8781 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8783 * d-lang.h (d_parse_symbol): Add declaration.
8784 * d-lang.c (extract_identifiers)
8785 (extract_type_info): Remove functions.
8786 (parse_call_convention, parse_attributes)
8787 (parse_function_types, parse_function_args)
8788 (parse_type, parse_identifier, call_convention_p)
8789 (d_parse_symbol): New functions.
8790 (d_demangle): Use d_parse_symbol to demangle D symbols.
8792 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8794 * d-lang.h (struct builtin_d_type): New data type.
8795 (builtin_d_type): Add declaration.
8796 * d-lang.c (d_language_arch_info, build_d_types)
8797 (builtin_d_type): New functions.
8798 (enum d_primitive_types): New data type.
8799 (d_language_defn): Change c_language_arch_info to
8800 d_language_arch_info.
8801 (d_type_data): New static variable.
8802 (_initialize_d_language): Initialize d_type_data.
8804 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8806 * d-lang.h (d_main_name): Add declaration.
8807 * d-lang.c (d_main_name): New function.
8808 * symtab.c (find_main_name): Add call to d_main_name.
8810 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8812 * d-lang.c (d_language_defn): Change macro_expansion_c to
8815 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8817 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8819 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8821 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8822 gdb_exception" declaration.
8823 * remote.c (getpkt_or_notif_sane): Likewise.
8825 2014-01-17 Doug Evans <dje@google.com>
8827 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8828 function, contents of dirnames_to_char_ptr_vec_append moved here.
8829 (delim_string_to_char_ptr_vec): New function.
8830 (dirnames_to_char_ptr_vec_append): Rewrite.
8831 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8833 2014-01-17 Doug Evans <dje@google.com>
8835 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8837 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8838 #include "common-utils.h".
8839 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8840 * common/vec.h (VEC_ASSERT_PASS): Update.
8841 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8842 (MACH_CHECK_ERROR): Update.
8844 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8846 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8848 * gdbarch.h: Regenerate.
8850 2014-01-16 Tom Tromey <tromey@redhat.com>
8852 * value.c (struct value) <regnum>: Move earlier.
8854 2014-01-16 Tom Tromey <tromey@redhat.com>
8856 * remote.c (extended_remote_create_inferior): Rename from
8857 extended_remote_create_inferior_1. Add "ops" argument. Remove
8860 2014-01-16 Pedro Alves <palves@redhat.com>
8862 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8863 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8866 2014-01-16 Doug Evans <dje@google.com>
8868 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8872 * btrace.h (btrace_thread_flag): New.
8873 (struct btrace_thread_info) <flags>: New.
8874 * record-btrace.c (record_btrace_resume_thread)
8875 (record_btrace_find_thread_to_move, btrace_step_no_history)
8876 (btrace_step_stopped, record_btrace_start_replaying)
8877 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8878 (record_btrace_find_resume_thread): New.
8879 (record_btrace_resume, record_btrace_wait): Extend.
8880 (record_btrace_can_execute_reverse): New.
8881 (record_btrace_open): Fail in non-stop mode.
8882 (record_btrace_set_replay): Split into this, ...
8883 (record_btrace_stop_replaying): ... this, ...
8884 (record_btrace_clear_histories): ... and this.
8885 (init_record_btrace_ops): Init to_can_execute_reverse.
8886 * NEWS: Announce it.
8888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8890 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8891 (forward_target_decr_pc_after_break)
8892 (target_decr_pc_after_break): New.
8893 * target.c (forward_target_decr_pc_after_break)
8894 (target_decr_pc_after_break): New.
8895 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8896 instead of gdbarch_decr_pc_after_break.
8897 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8898 instead of gdbarch_decr_pc_after_break.
8899 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8900 instead of gdbarch_decr_pc_after_break.
8901 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8902 instead of gdbarch_decr_pc_after_break.
8903 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8904 instead of gdbarch_decr_pc_after_break.
8905 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8906 instead of gdbarch_decr_pc_after_break.
8908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8910 * btrace.c: Include regcache.h.
8911 (btrace_add_pc): New.
8912 (btrace_enable): Call btrace_add_pc.
8913 (btrace_is_empty): New.
8914 * btrace.h (btrace_is_empty): New.
8915 * record-btrace.c (require_btrace, record_btrace_info): Call
8918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8920 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8921 Support delta reads.
8922 (linux_disable_btrace): Change return type.
8923 * common/linux-btrace.h (linux_read_btrace): Change parameters
8924 and return type to allow error reporting. Update users.
8925 (linux_disable_btrace): Change return type. Update users.
8926 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8928 (btrace_error): New.
8929 (btrace_block) <begin>: Comment on BEGIN == 0.
8930 * btrace.c (btrace_compute_ftrace): Start from the end of
8932 (btrace_stitch_trace, btrace_clear_history): New.
8933 (btrace_fetch): Read delta trace, return if replaying.
8934 (btrace_clear): Move clear history code to btrace_clear_history.
8935 (parse_xml_btrace): Throw an error if parsing failed.
8936 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8937 and return type to allow error reporting.
8938 (target_read_btrace): Change parameters and return type to allow
8940 * target.c (target_read_btrace): Update.
8941 * remote.c (remote_read_btrace): Support delta reads. Pass
8943 * NEWS: Announce it.
8945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8947 * record.h (record_btrace_frame_unwind)
8948 (record_btrace_tailcall_frame_unwind): New declarations.
8949 * dwarf2-frame: Include record.h
8950 (dwarf2_frame_cfa): Throw an error for btrace frames.
8951 * record-btrace.c: Include hashtab.h.
8952 (btrace_get_bfun_name): New.
8953 (btrace_call_history): Call btrace_get_bfun_name.
8954 (struct btrace_frame_cache): New.
8956 (bfcache_hash, bfcache_eq, bfcache_new): New.
8957 (btrace_get_frame_function): New.
8958 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8959 (record_btrace_frame_this_id): Compute own id.
8960 (record_btrace_frame_prev_register): Provide PC, throw_error
8961 for all other registers.
8962 (record_btrace_frame_sniffer): Detect btrace frames.
8963 (record_btrace_tailcall_frame_sniffer): New.
8964 (record_btrace_frame_dealloc_cache): New.
8965 (record_btrace_frame_unwind): Add new functions.
8966 (record_btrace_tailcall_frame_unwind): New.
8967 (_initialize_record_btrace): Allocate cache.
8968 * btrace.c (btrace_clear): Call reinit_frame_cache.
8969 * NEWS: Announce it.
8971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8973 * record-btrace.c (record_btrace_set_replay)
8974 (record_btrace_goto_begin, record_btrace_goto_end)
8975 (record_btrace_goto): New.
8976 (init_record_btrace_ops): Initialize them.
8977 * NEWS: Announce it.
8979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8981 * record-btrace.c (record_btrace_find_new_threads)
8982 (record_btrace_thread_alive): New.
8983 (init_record_btrace_ops): Initialize to_find_new_threads and
8986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8988 * record-btrace.c (record_btrace_resume): New.
8989 (record_btrace_wait): New.
8990 (init_record_btrace_ops): Initialize to_wait and to_resume.
8992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8994 * record-btrace.c (record_btrace_xfer_partial)
8995 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8996 (record_btrace_allow_memory_access): New.
8997 (init_record_btrace_ops): Initialize new methods.
8998 * target.c (raw_memory_xfer_partial): Bail out if target reports
8999 that this memory is not available.
9001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9003 * target.h (target_ops) <to_insert_breakpoint>
9004 <to_remove_breakpoint>: Add target_ops parameter.
9005 (forward_target_insert_breakpoint): New.
9006 (forward_target_remove_breakpoint): New.
9007 (memory_remove_breakpoint, memory_insert_breakpoint):
9008 Add target_ops parameter.
9009 * target.c (target_insert_breakpoint): Split into this and ...
9010 (forward_target_insert_breakpoint): ... this.
9011 (target_remove_breakpoint): Split into this and ...
9012 (forward_target_remove_breakpoint): ... this.
9013 (debug_to_insert_breakpoint): Add target_ops parameter.
9014 Call forward_target_insert_breakpoint.
9015 (debug_to_remove_breakpoint): Add target_ops parameter.
9016 Call forward_target_remove_breakpoint.
9017 (update_current_target): Do not inherit or default to_insert_breakpoint
9018 and to_remove_breakpoint.
9019 * corelow.c (ignore): Add target_ops parameter.
9020 * exec.c (ignore): Add target_ops parameter.
9021 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9022 Add target_ops parameter.
9023 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9024 Add target_ops parameter.
9025 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9026 Add target_ops parameter.
9027 * record-full.c (record_full_beneath_to_insert_breakpoint)
9028 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9029 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9030 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9031 (record_full_core_remove_breakpoint): Add target_ops parameter.
9033 (record_full_beneath_to_insert_breakpoint_ops)
9034 (record_full_beneath_to_remove_breakpoint_ops)
9035 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9036 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9037 tmp_to_remove_breakpoint_ops,
9038 record_full_beneath_to_insert_breakpoint_ops, and
9039 record_full_beneath_to_remove_breakpoint_ops.
9040 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9041 (m32r_remove_breakpoint): Add target_ops parameter.
9042 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9043 Add target_ops parameter.
9044 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9045 Add target_ops parameter.
9047 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9048 Markus Metzger <markus.t.metzger@intel.com>
9050 * record-btrace.c: Include frame-unwind.h.
9051 (record_btrace_frame_unwind_stop_reason)
9052 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9053 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9055 (init_record_btrace_ops): Install it.
9057 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9059 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9062 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9064 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9067 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9069 * frame-unwind.c: Include target.h.
9070 (frame_unwind_try_unwinder): New function with code from ...
9071 (frame_unwind_find_by_frame): ... here. New variable
9072 unwinder_from_target, call also target_get_unwinder)
9073 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9074 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9075 * target.h (struct target_ops): New fields to_get_unwinder and
9076 to_get_tailcall_unwinder.
9077 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9079 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9081 * record-btrace.c (record_btrace_fetch_registers)
9082 (record_btrace_store_registers)
9083 (record_btrace_to_prepare_to_store): New.
9084 (init_record_btrace_ops): Add the above.
9086 2014-01-16 Tom Tromey <tromey@redhat.com>
9088 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9089 * target.h (struct target_ops) <to_prepare_to_store>: Add
9091 (target_prepare_to_store): Add argument.
9092 * target.c (debug_to_prepare_to_store): Add argument.
9093 (update_current_target): Update.
9094 * remote.c (remote_prepare_to_store): Add 'self' argument.
9095 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9096 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9097 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9098 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9100 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9101 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9102 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9103 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9104 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9108 * btrace.h (replay) <replay>: New.
9109 (btrace_is_replaying): New.
9110 * btrace.c (btrace_clear): Free replay iterator.
9111 (btrace_is_replaying): New.
9112 * record-btrace.c (record_btrace_is_replaying): New.
9113 (record_btrace_info): Print insn number if replaying.
9114 (record_btrace_insn_history): Start at replay position.
9115 (record_btrace_call_history): Start at replay position.
9116 (init_record_btrace_ops): Init to_record_is_replaying.
9118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9120 * record-btrace.c (record_btrace_insn_history_range): Include
9122 (record_btrace_insn_history_from): Adjust range.
9123 (record_btrace_call_history_range): Include
9125 (record_btrace_call_history_from): Adjust range.
9126 * NEWS: Announce changes.
9128 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9130 * record.h (enum record_print_flag)
9131 <record_print_indent_calls>: New.
9132 * record.c (get_call_history_modifiers): Recognize /c modifier.
9133 (_initialize_record): Document /c modifier.
9134 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9135 Reorder fields. Optionally indent the function name. Update
9137 * NEWS: Announce changes.
9139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9141 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9143 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9145 * btrace.c (ftrace_new_function): Start counting at one.
9146 * record-btrace.c (record_btrace_info): Adjust number of calls
9148 * NEWS: Announce it.
9150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9152 * record-btrace.c (btrace_call_history_insn_range): Print
9153 insn range as [begin, end].
9155 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9157 * btrace.h (struct btrace_func_link): New.
9158 (enum btrace_function_flag): New.
9159 (struct btrace_inst): Rename to ...
9160 (struct btrace_insn): ...this. Update all users.
9161 (struct btrace_func) <ibegin, iend>: Remove.
9162 (struct btrace_func_link): New.
9163 (struct btrace_func): Rename to ...
9164 (struct btrace_function): ...this. Update all users.
9165 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9166 (number, level, flags>: New.
9167 (struct btrace_insn_iterator): Rename to ...
9168 (struct btrace_insn_history): ...this.
9170 (struct btrace_insn_iterator, btrace_call_iterator): New.
9171 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9172 (struct btrace_target_info) <begin, end, level>
9173 <insn_history, call_history>: New.
9174 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9175 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9176 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9177 (btrace_call_number, btrace_call_begin, btrace_call_end)
9178 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9179 (btrace_find_function_by_number, btrace_set_insn_history)
9180 (btrace_set_call_history): New.
9181 * btrace.c (btrace_init_insn_iterator)
9182 (btrace_init_func_iterator, compute_itrace): Remove.
9183 (ftrace_print_function_name, ftrace_print_filename)
9184 (ftrace_skip_file): Change
9186 (ftrace_init_func): Remove.
9187 (ftrace_debug): Use new btrace_function fields.
9188 (ftrace_function_switched): Also consider gaining and
9189 losing symbol information).
9190 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9191 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9192 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9194 (ftrace_new_function): Move. Remove debug print.
9195 (ftrace_update_lines, ftrace_update_insns): New.
9196 (ftrace_update_function): Check for call, ret, and jump.
9197 (compute_ftrace): Renamed to ...
9198 (btrace_compute_ftrace): ...this. Rewritten to compute call
9200 (btrace_fetch, btrace_clear): Updated.
9201 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9202 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9203 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9204 (btrace_call_number, btrace_call_begin, btrace_call_end)
9205 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9206 (btrace_find_function_by_number, btrace_set_insn_history)
9207 (btrace_set_call_history): New.
9208 * record-btrace.c (require_btrace): Use new btrace thread
9210 (record_btrace_info, btrace_insn_history)
9211 (record_btrace_insn_history, record_btrace_insn_history_range):
9212 Use new btrace thread info fields and new iterator.
9213 (btrace_func_history_src_line): Rename to ...
9214 (btrace_call_history_src_line): ...this. Use new btrace
9216 (btrace_func_history): Rename to ...
9217 (btrace_call_history): ...this. Use new btrace thread info
9218 fields and new iterator.
9219 (record_btrace_call_history, record_btrace_call_history_range):
9220 Use new btrace thread info fields and new iterator.
9222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9224 * frame.h (frame_id_build_unavailable_stack_special): New.
9225 * frame.c (frame_id_build_unavailable_stack_special): New.
9227 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9229 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9230 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9231 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9233 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9234 (i386_insn_is_jump, i386_jmp_p): New.
9235 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9236 insn_is_jump to gdbarch.
9237 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9238 * gdbarch.h: Regenerated.
9239 * gdbarch.c: Regenerated.
9240 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9241 (default_insn_is_jump): New.
9242 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9243 (default_insn_is_jump): New.
9245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9247 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9249 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9250 (btrace_read_type) <btrace_read_new>: Change to ...
9251 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9255 * common/linux-btrace.c (linux_read_btrace): Free trace from
9258 2014-01-15 Doug Evans <dje@google.com>
9260 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9263 2014-01-15 Tom Tromey <tromey@redhat.com>
9265 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9266 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9267 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9268 (set_objfile_main_name): New function.
9269 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9270 language_of_main>: New fields.
9271 (set_objfile_main_name): Declare.
9272 * symtab.c (find_main_name): Loop over objfiles to find the main
9274 (set_main_name): Now static.
9275 (get_main_info): Add comment.
9276 * symtab.h (set_main_name): Don't declare.
9278 2014-01-15 Tom Tromey <tromey@redhat.com>
9280 * symtab.c (main_progspace_key): New global.
9281 (struct main_info): New.
9282 (name_of_main, language_of_main): Remove.
9283 (get_main_info, main_info_cleanup): New function.
9284 (set_main_name, main_name, main_language): Use get_main_info.
9285 (_initialize_symtab): Initialize main_progspace_key.
9287 2014-01-15 Tom Tromey <tromey@redhat.com>
9289 * dbxread.c (process_one_symbol): Update.
9290 * dwarf2read.c (read_partial_die): Update.
9291 * symfile.c (set_initial_language): Call main_language.
9292 * symtab.c (language_of_main): Now static.
9293 (set_main_name): Add 'lang' parameter.
9294 (find_main_name): Update.
9295 (main_language): New function.
9296 (symtab_observer_executable_changed): Update.
9297 * symtab.h (set_main_name): Update.
9298 (language_of_main): Remove.
9299 (main_language): Declare.
9301 2014-01-15 Tom Tromey <tromey@redhat.com>
9303 * symfile.c (init_entry_point_info): Use new "initialized" field.
9305 * objfiles.h (struct entry_point) <initialized>: New field.
9306 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9307 (struct objfile) <ei>: ...here. Remove.
9308 * objfiles.c (entry_point_address_query): Update.
9310 2014-01-15 Tom Tromey <tromey@redhat.com>
9312 * objfiles.c (entry_point_address_query): Relocate entry point
9314 (objfile_relocate1): Do not relocate entry point address.
9315 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9316 <the_bfd_section_index>: New field.
9317 * symfile.c (init_entry_point_info): Find the entry point's
9320 2014-01-15 Tom Tromey <tromey@redhat.com>
9322 * solib-frv.c (enable_break): Use entry_point_address_query.
9324 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9326 * NEWS: Add note on improved process record-replay on
9327 arm*-linux* targets.
9329 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9331 * arm-tdep.c (enum arm_record_result): New enum.
9332 (arm_record_unsupported_insn): New function.
9333 (arm_record_coproc_data_proc): Removed.
9334 (thumb2_record_ld_st_multiple): New function.
9335 (thumb2_record_ld_st_dual_ex_tbb): New function.
9336 (thumb2_record_data_proc_sreg_mimm): New function.
9337 (thumb2_record_ps_dest_generic): New function.
9338 (thumb2_record_branch_misc_cntrl): New function.
9339 (thumb2_record_str_single_data): New function.
9340 (thumb2_record_ld_mem_hints): New function.
9341 (thumb2_record_ld_word): New function.
9342 (thumb2_record_lmul_lmla_div): New function.
9343 (thumb2_record_decode_insn_handler): New function.
9344 (decode_insn): Add thumb32 instruction handlers.
9346 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9348 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9349 (struct arm_linux_record_tdep): Declare.
9350 (arm_canonicalize_syscall): New function.
9351 (arm_all_but_pc_registers_record): New function.
9352 (arm_linux_syscall_record): New function.
9353 (arm_linux_init_abi): Add syscall recording constructs.
9354 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9355 decoding. (arm_record_coproc_data_proc): Update arm syscall
9357 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9358 <arm_syscall_record>: New field.
9359 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9362 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9364 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9365 register for push instruction recording.
9367 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9369 * arm-tdep.c (thumb_record_misc): Update to correct logical
9370 error while recording ldm, ldmia and pop instructions.
9372 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9374 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9376 2014-01-15 Pedro Alves <palves@redhat.com>
9378 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9379 (go32_resume, go32_fetch_registers, store_register)
9380 (go32_store_registers, go32_prepare_to_store)
9381 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9382 (go32_create_inferior, go32_can_run, go32_terminal_init)
9383 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9386 2014-01-15 Tom Tromey <tromey@redhat.com>
9388 * target.h (async_callback_ftype): New typedef.
9389 (struct target_ops) <to_async>: Use it.
9391 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9393 * python/py-value.c (get_field_type): Remove unnecessary curly
9394 braces for single-statement if block.
9396 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9398 * python/py-type.c (convert_field): Add missing empty line
9401 2014-01-14 Doug Evans <dje@google.com>
9403 * symfile.h (expand_symtabs_matching): Renamed from
9404 expand_partial_symbol_names. Update prototype.
9405 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9406 * symfile.c (expand_symtabs_matching): Renamed from
9407 expand_partial_symbol_names. New args file_matcher, kind.
9408 Rename arg fun to symbol_matcher.
9409 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9410 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9411 ada_expand_partial_symbol_name.
9412 (ada_make_symbol_completion_list): Update to call
9413 expand_symtabs_matching.
9414 (ada_add_global_exceptions): Call expand_symtabs_matching.
9415 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9416 call map_symbol_filenames.
9417 * symtab.c (sources_info): Update to call map_symbol_filenames.
9418 (search_symbols): Call expand_symtabs_matching.
9419 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9420 (default_make_symbol_completion_list_break_on): Update to call
9421 expand_symtabs_matching.
9422 (make_source_files_completion_list): Update to call
9423 map_symbol_filenames.
9425 2014-01-14 Doug Evans <dje@google.com>
9427 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9428 (expand_symtabs_symbol_matcher_ftype): New typedef.
9429 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9430 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9431 * symfile.c (expand_partial_symbol_names): Update to use
9432 expand_symtabs_symbol_matcher_ftype.
9433 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9434 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9435 Arg name_matcher renamed to symbol_matcher.
9436 * psymtab.c (recursively_search_psymtabs): Update to use
9437 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9439 (expand_symtabs_matching_via_partial): Update to use
9440 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9441 Arg name_matcher renamed to symbol_matcher.
9443 2014-01-14 Doug Evans <dje@google.com>
9445 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9446 (map_partial_symbol_filenames): Ditto.
9447 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9448 (map_partial_symbol_filenames): Ditto.
9449 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9450 (map_partial_symbol_filenames): Ditto.
9451 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9452 (map_partial_symbol_filenames): Ditto.
9453 * symtab.c: Delete #include "psymtab.h".
9455 2014-01-14 Pedro Alves <palves@redhat.com>
9456 Tom Tromey <tromey@redhat.com>
9458 * infrun.c (use_displaced_stepping): Use find_record_target
9459 instead of RECORD_IS_USED.
9460 (adjust_pc_after_break): Use record_full_is_used instead of
9462 * record-btrace.c (record_btrace_open): Call record_preopen
9463 instead of checking RECORD_IS_USED.
9464 * record-full.c (record_full_shortname)
9465 (record_full_core_shortname): New globals.
9466 (record_full_is_used): New function.
9467 (find_full_open): Call record_preopen instead of checking
9469 (init_record_full_ops): Set the target's shortname to
9470 record_full_shortname.
9471 (init_record_full_core_ops): Set the target's shortname to
9472 record_full_core_shortname.
9473 * record-full.h (record_full_is_used): Declare.
9474 * record.c (find_record_target): Make extern.
9475 (record_preopen): New function.
9476 * record.h (RECORD_IS_USED): Delete macro.
9477 (find_record_target, record_preopen): Declare functions.
9479 2014-01-14 Yao Qi <yao@codesourcery.com>
9481 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9482 'len''s type to ULONGEST.
9483 (core_xfer_shared_libraries_aix): Likewise.
9484 * gdbarch.c, gdbarch.h: Regenerated.
9485 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9486 Change type of 'len' to ULONGEST.
9487 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9488 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9490 2014-01-14 Yao Qi <yao@codesourcery.com>
9492 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9493 type of 'len' to ULONGEST.
9494 (linux_xfer_osdata_processgroups): Likewise.
9495 (linux_xfer_osdata_threads): Likewise.
9496 (linux_xfer_osdata_fds): Likewise.
9497 (linux_xfer_osdata_isockets): Likewise.
9498 (linux_xfer_osdata_shm): Likewise.
9499 (linux_xfer_osdata_sem): Likewise.
9500 (linux_xfer_osdata_msg): Likewise.
9501 (linux_common_xfer_osdata): Likewise.
9502 (struct osdata_type) <getter>: Likewise.
9503 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9506 2014-01-14 Yao Qi <yao@codesourcery.com>
9508 * target.h (target_xfer_partial_ftype): Update.
9509 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9511 * aix-thread.c (aix_thread_xfer_partial): Change type of
9512 argument 'len' to ULONGEST.
9513 * auxv.c (procfs_xfer_auxv): Likewise.
9514 (ld_so_xfer_auxv): Likewise.
9515 (memory_xfer_auxv): Likewise.
9516 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9517 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9518 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9519 * corelow.c (core_xfer_partial): Likewise.
9520 * ctf.c (ctf_xfer_partial): Likewise.
9521 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9523 (darwin_read_dyld_info): Likewise.
9524 (darwin_xfer_partial): Likewise.
9525 * exec.c (section_table_xfer_memory_partial): Likewise.
9526 (exec_xfer_partial): Likewise.
9527 * exec.h (section_table_xfer_memory_partial): Update
9529 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9530 instead of plongest.
9531 (gnu_xfer_partial): Likewise.
9532 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9533 (ia64_hpux_xfer_solib_got): Likewise.
9534 (ia64_hpux_xfer_partial): Likewise.
9535 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9536 * inf-ptrace.c (inf_ptrace_xfer_partial):
9537 * inf-ttrace.c (inf_ttrace_xfer_partial):
9538 * linux-nat.c (linux_xfer_siginfo): Likewise.
9539 (linux_nat_xfer_partial): Likewise.
9540 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9541 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9542 * monitor.c (monitor_xfer_memory): Likewise.
9543 (monitor_xfer_partial): Likewise.
9544 * procfs.c (procfs_xfer_partial): Likewise.
9545 * record-full.c (record_full_xfer_partial): Likewise.
9546 (record_full_core_xfer_partial): Likewise.
9547 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9548 instead of plongest.
9549 (gdbsim_xfer_partial): Likewise.
9550 * remote.c (remote_xfer_partial): Likewise.
9551 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9552 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9554 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9555 (rs6000_xfer_shared_libraries): Likewise.
9556 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9557 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9558 (sparc_xfer_partial): Likewise.
9559 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9560 (spu_xfer_partial): Likewise.
9561 * spu-multiarch.c (spu_xfer_partial): Likewise.
9562 * target.c (target_read_live_memory): Likewise.
9563 (memory_xfer_live_readonly_partial): Likewise.
9564 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9565 (target_xfer_partial, default_xfer_partial): Likewise.
9566 (current_xfer_partial): Likewise.
9567 * tracepoint.c (tfile_xfer_partial): Likewise.
9568 * windows-nat.c (windows_xfer_memory): Likewise. Call
9569 pulongest instead of plongest.
9570 (windows_xfer_partial): Likewise.
9571 (windows_xfer_shared_libraries): Likewise.
9573 2014-01-14 Yao Qi <yao@codesourcery.com>
9575 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9576 target_xfer_partial_ftype.
9578 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9582 * valops.c (value_struct_elt_bitpos): New function
9583 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9584 object to 'None' if the field name is an empty string ("").
9585 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9586 attribute to look for a field when 'name' is 'None'.
9587 (get_field_type): New function
9589 2014-01-13 Doug Evans <dje@google.com>
9592 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9593 (try_open_dwop_file): Ditto.
9594 * gdb_bfd.c: #include "vec.h".
9595 (bfdp): New typedef.
9596 (struct gdb_bfd_data): New member included_bfds.
9597 (gdb_bfd_unref): Unref all included bfds.
9598 (gdb_bfd_record_inclusion): New function.
9599 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9601 2014-01-13 Tom Tromey <tromey@redhat.com>
9603 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9605 2014-01-13 Tom Tromey <tromey@redhat.com>
9607 * defs.h (use_windows): Remove.
9608 * gdb.c (main): Update.
9609 * main.c (captured_main, gdb_main): Update.
9610 * main.h (struct captured_main_args) <use_windows>: Remove.
9611 * top.c (use_windows): Remove.
9613 2014-01-13 Tom Tromey <tromey@redhat.com>
9615 * defs.h (deprecated_flush_hook): Remove.
9617 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9620 * linux-thread-db.c (try_thread_db_load): Add parameter
9621 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9622 (try_thread_db_load_from_pdir_1): Move it there from here.
9623 (try_thread_db_load_from_sdir): Update caller.
9624 (try_thread_db_load_from_dir): Move it there from here.
9626 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9628 * regformats/regdat.sh: Always rewrite the register file.
9630 2014-01-13 Pedro Alves <palves@redhat.com>
9632 * Makefile.in (CHECK_HEADERS): New variable.
9633 (check-headers:): New rule.
9635 2014-01-13 Tom Tromey <tromey@redhat.com>
9637 * cli/cli-setshow.c (do_set_command): Update.
9638 * defs.h (deprecated_set_hook): Remove.
9639 * top.c (deprecated_set_hook): Remove.
9641 2014-01-13 Pedro Alves <palves@redhat.com>
9643 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9644 the tracepoint if the PC is a pseudo-register.
9646 2014-01-13 Tom Tromey <tromey@redhat.com>
9648 * defs.h (XCALLOC): Remove.
9649 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9650 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9651 * dwarf2loc.c (allocate_piece_closure): Likewise.
9652 * elfread.c (elf_symfile_segments): Likewise.
9653 (elf_symfile_segments): Likewise.
9654 * gdbtypes.c (copy_type_recursive): Likewise.
9655 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9656 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9657 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9659 * mt-tdep.c (mt_gdbarch_init): Likewise.
9660 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9662 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9663 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9664 * registry.c (registry_alloc_data): Likewise.
9665 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9666 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9667 * serial.c (serial_fdopen_ops): Likewise.
9668 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9670 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9671 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9674 2014-01-13 Tom Tromey <tromey@redhat.com>
9676 * defs.h (XMALLOC): Remove.
9677 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9678 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9679 * cli-out.c (struct ui_out *): Likewise.
9680 * cli/cli-dump.c (add_dump_command): Likewise.
9681 (add_dump_command): Likewise.
9682 * complaints.c (get_complaints): Likewise.
9683 (find_complaint): Likewise.
9684 * dwarf2-frame.c (execute_cfa_program): Likewise.
9685 * dwarf2read.c (abbrev_table_read_table): Likewise.
9686 * gdbarch.sh: Likewise.
9687 * gdbarch.c: Rebuild.
9688 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9689 * interps.c (interp_new): Likewise.
9690 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9691 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9692 * mi/mi-console.c (mi_console_file_new): Likewise.
9693 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9694 * mi/mi-out.c (mi_out_new): Likewise.
9695 * mi/mi-parse.c (mi_parse): Likewise.
9696 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9697 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9698 * observer.c (xalloc_observer_list_node): Likewise.
9699 * regcache.c (regcache_xmalloc_1): Likewise.
9700 * reggroups.c (reggroup_new): Likewise.
9701 (_initialize_reggroup): Likewise.
9702 * registry.c (register_data_with_cleanup): Likewise.
9703 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9704 * ser-base.c (serial_ttystate): Likewise.
9705 * ser-mingw.c (make_pipe_state): Likewise.
9706 * ser-pipe.c (pipe_open): Likewise.
9707 * serial.c (serial_open): Likewise.
9708 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9709 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9710 (tui_alloc_win_info): Likewise.
9711 (tui_add_content_elements): Likewise.
9712 * tui/tui-file.c (tui_file_new): Likewise.
9713 * tui/tui-out.c (tui_out_new): Likewise.
9714 * ui-file.c (mem_file_new): Likewise.
9715 * ui-out.c (push_level): Likewise.
9716 (make_cleanup_ui_out_end): Likewise.
9717 (append_header_to_list): Likewise.
9718 (ui_out_new): Likewise.
9719 * user-regs.c (user_reg_add_builtin): Likewise.
9721 2014-01-13 Tom Tromey <tromey@redhat.com>
9723 * defs.h (XZALLOC): Remove.
9724 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9725 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9726 (get_ada_tasks_inferior_data): Likewise.
9727 * auto-load.c (get_auto_load_pspace_data): Likewise.
9728 * auxv.c (get_auxv_inferior_data): Likewise.
9729 * bfd-target.c (target_bfd_reopen): Likewise.
9730 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9731 (deprecated_insert_raw_breakpoint): Likewise.
9732 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9733 * corelow.c (core_open): Likewise.
9734 * darwin-nat.c (darwin_check_new_threads): Likewise.
9735 (darwin_attach_pid): Likewise.
9736 * dummy-frame.c (dummy_frame_push): Likewise.
9737 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9738 * dwarf2loc.c (allocate_piece_closure): Likewise.
9739 * elfread.c (elf_symfile_segments): Likewise.
9740 * eval.c (ptrmath_type_p): Likewise.
9741 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9742 * gdbtypes.c (alloc_type_arch): Likewise.
9743 (alloc_type_instance): Likewise.
9744 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9745 * inf-child.c (inf_child_can_use_agent): Likewise.
9746 * inflow.c (get_inflow_inferior_data): Likewise.
9747 * infrun.c (save_infcall_suspend_state): Likewise.
9748 * jit.c (jit_reader_load): Likewise.
9749 (get_jit_objfile_data): Likewise.
9750 (get_jit_program_space_data): Likewise.
9751 (jit_object_open_impl): Likewise.
9752 (jit_symtab_open_impl): Likewise.
9753 (jit_block_open_impl): Likewise.
9754 (jit_frame_sniffer): Likewise.
9755 * linux-fork.c (add_fork): Likewise.
9756 * maint.c (make_command_stats_cleanup): Likewise.
9757 * objfiles.c (get_objfile_pspace_data): Likewise.
9758 * opencl-lang.c (struct lval_closure): Likewise.
9759 * osdata.c (osdata_start_osdata): Likewise.
9760 * progspace.c (new_address_space): Likewise.
9761 (add_program_space): Likewise.
9762 * remote-sim.c (get_sim_inferior_data): Likewise.
9763 * sh-tdep.c (sh_gdbarch_init): Likewise.
9764 * skip.c (Ignore): Likewise.
9765 (skip_delete_command): Likewise.
9766 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9767 (library_list_start_library): Likewise.
9768 (solib_aix_current_sos): Likewise.
9769 * solib-darwin.c (get_darwin_info): Likewise.
9770 (darwin_current_sos): Likewise.
9771 * solib-dsbt.c (get_dsbt_info): Likewise.
9772 * solib-ia64-hpux.c (new_so_list): Likewise.
9773 (ia64_hpux_get_solib_linkage_addr): Likewise.
9774 * solib-spu.c (append_ocl_sos): Likewise.
9775 (spu_current_sos): Likewise.
9776 * solib-svr4.c (get_svr4_info): Likewise.
9777 (svr4_keep_data_in_core): Likewise.
9778 (library_list_start_library): Likewise.
9779 (svr4_default_sos): Likewise.
9780 (svr4_read_so_list): Likewise.
9781 * solib-target.c (library_list_start_library): Likewise.
9782 (solib_target_current_sos): Likewise.
9783 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9784 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9785 * symfile.c (default_symfile_segments): Likewise.
9786 * target-descriptions.c (tdesc_data_init): Likewise.
9787 (tdesc_create_reg): Likewise.
9788 (struct tdesc_type *): Likewise.
9789 (tdesc_create_vector): Likewise.
9790 (tdesc_set_struct_size): Likewise.
9791 (struct tdesc_type *): Likewise.
9792 (tdesc_free_feature): Likewise.
9793 (tdesc_create_feature): Likewise.
9794 * windows-nat.c (windows_add_thread): Likewise.
9795 (windows_make_so): Likewise.
9796 * xml-support.c (gdb_xml_body_text): Likewise.
9797 (gdb_xml_create_parser_and_cleanup): Likewise.
9798 (xml_process_xincludes): Likewise.
9799 * xml-syscall.c (allocate_syscalls_info): Likewise.
9800 (syscall_create_syscall_desc): Likewise.
9802 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9804 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9805 function, with code from i386_stap_parse_special_token.
9806 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9807 (i386_stap_parse_special_token): Move code to the two functions
9810 2014-01-09 Pedro Alves <palves@redhat.com>
9811 Hui Zhu <hui@codesourcery.com>
9814 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9815 bp_err_string. Don't mark the location shlib_disabled if the
9816 error thrown wasn't a generic or memory error. Catch errors
9817 thrown while inserting breakpoints in overlayed code. Output
9818 error message of software breakpoints.
9819 * remote.c (remote_insert_breakpoint): If this breakpoint has
9820 target-side commands but this stub doesn't support Z0 packets,
9821 throw NOT_SUPPORTED_ERROR error.
9822 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9823 * target.h (target_insert_breakpoint): Extend comment.
9824 (target_insert_hw_breakpoint): Add comment.
9826 2014-01-08 Pedro Alves <palves@redhat.com>
9828 * remote.c (remote_add_thread): Add threads silently if starting
9830 (remote_notice_new_inferior): If in all-stop, and starting up,
9831 don't call notice_new_inferior.
9832 (get_current_thread): New function, factored out from ...
9833 (add_current_inferior_and_thread): ... this. Adjust.
9834 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9835 found any thread, then select the remote's current thread as GDB's
9838 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9840 * NEWS: Create a new section for the next release branch.
9841 Rename the section of the current branch, now that it has
9844 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9846 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9847 * version.in: Bump version to 7.7.50.DATE-cvs.
9849 2014-01-08 Yao Qi <yao@codesourcery.com>
9851 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9852 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9853 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9855 2014-01-08 Yao Qi <yao@codesourcery.com>
9857 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9858 return value of bfd_get_filename to symbol_file_add_from_bfd.
9860 2014-01-08 Pierre Muller <muller@sourceware.org>
9863 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9864 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9865 to prim_record_mininal_symbol_and_info.
9866 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9867 in call to prim_record_minimal_symbol_and_info.
9868 (read_pe_exported_syms): Set index field of section_data.
9870 2014-01-07 Andrew Pinski <apinski@cavium.com>
9872 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9873 * features/aarch64.c: Regenerate.
9875 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9877 * target.c (return_null): Define.
9878 (update_current_target): Use it instead of return_zero for
9879 functions that return a pointer.
9881 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9883 * source.c (add_path): Fix check for duplicated paths in the previously
9886 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9888 * ada-lang.c: Remove duplicated include statements.
9889 * alphabsd-nat.c: Ditto.
9890 * amd64-darwin-tdep.c: Ditto.
9891 * amd64fbsd-nat.c: Ditto.
9892 * auto-load.c: Ditto.
9894 * breakpoint.c: Ditto.
9896 * fork-child.c: Ditto.
9897 * gdb_usleep.c: Ditto.
9898 * i386-darwin-tdep.c: Ditto.
9899 * i386fbsd-nat.c: Ditto.
9901 * inferior.c: Ditto.
9903 * linux-nat.c: Ditto.
9904 * linux-tdep.c: Ditto.
9905 * m68kbsd-nat.c: Ditto.
9906 * m68klinux-nat.c: Ditto.
9907 * microblaze-tdep.c: Ditto.
9908 * mips-linux-tdep.c: Ditto.
9909 * mn10300-tdep.c: Ditto.
9910 * nto-tdep.c: Ditto.
9911 * opencl-lang.c: Ditto.
9913 * printcmd.c: Ditto.
9914 * regcache.c: Ditto.
9915 * remote-m32r-sdi.c: Ditto.
9919 * tilegx-linux-nat.c: Ditto.
9920 * tilegx-tdep.c: Ditto.
9921 * tracepoint.c: Ditto.
9923 * vaxbsd-nat.c: Ditto.
9924 * windows-nat.c: Ditto.
9925 * xtensa-tdep.c: Ditto.
9927 2014-01-07 Yao Qi <yao@codesourcery.com>
9929 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9931 2014-01-07 Yao Qi <yao@codesourcery.com>
9932 Joel Brobecker <brobecker@adacore.com>
9934 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9935 (pdc_write_regs): Likewise.
9936 (fetch_regs_kernel_thread): Likewise.
9937 (store_regs_kernel_thread): Likewise.
9939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9941 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9942 tagged type objects to their actual type.
9944 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9946 * ada-valprint.c (print_field_values): Add "language" parameter.
9947 Update calls to print_field_values and print_variant_part.
9948 Pass new parameter "language" in call to val_print instead
9949 of "current_language". Replace call to ada_val_print by call
9951 (print_variant_part): Add "language" parameter.
9952 (ada_val_print_struct_union): Update call to print_field_values.
9954 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9956 * ada-valprint.c (ui_memcpy): Delete.
9957 (ada_print_floating): Update documentation. Add empty line
9958 between between function documentation and implementation.
9959 Delete variable "buffer". Use ui_file_xstrdup in place of
9960 ui_file_put. Minor adjustments following this change.
9962 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9964 * ada-valprint.c (ada_val_print_string): New function,
9965 extracted from ada_val_print_array.
9966 (ada_val_print_array): Replace extracted code by call
9967 to ada_val_print_string followed by a return. Move
9968 "else" branch to the function's top block.
9970 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9972 * ada-valprint.c (ada_val_print_array): Move implementation
9973 down. Rename parameter "offset" and "val" into "offset_aligned"
9974 and "original_value" respectively. Add parameter "offset".
9976 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9978 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9979 re-organizing the code. Change the "???" message printed
9980 when target type is a TYPE_CODE_UNDEF into
9981 "<ref to undefined type>".
9983 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9985 * ada-valprint.c (print_record): Delete, implementation inlined...
9986 (ada_val_print_struct_union): ... here. Remove call to
9987 ada_check_typedef in inlined implementation.
9989 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9991 * ada-valprint.c (ada_val_print_gnat_array): New function,
9992 extracted from ada_val_print_1;
9993 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9994 (ada_val_print_flt, ada_val_print_struct_union)
9995 (ada_val_print_ref): Likewise.
9996 (ada_val_print_1): Delete variables i and elttype.
9997 Replace extracted-out code by call to corresponding
10000 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10002 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10004 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10006 * ada-valprint.c (ada_val_print_1): Replace calls to
10007 ada_val_print_1 by calls to val_print.
10009 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10011 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10012 Update calls to self accordingly. Replace calls to c_val_print
10013 by calls to val_print.
10015 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10017 * ada-valprint.c (print_record): Delete declaration.
10018 (adjust_type_signedness, ada_val_print_1): Likewise.
10019 (ada_val_print): Move function implementation down.
10020 (print_variant_part, print_field_values, print_record):
10021 Move function implementation up.
10023 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10025 * python/py-type.c (typy_get_name): New function.
10026 (type_object_getset): Add entry for attribute "name".
10027 * NEWS: Add entry mentioning this new attribute.
10029 2014-01-07 Yao Qi <yao@codesourcery.com>
10031 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10034 2014-01-07 Yao Qi <yao@codesourcery.com>
10036 * gnu-nat.c (info_port_rights): Add qualifier const to
10039 2014-01-07 Yao Qi <yao@codesourcery.com>
10041 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10043 2014-01-07 Yao Qi <yao@codesourcery.com>
10045 * gnu-nat.c (make_inf) Update declaration.
10046 (make_inf): Make it static.
10047 (inf_set_traced): Likewise.
10048 (inf_port_to_thread, inf_task_died_status): Likewise.
10050 2014-01-07 Yao Qi <yao@codesourcery.com>
10052 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10054 2014-01-07 Yao Qi <yao@codesourcery.com>
10056 * gnu-nat.c (_initialize_gnu_nat): Declare.
10058 2014-01-07 Yao Qi <yao@codesourcery.com>
10060 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10062 (struct gdbarch_info) <byte_order>: Change type to
10064 <byte_order_for_code>: Likewise.
10065 * gdbarch.c, gdbarch.h: Regenerated.
10067 2014-01-06 Sasha Smundak <asmundak@google.com>
10069 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10071 2014-01-06 Tom Tromey <tromey@redhat.com>
10073 * doublest.c (convert_doublest_to_floatformat): Use const, not
10075 * somread.c (som_symtab_read): Likewise.
10077 2014-01-07 Hui Zhu <hui@codesourcery.com>
10079 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10080 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10081 (gdb_bfd_fopen): Ditto.
10082 (gdb_bfd_openr): Ditto.
10083 (gdb_bfd_openw): Ditto.
10084 (gdb_bfd_openr_iovec): Ditto.
10085 (gdb_bfd_fdopenr): Ditto.
10086 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10087 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10089 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10091 * symfile-mem.c (symbol_file_add_from_memory): Removed
10092 gdb_bfd_stash_filename.
10094 2014-01-03 Doug Evans <dje@google.com>
10096 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10099 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10101 Update year range in copyright notice of all files.
10103 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10105 * top.c (print_gdb_version): Set copyright year to 2014.
10107 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10109 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10111 For older changes see ChangeLog-2013.
10117 version-control: never