1 2014-06-26 Tom Tromey <tromey@redhat.com>
3 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4 (do_show_command): Make "arg" const.
5 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
7 2014-06-26 Tom Tromey <tromey@redhat.com>
9 * record-full.c (record_full_get_bookmark): Make "args" const.
10 (record_full_goto_bookmark): Make "raw_bookmark" const.
11 * record.c (record_goto): New function.
12 (cmd_record_goto): Use it. Now static.
13 * record.h (record_goto): Declare.
14 (cmd_record_goto): Remove declaration.
15 * target-delegates.c: Rebuild.
16 * target.h (struct target_ops) <to_get_bookmark,
17 to_goto_bookmark>: Make parameter const.
19 2014-06-26 Tom Tromey <tromey@redhat.com>
21 * defs.h (generic_load): Update.
22 * m32r-rom.c (m32r_load_gen): Make "filename" const.
23 * monitor.c (monitor_load): Make "args" const.
24 * remote-m32r-sdi.c (m32r_load): Make "args" const.
25 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
27 (mips_load): Make "file" const.
28 * remote-sim.c (gdbsim_load): Make "args" const.
29 * remote.c (remote_load): Make "name" const.
30 * symfile.c (generic_load): Make "args" const.
31 * target-delegates.c: Rebuild.
32 * target.c (target_load): Make "arg" const.
33 (debug_to_load): Make "args" const.
34 * target.h (struct target_ops) <to_load>: Make parameter const.
35 (target_load): Update.
37 2014-06-26 Tom Tromey <tromey@redhat.com>
40 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
41 (dwarf2_physname, read_partial_die)
42 (guess_partial_die_structure_name, fixup_partial_die)
43 (guess_full_die_structure_name, anonymous_struct_prefix)
44 (dwarf2_name): Use per-BFD obstack.
46 2014-06-26 Yao Qi <yao@codesourcery.com>
48 * dummy-frame.c (dummy_frame_sniffer): Move local variables
49 dummyframe and this_id into inner block below.
51 2014-06-26 Yao Qi <yao@codesourcery.com>
53 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
54 with "signal_pass[0]" in the initialization of signal_pass.
56 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
58 * record-btrace.c (record_btrace_generating_corefile)
59 (record_btrace_prepare_to_generate_core)
60 (record_btrace_done_generating_core): New.
61 (record_btrace_xfer_partial, record_btrace_fetch_registers)
62 (record_btrace_store_registers, record_btrace_prepare_to_store):
63 Forward request when generating a core file.
64 (record_btrace_open): Set record_btrace_generating_corefile to zero.
65 (init_record_btrace_ops): Set to_prepare_to_generate_core and
66 to_done_generating_core.
68 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
70 * target.h (target_ops) <to_prepare_to_generate_core>
71 <to_done_generating_core>: New.
72 (target_prepare_to_generate_core, target_done_generating_core): New.
73 * target.c (target_prepare_to_generate_core)
74 (target_done_generating_core): New.
75 * target-delegates.c: Regenerate.
76 * gcore.c: (write_gcore_file): Rename to ...
77 (write_gcore_file_1): ...this.
78 (write_gcore_file): Call target_prepare_to_generate_core
79 and target_done_generating_core.
81 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
83 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
84 * gcore.c (write_gcore_file): Free memory returned from
86 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
87 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
89 2014-06-24 Yao Qi <yao@codesourcery.com>
91 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
92 (arm_linux_init_abi): Set skip_trampoline_code with
93 gdbarch_skip_trampoline_code instead of
94 find_solib_trampoline_target.
96 2014-06-24 Yao Qi <yao@codesourcery.com>
98 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
99 arm_skip_bx_reg returns non-zero.
101 2014-06-24 Yao Qi <yao@codesourcery.com>
103 * arm-tdep.c (arm_skip_bx_reg): New function.
104 (arm_skip_stub): Call arm_skip_bx_reg.
106 2014-06-23 Don Breazeal <donb@codesourcery.com>
108 * MAINTAINERS: Add myself as write-after-approval maintainer.
110 2014-06-23 Pedro Alves <palves@redhat.com>
112 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
113 DR_CONTROL before setting DR0..DR3.
114 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
115 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
116 bits of DR_CONTROL related to the debug register slot being
117 disabled. If all slots are vacant, clear local slowdown as well,
118 and assert DR_CONTROL is 0.
120 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
122 * python/lib/gdb/command/xmethods.py
123 (get_method_matchers_in_loci): Lookup xmethod matchers in the
124 current progspace only if the string "progspace" matches LOCUS_RE.
126 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
128 Fix --with-system-readline with readline-6.3 patch 5.
129 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
130 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
133 2014-06-20 Tom Tromey <tromey@redhat.com>
135 * dwarf2read.c (dw2_get_real_path): Use correct type in
137 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
139 2014-06-20 Gary Benson <gbenson@redhat.com>
141 * common/gdb_thread_db.h: Moved to nat. All includes updated.
142 * common/glibc_thread_db.h: Likewise.
143 * common/i386-cpuid.h: Likewise.
144 * common/i386-gcc-cpuid.h: Likewise.
145 * common/linux-btrace.h: Likewise.
146 * common/linux-osdata.h: Likewise.
147 * common/linux-procfs.h: Likewise.
148 * common/linux-ptrace.h: Likewise.
149 * common/mips-linux-watch.h: Likewise.
150 * common/linux-btrace.c: Moved to nat.
151 * common/linux-osdata.c: Likewise.
152 * common/linux-procfs.c: Likewise.
153 * common/linux-ptrace.c: Likewise.
154 * common/mips-linux-watch.c: Likewise.
155 * nat/gdb_thread_db.h: Moved from common.
156 * nat/glibc_thread_db.h: Likewise.
157 * nat/i386-cpuid.h: Likewise.
158 * nat/i386-gcc-cpuid.h: Likewise.
159 * nat/linux-btrace.c: Likewise.
160 * nat/linux-btrace.h: Likewise.
161 * nat/linux-osdata.c: Likewise.
162 * nat/linux-osdata.h: Likewise.
163 * nat/linux-procfs.c: Likewise.
164 * nat/linux-procfs.h: Likewise.
165 * nat/linux-ptrace.c: Likewise.
166 * nat/linux-ptrace.h: Likewise.
167 * nat/mips-linux-watch.c: Likewise.
168 * nat/mips-linux-watch.h: Likewise.
169 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
170 (object file files): Reordered.
171 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
172 of glibc_thread_db.h.
174 2014-06-20 Gary Benson <gbenson@redhat.com>
176 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
177 (i386_dr_low_type): Moved to nat/i386-dregs.h.
178 (i386_dr_low): Likewise.
179 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
180 (i386_dr_low_set_addr): Likewise.
181 (i386_dr_low_get_addr): Likewise.
182 (i386_dr_low_can_set_control): Likewise.
183 (i386_dr_low_set_control): Likewise.
184 (i386_dr_low_get_control): Likewise.
185 (i386_dr_low_get_status): Likewise.
186 (i386_get_debug_register_length): Likewise.
187 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
188 (i386_dr_low): Likewise.
189 * nat/i386-dregs.c (i386-low.h): Remove include.
190 (i386-nat.h): Likewise.
191 (nat/i386-dregs.h): New include.
192 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
193 (i386_dr_low_set_addr): Likewise.
194 (i386_dr_low_get_addr): Likewise.
195 (i386_dr_low_can_set_control): Likewise.
196 (i386_dr_low_set_control): Likewise.
197 (i386_dr_low_get_control): Likewise.
198 (i386_dr_low_get_status): Likewise.
199 (i386_get_debug_register_length): Likewise.
200 (debug_hw_points): Likewise.
202 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
204 * Makefile.in (SFILES): Add d-exp.y.
205 (YYFILES): Add d-exp.c.
206 (YYOBJ): Add d-exp.o.
207 (local-maintainer-clean): Delete d-exp.c.
209 * d-lang.h (d_parse): New declaration.
210 (d_error): New declaration.
211 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
212 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
213 PREC_ORDER operators.
214 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
216 2014-06-19 Yao Qi <yao@codesourcery.com>
218 * gdbthread.h (any_running): Remove the declaration.
219 * thread.c (any_running): Remove.
221 2014-06-19 Yao Qi <yao@codesourcery.com>
223 * gdbthread.h (struct thread_info) <state>: Change its type to
224 'enum thread_state'. Update comments.
226 2014-06-19 Pedro Alves <palves@redhat.com>
228 * gdbthread.h (ALL_THREADS): Delete.
229 (ALL_NON_EXITED_THREADS): New macro.
230 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
231 instead of ALL_THREADS.
232 * infrun.c (find_thread_needs_step_over)
233 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
234 instead of ALL_THREADS.
235 * record-btrace.c (record_btrace_open)
236 (record_btrace_stop_recording, record_btrace_close)
237 (record_btrace_is_replaying, record_btrace_resume)
238 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
239 * remote.c (append_pending_thread_resumptions): Likewise.
240 * thread.c (thread_apply_all_command): Likewise.
242 2014-06-19 Gary Benson <gbenson@redhat.com>
244 * i386-nat.c (i386_stopped_by_watchpoint):
245 Use i386_dr_stopped_by_watchpoint.
246 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
247 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
249 2014-06-19 Gary Benson <gbenson@redhat.com>
251 * nat/i386-dregs.c: New file.
252 * Makefile.in (i386-dregs.o): New rule.
253 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
254 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
255 * config/i386/darwin.mh (NATDEPFILES): Likewise.
256 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
257 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
258 * config/i386/go32.mh (NATDEPFILES): Likewise.
259 * config/i386/linux.mh (NATDEPFILES): Likewise.
260 * config/i386/linux64.mh (NATDEPFILES): Likewise.
261 * config/i386/mingw.mh (NATDEPFILES): Likewise.
262 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
263 * i386-nat.h (debug_hw_points): New declaration.
264 * i386-nat.c (breakpoint.h): Remove include.
265 (command.h): Likewise.
266 (target.h): Likewise.
267 (gdb_assert.h): Likewise.
268 (debug_hw_points): Made nonstatic.
269 (debug_printf): Now in i386-dregs.c.
270 (TARGET_HAS_DR_LEN_8): Likewise.
271 (DR_CONTROL_SHIFT): Likewise.
272 (DR_CONTROL_SIZE): Likewise.
273 (DR_RW_EXECUTE): Likewise.
274 (DR_RW_WRITE): Likewise.
275 (DR_RW_READ): Likewise.
276 (DR_RW_IORW): Likewise.
277 (DR_LEN_1): Likewise.
278 (DR_LEN_2): Likewise.
279 (DR_LEN_4): Likewise.
280 (DR_LEN_8): Likewise.
281 (DR_LOCAL_ENABLE_SHIFT): Likewise.
282 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
283 (DR_ENABLE_SIZE): Likewise.
284 (DR_LOCAL_SLOWDOWN): Likewise.
285 (DR_GLOBAL_SLOWDOWN): Likewise.
286 (DR_CONTROL_RESERVED): Likewise.
287 (I386_DR_CONTROL_MASK): Likewise.
288 (I386_DR_VACANT): Likewise.
289 (I386_DR_LOCAL_ENABLE): Likewise.
290 (I386_DR_GLOBAL_ENABLE): Likewise.
291 (I386_DR_DISABLE): Likewise.
292 (I386_DR_SET_RW_LEN): Likewise.
293 (I386_DR_GET_RW_LEN): Likewise.
294 (I386_DR_WATCH_HIT): Likewise.
295 (i386_wp_op_t): Likewise.
296 (i386_show_dr): Likewise.
297 (i386_length_and_rw_bits): Likewise.
298 (i386_insert_aligned_watchpoint): Likewise.
299 (i386_remove_aligned_watchpoint): Likewise.
300 (i386_handle_nonaligned_watchpoint): Likewise.
301 (i386_update_inferior_debug_regs): Likewise.
302 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
303 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
304 (i386_region_ok_for_watchpoint):
305 Use i386_dr_region_ok_for_watchpoint.
306 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
308 2014-06-19 Gary Benson <gbenson@redhat.com>
310 * i386-nat.c (i386_insert_hw_breakpoint): Use
311 i386_insert_watchpoint.
312 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
314 2014-06-19 Gary Benson <gbenson@redhat.com>
316 * i386-nat.c (i386_dr_show): Renamed to
317 i386_show_dr and made static. All uses updated.
318 (i386_dr_length_and_rw_bits): Renamed to
319 i386_length_and_rw_bits and made static.
321 (i386_dr_insert_aligned_watchpoint): Renamed to
322 i386_insert_aligned_watchpoint and made static.
324 (i386_dr_remove_aligned_watchpoint): Renamed to
325 i386_remove_aligned_watchpoint and made static.
327 (i386_dr_update_inferior_debug_regs): Renamed to
328 i386_update_inferior_debug_regs and made static.
330 * nat/i386-dregs.h (i386_dr_show): Removed.
331 (i386_dr_length_and_rw_bits): Likewise.
332 (i386_dr_insert_aligned_watchpoint): Likewise.
333 (i386_dr_remove_aligned_watchpoint): Likewise.
334 (i386_dr_update_inferior_debug_regs): Likewise.
336 2014-06-19 Gary Benson <gbenson@redhat.com>
338 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
339 * configure: Regenerate.
340 * config.in: Likewise.
341 * main.c (signal.h): New include.
342 (setup_alternate_signal_stack): New function.
343 (captured_main): Call the above.
344 * cp-support.c (signal.h): New include.
345 (catch_demangler_crashes): New flag.
346 (SIGJMP_BUF): New define.
347 (SIGSETJMP): Likewise.
348 (SIGLONGJMP): Likewise.
349 (gdb_demangle_jmp_buf): New static global.
350 (gdb_demangle_attempt_core_dump): Likewise.
351 (gdb_demangle_signal_handler): New function.
352 (gdb_demangle): If catch_demangler_crashes is set, install the
353 above signal handler before calling bfd_demangle, and restore
354 the original signal handler afterwards. Display the offending
355 symbol and call demangler_warning the first time a segmentation
357 (_initialize_cp_support): New maint set/show command.
359 2014-06-19 Gary Benson <gbenson@redhat.com>
361 * utils.h (resource_limit_kind): New enum.
362 (can_dump_core): New declaration.
363 (warn_cant_dump_core): Likewise.
364 (dump_core): Likewise.
365 * utils.c (dump_core): Made nonstatic. Added new
366 parameter "limit_kind".
367 (can_dump_core): Made nonstatic. Moved printing code to...
368 (warn_cant_dump_core): New function.
369 (can_dump_core_warn): Likewise.
370 (internal_vproblem): Replace calls to can_dump_core with
371 calls to can_dump_core_warn. Supply new argument to each.
373 2014-06-19 Gary Benson <gbenson@redhat.com>
375 * utils.h (demangler_vwarning): New declaration.
376 (demangler_warning): Likewise.
377 * utils.c (struct internal_problem)
378 <user_settable_should_quit>: New field.
379 <user_settable_should_dump_core>: Likewise
380 (internal_error_problem): Add values for above new fields.
381 (internal_warning_problem): Likewise.
382 (demangler_warning_problem): New static global.
383 (demangler_vwarning): New function.
384 (demangler_warning): Likewise.
385 (add_internal_problem_command): Selectively add commands.
386 (_initialize_utils): New internal problem command.
387 * maint.c (maintenance_demangler_warning): New function.
388 (_initialize_maint_cmds): New command.
390 2014-06-18 Tom Tromey <tromey@redhat.com>
392 * f-valprint.c (info_common_command_for_block): Update.
393 * symtab.h (struct general_symbol_info) <common_block>: Now
396 2014-06-18 Tom Tromey <tromey@redhat.com>
398 * symtab.h (struct symtab) <blockvector>: Now const.
399 * ada-lang.c (ada_add_global_exceptions): Update.
400 * buildsym.c (augment_type_symtab): Update.
401 * dwarf2read.c (dw2_lookup_symbol): Update.
402 * jit.c (finalize_symtab): Update.
403 * jv-lang.c (add_class_symtab_symbol): Update.
404 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
406 * objfiles.c (objfile_relocate1): Update.
407 * psymtab.c (lookup_symbol_aux_psymtabs)
408 (maintenance_check_psymtabs): Update.
409 * python/py-symtab.c (stpy_global_block, stpy_static_block):
411 * spu-tdep.c (spu_catch_start): Update.
412 * symmisc.c (dump_symtab_1): Update.
413 * symtab.c (lookup_global_symbol_from_objfile)
414 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
415 (basic_lookup_transparent_type_quick)
416 (basic_lookup_transparent_type, find_pc_sect_symtab)
417 (find_pc_sect_line, search_symbols): Update.
418 * block.c (find_block_in_blockvector): Make "bl" const.
419 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
421 (blockvector_contains_pc): Make "bv" const.
422 (block_for_pc_sect): Update.
423 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
424 (blockvector_contains_pc): Update.
425 * breakpoint.c (resolve_sal_pc): Update.
426 * inline-frame.c (block_starting_point_at): Update.
428 2014-06-18 Tom Tromey <tromey@redhat.com>
430 * completer.c (complete_line): Make "line_buffer" const.
431 * completer.h (complete_line): Update.
433 2014-06-18 Tom Tromey <tromey@redhat.com>
435 * symtab.c (add_macro_name): Remove unneeded cast.
437 2014-06-18 Tom Tromey <tromey@redhat.com>
439 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
440 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
442 2014-06-18 Tom Tromey <tromey@redhat.com>
444 * probe.c (info_probes_for_ops): Make "arg" const.
445 * probe.h (info_probes_for_ops): Update.
447 2014-06-18 Tom Tromey <tromey@redhat.com>
449 * varobj.c (varobj_create): Update.
450 * valops.c (value_of_this): Update.
451 * tracepoint.c (add_local_symbols, scope_info): Update.
452 * symtab.h (struct general_symbol_info) <block>: Now const.
453 * symtab.c (skip_prologue_sal)
454 (default_make_symbol_completion_list_break_on)
455 (skip_prologue_using_sal): Update.
456 * stack.h (iterate_over_block_locals)
457 (iterate_over_block_local_vars): Update.
458 * stack.c (print_frame_args): Update.
459 (iterate_over_block_locals, iterate_over_block_local_vars): Make
461 (get_selected_block): Make return type const.
462 * python/py-frame.c (frapy_block): Update.
463 * python/py-block.c (gdbpy_block_for_pc): Update.
464 * p-exp.y (%union) <bval>: Now const.
465 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
466 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
467 * m2-exp.y (%union) <bval>: Now const.
468 * linespec.c (get_current_search_block): Make return type const.
469 (create_sals_line_offset, find_label_symbols): Update.
470 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
472 (block_starting_point_at): Make "block" const.
473 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
474 (check_exception_resume): Update.
475 * guile/scm-frame.c (gdbscm_frame_block): Update.
476 * guile/scm-block.c (gdbscm_lookup_block): Update.
477 * frame.h (get_frame_block): Update.
478 (get_selected_block): Make return type const.
479 * frame.c (frame_id_inner): Update.
480 * f-valprint.c (info_common_command_for_block)
481 (info_common_command): Update.
482 * dwarf2loc.c (dwarf2_find_location_expression)
483 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
484 (locexpr_describe_location_piece): Update.
485 * c-exp.y (%union) <bval>: Now const.
486 * breakpoint.c (resolve_sal_pc): Update.
487 * blockframe.c (get_frame_block):Make return type const.
488 (get_pc_function_start, get_frame_function, find_pc_sect_function)
489 (block_innermost_frame): Update.
490 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
491 (block_for_pc, block_for_pc_sect): Update.
492 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
494 (block_for_pc_sect, block_for_pc): Make return type const.
495 * ax-gdb.c (gen_expr): Update.
496 * alpha-mdebug-tdep.c (find_proc_desc): Update.
497 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
498 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
499 (ada_read_var_value): Update.
500 * ada-exp.y (struct name_info) <block>: Now const.
502 (block_lookup): Constify.
504 2014-06-18 Gary Benson <gbenson@redhat.com>
506 * nat/i386-dregs.h: New file.
507 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
508 * i386-nat.h (i386-dregs.h): New include.
509 (DR_FIRSTADDR): Now in i386-dregs.h.
510 (DR_LASTADDR): Likewise.
511 (DR_NADDR): Likewise.
512 (DR_STATUS): Likewise.
513 (DR_CONTROL): Likewise.
514 (i386_debug_reg_state): Likewise.
515 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
517 2014-06-18 Don Breazeal <donb@codesourcery.com>
519 * breakpoint.c (set_longjmp_breakpoint): Call
520 momentary_breakpoint_from_master with additional argument.
521 (set_longjmp_breakpoint_for_call_dummy): Call
522 momentary_breakpoint_from_master with additional argument.
523 (set_std_terminate_breakpoint): Call
524 momentary_breakpoint_from_master with additional argument.
525 (momentary_breakpoint_from_master): Add argument to function
526 definition and use it to initialize structure member flag.
527 (clone_momentary_breakpoint): Call
528 momentary_breakpoint_from_master with additional argument.
529 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
530 member flags set in momentary_breakpoint_from_master.
532 2014-06-18 Gary Benson <gbenson@redhat.com>
534 * i386-nat.c (i386_show_dr): Renamed to
535 i386_dr_show and made nonstatic. All uses updated.
536 (i386_length_and_rw_bits): Renamed to
537 i386_dr_length_and_rw_bits and made nonstatic.
539 (i386_insert_aligned_watchpoint): Renamed to
540 i386_dr_insert_aligned_watchpoint and made nonstatic.
542 (i386_remove_aligned_watchpoint): Renamed to
543 i386_dr_remove_aligned_watchpoint and made nonstatic.
545 (i386_update_inferior_debug_regs): Renamed to
546 i386_dr_update_inferior_debug_regs and made nonstatic.
549 2014-06-18 Gary Benson <gbenson@redhat.com>
551 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
552 (i386_dr_low_can_set_control): Likewise.
553 (i386_dr_low_set_addr): Likewise.
554 (i386_dr_low_set_control): Likewise.
555 (i386_dr_low_get_addr): Likewise.
556 (i386_dr_low_get_status): Likewise.
557 (i386_dr_low_get_control): Likewise.
558 (i386_insert_aligned_watchpoint): Use new macros.
559 (i386_update_inferior_debug_regs): Likewise.
560 (i386_stopped_data_address): Likewise.
562 2014-06-18 Gary Benson <gbenson@redhat.com>
564 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
565 New parameter. All uses updated.
567 2014-06-18 Gary Benson <gbenson@redhat.com>
569 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
572 2014-06-18 Gary Benson <gbenson@redhat.com>
574 * i386-nat.c (debug_printf): New macro.
575 (i386_get_debug_register_length): Likewise.
576 (TARGET_HAS_DR_LEN_8): Use above macro.
577 (i386_show_dr): Use debug_printf instead of puts_unfiltered
578 and printf_unfiltered. Use phex to format values.
580 2014-06-18 Gary Benson <gbenson@redhat.com>
582 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
585 2014-06-18 Gary Benson <gbenson@redhat.com>
587 * i386-nat.c: Comment changes.
589 2014-06-18 Gary Benson <gbenson@redhat.com>
591 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
593 2014-06-18 Gary Benson <gbenson@redhat.com>
595 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
596 (i386_insert_aligned_watchpoint): Likewise.
597 (i386_remove_aligned_watchpoint): Likewise.
598 (i386_handle_nonaligned_watchpoint): Likewise.
600 2014-06-18 Gary Benson <gbenson@redhat.com>
602 * i386-nat.c: Whitespace changes.
604 2014-06-17 Samuel Bronson <naesten@gmail.com>
606 * MAINTAINERS: Update Roland McGrath's email address.
607 Thanks to Sergio Durigan Junior for pointing out that he left
608 Red Hat a while ago, and giving me a current address.
610 2014-06-17 Tom Tromey <tromey@redhat.com>
612 * utils.h (savestring): Remove declaration.
614 2014-06-17 Tom Tromey <tromey@redhat.com>
616 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
618 2014-06-16 Keith Seitz <keiths@redhat.com>
621 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
622 to update the varobj if inferior_ptid is null_ptid.
624 2014-06-16 Tom Tromey <tromey@redhat.com>
626 * target.h (struct target_ops) <to_info_proc>: Make parameter
628 (target_info_proc): Update.
629 * target.c (target_info_proc): Make "args" const.
630 * procfs.c (procfs_info_proc): Update.
631 * linux-tdep.c (linux_info_proc): Update.
632 (linux_core_info_proc_mappings): Make "args" const.
633 (linux_core_info_proc): Update.
634 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
635 * gdbarch.c: Rebuild.
636 * gdbarch.h: Rebuild.
637 * corelow.c (core_info_proc): Update.
639 2014-06-16 Tom Tromey <tromey@redhat.com>
641 * target.h (struct target_ops) <to_disconnect>: Make parameter
643 (target_disconnect): Update.
644 * target.c (target_disconnect): Make "args" const.
645 * target-delegates.c: Rebuild.
646 * remote.c (remote_disconnect): Update.
647 * record.h (record_disconnect): Update.
648 * record.c (record_disconnect): Update.
649 * inf-child.c (inf_child_disconnect): Update.
651 2014-06-16 Tom Tromey <tromey@redhat.com>
653 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
654 * target.c (debug_to_rcmd, default_rcmd): Update.
655 * target-delegates.c: Rebuild.
656 * remote.c (remote_rcmd): Update.
657 * monitor.c (monitor_rcmd): Update.
659 2014-06-16 Pedro Alves <palves@redhat.com>
661 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
662 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
663 have OBJF_SHARED set.
664 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
665 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
666 instead of OBJF_USERLOADED.
667 * objfiles.h (OBJF_SHARED): Update comment.
668 (userloaded_objfile_contains_address_p): Rename to ...
669 (shared_objfile_contains_address_p): ... this, and update
671 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
673 (remove_symbol_file_command): Skip objfiles that don't have
676 2014-06-16 Tom Tromey <tromey@redhat.com>
678 * minsyms.h (prim_record_minimal_symbol)
679 (prim_record_minimal_symbol_and_info): Update comments.
681 2014-06-14 Eli Zaretskii <eliz@gnu.org>
683 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
684 or --without-guile, according to how GDB was built.
686 2014-06-13 Tom Tromey <tromey@redhat.com>
688 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
690 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
692 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
694 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
695 help_list.Pass all_commands, not -1, to help_list.
696 * cli/cli-dump.c (dump_command, append_command)
697 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
698 (binary_dump_command, binary_append_command): Pass all_commands,
699 not -1, to help_list.
700 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
702 * valprint.c (set_print, set_print_raw): Pass all_commands, not
704 * typeprint.c (set_print_type): Pass all_commands, not -1, to
706 * top.c (set_history): Pass all_commands, not -1, to help_list.
707 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
708 all_commands, not -1, to help_list.
709 * symfile.c (overlay_command): Pass all_commands, not -1, to
711 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
713 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
715 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
717 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
718 not -1, to help_list.
719 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
720 not -1, to help_list.
721 * maint.c (maintenance_command, maintenance_info_command)
722 (maintenance_print_command, maintenance_set_cmd): Pass
723 all_commands, not -1, to help_list.
724 * macrocmd.c (macro_command): Pass all_commands, not -1, to
726 * language.c (set_check): Pass all_commands, not -1, to help_list.
727 * infcmd.c (unset_command): Pass all_commands, not -1, to
729 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
731 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
733 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
735 * breakpoint.c (save_command): Pass all_commands, not -1, to
737 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
738 all_commands, not -1, to help_list.
740 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
742 * regcache.c (struct register_to_invalidate): New structure.
743 (do_register_invalidate, make_cleanup_regcache_invalidate): New
745 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
747 2014-06-12 Yao Qi <yao@codesourcery.com>
749 * varobj.c (varobj_get_num_children): Call
751 (varobj_list_children): Likewise.
752 (varobj_update): Likewise. Update comments.
754 2014-06-12 Yao Qi <yao@codesourcery.com>
756 * varobj.c (varobj_pretty_printed_p): Rename to ...
757 (varobj_is_dynamic_p): ... this. New function.
758 * varobj.h (varobj_pretty_printed_p): Remove declaration.
759 (varobj_is_dynamic_p): Declare.
760 * mi/mi-cmd-var.c (print_varobj): All callers updated.
761 (mi_print_value_p, varobj_update_one): Likewise.
763 2014-06-12 Pedro Alves <pedro@codesourcery.com>
764 Yao Qi <yao@codesourcery.com>
766 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
767 (varobj_get_iterator): Wrap up code for pretty-printer by
768 "#if HAVE_PYTHON" and "#endif".
769 (update_dynamic_varobj_children): Likewise.
771 2014-06-12 Pedro Alves <pedro@codesourcery.com>
772 Yao Qi <yao@codesourcery.com>
774 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
775 gdb_python_initialized is false. Move some code from varobj.c.
776 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
777 * varobj.c: Move "varobj-iter.h" inclusion earlier.
778 (struct varobj_item): Moved to varobj-iter.h".
779 (varobj_clear_saved_item): New function.
780 (update_dynamic_varobj_children): Move python-related code to
782 (free_variable): Call varobj_clear_saved_item and
785 2014-06-12 Pedro Alves <pedro@codesourcery.com>
786 Yao Qi <yao@codesourcery.com>
788 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
789 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
790 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
791 (py-varobj.o): New rule.
792 * python/py-varobj.c: New file.
793 * python/python-internal.h (py_varobj_get_iterator): Declare.
794 * varobj-iter.h: New file.
795 * varobj.c: Include "varobj-iter.h"
796 (struct varobj) <child_iter>: Change its type from "PyObject *"
797 to "struct varobj_iter *".
798 <saved_item>: Likewise.
799 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
800 [HAVE_PYTHON] (varobj_get_iterator): New function.
801 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
802 python-specific code to python/py-varobj.c.
803 (install_visualizer): Call varobj_iter_delete instead of
805 * varobj.h (varobj_ensure_python_env): Declare.
807 2014-06-12 Yao Qi <yao@codesourcery.com>
809 * varobj.c (struct varobj_item): New structure.
810 (create_child_with_value): Update declaration.
811 (varobj_add_child): Replace arguments 'name' and 'value' with
812 'item'. All callers updated.
813 (install_dynamic_child): Likewise.
814 (update_dynamic_varobj_children): Likewise.
815 (varobj_add_child): Likewise.
816 (create_child_with_value): Likewise.
818 2014-06-11 Joel Brobecker <brobecker@adacore.com>
820 * NEWS: Create a new section for the next release branch.
821 Rename the section of the current branch, now that it has
824 2014-06-11 Joel Brobecker <brobecker@adacore.com>
826 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
827 * version.in: Bump version to 7.8.50.DATE-cvs.
829 2014-06-11 Pedro Alves <palves@redhat.com>
832 * ser-mingw.c (net_windows_socket_check_pending): New function.
833 (net_windows_select_thread): Ignore spurious wakeups. Use
834 net_windows_socket_check_pending.
835 (net_windows_wait_handle): Check for pending events with
836 ioctlsocket, through net_windows_socket_check_pending, instead of
837 checking the socket's event.
839 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
841 * python/python-internal.h (gdb_PyObject_GetAttrString)
842 (gdb_PyObject_HasAttrString): New inline function definitions.
843 * py-value.c (get_field_flag): Remove the now unnecessary cast to
844 char * of the second argument to PyObject_GetAttrString.
846 2014-06-10 Joel Brobecker <brobecker@adacore.com>
848 * serial.c (serial_write): Fix index of character to be printed
849 in call to serial_logchar when serial debug traces are enabled.
851 2014-06-10 Joel Brobecker <brobecker@adacore.com>
853 * gdbtypes (resolve_dynamic_range): Add function description.
855 2014-06-09 Pedro Alves <palves@redhat.com>
857 * linux-nat.c (linux_child_follow_fork): Initialize status with
858 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
859 inner block. Only pass the signal to PTRACE_DETACH if in pass
862 2014-06-09 Gary Benson <gbenson@redhat.com>
864 * common/signals.c (gdb_signal_from_host): Reorder to separate
865 the always-available ANSI-standard signals from the signals that
867 (do_gdb_signal_to_host): Likewise.
868 * proc-events.c (signal_table): Likewise.
870 2014-06-08 Hui Zhu <hui@codesourcery.com>
872 * common/linux-ptrace.c (linux_disable_event_reporting): New
874 * common/linux-ptrace.h (linux_disable_event_reporting): New
876 * linux-nat.c (linux_child_follow_fork): Do a single step before
879 2014-06-07 Keith Seitz <keiths@redhat.com>
883 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
884 from symbol_matches_domain in symtab.c. All local callers
885 of symbol_matches_domain updated.
886 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
887 search STRUCT_DOMAIN.
888 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
889 independently. standard_lookup will do that automatically.
890 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
891 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
892 (cp_lookup_symbol_in_namespace): Likewise.
893 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
894 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
895 may return a STRUCT_DOMAIN match.
896 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
897 * cp-support.c: Include language.h.
898 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
900 * psymtab.c (match_partial_symbol): Compare the requested
901 domain with the symbol's domain directly.
902 (lookup_partial_symbol): Likewise.
903 * symtab.c (lookup_symbol_in_language): Explain when/why
904 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
905 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
906 appropriate languages.
907 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
908 and moved to ada-lang.c
909 (lookup_block_symbol): Explain that this function only returns
910 symbol matching the requested DOMAIN.
911 Compare the requested domain with the symbol's domain directly.
912 (iterate_over_symbols): Compare the requested domain with the
913 symbol's domain directly.
914 * symtab.h (symbol_matches_domain): Remove.
916 2014-06-06 Doug Evans <xdje42@gmail.com>
918 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
919 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
920 (gdbscm_guile_version_is_at_least): Declare.
921 (gdbscm_scm_string_to_int): Declare.
922 * guile/guile.c (gdbscm_guile_major_version): New global.
923 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
924 (guile_datadir): New static global.
925 (gdbscm_guile_data_directory): New function.
926 (initialize_scheme_side): Update.
927 (misc_guile_functions): Add guile-data-directory.
928 (initialize_gdb_module): Fetch guile version number.
929 * guile/lib/gdb.scm: Remove call to add-to-load-path.
930 * guile/lib/gdb/init.scm (%initialize!): Ditto.
931 * guile/lib/gdb/boot.scm: Use guile-data-directory.
932 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
934 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
935 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
936 * guile/scm-value.c (gdbscm_value_to_string): Only call
937 scm_port_conversion_strategy if Guile version >= 2.0.6.
939 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
941 * main.c (print_gdb_help): Add -q and --silent.
943 2014-06-06 Gary Benson <gbenson@redhat.com>
945 * common/signals.c: Remove preprocessor conditionals for
946 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
948 * proc-events.c: Likewise.
950 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
952 * symfile.c (symfile_free_objfile): Remove restriction to
954 * symfile-mem.c (symbol_file_add_from_memory): Call
955 add_target_sections_of_objfile.
957 2014-06-05 Ludovic Courtès <ludo@gnu.org>
959 * guile/scm-value.c (gdbscm_history_append_x): Use
960 'vlscm_get_value_smob_arg_unsafe' instead of
961 'vlscm_scm_to_value'.
963 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
966 * utils.c (printchar): Don't escape at all if quoter is NUL.
967 Update function documentation to clarify effect of parameter
969 * remote.c (escape_buffer): Pass '\\' as the quoter to
971 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
973 (mi_solib_unloaded): Same.
975 2014-06-05 Joel Brobecker <brobecker@adacore.com>
977 * development.sh: Delete.
978 * Makefile.in (config.status): Adjust dependency on development.sh.
979 * configure.ac: Adjust development.sh source call.
980 * configure: Regenerate.
982 2014-06-04 Doug Evans <xdje42@gmail.com>
984 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
985 is_scheme_bkpt, spec.
986 (bpscm_make_breakpoint_smob): Initialize new members.
987 (gdbscm_create_breakpoint_x): Split into two ...
988 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
989 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
990 (scheme_function breakpoint_functions): Update.
991 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
992 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
993 register-breakpoint!.
995 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
998 * mem-break.c (z_type_supported): Return zero if
999 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1001 2014-06-04 Tom Tromey <tromey@redhat.com>
1003 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1004 value_from_contents_and_address_unresolved.
1005 (ada_template_to_fixed_record_type_1): Likewise.
1006 (ada_which_variant_applies): Likewise.
1007 * value.h (value_from_contents_and_address_unresolved): Declare.
1008 * value.c (value_from_contents_and_address_unresolved): New
1010 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1011 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1012 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1014 2014-06-04 Tom Tromey <tromey@redhat.com>
1016 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1018 2014-06-04 Tom Tromey <tromey@redhat.com>
1020 * procfs.c (procfs_attach): Make "args" const.
1021 * windows-nat.c (windows_attach): Make "args" const.
1022 * nto-procfs.c (procfs_attach): Make "args" const.
1023 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1024 * go32-nat.c (go32_attach): Make "args" const.
1025 * gnu-nat.c (gnu_attach): Make "args" const.
1026 * darwin-nat.c (darwin_attach): Make "args" const.
1027 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1028 * linux-nat.c (linux_nat_attach): Make "args" const.
1029 * remote.c (extended_remote_attach_1, extended_remote_attach):
1031 * target.h (struct target_ops) <to_attach>: Make "args" const.
1032 (find_default_attach): Likewise.
1033 * utils.c (parse_pid_to_attach): Make "args" const.
1034 * utils.h (parse_pid_to_attach): Update.
1036 2014-06-04 Tom Tromey <tromey@redhat.com>
1038 * target-delegates.c: Rebuild.
1039 * target.c (default_thread_address_space): New function.
1040 (target_thread_address_space): Simplify.
1041 * target.h (struct target_ops) <to_thread_address_space>: Add
1042 TARGET_DEFAULT_FUNC.
1044 2014-06-04 Doug Evans <xdje42@gmail.com>
1046 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1048 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1050 * record-btrace.c: Include event-loop.h and inf-loop.h.
1051 (record_btrace_resume_exec_dir)
1052 (record_btrace_async_inferior_event_handler)
1053 (record_btrace_handle_async_inferior_event): New.
1054 (record_btrace_open): Create async event handler.
1055 (record_btrace_close): Delete async event handler.
1056 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1057 Mark async event handler.
1058 (record_btrace_execution_direction): New.
1059 (init_record_btrace_ops): Initialize to_execution_direction.
1061 2014-06-03 Doug Evans <xdje42@gmail.com>
1063 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1064 (gdbscm_make_parameter): Ditto.
1066 2014-06-03 Doug Evans <dje@google.com>
1068 * exec.c (exec_close_1): Call clear_section_table instead of
1069 resize_section_table.
1070 (clear_section_table): New function.
1071 (resize_section_table): Make static. Rename arg num_added to
1073 * exec.h (clear_section_table): Declare.
1074 (resize_section_table): Delete.
1075 * progspace.c (release_program_space): Call clear_section_table
1076 instead of resize_section_table.
1078 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1080 * NEWS (Python Scripting): Add entry about the new xmethods
1083 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1085 * python/py-xmethods.c: New file.
1086 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1087 (objfpy_dealloc): XDECREF on the new xmethods field.
1088 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1090 (objfpy_get_xmethods): New function.
1091 (objfile_getset): New entry 'xmethods'.
1092 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1093 (pspy_dealloc): XDECREF on the new xmethods field.
1094 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1096 (pspy_get_xmethods): New function.
1097 (pspace_getset): New entry 'xmethods'.
1098 * python/python-internal.h: Add declarations for new functions.
1099 * python/python.c (_initialize_python): Invoke
1100 gdbpy_initialize_xmethods.
1101 * python/lib/gdb/__init__.py (xmethods): New
1103 * python/lib/gdb/xmethod.py: New file.
1104 * python/lib/gdb/command/xmethods.py: New file.
1106 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1108 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1109 best match method returned by find_overload_match is an xmethod.
1110 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1111 the best matching operator returned by find_overload_match is an
1113 * valops.c: #include "extension.h".
1114 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1115 Return void. The list of matching source methods is returned in
1116 "fn_list" and a vector of matching debug method workers is
1117 returned in "xm_worker_vec". Update all callers.
1118 (value_find_oload_method_list): Likewise.
1119 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1120 non-NULL, then the index of the best matching method in this
1121 vector is returned. Update all callers.
1122 (find_overload_match): Include xmethods while performing overload
1125 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1127 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1128 * extension-priv.h (struct extension_language_ops): Add the
1130 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1131 get_matching_xmethod_workers, get_xmethod_argtypes,
1132 invoke_xmethod, free_xmethod_worker,
1133 free_xmethod_worker_vec): New functions.
1134 * extension.h: #include "common/vec.h".
1135 New function declarations.
1136 (struct xmethod_worker): New struct.
1137 (VEC (xmethod_worker_ptr)): New vector type.
1138 (xmethod_worker_ptr): New typedef.
1139 (xmethod_worker_vec): Likewise.
1140 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1142 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1143 (struct builtin_type): New field "xmethod".
1144 * valarith.c (value_ptradd): Assert that the value argument is not
1146 * valops.c (value_must_coerce_to_target): Return 0 for
1147 lval_xcallable values.
1148 * value.c (struct value): New field XM_WORKER in the field
1150 (value_address, value_raw_address): Return 0 for lval_xcallable
1152 (set_value_address): Assert that the value is not an
1154 (value_free): Free the associated xmethod worker when freeing
1155 lval_xcallable values.
1156 (set_value_component_location): Assert that the WHOLE value is not
1158 (value_of_xmethod, call_xmethod): New functions.
1159 * value.h: Declare "struct xmethod_worker".
1160 Declare new functions value_of_xmethod, call_xmethod.
1162 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1163 Pedro Alves <palves@redhat.com>
1165 PR breakpoints/17000
1166 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1167 New function, extracted from software_breakpoint_inserted_here_p.
1168 (software_breakpoint_inserted_here_p): Replace factored out code
1169 by call to find_non_raw_software_breakpoint_inserted_here.
1170 (bp_target_info_copy_insertion_state): New function.
1171 (bkpt_insert_location): Handle the case of a single-step
1172 breakpoint already inserted at the same address.
1173 (bkpt_remove_location): Handle the case of a single-step
1174 breakpoint still inserted at the same address.
1175 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1176 breakpoint already inserted at the same address.
1177 (deprecated_remove_raw_breakpoint): Handle the case of a
1178 non-raw breakpoint still inserted at the same address.
1179 (find_single_step_breakpoint): New function, extracted from
1180 single_step_breakpoint_inserted_here_p.
1181 (find_single_step_breakpoint): New function,
1182 factored out from single_step_breakpoint_inserted_here_p.
1183 (single_step_breakpoint_inserted_here_p): Reimplement.
1185 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1187 Pushed by Joel Brobecker <brobecker@adacore.com>
1188 * source.c (show_substitute_path_command): Fix display of matching
1191 2014-06-03 Gary Benson <gbenson@redhat.com>
1193 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1195 2014-06-02 Doug Evans <xdje42@gmail.com>
1197 Add parameter support for Guile.
1198 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1199 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1200 (scm-param.o): New rule.
1201 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1202 (gdbscm_misc_error): Declare.
1203 (gdbscm_canonicalize_command_name): Declare.
1204 (gdbscm_scm_to_host_string): Declare.
1205 (gdbscm_scm_from_host_string): Declare.
1206 (gdbscm_initialize_parameters): Declare.
1207 * guile/guile.c (initialize_gdb_module): Call
1208 gdbscm_initialize_parameters.
1209 * guile/lib/gdb.scm: Export parameter symbols.
1210 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1211 cmdscm_canonicalize_name and made public. All callers updated.
1212 * guile/scm-exception.c (gdbscm_misc_error): New function.
1213 * guile/scm-param.c: New file.
1214 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1215 (gdbscm_scm_to_host_string): New function.
1216 (gdbscm_scm_from_host_string): New function.
1217 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1219 2014-06-02 Doug Evans <xdje42@gmail.com>
1221 Add command support for Guile.
1222 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1223 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1224 (scm-cmd.o): New rule.
1225 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1226 (gdbscm_user_error_p): Declare.
1227 (gdbscm_parse_command_name): Declare.
1228 (gdbscm_valid_command_class_p): Declare.
1229 (gdbscm_initialize_commands): Declare.
1230 * guile/guile.c (initialize_gdb_module): Call
1231 gdbscm_initialize_commands.
1232 * guile/lib/gdb.scm: Export command symbols.
1233 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1234 (throw-user-error): New function.
1235 * guile/scm-cmd.c: New file.
1236 * guile/scm-exception.c (user_error_symbol): New static global.
1237 (gdbscm_user_error_p): New function.
1238 (gdbscm_initialize_exceptions): Set user_error_symbol.
1239 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1241 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1243 * top.c (command_loop): Handle comments here...
1244 (command_line_input): ... not here.
1246 2014-06-02 Doug Evans <xdje42@gmail.com>
1248 Add progspace support for Guile.
1249 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1250 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1251 (scm-progspace.o): New rule.
1252 * guile/guile-internal.h (pspace_smob): New typedef.
1253 (psscm_pspace_smob_pretty_printers): Declare.
1254 (psscm_pspace_smob_from_pspace): Declare.
1255 (psscm_scm_from_pspace): Declare.
1256 * guile/guile.c (initialize_gdb_module): Call
1257 gdbscm_initialize_pspaces.
1258 * guile/lib/gdb.scm: Export progspace symbols.
1259 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1261 (append-pretty-printer!): Ditto.
1262 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1264 * guile/scm-progspace.c: New file.
1266 2014-06-03 Alan Modra <amodra@gmail.com>
1268 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1269 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1271 2014-06-02 Doug Evans <dje@google.com>
1273 Add support for skeletonless type units.
1274 * dwarf2read.c (struct dwarf2_per_objfile): New member
1275 n_allocated_type_units.
1276 (struct dwarf2_per_objfile) <tu_stats>: New member
1277 nr_all_type_units_reallocs.
1278 (create_signatured_type_table_from_index): Initialize
1279 n_allocated_type_units
1280 (create_all_type_units): Ditto.
1281 (add_type_unit): Move up in file. New arg slot.
1282 All callers updated. Increase space for all_type_units more
1284 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1285 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1286 (lookup_dwp_signatured_type): Ditto.
1287 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1288 All callers updated.
1289 (build_type_psymtabs_1): Leave type_unit_groups as
1290 NULL if no TUs present.
1291 (print_tu_stats): New function.
1292 (process_skeletonless_type_unit): New function.
1293 (process_dwo_file_for_skeletonless_type_units): New
1295 (process_skeletonless_type_units): New function.
1296 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1297 Call print tu_stats if debugging enabled.
1299 2014-06-02 Pedro Alves <palves@redhat.com>
1301 * breakpoint.c (build_target_command_list): Don't build a command
1302 list if we have any duplicate location that isn't a dprintf.
1304 2014-06-02 Pedro Alves <palves@redhat.com>
1306 * breakpoint.c (dprintf_breakpoint_hit): New function.
1307 (initialize_breakpoint_ops): Install it as dprintf's
1308 breakpoint_hit method.
1310 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1312 * source.c (substitute_path_rule_matches): Simplify using
1313 filename_ncmp instead of FILENAME_CMP.
1315 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1317 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1319 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1321 * configure.ac: When Guile is available, check for the
1322 availability of 'scm_new_smob'.
1323 * configure, config.h.in: Regenerate.
1324 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1327 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1329 * frame.c (struct frame_info): Add stop_string field.
1330 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1331 (get_prev_frame_always): Old content moved into
1332 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1333 TRY_CATCH, handle MEMORY_ERROR exceptions.
1334 (frame_stop_reason_string): New function definition.
1335 * frame.h (unwind_stop_reason_to_string): Extend comment to
1336 mention frame_stop_reason_string.
1337 (frame_stop_reason_string): New function declaration.
1338 * stack.c (frame_info): Switch to frame_stop_reason_string.
1339 (backtrace_command_1): Switch to frame_stop_reason_string.
1340 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1341 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1342 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1344 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1346 * frame.c (frame_stop_reason_string): Rename to ...
1347 (unwind_stop_reason_to_string): this.
1348 * frame.h (frame_stop_reason_string): Rename to ...
1349 (unwind_stop_reason_to_string): this.
1350 * stack.c (frame_info): Update call to frame_stop_reason_string.
1351 (backtrace_command_1): Likewise.
1352 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1353 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1355 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1357 * frame.c (remove_prev_frame): New function.
1358 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1361 2014-05-29 Pedro Alves <palves@redhat.com>
1363 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1364 and make it const. When a single-step decays to a continue,
1365 clear 'step', not 'hw_step'. Pass whether the caller wanted
1366 to step to user_visible_resume_ptid, not what we ask the
1369 2014-05-29 Pedro Alves <palves@redhat.com>
1371 * infrun.c (process_event_stop_test, handle_step_into_function)
1372 (handle_step_into_function_backward): Adjust.
1373 Don't set the even thread's stop_step and call stop_waiting before
1374 calling end_stepping_range. Instead do that ...
1375 (end_stepping_range): ... here. Take an ecs pointer parameter.
1377 2014-05-29 Pedro Alves <palves@redhat.com>
1379 * infrun.c (stop_stepping): Rename to ...
1380 (stop_waiting): ... this.
1381 (proceed): Update comment.
1382 (process_event_stop_test, handle_inferior_event)
1383 (handle_signal_stop, handle_step_into_function)
1384 (handle_step_into_function_backward): Update.
1386 2014-05-29 Pedro Alves <palves@redhat.com>
1388 * infcall.c (run_inferior_call): Don't check whether the current
1389 thread is running after the proceed call.
1391 2014-05-29 Pedro Alves <palves@redhat.com>
1392 Tom Tromey <tromey@redhat.com>
1394 * NEWS: Mention "maint set target-async", "set mi-async", and that
1395 background execution commands are now always available.
1396 * target.h (target_async_permitted): Update comment.
1397 * target.c (target_async_permitted, target_async_permitted_1):
1399 (set_target_async_command): Rename to ...
1400 (maint_set_target_async_command): ... this.
1401 (show_target_async_command): Rename to ...
1402 (maint_show_target_async_command): ... this.
1403 (_initialize_target): Adjust.
1404 * infcmd.c (prepare_execution_command): Make extern.
1405 * inferior.h (prepare_execution_command): Declare.
1406 * infrun.c (set_observer_mode): Leave target async alone.
1407 * mi/mi-interp.c (mi_interpreter_init): Install
1408 mi_on_sync_execution_done as sync_execution_done observer.
1409 (mi_on_sync_execution_done): New function.
1410 (mi_execute_command_input_handler): Don't print the prompt if we
1411 just started a synchronous command with an async target.
1412 (mi_on_resume): Check sync_execution before printing prompt.
1413 * mi/mi-main.h (mi_async_p): Declare.
1414 * mi/mi-main.c: Include gdbcmd.h.
1415 (mi_async_p): New function.
1416 (mi_async, mi_async_1): New globals.
1417 (set_mi_async_command, show_mi_async_command, mi_async): New
1419 (exec_continue): Call prepare_execution_command.
1420 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1421 (mi_execute_async_cli_command): Use mi_async_p.
1422 (_initialize_mi_main): Install "set mi-async". Make
1423 "target-async" a deprecated alias.
1425 2014-05-29 Pedro Alves <palves@redhat.com>
1427 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1428 (_initialize_cli_interp): Adjust.
1429 * event-loop.c: Include "observer.h".
1430 (start_event_loop): Notify 'command_error' observers instead of
1431 calling display_gdb_prompt. Remove FIXME comment.
1432 * event-top.c (display_gdb_prompt): Remove call into the
1434 * inf-loop.c: Include "observer.h".
1435 (inferior_event_handler): Notify 'command_error' observers instead
1436 of calling display_gdb_prompt.
1437 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1438 observers instead of calling display_gdb_prompt.
1439 * interps.c (interp_set): Don't call display_gdb_prompt.
1440 (current_interp_display_prompt_p): Delete.
1441 * interps.h (interp_prompt_p): Delete declaration.
1442 (interp_prompt_p_ftype): Delete.
1443 (struct interp_procs) <prompt_proc_p>: Delete field.
1444 (current_interp_display_prompt_p): Delete declaration.
1445 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1446 (_initialize_mi_interp): Adjust.
1447 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1448 'command_error' observers.
1449 (tui_on_sync_execution_done, tui_on_command_error): New
1451 (tui_display_prompt_p): Delete.
1452 (_initialize_tui_interp): Adjust.
1454 2014-05-29 Pedro Alves <palves@redhat.com>
1457 * cli/cli-interp.c: Include infrun.h and observer.h.
1458 (cli_uiout, cli_interp): New globals.
1459 (cli_on_signal_received, cli_on_end_stepping_range)
1460 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1462 (cli_interpreter_init): Install them as 'end_stepping_range',
1463 'signal_received' 'signal_exited', 'exited' and 'no_history'
1465 (_initialize_cli_interp): Remove cli_interp local.
1466 * infrun.c (handle_inferior_event): Call the several stop reason
1467 observers instead of printing the stop reason directly.
1468 (end_stepping_range): New function.
1469 (print_end_stepping_range_reason, print_signal_exited_reason)
1470 (print_exited_reason, print_signal_received_reason)
1471 (print_no_history_reason): Make static, and add an uiout
1472 parameter. Print to that instead of to CURRENT_UIOUT.
1473 * infrun.h (print_end_stepping_range_reason)
1474 (print_signal_exited_reason, print_exited_reason)
1475 (print_signal_received_reason print_no_history_reason): New
1477 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1479 <cli_uiout>: New field.
1480 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1481 uiout for CLI output. Install 'signal_received',
1482 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1484 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1485 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1486 (mi_on_no_history): New functions.
1487 (ui_out_free_cleanup): Delete function.
1488 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1489 instead use the one already stored in the MI interpreter data.
1490 (mi_ui_out): Adjust.
1491 * tui/tui-interp.c: Include infrun.h and observer.h.
1492 (tui_interp): New global.
1493 (tui_on_signal_received, tui_on_end_stepping_range)
1494 (tui_on_signal_exited, tui_on_exited)
1495 (tui_on_no_history): New functions.
1496 (tui_init): Install them as 'end_stepping_range',
1497 'signal_received' 'signal_exited', 'exited' and 'no_history'
1499 (_initialize_tui_interp): Delete tui_interp local.
1501 2014-05-29 Pedro Alves <palves@redhat.com>
1504 * linux-nat.c (linux_nat_resume_callback): Rename the second
1505 parameter to 'except'. Skip LP if it points to EXCEPT.
1506 (linux_nat_resume): Don't mark the event lwp as not stopped
1507 before resuming sibling lwps. Instead ask
1508 linux_nat_resume_callback to skip the event lwp. Mark it as not
1509 stopped after actually resuming it.
1510 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1512 (wait_lwp): Mark the lwp as stopped here.
1513 (stop_wait_callback): Mark the lwp as not stopped right after
1514 resuming it. Don't mark lwps as stopped here.
1515 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1516 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1518 2014-05-29 Pedro Alves <palves@redhat.com>
1521 * infrun.c (resume): Determine how much to resume depending on
1522 whether the caller wanted a step, not whether we can hardware step
1523 the target. Mark all threads that we intend to run as running,
1524 unless we're calling an inferior function.
1525 (normal_stop): If the thread is running an infcall, don't finish
1527 * target.c (target_resume): Don't mark threads as running here.
1529 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1531 * serial.c (_initialize_serial): Remove support for
1532 the "set remotebaud" and "show remotebaud" commands.
1533 * NEWS: Add entry documenting the removal of that command.
1535 2014-05-28 Yao Qi <yao@codesourcery.com>
1537 * charset.c: Fix typo in comments.
1539 2014-05-27 Gary Benson <gbenson@redhat.com>
1541 * utils.c (internal_vproblem): Prompt for a bug report.
1543 2014-05-26 Andy Wingo <wingo@igalia.com>
1545 * guile/scm-arch.c (arscm_mark_arch_smob):
1546 * guile/scm-block.c (bkscm_mark_block_smob)
1547 (bkscm_mark_block_syms_progress_smob):
1548 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1549 * guile/scm-exception.c (exscm_mark_exception_smob):
1550 * guile/scm-frame.c (frscm_mark_frame_smob):
1551 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1552 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1553 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1554 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1555 (ppscm_mark_pretty_printer_worker_smob):
1556 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1557 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1558 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1559 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1561 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1564 2014-05-26 Andy Wingo <wingo@igalia.com>
1565 Doug Evans <xdje42@gmail.com>
1567 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1568 empty_base_class. All uses updated.
1569 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1570 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1572 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1573 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1574 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1575 (gdbscm_gsmob_has_property_p, add_property_name)
1576 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1577 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1578 (gdb-object-has-property?, gdb-object-properties): Remove.
1579 (gdb-object-kind): Renamed from gsmob-kind.
1581 2014-05-26 Andy Wingo <wingo@igalia.com>
1583 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1584 * configure: Regenerate.
1586 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1588 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1590 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1592 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1593 (replay_memory_access_read_only, replay_memory_access_read_write)
1594 (replay_memory_access_types, replay_memory_access)
1595 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1596 (cmd_set_record_btrace, cmd_show_record_btrace)
1597 (cmd_show_replay_memory_access): New.
1598 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1599 (record_btrace_remove_breakpoint): Replace
1600 record_btrace_allow_memory_access with replay_memory_access.
1601 (_initialize_record_btrace): Add commands.
1602 * NEWS: Announce it.
1604 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1606 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1608 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1610 * MAINTAINERS (Write After Approval): Move self back from
1613 2014-05-22 Pedro Alves <palves@redhat.com>
1615 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1616 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1617 (disable_randomization, enum exec_direction_kind)
1618 (execution_direction, stop_registers, start_remote)
1619 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1620 (wait_for_inferior, normal_stop, get_last_target_status)
1621 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1622 (insert_step_resume_breakpoint_at_sal)
1623 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1624 (set_step_info, print_stop_event, signal_stop_state)
1625 (signal_print_state, signal_pass_state, signal_stop_update)
1626 (signal_print_update, signal_pass_update)
1627 (update_signals_program_target, clear_exit_convenience_vars)
1628 (displaced_step_dump_bytes, update_observer_mode)
1629 (signal_catch_update, gdb_signal_from_command): Move
1631 * infrun.h: ... to this new file.
1632 * amd64-tdep.c: Include infrun.h.
1633 * annotate.c: Include infrun.h.
1634 * arch-utils.c: Include infrun.h.
1635 * arm-linux-tdep.c: Include infrun.h.
1636 * arm-tdep.c: Include infrun.h.
1637 * break-catch-sig.c: Include infrun.h.
1638 * breakpoint.c: Include infrun.h.
1639 * common/agent.c: Include infrun.h instead of inferior.h.
1640 * corelow.c: Include infrun.h.
1641 * event-top.c: Include infrun.h.
1642 * go32-nat.c: Include infrun.h.
1643 * i386-tdep.c: Include infrun.h.
1644 * inf-loop.c: Include infrun.h.
1645 * infcall.c: Include infrun.h.
1646 * infcmd.c: Include infrun.h.
1647 * infrun.c: Include infrun.h.
1648 * linux-fork.c: Include infrun.h.
1649 * linux-nat.c: Include infrun.h.
1650 * linux-thread-db.c: Include infrun.h.
1651 * monitor.c: Include infrun.h.
1652 * nto-tdep.c: Include infrun.h.
1653 * procfs.c: Include infrun.h.
1654 * record-btrace.c: Include infrun.h.
1655 * record-full.c: Include infrun.h.
1656 * remote-m32r-sdi.c: Include infrun.h.
1657 * remote-mips.c: Include infrun.h.
1658 * remote-notif.c: Include infrun.h.
1659 * remote-sim.c: Include infrun.h.
1660 * remote.c: Include infrun.h.
1661 * reverse.c: Include infrun.h.
1662 * rs6000-tdep.c: Include infrun.h.
1663 * s390-linux-tdep.c: Include infrun.h.
1664 * solib-irix.c: Include infrun.h.
1665 * solib-osf.c: Include infrun.h.
1666 * solib-svr4.c: Include infrun.h.
1667 * target.c: Include infrun.h.
1668 * top.c: Include infrun.h.
1669 * windows-nat.c: Include infrun.h.
1670 * mi/mi-interp.c: Include infrun.h.
1671 * mi/mi-main.c: Include infrun.h.
1672 * python/py-threadevent.c: Include infrun.h.
1674 2014-05-22 Pedro Alves <palves@redhat.com>
1676 * infrun.c (handle_inferior_event): Store the exit code for
1677 --return-child-result here, instead of ...
1678 (print_exited_reason): ... here.
1680 2014-05-21 Pedro Alves <palves@redhat.com>
1683 * gdbthread.h (struct thread_control_state): New field
1685 * infrun.c (follow_fork): Copy the new thread control field to the
1687 (clear_proceed_status_thread): Clear the new thread control field.
1688 (proceed): Set the new thread control field.
1689 * interps.h (command_interp): Declare.
1690 * interps.c (command_interpreter): New global.
1691 (command_interp): New function.
1692 (interp_exec): Set `command_interpreter' while here.
1693 * cli-out.c (cli_uiout_dtor): New function.
1694 (cli_ui_out_impl): Install it.
1695 * mi/mi-interp.c: Include cli-out.h.
1696 (mi_cmd_interpreter_exec): Add comment.
1697 (restore_current_uiout_cleanup): New function.
1698 (ui_out_free_cleanup): New function.
1699 (mi_on_normal_stop): If finishing an execution command started by
1700 a CLI command, or any kind of breakpoint-like event triggered,
1701 print the stop event to the output (CLI) stream.
1702 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1704 2014-05-21 Pedro Alves <palves@redhat.com>
1706 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1707 current source line having changed.
1708 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1709 * infrun.c (normal_stop): Adjust call to
1710 set_current_sal_from_frame.
1711 * source.c (clear_lines_listed_range): New function.
1712 (set_current_source_symtab_and_line, identify_source_line): Clear
1713 the lines listed range.
1714 (line_info): Handle the first "info line" after the current source
1715 line having changed.
1716 * stack.c (print_stack_frame): Remove center handling.
1717 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1720 2014-05-21 Pedro Alves <palves@redhat.com>
1722 * inf-child.c (inf_child_mourn_inferior): New function.
1723 * inf-child.h (inf_child_mourn_inferior): New declaration.
1724 * darwin-nat.c (darwin_mourn_inferior): Use
1725 inf_child_mourn_inferior.
1726 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1727 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1728 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1729 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1730 * windows-nat.c (windows_mourn_inferior): Likewise.
1732 2014-05-21 Doug Evans <xdje42@gmail.com>
1734 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1736 2014-05-21 Doug Evans <xdje42@gmail.com>
1738 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1739 (gdbscm_out_of_range_error): Ditto.
1740 (gdbscm_memory_error): Ditto.
1741 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1742 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1743 (gdbscm_out_of_range_error): Update.
1744 (gdbscm_memory_error): Update.
1745 (gdbscm_scm_to_target_string_unsafe): Delete.
1747 2014-05-21 Pedro Alves <palves@redhat.com>
1749 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1751 (inf_child_open_target): New function.
1752 (inf_child_open): Use inf_child_open_target to push the target
1753 instead of erroring out.
1754 (inf_child_disconnect, inf_child_close)
1755 (inf_child_maybe_unpush_target): New functions.
1756 (inf_child_target): Install inf_child_disconnect and
1757 inf_child_close. Store a pointer to the returned object.
1758 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1760 * target.c (auto_connect_native_target): New global.
1761 (show_default_run_target): New function.
1762 (find_default_run_target): Return NULL if automatically connecting
1763 to the native target is disabled.
1764 (_initialize_target): Install set/show auto-connect-native-target.
1765 * NEWS: Mention "set auto-connect-native-target", and "target
1767 * linux-nat.c (super_close): New global.
1768 (linux_nat_close): Call super_close.
1769 (linux_nat_add_target): Store a pointer to the base class's
1771 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1772 inf_child_maybe_unpush.
1773 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1775 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1776 the inferior. Use inf_child_maybe_unpush_target.
1777 (inf_ttrace_attach): Don't push the target if it is already
1779 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1780 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1781 after mourning the inferior. Use inf_child_maybe_unpush_target.
1782 (darwin_attach_pid): Don't push the target if it is already
1784 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1785 mourning the inferior. Use inf_child_maybe_unpush_target.
1786 (gnu_detach): Use inf_child_maybe_unpush_target.
1787 * go32-nat.c (go32_create_inferior): Don't push the target if it
1789 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1790 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1791 (procfs_open): Rename to ...
1792 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1793 comments. Can target_preopen before changing node. Call
1794 inf_child_open_target to push the target explicitly.
1795 (procfs_attach): Don't push the target if it is already pushed.
1796 (procfs_detach): Use inf_child_maybe_unpush_target.
1797 (procfs_create_inferior): Don't push the target if it is already
1799 (nto_native_ops): New global.
1800 (procfs_open): Reimplement.
1801 (procfs_native_open): New function.
1802 (init_procfs_targets): Install procfs_native_open as to_open of
1803 "target native". Store a pointer to the "native" target in
1805 * procfs.c (procfs_attach): Don't push the target if it is already
1807 (procfs_detach): Use inf_child_maybe_unpush_target.
1808 (procfs_mourn_inferior): Only unpush the target after mourning the
1809 inferior. Use inf_child_maybe_unpush_target.
1810 (procfs_init_inferior): Don't push the target if it is already
1812 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1813 if it is already pushed.
1815 2014-05-21 Pedro Alves <palves@redhat.com>
1817 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1818 and "procfs" targets are now called "native" instead.
1820 2014-05-21 Pedro Alves <palves@redhat.com>
1822 * go32-nat.c (go32_open): Delete.
1823 (go32_target): Don't override the to_open method.
1825 2014-05-21 Pedro Alves <palves@redhat.com>
1827 * nto-procfs.c (procfs_can_run): New function.
1828 (nto_procfs_ops): New global.
1829 (init_procfs_targets): New, based on procfs_target. Install
1830 "target native" in addition to "target procfs".
1831 (_initialize_procfs): Call init_procfs_targets instead of adding
1834 2014-05-21 Pedro Alves <palves@redhat.com>
1836 * windows-nat.c (windows_target): Don't override to_shortname,
1837 to_longname or to_doc.
1839 2014-05-21 Pedro Alves <palves@redhat.com>
1841 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1844 2014-05-21 Pedro Alves <palves@redhat.com>
1846 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1847 to_shortname, to_longname or to_doc.
1849 2014-05-21 Pedro Alves <palves@redhat.com>
1851 * go32-nat.c (go32_target): Don't override to_shortname,
1852 to_longname or to_doc.
1854 2014-05-21 Pedro Alves <palves@redhat.com>
1856 * inf-child.c (inf_child_open): Remove mention of "child".
1857 (inf_child_target): Rename target to "native" instead of "child".
1859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1861 * Makefile.in (SFILES): Delete "regset.c".
1862 (COMMON_OBS): Delete "regset.o".
1864 * regset.h (regset_alloc): Delete prototype.
1866 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1868 * sparc-linux-tdep.c (sparc32_linux_gregset)
1869 (sparc32_linux_fpregset): New static regset structures.
1870 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1871 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1873 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1874 (sparc64_linux_fpregset): New static regset structures.
1875 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1876 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1877 New static regset structures.
1878 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1879 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1880 New static regset structures.
1881 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1882 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1883 New static regset structures.
1884 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1885 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1886 New static regset structures.
1887 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1891 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1892 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1893 register maps ("regmaps") from "*regset" to "*regmap". Do this
1894 for all regmap types and variables.
1895 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1896 (sparc32_linux_supply_core_gregset)
1897 (sparc32_linux_collect_core_gregset)
1898 (sparc32_linux_supply_core_fpregset)
1899 (sparc32_linux_collect_core_fpregset): Likewise.
1900 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1901 (sparc_gregmap, sparc_fpregmap): ... these.
1902 (sparc_supply_gregset, sparc_collect_gregset)
1903 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1904 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1905 (_initialize_sparc_nat): Rename regmaps.
1906 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1907 (sparc_gregmap, sparc_fpregmap): ... these.
1908 (sparc_supply_gregset, sparc_collect_gregset)
1909 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1910 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1912 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1913 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1915 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1917 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1918 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1919 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1921 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1922 (sparc32_bsd_fpregset): Rename to...
1923 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1924 (sparc32_bsd_fpregmap): ... these.
1925 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1926 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1927 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1928 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1929 (struct sparc_gregmap, struct sparc_fpregmap)
1930 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1931 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1932 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1933 (sparc32_supply_regset, sparc32_collect_gregset)
1934 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1936 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1937 (sparc64_linux_ptrace_gregmap): ... this.
1938 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1939 (_initialize_sparc64_linux_nat): Rename regmaps.
1940 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1941 (sparc64_linux_core_gregmap): ... this.
1942 (sparc64_linux_supply_core_gregset)
1943 (sparc64_linux_collect_core_gregset)
1944 (sparc64_linux_supply_core_fpregset)
1945 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1946 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1947 (sparc64_sol2_fpregset): Rename to...
1948 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1949 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1950 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1952 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1953 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1954 (sparc64_bsd_fpregset): Rename to...
1955 (struct sparc_gregmap, sparc64_sol2_gregmap)
1956 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1957 (sparc64_bsd_fpregmap): ... these.
1958 (sparc64_supply_gregset, sparc64_collect_gregset)
1959 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1961 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1962 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1963 (sparc64fbsd_gregmap): ... this.
1964 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1965 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1967 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1968 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1969 (sparc64nbsd_collect_fpregset): Likewise.
1970 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1971 (sparc64nbsd_gregmap): ... this.
1972 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1974 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1975 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1976 (sparc64obsd_gregmap): ... this.
1977 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1979 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1980 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1981 (sparc32nbsd_gregmap): ... this.
1982 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1987 * score-tdep.c (score7_linux_gregset): New static regset
1989 (score7_linux_regset_from_core_section): Remove dynamic regset
1991 (score_gdbarch_init): Drop allocation of tdep structure.
1992 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1998 (am33_regset_from_core_section): Remove dynamic regset
2001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2003 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2004 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2006 (mips_linux_regset_from_core_section): Remove dynamic regset
2008 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2009 'gregset64', 'fpregset', and 'fpregset64'.
2010 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2011 deleted tdep fields.
2013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2015 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2017 (amd64_regset_from_core_section): Remove dynamic regset
2019 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2021 (amd64obsd_regset_from_core_section): Remove dynamic regset
2023 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2025 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2026 x86-common regset supply function.
2027 * i386-tdep.c (i386_collect_gregset): Make static.
2028 (i386_gregset): New global regset structure.
2029 (i386_fpregset, i386_xstateregset): New static regset structures.
2030 (i386_regset_from_core_section): Remove dynamic regset
2032 (i386_gdbarch_init): Remove initialization of tdep fields
2033 'gregset', 'fpregset', and 'xstateregset'.
2034 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2035 'fpregset', and 'xstateregset'.
2036 (i386_collect_gregset): Remove prototype.
2037 (i386_gregset): New declaration.
2038 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2040 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2045 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2046 (arm_linux_vfpregset): New static regset structures.
2047 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2049 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2050 and 'vfpregset' fields.
2052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2054 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2055 (aarch64_linux_fpregset): New static regset structures.
2056 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2057 of regset structures.
2058 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063 * regset.h (struct regset): Remove gdbarch field.
2064 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2065 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2066 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2068 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2069 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2070 (ppc32_linux_vsxregset): Likewise.
2071 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2072 via the regcache instead of the regset.
2073 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2074 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2075 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2076 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2081 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2082 Constify structures.
2083 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2084 (alphanbsd_aout_gregset): Likewise.
2085 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2086 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2088 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2089 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2091 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2092 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2093 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2094 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2095 * m88k-tdep.c (m88k_gregset): Likewise.
2096 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2097 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2098 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2099 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2100 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2101 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2102 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2103 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2104 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2106 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2107 * sh-tdep.h (sh_corefile_gregset): Likewise.
2108 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2109 * vax-tdep.c (vax_gregset): Likewise.
2111 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2113 Fix TLS access for -static -pthread.
2114 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2115 (try_thread_db_load_1): Initialize it.
2116 (thread_db_get_thread_local_address): Call it if LM is zero.
2117 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2118 * target.h (struct target_ops) (to_get_thread_local_address): Add
2119 load_module_addr comment.
2121 2014-05-21 Pedro Alves <palves@redhat.com>
2123 * dcache.c (dcache_read_memory_partial): If reading the cache line
2124 fails, fallback to reading just the memory the caller wanted.
2126 2014-05-20 Doug Evans <dje@google.com>
2128 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2129 instead of get_current_arch.
2131 2014-05-20 Pedro Alves <palves@redhat.com>
2133 * NEWS: Mention that compare-sections now works with all targets.
2135 * remote.c (PACKET_qCRC): New enum value.
2136 (remote_verify_memory): Don't send qCRC if the target has no
2137 execution. Use packet_support/packet_ok. If the target doesn't
2138 support the qCRC packet, fallback to a deep memory copy.
2139 (compare_sections_command): Say "target image" instead of "remote
2141 (_initialize_remote): Add PACKET_qCRC to the list of config
2142 packets that have no associated command. Extend comment.
2143 * target.c (simple_verify_memory, default_verify_memory): New
2145 * target.h (struct target_ops) <to_verify_memory>: Default to
2146 default_verify_memory.
2147 (simple_verify_memory): New declaration.
2148 * target-delegates.c: Regenerate.
2150 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2152 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2154 2014-05-20 Hui Zhu <hui@codesourcery.com>
2155 Yao Qi <yao@codesourcery.com>
2158 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2159 and change address of sp and pc.
2161 2014-05-19 Tom Tromey <tromey@redhat.com>
2163 * gdbtypes.c (rank_function): Use XNEWVEC.
2164 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2166 2014-05-19 Doug Evans <dje@google.com>
2168 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2169 build_type_unit_groups and moved closer to only caller. Remove
2170 arguments. All references updated. Remove outdated .gdb_index
2172 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2173 build_type_psymtabs_1.
2175 2014-05-19 Doug Evans <dje@google.com>
2177 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2178 n_type_unit_groups, all_type_unit_groups. All uses removed.
2179 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2180 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2181 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2182 (add_type_unit_group_to_table): Delete.
2184 2014-05-19 Doug Evans <dje@google.com>
2186 * eval.c (evaluate_subexp_standard): Add some comments.
2188 2014-05-17 Doug Evans <xdje42@gmail.com>
2190 * progspace.c (remove_program_space): Delete, unused.
2191 * progspace.h (remove_program_space): Ditto.
2193 2014-05-17 Doug Evans <xdje42@gmail.com>
2195 * inferior.c (prune_inferiors): Fix comment.
2196 (remove_inferior_command): Call prune_program_spaces.
2198 2014-05-16 Doug Evans <dje@google.com>
2200 New command line option -D.
2202 * main.c (set_gdb_data_directory): New function.
2203 (captured_main): Recognize -D. Flag error for --data-directory "".
2204 Call set_gdb_data_directory.
2205 (print_gdb_help): Print --data-directory, -D.
2206 * main.h (set_gdb_data_directory): Declare.
2207 * top.c (staged_gdb_datadir): New static global.
2208 (set_gdb_datadir): Call set_gdb_data_directory
2209 (show_gdb_datadir): New function.
2210 (init_main): Update init of data-directory parameter.
2212 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2214 Import the "dirfd" gnulib module.
2215 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2216 * gnulib/aclocal.m4: Update.
2217 * gnulib/config.in: Update.
2218 * gnulib/configure: Update.
2219 * gnulib/import/Makefile.am: Update.
2220 * gnulib/import/Makefile.in: Update.
2221 * gnulib/import/dirfd.c: New.
2222 * gnulib/import/m4/dirfd.m4: New.
2223 * gnulib/import/m4/gnulib-cache.m4: Update.
2224 * gnulib/import/m4/gnulib-comp.m4: Update.
2226 2014-05-16 Pierre Muller <muller@sourceware.org>
2227 Yao Qi <yao@codesourcery.com>
2229 * valprint.c (print_wchar): Move the code on checking whether
2230 W is a printable wide char to the default branch of switch
2231 statement below. Call wchar_printable instead of gdb_iswprint.
2233 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2235 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2236 ldr.w and ldrd instructions.
2238 2014-05-15 Doug Evans <dje@google.com>
2240 * dwarf2read.c (read_structure_type): Delete outdated comments.
2242 2014-05-14 Tom Tromey <tromey@redhat.com>
2244 * macrocmd.c (print_macro_definition): Reindent.
2246 2014-05-13 Doug Evans <xdje42@gmail.com>
2248 * python/py-cmd.c (cmdpy_completer): Add comment.
2249 (completers): Make const.
2251 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2253 * infrun.c (resume): Remove should_resume (unused). Move up
2254 declaration of resume_ptid.
2256 2014-05-13 Tom Tromey <tromey@redhat.com>
2258 * language.h (unop_type_check): Remove.
2259 (binop_type_check): Don't declare.
2261 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2263 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2264 call to regcache_raw_collect.
2266 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2268 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2269 mi_console->quote as the quoting character.
2271 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2273 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2275 2014-04-29 Tom Tromey <tromey@redhat.com>
2277 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2278 "show debug varobj".
2280 2014-05-07 Kyle McMartin <kyle@redhat.com>
2282 Pushed by Joel Brobecker <brobecker@adacore.com>.
2283 * aarch64-tdep.c (aarch64_software_single_step): New function.
2284 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2285 with aarch64_software_single_step.
2287 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2291 2014-05-05 Keith Seitz <keiths@redhat.com>
2293 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2294 variable or history value is successfully parsed.
2296 2014-05-05 Yao Qi <yao@codesourcery.com>
2297 Pedro Alves <palves@redhat.com>
2299 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2300 address of blocks that intersects the requested range. Trim
2301 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2303 * ctf.c (ctf_xfer_partial): Likewise.
2305 2014-05-05 Yao Qi <yao@codesourcery.com>
2307 * printcmd.c (display_command): Remove the check to
2308 target_has_execution.
2310 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2312 * ppcobsd-nat.c: Include "obsd-nat.h".
2313 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2315 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2317 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2319 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2320 and 16-bit signed and unsigned arguments. Update comment.
2321 (stap_parse_probe_arguments): Extend code to handle such
2322 arguments. Use warning instead of complaint to notify about
2323 unrecognized bitness.
2325 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2327 PR breakpoints/16889
2328 * stap-probe.c (stap_parse_probe_arguments): Simplify
2329 check for non-prefixed probes (i.e., probes whose
2330 arguments do not start with "N@"). Always set the
2331 argument type to a sane value.
2333 2014-05-01 David Taylor <dtaylor@emc.com>
2335 * remote.c (compare_sections_command): Add -r option to compare
2336 all loadable read-only sections.
2338 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2340 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2341 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2343 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2344 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2345 Remove unused CORE_ADDR argument. Update all callers.
2347 2014-04-29 Pedro Alves <palves@redhat.com>
2349 * remote.c (struct packet_config) <detect>: Extend comment.
2350 (add_packet_config_cmd): Don't set the config's detect or support
2352 (init_all_packet_configs): Also initialize the config's 'detect'
2354 (reset_all_packet_configs_support): New function.
2355 (remote_open_1): Call reset_all_packet_configs_support instead of
2356 init_all_packet_configs.
2357 (_initialize_remote): Initialize all packet configs. Assert that
2358 all packets have an associated command, except a few known
2361 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2363 * dwarf2read.c (read_subrange_type): Handle dynamic
2364 DW_AT_lower_bound attributes.
2366 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2368 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2369 dynamic bounds before computing its upper bound.
2370 (ada_discrete_type_low_bound): Same as above with the lower bound.
2372 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2374 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2375 range types. Adjust the array handling implementation to
2376 take advantage of this change.
2377 (resolve_dynamic_range): New function, mostly extracted from
2378 resolve_dynamic_bounds.
2379 (resolve_dynamic_array): New function, mostly extracted from
2380 resolve_dynamic_bounds.
2381 (resolve_dynamic_bounds): Delete.
2382 (resolve_dynamic_type): Reimplement. Add handling of
2383 TYPE_CODE_RANGE types.
2385 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2387 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2388 handling of parallel ___XA types.
2390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2392 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2393 unnecessary second call to static_unwrap_type.
2395 2014-04-27 Hui Zhu <hui@codesourcery.com>
2397 * stack.c (print_frame_info): Call do_gdb_disassembly with
2398 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2400 2014-04-26 Doug Evans <xdje42@gmail.com>
2402 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2404 2014-04-25 Pedro Alves <palves@redhat.com>
2407 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2408 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2409 and newline from built string.
2410 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2411 (linux_ptrace_attach_fail_reason): ... this.
2412 * linux-nat.c (linux_nat_attach): Adjust to use
2413 linux_ptrace_attach_fail_reason.
2415 2014-04-25 Pedro Alves <palves@redhat.com>
2417 * remote.c (struct remote_state): Remove multi_process_aware,
2418 non_stop_aware, cond_tracepoints, cond_breakpoints,
2419 breakpoint_commands, fast_tracepoints, static_tracepoints,
2420 install_in_trace, disconnected_tracing,
2421 enable_disable_tracepoints, string_tracing, and
2422 augmented_libraries_svr4_read fields.
2423 (remote_multi_process_p): Move further below in the file.
2424 (struct packet_config): Add comments.
2425 (update_packet_config): Delete function.
2426 (show_packet_config_cmd): Use packet_config_support.
2427 (add_packet_config_cmd): Use NULL as set callback.
2428 (packet_ok): "set remote foo-packet"-style commands no longer
2429 change config->supported -- adjust.
2430 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2431 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2432 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2433 (PACKET_QNonStop, PACKET_multiprocess_feature)
2434 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2435 (PACKET_DisconnectedTracing_feature)
2436 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2437 (set_remote_protocol_packet_cmd): Delete function.
2438 (packet_config_support, packet_support): New functions.
2439 (set_remote_protocol_Z_packet_cmd): Don't call
2440 update_packet_config.
2441 (remote_query_attached, remote_pass_signals)
2442 (remote_program_signals, remote_threads_info)
2443 (remote_threads_extra_info, remote_start_remote): Use
2445 (remote_start_remote): Use packet_config_support and
2447 (init_all_packet_configs): Set all packets to unknown support,
2448 instead of calling update_packet_config.
2449 (remote_check_symbols): Use packet_support.
2450 (remote_supported_packet): Unconditionally set the packet config's
2452 (remote_multi_process_feature, remote_non_stop_feature)
2453 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2454 (remote_breakpoint_commands_feature)
2455 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2456 (remote_install_in_trace_feature)
2457 (remote_disconnected_tracing_feature)
2458 (remote_enable_disable_tracepoint_feature)
2459 (remote_string_tracing_feature)
2460 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2461 (remote_protocol_features): Adjust to use remote_supported_packet
2462 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2463 "ConditionalTracepoints", "ConditionalBreakpoints",
2464 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2465 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2466 "EnableDisableTracepoints", and "tracenz".
2467 (remote_query_supported): Use packet_support.
2468 (remote_open_1): Adjust.
2469 (extended_remote_attach_1): Use packet_support. Switch on the
2470 result of packet_ok instead of checking whether the packet ended
2472 (remote_vcont_resume): Use packet_support.
2473 (remote_resume, remote_stop_ns, fetch_register_using_p)
2474 (remote_prepare_to_store, store_register_using_P)
2475 (check_binary_download, remote_write_bytes): Use packet_support.
2476 (remote_vkill): Use packet_support. Switch on the result of
2477 packet_ok instead of checking whether the packet ended up
2479 (extended_remote_supports_disable_randomization): Use
2481 (extended_remote_run): Switch on the result of packet_ok instead
2482 of checking whether the packet ended up disabled.
2483 (remote_insert_breakpoint, remote_remove_breakpoint)
2484 (remote_insert_watchpoint, remote_remove_watchpoint)
2485 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2487 (remote_search_memory): Use packet_config_support.
2488 (remote_get_thread_local_address, remote_get_tib_address)
2489 (remote_hostio_send_command, remote_can_execute_reverse): Use
2491 (remote_supports_cond_tracepoints)
2492 (remote_supports_cond_breakpoints)
2493 (remote_supports_fast_tracepoints)
2494 (remote_supports_static_tracepoints)
2495 (remote_supports_install_in_trace)
2496 (remote_supports_enable_disable_tracepoint)
2497 (remote_supports_string_tracing)
2498 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2499 the packet config says the feature is enabled or disabled.
2500 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2501 (remote_get_trace_status): Use packet_support.
2502 (remote_set_disconnected_tracing): Adjust to check whether the
2503 feature is enabled with packet_support.
2504 (remote_set_trace_buffer_size, remote_use_agent)
2505 (remote_can_use_agent, remote_supports_btrace): Use
2507 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2508 Use packet_config_support.
2509 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2510 the packet config says the feature is enabled or disabled.
2511 (set_range_stepping): Use packet_support.
2513 2014-04-25 Tom Tromey <tromey@redhat.com>
2515 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2518 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2520 * NEWS: Mention support for C99 variable length arrays.
2522 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2524 * ada-lang.c (standard_exc): Expand introductory comment.
2526 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2527 Walfred Tedeschi <walfred.tedeschi@intel.com>
2529 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2531 (amd64_linux_read_description): Add code to handle AVX512 xstate
2532 mask and return respective tdesc.
2533 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2534 and features/i386/x32-avx512-linux.c.
2535 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2536 (amd64_linux_core_read_description): Add code to handle AVX512
2537 xstate mask and return respective tdesc.
2538 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2539 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2541 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2542 (tdesc_amd64_avx512_linux): New prototype.
2543 (tdesc_x32_avx512_linux): Likewise.
2544 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2545 features/i386/x32-avx512.c.
2546 (amd64_ymm_avx512_names): New register names for pseudo
2548 (amd64_ymmh_avx512_names): New register names for raw registers
2550 (amd64_k_names): New register names for K registers.
2551 (amd64_zmmh_names): New register names for ZMM raw registers.
2552 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2553 (amd64_xmm_avx512_names): New register names for XMM16-31
2555 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2557 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2558 if feature is present.
2559 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2560 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2561 (AMD64_NUM_REGS): Adjust to new number of registers.
2562 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2563 registers supplied via XSTATE by AVX512 registers.
2564 (i386_linux_read_description): Add case for AVX512.
2565 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2566 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2567 (i386_linux_core_read_description): Add case for AVX512.
2568 (i386_linux_init_abi): Install supported register note section
2570 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2572 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2573 registers to be number of zmm7h + 1.
2574 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2575 * i386-tdep.c: Include features/i386/i386-avx512.c.
2576 (i386_zmm_names): Add ZMM pseudo register names array.
2577 (i386_zmmh_names): Add ZMM raw register names array.
2578 (i386_k_names): Add K raw register names array.
2579 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2580 registers. AVX512 has 16 more ZMM registers than there are YMM
2582 (i386_zmmh_regnum_p): Add function to look up register number of
2584 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2585 (i386_k_regnum_p): Likewise for K raw registers.
2586 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2587 registers added by AVX512.
2588 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2589 registers added by AVX512.
2590 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2592 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2593 (i386_pseudo_register_name): Add ZMM pseudo registers.
2594 (i386_zmm_type): Construct and return vector registers type for ZMM
2596 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2597 ZMM0-31 pseudo registers and K registers.
2598 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2599 and YMM16-31 registers from register cache.
2600 (i386_pseudo_register_write): Add code to write K, ZMM and
2602 (i386_register_reggroup_p): Add code to include/exclude AVX512
2603 registers in/from respective register groups.
2604 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2605 registers if feature is present in xcr0.
2606 (i386_gdbarch_init): Add code to initialize AVX512 feature
2607 variables in tdep structure, wire in pseudo registers and call
2608 initialize_tdesc_i386_avx512.
2609 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2611 (i386_regnum): Add AVX512 registers.
2612 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2613 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2614 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2615 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2617 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2618 (i386_ymm_avx512_regnum_p): Likewise.
2619 (i386_k_regnum_p): Likewise.
2620 (i386_zmm_regnum_p): Likewise.
2621 (i386_zmmh_regnum_p): Likewise.
2622 * i387-tdep.c : Update year in copyright notice.
2623 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2625 (XSAVE_YMM_AVX512_ADDR): New macro.
2626 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2628 (XSAVE_XMM_AVX512_ADDR): New macro.
2629 (xsave_avx512_k_offset): New table for K register offsets in
2631 (XSAVE_AVX512_K_ADDR): New macro.
2632 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2634 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2635 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2637 (i387_collect_xsave): Add code to collect AVX512 registers from
2639 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2640 of XMM16-31 registers.
2641 (I387_NUM_K_REGS): New define for number of K registers.
2642 (I387_K0_REGNUM): New define for K0 register number.
2643 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2644 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2645 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2647 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2648 (I387_XMM16_REGNUM): New define for XMM16 register number.
2649 (I387_YMM0_REGNUM): New define for YMM0 register number.
2650 (I387_KEND_REGNUM): New define for last K register number.
2651 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2652 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2654 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2656 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2658 * features/Makefile: Add AVX512 related files.
2659 * features/i386/32bit-avx512.xml: New file.
2660 * features/i386/64bit-avx512.xml: Likewise.
2661 * features/i386/amd64-avx512-linux.c: Likewise.
2662 * features/i386/amd64-avx512-linux.xml: Likewise.
2663 * features/i386/amd64-avx512.c: Likewise.
2664 * features/i386/amd64-avx512.xml: Likewise.
2665 * features/i386/i386-avx512-linux.c: Likewise.
2666 * features/i386/i386-avx512-linux.xml: Likewise.
2667 * features/i386/i386-avx512.c: Likewise.
2668 * features/i386/i386-avx512.xml: Likewise.
2669 * features/i386/x32-avx512-linux.c: Likewise.
2670 * features/i386/x32-avx512-linux.xml: Likewise.
2671 * features/i386/x32-avx512.c: Likewise.
2672 * features/i386/x32-avx512.xml: Likewise.
2673 * regformats/i386/amd64-avx512-linux.dat: New file.
2674 * regformats/i386/amd64-avx512.dat: Likewise.
2675 * regformats/i386/i386-avx512-linux.dat: Likewise.
2676 * regformats/i386/i386-avx512.dat: Likewise.
2677 * regformats/i386/x32-avx512-linux.dat: Likewise.
2678 * regformats/i386/x32-avx512.dat: Likewise.
2679 * NEWS: Add note about new support for AVX512.
2682 2014-04-23 Pedro Alves <palves@redhat.com>
2684 * breakpoint.c (insert_bp_location): Tolerate errors if the
2685 breakpoint is set in a user-loaded objfile.
2686 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2687 location is marked shlib_disabled. If the breakpoint is set in a
2688 user-loaded objfile is a GDB-side memory breakpoint, validate it
2689 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2690 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2692 * mem-break.c (memory_validate_breakpoint): New function.
2693 * objfiles.c (userloaded_objfile_contains_address_p): New
2695 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2696 * target.h (memory_validate_breakpoint): New declaration.
2698 2014-04-23 Pedro Alves <palves@redhat.com>
2700 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2701 the breakpoint is set in a shared library, only suppress
2702 errors for software breakpoints, not hardware breakpoints.
2704 2014-04-22 Pedro Alves <palves@redhat.com>
2706 * infrun.c (schedlock_applies): New function, factored out from
2707 find_thread_needs_step_over.
2708 (find_thread_needs_step_over): Use it.
2709 (switch_back_to_stepped_thread): Always clear trap_expected if the
2710 step over is finished. Return early if scheduler locking applies.
2711 Look for the stepping thread and a potential step-over thread with
2713 (currently_stepping_or_nexting_callback): Delete.
2715 2014-04-22 Nick Clifton <nickc@redhat.com>
2717 * NEWS: Mention that ARM sim now supports tracing.
2719 2014-04-22 Yao Qi <yao@codesourcery.com>
2721 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2723 * tracefile.c (tracefile_fetch_registers): ... it. New
2725 * tracefile.h (tracefile_fetch_registers): Declare.
2726 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2727 tracefile_fetch_registers.
2729 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2732 * windows-nat.c (thread_rec): Don't display a warning when
2733 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2734 fails for any reason, set th->suspended to -1, so that we don't
2735 try to resume such a thread. Also, don't return NULL in these
2736 cases, to avoid completely ruin the session due to "PC register is
2737 not available" error.
2738 (do_windows_fetch_inferior_registers): Check errors in
2739 GetThreadContext call.
2740 (windows_continue): Accept an additional argument KILLED; if not
2741 zero, ignore errors in the SetThreadContext call, since the
2742 inferior was killed and is shutting down.
2743 (windows_resume, get_windows_debug_event)
2744 (windows_create_inferior, windows_mourn_inferior)
2745 (windows_kill_inferior): All callers of windows_continue changed
2746 to adjust to its new calling sequence.
2748 2014-04-19 Yao Qi <yao@codesourcery.com>
2750 * ctf.c (ctf_open): Call post_create_inferior.
2752 2014-04-19 Yao Qi <yao@codesourcery.com>
2754 * ctf.c (handle_id): New static variable.
2755 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2756 value. Get the declaration of event "register" and get length
2757 of field "contents".
2759 2014-04-19 Yao Qi <yao@codesourcery.com>
2761 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2763 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2765 * valops.c (oload_method_static): Remove unnecessary argument
2766 METHOD. Update all callers.
2768 2014-04-18 Pedro alves <palves@redhat.com>
2769 Tom Tromey <tromey@redhat.com>
2772 * frame.c (get_prev_frame_1): Rename to ...
2773 (get_prev_frame_always): ... this, and make extern. Adjust.
2774 (skip_artificial_frames): Use get_prev_frame_always.
2775 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2776 (get_frame_unwind_stop_reason): Adjust to rename.
2777 * frame.h (get_prev_frame_always): Declare.
2778 * inline-frame.c: Include frame.h.
2779 (inline_frame_this_id): Use get_prev_frame_always.
2781 2014-04-18 Tristan Gingold <gingold@adacore.com>
2783 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2784 code by using bfd_mach_o_get_base_address.
2786 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2788 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2789 (spu_ax_pseudo_register_collect): New function.
2790 (spu_ax_pseudo_register_push_stack): Likewise.
2791 (spu_dwarf_reg_to_regnum): Likewise.
2792 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2794 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2796 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2797 Replace FRAME argument with FRAME_ID.
2798 * gdbarch.c, gdbarch.h: Regenerate.
2799 * findvar.c (default_value_from_register): Add GDBARCH argument;
2800 replace FRAME by FRAME_ID. No longer call get_frame_id.
2801 (value_from_register): Update call to gdbarch_value_from_register.
2802 * value.h (default_value_from_register): Update prototype.
2803 * s390-linux-tdep.c (s390_value_from_register): Update interface
2804 and call to default_value_from_register.
2805 * spu-tdep.c (spu_value_from_register): Likewise.
2807 * findvar.c (address_from_register): Remove TYPE argument.
2808 Do not call value_from_register; use gdbarch_value_from_register
2809 with null_frame_id instead.
2810 * value.h (address_from_register): Update prototype.
2811 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2812 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2813 address_from_register interface change.
2815 2014-04-17 Yao Qi <yao@codesourcery.com>
2817 * gdbtypes.h: Update comments to link to types and macros'
2820 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2822 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2824 2014-04-16 Keith Seitz <keiths@redhat.com>
2827 * dwarf2read.c (skip_one_die): Check that all relative-offset
2828 sibling DIEs fall within range of the current reader's buffer.
2829 (read_partial_die): Likewise.
2831 2014-04-16 Keith Seitz <keiths@redhat.com>
2834 * cp-namespace.c (lookup_symbol_file): If the type name of
2835 `this' is NULL, return immediately.
2837 2014-04-14 Keith Seitz <keiths@redhat.com>
2840 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2841 from symbol_matches_domain in symtab.c. All local callers
2842 of symbol_matches_domain updated.
2843 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2844 search STRUCT_DOMAIN.
2845 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2846 independently. standard_lookup will do that automatically.
2847 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2848 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2849 (cp_lookup_symbol_in_namespace): Likewise.
2850 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2851 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2852 may return a STRUCT_DOMAIN match.
2853 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2854 * cp-support.c: Include language.h.
2855 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2857 * psymtab.c (match_partial_symbol): Compare the requested
2858 domain with the symbol's domain directly.
2859 (lookup_partial_symbol): Likewise.
2860 * symtab.c (lookup_symbol_in_language): Explain when/why
2861 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2863 appropriate languages.
2864 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2865 and moved to ada-lang.c
2866 (lookup_block_symbol): Explain that this function only returns
2867 symbol matching the requested DOMAIN.
2868 Compare the requested domain with the symbol's domain directly.
2869 (iterate_over_symbols): Compare the requested domain with the
2870 symbol's domain directly.
2871 * symtab.h (symbol_matches_domain): Remove.
2873 2014-04-14 Tom Tromey <tromey@redhat.com>
2876 * c-exp.y (type_aggregate_p): New function.
2877 (qualified_name, classify_inner_name): Use it.
2878 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2879 and TYPE_TARGET_TYPE of an enum type.
2880 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2882 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2883 handle TYPE_DECLARED_CLASS.
2884 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2886 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2887 * valops.c (enum_constant_from_type): New function.
2888 (value_aggregate_elt): Use it.
2889 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2892 2014-04-14 Tom Tromey <tromey@redhat.com>
2894 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2895 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2897 * value.h (value_aggregate_elt): Update.
2899 2014-04-14 Tom Tromey <tromey@redhat.com>
2901 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2905 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2906 (evaluate_subexp_standard): Pass noside argument.
2907 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2908 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2909 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2910 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2911 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2913 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2915 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2916 points to a constant blob.
2918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2920 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2921 property and store it as the high bound and flag the range accordingly.
2922 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2923 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2924 * gdbtypes.h (enum range_flags): New enum.
2925 (struct range_bounds): Add flags member.
2927 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2929 * c-typeprint.c (c_type_print_varspec_suffix): Added
2930 check for not yet resolved high bound. If unresolved, print
2931 "variable length" string to the console instead of random
2934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2936 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2938 (ada_template_to_fixed_record_type_1): Likewise.
2939 (ada_to_fixed_type_1): Likewise.
2940 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2941 (cp_print_value): Likewise.
2942 * d-valprint.c (dynamic_array_type): Likewise.
2943 * findvar.c (address_of_variable): Likewise.
2944 * jv-valprint.c (java_value_print): Likewise.
2945 * valops.c (value_ind): Likewise.
2946 * value.c (coerce_ref): Likewise.
2948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2950 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2951 value and retrieve the dynamic type size.
2953 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2955 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2956 passed to sizeof is dynamic evaluate the argument to compute the length.
2958 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2959 Joel Brobecker <brobecker@adacore.com>
2961 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2962 (dwarf2_evaluate_property): New function.
2963 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2964 * dwarf2read.c (attr_to_dynamic_prop): New function.
2965 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2967 * gdbtypes.c: Include dwarf2loc.h.
2968 (is_dynamic_type): New function.
2969 (resolve_dynamic_type): New function.
2970 (resolve_dynamic_bounds): New function.
2971 (get_type_length): New function.
2972 (check_typedef): Use get_type_length to compute type length.
2973 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2974 (TYPE_LOW_BOUND_KIND): New macro.
2975 (is_dynamic_type): New function prototype.
2976 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2977 to resolve dynamic properties of the type. Update comment.
2978 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2980 2014-04-14 Richard Henderson <rth@redhat.com>
2982 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2984 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2985 Doug Evans <xdje42@gmail.com>
2987 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2988 dereference TYPE_CODE_REF values.
2990 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2992 Revert the following changes due to regressions:
2994 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2995 (dwarf2_evaluate_property): New function.
2996 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2997 * dwarf2read.c (attr_to_dynamic_prop): New function.
2998 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3000 * gdbtypes.c: Include dwarf2loc.h.
3001 (is_dynamic_type): New function.
3002 (resolve_dynamic_type): New function.
3003 (resolve_dynamic_bounds): New function.
3004 (get_type_length): New function.
3005 (check_typedef): Use get_type_length to compute type length.
3006 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3007 (TYPE_LOW_BOUND_KIND): New macro.
3008 (is_dynamic_type): New function prototype.
3009 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3010 to resolve dynamic properties of the type. Update comment.
3011 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3013 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3014 passed to sizeof is dynamic evaluate the argument to compute the length.
3016 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3017 value and retrieve the dynamic type size.
3019 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
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 * eval.c (evaluate_subexp_with_coercion): Likewise.
3026 * findvar.c (address_of_variable): Likewise.
3027 * jv-valprint.c (java_value_print): Likewise.
3028 * valops.c (value_ind): Likewise.
3029 * value.c (coerce_ref): Likewise.
3031 * c-typeprint.c (c_type_print_varspec_suffix): Added
3032 check for not yet resolved high bound. If unresolved, print
3033 "variable length" string to the console instead of random
3036 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3037 property and store it as the high bound and flag the range accordingly.
3038 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3039 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3040 * gdbtypes.h (enum range_flags): New enum.
3041 (struct range_bounds): Add flags member.
3043 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3044 points to a constant blob.
3046 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3047 (evaluate_subexp_standard): Pass noside argument.
3048 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3049 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3050 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3051 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3052 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3054 2014-04-11 Keith Seitz <keiths@redhat.com>
3057 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3058 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3063 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3064 (evaluate_subexp_standard): Pass noside argument.
3065 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3066 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3067 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3068 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3069 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3071 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3073 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3074 points to a constant blob.
3076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3078 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3079 property and store it as the high bound and flag the range accordingly.
3080 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3081 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3082 * gdbtypes.h (enum range_flags): New enum.
3083 (struct range_bounds): Add flags member.
3085 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3087 * c-typeprint.c (c_type_print_varspec_suffix): Added
3088 check for not yet resolved high bound. If unresolved, print
3089 "variable length" string to the console instead of random
3092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3094 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3095 (ada_template_to_fixed_record_type_1): Likewise.
3096 (ada_to_fixed_type_1): Likewise.
3097 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3098 (cp_print_value): Likewise.
3099 * d-valprint.c (dynamic_array_type): Likewise.
3100 * eval.c (evaluate_subexp_with_coercion): Likewise.
3101 * findvar.c (address_of_variable): Likewise.
3102 * jv-valprint.c (java_value_print): Likewise.
3103 * valops.c (value_ind): Likewise.
3104 * value.c (coerce_ref): Likewise.
3106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3108 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3109 value and retrieve the dynamic type size.
3111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3113 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3114 passed to sizeof is dynamic evaluate the argument to compute the length.
3116 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3119 (dwarf2_evaluate_property): New function.
3120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3121 * dwarf2read.c (attr_to_dynamic_prop): New function.
3122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3124 * gdbtypes.c: Include dwarf2loc.h.
3125 (is_dynamic_type): New function.
3126 (resolve_dynamic_type): New function.
3127 (resolve_dynamic_bounds): New function.
3128 (get_type_length): New function.
3129 (check_typedef): Use get_type_length to compute type length.
3130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3131 (TYPE_LOW_BOUND_KIND): New macro.
3132 (is_dynamic_type): New function prototype.
3133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3134 to resolve dynamic properties of the type. Update comment.
3135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3139 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3140 declaring high/low bounds and change uses accordingly. Call
3141 create_range_type instead of create_static_range_type.
3142 * gdbtypes.c (create_range_type): New function.
3143 (create_range_type): Convert bounds into struct bound_prop and pass
3144 them to create_range_type.
3145 * gdbtypes.h (struct bound_prop): New struct.
3146 (create_range_type): New function prototype.
3147 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3148 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3149 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3151 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3155 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3156 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3157 * ada-lang.c: All uses of create_range_type updated.
3158 * coffread.c: All uses of create_range_type updated.
3159 * dwarf2read.c: All uses of create_range_type updated.
3160 * f-exp.y: All uses of create_range_type updated.
3161 * m2-valprint.c: All uses of create_range_type updated.
3162 * mdebugread.c: All uses of create_range_type updated.
3163 * stabsread.c: All uses of create_range_type updated.
3164 * valops.c: All uses of create_range_type updated.
3165 * valprint.c: All uses of create_range_type updated.
3167 2014-04-10 Pedro Alves <palves@redhat.com>
3169 * breakpoint.c (single_step_breakpoints)
3170 (single_step_gdbarch): Move up in the file.
3171 (one_breakpoint_xfer_memory): New function, factored out from ...
3172 (breakpoint_xfer_memory): ... here. Also process single-step
3175 2014-04-09 Tristan Gingold <gingold@adacore.com>
3177 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3179 (darwin_decode_exception_message): Free port only after use.
3181 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3183 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3184 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3185 when setting the size of call_length.
3187 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3189 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3190 dereference TYPE_CODE_REF values.
3192 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3194 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3195 end of warning message.
3197 2014-04-03 Doug Evans <dje@google.com>
3199 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3200 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3202 2014-04-02 Alan Modra <amodra@gmail.com>
3204 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3205 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3206 (struct symbol_file_add_from_memory_args): Add size field.
3207 (find_vdso_size): New function.
3208 (add_vsyscall_page): Attempt to find vdso size.
3210 2014-04-01 Doug Evans <dje@google.com>
3212 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3214 2014-04-01 Tristan Gingold <gingold@adacore.com>
3216 * darwin-nat.c (darwin_encode_reply): Add prototype.
3217 (darwin_decode_exception_message): Reply to unknown inferiors.
3218 (darwin_decode_message): Handle message by id. Ignore message
3219 to unknown inferior.
3220 (darwin_wait): Discard unknown messages, add debug trace.
3222 2014-03-31 Doug Evans <dje@google.com>
3224 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3227 2014-03-31 Doug Evans <dje@google.com>
3229 New option "set print symbol-loading".
3231 * solib.c (solib_read_symbols): Only print symbol loading messages
3233 (solib_add): If symbol loading is in "brief" mode, notify user
3234 symbols are being loaded.
3235 (reload_shared_libraries_1): Ditto.
3236 * symfile.c (print_symbol_loading_off): New static global.
3237 (print_symbol_loading_brief): New static global.
3238 (print_symbol_loading_full): New static global.
3239 (print_symbol_loading_enums): New static global.
3240 (print_symbol_loading): New static global.
3241 (print_symbol_loading_p): New function.
3242 (symbol_file_add_with_addrs): Only print symbol loading messages
3244 (_initialize_symfile): Register "print symbol-loading" set/show
3246 * symfile.h (print_symbol_loading_p): Declare.
3248 2014-03-30 Doug Evans <xdje42@gmail.com>
3250 * infrun.c (set_last_target_status): New function.
3251 (handle_inferior_event): Call it.
3253 2014-03-30 Doug Evans <xdje42@gmail.com>
3255 * inferior.h (enum stop_kind): Improve comment.
3257 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3259 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3260 a reference, strip the reference layer before calling
3261 the lang_ops value_has_mutated callback.
3263 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3265 Remove some globals from our parser.
3266 * language.c (unk_lang_parser): Add "struct parser_state"
3268 * language.h (struct language_defn) <la_parser>: Likewise.
3269 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3270 (initialize_expout): Add "struct parser_state" argument.
3271 Rewrite function to use the parser state.
3272 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3273 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3274 write_exp_elt_longcst, write_exp_elt_dblcst,
3275 write_exp_elt_decfloatcst, write_exp_elt_type,
3276 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3277 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3278 write_dollar_variable): Likewise.
3279 (parse_exp_in_context_1): Use parser state.
3280 (insert_type_address_space): Add "struct parser_state" argument.
3282 (increase_expout_size): New function.
3283 * parser-defs.h: Forward declare "struct language_defn" and
3284 "struct parser_state".
3285 (expout, expout_size, expout_ptr): Remove extern declarations.
3286 (parse_gdbarch, parse_language): Rewrite macro declarations to
3287 accept the parser state.
3288 (struct parser_state): New struct.
3289 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3290 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3291 write_exp_elt_decfloatcst, write_exp_elt_type,
3292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3293 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3294 write_exp_msymbol, write_dollar_variable,
3295 mark_struct_expression, insert_type_address_space): Add "struct
3296 parser_state" argument.
3297 (increase_expout_size): New function.
3298 * utils.c (do_clear_parser_state): New function.
3299 (make_cleanup_clear_parser_state): Likewise.
3300 * utils.h (make_cleanup_clear_parser_state): New function
3302 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3303 Update calls to write_exp* in order to pass the parser state.
3304 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3305 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3307 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3308 * stap-probe.c (stap_parse_register_operand): Likewise.
3309 (stap_parse_single_operand): Likewise.
3310 (stap_parse_argument_1): Likewise.
3311 (stap_parse_argument): Use parser state.
3312 * stap-probe.h: Include "parser-defs.h".
3313 (struct stap_parse_info) <pstate>: New field.
3314 * c-exp.y (parse_type): Rewrite to use parser state.
3315 (yyparse): Redefine to c_parse_internal.
3316 (pstate): New global variable.
3317 (parse_number): Add "struct parser_state" argument.
3318 (write_destructor_name): Likewise.
3319 (type_exp): Update calls to write_exp* and similars in order to
3321 (exp1, exp, variable, qualified_name, space_identifier,
3322 typename, typebase): Likewise.
3323 (write_destructor_name, parse_number, lex_one_token,
3324 classify_name, classify_inner_name, c_parse): Add "struct
3325 parser_state" argument. Update function to use parser state.
3326 * c-lang.h: Forward declare "struct parser_state".
3327 (c_parse): Add "struct parser_state" argument.
3328 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3329 (yyparse): Redefine macro to ada_parse_internal.
3330 (pstate): New variable.
3331 (write_int, write_object_renaming, write_var_or_type,
3332 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3333 type_int, type_long, type_long_long, type_float, type_double,
3334 type_long_double, type_char, type_boolean, type_system_address):
3335 Add "struct parser_state" argument.
3336 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3337 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3338 var_or_type, aggregate, aggregate_component_list,
3339 positional_list, others, component_group,
3340 component_associations): Update calls to write_exp* and similar
3341 functions in order to use parser state.
3342 (ada_parse, write_var_from_sym, write_int,
3343 write_exp_op_with_string, write_object_renaming,
3344 find_primitive_type, write_selectors, write_ambiguous_var,
3345 write_var_or_type, write_name_assoc, type_int, type_long,
3346 type_long_long, type_float, type_double, type_long_double,
3347 type_char, type_boolean, type_system_address): Add "struct
3348 parser_state" argument. Adjust function to use parser state.
3349 * ada-lang.c (parse): Likewise.
3350 * ada-lang.h: Forward declare "struct parser_state".
3351 (ada_parse): Add "struct parser_state" argument.
3352 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3353 calls to both functions.
3354 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3356 (yyparse): Redefine macro to f_parse_internal.
3357 (pstate): New variable.
3358 (parse_number): Add "struct parser_state" argument.
3359 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3360 and similars in order to use parser state.
3361 (parse_number): Adjust code to use parser state.
3363 (f_parse): New function.
3364 * f-lang.h: Forward declare "struct parser_state".
3365 (f_parse): Add "struct parser_state" argument.
3366 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3368 (yyparse): Redefine macro for java_parse_internal.
3369 (pstate): New variable.
3370 (push_expression_name, push_expression_name, insert_exp): Add
3371 "struct parser_state" argument.
3372 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3373 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3374 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3375 PostIncrementExpression, PostDecrementExpression,
3376 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3377 UnaryExpressionNotPlusMinus, CastExpression,
3378 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3379 RelationalExpression, EqualityExpression, AndExpression,
3380 ExclusiveOrExpression, InclusiveOrExpression,
3381 ConditionalAndExpression, ConditionalOrExpression,
3382 ConditionalExpression, Assignment, LeftHandSide): Update
3383 calls to write_exp* and similars in order to use parser state.
3384 (parse_number): Ajust code to use parser state.
3386 (java_parse): New function.
3387 (push_variable): Add "struct parser_state" argument. Adjust
3388 code to user parser state.
3389 (push_fieldnames, push_qualified_expression_name,
3390 push_expression_name, insert_exp): Likewise.
3391 * jv-lang.h: Forward declare "struct parser_state".
3392 (java_parse): Add "struct parser_state" argument.
3393 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3395 (yyparse): Redefine macro to m2_parse_internal.
3396 (pstate): New variable.
3397 (type_exp, exp, fblock, variable, type): Update calls to
3398 write_exp* and similars to use parser state.
3400 (m2_parse): New function.
3401 * m2-lang.h: Forward declare "struct parser_state".
3402 (m2_parse): Add "struct parser_state" argument.
3403 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3404 * objc-lang.h: Forward declare "struct parser_state".
3405 (end_msglist): Add "struct parser_state" argument.
3406 * p-exp.y (parse_type): Rewrite macro to use parser state.
3407 (yyparse): Redefine macro to pascal_parse_internal.
3408 (pstate): New variable.
3409 (parse_number): Add "struct parser_state" argument.
3410 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3411 write_exp* and similars in order to use parser state.
3412 (parse_number, yylex): Adjust code to use parser state.
3413 (pascal_parse): New function.
3414 * p-lang.h: Forward declare "struct parser_state".
3415 (pascal_parse): Add "struct parser_state" argument.
3416 * go-exp.y (parse_type): Rewrite macro to use parser state.
3417 (yyparse): Redefine macro to go_parse_internal.
3418 (pstate): New variable.
3419 (parse_number): Add "struct parser_state" argument.
3420 (type_exp, exp1, exp, variable, type): Update calls to
3421 write_exp* and similars in order to use parser state.
3422 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3423 to use parser state.
3424 (go_parse): Likewise.
3425 * go-lang.h: Forward declare "struct parser_state".
3426 (go_parse): Add "struct parser_state" argument.
3428 2014-03-27 Doug Evans <dje@google.com>
3430 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3432 2014-03-27 Doug Evans <dje@google.com>
3434 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3435 Remove argument abbrev_section. All callers updated.
3437 2014-03-27 Doug Evans <dje@google.com>
3439 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3440 addr_base, ranges_base.
3442 2014-03-26 Keith Seitz <keiths@redhat.com>
3444 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3445 types, not VAR_DOMAIN.
3447 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3449 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3451 * features/nios2-linux.c: Regenerated.
3452 * features/nios2.c: Regenerated.
3454 2014-03-25 Pedro Alves <palves@redhat.com>
3456 * cli/cli-script.c (script_from_file): Force the interpreter to
3459 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3461 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3462 small stack allocation.
3464 2014-03-24 Tristan Gingold <gingold@adacore.com>
3466 * darwin-nat.c (exc_server): Remove unused prototype.
3467 (darwin_dump_message): Correctly display data on x86_64.
3468 (darwin_encode_reply): Fix style.
3469 Add comments and fix indentation.
3471 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3473 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3475 2014-03-22 Doug Evans <xdje42@gmail.com>
3477 * infcmd.c: Whitespace fixes.
3478 (interrupt_command): Merge two function comments into one.
3480 2014-03-22 Doug Evans <xdje42@gmail.com>
3482 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3485 2014-03-22 Yao Qi <yao@codesourcery.com>
3487 * remote.c (target_read_live_memory): Remove.
3488 (memory_xfer_live_readonly_partial): Rename it to
3489 remote_xfer_live_readonly_partial. Remove argument 'object'.
3490 All callers updated. Call remote_read_bytes_1
3491 instead of target_read_live_memory.
3492 * tracepoint.c (set_traceframe_number): Remove.
3493 (make_cleanup_restore_traceframe_number): Likewise .
3494 * tracepoint.h (set_traceframe_number): Remove declaration.
3495 (make_cleanup_restore_traceframe_number): Likewise.
3497 2014-03-22 Yao Qi <yao@codesourcery.com>
3499 * remote.c (remote_read_bytes): Move code on reading from the
3501 (remote_read_bytes_1): ... here. New function.
3503 2014-03-22 Yao Qi <yao@codesourcery.com>
3505 * ctf.c (ctf_xfer_partial): Check the return value of
3506 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3507 return TARGET_XFER_UNAVAILABLE.
3508 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3509 * target.c (target_read_live_memory): Move it to remote.c.
3510 (memory_xfer_live_readonly_partial): Likewise.
3511 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3512 * remote.c (target_read_live_memory): Moved from target.c.
3513 (memory_xfer_live_readonly_partial): Likewise.
3514 (remote_read_bytes): Factored out from
3515 memory_xfer_partial_1.
3517 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3519 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3522 2014-03-21 Pedro Alves <palves@redhat.com>
3524 * infrun.c (normal_stop): Extend comment.
3526 2014-03-21 Hui Zhu <hui@codesourcery.com>
3527 Pedro Alves <palves@redhat.com>
3529 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3531 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3532 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3533 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3535 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3537 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3538 `z' formatted output modifier.
3540 2014-03-20 Tom Tromey <tromey@redhat.com>
3541 Sergio Durigan Junior <sergiodj@redhat.com>
3543 * probe.c (parse_probes): Turn assert into an ordinary error.
3544 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3545 exceptions when parsing probes. Rearrange the code for clarity.
3547 2014-03-20 Tom Tromey <tromey@redhat.com>
3550 * top.c (execute_command): Only dispatch events if the command
3553 2014-03-20 Tom Tromey <tromey@redhat.com>
3556 * infcall.c: Include event-top.h.
3557 (run_inferior_call): Call async_disable_stdin if needed.
3559 2014-03-20 Pedro Alves <palves@redhat.com>
3561 * infrun.c (prepare_to_proceed): Delete.
3562 (thread_still_needs_step_over): New function.
3563 (find_thread_needs_step_over): New function.
3564 (proceed): If the current thread needs a step-over, set its
3565 steping_over_breakpoint flag. Adjust to use
3566 find_thread_needs_step_over instead of prepare_to_proceed.
3567 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3568 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3570 (switch_back_to_stepped_thread): Step over breakpoints of all
3571 threads not the stepping thread, before switching back to the
3574 2014-03-20 Pedro Alves <palves@redhat.com>
3576 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3578 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3579 * infrun.c (saved_singlestep_ptid)
3580 (stepping_past_singlestep_breakpoint): Delete.
3581 (resume): Remove stepping_past_singlestep_breakpoint handling.
3582 (proceed): Store the prev_pc of the stepping thread too.
3583 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3585 (enum infwait_states): Delete infwait_thread_hop_state.
3586 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3588 (handle_inferior_event): Adjust.
3589 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3590 handling and the thread-hop code. Before removing single-step
3591 breakpoints, check whether the thread hit a single-step breakpoint
3592 of another thread. If it did, the trap is not a random signal.
3593 (switch_back_to_stepped_thread): If the event thread hit a
3594 single-step breakpoint, unblock it before switching to the
3595 stepping thread. Handle the case of the stepped thread having
3597 (keep_going): Handle the case of the current thread moving past a
3598 single-step breakpoint.
3600 2014-03-20 Pedro Alves <palves@redhat.com>
3603 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3604 are being stepped over.
3605 (breakpoint_address_match): Make extern.
3606 * breakpoint.h (breakpoint_address_match): New declaration.
3607 * inferior.h (stepping_past_instruction_at): New declaration.
3608 * infrun.c (struct step_over_info): New type.
3609 (step_over_info): New global.
3610 (set_step_over_info, clear_step_over_info)
3611 (stepping_past_instruction_at): New functions.
3612 (handle_inferior_event): Clear the step-over info when
3613 trap_expected is cleared.
3614 (resume): Remove now stale comment.
3615 (clear_proceed_status): Clear step-over info.
3616 (proceed): Adjust step-over handling to set or clear the step-over
3617 info instead of removing all breakpoints.
3618 (handle_signal_stop): When setting up a thread-hop, don't remove
3620 (stop_stepping): Clear step-over info.
3621 (keep_going): Adjust step-over handling to set or clear step-over
3622 info and then always inserting breakpoints, instead of removing
3623 all breakpoints when stepping over one.
3625 2014-03-20 Pedro Alves <palves@redhat.com>
3627 * infrun.c (previous_inferior_ptid): Adjust comment.
3628 (deferred_step_ptid): Delete.
3629 (infrun_thread_ptid_changed, prepare_to_proceed)
3630 (init_wait_for_inferior): Adjust.
3631 (handle_signal_stop): Delete deferred_step_ptid handling.
3633 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3636 * defs.h (sync_quit_force_run): New declaration.
3637 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3638 * event-top.c (async_sigterm_handler): New declaration.
3639 (async_sigterm_token): New variable.
3640 (async_init_signals): Create also async_sigterm_token.
3641 (async_sigterm_handler): New function.
3642 (sync_quit_force_run): New variable.
3643 (handle_sigterm): Replace quit_force call by other calls.
3644 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3646 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3648 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3649 offset into SPE pseudo registers.
3651 2014-03-18 Pedro Alves <palves@redhat.com>
3654 * inferior.h (print_stop_event): Declare.
3655 * infrun.c (print_stop_event): New, factored out from ...
3656 (normal_stop): ... this.
3657 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3658 of bpstat_print/print_stack_frame.
3660 2014-03-17 Tom Tromey <tromey@redhat.com>
3662 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3664 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3666 * ada-lang.c (decode_constrained_packed_array): Perform a
3667 minimal coercion for reference with coerce_ref instead of
3670 2014-03-17 Tristan Gingold <gingold@adacore.com>
3672 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3673 (darwin_solib_create_inferior_hook): Emit a warning if version
3676 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3678 * python/py-value.c (get_field_flag): Cast flag_name argument to
3679 PyObject_GetAttrString to support Python 2.4.
3681 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3683 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3684 (Global Maintainers): Remove Jan Kratochvil.
3686 2014-03-14 Pedro Alves <palves@redhat.com>
3688 * inferior.h (terminal_ours_for_output): Rename to ...
3689 (child_terminal_ours_for_output): ... this.
3690 (terminal_save_ours): Rename to ...
3691 (child_terminal_save_ours): ... this.
3692 (terminal_ours): Rename to ...
3693 (child_terminal_ours): ... this.
3694 (terminal_inferior): Rename to ...
3695 (child_terminal_inferior): ... this.
3696 (terminal_init_inferior): Rename to ...
3697 (child_terminal_init_inferior): ... this.
3698 (terminal_init_inferior_with_pgrp): Rename to ...
3699 (child_terminal_init_inferior_with_pgrp): ... this.
3700 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3701 (child_terminal_init_with_pgrp): ... this.
3702 (terminal_save_ours): Rename to ...
3703 (child_terminal_save_ours): ... this.
3704 (terminal_init_inferior): Rename to ...
3705 (child_terminal_init): ... this. Adjust.
3706 (terminal_inferior): Rename to ...
3707 (child_terminal_inferior): ... this.
3708 (terminal_ours_for_output): Rename to ...
3709 (child_terminal_ours_for_output): ... this. Adjust.
3710 (terminal_ours): Rename to ...
3711 (child_terminal_ours): ... this.
3712 (terminal_ours_1): Rename to ...
3713 (child_terminal_ours_1): ... this. Adjust.
3714 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3715 * windows-nat.c (do_initial_windows_stuff): Adjust.
3716 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3717 (gnu_terminal_init): ... this. Adjust.
3718 (gnu_target): Adjust.
3719 * inf-child.c (inf_child_target): Adjust.
3721 2014-03-13 Doug Evans <xdje42@gmail.com>
3724 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3727 2014-03-13 Doug Evans <xdje42@gmail.com>
3729 * value.c (record_latest_value): Call release_value_or_incref
3730 instead of release_value.
3732 2014-03-13 Pedro Alves <palves@redhat.com>
3734 * procfs.c (procfs_target): Don't override to_shortname,
3735 to_longname or to_doc.
3737 2014-03-13 Pedro Alves <palves@redhat.com>
3739 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3740 Unix in user visible strings.
3742 2014-03-12 Stan Shebs <stan@codesourcery.com>
3744 * gdbtypes.h: Annotate comments for Doxygen, add a page
3745 block comment with some general info.
3747 2014-03-12 Pedro Alves <palves@redhat.com>
3749 * infcmd.c (prepare_execution_command): New function, factored out
3750 from several execution commands.
3751 (run_command_1, continue_command, step_1, jump_command)
3752 (signal_command, until_command, advance_command, finish_command)
3753 (attach_command): Use prepare_execution_command.
3755 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3757 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3760 (struct arm_linux_thread_points): Removed.
3761 (struct arm_linux_process_info): New.
3762 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3763 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3764 (arm_linux_find_breakpoints_by_tid): Removed.
3765 (struct arch_lwp_info): New.
3766 (arm_linux_find_process_pid): New functions.
3767 (arm_linux_add_process): New functions.
3768 (arm_linux_process_info_get): New functions.
3769 (arm_linux_forget_process): New function.
3770 (arm_linux_get_debug_reg_state): New function.
3771 (struct update_registers_data): New.
3772 (update_registers_callback): New function.
3773 (arm_linux_insert_hw_breakpoint1): Updated.
3774 (arm_linux_remove_hw_breakpoint1): Updated.
3775 (arm_linux_insert_hw_breakpoint): Updated.
3776 (arm_linux_remove_hw_breakpoint): Updated.
3777 (arm_linux_insert_watchpoint): Updated.
3778 (arm_linux_remove_watchpoint): Updated.
3779 (arm_linux_new_thread): Updated.
3780 (arm_linux_prepare_to_resume): New function.
3781 (arm_linux_new_fork): New function.
3782 (_initialize_arm_linux_nat): Updated.
3784 2014-03-12 Pedro Alves <palves@redhat.com>
3786 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3788 2014-03-12 Tom Tromey <tromey@redhat.com>
3790 * inf-child.c (return_zero): New function.
3791 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3792 * aix-thread.c (aix_thread_inferior_created): New function.
3793 (aix_thread_attach): Remove.
3794 (init_aix_thread_ops): Don't set to_attach.
3795 (_initialize_aix_thread): Register inferior_created observer.
3796 * corelow.c (init_core_ops): Don't set to_attach or
3798 * exec.c (init_exec_ops): Don't set to_attach or
3800 * infcmd.c (run_command_1): Use find_run_target. Make direct
3802 (attach_command): Use find_attach_target. Make direct target
3804 * record-btrace.c (init_record_btrace_ops): Don't set
3806 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3808 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3809 set to_create_inferior.
3810 * target.c (complete_target_initialization): Add assertion.
3811 (target_create_inferior): Remove.
3812 (find_default_attach, find_default_create_inferior): Remove.
3813 (find_attach_target, find_run_target): New functions.
3814 (find_default_is_async_p, find_default_can_async_p)
3815 (target_supports_non_stop, target_attach): Remove.
3816 (init_dummy_target): Don't set to_create_inferior or
3817 to_supports_non_stop.
3818 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3819 TARGET_DEFAULT_FUNC.
3820 <to_create_inferior>: Add comment.
3821 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3822 TARGET_DEFAULT_RETURN.
3823 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3824 (find_attach_target, find_run_target): Declare.
3825 (target_create_inferior): Remove.
3826 (target_has_execution_1): Update comment.
3827 (target_supports_non_stop): Remove.
3828 * target-delegates.c: Rebuild.
3830 2014-03-12 Pedro Alves <palves@redhat.com>
3832 * inf-child.h: Update comment to not mention Unix.
3834 2014-03-12 Pedro Alves <palves@redhat.com>
3836 * inf-child.c: Update top comment to not mention Unix. Add
3837 generic comment describing how this target is meant to be used.
3838 (inf_child_post_attach, inf_child_post_startup_inferior)
3839 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3842 2014-03-12 Pedro Alves <palves@redhat.com>
3844 * nto-procfs.c: Include inf-child.h.
3845 (procfs_ops): Delete global.
3846 (procfs_can_run): Delete method.
3847 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3848 target pointer instead of referencing procfs_ops.
3849 (procfs_prepare_to_store): Delete.
3850 (init_procfs_ops): Delete function.
3851 (procfs_target): New function, based on init_procfs_ops, but
3852 inherit inf_child_target.
3853 (_initialize_procfs): Use procfs_target.
3855 2014-03-12 Pedro Alves <palves@redhat.com>
3857 * windows-nat.c: Include inf-child.h.
3858 (windows_ops): Delete global.
3859 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3861 (init_windows_ops): Delete function.
3862 (windows_target): New function, based on init_windows_ops, but
3863 inherit inf_child_target.
3864 (_initialize_windows_nat): Use windows_target. Install x86
3865 specific target methods here.
3867 2014-03-10 Doug Evans <xdje42@gmail.com>
3869 * guile/guile.c (call_initialize_gdb_module): New function.
3870 (initialize_guile): Replace call to scm_init_guile with call to
3873 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3875 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3876 in call to TYPE_CODE macro.
3878 2014-03-10 Jerome Guitton <guitton@adacore.com>
3880 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3881 Resolve tagged types to full view.
3883 2014-03-10 Hui Zhu <hui@codesourcery.com>
3885 * target.h (target_insert_breakpoint): Remove "hardware" from its
3888 2014-03-07 Doug Evans <dje@google.com>
3890 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3892 2014-03-07 Doug Evans <dje@google.com>
3894 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3895 Remove unused local comp_dir_attr. Assert exactly one of
3896 stub_comp_unit_die, stub_comp_dir is non-NULL.
3898 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3900 * target.h (complete_target_initialization, add_target):
3903 2014-03-07 Pedro Alves <palves@redhat.com>
3905 * go32-nat.c: Include inf-child.h.
3906 (go32_ops): Delete global.
3907 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3909 (go32_create_inferior): Push the passed in target pointer instead
3910 of referencing go32_ops.
3911 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3912 (go32_target): New function, based on init_go32_ops, but inherit
3914 (_initialize_go32_nat): Use go32_target. Move parts of
3917 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3919 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3920 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3921 SYMBOL_VALUE_ADDRESS.
3922 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3924 2014-03-06 Yao Qi <yao@codesourcery.com>
3926 * breakpoint.c (get_tracepoint_by_number): Remove argument
3927 optional_p. All callers updated. Adjust comments. Update
3929 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3931 2014-03-06 Yao Qi <yao@codesourcery.com>
3933 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3934 early if get_number returns zero. Use 'p' instead of 'args'.
3936 2014-03-06 Yao Qi <yao@codesourcery.com>
3938 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3941 2014-03-06 Yao Qi <yao@codesourcery.com>
3943 PR breakpoints/16508
3944 * tracepoint.c (check_trace_running): New function.
3945 (trace_find_command): Move code to check_trace_running and
3946 call check_trace_running.
3947 (trace_find_pc_command): Likewise.
3948 (trace_find_tracepoint_command): Likewise.
3949 (trace_find_line_command): Likewise.
3950 (trace_find_range_command): Likewise.
3951 * tracepoint.h (check_trace_running): Likewise.
3952 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3954 2014-03-06 Yao Qi <yao@codesourcery.com>
3956 * target.h (struct target_ops) <to_traceframe_info>: Use
3957 TARGET_DEFAULT_NORETURN (tcomplain ()).
3958 * target-delegates.c: Regenerated.
3960 2014-03-05 Pedro Alves <palves@redhat.com>
3963 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3964 void. Update comment.
3965 (dcache_xfer_memory): Delete.
3966 (dcache_read_memory_partial): New, based on the read bits of
3968 (dcache_update): Add status parameter. Use ULONGEST for len, and
3969 adjust. Discard cache lines if the reason for the update was
3971 * dcache.h (dcache_xfer_memory): Delete declaration.
3972 (dcache_read_memory_partial): New declaration.
3973 (dcache_update): Update prototype.
3974 * target.c (raw_memory_xfer_partial): Update the dcache here.
3975 (memory_xfer_partial_1): Don't handle dcache writes here.
3977 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3979 * remote-sim.c (gdbsim_load): Add const to prog.
3981 2014-03-03 Tom Tromey <tromey@redhat.com>
3983 * elfread.c (probe_key): Change to bfd_data.
3984 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3985 now per-BFD, not per-objfile.
3986 * stap-probe.c (stap_probe_destroy): Update comment.
3987 (handle_stap_probe): Allocate on the per-BFD obstack.
3989 2014-03-03 Tom Tromey <tromey@redhat.com>
3991 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3992 * breakpoint.c (create_longjmp_master_breakpoint): Use
3994 (add_location_to_breakpoint, bkpt_probe_insert_location)
3995 (bkpt_probe_remove_location): Update.
3996 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3997 * elfread.c (elf_symfile_relocate_probe): Remove.
3998 (elf_probe_fns): Update.
3999 (insert_exception_resume_breakpoint): Change type of "probe"
4000 parameter to bound_probe.
4001 (check_exception_resume): Update.
4002 * objfiles.c (objfile_relocate1): Don't relocate probes.
4003 * probe.c (bound_probe_s): New typedef.
4004 (parse_probes): Use get_probe_address. Set sal's objfile.
4005 (find_probe_by_pc): Return a bound_probe.
4006 (collect_probes): Return a VEC(bound_probe_s).
4007 (compare_probes): Update.
4008 (gen_ui_out_table_header_info): Change type of "probes"
4010 (info_probes_for_ops): Update.
4011 (get_probe_address): New function.
4012 (probe_safe_evaluate_at_pc): Update.
4013 * probe.h (struct probe_ops) <get_probe_address>: New field.
4014 <set_semaphore, clear_semaphore>: Add objfile parameter.
4015 (struct probe) <objfile>: Remove field.
4017 <address>: Update comment.
4018 (struct bound_probe): New.
4019 (find_probe_by_pc): Return a bound_probe.
4020 (get_probe_address): Declare.
4021 * solib-svr4.c (struct probe_and_action) <address>: New field.
4022 (hash_probe_and_action, equal_probe_and_action): Update.
4023 (register_solib_event_probe): Add address parameter.
4024 (solib_event_probe_at): Update.
4025 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4027 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4028 (stap_get_probe_address): New function.
4029 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4030 (compile_probe_arg): Update.
4031 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4033 (handle_stap_probe): Don't relocate the probe.
4034 (stap_relocate): Remove.
4035 (stap_gen_info_probes_table_values): Update.
4036 (stap_probe_ops): Remove stap_relocate.
4037 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4038 (debug_sym_probe_fns): Update.
4039 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4040 * symtab.c (init_sal): Use memset.
4041 * symtab.h (struct symtab_and_line) <objfile>: New field.
4042 * tracepoint.c (start_tracing, stop_tracing): Update.
4044 2014-03-03 Tom Tromey <tromey@redhat.com>
4046 * probe.h (parse_probes, find_probe_by_pc)
4047 (find_probes_in_objfile): Fix comments.
4049 2014-03-02 Doug Evans <xdje42@gmail.com>
4051 * infrun.c (handle_signal_stop): Replace test for
4052 TARGET_WAITKIND_STOPPED with an assert.
4054 2014-03-02 Doug Evans <xdje42@gmail.com>
4056 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4058 2014-03-02 Doug Evans <xdje42@gmail.com>
4060 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4062 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4064 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4066 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4068 * i386obsd-nat.c: Include "obsd-nat.h".
4069 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4071 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4073 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4075 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4077 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4079 * mips64obsd-nat.c: Include "obsd-nath".
4080 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4082 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4084 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4086 * amd64obsd-nat.c: Include "obsd-nat,h.
4087 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4089 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4091 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4093 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4094 (find_overload_match): Update call to find_oload_champ.
4095 (find_oload_champ_namespace_loop): Likewise
4097 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4099 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4101 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4102 * config/sparc/obsd64.mh: New file.
4103 * sparc64obsd-nat.c: New file.
4105 * obsd-nat.h: New file.
4106 * obsd-nat.c: New file.
4107 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4108 (ALLDEPFILES): Add obsd-nat.c.
4110 2014-02-28 Tom Tromey <tromey@redhat.com>
4112 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4113 * cli-out.h (cli_ui_out_impl): Now const.
4114 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4115 * ui-out.c (struct ui_out) <impl>: Now const.
4116 (default_ui_out_impl): Now const.
4117 (ui_out_new): Make 'impl' parameter const.
4118 * ui-out.h (ui_out_new): Update.
4120 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4122 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4124 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4126 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4128 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4130 Additional PR 8882 fix.
4131 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4133 2014-02-27 Pedro Alves <palves@redhat.com>
4135 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4138 2014-02-27 Pedro Alves <palves@redhat.com>
4141 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4142 * nat/linux-waitpid.c: Include string.h.
4143 (status_to_str): Moved here and made extern.
4144 * nat/linux-waitpid.h (status_to_str): New declaration.
4146 2014-02-27 Hui Zhu <hui@codesourcery.com>
4149 * infrun.c (ptid_match): Move ...
4150 * common/ptid.c (ptid_match): ... here.
4151 * inferior.h (ptid_match): Move ...
4152 * common/ptid.h (ptid_match): ... here.
4154 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4156 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4157 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4160 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4162 * obsd-tdep.c (obsd_auxv_parse): New function.
4163 (obsd_init_abi): Set auxv_parse.
4165 * gdbarch.sh (auxv_parse): New.
4166 * gdbarch.h: Regenerated.
4167 * gdbarch.c: Regenerated.
4168 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4170 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4172 * guile/scm-value.c (gdbscm_history_append_x): New function.
4173 (value_functions): Add it.
4175 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4177 * dwarf2read.c (attr_value_as_address): New function.
4178 (dwarf2_find_base_address, read_call_site_scope): Use
4179 attr_value_as_address in place of DW_ADDR.
4180 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4181 the low and high addresses. Slight rework of the handling
4182 of the high pc being a constant form, and limit it to
4183 DWARF verson 4 or higher.
4184 (dwarf2_record_block_ranges): Likewise.
4185 (read_partial_die): Likewise.
4186 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4188 2014-02-26 Tom Tromey <tromey@redhat.com>
4190 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4192 2014-02-26 Tom Tromey <tromey@redhat.com>
4194 * elfread.c (elf_read_minimal_symbols): Return early if
4195 minimal symbols have already been read. Add "ei" parameter.
4196 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4197 * minsyms.c (prim_record_minimal_symbol_full): Update.
4198 * objfiles.h (struct objstats) <n_minsyms>: Move...
4199 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4200 * symmisc.c (print_objfile_statistics): Update.
4202 2014-02-26 Tom Tromey <tromey@redhat.com>
4204 * elfread.c (elf_read_minimal_symbols): New function, from
4206 (elf_symfile_read): Call it.
4208 2014-02-26 Tom Tromey <tromey@redhat.com>
4210 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4211 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4212 (lookup_minimal_symbol_solib_trampoline)
4213 (lookup_minimal_symbol_by_pc_section_1)
4214 (lookup_minimal_symbol_and_objfile): Update.
4215 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4216 Don't allocate a minimal symbol if minsyms have already been read.
4217 (build_minimal_symbol_hash_tables): Update.
4218 (install_minimal_symbols): Do nothing if minsyms already read.
4219 Use the per-BFD obstack.
4220 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4221 * objfiles.c (allocate_objfile): Call
4222 terminate_minimal_symbol_table later.
4223 (have_minimal_symbols): Update.
4224 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4225 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4226 Move from struct objfile.
4227 <minsyms_read>: New field.
4228 (struct objfile) <msymbols, minimal_symbol_count,
4229 msymbol_hash, msymbol_demangled_hash>: Move.
4230 (ALL_OBJFILE_MSYMBOLS): Update.
4231 * symfile.c (read_symbols): Set minsyms_read.
4232 (reread_symbols): Update.
4233 * symmisc.c (dump_objfile, dump_msymbols): Update.
4235 2014-02-26 Tom Tromey <tromey@redhat.com>
4237 * minsyms.c (msymbols_sort): Remove.
4238 * minsyms.h (msymbols_sort): Remove.
4239 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4241 * elfread.c (elf_symtab_read): Don't add section offsets.
4242 * xcoffread.c (record_minimal_symbol): Don't add section offset
4243 to minimal symbol address.
4244 * somread.c (text_offset, data_offset): Remove.
4245 (som_symtab_read): Don't add section offsets to minimal symbol
4247 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4248 Don't add section offsets to minimal symbols.
4249 * coffread.c (coff_symtab_read): Don't add section offsets
4250 to minimal symbol addresses.
4251 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4252 to minimal symbol addresses.
4253 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4254 section offset to minimal symbol addresses.
4255 * mdebugread.c (parse_partial_symbols): Don't add section
4256 offset to minimal symbol addresses.
4257 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4258 offset to minimal symbol addresses.
4260 2014-02-26 Tom Tromey <tromey@redhat.com>
4262 * ada-lang.c (ada_main_name): Update.
4263 (ada_add_standard_exceptions): Update.
4264 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4265 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4266 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4267 * auxv.c (ld_so_xfer_auxv): Update.
4268 * avr-tdep.c (avr_scan_prologue): Update.
4269 * ax-gdb.c (gen_var_ref): Update.
4270 * blockframe.c (get_pc_function_start)
4271 (find_pc_partial_function_gnu_ifunc): Update.
4272 * breakpoint.c (create_overlay_event_breakpoint)
4273 (create_longjmp_master_breakpoint)
4274 (create_std_terminate_master_breakpoint)
4275 (create_exception_master_breakpoint): Update.
4276 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4277 * c-valprint.c (c_val_print): Update.
4278 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4279 * common/agent.c (agent_look_up_symbols): Update.
4280 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4281 * dwarf2loc.c (call_site_to_target_addr): Update.
4282 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4283 * elfread.c (elf_gnu_ifunc_record_cache)
4284 (elf_gnu_ifunc_resolve_by_got): Update.
4285 * findvar.c (default_read_var_value): Update.
4286 * frame.c (inside_main_func): Update.
4287 * frv-tdep.c (frv_frame_this_id): Update.
4288 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4289 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4291 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4292 (hppa_hpux_find_dummy_bpaddr): Update.
4293 * hppa-tdep.c (hppa_symbol_address): Update.
4294 * infcmd.c (until_next_command): Update.
4295 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4297 * linespec.c (minsym_found, add_minsym): Update.
4298 * linux-nat.c (get_signo): Update.
4299 * linux-thread-db.c (inferior_has_bug): Update.
4300 * m32c-tdep.c (m32c_return_value)
4301 (m32c_m16c_address_to_pointer): Update.
4302 * m32r-tdep.c (m32r_frame_this_id): Update.
4303 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4304 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4305 * maint.c (maintenance_translate_address): Update.
4306 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4307 (frob_address): New function.
4308 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4309 frob_address. Rename parameter to "pc_in".
4310 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4312 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4315 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4316 * objc-lang.c (find_objc_msgsend): Update.
4317 * objfiles.c (objfile_relocate1): Update.
4318 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4319 * p-valprint.c (pascal_val_print): Update.
4320 * parse.c (write_exp_msymbol): Update.
4321 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4322 (ppc_elfv2_skip_entrypoint): Update.
4323 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4324 * printcmd.c (build_address_symbolic, msym_info)
4325 (address_info): Update.
4326 * proc-service.c (ps_pglobal_lookup): Update.
4327 * psymtab.c (find_pc_sect_psymtab_closer)
4328 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4329 Change msymbol parameter to bound_minimal_symbol.
4330 * ravenscar-thread.c (get_running_thread_id): Update.
4331 * remote.c (remote_check_symbols): Update.
4332 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4334 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4335 * solib-dsbt.c (lm_base): Update.
4336 * solib-frv.c (lm_base, main_got): Update.
4337 * solib-irix.c (locate_base): Update.
4338 * solib-som.c (som_solib_create_inferior_hook)
4339 (link_map_start): Update.
4340 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4341 * solib-svr4.c (elf_locate_base, enable_break): Update.
4342 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4343 (flush_ea_cache): Update.
4344 * stabsread.c (define_symbol, scan_file_globals): Update.
4345 * stack.c (find_frame_funname): Update.
4346 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4347 (debug_qf_find_pc_sect_symtab): Update.
4348 * symfile.c (simple_read_overlay_table)
4349 (simple_overlay_update): Update.
4350 * symfile.h (struct quick_symbol_functions)
4351 <find_pc_sect_symtab>: Change type of msymbol to
4352 bound_minimal_symbol.
4353 * symmisc.c (dump_msymbols): Update.
4354 * symtab.c (find_pc_sect_symtab_via_partial)
4355 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4356 (search_symbols, print_msymbol_info): Update.
4357 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4358 (MSYMBOL_VALUE_ADDRESS): Redefine.
4359 (BMSYMBOL_VALUE_ADDRESS): New macro.
4360 * tracepoint.c (scope_info): Update.
4361 * tui/tui-disasm.c (tui_find_disassembly_address)
4362 (tui_get_begin_asm_address): Update.
4363 * valops.c (find_function_in_inferior): Update.
4364 * value.c (value_static_field, value_fn_field): Update.
4366 2014-02-26 Tom Tromey <tromey@redhat.com>
4368 * ada-lang.c (ada_update_initial_language): Update.
4369 (ada_main_name, ada_has_this_exception_support): Update.
4370 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4371 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4372 * arm-tdep.c (arm_skip_stub): Update.
4373 * auxv.c (ld_so_xfer_auxv): Update.
4374 * avr-tdep.c (avr_scan_prologue): Update.
4375 * ax-gdb.c (gen_var_ref): Update.
4376 * breakpoint.c (struct breakpoint_objfile_data)
4377 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4378 type to bound_minimal_symbol.
4379 (create_overlay_event_breakpoint)
4380 (create_longjmp_master_breakpoint)
4381 (create_std_terminate_master_breakpoint)
4382 (create_exception_master_breakpoint): Update.
4383 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4384 * c-exp.y (classify_name): Update.
4385 * coffread.c (coff_symfile_read): Update.
4386 * common/agent.c (agent_look_up_symbols): Update.
4387 * d-lang.c (d_main_name): Update.
4388 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4389 * dec-thread.c (enable_dec_thread): Update.
4390 * dwarf2loc.c (call_site_to_target_addr): Update.
4391 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4392 * eval.c (evaluate_subexp_standard): Update.
4393 * findvar.c (struct minsym_lookup_data) <result>: Change type
4394 to bound_minimal_symbol.
4396 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4397 * frame.c (inside_main_func): Update.
4398 * frv-tdep.c (frv_frame_this_id): Update.
4399 * gcore.c (call_target_sbrk): Update.
4400 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4401 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4403 * go-lang.c (go_main_name): Update.
4404 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4405 (hppa_hpux_find_import_stub_for_addr): Update.
4406 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4407 Update. Change return type.
4408 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4410 * jit.c (jit_breakpoint_re_set_internal): Update.
4411 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4413 * linux-nat.c (get_signo): Update.
4414 * linux-thread-db.c (inferior_has_bug): Update
4415 * m32c-tdep.c (m32c_return_value)
4416 (m32c_m16c_address_to_pointer): Update.
4417 * m32r-tdep.c (m32r_frame_this_id): Update.
4418 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4419 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4420 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4421 lookup_minimal_symbol. Change return type.
4422 (lookup_minimal_symbol): Remove.
4423 (lookup_bound_minimal_symbol): Update.
4424 (lookup_minimal_symbol_text): Change return type.
4425 (lookup_minimal_symbol_solib_trampoline): Change return type.
4426 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4427 (lookup_minimal_symbol_solib_trampoline): Change return type.
4428 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4429 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4430 (value_nsstring, find_imps): Update.
4431 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4432 * p-lang.c (pascal_main_name): Update.
4433 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4434 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4435 * proc-service.c (ps_pglobal_lookup): Update.
4436 * ravenscar-thread.c (get_running_thread_msymbol): Change
4438 (has_ravenscar_runtime, get_running_thread_id): Update.
4439 * remote.c (remote_check_symbols): Update.
4440 * sol-thread.c (ps_pglobal_lookup): Update.
4441 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4442 * solib-dsbt.c (lm_base): Update.
4443 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4445 * solib-irix.c (locate_base): Update.
4446 * solib-som.c (som_solib_create_inferior_hook)
4447 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4449 * solib-spu.c (spu_enable_break): Update.
4450 * solib-svr4.c (elf_locate_base, enable_break): Update.
4451 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4452 (flush_ea_cache): Update.
4453 * stabsread.c (define_symbol): Update.
4454 * symfile.c (simple_read_overlay_table): Update.
4455 * symtab.c (find_pc_sect_line): Update.
4456 * tracepoint.c (scope_info): Update.
4457 * tui-disasm.c (tui_get_begin_asm_address): Update.
4458 * value.c (value_static_field): Update.
4460 2014-02-26 Tom Tromey <tromey@redhat.com>
4462 * minsyms.c (prim_record_minimal_symbol_full): Use
4463 SET_MSYMBOL_VALUE_ADDRESS.
4464 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4465 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4466 SET_MSYMBOL_VALUE_ADDRESS.
4467 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4468 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4470 2014-02-26 Tom Tromey <tromey@redhat.com>
4472 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4473 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4474 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4475 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4476 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4477 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4478 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4479 * ada-lang.c (ada_main_name): Update.
4480 (ada_lookup_simple_minsym): Update.
4481 (ada_make_symbol_completion_list): Update.
4482 (ada_add_standard_exceptions): Update.
4483 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4484 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4485 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4486 * arm-tdep.c (skip_prologue_function): Update.
4487 (arm_skip_stack_protector, arm_skip_stub): Update.
4488 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4489 (arm_wince_skip_main_prologue): Update.
4490 * auxv.c (ld_so_xfer_auxv): Update.
4491 * avr-tdep.c (avr_scan_prologue): Update.
4492 * ax-gdb.c (gen_var_ref): Update.
4493 * block.c (call_site_for_pc): Update.
4494 * blockframe.c (get_pc_function_start): Update.
4495 (find_pc_partial_function_gnu_ifunc): Update.
4496 * breakpoint.c (create_overlay_event_breakpoint): Update.
4497 (create_longjmp_master_breakpoint): Update.
4498 (create_std_terminate_master_breakpoint): Update.
4499 (create_exception_master_breakpoint): Update.
4500 (resolve_sal_pc): Update.
4501 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4502 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4504 * c-valprint.c (c_val_print): Update.
4505 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4506 * coffread.c (coff_symfile_read): Update.
4507 * common/agent.c (agent_look_up_symbols): Update.
4508 * dbxread.c (find_stab_function_addr): Update.
4509 (end_psymtab): Update.
4510 * dwarf2loc.c (call_site_to_target_addr): Update.
4511 (func_verify_no_selftailcall): Update.
4512 (tailcall_dump): Update.
4513 (call_site_find_chain_1): Update.
4514 (dwarf_expr_reg_to_entry_parameter): Update.
4515 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4516 (elf_gnu_ifunc_resolve_by_got): Update.
4517 * f-valprint.c (info_common_command): Update.
4518 * findvar.c (read_var_value): Update.
4519 * frame.c (get_prev_frame_1): Update.
4520 (inside_main_func): Update.
4521 * frv-tdep.c (frv_skip_main_prologue): Update.
4522 (frv_frame_this_id): Update.
4523 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4524 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4525 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4526 (gnuv3_skip_trampoline): Update.
4527 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4528 (hppa64_hpux_in_solib_call_trampoline): Update.
4529 (hppa_hpux_skip_trampoline_code): Update.
4530 (hppa64_hpux_search_dummy_call_sequence): Update.
4531 (hppa_hpux_find_import_stub_for_addr): Update.
4532 (hppa_hpux_find_dummy_bpaddr): Update.
4533 * hppa-tdep.c (hppa_symbol_address)
4534 (hppa_lookup_stub_minimal_symbol): Update.
4535 * i386-tdep.c (i386_skip_main_prologue): Update.
4536 (i386_pe_skip_trampoline_code): Update.
4537 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4538 * infcall.c (get_function_name): Update.
4539 * infcmd.c (until_next_command): Update.
4540 * jit.c (jit_breakpoint_re_set_internal): Update.
4541 (jit_inferior_init): Update.
4542 * linespec.c (minsym_found): Update.
4543 (add_minsym): Update.
4544 * linux-fork.c (info_checkpoints_command): Update.
4545 * linux-nat.c (get_signo): Update.
4546 * linux-thread-db.c (inferior_has_bug): Update.
4547 * m32c-tdep.c (m32c_return_value): Update.
4548 (m32c_m16c_address_to_pointer): Update.
4549 (m32c_m16c_pointer_to_address): Update.
4550 * m32r-tdep.c (m32r_frame_this_id): Update.
4551 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4552 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4553 * maint.c (maintenance_translate_address): Update.
4554 * minsyms.c (add_minsym_to_hash_table): Update.
4555 (add_minsym_to_demangled_hash_table): Update.
4556 (msymbol_objfile): Update.
4557 (lookup_minimal_symbol): Update.
4558 (iterate_over_minimal_symbols): Update.
4559 (lookup_minimal_symbol_text): Update.
4560 (lookup_minimal_symbol_by_pc_name): Update.
4561 (lookup_minimal_symbol_solib_trampoline): Update.
4562 (lookup_minimal_symbol_by_pc_section_1): Update.
4563 (lookup_minimal_symbol_and_objfile): Update.
4564 (prim_record_minimal_symbol_full): Update.
4565 (compare_minimal_symbols): Update.
4566 (compact_minimal_symbols): Update.
4567 (build_minimal_symbol_hash_tables): Update.
4568 (install_minimal_symbols): Update.
4569 (terminate_minimal_symbol_table): Update.
4570 (find_solib_trampoline_target): Update.
4571 (minimal_symbol_upper_bound): Update.
4572 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4573 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4574 (mips_skip_pic_trampoline_code): Update.
4575 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4576 * objc-lang.c (selectors_info): Update.
4577 (classes_info): Update.
4578 (find_methods): Update.
4579 (find_imps): Update.
4580 (find_objc_msgsend): Update.
4581 * objfiles.c (objfile_relocate1): Update.
4582 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4583 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4584 * p-valprint.c (pascal_val_print): Update.
4585 * parse.c (write_exp_msymbol): Update.
4586 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4587 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4588 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4589 * printcmd.c (build_address_symbolic): Update.
4591 (address_info): Update.
4592 * proc-service.c (ps_pglobal_lookup): Update.
4593 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4594 (find_pc_sect_psymtab): Update.
4595 * python/py-framefilter.c (py_print_frame): Update.
4596 * ravenscar-thread.c (get_running_thread_id): Update.
4597 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4599 * remote.c (remote_check_symbols): Update.
4600 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4601 (rs6000_skip_trampoline_code): Update.
4602 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4604 * solib-dsbt.c (lm_base): Update.
4605 * solib-frv.c (lm_base): Update.
4607 * solib-irix.c (locate_base): Update.
4608 * solib-som.c (som_solib_create_inferior_hook): Update.
4609 (som_solib_desire_dynamic_linker_symbols): Update.
4610 (link_map_start): Update.
4611 * solib-spu.c (spu_enable_break): Update.
4612 (ocl_enable_break): Update.
4613 * solib-svr4.c (elf_locate_base): Update.
4614 (enable_break): Update.
4615 * spu-tdep.c (spu_get_overlay_table): Update.
4616 (spu_catch_start): Update.
4617 (flush_ea_cache): Update.
4618 * stabsread.c (define_symbol): Update.
4619 (scan_file_globals): Update.
4620 * stack.c (find_frame_funname): Update.
4621 (frame_info): Update.
4622 * symfile.c (simple_read_overlay_table): Update.
4623 (simple_overlay_update): Update.
4624 * symmisc.c (dump_msymbols): Update.
4625 * symtab.c (fixup_section): Update.
4626 (find_pc_sect_line): Update.
4627 (skip_prologue_sal): Update.
4628 (search_symbols): Update.
4629 (print_msymbol_info): Update.
4630 (rbreak_command): Update.
4631 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4632 (completion_list_objc_symbol): Update.
4633 (default_make_symbol_completion_list_break_on): Update.
4634 * tracepoint.c (scope_info): Update.
4635 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4636 (tui_get_begin_asm_address): Update.
4637 * valops.c (find_function_in_inferior): Update.
4638 * value.c (value_static_field): Update.
4639 (value_fn_field): Update.
4641 2014-02-26 Tom Tromey <tromey@redhat.com>
4643 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4644 bound minimal symbols. Move code that knows about minsym
4646 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4648 * minsyms.h (minimal_symbol_upper_bound): Declare.
4649 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4650 minimal_symbol_upper_bound.
4652 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4654 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4655 Use the type's name if its basic type does not have a tag.
4657 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4659 * dwarf2read.c (read_subrange_type): Add comment.
4661 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4663 * dwarf2read.c (update_enumeration_type_from_children): New
4664 function, mostly extracted from process_structure_scope.
4665 (read_enumeration_type): Call update_enumeration_type_from_children.
4666 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4667 and flag_flag_enum fields.
4669 2014-02-26 Pedro Alves <palves@redhat.com>
4671 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4672 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4673 to_xfer_partial method.
4675 2014-02-26 Pedro Alves <palves@redhat.com>
4677 * target.c (complete_target_initialization): Don't install
4678 default_xfer_partial as to_xfer_partial hook.
4680 (update_current_target): Don't INHERIT nor de_fault
4681 deprecated_xfer_memory. Delete de_fault macro.
4682 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4683 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4684 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4687 2014-02-26 Pedro Alves <palves@redhat.com>
4689 * go32-nat.c (my_write_child): New function.
4690 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4691 (go32_xfer_partial): New function.
4692 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4693 Instead install a to_xfer_partial hook.
4695 2014-02-26 Pedro Alves <palves@redhat.com>
4697 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4698 to_xfer_partial helper. Rewrite.
4699 (procfs_xfer_partial): New function.
4700 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4701 Install a to_xfer_partial hook.
4703 2014-02-26 Pedro Alves <palves@redhat.com>
4705 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4706 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4707 (m32r_xfer_partial): New function.
4708 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4709 Install a to_xfer_partial hook.
4711 2014-02-26 Pedro Alves <palves@redhat.com>
4713 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4715 (mips_xfer_partial): New function.
4716 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4717 hook. Install a to_xfer_partial hook.
4719 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4721 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4722 * gdbtypes.c (create_array_type_with_stride): New function,
4723 renaming create_array_type, but with an added parameter
4724 called "bit_stride".
4725 (create_array_type): Re-implement using
4726 create_array_type_with_stride.
4727 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4728 and DW_AT_bit_stride attributes.
4730 2014-02-26 Pedro Alves <palves@redhat.com>
4732 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4733 task-specific breakpoints.
4735 2014-02-25 Pedro Alves <palves@redhat.com>
4737 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4738 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4740 2014-02-25 Stan Shebs <stan@codesourcery.com>
4742 * defs.h: Annotate comments for Doxygen.
4744 2014-02-25 Tom Tromey <tromey@redhat.com>
4746 * target.h (target_ignore): Don't declare.
4747 * target.c (target_ignore): Remove.
4749 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4752 * auto-load.c (auto_load_objfile_script_1): Change filename to
4755 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4757 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4758 documentation. Adjust prototype to match the target_ops
4759 to_xfer_partial method. Adjust implementation accordingly.
4761 2014-02-25 Hui Zhu <hui@codesourcery.com>
4763 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4766 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4768 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4769 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4770 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4771 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4772 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4773 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4774 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4775 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4777 (rl78_register_type): Use a data pointer type for SP and
4778 new pseudo registers mentioned above. Use a 16 bit integer
4779 type for all other register pairs.
4780 (rl78_register_name, rl78_g10_register_name): Update for
4781 new pseudo registers.
4782 (rl78_pseudo_register_read): Likewise.
4783 (rl78_pseudo_register_write): Likewise.
4784 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4785 to the newly added pseudo registers.
4787 2014-02-24 Doug Evans <dje@google.com>
4789 * value.c (record_latest_value): Fix comment.
4790 * printcmd.c (print_command_1): Remove code to handle -1 return from
4791 record_latest_value.
4793 2014-02-24 Pedro Alves <palves@redhat.com>
4795 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4796 deprecated_xfer_memory hook.
4797 (procfs_xfer_partial): Call procfs_xfer_memory instead
4798 of the deprecated_xfer_memory target hook.
4799 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4802 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4804 * windows-nat.c (windows_xfer_shared_libraries): Return
4805 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4806 requested object is TARGET_OBJECT_LIBRARIES.
4808 2014-02-24 Yao Qi <yao@codesourcery.com>
4810 * target.h (enum target_xfer_status)
4811 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4812 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4814 * corefile.c (memory_error_message): User updated.
4815 * exec.c (section_table_read_available_memory): Likewise.
4816 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4817 * target.c (target_xfer_status_to_string): Likewise.
4818 (raw_memory_xfer_partial): Likewise.
4819 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4820 * valops.c (read_value_memory): Likewise.
4821 * exec.h: Update comments.
4823 2014-02-24 Yao Qi <yao@codesourcery.com>
4825 * target.c (target_xfer_status_to_string): Rename argument err
4827 * target.h (target_xfer_status_to_string): Update declaration.
4828 Replace target_xfer_error_to_string with
4829 target_xfer_status_to_string in comment.
4831 2014-02-24 Yao Qi <yao@codesourcery.com>
4833 * mips-linux-nat.c (super_close): Update its type.
4834 (mips_linux_close): Pass 'self' to super_close.
4836 2014-02-24 Yao Qi <yao@codesourcery.com>
4838 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4839 * corefile.c (read_memory): Adjusted.
4840 * target.c (target_write_with_progress): Adjusted.
4842 2014-02-23 Yao Qi <yao@codesourcery.com>
4846 2013-10-25 Yao Qi <yao@codesourcery.com>
4848 * remote.c (remote_traceframe_info): Return early if
4849 traceframe is not selected.
4851 2013-07-19 Yao Qi <yao@codesourcery.com>
4853 * target.c (update_current_target): Change the default action
4854 of 'to_traceframe_info' from tcomplain to return_zero.
4855 * target.h (struct target_ops) <to_traceframe_info>: Add more
4858 2014-02-23 Yao Qi <yao@codesourcery.com>
4860 * valops.c (read_value_memory): Rewrite it. Call
4861 target_xfer_partial in a loop.
4862 * exec.h (section_table_available_memory): Remove declaration.
4863 Move comments to ...
4864 * exec.c (section_table_available_memory): ... here. Make it
4867 2014-02-23 Yao Qi <yao@codesourcery.com>
4869 * exec.c (section_table_read_available_memory): New function.
4870 * exec.h (section_table_read_available_memory): Declare.
4871 * ctf.c (ctf_xfer_partial): Call
4872 section_table_read_available_memory.
4873 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4875 2014-02-23 Yao Qi <yao@codesourcery.com>
4877 * ctf.c (ctf_xfer_partial): Move code to ...
4878 * exec.c (exec_read_partial_read_only): ... it. New function.
4879 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4880 * tracefile.c: Include "exec.h".
4881 * exec.h (exec_read_partial_read_only): Declare.
4883 2014-02-23 Yao Qi <yao@codesourcery.com>
4885 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4886 (tfile_has_memory): Remove.
4887 (init_tfile_ops): Don't set fields to_has_all_memory and
4888 to_has_memory of tfile_ops.
4889 * tracefile.c (tracefile_has_all_memory): New function.
4890 (tracefile_has_memory): New function.
4891 (init_tracefile_ops): Initialize fields to_has_all_memory and
4892 to_has_memory of 'ops'.
4894 2014-02-23 Yao Qi <yao@codesourcery.com>
4896 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4897 (ctf_thread_alive, ctf_get_trace_status): Remove.
4898 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4900 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4901 (tfile_has_stack, tfile_has_registers): Remove.
4902 (tfile_thread_alive): Remove.
4903 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4905 * tracefile.c (tracefile_has_stack): New function.
4906 (tracefile_has_registers): New function.
4907 (tracefile_thread_alive): New function.
4908 (tracefile_get_trace_status): New function.
4909 (init_tracefile_ops): New function.
4910 * tracefile.h (init_tracefile_ops): Declare.
4912 2014-02-23 Yao Qi <yao@codesourcery.com>
4914 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4915 (O_LARGEFILE): Likewise.
4916 (tfile_ops): Likewise.
4917 (TRACE_HEADER_SIZE): Likewise.
4918 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4919 (cur_data_size): Likewise.
4920 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4921 (tfile_close, tfile_files_info): Likewise.
4922 (tfile_get_trace_status): Likewise.
4923 (tfile_get_tracepoint_status): Likewise.
4924 (tfile_get_traceframe_address): Likewise.
4925 (tfile_trace_find, match_blocktype): Likewise.
4926 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4927 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4928 (tfile_get_trace_state_variable_value): Likewise.
4929 (tfile_has_all_memory, tfile_has_memory): Likewise.
4930 (tfile_has_stack, tfile_has_registers): Likewise.
4931 (tfile_thread_alive, build_traceframe_info): Likewise.
4932 (tfile_traceframe_info, init_tfile_ops): Likewise.
4933 (_initialize_tracepoint): Don't call init_tfile_ops
4934 and add_target_with_completer.
4935 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4936 exec.h, completer.h and filenames.h.
4937 (_initialize_tracefile_tfile): New function.
4939 2014-02-23 Yao Qi <yao@codesourcery.com>
4941 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4943 (HFILES_NO_SRCDIR): Add tracefile.h.
4944 * ctf.c: Include "tracefile.h".
4945 * tracefile.h: New file.
4946 * tracefile.c: New file
4947 * tracefile-tfile.c: New file.
4948 * tracepoint.c: Include "tracefile.h".
4949 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4950 (stop_reason_names): Add const.
4951 (trace_file_writer_xfree): Move it to tracefile.c.
4952 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4953 (trace_save_ctf): Likewise.
4954 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4955 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4956 (tfile_write_header, tfile_write_regblock_type): Likewise.
4957 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4958 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4959 (tfile_write_raw_data, tfile_end): Likewise.
4960 (tfile_trace_file_writer_new): Likewise.
4961 (free_uploaded_tp): Make it extern.
4962 (free_uploaded_tsv): Make it extern.
4963 (_initialize_tracepoint): Move code to register command 'tsave'
4965 * tracepoint.h (stop_reason_names): Declare.
4966 (struct trace_frame_write_ops): Move it to tracefile.h.
4967 (struct trace_file_write_ops): Likewise.
4968 (struct trace_file_writer): Likewise.
4969 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4971 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4976 (get_cores_used_by_process): New parameter num_cores, use it.
4977 (linux_xfer_osdata_processes): Pass num_cores to it.
4978 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4981 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4983 * target.c (memory_xfer_partial): Fix length arg in call to
4984 breakpoint_xfer_memory.
4986 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4989 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4990 number comes after the + or - signs. Adjust length of register
4991 name to be extracted.
4993 2014-02-20 Tom Tromey <tromey@redhat.com>
4995 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4996 (ada_varobj_ops): Mark "extern".
4998 2014-02-20 Tom Tromey <tromey@redhat.com>
5000 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5002 2014-02-20 Doug Evans <xdje42@gmail.com>
5004 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5005 All callers updated.
5006 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5007 All callers updated.
5008 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5009 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5011 2014-02-20 lin zuojian <manjian2006@gmail.com>
5012 Joel Brobecker <brobecker@adacore.com>
5013 Doug Evans <xdje42@gmail.com>
5016 * dwarf2read.c (struct die_info): New member in_process.
5017 (reset_die_in_process): New function.
5018 (process_die): Set it at the start, reset when returning.
5019 (inherit_abstract_dies): Only call process_die if origin_child_die
5020 not already being processed.
5022 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5024 * windows-nat.c (handle_unload_dll): Add function documentation.
5025 (do_initial_windows_stuff): Add comment explaining why we wait
5026 until after inferior initialization has finished before
5027 processing all DLLs.
5029 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5031 * windows-nat.c (get_module_name): Delete.
5032 (windows_get_exec_module_filename): New function, mostly
5033 inspired from get_module_name.
5034 (windows_pid_to_exec_file): Replace call to get_module_name
5035 by call to windows_get_exec_module_filename.
5037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5039 * windows-nat.c (handle_load_dll): Rewrite this function's
5040 introductory comment. Remove code using get_module_name
5041 to get the DLL's name.
5043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5045 * windows-nat.c (get_windows_debug_event): Ignore
5046 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5047 if windows_initialization_done == 0.
5048 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5049 Adjust implementation to always load all DLLs.
5050 (do_initial_windows_stuff): Replace call to
5051 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5055 * windows-nat.c (_initialize_windows_nat): Deprecate the
5056 "dll-symbols" command. Turn the "add-shared-symbol-files"
5057 and "assf" aliases into commands, and deprecate them as well.
5058 * NEWS: Add entry explaining that "dll-symbols" and its two
5059 aliases are now deprecated.
5061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5063 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5064 new-line in debug string. Remove trailing spaces.
5066 2014-02-19 Stan Shebs <stan@codesourcery.com>
5068 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5070 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5072 * NEWS: Add entry for the new feature
5073 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5076 2014-02-19 Stan Shebs <stan@codesourcery.com>
5078 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5080 2014-02-19 Pedro Alves <palves@redhat.com>
5082 * common/ptid.h (struct ptid): Mention that process_stratum
5083 targets should prefer ptid.lwp.
5085 2014-02-19 Pedro Alves <palves@redhat.com>
5087 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5088 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5089 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5090 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5091 store remote thread ids rather than ptid.tid.
5092 (_initialize_remote): Adjust.
5094 2014-02-19 Tom Tromey <tromey@redhat.com>
5096 * target.c (target_get_unwinder): Rewrite.
5097 (target_get_tailcall_unwinder): Rewrite.
5098 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5099 (record_btrace_to_get_tailcall_unwinder): New function.
5100 (init_record_btrace_ops): Update.
5101 * target.h (struct target_ops) <to_get_unwinder,
5102 to_get_tailcall_unwinder>: Now function pointers. Use
5103 TARGET_DEFAULT_RETURN.
5105 2014-02-19 Tom Tromey <tromey@redhat.com>
5107 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5109 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5111 2014-02-19 Tom Tromey <tromey@redhat.com>
5113 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5115 * target-delegates.c: Rebuild.
5116 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5117 TARGET_DEFAULT_FUNC.
5118 * target.c (default_target_decr_pc_after_break): Rename from
5119 forward_target_decr_pc_after_break. Simplify.
5120 (target_decr_pc_after_break): Rely on delegation.
5122 2014-02-19 Tom Tromey <tromey@redhat.com>
5124 * target.c (update_current_target): Do not INHERIT to_doc or
5125 to_magic. Do not de_fault to_open or to_close.
5127 2014-02-19 Tom Tromey <tromey@redhat.com>
5129 * gcore.h (objfile_find_memory_regions): Declare.
5130 * gcore.c (objfile_find_memory_regions): No longer static. Add
5132 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5133 * exec.c: Include gcore.h.
5134 (exec_set_find_memory_regions): Remove.
5135 (exec_find_memory_regions): Remove.
5136 (exec_do_find_memory_regions): Remove.
5137 (init_exec_ops): Update.
5138 * defs.h (exec_set_find_memory_regions): Remove.
5140 2014-02-19 Tom Tromey <tromey@redhat.com>
5142 * target-delegates.c: Rebuild.
5143 * target.h (struct target_ops) <to_extra_thread_info,
5144 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5145 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5146 not 0, in TARGET_DEFAULT_RETURN.
5148 2014-02-19 Tom Tromey <tromey@redhat.com>
5150 * target.c (complete_target_initialization): Remove casts. Use
5151 return_zero_has_execution.
5152 (return_zero): Add "ignore" argument.
5153 (return_zero_has_execution): New function.
5154 (init_dummy_target): Remove casts. Use
5155 return_zero_has_execution.
5157 2014-02-19 Tom Tromey <tromey@redhat.com>
5159 * target.c (update_current_target): Update comments. Do not
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5166 * corelow.c (core_read_description): Delegate when needed.
5167 * remote.c (remote_read_description): Delegate when needed.
5168 * target-delegates.c: Rebuild.
5169 * target.c (target_read_description): Rewrite.
5170 * target.h (struct target_ops) <to_read_description>: Update
5171 comment. Use TARGET_DEFAULT_RETURN.
5173 2014-02-19 Tom Tromey <tromey@redhat.com>
5175 * target-delegates.c: Rebuild.
5176 * target.c (update_current_target): Don't inherit or default
5178 (find_default_run_target): Check against delegate_can_run.
5179 * target.h (struct target_ops) <to_can_run>: Use
5180 TARGET_DEFAULT_RETURN.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target-delegates.c: Rebuild.
5185 * target.c (target_disconnect): Unconditionally delegate.
5186 * target.h (struct target_ops) <to_disconnect>: Use
5187 TARGET_DEFAULT_NORETURN.
5189 2014-02-19 Tom Tromey <tromey@redhat.com>
5191 * record.c (record_stop): Unconditionally delegate.
5192 * target-delegates.c: Rebuild.
5193 * target.c (target_stop_recording): Unconditionally delegate.
5194 * target.h (struct target_ops) <to_stop_recording>: Use
5195 TARGET_DEFAULT_IGNORE.
5197 2014-02-19 Tom Tromey <tromey@redhat.com>
5199 * target-delegates.c: Rebuild.
5200 * target.c (target_enable_btrace): Unconditionally delegate.
5201 * target.h (struct target_ops) <to_enable_btrace>: Use
5202 TARGET_DEFAULT_NORETURN.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target-delegates.c: Rebuild.
5207 * target.c (target_read_btrace): Unconditionally delegate.
5208 * target.h (struct target_ops) <to_read_btrace>: Use
5209 TARGET_DEFAULT_NORETURN.
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (target_teardown_btrace): Unconditionally delegate.
5215 * target.h (struct target_ops) <to_teardown_btrace>: Use
5216 TARGET_DEFAULT_NORETURN.
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target-delegates.c: Rebuild.
5221 * target.c (target_disable_btrace): Unconditionally delegate.
5222 * target.h (struct target_ops) <to_disable_btrace>: Use
5223 TARGET_DEFAULT_NORETURN.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * target-delegates.c: Rebuild.
5228 * target.c (default_search_memory): New function.
5229 (simple_search_memory): Update comment.
5230 (target_search_memory): Unconditionally delegate.
5231 * target.h (struct target_ops) <to_search_memory>: Use
5232 TARGET_DEFAULT_FUNC.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * auxv.c (default_auxv_parse): No longer static.
5237 (target_auxv_parse): Unconditionally delegate.
5238 * auxv.h (default_auxv_parse): Declare.
5239 * target-delegates.c: Rebuild.
5240 * target.c: Include auxv.h.
5241 * target.h (struct target_ops) <to_auxv_parse>: Use
5242 TARGET_DEFAULT_FUNC.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target-delegates.c: Rebuild.
5247 * target.c (target_memory_map): Unconditionally delegate.
5248 * target.h (struct target_ops) <to_memory_map>: Use
5249 TARGET_DEFAULT_RETURN.
5251 2014-02-19 Tom Tromey <tromey@redhat.com>
5253 * target-delegates.c: Rebuild.
5254 * target.c (target_thread_alive): Unconditionally delegate.
5255 * target.h (struct target_ops) <to_thread_alive>: Use
5256 TARGET_DEFAULT_RETURN.
5258 2014-02-19 Tom Tromey <tromey@redhat.com>
5260 * target-delegates.c: Rebuild.
5261 * target.c (target_save_record): Unconditionally delegate.
5262 * target.h (struct target_ops) <to_save_record>: Use
5263 TARGET_DEFAULT_NORETURN.
5265 2014-02-19 Tom Tromey <tromey@redhat.com>
5267 * target-delegates.c: Rebuild.
5268 * target.c (target_delete_record): Unconditionally delegate.
5269 * target.h (struct target_ops) <to_delete_record>: Use
5270 TARGET_DEFAULT_NORETURN.
5272 2014-02-19 Tom Tromey <tromey@redhat.com>
5274 * target-delegates.c: Rebuild.
5275 * target.c (target_record_is_replaying): Unconditionally
5277 * target.h (struct target_ops) <to_record_is_replaying>: Use
5278 TARGET_DEFAULT_RETURN.
5280 2014-02-19 Tom Tromey <tromey@redhat.com>
5282 * target-delegates.c: Rebuild.
5283 * target.c (target_goto_record_begin): Unconditionally delegate.
5284 * target.h (struct target_ops) <to_goto_record_begin>: Use
5285 TARGET_DEFAULT_NORETURN.
5287 2014-02-19 Tom Tromey <tromey@redhat.com>
5289 * target-delegates.c: Rebuild.
5290 * target.c (target_goto_record_end): Unconditionally delegate.
5291 * target.h (struct target_ops) <to_goto_record_end>: Use
5292 TARGET_DEFAULT_NORETURN.
5294 2014-02-19 Tom Tromey <tromey@redhat.com>
5296 * target-delegates.c: Rebuild.
5297 * target.c (target_goto_record): Unconditionally delegate.
5298 * target.h (struct target_ops) <to_goto_record>: Use
5299 TARGET_DEFAULT_NORETURN.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target-delegates.c: Rebuild.
5304 * target.c (target_insn_history): Unconditionally delegate.
5305 * target.h (struct target_ops) <to_insn_history>: Use
5306 TARGET_DEFAULT_NORETURN.
5308 2014-02-19 Tom Tromey <tromey@redhat.com>
5310 * target-delegates.c: Rebuild.
5311 * target.c (target_insn_history_from): Unconditionally delegate.
5312 * target.h (struct target_ops) <to_insn_history_from>: Use
5313 TARGET_DEFAULT_NORETURN.
5315 2014-02-19 Tom Tromey <tromey@redhat.com>
5317 * target-delegates.c: Rebuild.
5318 * target.c (target_insn_history_range): Unconditionally delegate.
5319 * target.h (struct target_ops) <to_insn_history_range>: Use
5320 TARGET_DEFAULT_NORETURN.
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target-delegates.c: Rebuild.
5325 * target.c (target_call_history): Unconditionally delegate.
5326 * target.h (struct target_ops) <to_call_history>: Use
5327 TARGET_DEFAULT_NORETURN.
5329 2014-02-19 Tom Tromey <tromey@redhat.com>
5331 * target-delegates.c: Rebuild.
5332 * target.c (target_call_history_from): Unconditionally delegate.
5333 * target.h (struct target_ops) <to_call_history_from>: Use
5334 TARGET_DEFAULT_NORETURN.
5336 2014-02-19 Tom Tromey <tromey@redhat.com>
5338 * target-delegates.c: Rebuild.
5339 * target.c (target_call_history_range): Unconditionally delegate.
5340 * target.h (struct target_ops) <to_call_history_range>: Use
5341 TARGET_DEFAULT_NORETURN.
5343 2014-02-19 Tom Tromey <tromey@redhat.com>
5345 * target-delegates.c: Rebuild.
5346 * target.c (target_verify_memory): Unconditionally delegate.
5347 * target.h (struct target_ops) <to_verify_memory>: Use
5348 TARGET_DEFAULT_NORETURN.
5350 2014-02-19 Tom Tromey <tromey@redhat.com>
5352 * target-delegates.c: Rebuild.
5353 * target.c (target_core_of_thread): Unconditionally delegate.
5354 * target.h (struct target_ops) <to_core_of_thread>: Use
5355 TARGET_DEFAULT_RETURN.
5357 2014-02-19 Tom Tromey <tromey@redhat.com>
5359 * target-delegates.c: Rebuild.
5360 * target.c (target_flash_done): Unconditionally delegate.
5361 * target.h (struct target_ops) <to_flash_done>: Use
5362 TARGET_DEFAULT_NORETURN.
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target-delegates.c: Rebuild.
5367 * target.c (target_flash_erase): Unconditionally delegate.
5368 * target.h (struct target_ops) <to_flash_erase>: Use
5369 TARGET_DEFAULT_NORETURN.
5371 2014-02-19 Tom Tromey <tromey@redhat.com>
5373 * target-delegates.c: Rebuild.
5374 * target.c (target_get_section_table): Unconditionally delegate.
5375 * target.h (struct target_ops) <to_get_section_table>: Use
5376 TARGET_DEFAULT_RETURN.
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target-delegates.c: Rebuild.
5381 * target.c (target_pid_to_str): Unconditionally delegate.
5382 (init_dummy_target): Don't initialize to_pid_to_str.
5383 (default_pid_to_str): Rename from dummy_pid_to_str.
5384 * target.h (struct target_ops) <to_pid_to_str>: Use
5385 TARGET_DEFAULT_FUNC.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target-delegates.c: Rebuild.
5390 * target.c (target_find_new_threads): Unconditionally delegate.
5391 * target.h (struct target_ops) <to_find_new_threads>: Use
5392 TARGET_DEFAULT_RETURN.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target-delegates.c: Rebuild.
5397 * target.c (target_program_signals): Unconditionally delegate.
5398 * target.h (struct target_ops) <to_program_signals>: Use
5399 TARGET_DEFAULT_IGNORE.
5401 2014-02-19 Tom Tromey <tromey@redhat.com>
5403 * target-delegates.c: Rebuild.
5404 * target.c (target_pass_signals): Unconditionally delegate.
5405 * target.h (struct target_ops) <to_pass_signals>: Use
5406 TARGET_DEFAULT_IGNORE.
5408 2014-02-19 Tom Tromey <tromey@redhat.com>
5410 * target-delegates.c: Rebuild.
5411 * target.c (default_mourn_inferior): New function.
5412 (target_mourn_inferior): Unconditionally delegate.
5413 * target.h (struct target_ops) <to_mourn_inferior>: Use
5414 TARGET_DEFAULT_FUNC.
5416 2014-02-19 Tom Tromey <tromey@redhat.com>
5418 * target-delegates.c: Rebuild.
5419 * target.c (default_follow_fork): New function.
5420 (target_follow_fork): Unconditionally delegate.
5421 * target.h (struct target_ops) <to_follow_fork>: Use
5422 TARGET_DEFAULT_FUNC.
5424 2014-02-19 Tom Tromey <tromey@redhat.com>
5426 * target-delegates.c: Rebuild.
5427 * target.c (target_kill): Unconditionally delegate.
5428 * target.h (struct target_ops) <to_kill>: Use
5429 TARGET_DEFAULT_NORETURN.
5431 2014-02-19 Tom Tromey <tromey@redhat.com>
5433 * target-delegates.c: Rebuild.
5434 * target.c (target_masked_watch_num_registers): Unconditionally
5436 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5437 Use TARGET_DEFAULT_RETURN.
5439 2014-02-19 Tom Tromey <tromey@redhat.com>
5441 * target-delegates.c: Rebuild.
5442 * target.c (target_remove_mask_watchpoint): Unconditionally
5444 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5445 TARGET_DEFAULT_RETURN.
5447 2014-02-19 Tom Tromey <tromey@redhat.com>
5449 * target-delegates.c: Rebuild.
5450 * target.c (target_insert_mask_watchpoint): Unconditionally
5452 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5453 TARGET_DEFAULT_RETURN.
5455 2014-02-19 Tom Tromey <tromey@redhat.com>
5457 * target-delegates.c: Rebuild.
5458 * target.c (target_ranged_break_num_registers): Unconditionally
5460 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5461 Use TARGET_DEFAULT_RETURN.
5463 2014-02-19 Tom Tromey <tromey@redhat.com>
5465 * target-delegates.c: Rebuild.
5466 * target.c (target_fetch_registers): Unconditionally delegate.
5467 * target.h (struct target_ops) <to_fetch_registers>: Use
5468 TARGET_DEFAULT_NORETURN.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target-delegates.c: Rebuild.
5473 * target.c (update_current_target): Don't inherit or default
5475 * target.h (struct target_ops) <to_stop>: Use
5476 TARGET_DEFAULT_IGNORE.
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target-delegates.c: Rebuild.
5481 * target.c (update_current_target): Don't inherit or default
5482 to_can_run_breakpoint_commands.
5483 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5484 Use TARGET_DEFAULT_RETURN.
5486 2014-02-19 Tom Tromey <tromey@redhat.com>
5488 * target-delegates.c: Rebuild.
5489 * target.c (update_current_target): Don't inherit or default
5490 to_supports_evaluation_of_breakpoint_conditions.
5491 * target.h (struct target_ops)
5492 <to_supports_evaluation_of_breakpoint_conditions>: Use
5493 TARGET_DEFAULT_RETURN.
5495 2014-02-19 Tom Tromey <tromey@redhat.com>
5497 * target-delegates.c: Rebuild.
5498 * target.c (update_current_target): Don't inherit or default
5499 to_augmented_libraries_svr4_read.
5500 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5501 Use TARGET_DEFAULT_RETURN.
5503 2014-02-19 Tom Tromey <tromey@redhat.com>
5505 * target-delegates.c: Rebuild.
5506 * target.c (update_current_target): Don't inherit or default
5508 * target.h (struct target_ops) <to_can_use_agent>: Use
5509 TARGET_DEFAULT_RETURN.
5511 2014-02-19 Tom Tromey <tromey@redhat.com>
5513 * target-delegates.c: Rebuild.
5514 * target.c (update_current_target): Don't inherit or default
5516 * target.h (struct target_ops) <to_use_agent>: Use
5517 TARGET_DEFAULT_NORETURN.
5519 2014-02-19 Tom Tromey <tromey@redhat.com>
5521 * target-delegates.c: Rebuild.
5522 * target.c (update_current_target): Don't inherit or default
5524 (return_null): Remove.
5525 * target.h (struct target_ops) <to_traceframe_info>: Use
5526 TARGET_DEFAULT_RETURN.
5528 2014-02-19 Tom Tromey <tromey@redhat.com>
5530 * target-delegates.c: Rebuild.
5531 * target.c (update_current_target): Don't inherit or default
5532 to_static_tracepoint_markers_by_strid.
5533 * target.h (struct target_ops)
5534 <to_static_tracepoint_markers_by_strid>: Use
5535 TARGET_DEFAULT_NORETURN.
5537 2014-02-19 Tom Tromey <tromey@redhat.com>
5539 * target-delegates.c: Rebuild.
5540 * target.c (update_current_target): Don't inherit or default
5541 to_static_tracepoint_marker_at.
5542 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5543 Use TARGET_DEFAULT_RETURN.
5545 2014-02-19 Tom Tromey <tromey@redhat.com>
5547 * target-delegates.c: Rebuild.
5548 * target.c (update_current_target): Don't inherit or default
5550 * target.h (struct target_ops) <to_set_permissions>: Use
5551 TARGET_DEFAULT_IGNORE.
5553 2014-02-19 Tom Tromey <tromey@redhat.com>
5555 * target-delegates.c: Rebuild.
5556 * target.c (update_current_target): Don't inherit or default
5558 * target.h (struct target_ops) <to_get_tib_address>: Use
5559 TARGET_DEFAULT_NORETURN.
5561 2014-02-19 Tom Tromey <tromey@redhat.com>
5563 * target-delegates.c: Rebuild.
5564 * target.c (update_current_target): Don't inherit or default
5566 * target.h (struct target_ops) <to_set_trace_notes>: Use
5567 TARGET_DEFAULT_RETURN.
5569 2014-02-19 Tom Tromey <tromey@redhat.com>
5571 * target-delegates.c: Rebuild.
5572 * target.c (update_current_target): Don't initialize
5573 to_set_trace_buffer_size.
5574 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5575 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
5582 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5583 TARGET_DEFAULT_IGNORE.
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
5589 to_set_disconnected_tracing.
5590 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5591 TARGET_DEFAULT_IGNORE.
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
5597 to_get_min_fast_tracepoint_insn_len.
5598 (return_minus_one): Remove.
5599 * target.h (struct target_ops)
5600 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5602 2014-02-19 Tom Tromey <tromey@redhat.com>
5604 * target-delegates.c: Rebuild.
5605 * target.c (update_current_target): Don't inherit or default
5606 to_get_raw_trace_data.
5607 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5608 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
5615 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5616 Use TARGET_DEFAULT_RETURN.
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * target-delegates.c: Rebuild.
5621 * target.c (update_current_target): Don't inherit or default
5622 to_upload_tracepoints.
5623 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5624 TARGET_DEFAULT_RETURN.
5626 2014-02-19 Tom Tromey <tromey@redhat.com>
5628 * target-delegates.c: Rebuild.
5629 * target.c (update_current_target): Don't inherit or default
5631 * target.h (struct target_ops) <to_save_trace_data>: Use
5632 TARGET_DEFAULT_NORETURN.
5634 2014-02-19 Tom Tromey <tromey@redhat.com>
5636 * target-delegates.c: Rebuild.
5637 * target.c (update_current_target): Don't inherit or default
5638 to_get_trace_state_variable_value.
5639 * target.h (struct target_ops)
5640 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5642 2014-02-19 Tom Tromey <tromey@redhat.com>
5644 * target-delegates.c: Rebuild.
5645 * target.c (update_current_target): Don't inherit or default
5647 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target-delegates.c: Rebuild.
5652 * target.c (update_current_target): Don't inherit or default
5654 * target.h (struct target_ops) <to_trace_stop>: Use
5655 TARGET_DEFAULT_NORETURN.
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target-delegates.c: Rebuild.
5660 * target.c (update_current_target): Don't inherit or default
5661 to_get_tracepoint_status.
5662 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5663 TARGET_DEFAULT_NORETURN.
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * target-delegates.c: Rebuild.
5668 * target.c (update_current_target): Don't inherit or default
5669 to_get_trace_status.
5670 * target.h (struct target_ops) <to_get_trace_status>: Use
5671 TARGET_DEFAULT_RETURN.
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target-delegates.c: Rebuild.
5676 * target.c (update_current_target): Don't inherit or default
5678 * target.h (struct target_ops) <to_trace_start>: Use
5679 TARGET_DEFAULT_NORETURN.
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target-delegates.c: Rebuild.
5684 * target.c (update_current_target): Don't inherit or default
5685 to_trace_set_readonly_regions.
5686 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5687 Use TARGET_DEFAULT_NORETURN.
5689 2014-02-19 Tom Tromey <tromey@redhat.com>
5691 * target-delegates.c: Rebuild.
5692 * target.c (update_current_target): Don't inherit or default
5693 to_disable_tracepoint.
5694 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5695 TARGET_DEFAULT_NORETURN.
5697 2014-02-19 Tom Tromey <tromey@redhat.com>
5699 * target-delegates.c: Rebuild.
5700 * target.c (update_current_target): Don't inherit or default
5701 to_enable_tracepoint.
5702 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5703 TARGET_DEFAULT_NORETURN.
5705 2014-02-19 Tom Tromey <tromey@redhat.com>
5707 * target-delegates.c: Rebuild.
5708 * target.c (update_current_target): Don't inherit or default
5709 to_download_trace_state_variable.
5710 * target.h (struct target_ops) <to_download_trace_state_variable>:
5711 Use TARGET_DEFAULT_NORETURN.
5713 2014-02-19 Tom Tromey <tromey@redhat.com>
5715 * target-delegates.c: Rebuild.
5716 * target.c (update_current_target): Don't inherit or default
5717 to_can_download_tracepoint.
5718 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5719 TARGET_DEFAULT_RETURN.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * target-delegates.c: Rebuild.
5724 * target.c (update_current_target): Don't inherit or default
5725 to_download_tracepoint.
5726 * target.h (struct target_ops) <to_download_tracepoint>: Use
5727 TARGET_DEFAULT_NORETURN.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target-delegates.c: Rebuild.
5732 * target.c (update_current_target): Don't inherit or default
5734 * target.h (struct target_ops) <to_trace_init>: Use
5735 TARGET_DEFAULT_RETURN.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target-delegates.c: Rebuild.
5740 * target.c (update_current_target): Don't inherit or default
5741 to_supports_string_tracing.
5742 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5743 TARGET_DEFAULT_RETURN.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * target-delegates.c: Rebuild.
5748 * target.c (update_current_target): Don't inherit or default
5749 to_supports_enable_disable_tracepoint.
5750 * target.h (struct target_ops)
5751 <to_supports_enable_disable_tracepoint>: Use
5752 TARGET_DEFAULT_RETURN.
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target-delegates.c: Rebuild.
5757 * target.c (update_current_target): Don't inherit or default
5758 to_supports_multi_process.
5759 * target.h (struct target_ops) <to_supports_multi_process>: Use
5760 TARGET_DEFAULT_RETURN.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * target-delegates.c: Rebuild.
5765 * target.c (update_current_target): Don't inherit or default
5766 to_get_ada_task_ptid.
5767 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5768 TARGET_DEFAULT_FUNC.
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target-delegates.c: Rebuild.
5773 * target.c (update_current_target): Don't inherit or default
5774 to_thread_architecture.
5775 * target.h (struct target_ops) <to_thread_architecture>: Use
5776 TARGET_DEFAULT_FUNC.
5778 2014-02-19 Tom Tromey <tromey@redhat.com>
5780 * target-delegates.c: Rebuild.
5781 * target.c (update_current_target): Don't inherit or default
5782 to_execution_direction.
5783 * target.h (struct target_ops) <to_execution_direction>: Use
5784 TARGET_DEFAULT_FUNC.
5786 2014-02-19 Tom Tromey <tromey@redhat.com>
5788 * target-delegates.c: Rebuild.
5789 * target.c (update_current_target): Don't inherit or default
5790 to_can_execute_reverse.
5791 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5792 TARGET_DEFAULT_RETURN.
5793 (target_can_execute_reverse): Unconditionally delegate.
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
5800 (dummy_goto_bookmark): Remove.
5801 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5802 * target.h (struct target_ops) <to_goto_bookmark>: Use
5803 TARGET_DEFAULT_NORETURN.
5805 2014-02-19 Tom Tromey <tromey@redhat.com>
5807 * target-delegates.c: Rebuild.
5808 * target.c (update_current_target): Don't inherit or default
5810 (dummy_get_bookmark): Remove.
5811 (init_dummy_target): Don't inherit or default to_get_bookmark.
5812 * target.h (struct target_ops) <to_get_bookmark>: Use
5813 TARGET_DEFAULT_NORETURN
5815 2014-02-19 Tom Tromey <tromey@redhat.com>
5817 * target-delegates.c: Rebuild.
5818 * target.c (update_current_target): Don't inherit or default
5819 to_make_corefile_notes.
5820 (init_dummy_target): Don't initialize to_make_corefile_notes.
5821 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5822 TARGET_DEFAULT_FUNC.
5824 2014-02-19 Tom Tromey <tromey@redhat.com>
5826 * target-delegates.c: Rebuild.
5827 * target.c (update_current_target): Don't inherit or default
5828 to_find_memory_regions.
5829 (init_dummy_target): Don't initialize to_find_memory_regions.
5830 * target.h (struct target_ops) <to_find_memory_regions>: Use
5831 TARGET_DEFAULT_FUNC.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target-delegates.c: Rebuild.
5836 * target.c (update_current_target): Don't inherit or default
5838 * target.h (struct target_ops) <to_log_command>: Use
5839 TARGET_DEFAULT_IGNORE.
5840 (target_log_command): Unconditionally delegate.
5842 2014-02-19 Tom Tromey <tromey@redhat.com>
5844 * target-delegates.c: Rebuild.
5845 * target.c (update_current_target): Don't inherit or default
5846 to_pid_to_exec_file.
5847 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5848 TARGET_DEFAULT_RETURN.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target-delegates.c: Rebuild.
5853 * target.c (update_current_target): Don't inherit or default
5855 (target_thread_name): Unconditionally delegate.
5856 * target.h (struct target_ops) <to_thread_name>: Use
5857 TARGET_DEFAULT_RETURN.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target-delegates.c: Rebuild.
5862 * target.c (update_current_target): Don't inherit or default
5863 to_extra_thread_info.
5864 * target.h (struct target_ops) <to_extra_thread_info>: Use
5865 TARGET_DEFAULT_RETURN.
5867 2014-02-19 Tom Tromey <tromey@redhat.com>
5869 * target-delegates.c: Rebuild.
5870 * target.c (update_current_target): Don't inherit or default
5872 * target.h (struct target_ops) <to_has_exited>: Use
5873 TARGET_DEFAULT_RETURN..
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target-delegates.c: Rebuild.
5878 * target.c (update_current_target): Don't inherit or default
5879 to_set_syscall_catchpoint.
5880 (return_one): Remove.
5881 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5882 TARGET_DEFAULT_RETURN.
5884 2014-02-19 Tom Tromey <tromey@redhat.com>
5886 * target-delegates.c: Rebuild.
5887 * target.c (update_current_target): Don't inherit or default
5888 to_insert_exec_catchpoint.
5889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5890 TARGET_DEFAULT_RETURN.
5892 2014-01-08 Tom Tromey <tromey@redhat.com>
5894 * target-delegates.c: Rebuild.
5895 * target.c (update_current_target): Don't inherit or default
5896 to_insert_exec_catchpoint.
5897 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5898 TARGET_DEFAULT_RETURN.
5900 2014-02-19 Tom Tromey <tromey@redhat.com>
5902 * target-delegates.c: Rebuild.
5903 * target.c (update_current_target): Don't inherit or default
5904 to_remove_vfork_catchpoint.
5905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5906 TARGET_DEFAULT_RETURN.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (update_current_target): Don't inherit or default
5912 to_insert_vfork_catchpoint.
5913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5914 TARGET_DEFAULT_RETURN.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target-delegates.c: Rebuild.
5919 * target.c (update_current_target): Don't inherit or default
5920 to_remove_fork_catchpoint.
5921 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5922 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
5929 * target.h (struct target_ops) <to_insert_fork_catchpoint>: 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
5936 to_post_startup_inferior.
5937 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5938 TARGET_DEFAULT_IGNORE.
5940 2014-02-19 Tom Tromey <tromey@redhat.com>
5942 * target-delegates.c: Rebuild.
5943 * target.c (update_current_target): Don't inherit or default
5945 * target.h (struct target_ops) <to_load>: Use
5946 TARGET_DEFAULT_NORETURN.
5948 2014-02-19 Tom Tromey <tromey@redhat.com>
5950 * target-delegates.c: Rebuild.
5951 * target.c (update_current_target): Don't inherit or default
5953 * target.h (struct target_ops) <to_terminal_info>: Use
5954 TARGET_DEFAULT_FUNC.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target-delegates.c: Rebuild.
5959 * target.c (update_current_target): Don't inherit or default
5960 to_terminal_save_ours.
5961 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5962 TARGET_DEFAULT_IGNORE.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target-delegates.c: Rebuild.
5967 * target.c (update_current_target): Don't inherit or default
5969 * target.h (struct target_ops) <to_terminal_ours>: Use
5970 TARGET_DEFAULT_IGNORE.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target-delegates.c: Rebuild.
5975 * target.c (update_current_target): Don't inherit or default
5976 to_terminal_ours_for_output.
5977 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5978 TARGET_DEFAULT_IGNORE.
5980 2014-02-19 Tom Tromey <tromey@redhat.com>
5982 * target-delegates.c: Rebuild.
5983 * target.c (update_current_target): Don't inherit or default
5984 to_terminal_inferior.
5985 * target.h (struct target_ops) <to_terminal_inferior>: Use
5986 TARGET_DEFAULT_IGNORE.
5988 2014-02-19 Tom Tromey <tromey@redhat.com>
5990 * target-delegates.c: Rebuild.
5991 * target.c (update_current_target): Don't inherit or default
5993 * target.h (struct target_ops) <to_terminal_init>: Use
5994 TARGET_DEFAULT_IGNORE.
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5998 * target-delegates.c: Rebuild.
5999 * target.c (update_current_target): Don't inherit or default
6000 to_can_accel_watchpoint_condition.
6001 * target.h (struct target_ops)
6002 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6004 2014-02-19 Tom Tromey <tromey@redhat.com>
6006 * target-delegates.c: Rebuild.
6007 * target.c (update_current_target): Don't inherit or default
6008 to_region_ok_for_hw_watchpoint.
6009 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6010 Use TARGET_DEFAULT_FUNC.
6012 2014-02-19 Tom Tromey <tromey@redhat.com>
6014 * target-delegates.c: Rebuild.
6015 * target.c (update_current_target): Don't inherit or default
6016 to_watchpoint_addr_within_range.
6017 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6018 Use TARGET_DEFAULT_FUNC.
6020 2014-02-19 Tom Tromey <tromey@redhat.com>
6022 * target-delegates.c: Rebuild.
6023 * target.c (update_current_target): Don't inherit or default
6024 to_remove_watchpoint.
6025 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6026 TARGET_DEFAULT_NORETURN.
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * target-delegates.c: Rebuild.
6031 * target.c (update_current_target): Don't inherit or default
6032 to_insert_watchpoint.
6033 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6034 TARGET_DEFAULT_RETURN.
6036 2014-02-19 Tom Tromey <tromey@redhat.com>
6038 * target-delegates.c: Rebuild.
6039 * target.c (update_current_target): Don't inherit or default
6040 to_remove_hw_breakpoint.
6041 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6042 TARGET_DEFAULT_RETURN.
6044 2014-02-19 Tom Tromey <tromey@redhat.com>
6046 * target-delegates.c: Rebuild.
6047 * target.c (update_current_target): Don't inherit or default
6048 to_insert_hw_breakpoint.
6049 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6050 TARGET_DEFAULT_RETURN.
6052 2014-02-19 Tom Tromey <tromey@redhat.com>
6054 * target-delegates.c: Rebuild.
6055 * target.c (update_current_target): Don't inherit or default
6056 to_can_use_hw_breakpoint.
6057 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6058 TARGET_DEFAULT_RETURN.
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target-delegates.c: Rebuild.
6063 * target.c (update_current_target): Don't inherit or default
6065 * target.h (struct target_ops) <to_files_info>: Use
6066 TARGET_DEFAULT_IGNORE.
6068 2014-02-19 Tom Tromey <tromey@redhat.com>
6070 * target-delegates.c: Rebuild.
6071 * target.c (update_current_target): Don't inherit or default
6073 * target.h (struct target_ops) <to_store>: Use
6074 TARGET_DEFAULT_NORETURN.
6076 2014-02-19 Tom Tromey <tromey@redhat.com>
6078 * target-delegates.c: Rebuild.
6079 * target.c (update_current_target): Don't inherit or default
6081 * target.h (struct target_ops) <to_post_attach>: Use
6082 TARGET_DEFAULT_IGNORE.
6084 2014-02-19 Tom Tromey <tromey@redhat.com>
6086 * target-delegates.c: Rebuild.
6087 * target.c (update_current_target): Don't inherit or default
6089 (default_rcmd): New function.
6090 (do_monitor_command): Unconditionally delegate.
6091 * target.h (struct target_ops) <to_rmcd>: Use
6092 TARGET_DEFAULT_FUNC.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * target-delegates.c: Rebuild.
6097 * target.c (init_dummy_target): Don't initialize to_attach.
6098 (target_attach): Unconditionally delegate.
6099 * target.h (struct target_ops) <to_attach>: Use
6100 TARGET_DEFAULT_FUNC.
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * target-delegates.c: Rebuild.
6105 * target.c (target_detach): Unconditionally delegate.
6106 (init_dummy_target): Don't initialize to_detach.
6107 * target.h (struct target_ops) <to_detach>: Use
6108 TARGET_DEFAULT_IGNORE.
6110 2014-02-19 Tom Tromey <tromey@redhat.com>
6112 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6114 (target_augmented_libraries_svr4_read): Add argument.
6115 * target.c (update_current_target): Update.
6116 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target.h (struct target_ops) <to_call_history_range>: Add
6123 * target.c (target_call_history_range): Add argument.
6124 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6126 (record_btrace_call_history_from): Update.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target.h (struct target_ops) <to_call_history_from>: Add
6132 * target.c (target_call_history_from): Add argument.
6133 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target.h (struct target_ops) <to_call_history>: Add argument.
6139 * target.c (target_call_history): Add argument.
6140 * record-btrace.c (record_btrace_call_history): Add 'self'
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target.h (struct target_ops) <to_insn_history_range>: Add
6147 * target.c (target_insn_history_range): Add argument.
6148 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6150 (record_btrace_insn_history_from): Update.
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6154 * target.h (struct target_ops) <to_insn_history_from>: Add
6156 * target.c (target_insn_history_from): Add argument.
6157 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6160 2014-02-19 Tom Tromey <tromey@redhat.com>
6162 * target.h (struct target_ops) <to_insn_history>: Add argument.
6163 * target.c (target_insn_history): Add argument.
6164 * record-btrace.c (record_btrace_insn_history): Add 'self'
6167 2014-02-19 Tom Tromey <tromey@redhat.com>
6169 * target.h (struct target_ops) <to_goto_record>: Add argument.
6170 * target.c (target_goto_record): Add argument.
6171 * record-full.c (record_full_goto): Add 'self' argument.
6172 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6174 2014-02-19 Tom Tromey <tromey@redhat.com>
6176 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6177 * target.c (target_goto_record_end): Add argument.
6178 * record-full.c (record_full_goto_end): Add 'self' argument.
6179 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6181 2014-02-19 Tom Tromey <tromey@redhat.com>
6183 * target.h (struct target_ops) <to_goto_record_begin>: Add
6185 * target.c (target_goto_record_begin): Add argument.
6186 * record-full.c (record_full_goto_begin): Add 'self' argument.
6187 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * target.h (struct target_ops) <to_record_is_replaying>: Add
6194 * target.c (target_record_is_replaying): Add argument.
6195 * record-full.c (record_full_is_replaying): Add 'self' argument.
6196 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6198 (record_btrace_xfer_partial, record_btrace_store_registers)
6199 (record_btrace_prepare_to_store, record_btrace_resume)
6200 (record_btrace_wait, record_btrace_decr_pc_after_break)
6201 (record_btrace_find_new_threads, record_btrace_thread_alive):
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target.h (struct target_ops) <to_delete_record>: Add argument.
6207 * target.c (target_delete_record): Add argument.
6208 * record-full.c (record_full_delete): Add 'self' argument.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target.h (struct target_ops) <to_save_record>: Add argument.
6213 * target.c (target_save_record): Add argument.
6214 * record-full.c (record_full_save): Add 'self' argument.
6215 (record_full_save): Add 'self' argument.
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target.h (struct target_ops) <to_info_record>: Add argument.
6220 * target.c (target_info_record): Add argument.
6221 * record.c (info_record_command): Add argument.
6222 * record-full.c (record_full_info): Add 'self' argument.
6223 * record-btrace.c (record_btrace_info): Add 'self' argument.
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6228 * target.c (target_stop_recording): Add argument.
6229 * record.c (record_stop): Add argument.
6230 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6233 2014-02-19 Tom Tromey <tromey@redhat.com>
6235 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6236 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6237 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6239 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6240 (_initialize_amd64_linux_nat): Use it.
6241 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6242 (_initialize_i386_linux_nat): Use it.
6244 2014-02-19 Tom Tromey <tromey@redhat.com>
6246 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6247 * target.c (target_teardown_btrace): Add argument.
6248 * remote.c (remote_teardown_btrace): Add 'self' argument.
6249 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6251 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6254 2014-02-19 Tom Tromey <tromey@redhat.com>
6256 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6257 * target.c (target_disable_btrace): Add argument.
6258 * remote.c (remote_disable_btrace): Add 'self' argument.
6259 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6261 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6267 * target.c (target_enable_btrace): Add argument.
6268 * remote.c (remote_enable_btrace): Add 'self' argument.
6269 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6271 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6277 (target_can_use_agent): Add argument.
6278 * target.c (update_current_target): Update.
6279 * remote.c (remote_can_use_agent): Add 'self' argument.
6280 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6282 2014-02-19 Tom Tromey <tromey@redhat.com>
6284 * target.h (struct target_ops) <to_use_agent>: Add argument.
6285 (target_use_agent): Add argument.
6286 * target.c (update_current_target): Update.
6287 * remote.c (remote_use_agent): Add 'self' argument.
6288 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6290 2014-02-19 Tom Tromey <tromey@redhat.com>
6292 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6293 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6294 (target_traceframe_info): Add argument.
6295 * target.c (update_current_target): Update.
6296 * remote.c (remote_traceframe_info): Add 'self' argument.
6297 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target.h (target_static_tracepoint_markers_by_strid): Add
6303 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6305 * target.c (update_current_target): Update.
6306 * remote.c (struct target_ops)
6307 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6308 * linux-nat.c (struct target_ops)
6309 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6311 2014-02-19 Tom Tromey <tromey@redhat.com>
6313 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6315 (target_static_tracepoint_marker_at): Add argument.
6316 * target.c (update_current_target): Update.
6317 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6323 (target_set_permissions): Add argument.
6324 * target.c (update_current_target): Update.
6325 * remote.c (remote_set_permissions): Add 'self' argument.
6326 (remote_start_remote): Update.
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6331 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6332 (target_get_tib_address): Add argument.
6333 * target.c (update_current_target): Update.
6334 * remote.c (remote_get_tib_address): Add 'self' argument.
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6339 (target_set_trace_notes): Add argument.
6340 * target.c (update_current_target): Update.
6341 * remote.c (remote_set_trace_notes): Add 'self' argument.
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6347 (target_set_trace_buffer_size): Add argument.
6348 * target.c (update_current_target): Update.
6349 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6355 (target_set_circular_trace_buffer): Add argument.
6356 * target.c (update_current_target): Update.
6357 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6360 2014-02-19 Tom Tromey <tromey@redhat.com>
6362 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6364 (target_set_disconnected_tracing): Add argument.
6365 * target.c (update_current_target): Update.
6366 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target.h (struct target_ops)
6371 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6372 (target_get_min_fast_tracepoint_insn_len): Add argument.
6373 * target.c (update_current_target): Update.
6374 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6377 2014-02-19 Tom Tromey <tromey@redhat.com>
6379 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6381 (target_get_raw_trace_data): Add argument.
6382 * target.c (update_current_target): Update.
6383 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6389 (target_upload_trace_state_variables): Add argument.
6390 * target.c (update_current_target): Update.
6391 * remote.c (remote_upload_trace_state_variables): Add 'self'
6393 (remote_start_remote): Update.
6395 2014-02-19 Tom Tromey <tromey@redhat.com>
6397 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6399 (target_upload_tracepoints): Add argument.
6400 * target.c (update_current_target): Update.
6401 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6402 (remote_start_remote): Update.
6404 2014-02-19 Tom Tromey <tromey@redhat.com>
6406 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6407 (target_save_trace_data): Add argument.
6408 * target.c (update_current_target): Update.
6409 * remote.c (remote_save_trace_data): Add 'self' argument.
6411 2014-02-19 Tom Tromey <tromey@redhat.com>
6413 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6415 * target.h (struct target_ops)
6416 <to_get_trace_state_variable_value>: Add argument.
6417 (target_get_trace_state_variable_value): Add argument.
6418 * target.c (update_current_target): Update.
6419 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6421 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6423 2014-02-19 Tom Tromey <tromey@redhat.com>
6425 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6426 * target.h (struct target_ops) <to_trace_find>: Add argument.
6427 (target_trace_find): Add argument.
6428 * target.c (update_current_target): Update.
6429 * remote.c (remote_trace_find): Add 'self' argument.
6430 * ctf.c (ctf_trace_find): Add 'self' argument.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6435 (target_trace_stop): Add argument.
6436 * target.c (update_current_target): Update.
6437 * remote.c (remote_trace_stop): Add 'self' argument.
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6442 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6444 (target_get_tracepoint_status): Add argument.
6445 * target.c (update_current_target): Update.
6446 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6451 * target.h (struct target_ops) <to_get_trace_status>: Add
6453 (target_get_trace_status): Add argument.
6454 * target.c (update_current_target): Update.
6455 * remote.c (remote_get_trace_status): Add 'self' argument.
6456 (remote_start_remote, remote_can_download_tracepoint): Update.
6457 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target.h (struct target_ops) <to_trace_start>: Add argument.
6462 (target_trace_start): Add argument.
6463 * target.c (update_current_target): Update.
6464 * remote.c (remote_trace_start): Add 'self' argument.
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6470 (target_trace_set_readonly_regions): Add argument.
6471 * target.c (update_current_target): Update.
6472 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6475 2014-02-19 Tom Tromey <tromey@redhat.com>
6477 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6479 (target_disable_tracepoint): Add argument.
6480 * target.c (update_current_target): Update.
6481 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6483 2014-02-19 Tom Tromey <tromey@redhat.com>
6485 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6487 (target_enable_tracepoint): Add argument.
6488 * target.c (update_current_target): Update.
6489 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6491 2014-02-19 Tom Tromey <tromey@redhat.com>
6493 * target.h (struct target_ops) <to_download_trace_state_variable>:
6495 (target_download_trace_state_variable): Add argument.
6496 * target.c (update_current_target): Update.
6497 * remote.c (remote_download_trace_state_variable): Add 'self'
6500 2014-02-19 Tom Tromey <tromey@redhat.com>
6502 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6504 (target_can_download_tracepoint): Add argument.
6505 * target.c (update_current_target): Update.
6506 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6508 2014-02-19 Tom Tromey <tromey@redhat.com>
6510 * target.h (struct target_ops) <to_download_tracepoint>: Add
6512 (target_download_tracepoint): Add argument.
6513 * target.c (update_current_target): Update.
6514 * remote.c (remote_download_tracepoint): Add 'self' argument.
6516 2014-02-19 Tom Tromey <tromey@redhat.com>
6518 * target.h (struct target_ops) <to_trace_init>: Add argument.
6519 (target_trace_init): Add argument.
6520 * target.c (update_current_target): Update.
6521 * remote.c (remote_trace_init): Add 'self' argument.
6523 2014-02-19 Tom Tromey <tromey@redhat.com>
6525 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6526 * target.c (target_fileio_readlink): Add argument.
6527 * remote.c (remote_hostio_readlink): Add 'self' argument.
6528 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6533 * target.c (target_fileio_unlink): Add argument.
6534 * remote.c (remote_hostio_unlink): Add 'self' argument.
6535 (remote_file_delete): Update.
6536 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6538 2014-02-19 Tom Tromey <tromey@redhat.com>
6540 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6541 * target.c (target_fileio_close): Add argument.
6542 * remote.c (remote_hostio_close): Add 'self' argument.
6543 (remote_hostio_close_cleanup): Update.
6544 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6546 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6550 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6551 * target.c (target_fileio_pread): Add argument.
6552 * remote.c (remote_hostio_pread): Add 'self' argument.
6553 (remote_bfd_iovec_pread, remote_file_get): Update.
6554 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6558 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6559 * target.c (target_fileio_pwrite): Add argument.
6560 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6561 (remote_file_put): Update.
6562 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6564 2014-02-19 Tom Tromey <tromey@redhat.com>
6566 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6567 * target.c (target_fileio_open): Add argument.
6568 * remote.c (remote_hostio_open): Add 'self' argument.
6569 (remote_bfd_iovec_open): Add 'self' argument.
6570 (remote_file_put): Add 'self' argument.
6571 (remote_file_get): Add 'self' argument.
6572 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6578 (target_can_run_breakpoint_commands): Add argument.
6579 * target.c (update_current_target): Update.
6580 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6582 (remote_insert_breakpoint): Add 'self' argument.
6583 (remote_insert_hw_breakpoint): Add 'self' argument.
6584 (remote_can_run_breakpoint_commands): Add 'self' argument.
6586 2014-02-19 Tom Tromey <tromey@redhat.com>
6588 * target.h (struct target_ops)
6589 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6590 (target_supports_evaluation_of_breakpoint_conditions): Add
6592 * target.c (update_current_target): Update.
6593 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6595 (remote_insert_breakpoint): Add 'self' argument.
6596 (remote_insert_hw_breakpoint): Add 'self' argument.
6597 (remote_supports_cond_breakpoints): Add 'self' argument.
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6603 (target_supports_string_tracing): Add argument.
6604 * target.c (update_current_target): Update.
6605 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target.h (struct target_ops)
6610 <to_supports_disable_randomization>: Add argument.
6611 * target.c (find_default_supports_disable_randomization): Add
6613 (target_supports_disable_randomization): Add argument.
6614 (find_default_supports_disable_randomization): Add 'self'
6616 * remote.c (extended_remote_supports_disable_randomization): Add
6618 (remote_supports_disable_randomization): Add 'self' argument.
6619 (extended_remote_create_inferior): Update.
6620 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target.h (struct target_ops)
6626 <to_supports_enable_disable_tracepoint>: Add argument.
6627 (target_supports_enable_disable_tracepoint): Add argument.
6628 * target.c (update_current_target): Update.
6629 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target.h (struct target_ops) <to_supports_multi_process>: Add
6636 (target_supports_multi_process): Add argument.
6637 * target.c (update_current_target): Update.
6638 * remote.c (remote_supports_multi_process): Add 'self' argument.
6639 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6641 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6644 2014-02-19 Tom Tromey <tromey@redhat.com>
6646 * target.h (struct target_ops) <to_execution_direction>: Add
6648 (target_execution_direction): Add argument.
6649 * target.c (default_execution_direction): Add 'self' argument.
6650 * record-full.c (record_full_execution_direction): Add 'self'
6653 2014-02-19 Tom Tromey <tromey@redhat.com>
6655 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6657 (target_can_execute_reverse): Add argument.
6658 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6659 * record-full.c (record_full_can_execute_reverse): Add 'self'
6661 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6667 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6669 (target_get_ada_task_ptid): Add argument.
6670 * target.c (update_current_target): Update.
6671 (default_get_ada_task_ptid): Add 'self' argument.
6672 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6673 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6674 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6676 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6678 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6680 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6682 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6683 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6686 2014-02-19 Tom Tromey <tromey@redhat.com>
6688 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6689 (target_goto_bookmark): Add argument.
6690 * target.c (dummy_goto_bookmark): Add 'self' argument.
6691 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6696 (target_get_bookmark): Add argument.
6697 * target.c (dummy_get_bookmark): Add 'self' argument.
6698 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6702 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6704 (target_make_corefile_notes): Add argument.
6705 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6706 * procfs.c (procfs_make_note_section): Add 'self' argument.
6707 (procfs_make_note_section): Add 'self' argument.
6708 (procfs_make_note_section): Add 'self' argument.
6709 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6711 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6712 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6713 * exec.c (exec_make_note_section): Add 'self' argument.
6714 (exec_make_note_section): Add 'self' argument.
6716 2014-02-19 Tom Tromey <tromey@redhat.com>
6718 * target.h (struct target_ops) <to_find_memory_regions>: Add
6720 (target_find_memory_regions): Add argument.
6721 * target.c (dummy_find_memory_regions): Add 'self' argument.
6722 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6723 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6724 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6725 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6726 * exec. (exec_do_find_memory_regions): New global.
6727 (exec_set_find_memory_regions): Rewrite.
6728 (exec_find_memory_regions): New function.
6729 (init_exec_ops): Use exec_find_memory_regions.
6731 2014-02-19 Tom Tromey <tromey@redhat.com>
6733 * target.h (struct target_ops) <to_supports_non_stop>: Add
6735 * target.c (find_default_supports_non_stop): Add argument.
6736 (target_supports_non_stop): Add argument.
6737 (find_default_supports_non_stop): Add 'self' argument.
6738 * remote.c (remote_supports_non_stop): Add 'self' argument.
6739 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6741 2014-02-19 Tom Tromey <tromey@redhat.com>
6743 * target.h (struct target_ops) <to_log_command>: Add argument.
6744 (target_log_command): Add argument.
6745 * serial.h (serial_log_command): Add 'self' argument.
6746 * serial.c (serial_log_command): Add 'self' argument.
6748 2014-02-19 Tom Tromey <tromey@redhat.com>
6750 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6751 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6753 (target_pid_to_exec_file): Add argument.
6754 * target.c (debug_to_pid_to_exec_file): Add argument.
6755 (update_current_target): Update.
6756 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6757 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6758 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6759 (linux_handle_extended_wait): Update.
6760 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6761 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6762 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6763 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6765 2014-02-19 Tom Tromey <tromey@redhat.com>
6767 * target.h (struct target_ops) <to_rcmd>: Add argument.
6768 (target_rcmd): Add argument.
6769 * target.c (debug_to_rcmd): Add argument.
6770 (update_current_target, do_monitor_command): Update.
6771 * remote.c (remote_rcmd): Add 'self' argument.
6772 * monitor.c (monitor_rcmd): Add 'self' argument.
6774 2014-02-19 Tom Tromey <tromey@redhat.com>
6776 * windows-nat.c (windows_stop): Add 'self' argument.
6777 * target.h (struct target_ops) <to_stop>: Add argument.
6778 * target.c (target_stop): Add argument.
6779 (debug_to_stop): Add argument.
6780 (update_current_target): Update.
6781 * remote.c (remote_stop): Add 'self' argument.
6782 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6783 (gdbsim_cntrl_c): Update.
6784 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6785 * procfs.c (procfs_stop): Add 'self' argument.
6786 * nto-procfs.c (procfs_stop): Add 'self' argument.
6787 * monitor.c (monitor_stop): Add 'self' argument.
6788 (monitor_open): Update.
6789 * linux-nat.c (linux_nat_stop): Add argument.
6790 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6791 * gnu-nat.c (gnu_stop): Add 'self' argument.
6792 * darwin-nat.c (darwin_stop): Add 'self' argument.
6794 2014-02-19 Tom Tromey <tromey@redhat.com>
6796 * target.h (struct target_ops) <to_thread_name>: Add argument.
6797 * target.c (target_thread_name): Add argument.
6798 (update_current_target): Update.
6799 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6801 2014-02-19 Tom Tromey <tromey@redhat.com>
6803 * target.h (struct target_ops) <to_extra_thread_info>: Add
6805 (target_extra_thread_info): Add argument.
6806 * target.c (update_current_target): Update.
6807 * remote.c (remote_threads_extra_info): Add 'self' argument.
6808 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6810 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6811 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6812 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6814 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6816 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6818 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6821 2014-02-19 Tom Tromey <tromey@redhat.com>
6823 * target.h (struct target_ops) <to_program_signals>: Add argument.
6824 * target.c (target_program_signals): Add argument.
6825 * remote.c (remote_program_signals): Add 'self' argument.
6827 2014-02-19 Tom Tromey <tromey@redhat.com>
6829 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6830 * target.c (target_pass_signals): Add argument.
6831 * remote.c (remote_pass_signals): Add 'self' argument.
6832 (remote_start_remote): Update.
6833 * procfs.c (procfs_pass_signals): Add 'self' argument.
6834 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6835 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6836 (linux_nat_create_inferior, linux_nat_attach): Update.
6838 2014-02-19 Tom Tromey <tromey@redhat.com>
6840 * windows-nat.c (windows_can_run): Add 'self' argument.
6841 * target.h (struct target_ops) <to_can_run>: Add argument.
6842 (target_can_run): Add argument.
6843 * target.c (debug_to_can_run): Add argument.
6844 (update_current_target): Update.
6845 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6846 * inf-child.c (inf_child_can_run): Add 'self' argument.
6847 * go32-nat.c (go32_can_run): Add 'self' argument.
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * target.h (struct target_ops) <to_has_exited>: Add argument.
6852 (target_has_exited): Add argument.
6853 * target.c (debug_to_has_exited): Add argument.
6854 (update_current_target): Update.
6856 2014-02-19 Tom Tromey <tromey@redhat.com>
6858 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6860 (target_set_syscall_catchpoint): Add argument.
6861 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6863 * target.c (update_current_target): Update.
6865 2014-02-19 Tom Tromey <tromey@redhat.com>
6867 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6869 (target_remove_exec_catchpoint): Add argument.
6870 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6871 (update_current_target): Update.
6872 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6875 2014-02-19 Tom Tromey <tromey@redhat.com>
6877 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6879 (target_insert_exec_catchpoint): Add argument.
6880 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6881 (update_current_target): Update.
6882 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6885 2014-02-19 Tom Tromey <tromey@redhat.com>
6887 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6889 (target_remove_vfork_catchpoint): Add argument.
6890 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6891 (update_current_target): Update.
6892 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6895 2014-02-19 Tom Tromey <tromey@redhat.com>
6897 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6899 (target_insert_vfork_catchpoint): Add argument.
6900 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6901 (update_current_target): Update.
6902 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6909 (target_remove_fork_catchpoint): Add argument.
6910 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6911 (update_current_target): Update.
6912 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6915 2014-02-19 Tom Tromey <tromey@redhat.com>
6917 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6919 (target_insert_fork_catchpoint): Add argument.
6920 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6921 (update_current_target): Update.
6922 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6929 (target_post_startup_inferior): Add argument.
6930 * target.c (debug_to_post_startup_inferior): Add argument.
6931 (update_current_target): Update.
6932 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6934 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6936 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6938 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6940 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6942 (super_post_startup_inferior): Likewise.
6943 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6945 (super_post_startup_inferior): Likewise.
6946 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6947 Add 'self' argument.
6948 (super_post_startup_inferior): Likewise.
6950 2014-02-19 Tom Tromey <tromey@redhat.com>
6952 * target.h (struct target_ops) <to_load>: Add argument.
6953 * target.c (target_load): Add argument.
6954 (debug_to_load): Add argument.
6955 (update_current_target): Update.
6956 * remote.c (remote_load): Add 'self' argument.
6957 * remote-sim.c (gdbsim_load): Add 'self' argument.
6958 * remote-mips.c (mips_load): Add 'self' argument.
6959 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6960 * monitor.c (monitor_load): Add 'self' argument.
6961 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6963 2014-02-19 Tom Tromey <tromey@redhat.com>
6965 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6966 (target_terminal_info): Add argument.
6967 * target.c (debug_to_terminal_info): Add argument.
6968 (default_terminal_info): Likewise.
6969 * inflow.c (child_terminal_info): Add 'self' argument.
6970 * inferior.h (child_terminal_info): Add 'self' argument.
6971 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6973 2014-02-19 Tom Tromey <tromey@redhat.com>
6975 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6977 (target_terminal_save_ours): Add argument.
6978 * target.c (debug_to_terminal_save_ours): Add argument.
6979 (update_current_target): Update.
6980 * inflow.c (terminal_save_ours): Add 'self' argument.
6981 * inferior.h (terminal_save_ours): Add 'self' argument.
6983 2014-02-19 Tom Tromey <tromey@redhat.com>
6985 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6986 (target_terminal_ours): Add argument.
6987 * target.c (debug_to_terminal_ours): Add argument.
6988 (update_current_target): Update.
6989 * remote.c (remote_terminal_ours): Add 'self' argument.
6990 (remote_close): Update.
6991 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6992 * inflow.c (terminal_ours): Add 'self' argument.
6993 * inferior.h (terminal_ours): Add 'self' argument.
6994 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6996 2014-02-19 Pedro Alves <palves@redhat.com>
6997 Tom Tromey <tromey@redhat.com>
6999 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7001 (target_terminal_ours_for_output): Add argument.
7002 * target.c (debug_to_terminal_ours_for_output): Add argument.
7003 (update_current_target): Update.
7004 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7005 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7006 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7010 * target.h (struct target_ops) <to_terminal_inferior>: Add
7012 * target.c (target_terminal_inferior): Add argument.
7013 (update_current_target): Update.
7014 * remote.c (remote_terminal_inferior): Add 'self' argument.
7015 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7016 * inflow.c (terminal_inferior): Add 'self' argument.
7017 * inferior.h (terminal_inferior): Add 'self' argument.
7018 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7019 (go32_terminal_inferior): Add 'self' argument.
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7024 (target_terminal_init): Add argument.
7025 * target.c (debug_to_terminal_init): Add argument.
7026 (update_current_target): Update.
7027 * inflow.c (terminal_init_inferior): Add 'self' argument.
7028 * inferior.h (terminal_init_inferior): Add 'self' argument.
7029 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7030 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7034 * target.h (struct target_ops)
7035 <to_can_accel_watchpoint_condition>: Add argument.
7036 (target_can_accel_watchpoint_condition): Add argument.
7037 * target.c (debug_to_can_accel_watchpoint_condition): Add
7039 (update_current_target): Update.
7040 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7043 2014-02-19 Tom Tromey <tromey@redhat.com>
7045 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7047 (target_region_ok_for_hw_watchpoint): Add argument.
7048 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7049 (default_region_ok_for_hw_watchpoint): Add argument.
7050 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7051 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7053 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7055 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7057 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7059 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7061 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7063 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7064 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7066 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7067 Add 'self' argument.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7073 (target_insert_watchpoint): Add argument.
7074 * target.c (debug_to_insert_watchpoint): Add argument.
7075 (update_current_target): Update.
7076 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7077 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7078 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7079 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7080 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7081 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7083 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7084 (procfs_insert_hw_watchpoint): Add 'self' argument.
7085 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7087 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7089 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7091 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7092 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7094 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7097 2014-02-19 Tom Tromey <tromey@redhat.com>
7099 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7101 (target_remove_watchpoint): Add argument.
7102 * target.c (debug_to_remove_watchpoint): Add argument.
7103 (update_current_target): Update.
7104 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7105 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7106 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7107 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7108 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7109 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7111 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7112 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7114 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7116 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7118 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7119 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7121 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7128 (target_remove_hw_breakpoint): Add argument.
7129 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7130 (update_current_target): Update.
7131 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7132 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7134 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7135 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7137 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7140 2014-02-19 Tom Tromey <tromey@redhat.com>
7142 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7144 (target_insert_hw_breakpoint): Add argument.
7145 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7146 (update_current_target): Update.
7147 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7148 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7150 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7151 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7152 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7154 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7157 2014-02-19 Tom Tromey <tromey@redhat.com>
7159 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7161 (target_can_use_hardware_watchpoint): Add argument.
7162 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7163 (update_current_target): Update.
7164 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7166 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7168 * remote.c (remote_check_watch_resources): Add 'self' argument.
7169 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7170 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7172 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7173 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7175 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7177 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7179 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7181 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7183 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7185 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7186 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7188 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7191 2014-02-19 Tom Tromey <tromey@redhat.com>
7193 * target.h (struct target_ops) <to_post_attach>: Add argument.
7194 (target_post_attach): Add argument.
7195 * target.c (debug_to_post_attach): Add argument.
7196 (update_current_target): Update.
7197 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7198 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7199 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7200 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7201 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7203 2014-02-19 Tom Tromey <tromey@redhat.com>
7205 * windows-nat.c (windows_close): Add 'self' argument.
7206 * tracepoint.c (tfile_close): Add 'self' argument.
7207 * target.h (struct target_ops) <to_close>: Add argument.
7208 * target.c (target_close): Add argument.
7209 (update_current_target): Update.
7210 * remote.c (remote_close): Add 'self' argument.
7211 * remote-sim.c (gdbsim_close): Add 'self' argument.
7212 * remote-mips.c (mips_close): Add 'self' argument.
7213 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7214 * record-full.c (record_full_close): Add 'self' argument.
7215 * record-btrace.c (record_btrace_close): Add 'self' argument.
7216 * monitor.h (monitor_close): Add 'self' argument.
7217 * monitor.c (monitor_close): Add 'self' argument.
7218 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7219 * linux-nat.c (linux_nat_close): Add argument.
7220 * go32-nat.c (go32_close): Add 'self' argument.
7221 * exec.c (exec_close_1): Add 'self' argument.
7222 * ctf.c (ctf_close): Add 'self' argument.
7223 * corelow.c (core_close): Add 'self' argument.
7224 (core_close_cleanup): Update.
7225 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7226 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7228 2014-02-19 Tom Tromey <tromey@redhat.com>
7230 * remote.c (remote_load): New function.
7231 (init_remote_ops): Use it.
7233 2014-02-19 Tom Tromey <tromey@redhat.com>
7235 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7237 * common/linux-btrace.h (linux_supports_btrace): Update.
7238 * remote.c (remote_supports_btrace): Add "self" argument.
7239 * target-delegates.c: Rebuild.
7240 * target.c (target_supports_btrace): Remove.
7241 * target.h (struct target_ops) <to_supports_btrace>: Add
7242 target_ops argument.
7243 (target_supports_btrace): New define.
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7247 * record-full.c (record_full_beneath_to_resume_ops)
7248 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7249 (record_full_beneath_to_wait)
7250 (record_full_beneath_to_store_registers_ops)
7251 (record_full_beneath_to_store_registers)
7252 (record_full_beneath_to_xfer_partial_ops)
7253 (record_full_beneath_to_xfer_partial)
7254 (record_full_beneath_to_insert_breakpoint_ops)
7255 (record_full_beneath_to_insert_breakpoint)
7256 (record_full_beneath_to_remove_breakpoint_ops)
7257 (record_full_beneath_to_remove_breakpoint)
7258 (record_full_beneath_to_stopped_by_watchpoint)
7259 (record_full_beneath_to_stopped_data_address)
7260 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7261 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7262 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7263 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7264 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7265 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7266 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7267 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7268 (record_full_resume, record_full_wait_1)
7269 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7270 (record_full_store_registers, record_full_xfer_partial)
7271 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7272 (record_full_async, record_full_core_xfer_partial): Use target
7274 * target-delegates.c: Rebuild.
7275 * target.c (current_xfer_partial): Remove.
7276 (update_current_target): Do not INHERIT or de_fault
7277 to_insert_breakpoint, to_remove_breakpoint,
7278 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7279 to_is_async_p, to_async. Do not set to_xfer_partial field.
7280 (default_xfer_partial): Simplify.
7281 (current_xfer_partial): Remove.
7282 (target_wait, target_resume): Simplify.
7283 (find_default_can_async_p, find_default_is_async_p): Update.
7284 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7285 to_xfer_partial, to_stopped_by_watchpoint,
7286 to_stopped_data_address.
7287 (target_store_registers): Simplify.
7288 (forward_target_remove_breakpoint)
7289 (forward_target_insert_breakpoint): Remove.
7290 (target_remove_breakpoint, target_insert_breakpoint)
7291 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7292 * target.h (struct target_ops) <to_resume, to_wait,
7293 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7294 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7295 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7297 (forward_target_remove_breakpoint)
7298 (forward_target_insert_breakpoint): Remove.
7299 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7301 (record_btrace_insert_breakpoint): Delegate directly.
7303 2014-02-19 Tom Tromey <tromey@redhat.com>
7306 * target-delegates.c: New file.
7307 * target.c: Include target-delegates.c.
7308 (init_dummy_target): Call install_dummy_methods.
7309 (complete_target_initialization): Call install_delegators.
7310 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7311 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7312 * make-target-delegates: New file.
7314 2014-02-19 Tom Tromey <tromey@redhat.com>
7316 * record.c (find_record_target): Use find_target_at.
7317 * target.c (find_target_at): New function.
7318 * target.h (find_target_at): Declare.
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7322 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7324 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7326 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7327 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7329 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7331 * linux-nat.c (save_sigtrap): Update.
7332 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7333 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7334 (linux_nat_close): Update.
7335 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7337 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7339 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7340 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7341 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7342 (tmp_to_async): Add 'ops' argument.
7343 (record_full_stopped_by_watchpoint, record_full_async)
7344 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7346 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7347 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7348 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7349 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7350 (remote_is_async_p, remote_async): Add 'ops' argument.
7351 (remote_stopped_data_address): Update.
7352 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7353 * target.c (update_current_target)
7354 (find_default_can_async_p, find_default_is_async_p): Update.
7355 (init_dummy_target): Update.
7356 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7357 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7358 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7359 (target_can_async_p, target_is_async_p, target_async)
7360 (target_stopped_by_watchpoint): Update.
7362 2014-02-19 Yao Qi <yao@codesourcery.com>
7365 * gdbarch.sh: Remove startup_gdbarch.
7366 * gdbarch.c: Regenerated.
7367 * gdbarch.h: Likewise.
7369 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7371 * rl78-tdep.c (rl78_g10_register_name): New function.
7372 (rl78_return_value): Add g10 support.
7373 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7376 2014-02-17 Doug Evans <xdje42@gmail.com>
7378 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7379 (SUBDIR_GUILE_SRCS): Ditto.
7380 (scm-gsmob.o): Ditto.
7382 2014-02-17 Yao Qi <yao@codesourcery.com>
7384 * gnu-nat.c (ILL_RPC): Declare defined function.
7386 2014-02-17 Yao Qi <yao@codesourcery.com>
7388 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7389 mach_msg_type_number_t.
7390 (gnu_write_inferior): Likewise.
7392 2014-02-17 Yao Qi <yao@codesourcery.com>
7394 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7396 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7397 (inf_validate_procs, inf_signal): Likewise.
7398 (S_exception_raise_request): Likewise.
7399 (do_mach_notify_dead_name): Likewise.
7400 (steal_exc_port): Likewise.
7401 (gnu_read_inferior): Change 'copy_count''s type to
7402 mach_msg_type_number_t.
7403 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7406 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7408 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7409 flag. Adjust all users; in particular...
7410 (gnu_wait): ..., don't decrement its value in here...
7411 (gnu_create_inferior): ..., and instead set the flag in here,
7412 around the startup_inferior call, and call that one with
7413 START_INFERIOR_TRAPS_EXPECTED.
7415 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7416 (ILL_RPC): ... new macro.
7417 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7418 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7419 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7420 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7421 functions with ILL_RPC macro.
7422 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7423 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7424 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7425 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7426 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7427 (S_proc_getlogin_reply, S_proc_getsid_reply)
7428 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7429 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7430 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7431 (S_proc_getnports_reply, S_proc_is_important_reply)
7432 (S_proc_get_code_reply): New stub functions, generated with
7435 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7436 collected the type check structures.
7438 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7440 2014-02-14 Doug Evans <dje@google.com>
7442 * target.c (target_write_partial): Fix result type.
7444 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7446 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7447 the proper offsets to access fpregset_t.
7449 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7451 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7452 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7453 * h8300-tdep.c (setmachinelist): Remove global.
7454 * hppa-tdep.c (hppa_sigtramp): Remove global.
7455 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7456 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7457 * ravenscar-thread.c (update_target_observer): Remove global.
7458 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7460 2014-02-12 Tom Tromey <tromey@redhat.com>
7462 * common/rsp-low.c: Update comments.
7463 * common/rsp-low.h: Update comments.
7465 2014-02-12 Tom Tromey <tromey@redhat.com>
7467 * common/rsp-low.c (convert_ascii_to_int): Remove.
7468 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7470 2014-02-12 Tom Tromey <tromey@redhat.com>
7472 * common/rsp-low.h (unhexify): Don't declare.
7473 * common/rsp-low.c (unhexify): Remove.
7475 2014-02-12 Tom Tromey <tromey@redhat.com>
7477 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7478 * common/rsp-low.c (convert_int_to_ascii): Remove.
7480 2014-02-12 Tom Tromey <tromey@redhat.com>
7482 * common/rsp-low.h (hexify): Don't declare.
7483 * common/rsp-low.c (hexify): Remove.
7485 2014-02-12 Tom Tromey <tromey@redhat.com>
7487 * common/rsp-low.c (hexify): Never take strlen of argument.
7489 2014-02-12 Tom Tromey <tromey@redhat.com>
7491 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7492 * remote.c (extended_remote_run, remote_rcmd)
7493 (remote_download_trace_state_variable, remote_save_trace_data)
7494 (remote_set_trace_notes): Update.
7495 * tracepoint.c (encode_source_string, tfile_write_status)
7496 (tfile_write_uploaded_tsv): Update.
7498 2014-02-12 Tom Tromey <tromey@redhat.com>
7500 * tracepoint.c: Include rsp-low.h.
7501 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7502 * remote.c: Include rsp-low.h.
7503 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7504 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7505 (remote_unescape_input): Move to common/rsp-low.c.
7506 * common/rsp-low.h: New file.
7507 * common/rsp-low.c: New file.
7508 * Makefile.in (SFILES): Add common/rsp-low.c.
7509 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7510 (COMMON_OBS): Add rsp-low.o.
7511 (rsp-low.o): New target.
7513 2014-02-12 Tom Tromey <tromey@redhat.com>
7515 * utils.h: Include print-utils.h.
7516 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7517 (int_string, core_addr_to_string, core_addr_to_string_nz)
7518 (hex_string, hex_string_custom): Don't declare.
7519 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7520 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7521 (hex_string_custom, int_string, core_addr_to_string)
7522 (core_addr_to_string_nz, host_address_to_string): Move to
7523 common/print-utils.c.
7524 * common/print-utils.h: New file.
7525 * common/print-utils.c: New file
7526 * Makefile.in (SFILES): Add common/print-utils.c.
7527 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7528 (COMMON_OBS): Add print-utils.o.
7529 (print-utils.o): New target.
7531 2014-02-12 Tom Tromey <tromey@redhat.com>
7533 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7535 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7537 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7539 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7541 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7542 if a PT_IO ptrace request returns sucessfully but indicates that 0
7543 bytes were transferred.
7545 2014-02-12 Pedro Alves <palves@redhat.com>
7546 Kevin Buettner <kevinb@redhat.com>
7548 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7549 TYPE_INSTANCE_FLAG_CODE_SPACE.
7551 2014-02-12 Pedro Alves <palves@redhat.com>
7553 * h8300-tdep.c (pseudo_from_raw_register)
7554 (raw_from_pseudo_register): New functions.
7555 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7558 2014-02-12 Pedro Alves <palves@redhat.com>
7560 * h8300-tdep.c (h8300_register_sim_regno): New function.
7561 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7562 gdbarch_register_sim_regno hook.
7564 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7566 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7568 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7570 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7572 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7574 * obsd-tdep.h (obsd_init_abi): New prototype.
7575 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7576 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7577 (obsd_init_abi): New functions.
7578 * i386obsd-tdep.c: Include "obsd-tdep.h".
7579 (i386obsd_init_abi): Call obsd_init_abi.
7580 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7581 (amd64obsd_init_abi): Call obsd_init_abi.
7582 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7583 obsd-tdep.c to gdb_target_obs.
7585 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7587 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7588 double float arguments to 16-byte in the argument slots.
7590 2014-02-11 Doug Evans <xdje42@gmail.com>
7592 * configure.ac: Don't crash if pkg-config is not found and guile
7593 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7595 * configure: Regenerate.
7597 2014-02-11 Yao Qi <yao@codesourcery.com>
7599 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7600 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7601 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7602 * gnu-nat.c (gnu_xfer_memory): Likewise.
7603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7604 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7606 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7608 2014-02-11 Yao Qi <yao@codesourcery.com>
7610 * target.h (enum target_xfer_error): Rename to ...
7611 (enum target_xfer_status): ... it. New. All users updated.
7612 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7614 (TARGET_XFER_STATUS_ERROR_P): New macro.
7615 (target_xfer_error_to_string): Remove declaration.
7616 (target_xfer_status_to_string): Declare.
7617 (target_xfer_partial_ftype): Adjust it.
7618 (struct target_ops) <to_xfer_partial>: Return
7619 target_xfer_status. Add argument xfered_len. Update
7621 * target.c (target_xfer_error_to_string): Rename to ...
7622 (target_xfer_status_to_string): ... it. New. All callers
7624 (target_read_live_memory): Likewise. Call target_xfer_partial
7625 instead of target_read.
7626 (memory_xfer_live_readonly_partial): Return
7627 target_xfer_status. Add argument xfered_len.
7628 (raw_memory_xfer_partial): Likewise.
7629 (memory_xfer_partial_1): Likewise.
7630 (memory_xfer_partial): Likewise.
7631 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7632 properly. Update debug message.
7633 (default_xfer_partial, current_xfer_partial): Likewise.
7634 (target_write_partial): Likewise.
7635 (target_read_partial): Likewise. All callers updated.
7636 (read_whatever_is_readable): Likewise.
7637 (target_write_with_progress): Likewise.
7638 (target_read_alloc_1): Likewise.
7640 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7641 * auxv.c (procfs_xfer_auxv): Likewise.
7642 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7643 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7644 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7645 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7646 * corefile.c (read_memory): Adjust.
7647 * corelow.c (core_xfer_partial): Likewise.
7648 * ctf.c (ctf_xfer_partial): Likewise.
7649 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7651 (darwin_xfer_partial): Likewise.
7652 * exec.c (section_table_xfer_memory_partial): Likewise. All
7654 (exec_xfer_partial): Likewise.
7655 * exec.h (section_table_xfer_memory_partial): Update
7657 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7659 (gnu_xfer_partial): Likewise.
7660 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7661 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7662 (ia64_hpux_xfer_solib_got): Likewise.
7663 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7664 type of 'partial_len' to ULONGEST.
7665 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7666 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7667 (linux_nat_xfer_partial): Likewise.
7668 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7669 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7670 * monitor.c (monitor_xfer_memory): Likewise.
7671 (monitor_xfer_partial): Likewise.
7672 * procfs.c (procfs_xfer_partial): Likewise.
7673 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7674 * record-full.c (record_full_xfer_partial): Likewise.
7675 (record_full_core_xfer_partial): Likewise.
7676 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7677 (gdbsim_xfer_partial): Likewise.
7678 * remote.c (remote_write_bytes_aux): Likewise. All callers
7680 (remote_write_bytes, remote_read_bytes): Likewise. All
7682 (remote_flash_erase): Likewise. All callers updated.
7683 (remote_write_qxfer): Likewise. All callers updated.
7684 (remote_read_qxfer): Likewise. All callers updated.
7685 (remote_xfer_partial): Likewise.
7686 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7687 (rs6000_xfer_shared_libraries): Likewise.
7688 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7689 (sol_thread_xfer_partial): Likewise.
7690 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7691 (sparc_xfer_partial): Likewise.
7692 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7694 (spu_xfer_partial): Likewise.
7695 * spu-multiarch.c (spu_xfer_partial): Likewise.
7696 * tracepoint.c (tfile_xfer_partial): Likewise.
7697 * windows-nat.c (windows_xfer_memory): Likewise.
7698 (windows_xfer_shared_libraries): Likewise.
7699 (windows_xfer_partial): Likewise.
7700 * valprint.c: Replace 'target_xfer_error' with
7701 'target_xfer_status' in comments.
7703 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7705 Checked in by Joel Brobecker <brobecker@adacore.com>.
7706 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7708 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7710 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7711 function parameters.
7713 2014-02-10 Will Newton <will.newton@linaro.org>
7715 * elfread.c (elf_rel_plt_read): Look for a .got section if
7716 looking up .got.plt fails.
7717 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7718 on address passed to elf_gnu_ifunc_record_cache.
7719 (elf_gnu_ifunc_resolve_addr): Likewise.
7720 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7722 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7724 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7725 (X_RETTURN): New macro.
7726 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7728 * sparc64-tdep.c (sparc64_init_abi): Hook
7729 sparc_in_function_epilogue_p.
7731 2014-02-10 Gary Benson <gbenson@redhat.com>
7733 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7734 Rename name_matcher to symbol_matcher.
7736 2014-02-10 Gary Benson <gbenson@redhat.com>
7738 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7739 Use expand_symtabs_file_matcher_ftype and
7740 expand_symtabs_symbol_matcher_ftype.
7742 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7744 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7745 (struct ada_symbol_cache): New.
7746 (ada_free_symbol_cache): Forward declare.
7747 (struct ada_pspace_data): New.
7748 (ada_pspace_data_handle): New static global.
7749 (get_ada_pspace_data, ada_pspace_data_cleanup)
7750 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7751 (cache_space, cache): Delete, now folded inside struct
7753 (ada_get_symbol_cache): New function.
7754 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7756 (_initialize_ada_language): Remove initialization of cache_space.
7757 Move call to observer_attach_inferior_exit up, grouping it
7758 with the other observer registrations inside this function.
7759 Rename command to be more general. Add call to
7760 register_program_space_data_with_cleanup.
7762 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7764 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7765 ada_new_objfile_observer.
7766 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7767 (_initialize_tasks): Update uses of ada_new_objfile_observer
7768 and ada_tasks_normal_stop_observer.
7770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7772 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7773 returned by the 'Length attribute to integer.
7775 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7777 * ada-lang.c (_initialize_ada_language): Initialize
7778 cache_space obstack.
7780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7782 * ada-lang.c (HASH_SIZE): New macro.
7783 (struct cache_entry): New type.
7784 (cache_space, cache): New static globals.
7785 (ada_clear_symbol_cache, find_entry): New functions.
7786 (lookup_cached_symbol, cache_symbol): Implement.
7787 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7788 (_initialize_ada_language): Attach ada_new_objfile_observer
7789 and ada_free_objfile_observer.
7791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7793 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7794 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7795 struct block * parameter.
7796 (ada_lookup_symbol_list_worker): Constify local variable "block".
7797 Remove cast which is no longer necessary.
7799 2014-02-10 Doug Evans <xdje42@gmail.com>
7801 Add Guile as an extension language.
7802 * NEWS: Mention Guile scripting.
7803 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7804 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7805 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7806 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7807 (CLIBS): Add GUILE_LIBS.
7808 (install-guile): New rule.
7809 (guile.o): New rule.
7810 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7811 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7812 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7813 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7814 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7815 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7816 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7817 * configure.ac: New option --with-guile.
7818 * configure: Regenerate.
7819 * config.in: Regenerate.
7820 * auto-load.c: Remove #include "python/python.h". Add #include
7821 "gdb/section-scripts.h".
7822 (source_section_scripts): Handle Guile scripts.
7823 (_initialize_auto_load): Add name of Guile objfile script to
7824 scripts-directory help text.
7825 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7826 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7827 (struct breakpoint): New member scm_bp_object.
7828 * defs.h (enum command_control_type): New value guile_control.
7829 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7831 (show_user): Update comment.
7832 (_initialize_cli_cmds): Update help text for "show user". Update help
7833 text for max-user-call-depth.
7834 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7836 (multi_line_command_p): Add guile_control.
7837 (print_command_lines): Handle guile_control.
7838 (execute_control_command, recurse_read_control_structure): Ditto.
7839 (process_next_line): Recognize "guile" commands.
7840 * disasm.c (gdb_disassemble_info): Make non-static.
7841 * disasm.h: #include "dis-asm.h".
7842 (struct gdbarch): Add forward decl.
7843 (gdb_disassemble_info): Declare.
7844 * extension.c: #include "guile/guile.h".
7845 (extension_languages): Add guile.
7846 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7847 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7848 * gdbtypes.c (get_unsigned_type_max): New function.
7849 (get_signed_type_minmax): New function.
7850 * gdbtypes.h (get_unsigned_type_max): Declare.
7851 (get_signed_type_minmax): Declare.
7852 * guile/README: New file.
7853 * guile/guile-internal.h: New file.
7854 * guile/guile.c: New file.
7855 * guile/guile.h: New file.
7856 * guile/scm-arch.c: New file.
7857 * guile/scm-auto-load.c: New file.
7858 * guile/scm-block.c: New file.
7859 * guile/scm-breakpoint.c: New file.
7860 * guile/scm-disasm.c: New file.
7861 * guile/scm-exception.c: New file.
7862 * guile/scm-frame.c: New file.
7863 * guile/scm-gsmob.c: New file.
7864 * guile/scm-iterator.c: New file.
7865 * guile/scm-lazy-string.c: New file.
7866 * guile/scm-math.c: New file.
7867 * guile/scm-objfile.c: New file.
7868 * guile/scm-ports.c: New file.
7869 * guile/scm-pretty-print.c: New file.
7870 * guile/scm-safe-call.c: New file.
7871 * guile/scm-string.c: New file.
7872 * guile/scm-symbol.c: New file.
7873 * guile/scm-symtab.c: New file.
7874 * guile/scm-type.c: New file.
7875 * guile/scm-utils.c: New file.
7876 * guile/scm-value.c: New file.
7877 * guile/lib/gdb.scm: New file.
7878 * guile/lib/gdb/boot.scm: New file.
7879 * guile/lib/gdb/experimental.scm: New file.
7880 * guile/lib/gdb/init.scm: New file.
7881 * guile/lib/gdb/iterator.scm: New file.
7882 * guile/lib/gdb/printing.scm: New file.
7883 * guile/lib/gdb/types.scm: New file.
7884 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7885 (VPATH): Add $(GUILE_SRCDIR).
7886 (GUILE_DIR): New variable.
7887 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7888 (all): Add stamp-guile dependency.
7889 (stamp-guile): New rule.
7890 (clean-guile, install-guile, uninstall-guile): New rules.
7891 (install-only): Add install-guile dependency.
7892 (uninstall): Add uninstall-guile dependency.
7893 (clean): Add clean-guile dependency.
7895 2014-02-09 Doug Evans <xdje42@gmail.com>
7897 Revert this patch (which I approved, mea culpa).
7899 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7901 * Makefile.in (all-lib): Remove.
7902 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7904 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 Fix Python stack corruption.
7907 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7910 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7912 * Makefile.in (all-lib): Remove.
7913 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7915 2014-02-07 Doug Evans <dje@google.com>
7917 * extension-priv.h (extension_language_script_ops): Add comment.
7918 (extension_language_ops): Add comment.
7919 (active_ext_lang_state): Fix typo in comment.
7921 2014-02-07 Pedro Alves <palves@redhat.com>
7923 PR breakpoints/16292
7924 * infrun.c (handle_signal_stop) <signal arrives while stepping
7925 over a breakpoint>: Switch back to the stepping thread.
7927 2014-02-07 Yao Qi <yao@codesourcery.com>
7929 * target.c (target_xfer_partial): Return zero if LEN is zero.
7931 2014-02-07 Yao Qi <yao@codesourcery.com>
7933 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7934 (ld_so_xfer_auxv): Likewise.
7935 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7936 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7937 * corelow.c (core_xfer_partial): Likewise.
7938 * ctf.c (ctf_xfer_partial): Likewise.
7939 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7940 (darwin_xfer_partial): Likewise.
7941 * exec.c (exec_xfer_partial): Likewise.
7942 * gnu-nat.c (gnu_xfer_partial): Likewise.
7943 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7944 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7945 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7946 * linux-nat.c (linux_xfer_siginfo): Likewise.
7947 (linux_proc_xfer_spu): Likewise.
7948 * procfs.c (procfs_xfer_partial): Likewise.
7949 * record-full.c (record_full_xfer_partial): Likewise.
7950 (record_full_core_xfer_partial): Likewise.
7951 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7952 * remote.c (remote_write_qxfer): Likewise.
7953 (remote_write_qxfer, remote_read_qxfer): Likewise.
7954 (remote_xfer_partial): Likewise.
7955 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7956 (rs6000_xfer_shared_libraries): Likewise.
7957 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7958 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7959 (spu_xfer_partial): Likewise.
7960 * target.c (memory_xfer_partial_1): Likewise.
7961 * tracepoint.c (tfile_xfer_partial): Likewise.
7962 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7963 (windows_xfer_partial): Likewise.
7965 2014-02-07 Yao Qi <yao@codesourcery.com>
7967 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7969 (core_xfer_shared_libraries_aix): Likewise.
7970 * gdbarch.c, gdbarch.h: Regenerated.
7971 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7972 ULONGEST. Change 'len_avail' type to ULONGEST.
7973 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7974 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7976 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7978 2014-02-07 Yao Qi <yao@codesourcery.com>
7980 * corefile.c (memory_error): Get 'exception' from ERR and pass
7981 'exception' to throw_error.
7983 2014-02-06 Doug Evans <xdje42@gmail.com>
7985 * configure.ac (libpython checking): Remove all but python.o from
7986 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7987 * configure: Regenerate.
7989 * Makefile.in (SFILES): Add extension.c.
7990 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7991 (COMMON_OBS): Add extension.o.
7992 * extension.h: New file.
7993 * extension-priv.h: New file.
7994 * extension.c: New file.
7996 * python/python-internal.h: #include "extension.h".
7997 (gdbpy_auto_load_enabled): Declare.
7998 (gdbpy_apply_val_pretty_printer): Declare.
7999 (gdbpy_apply_frame_filter): Declare.
8000 (gdbpy_preserve_values): Declare.
8001 (gdbpy_breakpoint_cond_says_stop): Declare.
8002 (gdbpy_breakpoint_has_cond): Declare.
8003 (void source_python_script_for_objfile): Delete.
8004 * python/python.c: #include "extension-priv.h".
8005 Delete inclusion of "observer.h".
8006 (extension_language_python): Moved here and renamed from
8007 script_language_python in py-auto-load.c.
8008 Redefined to be of type extension_language_defn.
8009 (python_extension_script_ops): New global.
8010 (python_extension_ops): New global.
8011 (struct python_env): New member previous_active.
8012 (restore_python_env): Call restore_active_ext_lang.
8013 (ensure_python_env): Call set_active_ext_lang.
8014 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8016 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8018 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8020 (gdbpy_eval_from_control_command): Renamed from
8021 eval_python_from_control_command, made static. New arg extlang.
8022 (gdbpy_source_script) Renamed from source_python_script, made static.
8024 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8025 result to int. New arg extlang.
8026 (gdbpy_source_objfile_script): Renamed from
8027 source_python_script_for_objfile, made static. New arg extlang.
8028 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8029 static. New args extlang, extlang_printers. Change result type to
8031 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8032 static. New arg extlang. Rename arg printers to extlang_printers
8033 and change type to ext_lang_type_printers *.
8034 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8035 static. Replace argument arg with extlang, extlang_printers.
8036 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8037 (!HAVE_PYTHON, source_python_script): Delete.
8038 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8039 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8040 (!HAVE_PYTHON, start_type_printers): Delete.
8041 (!HAVE_PYTHON, apply_type_printers): Delete.
8042 (!HAVE_PYTHON, free_type_printers): Delete.
8043 (_initialize_python): Delete call to observer_attach_before_prompt.
8044 (finalize_python): Set/restore active extension language.
8045 (gdbpy_finish_initialization) Renamed from
8046 finish_python_initialization, made static. New arg extlang.
8047 (gdbpy_initialized): New function.
8048 * python/python.h: #include "extension.h". Delete #include
8049 "value.h", "mi/mi-cmds.h".
8050 (extension_language_python): Declare.
8051 (GDBPY_AUTO_FILE_NAME): Delete.
8052 (enum py_bt_status): Moved to extension.h and renamed to
8054 (enum frame_filter_flags): Moved to extension.h.
8055 (enum py_frame_args): Moved to extension.h and renamed to
8056 ext_lang_frame_args.
8057 (finish_python_initialization): Delete.
8058 (eval_python_from_control_command): Delete.
8059 (source_python_script): Delete.
8060 (apply_val_pretty_printer): Delete.
8061 (apply_frame_filter): Delete.
8062 (preserve_python_values): Delete.
8063 (gdbpy_script_language_defn): Delete.
8064 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8065 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8067 * auto-load.c: #include "extension.h".
8068 (GDB_AUTO_FILE_NAME): Delete.
8069 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8070 (script_language_gdb): Delete, moved to extension.c and renamed to
8071 extension_language_gdb.
8072 (source_gdb_script_for_objfile): Delete.
8073 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8074 (loaded_script): Change type of language member to
8075 struct extension_language_defn *.
8076 (init_loaded_scripts_info): Initialize
8077 unsupported_script_warning_printed.
8078 (maybe_add_script): Make static. Change type of language arg to
8079 struct extension_language_defn *.
8080 (clear_section_scripts): Reset unsupported_script_warning_printed.
8081 (auto_load_objfile_script_1): Rewrite to use extension language API.
8082 (auto_load_objfile_script): Make public. Remove support-compiled-in
8083 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8084 (source_section_scripts): Rewrite to use extension language API.
8085 (load_auto_scripts_for_objfile): Rewrite to use
8086 auto_load_scripts_for_objfile.
8087 (collect_matching_scripts_data): Change type of language member to
8088 struct extension_language_defn *.
8089 (auto_load_info_scripts): Change type of language arg to
8090 struct extension_language_defn *.
8091 (unsupported_script_warning_print): New function.
8092 (script_not_found_warning_print): Make static.
8093 (_initialize_auto_load): Rewrite construction of scripts-directory
8095 * auto-load.h (struct objfile): Add forward decl.
8096 (struct script_language): Delete.
8097 (struct auto_load_pspace_info): Add forward decl.
8098 (struct extension_language_defn): Add forward decl.
8099 (maybe_add_script): Delete.
8100 (auto_load_objfile_script): Declare.
8101 (script_not_found_warning_print): Delete.
8102 (auto_load_info_scripts): Update prototype.
8103 (auto_load_gdb_scripts_enabled): Declare.
8104 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8105 auto_load_python_scripts_enabled and made public.
8106 (script_language_python): Delete, moved to python.c.
8107 (gdbpy_script_language_defn): Delete.
8108 (info_auto_load_python_scripts): Update to use
8109 extension_language_python.
8111 * breakpoint.c (condition_command): Replace call to
8112 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8113 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8114 with call to breakpoint_ext_lang_cond_says_stop.
8115 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8116 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8117 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8118 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8120 (local_setattro): Print name of extension language with existing
8123 * valprint.c (val_print, value_print): Update to call
8124 apply_ext_lang_val_pretty_printer.
8125 * cp-valprint.c (cp_print_value): Update call to
8126 apply_ext_lang_val_pretty_printer.
8127 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8128 (gdbpy_apply_val_pretty_printer): Renamed from
8129 apply_val_pretty_printer. New arg extlang.
8130 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8132 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8133 extension language API.
8134 * cli/cli-script.c (execute_control_command): Update to call
8135 eval_ext_lang_from_control_command.
8137 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8138 enum ext_lang_bt_status values. Update call to
8139 apply_ext_lang_frame_filter.
8140 (mi_cmd_stack_list_locals): Ditto.
8141 (mi_cmd_stack_list_args): Ditto.
8142 (mi_cmd_stack_list_variables): Ditto.
8143 * mi/mi-main.c: Delete #include "python/python-internal.h".
8144 Add #include "extension.h".
8145 (mi_cmd_list_features): Replace reference to python internal variable
8146 gdb_python_initialized with call to ext_lang_initialized_p.
8148 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8149 Update to use enum ext_lang_frame_args. Update to call
8150 apply_ext_lang_frame_filter.
8151 * python/py-framefilter.c (extract_sym): Update to use enum
8153 (extract_value, py_print_type, py_print_value): Ditto.
8154 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8155 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8156 (py_print_frame): Ditto.
8157 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8158 New arg extlang. Update to use enum ext_lang_bt_status.
8160 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8161 finish_python_initialization. Replace with call to
8162 finish_ext_lang_initialization.
8164 * typeprint.c (do_free_global_table): Update to call
8165 free_ext_lang_type_printers.
8166 (create_global_typedef_table): Update to call
8167 start_ext_lang_type_printers.
8168 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8169 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8170 (type_print_options): Change type of global_printers from "void *"
8171 to "struct ext_lang_type_printers *".
8173 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8174 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8175 (gdbpy_preserve_values): Renamed from preserve_python_values.
8177 (!HAVE_PYTHON, preserve_python_values): Delete.
8179 * utils.c (quit_flag): Delete, moved to extension.c.
8180 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8183 * eval.c: Delete #include "python/python.h".
8184 * main.c: Delete #include "python/python.h".
8186 * defs.h: Update comment.
8188 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8192 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8194 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8197 2014-02-05 Yao Qi <yao@codesourcery.com>
8199 * remote.c (remote_pass_signals): Remove local 'buf' and use
8201 (remote_program_signals): Likewise.
8203 2014-02-05 Yao Qi <yao@codesourcery.com>
8205 * ctf.c: Include "inferior.h" and "gdbthread.h".
8206 (CTF_PID): A new macro.
8207 (ctf_open): Call inferior_appeared and add_thread_silent.
8208 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8209 (ctf_thread_alive): New function.
8210 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8212 2014-02-05 Yao Qi <yao@codesourcery.com>
8216 2013-05-24 Yao Qi <yao@codesourcery.com>
8218 * tracepoint.c (TFILE_PID): Remove.
8219 (tfile_open): Don't add thread and inferior.
8220 (tfile_close): Don't set 'inferior_ptid'. Don't call
8221 exit_inferior_silent.
8222 (tfile_thread_alive): Remove.
8223 (init_tfile_ops): Don't set field 'to_thread_alive' of
8226 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8228 * remote.c (remote_start_remote): Call remote_check_symbols even
8229 if only symbol-file (not file) has been given.
8231 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8233 * gdbarch.sh (skip_entrypoint): New callback.
8234 * gdbarch.c, gdbarch.h: Regenerate.
8235 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8236 * infrun.c (fill_in_stop_func): Likewise.
8237 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8238 (ppc_elfv2_elf_make_msymbol_special): New function.
8239 (ppc_elfv2_skip_entrypoint): Likewise.
8240 (ppc_linux_init_abi): Install them for ELFv2.
8242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8244 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8245 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8246 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8247 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8248 structures returned in GPRs.
8250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8253 offset to the stack parameter list for the ELFv2 ABI.
8255 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8257 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8258 set_gdbarch_convert_from_func_ptr_addr and
8259 set_gdbarch_elf_make_msymbol_special for ELFv1.
8260 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8261 function descriptors on ELFv1.
8262 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8263 set up r12 at function entry.
8265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8267 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8268 (struct gdbarch_tdep): New member elf_abi.
8270 * rs6000-tdep.c: Include "elf/ppc64.h".
8271 (rs6000_gdbarch_init): Detect ELF ABI version.
8273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8276 within a register pair holding a DFP 128-bit value on little-endian.
8277 (ppc64_sysv_abi_return_value_base): Likewise.
8278 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8279 (dfp_pseudo_register_write): Likewise.
8281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8284 offset on little-endian when passing _Decimal32.
8285 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8289 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8290 of the overlapped FP register within the VSX register on little-
8292 (efpr_pseudo_register_write): Likewise.
8294 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8297 offset on little-endian when passing small structures.
8299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8301 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8302 (struct ppc64_sysv_argpos): New data structure.
8303 (ppc64_sysv_abi_push_float): Remove.
8304 (ppc64_sysv_abi_push_val): New function.
8305 (ppc64_sysv_abi_push_integer): Likewise.
8306 (ppc64_sysv_abi_push_freg): Likewise.
8307 (ppc64_sysv_abi_push_vreg): Likewise.
8308 (ppc64_sysv_abi_push_param): Likewise.
8309 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8310 (ppc64_sysv_abi_return_value_base): New function.
8311 (ppc64_sysv_abi_return_value): Refactor to use it.
8313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8315 * NEWS: Document new target powerpc64le-*-linux*.
8317 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8319 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8320 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8322 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8323 register set used in ELF core dumps. Add floating-point register set.
8325 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8327 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8328 dwarf2_to_gdb[] table using symbolic constants. Adjust
8329 penultimate entry from number representing the PC register
8330 to symbolic constant representing the MDR register. Add
8331 constant for the PC register to the end of the table.
8333 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8335 * bsd-kvm.c: Include <sys/param.h>
8337 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8339 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8341 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8343 * ada-lang.h (clear_ada_sym_cache): Delete.
8345 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8347 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8349 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8351 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8352 the sigreturn register save area only if the syscall is
8355 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8357 * valops.c (value_slice): Minor reformatting.
8359 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8361 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8363 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8365 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8367 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8368 (ada_ignore_descriptive_types_p): New static global.
8369 (find_parallel_type_by_descriptive_type): Return immediately
8370 if ada_ignore_descriptive_types_p is set.
8371 (_initialize_ada_language): Register new commands "maintenance
8372 set ada", "maintenance show ada", "maintenance set ada
8373 ignore-descriptive-types" and "maintenance show ada
8374 ignore-descriptive-types".
8375 * NEWS: Add entry for new "maint ada set/show
8376 ignore-descriptive-types" commands.
8378 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8380 * record-btrace.c (record_btrace_close): Call btrace_teardown
8383 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8385 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8388 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8390 * ada-typeprint (type_is_full_subrange_of_target_type):
8392 (print_range): Add parameter bounds_prefered_p. If not set,
8393 try printing range types using the name of their base type.
8394 (print_range_type): Add parameter bounds_prefered_p.
8395 Use it in call to print_range.
8396 (print_array_type, ada_print_type): Update calls to print_range
8397 and print_range_type.
8399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8401 * ada-typeprint.c (print_array_type, print_choices, print_range)
8402 (print_range_bound, print_dynamic_range_bound, print_range_type):
8405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8407 * ada-typeprint.c (print_range): Add missing empty line
8408 after local declaration.
8410 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8412 * ada-valprint.c (print_optional_low_bound): Get index_type's
8413 target type for as long as it is a TYPE_CODE_RANGE.
8415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8417 * procfs.c (procfs_make_note_section): Remove assertion and
8420 2014-01-24 Yao Qi <yao@codesourcery.com>
8422 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8423 * corelow.c (get_core_siginfo): Likewise.
8425 2014-01-24 Yao Qi <yao@codesourcery.com>
8427 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8428 ULONGEST. Don't check 'len' is negative.
8429 (remote_write_bytes): Change type of 'len' to ULONGEST.
8431 2014-01-23 Tom Tromey <tromey@redhat.com>
8434 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8435 Handle exception from frame.block.
8436 (FrameVars.fetch_frame_locals): Likewise.
8438 2014-01-23 Tom Tromey <tromey@redhat.com>
8441 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8442 on a NULL pointer. Move "goto error" to correct place.
8444 2014-01-23 Tom Tromey <tromey@redhat.com>
8447 * python/py-framefilter.c (apply_frame_filter): Call
8448 ensure_python_env after computing gdbarch.
8450 2014-01-23 Yao Qi <yao@codesourcery.com>
8452 * target.c (raw_memory_xfer_partial): Change argument type
8453 from void * to gdb_byte *.
8454 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8456 2014-01-22 Doug Evans <dje@google.com>
8458 New gdbserver option --debug-format=timestamp.
8461 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8463 * syscalls/s390x-linux.xml: New file.
8464 * syscalls/s390-linux.xml: New file.
8465 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8466 (XML_SYSCALL_FILENAME_S390X): Likewise.
8467 (op_svc): New enum value for SVC opcode.
8468 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8469 (s390_linux_get_syscall_number): New function.
8470 (s390_gdbarch_init): Register '*get_syscall_number' and the
8471 syscall xml file name.
8472 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8473 "s390-linux.xml" and "s390x-linux.xml".
8474 * NEWS: Announce new feature.
8476 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8478 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8480 2014-01-22 Pedro Alves <palves@redhat.com>
8482 * xtensa-config.c: Include defs.h.
8484 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8486 * common/common-utils.h: Add "ARI:" comment beside __func__
8489 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8491 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8492 documentation a bit.
8494 2014-01-21 Roland McGrath <mcgrathr@google.com>
8496 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8497 * configure: Regenerate.
8498 * aclocal.m4: Regenerate.
8499 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8500 New substituted variables.
8501 (install-strip): New target.
8502 (INSTALL_SCRIPT): New substituted variable.
8503 (FLAGS_TO_PASS): Add it.
8504 (install-only): Use $(INSTALL_SCRIPT) rather than
8505 $(INSTALL_PROGRAM) for gcore.
8507 2014-01-20 Tom Tromey <tromey@redhat.com>
8509 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8512 2014-01-20 Tom Tromey <tromey@redhat.com>
8514 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8515 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8516 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8517 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8518 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8519 (struct cmd_list_element) <flags>: Remove.
8520 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8521 doc_allocated>: New fields.
8522 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8524 * maint.c (maintenance_do_deprecate): Update.
8525 * top.c (execute_command): Update.
8527 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8529 * xtensa-linux-nat.c: Include asm/ptrace.h.
8531 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8533 * Makefile.in (SFILES): Add d-support.c.
8534 (COMMON_OBS): Add d-support.o.
8535 * d-lang.h (d_parse_symbol): Add comment, now defined in
8537 * d-lang.c (parse_call_convention)
8538 (parse_attributes, parse_function_types)
8539 (parse_function_args, parse_type, parse_identifier)
8540 (call_convention_p, d_parse_symbol): Move functions to ...
8541 * d-support.c: ... New file.
8543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8545 * d-lang.h (d_parse_symbol): Add declaration.
8546 * d-lang.c (extract_identifiers)
8547 (extract_type_info): Remove functions.
8548 (parse_call_convention, parse_attributes)
8549 (parse_function_types, parse_function_args)
8550 (parse_type, parse_identifier, call_convention_p)
8551 (d_parse_symbol): New functions.
8552 (d_demangle): Use d_parse_symbol to demangle D symbols.
8554 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8556 * d-lang.h (struct builtin_d_type): New data type.
8557 (builtin_d_type): Add declaration.
8558 * d-lang.c (d_language_arch_info, build_d_types)
8559 (builtin_d_type): New functions.
8560 (enum d_primitive_types): New data type.
8561 (d_language_defn): Change c_language_arch_info to
8562 d_language_arch_info.
8563 (d_type_data): New static variable.
8564 (_initialize_d_language): Initialize d_type_data.
8566 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8568 * d-lang.h (d_main_name): Add declaration.
8569 * d-lang.c (d_main_name): New function.
8570 * symtab.c (find_main_name): Add call to d_main_name.
8572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8574 * d-lang.c (d_language_defn): Change macro_expansion_c to
8577 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8579 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8581 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8583 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8584 gdb_exception" declaration.
8585 * remote.c (getpkt_or_notif_sane): Likewise.
8587 2014-01-17 Doug Evans <dje@google.com>
8589 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8590 function, contents of dirnames_to_char_ptr_vec_append moved here.
8591 (delim_string_to_char_ptr_vec): New function.
8592 (dirnames_to_char_ptr_vec_append): Rewrite.
8593 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8595 2014-01-17 Doug Evans <dje@google.com>
8597 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8599 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8600 #include "common-utils.h".
8601 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8602 * common/vec.h (VEC_ASSERT_PASS): Update.
8603 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8604 (MACH_CHECK_ERROR): Update.
8606 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8608 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8610 * gdbarch.h: Regenerate.
8612 2014-01-16 Tom Tromey <tromey@redhat.com>
8614 * value.c (struct value) <regnum>: Move earlier.
8616 2014-01-16 Tom Tromey <tromey@redhat.com>
8618 * remote.c (extended_remote_create_inferior): Rename from
8619 extended_remote_create_inferior_1. Add "ops" argument. Remove
8622 2014-01-16 Pedro Alves <palves@redhat.com>
8624 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8625 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8628 2014-01-16 Doug Evans <dje@google.com>
8630 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8634 * btrace.h (btrace_thread_flag): New.
8635 (struct btrace_thread_info) <flags>: New.
8636 * record-btrace.c (record_btrace_resume_thread)
8637 (record_btrace_find_thread_to_move, btrace_step_no_history)
8638 (btrace_step_stopped, record_btrace_start_replaying)
8639 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8640 (record_btrace_find_resume_thread): New.
8641 (record_btrace_resume, record_btrace_wait): Extend.
8642 (record_btrace_can_execute_reverse): New.
8643 (record_btrace_open): Fail in non-stop mode.
8644 (record_btrace_set_replay): Split into this, ...
8645 (record_btrace_stop_replaying): ... this, ...
8646 (record_btrace_clear_histories): ... and this.
8647 (init_record_btrace_ops): Init to_can_execute_reverse.
8648 * NEWS: Announce it.
8650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8652 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8653 (forward_target_decr_pc_after_break)
8654 (target_decr_pc_after_break): New.
8655 * target.c (forward_target_decr_pc_after_break)
8656 (target_decr_pc_after_break): New.
8657 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8658 instead of gdbarch_decr_pc_after_break.
8659 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8660 instead of gdbarch_decr_pc_after_break.
8661 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8662 instead of gdbarch_decr_pc_after_break.
8663 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8664 instead of gdbarch_decr_pc_after_break.
8665 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8666 instead of gdbarch_decr_pc_after_break.
8667 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8668 instead of gdbarch_decr_pc_after_break.
8670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8672 * btrace.c: Include regcache.h.
8673 (btrace_add_pc): New.
8674 (btrace_enable): Call btrace_add_pc.
8675 (btrace_is_empty): New.
8676 * btrace.h (btrace_is_empty): New.
8677 * record-btrace.c (require_btrace, record_btrace_info): Call
8680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8682 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8683 Support delta reads.
8684 (linux_disable_btrace): Change return type.
8685 * common/linux-btrace.h (linux_read_btrace): Change parameters
8686 and return type to allow error reporting. Update users.
8687 (linux_disable_btrace): Change return type. Update users.
8688 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8690 (btrace_error): New.
8691 (btrace_block) <begin>: Comment on BEGIN == 0.
8692 * btrace.c (btrace_compute_ftrace): Start from the end of
8694 (btrace_stitch_trace, btrace_clear_history): New.
8695 (btrace_fetch): Read delta trace, return if replaying.
8696 (btrace_clear): Move clear history code to btrace_clear_history.
8697 (parse_xml_btrace): Throw an error if parsing failed.
8698 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8699 and return type to allow error reporting.
8700 (target_read_btrace): Change parameters and return type to allow
8702 * target.c (target_read_btrace): Update.
8703 * remote.c (remote_read_btrace): Support delta reads. Pass
8705 * NEWS: Announce it.
8707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8709 * record.h (record_btrace_frame_unwind)
8710 (record_btrace_tailcall_frame_unwind): New declarations.
8711 * dwarf2-frame: Include record.h
8712 (dwarf2_frame_cfa): Throw an error for btrace frames.
8713 * record-btrace.c: Include hashtab.h.
8714 (btrace_get_bfun_name): New.
8715 (btrace_call_history): Call btrace_get_bfun_name.
8716 (struct btrace_frame_cache): New.
8718 (bfcache_hash, bfcache_eq, bfcache_new): New.
8719 (btrace_get_frame_function): New.
8720 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8721 (record_btrace_frame_this_id): Compute own id.
8722 (record_btrace_frame_prev_register): Provide PC, throw_error
8723 for all other registers.
8724 (record_btrace_frame_sniffer): Detect btrace frames.
8725 (record_btrace_tailcall_frame_sniffer): New.
8726 (record_btrace_frame_dealloc_cache): New.
8727 (record_btrace_frame_unwind): Add new functions.
8728 (record_btrace_tailcall_frame_unwind): New.
8729 (_initialize_record_btrace): Allocate cache.
8730 * btrace.c (btrace_clear): Call reinit_frame_cache.
8731 * NEWS: Announce it.
8733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8735 * record-btrace.c (record_btrace_set_replay)
8736 (record_btrace_goto_begin, record_btrace_goto_end)
8737 (record_btrace_goto): New.
8738 (init_record_btrace_ops): Initialize them.
8739 * NEWS: Announce it.
8741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8743 * record-btrace.c (record_btrace_find_new_threads)
8744 (record_btrace_thread_alive): New.
8745 (init_record_btrace_ops): Initialize to_find_new_threads and
8748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8750 * record-btrace.c (record_btrace_resume): New.
8751 (record_btrace_wait): New.
8752 (init_record_btrace_ops): Initialize to_wait and to_resume.
8754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8756 * record-btrace.c (record_btrace_xfer_partial)
8757 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8758 (record_btrace_allow_memory_access): New.
8759 (init_record_btrace_ops): Initialize new methods.
8760 * target.c (raw_memory_xfer_partial): Bail out if target reports
8761 that this memory is not available.
8763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8765 * target.h (target_ops) <to_insert_breakpoint>
8766 <to_remove_breakpoint>: Add target_ops parameter.
8767 (forward_target_insert_breakpoint): New.
8768 (forward_target_remove_breakpoint): New.
8769 (memory_remove_breakpoint, memory_insert_breakpoint):
8770 Add target_ops parameter.
8771 * target.c (target_insert_breakpoint): Split into this and ...
8772 (forward_target_insert_breakpoint): ... this.
8773 (target_remove_breakpoint): Split into this and ...
8774 (forward_target_remove_breakpoint): ... this.
8775 (debug_to_insert_breakpoint): Add target_ops parameter.
8776 Call forward_target_insert_breakpoint.
8777 (debug_to_remove_breakpoint): Add target_ops parameter.
8778 Call forward_target_remove_breakpoint.
8779 (update_current_target): Do not inherit or default to_insert_breakpoint
8780 and to_remove_breakpoint.
8781 * corelow.c (ignore): Add target_ops parameter.
8782 * exec.c (ignore): Add target_ops parameter.
8783 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8784 Add target_ops parameter.
8785 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8786 Add target_ops parameter.
8787 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8788 Add target_ops parameter.
8789 * record-full.c (record_full_beneath_to_insert_breakpoint)
8790 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8791 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8792 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8793 (record_full_core_remove_breakpoint): Add target_ops parameter.
8795 (record_full_beneath_to_insert_breakpoint_ops)
8796 (record_full_beneath_to_remove_breakpoint_ops)
8797 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8798 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8799 tmp_to_remove_breakpoint_ops,
8800 record_full_beneath_to_insert_breakpoint_ops, and
8801 record_full_beneath_to_remove_breakpoint_ops.
8802 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8803 (m32r_remove_breakpoint): Add target_ops parameter.
8804 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8805 Add target_ops parameter.
8806 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8807 Add target_ops parameter.
8809 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8810 Markus Metzger <markus.t.metzger@intel.com>
8812 * record-btrace.c: Include frame-unwind.h.
8813 (record_btrace_frame_unwind_stop_reason)
8814 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8815 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8817 (init_record_btrace_ops): Install it.
8819 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8821 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8824 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8826 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8829 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8831 * frame-unwind.c: Include target.h.
8832 (frame_unwind_try_unwinder): New function with code from ...
8833 (frame_unwind_find_by_frame): ... here. New variable
8834 unwinder_from_target, call also target_get_unwinder)
8835 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8836 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8837 * target.h (struct target_ops): New fields to_get_unwinder and
8838 to_get_tailcall_unwinder.
8839 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8843 * record-btrace.c (record_btrace_fetch_registers)
8844 (record_btrace_store_registers)
8845 (record_btrace_to_prepare_to_store): New.
8846 (init_record_btrace_ops): Add the above.
8848 2014-01-16 Tom Tromey <tromey@redhat.com>
8850 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8851 * target.h (struct target_ops) <to_prepare_to_store>: Add
8853 (target_prepare_to_store): Add argument.
8854 * target.c (debug_to_prepare_to_store): Add argument.
8855 (update_current_target): Update.
8856 * remote.c (remote_prepare_to_store): Add 'self' argument.
8857 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8858 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8859 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8860 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8862 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8863 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8864 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8865 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8866 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8870 * btrace.h (replay) <replay>: New.
8871 (btrace_is_replaying): New.
8872 * btrace.c (btrace_clear): Free replay iterator.
8873 (btrace_is_replaying): New.
8874 * record-btrace.c (record_btrace_is_replaying): New.
8875 (record_btrace_info): Print insn number if replaying.
8876 (record_btrace_insn_history): Start at replay position.
8877 (record_btrace_call_history): Start at replay position.
8878 (init_record_btrace_ops): Init to_record_is_replaying.
8880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8882 * record-btrace.c (record_btrace_insn_history_range): Include
8884 (record_btrace_insn_history_from): Adjust range.
8885 (record_btrace_call_history_range): Include
8887 (record_btrace_call_history_from): Adjust range.
8888 * NEWS: Announce changes.
8890 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8892 * record.h (enum record_print_flag)
8893 <record_print_indent_calls>: New.
8894 * record.c (get_call_history_modifiers): Recognize /c modifier.
8895 (_initialize_record): Document /c modifier.
8896 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8897 Reorder fields. Optionally indent the function name. Update
8899 * NEWS: Announce changes.
8901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8903 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8907 * btrace.c (ftrace_new_function): Start counting at one.
8908 * record-btrace.c (record_btrace_info): Adjust number of calls
8910 * NEWS: Announce it.
8912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8914 * record-btrace.c (btrace_call_history_insn_range): Print
8915 insn range as [begin, end].
8917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8919 * btrace.h (struct btrace_func_link): New.
8920 (enum btrace_function_flag): New.
8921 (struct btrace_inst): Rename to ...
8922 (struct btrace_insn): ...this. Update all users.
8923 (struct btrace_func) <ibegin, iend>: Remove.
8924 (struct btrace_func_link): New.
8925 (struct btrace_func): Rename to ...
8926 (struct btrace_function): ...this. Update all users.
8927 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8928 (number, level, flags>: New.
8929 (struct btrace_insn_iterator): Rename to ...
8930 (struct btrace_insn_history): ...this.
8932 (struct btrace_insn_iterator, btrace_call_iterator): New.
8933 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8934 (struct btrace_target_info) <begin, end, level>
8935 <insn_history, call_history>: New.
8936 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8937 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8938 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8939 (btrace_call_number, btrace_call_begin, btrace_call_end)
8940 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8941 (btrace_find_function_by_number, btrace_set_insn_history)
8942 (btrace_set_call_history): New.
8943 * btrace.c (btrace_init_insn_iterator)
8944 (btrace_init_func_iterator, compute_itrace): Remove.
8945 (ftrace_print_function_name, ftrace_print_filename)
8946 (ftrace_skip_file): Change
8948 (ftrace_init_func): Remove.
8949 (ftrace_debug): Use new btrace_function fields.
8950 (ftrace_function_switched): Also consider gaining and
8951 losing symbol information).
8952 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8953 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8954 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8956 (ftrace_new_function): Move. Remove debug print.
8957 (ftrace_update_lines, ftrace_update_insns): New.
8958 (ftrace_update_function): Check for call, ret, and jump.
8959 (compute_ftrace): Renamed to ...
8960 (btrace_compute_ftrace): ...this. Rewritten to compute call
8962 (btrace_fetch, btrace_clear): Updated.
8963 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8964 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8965 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8966 (btrace_call_number, btrace_call_begin, btrace_call_end)
8967 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8968 (btrace_find_function_by_number, btrace_set_insn_history)
8969 (btrace_set_call_history): New.
8970 * record-btrace.c (require_btrace): Use new btrace thread
8972 (record_btrace_info, btrace_insn_history)
8973 (record_btrace_insn_history, record_btrace_insn_history_range):
8974 Use new btrace thread info fields and new iterator.
8975 (btrace_func_history_src_line): Rename to ...
8976 (btrace_call_history_src_line): ...this. Use new btrace
8978 (btrace_func_history): Rename to ...
8979 (btrace_call_history): ...this. Use new btrace thread info
8980 fields and new iterator.
8981 (record_btrace_call_history, record_btrace_call_history_range):
8982 Use new btrace thread info fields and new iterator.
8984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8986 * frame.h (frame_id_build_unavailable_stack_special): New.
8987 * frame.c (frame_id_build_unavailable_stack_special): New.
8989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8991 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8992 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8993 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8995 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8996 (i386_insn_is_jump, i386_jmp_p): New.
8997 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8998 insn_is_jump to gdbarch.
8999 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9000 * gdbarch.h: Regenerated.
9001 * gdbarch.c: Regenerated.
9002 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9003 (default_insn_is_jump): New.
9004 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9005 (default_insn_is_jump): New.
9007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9009 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9011 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9012 (btrace_read_type) <btrace_read_new>: Change to ...
9013 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9017 * common/linux-btrace.c (linux_read_btrace): Free trace from
9020 2014-01-15 Doug Evans <dje@google.com>
9022 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9025 2014-01-15 Tom Tromey <tromey@redhat.com>
9027 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9028 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9029 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9030 (set_objfile_main_name): New function.
9031 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9032 language_of_main>: New fields.
9033 (set_objfile_main_name): Declare.
9034 * symtab.c (find_main_name): Loop over objfiles to find the main
9036 (set_main_name): Now static.
9037 (get_main_info): Add comment.
9038 * symtab.h (set_main_name): Don't declare.
9040 2014-01-15 Tom Tromey <tromey@redhat.com>
9042 * symtab.c (main_progspace_key): New global.
9043 (struct main_info): New.
9044 (name_of_main, language_of_main): Remove.
9045 (get_main_info, main_info_cleanup): New function.
9046 (set_main_name, main_name, main_language): Use get_main_info.
9047 (_initialize_symtab): Initialize main_progspace_key.
9049 2014-01-15 Tom Tromey <tromey@redhat.com>
9051 * dbxread.c (process_one_symbol): Update.
9052 * dwarf2read.c (read_partial_die): Update.
9053 * symfile.c (set_initial_language): Call main_language.
9054 * symtab.c (language_of_main): Now static.
9055 (set_main_name): Add 'lang' parameter.
9056 (find_main_name): Update.
9057 (main_language): New function.
9058 (symtab_observer_executable_changed): Update.
9059 * symtab.h (set_main_name): Update.
9060 (language_of_main): Remove.
9061 (main_language): Declare.
9063 2014-01-15 Tom Tromey <tromey@redhat.com>
9065 * symfile.c (init_entry_point_info): Use new "initialized" field.
9067 * objfiles.h (struct entry_point) <initialized>: New field.
9068 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9069 (struct objfile) <ei>: ...here. Remove.
9070 * objfiles.c (entry_point_address_query): Update.
9072 2014-01-15 Tom Tromey <tromey@redhat.com>
9074 * objfiles.c (entry_point_address_query): Relocate entry point
9076 (objfile_relocate1): Do not relocate entry point address.
9077 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9078 <the_bfd_section_index>: New field.
9079 * symfile.c (init_entry_point_info): Find the entry point's
9082 2014-01-15 Tom Tromey <tromey@redhat.com>
9084 * solib-frv.c (enable_break): Use entry_point_address_query.
9086 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9088 * NEWS: Add note on improved process record-replay on
9089 arm*-linux* targets.
9091 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9093 * arm-tdep.c (enum arm_record_result): New enum.
9094 (arm_record_unsupported_insn): New function.
9095 (arm_record_coproc_data_proc): Removed.
9096 (thumb2_record_ld_st_multiple): New function.
9097 (thumb2_record_ld_st_dual_ex_tbb): New function.
9098 (thumb2_record_data_proc_sreg_mimm): New function.
9099 (thumb2_record_ps_dest_generic): New function.
9100 (thumb2_record_branch_misc_cntrl): New function.
9101 (thumb2_record_str_single_data): New function.
9102 (thumb2_record_ld_mem_hints): New function.
9103 (thumb2_record_ld_word): New function.
9104 (thumb2_record_lmul_lmla_div): New function.
9105 (thumb2_record_decode_insn_handler): New function.
9106 (decode_insn): Add thumb32 instruction handlers.
9108 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9110 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9111 (struct arm_linux_record_tdep): Declare.
9112 (arm_canonicalize_syscall): New function.
9113 (arm_all_but_pc_registers_record): New function.
9114 (arm_linux_syscall_record): New function.
9115 (arm_linux_init_abi): Add syscall recording constructs.
9116 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9117 decoding. (arm_record_coproc_data_proc): Update arm syscall
9119 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9120 <arm_syscall_record>: New field.
9121 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9126 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9127 register for push instruction recording.
9129 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9131 * arm-tdep.c (thumb_record_misc): Update to correct logical
9132 error while recording ldm, ldmia and pop instructions.
9134 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9136 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9138 2014-01-15 Pedro Alves <palves@redhat.com>
9140 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9141 (go32_resume, go32_fetch_registers, store_register)
9142 (go32_store_registers, go32_prepare_to_store)
9143 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9144 (go32_create_inferior, go32_can_run, go32_terminal_init)
9145 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9148 2014-01-15 Tom Tromey <tromey@redhat.com>
9150 * target.h (async_callback_ftype): New typedef.
9151 (struct target_ops) <to_async>: Use it.
9153 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9155 * python/py-value.c (get_field_type): Remove unnecessary curly
9156 braces for single-statement if block.
9158 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9160 * python/py-type.c (convert_field): Add missing empty line
9163 2014-01-14 Doug Evans <dje@google.com>
9165 * symfile.h (expand_symtabs_matching): Renamed from
9166 expand_partial_symbol_names. Update prototype.
9167 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9168 * symfile.c (expand_symtabs_matching): Renamed from
9169 expand_partial_symbol_names. New args file_matcher, kind.
9170 Rename arg fun to symbol_matcher.
9171 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9172 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9173 ada_expand_partial_symbol_name.
9174 (ada_make_symbol_completion_list): Update to call
9175 expand_symtabs_matching.
9176 (ada_add_global_exceptions): Call expand_symtabs_matching.
9177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9178 call map_symbol_filenames.
9179 * symtab.c (sources_info): Update to call map_symbol_filenames.
9180 (search_symbols): Call expand_symtabs_matching.
9181 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9182 (default_make_symbol_completion_list_break_on): Update to call
9183 expand_symtabs_matching.
9184 (make_source_files_completion_list): Update to call
9185 map_symbol_filenames.
9187 2014-01-14 Doug Evans <dje@google.com>
9189 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9190 (expand_symtabs_symbol_matcher_ftype): New typedef.
9191 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9193 * symfile.c (expand_partial_symbol_names): Update to use
9194 expand_symtabs_symbol_matcher_ftype.
9195 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9196 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9197 Arg name_matcher renamed to symbol_matcher.
9198 * psymtab.c (recursively_search_psymtabs): Update to use
9199 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9201 (expand_symtabs_matching_via_partial): Update to use
9202 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9203 Arg name_matcher renamed to symbol_matcher.
9205 2014-01-14 Doug Evans <dje@google.com>
9207 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9208 (map_partial_symbol_filenames): Ditto.
9209 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9210 (map_partial_symbol_filenames): Ditto.
9211 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9212 (map_partial_symbol_filenames): Ditto.
9213 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9214 (map_partial_symbol_filenames): Ditto.
9215 * symtab.c: Delete #include "psymtab.h".
9217 2014-01-14 Pedro Alves <palves@redhat.com>
9218 Tom Tromey <tromey@redhat.com>
9220 * infrun.c (use_displaced_stepping): Use find_record_target
9221 instead of RECORD_IS_USED.
9222 (adjust_pc_after_break): Use record_full_is_used instead of
9224 * record-btrace.c (record_btrace_open): Call record_preopen
9225 instead of checking RECORD_IS_USED.
9226 * record-full.c (record_full_shortname)
9227 (record_full_core_shortname): New globals.
9228 (record_full_is_used): New function.
9229 (find_full_open): Call record_preopen instead of checking
9231 (init_record_full_ops): Set the target's shortname to
9232 record_full_shortname.
9233 (init_record_full_core_ops): Set the target's shortname to
9234 record_full_core_shortname.
9235 * record-full.h (record_full_is_used): Declare.
9236 * record.c (find_record_target): Make extern.
9237 (record_preopen): New function.
9238 * record.h (RECORD_IS_USED): Delete macro.
9239 (find_record_target, record_preopen): Declare functions.
9241 2014-01-14 Yao Qi <yao@codesourcery.com>
9243 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9244 'len''s type to ULONGEST.
9245 (core_xfer_shared_libraries_aix): Likewise.
9246 * gdbarch.c, gdbarch.h: Regenerated.
9247 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9248 Change type of 'len' to ULONGEST.
9249 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9250 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9252 2014-01-14 Yao Qi <yao@codesourcery.com>
9254 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9255 type of 'len' to ULONGEST.
9256 (linux_xfer_osdata_processgroups): Likewise.
9257 (linux_xfer_osdata_threads): Likewise.
9258 (linux_xfer_osdata_fds): Likewise.
9259 (linux_xfer_osdata_isockets): Likewise.
9260 (linux_xfer_osdata_shm): Likewise.
9261 (linux_xfer_osdata_sem): Likewise.
9262 (linux_xfer_osdata_msg): Likewise.
9263 (linux_common_xfer_osdata): Likewise.
9264 (struct osdata_type) <getter>: Likewise.
9265 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9268 2014-01-14 Yao Qi <yao@codesourcery.com>
9270 * target.h (target_xfer_partial_ftype): Update.
9271 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9273 * aix-thread.c (aix_thread_xfer_partial): Change type of
9274 argument 'len' to ULONGEST.
9275 * auxv.c (procfs_xfer_auxv): Likewise.
9276 (ld_so_xfer_auxv): Likewise.
9277 (memory_xfer_auxv): Likewise.
9278 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9279 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9280 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9281 * corelow.c (core_xfer_partial): Likewise.
9282 * ctf.c (ctf_xfer_partial): Likewise.
9283 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9285 (darwin_read_dyld_info): Likewise.
9286 (darwin_xfer_partial): Likewise.
9287 * exec.c (section_table_xfer_memory_partial): Likewise.
9288 (exec_xfer_partial): Likewise.
9289 * exec.h (section_table_xfer_memory_partial): Update
9291 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9292 instead of plongest.
9293 (gnu_xfer_partial): Likewise.
9294 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9295 (ia64_hpux_xfer_solib_got): Likewise.
9296 (ia64_hpux_xfer_partial): Likewise.
9297 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9298 * inf-ptrace.c (inf_ptrace_xfer_partial):
9299 * inf-ttrace.c (inf_ttrace_xfer_partial):
9300 * linux-nat.c (linux_xfer_siginfo): Likewise.
9301 (linux_nat_xfer_partial): Likewise.
9302 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9303 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9304 * monitor.c (monitor_xfer_memory): Likewise.
9305 (monitor_xfer_partial): Likewise.
9306 * procfs.c (procfs_xfer_partial): Likewise.
9307 * record-full.c (record_full_xfer_partial): Likewise.
9308 (record_full_core_xfer_partial): Likewise.
9309 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9310 instead of plongest.
9311 (gdbsim_xfer_partial): Likewise.
9312 * remote.c (remote_xfer_partial): Likewise.
9313 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9314 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9316 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9317 (rs6000_xfer_shared_libraries): Likewise.
9318 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9319 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9320 (sparc_xfer_partial): Likewise.
9321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9322 (spu_xfer_partial): Likewise.
9323 * spu-multiarch.c (spu_xfer_partial): Likewise.
9324 * target.c (target_read_live_memory): Likewise.
9325 (memory_xfer_live_readonly_partial): Likewise.
9326 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9327 (target_xfer_partial, default_xfer_partial): Likewise.
9328 (current_xfer_partial): Likewise.
9329 * tracepoint.c (tfile_xfer_partial): Likewise.
9330 * windows-nat.c (windows_xfer_memory): Likewise. Call
9331 pulongest instead of plongest.
9332 (windows_xfer_partial): Likewise.
9333 (windows_xfer_shared_libraries): Likewise.
9335 2014-01-14 Yao Qi <yao@codesourcery.com>
9337 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9338 target_xfer_partial_ftype.
9340 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9344 * valops.c (value_struct_elt_bitpos): New function
9345 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9346 object to 'None' if the field name is an empty string ("").
9347 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9348 attribute to look for a field when 'name' is 'None'.
9349 (get_field_type): New function
9351 2014-01-13 Doug Evans <dje@google.com>
9354 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9355 (try_open_dwop_file): Ditto.
9356 * gdb_bfd.c: #include "vec.h".
9357 (bfdp): New typedef.
9358 (struct gdb_bfd_data): New member included_bfds.
9359 (gdb_bfd_unref): Unref all included bfds.
9360 (gdb_bfd_record_inclusion): New function.
9361 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9363 2014-01-13 Tom Tromey <tromey@redhat.com>
9365 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9367 2014-01-13 Tom Tromey <tromey@redhat.com>
9369 * defs.h (use_windows): Remove.
9370 * gdb.c (main): Update.
9371 * main.c (captured_main, gdb_main): Update.
9372 * main.h (struct captured_main_args) <use_windows>: Remove.
9373 * top.c (use_windows): Remove.
9375 2014-01-13 Tom Tromey <tromey@redhat.com>
9377 * defs.h (deprecated_flush_hook): Remove.
9379 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9382 * linux-thread-db.c (try_thread_db_load): Add parameter
9383 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9384 (try_thread_db_load_from_pdir_1): Move it there from here.
9385 (try_thread_db_load_from_sdir): Update caller.
9386 (try_thread_db_load_from_dir): Move it there from here.
9388 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9390 * regformats/regdat.sh: Always rewrite the register file.
9392 2014-01-13 Pedro Alves <palves@redhat.com>
9394 * Makefile.in (CHECK_HEADERS): New variable.
9395 (check-headers:): New rule.
9397 2014-01-13 Tom Tromey <tromey@redhat.com>
9399 * cli/cli-setshow.c (do_set_command): Update.
9400 * defs.h (deprecated_set_hook): Remove.
9401 * top.c (deprecated_set_hook): Remove.
9403 2014-01-13 Pedro Alves <palves@redhat.com>
9405 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9406 the tracepoint if the PC is a pseudo-register.
9408 2014-01-13 Tom Tromey <tromey@redhat.com>
9410 * defs.h (XCALLOC): Remove.
9411 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9412 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9413 * dwarf2loc.c (allocate_piece_closure): Likewise.
9414 * elfread.c (elf_symfile_segments): Likewise.
9415 (elf_symfile_segments): Likewise.
9416 * gdbtypes.c (copy_type_recursive): Likewise.
9417 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9418 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9419 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9421 * mt-tdep.c (mt_gdbarch_init): Likewise.
9422 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9424 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9425 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9426 * registry.c (registry_alloc_data): Likewise.
9427 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9428 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9429 * serial.c (serial_fdopen_ops): Likewise.
9430 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9432 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9433 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9436 2014-01-13 Tom Tromey <tromey@redhat.com>
9438 * defs.h (XMALLOC): Remove.
9439 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9440 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9441 * cli-out.c (struct ui_out *): Likewise.
9442 * cli/cli-dump.c (add_dump_command): Likewise.
9443 (add_dump_command): Likewise.
9444 * complaints.c (get_complaints): Likewise.
9445 (find_complaint): Likewise.
9446 * dwarf2-frame.c (execute_cfa_program): Likewise.
9447 * dwarf2read.c (abbrev_table_read_table): Likewise.
9448 * gdbarch.sh: Likewise.
9449 * gdbarch.c: Rebuild.
9450 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9451 * interps.c (interp_new): Likewise.
9452 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9453 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9454 * mi/mi-console.c (mi_console_file_new): Likewise.
9455 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9456 * mi/mi-out.c (mi_out_new): Likewise.
9457 * mi/mi-parse.c (mi_parse): Likewise.
9458 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9459 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9460 * observer.c (xalloc_observer_list_node): Likewise.
9461 * regcache.c (regcache_xmalloc_1): Likewise.
9462 * reggroups.c (reggroup_new): Likewise.
9463 (_initialize_reggroup): Likewise.
9464 * registry.c (register_data_with_cleanup): Likewise.
9465 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9466 * ser-base.c (serial_ttystate): Likewise.
9467 * ser-mingw.c (make_pipe_state): Likewise.
9468 * ser-pipe.c (pipe_open): Likewise.
9469 * serial.c (serial_open): Likewise.
9470 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9471 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9472 (tui_alloc_win_info): Likewise.
9473 (tui_add_content_elements): Likewise.
9474 * tui/tui-file.c (tui_file_new): Likewise.
9475 * tui/tui-out.c (tui_out_new): Likewise.
9476 * ui-file.c (mem_file_new): Likewise.
9477 * ui-out.c (push_level): Likewise.
9478 (make_cleanup_ui_out_end): Likewise.
9479 (append_header_to_list): Likewise.
9480 (ui_out_new): Likewise.
9481 * user-regs.c (user_reg_add_builtin): Likewise.
9483 2014-01-13 Tom Tromey <tromey@redhat.com>
9485 * defs.h (XZALLOC): Remove.
9486 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9487 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9488 (get_ada_tasks_inferior_data): Likewise.
9489 * auto-load.c (get_auto_load_pspace_data): Likewise.
9490 * auxv.c (get_auxv_inferior_data): Likewise.
9491 * bfd-target.c (target_bfd_reopen): Likewise.
9492 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9493 (deprecated_insert_raw_breakpoint): Likewise.
9494 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9495 * corelow.c (core_open): Likewise.
9496 * darwin-nat.c (darwin_check_new_threads): Likewise.
9497 (darwin_attach_pid): Likewise.
9498 * dummy-frame.c (dummy_frame_push): Likewise.
9499 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9500 * dwarf2loc.c (allocate_piece_closure): Likewise.
9501 * elfread.c (elf_symfile_segments): Likewise.
9502 * eval.c (ptrmath_type_p): Likewise.
9503 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9504 * gdbtypes.c (alloc_type_arch): Likewise.
9505 (alloc_type_instance): Likewise.
9506 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9507 * inf-child.c (inf_child_can_use_agent): Likewise.
9508 * inflow.c (get_inflow_inferior_data): Likewise.
9509 * infrun.c (save_infcall_suspend_state): Likewise.
9510 * jit.c (jit_reader_load): Likewise.
9511 (get_jit_objfile_data): Likewise.
9512 (get_jit_program_space_data): Likewise.
9513 (jit_object_open_impl): Likewise.
9514 (jit_symtab_open_impl): Likewise.
9515 (jit_block_open_impl): Likewise.
9516 (jit_frame_sniffer): Likewise.
9517 * linux-fork.c (add_fork): Likewise.
9518 * maint.c (make_command_stats_cleanup): Likewise.
9519 * objfiles.c (get_objfile_pspace_data): Likewise.
9520 * opencl-lang.c (struct lval_closure): Likewise.
9521 * osdata.c (osdata_start_osdata): Likewise.
9522 * progspace.c (new_address_space): Likewise.
9523 (add_program_space): Likewise.
9524 * remote-sim.c (get_sim_inferior_data): Likewise.
9525 * sh-tdep.c (sh_gdbarch_init): Likewise.
9526 * skip.c (Ignore): Likewise.
9527 (skip_delete_command): Likewise.
9528 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9529 (library_list_start_library): Likewise.
9530 (solib_aix_current_sos): Likewise.
9531 * solib-darwin.c (get_darwin_info): Likewise.
9532 (darwin_current_sos): Likewise.
9533 * solib-dsbt.c (get_dsbt_info): Likewise.
9534 * solib-ia64-hpux.c (new_so_list): Likewise.
9535 (ia64_hpux_get_solib_linkage_addr): Likewise.
9536 * solib-spu.c (append_ocl_sos): Likewise.
9537 (spu_current_sos): Likewise.
9538 * solib-svr4.c (get_svr4_info): Likewise.
9539 (svr4_keep_data_in_core): Likewise.
9540 (library_list_start_library): Likewise.
9541 (svr4_default_sos): Likewise.
9542 (svr4_read_so_list): Likewise.
9543 * solib-target.c (library_list_start_library): Likewise.
9544 (solib_target_current_sos): Likewise.
9545 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9546 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9547 * symfile.c (default_symfile_segments): Likewise.
9548 * target-descriptions.c (tdesc_data_init): Likewise.
9549 (tdesc_create_reg): Likewise.
9550 (struct tdesc_type *): Likewise.
9551 (tdesc_create_vector): Likewise.
9552 (tdesc_set_struct_size): Likewise.
9553 (struct tdesc_type *): Likewise.
9554 (tdesc_free_feature): Likewise.
9555 (tdesc_create_feature): Likewise.
9556 * windows-nat.c (windows_add_thread): Likewise.
9557 (windows_make_so): Likewise.
9558 * xml-support.c (gdb_xml_body_text): Likewise.
9559 (gdb_xml_create_parser_and_cleanup): Likewise.
9560 (xml_process_xincludes): Likewise.
9561 * xml-syscall.c (allocate_syscalls_info): Likewise.
9562 (syscall_create_syscall_desc): Likewise.
9564 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9566 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9567 function, with code from i386_stap_parse_special_token.
9568 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9569 (i386_stap_parse_special_token): Move code to the two functions
9572 2014-01-09 Pedro Alves <palves@redhat.com>
9573 Hui Zhu <hui@codesourcery.com>
9576 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9577 bp_err_string. Don't mark the location shlib_disabled if the
9578 error thrown wasn't a generic or memory error. Catch errors
9579 thrown while inserting breakpoints in overlayed code. Output
9580 error message of software breakpoints.
9581 * remote.c (remote_insert_breakpoint): If this breakpoint has
9582 target-side commands but this stub doesn't support Z0 packets,
9583 throw NOT_SUPPORTED_ERROR error.
9584 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9585 * target.h (target_insert_breakpoint): Extend comment.
9586 (target_insert_hw_breakpoint): Add comment.
9588 2014-01-08 Pedro Alves <palves@redhat.com>
9590 * remote.c (remote_add_thread): Add threads silently if starting
9592 (remote_notice_new_inferior): If in all-stop, and starting up,
9593 don't call notice_new_inferior.
9594 (get_current_thread): New function, factored out from ...
9595 (add_current_inferior_and_thread): ... this. Adjust.
9596 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9597 found any thread, then select the remote's current thread as GDB's
9600 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9602 * NEWS: Create a new section for the next release branch.
9603 Rename the section of the current branch, now that it has
9606 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9608 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9609 * version.in: Bump version to 7.7.50.DATE-cvs.
9611 2014-01-08 Yao Qi <yao@codesourcery.com>
9613 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9614 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9615 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9617 2014-01-08 Yao Qi <yao@codesourcery.com>
9619 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9620 return value of bfd_get_filename to symbol_file_add_from_bfd.
9622 2014-01-08 Pierre Muller <muller@sourceware.org>
9625 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9626 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9627 to prim_record_mininal_symbol_and_info.
9628 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9629 in call to prim_record_minimal_symbol_and_info.
9630 (read_pe_exported_syms): Set index field of section_data.
9632 2014-01-07 Andrew Pinski <apinski@cavium.com>
9634 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9635 * features/aarch64.c: Regenerate.
9637 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9639 * target.c (return_null): Define.
9640 (update_current_target): Use it instead of return_zero for
9641 functions that return a pointer.
9643 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9645 * source.c (add_path): Fix check for duplicated paths in the previously
9648 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9650 * ada-lang.c: Remove duplicated include statements.
9651 * alphabsd-nat.c: Ditto.
9652 * amd64-darwin-tdep.c: Ditto.
9653 * amd64fbsd-nat.c: Ditto.
9654 * auto-load.c: Ditto.
9656 * breakpoint.c: Ditto.
9658 * fork-child.c: Ditto.
9659 * gdb_usleep.c: Ditto.
9660 * i386-darwin-tdep.c: Ditto.
9661 * i386fbsd-nat.c: Ditto.
9663 * inferior.c: Ditto.
9665 * linux-nat.c: Ditto.
9666 * linux-tdep.c: Ditto.
9667 * m68kbsd-nat.c: Ditto.
9668 * m68klinux-nat.c: Ditto.
9669 * microblaze-tdep.c: Ditto.
9670 * mips-linux-tdep.c: Ditto.
9671 * mn10300-tdep.c: Ditto.
9672 * nto-tdep.c: Ditto.
9673 * opencl-lang.c: Ditto.
9675 * printcmd.c: Ditto.
9676 * regcache.c: Ditto.
9677 * remote-m32r-sdi.c: Ditto.
9681 * tilegx-linux-nat.c: Ditto.
9682 * tilegx-tdep.c: Ditto.
9683 * tracepoint.c: Ditto.
9685 * vaxbsd-nat.c: Ditto.
9686 * windows-nat.c: Ditto.
9687 * xtensa-tdep.c: Ditto.
9689 2014-01-07 Yao Qi <yao@codesourcery.com>
9691 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9693 2014-01-07 Yao Qi <yao@codesourcery.com>
9694 Joel Brobecker <brobecker@adacore.com>
9696 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9697 (pdc_write_regs): Likewise.
9698 (fetch_regs_kernel_thread): Likewise.
9699 (store_regs_kernel_thread): Likewise.
9701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9703 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9704 tagged type objects to their actual type.
9706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9708 * ada-valprint.c (print_field_values): Add "language" parameter.
9709 Update calls to print_field_values and print_variant_part.
9710 Pass new parameter "language" in call to val_print instead
9711 of "current_language". Replace call to ada_val_print by call
9713 (print_variant_part): Add "language" parameter.
9714 (ada_val_print_struct_union): Update call to print_field_values.
9716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9718 * ada-valprint.c (ui_memcpy): Delete.
9719 (ada_print_floating): Update documentation. Add empty line
9720 between between function documentation and implementation.
9721 Delete variable "buffer". Use ui_file_xstrdup in place of
9722 ui_file_put. Minor adjustments following this change.
9724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9726 * ada-valprint.c (ada_val_print_string): New function,
9727 extracted from ada_val_print_array.
9728 (ada_val_print_array): Replace extracted code by call
9729 to ada_val_print_string followed by a return. Move
9730 "else" branch to the function's top block.
9732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9734 * ada-valprint.c (ada_val_print_array): Move implementation
9735 down. Rename parameter "offset" and "val" into "offset_aligned"
9736 and "original_value" respectively. Add parameter "offset".
9738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9740 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9741 re-organizing the code. Change the "???" message printed
9742 when target type is a TYPE_CODE_UNDEF into
9743 "<ref to undefined type>".
9745 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9747 * ada-valprint.c (print_record): Delete, implementation inlined...
9748 (ada_val_print_struct_union): ... here. Remove call to
9749 ada_check_typedef in inlined implementation.
9751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9753 * ada-valprint.c (ada_val_print_gnat_array): New function,
9754 extracted from ada_val_print_1;
9755 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9756 (ada_val_print_flt, ada_val_print_struct_union)
9757 (ada_val_print_ref): Likewise.
9758 (ada_val_print_1): Delete variables i and elttype.
9759 Replace extracted-out code by call to corresponding
9762 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9764 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9768 * ada-valprint.c (ada_val_print_1): Replace calls to
9769 ada_val_print_1 by calls to val_print.
9771 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9773 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9774 Update calls to self accordingly. Replace calls to c_val_print
9775 by calls to val_print.
9777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9779 * ada-valprint.c (print_record): Delete declaration.
9780 (adjust_type_signedness, ada_val_print_1): Likewise.
9781 (ada_val_print): Move function implementation down.
9782 (print_variant_part, print_field_values, print_record):
9783 Move function implementation up.
9785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9787 * python/py-type.c (typy_get_name): New function.
9788 (type_object_getset): Add entry for attribute "name".
9789 * NEWS: Add entry mentioning this new attribute.
9791 2014-01-07 Yao Qi <yao@codesourcery.com>
9793 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9796 2014-01-07 Yao Qi <yao@codesourcery.com>
9798 * gnu-nat.c (info_port_rights): Add qualifier const to
9801 2014-01-07 Yao Qi <yao@codesourcery.com>
9803 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9805 2014-01-07 Yao Qi <yao@codesourcery.com>
9807 * gnu-nat.c (make_inf) Update declaration.
9808 (make_inf): Make it static.
9809 (inf_set_traced): Likewise.
9810 (inf_port_to_thread, inf_task_died_status): Likewise.
9812 2014-01-07 Yao Qi <yao@codesourcery.com>
9814 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9816 2014-01-07 Yao Qi <yao@codesourcery.com>
9818 * gnu-nat.c (_initialize_gnu_nat): Declare.
9820 2014-01-07 Yao Qi <yao@codesourcery.com>
9822 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9824 (struct gdbarch_info) <byte_order>: Change type to
9826 <byte_order_for_code>: Likewise.
9827 * gdbarch.c, gdbarch.h: Regenerated.
9829 2014-01-06 Sasha Smundak <asmundak@google.com>
9831 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9833 2014-01-06 Tom Tromey <tromey@redhat.com>
9835 * doublest.c (convert_doublest_to_floatformat): Use const, not
9837 * somread.c (som_symtab_read): Likewise.
9839 2014-01-07 Hui Zhu <hui@codesourcery.com>
9841 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9842 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9843 (gdb_bfd_fopen): Ditto.
9844 (gdb_bfd_openr): Ditto.
9845 (gdb_bfd_openw): Ditto.
9846 (gdb_bfd_openr_iovec): Ditto.
9847 (gdb_bfd_fdopenr): Ditto.
9848 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9849 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9851 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9853 * symfile-mem.c (symbol_file_add_from_memory): Removed
9854 gdb_bfd_stash_filename.
9856 2014-01-03 Doug Evans <dje@google.com>
9858 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9861 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9863 Update year range in copyright notice of all files.
9865 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9867 * top.c (print_gdb_version): Set copyright year to 2014.
9869 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9871 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9873 For older changes see ChangeLog-2013.
9879 version-control: never