1 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3 * MAINTAINERS (Write After Approval): Update my email address.
5 2014-07-02 Gary Benson <gbenson@redhat.com>
7 * proc-service.c (ps_xfer_memory): Update comment.
8 (ps_pstop): Remove unused function.
9 (ps_pcontinue): Likewise.
11 (ps_lcontinue): Likewise.
12 (ps_lgetxregsize): Likewise.
13 (ps_lgetxregs): Likewise.
14 (ps_lsetxregs): Likewise.
16 (ps_ptread): Likewise.
17 (ps_ptwrite): Likewise.
19 2014-07-01 Mark Wielaard <mjw@redhat.com>
21 * dwarf2read.c (add_array_cv_type): New function.
22 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
23 (read_tag_volatile_type): Likewise.
25 2014-07-01 Tom Tromey <tromey@redhat.com>
27 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
28 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
29 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
30 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
31 * command.h (cmd_cfunc_ftype): Move earlier.
32 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
33 (add_com, add_info): Use cmd_cfunc_ftype.
35 2014-06-30 Tom Tromey <tromey@redhat.com>
37 * symtab.c (operator_chars): Make parameters and return type
39 (file_matches): Make "files" const.
40 (struct search_symbols_data) <files>: Now const.
41 (search_symbols): Make "regexp" and "files" parameters const.
43 (symtab_symbol_info): Remove cast.
44 (rbreak_command): Update.
45 * symtab.h (search_symbols): Update.
47 2014-06-27 Yao Qi <yao@codesourcery.com>
49 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
50 Change parameter type to 'struct thread_info *'. Caller
52 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
54 * dummy-frame.c (struct dummy_frame_id): New.
55 (dummy_frame_id_eq): New function.
56 (struct dummy_frame) <id>: Change its type to 'struct
58 (dummy_frame_push): Add parameter ptid and save it in
60 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
62 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
64 (lookup_dummy_frame): Change parameter type to 'struct
65 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
66 instead of frame_id_eq.
67 (dummy_frame_pop): Add parameter ptid. Callers updated.
68 Update comments. Compose dummy_frame_id and pass it to
70 (dummy_frame_discard): Add parameter ptid.
71 (dummy_frame_sniffer): Compose dummy_frame_id and call
72 dummy_frame_id_eq instead of frame_id_eq.
73 (fprint_dummy_frames): Print ptid.
74 * dummy-frame.h: Remove comments.
75 (dummy_frame_push): Add ptid in declaration.
76 (dummy_frame_pop, dummy_frame_discard): Likewise.
78 2014-06-26 Tom Tromey <tromey@redhat.com>
80 * cli/cli-cmds.c (error_no_arg): Make "why" const.
81 * command.h (error_no_arg): Update.
83 2014-06-26 Tom Tromey <tromey@redhat.com>
85 * cli/cli-setshow.c (do_set_command): Make "arg" const.
86 (do_show_command): Make "arg" const.
87 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
89 2014-06-26 Tom Tromey <tromey@redhat.com>
91 * record-full.c (record_full_get_bookmark): Make "args" const.
92 (record_full_goto_bookmark): Make "raw_bookmark" const.
93 * record.c (record_goto): New function.
94 (cmd_record_goto): Use it. Now static.
95 * record.h (record_goto): Declare.
96 (cmd_record_goto): Remove declaration.
97 * target-delegates.c: Rebuild.
98 * target.h (struct target_ops) <to_get_bookmark,
99 to_goto_bookmark>: Make parameter const.
101 2014-06-26 Tom Tromey <tromey@redhat.com>
103 * defs.h (generic_load): Update.
104 * m32r-rom.c (m32r_load_gen): Make "filename" const.
105 * monitor.c (monitor_load): Make "args" const.
106 * remote-m32r-sdi.c (m32r_load): Make "args" const.
107 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
109 (mips_load): Make "file" const.
110 * remote-sim.c (gdbsim_load): Make "args" const.
111 * remote.c (remote_load): Make "name" const.
112 * symfile.c (generic_load): Make "args" const.
113 * target-delegates.c: Rebuild.
114 * target.c (target_load): Make "arg" const.
115 (debug_to_load): Make "args" const.
116 * target.h (struct target_ops) <to_load>: Make parameter const.
117 (target_load): Update.
119 2014-06-26 Tom Tromey <tromey@redhat.com>
122 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
123 (dwarf2_physname, read_partial_die)
124 (guess_partial_die_structure_name, fixup_partial_die)
125 (guess_full_die_structure_name, anonymous_struct_prefix)
126 (dwarf2_name): Use per-BFD obstack.
128 2014-06-26 Yao Qi <yao@codesourcery.com>
130 * dummy-frame.c (dummy_frame_sniffer): Move local variables
131 dummyframe and this_id into inner block below.
133 2014-06-26 Yao Qi <yao@codesourcery.com>
135 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
136 with "signal_pass[0]" in the initialization of signal_pass.
138 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
140 * record-btrace.c (record_btrace_generating_corefile)
141 (record_btrace_prepare_to_generate_core)
142 (record_btrace_done_generating_core): New.
143 (record_btrace_xfer_partial, record_btrace_fetch_registers)
144 (record_btrace_store_registers, record_btrace_prepare_to_store):
145 Forward request when generating a core file.
146 (record_btrace_open): Set record_btrace_generating_corefile to zero.
147 (init_record_btrace_ops): Set to_prepare_to_generate_core and
148 to_done_generating_core.
150 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
152 * target.h (target_ops) <to_prepare_to_generate_core>
153 <to_done_generating_core>: New.
154 (target_prepare_to_generate_core, target_done_generating_core): New.
155 * target.c (target_prepare_to_generate_core)
156 (target_done_generating_core): New.
157 * target-delegates.c: Regenerate.
158 * gcore.c: (write_gcore_file): Rename to ...
159 (write_gcore_file_1): ...this.
160 (write_gcore_file): Call target_prepare_to_generate_core
161 and target_done_generating_core.
163 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
165 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
166 * gcore.c (write_gcore_file): Free memory returned from
168 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
169 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
171 2014-06-24 Yao Qi <yao@codesourcery.com>
173 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
174 (arm_linux_init_abi): Set skip_trampoline_code with
175 gdbarch_skip_trampoline_code instead of
176 find_solib_trampoline_target.
178 2014-06-24 Yao Qi <yao@codesourcery.com>
180 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
181 arm_skip_bx_reg returns non-zero.
183 2014-06-24 Yao Qi <yao@codesourcery.com>
185 * arm-tdep.c (arm_skip_bx_reg): New function.
186 (arm_skip_stub): Call arm_skip_bx_reg.
188 2014-06-23 Don Breazeal <donb@codesourcery.com>
190 * MAINTAINERS: Add myself as write-after-approval maintainer.
192 2014-06-23 Pedro Alves <palves@redhat.com>
194 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
195 DR_CONTROL before setting DR0..DR3.
196 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
197 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
198 bits of DR_CONTROL related to the debug register slot being
199 disabled. If all slots are vacant, clear local slowdown as well,
200 and assert DR_CONTROL is 0.
202 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
204 * python/lib/gdb/command/xmethods.py
205 (get_method_matchers_in_loci): Lookup xmethod matchers in the
206 current progspace only if the string "progspace" matches LOCUS_RE.
208 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
210 Fix --with-system-readline with readline-6.3 patch 5.
211 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
212 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
215 2014-06-20 Tom Tromey <tromey@redhat.com>
217 * dwarf2read.c (dw2_get_real_path): Use correct type in
219 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
221 2014-06-20 Gary Benson <gbenson@redhat.com>
223 * common/gdb_thread_db.h: Moved to nat. All includes updated.
224 * common/glibc_thread_db.h: Likewise.
225 * common/i386-cpuid.h: Likewise.
226 * common/i386-gcc-cpuid.h: Likewise.
227 * common/linux-btrace.h: Likewise.
228 * common/linux-osdata.h: Likewise.
229 * common/linux-procfs.h: Likewise.
230 * common/linux-ptrace.h: Likewise.
231 * common/mips-linux-watch.h: Likewise.
232 * common/linux-btrace.c: Moved to nat.
233 * common/linux-osdata.c: Likewise.
234 * common/linux-procfs.c: Likewise.
235 * common/linux-ptrace.c: Likewise.
236 * common/mips-linux-watch.c: Likewise.
237 * nat/gdb_thread_db.h: Moved from common.
238 * nat/glibc_thread_db.h: Likewise.
239 * nat/i386-cpuid.h: Likewise.
240 * nat/i386-gcc-cpuid.h: Likewise.
241 * nat/linux-btrace.c: Likewise.
242 * nat/linux-btrace.h: Likewise.
243 * nat/linux-osdata.c: Likewise.
244 * nat/linux-osdata.h: Likewise.
245 * nat/linux-procfs.c: Likewise.
246 * nat/linux-procfs.h: Likewise.
247 * nat/linux-ptrace.c: Likewise.
248 * nat/linux-ptrace.h: Likewise.
249 * nat/mips-linux-watch.c: Likewise.
250 * nat/mips-linux-watch.h: Likewise.
251 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
252 (object file files): Reordered.
253 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
254 of glibc_thread_db.h.
256 2014-06-20 Gary Benson <gbenson@redhat.com>
258 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
259 (i386_dr_low_type): Moved to nat/i386-dregs.h.
260 (i386_dr_low): Likewise.
261 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
262 (i386_dr_low_set_addr): Likewise.
263 (i386_dr_low_get_addr): Likewise.
264 (i386_dr_low_can_set_control): Likewise.
265 (i386_dr_low_set_control): Likewise.
266 (i386_dr_low_get_control): Likewise.
267 (i386_dr_low_get_status): Likewise.
268 (i386_get_debug_register_length): Likewise.
269 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
270 (i386_dr_low): Likewise.
271 * nat/i386-dregs.c (i386-low.h): Remove include.
272 (i386-nat.h): Likewise.
273 (nat/i386-dregs.h): New include.
274 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
275 (i386_dr_low_set_addr): Likewise.
276 (i386_dr_low_get_addr): Likewise.
277 (i386_dr_low_can_set_control): Likewise.
278 (i386_dr_low_set_control): Likewise.
279 (i386_dr_low_get_control): Likewise.
280 (i386_dr_low_get_status): Likewise.
281 (i386_get_debug_register_length): Likewise.
282 (debug_hw_points): Likewise.
284 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
286 * Makefile.in (SFILES): Add d-exp.y.
287 (YYFILES): Add d-exp.c.
288 (YYOBJ): Add d-exp.o.
289 (local-maintainer-clean): Delete d-exp.c.
291 * d-lang.h (d_parse): New declaration.
292 (d_error): New declaration.
293 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
294 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
295 PREC_ORDER operators.
296 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
298 2014-06-19 Yao Qi <yao@codesourcery.com>
300 * gdbthread.h (any_running): Remove the declaration.
301 * thread.c (any_running): Remove.
303 2014-06-19 Yao Qi <yao@codesourcery.com>
305 * gdbthread.h (struct thread_info) <state>: Change its type to
306 'enum thread_state'. Update comments.
308 2014-06-19 Pedro Alves <palves@redhat.com>
310 * gdbthread.h (ALL_THREADS): Delete.
311 (ALL_NON_EXITED_THREADS): New macro.
312 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
313 instead of ALL_THREADS.
314 * infrun.c (find_thread_needs_step_over)
315 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
316 instead of ALL_THREADS.
317 * record-btrace.c (record_btrace_open)
318 (record_btrace_stop_recording, record_btrace_close)
319 (record_btrace_is_replaying, record_btrace_resume)
320 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
321 * remote.c (append_pending_thread_resumptions): Likewise.
322 * thread.c (thread_apply_all_command): Likewise.
324 2014-06-19 Gary Benson <gbenson@redhat.com>
326 * i386-nat.c (i386_stopped_by_watchpoint):
327 Use i386_dr_stopped_by_watchpoint.
328 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
329 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
331 2014-06-19 Gary Benson <gbenson@redhat.com>
333 * nat/i386-dregs.c: New file.
334 * Makefile.in (i386-dregs.o): New rule.
335 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
336 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
337 * config/i386/darwin.mh (NATDEPFILES): Likewise.
338 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
339 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
340 * config/i386/go32.mh (NATDEPFILES): Likewise.
341 * config/i386/linux.mh (NATDEPFILES): Likewise.
342 * config/i386/linux64.mh (NATDEPFILES): Likewise.
343 * config/i386/mingw.mh (NATDEPFILES): Likewise.
344 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
345 * i386-nat.h (debug_hw_points): New declaration.
346 * i386-nat.c (breakpoint.h): Remove include.
347 (command.h): Likewise.
348 (target.h): Likewise.
349 (gdb_assert.h): Likewise.
350 (debug_hw_points): Made nonstatic.
351 (debug_printf): Now in i386-dregs.c.
352 (TARGET_HAS_DR_LEN_8): Likewise.
353 (DR_CONTROL_SHIFT): Likewise.
354 (DR_CONTROL_SIZE): Likewise.
355 (DR_RW_EXECUTE): Likewise.
356 (DR_RW_WRITE): Likewise.
357 (DR_RW_READ): Likewise.
358 (DR_RW_IORW): Likewise.
359 (DR_LEN_1): Likewise.
360 (DR_LEN_2): Likewise.
361 (DR_LEN_4): Likewise.
362 (DR_LEN_8): Likewise.
363 (DR_LOCAL_ENABLE_SHIFT): Likewise.
364 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
365 (DR_ENABLE_SIZE): Likewise.
366 (DR_LOCAL_SLOWDOWN): Likewise.
367 (DR_GLOBAL_SLOWDOWN): Likewise.
368 (DR_CONTROL_RESERVED): Likewise.
369 (I386_DR_CONTROL_MASK): Likewise.
370 (I386_DR_VACANT): Likewise.
371 (I386_DR_LOCAL_ENABLE): Likewise.
372 (I386_DR_GLOBAL_ENABLE): Likewise.
373 (I386_DR_DISABLE): Likewise.
374 (I386_DR_SET_RW_LEN): Likewise.
375 (I386_DR_GET_RW_LEN): Likewise.
376 (I386_DR_WATCH_HIT): Likewise.
377 (i386_wp_op_t): Likewise.
378 (i386_show_dr): Likewise.
379 (i386_length_and_rw_bits): Likewise.
380 (i386_insert_aligned_watchpoint): Likewise.
381 (i386_remove_aligned_watchpoint): Likewise.
382 (i386_handle_nonaligned_watchpoint): Likewise.
383 (i386_update_inferior_debug_regs): Likewise.
384 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
385 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
386 (i386_region_ok_for_watchpoint):
387 Use i386_dr_region_ok_for_watchpoint.
388 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
390 2014-06-19 Gary Benson <gbenson@redhat.com>
392 * i386-nat.c (i386_insert_hw_breakpoint): Use
393 i386_insert_watchpoint.
394 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
396 2014-06-19 Gary Benson <gbenson@redhat.com>
398 * i386-nat.c (i386_dr_show): Renamed to
399 i386_show_dr and made static. All uses updated.
400 (i386_dr_length_and_rw_bits): Renamed to
401 i386_length_and_rw_bits and made static.
403 (i386_dr_insert_aligned_watchpoint): Renamed to
404 i386_insert_aligned_watchpoint and made static.
406 (i386_dr_remove_aligned_watchpoint): Renamed to
407 i386_remove_aligned_watchpoint and made static.
409 (i386_dr_update_inferior_debug_regs): Renamed to
410 i386_update_inferior_debug_regs and made static.
412 * nat/i386-dregs.h (i386_dr_show): Removed.
413 (i386_dr_length_and_rw_bits): Likewise.
414 (i386_dr_insert_aligned_watchpoint): Likewise.
415 (i386_dr_remove_aligned_watchpoint): Likewise.
416 (i386_dr_update_inferior_debug_regs): Likewise.
418 2014-06-19 Gary Benson <gbenson@redhat.com>
420 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
421 * configure: Regenerate.
422 * config.in: Likewise.
423 * main.c (signal.h): New include.
424 (setup_alternate_signal_stack): New function.
425 (captured_main): Call the above.
426 * cp-support.c (signal.h): New include.
427 (catch_demangler_crashes): New flag.
428 (SIGJMP_BUF): New define.
429 (SIGSETJMP): Likewise.
430 (SIGLONGJMP): Likewise.
431 (gdb_demangle_jmp_buf): New static global.
432 (gdb_demangle_attempt_core_dump): Likewise.
433 (gdb_demangle_signal_handler): New function.
434 (gdb_demangle): If catch_demangler_crashes is set, install the
435 above signal handler before calling bfd_demangle, and restore
436 the original signal handler afterwards. Display the offending
437 symbol and call demangler_warning the first time a segmentation
439 (_initialize_cp_support): New maint set/show command.
441 2014-06-19 Gary Benson <gbenson@redhat.com>
443 * utils.h (resource_limit_kind): New enum.
444 (can_dump_core): New declaration.
445 (warn_cant_dump_core): Likewise.
446 (dump_core): Likewise.
447 * utils.c (dump_core): Made nonstatic. Added new
448 parameter "limit_kind".
449 (can_dump_core): Made nonstatic. Moved printing code to...
450 (warn_cant_dump_core): New function.
451 (can_dump_core_warn): Likewise.
452 (internal_vproblem): Replace calls to can_dump_core with
453 calls to can_dump_core_warn. Supply new argument to each.
455 2014-06-19 Gary Benson <gbenson@redhat.com>
457 * utils.h (demangler_vwarning): New declaration.
458 (demangler_warning): Likewise.
459 * utils.c (struct internal_problem)
460 <user_settable_should_quit>: New field.
461 <user_settable_should_dump_core>: Likewise
462 (internal_error_problem): Add values for above new fields.
463 (internal_warning_problem): Likewise.
464 (demangler_warning_problem): New static global.
465 (demangler_vwarning): New function.
466 (demangler_warning): Likewise.
467 (add_internal_problem_command): Selectively add commands.
468 (_initialize_utils): New internal problem command.
469 * maint.c (maintenance_demangler_warning): New function.
470 (_initialize_maint_cmds): New command.
472 2014-06-18 Tom Tromey <tromey@redhat.com>
474 * f-valprint.c (info_common_command_for_block): Update.
475 * symtab.h (struct general_symbol_info) <common_block>: Now
478 2014-06-18 Tom Tromey <tromey@redhat.com>
480 * symtab.h (struct symtab) <blockvector>: Now const.
481 * ada-lang.c (ada_add_global_exceptions): Update.
482 * buildsym.c (augment_type_symtab): Update.
483 * dwarf2read.c (dw2_lookup_symbol): Update.
484 * jit.c (finalize_symtab): Update.
485 * jv-lang.c (add_class_symtab_symbol): Update.
486 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
488 * objfiles.c (objfile_relocate1): Update.
489 * psymtab.c (lookup_symbol_aux_psymtabs)
490 (maintenance_check_psymtabs): Update.
491 * python/py-symtab.c (stpy_global_block, stpy_static_block):
493 * spu-tdep.c (spu_catch_start): Update.
494 * symmisc.c (dump_symtab_1): Update.
495 * symtab.c (lookup_global_symbol_from_objfile)
496 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
497 (basic_lookup_transparent_type_quick)
498 (basic_lookup_transparent_type, find_pc_sect_symtab)
499 (find_pc_sect_line, search_symbols): Update.
500 * block.c (find_block_in_blockvector): Make "bl" const.
501 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
503 (blockvector_contains_pc): Make "bv" const.
504 (block_for_pc_sect): Update.
505 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
506 (blockvector_contains_pc): Update.
507 * breakpoint.c (resolve_sal_pc): Update.
508 * inline-frame.c (block_starting_point_at): Update.
510 2014-06-18 Tom Tromey <tromey@redhat.com>
512 * completer.c (complete_line): Make "line_buffer" const.
513 * completer.h (complete_line): Update.
515 2014-06-18 Tom Tromey <tromey@redhat.com>
517 * symtab.c (add_macro_name): Remove unneeded cast.
519 2014-06-18 Tom Tromey <tromey@redhat.com>
521 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
522 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
524 2014-06-18 Tom Tromey <tromey@redhat.com>
526 * probe.c (info_probes_for_ops): Make "arg" const.
527 * probe.h (info_probes_for_ops): Update.
529 2014-06-18 Tom Tromey <tromey@redhat.com>
531 * varobj.c (varobj_create): Update.
532 * valops.c (value_of_this): Update.
533 * tracepoint.c (add_local_symbols, scope_info): Update.
534 * symtab.h (struct general_symbol_info) <block>: Now const.
535 * symtab.c (skip_prologue_sal)
536 (default_make_symbol_completion_list_break_on)
537 (skip_prologue_using_sal): Update.
538 * stack.h (iterate_over_block_locals)
539 (iterate_over_block_local_vars): Update.
540 * stack.c (print_frame_args): Update.
541 (iterate_over_block_locals, iterate_over_block_local_vars): Make
543 (get_selected_block): Make return type const.
544 * python/py-frame.c (frapy_block): Update.
545 * python/py-block.c (gdbpy_block_for_pc): Update.
546 * p-exp.y (%union) <bval>: Now const.
547 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
548 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
549 * m2-exp.y (%union) <bval>: Now const.
550 * linespec.c (get_current_search_block): Make return type const.
551 (create_sals_line_offset, find_label_symbols): Update.
552 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
554 (block_starting_point_at): Make "block" const.
555 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
556 (check_exception_resume): Update.
557 * guile/scm-frame.c (gdbscm_frame_block): Update.
558 * guile/scm-block.c (gdbscm_lookup_block): Update.
559 * frame.h (get_frame_block): Update.
560 (get_selected_block): Make return type const.
561 * frame.c (frame_id_inner): Update.
562 * f-valprint.c (info_common_command_for_block)
563 (info_common_command): Update.
564 * dwarf2loc.c (dwarf2_find_location_expression)
565 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
566 (locexpr_describe_location_piece): Update.
567 * c-exp.y (%union) <bval>: Now const.
568 * breakpoint.c (resolve_sal_pc): Update.
569 * blockframe.c (get_frame_block):Make return type const.
570 (get_pc_function_start, get_frame_function, find_pc_sect_function)
571 (block_innermost_frame): Update.
572 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
573 (block_for_pc, block_for_pc_sect): Update.
574 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
576 (block_for_pc_sect, block_for_pc): Make return type const.
577 * ax-gdb.c (gen_expr): Update.
578 * alpha-mdebug-tdep.c (find_proc_desc): Update.
579 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
580 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
581 (ada_read_var_value): Update.
582 * ada-exp.y (struct name_info) <block>: Now const.
584 (block_lookup): Constify.
586 2014-06-18 Gary Benson <gbenson@redhat.com>
588 * nat/i386-dregs.h: New file.
589 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
590 * i386-nat.h (i386-dregs.h): New include.
591 (DR_FIRSTADDR): Now in i386-dregs.h.
592 (DR_LASTADDR): Likewise.
593 (DR_NADDR): Likewise.
594 (DR_STATUS): Likewise.
595 (DR_CONTROL): Likewise.
596 (i386_debug_reg_state): Likewise.
597 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
599 2014-06-18 Don Breazeal <donb@codesourcery.com>
601 * breakpoint.c (set_longjmp_breakpoint): Call
602 momentary_breakpoint_from_master with additional argument.
603 (set_longjmp_breakpoint_for_call_dummy): Call
604 momentary_breakpoint_from_master with additional argument.
605 (set_std_terminate_breakpoint): Call
606 momentary_breakpoint_from_master with additional argument.
607 (momentary_breakpoint_from_master): Add argument to function
608 definition and use it to initialize structure member flag.
609 (clone_momentary_breakpoint): Call
610 momentary_breakpoint_from_master with additional argument.
611 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
612 member flags set in momentary_breakpoint_from_master.
614 2014-06-18 Gary Benson <gbenson@redhat.com>
616 * i386-nat.c (i386_show_dr): Renamed to
617 i386_dr_show and made nonstatic. All uses updated.
618 (i386_length_and_rw_bits): Renamed to
619 i386_dr_length_and_rw_bits and made nonstatic.
621 (i386_insert_aligned_watchpoint): Renamed to
622 i386_dr_insert_aligned_watchpoint and made nonstatic.
624 (i386_remove_aligned_watchpoint): Renamed to
625 i386_dr_remove_aligned_watchpoint and made nonstatic.
627 (i386_update_inferior_debug_regs): Renamed to
628 i386_dr_update_inferior_debug_regs and made nonstatic.
631 2014-06-18 Gary Benson <gbenson@redhat.com>
633 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
634 (i386_dr_low_can_set_control): Likewise.
635 (i386_dr_low_set_addr): Likewise.
636 (i386_dr_low_set_control): Likewise.
637 (i386_dr_low_get_addr): Likewise.
638 (i386_dr_low_get_status): Likewise.
639 (i386_dr_low_get_control): Likewise.
640 (i386_insert_aligned_watchpoint): Use new macros.
641 (i386_update_inferior_debug_regs): Likewise.
642 (i386_stopped_data_address): Likewise.
644 2014-06-18 Gary Benson <gbenson@redhat.com>
646 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
647 New parameter. All uses updated.
649 2014-06-18 Gary Benson <gbenson@redhat.com>
651 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
654 2014-06-18 Gary Benson <gbenson@redhat.com>
656 * i386-nat.c (debug_printf): New macro.
657 (i386_get_debug_register_length): Likewise.
658 (TARGET_HAS_DR_LEN_8): Use above macro.
659 (i386_show_dr): Use debug_printf instead of puts_unfiltered
660 and printf_unfiltered. Use phex to format values.
662 2014-06-18 Gary Benson <gbenson@redhat.com>
664 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
667 2014-06-18 Gary Benson <gbenson@redhat.com>
669 * i386-nat.c: Comment changes.
671 2014-06-18 Gary Benson <gbenson@redhat.com>
673 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
675 2014-06-18 Gary Benson <gbenson@redhat.com>
677 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
678 (i386_insert_aligned_watchpoint): Likewise.
679 (i386_remove_aligned_watchpoint): Likewise.
680 (i386_handle_nonaligned_watchpoint): Likewise.
682 2014-06-18 Gary Benson <gbenson@redhat.com>
684 * i386-nat.c: Whitespace changes.
686 2014-06-17 Samuel Bronson <naesten@gmail.com>
688 * MAINTAINERS: Update Roland McGrath's email address.
689 Thanks to Sergio Durigan Junior for pointing out that he left
690 Red Hat a while ago, and giving me a current address.
692 2014-06-17 Tom Tromey <tromey@redhat.com>
694 * utils.h (savestring): Remove declaration.
696 2014-06-17 Tom Tromey <tromey@redhat.com>
698 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
700 2014-06-16 Keith Seitz <keiths@redhat.com>
703 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
704 to update the varobj if inferior_ptid is null_ptid.
706 2014-06-16 Tom Tromey <tromey@redhat.com>
708 * target.h (struct target_ops) <to_info_proc>: Make parameter
710 (target_info_proc): Update.
711 * target.c (target_info_proc): Make "args" const.
712 * procfs.c (procfs_info_proc): Update.
713 * linux-tdep.c (linux_info_proc): Update.
714 (linux_core_info_proc_mappings): Make "args" const.
715 (linux_core_info_proc): Update.
716 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
717 * gdbarch.c: Rebuild.
718 * gdbarch.h: Rebuild.
719 * corelow.c (core_info_proc): Update.
721 2014-06-16 Tom Tromey <tromey@redhat.com>
723 * target.h (struct target_ops) <to_disconnect>: Make parameter
725 (target_disconnect): Update.
726 * target.c (target_disconnect): Make "args" const.
727 * target-delegates.c: Rebuild.
728 * remote.c (remote_disconnect): Update.
729 * record.h (record_disconnect): Update.
730 * record.c (record_disconnect): Update.
731 * inf-child.c (inf_child_disconnect): Update.
733 2014-06-16 Tom Tromey <tromey@redhat.com>
735 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
736 * target.c (debug_to_rcmd, default_rcmd): Update.
737 * target-delegates.c: Rebuild.
738 * remote.c (remote_rcmd): Update.
739 * monitor.c (monitor_rcmd): Update.
741 2014-06-16 Pedro Alves <palves@redhat.com>
743 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
744 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
745 have OBJF_SHARED set.
746 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
747 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
748 instead of OBJF_USERLOADED.
749 * objfiles.h (OBJF_SHARED): Update comment.
750 (userloaded_objfile_contains_address_p): Rename to ...
751 (shared_objfile_contains_address_p): ... this, and update
753 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
755 (remove_symbol_file_command): Skip objfiles that don't have
758 2014-06-16 Tom Tromey <tromey@redhat.com>
760 * minsyms.h (prim_record_minimal_symbol)
761 (prim_record_minimal_symbol_and_info): Update comments.
763 2014-06-14 Eli Zaretskii <eliz@gnu.org>
765 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
766 or --without-guile, according to how GDB was built.
768 2014-06-13 Tom Tromey <tromey@redhat.com>
770 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
772 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
774 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
776 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
777 help_list.Pass all_commands, not -1, to help_list.
778 * cli/cli-dump.c (dump_command, append_command)
779 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
780 (binary_dump_command, binary_append_command): Pass all_commands,
781 not -1, to help_list.
782 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
784 * valprint.c (set_print, set_print_raw): Pass all_commands, not
786 * typeprint.c (set_print_type): Pass all_commands, not -1, to
788 * top.c (set_history): Pass all_commands, not -1, to help_list.
789 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
790 all_commands, not -1, to help_list.
791 * symfile.c (overlay_command): Pass all_commands, not -1, to
793 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
795 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
797 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
799 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
800 not -1, to help_list.
801 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
802 not -1, to help_list.
803 * maint.c (maintenance_command, maintenance_info_command)
804 (maintenance_print_command, maintenance_set_cmd): Pass
805 all_commands, not -1, to help_list.
806 * macrocmd.c (macro_command): Pass all_commands, not -1, to
808 * language.c (set_check): Pass all_commands, not -1, to help_list.
809 * infcmd.c (unset_command): Pass all_commands, not -1, to
811 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
813 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
815 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
817 * breakpoint.c (save_command): Pass all_commands, not -1, to
819 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
820 all_commands, not -1, to help_list.
822 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
824 * regcache.c (struct register_to_invalidate): New structure.
825 (do_register_invalidate, make_cleanup_regcache_invalidate): New
827 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
829 2014-06-12 Yao Qi <yao@codesourcery.com>
831 * varobj.c (varobj_get_num_children): Call
833 (varobj_list_children): Likewise.
834 (varobj_update): Likewise. Update comments.
836 2014-06-12 Yao Qi <yao@codesourcery.com>
838 * varobj.c (varobj_pretty_printed_p): Rename to ...
839 (varobj_is_dynamic_p): ... this. New function.
840 * varobj.h (varobj_pretty_printed_p): Remove declaration.
841 (varobj_is_dynamic_p): Declare.
842 * mi/mi-cmd-var.c (print_varobj): All callers updated.
843 (mi_print_value_p, varobj_update_one): Likewise.
845 2014-06-12 Pedro Alves <pedro@codesourcery.com>
846 Yao Qi <yao@codesourcery.com>
848 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
849 (varobj_get_iterator): Wrap up code for pretty-printer by
850 "#if HAVE_PYTHON" and "#endif".
851 (update_dynamic_varobj_children): Likewise.
853 2014-06-12 Pedro Alves <pedro@codesourcery.com>
854 Yao Qi <yao@codesourcery.com>
856 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
857 gdb_python_initialized is false. Move some code from varobj.c.
858 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
859 * varobj.c: Move "varobj-iter.h" inclusion earlier.
860 (struct varobj_item): Moved to varobj-iter.h".
861 (varobj_clear_saved_item): New function.
862 (update_dynamic_varobj_children): Move python-related code to
864 (free_variable): Call varobj_clear_saved_item and
867 2014-06-12 Pedro Alves <pedro@codesourcery.com>
868 Yao Qi <yao@codesourcery.com>
870 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
871 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
872 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
873 (py-varobj.o): New rule.
874 * python/py-varobj.c: New file.
875 * python/python-internal.h (py_varobj_get_iterator): Declare.
876 * varobj-iter.h: New file.
877 * varobj.c: Include "varobj-iter.h"
878 (struct varobj) <child_iter>: Change its type from "PyObject *"
879 to "struct varobj_iter *".
880 <saved_item>: Likewise.
881 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
882 [HAVE_PYTHON] (varobj_get_iterator): New function.
883 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
884 python-specific code to python/py-varobj.c.
885 (install_visualizer): Call varobj_iter_delete instead of
887 * varobj.h (varobj_ensure_python_env): Declare.
889 2014-06-12 Yao Qi <yao@codesourcery.com>
891 * varobj.c (struct varobj_item): New structure.
892 (create_child_with_value): Update declaration.
893 (varobj_add_child): Replace arguments 'name' and 'value' with
894 'item'. All callers updated.
895 (install_dynamic_child): Likewise.
896 (update_dynamic_varobj_children): Likewise.
897 (varobj_add_child): Likewise.
898 (create_child_with_value): Likewise.
900 2014-06-11 Joel Brobecker <brobecker@adacore.com>
902 * NEWS: Create a new section for the next release branch.
903 Rename the section of the current branch, now that it has
906 2014-06-11 Joel Brobecker <brobecker@adacore.com>
908 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
909 * version.in: Bump version to 7.8.50.DATE-cvs.
911 2014-06-11 Pedro Alves <palves@redhat.com>
914 * ser-mingw.c (net_windows_socket_check_pending): New function.
915 (net_windows_select_thread): Ignore spurious wakeups. Use
916 net_windows_socket_check_pending.
917 (net_windows_wait_handle): Check for pending events with
918 ioctlsocket, through net_windows_socket_check_pending, instead of
919 checking the socket's event.
921 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
923 * python/python-internal.h (gdb_PyObject_GetAttrString)
924 (gdb_PyObject_HasAttrString): New inline function definitions.
925 * py-value.c (get_field_flag): Remove the now unnecessary cast to
926 char * of the second argument to PyObject_GetAttrString.
928 2014-06-10 Joel Brobecker <brobecker@adacore.com>
930 * serial.c (serial_write): Fix index of character to be printed
931 in call to serial_logchar when serial debug traces are enabled.
933 2014-06-10 Joel Brobecker <brobecker@adacore.com>
935 * gdbtypes (resolve_dynamic_range): Add function description.
937 2014-06-09 Pedro Alves <palves@redhat.com>
939 * linux-nat.c (linux_child_follow_fork): Initialize status with
940 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
941 inner block. Only pass the signal to PTRACE_DETACH if in pass
944 2014-06-09 Gary Benson <gbenson@redhat.com>
946 * common/signals.c (gdb_signal_from_host): Reorder to separate
947 the always-available ANSI-standard signals from the signals that
949 (do_gdb_signal_to_host): Likewise.
950 * proc-events.c (signal_table): Likewise.
952 2014-06-08 Hui Zhu <hui@codesourcery.com>
954 * common/linux-ptrace.c (linux_disable_event_reporting): New
956 * common/linux-ptrace.h (linux_disable_event_reporting): New
958 * linux-nat.c (linux_child_follow_fork): Do a single step before
961 2014-06-07 Keith Seitz <keiths@redhat.com>
965 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
966 from symbol_matches_domain in symtab.c. All local callers
967 of symbol_matches_domain updated.
968 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
969 search STRUCT_DOMAIN.
970 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
971 independently. standard_lookup will do that automatically.
972 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
973 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
974 (cp_lookup_symbol_in_namespace): Likewise.
975 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
976 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
977 may return a STRUCT_DOMAIN match.
978 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
979 * cp-support.c: Include language.h.
980 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
982 * psymtab.c (match_partial_symbol): Compare the requested
983 domain with the symbol's domain directly.
984 (lookup_partial_symbol): Likewise.
985 * symtab.c (lookup_symbol_in_language): Explain when/why
986 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
987 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
988 appropriate languages.
989 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
990 and moved to ada-lang.c
991 (lookup_block_symbol): Explain that this function only returns
992 symbol matching the requested DOMAIN.
993 Compare the requested domain with the symbol's domain directly.
994 (iterate_over_symbols): Compare the requested domain with the
995 symbol's domain directly.
996 * symtab.h (symbol_matches_domain): Remove.
998 2014-06-06 Doug Evans <xdje42@gmail.com>
1000 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1001 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1002 (gdbscm_guile_version_is_at_least): Declare.
1003 (gdbscm_scm_string_to_int): Declare.
1004 * guile/guile.c (gdbscm_guile_major_version): New global.
1005 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1006 (guile_datadir): New static global.
1007 (gdbscm_guile_data_directory): New function.
1008 (initialize_scheme_side): Update.
1009 (misc_guile_functions): Add guile-data-directory.
1010 (initialize_gdb_module): Fetch guile version number.
1011 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1012 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1013 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1014 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1016 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1017 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1018 * guile/scm-value.c (gdbscm_value_to_string): Only call
1019 scm_port_conversion_strategy if Guile version >= 2.0.6.
1021 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1023 * main.c (print_gdb_help): Add -q and --silent.
1025 2014-06-06 Gary Benson <gbenson@redhat.com>
1027 * common/signals.c: Remove preprocessor conditionals for
1028 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1029 SIGSEGV and SIGTERM.
1030 * proc-events.c: Likewise.
1032 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1034 * symfile.c (symfile_free_objfile): Remove restriction to
1036 * symfile-mem.c (symbol_file_add_from_memory): Call
1037 add_target_sections_of_objfile.
1039 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1041 * guile/scm-value.c (gdbscm_history_append_x): Use
1042 'vlscm_get_value_smob_arg_unsafe' instead of
1043 'vlscm_scm_to_value'.
1045 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1048 * utils.c (printchar): Don't escape at all if quoter is NUL.
1049 Update function documentation to clarify effect of parameter
1051 * remote.c (escape_buffer): Pass '\\' as the quoter to
1052 fputstrn_unfiltered.
1053 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1054 generate the output.
1055 (mi_solib_unloaded): Same.
1057 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1059 * development.sh: Delete.
1060 * Makefile.in (config.status): Adjust dependency on development.sh.
1061 * configure.ac: Adjust development.sh source call.
1062 * configure: Regenerate.
1064 2014-06-04 Doug Evans <xdje42@gmail.com>
1066 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1067 is_scheme_bkpt, spec.
1068 (bpscm_make_breakpoint_smob): Initialize new members.
1069 (gdbscm_create_breakpoint_x): Split into two ...
1070 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1071 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1072 (scheme_function breakpoint_functions): Update.
1073 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1074 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1075 register-breakpoint!.
1077 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1080 * mem-break.c (z_type_supported): Return zero if
1081 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1083 2014-06-04 Tom Tromey <tromey@redhat.com>
1085 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1086 value_from_contents_and_address_unresolved.
1087 (ada_template_to_fixed_record_type_1): Likewise.
1088 (ada_which_variant_applies): Likewise.
1089 * value.h (value_from_contents_and_address_unresolved): Declare.
1090 * value.c (value_from_contents_and_address_unresolved): New
1092 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1093 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1094 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1096 2014-06-04 Tom Tromey <tromey@redhat.com>
1098 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1100 2014-06-04 Tom Tromey <tromey@redhat.com>
1102 * procfs.c (procfs_attach): Make "args" const.
1103 * windows-nat.c (windows_attach): Make "args" const.
1104 * nto-procfs.c (procfs_attach): Make "args" const.
1105 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1106 * go32-nat.c (go32_attach): Make "args" const.
1107 * gnu-nat.c (gnu_attach): Make "args" const.
1108 * darwin-nat.c (darwin_attach): Make "args" const.
1109 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1110 * linux-nat.c (linux_nat_attach): Make "args" const.
1111 * remote.c (extended_remote_attach_1, extended_remote_attach):
1113 * target.h (struct target_ops) <to_attach>: Make "args" const.
1114 (find_default_attach): Likewise.
1115 * utils.c (parse_pid_to_attach): Make "args" const.
1116 * utils.h (parse_pid_to_attach): Update.
1118 2014-06-04 Tom Tromey <tromey@redhat.com>
1120 * target-delegates.c: Rebuild.
1121 * target.c (default_thread_address_space): New function.
1122 (target_thread_address_space): Simplify.
1123 * target.h (struct target_ops) <to_thread_address_space>: Add
1124 TARGET_DEFAULT_FUNC.
1126 2014-06-04 Doug Evans <xdje42@gmail.com>
1128 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1130 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1132 * record-btrace.c: Include event-loop.h and inf-loop.h.
1133 (record_btrace_resume_exec_dir)
1134 (record_btrace_async_inferior_event_handler)
1135 (record_btrace_handle_async_inferior_event): New.
1136 (record_btrace_open): Create async event handler.
1137 (record_btrace_close): Delete async event handler.
1138 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1139 Mark async event handler.
1140 (record_btrace_execution_direction): New.
1141 (init_record_btrace_ops): Initialize to_execution_direction.
1143 2014-06-03 Doug Evans <xdje42@gmail.com>
1145 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1146 (gdbscm_make_parameter): Ditto.
1148 2014-06-03 Doug Evans <dje@google.com>
1150 * exec.c (exec_close_1): Call clear_section_table instead of
1151 resize_section_table.
1152 (clear_section_table): New function.
1153 (resize_section_table): Make static. Rename arg num_added to
1155 * exec.h (clear_section_table): Declare.
1156 (resize_section_table): Delete.
1157 * progspace.c (release_program_space): Call clear_section_table
1158 instead of resize_section_table.
1160 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1162 * NEWS (Python Scripting): Add entry about the new xmethods
1165 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1167 * python/py-xmethods.c: New file.
1168 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1169 (objfpy_dealloc): XDECREF on the new xmethods field.
1170 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1172 (objfpy_get_xmethods): New function.
1173 (objfile_getset): New entry 'xmethods'.
1174 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1175 (pspy_dealloc): XDECREF on the new xmethods field.
1176 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1178 (pspy_get_xmethods): New function.
1179 (pspace_getset): New entry 'xmethods'.
1180 * python/python-internal.h: Add declarations for new functions.
1181 * python/python.c (_initialize_python): Invoke
1182 gdbpy_initialize_xmethods.
1183 * python/lib/gdb/__init__.py (xmethods): New
1185 * python/lib/gdb/xmethod.py: New file.
1186 * python/lib/gdb/command/xmethods.py: New file.
1188 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1190 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1191 best match method returned by find_overload_match is an xmethod.
1192 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1193 the best matching operator returned by find_overload_match is an
1195 * valops.c: #include "extension.h".
1196 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1197 Return void. The list of matching source methods is returned in
1198 "fn_list" and a vector of matching debug method workers is
1199 returned in "xm_worker_vec". Update all callers.
1200 (value_find_oload_method_list): Likewise.
1201 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1202 non-NULL, then the index of the best matching method in this
1203 vector is returned. Update all callers.
1204 (find_overload_match): Include xmethods while performing overload
1207 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1209 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1210 * extension-priv.h (struct extension_language_ops): Add the
1212 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1213 get_matching_xmethod_workers, get_xmethod_argtypes,
1214 invoke_xmethod, free_xmethod_worker,
1215 free_xmethod_worker_vec): New functions.
1216 * extension.h: #include "common/vec.h".
1217 New function declarations.
1218 (struct xmethod_worker): New struct.
1219 (VEC (xmethod_worker_ptr)): New vector type.
1220 (xmethod_worker_ptr): New typedef.
1221 (xmethod_worker_vec): Likewise.
1222 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1224 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1225 (struct builtin_type): New field "xmethod".
1226 * valarith.c (value_ptradd): Assert that the value argument is not
1228 * valops.c (value_must_coerce_to_target): Return 0 for
1229 lval_xcallable values.
1230 * value.c (struct value): New field XM_WORKER in the field
1232 (value_address, value_raw_address): Return 0 for lval_xcallable
1234 (set_value_address): Assert that the value is not an
1236 (value_free): Free the associated xmethod worker when freeing
1237 lval_xcallable values.
1238 (set_value_component_location): Assert that the WHOLE value is not
1240 (value_of_xmethod, call_xmethod): New functions.
1241 * value.h: Declare "struct xmethod_worker".
1242 Declare new functions value_of_xmethod, call_xmethod.
1244 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1245 Pedro Alves <palves@redhat.com>
1247 PR breakpoints/17000
1248 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1249 New function, extracted from software_breakpoint_inserted_here_p.
1250 (software_breakpoint_inserted_here_p): Replace factored out code
1251 by call to find_non_raw_software_breakpoint_inserted_here.
1252 (bp_target_info_copy_insertion_state): New function.
1253 (bkpt_insert_location): Handle the case of a single-step
1254 breakpoint already inserted at the same address.
1255 (bkpt_remove_location): Handle the case of a single-step
1256 breakpoint still inserted at the same address.
1257 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1258 breakpoint already inserted at the same address.
1259 (deprecated_remove_raw_breakpoint): Handle the case of a
1260 non-raw breakpoint still inserted at the same address.
1261 (find_single_step_breakpoint): New function, extracted from
1262 single_step_breakpoint_inserted_here_p.
1263 (find_single_step_breakpoint): New function,
1264 factored out from single_step_breakpoint_inserted_here_p.
1265 (single_step_breakpoint_inserted_here_p): Reimplement.
1267 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1269 Pushed by Joel Brobecker <brobecker@adacore.com>
1270 * source.c (show_substitute_path_command): Fix display of matching
1273 2014-06-03 Gary Benson <gbenson@redhat.com>
1275 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1277 2014-06-02 Doug Evans <xdje42@gmail.com>
1279 Add parameter support for Guile.
1280 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1281 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1282 (scm-param.o): New rule.
1283 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1284 (gdbscm_misc_error): Declare.
1285 (gdbscm_canonicalize_command_name): Declare.
1286 (gdbscm_scm_to_host_string): Declare.
1287 (gdbscm_scm_from_host_string): Declare.
1288 (gdbscm_initialize_parameters): Declare.
1289 * guile/guile.c (initialize_gdb_module): Call
1290 gdbscm_initialize_parameters.
1291 * guile/lib/gdb.scm: Export parameter symbols.
1292 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1293 cmdscm_canonicalize_name and made public. All callers updated.
1294 * guile/scm-exception.c (gdbscm_misc_error): New function.
1295 * guile/scm-param.c: New file.
1296 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1297 (gdbscm_scm_to_host_string): New function.
1298 (gdbscm_scm_from_host_string): New function.
1299 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1301 2014-06-02 Doug Evans <xdje42@gmail.com>
1303 Add command support for Guile.
1304 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1305 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1306 (scm-cmd.o): New rule.
1307 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1308 (gdbscm_user_error_p): Declare.
1309 (gdbscm_parse_command_name): Declare.
1310 (gdbscm_valid_command_class_p): Declare.
1311 (gdbscm_initialize_commands): Declare.
1312 * guile/guile.c (initialize_gdb_module): Call
1313 gdbscm_initialize_commands.
1314 * guile/lib/gdb.scm: Export command symbols.
1315 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1316 (throw-user-error): New function.
1317 * guile/scm-cmd.c: New file.
1318 * guile/scm-exception.c (user_error_symbol): New static global.
1319 (gdbscm_user_error_p): New function.
1320 (gdbscm_initialize_exceptions): Set user_error_symbol.
1321 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1323 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1325 * top.c (command_loop): Handle comments here...
1326 (command_line_input): ... not here.
1328 2014-06-02 Doug Evans <xdje42@gmail.com>
1330 Add progspace support for Guile.
1331 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1332 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1333 (scm-progspace.o): New rule.
1334 * guile/guile-internal.h (pspace_smob): New typedef.
1335 (psscm_pspace_smob_pretty_printers): Declare.
1336 (psscm_pspace_smob_from_pspace): Declare.
1337 (psscm_scm_from_pspace): Declare.
1338 * guile/guile.c (initialize_gdb_module): Call
1339 gdbscm_initialize_pspaces.
1340 * guile/lib/gdb.scm: Export progspace symbols.
1341 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1343 (append-pretty-printer!): Ditto.
1344 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1346 * guile/scm-progspace.c: New file.
1348 2014-06-03 Alan Modra <amodra@gmail.com>
1350 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1351 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1353 2014-06-02 Doug Evans <dje@google.com>
1355 Add support for skeletonless type units.
1356 * dwarf2read.c (struct dwarf2_per_objfile): New member
1357 n_allocated_type_units.
1358 (struct dwarf2_per_objfile) <tu_stats>: New member
1359 nr_all_type_units_reallocs.
1360 (create_signatured_type_table_from_index): Initialize
1361 n_allocated_type_units
1362 (create_all_type_units): Ditto.
1363 (add_type_unit): Move up in file. New arg slot.
1364 All callers updated. Increase space for all_type_units more
1366 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1367 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1368 (lookup_dwp_signatured_type): Ditto.
1369 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1370 All callers updated.
1371 (build_type_psymtabs_1): Leave type_unit_groups as
1372 NULL if no TUs present.
1373 (print_tu_stats): New function.
1374 (process_skeletonless_type_unit): New function.
1375 (process_dwo_file_for_skeletonless_type_units): New
1377 (process_skeletonless_type_units): New function.
1378 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1379 Call print tu_stats if debugging enabled.
1381 2014-06-02 Pedro Alves <palves@redhat.com>
1383 * breakpoint.c (build_target_command_list): Don't build a command
1384 list if we have any duplicate location that isn't a dprintf.
1386 2014-06-02 Pedro Alves <palves@redhat.com>
1388 * breakpoint.c (dprintf_breakpoint_hit): New function.
1389 (initialize_breakpoint_ops): Install it as dprintf's
1390 breakpoint_hit method.
1392 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1394 * source.c (substitute_path_rule_matches): Simplify using
1395 filename_ncmp instead of FILENAME_CMP.
1397 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1399 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1401 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1403 * configure.ac: When Guile is available, check for the
1404 availability of 'scm_new_smob'.
1405 * configure, config.h.in: Regenerate.
1406 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1409 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1411 * frame.c (struct frame_info): Add stop_string field.
1412 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1413 (get_prev_frame_always): Old content moved into
1414 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1415 TRY_CATCH, handle MEMORY_ERROR exceptions.
1416 (frame_stop_reason_string): New function definition.
1417 * frame.h (unwind_stop_reason_to_string): Extend comment to
1418 mention frame_stop_reason_string.
1419 (frame_stop_reason_string): New function declaration.
1420 * stack.c (frame_info): Switch to frame_stop_reason_string.
1421 (backtrace_command_1): Switch to frame_stop_reason_string.
1422 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1423 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1424 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1426 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1428 * frame.c (frame_stop_reason_string): Rename to ...
1429 (unwind_stop_reason_to_string): this.
1430 * frame.h (frame_stop_reason_string): Rename to ...
1431 (unwind_stop_reason_to_string): this.
1432 * stack.c (frame_info): Update call to frame_stop_reason_string.
1433 (backtrace_command_1): Likewise.
1434 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1435 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1437 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1439 * frame.c (remove_prev_frame): New function.
1440 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1443 2014-05-29 Pedro Alves <palves@redhat.com>
1445 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1446 and make it const. When a single-step decays to a continue,
1447 clear 'step', not 'hw_step'. Pass whether the caller wanted
1448 to step to user_visible_resume_ptid, not what we ask the
1451 2014-05-29 Pedro Alves <palves@redhat.com>
1453 * infrun.c (process_event_stop_test, handle_step_into_function)
1454 (handle_step_into_function_backward): Adjust.
1455 Don't set the even thread's stop_step and call stop_waiting before
1456 calling end_stepping_range. Instead do that ...
1457 (end_stepping_range): ... here. Take an ecs pointer parameter.
1459 2014-05-29 Pedro Alves <palves@redhat.com>
1461 * infrun.c (stop_stepping): Rename to ...
1462 (stop_waiting): ... this.
1463 (proceed): Update comment.
1464 (process_event_stop_test, handle_inferior_event)
1465 (handle_signal_stop, handle_step_into_function)
1466 (handle_step_into_function_backward): Update.
1468 2014-05-29 Pedro Alves <palves@redhat.com>
1470 * infcall.c (run_inferior_call): Don't check whether the current
1471 thread is running after the proceed call.
1473 2014-05-29 Pedro Alves <palves@redhat.com>
1474 Tom Tromey <tromey@redhat.com>
1476 * NEWS: Mention "maint set target-async", "set mi-async", and that
1477 background execution commands are now always available.
1478 * target.h (target_async_permitted): Update comment.
1479 * target.c (target_async_permitted, target_async_permitted_1):
1481 (set_target_async_command): Rename to ...
1482 (maint_set_target_async_command): ... this.
1483 (show_target_async_command): Rename to ...
1484 (maint_show_target_async_command): ... this.
1485 (_initialize_target): Adjust.
1486 * infcmd.c (prepare_execution_command): Make extern.
1487 * inferior.h (prepare_execution_command): Declare.
1488 * infrun.c (set_observer_mode): Leave target async alone.
1489 * mi/mi-interp.c (mi_interpreter_init): Install
1490 mi_on_sync_execution_done as sync_execution_done observer.
1491 (mi_on_sync_execution_done): New function.
1492 (mi_execute_command_input_handler): Don't print the prompt if we
1493 just started a synchronous command with an async target.
1494 (mi_on_resume): Check sync_execution before printing prompt.
1495 * mi/mi-main.h (mi_async_p): Declare.
1496 * mi/mi-main.c: Include gdbcmd.h.
1497 (mi_async_p): New function.
1498 (mi_async, mi_async_1): New globals.
1499 (set_mi_async_command, show_mi_async_command, mi_async): New
1501 (exec_continue): Call prepare_execution_command.
1502 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1503 (mi_execute_async_cli_command): Use mi_async_p.
1504 (_initialize_mi_main): Install "set mi-async". Make
1505 "target-async" a deprecated alias.
1507 2014-05-29 Pedro Alves <palves@redhat.com>
1509 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1510 (_initialize_cli_interp): Adjust.
1511 * event-loop.c: Include "observer.h".
1512 (start_event_loop): Notify 'command_error' observers instead of
1513 calling display_gdb_prompt. Remove FIXME comment.
1514 * event-top.c (display_gdb_prompt): Remove call into the
1516 * inf-loop.c: Include "observer.h".
1517 (inferior_event_handler): Notify 'command_error' observers instead
1518 of calling display_gdb_prompt.
1519 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1520 observers instead of calling display_gdb_prompt.
1521 * interps.c (interp_set): Don't call display_gdb_prompt.
1522 (current_interp_display_prompt_p): Delete.
1523 * interps.h (interp_prompt_p): Delete declaration.
1524 (interp_prompt_p_ftype): Delete.
1525 (struct interp_procs) <prompt_proc_p>: Delete field.
1526 (current_interp_display_prompt_p): Delete declaration.
1527 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1528 (_initialize_mi_interp): Adjust.
1529 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1530 'command_error' observers.
1531 (tui_on_sync_execution_done, tui_on_command_error): New
1533 (tui_display_prompt_p): Delete.
1534 (_initialize_tui_interp): Adjust.
1536 2014-05-29 Pedro Alves <palves@redhat.com>
1539 * cli/cli-interp.c: Include infrun.h and observer.h.
1540 (cli_uiout, cli_interp): New globals.
1541 (cli_on_signal_received, cli_on_end_stepping_range)
1542 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1544 (cli_interpreter_init): Install them as 'end_stepping_range',
1545 'signal_received' 'signal_exited', 'exited' and 'no_history'
1547 (_initialize_cli_interp): Remove cli_interp local.
1548 * infrun.c (handle_inferior_event): Call the several stop reason
1549 observers instead of printing the stop reason directly.
1550 (end_stepping_range): New function.
1551 (print_end_stepping_range_reason, print_signal_exited_reason)
1552 (print_exited_reason, print_signal_received_reason)
1553 (print_no_history_reason): Make static, and add an uiout
1554 parameter. Print to that instead of to CURRENT_UIOUT.
1555 * infrun.h (print_end_stepping_range_reason)
1556 (print_signal_exited_reason, print_exited_reason)
1557 (print_signal_received_reason print_no_history_reason): New
1559 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1561 <cli_uiout>: New field.
1562 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1563 uiout for CLI output. Install 'signal_received',
1564 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1566 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1567 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1568 (mi_on_no_history): New functions.
1569 (ui_out_free_cleanup): Delete function.
1570 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1571 instead use the one already stored in the MI interpreter data.
1572 (mi_ui_out): Adjust.
1573 * tui/tui-interp.c: Include infrun.h and observer.h.
1574 (tui_interp): New global.
1575 (tui_on_signal_received, tui_on_end_stepping_range)
1576 (tui_on_signal_exited, tui_on_exited)
1577 (tui_on_no_history): New functions.
1578 (tui_init): Install them as 'end_stepping_range',
1579 'signal_received' 'signal_exited', 'exited' and 'no_history'
1581 (_initialize_tui_interp): Delete tui_interp local.
1583 2014-05-29 Pedro Alves <palves@redhat.com>
1586 * linux-nat.c (linux_nat_resume_callback): Rename the second
1587 parameter to 'except'. Skip LP if it points to EXCEPT.
1588 (linux_nat_resume): Don't mark the event lwp as not stopped
1589 before resuming sibling lwps. Instead ask
1590 linux_nat_resume_callback to skip the event lwp. Mark it as not
1591 stopped after actually resuming it.
1592 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1594 (wait_lwp): Mark the lwp as stopped here.
1595 (stop_wait_callback): Mark the lwp as not stopped right after
1596 resuming it. Don't mark lwps as stopped here.
1597 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1598 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1600 2014-05-29 Pedro Alves <palves@redhat.com>
1603 * infrun.c (resume): Determine how much to resume depending on
1604 whether the caller wanted a step, not whether we can hardware step
1605 the target. Mark all threads that we intend to run as running,
1606 unless we're calling an inferior function.
1607 (normal_stop): If the thread is running an infcall, don't finish
1609 * target.c (target_resume): Don't mark threads as running here.
1611 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1613 * serial.c (_initialize_serial): Remove support for
1614 the "set remotebaud" and "show remotebaud" commands.
1615 * NEWS: Add entry documenting the removal of that command.
1617 2014-05-28 Yao Qi <yao@codesourcery.com>
1619 * charset.c: Fix typo in comments.
1621 2014-05-27 Gary Benson <gbenson@redhat.com>
1623 * utils.c (internal_vproblem): Prompt for a bug report.
1625 2014-05-26 Andy Wingo <wingo@igalia.com>
1627 * guile/scm-arch.c (arscm_mark_arch_smob):
1628 * guile/scm-block.c (bkscm_mark_block_smob)
1629 (bkscm_mark_block_syms_progress_smob):
1630 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1631 * guile/scm-exception.c (exscm_mark_exception_smob):
1632 * guile/scm-frame.c (frscm_mark_frame_smob):
1633 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1634 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1635 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1636 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1637 (ppscm_mark_pretty_printer_worker_smob):
1638 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1639 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1640 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1641 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1643 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1646 2014-05-26 Andy Wingo <wingo@igalia.com>
1647 Doug Evans <xdje42@gmail.com>
1649 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1650 empty_base_class. All uses updated.
1651 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1652 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1654 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1655 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1656 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1657 (gdbscm_gsmob_has_property_p, add_property_name)
1658 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1659 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1660 (gdb-object-has-property?, gdb-object-properties): Remove.
1661 (gdb-object-kind): Renamed from gsmob-kind.
1663 2014-05-26 Andy Wingo <wingo@igalia.com>
1665 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1666 * configure: Regenerate.
1668 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1670 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1672 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1674 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1675 (replay_memory_access_read_only, replay_memory_access_read_write)
1676 (replay_memory_access_types, replay_memory_access)
1677 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1678 (cmd_set_record_btrace, cmd_show_record_btrace)
1679 (cmd_show_replay_memory_access): New.
1680 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1681 (record_btrace_remove_breakpoint): Replace
1682 record_btrace_allow_memory_access with replay_memory_access.
1683 (_initialize_record_btrace): Add commands.
1684 * NEWS: Announce it.
1686 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1688 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1690 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1692 * MAINTAINERS (Write After Approval): Move self back from
1695 2014-05-22 Pedro Alves <palves@redhat.com>
1697 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1698 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1699 (disable_randomization, enum exec_direction_kind)
1700 (execution_direction, stop_registers, start_remote)
1701 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1702 (wait_for_inferior, normal_stop, get_last_target_status)
1703 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1704 (insert_step_resume_breakpoint_at_sal)
1705 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1706 (set_step_info, print_stop_event, signal_stop_state)
1707 (signal_print_state, signal_pass_state, signal_stop_update)
1708 (signal_print_update, signal_pass_update)
1709 (update_signals_program_target, clear_exit_convenience_vars)
1710 (displaced_step_dump_bytes, update_observer_mode)
1711 (signal_catch_update, gdb_signal_from_command): Move
1713 * infrun.h: ... to this new file.
1714 * amd64-tdep.c: Include infrun.h.
1715 * annotate.c: Include infrun.h.
1716 * arch-utils.c: Include infrun.h.
1717 * arm-linux-tdep.c: Include infrun.h.
1718 * arm-tdep.c: Include infrun.h.
1719 * break-catch-sig.c: Include infrun.h.
1720 * breakpoint.c: Include infrun.h.
1721 * common/agent.c: Include infrun.h instead of inferior.h.
1722 * corelow.c: Include infrun.h.
1723 * event-top.c: Include infrun.h.
1724 * go32-nat.c: Include infrun.h.
1725 * i386-tdep.c: Include infrun.h.
1726 * inf-loop.c: Include infrun.h.
1727 * infcall.c: Include infrun.h.
1728 * infcmd.c: Include infrun.h.
1729 * infrun.c: Include infrun.h.
1730 * linux-fork.c: Include infrun.h.
1731 * linux-nat.c: Include infrun.h.
1732 * linux-thread-db.c: Include infrun.h.
1733 * monitor.c: Include infrun.h.
1734 * nto-tdep.c: Include infrun.h.
1735 * procfs.c: Include infrun.h.
1736 * record-btrace.c: Include infrun.h.
1737 * record-full.c: Include infrun.h.
1738 * remote-m32r-sdi.c: Include infrun.h.
1739 * remote-mips.c: Include infrun.h.
1740 * remote-notif.c: Include infrun.h.
1741 * remote-sim.c: Include infrun.h.
1742 * remote.c: Include infrun.h.
1743 * reverse.c: Include infrun.h.
1744 * rs6000-tdep.c: Include infrun.h.
1745 * s390-linux-tdep.c: Include infrun.h.
1746 * solib-irix.c: Include infrun.h.
1747 * solib-osf.c: Include infrun.h.
1748 * solib-svr4.c: Include infrun.h.
1749 * target.c: Include infrun.h.
1750 * top.c: Include infrun.h.
1751 * windows-nat.c: Include infrun.h.
1752 * mi/mi-interp.c: Include infrun.h.
1753 * mi/mi-main.c: Include infrun.h.
1754 * python/py-threadevent.c: Include infrun.h.
1756 2014-05-22 Pedro Alves <palves@redhat.com>
1758 * infrun.c (handle_inferior_event): Store the exit code for
1759 --return-child-result here, instead of ...
1760 (print_exited_reason): ... here.
1762 2014-05-21 Pedro Alves <palves@redhat.com>
1765 * gdbthread.h (struct thread_control_state): New field
1767 * infrun.c (follow_fork): Copy the new thread control field to the
1769 (clear_proceed_status_thread): Clear the new thread control field.
1770 (proceed): Set the new thread control field.
1771 * interps.h (command_interp): Declare.
1772 * interps.c (command_interpreter): New global.
1773 (command_interp): New function.
1774 (interp_exec): Set `command_interpreter' while here.
1775 * cli-out.c (cli_uiout_dtor): New function.
1776 (cli_ui_out_impl): Install it.
1777 * mi/mi-interp.c: Include cli-out.h.
1778 (mi_cmd_interpreter_exec): Add comment.
1779 (restore_current_uiout_cleanup): New function.
1780 (ui_out_free_cleanup): New function.
1781 (mi_on_normal_stop): If finishing an execution command started by
1782 a CLI command, or any kind of breakpoint-like event triggered,
1783 print the stop event to the output (CLI) stream.
1784 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1786 2014-05-21 Pedro Alves <palves@redhat.com>
1788 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1789 current source line having changed.
1790 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1791 * infrun.c (normal_stop): Adjust call to
1792 set_current_sal_from_frame.
1793 * source.c (clear_lines_listed_range): New function.
1794 (set_current_source_symtab_and_line, identify_source_line): Clear
1795 the lines listed range.
1796 (line_info): Handle the first "info line" after the current source
1797 line having changed.
1798 * stack.c (print_stack_frame): Remove center handling.
1799 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1802 2014-05-21 Pedro Alves <palves@redhat.com>
1804 * inf-child.c (inf_child_mourn_inferior): New function.
1805 * inf-child.h (inf_child_mourn_inferior): New declaration.
1806 * darwin-nat.c (darwin_mourn_inferior): Use
1807 inf_child_mourn_inferior.
1808 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1809 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1810 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1811 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1812 * windows-nat.c (windows_mourn_inferior): Likewise.
1814 2014-05-21 Doug Evans <xdje42@gmail.com>
1816 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1818 2014-05-21 Doug Evans <xdje42@gmail.com>
1820 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1821 (gdbscm_out_of_range_error): Ditto.
1822 (gdbscm_memory_error): Ditto.
1823 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1824 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1825 (gdbscm_out_of_range_error): Update.
1826 (gdbscm_memory_error): Update.
1827 (gdbscm_scm_to_target_string_unsafe): Delete.
1829 2014-05-21 Pedro Alves <palves@redhat.com>
1831 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1833 (inf_child_open_target): New function.
1834 (inf_child_open): Use inf_child_open_target to push the target
1835 instead of erroring out.
1836 (inf_child_disconnect, inf_child_close)
1837 (inf_child_maybe_unpush_target): New functions.
1838 (inf_child_target): Install inf_child_disconnect and
1839 inf_child_close. Store a pointer to the returned object.
1840 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1842 * target.c (auto_connect_native_target): New global.
1843 (show_default_run_target): New function.
1844 (find_default_run_target): Return NULL if automatically connecting
1845 to the native target is disabled.
1846 (_initialize_target): Install set/show auto-connect-native-target.
1847 * NEWS: Mention "set auto-connect-native-target", and "target
1849 * linux-nat.c (super_close): New global.
1850 (linux_nat_close): Call super_close.
1851 (linux_nat_add_target): Store a pointer to the base class's
1853 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1854 inf_child_maybe_unpush.
1855 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1857 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1858 the inferior. Use inf_child_maybe_unpush_target.
1859 (inf_ttrace_attach): Don't push the target if it is already
1861 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1862 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1863 after mourning the inferior. Use inf_child_maybe_unpush_target.
1864 (darwin_attach_pid): Don't push the target if it is already
1866 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1867 mourning the inferior. Use inf_child_maybe_unpush_target.
1868 (gnu_detach): Use inf_child_maybe_unpush_target.
1869 * go32-nat.c (go32_create_inferior): Don't push the target if it
1871 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1872 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1873 (procfs_open): Rename to ...
1874 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1875 comments. Can target_preopen before changing node. Call
1876 inf_child_open_target to push the target explicitly.
1877 (procfs_attach): Don't push the target if it is already pushed.
1878 (procfs_detach): Use inf_child_maybe_unpush_target.
1879 (procfs_create_inferior): Don't push the target if it is already
1881 (nto_native_ops): New global.
1882 (procfs_open): Reimplement.
1883 (procfs_native_open): New function.
1884 (init_procfs_targets): Install procfs_native_open as to_open of
1885 "target native". Store a pointer to the "native" target in
1887 * procfs.c (procfs_attach): Don't push the target if it is already
1889 (procfs_detach): Use inf_child_maybe_unpush_target.
1890 (procfs_mourn_inferior): Only unpush the target after mourning the
1891 inferior. Use inf_child_maybe_unpush_target.
1892 (procfs_init_inferior): Don't push the target if it is already
1894 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1895 if it is already pushed.
1897 2014-05-21 Pedro Alves <palves@redhat.com>
1899 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1900 and "procfs" targets are now called "native" instead.
1902 2014-05-21 Pedro Alves <palves@redhat.com>
1904 * go32-nat.c (go32_open): Delete.
1905 (go32_target): Don't override the to_open method.
1907 2014-05-21 Pedro Alves <palves@redhat.com>
1909 * nto-procfs.c (procfs_can_run): New function.
1910 (nto_procfs_ops): New global.
1911 (init_procfs_targets): New, based on procfs_target. Install
1912 "target native" in addition to "target procfs".
1913 (_initialize_procfs): Call init_procfs_targets instead of adding
1916 2014-05-21 Pedro Alves <palves@redhat.com>
1918 * windows-nat.c (windows_target): Don't override to_shortname,
1919 to_longname or to_doc.
1921 2014-05-21 Pedro Alves <palves@redhat.com>
1923 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1926 2014-05-21 Pedro Alves <palves@redhat.com>
1928 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1929 to_shortname, to_longname or to_doc.
1931 2014-05-21 Pedro Alves <palves@redhat.com>
1933 * go32-nat.c (go32_target): Don't override to_shortname,
1934 to_longname or to_doc.
1936 2014-05-21 Pedro Alves <palves@redhat.com>
1938 * inf-child.c (inf_child_open): Remove mention of "child".
1939 (inf_child_target): Rename target to "native" instead of "child".
1941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1943 * Makefile.in (SFILES): Delete "regset.c".
1944 (COMMON_OBS): Delete "regset.o".
1946 * regset.h (regset_alloc): Delete prototype.
1948 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1950 * sparc-linux-tdep.c (sparc32_linux_gregset)
1951 (sparc32_linux_fpregset): New static regset structures.
1952 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1953 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1955 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1956 (sparc64_linux_fpregset): New static regset structures.
1957 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1958 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1959 New static regset structures.
1960 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1961 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1962 New static regset structures.
1963 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1964 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1965 New static regset structures.
1966 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1967 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1968 New static regset structures.
1969 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1971 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1973 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1974 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1975 register maps ("regmaps") from "*regset" to "*regmap". Do this
1976 for all regmap types and variables.
1977 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1978 (sparc32_linux_supply_core_gregset)
1979 (sparc32_linux_collect_core_gregset)
1980 (sparc32_linux_supply_core_fpregset)
1981 (sparc32_linux_collect_core_fpregset): Likewise.
1982 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1983 (sparc_gregmap, sparc_fpregmap): ... these.
1984 (sparc_supply_gregset, sparc_collect_gregset)
1985 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1986 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1987 (_initialize_sparc_nat): Rename regmaps.
1988 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1989 (sparc_gregmap, sparc_fpregmap): ... these.
1990 (sparc_supply_gregset, sparc_collect_gregset)
1991 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1992 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1994 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1995 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1997 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1999 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2000 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2001 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2003 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2004 (sparc32_bsd_fpregset): Rename to...
2005 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2006 (sparc32_bsd_fpregmap): ... these.
2007 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2008 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2009 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2010 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2011 (struct sparc_gregmap, struct sparc_fpregmap)
2012 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2013 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2014 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2015 (sparc32_supply_regset, sparc32_collect_gregset)
2016 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2018 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2019 (sparc64_linux_ptrace_gregmap): ... this.
2020 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2021 (_initialize_sparc64_linux_nat): Rename regmaps.
2022 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2023 (sparc64_linux_core_gregmap): ... this.
2024 (sparc64_linux_supply_core_gregset)
2025 (sparc64_linux_collect_core_gregset)
2026 (sparc64_linux_supply_core_fpregset)
2027 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2028 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2029 (sparc64_sol2_fpregset): Rename to...
2030 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2031 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2032 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2034 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2035 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2036 (sparc64_bsd_fpregset): Rename to...
2037 (struct sparc_gregmap, sparc64_sol2_gregmap)
2038 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2039 (sparc64_bsd_fpregmap): ... these.
2040 (sparc64_supply_gregset, sparc64_collect_gregset)
2041 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2043 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2044 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2045 (sparc64fbsd_gregmap): ... this.
2046 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2047 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2049 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2050 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2051 (sparc64nbsd_collect_fpregset): Likewise.
2052 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2053 (sparc64nbsd_gregmap): ... this.
2054 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2056 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2057 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2058 (sparc64obsd_gregmap): ... this.
2059 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2061 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2062 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2063 (sparc32nbsd_gregmap): ... this.
2064 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2067 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2069 * score-tdep.c (score7_linux_gregset): New static regset
2071 (score7_linux_regset_from_core_section): Remove dynamic regset
2073 (score_gdbarch_init): Drop allocation of tdep structure.
2074 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2076 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2080 (am33_regset_from_core_section): Remove dynamic regset
2083 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2086 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2088 (mips_linux_regset_from_core_section): Remove dynamic regset
2090 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2091 'gregset64', 'fpregset', and 'fpregset64'.
2092 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2093 deleted tdep fields.
2095 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2099 (amd64_regset_from_core_section): Remove dynamic regset
2101 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2103 (amd64obsd_regset_from_core_section): Remove dynamic regset
2105 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2107 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2108 x86-common regset supply function.
2109 * i386-tdep.c (i386_collect_gregset): Make static.
2110 (i386_gregset): New global regset structure.
2111 (i386_fpregset, i386_xstateregset): New static regset structures.
2112 (i386_regset_from_core_section): Remove dynamic regset
2114 (i386_gdbarch_init): Remove initialization of tdep fields
2115 'gregset', 'fpregset', and 'xstateregset'.
2116 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2117 'fpregset', and 'xstateregset'.
2118 (i386_collect_gregset): Remove prototype.
2119 (i386_gregset): New declaration.
2120 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2122 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2125 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2127 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2128 (arm_linux_vfpregset): New static regset structures.
2129 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2131 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2132 and 'vfpregset' fields.
2134 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2136 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2137 (aarch64_linux_fpregset): New static regset structures.
2138 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2139 of regset structures.
2140 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2143 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2145 * regset.h (struct regset): Remove gdbarch field.
2146 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2147 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2148 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2150 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2151 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2152 (ppc32_linux_vsxregset): Likewise.
2153 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2154 via the regcache instead of the regset.
2155 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2156 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2157 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2158 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2161 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2164 Constify structures.
2165 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2166 (alphanbsd_aout_gregset): Likewise.
2167 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2168 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2170 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2171 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2173 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2174 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2175 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2176 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2177 * m88k-tdep.c (m88k_gregset): Likewise.
2178 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2179 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2180 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2181 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2182 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2183 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2184 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2185 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2186 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2188 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2189 * sh-tdep.h (sh_corefile_gregset): Likewise.
2190 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2191 * vax-tdep.c (vax_gregset): Likewise.
2193 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2195 Fix TLS access for -static -pthread.
2196 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2197 (try_thread_db_load_1): Initialize it.
2198 (thread_db_get_thread_local_address): Call it if LM is zero.
2199 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2200 * target.h (struct target_ops) (to_get_thread_local_address): Add
2201 load_module_addr comment.
2203 2014-05-21 Pedro Alves <palves@redhat.com>
2205 * dcache.c (dcache_read_memory_partial): If reading the cache line
2206 fails, fallback to reading just the memory the caller wanted.
2208 2014-05-20 Doug Evans <dje@google.com>
2210 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2211 instead of get_current_arch.
2213 2014-05-20 Pedro Alves <palves@redhat.com>
2215 * NEWS: Mention that compare-sections now works with all targets.
2217 * remote.c (PACKET_qCRC): New enum value.
2218 (remote_verify_memory): Don't send qCRC if the target has no
2219 execution. Use packet_support/packet_ok. If the target doesn't
2220 support the qCRC packet, fallback to a deep memory copy.
2221 (compare_sections_command): Say "target image" instead of "remote
2223 (_initialize_remote): Add PACKET_qCRC to the list of config
2224 packets that have no associated command. Extend comment.
2225 * target.c (simple_verify_memory, default_verify_memory): New
2227 * target.h (struct target_ops) <to_verify_memory>: Default to
2228 default_verify_memory.
2229 (simple_verify_memory): New declaration.
2230 * target-delegates.c: Regenerate.
2232 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2234 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2236 2014-05-20 Hui Zhu <hui@codesourcery.com>
2237 Yao Qi <yao@codesourcery.com>
2240 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2241 and change address of sp and pc.
2243 2014-05-19 Tom Tromey <tromey@redhat.com>
2245 * gdbtypes.c (rank_function): Use XNEWVEC.
2246 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2248 2014-05-19 Doug Evans <dje@google.com>
2250 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2251 build_type_unit_groups and moved closer to only caller. Remove
2252 arguments. All references updated. Remove outdated .gdb_index
2254 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2255 build_type_psymtabs_1.
2257 2014-05-19 Doug Evans <dje@google.com>
2259 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2260 n_type_unit_groups, all_type_unit_groups. All uses removed.
2261 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2262 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2263 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2264 (add_type_unit_group_to_table): Delete.
2266 2014-05-19 Doug Evans <dje@google.com>
2268 * eval.c (evaluate_subexp_standard): Add some comments.
2270 2014-05-17 Doug Evans <xdje42@gmail.com>
2272 * progspace.c (remove_program_space): Delete, unused.
2273 * progspace.h (remove_program_space): Ditto.
2275 2014-05-17 Doug Evans <xdje42@gmail.com>
2277 * inferior.c (prune_inferiors): Fix comment.
2278 (remove_inferior_command): Call prune_program_spaces.
2280 2014-05-16 Doug Evans <dje@google.com>
2282 New command line option -D.
2284 * main.c (set_gdb_data_directory): New function.
2285 (captured_main): Recognize -D. Flag error for --data-directory "".
2286 Call set_gdb_data_directory.
2287 (print_gdb_help): Print --data-directory, -D.
2288 * main.h (set_gdb_data_directory): Declare.
2289 * top.c (staged_gdb_datadir): New static global.
2290 (set_gdb_datadir): Call set_gdb_data_directory
2291 (show_gdb_datadir): New function.
2292 (init_main): Update init of data-directory parameter.
2294 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2296 Import the "dirfd" gnulib module.
2297 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2298 * gnulib/aclocal.m4: Update.
2299 * gnulib/config.in: Update.
2300 * gnulib/configure: Update.
2301 * gnulib/import/Makefile.am: Update.
2302 * gnulib/import/Makefile.in: Update.
2303 * gnulib/import/dirfd.c: New.
2304 * gnulib/import/m4/dirfd.m4: New.
2305 * gnulib/import/m4/gnulib-cache.m4: Update.
2306 * gnulib/import/m4/gnulib-comp.m4: Update.
2308 2014-05-16 Pierre Muller <muller@sourceware.org>
2309 Yao Qi <yao@codesourcery.com>
2311 * valprint.c (print_wchar): Move the code on checking whether
2312 W is a printable wide char to the default branch of switch
2313 statement below. Call wchar_printable instead of gdb_iswprint.
2315 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2317 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2318 ldr.w and ldrd instructions.
2320 2014-05-15 Doug Evans <dje@google.com>
2322 * dwarf2read.c (read_structure_type): Delete outdated comments.
2324 2014-05-14 Tom Tromey <tromey@redhat.com>
2326 * macrocmd.c (print_macro_definition): Reindent.
2328 2014-05-13 Doug Evans <xdje42@gmail.com>
2330 * python/py-cmd.c (cmdpy_completer): Add comment.
2331 (completers): Make const.
2333 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2335 * infrun.c (resume): Remove should_resume (unused). Move up
2336 declaration of resume_ptid.
2338 2014-05-13 Tom Tromey <tromey@redhat.com>
2340 * language.h (unop_type_check): Remove.
2341 (binop_type_check): Don't declare.
2343 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2345 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2346 call to regcache_raw_collect.
2348 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2350 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2351 mi_console->quote as the quoting character.
2353 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2355 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2357 2014-04-29 Tom Tromey <tromey@redhat.com>
2359 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2360 "show debug varobj".
2362 2014-05-07 Kyle McMartin <kyle@redhat.com>
2364 Pushed by Joel Brobecker <brobecker@adacore.com>.
2365 * aarch64-tdep.c (aarch64_software_single_step): New function.
2366 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2367 with aarch64_software_single_step.
2369 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2373 2014-05-05 Keith Seitz <keiths@redhat.com>
2375 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2376 variable or history value is successfully parsed.
2378 2014-05-05 Yao Qi <yao@codesourcery.com>
2379 Pedro Alves <palves@redhat.com>
2381 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2382 address of blocks that intersects the requested range. Trim
2383 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2385 * ctf.c (ctf_xfer_partial): Likewise.
2387 2014-05-05 Yao Qi <yao@codesourcery.com>
2389 * printcmd.c (display_command): Remove the check to
2390 target_has_execution.
2392 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2394 * ppcobsd-nat.c: Include "obsd-nat.h".
2395 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2397 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2399 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2401 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2402 and 16-bit signed and unsigned arguments. Update comment.
2403 (stap_parse_probe_arguments): Extend code to handle such
2404 arguments. Use warning instead of complaint to notify about
2405 unrecognized bitness.
2407 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2409 PR breakpoints/16889
2410 * stap-probe.c (stap_parse_probe_arguments): Simplify
2411 check for non-prefixed probes (i.e., probes whose
2412 arguments do not start with "N@"). Always set the
2413 argument type to a sane value.
2415 2014-05-01 David Taylor <dtaylor@emc.com>
2417 * remote.c (compare_sections_command): Add -r option to compare
2418 all loadable read-only sections.
2420 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2422 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2423 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2425 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2426 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2427 Remove unused CORE_ADDR argument. Update all callers.
2429 2014-04-29 Pedro Alves <palves@redhat.com>
2431 * remote.c (struct packet_config) <detect>: Extend comment.
2432 (add_packet_config_cmd): Don't set the config's detect or support
2434 (init_all_packet_configs): Also initialize the config's 'detect'
2436 (reset_all_packet_configs_support): New function.
2437 (remote_open_1): Call reset_all_packet_configs_support instead of
2438 init_all_packet_configs.
2439 (_initialize_remote): Initialize all packet configs. Assert that
2440 all packets have an associated command, except a few known
2443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2445 * dwarf2read.c (read_subrange_type): Handle dynamic
2446 DW_AT_lower_bound attributes.
2448 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2450 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2451 dynamic bounds before computing its upper bound.
2452 (ada_discrete_type_low_bound): Same as above with the lower bound.
2454 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2456 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2457 range types. Adjust the array handling implementation to
2458 take advantage of this change.
2459 (resolve_dynamic_range): New function, mostly extracted from
2460 resolve_dynamic_bounds.
2461 (resolve_dynamic_array): New function, mostly extracted from
2462 resolve_dynamic_bounds.
2463 (resolve_dynamic_bounds): Delete.
2464 (resolve_dynamic_type): Reimplement. Add handling of
2465 TYPE_CODE_RANGE types.
2467 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2469 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2470 handling of parallel ___XA types.
2472 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2474 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2475 unnecessary second call to static_unwrap_type.
2477 2014-04-27 Hui Zhu <hui@codesourcery.com>
2479 * stack.c (print_frame_info): Call do_gdb_disassembly with
2480 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2482 2014-04-26 Doug Evans <xdje42@gmail.com>
2484 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2486 2014-04-25 Pedro Alves <palves@redhat.com>
2489 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2490 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2491 and newline from built string.
2492 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2493 (linux_ptrace_attach_fail_reason): ... this.
2494 * linux-nat.c (linux_nat_attach): Adjust to use
2495 linux_ptrace_attach_fail_reason.
2497 2014-04-25 Pedro Alves <palves@redhat.com>
2499 * remote.c (struct remote_state): Remove multi_process_aware,
2500 non_stop_aware, cond_tracepoints, cond_breakpoints,
2501 breakpoint_commands, fast_tracepoints, static_tracepoints,
2502 install_in_trace, disconnected_tracing,
2503 enable_disable_tracepoints, string_tracing, and
2504 augmented_libraries_svr4_read fields.
2505 (remote_multi_process_p): Move further below in the file.
2506 (struct packet_config): Add comments.
2507 (update_packet_config): Delete function.
2508 (show_packet_config_cmd): Use packet_config_support.
2509 (add_packet_config_cmd): Use NULL as set callback.
2510 (packet_ok): "set remote foo-packet"-style commands no longer
2511 change config->supported -- adjust.
2512 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2513 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2514 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2515 (PACKET_QNonStop, PACKET_multiprocess_feature)
2516 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2517 (PACKET_DisconnectedTracing_feature)
2518 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2519 (set_remote_protocol_packet_cmd): Delete function.
2520 (packet_config_support, packet_support): New functions.
2521 (set_remote_protocol_Z_packet_cmd): Don't call
2522 update_packet_config.
2523 (remote_query_attached, remote_pass_signals)
2524 (remote_program_signals, remote_threads_info)
2525 (remote_threads_extra_info, remote_start_remote): Use
2527 (remote_start_remote): Use packet_config_support and
2529 (init_all_packet_configs): Set all packets to unknown support,
2530 instead of calling update_packet_config.
2531 (remote_check_symbols): Use packet_support.
2532 (remote_supported_packet): Unconditionally set the packet config's
2534 (remote_multi_process_feature, remote_non_stop_feature)
2535 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2536 (remote_breakpoint_commands_feature)
2537 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2538 (remote_install_in_trace_feature)
2539 (remote_disconnected_tracing_feature)
2540 (remote_enable_disable_tracepoint_feature)
2541 (remote_string_tracing_feature)
2542 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2543 (remote_protocol_features): Adjust to use remote_supported_packet
2544 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2545 "ConditionalTracepoints", "ConditionalBreakpoints",
2546 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2547 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2548 "EnableDisableTracepoints", and "tracenz".
2549 (remote_query_supported): Use packet_support.
2550 (remote_open_1): Adjust.
2551 (extended_remote_attach_1): Use packet_support. Switch on the
2552 result of packet_ok instead of checking whether the packet ended
2554 (remote_vcont_resume): Use packet_support.
2555 (remote_resume, remote_stop_ns, fetch_register_using_p)
2556 (remote_prepare_to_store, store_register_using_P)
2557 (check_binary_download, remote_write_bytes): Use packet_support.
2558 (remote_vkill): Use packet_support. Switch on the result of
2559 packet_ok instead of checking whether the packet ended up
2561 (extended_remote_supports_disable_randomization): Use
2563 (extended_remote_run): Switch on the result of packet_ok instead
2564 of checking whether the packet ended up disabled.
2565 (remote_insert_breakpoint, remote_remove_breakpoint)
2566 (remote_insert_watchpoint, remote_remove_watchpoint)
2567 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2569 (remote_search_memory): Use packet_config_support.
2570 (remote_get_thread_local_address, remote_get_tib_address)
2571 (remote_hostio_send_command, remote_can_execute_reverse): Use
2573 (remote_supports_cond_tracepoints)
2574 (remote_supports_cond_breakpoints)
2575 (remote_supports_fast_tracepoints)
2576 (remote_supports_static_tracepoints)
2577 (remote_supports_install_in_trace)
2578 (remote_supports_enable_disable_tracepoint)
2579 (remote_supports_string_tracing)
2580 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2581 the packet config says the feature is enabled or disabled.
2582 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2583 (remote_get_trace_status): Use packet_support.
2584 (remote_set_disconnected_tracing): Adjust to check whether the
2585 feature is enabled with packet_support.
2586 (remote_set_trace_buffer_size, remote_use_agent)
2587 (remote_can_use_agent, remote_supports_btrace): Use
2589 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2590 Use packet_config_support.
2591 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2592 the packet config says the feature is enabled or disabled.
2593 (set_range_stepping): Use packet_support.
2595 2014-04-25 Tom Tromey <tromey@redhat.com>
2597 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2600 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2602 * NEWS: Mention support for C99 variable length arrays.
2604 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2606 * ada-lang.c (standard_exc): Expand introductory comment.
2608 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2609 Walfred Tedeschi <walfred.tedeschi@intel.com>
2611 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2613 (amd64_linux_read_description): Add code to handle AVX512 xstate
2614 mask and return respective tdesc.
2615 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2616 and features/i386/x32-avx512-linux.c.
2617 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2618 (amd64_linux_core_read_description): Add code to handle AVX512
2619 xstate mask and return respective tdesc.
2620 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2621 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2623 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2624 (tdesc_amd64_avx512_linux): New prototype.
2625 (tdesc_x32_avx512_linux): Likewise.
2626 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2627 features/i386/x32-avx512.c.
2628 (amd64_ymm_avx512_names): New register names for pseudo
2630 (amd64_ymmh_avx512_names): New register names for raw registers
2632 (amd64_k_names): New register names for K registers.
2633 (amd64_zmmh_names): New register names for ZMM raw registers.
2634 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2635 (amd64_xmm_avx512_names): New register names for XMM16-31
2637 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2639 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2640 if feature is present.
2641 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2642 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2643 (AMD64_NUM_REGS): Adjust to new number of registers.
2644 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2645 registers supplied via XSTATE by AVX512 registers.
2646 (i386_linux_read_description): Add case for AVX512.
2647 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2648 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2649 (i386_linux_core_read_description): Add case for AVX512.
2650 (i386_linux_init_abi): Install supported register note section
2652 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2654 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2655 registers to be number of zmm7h + 1.
2656 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2657 * i386-tdep.c: Include features/i386/i386-avx512.c.
2658 (i386_zmm_names): Add ZMM pseudo register names array.
2659 (i386_zmmh_names): Add ZMM raw register names array.
2660 (i386_k_names): Add K raw register names array.
2661 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2662 registers. AVX512 has 16 more ZMM registers than there are YMM
2664 (i386_zmmh_regnum_p): Add function to look up register number of
2666 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2667 (i386_k_regnum_p): Likewise for K raw registers.
2668 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2669 registers added by AVX512.
2670 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2671 registers added by AVX512.
2672 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2674 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2675 (i386_pseudo_register_name): Add ZMM pseudo registers.
2676 (i386_zmm_type): Construct and return vector registers type for ZMM
2678 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2679 ZMM0-31 pseudo registers and K registers.
2680 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2681 and YMM16-31 registers from register cache.
2682 (i386_pseudo_register_write): Add code to write K, ZMM and
2684 (i386_register_reggroup_p): Add code to include/exclude AVX512
2685 registers in/from respective register groups.
2686 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2687 registers if feature is present in xcr0.
2688 (i386_gdbarch_init): Add code to initialize AVX512 feature
2689 variables in tdep structure, wire in pseudo registers and call
2690 initialize_tdesc_i386_avx512.
2691 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2693 (i386_regnum): Add AVX512 registers.
2694 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2695 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2696 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2697 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2699 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2700 (i386_ymm_avx512_regnum_p): Likewise.
2701 (i386_k_regnum_p): Likewise.
2702 (i386_zmm_regnum_p): Likewise.
2703 (i386_zmmh_regnum_p): Likewise.
2704 * i387-tdep.c : Update year in copyright notice.
2705 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2707 (XSAVE_YMM_AVX512_ADDR): New macro.
2708 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2710 (XSAVE_XMM_AVX512_ADDR): New macro.
2711 (xsave_avx512_k_offset): New table for K register offsets in
2713 (XSAVE_AVX512_K_ADDR): New macro.
2714 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2716 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2717 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2719 (i387_collect_xsave): Add code to collect AVX512 registers from
2721 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2722 of XMM16-31 registers.
2723 (I387_NUM_K_REGS): New define for number of K registers.
2724 (I387_K0_REGNUM): New define for K0 register number.
2725 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2726 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2727 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2729 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2730 (I387_XMM16_REGNUM): New define for XMM16 register number.
2731 (I387_YMM0_REGNUM): New define for YMM0 register number.
2732 (I387_KEND_REGNUM): New define for last K register number.
2733 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2734 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2736 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2738 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2740 * features/Makefile: Add AVX512 related files.
2741 * features/i386/32bit-avx512.xml: New file.
2742 * features/i386/64bit-avx512.xml: Likewise.
2743 * features/i386/amd64-avx512-linux.c: Likewise.
2744 * features/i386/amd64-avx512-linux.xml: Likewise.
2745 * features/i386/amd64-avx512.c: Likewise.
2746 * features/i386/amd64-avx512.xml: Likewise.
2747 * features/i386/i386-avx512-linux.c: Likewise.
2748 * features/i386/i386-avx512-linux.xml: Likewise.
2749 * features/i386/i386-avx512.c: Likewise.
2750 * features/i386/i386-avx512.xml: Likewise.
2751 * features/i386/x32-avx512-linux.c: Likewise.
2752 * features/i386/x32-avx512-linux.xml: Likewise.
2753 * features/i386/x32-avx512.c: Likewise.
2754 * features/i386/x32-avx512.xml: Likewise.
2755 * regformats/i386/amd64-avx512-linux.dat: New file.
2756 * regformats/i386/amd64-avx512.dat: Likewise.
2757 * regformats/i386/i386-avx512-linux.dat: Likewise.
2758 * regformats/i386/i386-avx512.dat: Likewise.
2759 * regformats/i386/x32-avx512-linux.dat: Likewise.
2760 * regformats/i386/x32-avx512.dat: Likewise.
2761 * NEWS: Add note about new support for AVX512.
2764 2014-04-23 Pedro Alves <palves@redhat.com>
2766 * breakpoint.c (insert_bp_location): Tolerate errors if the
2767 breakpoint is set in a user-loaded objfile.
2768 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2769 location is marked shlib_disabled. If the breakpoint is set in a
2770 user-loaded objfile is a GDB-side memory breakpoint, validate it
2771 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2772 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2774 * mem-break.c (memory_validate_breakpoint): New function.
2775 * objfiles.c (userloaded_objfile_contains_address_p): New
2777 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2778 * target.h (memory_validate_breakpoint): New declaration.
2780 2014-04-23 Pedro Alves <palves@redhat.com>
2782 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2783 the breakpoint is set in a shared library, only suppress
2784 errors for software breakpoints, not hardware breakpoints.
2786 2014-04-22 Pedro Alves <palves@redhat.com>
2788 * infrun.c (schedlock_applies): New function, factored out from
2789 find_thread_needs_step_over.
2790 (find_thread_needs_step_over): Use it.
2791 (switch_back_to_stepped_thread): Always clear trap_expected if the
2792 step over is finished. Return early if scheduler locking applies.
2793 Look for the stepping thread and a potential step-over thread with
2795 (currently_stepping_or_nexting_callback): Delete.
2797 2014-04-22 Nick Clifton <nickc@redhat.com>
2799 * NEWS: Mention that ARM sim now supports tracing.
2801 2014-04-22 Yao Qi <yao@codesourcery.com>
2803 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2805 * tracefile.c (tracefile_fetch_registers): ... it. New
2807 * tracefile.h (tracefile_fetch_registers): Declare.
2808 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2809 tracefile_fetch_registers.
2811 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2814 * windows-nat.c (thread_rec): Don't display a warning when
2815 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2816 fails for any reason, set th->suspended to -1, so that we don't
2817 try to resume such a thread. Also, don't return NULL in these
2818 cases, to avoid completely ruin the session due to "PC register is
2819 not available" error.
2820 (do_windows_fetch_inferior_registers): Check errors in
2821 GetThreadContext call.
2822 (windows_continue): Accept an additional argument KILLED; if not
2823 zero, ignore errors in the SetThreadContext call, since the
2824 inferior was killed and is shutting down.
2825 (windows_resume, get_windows_debug_event)
2826 (windows_create_inferior, windows_mourn_inferior)
2827 (windows_kill_inferior): All callers of windows_continue changed
2828 to adjust to its new calling sequence.
2830 2014-04-19 Yao Qi <yao@codesourcery.com>
2832 * ctf.c (ctf_open): Call post_create_inferior.
2834 2014-04-19 Yao Qi <yao@codesourcery.com>
2836 * ctf.c (handle_id): New static variable.
2837 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2838 value. Get the declaration of event "register" and get length
2839 of field "contents".
2841 2014-04-19 Yao Qi <yao@codesourcery.com>
2843 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2845 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2847 * valops.c (oload_method_static): Remove unnecessary argument
2848 METHOD. Update all callers.
2850 2014-04-18 Pedro alves <palves@redhat.com>
2851 Tom Tromey <tromey@redhat.com>
2854 * frame.c (get_prev_frame_1): Rename to ...
2855 (get_prev_frame_always): ... this, and make extern. Adjust.
2856 (skip_artificial_frames): Use get_prev_frame_always.
2857 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2858 (get_frame_unwind_stop_reason): Adjust to rename.
2859 * frame.h (get_prev_frame_always): Declare.
2860 * inline-frame.c: Include frame.h.
2861 (inline_frame_this_id): Use get_prev_frame_always.
2863 2014-04-18 Tristan Gingold <gingold@adacore.com>
2865 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2866 code by using bfd_mach_o_get_base_address.
2868 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2870 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2871 (spu_ax_pseudo_register_collect): New function.
2872 (spu_ax_pseudo_register_push_stack): Likewise.
2873 (spu_dwarf_reg_to_regnum): Likewise.
2874 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2876 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2878 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2879 Replace FRAME argument with FRAME_ID.
2880 * gdbarch.c, gdbarch.h: Regenerate.
2881 * findvar.c (default_value_from_register): Add GDBARCH argument;
2882 replace FRAME by FRAME_ID. No longer call get_frame_id.
2883 (value_from_register): Update call to gdbarch_value_from_register.
2884 * value.h (default_value_from_register): Update prototype.
2885 * s390-linux-tdep.c (s390_value_from_register): Update interface
2886 and call to default_value_from_register.
2887 * spu-tdep.c (spu_value_from_register): Likewise.
2889 * findvar.c (address_from_register): Remove TYPE argument.
2890 Do not call value_from_register; use gdbarch_value_from_register
2891 with null_frame_id instead.
2892 * value.h (address_from_register): Update prototype.
2893 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2894 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2895 address_from_register interface change.
2897 2014-04-17 Yao Qi <yao@codesourcery.com>
2899 * gdbtypes.h: Update comments to link to types and macros'
2902 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2904 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2906 2014-04-16 Keith Seitz <keiths@redhat.com>
2909 * dwarf2read.c (skip_one_die): Check that all relative-offset
2910 sibling DIEs fall within range of the current reader's buffer.
2911 (read_partial_die): Likewise.
2913 2014-04-16 Keith Seitz <keiths@redhat.com>
2916 * cp-namespace.c (lookup_symbol_file): If the type name of
2917 `this' is NULL, return immediately.
2919 2014-04-14 Keith Seitz <keiths@redhat.com>
2922 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2923 from symbol_matches_domain in symtab.c. All local callers
2924 of symbol_matches_domain updated.
2925 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2926 search STRUCT_DOMAIN.
2927 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2928 independently. standard_lookup will do that automatically.
2929 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2930 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2931 (cp_lookup_symbol_in_namespace): Likewise.
2932 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2933 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2934 may return a STRUCT_DOMAIN match.
2935 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2936 * cp-support.c: Include language.h.
2937 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2939 * psymtab.c (match_partial_symbol): Compare the requested
2940 domain with the symbol's domain directly.
2941 (lookup_partial_symbol): Likewise.
2942 * symtab.c (lookup_symbol_in_language): Explain when/why
2943 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2944 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2945 appropriate languages.
2946 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2947 and moved to ada-lang.c
2948 (lookup_block_symbol): Explain that this function only returns
2949 symbol matching the requested DOMAIN.
2950 Compare the requested domain with the symbol's domain directly.
2951 (iterate_over_symbols): Compare the requested domain with the
2952 symbol's domain directly.
2953 * symtab.h (symbol_matches_domain): Remove.
2955 2014-04-14 Tom Tromey <tromey@redhat.com>
2958 * c-exp.y (type_aggregate_p): New function.
2959 (qualified_name, classify_inner_name): Use it.
2960 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2961 and TYPE_TARGET_TYPE of an enum type.
2962 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2964 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2965 handle TYPE_DECLARED_CLASS.
2966 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2968 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2969 * valops.c (enum_constant_from_type): New function.
2970 (value_aggregate_elt): Use it.
2971 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2974 2014-04-14 Tom Tromey <tromey@redhat.com>
2976 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2977 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2979 * value.h (value_aggregate_elt): Update.
2981 2014-04-14 Tom Tromey <tromey@redhat.com>
2983 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2987 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2988 (evaluate_subexp_standard): Pass noside argument.
2989 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2990 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2991 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2992 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2993 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2995 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2997 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2998 points to a constant blob.
3000 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3002 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3003 property and store it as the high bound and flag the range accordingly.
3004 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3005 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3006 * gdbtypes.h (enum range_flags): New enum.
3007 (struct range_bounds): Add flags member.
3009 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3011 * c-typeprint.c (c_type_print_varspec_suffix): Added
3012 check for not yet resolved high bound. If unresolved, print
3013 "variable length" string to the console instead of random
3016 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3018 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3020 (ada_template_to_fixed_record_type_1): Likewise.
3021 (ada_to_fixed_type_1): Likewise.
3022 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3023 (cp_print_value): Likewise.
3024 * d-valprint.c (dynamic_array_type): Likewise.
3025 * findvar.c (address_of_variable): Likewise.
3026 * jv-valprint.c (java_value_print): Likewise.
3027 * valops.c (value_ind): Likewise.
3028 * value.c (coerce_ref): Likewise.
3030 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3032 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3033 value and retrieve the dynamic type size.
3035 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3037 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3038 passed to sizeof is dynamic evaluate the argument to compute the length.
3040 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3041 Joel Brobecker <brobecker@adacore.com>
3043 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3044 (dwarf2_evaluate_property): New function.
3045 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3046 * dwarf2read.c (attr_to_dynamic_prop): New function.
3047 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3049 * gdbtypes.c: Include dwarf2loc.h.
3050 (is_dynamic_type): New function.
3051 (resolve_dynamic_type): New function.
3052 (resolve_dynamic_bounds): New function.
3053 (get_type_length): New function.
3054 (check_typedef): Use get_type_length to compute type length.
3055 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3056 (TYPE_LOW_BOUND_KIND): New macro.
3057 (is_dynamic_type): New function prototype.
3058 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3059 to resolve dynamic properties of the type. Update comment.
3060 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3062 2014-04-14 Richard Henderson <rth@redhat.com>
3064 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3066 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3067 Doug Evans <xdje42@gmail.com>
3069 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3070 dereference TYPE_CODE_REF values.
3072 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3074 Revert the following changes due to regressions:
3076 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3077 (dwarf2_evaluate_property): New function.
3078 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3079 * dwarf2read.c (attr_to_dynamic_prop): New function.
3080 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3082 * gdbtypes.c: Include dwarf2loc.h.
3083 (is_dynamic_type): New function.
3084 (resolve_dynamic_type): New function.
3085 (resolve_dynamic_bounds): New function.
3086 (get_type_length): New function.
3087 (check_typedef): Use get_type_length to compute type length.
3088 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3089 (TYPE_LOW_BOUND_KIND): New macro.
3090 (is_dynamic_type): New function prototype.
3091 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3092 to resolve dynamic properties of the type. Update comment.
3093 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3095 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3096 passed to sizeof is dynamic evaluate the argument to compute the length.
3098 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3099 value and retrieve the dynamic type size.
3101 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3102 (ada_template_to_fixed_record_type_1): Likewise.
3103 (ada_to_fixed_type_1): Likewise.
3104 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3105 (cp_print_value): Likewise.
3106 * d-valprint.c (dynamic_array_type): Likewise.
3107 * eval.c (evaluate_subexp_with_coercion): Likewise.
3108 * findvar.c (address_of_variable): Likewise.
3109 * jv-valprint.c (java_value_print): Likewise.
3110 * valops.c (value_ind): Likewise.
3111 * value.c (coerce_ref): Likewise.
3113 * c-typeprint.c (c_type_print_varspec_suffix): Added
3114 check for not yet resolved high bound. If unresolved, print
3115 "variable length" string to the console instead of random
3118 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3119 property and store it as the high bound and flag the range accordingly.
3120 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3121 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3122 * gdbtypes.h (enum range_flags): New enum.
3123 (struct range_bounds): Add flags member.
3125 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3126 points to a constant blob.
3128 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3129 (evaluate_subexp_standard): Pass noside argument.
3130 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3131 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3132 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3133 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3134 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3136 2014-04-11 Keith Seitz <keiths@redhat.com>
3139 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3140 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3145 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3146 (evaluate_subexp_standard): Pass noside argument.
3147 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3148 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3149 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3150 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3151 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3155 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3156 points to a constant blob.
3158 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3160 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3161 property and store it as the high bound and flag the range accordingly.
3162 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3163 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3164 * gdbtypes.h (enum range_flags): New enum.
3165 (struct range_bounds): Add flags member.
3167 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3169 * c-typeprint.c (c_type_print_varspec_suffix): Added
3170 check for not yet resolved high bound. If unresolved, print
3171 "variable length" string to the console instead of random
3174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3176 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3177 (ada_template_to_fixed_record_type_1): Likewise.
3178 (ada_to_fixed_type_1): Likewise.
3179 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3180 (cp_print_value): Likewise.
3181 * d-valprint.c (dynamic_array_type): Likewise.
3182 * eval.c (evaluate_subexp_with_coercion): Likewise.
3183 * findvar.c (address_of_variable): Likewise.
3184 * jv-valprint.c (java_value_print): Likewise.
3185 * valops.c (value_ind): Likewise.
3186 * value.c (coerce_ref): Likewise.
3188 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3190 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3191 value and retrieve the dynamic type size.
3193 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3195 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3196 passed to sizeof is dynamic evaluate the argument to compute the length.
3198 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3200 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3201 (dwarf2_evaluate_property): New function.
3202 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3203 * dwarf2read.c (attr_to_dynamic_prop): New function.
3204 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3206 * gdbtypes.c: Include dwarf2loc.h.
3207 (is_dynamic_type): New function.
3208 (resolve_dynamic_type): New function.
3209 (resolve_dynamic_bounds): New function.
3210 (get_type_length): New function.
3211 (check_typedef): Use get_type_length to compute type length.
3212 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3213 (TYPE_LOW_BOUND_KIND): New macro.
3214 (is_dynamic_type): New function prototype.
3215 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3216 to resolve dynamic properties of the type. Update comment.
3217 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3219 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3221 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3222 declaring high/low bounds and change uses accordingly. Call
3223 create_range_type instead of create_static_range_type.
3224 * gdbtypes.c (create_range_type): New function.
3225 (create_range_type): Convert bounds into struct bound_prop and pass
3226 them to create_range_type.
3227 * gdbtypes.h (struct bound_prop): New struct.
3228 (create_range_type): New function prototype.
3229 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3230 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3231 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3233 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3235 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3237 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3238 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3239 * ada-lang.c: All uses of create_range_type updated.
3240 * coffread.c: All uses of create_range_type updated.
3241 * dwarf2read.c: All uses of create_range_type updated.
3242 * f-exp.y: All uses of create_range_type updated.
3243 * m2-valprint.c: All uses of create_range_type updated.
3244 * mdebugread.c: All uses of create_range_type updated.
3245 * stabsread.c: All uses of create_range_type updated.
3246 * valops.c: All uses of create_range_type updated.
3247 * valprint.c: All uses of create_range_type updated.
3249 2014-04-10 Pedro Alves <palves@redhat.com>
3251 * breakpoint.c (single_step_breakpoints)
3252 (single_step_gdbarch): Move up in the file.
3253 (one_breakpoint_xfer_memory): New function, factored out from ...
3254 (breakpoint_xfer_memory): ... here. Also process single-step
3257 2014-04-09 Tristan Gingold <gingold@adacore.com>
3259 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3261 (darwin_decode_exception_message): Free port only after use.
3263 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3265 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3266 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3267 when setting the size of call_length.
3269 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3271 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3272 dereference TYPE_CODE_REF values.
3274 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3276 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3277 end of warning message.
3279 2014-04-03 Doug Evans <dje@google.com>
3281 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3282 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3284 2014-04-02 Alan Modra <amodra@gmail.com>
3286 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3287 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3288 (struct symbol_file_add_from_memory_args): Add size field.
3289 (find_vdso_size): New function.
3290 (add_vsyscall_page): Attempt to find vdso size.
3292 2014-04-01 Doug Evans <dje@google.com>
3294 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3296 2014-04-01 Tristan Gingold <gingold@adacore.com>
3298 * darwin-nat.c (darwin_encode_reply): Add prototype.
3299 (darwin_decode_exception_message): Reply to unknown inferiors.
3300 (darwin_decode_message): Handle message by id. Ignore message
3301 to unknown inferior.
3302 (darwin_wait): Discard unknown messages, add debug trace.
3304 2014-03-31 Doug Evans <dje@google.com>
3306 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3309 2014-03-31 Doug Evans <dje@google.com>
3311 New option "set print symbol-loading".
3313 * solib.c (solib_read_symbols): Only print symbol loading messages
3315 (solib_add): If symbol loading is in "brief" mode, notify user
3316 symbols are being loaded.
3317 (reload_shared_libraries_1): Ditto.
3318 * symfile.c (print_symbol_loading_off): New static global.
3319 (print_symbol_loading_brief): New static global.
3320 (print_symbol_loading_full): New static global.
3321 (print_symbol_loading_enums): New static global.
3322 (print_symbol_loading): New static global.
3323 (print_symbol_loading_p): New function.
3324 (symbol_file_add_with_addrs): Only print symbol loading messages
3326 (_initialize_symfile): Register "print symbol-loading" set/show
3328 * symfile.h (print_symbol_loading_p): Declare.
3330 2014-03-30 Doug Evans <xdje42@gmail.com>
3332 * infrun.c (set_last_target_status): New function.
3333 (handle_inferior_event): Call it.
3335 2014-03-30 Doug Evans <xdje42@gmail.com>
3337 * inferior.h (enum stop_kind): Improve comment.
3339 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3341 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3342 a reference, strip the reference layer before calling
3343 the lang_ops value_has_mutated callback.
3345 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3347 Remove some globals from our parser.
3348 * language.c (unk_lang_parser): Add "struct parser_state"
3350 * language.h (struct language_defn) <la_parser>: Likewise.
3351 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3352 (initialize_expout): Add "struct parser_state" argument.
3353 Rewrite function to use the parser state.
3354 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3355 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3356 write_exp_elt_longcst, write_exp_elt_dblcst,
3357 write_exp_elt_decfloatcst, write_exp_elt_type,
3358 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3359 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3360 write_dollar_variable): Likewise.
3361 (parse_exp_in_context_1): Use parser state.
3362 (insert_type_address_space): Add "struct parser_state" argument.
3364 (increase_expout_size): New function.
3365 * parser-defs.h: Forward declare "struct language_defn" and
3366 "struct parser_state".
3367 (expout, expout_size, expout_ptr): Remove extern declarations.
3368 (parse_gdbarch, parse_language): Rewrite macro declarations to
3369 accept the parser state.
3370 (struct parser_state): New struct.
3371 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3372 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3373 write_exp_elt_decfloatcst, write_exp_elt_type,
3374 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3375 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3376 write_exp_msymbol, write_dollar_variable,
3377 mark_struct_expression, insert_type_address_space): Add "struct
3378 parser_state" argument.
3379 (increase_expout_size): New function.
3380 * utils.c (do_clear_parser_state): New function.
3381 (make_cleanup_clear_parser_state): Likewise.
3382 * utils.h (make_cleanup_clear_parser_state): New function
3384 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3385 Update calls to write_exp* in order to pass the parser state.
3386 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3387 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3388 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3389 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3390 * stap-probe.c (stap_parse_register_operand): Likewise.
3391 (stap_parse_single_operand): Likewise.
3392 (stap_parse_argument_1): Likewise.
3393 (stap_parse_argument): Use parser state.
3394 * stap-probe.h: Include "parser-defs.h".
3395 (struct stap_parse_info) <pstate>: New field.
3396 * c-exp.y (parse_type): Rewrite to use parser state.
3397 (yyparse): Redefine to c_parse_internal.
3398 (pstate): New global variable.
3399 (parse_number): Add "struct parser_state" argument.
3400 (write_destructor_name): Likewise.
3401 (type_exp): Update calls to write_exp* and similars in order to
3403 (exp1, exp, variable, qualified_name, space_identifier,
3404 typename, typebase): Likewise.
3405 (write_destructor_name, parse_number, lex_one_token,
3406 classify_name, classify_inner_name, c_parse): Add "struct
3407 parser_state" argument. Update function to use parser state.
3408 * c-lang.h: Forward declare "struct parser_state".
3409 (c_parse): Add "struct parser_state" argument.
3410 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3411 (yyparse): Redefine macro to ada_parse_internal.
3412 (pstate): New variable.
3413 (write_int, write_object_renaming, write_var_or_type,
3414 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3415 type_int, type_long, type_long_long, type_float, type_double,
3416 type_long_double, type_char, type_boolean, type_system_address):
3417 Add "struct parser_state" argument.
3418 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3419 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3420 var_or_type, aggregate, aggregate_component_list,
3421 positional_list, others, component_group,
3422 component_associations): Update calls to write_exp* and similar
3423 functions in order to use parser state.
3424 (ada_parse, write_var_from_sym, write_int,
3425 write_exp_op_with_string, write_object_renaming,
3426 find_primitive_type, write_selectors, write_ambiguous_var,
3427 write_var_or_type, write_name_assoc, type_int, type_long,
3428 type_long_long, type_float, type_double, type_long_double,
3429 type_char, type_boolean, type_system_address): Add "struct
3430 parser_state" argument. Adjust function to use parser state.
3431 * ada-lang.c (parse): Likewise.
3432 * ada-lang.h: Forward declare "struct parser_state".
3433 (ada_parse): Add "struct parser_state" argument.
3434 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3435 calls to both functions.
3436 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3438 (yyparse): Redefine macro to f_parse_internal.
3439 (pstate): New variable.
3440 (parse_number): Add "struct parser_state" argument.
3441 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3442 and similars in order to use parser state.
3443 (parse_number): Adjust code to use parser state.
3445 (f_parse): New function.
3446 * f-lang.h: Forward declare "struct parser_state".
3447 (f_parse): Add "struct parser_state" argument.
3448 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3450 (yyparse): Redefine macro for java_parse_internal.
3451 (pstate): New variable.
3452 (push_expression_name, push_expression_name, insert_exp): Add
3453 "struct parser_state" argument.
3454 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3455 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3456 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3457 PostIncrementExpression, PostDecrementExpression,
3458 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3459 UnaryExpressionNotPlusMinus, CastExpression,
3460 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3461 RelationalExpression, EqualityExpression, AndExpression,
3462 ExclusiveOrExpression, InclusiveOrExpression,
3463 ConditionalAndExpression, ConditionalOrExpression,
3464 ConditionalExpression, Assignment, LeftHandSide): Update
3465 calls to write_exp* and similars in order to use parser state.
3466 (parse_number): Ajust code to use parser state.
3468 (java_parse): New function.
3469 (push_variable): Add "struct parser_state" argument. Adjust
3470 code to user parser state.
3471 (push_fieldnames, push_qualified_expression_name,
3472 push_expression_name, insert_exp): Likewise.
3473 * jv-lang.h: Forward declare "struct parser_state".
3474 (java_parse): Add "struct parser_state" argument.
3475 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3477 (yyparse): Redefine macro to m2_parse_internal.
3478 (pstate): New variable.
3479 (type_exp, exp, fblock, variable, type): Update calls to
3480 write_exp* and similars to use parser state.
3482 (m2_parse): New function.
3483 * m2-lang.h: Forward declare "struct parser_state".
3484 (m2_parse): Add "struct parser_state" argument.
3485 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3486 * objc-lang.h: Forward declare "struct parser_state".
3487 (end_msglist): Add "struct parser_state" argument.
3488 * p-exp.y (parse_type): Rewrite macro to use parser state.
3489 (yyparse): Redefine macro to pascal_parse_internal.
3490 (pstate): New variable.
3491 (parse_number): Add "struct parser_state" argument.
3492 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3493 write_exp* and similars in order to use parser state.
3494 (parse_number, yylex): Adjust code to use parser state.
3495 (pascal_parse): New function.
3496 * p-lang.h: Forward declare "struct parser_state".
3497 (pascal_parse): Add "struct parser_state" argument.
3498 * go-exp.y (parse_type): Rewrite macro to use parser state.
3499 (yyparse): Redefine macro to go_parse_internal.
3500 (pstate): New variable.
3501 (parse_number): Add "struct parser_state" argument.
3502 (type_exp, exp1, exp, variable, type): Update calls to
3503 write_exp* and similars in order to use parser state.
3504 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3505 to use parser state.
3506 (go_parse): Likewise.
3507 * go-lang.h: Forward declare "struct parser_state".
3508 (go_parse): Add "struct parser_state" argument.
3510 2014-03-27 Doug Evans <dje@google.com>
3512 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3514 2014-03-27 Doug Evans <dje@google.com>
3516 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3517 Remove argument abbrev_section. All callers updated.
3519 2014-03-27 Doug Evans <dje@google.com>
3521 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3522 addr_base, ranges_base.
3524 2014-03-26 Keith Seitz <keiths@redhat.com>
3526 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3527 types, not VAR_DOMAIN.
3529 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3531 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3533 * features/nios2-linux.c: Regenerated.
3534 * features/nios2.c: Regenerated.
3536 2014-03-25 Pedro Alves <palves@redhat.com>
3538 * cli/cli-script.c (script_from_file): Force the interpreter to
3541 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3543 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3544 small stack allocation.
3546 2014-03-24 Tristan Gingold <gingold@adacore.com>
3548 * darwin-nat.c (exc_server): Remove unused prototype.
3549 (darwin_dump_message): Correctly display data on x86_64.
3550 (darwin_encode_reply): Fix style.
3551 Add comments and fix indentation.
3553 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3555 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3557 2014-03-22 Doug Evans <xdje42@gmail.com>
3559 * infcmd.c: Whitespace fixes.
3560 (interrupt_command): Merge two function comments into one.
3562 2014-03-22 Doug Evans <xdje42@gmail.com>
3564 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3567 2014-03-22 Yao Qi <yao@codesourcery.com>
3569 * remote.c (target_read_live_memory): Remove.
3570 (memory_xfer_live_readonly_partial): Rename it to
3571 remote_xfer_live_readonly_partial. Remove argument 'object'.
3572 All callers updated. Call remote_read_bytes_1
3573 instead of target_read_live_memory.
3574 * tracepoint.c (set_traceframe_number): Remove.
3575 (make_cleanup_restore_traceframe_number): Likewise .
3576 * tracepoint.h (set_traceframe_number): Remove declaration.
3577 (make_cleanup_restore_traceframe_number): Likewise.
3579 2014-03-22 Yao Qi <yao@codesourcery.com>
3581 * remote.c (remote_read_bytes): Move code on reading from the
3583 (remote_read_bytes_1): ... here. New function.
3585 2014-03-22 Yao Qi <yao@codesourcery.com>
3587 * ctf.c (ctf_xfer_partial): Check the return value of
3588 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3589 return TARGET_XFER_UNAVAILABLE.
3590 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3591 * target.c (target_read_live_memory): Move it to remote.c.
3592 (memory_xfer_live_readonly_partial): Likewise.
3593 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3594 * remote.c (target_read_live_memory): Moved from target.c.
3595 (memory_xfer_live_readonly_partial): Likewise.
3596 (remote_read_bytes): Factored out from
3597 memory_xfer_partial_1.
3599 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3601 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3604 2014-03-21 Pedro Alves <palves@redhat.com>
3606 * infrun.c (normal_stop): Extend comment.
3608 2014-03-21 Hui Zhu <hui@codesourcery.com>
3609 Pedro Alves <palves@redhat.com>
3611 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3613 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3614 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3615 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3617 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3619 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3620 `z' formatted output modifier.
3622 2014-03-20 Tom Tromey <tromey@redhat.com>
3623 Sergio Durigan Junior <sergiodj@redhat.com>
3625 * probe.c (parse_probes): Turn assert into an ordinary error.
3626 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3627 exceptions when parsing probes. Rearrange the code for clarity.
3629 2014-03-20 Tom Tromey <tromey@redhat.com>
3632 * top.c (execute_command): Only dispatch events if the command
3635 2014-03-20 Tom Tromey <tromey@redhat.com>
3638 * infcall.c: Include event-top.h.
3639 (run_inferior_call): Call async_disable_stdin if needed.
3641 2014-03-20 Pedro Alves <palves@redhat.com>
3643 * infrun.c (prepare_to_proceed): Delete.
3644 (thread_still_needs_step_over): New function.
3645 (find_thread_needs_step_over): New function.
3646 (proceed): If the current thread needs a step-over, set its
3647 steping_over_breakpoint flag. Adjust to use
3648 find_thread_needs_step_over instead of prepare_to_proceed.
3649 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3650 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3652 (switch_back_to_stepped_thread): Step over breakpoints of all
3653 threads not the stepping thread, before switching back to the
3656 2014-03-20 Pedro Alves <palves@redhat.com>
3658 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3660 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3661 * infrun.c (saved_singlestep_ptid)
3662 (stepping_past_singlestep_breakpoint): Delete.
3663 (resume): Remove stepping_past_singlestep_breakpoint handling.
3664 (proceed): Store the prev_pc of the stepping thread too.
3665 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3667 (enum infwait_states): Delete infwait_thread_hop_state.
3668 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3670 (handle_inferior_event): Adjust.
3671 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3672 handling and the thread-hop code. Before removing single-step
3673 breakpoints, check whether the thread hit a single-step breakpoint
3674 of another thread. If it did, the trap is not a random signal.
3675 (switch_back_to_stepped_thread): If the event thread hit a
3676 single-step breakpoint, unblock it before switching to the
3677 stepping thread. Handle the case of the stepped thread having
3679 (keep_going): Handle the case of the current thread moving past a
3680 single-step breakpoint.
3682 2014-03-20 Pedro Alves <palves@redhat.com>
3685 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3686 are being stepped over.
3687 (breakpoint_address_match): Make extern.
3688 * breakpoint.h (breakpoint_address_match): New declaration.
3689 * inferior.h (stepping_past_instruction_at): New declaration.
3690 * infrun.c (struct step_over_info): New type.
3691 (step_over_info): New global.
3692 (set_step_over_info, clear_step_over_info)
3693 (stepping_past_instruction_at): New functions.
3694 (handle_inferior_event): Clear the step-over info when
3695 trap_expected is cleared.
3696 (resume): Remove now stale comment.
3697 (clear_proceed_status): Clear step-over info.
3698 (proceed): Adjust step-over handling to set or clear the step-over
3699 info instead of removing all breakpoints.
3700 (handle_signal_stop): When setting up a thread-hop, don't remove
3702 (stop_stepping): Clear step-over info.
3703 (keep_going): Adjust step-over handling to set or clear step-over
3704 info and then always inserting breakpoints, instead of removing
3705 all breakpoints when stepping over one.
3707 2014-03-20 Pedro Alves <palves@redhat.com>
3709 * infrun.c (previous_inferior_ptid): Adjust comment.
3710 (deferred_step_ptid): Delete.
3711 (infrun_thread_ptid_changed, prepare_to_proceed)
3712 (init_wait_for_inferior): Adjust.
3713 (handle_signal_stop): Delete deferred_step_ptid handling.
3715 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3718 * defs.h (sync_quit_force_run): New declaration.
3719 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3720 * event-top.c (async_sigterm_handler): New declaration.
3721 (async_sigterm_token): New variable.
3722 (async_init_signals): Create also async_sigterm_token.
3723 (async_sigterm_handler): New function.
3724 (sync_quit_force_run): New variable.
3725 (handle_sigterm): Replace quit_force call by other calls.
3726 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3728 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3730 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3731 offset into SPE pseudo registers.
3733 2014-03-18 Pedro Alves <palves@redhat.com>
3736 * inferior.h (print_stop_event): Declare.
3737 * infrun.c (print_stop_event): New, factored out from ...
3738 (normal_stop): ... this.
3739 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3740 of bpstat_print/print_stack_frame.
3742 2014-03-17 Tom Tromey <tromey@redhat.com>
3744 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3746 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3748 * ada-lang.c (decode_constrained_packed_array): Perform a
3749 minimal coercion for reference with coerce_ref instead of
3752 2014-03-17 Tristan Gingold <gingold@adacore.com>
3754 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3755 (darwin_solib_create_inferior_hook): Emit a warning if version
3758 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3760 * python/py-value.c (get_field_flag): Cast flag_name argument to
3761 PyObject_GetAttrString to support Python 2.4.
3763 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3766 (Global Maintainers): Remove Jan Kratochvil.
3768 2014-03-14 Pedro Alves <palves@redhat.com>
3770 * inferior.h (terminal_ours_for_output): Rename to ...
3771 (child_terminal_ours_for_output): ... this.
3772 (terminal_save_ours): Rename to ...
3773 (child_terminal_save_ours): ... this.
3774 (terminal_ours): Rename to ...
3775 (child_terminal_ours): ... this.
3776 (terminal_inferior): Rename to ...
3777 (child_terminal_inferior): ... this.
3778 (terminal_init_inferior): Rename to ...
3779 (child_terminal_init_inferior): ... this.
3780 (terminal_init_inferior_with_pgrp): Rename to ...
3781 (child_terminal_init_inferior_with_pgrp): ... this.
3782 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3783 (child_terminal_init_with_pgrp): ... this.
3784 (terminal_save_ours): Rename to ...
3785 (child_terminal_save_ours): ... this.
3786 (terminal_init_inferior): Rename to ...
3787 (child_terminal_init): ... this. Adjust.
3788 (terminal_inferior): Rename to ...
3789 (child_terminal_inferior): ... this.
3790 (terminal_ours_for_output): Rename to ...
3791 (child_terminal_ours_for_output): ... this. Adjust.
3792 (terminal_ours): Rename to ...
3793 (child_terminal_ours): ... this.
3794 (terminal_ours_1): Rename to ...
3795 (child_terminal_ours_1): ... this. Adjust.
3796 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3797 * windows-nat.c (do_initial_windows_stuff): Adjust.
3798 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3799 (gnu_terminal_init): ... this. Adjust.
3800 (gnu_target): Adjust.
3801 * inf-child.c (inf_child_target): Adjust.
3803 2014-03-13 Doug Evans <xdje42@gmail.com>
3806 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3809 2014-03-13 Doug Evans <xdje42@gmail.com>
3811 * value.c (record_latest_value): Call release_value_or_incref
3812 instead of release_value.
3814 2014-03-13 Pedro Alves <palves@redhat.com>
3816 * procfs.c (procfs_target): Don't override to_shortname,
3817 to_longname or to_doc.
3819 2014-03-13 Pedro Alves <palves@redhat.com>
3821 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3822 Unix in user visible strings.
3824 2014-03-12 Stan Shebs <stan@codesourcery.com>
3826 * gdbtypes.h: Annotate comments for Doxygen, add a page
3827 block comment with some general info.
3829 2014-03-12 Pedro Alves <palves@redhat.com>
3831 * infcmd.c (prepare_execution_command): New function, factored out
3832 from several execution commands.
3833 (run_command_1, continue_command, step_1, jump_command)
3834 (signal_command, until_command, advance_command, finish_command)
3835 (attach_command): Use prepare_execution_command.
3837 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3839 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3842 (struct arm_linux_thread_points): Removed.
3843 (struct arm_linux_process_info): New.
3844 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3845 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3846 (arm_linux_find_breakpoints_by_tid): Removed.
3847 (struct arch_lwp_info): New.
3848 (arm_linux_find_process_pid): New functions.
3849 (arm_linux_add_process): New functions.
3850 (arm_linux_process_info_get): New functions.
3851 (arm_linux_forget_process): New function.
3852 (arm_linux_get_debug_reg_state): New function.
3853 (struct update_registers_data): New.
3854 (update_registers_callback): New function.
3855 (arm_linux_insert_hw_breakpoint1): Updated.
3856 (arm_linux_remove_hw_breakpoint1): Updated.
3857 (arm_linux_insert_hw_breakpoint): Updated.
3858 (arm_linux_remove_hw_breakpoint): Updated.
3859 (arm_linux_insert_watchpoint): Updated.
3860 (arm_linux_remove_watchpoint): Updated.
3861 (arm_linux_new_thread): Updated.
3862 (arm_linux_prepare_to_resume): New function.
3863 (arm_linux_new_fork): New function.
3864 (_initialize_arm_linux_nat): Updated.
3866 2014-03-12 Pedro Alves <palves@redhat.com>
3868 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3870 2014-03-12 Tom Tromey <tromey@redhat.com>
3872 * inf-child.c (return_zero): New function.
3873 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3874 * aix-thread.c (aix_thread_inferior_created): New function.
3875 (aix_thread_attach): Remove.
3876 (init_aix_thread_ops): Don't set to_attach.
3877 (_initialize_aix_thread): Register inferior_created observer.
3878 * corelow.c (init_core_ops): Don't set to_attach or
3880 * exec.c (init_exec_ops): Don't set to_attach or
3882 * infcmd.c (run_command_1): Use find_run_target. Make direct
3884 (attach_command): Use find_attach_target. Make direct target
3886 * record-btrace.c (init_record_btrace_ops): Don't set
3888 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3890 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3891 set to_create_inferior.
3892 * target.c (complete_target_initialization): Add assertion.
3893 (target_create_inferior): Remove.
3894 (find_default_attach, find_default_create_inferior): Remove.
3895 (find_attach_target, find_run_target): New functions.
3896 (find_default_is_async_p, find_default_can_async_p)
3897 (target_supports_non_stop, target_attach): Remove.
3898 (init_dummy_target): Don't set to_create_inferior or
3899 to_supports_non_stop.
3900 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3901 TARGET_DEFAULT_FUNC.
3902 <to_create_inferior>: Add comment.
3903 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3904 TARGET_DEFAULT_RETURN.
3905 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3906 (find_attach_target, find_run_target): Declare.
3907 (target_create_inferior): Remove.
3908 (target_has_execution_1): Update comment.
3909 (target_supports_non_stop): Remove.
3910 * target-delegates.c: Rebuild.
3912 2014-03-12 Pedro Alves <palves@redhat.com>
3914 * inf-child.h: Update comment to not mention Unix.
3916 2014-03-12 Pedro Alves <palves@redhat.com>
3918 * inf-child.c: Update top comment to not mention Unix. Add
3919 generic comment describing how this target is meant to be used.
3920 (inf_child_post_attach, inf_child_post_startup_inferior)
3921 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3924 2014-03-12 Pedro Alves <palves@redhat.com>
3926 * nto-procfs.c: Include inf-child.h.
3927 (procfs_ops): Delete global.
3928 (procfs_can_run): Delete method.
3929 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3930 target pointer instead of referencing procfs_ops.
3931 (procfs_prepare_to_store): Delete.
3932 (init_procfs_ops): Delete function.
3933 (procfs_target): New function, based on init_procfs_ops, but
3934 inherit inf_child_target.
3935 (_initialize_procfs): Use procfs_target.
3937 2014-03-12 Pedro Alves <palves@redhat.com>
3939 * windows-nat.c: Include inf-child.h.
3940 (windows_ops): Delete global.
3941 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3943 (init_windows_ops): Delete function.
3944 (windows_target): New function, based on init_windows_ops, but
3945 inherit inf_child_target.
3946 (_initialize_windows_nat): Use windows_target. Install x86
3947 specific target methods here.
3949 2014-03-10 Doug Evans <xdje42@gmail.com>
3951 * guile/guile.c (call_initialize_gdb_module): New function.
3952 (initialize_guile): Replace call to scm_init_guile with call to
3955 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3957 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3958 in call to TYPE_CODE macro.
3960 2014-03-10 Jerome Guitton <guitton@adacore.com>
3962 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3963 Resolve tagged types to full view.
3965 2014-03-10 Hui Zhu <hui@codesourcery.com>
3967 * target.h (target_insert_breakpoint): Remove "hardware" from its
3970 2014-03-07 Doug Evans <dje@google.com>
3972 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3974 2014-03-07 Doug Evans <dje@google.com>
3976 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3977 Remove unused local comp_dir_attr. Assert exactly one of
3978 stub_comp_unit_die, stub_comp_dir is non-NULL.
3980 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3982 * target.h (complete_target_initialization, add_target):
3985 2014-03-07 Pedro Alves <palves@redhat.com>
3987 * go32-nat.c: Include inf-child.h.
3988 (go32_ops): Delete global.
3989 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3991 (go32_create_inferior): Push the passed in target pointer instead
3992 of referencing go32_ops.
3993 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3994 (go32_target): New function, based on init_go32_ops, but inherit
3996 (_initialize_go32_nat): Use go32_target. Move parts of
3999 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4001 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4002 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4003 SYMBOL_VALUE_ADDRESS.
4004 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4006 2014-03-06 Yao Qi <yao@codesourcery.com>
4008 * breakpoint.c (get_tracepoint_by_number): Remove argument
4009 optional_p. All callers updated. Adjust comments. Update
4011 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4013 2014-03-06 Yao Qi <yao@codesourcery.com>
4015 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4016 early if get_number returns zero. Use 'p' instead of 'args'.
4018 2014-03-06 Yao Qi <yao@codesourcery.com>
4020 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4023 2014-03-06 Yao Qi <yao@codesourcery.com>
4025 PR breakpoints/16508
4026 * tracepoint.c (check_trace_running): New function.
4027 (trace_find_command): Move code to check_trace_running and
4028 call check_trace_running.
4029 (trace_find_pc_command): Likewise.
4030 (trace_find_tracepoint_command): Likewise.
4031 (trace_find_line_command): Likewise.
4032 (trace_find_range_command): Likewise.
4033 * tracepoint.h (check_trace_running): Likewise.
4034 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4036 2014-03-06 Yao Qi <yao@codesourcery.com>
4038 * target.h (struct target_ops) <to_traceframe_info>: Use
4039 TARGET_DEFAULT_NORETURN (tcomplain ()).
4040 * target-delegates.c: Regenerated.
4042 2014-03-05 Pedro Alves <palves@redhat.com>
4045 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4046 void. Update comment.
4047 (dcache_xfer_memory): Delete.
4048 (dcache_read_memory_partial): New, based on the read bits of
4050 (dcache_update): Add status parameter. Use ULONGEST for len, and
4051 adjust. Discard cache lines if the reason for the update was
4053 * dcache.h (dcache_xfer_memory): Delete declaration.
4054 (dcache_read_memory_partial): New declaration.
4055 (dcache_update): Update prototype.
4056 * target.c (raw_memory_xfer_partial): Update the dcache here.
4057 (memory_xfer_partial_1): Don't handle dcache writes here.
4059 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4061 * remote-sim.c (gdbsim_load): Add const to prog.
4063 2014-03-03 Tom Tromey <tromey@redhat.com>
4065 * elfread.c (probe_key): Change to bfd_data.
4066 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4067 now per-BFD, not per-objfile.
4068 * stap-probe.c (stap_probe_destroy): Update comment.
4069 (handle_stap_probe): Allocate on the per-BFD obstack.
4071 2014-03-03 Tom Tromey <tromey@redhat.com>
4073 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4074 * breakpoint.c (create_longjmp_master_breakpoint): Use
4076 (add_location_to_breakpoint, bkpt_probe_insert_location)
4077 (bkpt_probe_remove_location): Update.
4078 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4079 * elfread.c (elf_symfile_relocate_probe): Remove.
4080 (elf_probe_fns): Update.
4081 (insert_exception_resume_breakpoint): Change type of "probe"
4082 parameter to bound_probe.
4083 (check_exception_resume): Update.
4084 * objfiles.c (objfile_relocate1): Don't relocate probes.
4085 * probe.c (bound_probe_s): New typedef.
4086 (parse_probes): Use get_probe_address. Set sal's objfile.
4087 (find_probe_by_pc): Return a bound_probe.
4088 (collect_probes): Return a VEC(bound_probe_s).
4089 (compare_probes): Update.
4090 (gen_ui_out_table_header_info): Change type of "probes"
4092 (info_probes_for_ops): Update.
4093 (get_probe_address): New function.
4094 (probe_safe_evaluate_at_pc): Update.
4095 * probe.h (struct probe_ops) <get_probe_address>: New field.
4096 <set_semaphore, clear_semaphore>: Add objfile parameter.
4097 (struct probe) <objfile>: Remove field.
4099 <address>: Update comment.
4100 (struct bound_probe): New.
4101 (find_probe_by_pc): Return a bound_probe.
4102 (get_probe_address): Declare.
4103 * solib-svr4.c (struct probe_and_action) <address>: New field.
4104 (hash_probe_and_action, equal_probe_and_action): Update.
4105 (register_solib_event_probe): Add address parameter.
4106 (solib_event_probe_at): Update.
4107 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4109 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4110 (stap_get_probe_address): New function.
4111 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4112 (compile_probe_arg): Update.
4113 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4115 (handle_stap_probe): Don't relocate the probe.
4116 (stap_relocate): Remove.
4117 (stap_gen_info_probes_table_values): Update.
4118 (stap_probe_ops): Remove stap_relocate.
4119 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4120 (debug_sym_probe_fns): Update.
4121 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4122 * symtab.c (init_sal): Use memset.
4123 * symtab.h (struct symtab_and_line) <objfile>: New field.
4124 * tracepoint.c (start_tracing, stop_tracing): Update.
4126 2014-03-03 Tom Tromey <tromey@redhat.com>
4128 * probe.h (parse_probes, find_probe_by_pc)
4129 (find_probes_in_objfile): Fix comments.
4131 2014-03-02 Doug Evans <xdje42@gmail.com>
4133 * infrun.c (handle_signal_stop): Replace test for
4134 TARGET_WAITKIND_STOPPED with an assert.
4136 2014-03-02 Doug Evans <xdje42@gmail.com>
4138 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4140 2014-03-02 Doug Evans <xdje42@gmail.com>
4142 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4144 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4146 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4148 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4150 * i386obsd-nat.c: Include "obsd-nat.h".
4151 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4153 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4155 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4157 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4159 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4161 * mips64obsd-nat.c: Include "obsd-nath".
4162 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4164 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4166 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4168 * amd64obsd-nat.c: Include "obsd-nat,h.
4169 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4171 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4173 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4175 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4176 (find_overload_match): Update call to find_oload_champ.
4177 (find_oload_champ_namespace_loop): Likewise
4179 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4181 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4183 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4184 * config/sparc/obsd64.mh: New file.
4185 * sparc64obsd-nat.c: New file.
4187 * obsd-nat.h: New file.
4188 * obsd-nat.c: New file.
4189 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4190 (ALLDEPFILES): Add obsd-nat.c.
4192 2014-02-28 Tom Tromey <tromey@redhat.com>
4194 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4195 * cli-out.h (cli_ui_out_impl): Now const.
4196 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4197 * ui-out.c (struct ui_out) <impl>: Now const.
4198 (default_ui_out_impl): Now const.
4199 (ui_out_new): Make 'impl' parameter const.
4200 * ui-out.h (ui_out_new): Update.
4202 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4204 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4206 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4208 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4210 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4212 Additional PR 8882 fix.
4213 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4215 2014-02-27 Pedro Alves <palves@redhat.com>
4217 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4220 2014-02-27 Pedro Alves <palves@redhat.com>
4223 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4224 * nat/linux-waitpid.c: Include string.h.
4225 (status_to_str): Moved here and made extern.
4226 * nat/linux-waitpid.h (status_to_str): New declaration.
4228 2014-02-27 Hui Zhu <hui@codesourcery.com>
4231 * infrun.c (ptid_match): Move ...
4232 * common/ptid.c (ptid_match): ... here.
4233 * inferior.h (ptid_match): Move ...
4234 * common/ptid.h (ptid_match): ... here.
4236 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4238 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4239 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4242 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4244 * obsd-tdep.c (obsd_auxv_parse): New function.
4245 (obsd_init_abi): Set auxv_parse.
4247 * gdbarch.sh (auxv_parse): New.
4248 * gdbarch.h: Regenerated.
4249 * gdbarch.c: Regenerated.
4250 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4252 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4254 * guile/scm-value.c (gdbscm_history_append_x): New function.
4255 (value_functions): Add it.
4257 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4259 * dwarf2read.c (attr_value_as_address): New function.
4260 (dwarf2_find_base_address, read_call_site_scope): Use
4261 attr_value_as_address in place of DW_ADDR.
4262 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4263 the low and high addresses. Slight rework of the handling
4264 of the high pc being a constant form, and limit it to
4265 DWARF verson 4 or higher.
4266 (dwarf2_record_block_ranges): Likewise.
4267 (read_partial_die): Likewise.
4268 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4270 2014-02-26 Tom Tromey <tromey@redhat.com>
4272 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4274 2014-02-26 Tom Tromey <tromey@redhat.com>
4276 * elfread.c (elf_read_minimal_symbols): Return early if
4277 minimal symbols have already been read. Add "ei" parameter.
4278 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4279 * minsyms.c (prim_record_minimal_symbol_full): Update.
4280 * objfiles.h (struct objstats) <n_minsyms>: Move...
4281 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4282 * symmisc.c (print_objfile_statistics): Update.
4284 2014-02-26 Tom Tromey <tromey@redhat.com>
4286 * elfread.c (elf_read_minimal_symbols): New function, from
4288 (elf_symfile_read): Call it.
4290 2014-02-26 Tom Tromey <tromey@redhat.com>
4292 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4293 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4294 (lookup_minimal_symbol_solib_trampoline)
4295 (lookup_minimal_symbol_by_pc_section_1)
4296 (lookup_minimal_symbol_and_objfile): Update.
4297 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4298 Don't allocate a minimal symbol if minsyms have already been read.
4299 (build_minimal_symbol_hash_tables): Update.
4300 (install_minimal_symbols): Do nothing if minsyms already read.
4301 Use the per-BFD obstack.
4302 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4303 * objfiles.c (allocate_objfile): Call
4304 terminate_minimal_symbol_table later.
4305 (have_minimal_symbols): Update.
4306 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4307 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4308 Move from struct objfile.
4309 <minsyms_read>: New field.
4310 (struct objfile) <msymbols, minimal_symbol_count,
4311 msymbol_hash, msymbol_demangled_hash>: Move.
4312 (ALL_OBJFILE_MSYMBOLS): Update.
4313 * symfile.c (read_symbols): Set minsyms_read.
4314 (reread_symbols): Update.
4315 * symmisc.c (dump_objfile, dump_msymbols): Update.
4317 2014-02-26 Tom Tromey <tromey@redhat.com>
4319 * minsyms.c (msymbols_sort): Remove.
4320 * minsyms.h (msymbols_sort): Remove.
4321 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4322 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4323 * elfread.c (elf_symtab_read): Don't add section offsets.
4324 * xcoffread.c (record_minimal_symbol): Don't add section offset
4325 to minimal symbol address.
4326 * somread.c (text_offset, data_offset): Remove.
4327 (som_symtab_read): Don't add section offsets to minimal symbol
4329 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4330 Don't add section offsets to minimal symbols.
4331 * coffread.c (coff_symtab_read): Don't add section offsets
4332 to minimal symbol addresses.
4333 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4334 to minimal symbol addresses.
4335 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4336 section offset to minimal symbol addresses.
4337 * mdebugread.c (parse_partial_symbols): Don't add section
4338 offset to minimal symbol addresses.
4339 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4340 offset to minimal symbol addresses.
4342 2014-02-26 Tom Tromey <tromey@redhat.com>
4344 * ada-lang.c (ada_main_name): Update.
4345 (ada_add_standard_exceptions): Update.
4346 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4347 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4348 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4349 * auxv.c (ld_so_xfer_auxv): Update.
4350 * avr-tdep.c (avr_scan_prologue): Update.
4351 * ax-gdb.c (gen_var_ref): Update.
4352 * blockframe.c (get_pc_function_start)
4353 (find_pc_partial_function_gnu_ifunc): Update.
4354 * breakpoint.c (create_overlay_event_breakpoint)
4355 (create_longjmp_master_breakpoint)
4356 (create_std_terminate_master_breakpoint)
4357 (create_exception_master_breakpoint): Update.
4358 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4359 * c-valprint.c (c_val_print): Update.
4360 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4361 * common/agent.c (agent_look_up_symbols): Update.
4362 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4363 * dwarf2loc.c (call_site_to_target_addr): Update.
4364 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4365 * elfread.c (elf_gnu_ifunc_record_cache)
4366 (elf_gnu_ifunc_resolve_by_got): Update.
4367 * findvar.c (default_read_var_value): Update.
4368 * frame.c (inside_main_func): Update.
4369 * frv-tdep.c (frv_frame_this_id): Update.
4370 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4371 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4373 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4374 (hppa_hpux_find_dummy_bpaddr): Update.
4375 * hppa-tdep.c (hppa_symbol_address): Update.
4376 * infcmd.c (until_next_command): Update.
4377 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4379 * linespec.c (minsym_found, add_minsym): Update.
4380 * linux-nat.c (get_signo): Update.
4381 * linux-thread-db.c (inferior_has_bug): Update.
4382 * m32c-tdep.c (m32c_return_value)
4383 (m32c_m16c_address_to_pointer): Update.
4384 * m32r-tdep.c (m32r_frame_this_id): Update.
4385 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4386 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4387 * maint.c (maintenance_translate_address): Update.
4388 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4389 (frob_address): New function.
4390 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4391 frob_address. Rename parameter to "pc_in".
4392 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4394 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4396 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4397 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4398 * objc-lang.c (find_objc_msgsend): Update.
4399 * objfiles.c (objfile_relocate1): Update.
4400 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4401 * p-valprint.c (pascal_val_print): Update.
4402 * parse.c (write_exp_msymbol): Update.
4403 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4404 (ppc_elfv2_skip_entrypoint): Update.
4405 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4406 * printcmd.c (build_address_symbolic, msym_info)
4407 (address_info): Update.
4408 * proc-service.c (ps_pglobal_lookup): Update.
4409 * psymtab.c (find_pc_sect_psymtab_closer)
4410 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4411 Change msymbol parameter to bound_minimal_symbol.
4412 * ravenscar-thread.c (get_running_thread_id): Update.
4413 * remote.c (remote_check_symbols): Update.
4414 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4416 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4417 * solib-dsbt.c (lm_base): Update.
4418 * solib-frv.c (lm_base, main_got): Update.
4419 * solib-irix.c (locate_base): Update.
4420 * solib-som.c (som_solib_create_inferior_hook)
4421 (link_map_start): Update.
4422 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4423 * solib-svr4.c (elf_locate_base, enable_break): Update.
4424 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4425 (flush_ea_cache): Update.
4426 * stabsread.c (define_symbol, scan_file_globals): Update.
4427 * stack.c (find_frame_funname): Update.
4428 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4429 (debug_qf_find_pc_sect_symtab): Update.
4430 * symfile.c (simple_read_overlay_table)
4431 (simple_overlay_update): Update.
4432 * symfile.h (struct quick_symbol_functions)
4433 <find_pc_sect_symtab>: Change type of msymbol to
4434 bound_minimal_symbol.
4435 * symmisc.c (dump_msymbols): Update.
4436 * symtab.c (find_pc_sect_symtab_via_partial)
4437 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4438 (search_symbols, print_msymbol_info): Update.
4439 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4440 (MSYMBOL_VALUE_ADDRESS): Redefine.
4441 (BMSYMBOL_VALUE_ADDRESS): New macro.
4442 * tracepoint.c (scope_info): Update.
4443 * tui/tui-disasm.c (tui_find_disassembly_address)
4444 (tui_get_begin_asm_address): Update.
4445 * valops.c (find_function_in_inferior): Update.
4446 * value.c (value_static_field, value_fn_field): Update.
4448 2014-02-26 Tom Tromey <tromey@redhat.com>
4450 * ada-lang.c (ada_update_initial_language): Update.
4451 (ada_main_name, ada_has_this_exception_support): Update.
4452 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4453 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4454 * arm-tdep.c (arm_skip_stub): Update.
4455 * auxv.c (ld_so_xfer_auxv): Update.
4456 * avr-tdep.c (avr_scan_prologue): Update.
4457 * ax-gdb.c (gen_var_ref): Update.
4458 * breakpoint.c (struct breakpoint_objfile_data)
4459 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4460 type to bound_minimal_symbol.
4461 (create_overlay_event_breakpoint)
4462 (create_longjmp_master_breakpoint)
4463 (create_std_terminate_master_breakpoint)
4464 (create_exception_master_breakpoint): Update.
4465 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4466 * c-exp.y (classify_name): Update.
4467 * coffread.c (coff_symfile_read): Update.
4468 * common/agent.c (agent_look_up_symbols): Update.
4469 * d-lang.c (d_main_name): Update.
4470 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4471 * dec-thread.c (enable_dec_thread): Update.
4472 * dwarf2loc.c (call_site_to_target_addr): Update.
4473 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4474 * eval.c (evaluate_subexp_standard): Update.
4475 * findvar.c (struct minsym_lookup_data) <result>: Change type
4476 to bound_minimal_symbol.
4478 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4479 * frame.c (inside_main_func): Update.
4480 * frv-tdep.c (frv_frame_this_id): Update.
4481 * gcore.c (call_target_sbrk): Update.
4482 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4483 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4485 * go-lang.c (go_main_name): Update.
4486 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4487 (hppa_hpux_find_import_stub_for_addr): Update.
4488 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4489 Update. Change return type.
4490 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4492 * jit.c (jit_breakpoint_re_set_internal): Update.
4493 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4495 * linux-nat.c (get_signo): Update.
4496 * linux-thread-db.c (inferior_has_bug): Update
4497 * m32c-tdep.c (m32c_return_value)
4498 (m32c_m16c_address_to_pointer): Update.
4499 * m32r-tdep.c (m32r_frame_this_id): Update.
4500 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4501 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4502 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4503 lookup_minimal_symbol. Change return type.
4504 (lookup_minimal_symbol): Remove.
4505 (lookup_bound_minimal_symbol): Update.
4506 (lookup_minimal_symbol_text): Change return type.
4507 (lookup_minimal_symbol_solib_trampoline): Change return type.
4508 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4509 (lookup_minimal_symbol_solib_trampoline): Change return type.
4510 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4511 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4512 (value_nsstring, find_imps): Update.
4513 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4514 * p-lang.c (pascal_main_name): Update.
4515 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4516 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4517 * proc-service.c (ps_pglobal_lookup): Update.
4518 * ravenscar-thread.c (get_running_thread_msymbol): Change
4520 (has_ravenscar_runtime, get_running_thread_id): Update.
4521 * remote.c (remote_check_symbols): Update.
4522 * sol-thread.c (ps_pglobal_lookup): Update.
4523 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4524 * solib-dsbt.c (lm_base): Update.
4525 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4527 * solib-irix.c (locate_base): Update.
4528 * solib-som.c (som_solib_create_inferior_hook)
4529 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4531 * solib-spu.c (spu_enable_break): Update.
4532 * solib-svr4.c (elf_locate_base, enable_break): Update.
4533 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4534 (flush_ea_cache): Update.
4535 * stabsread.c (define_symbol): Update.
4536 * symfile.c (simple_read_overlay_table): Update.
4537 * symtab.c (find_pc_sect_line): Update.
4538 * tracepoint.c (scope_info): Update.
4539 * tui-disasm.c (tui_get_begin_asm_address): Update.
4540 * value.c (value_static_field): Update.
4542 2014-02-26 Tom Tromey <tromey@redhat.com>
4544 * minsyms.c (prim_record_minimal_symbol_full): Use
4545 SET_MSYMBOL_VALUE_ADDRESS.
4546 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4547 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4548 SET_MSYMBOL_VALUE_ADDRESS.
4549 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4550 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4552 2014-02-26 Tom Tromey <tromey@redhat.com>
4554 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4555 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4556 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4557 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4558 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4559 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4560 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4561 * ada-lang.c (ada_main_name): Update.
4562 (ada_lookup_simple_minsym): Update.
4563 (ada_make_symbol_completion_list): Update.
4564 (ada_add_standard_exceptions): Update.
4565 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4566 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4567 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4568 * arm-tdep.c (skip_prologue_function): Update.
4569 (arm_skip_stack_protector, arm_skip_stub): Update.
4570 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4571 (arm_wince_skip_main_prologue): Update.
4572 * auxv.c (ld_so_xfer_auxv): Update.
4573 * avr-tdep.c (avr_scan_prologue): Update.
4574 * ax-gdb.c (gen_var_ref): Update.
4575 * block.c (call_site_for_pc): Update.
4576 * blockframe.c (get_pc_function_start): Update.
4577 (find_pc_partial_function_gnu_ifunc): Update.
4578 * breakpoint.c (create_overlay_event_breakpoint): Update.
4579 (create_longjmp_master_breakpoint): Update.
4580 (create_std_terminate_master_breakpoint): Update.
4581 (create_exception_master_breakpoint): Update.
4582 (resolve_sal_pc): Update.
4583 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4584 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4586 * c-valprint.c (c_val_print): Update.
4587 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4588 * coffread.c (coff_symfile_read): Update.
4589 * common/agent.c (agent_look_up_symbols): Update.
4590 * dbxread.c (find_stab_function_addr): Update.
4591 (end_psymtab): Update.
4592 * dwarf2loc.c (call_site_to_target_addr): Update.
4593 (func_verify_no_selftailcall): Update.
4594 (tailcall_dump): Update.
4595 (call_site_find_chain_1): Update.
4596 (dwarf_expr_reg_to_entry_parameter): Update.
4597 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4598 (elf_gnu_ifunc_resolve_by_got): Update.
4599 * f-valprint.c (info_common_command): Update.
4600 * findvar.c (read_var_value): Update.
4601 * frame.c (get_prev_frame_1): Update.
4602 (inside_main_func): Update.
4603 * frv-tdep.c (frv_skip_main_prologue): Update.
4604 (frv_frame_this_id): Update.
4605 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4606 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4607 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4608 (gnuv3_skip_trampoline): Update.
4609 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4610 (hppa64_hpux_in_solib_call_trampoline): Update.
4611 (hppa_hpux_skip_trampoline_code): Update.
4612 (hppa64_hpux_search_dummy_call_sequence): Update.
4613 (hppa_hpux_find_import_stub_for_addr): Update.
4614 (hppa_hpux_find_dummy_bpaddr): Update.
4615 * hppa-tdep.c (hppa_symbol_address)
4616 (hppa_lookup_stub_minimal_symbol): Update.
4617 * i386-tdep.c (i386_skip_main_prologue): Update.
4618 (i386_pe_skip_trampoline_code): Update.
4619 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4620 * infcall.c (get_function_name): Update.
4621 * infcmd.c (until_next_command): Update.
4622 * jit.c (jit_breakpoint_re_set_internal): Update.
4623 (jit_inferior_init): Update.
4624 * linespec.c (minsym_found): Update.
4625 (add_minsym): Update.
4626 * linux-fork.c (info_checkpoints_command): Update.
4627 * linux-nat.c (get_signo): Update.
4628 * linux-thread-db.c (inferior_has_bug): Update.
4629 * m32c-tdep.c (m32c_return_value): Update.
4630 (m32c_m16c_address_to_pointer): Update.
4631 (m32c_m16c_pointer_to_address): Update.
4632 * m32r-tdep.c (m32r_frame_this_id): Update.
4633 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4634 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4635 * maint.c (maintenance_translate_address): Update.
4636 * minsyms.c (add_minsym_to_hash_table): Update.
4637 (add_minsym_to_demangled_hash_table): Update.
4638 (msymbol_objfile): Update.
4639 (lookup_minimal_symbol): Update.
4640 (iterate_over_minimal_symbols): Update.
4641 (lookup_minimal_symbol_text): Update.
4642 (lookup_minimal_symbol_by_pc_name): Update.
4643 (lookup_minimal_symbol_solib_trampoline): Update.
4644 (lookup_minimal_symbol_by_pc_section_1): Update.
4645 (lookup_minimal_symbol_and_objfile): Update.
4646 (prim_record_minimal_symbol_full): Update.
4647 (compare_minimal_symbols): Update.
4648 (compact_minimal_symbols): Update.
4649 (build_minimal_symbol_hash_tables): Update.
4650 (install_minimal_symbols): Update.
4651 (terminate_minimal_symbol_table): Update.
4652 (find_solib_trampoline_target): Update.
4653 (minimal_symbol_upper_bound): Update.
4654 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4655 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4656 (mips_skip_pic_trampoline_code): Update.
4657 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4658 * objc-lang.c (selectors_info): Update.
4659 (classes_info): Update.
4660 (find_methods): Update.
4661 (find_imps): Update.
4662 (find_objc_msgsend): Update.
4663 * objfiles.c (objfile_relocate1): Update.
4664 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4665 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4666 * p-valprint.c (pascal_val_print): Update.
4667 * parse.c (write_exp_msymbol): Update.
4668 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4669 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4670 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4671 * printcmd.c (build_address_symbolic): Update.
4673 (address_info): Update.
4674 * proc-service.c (ps_pglobal_lookup): Update.
4675 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4676 (find_pc_sect_psymtab): Update.
4677 * python/py-framefilter.c (py_print_frame): Update.
4678 * ravenscar-thread.c (get_running_thread_id): Update.
4679 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4681 * remote.c (remote_check_symbols): Update.
4682 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4683 (rs6000_skip_trampoline_code): Update.
4684 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4685 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4686 * solib-dsbt.c (lm_base): Update.
4687 * solib-frv.c (lm_base): Update.
4689 * solib-irix.c (locate_base): Update.
4690 * solib-som.c (som_solib_create_inferior_hook): Update.
4691 (som_solib_desire_dynamic_linker_symbols): Update.
4692 (link_map_start): Update.
4693 * solib-spu.c (spu_enable_break): Update.
4694 (ocl_enable_break): Update.
4695 * solib-svr4.c (elf_locate_base): Update.
4696 (enable_break): Update.
4697 * spu-tdep.c (spu_get_overlay_table): Update.
4698 (spu_catch_start): Update.
4699 (flush_ea_cache): Update.
4700 * stabsread.c (define_symbol): Update.
4701 (scan_file_globals): Update.
4702 * stack.c (find_frame_funname): Update.
4703 (frame_info): Update.
4704 * symfile.c (simple_read_overlay_table): Update.
4705 (simple_overlay_update): Update.
4706 * symmisc.c (dump_msymbols): Update.
4707 * symtab.c (fixup_section): Update.
4708 (find_pc_sect_line): Update.
4709 (skip_prologue_sal): Update.
4710 (search_symbols): Update.
4711 (print_msymbol_info): Update.
4712 (rbreak_command): Update.
4713 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4714 (completion_list_objc_symbol): Update.
4715 (default_make_symbol_completion_list_break_on): Update.
4716 * tracepoint.c (scope_info): Update.
4717 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4718 (tui_get_begin_asm_address): Update.
4719 * valops.c (find_function_in_inferior): Update.
4720 * value.c (value_static_field): Update.
4721 (value_fn_field): Update.
4723 2014-02-26 Tom Tromey <tromey@redhat.com>
4725 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4726 bound minimal symbols. Move code that knows about minsym
4728 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4730 * minsyms.h (minimal_symbol_upper_bound): Declare.
4731 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4732 minimal_symbol_upper_bound.
4734 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4736 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4737 Use the type's name if its basic type does not have a tag.
4739 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4741 * dwarf2read.c (read_subrange_type): Add comment.
4743 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4745 * dwarf2read.c (update_enumeration_type_from_children): New
4746 function, mostly extracted from process_structure_scope.
4747 (read_enumeration_type): Call update_enumeration_type_from_children.
4748 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4749 and flag_flag_enum fields.
4751 2014-02-26 Pedro Alves <palves@redhat.com>
4753 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4754 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4755 to_xfer_partial method.
4757 2014-02-26 Pedro Alves <palves@redhat.com>
4759 * target.c (complete_target_initialization): Don't install
4760 default_xfer_partial as to_xfer_partial hook.
4762 (update_current_target): Don't INHERIT nor de_fault
4763 deprecated_xfer_memory. Delete de_fault macro.
4764 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4765 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4766 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4769 2014-02-26 Pedro Alves <palves@redhat.com>
4771 * go32-nat.c (my_write_child): New function.
4772 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4773 (go32_xfer_partial): New function.
4774 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4775 Instead install a to_xfer_partial hook.
4777 2014-02-26 Pedro Alves <palves@redhat.com>
4779 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4780 to_xfer_partial helper. Rewrite.
4781 (procfs_xfer_partial): New function.
4782 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4783 Install a to_xfer_partial hook.
4785 2014-02-26 Pedro Alves <palves@redhat.com>
4787 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4788 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4789 (m32r_xfer_partial): New function.
4790 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4791 Install a to_xfer_partial hook.
4793 2014-02-26 Pedro Alves <palves@redhat.com>
4795 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4797 (mips_xfer_partial): New function.
4798 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4799 hook. Install a to_xfer_partial hook.
4801 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4803 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4804 * gdbtypes.c (create_array_type_with_stride): New function,
4805 renaming create_array_type, but with an added parameter
4806 called "bit_stride".
4807 (create_array_type): Re-implement using
4808 create_array_type_with_stride.
4809 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4810 and DW_AT_bit_stride attributes.
4812 2014-02-26 Pedro Alves <palves@redhat.com>
4814 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4815 task-specific breakpoints.
4817 2014-02-25 Pedro Alves <palves@redhat.com>
4819 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4820 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4822 2014-02-25 Stan Shebs <stan@codesourcery.com>
4824 * defs.h: Annotate comments for Doxygen.
4826 2014-02-25 Tom Tromey <tromey@redhat.com>
4828 * target.h (target_ignore): Don't declare.
4829 * target.c (target_ignore): Remove.
4831 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4834 * auto-load.c (auto_load_objfile_script_1): Change filename to
4837 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4839 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4840 documentation. Adjust prototype to match the target_ops
4841 to_xfer_partial method. Adjust implementation accordingly.
4843 2014-02-25 Hui Zhu <hui@codesourcery.com>
4845 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4848 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4850 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4851 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4852 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4853 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4854 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4855 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4856 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4857 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4859 (rl78_register_type): Use a data pointer type for SP and
4860 new pseudo registers mentioned above. Use a 16 bit integer
4861 type for all other register pairs.
4862 (rl78_register_name, rl78_g10_register_name): Update for
4863 new pseudo registers.
4864 (rl78_pseudo_register_read): Likewise.
4865 (rl78_pseudo_register_write): Likewise.
4866 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4867 to the newly added pseudo registers.
4869 2014-02-24 Doug Evans <dje@google.com>
4871 * value.c (record_latest_value): Fix comment.
4872 * printcmd.c (print_command_1): Remove code to handle -1 return from
4873 record_latest_value.
4875 2014-02-24 Pedro Alves <palves@redhat.com>
4877 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4878 deprecated_xfer_memory hook.
4879 (procfs_xfer_partial): Call procfs_xfer_memory instead
4880 of the deprecated_xfer_memory target hook.
4881 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4884 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4886 * windows-nat.c (windows_xfer_shared_libraries): Return
4887 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4888 requested object is TARGET_OBJECT_LIBRARIES.
4890 2014-02-24 Yao Qi <yao@codesourcery.com>
4892 * target.h (enum target_xfer_status)
4893 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4894 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4896 * corefile.c (memory_error_message): User updated.
4897 * exec.c (section_table_read_available_memory): Likewise.
4898 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4899 * target.c (target_xfer_status_to_string): Likewise.
4900 (raw_memory_xfer_partial): Likewise.
4901 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4902 * valops.c (read_value_memory): Likewise.
4903 * exec.h: Update comments.
4905 2014-02-24 Yao Qi <yao@codesourcery.com>
4907 * target.c (target_xfer_status_to_string): Rename argument err
4909 * target.h (target_xfer_status_to_string): Update declaration.
4910 Replace target_xfer_error_to_string with
4911 target_xfer_status_to_string in comment.
4913 2014-02-24 Yao Qi <yao@codesourcery.com>
4915 * mips-linux-nat.c (super_close): Update its type.
4916 (mips_linux_close): Pass 'self' to super_close.
4918 2014-02-24 Yao Qi <yao@codesourcery.com>
4920 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4921 * corefile.c (read_memory): Adjusted.
4922 * target.c (target_write_with_progress): Adjusted.
4924 2014-02-23 Yao Qi <yao@codesourcery.com>
4928 2013-10-25 Yao Qi <yao@codesourcery.com>
4930 * remote.c (remote_traceframe_info): Return early if
4931 traceframe is not selected.
4933 2013-07-19 Yao Qi <yao@codesourcery.com>
4935 * target.c (update_current_target): Change the default action
4936 of 'to_traceframe_info' from tcomplain to return_zero.
4937 * target.h (struct target_ops) <to_traceframe_info>: Add more
4940 2014-02-23 Yao Qi <yao@codesourcery.com>
4942 * valops.c (read_value_memory): Rewrite it. Call
4943 target_xfer_partial in a loop.
4944 * exec.h (section_table_available_memory): Remove declaration.
4945 Move comments to ...
4946 * exec.c (section_table_available_memory): ... here. Make it
4949 2014-02-23 Yao Qi <yao@codesourcery.com>
4951 * exec.c (section_table_read_available_memory): New function.
4952 * exec.h (section_table_read_available_memory): Declare.
4953 * ctf.c (ctf_xfer_partial): Call
4954 section_table_read_available_memory.
4955 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4957 2014-02-23 Yao Qi <yao@codesourcery.com>
4959 * ctf.c (ctf_xfer_partial): Move code to ...
4960 * exec.c (exec_read_partial_read_only): ... it. New function.
4961 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4962 * tracefile.c: Include "exec.h".
4963 * exec.h (exec_read_partial_read_only): Declare.
4965 2014-02-23 Yao Qi <yao@codesourcery.com>
4967 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4968 (tfile_has_memory): Remove.
4969 (init_tfile_ops): Don't set fields to_has_all_memory and
4970 to_has_memory of tfile_ops.
4971 * tracefile.c (tracefile_has_all_memory): New function.
4972 (tracefile_has_memory): New function.
4973 (init_tracefile_ops): Initialize fields to_has_all_memory and
4974 to_has_memory of 'ops'.
4976 2014-02-23 Yao Qi <yao@codesourcery.com>
4978 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4979 (ctf_thread_alive, ctf_get_trace_status): Remove.
4980 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4982 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4983 (tfile_has_stack, tfile_has_registers): Remove.
4984 (tfile_thread_alive): Remove.
4985 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4987 * tracefile.c (tracefile_has_stack): New function.
4988 (tracefile_has_registers): New function.
4989 (tracefile_thread_alive): New function.
4990 (tracefile_get_trace_status): New function.
4991 (init_tracefile_ops): New function.
4992 * tracefile.h (init_tracefile_ops): Declare.
4994 2014-02-23 Yao Qi <yao@codesourcery.com>
4996 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4997 (O_LARGEFILE): Likewise.
4998 (tfile_ops): Likewise.
4999 (TRACE_HEADER_SIZE): Likewise.
5000 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5001 (cur_data_size): Likewise.
5002 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5003 (tfile_close, tfile_files_info): Likewise.
5004 (tfile_get_trace_status): Likewise.
5005 (tfile_get_tracepoint_status): Likewise.
5006 (tfile_get_traceframe_address): Likewise.
5007 (tfile_trace_find, match_blocktype): Likewise.
5008 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5009 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5010 (tfile_get_trace_state_variable_value): Likewise.
5011 (tfile_has_all_memory, tfile_has_memory): Likewise.
5012 (tfile_has_stack, tfile_has_registers): Likewise.
5013 (tfile_thread_alive, build_traceframe_info): Likewise.
5014 (tfile_traceframe_info, init_tfile_ops): Likewise.
5015 (_initialize_tracepoint): Don't call init_tfile_ops
5016 and add_target_with_completer.
5017 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5018 exec.h, completer.h and filenames.h.
5019 (_initialize_tracefile_tfile): New function.
5021 2014-02-23 Yao Qi <yao@codesourcery.com>
5023 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5025 (HFILES_NO_SRCDIR): Add tracefile.h.
5026 * ctf.c: Include "tracefile.h".
5027 * tracefile.h: New file.
5028 * tracefile.c: New file
5029 * tracefile-tfile.c: New file.
5030 * tracepoint.c: Include "tracefile.h".
5031 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5032 (stop_reason_names): Add const.
5033 (trace_file_writer_xfree): Move it to tracefile.c.
5034 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5035 (trace_save_ctf): Likewise.
5036 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5037 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5038 (tfile_write_header, tfile_write_regblock_type): Likewise.
5039 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5040 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5041 (tfile_write_raw_data, tfile_end): Likewise.
5042 (tfile_trace_file_writer_new): Likewise.
5043 (free_uploaded_tp): Make it extern.
5044 (free_uploaded_tsv): Make it extern.
5045 (_initialize_tracepoint): Move code to register command 'tsave'
5047 * tracepoint.h (stop_reason_names): Declare.
5048 (struct trace_frame_write_ops): Move it to tracefile.h.
5049 (struct trace_file_write_ops): Likewise.
5050 (struct trace_file_writer): Likewise.
5051 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5053 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5056 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5058 (get_cores_used_by_process): New parameter num_cores, use it.
5059 (linux_xfer_osdata_processes): Pass num_cores to it.
5060 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5063 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5065 * target.c (memory_xfer_partial): Fix length arg in call to
5066 breakpoint_xfer_memory.
5068 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5071 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5072 number comes after the + or - signs. Adjust length of register
5073 name to be extracted.
5075 2014-02-20 Tom Tromey <tromey@redhat.com>
5077 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5078 (ada_varobj_ops): Mark "extern".
5080 2014-02-20 Tom Tromey <tromey@redhat.com>
5082 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5084 2014-02-20 Doug Evans <xdje42@gmail.com>
5086 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5087 All callers updated.
5088 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5089 All callers updated.
5090 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5091 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5093 2014-02-20 lin zuojian <manjian2006@gmail.com>
5094 Joel Brobecker <brobecker@adacore.com>
5095 Doug Evans <xdje42@gmail.com>
5098 * dwarf2read.c (struct die_info): New member in_process.
5099 (reset_die_in_process): New function.
5100 (process_die): Set it at the start, reset when returning.
5101 (inherit_abstract_dies): Only call process_die if origin_child_die
5102 not already being processed.
5104 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5106 * windows-nat.c (handle_unload_dll): Add function documentation.
5107 (do_initial_windows_stuff): Add comment explaining why we wait
5108 until after inferior initialization has finished before
5109 processing all DLLs.
5111 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5113 * windows-nat.c (get_module_name): Delete.
5114 (windows_get_exec_module_filename): New function, mostly
5115 inspired from get_module_name.
5116 (windows_pid_to_exec_file): Replace call to get_module_name
5117 by call to windows_get_exec_module_filename.
5119 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5121 * windows-nat.c (handle_load_dll): Rewrite this function's
5122 introductory comment. Remove code using get_module_name
5123 to get the DLL's name.
5125 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5127 * windows-nat.c (get_windows_debug_event): Ignore
5128 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5129 if windows_initialization_done == 0.
5130 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5131 Adjust implementation to always load all DLLs.
5132 (do_initial_windows_stuff): Replace call to
5133 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5135 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5137 * windows-nat.c (_initialize_windows_nat): Deprecate the
5138 "dll-symbols" command. Turn the "add-shared-symbol-files"
5139 and "assf" aliases into commands, and deprecate them as well.
5140 * NEWS: Add entry explaining that "dll-symbols" and its two
5141 aliases are now deprecated.
5143 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5145 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5146 new-line in debug string. Remove trailing spaces.
5148 2014-02-19 Stan Shebs <stan@codesourcery.com>
5150 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5152 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5154 * NEWS: Add entry for the new feature
5155 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5158 2014-02-19 Stan Shebs <stan@codesourcery.com>
5160 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5162 2014-02-19 Pedro Alves <palves@redhat.com>
5164 * common/ptid.h (struct ptid): Mention that process_stratum
5165 targets should prefer ptid.lwp.
5167 2014-02-19 Pedro Alves <palves@redhat.com>
5169 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5170 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5171 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5172 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5173 store remote thread ids rather than ptid.tid.
5174 (_initialize_remote): Adjust.
5176 2014-02-19 Tom Tromey <tromey@redhat.com>
5178 * target.c (target_get_unwinder): Rewrite.
5179 (target_get_tailcall_unwinder): Rewrite.
5180 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5181 (record_btrace_to_get_tailcall_unwinder): New function.
5182 (init_record_btrace_ops): Update.
5183 * target.h (struct target_ops) <to_get_unwinder,
5184 to_get_tailcall_unwinder>: Now function pointers. Use
5185 TARGET_DEFAULT_RETURN.
5187 2014-02-19 Tom Tromey <tromey@redhat.com>
5189 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5191 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5197 * target-delegates.c: Rebuild.
5198 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5199 TARGET_DEFAULT_FUNC.
5200 * target.c (default_target_decr_pc_after_break): Rename from
5201 forward_target_decr_pc_after_break. Simplify.
5202 (target_decr_pc_after_break): Rely on delegation.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target.c (update_current_target): Do not INHERIT to_doc or
5207 to_magic. Do not de_fault to_open or to_close.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * gcore.h (objfile_find_memory_regions): Declare.
5212 * gcore.c (objfile_find_memory_regions): No longer static. Add
5214 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5215 * exec.c: Include gcore.h.
5216 (exec_set_find_memory_regions): Remove.
5217 (exec_find_memory_regions): Remove.
5218 (exec_do_find_memory_regions): Remove.
5219 (init_exec_ops): Update.
5220 * defs.h (exec_set_find_memory_regions): Remove.
5222 2014-02-19 Tom Tromey <tromey@redhat.com>
5224 * target-delegates.c: Rebuild.
5225 * target.h (struct target_ops) <to_extra_thread_info,
5226 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5227 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5228 not 0, in TARGET_DEFAULT_RETURN.
5230 2014-02-19 Tom Tromey <tromey@redhat.com>
5232 * target.c (complete_target_initialization): Remove casts. Use
5233 return_zero_has_execution.
5234 (return_zero): Add "ignore" argument.
5235 (return_zero_has_execution): New function.
5236 (init_dummy_target): Remove casts. Use
5237 return_zero_has_execution.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target.c (update_current_target): Update comments. Do not
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5248 * corelow.c (core_read_description): Delegate when needed.
5249 * remote.c (remote_read_description): Delegate when needed.
5250 * target-delegates.c: Rebuild.
5251 * target.c (target_read_description): Rewrite.
5252 * target.h (struct target_ops) <to_read_description>: Update
5253 comment. Use TARGET_DEFAULT_RETURN.
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target-delegates.c: Rebuild.
5258 * target.c (update_current_target): Don't inherit or default
5260 (find_default_run_target): Check against delegate_can_run.
5261 * target.h (struct target_ops) <to_can_run>: Use
5262 TARGET_DEFAULT_RETURN.
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target-delegates.c: Rebuild.
5267 * target.c (target_disconnect): Unconditionally delegate.
5268 * target.h (struct target_ops) <to_disconnect>: Use
5269 TARGET_DEFAULT_NORETURN.
5271 2014-02-19 Tom Tromey <tromey@redhat.com>
5273 * record.c (record_stop): Unconditionally delegate.
5274 * target-delegates.c: Rebuild.
5275 * target.c (target_stop_recording): Unconditionally delegate.
5276 * target.h (struct target_ops) <to_stop_recording>: Use
5277 TARGET_DEFAULT_IGNORE.
5279 2014-02-19 Tom Tromey <tromey@redhat.com>
5281 * target-delegates.c: Rebuild.
5282 * target.c (target_enable_btrace): Unconditionally delegate.
5283 * target.h (struct target_ops) <to_enable_btrace>: Use
5284 TARGET_DEFAULT_NORETURN.
5286 2014-02-19 Tom Tromey <tromey@redhat.com>
5288 * target-delegates.c: Rebuild.
5289 * target.c (target_read_btrace): Unconditionally delegate.
5290 * target.h (struct target_ops) <to_read_btrace>: Use
5291 TARGET_DEFAULT_NORETURN.
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target-delegates.c: Rebuild.
5296 * target.c (target_teardown_btrace): Unconditionally delegate.
5297 * target.h (struct target_ops) <to_teardown_btrace>: Use
5298 TARGET_DEFAULT_NORETURN.
5300 2014-02-19 Tom Tromey <tromey@redhat.com>
5302 * target-delegates.c: Rebuild.
5303 * target.c (target_disable_btrace): Unconditionally delegate.
5304 * target.h (struct target_ops) <to_disable_btrace>: Use
5305 TARGET_DEFAULT_NORETURN.
5307 2014-02-19 Tom Tromey <tromey@redhat.com>
5309 * target-delegates.c: Rebuild.
5310 * target.c (default_search_memory): New function.
5311 (simple_search_memory): Update comment.
5312 (target_search_memory): Unconditionally delegate.
5313 * target.h (struct target_ops) <to_search_memory>: Use
5314 TARGET_DEFAULT_FUNC.
5316 2014-02-19 Tom Tromey <tromey@redhat.com>
5318 * auxv.c (default_auxv_parse): No longer static.
5319 (target_auxv_parse): Unconditionally delegate.
5320 * auxv.h (default_auxv_parse): Declare.
5321 * target-delegates.c: Rebuild.
5322 * target.c: Include auxv.h.
5323 * target.h (struct target_ops) <to_auxv_parse>: Use
5324 TARGET_DEFAULT_FUNC.
5326 2014-02-19 Tom Tromey <tromey@redhat.com>
5328 * target-delegates.c: Rebuild.
5329 * target.c (target_memory_map): Unconditionally delegate.
5330 * target.h (struct target_ops) <to_memory_map>: Use
5331 TARGET_DEFAULT_RETURN.
5333 2014-02-19 Tom Tromey <tromey@redhat.com>
5335 * target-delegates.c: Rebuild.
5336 * target.c (target_thread_alive): Unconditionally delegate.
5337 * target.h (struct target_ops) <to_thread_alive>: Use
5338 TARGET_DEFAULT_RETURN.
5340 2014-02-19 Tom Tromey <tromey@redhat.com>
5342 * target-delegates.c: Rebuild.
5343 * target.c (target_save_record): Unconditionally delegate.
5344 * target.h (struct target_ops) <to_save_record>: Use
5345 TARGET_DEFAULT_NORETURN.
5347 2014-02-19 Tom Tromey <tromey@redhat.com>
5349 * target-delegates.c: Rebuild.
5350 * target.c (target_delete_record): Unconditionally delegate.
5351 * target.h (struct target_ops) <to_delete_record>: Use
5352 TARGET_DEFAULT_NORETURN.
5354 2014-02-19 Tom Tromey <tromey@redhat.com>
5356 * target-delegates.c: Rebuild.
5357 * target.c (target_record_is_replaying): Unconditionally
5359 * target.h (struct target_ops) <to_record_is_replaying>: Use
5360 TARGET_DEFAULT_RETURN.
5362 2014-02-19 Tom Tromey <tromey@redhat.com>
5364 * target-delegates.c: Rebuild.
5365 * target.c (target_goto_record_begin): Unconditionally delegate.
5366 * target.h (struct target_ops) <to_goto_record_begin>: Use
5367 TARGET_DEFAULT_NORETURN.
5369 2014-02-19 Tom Tromey <tromey@redhat.com>
5371 * target-delegates.c: Rebuild.
5372 * target.c (target_goto_record_end): Unconditionally delegate.
5373 * target.h (struct target_ops) <to_goto_record_end>: Use
5374 TARGET_DEFAULT_NORETURN.
5376 2014-02-19 Tom Tromey <tromey@redhat.com>
5378 * target-delegates.c: Rebuild.
5379 * target.c (target_goto_record): Unconditionally delegate.
5380 * target.h (struct target_ops) <to_goto_record>: Use
5381 TARGET_DEFAULT_NORETURN.
5383 2014-02-19 Tom Tromey <tromey@redhat.com>
5385 * target-delegates.c: Rebuild.
5386 * target.c (target_insn_history): Unconditionally delegate.
5387 * target.h (struct target_ops) <to_insn_history>: Use
5388 TARGET_DEFAULT_NORETURN.
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target-delegates.c: Rebuild.
5393 * target.c (target_insn_history_from): Unconditionally delegate.
5394 * target.h (struct target_ops) <to_insn_history_from>: Use
5395 TARGET_DEFAULT_NORETURN.
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target-delegates.c: Rebuild.
5400 * target.c (target_insn_history_range): Unconditionally delegate.
5401 * target.h (struct target_ops) <to_insn_history_range>: Use
5402 TARGET_DEFAULT_NORETURN.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target-delegates.c: Rebuild.
5407 * target.c (target_call_history): Unconditionally delegate.
5408 * target.h (struct target_ops) <to_call_history>: Use
5409 TARGET_DEFAULT_NORETURN.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * target-delegates.c: Rebuild.
5414 * target.c (target_call_history_from): Unconditionally delegate.
5415 * target.h (struct target_ops) <to_call_history_from>: Use
5416 TARGET_DEFAULT_NORETURN.
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target-delegates.c: Rebuild.
5421 * target.c (target_call_history_range): Unconditionally delegate.
5422 * target.h (struct target_ops) <to_call_history_range>: Use
5423 TARGET_DEFAULT_NORETURN.
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target-delegates.c: Rebuild.
5428 * target.c (target_verify_memory): Unconditionally delegate.
5429 * target.h (struct target_ops) <to_verify_memory>: Use
5430 TARGET_DEFAULT_NORETURN.
5432 2014-02-19 Tom Tromey <tromey@redhat.com>
5434 * target-delegates.c: Rebuild.
5435 * target.c (target_core_of_thread): Unconditionally delegate.
5436 * target.h (struct target_ops) <to_core_of_thread>: Use
5437 TARGET_DEFAULT_RETURN.
5439 2014-02-19 Tom Tromey <tromey@redhat.com>
5441 * target-delegates.c: Rebuild.
5442 * target.c (target_flash_done): Unconditionally delegate.
5443 * target.h (struct target_ops) <to_flash_done>: Use
5444 TARGET_DEFAULT_NORETURN.
5446 2014-02-19 Tom Tromey <tromey@redhat.com>
5448 * target-delegates.c: Rebuild.
5449 * target.c (target_flash_erase): Unconditionally delegate.
5450 * target.h (struct target_ops) <to_flash_erase>: Use
5451 TARGET_DEFAULT_NORETURN.
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target-delegates.c: Rebuild.
5456 * target.c (target_get_section_table): Unconditionally delegate.
5457 * target.h (struct target_ops) <to_get_section_table>: Use
5458 TARGET_DEFAULT_RETURN.
5460 2014-02-19 Tom Tromey <tromey@redhat.com>
5462 * target-delegates.c: Rebuild.
5463 * target.c (target_pid_to_str): Unconditionally delegate.
5464 (init_dummy_target): Don't initialize to_pid_to_str.
5465 (default_pid_to_str): Rename from dummy_pid_to_str.
5466 * target.h (struct target_ops) <to_pid_to_str>: Use
5467 TARGET_DEFAULT_FUNC.
5469 2014-02-19 Tom Tromey <tromey@redhat.com>
5471 * target-delegates.c: Rebuild.
5472 * target.c (target_find_new_threads): Unconditionally delegate.
5473 * target.h (struct target_ops) <to_find_new_threads>: Use
5474 TARGET_DEFAULT_RETURN.
5476 2014-02-19 Tom Tromey <tromey@redhat.com>
5478 * target-delegates.c: Rebuild.
5479 * target.c (target_program_signals): Unconditionally delegate.
5480 * target.h (struct target_ops) <to_program_signals>: Use
5481 TARGET_DEFAULT_IGNORE.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * target-delegates.c: Rebuild.
5486 * target.c (target_pass_signals): Unconditionally delegate.
5487 * target.h (struct target_ops) <to_pass_signals>: Use
5488 TARGET_DEFAULT_IGNORE.
5490 2014-02-19 Tom Tromey <tromey@redhat.com>
5492 * target-delegates.c: Rebuild.
5493 * target.c (default_mourn_inferior): New function.
5494 (target_mourn_inferior): Unconditionally delegate.
5495 * target.h (struct target_ops) <to_mourn_inferior>: Use
5496 TARGET_DEFAULT_FUNC.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target-delegates.c: Rebuild.
5501 * target.c (default_follow_fork): New function.
5502 (target_follow_fork): Unconditionally delegate.
5503 * target.h (struct target_ops) <to_follow_fork>: Use
5504 TARGET_DEFAULT_FUNC.
5506 2014-02-19 Tom Tromey <tromey@redhat.com>
5508 * target-delegates.c: Rebuild.
5509 * target.c (target_kill): Unconditionally delegate.
5510 * target.h (struct target_ops) <to_kill>: Use
5511 TARGET_DEFAULT_NORETURN.
5513 2014-02-19 Tom Tromey <tromey@redhat.com>
5515 * target-delegates.c: Rebuild.
5516 * target.c (target_masked_watch_num_registers): Unconditionally
5518 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5519 Use TARGET_DEFAULT_RETURN.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target-delegates.c: Rebuild.
5524 * target.c (target_remove_mask_watchpoint): Unconditionally
5526 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5527 TARGET_DEFAULT_RETURN.
5529 2014-02-19 Tom Tromey <tromey@redhat.com>
5531 * target-delegates.c: Rebuild.
5532 * target.c (target_insert_mask_watchpoint): Unconditionally
5534 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5535 TARGET_DEFAULT_RETURN.
5537 2014-02-19 Tom Tromey <tromey@redhat.com>
5539 * target-delegates.c: Rebuild.
5540 * target.c (target_ranged_break_num_registers): Unconditionally
5542 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5543 Use TARGET_DEFAULT_RETURN.
5545 2014-02-19 Tom Tromey <tromey@redhat.com>
5547 * target-delegates.c: Rebuild.
5548 * target.c (target_fetch_registers): Unconditionally delegate.
5549 * target.h (struct target_ops) <to_fetch_registers>: Use
5550 TARGET_DEFAULT_NORETURN.
5552 2014-02-19 Tom Tromey <tromey@redhat.com>
5554 * target-delegates.c: Rebuild.
5555 * target.c (update_current_target): Don't inherit or default
5557 * target.h (struct target_ops) <to_stop>: Use
5558 TARGET_DEFAULT_IGNORE.
5560 2014-02-19 Tom Tromey <tromey@redhat.com>
5562 * target-delegates.c: Rebuild.
5563 * target.c (update_current_target): Don't inherit or default
5564 to_can_run_breakpoint_commands.
5565 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5566 Use TARGET_DEFAULT_RETURN.
5568 2014-02-19 Tom Tromey <tromey@redhat.com>
5570 * target-delegates.c: Rebuild.
5571 * target.c (update_current_target): Don't inherit or default
5572 to_supports_evaluation_of_breakpoint_conditions.
5573 * target.h (struct target_ops)
5574 <to_supports_evaluation_of_breakpoint_conditions>: Use
5575 TARGET_DEFAULT_RETURN.
5577 2014-02-19 Tom Tromey <tromey@redhat.com>
5579 * target-delegates.c: Rebuild.
5580 * target.c (update_current_target): Don't inherit or default
5581 to_augmented_libraries_svr4_read.
5582 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5583 Use TARGET_DEFAULT_RETURN.
5585 2014-02-19 Tom Tromey <tromey@redhat.com>
5587 * target-delegates.c: Rebuild.
5588 * target.c (update_current_target): Don't inherit or default
5590 * target.h (struct target_ops) <to_can_use_agent>: Use
5591 TARGET_DEFAULT_RETURN.
5593 2014-02-19 Tom Tromey <tromey@redhat.com>
5595 * target-delegates.c: Rebuild.
5596 * target.c (update_current_target): Don't inherit or default
5598 * target.h (struct target_ops) <to_use_agent>: Use
5599 TARGET_DEFAULT_NORETURN.
5601 2014-02-19 Tom Tromey <tromey@redhat.com>
5603 * target-delegates.c: Rebuild.
5604 * target.c (update_current_target): Don't inherit or default
5606 (return_null): Remove.
5607 * target.h (struct target_ops) <to_traceframe_info>: Use
5608 TARGET_DEFAULT_RETURN.
5610 2014-02-19 Tom Tromey <tromey@redhat.com>
5612 * target-delegates.c: Rebuild.
5613 * target.c (update_current_target): Don't inherit or default
5614 to_static_tracepoint_markers_by_strid.
5615 * target.h (struct target_ops)
5616 <to_static_tracepoint_markers_by_strid>: Use
5617 TARGET_DEFAULT_NORETURN.
5619 2014-02-19 Tom Tromey <tromey@redhat.com>
5621 * target-delegates.c: Rebuild.
5622 * target.c (update_current_target): Don't inherit or default
5623 to_static_tracepoint_marker_at.
5624 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5625 Use TARGET_DEFAULT_RETURN.
5627 2014-02-19 Tom Tromey <tromey@redhat.com>
5629 * target-delegates.c: Rebuild.
5630 * target.c (update_current_target): Don't inherit or default
5632 * target.h (struct target_ops) <to_set_permissions>: Use
5633 TARGET_DEFAULT_IGNORE.
5635 2014-02-19 Tom Tromey <tromey@redhat.com>
5637 * target-delegates.c: Rebuild.
5638 * target.c (update_current_target): Don't inherit or default
5640 * target.h (struct target_ops) <to_get_tib_address>: Use
5641 TARGET_DEFAULT_NORETURN.
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * target-delegates.c: Rebuild.
5646 * target.c (update_current_target): Don't inherit or default
5648 * target.h (struct target_ops) <to_set_trace_notes>: Use
5649 TARGET_DEFAULT_RETURN.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target-delegates.c: Rebuild.
5654 * target.c (update_current_target): Don't initialize
5655 to_set_trace_buffer_size.
5656 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5657 TARGET_DEFAULT_IGNORE.
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5661 * target-delegates.c: Rebuild.
5662 * target.c (update_current_target): Don't inherit or default
5663 to_set_circular_trace_buffer.
5664 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5665 TARGET_DEFAULT_IGNORE.
5667 2014-02-19 Tom Tromey <tromey@redhat.com>
5669 * target-delegates.c: Rebuild.
5670 * target.c (update_current_target): Don't inherit or default
5671 to_set_disconnected_tracing.
5672 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5673 TARGET_DEFAULT_IGNORE.
5675 2014-02-19 Tom Tromey <tromey@redhat.com>
5677 * target-delegates.c: Rebuild.
5678 * target.c (update_current_target): Don't inherit or default
5679 to_get_min_fast_tracepoint_insn_len.
5680 (return_minus_one): Remove.
5681 * target.h (struct target_ops)
5682 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5684 2014-02-19 Tom Tromey <tromey@redhat.com>
5686 * target-delegates.c: Rebuild.
5687 * target.c (update_current_target): Don't inherit or default
5688 to_get_raw_trace_data.
5689 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5690 TARGET_DEFAULT_NORETURN.
5692 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target-delegates.c: Rebuild.
5695 * target.c (update_current_target): Don't inherit or default
5696 to_upload_trace_state_variables.
5697 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5698 Use TARGET_DEFAULT_RETURN.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target-delegates.c: Rebuild.
5703 * target.c (update_current_target): Don't inherit or default
5704 to_upload_tracepoints.
5705 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5706 TARGET_DEFAULT_RETURN.
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_save_trace_data>: Use
5714 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
5721 * target.h (struct target_ops)
5722 <to_get_trace_state_variable_value>: 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
5729 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5733 * target-delegates.c: Rebuild.
5734 * target.c (update_current_target): Don't inherit or default
5736 * target.h (struct target_ops) <to_trace_stop>: Use
5737 TARGET_DEFAULT_NORETURN.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * target-delegates.c: Rebuild.
5742 * target.c (update_current_target): Don't inherit or default
5743 to_get_tracepoint_status.
5744 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5745 TARGET_DEFAULT_NORETURN.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target-delegates.c: Rebuild.
5750 * target.c (update_current_target): Don't inherit or default
5751 to_get_trace_status.
5752 * target.h (struct target_ops) <to_get_trace_status>: Use
5753 TARGET_DEFAULT_RETURN.
5755 2014-02-19 Tom Tromey <tromey@redhat.com>
5757 * target-delegates.c: Rebuild.
5758 * target.c (update_current_target): Don't inherit or default
5760 * target.h (struct target_ops) <to_trace_start>: Use
5761 TARGET_DEFAULT_NORETURN.
5763 2014-02-19 Tom Tromey <tromey@redhat.com>
5765 * target-delegates.c: Rebuild.
5766 * target.c (update_current_target): Don't inherit or default
5767 to_trace_set_readonly_regions.
5768 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5769 Use TARGET_DEFAULT_NORETURN.
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5773 * target-delegates.c: Rebuild.
5774 * target.c (update_current_target): Don't inherit or default
5775 to_disable_tracepoint.
5776 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5777 TARGET_DEFAULT_NORETURN.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * target-delegates.c: Rebuild.
5782 * target.c (update_current_target): Don't inherit or default
5783 to_enable_tracepoint.
5784 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5785 TARGET_DEFAULT_NORETURN.
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * target-delegates.c: Rebuild.
5790 * target.c (update_current_target): Don't inherit or default
5791 to_download_trace_state_variable.
5792 * target.h (struct target_ops) <to_download_trace_state_variable>:
5793 Use TARGET_DEFAULT_NORETURN.
5795 2014-02-19 Tom Tromey <tromey@redhat.com>
5797 * target-delegates.c: Rebuild.
5798 * target.c (update_current_target): Don't inherit or default
5799 to_can_download_tracepoint.
5800 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5801 TARGET_DEFAULT_RETURN.
5803 2014-02-19 Tom Tromey <tromey@redhat.com>
5805 * target-delegates.c: Rebuild.
5806 * target.c (update_current_target): Don't inherit or default
5807 to_download_tracepoint.
5808 * target.h (struct target_ops) <to_download_tracepoint>: Use
5809 TARGET_DEFAULT_NORETURN.
5811 2014-02-19 Tom Tromey <tromey@redhat.com>
5813 * target-delegates.c: Rebuild.
5814 * target.c (update_current_target): Don't inherit or default
5816 * target.h (struct target_ops) <to_trace_init>: Use
5817 TARGET_DEFAULT_RETURN.
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * target-delegates.c: Rebuild.
5822 * target.c (update_current_target): Don't inherit or default
5823 to_supports_string_tracing.
5824 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5825 TARGET_DEFAULT_RETURN.
5827 2014-02-19 Tom Tromey <tromey@redhat.com>
5829 * target-delegates.c: Rebuild.
5830 * target.c (update_current_target): Don't inherit or default
5831 to_supports_enable_disable_tracepoint.
5832 * target.h (struct target_ops)
5833 <to_supports_enable_disable_tracepoint>: Use
5834 TARGET_DEFAULT_RETURN.
5836 2014-02-19 Tom Tromey <tromey@redhat.com>
5838 * target-delegates.c: Rebuild.
5839 * target.c (update_current_target): Don't inherit or default
5840 to_supports_multi_process.
5841 * target.h (struct target_ops) <to_supports_multi_process>: Use
5842 TARGET_DEFAULT_RETURN.
5844 2014-02-19 Tom Tromey <tromey@redhat.com>
5846 * target-delegates.c: Rebuild.
5847 * target.c (update_current_target): Don't inherit or default
5848 to_get_ada_task_ptid.
5849 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5850 TARGET_DEFAULT_FUNC.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * target-delegates.c: Rebuild.
5855 * target.c (update_current_target): Don't inherit or default
5856 to_thread_architecture.
5857 * target.h (struct target_ops) <to_thread_architecture>: Use
5858 TARGET_DEFAULT_FUNC.
5860 2014-02-19 Tom Tromey <tromey@redhat.com>
5862 * target-delegates.c: Rebuild.
5863 * target.c (update_current_target): Don't inherit or default
5864 to_execution_direction.
5865 * target.h (struct target_ops) <to_execution_direction>: Use
5866 TARGET_DEFAULT_FUNC.
5868 2014-02-19 Tom Tromey <tromey@redhat.com>
5870 * target-delegates.c: Rebuild.
5871 * target.c (update_current_target): Don't inherit or default
5872 to_can_execute_reverse.
5873 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5874 TARGET_DEFAULT_RETURN.
5875 (target_can_execute_reverse): Unconditionally delegate.
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5879 * target-delegates.c: Rebuild.
5880 * target.c (update_current_target): Don't inherit or default
5882 (dummy_goto_bookmark): Remove.
5883 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5884 * target.h (struct target_ops) <to_goto_bookmark>: Use
5885 TARGET_DEFAULT_NORETURN.
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 (dummy_get_bookmark): Remove.
5893 (init_dummy_target): Don't inherit or default to_get_bookmark.
5894 * target.h (struct target_ops) <to_get_bookmark>: Use
5895 TARGET_DEFAULT_NORETURN
5897 2014-02-19 Tom Tromey <tromey@redhat.com>
5899 * target-delegates.c: Rebuild.
5900 * target.c (update_current_target): Don't inherit or default
5901 to_make_corefile_notes.
5902 (init_dummy_target): Don't initialize to_make_corefile_notes.
5903 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5904 TARGET_DEFAULT_FUNC.
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target-delegates.c: Rebuild.
5909 * target.c (update_current_target): Don't inherit or default
5910 to_find_memory_regions.
5911 (init_dummy_target): Don't initialize to_find_memory_regions.
5912 * target.h (struct target_ops) <to_find_memory_regions>: Use
5913 TARGET_DEFAULT_FUNC.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target-delegates.c: Rebuild.
5918 * target.c (update_current_target): Don't inherit or default
5920 * target.h (struct target_ops) <to_log_command>: Use
5921 TARGET_DEFAULT_IGNORE.
5922 (target_log_command): Unconditionally delegate.
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * target-delegates.c: Rebuild.
5927 * target.c (update_current_target): Don't inherit or default
5928 to_pid_to_exec_file.
5929 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5930 TARGET_DEFAULT_RETURN.
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5934 * target-delegates.c: Rebuild.
5935 * target.c (update_current_target): Don't inherit or default
5937 (target_thread_name): Unconditionally delegate.
5938 * target.h (struct target_ops) <to_thread_name>: Use
5939 TARGET_DEFAULT_RETURN.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target-delegates.c: Rebuild.
5944 * target.c (update_current_target): Don't inherit or default
5945 to_extra_thread_info.
5946 * target.h (struct target_ops) <to_extra_thread_info>: Use
5947 TARGET_DEFAULT_RETURN.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target-delegates.c: Rebuild.
5952 * target.c (update_current_target): Don't inherit or default
5954 * target.h (struct target_ops) <to_has_exited>: Use
5955 TARGET_DEFAULT_RETURN..
5957 2014-02-19 Tom Tromey <tromey@redhat.com>
5959 * target-delegates.c: Rebuild.
5960 * target.c (update_current_target): Don't inherit or default
5961 to_set_syscall_catchpoint.
5962 (return_one): Remove.
5963 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5964 TARGET_DEFAULT_RETURN.
5966 2014-02-19 Tom Tromey <tromey@redhat.com>
5968 * target-delegates.c: Rebuild.
5969 * target.c (update_current_target): Don't inherit or default
5970 to_insert_exec_catchpoint.
5971 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5972 TARGET_DEFAULT_RETURN.
5974 2014-01-08 Tom Tromey <tromey@redhat.com>
5976 * target-delegates.c: Rebuild.
5977 * target.c (update_current_target): Don't inherit or default
5978 to_insert_exec_catchpoint.
5979 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5980 TARGET_DEFAULT_RETURN.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target-delegates.c: Rebuild.
5985 * target.c (update_current_target): Don't inherit or default
5986 to_remove_vfork_catchpoint.
5987 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5988 TARGET_DEFAULT_RETURN.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target-delegates.c: Rebuild.
5993 * target.c (update_current_target): Don't inherit or default
5994 to_insert_vfork_catchpoint.
5995 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5996 TARGET_DEFAULT_RETURN.
5998 2014-02-19 Tom Tromey <tromey@redhat.com>
6000 * target-delegates.c: Rebuild.
6001 * target.c (update_current_target): Don't inherit or default
6002 to_remove_fork_catchpoint.
6003 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6004 TARGET_DEFAULT_RETURN.
6006 2014-02-19 Tom Tromey <tromey@redhat.com>
6008 * target-delegates.c: Rebuild.
6009 * target.c (update_current_target): Don't inherit or default
6010 to_insert_fork_catchpoint.
6011 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6012 TARGET_DEFAULT_RETURN.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target-delegates.c: Rebuild.
6017 * target.c (update_current_target): Don't inherit or default
6018 to_post_startup_inferior.
6019 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6020 TARGET_DEFAULT_IGNORE.
6022 2014-02-19 Tom Tromey <tromey@redhat.com>
6024 * target-delegates.c: Rebuild.
6025 * target.c (update_current_target): Don't inherit or default
6027 * target.h (struct target_ops) <to_load>: Use
6028 TARGET_DEFAULT_NORETURN.
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target-delegates.c: Rebuild.
6033 * target.c (update_current_target): Don't inherit or default
6035 * target.h (struct target_ops) <to_terminal_info>: Use
6036 TARGET_DEFAULT_FUNC.
6038 2014-02-19 Tom Tromey <tromey@redhat.com>
6040 * target-delegates.c: Rebuild.
6041 * target.c (update_current_target): Don't inherit or default
6042 to_terminal_save_ours.
6043 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6044 TARGET_DEFAULT_IGNORE.
6046 2014-02-19 Tom Tromey <tromey@redhat.com>
6048 * target-delegates.c: Rebuild.
6049 * target.c (update_current_target): Don't inherit or default
6051 * target.h (struct target_ops) <to_terminal_ours>: Use
6052 TARGET_DEFAULT_IGNORE.
6054 2014-02-19 Tom Tromey <tromey@redhat.com>
6056 * target-delegates.c: Rebuild.
6057 * target.c (update_current_target): Don't inherit or default
6058 to_terminal_ours_for_output.
6059 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6060 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
6067 * target.h (struct target_ops) <to_terminal_inferior>: Use
6068 TARGET_DEFAULT_IGNORE.
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * target-delegates.c: Rebuild.
6073 * target.c (update_current_target): Don't inherit or default
6075 * target.h (struct target_ops) <to_terminal_init>: Use
6076 TARGET_DEFAULT_IGNORE.
6078 2014-02-19 Tom Tromey <tromey@redhat.com>
6080 * target-delegates.c: Rebuild.
6081 * target.c (update_current_target): Don't inherit or default
6082 to_can_accel_watchpoint_condition.
6083 * target.h (struct target_ops)
6084 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6088 * target-delegates.c: Rebuild.
6089 * target.c (update_current_target): Don't inherit or default
6090 to_region_ok_for_hw_watchpoint.
6091 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6092 Use TARGET_DEFAULT_FUNC.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * target-delegates.c: Rebuild.
6097 * target.c (update_current_target): Don't inherit or default
6098 to_watchpoint_addr_within_range.
6099 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6100 Use TARGET_DEFAULT_FUNC.
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * target-delegates.c: Rebuild.
6105 * target.c (update_current_target): Don't inherit or default
6106 to_remove_watchpoint.
6107 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6108 TARGET_DEFAULT_NORETURN.
6110 2014-02-19 Tom Tromey <tromey@redhat.com>
6112 * target-delegates.c: Rebuild.
6113 * target.c (update_current_target): Don't inherit or default
6114 to_insert_watchpoint.
6115 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6116 TARGET_DEFAULT_RETURN.
6118 2014-02-19 Tom Tromey <tromey@redhat.com>
6120 * target-delegates.c: Rebuild.
6121 * target.c (update_current_target): Don't inherit or default
6122 to_remove_hw_breakpoint.
6123 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6124 TARGET_DEFAULT_RETURN.
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target-delegates.c: Rebuild.
6129 * target.c (update_current_target): Don't inherit or default
6130 to_insert_hw_breakpoint.
6131 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6132 TARGET_DEFAULT_RETURN.
6134 2014-02-19 Tom Tromey <tromey@redhat.com>
6136 * target-delegates.c: Rebuild.
6137 * target.c (update_current_target): Don't inherit or default
6138 to_can_use_hw_breakpoint.
6139 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6140 TARGET_DEFAULT_RETURN.
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6144 * target-delegates.c: Rebuild.
6145 * target.c (update_current_target): Don't inherit or default
6147 * target.h (struct target_ops) <to_files_info>: Use
6148 TARGET_DEFAULT_IGNORE.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target-delegates.c: Rebuild.
6153 * target.c (update_current_target): Don't inherit or default
6155 * target.h (struct target_ops) <to_store>: Use
6156 TARGET_DEFAULT_NORETURN.
6158 2014-02-19 Tom Tromey <tromey@redhat.com>
6160 * target-delegates.c: Rebuild.
6161 * target.c (update_current_target): Don't inherit or default
6163 * target.h (struct target_ops) <to_post_attach>: Use
6164 TARGET_DEFAULT_IGNORE.
6166 2014-02-19 Tom Tromey <tromey@redhat.com>
6168 * target-delegates.c: Rebuild.
6169 * target.c (update_current_target): Don't inherit or default
6171 (default_rcmd): New function.
6172 (do_monitor_command): Unconditionally delegate.
6173 * target.h (struct target_ops) <to_rmcd>: Use
6174 TARGET_DEFAULT_FUNC.
6176 2014-02-19 Tom Tromey <tromey@redhat.com>
6178 * target-delegates.c: Rebuild.
6179 * target.c (init_dummy_target): Don't initialize to_attach.
6180 (target_attach): Unconditionally delegate.
6181 * target.h (struct target_ops) <to_attach>: Use
6182 TARGET_DEFAULT_FUNC.
6184 2014-02-19 Tom Tromey <tromey@redhat.com>
6186 * target-delegates.c: Rebuild.
6187 * target.c (target_detach): Unconditionally delegate.
6188 (init_dummy_target): Don't initialize to_detach.
6189 * target.h (struct target_ops) <to_detach>: Use
6190 TARGET_DEFAULT_IGNORE.
6192 2014-02-19 Tom Tromey <tromey@redhat.com>
6194 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6196 (target_augmented_libraries_svr4_read): Add argument.
6197 * target.c (update_current_target): Update.
6198 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6201 2014-02-19 Tom Tromey <tromey@redhat.com>
6203 * target.h (struct target_ops) <to_call_history_range>: Add
6205 * target.c (target_call_history_range): Add argument.
6206 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6208 (record_btrace_call_history_from): Update.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target.h (struct target_ops) <to_call_history_from>: Add
6214 * target.c (target_call_history_from): Add argument.
6215 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6218 2014-02-19 Tom Tromey <tromey@redhat.com>
6220 * target.h (struct target_ops) <to_call_history>: Add argument.
6221 * target.c (target_call_history): Add argument.
6222 * record-btrace.c (record_btrace_call_history): Add 'self'
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target.h (struct target_ops) <to_insn_history_range>: Add
6229 * target.c (target_insn_history_range): Add argument.
6230 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6232 (record_btrace_insn_history_from): Update.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target.h (struct target_ops) <to_insn_history_from>: Add
6238 * target.c (target_insn_history_from): Add argument.
6239 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target.h (struct target_ops) <to_insn_history>: Add argument.
6245 * target.c (target_insn_history): Add argument.
6246 * record-btrace.c (record_btrace_insn_history): Add 'self'
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * target.h (struct target_ops) <to_goto_record>: Add argument.
6252 * target.c (target_goto_record): Add argument.
6253 * record-full.c (record_full_goto): Add 'self' argument.
6254 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6256 2014-02-19 Tom Tromey <tromey@redhat.com>
6258 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6259 * target.c (target_goto_record_end): Add argument.
6260 * record-full.c (record_full_goto_end): Add 'self' argument.
6261 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target.h (struct target_ops) <to_goto_record_begin>: Add
6267 * target.c (target_goto_record_begin): Add argument.
6268 * record-full.c (record_full_goto_begin): Add 'self' argument.
6269 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target.h (struct target_ops) <to_record_is_replaying>: Add
6276 * target.c (target_record_is_replaying): Add argument.
6277 * record-full.c (record_full_is_replaying): Add 'self' argument.
6278 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6280 (record_btrace_xfer_partial, record_btrace_store_registers)
6281 (record_btrace_prepare_to_store, record_btrace_resume)
6282 (record_btrace_wait, record_btrace_decr_pc_after_break)
6283 (record_btrace_find_new_threads, record_btrace_thread_alive):
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target.h (struct target_ops) <to_delete_record>: Add argument.
6289 * target.c (target_delete_record): Add argument.
6290 * record-full.c (record_full_delete): Add 'self' argument.
6292 2014-02-19 Tom Tromey <tromey@redhat.com>
6294 * target.h (struct target_ops) <to_save_record>: Add argument.
6295 * target.c (target_save_record): Add argument.
6296 * record-full.c (record_full_save): Add 'self' argument.
6297 (record_full_save): Add 'self' argument.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target.h (struct target_ops) <to_info_record>: Add argument.
6302 * target.c (target_info_record): Add argument.
6303 * record.c (info_record_command): Add argument.
6304 * record-full.c (record_full_info): Add 'self' argument.
6305 * record-btrace.c (record_btrace_info): Add 'self' argument.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6310 * target.c (target_stop_recording): Add argument.
6311 * record.c (record_stop): Add argument.
6312 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6317 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6318 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6319 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6321 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6322 (_initialize_amd64_linux_nat): Use it.
6323 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6324 (_initialize_i386_linux_nat): Use it.
6326 2014-02-19 Tom Tromey <tromey@redhat.com>
6328 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6329 * target.c (target_teardown_btrace): Add argument.
6330 * remote.c (remote_teardown_btrace): Add 'self' argument.
6331 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6333 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6339 * target.c (target_disable_btrace): Add argument.
6340 * remote.c (remote_disable_btrace): Add 'self' argument.
6341 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6343 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6349 * target.c (target_enable_btrace): Add argument.
6350 * remote.c (remote_enable_btrace): Add 'self' argument.
6351 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6353 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6356 2014-02-19 Tom Tromey <tromey@redhat.com>
6358 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6359 (target_can_use_agent): Add argument.
6360 * target.c (update_current_target): Update.
6361 * remote.c (remote_can_use_agent): Add 'self' argument.
6362 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6364 2014-02-19 Tom Tromey <tromey@redhat.com>
6366 * target.h (struct target_ops) <to_use_agent>: Add argument.
6367 (target_use_agent): Add argument.
6368 * target.c (update_current_target): Update.
6369 * remote.c (remote_use_agent): Add 'self' argument.
6370 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6375 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6376 (target_traceframe_info): Add argument.
6377 * target.c (update_current_target): Update.
6378 * remote.c (remote_traceframe_info): Add 'self' argument.
6379 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6381 2014-02-19 Tom Tromey <tromey@redhat.com>
6383 * target.h (target_static_tracepoint_markers_by_strid): Add
6385 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6387 * target.c (update_current_target): Update.
6388 * remote.c (struct target_ops)
6389 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6390 * linux-nat.c (struct target_ops)
6391 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6393 2014-02-19 Tom Tromey <tromey@redhat.com>
6395 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6397 (target_static_tracepoint_marker_at): Add argument.
6398 * target.c (update_current_target): Update.
6399 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6405 (target_set_permissions): Add argument.
6406 * target.c (update_current_target): Update.
6407 * remote.c (remote_set_permissions): Add 'self' argument.
6408 (remote_start_remote): Update.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6413 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6414 (target_get_tib_address): Add argument.
6415 * target.c (update_current_target): Update.
6416 * remote.c (remote_get_tib_address): Add 'self' argument.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6421 (target_set_trace_notes): Add argument.
6422 * target.c (update_current_target): Update.
6423 * remote.c (remote_set_trace_notes): Add 'self' argument.
6425 2014-02-19 Tom Tromey <tromey@redhat.com>
6427 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6429 (target_set_trace_buffer_size): Add argument.
6430 * target.c (update_current_target): Update.
6431 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6433 2014-02-19 Tom Tromey <tromey@redhat.com>
6435 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6437 (target_set_circular_trace_buffer): Add argument.
6438 * target.c (update_current_target): Update.
6439 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6442 2014-02-19 Tom Tromey <tromey@redhat.com>
6444 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6446 (target_set_disconnected_tracing): Add argument.
6447 * target.c (update_current_target): Update.
6448 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6450 2014-02-19 Tom Tromey <tromey@redhat.com>
6452 * target.h (struct target_ops)
6453 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6454 (target_get_min_fast_tracepoint_insn_len): Add argument.
6455 * target.c (update_current_target): Update.
6456 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6463 (target_get_raw_trace_data): Add argument.
6464 * target.c (update_current_target): Update.
6465 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6467 2014-02-19 Tom Tromey <tromey@redhat.com>
6469 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6471 (target_upload_trace_state_variables): Add argument.
6472 * target.c (update_current_target): Update.
6473 * remote.c (remote_upload_trace_state_variables): Add 'self'
6475 (remote_start_remote): Update.
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6481 (target_upload_tracepoints): Add argument.
6482 * target.c (update_current_target): Update.
6483 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6484 (remote_start_remote): Update.
6486 2014-02-19 Tom Tromey <tromey@redhat.com>
6488 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6489 (target_save_trace_data): Add argument.
6490 * target.c (update_current_target): Update.
6491 * remote.c (remote_save_trace_data): Add 'self' argument.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6497 * target.h (struct target_ops)
6498 <to_get_trace_state_variable_value>: Add argument.
6499 (target_get_trace_state_variable_value): Add argument.
6500 * target.c (update_current_target): Update.
6501 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6503 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6505 2014-02-19 Tom Tromey <tromey@redhat.com>
6507 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6508 * target.h (struct target_ops) <to_trace_find>: Add argument.
6509 (target_trace_find): Add argument.
6510 * target.c (update_current_target): Update.
6511 * remote.c (remote_trace_find): Add 'self' argument.
6512 * ctf.c (ctf_trace_find): Add 'self' argument.
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6517 (target_trace_stop): Add argument.
6518 * target.c (update_current_target): Update.
6519 * remote.c (remote_trace_stop): Add 'self' argument.
6521 2014-02-19 Tom Tromey <tromey@redhat.com>
6523 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6524 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6526 (target_get_tracepoint_status): Add argument.
6527 * target.c (update_current_target): Update.
6528 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6533 * target.h (struct target_ops) <to_get_trace_status>: Add
6535 (target_get_trace_status): Add argument.
6536 * target.c (update_current_target): Update.
6537 * remote.c (remote_get_trace_status): Add 'self' argument.
6538 (remote_start_remote, remote_can_download_tracepoint): Update.
6539 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target.h (struct target_ops) <to_trace_start>: Add argument.
6544 (target_trace_start): Add argument.
6545 * target.c (update_current_target): Update.
6546 * remote.c (remote_trace_start): Add 'self' argument.
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6550 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6552 (target_trace_set_readonly_regions): Add argument.
6553 * target.c (update_current_target): Update.
6554 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6561 (target_disable_tracepoint): Add argument.
6562 * target.c (update_current_target): Update.
6563 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6565 2014-02-19 Tom Tromey <tromey@redhat.com>
6567 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6569 (target_enable_tracepoint): Add argument.
6570 * target.c (update_current_target): Update.
6571 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6573 2014-02-19 Tom Tromey <tromey@redhat.com>
6575 * target.h (struct target_ops) <to_download_trace_state_variable>:
6577 (target_download_trace_state_variable): Add argument.
6578 * target.c (update_current_target): Update.
6579 * remote.c (remote_download_trace_state_variable): Add 'self'
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6586 (target_can_download_tracepoint): Add argument.
6587 * target.c (update_current_target): Update.
6588 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6590 2014-02-19 Tom Tromey <tromey@redhat.com>
6592 * target.h (struct target_ops) <to_download_tracepoint>: Add
6594 (target_download_tracepoint): Add argument.
6595 * target.c (update_current_target): Update.
6596 * remote.c (remote_download_tracepoint): Add 'self' argument.
6598 2014-02-19 Tom Tromey <tromey@redhat.com>
6600 * target.h (struct target_ops) <to_trace_init>: Add argument.
6601 (target_trace_init): Add argument.
6602 * target.c (update_current_target): Update.
6603 * remote.c (remote_trace_init): Add 'self' argument.
6605 2014-02-19 Tom Tromey <tromey@redhat.com>
6607 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6608 * target.c (target_fileio_readlink): Add argument.
6609 * remote.c (remote_hostio_readlink): Add 'self' argument.
6610 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6612 2014-02-19 Tom Tromey <tromey@redhat.com>
6614 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6615 * target.c (target_fileio_unlink): Add argument.
6616 * remote.c (remote_hostio_unlink): Add 'self' argument.
6617 (remote_file_delete): Update.
6618 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6620 2014-02-19 Tom Tromey <tromey@redhat.com>
6622 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6623 * target.c (target_fileio_close): Add argument.
6624 * remote.c (remote_hostio_close): Add 'self' argument.
6625 (remote_hostio_close_cleanup): Update.
6626 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6628 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6630 2014-02-19 Tom Tromey <tromey@redhat.com>
6632 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6633 * target.c (target_fileio_pread): Add argument.
6634 * remote.c (remote_hostio_pread): Add 'self' argument.
6635 (remote_bfd_iovec_pread, remote_file_get): Update.
6636 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6638 2014-02-19 Tom Tromey <tromey@redhat.com>
6640 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6641 * target.c (target_fileio_pwrite): Add argument.
6642 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6643 (remote_file_put): Update.
6644 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6646 2014-02-19 Tom Tromey <tromey@redhat.com>
6648 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6649 * target.c (target_fileio_open): Add argument.
6650 * remote.c (remote_hostio_open): Add 'self' argument.
6651 (remote_bfd_iovec_open): Add 'self' argument.
6652 (remote_file_put): Add 'self' argument.
6653 (remote_file_get): Add 'self' argument.
6654 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6660 (target_can_run_breakpoint_commands): Add argument.
6661 * target.c (update_current_target): Update.
6662 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6664 (remote_insert_breakpoint): Add 'self' argument.
6665 (remote_insert_hw_breakpoint): Add 'self' argument.
6666 (remote_can_run_breakpoint_commands): Add 'self' argument.
6668 2014-02-19 Tom Tromey <tromey@redhat.com>
6670 * target.h (struct target_ops)
6671 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6672 (target_supports_evaluation_of_breakpoint_conditions): Add
6674 * target.c (update_current_target): Update.
6675 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6677 (remote_insert_breakpoint): Add 'self' argument.
6678 (remote_insert_hw_breakpoint): Add 'self' argument.
6679 (remote_supports_cond_breakpoints): Add 'self' argument.
6681 2014-02-19 Tom Tromey <tromey@redhat.com>
6683 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6685 (target_supports_string_tracing): Add argument.
6686 * target.c (update_current_target): Update.
6687 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target.h (struct target_ops)
6692 <to_supports_disable_randomization>: Add argument.
6693 * target.c (find_default_supports_disable_randomization): Add
6695 (target_supports_disable_randomization): Add argument.
6696 (find_default_supports_disable_randomization): Add 'self'
6698 * remote.c (extended_remote_supports_disable_randomization): Add
6700 (remote_supports_disable_randomization): Add 'self' argument.
6701 (extended_remote_create_inferior): Update.
6702 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6705 2014-02-19 Tom Tromey <tromey@redhat.com>
6707 * target.h (struct target_ops)
6708 <to_supports_enable_disable_tracepoint>: Add argument.
6709 (target_supports_enable_disable_tracepoint): Add argument.
6710 * target.c (update_current_target): Update.
6711 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6714 2014-02-19 Tom Tromey <tromey@redhat.com>
6716 * target.h (struct target_ops) <to_supports_multi_process>: Add
6718 (target_supports_multi_process): Add argument.
6719 * target.c (update_current_target): Update.
6720 * remote.c (remote_supports_multi_process): Add 'self' argument.
6721 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6723 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6726 2014-02-19 Tom Tromey <tromey@redhat.com>
6728 * target.h (struct target_ops) <to_execution_direction>: Add
6730 (target_execution_direction): Add argument.
6731 * target.c (default_execution_direction): Add 'self' argument.
6732 * record-full.c (record_full_execution_direction): Add 'self'
6735 2014-02-19 Tom Tromey <tromey@redhat.com>
6737 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6739 (target_can_execute_reverse): Add argument.
6740 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6741 * record-full.c (record_full_can_execute_reverse): Add 'self'
6743 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6749 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6751 (target_get_ada_task_ptid): Add argument.
6752 * target.c (update_current_target): Update.
6753 (default_get_ada_task_ptid): Add 'self' argument.
6754 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6755 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6756 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6758 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6760 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6762 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6764 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6765 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6768 2014-02-19 Tom Tromey <tromey@redhat.com>
6770 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6771 (target_goto_bookmark): Add argument.
6772 * target.c (dummy_goto_bookmark): Add 'self' argument.
6773 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6775 2014-02-19 Tom Tromey <tromey@redhat.com>
6777 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6778 (target_get_bookmark): Add argument.
6779 * target.c (dummy_get_bookmark): Add 'self' argument.
6780 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6786 (target_make_corefile_notes): Add argument.
6787 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6788 * procfs.c (procfs_make_note_section): Add 'self' argument.
6789 (procfs_make_note_section): Add 'self' argument.
6790 (procfs_make_note_section): Add 'self' argument.
6791 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6793 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6794 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6795 * exec.c (exec_make_note_section): Add 'self' argument.
6796 (exec_make_note_section): Add 'self' argument.
6798 2014-02-19 Tom Tromey <tromey@redhat.com>
6800 * target.h (struct target_ops) <to_find_memory_regions>: Add
6802 (target_find_memory_regions): Add argument.
6803 * target.c (dummy_find_memory_regions): Add 'self' argument.
6804 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6805 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6806 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6807 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6808 * exec. (exec_do_find_memory_regions): New global.
6809 (exec_set_find_memory_regions): Rewrite.
6810 (exec_find_memory_regions): New function.
6811 (init_exec_ops): Use exec_find_memory_regions.
6813 2014-02-19 Tom Tromey <tromey@redhat.com>
6815 * target.h (struct target_ops) <to_supports_non_stop>: Add
6817 * target.c (find_default_supports_non_stop): Add argument.
6818 (target_supports_non_stop): Add argument.
6819 (find_default_supports_non_stop): Add 'self' argument.
6820 * remote.c (remote_supports_non_stop): Add 'self' argument.
6821 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target.h (struct target_ops) <to_log_command>: Add argument.
6826 (target_log_command): Add argument.
6827 * serial.h (serial_log_command): Add 'self' argument.
6828 * serial.c (serial_log_command): Add 'self' argument.
6830 2014-02-19 Tom Tromey <tromey@redhat.com>
6832 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6833 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6835 (target_pid_to_exec_file): Add argument.
6836 * target.c (debug_to_pid_to_exec_file): Add argument.
6837 (update_current_target): Update.
6838 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6839 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6840 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6841 (linux_handle_extended_wait): Update.
6842 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6843 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6844 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6845 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6847 2014-02-19 Tom Tromey <tromey@redhat.com>
6849 * target.h (struct target_ops) <to_rcmd>: Add argument.
6850 (target_rcmd): Add argument.
6851 * target.c (debug_to_rcmd): Add argument.
6852 (update_current_target, do_monitor_command): Update.
6853 * remote.c (remote_rcmd): Add 'self' argument.
6854 * monitor.c (monitor_rcmd): Add 'self' argument.
6856 2014-02-19 Tom Tromey <tromey@redhat.com>
6858 * windows-nat.c (windows_stop): Add 'self' argument.
6859 * target.h (struct target_ops) <to_stop>: Add argument.
6860 * target.c (target_stop): Add argument.
6861 (debug_to_stop): Add argument.
6862 (update_current_target): Update.
6863 * remote.c (remote_stop): Add 'self' argument.
6864 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6865 (gdbsim_cntrl_c): Update.
6866 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6867 * procfs.c (procfs_stop): Add 'self' argument.
6868 * nto-procfs.c (procfs_stop): Add 'self' argument.
6869 * monitor.c (monitor_stop): Add 'self' argument.
6870 (monitor_open): Update.
6871 * linux-nat.c (linux_nat_stop): Add argument.
6872 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6873 * gnu-nat.c (gnu_stop): Add 'self' argument.
6874 * darwin-nat.c (darwin_stop): Add 'self' argument.
6876 2014-02-19 Tom Tromey <tromey@redhat.com>
6878 * target.h (struct target_ops) <to_thread_name>: Add argument.
6879 * target.c (target_thread_name): Add argument.
6880 (update_current_target): Update.
6881 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6883 2014-02-19 Tom Tromey <tromey@redhat.com>
6885 * target.h (struct target_ops) <to_extra_thread_info>: Add
6887 (target_extra_thread_info): Add argument.
6888 * target.c (update_current_target): Update.
6889 * remote.c (remote_threads_extra_info): Add 'self' argument.
6890 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6892 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6893 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6894 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6896 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6898 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6900 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6903 2014-02-19 Tom Tromey <tromey@redhat.com>
6905 * target.h (struct target_ops) <to_program_signals>: Add argument.
6906 * target.c (target_program_signals): Add argument.
6907 * remote.c (remote_program_signals): Add 'self' argument.
6909 2014-02-19 Tom Tromey <tromey@redhat.com>
6911 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6912 * target.c (target_pass_signals): Add argument.
6913 * remote.c (remote_pass_signals): Add 'self' argument.
6914 (remote_start_remote): Update.
6915 * procfs.c (procfs_pass_signals): Add 'self' argument.
6916 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6917 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6918 (linux_nat_create_inferior, linux_nat_attach): Update.
6920 2014-02-19 Tom Tromey <tromey@redhat.com>
6922 * windows-nat.c (windows_can_run): Add 'self' argument.
6923 * target.h (struct target_ops) <to_can_run>: Add argument.
6924 (target_can_run): Add argument.
6925 * target.c (debug_to_can_run): Add argument.
6926 (update_current_target): Update.
6927 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6928 * inf-child.c (inf_child_can_run): Add 'self' argument.
6929 * go32-nat.c (go32_can_run): Add 'self' argument.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target.h (struct target_ops) <to_has_exited>: Add argument.
6934 (target_has_exited): Add argument.
6935 * target.c (debug_to_has_exited): Add argument.
6936 (update_current_target): Update.
6938 2014-02-19 Tom Tromey <tromey@redhat.com>
6940 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6942 (target_set_syscall_catchpoint): Add argument.
6943 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6945 * target.c (update_current_target): Update.
6947 2014-02-19 Tom Tromey <tromey@redhat.com>
6949 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6951 (target_remove_exec_catchpoint): Add argument.
6952 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6953 (update_current_target): Update.
6954 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6957 2014-02-19 Tom Tromey <tromey@redhat.com>
6959 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6961 (target_insert_exec_catchpoint): Add argument.
6962 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6963 (update_current_target): Update.
6964 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6967 2014-02-19 Tom Tromey <tromey@redhat.com>
6969 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6971 (target_remove_vfork_catchpoint): Add argument.
6972 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6973 (update_current_target): Update.
6974 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6977 2014-02-19 Tom Tromey <tromey@redhat.com>
6979 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6981 (target_insert_vfork_catchpoint): Add argument.
6982 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6983 (update_current_target): Update.
6984 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6991 (target_remove_fork_catchpoint): Add argument.
6992 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6993 (update_current_target): Update.
6994 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6997 2014-02-19 Tom Tromey <tromey@redhat.com>
6999 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7001 (target_insert_fork_catchpoint): Add argument.
7002 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7003 (update_current_target): Update.
7004 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7007 2014-02-19 Tom Tromey <tromey@redhat.com>
7009 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7011 (target_post_startup_inferior): Add argument.
7012 * target.c (debug_to_post_startup_inferior): Add argument.
7013 (update_current_target): Update.
7014 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7016 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7018 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7020 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7022 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7024 (super_post_startup_inferior): Likewise.
7025 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7027 (super_post_startup_inferior): Likewise.
7028 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7029 Add 'self' argument.
7030 (super_post_startup_inferior): Likewise.
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7034 * target.h (struct target_ops) <to_load>: Add argument.
7035 * target.c (target_load): Add argument.
7036 (debug_to_load): Add argument.
7037 (update_current_target): Update.
7038 * remote.c (remote_load): Add 'self' argument.
7039 * remote-sim.c (gdbsim_load): Add 'self' argument.
7040 * remote-mips.c (mips_load): Add 'self' argument.
7041 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7042 * monitor.c (monitor_load): Add 'self' argument.
7043 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7048 (target_terminal_info): Add argument.
7049 * target.c (debug_to_terminal_info): Add argument.
7050 (default_terminal_info): Likewise.
7051 * inflow.c (child_terminal_info): Add 'self' argument.
7052 * inferior.h (child_terminal_info): Add 'self' argument.
7053 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7055 2014-02-19 Tom Tromey <tromey@redhat.com>
7057 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7059 (target_terminal_save_ours): Add argument.
7060 * target.c (debug_to_terminal_save_ours): Add argument.
7061 (update_current_target): Update.
7062 * inflow.c (terminal_save_ours): Add 'self' argument.
7063 * inferior.h (terminal_save_ours): Add 'self' argument.
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7067 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7068 (target_terminal_ours): Add argument.
7069 * target.c (debug_to_terminal_ours): Add argument.
7070 (update_current_target): Update.
7071 * remote.c (remote_terminal_ours): Add 'self' argument.
7072 (remote_close): Update.
7073 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7074 * inflow.c (terminal_ours): Add 'self' argument.
7075 * inferior.h (terminal_ours): Add 'self' argument.
7076 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7078 2014-02-19 Pedro Alves <palves@redhat.com>
7079 Tom Tromey <tromey@redhat.com>
7081 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7083 (target_terminal_ours_for_output): Add argument.
7084 * target.c (debug_to_terminal_ours_for_output): Add argument.
7085 (update_current_target): Update.
7086 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7087 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7088 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7090 2014-02-19 Tom Tromey <tromey@redhat.com>
7092 * target.h (struct target_ops) <to_terminal_inferior>: Add
7094 * target.c (target_terminal_inferior): Add argument.
7095 (update_current_target): Update.
7096 * remote.c (remote_terminal_inferior): Add 'self' argument.
7097 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7098 * inflow.c (terminal_inferior): Add 'self' argument.
7099 * inferior.h (terminal_inferior): Add 'self' argument.
7100 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7101 (go32_terminal_inferior): Add 'self' argument.
7103 2014-02-19 Tom Tromey <tromey@redhat.com>
7105 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7106 (target_terminal_init): Add argument.
7107 * target.c (debug_to_terminal_init): Add argument.
7108 (update_current_target): Update.
7109 * inflow.c (terminal_init_inferior): Add 'self' argument.
7110 * inferior.h (terminal_init_inferior): Add 'self' argument.
7111 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7112 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7114 2014-02-19 Tom Tromey <tromey@redhat.com>
7116 * target.h (struct target_ops)
7117 <to_can_accel_watchpoint_condition>: Add argument.
7118 (target_can_accel_watchpoint_condition): Add argument.
7119 * target.c (debug_to_can_accel_watchpoint_condition): Add
7121 (update_current_target): Update.
7122 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7125 2014-02-19 Tom Tromey <tromey@redhat.com>
7127 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7129 (target_region_ok_for_hw_watchpoint): Add argument.
7130 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7131 (default_region_ok_for_hw_watchpoint): Add argument.
7132 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7133 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7135 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7137 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7139 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7141 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7143 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7145 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7146 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7148 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7149 Add 'self' argument.
7151 2014-02-19 Tom Tromey <tromey@redhat.com>
7153 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7155 (target_insert_watchpoint): Add argument.
7156 * target.c (debug_to_insert_watchpoint): Add argument.
7157 (update_current_target): Update.
7158 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7159 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7160 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7161 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7162 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7163 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7165 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7166 (procfs_insert_hw_watchpoint): Add 'self' argument.
7167 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7169 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7171 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7173 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7174 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7176 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7179 2014-02-19 Tom Tromey <tromey@redhat.com>
7181 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7183 (target_remove_watchpoint): Add argument.
7184 * target.c (debug_to_remove_watchpoint): Add argument.
7185 (update_current_target): Update.
7186 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7187 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7188 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7189 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7190 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7191 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7193 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7194 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7196 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7198 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7200 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7201 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7203 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7206 2014-02-19 Tom Tromey <tromey@redhat.com>
7208 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7210 (target_remove_hw_breakpoint): Add argument.
7211 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7212 (update_current_target): Update.
7213 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7214 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7216 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7217 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7219 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7222 2014-02-19 Tom Tromey <tromey@redhat.com>
7224 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7226 (target_insert_hw_breakpoint): Add argument.
7227 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7228 (update_current_target): Update.
7229 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7230 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7232 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7233 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7234 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7236 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7239 2014-02-19 Tom Tromey <tromey@redhat.com>
7241 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7243 (target_can_use_hardware_watchpoint): Add argument.
7244 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7245 (update_current_target): Update.
7246 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7248 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7250 * remote.c (remote_check_watch_resources): Add 'self' argument.
7251 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7252 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7254 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7255 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7257 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7259 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7261 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7263 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7265 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7267 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7268 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7270 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7273 2014-02-19 Tom Tromey <tromey@redhat.com>
7275 * target.h (struct target_ops) <to_post_attach>: Add argument.
7276 (target_post_attach): Add argument.
7277 * target.c (debug_to_post_attach): Add argument.
7278 (update_current_target): Update.
7279 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7280 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7281 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7282 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7283 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7285 2014-02-19 Tom Tromey <tromey@redhat.com>
7287 * windows-nat.c (windows_close): Add 'self' argument.
7288 * tracepoint.c (tfile_close): Add 'self' argument.
7289 * target.h (struct target_ops) <to_close>: Add argument.
7290 * target.c (target_close): Add argument.
7291 (update_current_target): Update.
7292 * remote.c (remote_close): Add 'self' argument.
7293 * remote-sim.c (gdbsim_close): Add 'self' argument.
7294 * remote-mips.c (mips_close): Add 'self' argument.
7295 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7296 * record-full.c (record_full_close): Add 'self' argument.
7297 * record-btrace.c (record_btrace_close): Add 'self' argument.
7298 * monitor.h (monitor_close): Add 'self' argument.
7299 * monitor.c (monitor_close): Add 'self' argument.
7300 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7301 * linux-nat.c (linux_nat_close): Add argument.
7302 * go32-nat.c (go32_close): Add 'self' argument.
7303 * exec.c (exec_close_1): Add 'self' argument.
7304 * ctf.c (ctf_close): Add 'self' argument.
7305 * corelow.c (core_close): Add 'self' argument.
7306 (core_close_cleanup): Update.
7307 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7308 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * remote.c (remote_load): New function.
7313 (init_remote_ops): Use it.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7319 * common/linux-btrace.h (linux_supports_btrace): Update.
7320 * remote.c (remote_supports_btrace): Add "self" argument.
7321 * target-delegates.c: Rebuild.
7322 * target.c (target_supports_btrace): Remove.
7323 * target.h (struct target_ops) <to_supports_btrace>: Add
7324 target_ops argument.
7325 (target_supports_btrace): New define.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * record-full.c (record_full_beneath_to_resume_ops)
7330 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7331 (record_full_beneath_to_wait)
7332 (record_full_beneath_to_store_registers_ops)
7333 (record_full_beneath_to_store_registers)
7334 (record_full_beneath_to_xfer_partial_ops)
7335 (record_full_beneath_to_xfer_partial)
7336 (record_full_beneath_to_insert_breakpoint_ops)
7337 (record_full_beneath_to_insert_breakpoint)
7338 (record_full_beneath_to_remove_breakpoint_ops)
7339 (record_full_beneath_to_remove_breakpoint)
7340 (record_full_beneath_to_stopped_by_watchpoint)
7341 (record_full_beneath_to_stopped_data_address)
7342 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7343 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7344 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7345 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7346 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7347 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7348 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7349 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7350 (record_full_resume, record_full_wait_1)
7351 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7352 (record_full_store_registers, record_full_xfer_partial)
7353 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7354 (record_full_async, record_full_core_xfer_partial): Use target
7356 * target-delegates.c: Rebuild.
7357 * target.c (current_xfer_partial): Remove.
7358 (update_current_target): Do not INHERIT or de_fault
7359 to_insert_breakpoint, to_remove_breakpoint,
7360 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7361 to_is_async_p, to_async. Do not set to_xfer_partial field.
7362 (default_xfer_partial): Simplify.
7363 (current_xfer_partial): Remove.
7364 (target_wait, target_resume): Simplify.
7365 (find_default_can_async_p, find_default_is_async_p): Update.
7366 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7367 to_xfer_partial, to_stopped_by_watchpoint,
7368 to_stopped_data_address.
7369 (target_store_registers): Simplify.
7370 (forward_target_remove_breakpoint)
7371 (forward_target_insert_breakpoint): Remove.
7372 (target_remove_breakpoint, target_insert_breakpoint)
7373 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7374 * target.h (struct target_ops) <to_resume, to_wait,
7375 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7376 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7377 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7379 (forward_target_remove_breakpoint)
7380 (forward_target_insert_breakpoint): Remove.
7381 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7383 (record_btrace_insert_breakpoint): Delegate directly.
7385 2014-02-19 Tom Tromey <tromey@redhat.com>
7388 * target-delegates.c: New file.
7389 * target.c: Include target-delegates.c.
7390 (init_dummy_target): Call install_dummy_methods.
7391 (complete_target_initialization): Call install_delegators.
7392 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7393 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7394 * make-target-delegates: New file.
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * record.c (find_record_target): Use find_target_at.
7399 * target.c (find_target_at): New function.
7400 * target.h (find_target_at): Declare.
7402 2014-02-19 Tom Tromey <tromey@redhat.com>
7404 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7406 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7408 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7409 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7411 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7413 * linux-nat.c (save_sigtrap): Update.
7414 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7415 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7416 (linux_nat_close): Update.
7417 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7419 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7421 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7422 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7423 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7424 (tmp_to_async): Add 'ops' argument.
7425 (record_full_stopped_by_watchpoint, record_full_async)
7426 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7428 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7429 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7430 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7431 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7432 (remote_is_async_p, remote_async): Add 'ops' argument.
7433 (remote_stopped_data_address): Update.
7434 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7435 * target.c (update_current_target)
7436 (find_default_can_async_p, find_default_is_async_p): Update.
7437 (init_dummy_target): Update.
7438 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7439 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7440 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7441 (target_can_async_p, target_is_async_p, target_async)
7442 (target_stopped_by_watchpoint): Update.
7444 2014-02-19 Yao Qi <yao@codesourcery.com>
7447 * gdbarch.sh: Remove startup_gdbarch.
7448 * gdbarch.c: Regenerated.
7449 * gdbarch.h: Likewise.
7451 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7453 * rl78-tdep.c (rl78_g10_register_name): New function.
7454 (rl78_return_value): Add g10 support.
7455 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7458 2014-02-17 Doug Evans <xdje42@gmail.com>
7460 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7461 (SUBDIR_GUILE_SRCS): Ditto.
7462 (scm-gsmob.o): Ditto.
7464 2014-02-17 Yao Qi <yao@codesourcery.com>
7466 * gnu-nat.c (ILL_RPC): Declare defined function.
7468 2014-02-17 Yao Qi <yao@codesourcery.com>
7470 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7471 mach_msg_type_number_t.
7472 (gnu_write_inferior): Likewise.
7474 2014-02-17 Yao Qi <yao@codesourcery.com>
7476 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7478 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7479 (inf_validate_procs, inf_signal): Likewise.
7480 (S_exception_raise_request): Likewise.
7481 (do_mach_notify_dead_name): Likewise.
7482 (steal_exc_port): Likewise.
7483 (gnu_read_inferior): Change 'copy_count''s type to
7484 mach_msg_type_number_t.
7485 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7488 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7490 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7491 flag. Adjust all users; in particular...
7492 (gnu_wait): ..., don't decrement its value in here...
7493 (gnu_create_inferior): ..., and instead set the flag in here,
7494 around the startup_inferior call, and call that one with
7495 START_INFERIOR_TRAPS_EXPECTED.
7497 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7498 (ILL_RPC): ... new macro.
7499 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7500 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7501 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7502 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7503 functions with ILL_RPC macro.
7504 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7505 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7506 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7507 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7508 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7509 (S_proc_getlogin_reply, S_proc_getsid_reply)
7510 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7511 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7512 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7513 (S_proc_getnports_reply, S_proc_is_important_reply)
7514 (S_proc_get_code_reply): New stub functions, generated with
7517 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7518 collected the type check structures.
7520 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7522 2014-02-14 Doug Evans <dje@google.com>
7524 * target.c (target_write_partial): Fix result type.
7526 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7528 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7529 the proper offsets to access fpregset_t.
7531 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7533 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7534 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7535 * h8300-tdep.c (setmachinelist): Remove global.
7536 * hppa-tdep.c (hppa_sigtramp): Remove global.
7537 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7538 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7539 * ravenscar-thread.c (update_target_observer): Remove global.
7540 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7542 2014-02-12 Tom Tromey <tromey@redhat.com>
7544 * common/rsp-low.c: Update comments.
7545 * common/rsp-low.h: Update comments.
7547 2014-02-12 Tom Tromey <tromey@redhat.com>
7549 * common/rsp-low.c (convert_ascii_to_int): Remove.
7550 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7552 2014-02-12 Tom Tromey <tromey@redhat.com>
7554 * common/rsp-low.h (unhexify): Don't declare.
7555 * common/rsp-low.c (unhexify): Remove.
7557 2014-02-12 Tom Tromey <tromey@redhat.com>
7559 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7560 * common/rsp-low.c (convert_int_to_ascii): Remove.
7562 2014-02-12 Tom Tromey <tromey@redhat.com>
7564 * common/rsp-low.h (hexify): Don't declare.
7565 * common/rsp-low.c (hexify): Remove.
7567 2014-02-12 Tom Tromey <tromey@redhat.com>
7569 * common/rsp-low.c (hexify): Never take strlen of argument.
7571 2014-02-12 Tom Tromey <tromey@redhat.com>
7573 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7574 * remote.c (extended_remote_run, remote_rcmd)
7575 (remote_download_trace_state_variable, remote_save_trace_data)
7576 (remote_set_trace_notes): Update.
7577 * tracepoint.c (encode_source_string, tfile_write_status)
7578 (tfile_write_uploaded_tsv): Update.
7580 2014-02-12 Tom Tromey <tromey@redhat.com>
7582 * tracepoint.c: Include rsp-low.h.
7583 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7584 * remote.c: Include rsp-low.h.
7585 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7586 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7587 (remote_unescape_input): Move to common/rsp-low.c.
7588 * common/rsp-low.h: New file.
7589 * common/rsp-low.c: New file.
7590 * Makefile.in (SFILES): Add common/rsp-low.c.
7591 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7592 (COMMON_OBS): Add rsp-low.o.
7593 (rsp-low.o): New target.
7595 2014-02-12 Tom Tromey <tromey@redhat.com>
7597 * utils.h: Include print-utils.h.
7598 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7599 (int_string, core_addr_to_string, core_addr_to_string_nz)
7600 (hex_string, hex_string_custom): Don't declare.
7601 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7602 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7603 (hex_string_custom, int_string, core_addr_to_string)
7604 (core_addr_to_string_nz, host_address_to_string): Move to
7605 common/print-utils.c.
7606 * common/print-utils.h: New file.
7607 * common/print-utils.c: New file
7608 * Makefile.in (SFILES): Add common/print-utils.c.
7609 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7610 (COMMON_OBS): Add print-utils.o.
7611 (print-utils.o): New target.
7613 2014-02-12 Tom Tromey <tromey@redhat.com>
7615 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7617 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7619 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7621 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7623 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7624 if a PT_IO ptrace request returns sucessfully but indicates that 0
7625 bytes were transferred.
7627 2014-02-12 Pedro Alves <palves@redhat.com>
7628 Kevin Buettner <kevinb@redhat.com>
7630 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7631 TYPE_INSTANCE_FLAG_CODE_SPACE.
7633 2014-02-12 Pedro Alves <palves@redhat.com>
7635 * h8300-tdep.c (pseudo_from_raw_register)
7636 (raw_from_pseudo_register): New functions.
7637 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7640 2014-02-12 Pedro Alves <palves@redhat.com>
7642 * h8300-tdep.c (h8300_register_sim_regno): New function.
7643 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7644 gdbarch_register_sim_regno hook.
7646 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7648 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7650 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7652 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7654 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7656 * obsd-tdep.h (obsd_init_abi): New prototype.
7657 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7658 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7659 (obsd_init_abi): New functions.
7660 * i386obsd-tdep.c: Include "obsd-tdep.h".
7661 (i386obsd_init_abi): Call obsd_init_abi.
7662 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7663 (amd64obsd_init_abi): Call obsd_init_abi.
7664 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7665 obsd-tdep.c to gdb_target_obs.
7667 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7669 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7670 double float arguments to 16-byte in the argument slots.
7672 2014-02-11 Doug Evans <xdje42@gmail.com>
7674 * configure.ac: Don't crash if pkg-config is not found and guile
7675 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7677 * configure: Regenerate.
7679 2014-02-11 Yao Qi <yao@codesourcery.com>
7681 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7682 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7683 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7684 * gnu-nat.c (gnu_xfer_memory): Likewise.
7685 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7686 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7687 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7688 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7690 2014-02-11 Yao Qi <yao@codesourcery.com>
7692 * target.h (enum target_xfer_error): Rename to ...
7693 (enum target_xfer_status): ... it. New. All users updated.
7694 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7696 (TARGET_XFER_STATUS_ERROR_P): New macro.
7697 (target_xfer_error_to_string): Remove declaration.
7698 (target_xfer_status_to_string): Declare.
7699 (target_xfer_partial_ftype): Adjust it.
7700 (struct target_ops) <to_xfer_partial>: Return
7701 target_xfer_status. Add argument xfered_len. Update
7703 * target.c (target_xfer_error_to_string): Rename to ...
7704 (target_xfer_status_to_string): ... it. New. All callers
7706 (target_read_live_memory): Likewise. Call target_xfer_partial
7707 instead of target_read.
7708 (memory_xfer_live_readonly_partial): Return
7709 target_xfer_status. Add argument xfered_len.
7710 (raw_memory_xfer_partial): Likewise.
7711 (memory_xfer_partial_1): Likewise.
7712 (memory_xfer_partial): Likewise.
7713 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7714 properly. Update debug message.
7715 (default_xfer_partial, current_xfer_partial): Likewise.
7716 (target_write_partial): Likewise.
7717 (target_read_partial): Likewise. All callers updated.
7718 (read_whatever_is_readable): Likewise.
7719 (target_write_with_progress): Likewise.
7720 (target_read_alloc_1): Likewise.
7722 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7723 * auxv.c (procfs_xfer_auxv): Likewise.
7724 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7725 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7726 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7727 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7728 * corefile.c (read_memory): Adjust.
7729 * corelow.c (core_xfer_partial): Likewise.
7730 * ctf.c (ctf_xfer_partial): Likewise.
7731 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7733 (darwin_xfer_partial): Likewise.
7734 * exec.c (section_table_xfer_memory_partial): Likewise. All
7736 (exec_xfer_partial): Likewise.
7737 * exec.h (section_table_xfer_memory_partial): Update
7739 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7741 (gnu_xfer_partial): Likewise.
7742 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7743 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7744 (ia64_hpux_xfer_solib_got): Likewise.
7745 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7746 type of 'partial_len' to ULONGEST.
7747 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7748 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7749 (linux_nat_xfer_partial): Likewise.
7750 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7751 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7752 * monitor.c (monitor_xfer_memory): Likewise.
7753 (monitor_xfer_partial): Likewise.
7754 * procfs.c (procfs_xfer_partial): Likewise.
7755 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7756 * record-full.c (record_full_xfer_partial): Likewise.
7757 (record_full_core_xfer_partial): Likewise.
7758 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7759 (gdbsim_xfer_partial): Likewise.
7760 * remote.c (remote_write_bytes_aux): Likewise. All callers
7762 (remote_write_bytes, remote_read_bytes): Likewise. All
7764 (remote_flash_erase): Likewise. All callers updated.
7765 (remote_write_qxfer): Likewise. All callers updated.
7766 (remote_read_qxfer): Likewise. All callers updated.
7767 (remote_xfer_partial): Likewise.
7768 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7769 (rs6000_xfer_shared_libraries): Likewise.
7770 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7771 (sol_thread_xfer_partial): Likewise.
7772 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7773 (sparc_xfer_partial): Likewise.
7774 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7776 (spu_xfer_partial): Likewise.
7777 * spu-multiarch.c (spu_xfer_partial): Likewise.
7778 * tracepoint.c (tfile_xfer_partial): Likewise.
7779 * windows-nat.c (windows_xfer_memory): Likewise.
7780 (windows_xfer_shared_libraries): Likewise.
7781 (windows_xfer_partial): Likewise.
7782 * valprint.c: Replace 'target_xfer_error' with
7783 'target_xfer_status' in comments.
7785 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7787 Checked in by Joel Brobecker <brobecker@adacore.com>.
7788 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7790 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7792 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7793 function parameters.
7795 2014-02-10 Will Newton <will.newton@linaro.org>
7797 * elfread.c (elf_rel_plt_read): Look for a .got section if
7798 looking up .got.plt fails.
7799 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7800 on address passed to elf_gnu_ifunc_record_cache.
7801 (elf_gnu_ifunc_resolve_addr): Likewise.
7802 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7804 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7806 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7807 (X_RETTURN): New macro.
7808 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7810 * sparc64-tdep.c (sparc64_init_abi): Hook
7811 sparc_in_function_epilogue_p.
7813 2014-02-10 Gary Benson <gbenson@redhat.com>
7815 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7816 Rename name_matcher to symbol_matcher.
7818 2014-02-10 Gary Benson <gbenson@redhat.com>
7820 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7821 Use expand_symtabs_file_matcher_ftype and
7822 expand_symtabs_symbol_matcher_ftype.
7824 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7826 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7827 (struct ada_symbol_cache): New.
7828 (ada_free_symbol_cache): Forward declare.
7829 (struct ada_pspace_data): New.
7830 (ada_pspace_data_handle): New static global.
7831 (get_ada_pspace_data, ada_pspace_data_cleanup)
7832 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7833 (cache_space, cache): Delete, now folded inside struct
7835 (ada_get_symbol_cache): New function.
7836 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7838 (_initialize_ada_language): Remove initialization of cache_space.
7839 Move call to observer_attach_inferior_exit up, grouping it
7840 with the other observer registrations inside this function.
7841 Rename command to be more general. Add call to
7842 register_program_space_data_with_cleanup.
7844 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7846 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7847 ada_new_objfile_observer.
7848 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7849 (_initialize_tasks): Update uses of ada_new_objfile_observer
7850 and ada_tasks_normal_stop_observer.
7852 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7854 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7855 returned by the 'Length attribute to integer.
7857 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7859 * ada-lang.c (_initialize_ada_language): Initialize
7860 cache_space obstack.
7862 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7864 * ada-lang.c (HASH_SIZE): New macro.
7865 (struct cache_entry): New type.
7866 (cache_space, cache): New static globals.
7867 (ada_clear_symbol_cache, find_entry): New functions.
7868 (lookup_cached_symbol, cache_symbol): Implement.
7869 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7870 (_initialize_ada_language): Attach ada_new_objfile_observer
7871 and ada_free_objfile_observer.
7873 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7875 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7876 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7877 struct block * parameter.
7878 (ada_lookup_symbol_list_worker): Constify local variable "block".
7879 Remove cast which is no longer necessary.
7881 2014-02-10 Doug Evans <xdje42@gmail.com>
7883 Add Guile as an extension language.
7884 * NEWS: Mention Guile scripting.
7885 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7886 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7887 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7888 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7889 (CLIBS): Add GUILE_LIBS.
7890 (install-guile): New rule.
7891 (guile.o): New rule.
7892 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7893 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7894 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7895 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7896 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7897 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7898 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7899 * configure.ac: New option --with-guile.
7900 * configure: Regenerate.
7901 * config.in: Regenerate.
7902 * auto-load.c: Remove #include "python/python.h". Add #include
7903 "gdb/section-scripts.h".
7904 (source_section_scripts): Handle Guile scripts.
7905 (_initialize_auto_load): Add name of Guile objfile script to
7906 scripts-directory help text.
7907 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7908 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7909 (struct breakpoint): New member scm_bp_object.
7910 * defs.h (enum command_control_type): New value guile_control.
7911 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7913 (show_user): Update comment.
7914 (_initialize_cli_cmds): Update help text for "show user". Update help
7915 text for max-user-call-depth.
7916 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7918 (multi_line_command_p): Add guile_control.
7919 (print_command_lines): Handle guile_control.
7920 (execute_control_command, recurse_read_control_structure): Ditto.
7921 (process_next_line): Recognize "guile" commands.
7922 * disasm.c (gdb_disassemble_info): Make non-static.
7923 * disasm.h: #include "dis-asm.h".
7924 (struct gdbarch): Add forward decl.
7925 (gdb_disassemble_info): Declare.
7926 * extension.c: #include "guile/guile.h".
7927 (extension_languages): Add guile.
7928 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7929 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7930 * gdbtypes.c (get_unsigned_type_max): New function.
7931 (get_signed_type_minmax): New function.
7932 * gdbtypes.h (get_unsigned_type_max): Declare.
7933 (get_signed_type_minmax): Declare.
7934 * guile/README: New file.
7935 * guile/guile-internal.h: New file.
7936 * guile/guile.c: New file.
7937 * guile/guile.h: New file.
7938 * guile/scm-arch.c: New file.
7939 * guile/scm-auto-load.c: New file.
7940 * guile/scm-block.c: New file.
7941 * guile/scm-breakpoint.c: New file.
7942 * guile/scm-disasm.c: New file.
7943 * guile/scm-exception.c: New file.
7944 * guile/scm-frame.c: New file.
7945 * guile/scm-gsmob.c: New file.
7946 * guile/scm-iterator.c: New file.
7947 * guile/scm-lazy-string.c: New file.
7948 * guile/scm-math.c: New file.
7949 * guile/scm-objfile.c: New file.
7950 * guile/scm-ports.c: New file.
7951 * guile/scm-pretty-print.c: New file.
7952 * guile/scm-safe-call.c: New file.
7953 * guile/scm-string.c: New file.
7954 * guile/scm-symbol.c: New file.
7955 * guile/scm-symtab.c: New file.
7956 * guile/scm-type.c: New file.
7957 * guile/scm-utils.c: New file.
7958 * guile/scm-value.c: New file.
7959 * guile/lib/gdb.scm: New file.
7960 * guile/lib/gdb/boot.scm: New file.
7961 * guile/lib/gdb/experimental.scm: New file.
7962 * guile/lib/gdb/init.scm: New file.
7963 * guile/lib/gdb/iterator.scm: New file.
7964 * guile/lib/gdb/printing.scm: New file.
7965 * guile/lib/gdb/types.scm: New file.
7966 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7967 (VPATH): Add $(GUILE_SRCDIR).
7968 (GUILE_DIR): New variable.
7969 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7970 (all): Add stamp-guile dependency.
7971 (stamp-guile): New rule.
7972 (clean-guile, install-guile, uninstall-guile): New rules.
7973 (install-only): Add install-guile dependency.
7974 (uninstall): Add uninstall-guile dependency.
7975 (clean): Add clean-guile dependency.
7977 2014-02-09 Doug Evans <xdje42@gmail.com>
7979 Revert this patch (which I approved, mea culpa).
7981 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7983 * Makefile.in (all-lib): Remove.
7984 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7986 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7988 Fix Python stack corruption.
7989 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7992 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7994 * Makefile.in (all-lib): Remove.
7995 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7997 2014-02-07 Doug Evans <dje@google.com>
7999 * extension-priv.h (extension_language_script_ops): Add comment.
8000 (extension_language_ops): Add comment.
8001 (active_ext_lang_state): Fix typo in comment.
8003 2014-02-07 Pedro Alves <palves@redhat.com>
8005 PR breakpoints/16292
8006 * infrun.c (handle_signal_stop) <signal arrives while stepping
8007 over a breakpoint>: Switch back to the stepping thread.
8009 2014-02-07 Yao Qi <yao@codesourcery.com>
8011 * target.c (target_xfer_partial): Return zero if LEN is zero.
8013 2014-02-07 Yao Qi <yao@codesourcery.com>
8015 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8016 (ld_so_xfer_auxv): Likewise.
8017 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8018 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8019 * corelow.c (core_xfer_partial): Likewise.
8020 * ctf.c (ctf_xfer_partial): Likewise.
8021 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8022 (darwin_xfer_partial): Likewise.
8023 * exec.c (exec_xfer_partial): Likewise.
8024 * gnu-nat.c (gnu_xfer_partial): Likewise.
8025 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8026 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8027 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8028 * linux-nat.c (linux_xfer_siginfo): Likewise.
8029 (linux_proc_xfer_spu): Likewise.
8030 * procfs.c (procfs_xfer_partial): Likewise.
8031 * record-full.c (record_full_xfer_partial): Likewise.
8032 (record_full_core_xfer_partial): Likewise.
8033 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8034 * remote.c (remote_write_qxfer): Likewise.
8035 (remote_write_qxfer, remote_read_qxfer): Likewise.
8036 (remote_xfer_partial): Likewise.
8037 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8038 (rs6000_xfer_shared_libraries): Likewise.
8039 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8040 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8041 (spu_xfer_partial): Likewise.
8042 * target.c (memory_xfer_partial_1): Likewise.
8043 * tracepoint.c (tfile_xfer_partial): Likewise.
8044 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8045 (windows_xfer_partial): Likewise.
8047 2014-02-07 Yao Qi <yao@codesourcery.com>
8049 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8051 (core_xfer_shared_libraries_aix): Likewise.
8052 * gdbarch.c, gdbarch.h: Regenerated.
8053 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8054 ULONGEST. Change 'len_avail' type to ULONGEST.
8055 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8056 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8058 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8060 2014-02-07 Yao Qi <yao@codesourcery.com>
8062 * corefile.c (memory_error): Get 'exception' from ERR and pass
8063 'exception' to throw_error.
8065 2014-02-06 Doug Evans <xdje42@gmail.com>
8067 * configure.ac (libpython checking): Remove all but python.o from
8068 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8069 * configure: Regenerate.
8071 * Makefile.in (SFILES): Add extension.c.
8072 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8073 (COMMON_OBS): Add extension.o.
8074 * extension.h: New file.
8075 * extension-priv.h: New file.
8076 * extension.c: New file.
8078 * python/python-internal.h: #include "extension.h".
8079 (gdbpy_auto_load_enabled): Declare.
8080 (gdbpy_apply_val_pretty_printer): Declare.
8081 (gdbpy_apply_frame_filter): Declare.
8082 (gdbpy_preserve_values): Declare.
8083 (gdbpy_breakpoint_cond_says_stop): Declare.
8084 (gdbpy_breakpoint_has_cond): Declare.
8085 (void source_python_script_for_objfile): Delete.
8086 * python/python.c: #include "extension-priv.h".
8087 Delete inclusion of "observer.h".
8088 (extension_language_python): Moved here and renamed from
8089 script_language_python in py-auto-load.c.
8090 Redefined to be of type extension_language_defn.
8091 (python_extension_script_ops): New global.
8092 (python_extension_ops): New global.
8093 (struct python_env): New member previous_active.
8094 (restore_python_env): Call restore_active_ext_lang.
8095 (ensure_python_env): Call set_active_ext_lang.
8096 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8098 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8100 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8102 (gdbpy_eval_from_control_command): Renamed from
8103 eval_python_from_control_command, made static. New arg extlang.
8104 (gdbpy_source_script) Renamed from source_python_script, made static.
8106 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8107 result to int. New arg extlang.
8108 (gdbpy_source_objfile_script): Renamed from
8109 source_python_script_for_objfile, made static. New arg extlang.
8110 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8111 static. New args extlang, extlang_printers. Change result type to
8113 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8114 static. New arg extlang. Rename arg printers to extlang_printers
8115 and change type to ext_lang_type_printers *.
8116 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8117 static. Replace argument arg with extlang, extlang_printers.
8118 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8119 (!HAVE_PYTHON, source_python_script): Delete.
8120 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8121 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8122 (!HAVE_PYTHON, start_type_printers): Delete.
8123 (!HAVE_PYTHON, apply_type_printers): Delete.
8124 (!HAVE_PYTHON, free_type_printers): Delete.
8125 (_initialize_python): Delete call to observer_attach_before_prompt.
8126 (finalize_python): Set/restore active extension language.
8127 (gdbpy_finish_initialization) Renamed from
8128 finish_python_initialization, made static. New arg extlang.
8129 (gdbpy_initialized): New function.
8130 * python/python.h: #include "extension.h". Delete #include
8131 "value.h", "mi/mi-cmds.h".
8132 (extension_language_python): Declare.
8133 (GDBPY_AUTO_FILE_NAME): Delete.
8134 (enum py_bt_status): Moved to extension.h and renamed to
8136 (enum frame_filter_flags): Moved to extension.h.
8137 (enum py_frame_args): Moved to extension.h and renamed to
8138 ext_lang_frame_args.
8139 (finish_python_initialization): Delete.
8140 (eval_python_from_control_command): Delete.
8141 (source_python_script): Delete.
8142 (apply_val_pretty_printer): Delete.
8143 (apply_frame_filter): Delete.
8144 (preserve_python_values): Delete.
8145 (gdbpy_script_language_defn): Delete.
8146 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8147 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8149 * auto-load.c: #include "extension.h".
8150 (GDB_AUTO_FILE_NAME): Delete.
8151 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8152 (script_language_gdb): Delete, moved to extension.c and renamed to
8153 extension_language_gdb.
8154 (source_gdb_script_for_objfile): Delete.
8155 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8156 (loaded_script): Change type of language member to
8157 struct extension_language_defn *.
8158 (init_loaded_scripts_info): Initialize
8159 unsupported_script_warning_printed.
8160 (maybe_add_script): Make static. Change type of language arg to
8161 struct extension_language_defn *.
8162 (clear_section_scripts): Reset unsupported_script_warning_printed.
8163 (auto_load_objfile_script_1): Rewrite to use extension language API.
8164 (auto_load_objfile_script): Make public. Remove support-compiled-in
8165 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8166 (source_section_scripts): Rewrite to use extension language API.
8167 (load_auto_scripts_for_objfile): Rewrite to use
8168 auto_load_scripts_for_objfile.
8169 (collect_matching_scripts_data): Change type of language member to
8170 struct extension_language_defn *.
8171 (auto_load_info_scripts): Change type of language arg to
8172 struct extension_language_defn *.
8173 (unsupported_script_warning_print): New function.
8174 (script_not_found_warning_print): Make static.
8175 (_initialize_auto_load): Rewrite construction of scripts-directory
8177 * auto-load.h (struct objfile): Add forward decl.
8178 (struct script_language): Delete.
8179 (struct auto_load_pspace_info): Add forward decl.
8180 (struct extension_language_defn): Add forward decl.
8181 (maybe_add_script): Delete.
8182 (auto_load_objfile_script): Declare.
8183 (script_not_found_warning_print): Delete.
8184 (auto_load_info_scripts): Update prototype.
8185 (auto_load_gdb_scripts_enabled): Declare.
8186 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8187 auto_load_python_scripts_enabled and made public.
8188 (script_language_python): Delete, moved to python.c.
8189 (gdbpy_script_language_defn): Delete.
8190 (info_auto_load_python_scripts): Update to use
8191 extension_language_python.
8193 * breakpoint.c (condition_command): Replace call to
8194 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8195 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8196 with call to breakpoint_ext_lang_cond_says_stop.
8197 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8198 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8199 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8200 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8202 (local_setattro): Print name of extension language with existing
8205 * valprint.c (val_print, value_print): Update to call
8206 apply_ext_lang_val_pretty_printer.
8207 * cp-valprint.c (cp_print_value): Update call to
8208 apply_ext_lang_val_pretty_printer.
8209 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8210 (gdbpy_apply_val_pretty_printer): Renamed from
8211 apply_val_pretty_printer. New arg extlang.
8212 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8214 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8215 extension language API.
8216 * cli/cli-script.c (execute_control_command): Update to call
8217 eval_ext_lang_from_control_command.
8219 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8220 enum ext_lang_bt_status values. Update call to
8221 apply_ext_lang_frame_filter.
8222 (mi_cmd_stack_list_locals): Ditto.
8223 (mi_cmd_stack_list_args): Ditto.
8224 (mi_cmd_stack_list_variables): Ditto.
8225 * mi/mi-main.c: Delete #include "python/python-internal.h".
8226 Add #include "extension.h".
8227 (mi_cmd_list_features): Replace reference to python internal variable
8228 gdb_python_initialized with call to ext_lang_initialized_p.
8230 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8231 Update to use enum ext_lang_frame_args. Update to call
8232 apply_ext_lang_frame_filter.
8233 * python/py-framefilter.c (extract_sym): Update to use enum
8235 (extract_value, py_print_type, py_print_value): Ditto.
8236 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8237 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8238 (py_print_frame): Ditto.
8239 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8240 New arg extlang. Update to use enum ext_lang_bt_status.
8242 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8243 finish_python_initialization. Replace with call to
8244 finish_ext_lang_initialization.
8246 * typeprint.c (do_free_global_table): Update to call
8247 free_ext_lang_type_printers.
8248 (create_global_typedef_table): Update to call
8249 start_ext_lang_type_printers.
8250 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8251 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8252 (type_print_options): Change type of global_printers from "void *"
8253 to "struct ext_lang_type_printers *".
8255 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8256 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8257 (gdbpy_preserve_values): Renamed from preserve_python_values.
8259 (!HAVE_PYTHON, preserve_python_values): Delete.
8261 * utils.c (quit_flag): Delete, moved to extension.c.
8262 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8265 * eval.c: Delete #include "python/python.h".
8266 * main.c: Delete #include "python/python.h".
8268 * defs.h: Update comment.
8270 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8274 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8276 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8279 2014-02-05 Yao Qi <yao@codesourcery.com>
8281 * remote.c (remote_pass_signals): Remove local 'buf' and use
8283 (remote_program_signals): Likewise.
8285 2014-02-05 Yao Qi <yao@codesourcery.com>
8287 * ctf.c: Include "inferior.h" and "gdbthread.h".
8288 (CTF_PID): A new macro.
8289 (ctf_open): Call inferior_appeared and add_thread_silent.
8290 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8291 (ctf_thread_alive): New function.
8292 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8294 2014-02-05 Yao Qi <yao@codesourcery.com>
8298 2013-05-24 Yao Qi <yao@codesourcery.com>
8300 * tracepoint.c (TFILE_PID): Remove.
8301 (tfile_open): Don't add thread and inferior.
8302 (tfile_close): Don't set 'inferior_ptid'. Don't call
8303 exit_inferior_silent.
8304 (tfile_thread_alive): Remove.
8305 (init_tfile_ops): Don't set field 'to_thread_alive' of
8308 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8310 * remote.c (remote_start_remote): Call remote_check_symbols even
8311 if only symbol-file (not file) has been given.
8313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8315 * gdbarch.sh (skip_entrypoint): New callback.
8316 * gdbarch.c, gdbarch.h: Regenerate.
8317 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8318 * infrun.c (fill_in_stop_func): Likewise.
8319 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8320 (ppc_elfv2_elf_make_msymbol_special): New function.
8321 (ppc_elfv2_skip_entrypoint): Likewise.
8322 (ppc_linux_init_abi): Install them for ELFv2.
8324 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8326 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8327 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8328 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8329 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8330 structures returned in GPRs.
8332 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8334 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8335 offset to the stack parameter list for the ELFv2 ABI.
8337 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8339 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8340 set_gdbarch_convert_from_func_ptr_addr and
8341 set_gdbarch_elf_make_msymbol_special for ELFv1.
8342 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8343 function descriptors on ELFv1.
8344 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8345 set up r12 at function entry.
8347 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8349 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8350 (struct gdbarch_tdep): New member elf_abi.
8352 * rs6000-tdep.c: Include "elf/ppc64.h".
8353 (rs6000_gdbarch_init): Detect ELF ABI version.
8355 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8357 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8358 within a register pair holding a DFP 128-bit value on little-endian.
8359 (ppc64_sysv_abi_return_value_base): Likewise.
8360 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8361 (dfp_pseudo_register_write): Likewise.
8363 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8365 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8366 offset on little-endian when passing _Decimal32.
8367 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8369 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8371 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8372 of the overlapped FP register within the VSX register on little-
8374 (efpr_pseudo_register_write): Likewise.
8376 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8378 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8379 offset on little-endian when passing small structures.
8381 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8383 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8384 (struct ppc64_sysv_argpos): New data structure.
8385 (ppc64_sysv_abi_push_float): Remove.
8386 (ppc64_sysv_abi_push_val): New function.
8387 (ppc64_sysv_abi_push_integer): Likewise.
8388 (ppc64_sysv_abi_push_freg): Likewise.
8389 (ppc64_sysv_abi_push_vreg): Likewise.
8390 (ppc64_sysv_abi_push_param): Likewise.
8391 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8392 (ppc64_sysv_abi_return_value_base): New function.
8393 (ppc64_sysv_abi_return_value): Refactor to use it.
8395 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8397 * NEWS: Document new target powerpc64le-*-linux*.
8399 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8401 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8402 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8404 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8405 register set used in ELF core dumps. Add floating-point register set.
8407 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8409 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8410 dwarf2_to_gdb[] table using symbolic constants. Adjust
8411 penultimate entry from number representing the PC register
8412 to symbolic constant representing the MDR register. Add
8413 constant for the PC register to the end of the table.
8415 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8417 * bsd-kvm.c: Include <sys/param.h>
8419 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8421 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8423 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8425 * ada-lang.h (clear_ada_sym_cache): Delete.
8427 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8429 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8431 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8433 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8434 the sigreturn register save area only if the syscall is
8437 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8439 * valops.c (value_slice): Minor reformatting.
8441 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8443 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8445 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8447 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8449 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8450 (ada_ignore_descriptive_types_p): New static global.
8451 (find_parallel_type_by_descriptive_type): Return immediately
8452 if ada_ignore_descriptive_types_p is set.
8453 (_initialize_ada_language): Register new commands "maintenance
8454 set ada", "maintenance show ada", "maintenance set ada
8455 ignore-descriptive-types" and "maintenance show ada
8456 ignore-descriptive-types".
8457 * NEWS: Add entry for new "maint ada set/show
8458 ignore-descriptive-types" commands.
8460 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8462 * record-btrace.c (record_btrace_close): Call btrace_teardown
8465 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8467 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8470 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8472 * ada-typeprint (type_is_full_subrange_of_target_type):
8474 (print_range): Add parameter bounds_prefered_p. If not set,
8475 try printing range types using the name of their base type.
8476 (print_range_type): Add parameter bounds_prefered_p.
8477 Use it in call to print_range.
8478 (print_array_type, ada_print_type): Update calls to print_range
8479 and print_range_type.
8481 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8483 * ada-typeprint.c (print_array_type, print_choices, print_range)
8484 (print_range_bound, print_dynamic_range_bound, print_range_type):
8487 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8489 * ada-typeprint.c (print_range): Add missing empty line
8490 after local declaration.
8492 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8494 * ada-valprint.c (print_optional_low_bound): Get index_type's
8495 target type for as long as it is a TYPE_CODE_RANGE.
8497 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8499 * procfs.c (procfs_make_note_section): Remove assertion and
8502 2014-01-24 Yao Qi <yao@codesourcery.com>
8504 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8505 * corelow.c (get_core_siginfo): Likewise.
8507 2014-01-24 Yao Qi <yao@codesourcery.com>
8509 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8510 ULONGEST. Don't check 'len' is negative.
8511 (remote_write_bytes): Change type of 'len' to ULONGEST.
8513 2014-01-23 Tom Tromey <tromey@redhat.com>
8516 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8517 Handle exception from frame.block.
8518 (FrameVars.fetch_frame_locals): Likewise.
8520 2014-01-23 Tom Tromey <tromey@redhat.com>
8523 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8524 on a NULL pointer. Move "goto error" to correct place.
8526 2014-01-23 Tom Tromey <tromey@redhat.com>
8529 * python/py-framefilter.c (apply_frame_filter): Call
8530 ensure_python_env after computing gdbarch.
8532 2014-01-23 Yao Qi <yao@codesourcery.com>
8534 * target.c (raw_memory_xfer_partial): Change argument type
8535 from void * to gdb_byte *.
8536 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8538 2014-01-22 Doug Evans <dje@google.com>
8540 New gdbserver option --debug-format=timestamp.
8543 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8545 * syscalls/s390x-linux.xml: New file.
8546 * syscalls/s390-linux.xml: New file.
8547 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8548 (XML_SYSCALL_FILENAME_S390X): Likewise.
8549 (op_svc): New enum value for SVC opcode.
8550 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8551 (s390_linux_get_syscall_number): New function.
8552 (s390_gdbarch_init): Register '*get_syscall_number' and the
8553 syscall xml file name.
8554 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8555 "s390-linux.xml" and "s390x-linux.xml".
8556 * NEWS: Announce new feature.
8558 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8560 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8562 2014-01-22 Pedro Alves <palves@redhat.com>
8564 * xtensa-config.c: Include defs.h.
8566 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8568 * common/common-utils.h: Add "ARI:" comment beside __func__
8571 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8573 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8574 documentation a bit.
8576 2014-01-21 Roland McGrath <mcgrathr@google.com>
8578 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8579 * configure: Regenerate.
8580 * aclocal.m4: Regenerate.
8581 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8582 New substituted variables.
8583 (install-strip): New target.
8584 (INSTALL_SCRIPT): New substituted variable.
8585 (FLAGS_TO_PASS): Add it.
8586 (install-only): Use $(INSTALL_SCRIPT) rather than
8587 $(INSTALL_PROGRAM) for gcore.
8589 2014-01-20 Tom Tromey <tromey@redhat.com>
8591 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8594 2014-01-20 Tom Tromey <tromey@redhat.com>
8596 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8597 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8598 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8599 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8600 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8601 (struct cmd_list_element) <flags>: Remove.
8602 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8603 doc_allocated>: New fields.
8604 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8606 * maint.c (maintenance_do_deprecate): Update.
8607 * top.c (execute_command): Update.
8609 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8611 * xtensa-linux-nat.c: Include asm/ptrace.h.
8613 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8615 * Makefile.in (SFILES): Add d-support.c.
8616 (COMMON_OBS): Add d-support.o.
8617 * d-lang.h (d_parse_symbol): Add comment, now defined in
8619 * d-lang.c (parse_call_convention)
8620 (parse_attributes, parse_function_types)
8621 (parse_function_args, parse_type, parse_identifier)
8622 (call_convention_p, d_parse_symbol): Move functions to ...
8623 * d-support.c: ... New file.
8625 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8627 * d-lang.h (d_parse_symbol): Add declaration.
8628 * d-lang.c (extract_identifiers)
8629 (extract_type_info): Remove functions.
8630 (parse_call_convention, parse_attributes)
8631 (parse_function_types, parse_function_args)
8632 (parse_type, parse_identifier, call_convention_p)
8633 (d_parse_symbol): New functions.
8634 (d_demangle): Use d_parse_symbol to demangle D symbols.
8636 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8638 * d-lang.h (struct builtin_d_type): New data type.
8639 (builtin_d_type): Add declaration.
8640 * d-lang.c (d_language_arch_info, build_d_types)
8641 (builtin_d_type): New functions.
8642 (enum d_primitive_types): New data type.
8643 (d_language_defn): Change c_language_arch_info to
8644 d_language_arch_info.
8645 (d_type_data): New static variable.
8646 (_initialize_d_language): Initialize d_type_data.
8648 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8650 * d-lang.h (d_main_name): Add declaration.
8651 * d-lang.c (d_main_name): New function.
8652 * symtab.c (find_main_name): Add call to d_main_name.
8654 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8656 * d-lang.c (d_language_defn): Change macro_expansion_c to
8659 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8661 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8663 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8665 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8666 gdb_exception" declaration.
8667 * remote.c (getpkt_or_notif_sane): Likewise.
8669 2014-01-17 Doug Evans <dje@google.com>
8671 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8672 function, contents of dirnames_to_char_ptr_vec_append moved here.
8673 (delim_string_to_char_ptr_vec): New function.
8674 (dirnames_to_char_ptr_vec_append): Rewrite.
8675 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8677 2014-01-17 Doug Evans <dje@google.com>
8679 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8681 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8682 #include "common-utils.h".
8683 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8684 * common/vec.h (VEC_ASSERT_PASS): Update.
8685 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8686 (MACH_CHECK_ERROR): Update.
8688 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8690 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8692 * gdbarch.h: Regenerate.
8694 2014-01-16 Tom Tromey <tromey@redhat.com>
8696 * value.c (struct value) <regnum>: Move earlier.
8698 2014-01-16 Tom Tromey <tromey@redhat.com>
8700 * remote.c (extended_remote_create_inferior): Rename from
8701 extended_remote_create_inferior_1. Add "ops" argument. Remove
8704 2014-01-16 Pedro Alves <palves@redhat.com>
8706 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8707 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8710 2014-01-16 Doug Evans <dje@google.com>
8712 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8716 * btrace.h (btrace_thread_flag): New.
8717 (struct btrace_thread_info) <flags>: New.
8718 * record-btrace.c (record_btrace_resume_thread)
8719 (record_btrace_find_thread_to_move, btrace_step_no_history)
8720 (btrace_step_stopped, record_btrace_start_replaying)
8721 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8722 (record_btrace_find_resume_thread): New.
8723 (record_btrace_resume, record_btrace_wait): Extend.
8724 (record_btrace_can_execute_reverse): New.
8725 (record_btrace_open): Fail in non-stop mode.
8726 (record_btrace_set_replay): Split into this, ...
8727 (record_btrace_stop_replaying): ... this, ...
8728 (record_btrace_clear_histories): ... and this.
8729 (init_record_btrace_ops): Init to_can_execute_reverse.
8730 * NEWS: Announce it.
8732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8734 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8735 (forward_target_decr_pc_after_break)
8736 (target_decr_pc_after_break): New.
8737 * target.c (forward_target_decr_pc_after_break)
8738 (target_decr_pc_after_break): New.
8739 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8740 instead of gdbarch_decr_pc_after_break.
8741 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8742 instead of gdbarch_decr_pc_after_break.
8743 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8744 instead of gdbarch_decr_pc_after_break.
8745 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8746 instead of gdbarch_decr_pc_after_break.
8747 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8748 instead of gdbarch_decr_pc_after_break.
8749 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8750 instead of gdbarch_decr_pc_after_break.
8752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8754 * btrace.c: Include regcache.h.
8755 (btrace_add_pc): New.
8756 (btrace_enable): Call btrace_add_pc.
8757 (btrace_is_empty): New.
8758 * btrace.h (btrace_is_empty): New.
8759 * record-btrace.c (require_btrace, record_btrace_info): Call
8762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8764 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8765 Support delta reads.
8766 (linux_disable_btrace): Change return type.
8767 * common/linux-btrace.h (linux_read_btrace): Change parameters
8768 and return type to allow error reporting. Update users.
8769 (linux_disable_btrace): Change return type. Update users.
8770 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8772 (btrace_error): New.
8773 (btrace_block) <begin>: Comment on BEGIN == 0.
8774 * btrace.c (btrace_compute_ftrace): Start from the end of
8776 (btrace_stitch_trace, btrace_clear_history): New.
8777 (btrace_fetch): Read delta trace, return if replaying.
8778 (btrace_clear): Move clear history code to btrace_clear_history.
8779 (parse_xml_btrace): Throw an error if parsing failed.
8780 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8781 and return type to allow error reporting.
8782 (target_read_btrace): Change parameters and return type to allow
8784 * target.c (target_read_btrace): Update.
8785 * remote.c (remote_read_btrace): Support delta reads. Pass
8787 * NEWS: Announce it.
8789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8791 * record.h (record_btrace_frame_unwind)
8792 (record_btrace_tailcall_frame_unwind): New declarations.
8793 * dwarf2-frame: Include record.h
8794 (dwarf2_frame_cfa): Throw an error for btrace frames.
8795 * record-btrace.c: Include hashtab.h.
8796 (btrace_get_bfun_name): New.
8797 (btrace_call_history): Call btrace_get_bfun_name.
8798 (struct btrace_frame_cache): New.
8800 (bfcache_hash, bfcache_eq, bfcache_new): New.
8801 (btrace_get_frame_function): New.
8802 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8803 (record_btrace_frame_this_id): Compute own id.
8804 (record_btrace_frame_prev_register): Provide PC, throw_error
8805 for all other registers.
8806 (record_btrace_frame_sniffer): Detect btrace frames.
8807 (record_btrace_tailcall_frame_sniffer): New.
8808 (record_btrace_frame_dealloc_cache): New.
8809 (record_btrace_frame_unwind): Add new functions.
8810 (record_btrace_tailcall_frame_unwind): New.
8811 (_initialize_record_btrace): Allocate cache.
8812 * btrace.c (btrace_clear): Call reinit_frame_cache.
8813 * NEWS: Announce it.
8815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8817 * record-btrace.c (record_btrace_set_replay)
8818 (record_btrace_goto_begin, record_btrace_goto_end)
8819 (record_btrace_goto): New.
8820 (init_record_btrace_ops): Initialize them.
8821 * NEWS: Announce it.
8823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8825 * record-btrace.c (record_btrace_find_new_threads)
8826 (record_btrace_thread_alive): New.
8827 (init_record_btrace_ops): Initialize to_find_new_threads and
8830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8832 * record-btrace.c (record_btrace_resume): New.
8833 (record_btrace_wait): New.
8834 (init_record_btrace_ops): Initialize to_wait and to_resume.
8836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8838 * record-btrace.c (record_btrace_xfer_partial)
8839 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8840 (record_btrace_allow_memory_access): New.
8841 (init_record_btrace_ops): Initialize new methods.
8842 * target.c (raw_memory_xfer_partial): Bail out if target reports
8843 that this memory is not available.
8845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8847 * target.h (target_ops) <to_insert_breakpoint>
8848 <to_remove_breakpoint>: Add target_ops parameter.
8849 (forward_target_insert_breakpoint): New.
8850 (forward_target_remove_breakpoint): New.
8851 (memory_remove_breakpoint, memory_insert_breakpoint):
8852 Add target_ops parameter.
8853 * target.c (target_insert_breakpoint): Split into this and ...
8854 (forward_target_insert_breakpoint): ... this.
8855 (target_remove_breakpoint): Split into this and ...
8856 (forward_target_remove_breakpoint): ... this.
8857 (debug_to_insert_breakpoint): Add target_ops parameter.
8858 Call forward_target_insert_breakpoint.
8859 (debug_to_remove_breakpoint): Add target_ops parameter.
8860 Call forward_target_remove_breakpoint.
8861 (update_current_target): Do not inherit or default to_insert_breakpoint
8862 and to_remove_breakpoint.
8863 * corelow.c (ignore): Add target_ops parameter.
8864 * exec.c (ignore): Add target_ops parameter.
8865 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8866 Add target_ops parameter.
8867 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8868 Add target_ops parameter.
8869 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8870 Add target_ops parameter.
8871 * record-full.c (record_full_beneath_to_insert_breakpoint)
8872 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8873 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8874 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8875 (record_full_core_remove_breakpoint): Add target_ops parameter.
8877 (record_full_beneath_to_insert_breakpoint_ops)
8878 (record_full_beneath_to_remove_breakpoint_ops)
8879 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8880 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8881 tmp_to_remove_breakpoint_ops,
8882 record_full_beneath_to_insert_breakpoint_ops, and
8883 record_full_beneath_to_remove_breakpoint_ops.
8884 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8885 (m32r_remove_breakpoint): Add target_ops parameter.
8886 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8887 Add target_ops parameter.
8888 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8889 Add target_ops parameter.
8891 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8892 Markus Metzger <markus.t.metzger@intel.com>
8894 * record-btrace.c: Include frame-unwind.h.
8895 (record_btrace_frame_unwind_stop_reason)
8896 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8897 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8899 (init_record_btrace_ops): Install it.
8901 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8903 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8906 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8908 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8911 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8913 * frame-unwind.c: Include target.h.
8914 (frame_unwind_try_unwinder): New function with code from ...
8915 (frame_unwind_find_by_frame): ... here. New variable
8916 unwinder_from_target, call also target_get_unwinder)
8917 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8918 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8919 * target.h (struct target_ops): New fields to_get_unwinder and
8920 to_get_tailcall_unwinder.
8921 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8925 * record-btrace.c (record_btrace_fetch_registers)
8926 (record_btrace_store_registers)
8927 (record_btrace_to_prepare_to_store): New.
8928 (init_record_btrace_ops): Add the above.
8930 2014-01-16 Tom Tromey <tromey@redhat.com>
8932 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8933 * target.h (struct target_ops) <to_prepare_to_store>: Add
8935 (target_prepare_to_store): Add argument.
8936 * target.c (debug_to_prepare_to_store): Add argument.
8937 (update_current_target): Update.
8938 * remote.c (remote_prepare_to_store): Add 'self' argument.
8939 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8940 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8941 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8942 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8944 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8945 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8946 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8947 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8948 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8952 * btrace.h (replay) <replay>: New.
8953 (btrace_is_replaying): New.
8954 * btrace.c (btrace_clear): Free replay iterator.
8955 (btrace_is_replaying): New.
8956 * record-btrace.c (record_btrace_is_replaying): New.
8957 (record_btrace_info): Print insn number if replaying.
8958 (record_btrace_insn_history): Start at replay position.
8959 (record_btrace_call_history): Start at replay position.
8960 (init_record_btrace_ops): Init to_record_is_replaying.
8962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8964 * record-btrace.c (record_btrace_insn_history_range): Include
8966 (record_btrace_insn_history_from): Adjust range.
8967 (record_btrace_call_history_range): Include
8969 (record_btrace_call_history_from): Adjust range.
8970 * NEWS: Announce changes.
8972 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8974 * record.h (enum record_print_flag)
8975 <record_print_indent_calls>: New.
8976 * record.c (get_call_history_modifiers): Recognize /c modifier.
8977 (_initialize_record): Document /c modifier.
8978 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8979 Reorder fields. Optionally indent the function name. Update
8981 * NEWS: Announce changes.
8983 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8985 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8989 * btrace.c (ftrace_new_function): Start counting at one.
8990 * record-btrace.c (record_btrace_info): Adjust number of calls
8992 * NEWS: Announce it.
8994 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8996 * record-btrace.c (btrace_call_history_insn_range): Print
8997 insn range as [begin, end].
8999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9001 * btrace.h (struct btrace_func_link): New.
9002 (enum btrace_function_flag): New.
9003 (struct btrace_inst): Rename to ...
9004 (struct btrace_insn): ...this. Update all users.
9005 (struct btrace_func) <ibegin, iend>: Remove.
9006 (struct btrace_func_link): New.
9007 (struct btrace_func): Rename to ...
9008 (struct btrace_function): ...this. Update all users.
9009 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9010 (number, level, flags>: New.
9011 (struct btrace_insn_iterator): Rename to ...
9012 (struct btrace_insn_history): ...this.
9014 (struct btrace_insn_iterator, btrace_call_iterator): New.
9015 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9016 (struct btrace_target_info) <begin, end, level>
9017 <insn_history, call_history>: New.
9018 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9019 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9020 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9021 (btrace_call_number, btrace_call_begin, btrace_call_end)
9022 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9023 (btrace_find_function_by_number, btrace_set_insn_history)
9024 (btrace_set_call_history): New.
9025 * btrace.c (btrace_init_insn_iterator)
9026 (btrace_init_func_iterator, compute_itrace): Remove.
9027 (ftrace_print_function_name, ftrace_print_filename)
9028 (ftrace_skip_file): Change
9030 (ftrace_init_func): Remove.
9031 (ftrace_debug): Use new btrace_function fields.
9032 (ftrace_function_switched): Also consider gaining and
9033 losing symbol information).
9034 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9035 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9036 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9038 (ftrace_new_function): Move. Remove debug print.
9039 (ftrace_update_lines, ftrace_update_insns): New.
9040 (ftrace_update_function): Check for call, ret, and jump.
9041 (compute_ftrace): Renamed to ...
9042 (btrace_compute_ftrace): ...this. Rewritten to compute call
9044 (btrace_fetch, btrace_clear): Updated.
9045 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9046 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9047 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9048 (btrace_call_number, btrace_call_begin, btrace_call_end)
9049 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9050 (btrace_find_function_by_number, btrace_set_insn_history)
9051 (btrace_set_call_history): New.
9052 * record-btrace.c (require_btrace): Use new btrace thread
9054 (record_btrace_info, btrace_insn_history)
9055 (record_btrace_insn_history, record_btrace_insn_history_range):
9056 Use new btrace thread info fields and new iterator.
9057 (btrace_func_history_src_line): Rename to ...
9058 (btrace_call_history_src_line): ...this. Use new btrace
9060 (btrace_func_history): Rename to ...
9061 (btrace_call_history): ...this. Use new btrace thread info
9062 fields and new iterator.
9063 (record_btrace_call_history, record_btrace_call_history_range):
9064 Use new btrace thread info fields and new iterator.
9066 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9068 * frame.h (frame_id_build_unavailable_stack_special): New.
9069 * frame.c (frame_id_build_unavailable_stack_special): New.
9071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9073 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9074 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9075 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9077 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9078 (i386_insn_is_jump, i386_jmp_p): New.
9079 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9080 insn_is_jump to gdbarch.
9081 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9082 * gdbarch.h: Regenerated.
9083 * gdbarch.c: Regenerated.
9084 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9085 (default_insn_is_jump): New.
9086 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9087 (default_insn_is_jump): New.
9089 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9091 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9093 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9094 (btrace_read_type) <btrace_read_new>: Change to ...
9095 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9097 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9099 * common/linux-btrace.c (linux_read_btrace): Free trace from
9102 2014-01-15 Doug Evans <dje@google.com>
9104 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9107 2014-01-15 Tom Tromey <tromey@redhat.com>
9109 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9110 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9111 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9112 (set_objfile_main_name): New function.
9113 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9114 language_of_main>: New fields.
9115 (set_objfile_main_name): Declare.
9116 * symtab.c (find_main_name): Loop over objfiles to find the main
9118 (set_main_name): Now static.
9119 (get_main_info): Add comment.
9120 * symtab.h (set_main_name): Don't declare.
9122 2014-01-15 Tom Tromey <tromey@redhat.com>
9124 * symtab.c (main_progspace_key): New global.
9125 (struct main_info): New.
9126 (name_of_main, language_of_main): Remove.
9127 (get_main_info, main_info_cleanup): New function.
9128 (set_main_name, main_name, main_language): Use get_main_info.
9129 (_initialize_symtab): Initialize main_progspace_key.
9131 2014-01-15 Tom Tromey <tromey@redhat.com>
9133 * dbxread.c (process_one_symbol): Update.
9134 * dwarf2read.c (read_partial_die): Update.
9135 * symfile.c (set_initial_language): Call main_language.
9136 * symtab.c (language_of_main): Now static.
9137 (set_main_name): Add 'lang' parameter.
9138 (find_main_name): Update.
9139 (main_language): New function.
9140 (symtab_observer_executable_changed): Update.
9141 * symtab.h (set_main_name): Update.
9142 (language_of_main): Remove.
9143 (main_language): Declare.
9145 2014-01-15 Tom Tromey <tromey@redhat.com>
9147 * symfile.c (init_entry_point_info): Use new "initialized" field.
9149 * objfiles.h (struct entry_point) <initialized>: New field.
9150 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9151 (struct objfile) <ei>: ...here. Remove.
9152 * objfiles.c (entry_point_address_query): Update.
9154 2014-01-15 Tom Tromey <tromey@redhat.com>
9156 * objfiles.c (entry_point_address_query): Relocate entry point
9158 (objfile_relocate1): Do not relocate entry point address.
9159 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9160 <the_bfd_section_index>: New field.
9161 * symfile.c (init_entry_point_info): Find the entry point's
9164 2014-01-15 Tom Tromey <tromey@redhat.com>
9166 * solib-frv.c (enable_break): Use entry_point_address_query.
9168 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9170 * NEWS: Add note on improved process record-replay on
9171 arm*-linux* targets.
9173 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9175 * arm-tdep.c (enum arm_record_result): New enum.
9176 (arm_record_unsupported_insn): New function.
9177 (arm_record_coproc_data_proc): Removed.
9178 (thumb2_record_ld_st_multiple): New function.
9179 (thumb2_record_ld_st_dual_ex_tbb): New function.
9180 (thumb2_record_data_proc_sreg_mimm): New function.
9181 (thumb2_record_ps_dest_generic): New function.
9182 (thumb2_record_branch_misc_cntrl): New function.
9183 (thumb2_record_str_single_data): New function.
9184 (thumb2_record_ld_mem_hints): New function.
9185 (thumb2_record_ld_word): New function.
9186 (thumb2_record_lmul_lmla_div): New function.
9187 (thumb2_record_decode_insn_handler): New function.
9188 (decode_insn): Add thumb32 instruction handlers.
9190 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9192 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9193 (struct arm_linux_record_tdep): Declare.
9194 (arm_canonicalize_syscall): New function.
9195 (arm_all_but_pc_registers_record): New function.
9196 (arm_linux_syscall_record): New function.
9197 (arm_linux_init_abi): Add syscall recording constructs.
9198 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9199 decoding. (arm_record_coproc_data_proc): Update arm syscall
9201 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9202 <arm_syscall_record>: New field.
9203 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9206 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9208 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9209 register for push instruction recording.
9211 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9213 * arm-tdep.c (thumb_record_misc): Update to correct logical
9214 error while recording ldm, ldmia and pop instructions.
9216 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9218 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9220 2014-01-15 Pedro Alves <palves@redhat.com>
9222 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9223 (go32_resume, go32_fetch_registers, store_register)
9224 (go32_store_registers, go32_prepare_to_store)
9225 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9226 (go32_create_inferior, go32_can_run, go32_terminal_init)
9227 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9230 2014-01-15 Tom Tromey <tromey@redhat.com>
9232 * target.h (async_callback_ftype): New typedef.
9233 (struct target_ops) <to_async>: Use it.
9235 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9237 * python/py-value.c (get_field_type): Remove unnecessary curly
9238 braces for single-statement if block.
9240 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9242 * python/py-type.c (convert_field): Add missing empty line
9245 2014-01-14 Doug Evans <dje@google.com>
9247 * symfile.h (expand_symtabs_matching): Renamed from
9248 expand_partial_symbol_names. Update prototype.
9249 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9250 * symfile.c (expand_symtabs_matching): Renamed from
9251 expand_partial_symbol_names. New args file_matcher, kind.
9252 Rename arg fun to symbol_matcher.
9253 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9254 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9255 ada_expand_partial_symbol_name.
9256 (ada_make_symbol_completion_list): Update to call
9257 expand_symtabs_matching.
9258 (ada_add_global_exceptions): Call expand_symtabs_matching.
9259 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9260 call map_symbol_filenames.
9261 * symtab.c (sources_info): Update to call map_symbol_filenames.
9262 (search_symbols): Call expand_symtabs_matching.
9263 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9264 (default_make_symbol_completion_list_break_on): Update to call
9265 expand_symtabs_matching.
9266 (make_source_files_completion_list): Update to call
9267 map_symbol_filenames.
9269 2014-01-14 Doug Evans <dje@google.com>
9271 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9272 (expand_symtabs_symbol_matcher_ftype): New typedef.
9273 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9274 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9275 * symfile.c (expand_partial_symbol_names): Update to use
9276 expand_symtabs_symbol_matcher_ftype.
9277 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9278 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9279 Arg name_matcher renamed to symbol_matcher.
9280 * psymtab.c (recursively_search_psymtabs): Update to use
9281 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9283 (expand_symtabs_matching_via_partial): Update to use
9284 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9285 Arg name_matcher renamed to symbol_matcher.
9287 2014-01-14 Doug Evans <dje@google.com>
9289 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9290 (map_partial_symbol_filenames): Ditto.
9291 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9292 (map_partial_symbol_filenames): Ditto.
9293 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9294 (map_partial_symbol_filenames): Ditto.
9295 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9296 (map_partial_symbol_filenames): Ditto.
9297 * symtab.c: Delete #include "psymtab.h".
9299 2014-01-14 Pedro Alves <palves@redhat.com>
9300 Tom Tromey <tromey@redhat.com>
9302 * infrun.c (use_displaced_stepping): Use find_record_target
9303 instead of RECORD_IS_USED.
9304 (adjust_pc_after_break): Use record_full_is_used instead of
9306 * record-btrace.c (record_btrace_open): Call record_preopen
9307 instead of checking RECORD_IS_USED.
9308 * record-full.c (record_full_shortname)
9309 (record_full_core_shortname): New globals.
9310 (record_full_is_used): New function.
9311 (find_full_open): Call record_preopen instead of checking
9313 (init_record_full_ops): Set the target's shortname to
9314 record_full_shortname.
9315 (init_record_full_core_ops): Set the target's shortname to
9316 record_full_core_shortname.
9317 * record-full.h (record_full_is_used): Declare.
9318 * record.c (find_record_target): Make extern.
9319 (record_preopen): New function.
9320 * record.h (RECORD_IS_USED): Delete macro.
9321 (find_record_target, record_preopen): Declare functions.
9323 2014-01-14 Yao Qi <yao@codesourcery.com>
9325 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9326 'len''s type to ULONGEST.
9327 (core_xfer_shared_libraries_aix): Likewise.
9328 * gdbarch.c, gdbarch.h: Regenerated.
9329 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9330 Change type of 'len' to ULONGEST.
9331 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9332 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9334 2014-01-14 Yao Qi <yao@codesourcery.com>
9336 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9337 type of 'len' to ULONGEST.
9338 (linux_xfer_osdata_processgroups): Likewise.
9339 (linux_xfer_osdata_threads): Likewise.
9340 (linux_xfer_osdata_fds): Likewise.
9341 (linux_xfer_osdata_isockets): Likewise.
9342 (linux_xfer_osdata_shm): Likewise.
9343 (linux_xfer_osdata_sem): Likewise.
9344 (linux_xfer_osdata_msg): Likewise.
9345 (linux_common_xfer_osdata): Likewise.
9346 (struct osdata_type) <getter>: Likewise.
9347 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9350 2014-01-14 Yao Qi <yao@codesourcery.com>
9352 * target.h (target_xfer_partial_ftype): Update.
9353 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9355 * aix-thread.c (aix_thread_xfer_partial): Change type of
9356 argument 'len' to ULONGEST.
9357 * auxv.c (procfs_xfer_auxv): Likewise.
9358 (ld_so_xfer_auxv): Likewise.
9359 (memory_xfer_auxv): Likewise.
9360 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9361 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9362 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9363 * corelow.c (core_xfer_partial): Likewise.
9364 * ctf.c (ctf_xfer_partial): Likewise.
9365 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9367 (darwin_read_dyld_info): Likewise.
9368 (darwin_xfer_partial): Likewise.
9369 * exec.c (section_table_xfer_memory_partial): Likewise.
9370 (exec_xfer_partial): Likewise.
9371 * exec.h (section_table_xfer_memory_partial): Update
9373 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9374 instead of plongest.
9375 (gnu_xfer_partial): Likewise.
9376 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9377 (ia64_hpux_xfer_solib_got): Likewise.
9378 (ia64_hpux_xfer_partial): Likewise.
9379 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9380 * inf-ptrace.c (inf_ptrace_xfer_partial):
9381 * inf-ttrace.c (inf_ttrace_xfer_partial):
9382 * linux-nat.c (linux_xfer_siginfo): Likewise.
9383 (linux_nat_xfer_partial): Likewise.
9384 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9385 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9386 * monitor.c (monitor_xfer_memory): Likewise.
9387 (monitor_xfer_partial): Likewise.
9388 * procfs.c (procfs_xfer_partial): Likewise.
9389 * record-full.c (record_full_xfer_partial): Likewise.
9390 (record_full_core_xfer_partial): Likewise.
9391 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9392 instead of plongest.
9393 (gdbsim_xfer_partial): Likewise.
9394 * remote.c (remote_xfer_partial): Likewise.
9395 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9396 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9398 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9399 (rs6000_xfer_shared_libraries): Likewise.
9400 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9401 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9402 (sparc_xfer_partial): Likewise.
9403 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9404 (spu_xfer_partial): Likewise.
9405 * spu-multiarch.c (spu_xfer_partial): Likewise.
9406 * target.c (target_read_live_memory): Likewise.
9407 (memory_xfer_live_readonly_partial): Likewise.
9408 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9409 (target_xfer_partial, default_xfer_partial): Likewise.
9410 (current_xfer_partial): Likewise.
9411 * tracepoint.c (tfile_xfer_partial): Likewise.
9412 * windows-nat.c (windows_xfer_memory): Likewise. Call
9413 pulongest instead of plongest.
9414 (windows_xfer_partial): Likewise.
9415 (windows_xfer_shared_libraries): Likewise.
9417 2014-01-14 Yao Qi <yao@codesourcery.com>
9419 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9420 target_xfer_partial_ftype.
9422 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9426 * valops.c (value_struct_elt_bitpos): New function
9427 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9428 object to 'None' if the field name is an empty string ("").
9429 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9430 attribute to look for a field when 'name' is 'None'.
9431 (get_field_type): New function
9433 2014-01-13 Doug Evans <dje@google.com>
9436 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9437 (try_open_dwop_file): Ditto.
9438 * gdb_bfd.c: #include "vec.h".
9439 (bfdp): New typedef.
9440 (struct gdb_bfd_data): New member included_bfds.
9441 (gdb_bfd_unref): Unref all included bfds.
9442 (gdb_bfd_record_inclusion): New function.
9443 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9445 2014-01-13 Tom Tromey <tromey@redhat.com>
9447 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9449 2014-01-13 Tom Tromey <tromey@redhat.com>
9451 * defs.h (use_windows): Remove.
9452 * gdb.c (main): Update.
9453 * main.c (captured_main, gdb_main): Update.
9454 * main.h (struct captured_main_args) <use_windows>: Remove.
9455 * top.c (use_windows): Remove.
9457 2014-01-13 Tom Tromey <tromey@redhat.com>
9459 * defs.h (deprecated_flush_hook): Remove.
9461 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9464 * linux-thread-db.c (try_thread_db_load): Add parameter
9465 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9466 (try_thread_db_load_from_pdir_1): Move it there from here.
9467 (try_thread_db_load_from_sdir): Update caller.
9468 (try_thread_db_load_from_dir): Move it there from here.
9470 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9472 * regformats/regdat.sh: Always rewrite the register file.
9474 2014-01-13 Pedro Alves <palves@redhat.com>
9476 * Makefile.in (CHECK_HEADERS): New variable.
9477 (check-headers:): New rule.
9479 2014-01-13 Tom Tromey <tromey@redhat.com>
9481 * cli/cli-setshow.c (do_set_command): Update.
9482 * defs.h (deprecated_set_hook): Remove.
9483 * top.c (deprecated_set_hook): Remove.
9485 2014-01-13 Pedro Alves <palves@redhat.com>
9487 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9488 the tracepoint if the PC is a pseudo-register.
9490 2014-01-13 Tom Tromey <tromey@redhat.com>
9492 * defs.h (XCALLOC): Remove.
9493 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9494 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9495 * dwarf2loc.c (allocate_piece_closure): Likewise.
9496 * elfread.c (elf_symfile_segments): Likewise.
9497 (elf_symfile_segments): Likewise.
9498 * gdbtypes.c (copy_type_recursive): Likewise.
9499 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9500 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9501 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9503 * mt-tdep.c (mt_gdbarch_init): Likewise.
9504 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9506 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9507 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9508 * registry.c (registry_alloc_data): Likewise.
9509 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9510 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9511 * serial.c (serial_fdopen_ops): Likewise.
9512 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9514 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9515 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9518 2014-01-13 Tom Tromey <tromey@redhat.com>
9520 * defs.h (XMALLOC): Remove.
9521 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9522 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9523 * cli-out.c (struct ui_out *): Likewise.
9524 * cli/cli-dump.c (add_dump_command): Likewise.
9525 (add_dump_command): Likewise.
9526 * complaints.c (get_complaints): Likewise.
9527 (find_complaint): Likewise.
9528 * dwarf2-frame.c (execute_cfa_program): Likewise.
9529 * dwarf2read.c (abbrev_table_read_table): Likewise.
9530 * gdbarch.sh: Likewise.
9531 * gdbarch.c: Rebuild.
9532 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9533 * interps.c (interp_new): Likewise.
9534 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9535 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9536 * mi/mi-console.c (mi_console_file_new): Likewise.
9537 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9538 * mi/mi-out.c (mi_out_new): Likewise.
9539 * mi/mi-parse.c (mi_parse): Likewise.
9540 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9541 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9542 * observer.c (xalloc_observer_list_node): Likewise.
9543 * regcache.c (regcache_xmalloc_1): Likewise.
9544 * reggroups.c (reggroup_new): Likewise.
9545 (_initialize_reggroup): Likewise.
9546 * registry.c (register_data_with_cleanup): Likewise.
9547 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9548 * ser-base.c (serial_ttystate): Likewise.
9549 * ser-mingw.c (make_pipe_state): Likewise.
9550 * ser-pipe.c (pipe_open): Likewise.
9551 * serial.c (serial_open): Likewise.
9552 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9553 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9554 (tui_alloc_win_info): Likewise.
9555 (tui_add_content_elements): Likewise.
9556 * tui/tui-file.c (tui_file_new): Likewise.
9557 * tui/tui-out.c (tui_out_new): Likewise.
9558 * ui-file.c (mem_file_new): Likewise.
9559 * ui-out.c (push_level): Likewise.
9560 (make_cleanup_ui_out_end): Likewise.
9561 (append_header_to_list): Likewise.
9562 (ui_out_new): Likewise.
9563 * user-regs.c (user_reg_add_builtin): Likewise.
9565 2014-01-13 Tom Tromey <tromey@redhat.com>
9567 * defs.h (XZALLOC): Remove.
9568 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9569 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9570 (get_ada_tasks_inferior_data): Likewise.
9571 * auto-load.c (get_auto_load_pspace_data): Likewise.
9572 * auxv.c (get_auxv_inferior_data): Likewise.
9573 * bfd-target.c (target_bfd_reopen): Likewise.
9574 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9575 (deprecated_insert_raw_breakpoint): Likewise.
9576 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9577 * corelow.c (core_open): Likewise.
9578 * darwin-nat.c (darwin_check_new_threads): Likewise.
9579 (darwin_attach_pid): Likewise.
9580 * dummy-frame.c (dummy_frame_push): Likewise.
9581 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9582 * dwarf2loc.c (allocate_piece_closure): Likewise.
9583 * elfread.c (elf_symfile_segments): Likewise.
9584 * eval.c (ptrmath_type_p): Likewise.
9585 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9586 * gdbtypes.c (alloc_type_arch): Likewise.
9587 (alloc_type_instance): Likewise.
9588 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9589 * inf-child.c (inf_child_can_use_agent): Likewise.
9590 * inflow.c (get_inflow_inferior_data): Likewise.
9591 * infrun.c (save_infcall_suspend_state): Likewise.
9592 * jit.c (jit_reader_load): Likewise.
9593 (get_jit_objfile_data): Likewise.
9594 (get_jit_program_space_data): Likewise.
9595 (jit_object_open_impl): Likewise.
9596 (jit_symtab_open_impl): Likewise.
9597 (jit_block_open_impl): Likewise.
9598 (jit_frame_sniffer): Likewise.
9599 * linux-fork.c (add_fork): Likewise.
9600 * maint.c (make_command_stats_cleanup): Likewise.
9601 * objfiles.c (get_objfile_pspace_data): Likewise.
9602 * opencl-lang.c (struct lval_closure): Likewise.
9603 * osdata.c (osdata_start_osdata): Likewise.
9604 * progspace.c (new_address_space): Likewise.
9605 (add_program_space): Likewise.
9606 * remote-sim.c (get_sim_inferior_data): Likewise.
9607 * sh-tdep.c (sh_gdbarch_init): Likewise.
9608 * skip.c (Ignore): Likewise.
9609 (skip_delete_command): Likewise.
9610 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9611 (library_list_start_library): Likewise.
9612 (solib_aix_current_sos): Likewise.
9613 * solib-darwin.c (get_darwin_info): Likewise.
9614 (darwin_current_sos): Likewise.
9615 * solib-dsbt.c (get_dsbt_info): Likewise.
9616 * solib-ia64-hpux.c (new_so_list): Likewise.
9617 (ia64_hpux_get_solib_linkage_addr): Likewise.
9618 * solib-spu.c (append_ocl_sos): Likewise.
9619 (spu_current_sos): Likewise.
9620 * solib-svr4.c (get_svr4_info): Likewise.
9621 (svr4_keep_data_in_core): Likewise.
9622 (library_list_start_library): Likewise.
9623 (svr4_default_sos): Likewise.
9624 (svr4_read_so_list): Likewise.
9625 * solib-target.c (library_list_start_library): Likewise.
9626 (solib_target_current_sos): Likewise.
9627 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9628 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9629 * symfile.c (default_symfile_segments): Likewise.
9630 * target-descriptions.c (tdesc_data_init): Likewise.
9631 (tdesc_create_reg): Likewise.
9632 (struct tdesc_type *): Likewise.
9633 (tdesc_create_vector): Likewise.
9634 (tdesc_set_struct_size): Likewise.
9635 (struct tdesc_type *): Likewise.
9636 (tdesc_free_feature): Likewise.
9637 (tdesc_create_feature): Likewise.
9638 * windows-nat.c (windows_add_thread): Likewise.
9639 (windows_make_so): Likewise.
9640 * xml-support.c (gdb_xml_body_text): Likewise.
9641 (gdb_xml_create_parser_and_cleanup): Likewise.
9642 (xml_process_xincludes): Likewise.
9643 * xml-syscall.c (allocate_syscalls_info): Likewise.
9644 (syscall_create_syscall_desc): Likewise.
9646 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9648 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9649 function, with code from i386_stap_parse_special_token.
9650 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9651 (i386_stap_parse_special_token): Move code to the two functions
9654 2014-01-09 Pedro Alves <palves@redhat.com>
9655 Hui Zhu <hui@codesourcery.com>
9658 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9659 bp_err_string. Don't mark the location shlib_disabled if the
9660 error thrown wasn't a generic or memory error. Catch errors
9661 thrown while inserting breakpoints in overlayed code. Output
9662 error message of software breakpoints.
9663 * remote.c (remote_insert_breakpoint): If this breakpoint has
9664 target-side commands but this stub doesn't support Z0 packets,
9665 throw NOT_SUPPORTED_ERROR error.
9666 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9667 * target.h (target_insert_breakpoint): Extend comment.
9668 (target_insert_hw_breakpoint): Add comment.
9670 2014-01-08 Pedro Alves <palves@redhat.com>
9672 * remote.c (remote_add_thread): Add threads silently if starting
9674 (remote_notice_new_inferior): If in all-stop, and starting up,
9675 don't call notice_new_inferior.
9676 (get_current_thread): New function, factored out from ...
9677 (add_current_inferior_and_thread): ... this. Adjust.
9678 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9679 found any thread, then select the remote's current thread as GDB's
9682 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9684 * NEWS: Create a new section for the next release branch.
9685 Rename the section of the current branch, now that it has
9688 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9690 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9691 * version.in: Bump version to 7.7.50.DATE-cvs.
9693 2014-01-08 Yao Qi <yao@codesourcery.com>
9695 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9696 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9697 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9699 2014-01-08 Yao Qi <yao@codesourcery.com>
9701 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9702 return value of bfd_get_filename to symbol_file_add_from_bfd.
9704 2014-01-08 Pierre Muller <muller@sourceware.org>
9707 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9708 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9709 to prim_record_mininal_symbol_and_info.
9710 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9711 in call to prim_record_minimal_symbol_and_info.
9712 (read_pe_exported_syms): Set index field of section_data.
9714 2014-01-07 Andrew Pinski <apinski@cavium.com>
9716 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9717 * features/aarch64.c: Regenerate.
9719 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9721 * target.c (return_null): Define.
9722 (update_current_target): Use it instead of return_zero for
9723 functions that return a pointer.
9725 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9727 * source.c (add_path): Fix check for duplicated paths in the previously
9730 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9732 * ada-lang.c: Remove duplicated include statements.
9733 * alphabsd-nat.c: Ditto.
9734 * amd64-darwin-tdep.c: Ditto.
9735 * amd64fbsd-nat.c: Ditto.
9736 * auto-load.c: Ditto.
9738 * breakpoint.c: Ditto.
9740 * fork-child.c: Ditto.
9741 * gdb_usleep.c: Ditto.
9742 * i386-darwin-tdep.c: Ditto.
9743 * i386fbsd-nat.c: Ditto.
9745 * inferior.c: Ditto.
9747 * linux-nat.c: Ditto.
9748 * linux-tdep.c: Ditto.
9749 * m68kbsd-nat.c: Ditto.
9750 * m68klinux-nat.c: Ditto.
9751 * microblaze-tdep.c: Ditto.
9752 * mips-linux-tdep.c: Ditto.
9753 * mn10300-tdep.c: Ditto.
9754 * nto-tdep.c: Ditto.
9755 * opencl-lang.c: Ditto.
9757 * printcmd.c: Ditto.
9758 * regcache.c: Ditto.
9759 * remote-m32r-sdi.c: Ditto.
9763 * tilegx-linux-nat.c: Ditto.
9764 * tilegx-tdep.c: Ditto.
9765 * tracepoint.c: Ditto.
9767 * vaxbsd-nat.c: Ditto.
9768 * windows-nat.c: Ditto.
9769 * xtensa-tdep.c: Ditto.
9771 2014-01-07 Yao Qi <yao@codesourcery.com>
9773 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9775 2014-01-07 Yao Qi <yao@codesourcery.com>
9776 Joel Brobecker <brobecker@adacore.com>
9778 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9779 (pdc_write_regs): Likewise.
9780 (fetch_regs_kernel_thread): Likewise.
9781 (store_regs_kernel_thread): Likewise.
9783 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9785 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9786 tagged type objects to their actual type.
9788 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9790 * ada-valprint.c (print_field_values): Add "language" parameter.
9791 Update calls to print_field_values and print_variant_part.
9792 Pass new parameter "language" in call to val_print instead
9793 of "current_language". Replace call to ada_val_print by call
9795 (print_variant_part): Add "language" parameter.
9796 (ada_val_print_struct_union): Update call to print_field_values.
9798 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9800 * ada-valprint.c (ui_memcpy): Delete.
9801 (ada_print_floating): Update documentation. Add empty line
9802 between between function documentation and implementation.
9803 Delete variable "buffer". Use ui_file_xstrdup in place of
9804 ui_file_put. Minor adjustments following this change.
9806 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9808 * ada-valprint.c (ada_val_print_string): New function,
9809 extracted from ada_val_print_array.
9810 (ada_val_print_array): Replace extracted code by call
9811 to ada_val_print_string followed by a return. Move
9812 "else" branch to the function's top block.
9814 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9816 * ada-valprint.c (ada_val_print_array): Move implementation
9817 down. Rename parameter "offset" and "val" into "offset_aligned"
9818 and "original_value" respectively. Add parameter "offset".
9820 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9822 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9823 re-organizing the code. Change the "???" message printed
9824 when target type is a TYPE_CODE_UNDEF into
9825 "<ref to undefined type>".
9827 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9829 * ada-valprint.c (print_record): Delete, implementation inlined...
9830 (ada_val_print_struct_union): ... here. Remove call to
9831 ada_check_typedef in inlined implementation.
9833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9835 * ada-valprint.c (ada_val_print_gnat_array): New function,
9836 extracted from ada_val_print_1;
9837 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9838 (ada_val_print_flt, ada_val_print_struct_union)
9839 (ada_val_print_ref): Likewise.
9840 (ada_val_print_1): Delete variables i and elttype.
9841 Replace extracted-out code by call to corresponding
9844 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9846 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9848 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9850 * ada-valprint.c (ada_val_print_1): Replace calls to
9851 ada_val_print_1 by calls to val_print.
9853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9855 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9856 Update calls to self accordingly. Replace calls to c_val_print
9857 by calls to val_print.
9859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9861 * ada-valprint.c (print_record): Delete declaration.
9862 (adjust_type_signedness, ada_val_print_1): Likewise.
9863 (ada_val_print): Move function implementation down.
9864 (print_variant_part, print_field_values, print_record):
9865 Move function implementation up.
9867 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9869 * python/py-type.c (typy_get_name): New function.
9870 (type_object_getset): Add entry for attribute "name".
9871 * NEWS: Add entry mentioning this new attribute.
9873 2014-01-07 Yao Qi <yao@codesourcery.com>
9875 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9878 2014-01-07 Yao Qi <yao@codesourcery.com>
9880 * gnu-nat.c (info_port_rights): Add qualifier const to
9883 2014-01-07 Yao Qi <yao@codesourcery.com>
9885 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9887 2014-01-07 Yao Qi <yao@codesourcery.com>
9889 * gnu-nat.c (make_inf) Update declaration.
9890 (make_inf): Make it static.
9891 (inf_set_traced): Likewise.
9892 (inf_port_to_thread, inf_task_died_status): Likewise.
9894 2014-01-07 Yao Qi <yao@codesourcery.com>
9896 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9898 2014-01-07 Yao Qi <yao@codesourcery.com>
9900 * gnu-nat.c (_initialize_gnu_nat): Declare.
9902 2014-01-07 Yao Qi <yao@codesourcery.com>
9904 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9906 (struct gdbarch_info) <byte_order>: Change type to
9908 <byte_order_for_code>: Likewise.
9909 * gdbarch.c, gdbarch.h: Regenerated.
9911 2014-01-06 Sasha Smundak <asmundak@google.com>
9913 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9915 2014-01-06 Tom Tromey <tromey@redhat.com>
9917 * doublest.c (convert_doublest_to_floatformat): Use const, not
9919 * somread.c (som_symtab_read): Likewise.
9921 2014-01-07 Hui Zhu <hui@codesourcery.com>
9923 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9924 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9925 (gdb_bfd_fopen): Ditto.
9926 (gdb_bfd_openr): Ditto.
9927 (gdb_bfd_openw): Ditto.
9928 (gdb_bfd_openr_iovec): Ditto.
9929 (gdb_bfd_fdopenr): Ditto.
9930 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9931 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9933 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9935 * symfile-mem.c (symbol_file_add_from_memory): Removed
9936 gdb_bfd_stash_filename.
9938 2014-01-03 Doug Evans <dje@google.com>
9940 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9943 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9945 Update year range in copyright notice of all files.
9947 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9949 * top.c (print_gdb_version): Set copyright year to 2014.
9951 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9953 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9955 For older changes see ChangeLog-2013.
9961 version-control: never