1 2014-06-23 Pedro Alves <palves@redhat.com>
3 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4 DR_CONTROL before setting DR0..DR3.
5 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
7 bits of DR_CONTROL related to the debug register slot being
8 disabled. If all slots are vacant, clear local slowdown as well,
9 and assert DR_CONTROL is 0.
11 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
13 * python/lib/gdb/command/xmethods.py
14 (get_method_matchers_in_loci): Lookup xmethod matchers in the
15 current progspace only if the string "progspace" matches LOCUS_RE.
17 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
19 Fix --with-system-readline with readline-6.3 patch 5.
20 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
21 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
24 2014-06-20 Tom Tromey <tromey@redhat.com>
26 * dwarf2read.c (dw2_get_real_path): Use correct type in
28 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
30 2014-06-20 Gary Benson <gbenson@redhat.com>
32 * common/gdb_thread_db.h: Moved to nat. All includes updated.
33 * common/glibc_thread_db.h: Likewise.
34 * common/i386-cpuid.h: Likewise.
35 * common/i386-gcc-cpuid.h: Likewise.
36 * common/linux-btrace.h: Likewise.
37 * common/linux-osdata.h: Likewise.
38 * common/linux-procfs.h: Likewise.
39 * common/linux-ptrace.h: Likewise.
40 * common/mips-linux-watch.h: Likewise.
41 * common/linux-btrace.c: Moved to nat.
42 * common/linux-osdata.c: Likewise.
43 * common/linux-procfs.c: Likewise.
44 * common/linux-ptrace.c: Likewise.
45 * common/mips-linux-watch.c: Likewise.
46 * nat/gdb_thread_db.h: Moved from common.
47 * nat/glibc_thread_db.h: Likewise.
48 * nat/i386-cpuid.h: Likewise.
49 * nat/i386-gcc-cpuid.h: Likewise.
50 * nat/linux-btrace.c: Likewise.
51 * nat/linux-btrace.h: Likewise.
52 * nat/linux-osdata.c: Likewise.
53 * nat/linux-osdata.h: Likewise.
54 * nat/linux-procfs.c: Likewise.
55 * nat/linux-procfs.h: Likewise.
56 * nat/linux-ptrace.c: Likewise.
57 * nat/linux-ptrace.h: Likewise.
58 * nat/mips-linux-watch.c: Likewise.
59 * nat/mips-linux-watch.h: Likewise.
60 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
61 (object file files): Reordered.
62 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
65 2014-06-20 Gary Benson <gbenson@redhat.com>
67 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
68 (i386_dr_low_type): Moved to nat/i386-dregs.h.
69 (i386_dr_low): Likewise.
70 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
71 (i386_dr_low_set_addr): Likewise.
72 (i386_dr_low_get_addr): Likewise.
73 (i386_dr_low_can_set_control): Likewise.
74 (i386_dr_low_set_control): Likewise.
75 (i386_dr_low_get_control): Likewise.
76 (i386_dr_low_get_status): Likewise.
77 (i386_get_debug_register_length): Likewise.
78 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
79 (i386_dr_low): Likewise.
80 * nat/i386-dregs.c (i386-low.h): Remove include.
81 (i386-nat.h): Likewise.
82 (nat/i386-dregs.h): New include.
83 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
84 (i386_dr_low_set_addr): Likewise.
85 (i386_dr_low_get_addr): Likewise.
86 (i386_dr_low_can_set_control): Likewise.
87 (i386_dr_low_set_control): Likewise.
88 (i386_dr_low_get_control): Likewise.
89 (i386_dr_low_get_status): Likewise.
90 (i386_get_debug_register_length): Likewise.
91 (debug_hw_points): Likewise.
93 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
95 * Makefile.in (SFILES): Add d-exp.y.
96 (YYFILES): Add d-exp.c.
98 (local-maintainer-clean): Delete d-exp.c.
100 * d-lang.h (d_parse): New declaration.
101 (d_error): New declaration.
102 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
103 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
104 PREC_ORDER operators.
105 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
107 2014-06-19 Yao Qi <yao@codesourcery.com>
109 * gdbthread.h (any_running): Remove the declaration.
110 * thread.c (any_running): Remove.
112 2014-06-19 Yao Qi <yao@codesourcery.com>
114 * gdbthread.h (struct thread_info) <state>: Change its type to
115 'enum thread_state'. Update comments.
117 2014-06-19 Pedro Alves <palves@redhat.com>
119 * gdbthread.h (ALL_THREADS): Delete.
120 (ALL_NON_EXITED_THREADS): New macro.
121 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
122 instead of ALL_THREADS.
123 * infrun.c (find_thread_needs_step_over)
124 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
125 instead of ALL_THREADS.
126 * record-btrace.c (record_btrace_open)
127 (record_btrace_stop_recording, record_btrace_close)
128 (record_btrace_is_replaying, record_btrace_resume)
129 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
130 * remote.c (append_pending_thread_resumptions): Likewise.
131 * thread.c (thread_apply_all_command): Likewise.
133 2014-06-19 Gary Benson <gbenson@redhat.com>
135 * i386-nat.c (i386_stopped_by_watchpoint):
136 Use i386_dr_stopped_by_watchpoint.
137 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
138 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
140 2014-06-19 Gary Benson <gbenson@redhat.com>
142 * nat/i386-dregs.c: New file.
143 * Makefile.in (i386-dregs.o): New rule.
144 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
145 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
146 * config/i386/darwin.mh (NATDEPFILES): Likewise.
147 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
148 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
149 * config/i386/go32.mh (NATDEPFILES): Likewise.
150 * config/i386/linux.mh (NATDEPFILES): Likewise.
151 * config/i386/linux64.mh (NATDEPFILES): Likewise.
152 * config/i386/mingw.mh (NATDEPFILES): Likewise.
153 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
154 * i386-nat.h (debug_hw_points): New declaration.
155 * i386-nat.c (breakpoint.h): Remove include.
156 (command.h): Likewise.
157 (target.h): Likewise.
158 (gdb_assert.h): Likewise.
159 (debug_hw_points): Made nonstatic.
160 (debug_printf): Now in i386-dregs.c.
161 (TARGET_HAS_DR_LEN_8): Likewise.
162 (DR_CONTROL_SHIFT): Likewise.
163 (DR_CONTROL_SIZE): Likewise.
164 (DR_RW_EXECUTE): Likewise.
165 (DR_RW_WRITE): Likewise.
166 (DR_RW_READ): Likewise.
167 (DR_RW_IORW): Likewise.
168 (DR_LEN_1): Likewise.
169 (DR_LEN_2): Likewise.
170 (DR_LEN_4): Likewise.
171 (DR_LEN_8): Likewise.
172 (DR_LOCAL_ENABLE_SHIFT): Likewise.
173 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
174 (DR_ENABLE_SIZE): Likewise.
175 (DR_LOCAL_SLOWDOWN): Likewise.
176 (DR_GLOBAL_SLOWDOWN): Likewise.
177 (DR_CONTROL_RESERVED): Likewise.
178 (I386_DR_CONTROL_MASK): Likewise.
179 (I386_DR_VACANT): Likewise.
180 (I386_DR_LOCAL_ENABLE): Likewise.
181 (I386_DR_GLOBAL_ENABLE): Likewise.
182 (I386_DR_DISABLE): Likewise.
183 (I386_DR_SET_RW_LEN): Likewise.
184 (I386_DR_GET_RW_LEN): Likewise.
185 (I386_DR_WATCH_HIT): Likewise.
186 (i386_wp_op_t): Likewise.
187 (i386_show_dr): Likewise.
188 (i386_length_and_rw_bits): Likewise.
189 (i386_insert_aligned_watchpoint): Likewise.
190 (i386_remove_aligned_watchpoint): Likewise.
191 (i386_handle_nonaligned_watchpoint): Likewise.
192 (i386_update_inferior_debug_regs): Likewise.
193 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
194 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
195 (i386_region_ok_for_watchpoint):
196 Use i386_dr_region_ok_for_watchpoint.
197 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
199 2014-06-19 Gary Benson <gbenson@redhat.com>
201 * i386-nat.c (i386_insert_hw_breakpoint): Use
202 i386_insert_watchpoint.
203 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
205 2014-06-19 Gary Benson <gbenson@redhat.com>
207 * i386-nat.c (i386_dr_show): Renamed to
208 i386_show_dr and made static. All uses updated.
209 (i386_dr_length_and_rw_bits): Renamed to
210 i386_length_and_rw_bits and made static.
212 (i386_dr_insert_aligned_watchpoint): Renamed to
213 i386_insert_aligned_watchpoint and made static.
215 (i386_dr_remove_aligned_watchpoint): Renamed to
216 i386_remove_aligned_watchpoint and made static.
218 (i386_dr_update_inferior_debug_regs): Renamed to
219 i386_update_inferior_debug_regs and made static.
221 * nat/i386-dregs.h (i386_dr_show): Removed.
222 (i386_dr_length_and_rw_bits): Likewise.
223 (i386_dr_insert_aligned_watchpoint): Likewise.
224 (i386_dr_remove_aligned_watchpoint): Likewise.
225 (i386_dr_update_inferior_debug_regs): Likewise.
227 2014-06-19 Gary Benson <gbenson@redhat.com>
229 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
230 * configure: Regenerate.
231 * config.in: Likewise.
232 * main.c (signal.h): New include.
233 (setup_alternate_signal_stack): New function.
234 (captured_main): Call the above.
235 * cp-support.c (signal.h): New include.
236 (catch_demangler_crashes): New flag.
237 (SIGJMP_BUF): New define.
238 (SIGSETJMP): Likewise.
239 (SIGLONGJMP): Likewise.
240 (gdb_demangle_jmp_buf): New static global.
241 (gdb_demangle_attempt_core_dump): Likewise.
242 (gdb_demangle_signal_handler): New function.
243 (gdb_demangle): If catch_demangler_crashes is set, install the
244 above signal handler before calling bfd_demangle, and restore
245 the original signal handler afterwards. Display the offending
246 symbol and call demangler_warning the first time a segmentation
248 (_initialize_cp_support): New maint set/show command.
250 2014-06-19 Gary Benson <gbenson@redhat.com>
252 * utils.h (resource_limit_kind): New enum.
253 (can_dump_core): New declaration.
254 (warn_cant_dump_core): Likewise.
255 (dump_core): Likewise.
256 * utils.c (dump_core): Made nonstatic. Added new
257 parameter "limit_kind".
258 (can_dump_core): Made nonstatic. Moved printing code to...
259 (warn_cant_dump_core): New function.
260 (can_dump_core_warn): Likewise.
261 (internal_vproblem): Replace calls to can_dump_core with
262 calls to can_dump_core_warn. Supply new argument to each.
264 2014-06-19 Gary Benson <gbenson@redhat.com>
266 * utils.h (demangler_vwarning): New declaration.
267 (demangler_warning): Likewise.
268 * utils.c (struct internal_problem)
269 <user_settable_should_quit>: New field.
270 <user_settable_should_dump_core>: Likewise
271 (internal_error_problem): Add values for above new fields.
272 (internal_warning_problem): Likewise.
273 (demangler_warning_problem): New static global.
274 (demangler_vwarning): New function.
275 (demangler_warning): Likewise.
276 (add_internal_problem_command): Selectively add commands.
277 (_initialize_utils): New internal problem command.
278 * maint.c (maintenance_demangler_warning): New function.
279 (_initialize_maint_cmds): New command.
281 2014-06-18 Tom Tromey <tromey@redhat.com>
283 * f-valprint.c (info_common_command_for_block): Update.
284 * symtab.h (struct general_symbol_info) <common_block>: Now
287 2014-06-18 Tom Tromey <tromey@redhat.com>
289 * symtab.h (struct symtab) <blockvector>: Now const.
290 * ada-lang.c (ada_add_global_exceptions): Update.
291 * buildsym.c (augment_type_symtab): Update.
292 * dwarf2read.c (dw2_lookup_symbol): Update.
293 * jit.c (finalize_symtab): Update.
294 * jv-lang.c (add_class_symtab_symbol): Update.
295 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
297 * objfiles.c (objfile_relocate1): Update.
298 * psymtab.c (lookup_symbol_aux_psymtabs)
299 (maintenance_check_psymtabs): Update.
300 * python/py-symtab.c (stpy_global_block, stpy_static_block):
302 * spu-tdep.c (spu_catch_start): Update.
303 * symmisc.c (dump_symtab_1): Update.
304 * symtab.c (lookup_global_symbol_from_objfile)
305 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
306 (basic_lookup_transparent_type_quick)
307 (basic_lookup_transparent_type, find_pc_sect_symtab)
308 (find_pc_sect_line, search_symbols): Update.
309 * block.c (find_block_in_blockvector): Make "bl" const.
310 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
312 (blockvector_contains_pc): Make "bv" const.
313 (block_for_pc_sect): Update.
314 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
315 (blockvector_contains_pc): Update.
316 * breakpoint.c (resolve_sal_pc): Update.
317 * inline-frame.c (block_starting_point_at): Update.
319 2014-06-18 Tom Tromey <tromey@redhat.com>
321 * completer.c (complete_line): Make "line_buffer" const.
322 * completer.h (complete_line): Update.
324 2014-06-18 Tom Tromey <tromey@redhat.com>
326 * symtab.c (add_macro_name): Remove unneeded cast.
328 2014-06-18 Tom Tromey <tromey@redhat.com>
330 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
331 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
333 2014-06-18 Tom Tromey <tromey@redhat.com>
335 * probe.c (info_probes_for_ops): Make "arg" const.
336 * probe.h (info_probes_for_ops): Update.
338 2014-06-18 Tom Tromey <tromey@redhat.com>
340 * varobj.c (varobj_create): Update.
341 * valops.c (value_of_this): Update.
342 * tracepoint.c (add_local_symbols, scope_info): Update.
343 * symtab.h (struct general_symbol_info) <block>: Now const.
344 * symtab.c (skip_prologue_sal)
345 (default_make_symbol_completion_list_break_on)
346 (skip_prologue_using_sal): Update.
347 * stack.h (iterate_over_block_locals)
348 (iterate_over_block_local_vars): Update.
349 * stack.c (print_frame_args): Update.
350 (iterate_over_block_locals, iterate_over_block_local_vars): Make
352 (get_selected_block): Make return type const.
353 * python/py-frame.c (frapy_block): Update.
354 * python/py-block.c (gdbpy_block_for_pc): Update.
355 * p-exp.y (%union) <bval>: Now const.
356 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
357 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
358 * m2-exp.y (%union) <bval>: Now const.
359 * linespec.c (get_current_search_block): Make return type const.
360 (create_sals_line_offset, find_label_symbols): Update.
361 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
363 (block_starting_point_at): Make "block" const.
364 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
365 (check_exception_resume): Update.
366 * guile/scm-frame.c (gdbscm_frame_block): Update.
367 * guile/scm-block.c (gdbscm_lookup_block): Update.
368 * frame.h (get_frame_block): Update.
369 (get_selected_block): Make return type const.
370 * frame.c (frame_id_inner): Update.
371 * f-valprint.c (info_common_command_for_block)
372 (info_common_command): Update.
373 * dwarf2loc.c (dwarf2_find_location_expression)
374 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
375 (locexpr_describe_location_piece): Update.
376 * c-exp.y (%union) <bval>: Now const.
377 * breakpoint.c (resolve_sal_pc): Update.
378 * blockframe.c (get_frame_block):Make return type const.
379 (get_pc_function_start, get_frame_function, find_pc_sect_function)
380 (block_innermost_frame): Update.
381 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
382 (block_for_pc, block_for_pc_sect): Update.
383 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
385 (block_for_pc_sect, block_for_pc): Make return type const.
386 * ax-gdb.c (gen_expr): Update.
387 * alpha-mdebug-tdep.c (find_proc_desc): Update.
388 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
389 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
390 (ada_read_var_value): Update.
391 * ada-exp.y (struct name_info) <block>: Now const.
393 (block_lookup): Constify.
395 2014-06-18 Gary Benson <gbenson@redhat.com>
397 * nat/i386-dregs.h: New file.
398 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
399 * i386-nat.h (i386-dregs.h): New include.
400 (DR_FIRSTADDR): Now in i386-dregs.h.
401 (DR_LASTADDR): Likewise.
402 (DR_NADDR): Likewise.
403 (DR_STATUS): Likewise.
404 (DR_CONTROL): Likewise.
405 (i386_debug_reg_state): Likewise.
406 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
408 2014-06-18 Don Breazeal <donb@codesourcery.com>
410 * breakpoint.c (set_longjmp_breakpoint): Call
411 momentary_breakpoint_from_master with additional argument.
412 (set_longjmp_breakpoint_for_call_dummy): Call
413 momentary_breakpoint_from_master with additional argument.
414 (set_std_terminate_breakpoint): Call
415 momentary_breakpoint_from_master with additional argument.
416 (momentary_breakpoint_from_master): Add argument to function
417 definition and use it to initialize structure member flag.
418 (clone_momentary_breakpoint): Call
419 momentary_breakpoint_from_master with additional argument.
420 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
421 member flags set in momentary_breakpoint_from_master.
423 2014-06-18 Gary Benson <gbenson@redhat.com>
425 * i386-nat.c (i386_show_dr): Renamed to
426 i386_dr_show and made nonstatic. All uses updated.
427 (i386_length_and_rw_bits): Renamed to
428 i386_dr_length_and_rw_bits and made nonstatic.
430 (i386_insert_aligned_watchpoint): Renamed to
431 i386_dr_insert_aligned_watchpoint and made nonstatic.
433 (i386_remove_aligned_watchpoint): Renamed to
434 i386_dr_remove_aligned_watchpoint and made nonstatic.
436 (i386_update_inferior_debug_regs): Renamed to
437 i386_dr_update_inferior_debug_regs and made nonstatic.
440 2014-06-18 Gary Benson <gbenson@redhat.com>
442 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
443 (i386_dr_low_can_set_control): Likewise.
444 (i386_dr_low_set_addr): Likewise.
445 (i386_dr_low_set_control): Likewise.
446 (i386_dr_low_get_addr): Likewise.
447 (i386_dr_low_get_status): Likewise.
448 (i386_dr_low_get_control): Likewise.
449 (i386_insert_aligned_watchpoint): Use new macros.
450 (i386_update_inferior_debug_regs): Likewise.
451 (i386_stopped_data_address): Likewise.
453 2014-06-18 Gary Benson <gbenson@redhat.com>
455 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
456 New parameter. All uses updated.
458 2014-06-18 Gary Benson <gbenson@redhat.com>
460 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
463 2014-06-18 Gary Benson <gbenson@redhat.com>
465 * i386-nat.c (debug_printf): New macro.
466 (i386_get_debug_register_length): Likewise.
467 (TARGET_HAS_DR_LEN_8): Use above macro.
468 (i386_show_dr): Use debug_printf instead of puts_unfiltered
469 and printf_unfiltered. Use phex to format values.
471 2014-06-18 Gary Benson <gbenson@redhat.com>
473 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
476 2014-06-18 Gary Benson <gbenson@redhat.com>
478 * i386-nat.c: Comment changes.
480 2014-06-18 Gary Benson <gbenson@redhat.com>
482 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
484 2014-06-18 Gary Benson <gbenson@redhat.com>
486 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
487 (i386_insert_aligned_watchpoint): Likewise.
488 (i386_remove_aligned_watchpoint): Likewise.
489 (i386_handle_nonaligned_watchpoint): Likewise.
491 2014-06-18 Gary Benson <gbenson@redhat.com>
493 * i386-nat.c: Whitespace changes.
495 2014-06-17 Samuel Bronson <naesten@gmail.com>
497 * MAINTAINERS: Update Roland McGrath's email address.
498 Thanks to Sergio Durigan Junior for pointing out that he left
499 Red Hat a while ago, and giving me a current address.
501 2014-06-17 Tom Tromey <tromey@redhat.com>
503 * utils.h (savestring): Remove declaration.
505 2014-06-17 Tom Tromey <tromey@redhat.com>
507 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
509 2014-06-16 Keith Seitz <keiths@redhat.com>
512 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
513 to update the varobj if inferior_ptid is null_ptid.
515 2014-06-16 Tom Tromey <tromey@redhat.com>
517 * target.h (struct target_ops) <to_info_proc>: Make parameter
519 (target_info_proc): Update.
520 * target.c (target_info_proc): Make "args" const.
521 * procfs.c (procfs_info_proc): Update.
522 * linux-tdep.c (linux_info_proc): Update.
523 (linux_core_info_proc_mappings): Make "args" const.
524 (linux_core_info_proc): Update.
525 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
526 * gdbarch.c: Rebuild.
527 * gdbarch.h: Rebuild.
528 * corelow.c (core_info_proc): Update.
530 2014-06-16 Tom Tromey <tromey@redhat.com>
532 * target.h (struct target_ops) <to_disconnect>: Make parameter
534 (target_disconnect): Update.
535 * target.c (target_disconnect): Make "args" const.
536 * target-delegates.c: Rebuild.
537 * remote.c (remote_disconnect): Update.
538 * record.h (record_disconnect): Update.
539 * record.c (record_disconnect): Update.
540 * inf-child.c (inf_child_disconnect): Update.
542 2014-06-16 Tom Tromey <tromey@redhat.com>
544 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
545 * target.c (debug_to_rcmd, default_rcmd): Update.
546 * target-delegates.c: Rebuild.
547 * remote.c (remote_rcmd): Update.
548 * monitor.c (monitor_rcmd): Update.
550 2014-06-16 Pedro Alves <palves@redhat.com>
552 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
553 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
554 have OBJF_SHARED set.
555 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
556 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
557 instead of OBJF_USERLOADED.
558 * objfiles.h (OBJF_SHARED): Update comment.
559 (userloaded_objfile_contains_address_p): Rename to ...
560 (shared_objfile_contains_address_p): ... this, and update
562 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
564 (remove_symbol_file_command): Skip objfiles that don't have
567 2014-06-16 Tom Tromey <tromey@redhat.com>
569 * minsyms.h (prim_record_minimal_symbol)
570 (prim_record_minimal_symbol_and_info): Update comments.
572 2014-06-14 Eli Zaretskii <eliz@gnu.org>
574 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
575 or --without-guile, according to how GDB was built.
577 2014-06-13 Tom Tromey <tromey@redhat.com>
579 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
581 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
583 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
585 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
586 help_list.Pass all_commands, not -1, to help_list.
587 * cli/cli-dump.c (dump_command, append_command)
588 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
589 (binary_dump_command, binary_append_command): Pass all_commands,
590 not -1, to help_list.
591 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
593 * valprint.c (set_print, set_print_raw): Pass all_commands, not
595 * typeprint.c (set_print_type): Pass all_commands, not -1, to
597 * top.c (set_history): Pass all_commands, not -1, to help_list.
598 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
599 all_commands, not -1, to help_list.
600 * symfile.c (overlay_command): Pass all_commands, not -1, to
602 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
604 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
606 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
608 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
609 not -1, to help_list.
610 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
611 not -1, to help_list.
612 * maint.c (maintenance_command, maintenance_info_command)
613 (maintenance_print_command, maintenance_set_cmd): Pass
614 all_commands, not -1, to help_list.
615 * macrocmd.c (macro_command): Pass all_commands, not -1, to
617 * language.c (set_check): Pass all_commands, not -1, to help_list.
618 * infcmd.c (unset_command): Pass all_commands, not -1, to
620 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
622 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
624 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
626 * breakpoint.c (save_command): Pass all_commands, not -1, to
628 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
629 all_commands, not -1, to help_list.
631 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
633 * regcache.c (struct register_to_invalidate): New structure.
634 (do_register_invalidate, make_cleanup_regcache_invalidate): New
636 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
638 2014-06-12 Yao Qi <yao@codesourcery.com>
640 * varobj.c (varobj_get_num_children): Call
642 (varobj_list_children): Likewise.
643 (varobj_update): Likewise. Update comments.
645 2014-06-12 Yao Qi <yao@codesourcery.com>
647 * varobj.c (varobj_pretty_printed_p): Rename to ...
648 (varobj_is_dynamic_p): ... this. New function.
649 * varobj.h (varobj_pretty_printed_p): Remove declaration.
650 (varobj_is_dynamic_p): Declare.
651 * mi/mi-cmd-var.c (print_varobj): All callers updated.
652 (mi_print_value_p, varobj_update_one): Likewise.
654 2014-06-12 Pedro Alves <pedro@codesourcery.com>
655 Yao Qi <yao@codesourcery.com>
657 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
658 (varobj_get_iterator): Wrap up code for pretty-printer by
659 "#if HAVE_PYTHON" and "#endif".
660 (update_dynamic_varobj_children): Likewise.
662 2014-06-12 Pedro Alves <pedro@codesourcery.com>
663 Yao Qi <yao@codesourcery.com>
665 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
666 gdb_python_initialized is false. Move some code from varobj.c.
667 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
668 * varobj.c: Move "varobj-iter.h" inclusion earlier.
669 (struct varobj_item): Moved to varobj-iter.h".
670 (varobj_clear_saved_item): New function.
671 (update_dynamic_varobj_children): Move python-related code to
673 (free_variable): Call varobj_clear_saved_item and
676 2014-06-12 Pedro Alves <pedro@codesourcery.com>
677 Yao Qi <yao@codesourcery.com>
679 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
680 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
681 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
682 (py-varobj.o): New rule.
683 * python/py-varobj.c: New file.
684 * python/python-internal.h (py_varobj_get_iterator): Declare.
685 * varobj-iter.h: New file.
686 * varobj.c: Include "varobj-iter.h"
687 (struct varobj) <child_iter>: Change its type from "PyObject *"
688 to "struct varobj_iter *".
689 <saved_item>: Likewise.
690 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
691 [HAVE_PYTHON] (varobj_get_iterator): New function.
692 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
693 python-specific code to python/py-varobj.c.
694 (install_visualizer): Call varobj_iter_delete instead of
696 * varobj.h (varobj_ensure_python_env): Declare.
698 2014-06-12 Yao Qi <yao@codesourcery.com>
700 * varobj.c (struct varobj_item): New structure.
701 (create_child_with_value): Update declaration.
702 (varobj_add_child): Replace arguments 'name' and 'value' with
703 'item'. All callers updated.
704 (install_dynamic_child): Likewise.
705 (update_dynamic_varobj_children): Likewise.
706 (varobj_add_child): Likewise.
707 (create_child_with_value): Likewise.
709 2014-06-11 Joel Brobecker <brobecker@adacore.com>
711 * NEWS: Create a new section for the next release branch.
712 Rename the section of the current branch, now that it has
715 2014-06-11 Joel Brobecker <brobecker@adacore.com>
717 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
718 * version.in: Bump version to 7.8.50.DATE-cvs.
720 2014-06-11 Pedro Alves <palves@redhat.com>
723 * ser-mingw.c (net_windows_socket_check_pending): New function.
724 (net_windows_select_thread): Ignore spurious wakeups. Use
725 net_windows_socket_check_pending.
726 (net_windows_wait_handle): Check for pending events with
727 ioctlsocket, through net_windows_socket_check_pending, instead of
728 checking the socket's event.
730 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
732 * python/python-internal.h (gdb_PyObject_GetAttrString)
733 (gdb_PyObject_HasAttrString): New inline function definitions.
734 * py-value.c (get_field_flag): Remove the now unnecessary cast to
735 char * of the second argument to PyObject_GetAttrString.
737 2014-06-10 Joel Brobecker <brobecker@adacore.com>
739 * serial.c (serial_write): Fix index of character to be printed
740 in call to serial_logchar when serial debug traces are enabled.
742 2014-06-10 Joel Brobecker <brobecker@adacore.com>
744 * gdbtypes (resolve_dynamic_range): Add function description.
746 2014-06-09 Pedro Alves <palves@redhat.com>
748 * linux-nat.c (linux_child_follow_fork): Initialize status with
749 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
750 inner block. Only pass the signal to PTRACE_DETACH if in pass
753 2014-06-09 Gary Benson <gbenson@redhat.com>
755 * common/signals.c (gdb_signal_from_host): Reorder to separate
756 the always-available ANSI-standard signals from the signals that
758 (do_gdb_signal_to_host): Likewise.
759 * proc-events.c (signal_table): Likewise.
761 2014-06-08 Hui Zhu <hui@codesourcery.com>
763 * common/linux-ptrace.c (linux_disable_event_reporting): New
765 * common/linux-ptrace.h (linux_disable_event_reporting): New
767 * linux-nat.c (linux_child_follow_fork): Do a single step before
770 2014-06-07 Keith Seitz <keiths@redhat.com>
774 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
775 from symbol_matches_domain in symtab.c. All local callers
776 of symbol_matches_domain updated.
777 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
778 search STRUCT_DOMAIN.
779 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
780 independently. standard_lookup will do that automatically.
781 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
782 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
783 (cp_lookup_symbol_in_namespace): Likewise.
784 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
785 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
786 may return a STRUCT_DOMAIN match.
787 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
788 * cp-support.c: Include language.h.
789 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
791 * psymtab.c (match_partial_symbol): Compare the requested
792 domain with the symbol's domain directly.
793 (lookup_partial_symbol): Likewise.
794 * symtab.c (lookup_symbol_in_language): Explain when/why
795 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
796 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
797 appropriate languages.
798 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
799 and moved to ada-lang.c
800 (lookup_block_symbol): Explain that this function only returns
801 symbol matching the requested DOMAIN.
802 Compare the requested domain with the symbol's domain directly.
803 (iterate_over_symbols): Compare the requested domain with the
804 symbol's domain directly.
805 * symtab.h (symbol_matches_domain): Remove.
807 2014-06-06 Doug Evans <xdje42@gmail.com>
809 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
810 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
811 (gdbscm_guile_version_is_at_least): Declare.
812 (gdbscm_scm_string_to_int): Declare.
813 * guile/guile.c (gdbscm_guile_major_version): New global.
814 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
815 (guile_datadir): New static global.
816 (gdbscm_guile_data_directory): New function.
817 (initialize_scheme_side): Update.
818 (misc_guile_functions): Add guile-data-directory.
819 (initialize_gdb_module): Fetch guile version number.
820 * guile/lib/gdb.scm: Remove call to add-to-load-path.
821 * guile/lib/gdb/init.scm (%initialize!): Ditto.
822 * guile/lib/gdb/boot.scm: Use guile-data-directory.
823 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
825 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
826 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
827 * guile/scm-value.c (gdbscm_value_to_string): Only call
828 scm_port_conversion_strategy if Guile version >= 2.0.6.
830 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
832 * main.c (print_gdb_help): Add -q and --silent.
834 2014-06-06 Gary Benson <gbenson@redhat.com>
836 * common/signals.c: Remove preprocessor conditionals for
837 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
839 * proc-events.c: Likewise.
841 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
843 * symfile.c (symfile_free_objfile): Remove restriction to
845 * symfile-mem.c (symbol_file_add_from_memory): Call
846 add_target_sections_of_objfile.
848 2014-06-05 Ludovic Courtès <ludo@gnu.org>
850 * guile/scm-value.c (gdbscm_history_append_x): Use
851 'vlscm_get_value_smob_arg_unsafe' instead of
852 'vlscm_scm_to_value'.
854 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
857 * utils.c (printchar): Don't escape at all if quoter is NUL.
858 Update function documentation to clarify effect of parameter
860 * remote.c (escape_buffer): Pass '\\' as the quoter to
862 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
864 (mi_solib_unloaded): Same.
866 2014-06-05 Joel Brobecker <brobecker@adacore.com>
868 * development.sh: Delete.
869 * Makefile.in (config.status): Adjust dependency on development.sh.
870 * configure.ac: Adjust development.sh source call.
871 * configure: Regenerate.
873 2014-06-04 Doug Evans <xdje42@gmail.com>
875 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
876 is_scheme_bkpt, spec.
877 (bpscm_make_breakpoint_smob): Initialize new members.
878 (gdbscm_create_breakpoint_x): Split into two ...
879 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
880 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
881 (scheme_function breakpoint_functions): Update.
882 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
883 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
884 register-breakpoint!.
886 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
889 * mem-break.c (z_type_supported): Return zero if
890 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
892 2014-06-04 Tom Tromey <tromey@redhat.com>
894 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
895 value_from_contents_and_address_unresolved.
896 (ada_template_to_fixed_record_type_1): Likewise.
897 (ada_which_variant_applies): Likewise.
898 * value.h (value_from_contents_and_address_unresolved): Declare.
899 * value.c (value_from_contents_and_address_unresolved): New
901 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
902 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
903 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
905 2014-06-04 Tom Tromey <tromey@redhat.com>
907 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
909 2014-06-04 Tom Tromey <tromey@redhat.com>
911 * procfs.c (procfs_attach): Make "args" const.
912 * windows-nat.c (windows_attach): Make "args" const.
913 * nto-procfs.c (procfs_attach): Make "args" const.
914 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
915 * go32-nat.c (go32_attach): Make "args" const.
916 * gnu-nat.c (gnu_attach): Make "args" const.
917 * darwin-nat.c (darwin_attach): Make "args" const.
918 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
919 * linux-nat.c (linux_nat_attach): Make "args" const.
920 * remote.c (extended_remote_attach_1, extended_remote_attach):
922 * target.h (struct target_ops) <to_attach>: Make "args" const.
923 (find_default_attach): Likewise.
924 * utils.c (parse_pid_to_attach): Make "args" const.
925 * utils.h (parse_pid_to_attach): Update.
927 2014-06-04 Tom Tromey <tromey@redhat.com>
929 * target-delegates.c: Rebuild.
930 * target.c (default_thread_address_space): New function.
931 (target_thread_address_space): Simplify.
932 * target.h (struct target_ops) <to_thread_address_space>: Add
935 2014-06-04 Doug Evans <xdje42@gmail.com>
937 * guile/scm-type.c (type_smob): Remove duplicate typedef.
939 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
941 * record-btrace.c: Include event-loop.h and inf-loop.h.
942 (record_btrace_resume_exec_dir)
943 (record_btrace_async_inferior_event_handler)
944 (record_btrace_handle_async_inferior_event): New.
945 (record_btrace_open): Create async event handler.
946 (record_btrace_close): Delete async event handler.
947 (record_btrace_resume): Set record_btrace_resume_exec_dir,
948 Mark async event handler.
949 (record_btrace_execution_direction): New.
950 (init_record_btrace_ops): Initialize to_execution_direction.
952 2014-06-03 Doug Evans <xdje42@gmail.com>
954 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
955 (gdbscm_make_parameter): Ditto.
957 2014-06-03 Doug Evans <dje@google.com>
959 * exec.c (exec_close_1): Call clear_section_table instead of
960 resize_section_table.
961 (clear_section_table): New function.
962 (resize_section_table): Make static. Rename arg num_added to
964 * exec.h (clear_section_table): Declare.
965 (resize_section_table): Delete.
966 * progspace.c (release_program_space): Call clear_section_table
967 instead of resize_section_table.
969 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
971 * NEWS (Python Scripting): Add entry about the new xmethods
974 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
976 * python/py-xmethods.c: New file.
977 * python/py-objfile.c (objfile_object): New field 'xmethods'.
978 (objfpy_dealloc): XDECREF on the new xmethods field.
979 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
981 (objfpy_get_xmethods): New function.
982 (objfile_getset): New entry 'xmethods'.
983 * python/py-progspace.c (pspace_object): New field 'xmethods'.
984 (pspy_dealloc): XDECREF on the new xmethods field.
985 (pspy_new, pspace_to_pspace_object): Initialize xmethods
987 (pspy_get_xmethods): New function.
988 (pspace_getset): New entry 'xmethods'.
989 * python/python-internal.h: Add declarations for new functions.
990 * python/python.c (_initialize_python): Invoke
991 gdbpy_initialize_xmethods.
992 * python/lib/gdb/__init__.py (xmethods): New
994 * python/lib/gdb/xmethod.py: New file.
995 * python/lib/gdb/command/xmethods.py: New file.
997 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
999 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1000 best match method returned by find_overload_match is an xmethod.
1001 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1002 the best matching operator returned by find_overload_match is an
1004 * valops.c: #include "extension.h".
1005 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1006 Return void. The list of matching source methods is returned in
1007 "fn_list" and a vector of matching debug method workers is
1008 returned in "xm_worker_vec". Update all callers.
1009 (value_find_oload_method_list): Likewise.
1010 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1011 non-NULL, then the index of the best matching method in this
1012 vector is returned. Update all callers.
1013 (find_overload_match): Include xmethods while performing overload
1016 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1018 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1019 * extension-priv.h (struct extension_language_ops): Add the
1021 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1022 get_matching_xmethod_workers, get_xmethod_argtypes,
1023 invoke_xmethod, free_xmethod_worker,
1024 free_xmethod_worker_vec): New functions.
1025 * extension.h: #include "common/vec.h".
1026 New function declarations.
1027 (struct xmethod_worker): New struct.
1028 (VEC (xmethod_worker_ptr)): New vector type.
1029 (xmethod_worker_ptr): New typedef.
1030 (xmethod_worker_vec): Likewise.
1031 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1033 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1034 (struct builtin_type): New field "xmethod".
1035 * valarith.c (value_ptradd): Assert that the value argument is not
1037 * valops.c (value_must_coerce_to_target): Return 0 for
1038 lval_xcallable values.
1039 * value.c (struct value): New field XM_WORKER in the field
1041 (value_address, value_raw_address): Return 0 for lval_xcallable
1043 (set_value_address): Assert that the value is not an
1045 (value_free): Free the associated xmethod worker when freeing
1046 lval_xcallable values.
1047 (set_value_component_location): Assert that the WHOLE value is not
1049 (value_of_xmethod, call_xmethod): New functions.
1050 * value.h: Declare "struct xmethod_worker".
1051 Declare new functions value_of_xmethod, call_xmethod.
1053 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1054 Pedro Alves <palves@redhat.com>
1056 PR breakpoints/17000
1057 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1058 New function, extracted from software_breakpoint_inserted_here_p.
1059 (software_breakpoint_inserted_here_p): Replace factored out code
1060 by call to find_non_raw_software_breakpoint_inserted_here.
1061 (bp_target_info_copy_insertion_state): New function.
1062 (bkpt_insert_location): Handle the case of a single-step
1063 breakpoint already inserted at the same address.
1064 (bkpt_remove_location): Handle the case of a single-step
1065 breakpoint still inserted at the same address.
1066 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1067 breakpoint already inserted at the same address.
1068 (deprecated_remove_raw_breakpoint): Handle the case of a
1069 non-raw breakpoint still inserted at the same address.
1070 (find_single_step_breakpoint): New function, extracted from
1071 single_step_breakpoint_inserted_here_p.
1072 (find_single_step_breakpoint): New function,
1073 factored out from single_step_breakpoint_inserted_here_p.
1074 (single_step_breakpoint_inserted_here_p): Reimplement.
1076 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1078 Pushed by Joel Brobecker <brobecker@adacore.com>
1079 * source.c (show_substitute_path_command): Fix display of matching
1082 2014-06-03 Gary Benson <gbenson@redhat.com>
1084 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1086 2014-06-02 Doug Evans <xdje42@gmail.com>
1088 Add parameter support for Guile.
1089 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1090 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1091 (scm-param.o): New rule.
1092 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1093 (gdbscm_misc_error): Declare.
1094 (gdbscm_canonicalize_command_name): Declare.
1095 (gdbscm_scm_to_host_string): Declare.
1096 (gdbscm_scm_from_host_string): Declare.
1097 (gdbscm_initialize_parameters): Declare.
1098 * guile/guile.c (initialize_gdb_module): Call
1099 gdbscm_initialize_parameters.
1100 * guile/lib/gdb.scm: Export parameter symbols.
1101 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1102 cmdscm_canonicalize_name and made public. All callers updated.
1103 * guile/scm-exception.c (gdbscm_misc_error): New function.
1104 * guile/scm-param.c: New file.
1105 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1106 (gdbscm_scm_to_host_string): New function.
1107 (gdbscm_scm_from_host_string): New function.
1108 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1110 2014-06-02 Doug Evans <xdje42@gmail.com>
1112 Add command support for Guile.
1113 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1114 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1115 (scm-cmd.o): New rule.
1116 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1117 (gdbscm_user_error_p): Declare.
1118 (gdbscm_parse_command_name): Declare.
1119 (gdbscm_valid_command_class_p): Declare.
1120 (gdbscm_initialize_commands): Declare.
1121 * guile/guile.c (initialize_gdb_module): Call
1122 gdbscm_initialize_commands.
1123 * guile/lib/gdb.scm: Export command symbols.
1124 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1125 (throw-user-error): New function.
1126 * guile/scm-cmd.c: New file.
1127 * guile/scm-exception.c (user_error_symbol): New static global.
1128 (gdbscm_user_error_p): New function.
1129 (gdbscm_initialize_exceptions): Set user_error_symbol.
1130 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1132 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1134 * top.c (command_loop): Handle comments here...
1135 (command_line_input): ... not here.
1137 2014-06-02 Doug Evans <xdje42@gmail.com>
1139 Add progspace support for Guile.
1140 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1141 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1142 (scm-progspace.o): New rule.
1143 * guile/guile-internal.h (pspace_smob): New typedef.
1144 (psscm_pspace_smob_pretty_printers): Declare.
1145 (psscm_pspace_smob_from_pspace): Declare.
1146 (psscm_scm_from_pspace): Declare.
1147 * guile/guile.c (initialize_gdb_module): Call
1148 gdbscm_initialize_pspaces.
1149 * guile/lib/gdb.scm: Export progspace symbols.
1150 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1152 (append-pretty-printer!): Ditto.
1153 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1155 * guile/scm-progspace.c: New file.
1157 2014-06-03 Alan Modra <amodra@gmail.com>
1159 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1160 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1162 2014-06-02 Doug Evans <dje@google.com>
1164 Add support for skeletonless type units.
1165 * dwarf2read.c (struct dwarf2_per_objfile): New member
1166 n_allocated_type_units.
1167 (struct dwarf2_per_objfile) <tu_stats>: New member
1168 nr_all_type_units_reallocs.
1169 (create_signatured_type_table_from_index): Initialize
1170 n_allocated_type_units
1171 (create_all_type_units): Ditto.
1172 (add_type_unit): Move up in file. New arg slot.
1173 All callers updated. Increase space for all_type_units more
1175 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1176 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1177 (lookup_dwp_signatured_type): Ditto.
1178 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1179 All callers updated.
1180 (build_type_psymtabs_1): Leave type_unit_groups as
1181 NULL if no TUs present.
1182 (print_tu_stats): New function.
1183 (process_skeletonless_type_unit): New function.
1184 (process_dwo_file_for_skeletonless_type_units): New
1186 (process_skeletonless_type_units): New function.
1187 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1188 Call print tu_stats if debugging enabled.
1190 2014-06-02 Pedro Alves <palves@redhat.com>
1192 * breakpoint.c (build_target_command_list): Don't build a command
1193 list if we have any duplicate location that isn't a dprintf.
1195 2014-06-02 Pedro Alves <palves@redhat.com>
1197 * breakpoint.c (dprintf_breakpoint_hit): New function.
1198 (initialize_breakpoint_ops): Install it as dprintf's
1199 breakpoint_hit method.
1201 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1203 * source.c (substitute_path_rule_matches): Simplify using
1204 filename_ncmp instead of FILENAME_CMP.
1206 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1208 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1210 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1212 * configure.ac: When Guile is available, check for the
1213 availability of 'scm_new_smob'.
1214 * configure, config.h.in: Regenerate.
1215 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1218 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1220 * frame.c (struct frame_info): Add stop_string field.
1221 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1222 (get_prev_frame_always): Old content moved into
1223 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1224 TRY_CATCH, handle MEMORY_ERROR exceptions.
1225 (frame_stop_reason_string): New function definition.
1226 * frame.h (unwind_stop_reason_to_string): Extend comment to
1227 mention frame_stop_reason_string.
1228 (frame_stop_reason_string): New function declaration.
1229 * stack.c (frame_info): Switch to frame_stop_reason_string.
1230 (backtrace_command_1): Switch to frame_stop_reason_string.
1231 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1232 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1233 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1235 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1237 * frame.c (frame_stop_reason_string): Rename to ...
1238 (unwind_stop_reason_to_string): this.
1239 * frame.h (frame_stop_reason_string): Rename to ...
1240 (unwind_stop_reason_to_string): this.
1241 * stack.c (frame_info): Update call to frame_stop_reason_string.
1242 (backtrace_command_1): Likewise.
1243 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1244 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1246 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1248 * frame.c (remove_prev_frame): New function.
1249 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1252 2014-05-29 Pedro Alves <palves@redhat.com>
1254 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1255 and make it const. When a single-step decays to a continue,
1256 clear 'step', not 'hw_step'. Pass whether the caller wanted
1257 to step to user_visible_resume_ptid, not what we ask the
1260 2014-05-29 Pedro Alves <palves@redhat.com>
1262 * infrun.c (process_event_stop_test, handle_step_into_function)
1263 (handle_step_into_function_backward): Adjust.
1264 Don't set the even thread's stop_step and call stop_waiting before
1265 calling end_stepping_range. Instead do that ...
1266 (end_stepping_range): ... here. Take an ecs pointer parameter.
1268 2014-05-29 Pedro Alves <palves@redhat.com>
1270 * infrun.c (stop_stepping): Rename to ...
1271 (stop_waiting): ... this.
1272 (proceed): Update comment.
1273 (process_event_stop_test, handle_inferior_event)
1274 (handle_signal_stop, handle_step_into_function)
1275 (handle_step_into_function_backward): Update.
1277 2014-05-29 Pedro Alves <palves@redhat.com>
1279 * infcall.c (run_inferior_call): Don't check whether the current
1280 thread is running after the proceed call.
1282 2014-05-29 Pedro Alves <palves@redhat.com>
1283 Tom Tromey <tromey@redhat.com>
1285 * NEWS: Mention "maint set target-async", "set mi-async", and that
1286 background execution commands are now always available.
1287 * target.h (target_async_permitted): Update comment.
1288 * target.c (target_async_permitted, target_async_permitted_1):
1290 (set_target_async_command): Rename to ...
1291 (maint_set_target_async_command): ... this.
1292 (show_target_async_command): Rename to ...
1293 (maint_show_target_async_command): ... this.
1294 (_initialize_target): Adjust.
1295 * infcmd.c (prepare_execution_command): Make extern.
1296 * inferior.h (prepare_execution_command): Declare.
1297 * infrun.c (set_observer_mode): Leave target async alone.
1298 * mi/mi-interp.c (mi_interpreter_init): Install
1299 mi_on_sync_execution_done as sync_execution_done observer.
1300 (mi_on_sync_execution_done): New function.
1301 (mi_execute_command_input_handler): Don't print the prompt if we
1302 just started a synchronous command with an async target.
1303 (mi_on_resume): Check sync_execution before printing prompt.
1304 * mi/mi-main.h (mi_async_p): Declare.
1305 * mi/mi-main.c: Include gdbcmd.h.
1306 (mi_async_p): New function.
1307 (mi_async, mi_async_1): New globals.
1308 (set_mi_async_command, show_mi_async_command, mi_async): New
1310 (exec_continue): Call prepare_execution_command.
1311 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1312 (mi_execute_async_cli_command): Use mi_async_p.
1313 (_initialize_mi_main): Install "set mi-async". Make
1314 "target-async" a deprecated alias.
1316 2014-05-29 Pedro Alves <palves@redhat.com>
1318 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1319 (_initialize_cli_interp): Adjust.
1320 * event-loop.c: Include "observer.h".
1321 (start_event_loop): Notify 'command_error' observers instead of
1322 calling display_gdb_prompt. Remove FIXME comment.
1323 * event-top.c (display_gdb_prompt): Remove call into the
1325 * inf-loop.c: Include "observer.h".
1326 (inferior_event_handler): Notify 'command_error' observers instead
1327 of calling display_gdb_prompt.
1328 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1329 observers instead of calling display_gdb_prompt.
1330 * interps.c (interp_set): Don't call display_gdb_prompt.
1331 (current_interp_display_prompt_p): Delete.
1332 * interps.h (interp_prompt_p): Delete declaration.
1333 (interp_prompt_p_ftype): Delete.
1334 (struct interp_procs) <prompt_proc_p>: Delete field.
1335 (current_interp_display_prompt_p): Delete declaration.
1336 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1337 (_initialize_mi_interp): Adjust.
1338 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1339 'command_error' observers.
1340 (tui_on_sync_execution_done, tui_on_command_error): New
1342 (tui_display_prompt_p): Delete.
1343 (_initialize_tui_interp): Adjust.
1345 2014-05-29 Pedro Alves <palves@redhat.com>
1348 * cli/cli-interp.c: Include infrun.h and observer.h.
1349 (cli_uiout, cli_interp): New globals.
1350 (cli_on_signal_received, cli_on_end_stepping_range)
1351 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1353 (cli_interpreter_init): Install them as 'end_stepping_range',
1354 'signal_received' 'signal_exited', 'exited' and 'no_history'
1356 (_initialize_cli_interp): Remove cli_interp local.
1357 * infrun.c (handle_inferior_event): Call the several stop reason
1358 observers instead of printing the stop reason directly.
1359 (end_stepping_range): New function.
1360 (print_end_stepping_range_reason, print_signal_exited_reason)
1361 (print_exited_reason, print_signal_received_reason)
1362 (print_no_history_reason): Make static, and add an uiout
1363 parameter. Print to that instead of to CURRENT_UIOUT.
1364 * infrun.h (print_end_stepping_range_reason)
1365 (print_signal_exited_reason, print_exited_reason)
1366 (print_signal_received_reason print_no_history_reason): New
1368 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1370 <cli_uiout>: New field.
1371 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1372 uiout for CLI output. Install 'signal_received',
1373 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1375 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1376 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1377 (mi_on_no_history): New functions.
1378 (ui_out_free_cleanup): Delete function.
1379 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1380 instead use the one already stored in the MI interpreter data.
1381 (mi_ui_out): Adjust.
1382 * tui/tui-interp.c: Include infrun.h and observer.h.
1383 (tui_interp): New global.
1384 (tui_on_signal_received, tui_on_end_stepping_range)
1385 (tui_on_signal_exited, tui_on_exited)
1386 (tui_on_no_history): New functions.
1387 (tui_init): Install them as 'end_stepping_range',
1388 'signal_received' 'signal_exited', 'exited' and 'no_history'
1390 (_initialize_tui_interp): Delete tui_interp local.
1392 2014-05-29 Pedro Alves <palves@redhat.com>
1395 * linux-nat.c (linux_nat_resume_callback): Rename the second
1396 parameter to 'except'. Skip LP if it points to EXCEPT.
1397 (linux_nat_resume): Don't mark the event lwp as not stopped
1398 before resuming sibling lwps. Instead ask
1399 linux_nat_resume_callback to skip the event lwp. Mark it as not
1400 stopped after actually resuming it.
1401 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1403 (wait_lwp): Mark the lwp as stopped here.
1404 (stop_wait_callback): Mark the lwp as not stopped right after
1405 resuming it. Don't mark lwps as stopped here.
1406 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1407 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1409 2014-05-29 Pedro Alves <palves@redhat.com>
1412 * infrun.c (resume): Determine how much to resume depending on
1413 whether the caller wanted a step, not whether we can hardware step
1414 the target. Mark all threads that we intend to run as running,
1415 unless we're calling an inferior function.
1416 (normal_stop): If the thread is running an infcall, don't finish
1418 * target.c (target_resume): Don't mark threads as running here.
1420 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1422 * serial.c (_initialize_serial): Remove support for
1423 the "set remotebaud" and "show remotebaud" commands.
1424 * NEWS: Add entry documenting the removal of that command.
1426 2014-05-28 Yao Qi <yao@codesourcery.com>
1428 * charset.c: Fix typo in comments.
1430 2014-05-27 Gary Benson <gbenson@redhat.com>
1432 * utils.c (internal_vproblem): Prompt for a bug report.
1434 2014-05-26 Andy Wingo <wingo@igalia.com>
1436 * guile/scm-arch.c (arscm_mark_arch_smob):
1437 * guile/scm-block.c (bkscm_mark_block_smob)
1438 (bkscm_mark_block_syms_progress_smob):
1439 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1440 * guile/scm-exception.c (exscm_mark_exception_smob):
1441 * guile/scm-frame.c (frscm_mark_frame_smob):
1442 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1443 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1444 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1445 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1446 (ppscm_mark_pretty_printer_worker_smob):
1447 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1448 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1449 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1450 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1452 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1455 2014-05-26 Andy Wingo <wingo@igalia.com>
1456 Doug Evans <xdje42@gmail.com>
1458 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1459 empty_base_class. All uses updated.
1460 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1461 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1463 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1464 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1465 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1466 (gdbscm_gsmob_has_property_p, add_property_name)
1467 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1468 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1469 (gdb-object-has-property?, gdb-object-properties): Remove.
1470 (gdb-object-kind): Renamed from gsmob-kind.
1472 2014-05-26 Andy Wingo <wingo@igalia.com>
1474 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1475 * configure: Regenerate.
1477 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1479 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1481 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1483 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1484 (replay_memory_access_read_only, replay_memory_access_read_write)
1485 (replay_memory_access_types, replay_memory_access)
1486 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1487 (cmd_set_record_btrace, cmd_show_record_btrace)
1488 (cmd_show_replay_memory_access): New.
1489 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1490 (record_btrace_remove_breakpoint): Replace
1491 record_btrace_allow_memory_access with replay_memory_access.
1492 (_initialize_record_btrace): Add commands.
1493 * NEWS: Announce it.
1495 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1497 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1499 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1501 * MAINTAINERS (Write After Approval): Move self back from
1504 2014-05-22 Pedro Alves <palves@redhat.com>
1506 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1507 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1508 (disable_randomization, enum exec_direction_kind)
1509 (execution_direction, stop_registers, start_remote)
1510 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1511 (wait_for_inferior, normal_stop, get_last_target_status)
1512 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1513 (insert_step_resume_breakpoint_at_sal)
1514 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1515 (set_step_info, print_stop_event, signal_stop_state)
1516 (signal_print_state, signal_pass_state, signal_stop_update)
1517 (signal_print_update, signal_pass_update)
1518 (update_signals_program_target, clear_exit_convenience_vars)
1519 (displaced_step_dump_bytes, update_observer_mode)
1520 (signal_catch_update, gdb_signal_from_command): Move
1522 * infrun.h: ... to this new file.
1523 * amd64-tdep.c: Include infrun.h.
1524 * annotate.c: Include infrun.h.
1525 * arch-utils.c: Include infrun.h.
1526 * arm-linux-tdep.c: Include infrun.h.
1527 * arm-tdep.c: Include infrun.h.
1528 * break-catch-sig.c: Include infrun.h.
1529 * breakpoint.c: Include infrun.h.
1530 * common/agent.c: Include infrun.h instead of inferior.h.
1531 * corelow.c: Include infrun.h.
1532 * event-top.c: Include infrun.h.
1533 * go32-nat.c: Include infrun.h.
1534 * i386-tdep.c: Include infrun.h.
1535 * inf-loop.c: Include infrun.h.
1536 * infcall.c: Include infrun.h.
1537 * infcmd.c: Include infrun.h.
1538 * infrun.c: Include infrun.h.
1539 * linux-fork.c: Include infrun.h.
1540 * linux-nat.c: Include infrun.h.
1541 * linux-thread-db.c: Include infrun.h.
1542 * monitor.c: Include infrun.h.
1543 * nto-tdep.c: Include infrun.h.
1544 * procfs.c: Include infrun.h.
1545 * record-btrace.c: Include infrun.h.
1546 * record-full.c: Include infrun.h.
1547 * remote-m32r-sdi.c: Include infrun.h.
1548 * remote-mips.c: Include infrun.h.
1549 * remote-notif.c: Include infrun.h.
1550 * remote-sim.c: Include infrun.h.
1551 * remote.c: Include infrun.h.
1552 * reverse.c: Include infrun.h.
1553 * rs6000-tdep.c: Include infrun.h.
1554 * s390-linux-tdep.c: Include infrun.h.
1555 * solib-irix.c: Include infrun.h.
1556 * solib-osf.c: Include infrun.h.
1557 * solib-svr4.c: Include infrun.h.
1558 * target.c: Include infrun.h.
1559 * top.c: Include infrun.h.
1560 * windows-nat.c: Include infrun.h.
1561 * mi/mi-interp.c: Include infrun.h.
1562 * mi/mi-main.c: Include infrun.h.
1563 * python/py-threadevent.c: Include infrun.h.
1565 2014-05-22 Pedro Alves <palves@redhat.com>
1567 * infrun.c (handle_inferior_event): Store the exit code for
1568 --return-child-result here, instead of ...
1569 (print_exited_reason): ... here.
1571 2014-05-21 Pedro Alves <palves@redhat.com>
1574 * gdbthread.h (struct thread_control_state): New field
1576 * infrun.c (follow_fork): Copy the new thread control field to the
1578 (clear_proceed_status_thread): Clear the new thread control field.
1579 (proceed): Set the new thread control field.
1580 * interps.h (command_interp): Declare.
1581 * interps.c (command_interpreter): New global.
1582 (command_interp): New function.
1583 (interp_exec): Set `command_interpreter' while here.
1584 * cli-out.c (cli_uiout_dtor): New function.
1585 (cli_ui_out_impl): Install it.
1586 * mi/mi-interp.c: Include cli-out.h.
1587 (mi_cmd_interpreter_exec): Add comment.
1588 (restore_current_uiout_cleanup): New function.
1589 (ui_out_free_cleanup): New function.
1590 (mi_on_normal_stop): If finishing an execution command started by
1591 a CLI command, or any kind of breakpoint-like event triggered,
1592 print the stop event to the output (CLI) stream.
1593 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1595 2014-05-21 Pedro Alves <palves@redhat.com>
1597 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1598 current source line having changed.
1599 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1600 * infrun.c (normal_stop): Adjust call to
1601 set_current_sal_from_frame.
1602 * source.c (clear_lines_listed_range): New function.
1603 (set_current_source_symtab_and_line, identify_source_line): Clear
1604 the lines listed range.
1605 (line_info): Handle the first "info line" after the current source
1606 line having changed.
1607 * stack.c (print_stack_frame): Remove center handling.
1608 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1611 2014-05-21 Pedro Alves <palves@redhat.com>
1613 * inf-child.c (inf_child_mourn_inferior): New function.
1614 * inf-child.h (inf_child_mourn_inferior): New declaration.
1615 * darwin-nat.c (darwin_mourn_inferior): Use
1616 inf_child_mourn_inferior.
1617 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1618 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1619 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1620 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1621 * windows-nat.c (windows_mourn_inferior): Likewise.
1623 2014-05-21 Doug Evans <xdje42@gmail.com>
1625 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1627 2014-05-21 Doug Evans <xdje42@gmail.com>
1629 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1630 (gdbscm_out_of_range_error): Ditto.
1631 (gdbscm_memory_error): Ditto.
1632 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1633 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1634 (gdbscm_out_of_range_error): Update.
1635 (gdbscm_memory_error): Update.
1636 (gdbscm_scm_to_target_string_unsafe): Delete.
1638 2014-05-21 Pedro Alves <palves@redhat.com>
1640 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1642 (inf_child_open_target): New function.
1643 (inf_child_open): Use inf_child_open_target to push the target
1644 instead of erroring out.
1645 (inf_child_disconnect, inf_child_close)
1646 (inf_child_maybe_unpush_target): New functions.
1647 (inf_child_target): Install inf_child_disconnect and
1648 inf_child_close. Store a pointer to the returned object.
1649 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1651 * target.c (auto_connect_native_target): New global.
1652 (show_default_run_target): New function.
1653 (find_default_run_target): Return NULL if automatically connecting
1654 to the native target is disabled.
1655 (_initialize_target): Install set/show auto-connect-native-target.
1656 * NEWS: Mention "set auto-connect-native-target", and "target
1658 * linux-nat.c (super_close): New global.
1659 (linux_nat_close): Call super_close.
1660 (linux_nat_add_target): Store a pointer to the base class's
1662 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1663 inf_child_maybe_unpush.
1664 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1666 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1667 the inferior. Use inf_child_maybe_unpush_target.
1668 (inf_ttrace_attach): Don't push the target if it is already
1670 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1671 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1672 after mourning the inferior. Use inf_child_maybe_unpush_target.
1673 (darwin_attach_pid): Don't push the target if it is already
1675 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1676 mourning the inferior. Use inf_child_maybe_unpush_target.
1677 (gnu_detach): Use inf_child_maybe_unpush_target.
1678 * go32-nat.c (go32_create_inferior): Don't push the target if it
1680 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1681 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1682 (procfs_open): Rename to ...
1683 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1684 comments. Can target_preopen before changing node. Call
1685 inf_child_open_target to push the target explicitly.
1686 (procfs_attach): Don't push the target if it is already pushed.
1687 (procfs_detach): Use inf_child_maybe_unpush_target.
1688 (procfs_create_inferior): Don't push the target if it is already
1690 (nto_native_ops): New global.
1691 (procfs_open): Reimplement.
1692 (procfs_native_open): New function.
1693 (init_procfs_targets): Install procfs_native_open as to_open of
1694 "target native". Store a pointer to the "native" target in
1696 * procfs.c (procfs_attach): Don't push the target if it is already
1698 (procfs_detach): Use inf_child_maybe_unpush_target.
1699 (procfs_mourn_inferior): Only unpush the target after mourning the
1700 inferior. Use inf_child_maybe_unpush_target.
1701 (procfs_init_inferior): Don't push the target if it is already
1703 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1704 if it is already pushed.
1706 2014-05-21 Pedro Alves <palves@redhat.com>
1708 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1709 and "procfs" targets are now called "native" instead.
1711 2014-05-21 Pedro Alves <palves@redhat.com>
1713 * go32-nat.c (go32_open): Delete.
1714 (go32_target): Don't override the to_open method.
1716 2014-05-21 Pedro Alves <palves@redhat.com>
1718 * nto-procfs.c (procfs_can_run): New function.
1719 (nto_procfs_ops): New global.
1720 (init_procfs_targets): New, based on procfs_target. Install
1721 "target native" in addition to "target procfs".
1722 (_initialize_procfs): Call init_procfs_targets instead of adding
1725 2014-05-21 Pedro Alves <palves@redhat.com>
1727 * windows-nat.c (windows_target): Don't override to_shortname,
1728 to_longname or to_doc.
1730 2014-05-21 Pedro Alves <palves@redhat.com>
1732 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1735 2014-05-21 Pedro Alves <palves@redhat.com>
1737 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1738 to_shortname, to_longname or to_doc.
1740 2014-05-21 Pedro Alves <palves@redhat.com>
1742 * go32-nat.c (go32_target): Don't override to_shortname,
1743 to_longname or to_doc.
1745 2014-05-21 Pedro Alves <palves@redhat.com>
1747 * inf-child.c (inf_child_open): Remove mention of "child".
1748 (inf_child_target): Rename target to "native" instead of "child".
1750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1752 * Makefile.in (SFILES): Delete "regset.c".
1753 (COMMON_OBS): Delete "regset.o".
1755 * regset.h (regset_alloc): Delete prototype.
1757 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1759 * sparc-linux-tdep.c (sparc32_linux_gregset)
1760 (sparc32_linux_fpregset): New static regset structures.
1761 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1762 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1764 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1765 (sparc64_linux_fpregset): New static regset structures.
1766 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1767 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1768 New static regset structures.
1769 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1770 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1771 New static regset structures.
1772 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1773 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1774 New static regset structures.
1775 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1776 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1777 New static regset structures.
1778 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1780 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1782 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1783 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1784 register maps ("regmaps") from "*regset" to "*regmap". Do this
1785 for all regmap types and variables.
1786 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1787 (sparc32_linux_supply_core_gregset)
1788 (sparc32_linux_collect_core_gregset)
1789 (sparc32_linux_supply_core_fpregset)
1790 (sparc32_linux_collect_core_fpregset): Likewise.
1791 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1792 (sparc_gregmap, sparc_fpregmap): ... these.
1793 (sparc_supply_gregset, sparc_collect_gregset)
1794 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1795 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1796 (_initialize_sparc_nat): Rename regmaps.
1797 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1798 (sparc_gregmap, sparc_fpregmap): ... these.
1799 (sparc_supply_gregset, sparc_collect_gregset)
1800 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1801 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1803 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1804 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1806 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1808 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1809 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1810 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1812 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1813 (sparc32_bsd_fpregset): Rename to...
1814 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1815 (sparc32_bsd_fpregmap): ... these.
1816 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1817 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1818 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1819 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1820 (struct sparc_gregmap, struct sparc_fpregmap)
1821 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1822 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1823 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1824 (sparc32_supply_regset, sparc32_collect_gregset)
1825 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1827 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1828 (sparc64_linux_ptrace_gregmap): ... this.
1829 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1830 (_initialize_sparc64_linux_nat): Rename regmaps.
1831 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1832 (sparc64_linux_core_gregmap): ... this.
1833 (sparc64_linux_supply_core_gregset)
1834 (sparc64_linux_collect_core_gregset)
1835 (sparc64_linux_supply_core_fpregset)
1836 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1837 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1838 (sparc64_sol2_fpregset): Rename to...
1839 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1840 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1841 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1843 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1844 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1845 (sparc64_bsd_fpregset): Rename to...
1846 (struct sparc_gregmap, sparc64_sol2_gregmap)
1847 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1848 (sparc64_bsd_fpregmap): ... these.
1849 (sparc64_supply_gregset, sparc64_collect_gregset)
1850 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1852 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1853 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1854 (sparc64fbsd_gregmap): ... this.
1855 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1856 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1858 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1859 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1860 (sparc64nbsd_collect_fpregset): Likewise.
1861 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1862 (sparc64nbsd_gregmap): ... this.
1863 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1865 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1866 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1867 (sparc64obsd_gregmap): ... this.
1868 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1870 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1871 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1872 (sparc32nbsd_gregmap): ... this.
1873 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1876 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1878 * score-tdep.c (score7_linux_gregset): New static regset
1880 (score7_linux_regset_from_core_section): Remove dynamic regset
1882 (score_gdbarch_init): Drop allocation of tdep structure.
1883 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1885 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1887 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1889 (am33_regset_from_core_section): Remove dynamic regset
1892 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1894 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1895 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1897 (mips_linux_regset_from_core_section): Remove dynamic regset
1899 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1900 'gregset64', 'fpregset', and 'fpregset64'.
1901 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1902 deleted tdep fields.
1904 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1906 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1908 (amd64_regset_from_core_section): Remove dynamic regset
1910 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1912 (amd64obsd_regset_from_core_section): Remove dynamic regset
1914 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1916 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1917 x86-common regset supply function.
1918 * i386-tdep.c (i386_collect_gregset): Make static.
1919 (i386_gregset): New global regset structure.
1920 (i386_fpregset, i386_xstateregset): New static regset structures.
1921 (i386_regset_from_core_section): Remove dynamic regset
1923 (i386_gdbarch_init): Remove initialization of tdep fields
1924 'gregset', 'fpregset', and 'xstateregset'.
1925 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1926 'fpregset', and 'xstateregset'.
1927 (i386_collect_gregset): Remove prototype.
1928 (i386_gregset): New declaration.
1929 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1931 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1934 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1936 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1937 (arm_linux_vfpregset): New static regset structures.
1938 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1940 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1941 and 'vfpregset' fields.
1943 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1945 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1946 (aarch64_linux_fpregset): New static regset structures.
1947 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1948 of regset structures.
1949 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1952 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1954 * regset.h (struct regset): Remove gdbarch field.
1955 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1956 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1957 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1959 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1960 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1961 (ppc32_linux_vsxregset): Likewise.
1962 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1963 via the regcache instead of the regset.
1964 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1965 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1966 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1967 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1970 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1972 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1973 Constify structures.
1974 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1975 (alphanbsd_aout_gregset): Likewise.
1976 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1977 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1979 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1980 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1982 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1983 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1984 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1985 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1986 * m88k-tdep.c (m88k_gregset): Likewise.
1987 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1988 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1989 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1990 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1991 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1992 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1993 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1994 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1995 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1997 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1998 * sh-tdep.h (sh_corefile_gregset): Likewise.
1999 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2000 * vax-tdep.c (vax_gregset): Likewise.
2002 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2004 Fix TLS access for -static -pthread.
2005 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2006 (try_thread_db_load_1): Initialize it.
2007 (thread_db_get_thread_local_address): Call it if LM is zero.
2008 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2009 * target.h (struct target_ops) (to_get_thread_local_address): Add
2010 load_module_addr comment.
2012 2014-05-21 Pedro Alves <palves@redhat.com>
2014 * dcache.c (dcache_read_memory_partial): If reading the cache line
2015 fails, fallback to reading just the memory the caller wanted.
2017 2014-05-20 Doug Evans <dje@google.com>
2019 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2020 instead of get_current_arch.
2022 2014-05-20 Pedro Alves <palves@redhat.com>
2024 * NEWS: Mention that compare-sections now works with all targets.
2026 * remote.c (PACKET_qCRC): New enum value.
2027 (remote_verify_memory): Don't send qCRC if the target has no
2028 execution. Use packet_support/packet_ok. If the target doesn't
2029 support the qCRC packet, fallback to a deep memory copy.
2030 (compare_sections_command): Say "target image" instead of "remote
2032 (_initialize_remote): Add PACKET_qCRC to the list of config
2033 packets that have no associated command. Extend comment.
2034 * target.c (simple_verify_memory, default_verify_memory): New
2036 * target.h (struct target_ops) <to_verify_memory>: Default to
2037 default_verify_memory.
2038 (simple_verify_memory): New declaration.
2039 * target-delegates.c: Regenerate.
2041 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2043 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2045 2014-05-20 Hui Zhu <hui@codesourcery.com>
2046 Yao Qi <yao@codesourcery.com>
2049 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2050 and change address of sp and pc.
2052 2014-05-19 Tom Tromey <tromey@redhat.com>
2054 * gdbtypes.c (rank_function): Use XNEWVEC.
2055 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2057 2014-05-19 Doug Evans <dje@google.com>
2059 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2060 build_type_unit_groups and moved closer to only caller. Remove
2061 arguments. All references updated. Remove outdated .gdb_index
2063 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2064 build_type_psymtabs_1.
2066 2014-05-19 Doug Evans <dje@google.com>
2068 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2069 n_type_unit_groups, all_type_unit_groups. All uses removed.
2070 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2071 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2072 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2073 (add_type_unit_group_to_table): Delete.
2075 2014-05-19 Doug Evans <dje@google.com>
2077 * eval.c (evaluate_subexp_standard): Add some comments.
2079 2014-05-17 Doug Evans <xdje42@gmail.com>
2081 * progspace.c (remove_program_space): Delete, unused.
2082 * progspace.h (remove_program_space): Ditto.
2084 2014-05-17 Doug Evans <xdje42@gmail.com>
2086 * inferior.c (prune_inferiors): Fix comment.
2087 (remove_inferior_command): Call prune_program_spaces.
2089 2014-05-16 Doug Evans <dje@google.com>
2091 New command line option -D.
2093 * main.c (set_gdb_data_directory): New function.
2094 (captured_main): Recognize -D. Flag error for --data-directory "".
2095 Call set_gdb_data_directory.
2096 (print_gdb_help): Print --data-directory, -D.
2097 * main.h (set_gdb_data_directory): Declare.
2098 * top.c (staged_gdb_datadir): New static global.
2099 (set_gdb_datadir): Call set_gdb_data_directory
2100 (show_gdb_datadir): New function.
2101 (init_main): Update init of data-directory parameter.
2103 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2105 Import the "dirfd" gnulib module.
2106 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2107 * gnulib/aclocal.m4: Update.
2108 * gnulib/config.in: Update.
2109 * gnulib/configure: Update.
2110 * gnulib/import/Makefile.am: Update.
2111 * gnulib/import/Makefile.in: Update.
2112 * gnulib/import/dirfd.c: New.
2113 * gnulib/import/m4/dirfd.m4: New.
2114 * gnulib/import/m4/gnulib-cache.m4: Update.
2115 * gnulib/import/m4/gnulib-comp.m4: Update.
2117 2014-05-16 Pierre Muller <muller@sourceware.org>
2118 Yao Qi <yao@codesourcery.com>
2120 * valprint.c (print_wchar): Move the code on checking whether
2121 W is a printable wide char to the default branch of switch
2122 statement below. Call wchar_printable instead of gdb_iswprint.
2124 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2126 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2127 ldr.w and ldrd instructions.
2129 2014-05-15 Doug Evans <dje@google.com>
2131 * dwarf2read.c (read_structure_type): Delete outdated comments.
2133 2014-05-14 Tom Tromey <tromey@redhat.com>
2135 * macrocmd.c (print_macro_definition): Reindent.
2137 2014-05-13 Doug Evans <xdje42@gmail.com>
2139 * python/py-cmd.c (cmdpy_completer): Add comment.
2140 (completers): Make const.
2142 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2144 * infrun.c (resume): Remove should_resume (unused). Move up
2145 declaration of resume_ptid.
2147 2014-05-13 Tom Tromey <tromey@redhat.com>
2149 * language.h (unop_type_check): Remove.
2150 (binop_type_check): Don't declare.
2152 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2154 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2155 call to regcache_raw_collect.
2157 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2159 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2160 mi_console->quote as the quoting character.
2162 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2164 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2166 2014-04-29 Tom Tromey <tromey@redhat.com>
2168 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2169 "show debug varobj".
2171 2014-05-07 Kyle McMartin <kyle@redhat.com>
2173 Pushed by Joel Brobecker <brobecker@adacore.com>.
2174 * aarch64-tdep.c (aarch64_software_single_step): New function.
2175 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2176 with aarch64_software_single_step.
2178 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2182 2014-05-05 Keith Seitz <keiths@redhat.com>
2184 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2185 variable or history value is successfully parsed.
2187 2014-05-05 Yao Qi <yao@codesourcery.com>
2188 Pedro Alves <palves@redhat.com>
2190 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2191 address of blocks that intersects the requested range. Trim
2192 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2194 * ctf.c (ctf_xfer_partial): Likewise.
2196 2014-05-05 Yao Qi <yao@codesourcery.com>
2198 * printcmd.c (display_command): Remove the check to
2199 target_has_execution.
2201 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2203 * ppcobsd-nat.c: Include "obsd-nat.h".
2204 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2206 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2208 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2210 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2211 and 16-bit signed and unsigned arguments. Update comment.
2212 (stap_parse_probe_arguments): Extend code to handle such
2213 arguments. Use warning instead of complaint to notify about
2214 unrecognized bitness.
2216 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2218 PR breakpoints/16889
2219 * stap-probe.c (stap_parse_probe_arguments): Simplify
2220 check for non-prefixed probes (i.e., probes whose
2221 arguments do not start with "N@"). Always set the
2222 argument type to a sane value.
2224 2014-05-01 David Taylor <dtaylor@emc.com>
2226 * remote.c (compare_sections_command): Add -r option to compare
2227 all loadable read-only sections.
2229 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2231 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2232 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2234 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2235 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2236 Remove unused CORE_ADDR argument. Update all callers.
2238 2014-04-29 Pedro Alves <palves@redhat.com>
2240 * remote.c (struct packet_config) <detect>: Extend comment.
2241 (add_packet_config_cmd): Don't set the config's detect or support
2243 (init_all_packet_configs): Also initialize the config's 'detect'
2245 (reset_all_packet_configs_support): New function.
2246 (remote_open_1): Call reset_all_packet_configs_support instead of
2247 init_all_packet_configs.
2248 (_initialize_remote): Initialize all packet configs. Assert that
2249 all packets have an associated command, except a few known
2252 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2254 * dwarf2read.c (read_subrange_type): Handle dynamic
2255 DW_AT_lower_bound attributes.
2257 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2259 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2260 dynamic bounds before computing its upper bound.
2261 (ada_discrete_type_low_bound): Same as above with the lower bound.
2263 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2265 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2266 range types. Adjust the array handling implementation to
2267 take advantage of this change.
2268 (resolve_dynamic_range): New function, mostly extracted from
2269 resolve_dynamic_bounds.
2270 (resolve_dynamic_array): New function, mostly extracted from
2271 resolve_dynamic_bounds.
2272 (resolve_dynamic_bounds): Delete.
2273 (resolve_dynamic_type): Reimplement. Add handling of
2274 TYPE_CODE_RANGE types.
2276 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2278 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2279 handling of parallel ___XA types.
2281 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2283 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2284 unnecessary second call to static_unwrap_type.
2286 2014-04-27 Hui Zhu <hui@codesourcery.com>
2288 * stack.c (print_frame_info): Call do_gdb_disassembly with
2289 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2291 2014-04-26 Doug Evans <xdje42@gmail.com>
2293 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2295 2014-04-25 Pedro Alves <palves@redhat.com>
2298 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2299 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2300 and newline from built string.
2301 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2302 (linux_ptrace_attach_fail_reason): ... this.
2303 * linux-nat.c (linux_nat_attach): Adjust to use
2304 linux_ptrace_attach_fail_reason.
2306 2014-04-25 Pedro Alves <palves@redhat.com>
2308 * remote.c (struct remote_state): Remove multi_process_aware,
2309 non_stop_aware, cond_tracepoints, cond_breakpoints,
2310 breakpoint_commands, fast_tracepoints, static_tracepoints,
2311 install_in_trace, disconnected_tracing,
2312 enable_disable_tracepoints, string_tracing, and
2313 augmented_libraries_svr4_read fields.
2314 (remote_multi_process_p): Move further below in the file.
2315 (struct packet_config): Add comments.
2316 (update_packet_config): Delete function.
2317 (show_packet_config_cmd): Use packet_config_support.
2318 (add_packet_config_cmd): Use NULL as set callback.
2319 (packet_ok): "set remote foo-packet"-style commands no longer
2320 change config->supported -- adjust.
2321 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2322 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2323 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2324 (PACKET_QNonStop, PACKET_multiprocess_feature)
2325 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2326 (PACKET_DisconnectedTracing_feature)
2327 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2328 (set_remote_protocol_packet_cmd): Delete function.
2329 (packet_config_support, packet_support): New functions.
2330 (set_remote_protocol_Z_packet_cmd): Don't call
2331 update_packet_config.
2332 (remote_query_attached, remote_pass_signals)
2333 (remote_program_signals, remote_threads_info)
2334 (remote_threads_extra_info, remote_start_remote): Use
2336 (remote_start_remote): Use packet_config_support and
2338 (init_all_packet_configs): Set all packets to unknown support,
2339 instead of calling update_packet_config.
2340 (remote_check_symbols): Use packet_support.
2341 (remote_supported_packet): Unconditionally set the packet config's
2343 (remote_multi_process_feature, remote_non_stop_feature)
2344 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2345 (remote_breakpoint_commands_feature)
2346 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2347 (remote_install_in_trace_feature)
2348 (remote_disconnected_tracing_feature)
2349 (remote_enable_disable_tracepoint_feature)
2350 (remote_string_tracing_feature)
2351 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2352 (remote_protocol_features): Adjust to use remote_supported_packet
2353 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2354 "ConditionalTracepoints", "ConditionalBreakpoints",
2355 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2356 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2357 "EnableDisableTracepoints", and "tracenz".
2358 (remote_query_supported): Use packet_support.
2359 (remote_open_1): Adjust.
2360 (extended_remote_attach_1): Use packet_support. Switch on the
2361 result of packet_ok instead of checking whether the packet ended
2363 (remote_vcont_resume): Use packet_support.
2364 (remote_resume, remote_stop_ns, fetch_register_using_p)
2365 (remote_prepare_to_store, store_register_using_P)
2366 (check_binary_download, remote_write_bytes): Use packet_support.
2367 (remote_vkill): Use packet_support. Switch on the result of
2368 packet_ok instead of checking whether the packet ended up
2370 (extended_remote_supports_disable_randomization): Use
2372 (extended_remote_run): Switch on the result of packet_ok instead
2373 of checking whether the packet ended up disabled.
2374 (remote_insert_breakpoint, remote_remove_breakpoint)
2375 (remote_insert_watchpoint, remote_remove_watchpoint)
2376 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2378 (remote_search_memory): Use packet_config_support.
2379 (remote_get_thread_local_address, remote_get_tib_address)
2380 (remote_hostio_send_command, remote_can_execute_reverse): Use
2382 (remote_supports_cond_tracepoints)
2383 (remote_supports_cond_breakpoints)
2384 (remote_supports_fast_tracepoints)
2385 (remote_supports_static_tracepoints)
2386 (remote_supports_install_in_trace)
2387 (remote_supports_enable_disable_tracepoint)
2388 (remote_supports_string_tracing)
2389 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2390 the packet config says the feature is enabled or disabled.
2391 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2392 (remote_get_trace_status): Use packet_support.
2393 (remote_set_disconnected_tracing): Adjust to check whether the
2394 feature is enabled with packet_support.
2395 (remote_set_trace_buffer_size, remote_use_agent)
2396 (remote_can_use_agent, remote_supports_btrace): Use
2398 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2399 Use packet_config_support.
2400 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2401 the packet config says the feature is enabled or disabled.
2402 (set_range_stepping): Use packet_support.
2404 2014-04-25 Tom Tromey <tromey@redhat.com>
2406 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2409 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2411 * NEWS: Mention support for C99 variable length arrays.
2413 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2415 * ada-lang.c (standard_exc): Expand introductory comment.
2417 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2418 Walfred Tedeschi <walfred.tedeschi@intel.com>
2420 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2422 (amd64_linux_read_description): Add code to handle AVX512 xstate
2423 mask and return respective tdesc.
2424 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2425 and features/i386/x32-avx512-linux.c.
2426 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2427 (amd64_linux_core_read_description): Add code to handle AVX512
2428 xstate mask and return respective tdesc.
2429 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2430 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2432 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2433 (tdesc_amd64_avx512_linux): New prototype.
2434 (tdesc_x32_avx512_linux): Likewise.
2435 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2436 features/i386/x32-avx512.c.
2437 (amd64_ymm_avx512_names): New register names for pseudo
2439 (amd64_ymmh_avx512_names): New register names for raw registers
2441 (amd64_k_names): New register names for K registers.
2442 (amd64_zmmh_names): New register names for ZMM raw registers.
2443 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2444 (amd64_xmm_avx512_names): New register names for XMM16-31
2446 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2448 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2449 if feature is present.
2450 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2451 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2452 (AMD64_NUM_REGS): Adjust to new number of registers.
2453 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2454 registers supplied via XSTATE by AVX512 registers.
2455 (i386_linux_read_description): Add case for AVX512.
2456 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2457 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2458 (i386_linux_core_read_description): Add case for AVX512.
2459 (i386_linux_init_abi): Install supported register note section
2461 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2463 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2464 registers to be number of zmm7h + 1.
2465 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2466 * i386-tdep.c: Include features/i386/i386-avx512.c.
2467 (i386_zmm_names): Add ZMM pseudo register names array.
2468 (i386_zmmh_names): Add ZMM raw register names array.
2469 (i386_k_names): Add K raw register names array.
2470 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2471 registers. AVX512 has 16 more ZMM registers than there are YMM
2473 (i386_zmmh_regnum_p): Add function to look up register number of
2475 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2476 (i386_k_regnum_p): Likewise for K raw registers.
2477 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2478 registers added by AVX512.
2479 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2480 registers added by AVX512.
2481 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2483 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2484 (i386_pseudo_register_name): Add ZMM pseudo registers.
2485 (i386_zmm_type): Construct and return vector registers type for ZMM
2487 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2488 ZMM0-31 pseudo registers and K registers.
2489 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2490 and YMM16-31 registers from register cache.
2491 (i386_pseudo_register_write): Add code to write K, ZMM and
2493 (i386_register_reggroup_p): Add code to include/exclude AVX512
2494 registers in/from respective register groups.
2495 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2496 registers if feature is present in xcr0.
2497 (i386_gdbarch_init): Add code to initialize AVX512 feature
2498 variables in tdep structure, wire in pseudo registers and call
2499 initialize_tdesc_i386_avx512.
2500 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2502 (i386_regnum): Add AVX512 registers.
2503 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2504 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2505 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2506 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2508 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2509 (i386_ymm_avx512_regnum_p): Likewise.
2510 (i386_k_regnum_p): Likewise.
2511 (i386_zmm_regnum_p): Likewise.
2512 (i386_zmmh_regnum_p): Likewise.
2513 * i387-tdep.c : Update year in copyright notice.
2514 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2516 (XSAVE_YMM_AVX512_ADDR): New macro.
2517 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2519 (XSAVE_XMM_AVX512_ADDR): New macro.
2520 (xsave_avx512_k_offset): New table for K register offsets in
2522 (XSAVE_AVX512_K_ADDR): New macro.
2523 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2525 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2526 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2528 (i387_collect_xsave): Add code to collect AVX512 registers from
2530 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2531 of XMM16-31 registers.
2532 (I387_NUM_K_REGS): New define for number of K registers.
2533 (I387_K0_REGNUM): New define for K0 register number.
2534 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2535 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2536 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2538 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2539 (I387_XMM16_REGNUM): New define for XMM16 register number.
2540 (I387_YMM0_REGNUM): New define for YMM0 register number.
2541 (I387_KEND_REGNUM): New define for last K register number.
2542 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2543 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2545 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2547 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2549 * features/Makefile: Add AVX512 related files.
2550 * features/i386/32bit-avx512.xml: New file.
2551 * features/i386/64bit-avx512.xml: Likewise.
2552 * features/i386/amd64-avx512-linux.c: Likewise.
2553 * features/i386/amd64-avx512-linux.xml: Likewise.
2554 * features/i386/amd64-avx512.c: Likewise.
2555 * features/i386/amd64-avx512.xml: Likewise.
2556 * features/i386/i386-avx512-linux.c: Likewise.
2557 * features/i386/i386-avx512-linux.xml: Likewise.
2558 * features/i386/i386-avx512.c: Likewise.
2559 * features/i386/i386-avx512.xml: Likewise.
2560 * features/i386/x32-avx512-linux.c: Likewise.
2561 * features/i386/x32-avx512-linux.xml: Likewise.
2562 * features/i386/x32-avx512.c: Likewise.
2563 * features/i386/x32-avx512.xml: Likewise.
2564 * regformats/i386/amd64-avx512-linux.dat: New file.
2565 * regformats/i386/amd64-avx512.dat: Likewise.
2566 * regformats/i386/i386-avx512-linux.dat: Likewise.
2567 * regformats/i386/i386-avx512.dat: Likewise.
2568 * regformats/i386/x32-avx512-linux.dat: Likewise.
2569 * regformats/i386/x32-avx512.dat: Likewise.
2570 * NEWS: Add note about new support for AVX512.
2573 2014-04-23 Pedro Alves <palves@redhat.com>
2575 * breakpoint.c (insert_bp_location): Tolerate errors if the
2576 breakpoint is set in a user-loaded objfile.
2577 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2578 location is marked shlib_disabled. If the breakpoint is set in a
2579 user-loaded objfile is a GDB-side memory breakpoint, validate it
2580 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2581 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2583 * mem-break.c (memory_validate_breakpoint): New function.
2584 * objfiles.c (userloaded_objfile_contains_address_p): New
2586 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2587 * target.h (memory_validate_breakpoint): New declaration.
2589 2014-04-23 Pedro Alves <palves@redhat.com>
2591 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2592 the breakpoint is set in a shared library, only suppress
2593 errors for software breakpoints, not hardware breakpoints.
2595 2014-04-22 Pedro Alves <palves@redhat.com>
2597 * infrun.c (schedlock_applies): New function, factored out from
2598 find_thread_needs_step_over.
2599 (find_thread_needs_step_over): Use it.
2600 (switch_back_to_stepped_thread): Always clear trap_expected if the
2601 step over is finished. Return early if scheduler locking applies.
2602 Look for the stepping thread and a potential step-over thread with
2604 (currently_stepping_or_nexting_callback): Delete.
2606 2014-04-22 Nick Clifton <nickc@redhat.com>
2608 * NEWS: Mention that ARM sim now supports tracing.
2610 2014-04-22 Yao Qi <yao@codesourcery.com>
2612 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2614 * tracefile.c (tracefile_fetch_registers): ... it. New
2616 * tracefile.h (tracefile_fetch_registers): Declare.
2617 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2618 tracefile_fetch_registers.
2620 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2623 * windows-nat.c (thread_rec): Don't display a warning when
2624 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2625 fails for any reason, set th->suspended to -1, so that we don't
2626 try to resume such a thread. Also, don't return NULL in these
2627 cases, to avoid completely ruin the session due to "PC register is
2628 not available" error.
2629 (do_windows_fetch_inferior_registers): Check errors in
2630 GetThreadContext call.
2631 (windows_continue): Accept an additional argument KILLED; if not
2632 zero, ignore errors in the SetThreadContext call, since the
2633 inferior was killed and is shutting down.
2634 (windows_resume, get_windows_debug_event)
2635 (windows_create_inferior, windows_mourn_inferior)
2636 (windows_kill_inferior): All callers of windows_continue changed
2637 to adjust to its new calling sequence.
2639 2014-04-19 Yao Qi <yao@codesourcery.com>
2641 * ctf.c (ctf_open): Call post_create_inferior.
2643 2014-04-19 Yao Qi <yao@codesourcery.com>
2645 * ctf.c (handle_id): New static variable.
2646 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2647 value. Get the declaration of event "register" and get length
2648 of field "contents".
2650 2014-04-19 Yao Qi <yao@codesourcery.com>
2652 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2654 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2656 * valops.c (oload_method_static): Remove unnecessary argument
2657 METHOD. Update all callers.
2659 2014-04-18 Pedro alves <palves@redhat.com>
2660 Tom Tromey <tromey@redhat.com>
2663 * frame.c (get_prev_frame_1): Rename to ...
2664 (get_prev_frame_always): ... this, and make extern. Adjust.
2665 (skip_artificial_frames): Use get_prev_frame_always.
2666 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2667 (get_frame_unwind_stop_reason): Adjust to rename.
2668 * frame.h (get_prev_frame_always): Declare.
2669 * inline-frame.c: Include frame.h.
2670 (inline_frame_this_id): Use get_prev_frame_always.
2672 2014-04-18 Tristan Gingold <gingold@adacore.com>
2674 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2675 code by using bfd_mach_o_get_base_address.
2677 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2679 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2680 (spu_ax_pseudo_register_collect): New function.
2681 (spu_ax_pseudo_register_push_stack): Likewise.
2682 (spu_dwarf_reg_to_regnum): Likewise.
2683 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2685 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2687 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2688 Replace FRAME argument with FRAME_ID.
2689 * gdbarch.c, gdbarch.h: Regenerate.
2690 * findvar.c (default_value_from_register): Add GDBARCH argument;
2691 replace FRAME by FRAME_ID. No longer call get_frame_id.
2692 (value_from_register): Update call to gdbarch_value_from_register.
2693 * value.h (default_value_from_register): Update prototype.
2694 * s390-linux-tdep.c (s390_value_from_register): Update interface
2695 and call to default_value_from_register.
2696 * spu-tdep.c (spu_value_from_register): Likewise.
2698 * findvar.c (address_from_register): Remove TYPE argument.
2699 Do not call value_from_register; use gdbarch_value_from_register
2700 with null_frame_id instead.
2701 * value.h (address_from_register): Update prototype.
2702 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2703 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2704 address_from_register interface change.
2706 2014-04-17 Yao Qi <yao@codesourcery.com>
2708 * gdbtypes.h: Update comments to link to types and macros'
2711 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2713 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2715 2014-04-16 Keith Seitz <keiths@redhat.com>
2718 * dwarf2read.c (skip_one_die): Check that all relative-offset
2719 sibling DIEs fall within range of the current reader's buffer.
2720 (read_partial_die): Likewise.
2722 2014-04-16 Keith Seitz <keiths@redhat.com>
2725 * cp-namespace.c (lookup_symbol_file): If the type name of
2726 `this' is NULL, return immediately.
2728 2014-04-14 Keith Seitz <keiths@redhat.com>
2731 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2732 from symbol_matches_domain in symtab.c. All local callers
2733 of symbol_matches_domain updated.
2734 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2735 search STRUCT_DOMAIN.
2736 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2737 independently. standard_lookup will do that automatically.
2738 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2739 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2740 (cp_lookup_symbol_in_namespace): Likewise.
2741 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2742 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2743 may return a STRUCT_DOMAIN match.
2744 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2745 * cp-support.c: Include language.h.
2746 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2748 * psymtab.c (match_partial_symbol): Compare the requested
2749 domain with the symbol's domain directly.
2750 (lookup_partial_symbol): Likewise.
2751 * symtab.c (lookup_symbol_in_language): Explain when/why
2752 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2753 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2754 appropriate languages.
2755 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2756 and moved to ada-lang.c
2757 (lookup_block_symbol): Explain that this function only returns
2758 symbol matching the requested DOMAIN.
2759 Compare the requested domain with the symbol's domain directly.
2760 (iterate_over_symbols): Compare the requested domain with the
2761 symbol's domain directly.
2762 * symtab.h (symbol_matches_domain): Remove.
2764 2014-04-14 Tom Tromey <tromey@redhat.com>
2767 * c-exp.y (type_aggregate_p): New function.
2768 (qualified_name, classify_inner_name): Use it.
2769 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2770 and TYPE_TARGET_TYPE of an enum type.
2771 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2773 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2774 handle TYPE_DECLARED_CLASS.
2775 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2777 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2778 * valops.c (enum_constant_from_type): New function.
2779 (value_aggregate_elt): Use it.
2780 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2783 2014-04-14 Tom Tromey <tromey@redhat.com>
2785 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2786 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2788 * value.h (value_aggregate_elt): Update.
2790 2014-04-14 Tom Tromey <tromey@redhat.com>
2792 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2796 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2797 (evaluate_subexp_standard): Pass noside argument.
2798 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2799 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2800 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2801 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2802 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2804 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2806 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2807 points to a constant blob.
2809 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2811 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2812 property and store it as the high bound and flag the range accordingly.
2813 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2814 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2815 * gdbtypes.h (enum range_flags): New enum.
2816 (struct range_bounds): Add flags member.
2818 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2820 * c-typeprint.c (c_type_print_varspec_suffix): Added
2821 check for not yet resolved high bound. If unresolved, print
2822 "variable length" string to the console instead of random
2825 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2827 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2829 (ada_template_to_fixed_record_type_1): Likewise.
2830 (ada_to_fixed_type_1): Likewise.
2831 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2832 (cp_print_value): Likewise.
2833 * d-valprint.c (dynamic_array_type): Likewise.
2834 * findvar.c (address_of_variable): Likewise.
2835 * jv-valprint.c (java_value_print): Likewise.
2836 * valops.c (value_ind): Likewise.
2837 * value.c (coerce_ref): Likewise.
2839 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2841 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2842 value and retrieve the dynamic type size.
2844 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2846 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2847 passed to sizeof is dynamic evaluate the argument to compute the length.
2849 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2850 Joel Brobecker <brobecker@adacore.com>
2852 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2853 (dwarf2_evaluate_property): New function.
2854 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2855 * dwarf2read.c (attr_to_dynamic_prop): New function.
2856 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2858 * gdbtypes.c: Include dwarf2loc.h.
2859 (is_dynamic_type): New function.
2860 (resolve_dynamic_type): New function.
2861 (resolve_dynamic_bounds): New function.
2862 (get_type_length): New function.
2863 (check_typedef): Use get_type_length to compute type length.
2864 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2865 (TYPE_LOW_BOUND_KIND): New macro.
2866 (is_dynamic_type): New function prototype.
2867 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2868 to resolve dynamic properties of the type. Update comment.
2869 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2871 2014-04-14 Richard Henderson <rth@redhat.com>
2873 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2875 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2876 Doug Evans <xdje42@gmail.com>
2878 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2879 dereference TYPE_CODE_REF values.
2881 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2883 Revert the following changes due to regressions:
2885 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2886 (dwarf2_evaluate_property): New function.
2887 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2888 * dwarf2read.c (attr_to_dynamic_prop): New function.
2889 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2891 * gdbtypes.c: Include dwarf2loc.h.
2892 (is_dynamic_type): New function.
2893 (resolve_dynamic_type): New function.
2894 (resolve_dynamic_bounds): New function.
2895 (get_type_length): New function.
2896 (check_typedef): Use get_type_length to compute type length.
2897 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2898 (TYPE_LOW_BOUND_KIND): New macro.
2899 (is_dynamic_type): New function prototype.
2900 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2901 to resolve dynamic properties of the type. Update comment.
2902 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2904 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2905 passed to sizeof is dynamic evaluate the argument to compute the length.
2907 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2908 value and retrieve the dynamic type size.
2910 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2911 (ada_template_to_fixed_record_type_1): Likewise.
2912 (ada_to_fixed_type_1): Likewise.
2913 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2914 (cp_print_value): Likewise.
2915 * d-valprint.c (dynamic_array_type): Likewise.
2916 * eval.c (evaluate_subexp_with_coercion): Likewise.
2917 * findvar.c (address_of_variable): Likewise.
2918 * jv-valprint.c (java_value_print): Likewise.
2919 * valops.c (value_ind): Likewise.
2920 * value.c (coerce_ref): Likewise.
2922 * c-typeprint.c (c_type_print_varspec_suffix): Added
2923 check for not yet resolved high bound. If unresolved, print
2924 "variable length" string to the console instead of random
2927 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2928 property and store it as the high bound and flag the range accordingly.
2929 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2930 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2931 * gdbtypes.h (enum range_flags): New enum.
2932 (struct range_bounds): Add flags member.
2934 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2935 points to a constant blob.
2937 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2938 (evaluate_subexp_standard): Pass noside argument.
2939 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2940 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2941 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2942 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2943 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2945 2014-04-11 Keith Seitz <keiths@redhat.com>
2948 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2949 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2954 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2955 (evaluate_subexp_standard): Pass noside argument.
2956 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2957 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2958 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2959 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2960 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2962 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2964 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2965 points to a constant blob.
2967 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2969 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2970 property and store it as the high bound and flag the range accordingly.
2971 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2972 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2973 * gdbtypes.h (enum range_flags): New enum.
2974 (struct range_bounds): Add flags member.
2976 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2978 * c-typeprint.c (c_type_print_varspec_suffix): Added
2979 check for not yet resolved high bound. If unresolved, print
2980 "variable length" string to the console instead of random
2983 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2985 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2986 (ada_template_to_fixed_record_type_1): Likewise.
2987 (ada_to_fixed_type_1): Likewise.
2988 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2989 (cp_print_value): Likewise.
2990 * d-valprint.c (dynamic_array_type): Likewise.
2991 * eval.c (evaluate_subexp_with_coercion): Likewise.
2992 * findvar.c (address_of_variable): Likewise.
2993 * jv-valprint.c (java_value_print): Likewise.
2994 * valops.c (value_ind): Likewise.
2995 * value.c (coerce_ref): Likewise.
2997 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2999 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3000 value and retrieve the dynamic type size.
3002 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3004 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3005 passed to sizeof is dynamic evaluate the argument to compute the length.
3007 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3009 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3010 (dwarf2_evaluate_property): New function.
3011 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3012 * dwarf2read.c (attr_to_dynamic_prop): New function.
3013 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3015 * gdbtypes.c: Include dwarf2loc.h.
3016 (is_dynamic_type): New function.
3017 (resolve_dynamic_type): New function.
3018 (resolve_dynamic_bounds): New function.
3019 (get_type_length): New function.
3020 (check_typedef): Use get_type_length to compute type length.
3021 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3022 (TYPE_LOW_BOUND_KIND): New macro.
3023 (is_dynamic_type): New function prototype.
3024 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3025 to resolve dynamic properties of the type. Update comment.
3026 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3028 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3030 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3031 declaring high/low bounds and change uses accordingly. Call
3032 create_range_type instead of create_static_range_type.
3033 * gdbtypes.c (create_range_type): New function.
3034 (create_range_type): Convert bounds into struct bound_prop and pass
3035 them to create_range_type.
3036 * gdbtypes.h (struct bound_prop): New struct.
3037 (create_range_type): New function prototype.
3038 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3039 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3040 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3042 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3046 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3047 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3048 * ada-lang.c: All uses of create_range_type updated.
3049 * coffread.c: All uses of create_range_type updated.
3050 * dwarf2read.c: All uses of create_range_type updated.
3051 * f-exp.y: All uses of create_range_type updated.
3052 * m2-valprint.c: All uses of create_range_type updated.
3053 * mdebugread.c: All uses of create_range_type updated.
3054 * stabsread.c: All uses of create_range_type updated.
3055 * valops.c: All uses of create_range_type updated.
3056 * valprint.c: All uses of create_range_type updated.
3058 2014-04-10 Pedro Alves <palves@redhat.com>
3060 * breakpoint.c (single_step_breakpoints)
3061 (single_step_gdbarch): Move up in the file.
3062 (one_breakpoint_xfer_memory): New function, factored out from ...
3063 (breakpoint_xfer_memory): ... here. Also process single-step
3066 2014-04-09 Tristan Gingold <gingold@adacore.com>
3068 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3070 (darwin_decode_exception_message): Free port only after use.
3072 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3074 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3075 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3076 when setting the size of call_length.
3078 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3080 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3081 dereference TYPE_CODE_REF values.
3083 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3085 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3086 end of warning message.
3088 2014-04-03 Doug Evans <dje@google.com>
3090 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3091 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3093 2014-04-02 Alan Modra <amodra@gmail.com>
3095 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3096 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3097 (struct symbol_file_add_from_memory_args): Add size field.
3098 (find_vdso_size): New function.
3099 (add_vsyscall_page): Attempt to find vdso size.
3101 2014-04-01 Doug Evans <dje@google.com>
3103 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3105 2014-04-01 Tristan Gingold <gingold@adacore.com>
3107 * darwin-nat.c (darwin_encode_reply): Add prototype.
3108 (darwin_decode_exception_message): Reply to unknown inferiors.
3109 (darwin_decode_message): Handle message by id. Ignore message
3110 to unknown inferior.
3111 (darwin_wait): Discard unknown messages, add debug trace.
3113 2014-03-31 Doug Evans <dje@google.com>
3115 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3118 2014-03-31 Doug Evans <dje@google.com>
3120 New option "set print symbol-loading".
3122 * solib.c (solib_read_symbols): Only print symbol loading messages
3124 (solib_add): If symbol loading is in "brief" mode, notify user
3125 symbols are being loaded.
3126 (reload_shared_libraries_1): Ditto.
3127 * symfile.c (print_symbol_loading_off): New static global.
3128 (print_symbol_loading_brief): New static global.
3129 (print_symbol_loading_full): New static global.
3130 (print_symbol_loading_enums): New static global.
3131 (print_symbol_loading): New static global.
3132 (print_symbol_loading_p): New function.
3133 (symbol_file_add_with_addrs): Only print symbol loading messages
3135 (_initialize_symfile): Register "print symbol-loading" set/show
3137 * symfile.h (print_symbol_loading_p): Declare.
3139 2014-03-30 Doug Evans <xdje42@gmail.com>
3141 * infrun.c (set_last_target_status): New function.
3142 (handle_inferior_event): Call it.
3144 2014-03-30 Doug Evans <xdje42@gmail.com>
3146 * inferior.h (enum stop_kind): Improve comment.
3148 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3150 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3151 a reference, strip the reference layer before calling
3152 the lang_ops value_has_mutated callback.
3154 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3156 Remove some globals from our parser.
3157 * language.c (unk_lang_parser): Add "struct parser_state"
3159 * language.h (struct language_defn) <la_parser>: Likewise.
3160 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3161 (initialize_expout): Add "struct parser_state" argument.
3162 Rewrite function to use the parser state.
3163 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3164 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3165 write_exp_elt_longcst, write_exp_elt_dblcst,
3166 write_exp_elt_decfloatcst, write_exp_elt_type,
3167 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3168 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3169 write_dollar_variable): Likewise.
3170 (parse_exp_in_context_1): Use parser state.
3171 (insert_type_address_space): Add "struct parser_state" argument.
3173 (increase_expout_size): New function.
3174 * parser-defs.h: Forward declare "struct language_defn" and
3175 "struct parser_state".
3176 (expout, expout_size, expout_ptr): Remove extern declarations.
3177 (parse_gdbarch, parse_language): Rewrite macro declarations to
3178 accept the parser state.
3179 (struct parser_state): New struct.
3180 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3181 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3182 write_exp_elt_decfloatcst, write_exp_elt_type,
3183 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3184 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3185 write_exp_msymbol, write_dollar_variable,
3186 mark_struct_expression, insert_type_address_space): Add "struct
3187 parser_state" argument.
3188 (increase_expout_size): New function.
3189 * utils.c (do_clear_parser_state): New function.
3190 (make_cleanup_clear_parser_state): Likewise.
3191 * utils.h (make_cleanup_clear_parser_state): New function
3193 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3194 Update calls to write_exp* in order to pass the parser state.
3195 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3196 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3197 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3198 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3199 * stap-probe.c (stap_parse_register_operand): Likewise.
3200 (stap_parse_single_operand): Likewise.
3201 (stap_parse_argument_1): Likewise.
3202 (stap_parse_argument): Use parser state.
3203 * stap-probe.h: Include "parser-defs.h".
3204 (struct stap_parse_info) <pstate>: New field.
3205 * c-exp.y (parse_type): Rewrite to use parser state.
3206 (yyparse): Redefine to c_parse_internal.
3207 (pstate): New global variable.
3208 (parse_number): Add "struct parser_state" argument.
3209 (write_destructor_name): Likewise.
3210 (type_exp): Update calls to write_exp* and similars in order to
3212 (exp1, exp, variable, qualified_name, space_identifier,
3213 typename, typebase): Likewise.
3214 (write_destructor_name, parse_number, lex_one_token,
3215 classify_name, classify_inner_name, c_parse): Add "struct
3216 parser_state" argument. Update function to use parser state.
3217 * c-lang.h: Forward declare "struct parser_state".
3218 (c_parse): Add "struct parser_state" argument.
3219 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3220 (yyparse): Redefine macro to ada_parse_internal.
3221 (pstate): New variable.
3222 (write_int, write_object_renaming, write_var_or_type,
3223 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3224 type_int, type_long, type_long_long, type_float, type_double,
3225 type_long_double, type_char, type_boolean, type_system_address):
3226 Add "struct parser_state" argument.
3227 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3228 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3229 var_or_type, aggregate, aggregate_component_list,
3230 positional_list, others, component_group,
3231 component_associations): Update calls to write_exp* and similar
3232 functions in order to use parser state.
3233 (ada_parse, write_var_from_sym, write_int,
3234 write_exp_op_with_string, write_object_renaming,
3235 find_primitive_type, write_selectors, write_ambiguous_var,
3236 write_var_or_type, write_name_assoc, type_int, type_long,
3237 type_long_long, type_float, type_double, type_long_double,
3238 type_char, type_boolean, type_system_address): Add "struct
3239 parser_state" argument. Adjust function to use parser state.
3240 * ada-lang.c (parse): Likewise.
3241 * ada-lang.h: Forward declare "struct parser_state".
3242 (ada_parse): Add "struct parser_state" argument.
3243 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3244 calls to both functions.
3245 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3247 (yyparse): Redefine macro to f_parse_internal.
3248 (pstate): New variable.
3249 (parse_number): Add "struct parser_state" argument.
3250 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3251 and similars in order to use parser state.
3252 (parse_number): Adjust code to use parser state.
3254 (f_parse): New function.
3255 * f-lang.h: Forward declare "struct parser_state".
3256 (f_parse): Add "struct parser_state" argument.
3257 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3259 (yyparse): Redefine macro for java_parse_internal.
3260 (pstate): New variable.
3261 (push_expression_name, push_expression_name, insert_exp): Add
3262 "struct parser_state" argument.
3263 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3264 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3265 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3266 PostIncrementExpression, PostDecrementExpression,
3267 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3268 UnaryExpressionNotPlusMinus, CastExpression,
3269 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3270 RelationalExpression, EqualityExpression, AndExpression,
3271 ExclusiveOrExpression, InclusiveOrExpression,
3272 ConditionalAndExpression, ConditionalOrExpression,
3273 ConditionalExpression, Assignment, LeftHandSide): Update
3274 calls to write_exp* and similars in order to use parser state.
3275 (parse_number): Ajust code to use parser state.
3277 (java_parse): New function.
3278 (push_variable): Add "struct parser_state" argument. Adjust
3279 code to user parser state.
3280 (push_fieldnames, push_qualified_expression_name,
3281 push_expression_name, insert_exp): Likewise.
3282 * jv-lang.h: Forward declare "struct parser_state".
3283 (java_parse): Add "struct parser_state" argument.
3284 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3286 (yyparse): Redefine macro to m2_parse_internal.
3287 (pstate): New variable.
3288 (type_exp, exp, fblock, variable, type): Update calls to
3289 write_exp* and similars to use parser state.
3291 (m2_parse): New function.
3292 * m2-lang.h: Forward declare "struct parser_state".
3293 (m2_parse): Add "struct parser_state" argument.
3294 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3295 * objc-lang.h: Forward declare "struct parser_state".
3296 (end_msglist): Add "struct parser_state" argument.
3297 * p-exp.y (parse_type): Rewrite macro to use parser state.
3298 (yyparse): Redefine macro to pascal_parse_internal.
3299 (pstate): New variable.
3300 (parse_number): Add "struct parser_state" argument.
3301 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3302 write_exp* and similars in order to use parser state.
3303 (parse_number, yylex): Adjust code to use parser state.
3304 (pascal_parse): New function.
3305 * p-lang.h: Forward declare "struct parser_state".
3306 (pascal_parse): Add "struct parser_state" argument.
3307 * go-exp.y (parse_type): Rewrite macro to use parser state.
3308 (yyparse): Redefine macro to go_parse_internal.
3309 (pstate): New variable.
3310 (parse_number): Add "struct parser_state" argument.
3311 (type_exp, exp1, exp, variable, type): Update calls to
3312 write_exp* and similars in order to use parser state.
3313 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3314 to use parser state.
3315 (go_parse): Likewise.
3316 * go-lang.h: Forward declare "struct parser_state".
3317 (go_parse): Add "struct parser_state" argument.
3319 2014-03-27 Doug Evans <dje@google.com>
3321 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3323 2014-03-27 Doug Evans <dje@google.com>
3325 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3326 Remove argument abbrev_section. All callers updated.
3328 2014-03-27 Doug Evans <dje@google.com>
3330 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3331 addr_base, ranges_base.
3333 2014-03-26 Keith Seitz <keiths@redhat.com>
3335 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3336 types, not VAR_DOMAIN.
3338 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3340 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3342 * features/nios2-linux.c: Regenerated.
3343 * features/nios2.c: Regenerated.
3345 2014-03-25 Pedro Alves <palves@redhat.com>
3347 * cli/cli-script.c (script_from_file): Force the interpreter to
3350 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3352 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3353 small stack allocation.
3355 2014-03-24 Tristan Gingold <gingold@adacore.com>
3357 * darwin-nat.c (exc_server): Remove unused prototype.
3358 (darwin_dump_message): Correctly display data on x86_64.
3359 (darwin_encode_reply): Fix style.
3360 Add comments and fix indentation.
3362 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3364 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3366 2014-03-22 Doug Evans <xdje42@gmail.com>
3368 * infcmd.c: Whitespace fixes.
3369 (interrupt_command): Merge two function comments into one.
3371 2014-03-22 Doug Evans <xdje42@gmail.com>
3373 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3376 2014-03-22 Yao Qi <yao@codesourcery.com>
3378 * remote.c (target_read_live_memory): Remove.
3379 (memory_xfer_live_readonly_partial): Rename it to
3380 remote_xfer_live_readonly_partial. Remove argument 'object'.
3381 All callers updated. Call remote_read_bytes_1
3382 instead of target_read_live_memory.
3383 * tracepoint.c (set_traceframe_number): Remove.
3384 (make_cleanup_restore_traceframe_number): Likewise .
3385 * tracepoint.h (set_traceframe_number): Remove declaration.
3386 (make_cleanup_restore_traceframe_number): Likewise.
3388 2014-03-22 Yao Qi <yao@codesourcery.com>
3390 * remote.c (remote_read_bytes): Move code on reading from the
3392 (remote_read_bytes_1): ... here. New function.
3394 2014-03-22 Yao Qi <yao@codesourcery.com>
3396 * ctf.c (ctf_xfer_partial): Check the return value of
3397 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3398 return TARGET_XFER_UNAVAILABLE.
3399 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3400 * target.c (target_read_live_memory): Move it to remote.c.
3401 (memory_xfer_live_readonly_partial): Likewise.
3402 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3403 * remote.c (target_read_live_memory): Moved from target.c.
3404 (memory_xfer_live_readonly_partial): Likewise.
3405 (remote_read_bytes): Factored out from
3406 memory_xfer_partial_1.
3408 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3410 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3413 2014-03-21 Pedro Alves <palves@redhat.com>
3415 * infrun.c (normal_stop): Extend comment.
3417 2014-03-21 Hui Zhu <hui@codesourcery.com>
3418 Pedro Alves <palves@redhat.com>
3420 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3422 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3423 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3424 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3426 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3428 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3429 `z' formatted output modifier.
3431 2014-03-20 Tom Tromey <tromey@redhat.com>
3432 Sergio Durigan Junior <sergiodj@redhat.com>
3434 * probe.c (parse_probes): Turn assert into an ordinary error.
3435 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3436 exceptions when parsing probes. Rearrange the code for clarity.
3438 2014-03-20 Tom Tromey <tromey@redhat.com>
3441 * top.c (execute_command): Only dispatch events if the command
3444 2014-03-20 Tom Tromey <tromey@redhat.com>
3447 * infcall.c: Include event-top.h.
3448 (run_inferior_call): Call async_disable_stdin if needed.
3450 2014-03-20 Pedro Alves <palves@redhat.com>
3452 * infrun.c (prepare_to_proceed): Delete.
3453 (thread_still_needs_step_over): New function.
3454 (find_thread_needs_step_over): New function.
3455 (proceed): If the current thread needs a step-over, set its
3456 steping_over_breakpoint flag. Adjust to use
3457 find_thread_needs_step_over instead of prepare_to_proceed.
3458 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3459 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3461 (switch_back_to_stepped_thread): Step over breakpoints of all
3462 threads not the stepping thread, before switching back to the
3465 2014-03-20 Pedro Alves <palves@redhat.com>
3467 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3469 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3470 * infrun.c (saved_singlestep_ptid)
3471 (stepping_past_singlestep_breakpoint): Delete.
3472 (resume): Remove stepping_past_singlestep_breakpoint handling.
3473 (proceed): Store the prev_pc of the stepping thread too.
3474 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3476 (enum infwait_states): Delete infwait_thread_hop_state.
3477 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3479 (handle_inferior_event): Adjust.
3480 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3481 handling and the thread-hop code. Before removing single-step
3482 breakpoints, check whether the thread hit a single-step breakpoint
3483 of another thread. If it did, the trap is not a random signal.
3484 (switch_back_to_stepped_thread): If the event thread hit a
3485 single-step breakpoint, unblock it before switching to the
3486 stepping thread. Handle the case of the stepped thread having
3488 (keep_going): Handle the case of the current thread moving past a
3489 single-step breakpoint.
3491 2014-03-20 Pedro Alves <palves@redhat.com>
3494 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3495 are being stepped over.
3496 (breakpoint_address_match): Make extern.
3497 * breakpoint.h (breakpoint_address_match): New declaration.
3498 * inferior.h (stepping_past_instruction_at): New declaration.
3499 * infrun.c (struct step_over_info): New type.
3500 (step_over_info): New global.
3501 (set_step_over_info, clear_step_over_info)
3502 (stepping_past_instruction_at): New functions.
3503 (handle_inferior_event): Clear the step-over info when
3504 trap_expected is cleared.
3505 (resume): Remove now stale comment.
3506 (clear_proceed_status): Clear step-over info.
3507 (proceed): Adjust step-over handling to set or clear the step-over
3508 info instead of removing all breakpoints.
3509 (handle_signal_stop): When setting up a thread-hop, don't remove
3511 (stop_stepping): Clear step-over info.
3512 (keep_going): Adjust step-over handling to set or clear step-over
3513 info and then always inserting breakpoints, instead of removing
3514 all breakpoints when stepping over one.
3516 2014-03-20 Pedro Alves <palves@redhat.com>
3518 * infrun.c (previous_inferior_ptid): Adjust comment.
3519 (deferred_step_ptid): Delete.
3520 (infrun_thread_ptid_changed, prepare_to_proceed)
3521 (init_wait_for_inferior): Adjust.
3522 (handle_signal_stop): Delete deferred_step_ptid handling.
3524 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3527 * defs.h (sync_quit_force_run): New declaration.
3528 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3529 * event-top.c (async_sigterm_handler): New declaration.
3530 (async_sigterm_token): New variable.
3531 (async_init_signals): Create also async_sigterm_token.
3532 (async_sigterm_handler): New function.
3533 (sync_quit_force_run): New variable.
3534 (handle_sigterm): Replace quit_force call by other calls.
3535 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3537 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3539 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3540 offset into SPE pseudo registers.
3542 2014-03-18 Pedro Alves <palves@redhat.com>
3545 * inferior.h (print_stop_event): Declare.
3546 * infrun.c (print_stop_event): New, factored out from ...
3547 (normal_stop): ... this.
3548 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3549 of bpstat_print/print_stack_frame.
3551 2014-03-17 Tom Tromey <tromey@redhat.com>
3553 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3555 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3557 * ada-lang.c (decode_constrained_packed_array): Perform a
3558 minimal coercion for reference with coerce_ref instead of
3561 2014-03-17 Tristan Gingold <gingold@adacore.com>
3563 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3564 (darwin_solib_create_inferior_hook): Emit a warning if version
3567 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3569 * python/py-value.c (get_field_flag): Cast flag_name argument to
3570 PyObject_GetAttrString to support Python 2.4.
3572 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3575 (Global Maintainers): Remove Jan Kratochvil.
3577 2014-03-14 Pedro Alves <palves@redhat.com>
3579 * inferior.h (terminal_ours_for_output): Rename to ...
3580 (child_terminal_ours_for_output): ... this.
3581 (terminal_save_ours): Rename to ...
3582 (child_terminal_save_ours): ... this.
3583 (terminal_ours): Rename to ...
3584 (child_terminal_ours): ... this.
3585 (terminal_inferior): Rename to ...
3586 (child_terminal_inferior): ... this.
3587 (terminal_init_inferior): Rename to ...
3588 (child_terminal_init_inferior): ... this.
3589 (terminal_init_inferior_with_pgrp): Rename to ...
3590 (child_terminal_init_inferior_with_pgrp): ... this.
3591 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3592 (child_terminal_init_with_pgrp): ... this.
3593 (terminal_save_ours): Rename to ...
3594 (child_terminal_save_ours): ... this.
3595 (terminal_init_inferior): Rename to ...
3596 (child_terminal_init): ... this. Adjust.
3597 (terminal_inferior): Rename to ...
3598 (child_terminal_inferior): ... this.
3599 (terminal_ours_for_output): Rename to ...
3600 (child_terminal_ours_for_output): ... this. Adjust.
3601 (terminal_ours): Rename to ...
3602 (child_terminal_ours): ... this.
3603 (terminal_ours_1): Rename to ...
3604 (child_terminal_ours_1): ... this. Adjust.
3605 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3606 * windows-nat.c (do_initial_windows_stuff): Adjust.
3607 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3608 (gnu_terminal_init): ... this. Adjust.
3609 (gnu_target): Adjust.
3610 * inf-child.c (inf_child_target): Adjust.
3612 2014-03-13 Doug Evans <xdje42@gmail.com>
3615 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3618 2014-03-13 Doug Evans <xdje42@gmail.com>
3620 * value.c (record_latest_value): Call release_value_or_incref
3621 instead of release_value.
3623 2014-03-13 Pedro Alves <palves@redhat.com>
3625 * procfs.c (procfs_target): Don't override to_shortname,
3626 to_longname or to_doc.
3628 2014-03-13 Pedro Alves <palves@redhat.com>
3630 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3631 Unix in user visible strings.
3633 2014-03-12 Stan Shebs <stan@codesourcery.com>
3635 * gdbtypes.h: Annotate comments for Doxygen, add a page
3636 block comment with some general info.
3638 2014-03-12 Pedro Alves <palves@redhat.com>
3640 * infcmd.c (prepare_execution_command): New function, factored out
3641 from several execution commands.
3642 (run_command_1, continue_command, step_1, jump_command)
3643 (signal_command, until_command, advance_command, finish_command)
3644 (attach_command): Use prepare_execution_command.
3646 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3648 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3651 (struct arm_linux_thread_points): Removed.
3652 (struct arm_linux_process_info): New.
3653 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3654 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3655 (arm_linux_find_breakpoints_by_tid): Removed.
3656 (struct arch_lwp_info): New.
3657 (arm_linux_find_process_pid): New functions.
3658 (arm_linux_add_process): New functions.
3659 (arm_linux_process_info_get): New functions.
3660 (arm_linux_forget_process): New function.
3661 (arm_linux_get_debug_reg_state): New function.
3662 (struct update_registers_data): New.
3663 (update_registers_callback): New function.
3664 (arm_linux_insert_hw_breakpoint1): Updated.
3665 (arm_linux_remove_hw_breakpoint1): Updated.
3666 (arm_linux_insert_hw_breakpoint): Updated.
3667 (arm_linux_remove_hw_breakpoint): Updated.
3668 (arm_linux_insert_watchpoint): Updated.
3669 (arm_linux_remove_watchpoint): Updated.
3670 (arm_linux_new_thread): Updated.
3671 (arm_linux_prepare_to_resume): New function.
3672 (arm_linux_new_fork): New function.
3673 (_initialize_arm_linux_nat): Updated.
3675 2014-03-12 Pedro Alves <palves@redhat.com>
3677 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3679 2014-03-12 Tom Tromey <tromey@redhat.com>
3681 * inf-child.c (return_zero): New function.
3682 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3683 * aix-thread.c (aix_thread_inferior_created): New function.
3684 (aix_thread_attach): Remove.
3685 (init_aix_thread_ops): Don't set to_attach.
3686 (_initialize_aix_thread): Register inferior_created observer.
3687 * corelow.c (init_core_ops): Don't set to_attach or
3689 * exec.c (init_exec_ops): Don't set to_attach or
3691 * infcmd.c (run_command_1): Use find_run_target. Make direct
3693 (attach_command): Use find_attach_target. Make direct target
3695 * record-btrace.c (init_record_btrace_ops): Don't set
3697 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3699 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3700 set to_create_inferior.
3701 * target.c (complete_target_initialization): Add assertion.
3702 (target_create_inferior): Remove.
3703 (find_default_attach, find_default_create_inferior): Remove.
3704 (find_attach_target, find_run_target): New functions.
3705 (find_default_is_async_p, find_default_can_async_p)
3706 (target_supports_non_stop, target_attach): Remove.
3707 (init_dummy_target): Don't set to_create_inferior or
3708 to_supports_non_stop.
3709 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3710 TARGET_DEFAULT_FUNC.
3711 <to_create_inferior>: Add comment.
3712 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3713 TARGET_DEFAULT_RETURN.
3714 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3715 (find_attach_target, find_run_target): Declare.
3716 (target_create_inferior): Remove.
3717 (target_has_execution_1): Update comment.
3718 (target_supports_non_stop): Remove.
3719 * target-delegates.c: Rebuild.
3721 2014-03-12 Pedro Alves <palves@redhat.com>
3723 * inf-child.h: Update comment to not mention Unix.
3725 2014-03-12 Pedro Alves <palves@redhat.com>
3727 * inf-child.c: Update top comment to not mention Unix. Add
3728 generic comment describing how this target is meant to be used.
3729 (inf_child_post_attach, inf_child_post_startup_inferior)
3730 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3733 2014-03-12 Pedro Alves <palves@redhat.com>
3735 * nto-procfs.c: Include inf-child.h.
3736 (procfs_ops): Delete global.
3737 (procfs_can_run): Delete method.
3738 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3739 target pointer instead of referencing procfs_ops.
3740 (procfs_prepare_to_store): Delete.
3741 (init_procfs_ops): Delete function.
3742 (procfs_target): New function, based on init_procfs_ops, but
3743 inherit inf_child_target.
3744 (_initialize_procfs): Use procfs_target.
3746 2014-03-12 Pedro Alves <palves@redhat.com>
3748 * windows-nat.c: Include inf-child.h.
3749 (windows_ops): Delete global.
3750 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3752 (init_windows_ops): Delete function.
3753 (windows_target): New function, based on init_windows_ops, but
3754 inherit inf_child_target.
3755 (_initialize_windows_nat): Use windows_target. Install x86
3756 specific target methods here.
3758 2014-03-10 Doug Evans <xdje42@gmail.com>
3760 * guile/guile.c (call_initialize_gdb_module): New function.
3761 (initialize_guile): Replace call to scm_init_guile with call to
3764 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3766 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3767 in call to TYPE_CODE macro.
3769 2014-03-10 Jerome Guitton <guitton@adacore.com>
3771 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3772 Resolve tagged types to full view.
3774 2014-03-10 Hui Zhu <hui@codesourcery.com>
3776 * target.h (target_insert_breakpoint): Remove "hardware" from its
3779 2014-03-07 Doug Evans <dje@google.com>
3781 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3783 2014-03-07 Doug Evans <dje@google.com>
3785 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3786 Remove unused local comp_dir_attr. Assert exactly one of
3787 stub_comp_unit_die, stub_comp_dir is non-NULL.
3789 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3791 * target.h (complete_target_initialization, add_target):
3794 2014-03-07 Pedro Alves <palves@redhat.com>
3796 * go32-nat.c: Include inf-child.h.
3797 (go32_ops): Delete global.
3798 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3800 (go32_create_inferior): Push the passed in target pointer instead
3801 of referencing go32_ops.
3802 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3803 (go32_target): New function, based on init_go32_ops, but inherit
3805 (_initialize_go32_nat): Use go32_target. Move parts of
3808 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3810 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3811 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3812 SYMBOL_VALUE_ADDRESS.
3813 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3815 2014-03-06 Yao Qi <yao@codesourcery.com>
3817 * breakpoint.c (get_tracepoint_by_number): Remove argument
3818 optional_p. All callers updated. Adjust comments. Update
3820 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3822 2014-03-06 Yao Qi <yao@codesourcery.com>
3824 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3825 early if get_number returns zero. Use 'p' instead of 'args'.
3827 2014-03-06 Yao Qi <yao@codesourcery.com>
3829 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3832 2014-03-06 Yao Qi <yao@codesourcery.com>
3834 PR breakpoints/16508
3835 * tracepoint.c (check_trace_running): New function.
3836 (trace_find_command): Move code to check_trace_running and
3837 call check_trace_running.
3838 (trace_find_pc_command): Likewise.
3839 (trace_find_tracepoint_command): Likewise.
3840 (trace_find_line_command): Likewise.
3841 (trace_find_range_command): Likewise.
3842 * tracepoint.h (check_trace_running): Likewise.
3843 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3845 2014-03-06 Yao Qi <yao@codesourcery.com>
3847 * target.h (struct target_ops) <to_traceframe_info>: Use
3848 TARGET_DEFAULT_NORETURN (tcomplain ()).
3849 * target-delegates.c: Regenerated.
3851 2014-03-05 Pedro Alves <palves@redhat.com>
3854 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3855 void. Update comment.
3856 (dcache_xfer_memory): Delete.
3857 (dcache_read_memory_partial): New, based on the read bits of
3859 (dcache_update): Add status parameter. Use ULONGEST for len, and
3860 adjust. Discard cache lines if the reason for the update was
3862 * dcache.h (dcache_xfer_memory): Delete declaration.
3863 (dcache_read_memory_partial): New declaration.
3864 (dcache_update): Update prototype.
3865 * target.c (raw_memory_xfer_partial): Update the dcache here.
3866 (memory_xfer_partial_1): Don't handle dcache writes here.
3868 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3870 * remote-sim.c (gdbsim_load): Add const to prog.
3872 2014-03-03 Tom Tromey <tromey@redhat.com>
3874 * elfread.c (probe_key): Change to bfd_data.
3875 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3876 now per-BFD, not per-objfile.
3877 * stap-probe.c (stap_probe_destroy): Update comment.
3878 (handle_stap_probe): Allocate on the per-BFD obstack.
3880 2014-03-03 Tom Tromey <tromey@redhat.com>
3882 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3883 * breakpoint.c (create_longjmp_master_breakpoint): Use
3885 (add_location_to_breakpoint, bkpt_probe_insert_location)
3886 (bkpt_probe_remove_location): Update.
3887 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3888 * elfread.c (elf_symfile_relocate_probe): Remove.
3889 (elf_probe_fns): Update.
3890 (insert_exception_resume_breakpoint): Change type of "probe"
3891 parameter to bound_probe.
3892 (check_exception_resume): Update.
3893 * objfiles.c (objfile_relocate1): Don't relocate probes.
3894 * probe.c (bound_probe_s): New typedef.
3895 (parse_probes): Use get_probe_address. Set sal's objfile.
3896 (find_probe_by_pc): Return a bound_probe.
3897 (collect_probes): Return a VEC(bound_probe_s).
3898 (compare_probes): Update.
3899 (gen_ui_out_table_header_info): Change type of "probes"
3901 (info_probes_for_ops): Update.
3902 (get_probe_address): New function.
3903 (probe_safe_evaluate_at_pc): Update.
3904 * probe.h (struct probe_ops) <get_probe_address>: New field.
3905 <set_semaphore, clear_semaphore>: Add objfile parameter.
3906 (struct probe) <objfile>: Remove field.
3908 <address>: Update comment.
3909 (struct bound_probe): New.
3910 (find_probe_by_pc): Return a bound_probe.
3911 (get_probe_address): Declare.
3912 * solib-svr4.c (struct probe_and_action) <address>: New field.
3913 (hash_probe_and_action, equal_probe_and_action): Update.
3914 (register_solib_event_probe): Add address parameter.
3915 (solib_event_probe_at): Update.
3916 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3918 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3919 (stap_get_probe_address): New function.
3920 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3921 (compile_probe_arg): Update.
3922 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3924 (handle_stap_probe): Don't relocate the probe.
3925 (stap_relocate): Remove.
3926 (stap_gen_info_probes_table_values): Update.
3927 (stap_probe_ops): Remove stap_relocate.
3928 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3929 (debug_sym_probe_fns): Update.
3930 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3931 * symtab.c (init_sal): Use memset.
3932 * symtab.h (struct symtab_and_line) <objfile>: New field.
3933 * tracepoint.c (start_tracing, stop_tracing): Update.
3935 2014-03-03 Tom Tromey <tromey@redhat.com>
3937 * probe.h (parse_probes, find_probe_by_pc)
3938 (find_probes_in_objfile): Fix comments.
3940 2014-03-02 Doug Evans <xdje42@gmail.com>
3942 * infrun.c (handle_signal_stop): Replace test for
3943 TARGET_WAITKIND_STOPPED with an assert.
3945 2014-03-02 Doug Evans <xdje42@gmail.com>
3947 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3949 2014-03-02 Doug Evans <xdje42@gmail.com>
3951 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3953 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3955 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3957 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3959 * i386obsd-nat.c: Include "obsd-nat.h".
3960 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3962 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3964 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3966 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3968 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3970 * mips64obsd-nat.c: Include "obsd-nath".
3971 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3973 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3975 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3977 * amd64obsd-nat.c: Include "obsd-nat,h.
3978 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3980 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3982 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3984 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3985 (find_overload_match): Update call to find_oload_champ.
3986 (find_oload_champ_namespace_loop): Likewise
3988 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3990 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3992 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3993 * config/sparc/obsd64.mh: New file.
3994 * sparc64obsd-nat.c: New file.
3996 * obsd-nat.h: New file.
3997 * obsd-nat.c: New file.
3998 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3999 (ALLDEPFILES): Add obsd-nat.c.
4001 2014-02-28 Tom Tromey <tromey@redhat.com>
4003 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4004 * cli-out.h (cli_ui_out_impl): Now const.
4005 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4006 * ui-out.c (struct ui_out) <impl>: Now const.
4007 (default_ui_out_impl): Now const.
4008 (ui_out_new): Make 'impl' parameter const.
4009 * ui-out.h (ui_out_new): Update.
4011 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4013 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4015 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4017 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4019 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 Additional PR 8882 fix.
4022 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4024 2014-02-27 Pedro Alves <palves@redhat.com>
4026 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4029 2014-02-27 Pedro Alves <palves@redhat.com>
4032 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4033 * nat/linux-waitpid.c: Include string.h.
4034 (status_to_str): Moved here and made extern.
4035 * nat/linux-waitpid.h (status_to_str): New declaration.
4037 2014-02-27 Hui Zhu <hui@codesourcery.com>
4040 * infrun.c (ptid_match): Move ...
4041 * common/ptid.c (ptid_match): ... here.
4042 * inferior.h (ptid_match): Move ...
4043 * common/ptid.h (ptid_match): ... here.
4045 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4047 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4048 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4051 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4053 * obsd-tdep.c (obsd_auxv_parse): New function.
4054 (obsd_init_abi): Set auxv_parse.
4056 * gdbarch.sh (auxv_parse): New.
4057 * gdbarch.h: Regenerated.
4058 * gdbarch.c: Regenerated.
4059 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4061 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4063 * guile/scm-value.c (gdbscm_history_append_x): New function.
4064 (value_functions): Add it.
4066 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4068 * dwarf2read.c (attr_value_as_address): New function.
4069 (dwarf2_find_base_address, read_call_site_scope): Use
4070 attr_value_as_address in place of DW_ADDR.
4071 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4072 the low and high addresses. Slight rework of the handling
4073 of the high pc being a constant form, and limit it to
4074 DWARF verson 4 or higher.
4075 (dwarf2_record_block_ranges): Likewise.
4076 (read_partial_die): Likewise.
4077 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4079 2014-02-26 Tom Tromey <tromey@redhat.com>
4081 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4083 2014-02-26 Tom Tromey <tromey@redhat.com>
4085 * elfread.c (elf_read_minimal_symbols): Return early if
4086 minimal symbols have already been read. Add "ei" parameter.
4087 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4088 * minsyms.c (prim_record_minimal_symbol_full): Update.
4089 * objfiles.h (struct objstats) <n_minsyms>: Move...
4090 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4091 * symmisc.c (print_objfile_statistics): Update.
4093 2014-02-26 Tom Tromey <tromey@redhat.com>
4095 * elfread.c (elf_read_minimal_symbols): New function, from
4097 (elf_symfile_read): Call it.
4099 2014-02-26 Tom Tromey <tromey@redhat.com>
4101 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4102 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4103 (lookup_minimal_symbol_solib_trampoline)
4104 (lookup_minimal_symbol_by_pc_section_1)
4105 (lookup_minimal_symbol_and_objfile): Update.
4106 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4107 Don't allocate a minimal symbol if minsyms have already been read.
4108 (build_minimal_symbol_hash_tables): Update.
4109 (install_minimal_symbols): Do nothing if minsyms already read.
4110 Use the per-BFD obstack.
4111 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4112 * objfiles.c (allocate_objfile): Call
4113 terminate_minimal_symbol_table later.
4114 (have_minimal_symbols): Update.
4115 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4116 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4117 Move from struct objfile.
4118 <minsyms_read>: New field.
4119 (struct objfile) <msymbols, minimal_symbol_count,
4120 msymbol_hash, msymbol_demangled_hash>: Move.
4121 (ALL_OBJFILE_MSYMBOLS): Update.
4122 * symfile.c (read_symbols): Set minsyms_read.
4123 (reread_symbols): Update.
4124 * symmisc.c (dump_objfile, dump_msymbols): Update.
4126 2014-02-26 Tom Tromey <tromey@redhat.com>
4128 * minsyms.c (msymbols_sort): Remove.
4129 * minsyms.h (msymbols_sort): Remove.
4130 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4131 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4132 * elfread.c (elf_symtab_read): Don't add section offsets.
4133 * xcoffread.c (record_minimal_symbol): Don't add section offset
4134 to minimal symbol address.
4135 * somread.c (text_offset, data_offset): Remove.
4136 (som_symtab_read): Don't add section offsets to minimal symbol
4138 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4139 Don't add section offsets to minimal symbols.
4140 * coffread.c (coff_symtab_read): Don't add section offsets
4141 to minimal symbol addresses.
4142 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4143 to minimal symbol addresses.
4144 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4145 section offset to minimal symbol addresses.
4146 * mdebugread.c (parse_partial_symbols): Don't add section
4147 offset to minimal symbol addresses.
4148 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4149 offset to minimal symbol addresses.
4151 2014-02-26 Tom Tromey <tromey@redhat.com>
4153 * ada-lang.c (ada_main_name): Update.
4154 (ada_add_standard_exceptions): Update.
4155 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4156 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4157 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4158 * auxv.c (ld_so_xfer_auxv): Update.
4159 * avr-tdep.c (avr_scan_prologue): Update.
4160 * ax-gdb.c (gen_var_ref): Update.
4161 * blockframe.c (get_pc_function_start)
4162 (find_pc_partial_function_gnu_ifunc): Update.
4163 * breakpoint.c (create_overlay_event_breakpoint)
4164 (create_longjmp_master_breakpoint)
4165 (create_std_terminate_master_breakpoint)
4166 (create_exception_master_breakpoint): Update.
4167 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4168 * c-valprint.c (c_val_print): Update.
4169 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4170 * common/agent.c (agent_look_up_symbols): Update.
4171 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4172 * dwarf2loc.c (call_site_to_target_addr): Update.
4173 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4174 * elfread.c (elf_gnu_ifunc_record_cache)
4175 (elf_gnu_ifunc_resolve_by_got): Update.
4176 * findvar.c (default_read_var_value): Update.
4177 * frame.c (inside_main_func): Update.
4178 * frv-tdep.c (frv_frame_this_id): Update.
4179 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4180 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4182 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4183 (hppa_hpux_find_dummy_bpaddr): Update.
4184 * hppa-tdep.c (hppa_symbol_address): Update.
4185 * infcmd.c (until_next_command): Update.
4186 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4188 * linespec.c (minsym_found, add_minsym): Update.
4189 * linux-nat.c (get_signo): Update.
4190 * linux-thread-db.c (inferior_has_bug): Update.
4191 * m32c-tdep.c (m32c_return_value)
4192 (m32c_m16c_address_to_pointer): Update.
4193 * m32r-tdep.c (m32r_frame_this_id): Update.
4194 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4195 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4196 * maint.c (maintenance_translate_address): Update.
4197 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4198 (frob_address): New function.
4199 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4200 frob_address. Rename parameter to "pc_in".
4201 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4203 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4205 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4206 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4207 * objc-lang.c (find_objc_msgsend): Update.
4208 * objfiles.c (objfile_relocate1): Update.
4209 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4210 * p-valprint.c (pascal_val_print): Update.
4211 * parse.c (write_exp_msymbol): Update.
4212 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4213 (ppc_elfv2_skip_entrypoint): Update.
4214 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4215 * printcmd.c (build_address_symbolic, msym_info)
4216 (address_info): Update.
4217 * proc-service.c (ps_pglobal_lookup): Update.
4218 * psymtab.c (find_pc_sect_psymtab_closer)
4219 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4220 Change msymbol parameter to bound_minimal_symbol.
4221 * ravenscar-thread.c (get_running_thread_id): Update.
4222 * remote.c (remote_check_symbols): Update.
4223 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4225 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4226 * solib-dsbt.c (lm_base): Update.
4227 * solib-frv.c (lm_base, main_got): Update.
4228 * solib-irix.c (locate_base): Update.
4229 * solib-som.c (som_solib_create_inferior_hook)
4230 (link_map_start): Update.
4231 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4232 * solib-svr4.c (elf_locate_base, enable_break): Update.
4233 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4234 (flush_ea_cache): Update.
4235 * stabsread.c (define_symbol, scan_file_globals): Update.
4236 * stack.c (find_frame_funname): Update.
4237 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4238 (debug_qf_find_pc_sect_symtab): Update.
4239 * symfile.c (simple_read_overlay_table)
4240 (simple_overlay_update): Update.
4241 * symfile.h (struct quick_symbol_functions)
4242 <find_pc_sect_symtab>: Change type of msymbol to
4243 bound_minimal_symbol.
4244 * symmisc.c (dump_msymbols): Update.
4245 * symtab.c (find_pc_sect_symtab_via_partial)
4246 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4247 (search_symbols, print_msymbol_info): Update.
4248 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4249 (MSYMBOL_VALUE_ADDRESS): Redefine.
4250 (BMSYMBOL_VALUE_ADDRESS): New macro.
4251 * tracepoint.c (scope_info): Update.
4252 * tui/tui-disasm.c (tui_find_disassembly_address)
4253 (tui_get_begin_asm_address): Update.
4254 * valops.c (find_function_in_inferior): Update.
4255 * value.c (value_static_field, value_fn_field): Update.
4257 2014-02-26 Tom Tromey <tromey@redhat.com>
4259 * ada-lang.c (ada_update_initial_language): Update.
4260 (ada_main_name, ada_has_this_exception_support): Update.
4261 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4262 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4263 * arm-tdep.c (arm_skip_stub): Update.
4264 * auxv.c (ld_so_xfer_auxv): Update.
4265 * avr-tdep.c (avr_scan_prologue): Update.
4266 * ax-gdb.c (gen_var_ref): Update.
4267 * breakpoint.c (struct breakpoint_objfile_data)
4268 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4269 type to bound_minimal_symbol.
4270 (create_overlay_event_breakpoint)
4271 (create_longjmp_master_breakpoint)
4272 (create_std_terminate_master_breakpoint)
4273 (create_exception_master_breakpoint): Update.
4274 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4275 * c-exp.y (classify_name): Update.
4276 * coffread.c (coff_symfile_read): Update.
4277 * common/agent.c (agent_look_up_symbols): Update.
4278 * d-lang.c (d_main_name): Update.
4279 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4280 * dec-thread.c (enable_dec_thread): Update.
4281 * dwarf2loc.c (call_site_to_target_addr): Update.
4282 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4283 * eval.c (evaluate_subexp_standard): Update.
4284 * findvar.c (struct minsym_lookup_data) <result>: Change type
4285 to bound_minimal_symbol.
4287 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4288 * frame.c (inside_main_func): Update.
4289 * frv-tdep.c (frv_frame_this_id): Update.
4290 * gcore.c (call_target_sbrk): Update.
4291 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4292 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4294 * go-lang.c (go_main_name): Update.
4295 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4296 (hppa_hpux_find_import_stub_for_addr): Update.
4297 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4298 Update. Change return type.
4299 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4301 * jit.c (jit_breakpoint_re_set_internal): Update.
4302 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4304 * linux-nat.c (get_signo): Update.
4305 * linux-thread-db.c (inferior_has_bug): Update
4306 * m32c-tdep.c (m32c_return_value)
4307 (m32c_m16c_address_to_pointer): Update.
4308 * m32r-tdep.c (m32r_frame_this_id): Update.
4309 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4310 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4311 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4312 lookup_minimal_symbol. Change return type.
4313 (lookup_minimal_symbol): Remove.
4314 (lookup_bound_minimal_symbol): Update.
4315 (lookup_minimal_symbol_text): Change return type.
4316 (lookup_minimal_symbol_solib_trampoline): Change return type.
4317 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4318 (lookup_minimal_symbol_solib_trampoline): Change return type.
4319 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4320 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4321 (value_nsstring, find_imps): Update.
4322 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4323 * p-lang.c (pascal_main_name): Update.
4324 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4325 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4326 * proc-service.c (ps_pglobal_lookup): Update.
4327 * ravenscar-thread.c (get_running_thread_msymbol): Change
4329 (has_ravenscar_runtime, get_running_thread_id): Update.
4330 * remote.c (remote_check_symbols): Update.
4331 * sol-thread.c (ps_pglobal_lookup): Update.
4332 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4333 * solib-dsbt.c (lm_base): Update.
4334 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4336 * solib-irix.c (locate_base): Update.
4337 * solib-som.c (som_solib_create_inferior_hook)
4338 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4340 * solib-spu.c (spu_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): Update.
4345 * symfile.c (simple_read_overlay_table): Update.
4346 * symtab.c (find_pc_sect_line): Update.
4347 * tracepoint.c (scope_info): Update.
4348 * tui-disasm.c (tui_get_begin_asm_address): Update.
4349 * value.c (value_static_field): Update.
4351 2014-02-26 Tom Tromey <tromey@redhat.com>
4353 * minsyms.c (prim_record_minimal_symbol_full): Use
4354 SET_MSYMBOL_VALUE_ADDRESS.
4355 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4356 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4357 SET_MSYMBOL_VALUE_ADDRESS.
4358 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4359 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4361 2014-02-26 Tom Tromey <tromey@redhat.com>
4363 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4364 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4365 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4366 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4367 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4368 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4369 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4370 * ada-lang.c (ada_main_name): Update.
4371 (ada_lookup_simple_minsym): Update.
4372 (ada_make_symbol_completion_list): Update.
4373 (ada_add_standard_exceptions): Update.
4374 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4375 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4376 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4377 * arm-tdep.c (skip_prologue_function): Update.
4378 (arm_skip_stack_protector, arm_skip_stub): Update.
4379 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4380 (arm_wince_skip_main_prologue): Update.
4381 * auxv.c (ld_so_xfer_auxv): Update.
4382 * avr-tdep.c (avr_scan_prologue): Update.
4383 * ax-gdb.c (gen_var_ref): Update.
4384 * block.c (call_site_for_pc): Update.
4385 * blockframe.c (get_pc_function_start): Update.
4386 (find_pc_partial_function_gnu_ifunc): Update.
4387 * breakpoint.c (create_overlay_event_breakpoint): Update.
4388 (create_longjmp_master_breakpoint): Update.
4389 (create_std_terminate_master_breakpoint): Update.
4390 (create_exception_master_breakpoint): Update.
4391 (resolve_sal_pc): Update.
4392 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4393 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4395 * c-valprint.c (c_val_print): Update.
4396 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4397 * coffread.c (coff_symfile_read): Update.
4398 * common/agent.c (agent_look_up_symbols): Update.
4399 * dbxread.c (find_stab_function_addr): Update.
4400 (end_psymtab): Update.
4401 * dwarf2loc.c (call_site_to_target_addr): Update.
4402 (func_verify_no_selftailcall): Update.
4403 (tailcall_dump): Update.
4404 (call_site_find_chain_1): Update.
4405 (dwarf_expr_reg_to_entry_parameter): Update.
4406 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4407 (elf_gnu_ifunc_resolve_by_got): Update.
4408 * f-valprint.c (info_common_command): Update.
4409 * findvar.c (read_var_value): Update.
4410 * frame.c (get_prev_frame_1): Update.
4411 (inside_main_func): Update.
4412 * frv-tdep.c (frv_skip_main_prologue): Update.
4413 (frv_frame_this_id): Update.
4414 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4415 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4416 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4417 (gnuv3_skip_trampoline): Update.
4418 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4419 (hppa64_hpux_in_solib_call_trampoline): Update.
4420 (hppa_hpux_skip_trampoline_code): Update.
4421 (hppa64_hpux_search_dummy_call_sequence): Update.
4422 (hppa_hpux_find_import_stub_for_addr): Update.
4423 (hppa_hpux_find_dummy_bpaddr): Update.
4424 * hppa-tdep.c (hppa_symbol_address)
4425 (hppa_lookup_stub_minimal_symbol): Update.
4426 * i386-tdep.c (i386_skip_main_prologue): Update.
4427 (i386_pe_skip_trampoline_code): Update.
4428 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4429 * infcall.c (get_function_name): Update.
4430 * infcmd.c (until_next_command): Update.
4431 * jit.c (jit_breakpoint_re_set_internal): Update.
4432 (jit_inferior_init): Update.
4433 * linespec.c (minsym_found): Update.
4434 (add_minsym): Update.
4435 * linux-fork.c (info_checkpoints_command): Update.
4436 * linux-nat.c (get_signo): Update.
4437 * linux-thread-db.c (inferior_has_bug): Update.
4438 * m32c-tdep.c (m32c_return_value): Update.
4439 (m32c_m16c_address_to_pointer): Update.
4440 (m32c_m16c_pointer_to_address): Update.
4441 * m32r-tdep.c (m32r_frame_this_id): Update.
4442 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4443 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4444 * maint.c (maintenance_translate_address): Update.
4445 * minsyms.c (add_minsym_to_hash_table): Update.
4446 (add_minsym_to_demangled_hash_table): Update.
4447 (msymbol_objfile): Update.
4448 (lookup_minimal_symbol): Update.
4449 (iterate_over_minimal_symbols): Update.
4450 (lookup_minimal_symbol_text): Update.
4451 (lookup_minimal_symbol_by_pc_name): Update.
4452 (lookup_minimal_symbol_solib_trampoline): Update.
4453 (lookup_minimal_symbol_by_pc_section_1): Update.
4454 (lookup_minimal_symbol_and_objfile): Update.
4455 (prim_record_minimal_symbol_full): Update.
4456 (compare_minimal_symbols): Update.
4457 (compact_minimal_symbols): Update.
4458 (build_minimal_symbol_hash_tables): Update.
4459 (install_minimal_symbols): Update.
4460 (terminate_minimal_symbol_table): Update.
4461 (find_solib_trampoline_target): Update.
4462 (minimal_symbol_upper_bound): Update.
4463 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4464 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4465 (mips_skip_pic_trampoline_code): Update.
4466 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4467 * objc-lang.c (selectors_info): Update.
4468 (classes_info): Update.
4469 (find_methods): Update.
4470 (find_imps): Update.
4471 (find_objc_msgsend): Update.
4472 * objfiles.c (objfile_relocate1): Update.
4473 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4474 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4475 * p-valprint.c (pascal_val_print): Update.
4476 * parse.c (write_exp_msymbol): Update.
4477 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4478 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4479 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4480 * printcmd.c (build_address_symbolic): Update.
4482 (address_info): Update.
4483 * proc-service.c (ps_pglobal_lookup): Update.
4484 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4485 (find_pc_sect_psymtab): Update.
4486 * python/py-framefilter.c (py_print_frame): Update.
4487 * ravenscar-thread.c (get_running_thread_id): Update.
4488 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4490 * remote.c (remote_check_symbols): Update.
4491 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4492 (rs6000_skip_trampoline_code): Update.
4493 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4494 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4495 * solib-dsbt.c (lm_base): Update.
4496 * solib-frv.c (lm_base): Update.
4498 * solib-irix.c (locate_base): Update.
4499 * solib-som.c (som_solib_create_inferior_hook): Update.
4500 (som_solib_desire_dynamic_linker_symbols): Update.
4501 (link_map_start): Update.
4502 * solib-spu.c (spu_enable_break): Update.
4503 (ocl_enable_break): Update.
4504 * solib-svr4.c (elf_locate_base): Update.
4505 (enable_break): Update.
4506 * spu-tdep.c (spu_get_overlay_table): Update.
4507 (spu_catch_start): Update.
4508 (flush_ea_cache): Update.
4509 * stabsread.c (define_symbol): Update.
4510 (scan_file_globals): Update.
4511 * stack.c (find_frame_funname): Update.
4512 (frame_info): Update.
4513 * symfile.c (simple_read_overlay_table): Update.
4514 (simple_overlay_update): Update.
4515 * symmisc.c (dump_msymbols): Update.
4516 * symtab.c (fixup_section): Update.
4517 (find_pc_sect_line): Update.
4518 (skip_prologue_sal): Update.
4519 (search_symbols): Update.
4520 (print_msymbol_info): Update.
4521 (rbreak_command): Update.
4522 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4523 (completion_list_objc_symbol): Update.
4524 (default_make_symbol_completion_list_break_on): Update.
4525 * tracepoint.c (scope_info): Update.
4526 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4527 (tui_get_begin_asm_address): Update.
4528 * valops.c (find_function_in_inferior): Update.
4529 * value.c (value_static_field): Update.
4530 (value_fn_field): Update.
4532 2014-02-26 Tom Tromey <tromey@redhat.com>
4534 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4535 bound minimal symbols. Move code that knows about minsym
4537 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4539 * minsyms.h (minimal_symbol_upper_bound): Declare.
4540 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4541 minimal_symbol_upper_bound.
4543 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4545 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4546 Use the type's name if its basic type does not have a tag.
4548 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4550 * dwarf2read.c (read_subrange_type): Add comment.
4552 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4554 * dwarf2read.c (update_enumeration_type_from_children): New
4555 function, mostly extracted from process_structure_scope.
4556 (read_enumeration_type): Call update_enumeration_type_from_children.
4557 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4558 and flag_flag_enum fields.
4560 2014-02-26 Pedro Alves <palves@redhat.com>
4562 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4563 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4564 to_xfer_partial method.
4566 2014-02-26 Pedro Alves <palves@redhat.com>
4568 * target.c (complete_target_initialization): Don't install
4569 default_xfer_partial as to_xfer_partial hook.
4571 (update_current_target): Don't INHERIT nor de_fault
4572 deprecated_xfer_memory. Delete de_fault macro.
4573 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4574 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4575 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4578 2014-02-26 Pedro Alves <palves@redhat.com>
4580 * go32-nat.c (my_write_child): New function.
4581 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4582 (go32_xfer_partial): New function.
4583 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4584 Instead install a to_xfer_partial hook.
4586 2014-02-26 Pedro Alves <palves@redhat.com>
4588 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4589 to_xfer_partial helper. Rewrite.
4590 (procfs_xfer_partial): New function.
4591 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4592 Install a to_xfer_partial hook.
4594 2014-02-26 Pedro Alves <palves@redhat.com>
4596 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4597 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4598 (m32r_xfer_partial): New function.
4599 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4600 Install a to_xfer_partial hook.
4602 2014-02-26 Pedro Alves <palves@redhat.com>
4604 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4606 (mips_xfer_partial): New function.
4607 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4608 hook. Install a to_xfer_partial hook.
4610 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4612 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4613 * gdbtypes.c (create_array_type_with_stride): New function,
4614 renaming create_array_type, but with an added parameter
4615 called "bit_stride".
4616 (create_array_type): Re-implement using
4617 create_array_type_with_stride.
4618 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4619 and DW_AT_bit_stride attributes.
4621 2014-02-26 Pedro Alves <palves@redhat.com>
4623 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4624 task-specific breakpoints.
4626 2014-02-25 Pedro Alves <palves@redhat.com>
4628 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4629 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4631 2014-02-25 Stan Shebs <stan@codesourcery.com>
4633 * defs.h: Annotate comments for Doxygen.
4635 2014-02-25 Tom Tromey <tromey@redhat.com>
4637 * target.h (target_ignore): Don't declare.
4638 * target.c (target_ignore): Remove.
4640 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4643 * auto-load.c (auto_load_objfile_script_1): Change filename to
4646 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4648 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4649 documentation. Adjust prototype to match the target_ops
4650 to_xfer_partial method. Adjust implementation accordingly.
4652 2014-02-25 Hui Zhu <hui@codesourcery.com>
4654 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4657 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4659 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4660 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4661 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4662 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4663 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4664 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4665 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4666 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4668 (rl78_register_type): Use a data pointer type for SP and
4669 new pseudo registers mentioned above. Use a 16 bit integer
4670 type for all other register pairs.
4671 (rl78_register_name, rl78_g10_register_name): Update for
4672 new pseudo registers.
4673 (rl78_pseudo_register_read): Likewise.
4674 (rl78_pseudo_register_write): Likewise.
4675 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4676 to the newly added pseudo registers.
4678 2014-02-24 Doug Evans <dje@google.com>
4680 * value.c (record_latest_value): Fix comment.
4681 * printcmd.c (print_command_1): Remove code to handle -1 return from
4682 record_latest_value.
4684 2014-02-24 Pedro Alves <palves@redhat.com>
4686 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4687 deprecated_xfer_memory hook.
4688 (procfs_xfer_partial): Call procfs_xfer_memory instead
4689 of the deprecated_xfer_memory target hook.
4690 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4693 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4695 * windows-nat.c (windows_xfer_shared_libraries): Return
4696 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4697 requested object is TARGET_OBJECT_LIBRARIES.
4699 2014-02-24 Yao Qi <yao@codesourcery.com>
4701 * target.h (enum target_xfer_status)
4702 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4703 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4705 * corefile.c (memory_error_message): User updated.
4706 * exec.c (section_table_read_available_memory): Likewise.
4707 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4708 * target.c (target_xfer_status_to_string): Likewise.
4709 (raw_memory_xfer_partial): Likewise.
4710 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4711 * valops.c (read_value_memory): Likewise.
4712 * exec.h: Update comments.
4714 2014-02-24 Yao Qi <yao@codesourcery.com>
4716 * target.c (target_xfer_status_to_string): Rename argument err
4718 * target.h (target_xfer_status_to_string): Update declaration.
4719 Replace target_xfer_error_to_string with
4720 target_xfer_status_to_string in comment.
4722 2014-02-24 Yao Qi <yao@codesourcery.com>
4724 * mips-linux-nat.c (super_close): Update its type.
4725 (mips_linux_close): Pass 'self' to super_close.
4727 2014-02-24 Yao Qi <yao@codesourcery.com>
4729 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4730 * corefile.c (read_memory): Adjusted.
4731 * target.c (target_write_with_progress): Adjusted.
4733 2014-02-23 Yao Qi <yao@codesourcery.com>
4737 2013-10-25 Yao Qi <yao@codesourcery.com>
4739 * remote.c (remote_traceframe_info): Return early if
4740 traceframe is not selected.
4742 2013-07-19 Yao Qi <yao@codesourcery.com>
4744 * target.c (update_current_target): Change the default action
4745 of 'to_traceframe_info' from tcomplain to return_zero.
4746 * target.h (struct target_ops) <to_traceframe_info>: Add more
4749 2014-02-23 Yao Qi <yao@codesourcery.com>
4751 * valops.c (read_value_memory): Rewrite it. Call
4752 target_xfer_partial in a loop.
4753 * exec.h (section_table_available_memory): Remove declaration.
4754 Move comments to ...
4755 * exec.c (section_table_available_memory): ... here. Make it
4758 2014-02-23 Yao Qi <yao@codesourcery.com>
4760 * exec.c (section_table_read_available_memory): New function.
4761 * exec.h (section_table_read_available_memory): Declare.
4762 * ctf.c (ctf_xfer_partial): Call
4763 section_table_read_available_memory.
4764 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4766 2014-02-23 Yao Qi <yao@codesourcery.com>
4768 * ctf.c (ctf_xfer_partial): Move code to ...
4769 * exec.c (exec_read_partial_read_only): ... it. New function.
4770 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4771 * tracefile.c: Include "exec.h".
4772 * exec.h (exec_read_partial_read_only): Declare.
4774 2014-02-23 Yao Qi <yao@codesourcery.com>
4776 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4777 (tfile_has_memory): Remove.
4778 (init_tfile_ops): Don't set fields to_has_all_memory and
4779 to_has_memory of tfile_ops.
4780 * tracefile.c (tracefile_has_all_memory): New function.
4781 (tracefile_has_memory): New function.
4782 (init_tracefile_ops): Initialize fields to_has_all_memory and
4783 to_has_memory of 'ops'.
4785 2014-02-23 Yao Qi <yao@codesourcery.com>
4787 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4788 (ctf_thread_alive, ctf_get_trace_status): Remove.
4789 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4791 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4792 (tfile_has_stack, tfile_has_registers): Remove.
4793 (tfile_thread_alive): Remove.
4794 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4796 * tracefile.c (tracefile_has_stack): New function.
4797 (tracefile_has_registers): New function.
4798 (tracefile_thread_alive): New function.
4799 (tracefile_get_trace_status): New function.
4800 (init_tracefile_ops): New function.
4801 * tracefile.h (init_tracefile_ops): Declare.
4803 2014-02-23 Yao Qi <yao@codesourcery.com>
4805 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4806 (O_LARGEFILE): Likewise.
4807 (tfile_ops): Likewise.
4808 (TRACE_HEADER_SIZE): Likewise.
4809 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4810 (cur_data_size): Likewise.
4811 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4812 (tfile_close, tfile_files_info): Likewise.
4813 (tfile_get_trace_status): Likewise.
4814 (tfile_get_tracepoint_status): Likewise.
4815 (tfile_get_traceframe_address): Likewise.
4816 (tfile_trace_find, match_blocktype): Likewise.
4817 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4818 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4819 (tfile_get_trace_state_variable_value): Likewise.
4820 (tfile_has_all_memory, tfile_has_memory): Likewise.
4821 (tfile_has_stack, tfile_has_registers): Likewise.
4822 (tfile_thread_alive, build_traceframe_info): Likewise.
4823 (tfile_traceframe_info, init_tfile_ops): Likewise.
4824 (_initialize_tracepoint): Don't call init_tfile_ops
4825 and add_target_with_completer.
4826 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4827 exec.h, completer.h and filenames.h.
4828 (_initialize_tracefile_tfile): New function.
4830 2014-02-23 Yao Qi <yao@codesourcery.com>
4832 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4834 (HFILES_NO_SRCDIR): Add tracefile.h.
4835 * ctf.c: Include "tracefile.h".
4836 * tracefile.h: New file.
4837 * tracefile.c: New file
4838 * tracefile-tfile.c: New file.
4839 * tracepoint.c: Include "tracefile.h".
4840 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4841 (stop_reason_names): Add const.
4842 (trace_file_writer_xfree): Move it to tracefile.c.
4843 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4844 (trace_save_ctf): Likewise.
4845 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4846 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4847 (tfile_write_header, tfile_write_regblock_type): Likewise.
4848 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4849 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4850 (tfile_write_raw_data, tfile_end): Likewise.
4851 (tfile_trace_file_writer_new): Likewise.
4852 (free_uploaded_tp): Make it extern.
4853 (free_uploaded_tsv): Make it extern.
4854 (_initialize_tracepoint): Move code to register command 'tsave'
4856 * tracepoint.h (stop_reason_names): Declare.
4857 (struct trace_frame_write_ops): Move it to tracefile.h.
4858 (struct trace_file_write_ops): Likewise.
4859 (struct trace_file_writer): Likewise.
4860 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4862 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4867 (get_cores_used_by_process): New parameter num_cores, use it.
4868 (linux_xfer_osdata_processes): Pass num_cores to it.
4869 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4872 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4874 * target.c (memory_xfer_partial): Fix length arg in call to
4875 breakpoint_xfer_memory.
4877 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4880 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4881 number comes after the + or - signs. Adjust length of register
4882 name to be extracted.
4884 2014-02-20 Tom Tromey <tromey@redhat.com>
4886 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4887 (ada_varobj_ops): Mark "extern".
4889 2014-02-20 Tom Tromey <tromey@redhat.com>
4891 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4893 2014-02-20 Doug Evans <xdje42@gmail.com>
4895 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4896 All callers updated.
4897 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4898 All callers updated.
4899 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4900 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4902 2014-02-20 lin zuojian <manjian2006@gmail.com>
4903 Joel Brobecker <brobecker@adacore.com>
4904 Doug Evans <xdje42@gmail.com>
4907 * dwarf2read.c (struct die_info): New member in_process.
4908 (reset_die_in_process): New function.
4909 (process_die): Set it at the start, reset when returning.
4910 (inherit_abstract_dies): Only call process_die if origin_child_die
4911 not already being processed.
4913 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4915 * windows-nat.c (handle_unload_dll): Add function documentation.
4916 (do_initial_windows_stuff): Add comment explaining why we wait
4917 until after inferior initialization has finished before
4918 processing all DLLs.
4920 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4922 * windows-nat.c (get_module_name): Delete.
4923 (windows_get_exec_module_filename): New function, mostly
4924 inspired from get_module_name.
4925 (windows_pid_to_exec_file): Replace call to get_module_name
4926 by call to windows_get_exec_module_filename.
4928 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4930 * windows-nat.c (handle_load_dll): Rewrite this function's
4931 introductory comment. Remove code using get_module_name
4932 to get the DLL's name.
4934 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4936 * windows-nat.c (get_windows_debug_event): Ignore
4937 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4938 if windows_initialization_done == 0.
4939 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4940 Adjust implementation to always load all DLLs.
4941 (do_initial_windows_stuff): Replace call to
4942 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4944 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4946 * windows-nat.c (_initialize_windows_nat): Deprecate the
4947 "dll-symbols" command. Turn the "add-shared-symbol-files"
4948 and "assf" aliases into commands, and deprecate them as well.
4949 * NEWS: Add entry explaining that "dll-symbols" and its two
4950 aliases are now deprecated.
4952 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4954 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4955 new-line in debug string. Remove trailing spaces.
4957 2014-02-19 Stan Shebs <stan@codesourcery.com>
4959 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4961 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4963 * NEWS: Add entry for the new feature
4964 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4967 2014-02-19 Stan Shebs <stan@codesourcery.com>
4969 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4971 2014-02-19 Pedro Alves <palves@redhat.com>
4973 * common/ptid.h (struct ptid): Mention that process_stratum
4974 targets should prefer ptid.lwp.
4976 2014-02-19 Pedro Alves <palves@redhat.com>
4978 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4979 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4980 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4981 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4982 store remote thread ids rather than ptid.tid.
4983 (_initialize_remote): Adjust.
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * target.c (target_get_unwinder): Rewrite.
4988 (target_get_tailcall_unwinder): Rewrite.
4989 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4990 (record_btrace_to_get_tailcall_unwinder): New function.
4991 (init_record_btrace_ops): Update.
4992 * target.h (struct target_ops) <to_get_unwinder,
4993 to_get_tailcall_unwinder>: Now function pointers. Use
4994 TARGET_DEFAULT_RETURN.
4996 2014-02-19 Tom Tromey <tromey@redhat.com>
4998 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5000 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5002 2014-02-19 Tom Tromey <tromey@redhat.com>
5004 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5006 * target-delegates.c: Rebuild.
5007 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5008 TARGET_DEFAULT_FUNC.
5009 * target.c (default_target_decr_pc_after_break): Rename from
5010 forward_target_decr_pc_after_break. Simplify.
5011 (target_decr_pc_after_break): Rely on delegation.
5013 2014-02-19 Tom Tromey <tromey@redhat.com>
5015 * target.c (update_current_target): Do not INHERIT to_doc or
5016 to_magic. Do not de_fault to_open or to_close.
5018 2014-02-19 Tom Tromey <tromey@redhat.com>
5020 * gcore.h (objfile_find_memory_regions): Declare.
5021 * gcore.c (objfile_find_memory_regions): No longer static. Add
5023 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5024 * exec.c: Include gcore.h.
5025 (exec_set_find_memory_regions): Remove.
5026 (exec_find_memory_regions): Remove.
5027 (exec_do_find_memory_regions): Remove.
5028 (init_exec_ops): Update.
5029 * defs.h (exec_set_find_memory_regions): Remove.
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target-delegates.c: Rebuild.
5034 * target.h (struct target_ops) <to_extra_thread_info,
5035 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5036 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5037 not 0, in TARGET_DEFAULT_RETURN.
5039 2014-02-19 Tom Tromey <tromey@redhat.com>
5041 * target.c (complete_target_initialization): Remove casts. Use
5042 return_zero_has_execution.
5043 (return_zero): Add "ignore" argument.
5044 (return_zero_has_execution): New function.
5045 (init_dummy_target): Remove casts. Use
5046 return_zero_has_execution.
5048 2014-02-19 Tom Tromey <tromey@redhat.com>
5050 * target.c (update_current_target): Update comments. Do not
5053 2014-02-19 Tom Tromey <tromey@redhat.com>
5055 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5057 * corelow.c (core_read_description): Delegate when needed.
5058 * remote.c (remote_read_description): Delegate when needed.
5059 * target-delegates.c: Rebuild.
5060 * target.c (target_read_description): Rewrite.
5061 * target.h (struct target_ops) <to_read_description>: Update
5062 comment. Use TARGET_DEFAULT_RETURN.
5064 2014-02-19 Tom Tromey <tromey@redhat.com>
5066 * target-delegates.c: Rebuild.
5067 * target.c (update_current_target): Don't inherit or default
5069 (find_default_run_target): Check against delegate_can_run.
5070 * target.h (struct target_ops) <to_can_run>: Use
5071 TARGET_DEFAULT_RETURN.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (target_disconnect): Unconditionally delegate.
5077 * target.h (struct target_ops) <to_disconnect>: Use
5078 TARGET_DEFAULT_NORETURN.
5080 2014-02-19 Tom Tromey <tromey@redhat.com>
5082 * record.c (record_stop): Unconditionally delegate.
5083 * target-delegates.c: Rebuild.
5084 * target.c (target_stop_recording): Unconditionally delegate.
5085 * target.h (struct target_ops) <to_stop_recording>: Use
5086 TARGET_DEFAULT_IGNORE.
5088 2014-02-19 Tom Tromey <tromey@redhat.com>
5090 * target-delegates.c: Rebuild.
5091 * target.c (target_enable_btrace): Unconditionally delegate.
5092 * target.h (struct target_ops) <to_enable_btrace>: Use
5093 TARGET_DEFAULT_NORETURN.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target-delegates.c: Rebuild.
5098 * target.c (target_read_btrace): Unconditionally delegate.
5099 * target.h (struct target_ops) <to_read_btrace>: Use
5100 TARGET_DEFAULT_NORETURN.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target-delegates.c: Rebuild.
5105 * target.c (target_teardown_btrace): Unconditionally delegate.
5106 * target.h (struct target_ops) <to_teardown_btrace>: Use
5107 TARGET_DEFAULT_NORETURN.
5109 2014-02-19 Tom Tromey <tromey@redhat.com>
5111 * target-delegates.c: Rebuild.
5112 * target.c (target_disable_btrace): Unconditionally delegate.
5113 * target.h (struct target_ops) <to_disable_btrace>: Use
5114 TARGET_DEFAULT_NORETURN.
5116 2014-02-19 Tom Tromey <tromey@redhat.com>
5118 * target-delegates.c: Rebuild.
5119 * target.c (default_search_memory): New function.
5120 (simple_search_memory): Update comment.
5121 (target_search_memory): Unconditionally delegate.
5122 * target.h (struct target_ops) <to_search_memory>: Use
5123 TARGET_DEFAULT_FUNC.
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * auxv.c (default_auxv_parse): No longer static.
5128 (target_auxv_parse): Unconditionally delegate.
5129 * auxv.h (default_auxv_parse): Declare.
5130 * target-delegates.c: Rebuild.
5131 * target.c: Include auxv.h.
5132 * target.h (struct target_ops) <to_auxv_parse>: Use
5133 TARGET_DEFAULT_FUNC.
5135 2014-02-19 Tom Tromey <tromey@redhat.com>
5137 * target-delegates.c: Rebuild.
5138 * target.c (target_memory_map): Unconditionally delegate.
5139 * target.h (struct target_ops) <to_memory_map>: Use
5140 TARGET_DEFAULT_RETURN.
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target-delegates.c: Rebuild.
5145 * target.c (target_thread_alive): Unconditionally delegate.
5146 * target.h (struct target_ops) <to_thread_alive>: Use
5147 TARGET_DEFAULT_RETURN.
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target-delegates.c: Rebuild.
5152 * target.c (target_save_record): Unconditionally delegate.
5153 * target.h (struct target_ops) <to_save_record>: Use
5154 TARGET_DEFAULT_NORETURN.
5156 2014-02-19 Tom Tromey <tromey@redhat.com>
5158 * target-delegates.c: Rebuild.
5159 * target.c (target_delete_record): Unconditionally delegate.
5160 * target.h (struct target_ops) <to_delete_record>: Use
5161 TARGET_DEFAULT_NORETURN.
5163 2014-02-19 Tom Tromey <tromey@redhat.com>
5165 * target-delegates.c: Rebuild.
5166 * target.c (target_record_is_replaying): Unconditionally
5168 * target.h (struct target_ops) <to_record_is_replaying>: Use
5169 TARGET_DEFAULT_RETURN.
5171 2014-02-19 Tom Tromey <tromey@redhat.com>
5173 * target-delegates.c: Rebuild.
5174 * target.c (target_goto_record_begin): Unconditionally delegate.
5175 * target.h (struct target_ops) <to_goto_record_begin>: Use
5176 TARGET_DEFAULT_NORETURN.
5178 2014-02-19 Tom Tromey <tromey@redhat.com>
5180 * target-delegates.c: Rebuild.
5181 * target.c (target_goto_record_end): Unconditionally delegate.
5182 * target.h (struct target_ops) <to_goto_record_end>: Use
5183 TARGET_DEFAULT_NORETURN.
5185 2014-02-19 Tom Tromey <tromey@redhat.com>
5187 * target-delegates.c: Rebuild.
5188 * target.c (target_goto_record): Unconditionally delegate.
5189 * target.h (struct target_ops) <to_goto_record>: Use
5190 TARGET_DEFAULT_NORETURN.
5192 2014-02-19 Tom Tromey <tromey@redhat.com>
5194 * target-delegates.c: Rebuild.
5195 * target.c (target_insn_history): Unconditionally delegate.
5196 * target.h (struct target_ops) <to_insn_history>: Use
5197 TARGET_DEFAULT_NORETURN.
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5201 * target-delegates.c: Rebuild.
5202 * target.c (target_insn_history_from): Unconditionally delegate.
5203 * target.h (struct target_ops) <to_insn_history_from>: Use
5204 TARGET_DEFAULT_NORETURN.
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target-delegates.c: Rebuild.
5209 * target.c (target_insn_history_range): Unconditionally delegate.
5210 * target.h (struct target_ops) <to_insn_history_range>: Use
5211 TARGET_DEFAULT_NORETURN.
5213 2014-02-19 Tom Tromey <tromey@redhat.com>
5215 * target-delegates.c: Rebuild.
5216 * target.c (target_call_history): Unconditionally delegate.
5217 * target.h (struct target_ops) <to_call_history>: Use
5218 TARGET_DEFAULT_NORETURN.
5220 2014-02-19 Tom Tromey <tromey@redhat.com>
5222 * target-delegates.c: Rebuild.
5223 * target.c (target_call_history_from): Unconditionally delegate.
5224 * target.h (struct target_ops) <to_call_history_from>: Use
5225 TARGET_DEFAULT_NORETURN.
5227 2014-02-19 Tom Tromey <tromey@redhat.com>
5229 * target-delegates.c: Rebuild.
5230 * target.c (target_call_history_range): Unconditionally delegate.
5231 * target.h (struct target_ops) <to_call_history_range>: Use
5232 TARGET_DEFAULT_NORETURN.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * target-delegates.c: Rebuild.
5237 * target.c (target_verify_memory): Unconditionally delegate.
5238 * target.h (struct target_ops) <to_verify_memory>: Use
5239 TARGET_DEFAULT_NORETURN.
5241 2014-02-19 Tom Tromey <tromey@redhat.com>
5243 * target-delegates.c: Rebuild.
5244 * target.c (target_core_of_thread): Unconditionally delegate.
5245 * target.h (struct target_ops) <to_core_of_thread>: Use
5246 TARGET_DEFAULT_RETURN.
5248 2014-02-19 Tom Tromey <tromey@redhat.com>
5250 * target-delegates.c: Rebuild.
5251 * target.c (target_flash_done): Unconditionally delegate.
5252 * target.h (struct target_ops) <to_flash_done>: Use
5253 TARGET_DEFAULT_NORETURN.
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target-delegates.c: Rebuild.
5258 * target.c (target_flash_erase): Unconditionally delegate.
5259 * target.h (struct target_ops) <to_flash_erase>: Use
5260 TARGET_DEFAULT_NORETURN.
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target-delegates.c: Rebuild.
5265 * target.c (target_get_section_table): Unconditionally delegate.
5266 * target.h (struct target_ops) <to_get_section_table>: Use
5267 TARGET_DEFAULT_RETURN.
5269 2014-02-19 Tom Tromey <tromey@redhat.com>
5271 * target-delegates.c: Rebuild.
5272 * target.c (target_pid_to_str): Unconditionally delegate.
5273 (init_dummy_target): Don't initialize to_pid_to_str.
5274 (default_pid_to_str): Rename from dummy_pid_to_str.
5275 * target.h (struct target_ops) <to_pid_to_str>: Use
5276 TARGET_DEFAULT_FUNC.
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5280 * target-delegates.c: Rebuild.
5281 * target.c (target_find_new_threads): Unconditionally delegate.
5282 * target.h (struct target_ops) <to_find_new_threads>: Use
5283 TARGET_DEFAULT_RETURN.
5285 2014-02-19 Tom Tromey <tromey@redhat.com>
5287 * target-delegates.c: Rebuild.
5288 * target.c (target_program_signals): Unconditionally delegate.
5289 * target.h (struct target_ops) <to_program_signals>: Use
5290 TARGET_DEFAULT_IGNORE.
5292 2014-02-19 Tom Tromey <tromey@redhat.com>
5294 * target-delegates.c: Rebuild.
5295 * target.c (target_pass_signals): Unconditionally delegate.
5296 * target.h (struct target_ops) <to_pass_signals>: Use
5297 TARGET_DEFAULT_IGNORE.
5299 2014-02-19 Tom Tromey <tromey@redhat.com>
5301 * target-delegates.c: Rebuild.
5302 * target.c (default_mourn_inferior): New function.
5303 (target_mourn_inferior): Unconditionally delegate.
5304 * target.h (struct target_ops) <to_mourn_inferior>: Use
5305 TARGET_DEFAULT_FUNC.
5307 2014-02-19 Tom Tromey <tromey@redhat.com>
5309 * target-delegates.c: Rebuild.
5310 * target.c (default_follow_fork): New function.
5311 (target_follow_fork): Unconditionally delegate.
5312 * target.h (struct target_ops) <to_follow_fork>: Use
5313 TARGET_DEFAULT_FUNC.
5315 2014-02-19 Tom Tromey <tromey@redhat.com>
5317 * target-delegates.c: Rebuild.
5318 * target.c (target_kill): Unconditionally delegate.
5319 * target.h (struct target_ops) <to_kill>: Use
5320 TARGET_DEFAULT_NORETURN.
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target-delegates.c: Rebuild.
5325 * target.c (target_masked_watch_num_registers): Unconditionally
5327 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5328 Use TARGET_DEFAULT_RETURN.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target-delegates.c: Rebuild.
5333 * target.c (target_remove_mask_watchpoint): Unconditionally
5335 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5336 TARGET_DEFAULT_RETURN.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * target-delegates.c: Rebuild.
5341 * target.c (target_insert_mask_watchpoint): Unconditionally
5343 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5344 TARGET_DEFAULT_RETURN.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target-delegates.c: Rebuild.
5349 * target.c (target_ranged_break_num_registers): Unconditionally
5351 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5352 Use TARGET_DEFAULT_RETURN.
5354 2014-02-19 Tom Tromey <tromey@redhat.com>
5356 * target-delegates.c: Rebuild.
5357 * target.c (target_fetch_registers): Unconditionally delegate.
5358 * target.h (struct target_ops) <to_fetch_registers>: Use
5359 TARGET_DEFAULT_NORETURN.
5361 2014-02-19 Tom Tromey <tromey@redhat.com>
5363 * target-delegates.c: Rebuild.
5364 * target.c (update_current_target): Don't inherit or default
5366 * target.h (struct target_ops) <to_stop>: Use
5367 TARGET_DEFAULT_IGNORE.
5369 2014-02-19 Tom Tromey <tromey@redhat.com>
5371 * target-delegates.c: Rebuild.
5372 * target.c (update_current_target): Don't inherit or default
5373 to_can_run_breakpoint_commands.
5374 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5375 Use TARGET_DEFAULT_RETURN.
5377 2014-02-19 Tom Tromey <tromey@redhat.com>
5379 * target-delegates.c: Rebuild.
5380 * target.c (update_current_target): Don't inherit or default
5381 to_supports_evaluation_of_breakpoint_conditions.
5382 * target.h (struct target_ops)
5383 <to_supports_evaluation_of_breakpoint_conditions>: Use
5384 TARGET_DEFAULT_RETURN.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * target-delegates.c: Rebuild.
5389 * target.c (update_current_target): Don't inherit or default
5390 to_augmented_libraries_svr4_read.
5391 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5392 Use TARGET_DEFAULT_RETURN.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target-delegates.c: Rebuild.
5397 * target.c (update_current_target): Don't inherit or default
5399 * target.h (struct target_ops) <to_can_use_agent>: Use
5400 TARGET_DEFAULT_RETURN.
5402 2014-02-19 Tom Tromey <tromey@redhat.com>
5404 * target-delegates.c: Rebuild.
5405 * target.c (update_current_target): Don't inherit or default
5407 * target.h (struct target_ops) <to_use_agent>: Use
5408 TARGET_DEFAULT_NORETURN.
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target-delegates.c: Rebuild.
5413 * target.c (update_current_target): Don't inherit or default
5415 (return_null): Remove.
5416 * target.h (struct target_ops) <to_traceframe_info>: Use
5417 TARGET_DEFAULT_RETURN.
5419 2014-02-19 Tom Tromey <tromey@redhat.com>
5421 * target-delegates.c: Rebuild.
5422 * target.c (update_current_target): Don't inherit or default
5423 to_static_tracepoint_markers_by_strid.
5424 * target.h (struct target_ops)
5425 <to_static_tracepoint_markers_by_strid>: Use
5426 TARGET_DEFAULT_NORETURN.
5428 2014-02-19 Tom Tromey <tromey@redhat.com>
5430 * target-delegates.c: Rebuild.
5431 * target.c (update_current_target): Don't inherit or default
5432 to_static_tracepoint_marker_at.
5433 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5434 Use TARGET_DEFAULT_RETURN.
5436 2014-02-19 Tom Tromey <tromey@redhat.com>
5438 * target-delegates.c: Rebuild.
5439 * target.c (update_current_target): Don't inherit or default
5441 * target.h (struct target_ops) <to_set_permissions>: Use
5442 TARGET_DEFAULT_IGNORE.
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target-delegates.c: Rebuild.
5447 * target.c (update_current_target): Don't inherit or default
5449 * target.h (struct target_ops) <to_get_tib_address>: Use
5450 TARGET_DEFAULT_NORETURN.
5452 2014-02-19 Tom Tromey <tromey@redhat.com>
5454 * target-delegates.c: Rebuild.
5455 * target.c (update_current_target): Don't inherit or default
5457 * target.h (struct target_ops) <to_set_trace_notes>: Use
5458 TARGET_DEFAULT_RETURN.
5460 2014-02-19 Tom Tromey <tromey@redhat.com>
5462 * target-delegates.c: Rebuild.
5463 * target.c (update_current_target): Don't initialize
5464 to_set_trace_buffer_size.
5465 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5466 TARGET_DEFAULT_IGNORE.
5468 2014-02-19 Tom Tromey <tromey@redhat.com>
5470 * target-delegates.c: Rebuild.
5471 * target.c (update_current_target): Don't inherit or default
5472 to_set_circular_trace_buffer.
5473 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5474 TARGET_DEFAULT_IGNORE.
5476 2014-02-19 Tom Tromey <tromey@redhat.com>
5478 * target-delegates.c: Rebuild.
5479 * target.c (update_current_target): Don't inherit or default
5480 to_set_disconnected_tracing.
5481 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5482 TARGET_DEFAULT_IGNORE.
5484 2014-02-19 Tom Tromey <tromey@redhat.com>
5486 * target-delegates.c: Rebuild.
5487 * target.c (update_current_target): Don't inherit or default
5488 to_get_min_fast_tracepoint_insn_len.
5489 (return_minus_one): Remove.
5490 * target.h (struct target_ops)
5491 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5493 2014-02-19 Tom Tromey <tromey@redhat.com>
5495 * target-delegates.c: Rebuild.
5496 * target.c (update_current_target): Don't inherit or default
5497 to_get_raw_trace_data.
5498 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5499 TARGET_DEFAULT_NORETURN.
5501 2014-02-19 Tom Tromey <tromey@redhat.com>
5503 * target-delegates.c: Rebuild.
5504 * target.c (update_current_target): Don't inherit or default
5505 to_upload_trace_state_variables.
5506 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5507 Use TARGET_DEFAULT_RETURN.
5509 2014-02-19 Tom Tromey <tromey@redhat.com>
5511 * target-delegates.c: Rebuild.
5512 * target.c (update_current_target): Don't inherit or default
5513 to_upload_tracepoints.
5514 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5515 TARGET_DEFAULT_RETURN.
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target-delegates.c: Rebuild.
5520 * target.c (update_current_target): Don't inherit or default
5522 * target.h (struct target_ops) <to_save_trace_data>: Use
5523 TARGET_DEFAULT_NORETURN.
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target-delegates.c: Rebuild.
5528 * target.c (update_current_target): Don't inherit or default
5529 to_get_trace_state_variable_value.
5530 * target.h (struct target_ops)
5531 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * target-delegates.c: Rebuild.
5536 * target.c (update_current_target): Don't inherit or default
5538 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5540 2014-02-19 Tom Tromey <tromey@redhat.com>
5542 * target-delegates.c: Rebuild.
5543 * target.c (update_current_target): Don't inherit or default
5545 * target.h (struct target_ops) <to_trace_stop>: Use
5546 TARGET_DEFAULT_NORETURN.
5548 2014-02-19 Tom Tromey <tromey@redhat.com>
5550 * target-delegates.c: Rebuild.
5551 * target.c (update_current_target): Don't inherit or default
5552 to_get_tracepoint_status.
5553 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5554 TARGET_DEFAULT_NORETURN.
5556 2014-02-19 Tom Tromey <tromey@redhat.com>
5558 * target-delegates.c: Rebuild.
5559 * target.c (update_current_target): Don't inherit or default
5560 to_get_trace_status.
5561 * target.h (struct target_ops) <to_get_trace_status>: Use
5562 TARGET_DEFAULT_RETURN.
5564 2014-02-19 Tom Tromey <tromey@redhat.com>
5566 * target-delegates.c: Rebuild.
5567 * target.c (update_current_target): Don't inherit or default
5569 * target.h (struct target_ops) <to_trace_start>: Use
5570 TARGET_DEFAULT_NORETURN.
5572 2014-02-19 Tom Tromey <tromey@redhat.com>
5574 * target-delegates.c: Rebuild.
5575 * target.c (update_current_target): Don't inherit or default
5576 to_trace_set_readonly_regions.
5577 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5578 Use TARGET_DEFAULT_NORETURN.
5580 2014-02-19 Tom Tromey <tromey@redhat.com>
5582 * target-delegates.c: Rebuild.
5583 * target.c (update_current_target): Don't inherit or default
5584 to_disable_tracepoint.
5585 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5586 TARGET_DEFAULT_NORETURN.
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * target-delegates.c: Rebuild.
5591 * target.c (update_current_target): Don't inherit or default
5592 to_enable_tracepoint.
5593 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5594 TARGET_DEFAULT_NORETURN.
5596 2014-02-19 Tom Tromey <tromey@redhat.com>
5598 * target-delegates.c: Rebuild.
5599 * target.c (update_current_target): Don't inherit or default
5600 to_download_trace_state_variable.
5601 * target.h (struct target_ops) <to_download_trace_state_variable>:
5602 Use TARGET_DEFAULT_NORETURN.
5604 2014-02-19 Tom Tromey <tromey@redhat.com>
5606 * target-delegates.c: Rebuild.
5607 * target.c (update_current_target): Don't inherit or default
5608 to_can_download_tracepoint.
5609 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5610 TARGET_DEFAULT_RETURN.
5612 2014-02-19 Tom Tromey <tromey@redhat.com>
5614 * target-delegates.c: Rebuild.
5615 * target.c (update_current_target): Don't inherit or default
5616 to_download_tracepoint.
5617 * target.h (struct target_ops) <to_download_tracepoint>: Use
5618 TARGET_DEFAULT_NORETURN.
5620 2014-02-19 Tom Tromey <tromey@redhat.com>
5622 * target-delegates.c: Rebuild.
5623 * target.c (update_current_target): Don't inherit or default
5625 * target.h (struct target_ops) <to_trace_init>: Use
5626 TARGET_DEFAULT_RETURN.
5628 2014-02-19 Tom Tromey <tromey@redhat.com>
5630 * target-delegates.c: Rebuild.
5631 * target.c (update_current_target): Don't inherit or default
5632 to_supports_string_tracing.
5633 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5634 TARGET_DEFAULT_RETURN.
5636 2014-02-19 Tom Tromey <tromey@redhat.com>
5638 * target-delegates.c: Rebuild.
5639 * target.c (update_current_target): Don't inherit or default
5640 to_supports_enable_disable_tracepoint.
5641 * target.h (struct target_ops)
5642 <to_supports_enable_disable_tracepoint>: Use
5643 TARGET_DEFAULT_RETURN.
5645 2014-02-19 Tom Tromey <tromey@redhat.com>
5647 * target-delegates.c: Rebuild.
5648 * target.c (update_current_target): Don't inherit or default
5649 to_supports_multi_process.
5650 * target.h (struct target_ops) <to_supports_multi_process>: Use
5651 TARGET_DEFAULT_RETURN.
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target-delegates.c: Rebuild.
5656 * target.c (update_current_target): Don't inherit or default
5657 to_get_ada_task_ptid.
5658 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5659 TARGET_DEFAULT_FUNC.
5661 2014-02-19 Tom Tromey <tromey@redhat.com>
5663 * target-delegates.c: Rebuild.
5664 * target.c (update_current_target): Don't inherit or default
5665 to_thread_architecture.
5666 * target.h (struct target_ops) <to_thread_architecture>: Use
5667 TARGET_DEFAULT_FUNC.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * target-delegates.c: Rebuild.
5672 * target.c (update_current_target): Don't inherit or default
5673 to_execution_direction.
5674 * target.h (struct target_ops) <to_execution_direction>: Use
5675 TARGET_DEFAULT_FUNC.
5677 2014-02-19 Tom Tromey <tromey@redhat.com>
5679 * target-delegates.c: Rebuild.
5680 * target.c (update_current_target): Don't inherit or default
5681 to_can_execute_reverse.
5682 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5683 TARGET_DEFAULT_RETURN.
5684 (target_can_execute_reverse): Unconditionally delegate.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target-delegates.c: Rebuild.
5689 * target.c (update_current_target): Don't inherit or default
5691 (dummy_goto_bookmark): Remove.
5692 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5693 * target.h (struct target_ops) <to_goto_bookmark>: Use
5694 TARGET_DEFAULT_NORETURN.
5696 2014-02-19 Tom Tromey <tromey@redhat.com>
5698 * target-delegates.c: Rebuild.
5699 * target.c (update_current_target): Don't inherit or default
5701 (dummy_get_bookmark): Remove.
5702 (init_dummy_target): Don't inherit or default to_get_bookmark.
5703 * target.h (struct target_ops) <to_get_bookmark>: Use
5704 TARGET_DEFAULT_NORETURN
5706 2014-02-19 Tom Tromey <tromey@redhat.com>
5708 * target-delegates.c: Rebuild.
5709 * target.c (update_current_target): Don't inherit or default
5710 to_make_corefile_notes.
5711 (init_dummy_target): Don't initialize to_make_corefile_notes.
5712 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5713 TARGET_DEFAULT_FUNC.
5715 2014-02-19 Tom Tromey <tromey@redhat.com>
5717 * target-delegates.c: Rebuild.
5718 * target.c (update_current_target): Don't inherit or default
5719 to_find_memory_regions.
5720 (init_dummy_target): Don't initialize to_find_memory_regions.
5721 * target.h (struct target_ops) <to_find_memory_regions>: Use
5722 TARGET_DEFAULT_FUNC.
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * target-delegates.c: Rebuild.
5727 * target.c (update_current_target): Don't inherit or default
5729 * target.h (struct target_ops) <to_log_command>: Use
5730 TARGET_DEFAULT_IGNORE.
5731 (target_log_command): Unconditionally delegate.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target-delegates.c: Rebuild.
5736 * target.c (update_current_target): Don't inherit or default
5737 to_pid_to_exec_file.
5738 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5739 TARGET_DEFAULT_RETURN.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target-delegates.c: Rebuild.
5744 * target.c (update_current_target): Don't inherit or default
5746 (target_thread_name): Unconditionally delegate.
5747 * target.h (struct target_ops) <to_thread_name>: Use
5748 TARGET_DEFAULT_RETURN.
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * target-delegates.c: Rebuild.
5753 * target.c (update_current_target): Don't inherit or default
5754 to_extra_thread_info.
5755 * target.h (struct target_ops) <to_extra_thread_info>: Use
5756 TARGET_DEFAULT_RETURN.
5758 2014-02-19 Tom Tromey <tromey@redhat.com>
5760 * target-delegates.c: Rebuild.
5761 * target.c (update_current_target): Don't inherit or default
5763 * target.h (struct target_ops) <to_has_exited>: Use
5764 TARGET_DEFAULT_RETURN..
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target-delegates.c: Rebuild.
5769 * target.c (update_current_target): Don't inherit or default
5770 to_set_syscall_catchpoint.
5771 (return_one): Remove.
5772 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5773 TARGET_DEFAULT_RETURN.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target-delegates.c: Rebuild.
5778 * target.c (update_current_target): Don't inherit or default
5779 to_insert_exec_catchpoint.
5780 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5781 TARGET_DEFAULT_RETURN.
5783 2014-01-08 Tom Tromey <tromey@redhat.com>
5785 * target-delegates.c: Rebuild.
5786 * target.c (update_current_target): Don't inherit or default
5787 to_insert_exec_catchpoint.
5788 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5789 TARGET_DEFAULT_RETURN.
5791 2014-02-19 Tom Tromey <tromey@redhat.com>
5793 * target-delegates.c: Rebuild.
5794 * target.c (update_current_target): Don't inherit or default
5795 to_remove_vfork_catchpoint.
5796 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5797 TARGET_DEFAULT_RETURN.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target-delegates.c: Rebuild.
5802 * target.c (update_current_target): Don't inherit or default
5803 to_insert_vfork_catchpoint.
5804 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5805 TARGET_DEFAULT_RETURN.
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * target-delegates.c: Rebuild.
5810 * target.c (update_current_target): Don't inherit or default
5811 to_remove_fork_catchpoint.
5812 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5813 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
5820 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5821 TARGET_DEFAULT_RETURN.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target-delegates.c: Rebuild.
5826 * target.c (update_current_target): Don't inherit or default
5827 to_post_startup_inferior.
5828 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5829 TARGET_DEFAULT_IGNORE.
5831 2014-02-19 Tom Tromey <tromey@redhat.com>
5833 * target-delegates.c: Rebuild.
5834 * target.c (update_current_target): Don't inherit or default
5836 * target.h (struct target_ops) <to_load>: Use
5837 TARGET_DEFAULT_NORETURN.
5839 2014-02-19 Tom Tromey <tromey@redhat.com>
5841 * target-delegates.c: Rebuild.
5842 * target.c (update_current_target): Don't inherit or default
5844 * target.h (struct target_ops) <to_terminal_info>: Use
5845 TARGET_DEFAULT_FUNC.
5847 2014-02-19 Tom Tromey <tromey@redhat.com>
5849 * target-delegates.c: Rebuild.
5850 * target.c (update_current_target): Don't inherit or default
5851 to_terminal_save_ours.
5852 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5853 TARGET_DEFAULT_IGNORE.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (update_current_target): Don't inherit or default
5860 * target.h (struct target_ops) <to_terminal_ours>: Use
5861 TARGET_DEFAULT_IGNORE.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * target-delegates.c: Rebuild.
5866 * target.c (update_current_target): Don't inherit or default
5867 to_terminal_ours_for_output.
5868 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5869 TARGET_DEFAULT_IGNORE.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target-delegates.c: Rebuild.
5874 * target.c (update_current_target): Don't inherit or default
5875 to_terminal_inferior.
5876 * target.h (struct target_ops) <to_terminal_inferior>: Use
5877 TARGET_DEFAULT_IGNORE.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target-delegates.c: Rebuild.
5882 * target.c (update_current_target): Don't inherit or default
5884 * target.h (struct target_ops) <to_terminal_init>: Use
5885 TARGET_DEFAULT_IGNORE.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target-delegates.c: Rebuild.
5890 * target.c (update_current_target): Don't inherit or default
5891 to_can_accel_watchpoint_condition.
5892 * target.h (struct target_ops)
5893 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * target-delegates.c: Rebuild.
5898 * target.c (update_current_target): Don't inherit or default
5899 to_region_ok_for_hw_watchpoint.
5900 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5901 Use TARGET_DEFAULT_FUNC.
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * target-delegates.c: Rebuild.
5906 * target.c (update_current_target): Don't inherit or default
5907 to_watchpoint_addr_within_range.
5908 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5909 Use TARGET_DEFAULT_FUNC.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target-delegates.c: Rebuild.
5914 * target.c (update_current_target): Don't inherit or default
5915 to_remove_watchpoint.
5916 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5917 TARGET_DEFAULT_NORETURN.
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target-delegates.c: Rebuild.
5922 * target.c (update_current_target): Don't inherit or default
5923 to_insert_watchpoint.
5924 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5925 TARGET_DEFAULT_RETURN.
5927 2014-02-19 Tom Tromey <tromey@redhat.com>
5929 * target-delegates.c: Rebuild.
5930 * target.c (update_current_target): Don't inherit or default
5931 to_remove_hw_breakpoint.
5932 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5933 TARGET_DEFAULT_RETURN.
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5937 * target-delegates.c: Rebuild.
5938 * target.c (update_current_target): Don't inherit or default
5939 to_insert_hw_breakpoint.
5940 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5941 TARGET_DEFAULT_RETURN.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target-delegates.c: Rebuild.
5946 * target.c (update_current_target): Don't inherit or default
5947 to_can_use_hw_breakpoint.
5948 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5949 TARGET_DEFAULT_RETURN.
5951 2014-02-19 Tom Tromey <tromey@redhat.com>
5953 * target-delegates.c: Rebuild.
5954 * target.c (update_current_target): Don't inherit or default
5956 * target.h (struct target_ops) <to_files_info>: Use
5957 TARGET_DEFAULT_IGNORE.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target-delegates.c: Rebuild.
5962 * target.c (update_current_target): Don't inherit or default
5964 * target.h (struct target_ops) <to_store>: Use
5965 TARGET_DEFAULT_NORETURN.
5967 2014-02-19 Tom Tromey <tromey@redhat.com>
5969 * target-delegates.c: Rebuild.
5970 * target.c (update_current_target): Don't inherit or default
5972 * target.h (struct target_ops) <to_post_attach>: Use
5973 TARGET_DEFAULT_IGNORE.
5975 2014-02-19 Tom Tromey <tromey@redhat.com>
5977 * target-delegates.c: Rebuild.
5978 * target.c (update_current_target): Don't inherit or default
5980 (default_rcmd): New function.
5981 (do_monitor_command): Unconditionally delegate.
5982 * target.h (struct target_ops) <to_rmcd>: Use
5983 TARGET_DEFAULT_FUNC.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target-delegates.c: Rebuild.
5988 * target.c (init_dummy_target): Don't initialize to_attach.
5989 (target_attach): Unconditionally delegate.
5990 * target.h (struct target_ops) <to_attach>: Use
5991 TARGET_DEFAULT_FUNC.
5993 2014-02-19 Tom Tromey <tromey@redhat.com>
5995 * target-delegates.c: Rebuild.
5996 * target.c (target_detach): Unconditionally delegate.
5997 (init_dummy_target): Don't initialize to_detach.
5998 * target.h (struct target_ops) <to_detach>: Use
5999 TARGET_DEFAULT_IGNORE.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6005 (target_augmented_libraries_svr4_read): Add argument.
6006 * target.c (update_current_target): Update.
6007 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * target.h (struct target_ops) <to_call_history_range>: Add
6014 * target.c (target_call_history_range): Add argument.
6015 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6017 (record_btrace_call_history_from): Update.
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target.h (struct target_ops) <to_call_history_from>: Add
6023 * target.c (target_call_history_from): Add argument.
6024 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target.h (struct target_ops) <to_call_history>: Add argument.
6030 * target.c (target_call_history): Add argument.
6031 * record-btrace.c (record_btrace_call_history): Add 'self'
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target.h (struct target_ops) <to_insn_history_range>: Add
6038 * target.c (target_insn_history_range): Add argument.
6039 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6041 (record_btrace_insn_history_from): Update.
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target.h (struct target_ops) <to_insn_history_from>: Add
6047 * target.c (target_insn_history_from): Add argument.
6048 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6051 2014-02-19 Tom Tromey <tromey@redhat.com>
6053 * target.h (struct target_ops) <to_insn_history>: Add argument.
6054 * target.c (target_insn_history): Add argument.
6055 * record-btrace.c (record_btrace_insn_history): Add 'self'
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target.h (struct target_ops) <to_goto_record>: Add argument.
6061 * target.c (target_goto_record): Add argument.
6062 * record-full.c (record_full_goto): Add 'self' argument.
6063 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6068 * target.c (target_goto_record_end): Add argument.
6069 * record-full.c (record_full_goto_end): Add 'self' argument.
6070 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target.h (struct target_ops) <to_goto_record_begin>: Add
6076 * target.c (target_goto_record_begin): Add argument.
6077 * record-full.c (record_full_goto_begin): Add 'self' argument.
6078 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * target.h (struct target_ops) <to_record_is_replaying>: Add
6085 * target.c (target_record_is_replaying): Add argument.
6086 * record-full.c (record_full_is_replaying): Add 'self' argument.
6087 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6089 (record_btrace_xfer_partial, record_btrace_store_registers)
6090 (record_btrace_prepare_to_store, record_btrace_resume)
6091 (record_btrace_wait, record_btrace_decr_pc_after_break)
6092 (record_btrace_find_new_threads, record_btrace_thread_alive):
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * target.h (struct target_ops) <to_delete_record>: Add argument.
6098 * target.c (target_delete_record): Add argument.
6099 * record-full.c (record_full_delete): Add 'self' argument.
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target.h (struct target_ops) <to_save_record>: Add argument.
6104 * target.c (target_save_record): Add argument.
6105 * record-full.c (record_full_save): Add 'self' argument.
6106 (record_full_save): Add 'self' argument.
6108 2014-02-19 Tom Tromey <tromey@redhat.com>
6110 * target.h (struct target_ops) <to_info_record>: Add argument.
6111 * target.c (target_info_record): Add argument.
6112 * record.c (info_record_command): Add argument.
6113 * record-full.c (record_full_info): Add 'self' argument.
6114 * record-btrace.c (record_btrace_info): Add 'self' argument.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6119 * target.c (target_stop_recording): Add argument.
6120 * record.c (record_stop): Add argument.
6121 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6124 2014-02-19 Tom Tromey <tromey@redhat.com>
6126 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6127 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6128 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6130 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6131 (_initialize_amd64_linux_nat): Use it.
6132 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6133 (_initialize_i386_linux_nat): Use it.
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6137 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6138 * target.c (target_teardown_btrace): Add argument.
6139 * remote.c (remote_teardown_btrace): Add 'self' argument.
6140 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6142 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6145 2014-02-19 Tom Tromey <tromey@redhat.com>
6147 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6148 * target.c (target_disable_btrace): Add argument.
6149 * remote.c (remote_disable_btrace): Add 'self' argument.
6150 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6152 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6158 * target.c (target_enable_btrace): Add argument.
6159 * remote.c (remote_enable_btrace): Add 'self' argument.
6160 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6162 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6165 2014-02-19 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6168 (target_can_use_agent): Add argument.
6169 * target.c (update_current_target): Update.
6170 * remote.c (remote_can_use_agent): Add 'self' argument.
6171 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6173 2014-02-19 Tom Tromey <tromey@redhat.com>
6175 * target.h (struct target_ops) <to_use_agent>: Add argument.
6176 (target_use_agent): Add argument.
6177 * target.c (update_current_target): Update.
6178 * remote.c (remote_use_agent): Add 'self' argument.
6179 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6181 2014-02-19 Tom Tromey <tromey@redhat.com>
6183 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6184 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6185 (target_traceframe_info): Add argument.
6186 * target.c (update_current_target): Update.
6187 * remote.c (remote_traceframe_info): Add 'self' argument.
6188 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * target.h (target_static_tracepoint_markers_by_strid): Add
6194 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6196 * target.c (update_current_target): Update.
6197 * remote.c (struct target_ops)
6198 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6199 * linux-nat.c (struct target_ops)
6200 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6202 2014-02-19 Tom Tromey <tromey@redhat.com>
6204 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6206 (target_static_tracepoint_marker_at): Add argument.
6207 * target.c (update_current_target): Update.
6208 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6211 2014-02-19 Tom Tromey <tromey@redhat.com>
6213 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6214 (target_set_permissions): Add argument.
6215 * target.c (update_current_target): Update.
6216 * remote.c (remote_set_permissions): Add 'self' argument.
6217 (remote_start_remote): Update.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6222 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6223 (target_get_tib_address): Add argument.
6224 * target.c (update_current_target): Update.
6225 * remote.c (remote_get_tib_address): Add 'self' argument.
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6230 (target_set_trace_notes): Add argument.
6231 * target.c (update_current_target): Update.
6232 * remote.c (remote_set_trace_notes): Add 'self' argument.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6238 (target_set_trace_buffer_size): Add argument.
6239 * target.c (update_current_target): Update.
6240 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6246 (target_set_circular_trace_buffer): Add argument.
6247 * target.c (update_current_target): Update.
6248 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6255 (target_set_disconnected_tracing): Add argument.
6256 * target.c (update_current_target): Update.
6257 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6259 2014-02-19 Tom Tromey <tromey@redhat.com>
6261 * target.h (struct target_ops)
6262 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6263 (target_get_min_fast_tracepoint_insn_len): Add argument.
6264 * target.c (update_current_target): Update.
6265 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6268 2014-02-19 Tom Tromey <tromey@redhat.com>
6270 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6272 (target_get_raw_trace_data): Add argument.
6273 * target.c (update_current_target): Update.
6274 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6276 2014-02-19 Tom Tromey <tromey@redhat.com>
6278 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6280 (target_upload_trace_state_variables): Add argument.
6281 * target.c (update_current_target): Update.
6282 * remote.c (remote_upload_trace_state_variables): Add 'self'
6284 (remote_start_remote): Update.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6290 (target_upload_tracepoints): Add argument.
6291 * target.c (update_current_target): Update.
6292 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6293 (remote_start_remote): Update.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6298 (target_save_trace_data): Add argument.
6299 * target.c (update_current_target): Update.
6300 * remote.c (remote_save_trace_data): Add 'self' argument.
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6306 * target.h (struct target_ops)
6307 <to_get_trace_state_variable_value>: Add argument.
6308 (target_get_trace_state_variable_value): Add argument.
6309 * target.c (update_current_target): Update.
6310 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6312 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6317 * target.h (struct target_ops) <to_trace_find>: Add argument.
6318 (target_trace_find): Add argument.
6319 * target.c (update_current_target): Update.
6320 * remote.c (remote_trace_find): Add 'self' argument.
6321 * ctf.c (ctf_trace_find): Add 'self' argument.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6326 (target_trace_stop): Add argument.
6327 * target.c (update_current_target): Update.
6328 * remote.c (remote_trace_stop): Add 'self' argument.
6330 2014-02-19 Tom Tromey <tromey@redhat.com>
6332 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6333 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6335 (target_get_tracepoint_status): Add argument.
6336 * target.c (update_current_target): Update.
6337 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6342 * target.h (struct target_ops) <to_get_trace_status>: Add
6344 (target_get_trace_status): Add argument.
6345 * target.c (update_current_target): Update.
6346 * remote.c (remote_get_trace_status): Add 'self' argument.
6347 (remote_start_remote, remote_can_download_tracepoint): Update.
6348 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6350 2014-02-19 Tom Tromey <tromey@redhat.com>
6352 * target.h (struct target_ops) <to_trace_start>: Add argument.
6353 (target_trace_start): Add argument.
6354 * target.c (update_current_target): Update.
6355 * remote.c (remote_trace_start): Add 'self' argument.
6357 2014-02-19 Tom Tromey <tromey@redhat.com>
6359 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6361 (target_trace_set_readonly_regions): Add argument.
6362 * target.c (update_current_target): Update.
6363 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6370 (target_disable_tracepoint): Add argument.
6371 * target.c (update_current_target): Update.
6372 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6378 (target_enable_tracepoint): Add argument.
6379 * target.c (update_current_target): Update.
6380 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target.h (struct target_ops) <to_download_trace_state_variable>:
6386 (target_download_trace_state_variable): Add argument.
6387 * target.c (update_current_target): Update.
6388 * remote.c (remote_download_trace_state_variable): Add 'self'
6391 2014-02-19 Tom Tromey <tromey@redhat.com>
6393 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6395 (target_can_download_tracepoint): Add argument.
6396 * target.c (update_current_target): Update.
6397 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target.h (struct target_ops) <to_download_tracepoint>: Add
6403 (target_download_tracepoint): Add argument.
6404 * target.c (update_current_target): Update.
6405 * remote.c (remote_download_tracepoint): Add 'self' argument.
6407 2014-02-19 Tom Tromey <tromey@redhat.com>
6409 * target.h (struct target_ops) <to_trace_init>: Add argument.
6410 (target_trace_init): Add argument.
6411 * target.c (update_current_target): Update.
6412 * remote.c (remote_trace_init): Add 'self' argument.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6417 * target.c (target_fileio_readlink): Add argument.
6418 * remote.c (remote_hostio_readlink): Add 'self' argument.
6419 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6424 * target.c (target_fileio_unlink): Add argument.
6425 * remote.c (remote_hostio_unlink): Add 'self' argument.
6426 (remote_file_delete): Update.
6427 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6432 * target.c (target_fileio_close): Add argument.
6433 * remote.c (remote_hostio_close): Add 'self' argument.
6434 (remote_hostio_close_cleanup): Update.
6435 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6437 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6442 * target.c (target_fileio_pread): Add argument.
6443 * remote.c (remote_hostio_pread): Add 'self' argument.
6444 (remote_bfd_iovec_pread, remote_file_get): Update.
6445 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6447 2014-02-19 Tom Tromey <tromey@redhat.com>
6449 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6450 * target.c (target_fileio_pwrite): Add argument.
6451 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6452 (remote_file_put): Update.
6453 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6455 2014-02-19 Tom Tromey <tromey@redhat.com>
6457 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6458 * target.c (target_fileio_open): Add argument.
6459 * remote.c (remote_hostio_open): Add 'self' argument.
6460 (remote_bfd_iovec_open): Add 'self' argument.
6461 (remote_file_put): Add 'self' argument.
6462 (remote_file_get): Add 'self' argument.
6463 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6465 2014-02-19 Tom Tromey <tromey@redhat.com>
6467 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6469 (target_can_run_breakpoint_commands): Add argument.
6470 * target.c (update_current_target): Update.
6471 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6473 (remote_insert_breakpoint): Add 'self' argument.
6474 (remote_insert_hw_breakpoint): Add 'self' argument.
6475 (remote_can_run_breakpoint_commands): Add 'self' argument.
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target.h (struct target_ops)
6480 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6481 (target_supports_evaluation_of_breakpoint_conditions): Add
6483 * target.c (update_current_target): Update.
6484 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6486 (remote_insert_breakpoint): Add 'self' argument.
6487 (remote_insert_hw_breakpoint): Add 'self' argument.
6488 (remote_supports_cond_breakpoints): Add 'self' argument.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6494 (target_supports_string_tracing): Add argument.
6495 * target.c (update_current_target): Update.
6496 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6498 2014-02-19 Tom Tromey <tromey@redhat.com>
6500 * target.h (struct target_ops)
6501 <to_supports_disable_randomization>: Add argument.
6502 * target.c (find_default_supports_disable_randomization): Add
6504 (target_supports_disable_randomization): Add argument.
6505 (find_default_supports_disable_randomization): Add 'self'
6507 * remote.c (extended_remote_supports_disable_randomization): Add
6509 (remote_supports_disable_randomization): Add 'self' argument.
6510 (extended_remote_create_inferior): Update.
6511 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target.h (struct target_ops)
6517 <to_supports_enable_disable_tracepoint>: Add argument.
6518 (target_supports_enable_disable_tracepoint): Add argument.
6519 * target.c (update_current_target): Update.
6520 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6523 2014-02-19 Tom Tromey <tromey@redhat.com>
6525 * target.h (struct target_ops) <to_supports_multi_process>: Add
6527 (target_supports_multi_process): Add argument.
6528 * target.c (update_current_target): Update.
6529 * remote.c (remote_supports_multi_process): Add 'self' argument.
6530 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6532 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6535 2014-02-19 Tom Tromey <tromey@redhat.com>
6537 * target.h (struct target_ops) <to_execution_direction>: Add
6539 (target_execution_direction): Add argument.
6540 * target.c (default_execution_direction): Add 'self' argument.
6541 * record-full.c (record_full_execution_direction): Add 'self'
6544 2014-02-19 Tom Tromey <tromey@redhat.com>
6546 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6548 (target_can_execute_reverse): Add argument.
6549 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6550 * record-full.c (record_full_can_execute_reverse): Add 'self'
6552 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6555 2014-02-19 Tom Tromey <tromey@redhat.com>
6557 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6558 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6560 (target_get_ada_task_ptid): Add argument.
6561 * target.c (update_current_target): Update.
6562 (default_get_ada_task_ptid): Add 'self' argument.
6563 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6564 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6565 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6567 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6569 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6571 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6573 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6574 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6577 2014-02-19 Tom Tromey <tromey@redhat.com>
6579 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6580 (target_goto_bookmark): Add argument.
6581 * target.c (dummy_goto_bookmark): Add 'self' argument.
6582 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6584 2014-02-19 Tom Tromey <tromey@redhat.com>
6586 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6587 (target_get_bookmark): Add argument.
6588 * target.c (dummy_get_bookmark): Add 'self' argument.
6589 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6595 (target_make_corefile_notes): Add argument.
6596 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6597 * procfs.c (procfs_make_note_section): Add 'self' argument.
6598 (procfs_make_note_section): Add 'self' argument.
6599 (procfs_make_note_section): Add 'self' argument.
6600 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6602 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6603 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6604 * exec.c (exec_make_note_section): Add 'self' argument.
6605 (exec_make_note_section): Add 'self' argument.
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target.h (struct target_ops) <to_find_memory_regions>: Add
6611 (target_find_memory_regions): Add argument.
6612 * target.c (dummy_find_memory_regions): Add 'self' argument.
6613 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6614 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6615 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6616 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6617 * exec. (exec_do_find_memory_regions): New global.
6618 (exec_set_find_memory_regions): Rewrite.
6619 (exec_find_memory_regions): New function.
6620 (init_exec_ops): Use exec_find_memory_regions.
6622 2014-02-19 Tom Tromey <tromey@redhat.com>
6624 * target.h (struct target_ops) <to_supports_non_stop>: Add
6626 * target.c (find_default_supports_non_stop): Add argument.
6627 (target_supports_non_stop): Add argument.
6628 (find_default_supports_non_stop): Add 'self' argument.
6629 * remote.c (remote_supports_non_stop): Add 'self' argument.
6630 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target.h (struct target_ops) <to_log_command>: Add argument.
6635 (target_log_command): Add argument.
6636 * serial.h (serial_log_command): Add 'self' argument.
6637 * serial.c (serial_log_command): Add 'self' argument.
6639 2014-02-19 Tom Tromey <tromey@redhat.com>
6641 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6642 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6644 (target_pid_to_exec_file): Add argument.
6645 * target.c (debug_to_pid_to_exec_file): Add argument.
6646 (update_current_target): Update.
6647 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6648 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6649 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6650 (linux_handle_extended_wait): Update.
6651 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6652 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6653 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6654 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target.h (struct target_ops) <to_rcmd>: Add argument.
6659 (target_rcmd): Add argument.
6660 * target.c (debug_to_rcmd): Add argument.
6661 (update_current_target, do_monitor_command): Update.
6662 * remote.c (remote_rcmd): Add 'self' argument.
6663 * monitor.c (monitor_rcmd): Add 'self' argument.
6665 2014-02-19 Tom Tromey <tromey@redhat.com>
6667 * windows-nat.c (windows_stop): Add 'self' argument.
6668 * target.h (struct target_ops) <to_stop>: Add argument.
6669 * target.c (target_stop): Add argument.
6670 (debug_to_stop): Add argument.
6671 (update_current_target): Update.
6672 * remote.c (remote_stop): Add 'self' argument.
6673 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6674 (gdbsim_cntrl_c): Update.
6675 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6676 * procfs.c (procfs_stop): Add 'self' argument.
6677 * nto-procfs.c (procfs_stop): Add 'self' argument.
6678 * monitor.c (monitor_stop): Add 'self' argument.
6679 (monitor_open): Update.
6680 * linux-nat.c (linux_nat_stop): Add argument.
6681 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6682 * gnu-nat.c (gnu_stop): Add 'self' argument.
6683 * darwin-nat.c (darwin_stop): Add 'self' argument.
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target.h (struct target_ops) <to_thread_name>: Add argument.
6688 * target.c (target_thread_name): Add argument.
6689 (update_current_target): Update.
6690 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6692 2014-02-19 Tom Tromey <tromey@redhat.com>
6694 * target.h (struct target_ops) <to_extra_thread_info>: Add
6696 (target_extra_thread_info): Add argument.
6697 * target.c (update_current_target): Update.
6698 * remote.c (remote_threads_extra_info): Add 'self' argument.
6699 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6701 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6702 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6703 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6705 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6707 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6709 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6712 2014-02-19 Tom Tromey <tromey@redhat.com>
6714 * target.h (struct target_ops) <to_program_signals>: Add argument.
6715 * target.c (target_program_signals): Add argument.
6716 * remote.c (remote_program_signals): Add 'self' argument.
6718 2014-02-19 Tom Tromey <tromey@redhat.com>
6720 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6721 * target.c (target_pass_signals): Add argument.
6722 * remote.c (remote_pass_signals): Add 'self' argument.
6723 (remote_start_remote): Update.
6724 * procfs.c (procfs_pass_signals): Add 'self' argument.
6725 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6726 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6727 (linux_nat_create_inferior, linux_nat_attach): Update.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * windows-nat.c (windows_can_run): Add 'self' argument.
6732 * target.h (struct target_ops) <to_can_run>: Add argument.
6733 (target_can_run): Add argument.
6734 * target.c (debug_to_can_run): Add argument.
6735 (update_current_target): Update.
6736 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6737 * inf-child.c (inf_child_can_run): Add 'self' argument.
6738 * go32-nat.c (go32_can_run): Add 'self' argument.
6740 2014-02-19 Tom Tromey <tromey@redhat.com>
6742 * target.h (struct target_ops) <to_has_exited>: Add argument.
6743 (target_has_exited): Add argument.
6744 * target.c (debug_to_has_exited): Add argument.
6745 (update_current_target): Update.
6747 2014-02-19 Tom Tromey <tromey@redhat.com>
6749 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6751 (target_set_syscall_catchpoint): Add argument.
6752 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6754 * target.c (update_current_target): Update.
6756 2014-02-19 Tom Tromey <tromey@redhat.com>
6758 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6760 (target_remove_exec_catchpoint): Add argument.
6761 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6762 (update_current_target): Update.
6763 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6770 (target_insert_exec_catchpoint): Add argument.
6771 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6772 (update_current_target): Update.
6773 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6776 2014-02-19 Tom Tromey <tromey@redhat.com>
6778 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6780 (target_remove_vfork_catchpoint): Add argument.
6781 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6782 (update_current_target): Update.
6783 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6786 2014-02-19 Tom Tromey <tromey@redhat.com>
6788 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6790 (target_insert_vfork_catchpoint): Add argument.
6791 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6792 (update_current_target): Update.
6793 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6798 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6800 (target_remove_fork_catchpoint): Add argument.
6801 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6802 (update_current_target): Update.
6803 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6806 2014-02-19 Tom Tromey <tromey@redhat.com>
6808 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6810 (target_insert_fork_catchpoint): Add argument.
6811 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6812 (update_current_target): Update.
6813 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6816 2014-02-19 Tom Tromey <tromey@redhat.com>
6818 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6820 (target_post_startup_inferior): Add argument.
6821 * target.c (debug_to_post_startup_inferior): Add argument.
6822 (update_current_target): Update.
6823 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6825 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6827 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6829 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6831 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6833 (super_post_startup_inferior): Likewise.
6834 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6836 (super_post_startup_inferior): Likewise.
6837 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6838 Add 'self' argument.
6839 (super_post_startup_inferior): Likewise.
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * target.h (struct target_ops) <to_load>: Add argument.
6844 * target.c (target_load): Add argument.
6845 (debug_to_load): Add argument.
6846 (update_current_target): Update.
6847 * remote.c (remote_load): Add 'self' argument.
6848 * remote-sim.c (gdbsim_load): Add 'self' argument.
6849 * remote-mips.c (mips_load): Add 'self' argument.
6850 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6851 * monitor.c (monitor_load): Add 'self' argument.
6852 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6854 2014-02-19 Tom Tromey <tromey@redhat.com>
6856 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6857 (target_terminal_info): Add argument.
6858 * target.c (debug_to_terminal_info): Add argument.
6859 (default_terminal_info): Likewise.
6860 * inflow.c (child_terminal_info): Add 'self' argument.
6861 * inferior.h (child_terminal_info): Add 'self' argument.
6862 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6864 2014-02-19 Tom Tromey <tromey@redhat.com>
6866 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6868 (target_terminal_save_ours): Add argument.
6869 * target.c (debug_to_terminal_save_ours): Add argument.
6870 (update_current_target): Update.
6871 * inflow.c (terminal_save_ours): Add 'self' argument.
6872 * inferior.h (terminal_save_ours): Add 'self' argument.
6874 2014-02-19 Tom Tromey <tromey@redhat.com>
6876 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6877 (target_terminal_ours): Add argument.
6878 * target.c (debug_to_terminal_ours): Add argument.
6879 (update_current_target): Update.
6880 * remote.c (remote_terminal_ours): Add 'self' argument.
6881 (remote_close): Update.
6882 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6883 * inflow.c (terminal_ours): Add 'self' argument.
6884 * inferior.h (terminal_ours): Add 'self' argument.
6885 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6887 2014-02-19 Pedro Alves <palves@redhat.com>
6888 Tom Tromey <tromey@redhat.com>
6890 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6892 (target_terminal_ours_for_output): Add argument.
6893 * target.c (debug_to_terminal_ours_for_output): Add argument.
6894 (update_current_target): Update.
6895 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6896 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6897 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6899 2014-02-19 Tom Tromey <tromey@redhat.com>
6901 * target.h (struct target_ops) <to_terminal_inferior>: Add
6903 * target.c (target_terminal_inferior): Add argument.
6904 (update_current_target): Update.
6905 * remote.c (remote_terminal_inferior): Add 'self' argument.
6906 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6907 * inflow.c (terminal_inferior): Add 'self' argument.
6908 * inferior.h (terminal_inferior): Add 'self' argument.
6909 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6910 (go32_terminal_inferior): Add 'self' argument.
6912 2014-02-19 Tom Tromey <tromey@redhat.com>
6914 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6915 (target_terminal_init): Add argument.
6916 * target.c (debug_to_terminal_init): Add argument.
6917 (update_current_target): Update.
6918 * inflow.c (terminal_init_inferior): Add 'self' argument.
6919 * inferior.h (terminal_init_inferior): Add 'self' argument.
6920 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6921 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6923 2014-02-19 Tom Tromey <tromey@redhat.com>
6925 * target.h (struct target_ops)
6926 <to_can_accel_watchpoint_condition>: Add argument.
6927 (target_can_accel_watchpoint_condition): Add argument.
6928 * target.c (debug_to_can_accel_watchpoint_condition): Add
6930 (update_current_target): Update.
6931 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6934 2014-02-19 Tom Tromey <tromey@redhat.com>
6936 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6938 (target_region_ok_for_hw_watchpoint): Add argument.
6939 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6940 (default_region_ok_for_hw_watchpoint): Add argument.
6941 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6942 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6944 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6946 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6948 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6950 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6952 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6954 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6955 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6957 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6958 Add 'self' argument.
6960 2014-02-19 Tom Tromey <tromey@redhat.com>
6962 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6964 (target_insert_watchpoint): Add argument.
6965 * target.c (debug_to_insert_watchpoint): Add argument.
6966 (update_current_target): Update.
6967 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6968 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6969 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6970 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6971 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6972 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6974 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6975 (procfs_insert_hw_watchpoint): Add 'self' argument.
6976 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6978 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6980 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6982 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6983 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6985 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6988 2014-02-19 Tom Tromey <tromey@redhat.com>
6990 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6992 (target_remove_watchpoint): Add argument.
6993 * target.c (debug_to_remove_watchpoint): Add argument.
6994 (update_current_target): Update.
6995 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6996 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6997 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6998 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6999 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7000 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7002 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7003 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7005 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7007 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7009 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7010 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7012 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7015 2014-02-19 Tom Tromey <tromey@redhat.com>
7017 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7019 (target_remove_hw_breakpoint): Add argument.
7020 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7021 (update_current_target): Update.
7022 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7023 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7025 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7026 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7028 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7031 2014-02-19 Tom Tromey <tromey@redhat.com>
7033 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7035 (target_insert_hw_breakpoint): Add argument.
7036 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7037 (update_current_target): Update.
7038 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7039 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7041 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7042 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7043 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7045 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7048 2014-02-19 Tom Tromey <tromey@redhat.com>
7050 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7052 (target_can_use_hardware_watchpoint): Add argument.
7053 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7054 (update_current_target): Update.
7055 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7057 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7059 * remote.c (remote_check_watch_resources): Add 'self' argument.
7060 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7061 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7063 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7064 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7066 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7068 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7070 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7072 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7074 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7076 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7077 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7079 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7082 2014-02-19 Tom Tromey <tromey@redhat.com>
7084 * target.h (struct target_ops) <to_post_attach>: Add argument.
7085 (target_post_attach): Add argument.
7086 * target.c (debug_to_post_attach): Add argument.
7087 (update_current_target): Update.
7088 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7089 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7090 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7091 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7092 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * windows-nat.c (windows_close): Add 'self' argument.
7097 * tracepoint.c (tfile_close): Add 'self' argument.
7098 * target.h (struct target_ops) <to_close>: Add argument.
7099 * target.c (target_close): Add argument.
7100 (update_current_target): Update.
7101 * remote.c (remote_close): Add 'self' argument.
7102 * remote-sim.c (gdbsim_close): Add 'self' argument.
7103 * remote-mips.c (mips_close): Add 'self' argument.
7104 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7105 * record-full.c (record_full_close): Add 'self' argument.
7106 * record-btrace.c (record_btrace_close): Add 'self' argument.
7107 * monitor.h (monitor_close): Add 'self' argument.
7108 * monitor.c (monitor_close): Add 'self' argument.
7109 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7110 * linux-nat.c (linux_nat_close): Add argument.
7111 * go32-nat.c (go32_close): Add 'self' argument.
7112 * exec.c (exec_close_1): Add 'self' argument.
7113 * ctf.c (ctf_close): Add 'self' argument.
7114 * corelow.c (core_close): Add 'self' argument.
7115 (core_close_cleanup): Update.
7116 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7117 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7119 2014-02-19 Tom Tromey <tromey@redhat.com>
7121 * remote.c (remote_load): New function.
7122 (init_remote_ops): Use it.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7128 * common/linux-btrace.h (linux_supports_btrace): Update.
7129 * remote.c (remote_supports_btrace): Add "self" argument.
7130 * target-delegates.c: Rebuild.
7131 * target.c (target_supports_btrace): Remove.
7132 * target.h (struct target_ops) <to_supports_btrace>: Add
7133 target_ops argument.
7134 (target_supports_btrace): New define.
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * record-full.c (record_full_beneath_to_resume_ops)
7139 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7140 (record_full_beneath_to_wait)
7141 (record_full_beneath_to_store_registers_ops)
7142 (record_full_beneath_to_store_registers)
7143 (record_full_beneath_to_xfer_partial_ops)
7144 (record_full_beneath_to_xfer_partial)
7145 (record_full_beneath_to_insert_breakpoint_ops)
7146 (record_full_beneath_to_insert_breakpoint)
7147 (record_full_beneath_to_remove_breakpoint_ops)
7148 (record_full_beneath_to_remove_breakpoint)
7149 (record_full_beneath_to_stopped_by_watchpoint)
7150 (record_full_beneath_to_stopped_data_address)
7151 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7152 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7153 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7154 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7155 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7156 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7157 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7158 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7159 (record_full_resume, record_full_wait_1)
7160 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7161 (record_full_store_registers, record_full_xfer_partial)
7162 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7163 (record_full_async, record_full_core_xfer_partial): Use target
7165 * target-delegates.c: Rebuild.
7166 * target.c (current_xfer_partial): Remove.
7167 (update_current_target): Do not INHERIT or de_fault
7168 to_insert_breakpoint, to_remove_breakpoint,
7169 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7170 to_is_async_p, to_async. Do not set to_xfer_partial field.
7171 (default_xfer_partial): Simplify.
7172 (current_xfer_partial): Remove.
7173 (target_wait, target_resume): Simplify.
7174 (find_default_can_async_p, find_default_is_async_p): Update.
7175 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7176 to_xfer_partial, to_stopped_by_watchpoint,
7177 to_stopped_data_address.
7178 (target_store_registers): Simplify.
7179 (forward_target_remove_breakpoint)
7180 (forward_target_insert_breakpoint): Remove.
7181 (target_remove_breakpoint, target_insert_breakpoint)
7182 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7183 * target.h (struct target_ops) <to_resume, to_wait,
7184 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7185 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7186 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7188 (forward_target_remove_breakpoint)
7189 (forward_target_insert_breakpoint): Remove.
7190 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7192 (record_btrace_insert_breakpoint): Delegate directly.
7194 2014-02-19 Tom Tromey <tromey@redhat.com>
7197 * target-delegates.c: New file.
7198 * target.c: Include target-delegates.c.
7199 (init_dummy_target): Call install_dummy_methods.
7200 (complete_target_initialization): Call install_delegators.
7201 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7202 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7203 * make-target-delegates: New file.
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7207 * record.c (find_record_target): Use find_target_at.
7208 * target.c (find_target_at): New function.
7209 * target.h (find_target_at): Declare.
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7213 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7215 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7217 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7218 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7220 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7222 * linux-nat.c (save_sigtrap): Update.
7223 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7224 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7225 (linux_nat_close): Update.
7226 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7228 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7230 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7231 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7232 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7233 (tmp_to_async): Add 'ops' argument.
7234 (record_full_stopped_by_watchpoint, record_full_async)
7235 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7237 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7238 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7239 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7240 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7241 (remote_is_async_p, remote_async): Add 'ops' argument.
7242 (remote_stopped_data_address): Update.
7243 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7244 * target.c (update_current_target)
7245 (find_default_can_async_p, find_default_is_async_p): Update.
7246 (init_dummy_target): Update.
7247 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7248 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7249 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7250 (target_can_async_p, target_is_async_p, target_async)
7251 (target_stopped_by_watchpoint): Update.
7253 2014-02-19 Yao Qi <yao@codesourcery.com>
7256 * gdbarch.sh: Remove startup_gdbarch.
7257 * gdbarch.c: Regenerated.
7258 * gdbarch.h: Likewise.
7260 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7262 * rl78-tdep.c (rl78_g10_register_name): New function.
7263 (rl78_return_value): Add g10 support.
7264 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7267 2014-02-17 Doug Evans <xdje42@gmail.com>
7269 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7270 (SUBDIR_GUILE_SRCS): Ditto.
7271 (scm-gsmob.o): Ditto.
7273 2014-02-17 Yao Qi <yao@codesourcery.com>
7275 * gnu-nat.c (ILL_RPC): Declare defined function.
7277 2014-02-17 Yao Qi <yao@codesourcery.com>
7279 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7280 mach_msg_type_number_t.
7281 (gnu_write_inferior): Likewise.
7283 2014-02-17 Yao Qi <yao@codesourcery.com>
7285 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7287 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7288 (inf_validate_procs, inf_signal): Likewise.
7289 (S_exception_raise_request): Likewise.
7290 (do_mach_notify_dead_name): Likewise.
7291 (steal_exc_port): Likewise.
7292 (gnu_read_inferior): Change 'copy_count''s type to
7293 mach_msg_type_number_t.
7294 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7297 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7299 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7300 flag. Adjust all users; in particular...
7301 (gnu_wait): ..., don't decrement its value in here...
7302 (gnu_create_inferior): ..., and instead set the flag in here,
7303 around the startup_inferior call, and call that one with
7304 START_INFERIOR_TRAPS_EXPECTED.
7306 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7307 (ILL_RPC): ... new macro.
7308 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7309 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7310 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7311 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7312 functions with ILL_RPC macro.
7313 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7314 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7315 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7316 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7317 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7318 (S_proc_getlogin_reply, S_proc_getsid_reply)
7319 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7320 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7321 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7322 (S_proc_getnports_reply, S_proc_is_important_reply)
7323 (S_proc_get_code_reply): New stub functions, generated with
7326 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7327 collected the type check structures.
7329 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7331 2014-02-14 Doug Evans <dje@google.com>
7333 * target.c (target_write_partial): Fix result type.
7335 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7337 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7338 the proper offsets to access fpregset_t.
7340 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7342 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7343 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7344 * h8300-tdep.c (setmachinelist): Remove global.
7345 * hppa-tdep.c (hppa_sigtramp): Remove global.
7346 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7347 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7348 * ravenscar-thread.c (update_target_observer): Remove global.
7349 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7351 2014-02-12 Tom Tromey <tromey@redhat.com>
7353 * common/rsp-low.c: Update comments.
7354 * common/rsp-low.h: Update comments.
7356 2014-02-12 Tom Tromey <tromey@redhat.com>
7358 * common/rsp-low.c (convert_ascii_to_int): Remove.
7359 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7361 2014-02-12 Tom Tromey <tromey@redhat.com>
7363 * common/rsp-low.h (unhexify): Don't declare.
7364 * common/rsp-low.c (unhexify): Remove.
7366 2014-02-12 Tom Tromey <tromey@redhat.com>
7368 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7369 * common/rsp-low.c (convert_int_to_ascii): Remove.
7371 2014-02-12 Tom Tromey <tromey@redhat.com>
7373 * common/rsp-low.h (hexify): Don't declare.
7374 * common/rsp-low.c (hexify): Remove.
7376 2014-02-12 Tom Tromey <tromey@redhat.com>
7378 * common/rsp-low.c (hexify): Never take strlen of argument.
7380 2014-02-12 Tom Tromey <tromey@redhat.com>
7382 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7383 * remote.c (extended_remote_run, remote_rcmd)
7384 (remote_download_trace_state_variable, remote_save_trace_data)
7385 (remote_set_trace_notes): Update.
7386 * tracepoint.c (encode_source_string, tfile_write_status)
7387 (tfile_write_uploaded_tsv): Update.
7389 2014-02-12 Tom Tromey <tromey@redhat.com>
7391 * tracepoint.c: Include rsp-low.h.
7392 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7393 * remote.c: Include rsp-low.h.
7394 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7395 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7396 (remote_unescape_input): Move to common/rsp-low.c.
7397 * common/rsp-low.h: New file.
7398 * common/rsp-low.c: New file.
7399 * Makefile.in (SFILES): Add common/rsp-low.c.
7400 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7401 (COMMON_OBS): Add rsp-low.o.
7402 (rsp-low.o): New target.
7404 2014-02-12 Tom Tromey <tromey@redhat.com>
7406 * utils.h: Include print-utils.h.
7407 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7408 (int_string, core_addr_to_string, core_addr_to_string_nz)
7409 (hex_string, hex_string_custom): Don't declare.
7410 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7411 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7412 (hex_string_custom, int_string, core_addr_to_string)
7413 (core_addr_to_string_nz, host_address_to_string): Move to
7414 common/print-utils.c.
7415 * common/print-utils.h: New file.
7416 * common/print-utils.c: New file
7417 * Makefile.in (SFILES): Add common/print-utils.c.
7418 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7419 (COMMON_OBS): Add print-utils.o.
7420 (print-utils.o): New target.
7422 2014-02-12 Tom Tromey <tromey@redhat.com>
7424 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7426 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7428 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7430 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7432 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7433 if a PT_IO ptrace request returns sucessfully but indicates that 0
7434 bytes were transferred.
7436 2014-02-12 Pedro Alves <palves@redhat.com>
7437 Kevin Buettner <kevinb@redhat.com>
7439 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7440 TYPE_INSTANCE_FLAG_CODE_SPACE.
7442 2014-02-12 Pedro Alves <palves@redhat.com>
7444 * h8300-tdep.c (pseudo_from_raw_register)
7445 (raw_from_pseudo_register): New functions.
7446 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7449 2014-02-12 Pedro Alves <palves@redhat.com>
7451 * h8300-tdep.c (h8300_register_sim_regno): New function.
7452 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7453 gdbarch_register_sim_regno hook.
7455 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7457 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7459 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7461 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7463 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7465 * obsd-tdep.h (obsd_init_abi): New prototype.
7466 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7467 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7468 (obsd_init_abi): New functions.
7469 * i386obsd-tdep.c: Include "obsd-tdep.h".
7470 (i386obsd_init_abi): Call obsd_init_abi.
7471 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7472 (amd64obsd_init_abi): Call obsd_init_abi.
7473 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7474 obsd-tdep.c to gdb_target_obs.
7476 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7478 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7479 double float arguments to 16-byte in the argument slots.
7481 2014-02-11 Doug Evans <xdje42@gmail.com>
7483 * configure.ac: Don't crash if pkg-config is not found and guile
7484 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7486 * configure: Regenerate.
7488 2014-02-11 Yao Qi <yao@codesourcery.com>
7490 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7491 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7492 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7493 * gnu-nat.c (gnu_xfer_memory): Likewise.
7494 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7495 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7496 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7497 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7499 2014-02-11 Yao Qi <yao@codesourcery.com>
7501 * target.h (enum target_xfer_error): Rename to ...
7502 (enum target_xfer_status): ... it. New. All users updated.
7503 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7505 (TARGET_XFER_STATUS_ERROR_P): New macro.
7506 (target_xfer_error_to_string): Remove declaration.
7507 (target_xfer_status_to_string): Declare.
7508 (target_xfer_partial_ftype): Adjust it.
7509 (struct target_ops) <to_xfer_partial>: Return
7510 target_xfer_status. Add argument xfered_len. Update
7512 * target.c (target_xfer_error_to_string): Rename to ...
7513 (target_xfer_status_to_string): ... it. New. All callers
7515 (target_read_live_memory): Likewise. Call target_xfer_partial
7516 instead of target_read.
7517 (memory_xfer_live_readonly_partial): Return
7518 target_xfer_status. Add argument xfered_len.
7519 (raw_memory_xfer_partial): Likewise.
7520 (memory_xfer_partial_1): Likewise.
7521 (memory_xfer_partial): Likewise.
7522 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7523 properly. Update debug message.
7524 (default_xfer_partial, current_xfer_partial): Likewise.
7525 (target_write_partial): Likewise.
7526 (target_read_partial): Likewise. All callers updated.
7527 (read_whatever_is_readable): Likewise.
7528 (target_write_with_progress): Likewise.
7529 (target_read_alloc_1): Likewise.
7531 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7532 * auxv.c (procfs_xfer_auxv): Likewise.
7533 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7534 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7535 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7536 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7537 * corefile.c (read_memory): Adjust.
7538 * corelow.c (core_xfer_partial): Likewise.
7539 * ctf.c (ctf_xfer_partial): Likewise.
7540 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7542 (darwin_xfer_partial): Likewise.
7543 * exec.c (section_table_xfer_memory_partial): Likewise. All
7545 (exec_xfer_partial): Likewise.
7546 * exec.h (section_table_xfer_memory_partial): Update
7548 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7550 (gnu_xfer_partial): Likewise.
7551 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7552 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7553 (ia64_hpux_xfer_solib_got): Likewise.
7554 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7555 type of 'partial_len' to ULONGEST.
7556 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7557 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7558 (linux_nat_xfer_partial): Likewise.
7559 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7560 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7561 * monitor.c (monitor_xfer_memory): Likewise.
7562 (monitor_xfer_partial): Likewise.
7563 * procfs.c (procfs_xfer_partial): Likewise.
7564 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7565 * record-full.c (record_full_xfer_partial): Likewise.
7566 (record_full_core_xfer_partial): Likewise.
7567 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7568 (gdbsim_xfer_partial): Likewise.
7569 * remote.c (remote_write_bytes_aux): Likewise. All callers
7571 (remote_write_bytes, remote_read_bytes): Likewise. All
7573 (remote_flash_erase): Likewise. All callers updated.
7574 (remote_write_qxfer): Likewise. All callers updated.
7575 (remote_read_qxfer): Likewise. All callers updated.
7576 (remote_xfer_partial): Likewise.
7577 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7578 (rs6000_xfer_shared_libraries): Likewise.
7579 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7580 (sol_thread_xfer_partial): Likewise.
7581 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7582 (sparc_xfer_partial): Likewise.
7583 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7585 (spu_xfer_partial): Likewise.
7586 * spu-multiarch.c (spu_xfer_partial): Likewise.
7587 * tracepoint.c (tfile_xfer_partial): Likewise.
7588 * windows-nat.c (windows_xfer_memory): Likewise.
7589 (windows_xfer_shared_libraries): Likewise.
7590 (windows_xfer_partial): Likewise.
7591 * valprint.c: Replace 'target_xfer_error' with
7592 'target_xfer_status' in comments.
7594 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7596 Checked in by Joel Brobecker <brobecker@adacore.com>.
7597 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7599 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7601 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7602 function parameters.
7604 2014-02-10 Will Newton <will.newton@linaro.org>
7606 * elfread.c (elf_rel_plt_read): Look for a .got section if
7607 looking up .got.plt fails.
7608 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7609 on address passed to elf_gnu_ifunc_record_cache.
7610 (elf_gnu_ifunc_resolve_addr): Likewise.
7611 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7613 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7615 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7616 (X_RETTURN): New macro.
7617 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7619 * sparc64-tdep.c (sparc64_init_abi): Hook
7620 sparc_in_function_epilogue_p.
7622 2014-02-10 Gary Benson <gbenson@redhat.com>
7624 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7625 Rename name_matcher to symbol_matcher.
7627 2014-02-10 Gary Benson <gbenson@redhat.com>
7629 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7630 Use expand_symtabs_file_matcher_ftype and
7631 expand_symtabs_symbol_matcher_ftype.
7633 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7635 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7636 (struct ada_symbol_cache): New.
7637 (ada_free_symbol_cache): Forward declare.
7638 (struct ada_pspace_data): New.
7639 (ada_pspace_data_handle): New static global.
7640 (get_ada_pspace_data, ada_pspace_data_cleanup)
7641 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7642 (cache_space, cache): Delete, now folded inside struct
7644 (ada_get_symbol_cache): New function.
7645 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7647 (_initialize_ada_language): Remove initialization of cache_space.
7648 Move call to observer_attach_inferior_exit up, grouping it
7649 with the other observer registrations inside this function.
7650 Rename command to be more general. Add call to
7651 register_program_space_data_with_cleanup.
7653 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7655 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7656 ada_new_objfile_observer.
7657 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7658 (_initialize_tasks): Update uses of ada_new_objfile_observer
7659 and ada_tasks_normal_stop_observer.
7661 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7663 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7664 returned by the 'Length attribute to integer.
7666 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7668 * ada-lang.c (_initialize_ada_language): Initialize
7669 cache_space obstack.
7671 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7673 * ada-lang.c (HASH_SIZE): New macro.
7674 (struct cache_entry): New type.
7675 (cache_space, cache): New static globals.
7676 (ada_clear_symbol_cache, find_entry): New functions.
7677 (lookup_cached_symbol, cache_symbol): Implement.
7678 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7679 (_initialize_ada_language): Attach ada_new_objfile_observer
7680 and ada_free_objfile_observer.
7682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7684 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7685 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7686 struct block * parameter.
7687 (ada_lookup_symbol_list_worker): Constify local variable "block".
7688 Remove cast which is no longer necessary.
7690 2014-02-10 Doug Evans <xdje42@gmail.com>
7692 Add Guile as an extension language.
7693 * NEWS: Mention Guile scripting.
7694 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7695 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7696 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7697 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7698 (CLIBS): Add GUILE_LIBS.
7699 (install-guile): New rule.
7700 (guile.o): New rule.
7701 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7702 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7703 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7704 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7705 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7706 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7707 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7708 * configure.ac: New option --with-guile.
7709 * configure: Regenerate.
7710 * config.in: Regenerate.
7711 * auto-load.c: Remove #include "python/python.h". Add #include
7712 "gdb/section-scripts.h".
7713 (source_section_scripts): Handle Guile scripts.
7714 (_initialize_auto_load): Add name of Guile objfile script to
7715 scripts-directory help text.
7716 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7717 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7718 (struct breakpoint): New member scm_bp_object.
7719 * defs.h (enum command_control_type): New value guile_control.
7720 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7722 (show_user): Update comment.
7723 (_initialize_cli_cmds): Update help text for "show user". Update help
7724 text for max-user-call-depth.
7725 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7727 (multi_line_command_p): Add guile_control.
7728 (print_command_lines): Handle guile_control.
7729 (execute_control_command, recurse_read_control_structure): Ditto.
7730 (process_next_line): Recognize "guile" commands.
7731 * disasm.c (gdb_disassemble_info): Make non-static.
7732 * disasm.h: #include "dis-asm.h".
7733 (struct gdbarch): Add forward decl.
7734 (gdb_disassemble_info): Declare.
7735 * extension.c: #include "guile/guile.h".
7736 (extension_languages): Add guile.
7737 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7738 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7739 * gdbtypes.c (get_unsigned_type_max): New function.
7740 (get_signed_type_minmax): New function.
7741 * gdbtypes.h (get_unsigned_type_max): Declare.
7742 (get_signed_type_minmax): Declare.
7743 * guile/README: New file.
7744 * guile/guile-internal.h: New file.
7745 * guile/guile.c: New file.
7746 * guile/guile.h: New file.
7747 * guile/scm-arch.c: New file.
7748 * guile/scm-auto-load.c: New file.
7749 * guile/scm-block.c: New file.
7750 * guile/scm-breakpoint.c: New file.
7751 * guile/scm-disasm.c: New file.
7752 * guile/scm-exception.c: New file.
7753 * guile/scm-frame.c: New file.
7754 * guile/scm-gsmob.c: New file.
7755 * guile/scm-iterator.c: New file.
7756 * guile/scm-lazy-string.c: New file.
7757 * guile/scm-math.c: New file.
7758 * guile/scm-objfile.c: New file.
7759 * guile/scm-ports.c: New file.
7760 * guile/scm-pretty-print.c: New file.
7761 * guile/scm-safe-call.c: New file.
7762 * guile/scm-string.c: New file.
7763 * guile/scm-symbol.c: New file.
7764 * guile/scm-symtab.c: New file.
7765 * guile/scm-type.c: New file.
7766 * guile/scm-utils.c: New file.
7767 * guile/scm-value.c: New file.
7768 * guile/lib/gdb.scm: New file.
7769 * guile/lib/gdb/boot.scm: New file.
7770 * guile/lib/gdb/experimental.scm: New file.
7771 * guile/lib/gdb/init.scm: New file.
7772 * guile/lib/gdb/iterator.scm: New file.
7773 * guile/lib/gdb/printing.scm: New file.
7774 * guile/lib/gdb/types.scm: New file.
7775 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7776 (VPATH): Add $(GUILE_SRCDIR).
7777 (GUILE_DIR): New variable.
7778 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7779 (all): Add stamp-guile dependency.
7780 (stamp-guile): New rule.
7781 (clean-guile, install-guile, uninstall-guile): New rules.
7782 (install-only): Add install-guile dependency.
7783 (uninstall): Add uninstall-guile dependency.
7784 (clean): Add clean-guile dependency.
7786 2014-02-09 Doug Evans <xdje42@gmail.com>
7788 Revert this patch (which I approved, mea culpa).
7790 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7792 * Makefile.in (all-lib): Remove.
7793 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7795 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7797 Fix Python stack corruption.
7798 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7801 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7803 * Makefile.in (all-lib): Remove.
7804 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7806 2014-02-07 Doug Evans <dje@google.com>
7808 * extension-priv.h (extension_language_script_ops): Add comment.
7809 (extension_language_ops): Add comment.
7810 (active_ext_lang_state): Fix typo in comment.
7812 2014-02-07 Pedro Alves <palves@redhat.com>
7814 PR breakpoints/16292
7815 * infrun.c (handle_signal_stop) <signal arrives while stepping
7816 over a breakpoint>: Switch back to the stepping thread.
7818 2014-02-07 Yao Qi <yao@codesourcery.com>
7820 * target.c (target_xfer_partial): Return zero if LEN is zero.
7822 2014-02-07 Yao Qi <yao@codesourcery.com>
7824 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7825 (ld_so_xfer_auxv): Likewise.
7826 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7827 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7828 * corelow.c (core_xfer_partial): Likewise.
7829 * ctf.c (ctf_xfer_partial): Likewise.
7830 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7831 (darwin_xfer_partial): Likewise.
7832 * exec.c (exec_xfer_partial): Likewise.
7833 * gnu-nat.c (gnu_xfer_partial): Likewise.
7834 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7835 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7836 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7837 * linux-nat.c (linux_xfer_siginfo): Likewise.
7838 (linux_proc_xfer_spu): Likewise.
7839 * procfs.c (procfs_xfer_partial): Likewise.
7840 * record-full.c (record_full_xfer_partial): Likewise.
7841 (record_full_core_xfer_partial): Likewise.
7842 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7843 * remote.c (remote_write_qxfer): Likewise.
7844 (remote_write_qxfer, remote_read_qxfer): Likewise.
7845 (remote_xfer_partial): Likewise.
7846 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7847 (rs6000_xfer_shared_libraries): Likewise.
7848 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7849 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7850 (spu_xfer_partial): Likewise.
7851 * target.c (memory_xfer_partial_1): Likewise.
7852 * tracepoint.c (tfile_xfer_partial): Likewise.
7853 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7854 (windows_xfer_partial): Likewise.
7856 2014-02-07 Yao Qi <yao@codesourcery.com>
7858 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7860 (core_xfer_shared_libraries_aix): Likewise.
7861 * gdbarch.c, gdbarch.h: Regenerated.
7862 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7863 ULONGEST. Change 'len_avail' type to ULONGEST.
7864 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7865 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7867 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7869 2014-02-07 Yao Qi <yao@codesourcery.com>
7871 * corefile.c (memory_error): Get 'exception' from ERR and pass
7872 'exception' to throw_error.
7874 2014-02-06 Doug Evans <xdje42@gmail.com>
7876 * configure.ac (libpython checking): Remove all but python.o from
7877 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7878 * configure: Regenerate.
7880 * Makefile.in (SFILES): Add extension.c.
7881 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7882 (COMMON_OBS): Add extension.o.
7883 * extension.h: New file.
7884 * extension-priv.h: New file.
7885 * extension.c: New file.
7887 * python/python-internal.h: #include "extension.h".
7888 (gdbpy_auto_load_enabled): Declare.
7889 (gdbpy_apply_val_pretty_printer): Declare.
7890 (gdbpy_apply_frame_filter): Declare.
7891 (gdbpy_preserve_values): Declare.
7892 (gdbpy_breakpoint_cond_says_stop): Declare.
7893 (gdbpy_breakpoint_has_cond): Declare.
7894 (void source_python_script_for_objfile): Delete.
7895 * python/python.c: #include "extension-priv.h".
7896 Delete inclusion of "observer.h".
7897 (extension_language_python): Moved here and renamed from
7898 script_language_python in py-auto-load.c.
7899 Redefined to be of type extension_language_defn.
7900 (python_extension_script_ops): New global.
7901 (python_extension_ops): New global.
7902 (struct python_env): New member previous_active.
7903 (restore_python_env): Call restore_active_ext_lang.
7904 (ensure_python_env): Call set_active_ext_lang.
7905 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7907 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7909 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7911 (gdbpy_eval_from_control_command): Renamed from
7912 eval_python_from_control_command, made static. New arg extlang.
7913 (gdbpy_source_script) Renamed from source_python_script, made static.
7915 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7916 result to int. New arg extlang.
7917 (gdbpy_source_objfile_script): Renamed from
7918 source_python_script_for_objfile, made static. New arg extlang.
7919 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7920 static. New args extlang, extlang_printers. Change result type to
7922 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7923 static. New arg extlang. Rename arg printers to extlang_printers
7924 and change type to ext_lang_type_printers *.
7925 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7926 static. Replace argument arg with extlang, extlang_printers.
7927 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7928 (!HAVE_PYTHON, source_python_script): Delete.
7929 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7930 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7931 (!HAVE_PYTHON, start_type_printers): Delete.
7932 (!HAVE_PYTHON, apply_type_printers): Delete.
7933 (!HAVE_PYTHON, free_type_printers): Delete.
7934 (_initialize_python): Delete call to observer_attach_before_prompt.
7935 (finalize_python): Set/restore active extension language.
7936 (gdbpy_finish_initialization) Renamed from
7937 finish_python_initialization, made static. New arg extlang.
7938 (gdbpy_initialized): New function.
7939 * python/python.h: #include "extension.h". Delete #include
7940 "value.h", "mi/mi-cmds.h".
7941 (extension_language_python): Declare.
7942 (GDBPY_AUTO_FILE_NAME): Delete.
7943 (enum py_bt_status): Moved to extension.h and renamed to
7945 (enum frame_filter_flags): Moved to extension.h.
7946 (enum py_frame_args): Moved to extension.h and renamed to
7947 ext_lang_frame_args.
7948 (finish_python_initialization): Delete.
7949 (eval_python_from_control_command): Delete.
7950 (source_python_script): Delete.
7951 (apply_val_pretty_printer): Delete.
7952 (apply_frame_filter): Delete.
7953 (preserve_python_values): Delete.
7954 (gdbpy_script_language_defn): Delete.
7955 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7956 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7958 * auto-load.c: #include "extension.h".
7959 (GDB_AUTO_FILE_NAME): Delete.
7960 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7961 (script_language_gdb): Delete, moved to extension.c and renamed to
7962 extension_language_gdb.
7963 (source_gdb_script_for_objfile): Delete.
7964 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7965 (loaded_script): Change type of language member to
7966 struct extension_language_defn *.
7967 (init_loaded_scripts_info): Initialize
7968 unsupported_script_warning_printed.
7969 (maybe_add_script): Make static. Change type of language arg to
7970 struct extension_language_defn *.
7971 (clear_section_scripts): Reset unsupported_script_warning_printed.
7972 (auto_load_objfile_script_1): Rewrite to use extension language API.
7973 (auto_load_objfile_script): Make public. Remove support-compiled-in
7974 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7975 (source_section_scripts): Rewrite to use extension language API.
7976 (load_auto_scripts_for_objfile): Rewrite to use
7977 auto_load_scripts_for_objfile.
7978 (collect_matching_scripts_data): Change type of language member to
7979 struct extension_language_defn *.
7980 (auto_load_info_scripts): Change type of language arg to
7981 struct extension_language_defn *.
7982 (unsupported_script_warning_print): New function.
7983 (script_not_found_warning_print): Make static.
7984 (_initialize_auto_load): Rewrite construction of scripts-directory
7986 * auto-load.h (struct objfile): Add forward decl.
7987 (struct script_language): Delete.
7988 (struct auto_load_pspace_info): Add forward decl.
7989 (struct extension_language_defn): Add forward decl.
7990 (maybe_add_script): Delete.
7991 (auto_load_objfile_script): Declare.
7992 (script_not_found_warning_print): Delete.
7993 (auto_load_info_scripts): Update prototype.
7994 (auto_load_gdb_scripts_enabled): Declare.
7995 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7996 auto_load_python_scripts_enabled and made public.
7997 (script_language_python): Delete, moved to python.c.
7998 (gdbpy_script_language_defn): Delete.
7999 (info_auto_load_python_scripts): Update to use
8000 extension_language_python.
8002 * breakpoint.c (condition_command): Replace call to
8003 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8004 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8005 with call to breakpoint_ext_lang_cond_says_stop.
8006 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8007 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8008 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8009 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8011 (local_setattro): Print name of extension language with existing
8014 * valprint.c (val_print, value_print): Update to call
8015 apply_ext_lang_val_pretty_printer.
8016 * cp-valprint.c (cp_print_value): Update call to
8017 apply_ext_lang_val_pretty_printer.
8018 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8019 (gdbpy_apply_val_pretty_printer): Renamed from
8020 apply_val_pretty_printer. New arg extlang.
8021 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8023 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8024 extension language API.
8025 * cli/cli-script.c (execute_control_command): Update to call
8026 eval_ext_lang_from_control_command.
8028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8029 enum ext_lang_bt_status values. Update call to
8030 apply_ext_lang_frame_filter.
8031 (mi_cmd_stack_list_locals): Ditto.
8032 (mi_cmd_stack_list_args): Ditto.
8033 (mi_cmd_stack_list_variables): Ditto.
8034 * mi/mi-main.c: Delete #include "python/python-internal.h".
8035 Add #include "extension.h".
8036 (mi_cmd_list_features): Replace reference to python internal variable
8037 gdb_python_initialized with call to ext_lang_initialized_p.
8039 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8040 Update to use enum ext_lang_frame_args. Update to call
8041 apply_ext_lang_frame_filter.
8042 * python/py-framefilter.c (extract_sym): Update to use enum
8044 (extract_value, py_print_type, py_print_value): Ditto.
8045 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8046 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8047 (py_print_frame): Ditto.
8048 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8049 New arg extlang. Update to use enum ext_lang_bt_status.
8051 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8052 finish_python_initialization. Replace with call to
8053 finish_ext_lang_initialization.
8055 * typeprint.c (do_free_global_table): Update to call
8056 free_ext_lang_type_printers.
8057 (create_global_typedef_table): Update to call
8058 start_ext_lang_type_printers.
8059 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8060 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8061 (type_print_options): Change type of global_printers from "void *"
8062 to "struct ext_lang_type_printers *".
8064 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8065 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8066 (gdbpy_preserve_values): Renamed from preserve_python_values.
8068 (!HAVE_PYTHON, preserve_python_values): Delete.
8070 * utils.c (quit_flag): Delete, moved to extension.c.
8071 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8074 * eval.c: Delete #include "python/python.h".
8075 * main.c: Delete #include "python/python.h".
8077 * defs.h: Update comment.
8079 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8083 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8085 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8088 2014-02-05 Yao Qi <yao@codesourcery.com>
8090 * remote.c (remote_pass_signals): Remove local 'buf' and use
8092 (remote_program_signals): Likewise.
8094 2014-02-05 Yao Qi <yao@codesourcery.com>
8096 * ctf.c: Include "inferior.h" and "gdbthread.h".
8097 (CTF_PID): A new macro.
8098 (ctf_open): Call inferior_appeared and add_thread_silent.
8099 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8100 (ctf_thread_alive): New function.
8101 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8103 2014-02-05 Yao Qi <yao@codesourcery.com>
8107 2013-05-24 Yao Qi <yao@codesourcery.com>
8109 * tracepoint.c (TFILE_PID): Remove.
8110 (tfile_open): Don't add thread and inferior.
8111 (tfile_close): Don't set 'inferior_ptid'. Don't call
8112 exit_inferior_silent.
8113 (tfile_thread_alive): Remove.
8114 (init_tfile_ops): Don't set field 'to_thread_alive' of
8117 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8119 * remote.c (remote_start_remote): Call remote_check_symbols even
8120 if only symbol-file (not file) has been given.
8122 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8124 * gdbarch.sh (skip_entrypoint): New callback.
8125 * gdbarch.c, gdbarch.h: Regenerate.
8126 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8127 * infrun.c (fill_in_stop_func): Likewise.
8128 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8129 (ppc_elfv2_elf_make_msymbol_special): New function.
8130 (ppc_elfv2_skip_entrypoint): Likewise.
8131 (ppc_linux_init_abi): Install them for ELFv2.
8133 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8135 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8136 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8137 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8138 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8139 structures returned in GPRs.
8141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8144 offset to the stack parameter list for the ELFv2 ABI.
8146 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8148 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8149 set_gdbarch_convert_from_func_ptr_addr and
8150 set_gdbarch_elf_make_msymbol_special for ELFv1.
8151 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8152 function descriptors on ELFv1.
8153 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8154 set up r12 at function entry.
8156 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8158 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8159 (struct gdbarch_tdep): New member elf_abi.
8161 * rs6000-tdep.c: Include "elf/ppc64.h".
8162 (rs6000_gdbarch_init): Detect ELF ABI version.
8164 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8166 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8167 within a register pair holding a DFP 128-bit value on little-endian.
8168 (ppc64_sysv_abi_return_value_base): Likewise.
8169 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8170 (dfp_pseudo_register_write): Likewise.
8172 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8174 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8175 offset on little-endian when passing _Decimal32.
8176 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8178 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8180 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8181 of the overlapped FP register within the VSX register on little-
8183 (efpr_pseudo_register_write): Likewise.
8185 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8187 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8188 offset on little-endian when passing small structures.
8190 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8192 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8193 (struct ppc64_sysv_argpos): New data structure.
8194 (ppc64_sysv_abi_push_float): Remove.
8195 (ppc64_sysv_abi_push_val): New function.
8196 (ppc64_sysv_abi_push_integer): Likewise.
8197 (ppc64_sysv_abi_push_freg): Likewise.
8198 (ppc64_sysv_abi_push_vreg): Likewise.
8199 (ppc64_sysv_abi_push_param): Likewise.
8200 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8201 (ppc64_sysv_abi_return_value_base): New function.
8202 (ppc64_sysv_abi_return_value): Refactor to use it.
8204 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8206 * NEWS: Document new target powerpc64le-*-linux*.
8208 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8210 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8211 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8213 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8214 register set used in ELF core dumps. Add floating-point register set.
8216 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8218 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8219 dwarf2_to_gdb[] table using symbolic constants. Adjust
8220 penultimate entry from number representing the PC register
8221 to symbolic constant representing the MDR register. Add
8222 constant for the PC register to the end of the table.
8224 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8226 * bsd-kvm.c: Include <sys/param.h>
8228 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8230 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8232 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8234 * ada-lang.h (clear_ada_sym_cache): Delete.
8236 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8238 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8240 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8242 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8243 the sigreturn register save area only if the syscall is
8246 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8248 * valops.c (value_slice): Minor reformatting.
8250 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8252 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8254 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8256 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8258 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8259 (ada_ignore_descriptive_types_p): New static global.
8260 (find_parallel_type_by_descriptive_type): Return immediately
8261 if ada_ignore_descriptive_types_p is set.
8262 (_initialize_ada_language): Register new commands "maintenance
8263 set ada", "maintenance show ada", "maintenance set ada
8264 ignore-descriptive-types" and "maintenance show ada
8265 ignore-descriptive-types".
8266 * NEWS: Add entry for new "maint ada set/show
8267 ignore-descriptive-types" commands.
8269 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8271 * record-btrace.c (record_btrace_close): Call btrace_teardown
8274 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8276 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8279 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8281 * ada-typeprint (type_is_full_subrange_of_target_type):
8283 (print_range): Add parameter bounds_prefered_p. If not set,
8284 try printing range types using the name of their base type.
8285 (print_range_type): Add parameter bounds_prefered_p.
8286 Use it in call to print_range.
8287 (print_array_type, ada_print_type): Update calls to print_range
8288 and print_range_type.
8290 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8292 * ada-typeprint.c (print_array_type, print_choices, print_range)
8293 (print_range_bound, print_dynamic_range_bound, print_range_type):
8296 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8298 * ada-typeprint.c (print_range): Add missing empty line
8299 after local declaration.
8301 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8303 * ada-valprint.c (print_optional_low_bound): Get index_type's
8304 target type for as long as it is a TYPE_CODE_RANGE.
8306 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8308 * procfs.c (procfs_make_note_section): Remove assertion and
8311 2014-01-24 Yao Qi <yao@codesourcery.com>
8313 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8314 * corelow.c (get_core_siginfo): Likewise.
8316 2014-01-24 Yao Qi <yao@codesourcery.com>
8318 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8319 ULONGEST. Don't check 'len' is negative.
8320 (remote_write_bytes): Change type of 'len' to ULONGEST.
8322 2014-01-23 Tom Tromey <tromey@redhat.com>
8325 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8326 Handle exception from frame.block.
8327 (FrameVars.fetch_frame_locals): Likewise.
8329 2014-01-23 Tom Tromey <tromey@redhat.com>
8332 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8333 on a NULL pointer. Move "goto error" to correct place.
8335 2014-01-23 Tom Tromey <tromey@redhat.com>
8338 * python/py-framefilter.c (apply_frame_filter): Call
8339 ensure_python_env after computing gdbarch.
8341 2014-01-23 Yao Qi <yao@codesourcery.com>
8343 * target.c (raw_memory_xfer_partial): Change argument type
8344 from void * to gdb_byte *.
8345 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8347 2014-01-22 Doug Evans <dje@google.com>
8349 New gdbserver option --debug-format=timestamp.
8352 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8354 * syscalls/s390x-linux.xml: New file.
8355 * syscalls/s390-linux.xml: New file.
8356 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8357 (XML_SYSCALL_FILENAME_S390X): Likewise.
8358 (op_svc): New enum value for SVC opcode.
8359 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8360 (s390_linux_get_syscall_number): New function.
8361 (s390_gdbarch_init): Register '*get_syscall_number' and the
8362 syscall xml file name.
8363 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8364 "s390-linux.xml" and "s390x-linux.xml".
8365 * NEWS: Announce new feature.
8367 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8369 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8371 2014-01-22 Pedro Alves <palves@redhat.com>
8373 * xtensa-config.c: Include defs.h.
8375 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8377 * common/common-utils.h: Add "ARI:" comment beside __func__
8380 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8382 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8383 documentation a bit.
8385 2014-01-21 Roland McGrath <mcgrathr@google.com>
8387 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8388 * configure: Regenerate.
8389 * aclocal.m4: Regenerate.
8390 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8391 New substituted variables.
8392 (install-strip): New target.
8393 (INSTALL_SCRIPT): New substituted variable.
8394 (FLAGS_TO_PASS): Add it.
8395 (install-only): Use $(INSTALL_SCRIPT) rather than
8396 $(INSTALL_PROGRAM) for gcore.
8398 2014-01-20 Tom Tromey <tromey@redhat.com>
8400 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8403 2014-01-20 Tom Tromey <tromey@redhat.com>
8405 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8406 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8407 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8408 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8409 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8410 (struct cmd_list_element) <flags>: Remove.
8411 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8412 doc_allocated>: New fields.
8413 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8415 * maint.c (maintenance_do_deprecate): Update.
8416 * top.c (execute_command): Update.
8418 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8420 * xtensa-linux-nat.c: Include asm/ptrace.h.
8422 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8424 * Makefile.in (SFILES): Add d-support.c.
8425 (COMMON_OBS): Add d-support.o.
8426 * d-lang.h (d_parse_symbol): Add comment, now defined in
8428 * d-lang.c (parse_call_convention)
8429 (parse_attributes, parse_function_types)
8430 (parse_function_args, parse_type, parse_identifier)
8431 (call_convention_p, d_parse_symbol): Move functions to ...
8432 * d-support.c: ... New file.
8434 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8436 * d-lang.h (d_parse_symbol): Add declaration.
8437 * d-lang.c (extract_identifiers)
8438 (extract_type_info): Remove functions.
8439 (parse_call_convention, parse_attributes)
8440 (parse_function_types, parse_function_args)
8441 (parse_type, parse_identifier, call_convention_p)
8442 (d_parse_symbol): New functions.
8443 (d_demangle): Use d_parse_symbol to demangle D symbols.
8445 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8447 * d-lang.h (struct builtin_d_type): New data type.
8448 (builtin_d_type): Add declaration.
8449 * d-lang.c (d_language_arch_info, build_d_types)
8450 (builtin_d_type): New functions.
8451 (enum d_primitive_types): New data type.
8452 (d_language_defn): Change c_language_arch_info to
8453 d_language_arch_info.
8454 (d_type_data): New static variable.
8455 (_initialize_d_language): Initialize d_type_data.
8457 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8459 * d-lang.h (d_main_name): Add declaration.
8460 * d-lang.c (d_main_name): New function.
8461 * symtab.c (find_main_name): Add call to d_main_name.
8463 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8465 * d-lang.c (d_language_defn): Change macro_expansion_c to
8468 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8470 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8472 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8474 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8475 gdb_exception" declaration.
8476 * remote.c (getpkt_or_notif_sane): Likewise.
8478 2014-01-17 Doug Evans <dje@google.com>
8480 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8481 function, contents of dirnames_to_char_ptr_vec_append moved here.
8482 (delim_string_to_char_ptr_vec): New function.
8483 (dirnames_to_char_ptr_vec_append): Rewrite.
8484 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8486 2014-01-17 Doug Evans <dje@google.com>
8488 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8490 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8491 #include "common-utils.h".
8492 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8493 * common/vec.h (VEC_ASSERT_PASS): Update.
8494 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8495 (MACH_CHECK_ERROR): Update.
8497 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8499 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8501 * gdbarch.h: Regenerate.
8503 2014-01-16 Tom Tromey <tromey@redhat.com>
8505 * value.c (struct value) <regnum>: Move earlier.
8507 2014-01-16 Tom Tromey <tromey@redhat.com>
8509 * remote.c (extended_remote_create_inferior): Rename from
8510 extended_remote_create_inferior_1. Add "ops" argument. Remove
8513 2014-01-16 Pedro Alves <palves@redhat.com>
8515 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8516 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8519 2014-01-16 Doug Evans <dje@google.com>
8521 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8525 * btrace.h (btrace_thread_flag): New.
8526 (struct btrace_thread_info) <flags>: New.
8527 * record-btrace.c (record_btrace_resume_thread)
8528 (record_btrace_find_thread_to_move, btrace_step_no_history)
8529 (btrace_step_stopped, record_btrace_start_replaying)
8530 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8531 (record_btrace_find_resume_thread): New.
8532 (record_btrace_resume, record_btrace_wait): Extend.
8533 (record_btrace_can_execute_reverse): New.
8534 (record_btrace_open): Fail in non-stop mode.
8535 (record_btrace_set_replay): Split into this, ...
8536 (record_btrace_stop_replaying): ... this, ...
8537 (record_btrace_clear_histories): ... and this.
8538 (init_record_btrace_ops): Init to_can_execute_reverse.
8539 * NEWS: Announce it.
8541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8543 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8544 (forward_target_decr_pc_after_break)
8545 (target_decr_pc_after_break): New.
8546 * target.c (forward_target_decr_pc_after_break)
8547 (target_decr_pc_after_break): New.
8548 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8549 instead of gdbarch_decr_pc_after_break.
8550 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8551 instead of gdbarch_decr_pc_after_break.
8552 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8553 instead of gdbarch_decr_pc_after_break.
8554 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8555 instead of gdbarch_decr_pc_after_break.
8556 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8557 instead of gdbarch_decr_pc_after_break.
8558 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8559 instead of gdbarch_decr_pc_after_break.
8561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8563 * btrace.c: Include regcache.h.
8564 (btrace_add_pc): New.
8565 (btrace_enable): Call btrace_add_pc.
8566 (btrace_is_empty): New.
8567 * btrace.h (btrace_is_empty): New.
8568 * record-btrace.c (require_btrace, record_btrace_info): Call
8571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8573 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8574 Support delta reads.
8575 (linux_disable_btrace): Change return type.
8576 * common/linux-btrace.h (linux_read_btrace): Change parameters
8577 and return type to allow error reporting. Update users.
8578 (linux_disable_btrace): Change return type. Update users.
8579 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8581 (btrace_error): New.
8582 (btrace_block) <begin>: Comment on BEGIN == 0.
8583 * btrace.c (btrace_compute_ftrace): Start from the end of
8585 (btrace_stitch_trace, btrace_clear_history): New.
8586 (btrace_fetch): Read delta trace, return if replaying.
8587 (btrace_clear): Move clear history code to btrace_clear_history.
8588 (parse_xml_btrace): Throw an error if parsing failed.
8589 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8590 and return type to allow error reporting.
8591 (target_read_btrace): Change parameters and return type to allow
8593 * target.c (target_read_btrace): Update.
8594 * remote.c (remote_read_btrace): Support delta reads. Pass
8596 * NEWS: Announce it.
8598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8600 * record.h (record_btrace_frame_unwind)
8601 (record_btrace_tailcall_frame_unwind): New declarations.
8602 * dwarf2-frame: Include record.h
8603 (dwarf2_frame_cfa): Throw an error for btrace frames.
8604 * record-btrace.c: Include hashtab.h.
8605 (btrace_get_bfun_name): New.
8606 (btrace_call_history): Call btrace_get_bfun_name.
8607 (struct btrace_frame_cache): New.
8609 (bfcache_hash, bfcache_eq, bfcache_new): New.
8610 (btrace_get_frame_function): New.
8611 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8612 (record_btrace_frame_this_id): Compute own id.
8613 (record_btrace_frame_prev_register): Provide PC, throw_error
8614 for all other registers.
8615 (record_btrace_frame_sniffer): Detect btrace frames.
8616 (record_btrace_tailcall_frame_sniffer): New.
8617 (record_btrace_frame_dealloc_cache): New.
8618 (record_btrace_frame_unwind): Add new functions.
8619 (record_btrace_tailcall_frame_unwind): New.
8620 (_initialize_record_btrace): Allocate cache.
8621 * btrace.c (btrace_clear): Call reinit_frame_cache.
8622 * NEWS: Announce it.
8624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8626 * record-btrace.c (record_btrace_set_replay)
8627 (record_btrace_goto_begin, record_btrace_goto_end)
8628 (record_btrace_goto): New.
8629 (init_record_btrace_ops): Initialize them.
8630 * NEWS: Announce it.
8632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8634 * record-btrace.c (record_btrace_find_new_threads)
8635 (record_btrace_thread_alive): New.
8636 (init_record_btrace_ops): Initialize to_find_new_threads and
8639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8641 * record-btrace.c (record_btrace_resume): New.
8642 (record_btrace_wait): New.
8643 (init_record_btrace_ops): Initialize to_wait and to_resume.
8645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8647 * record-btrace.c (record_btrace_xfer_partial)
8648 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8649 (record_btrace_allow_memory_access): New.
8650 (init_record_btrace_ops): Initialize new methods.
8651 * target.c (raw_memory_xfer_partial): Bail out if target reports
8652 that this memory is not available.
8654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8656 * target.h (target_ops) <to_insert_breakpoint>
8657 <to_remove_breakpoint>: Add target_ops parameter.
8658 (forward_target_insert_breakpoint): New.
8659 (forward_target_remove_breakpoint): New.
8660 (memory_remove_breakpoint, memory_insert_breakpoint):
8661 Add target_ops parameter.
8662 * target.c (target_insert_breakpoint): Split into this and ...
8663 (forward_target_insert_breakpoint): ... this.
8664 (target_remove_breakpoint): Split into this and ...
8665 (forward_target_remove_breakpoint): ... this.
8666 (debug_to_insert_breakpoint): Add target_ops parameter.
8667 Call forward_target_insert_breakpoint.
8668 (debug_to_remove_breakpoint): Add target_ops parameter.
8669 Call forward_target_remove_breakpoint.
8670 (update_current_target): Do not inherit or default to_insert_breakpoint
8671 and to_remove_breakpoint.
8672 * corelow.c (ignore): Add target_ops parameter.
8673 * exec.c (ignore): Add target_ops parameter.
8674 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8675 Add target_ops parameter.
8676 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8677 Add target_ops parameter.
8678 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8679 Add target_ops parameter.
8680 * record-full.c (record_full_beneath_to_insert_breakpoint)
8681 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8682 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8683 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8684 (record_full_core_remove_breakpoint): Add target_ops parameter.
8686 (record_full_beneath_to_insert_breakpoint_ops)
8687 (record_full_beneath_to_remove_breakpoint_ops)
8688 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8689 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8690 tmp_to_remove_breakpoint_ops,
8691 record_full_beneath_to_insert_breakpoint_ops, and
8692 record_full_beneath_to_remove_breakpoint_ops.
8693 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8694 (m32r_remove_breakpoint): Add target_ops parameter.
8695 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8696 Add target_ops parameter.
8697 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8698 Add target_ops parameter.
8700 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8701 Markus Metzger <markus.t.metzger@intel.com>
8703 * record-btrace.c: Include frame-unwind.h.
8704 (record_btrace_frame_unwind_stop_reason)
8705 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8706 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8708 (init_record_btrace_ops): Install it.
8710 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8712 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8715 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8717 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8720 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8722 * frame-unwind.c: Include target.h.
8723 (frame_unwind_try_unwinder): New function with code from ...
8724 (frame_unwind_find_by_frame): ... here. New variable
8725 unwinder_from_target, call also target_get_unwinder)
8726 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8727 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8728 * target.h (struct target_ops): New fields to_get_unwinder and
8729 to_get_tailcall_unwinder.
8730 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8734 * record-btrace.c (record_btrace_fetch_registers)
8735 (record_btrace_store_registers)
8736 (record_btrace_to_prepare_to_store): New.
8737 (init_record_btrace_ops): Add the above.
8739 2014-01-16 Tom Tromey <tromey@redhat.com>
8741 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8742 * target.h (struct target_ops) <to_prepare_to_store>: Add
8744 (target_prepare_to_store): Add argument.
8745 * target.c (debug_to_prepare_to_store): Add argument.
8746 (update_current_target): Update.
8747 * remote.c (remote_prepare_to_store): Add 'self' argument.
8748 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8749 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8750 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8751 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8753 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8754 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8755 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8756 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8757 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8761 * btrace.h (replay) <replay>: New.
8762 (btrace_is_replaying): New.
8763 * btrace.c (btrace_clear): Free replay iterator.
8764 (btrace_is_replaying): New.
8765 * record-btrace.c (record_btrace_is_replaying): New.
8766 (record_btrace_info): Print insn number if replaying.
8767 (record_btrace_insn_history): Start at replay position.
8768 (record_btrace_call_history): Start at replay position.
8769 (init_record_btrace_ops): Init to_record_is_replaying.
8771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8773 * record-btrace.c (record_btrace_insn_history_range): Include
8775 (record_btrace_insn_history_from): Adjust range.
8776 (record_btrace_call_history_range): Include
8778 (record_btrace_call_history_from): Adjust range.
8779 * NEWS: Announce changes.
8781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8783 * record.h (enum record_print_flag)
8784 <record_print_indent_calls>: New.
8785 * record.c (get_call_history_modifiers): Recognize /c modifier.
8786 (_initialize_record): Document /c modifier.
8787 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8788 Reorder fields. Optionally indent the function name. Update
8790 * NEWS: Announce changes.
8792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8794 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8798 * btrace.c (ftrace_new_function): Start counting at one.
8799 * record-btrace.c (record_btrace_info): Adjust number of calls
8801 * NEWS: Announce it.
8803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8805 * record-btrace.c (btrace_call_history_insn_range): Print
8806 insn range as [begin, end].
8808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8810 * btrace.h (struct btrace_func_link): New.
8811 (enum btrace_function_flag): New.
8812 (struct btrace_inst): Rename to ...
8813 (struct btrace_insn): ...this. Update all users.
8814 (struct btrace_func) <ibegin, iend>: Remove.
8815 (struct btrace_func_link): New.
8816 (struct btrace_func): Rename to ...
8817 (struct btrace_function): ...this. Update all users.
8818 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8819 (number, level, flags>: New.
8820 (struct btrace_insn_iterator): Rename to ...
8821 (struct btrace_insn_history): ...this.
8823 (struct btrace_insn_iterator, btrace_call_iterator): New.
8824 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8825 (struct btrace_target_info) <begin, end, level>
8826 <insn_history, call_history>: New.
8827 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8828 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8829 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8830 (btrace_call_number, btrace_call_begin, btrace_call_end)
8831 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8832 (btrace_find_function_by_number, btrace_set_insn_history)
8833 (btrace_set_call_history): New.
8834 * btrace.c (btrace_init_insn_iterator)
8835 (btrace_init_func_iterator, compute_itrace): Remove.
8836 (ftrace_print_function_name, ftrace_print_filename)
8837 (ftrace_skip_file): Change
8839 (ftrace_init_func): Remove.
8840 (ftrace_debug): Use new btrace_function fields.
8841 (ftrace_function_switched): Also consider gaining and
8842 losing symbol information).
8843 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8844 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8845 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8847 (ftrace_new_function): Move. Remove debug print.
8848 (ftrace_update_lines, ftrace_update_insns): New.
8849 (ftrace_update_function): Check for call, ret, and jump.
8850 (compute_ftrace): Renamed to ...
8851 (btrace_compute_ftrace): ...this. Rewritten to compute call
8853 (btrace_fetch, btrace_clear): Updated.
8854 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8855 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8856 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8857 (btrace_call_number, btrace_call_begin, btrace_call_end)
8858 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8859 (btrace_find_function_by_number, btrace_set_insn_history)
8860 (btrace_set_call_history): New.
8861 * record-btrace.c (require_btrace): Use new btrace thread
8863 (record_btrace_info, btrace_insn_history)
8864 (record_btrace_insn_history, record_btrace_insn_history_range):
8865 Use new btrace thread info fields and new iterator.
8866 (btrace_func_history_src_line): Rename to ...
8867 (btrace_call_history_src_line): ...this. Use new btrace
8869 (btrace_func_history): Rename to ...
8870 (btrace_call_history): ...this. Use new btrace thread info
8871 fields and new iterator.
8872 (record_btrace_call_history, record_btrace_call_history_range):
8873 Use new btrace thread info fields and new iterator.
8875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8877 * frame.h (frame_id_build_unavailable_stack_special): New.
8878 * frame.c (frame_id_build_unavailable_stack_special): New.
8880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8882 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8883 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8884 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8886 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8887 (i386_insn_is_jump, i386_jmp_p): New.
8888 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8889 insn_is_jump to gdbarch.
8890 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8891 * gdbarch.h: Regenerated.
8892 * gdbarch.c: Regenerated.
8893 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8894 (default_insn_is_jump): New.
8895 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8896 (default_insn_is_jump): New.
8898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8900 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8902 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8903 (btrace_read_type) <btrace_read_new>: Change to ...
8904 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8908 * common/linux-btrace.c (linux_read_btrace): Free trace from
8911 2014-01-15 Doug Evans <dje@google.com>
8913 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8916 2014-01-15 Tom Tromey <tromey@redhat.com>
8918 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8919 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8920 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8921 (set_objfile_main_name): New function.
8922 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8923 language_of_main>: New fields.
8924 (set_objfile_main_name): Declare.
8925 * symtab.c (find_main_name): Loop over objfiles to find the main
8927 (set_main_name): Now static.
8928 (get_main_info): Add comment.
8929 * symtab.h (set_main_name): Don't declare.
8931 2014-01-15 Tom Tromey <tromey@redhat.com>
8933 * symtab.c (main_progspace_key): New global.
8934 (struct main_info): New.
8935 (name_of_main, language_of_main): Remove.
8936 (get_main_info, main_info_cleanup): New function.
8937 (set_main_name, main_name, main_language): Use get_main_info.
8938 (_initialize_symtab): Initialize main_progspace_key.
8940 2014-01-15 Tom Tromey <tromey@redhat.com>
8942 * dbxread.c (process_one_symbol): Update.
8943 * dwarf2read.c (read_partial_die): Update.
8944 * symfile.c (set_initial_language): Call main_language.
8945 * symtab.c (language_of_main): Now static.
8946 (set_main_name): Add 'lang' parameter.
8947 (find_main_name): Update.
8948 (main_language): New function.
8949 (symtab_observer_executable_changed): Update.
8950 * symtab.h (set_main_name): Update.
8951 (language_of_main): Remove.
8952 (main_language): Declare.
8954 2014-01-15 Tom Tromey <tromey@redhat.com>
8956 * symfile.c (init_entry_point_info): Use new "initialized" field.
8958 * objfiles.h (struct entry_point) <initialized>: New field.
8959 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8960 (struct objfile) <ei>: ...here. Remove.
8961 * objfiles.c (entry_point_address_query): Update.
8963 2014-01-15 Tom Tromey <tromey@redhat.com>
8965 * objfiles.c (entry_point_address_query): Relocate entry point
8967 (objfile_relocate1): Do not relocate entry point address.
8968 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8969 <the_bfd_section_index>: New field.
8970 * symfile.c (init_entry_point_info): Find the entry point's
8973 2014-01-15 Tom Tromey <tromey@redhat.com>
8975 * solib-frv.c (enable_break): Use entry_point_address_query.
8977 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8979 * NEWS: Add note on improved process record-replay on
8980 arm*-linux* targets.
8982 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8984 * arm-tdep.c (enum arm_record_result): New enum.
8985 (arm_record_unsupported_insn): New function.
8986 (arm_record_coproc_data_proc): Removed.
8987 (thumb2_record_ld_st_multiple): New function.
8988 (thumb2_record_ld_st_dual_ex_tbb): New function.
8989 (thumb2_record_data_proc_sreg_mimm): New function.
8990 (thumb2_record_ps_dest_generic): New function.
8991 (thumb2_record_branch_misc_cntrl): New function.
8992 (thumb2_record_str_single_data): New function.
8993 (thumb2_record_ld_mem_hints): New function.
8994 (thumb2_record_ld_word): New function.
8995 (thumb2_record_lmul_lmla_div): New function.
8996 (thumb2_record_decode_insn_handler): New function.
8997 (decode_insn): Add thumb32 instruction handlers.
8999 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9001 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9002 (struct arm_linux_record_tdep): Declare.
9003 (arm_canonicalize_syscall): New function.
9004 (arm_all_but_pc_registers_record): New function.
9005 (arm_linux_syscall_record): New function.
9006 (arm_linux_init_abi): Add syscall recording constructs.
9007 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9008 decoding. (arm_record_coproc_data_proc): Update arm syscall
9010 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9011 <arm_syscall_record>: New field.
9012 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9015 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9017 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9018 register for push instruction recording.
9020 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9022 * arm-tdep.c (thumb_record_misc): Update to correct logical
9023 error while recording ldm, ldmia and pop instructions.
9025 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9027 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9029 2014-01-15 Pedro Alves <palves@redhat.com>
9031 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9032 (go32_resume, go32_fetch_registers, store_register)
9033 (go32_store_registers, go32_prepare_to_store)
9034 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9035 (go32_create_inferior, go32_can_run, go32_terminal_init)
9036 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9039 2014-01-15 Tom Tromey <tromey@redhat.com>
9041 * target.h (async_callback_ftype): New typedef.
9042 (struct target_ops) <to_async>: Use it.
9044 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9046 * python/py-value.c (get_field_type): Remove unnecessary curly
9047 braces for single-statement if block.
9049 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9051 * python/py-type.c (convert_field): Add missing empty line
9054 2014-01-14 Doug Evans <dje@google.com>
9056 * symfile.h (expand_symtabs_matching): Renamed from
9057 expand_partial_symbol_names. Update prototype.
9058 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9059 * symfile.c (expand_symtabs_matching): Renamed from
9060 expand_partial_symbol_names. New args file_matcher, kind.
9061 Rename arg fun to symbol_matcher.
9062 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9063 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9064 ada_expand_partial_symbol_name.
9065 (ada_make_symbol_completion_list): Update to call
9066 expand_symtabs_matching.
9067 (ada_add_global_exceptions): Call expand_symtabs_matching.
9068 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9069 call map_symbol_filenames.
9070 * symtab.c (sources_info): Update to call map_symbol_filenames.
9071 (search_symbols): Call expand_symtabs_matching.
9072 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9073 (default_make_symbol_completion_list_break_on): Update to call
9074 expand_symtabs_matching.
9075 (make_source_files_completion_list): Update to call
9076 map_symbol_filenames.
9078 2014-01-14 Doug Evans <dje@google.com>
9080 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9081 (expand_symtabs_symbol_matcher_ftype): New typedef.
9082 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9083 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9084 * symfile.c (expand_partial_symbol_names): Update to use
9085 expand_symtabs_symbol_matcher_ftype.
9086 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9087 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9088 Arg name_matcher renamed to symbol_matcher.
9089 * psymtab.c (recursively_search_psymtabs): Update to use
9090 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9092 (expand_symtabs_matching_via_partial): Update to use
9093 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9094 Arg name_matcher renamed to symbol_matcher.
9096 2014-01-14 Doug Evans <dje@google.com>
9098 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9099 (map_partial_symbol_filenames): Ditto.
9100 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9101 (map_partial_symbol_filenames): Ditto.
9102 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9103 (map_partial_symbol_filenames): Ditto.
9104 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9105 (map_partial_symbol_filenames): Ditto.
9106 * symtab.c: Delete #include "psymtab.h".
9108 2014-01-14 Pedro Alves <palves@redhat.com>
9109 Tom Tromey <tromey@redhat.com>
9111 * infrun.c (use_displaced_stepping): Use find_record_target
9112 instead of RECORD_IS_USED.
9113 (adjust_pc_after_break): Use record_full_is_used instead of
9115 * record-btrace.c (record_btrace_open): Call record_preopen
9116 instead of checking RECORD_IS_USED.
9117 * record-full.c (record_full_shortname)
9118 (record_full_core_shortname): New globals.
9119 (record_full_is_used): New function.
9120 (find_full_open): Call record_preopen instead of checking
9122 (init_record_full_ops): Set the target's shortname to
9123 record_full_shortname.
9124 (init_record_full_core_ops): Set the target's shortname to
9125 record_full_core_shortname.
9126 * record-full.h (record_full_is_used): Declare.
9127 * record.c (find_record_target): Make extern.
9128 (record_preopen): New function.
9129 * record.h (RECORD_IS_USED): Delete macro.
9130 (find_record_target, record_preopen): Declare functions.
9132 2014-01-14 Yao Qi <yao@codesourcery.com>
9134 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9135 'len''s type to ULONGEST.
9136 (core_xfer_shared_libraries_aix): Likewise.
9137 * gdbarch.c, gdbarch.h: Regenerated.
9138 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9139 Change type of 'len' to ULONGEST.
9140 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9141 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9143 2014-01-14 Yao Qi <yao@codesourcery.com>
9145 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9146 type of 'len' to ULONGEST.
9147 (linux_xfer_osdata_processgroups): Likewise.
9148 (linux_xfer_osdata_threads): Likewise.
9149 (linux_xfer_osdata_fds): Likewise.
9150 (linux_xfer_osdata_isockets): Likewise.
9151 (linux_xfer_osdata_shm): Likewise.
9152 (linux_xfer_osdata_sem): Likewise.
9153 (linux_xfer_osdata_msg): Likewise.
9154 (linux_common_xfer_osdata): Likewise.
9155 (struct osdata_type) <getter>: Likewise.
9156 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9159 2014-01-14 Yao Qi <yao@codesourcery.com>
9161 * target.h (target_xfer_partial_ftype): Update.
9162 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9164 * aix-thread.c (aix_thread_xfer_partial): Change type of
9165 argument 'len' to ULONGEST.
9166 * auxv.c (procfs_xfer_auxv): Likewise.
9167 (ld_so_xfer_auxv): Likewise.
9168 (memory_xfer_auxv): Likewise.
9169 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9170 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9171 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9172 * corelow.c (core_xfer_partial): Likewise.
9173 * ctf.c (ctf_xfer_partial): Likewise.
9174 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9176 (darwin_read_dyld_info): Likewise.
9177 (darwin_xfer_partial): Likewise.
9178 * exec.c (section_table_xfer_memory_partial): Likewise.
9179 (exec_xfer_partial): Likewise.
9180 * exec.h (section_table_xfer_memory_partial): Update
9182 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9183 instead of plongest.
9184 (gnu_xfer_partial): Likewise.
9185 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9186 (ia64_hpux_xfer_solib_got): Likewise.
9187 (ia64_hpux_xfer_partial): Likewise.
9188 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9189 * inf-ptrace.c (inf_ptrace_xfer_partial):
9190 * inf-ttrace.c (inf_ttrace_xfer_partial):
9191 * linux-nat.c (linux_xfer_siginfo): Likewise.
9192 (linux_nat_xfer_partial): Likewise.
9193 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9194 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9195 * monitor.c (monitor_xfer_memory): Likewise.
9196 (monitor_xfer_partial): Likewise.
9197 * procfs.c (procfs_xfer_partial): Likewise.
9198 * record-full.c (record_full_xfer_partial): Likewise.
9199 (record_full_core_xfer_partial): Likewise.
9200 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9201 instead of plongest.
9202 (gdbsim_xfer_partial): Likewise.
9203 * remote.c (remote_xfer_partial): Likewise.
9204 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9205 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9207 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9208 (rs6000_xfer_shared_libraries): Likewise.
9209 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9210 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9211 (sparc_xfer_partial): Likewise.
9212 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9213 (spu_xfer_partial): Likewise.
9214 * spu-multiarch.c (spu_xfer_partial): Likewise.
9215 * target.c (target_read_live_memory): Likewise.
9216 (memory_xfer_live_readonly_partial): Likewise.
9217 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9218 (target_xfer_partial, default_xfer_partial): Likewise.
9219 (current_xfer_partial): Likewise.
9220 * tracepoint.c (tfile_xfer_partial): Likewise.
9221 * windows-nat.c (windows_xfer_memory): Likewise. Call
9222 pulongest instead of plongest.
9223 (windows_xfer_partial): Likewise.
9224 (windows_xfer_shared_libraries): Likewise.
9226 2014-01-14 Yao Qi <yao@codesourcery.com>
9228 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9229 target_xfer_partial_ftype.
9231 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9235 * valops.c (value_struct_elt_bitpos): New function
9236 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9237 object to 'None' if the field name is an empty string ("").
9238 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9239 attribute to look for a field when 'name' is 'None'.
9240 (get_field_type): New function
9242 2014-01-13 Doug Evans <dje@google.com>
9245 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9246 (try_open_dwop_file): Ditto.
9247 * gdb_bfd.c: #include "vec.h".
9248 (bfdp): New typedef.
9249 (struct gdb_bfd_data): New member included_bfds.
9250 (gdb_bfd_unref): Unref all included bfds.
9251 (gdb_bfd_record_inclusion): New function.
9252 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9254 2014-01-13 Tom Tromey <tromey@redhat.com>
9256 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9258 2014-01-13 Tom Tromey <tromey@redhat.com>
9260 * defs.h (use_windows): Remove.
9261 * gdb.c (main): Update.
9262 * main.c (captured_main, gdb_main): Update.
9263 * main.h (struct captured_main_args) <use_windows>: Remove.
9264 * top.c (use_windows): Remove.
9266 2014-01-13 Tom Tromey <tromey@redhat.com>
9268 * defs.h (deprecated_flush_hook): Remove.
9270 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9273 * linux-thread-db.c (try_thread_db_load): Add parameter
9274 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9275 (try_thread_db_load_from_pdir_1): Move it there from here.
9276 (try_thread_db_load_from_sdir): Update caller.
9277 (try_thread_db_load_from_dir): Move it there from here.
9279 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9281 * regformats/regdat.sh: Always rewrite the register file.
9283 2014-01-13 Pedro Alves <palves@redhat.com>
9285 * Makefile.in (CHECK_HEADERS): New variable.
9286 (check-headers:): New rule.
9288 2014-01-13 Tom Tromey <tromey@redhat.com>
9290 * cli/cli-setshow.c (do_set_command): Update.
9291 * defs.h (deprecated_set_hook): Remove.
9292 * top.c (deprecated_set_hook): Remove.
9294 2014-01-13 Pedro Alves <palves@redhat.com>
9296 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9297 the tracepoint if the PC is a pseudo-register.
9299 2014-01-13 Tom Tromey <tromey@redhat.com>
9301 * defs.h (XCALLOC): Remove.
9302 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9303 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9304 * dwarf2loc.c (allocate_piece_closure): Likewise.
9305 * elfread.c (elf_symfile_segments): Likewise.
9306 (elf_symfile_segments): Likewise.
9307 * gdbtypes.c (copy_type_recursive): Likewise.
9308 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9309 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9310 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9312 * mt-tdep.c (mt_gdbarch_init): Likewise.
9313 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9315 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9316 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9317 * registry.c (registry_alloc_data): Likewise.
9318 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9319 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9320 * serial.c (serial_fdopen_ops): Likewise.
9321 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9323 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9324 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9327 2014-01-13 Tom Tromey <tromey@redhat.com>
9329 * defs.h (XMALLOC): Remove.
9330 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9331 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9332 * cli-out.c (struct ui_out *): Likewise.
9333 * cli/cli-dump.c (add_dump_command): Likewise.
9334 (add_dump_command): Likewise.
9335 * complaints.c (get_complaints): Likewise.
9336 (find_complaint): Likewise.
9337 * dwarf2-frame.c (execute_cfa_program): Likewise.
9338 * dwarf2read.c (abbrev_table_read_table): Likewise.
9339 * gdbarch.sh: Likewise.
9340 * gdbarch.c: Rebuild.
9341 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9342 * interps.c (interp_new): Likewise.
9343 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9344 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9345 * mi/mi-console.c (mi_console_file_new): Likewise.
9346 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9347 * mi/mi-out.c (mi_out_new): Likewise.
9348 * mi/mi-parse.c (mi_parse): Likewise.
9349 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9350 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9351 * observer.c (xalloc_observer_list_node): Likewise.
9352 * regcache.c (regcache_xmalloc_1): Likewise.
9353 * reggroups.c (reggroup_new): Likewise.
9354 (_initialize_reggroup): Likewise.
9355 * registry.c (register_data_with_cleanup): Likewise.
9356 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9357 * ser-base.c (serial_ttystate): Likewise.
9358 * ser-mingw.c (make_pipe_state): Likewise.
9359 * ser-pipe.c (pipe_open): Likewise.
9360 * serial.c (serial_open): Likewise.
9361 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9362 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9363 (tui_alloc_win_info): Likewise.
9364 (tui_add_content_elements): Likewise.
9365 * tui/tui-file.c (tui_file_new): Likewise.
9366 * tui/tui-out.c (tui_out_new): Likewise.
9367 * ui-file.c (mem_file_new): Likewise.
9368 * ui-out.c (push_level): Likewise.
9369 (make_cleanup_ui_out_end): Likewise.
9370 (append_header_to_list): Likewise.
9371 (ui_out_new): Likewise.
9372 * user-regs.c (user_reg_add_builtin): Likewise.
9374 2014-01-13 Tom Tromey <tromey@redhat.com>
9376 * defs.h (XZALLOC): Remove.
9377 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9378 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9379 (get_ada_tasks_inferior_data): Likewise.
9380 * auto-load.c (get_auto_load_pspace_data): Likewise.
9381 * auxv.c (get_auxv_inferior_data): Likewise.
9382 * bfd-target.c (target_bfd_reopen): Likewise.
9383 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9384 (deprecated_insert_raw_breakpoint): Likewise.
9385 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9386 * corelow.c (core_open): Likewise.
9387 * darwin-nat.c (darwin_check_new_threads): Likewise.
9388 (darwin_attach_pid): Likewise.
9389 * dummy-frame.c (dummy_frame_push): Likewise.
9390 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9391 * dwarf2loc.c (allocate_piece_closure): Likewise.
9392 * elfread.c (elf_symfile_segments): Likewise.
9393 * eval.c (ptrmath_type_p): Likewise.
9394 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9395 * gdbtypes.c (alloc_type_arch): Likewise.
9396 (alloc_type_instance): Likewise.
9397 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9398 * inf-child.c (inf_child_can_use_agent): Likewise.
9399 * inflow.c (get_inflow_inferior_data): Likewise.
9400 * infrun.c (save_infcall_suspend_state): Likewise.
9401 * jit.c (jit_reader_load): Likewise.
9402 (get_jit_objfile_data): Likewise.
9403 (get_jit_program_space_data): Likewise.
9404 (jit_object_open_impl): Likewise.
9405 (jit_symtab_open_impl): Likewise.
9406 (jit_block_open_impl): Likewise.
9407 (jit_frame_sniffer): Likewise.
9408 * linux-fork.c (add_fork): Likewise.
9409 * maint.c (make_command_stats_cleanup): Likewise.
9410 * objfiles.c (get_objfile_pspace_data): Likewise.
9411 * opencl-lang.c (struct lval_closure): Likewise.
9412 * osdata.c (osdata_start_osdata): Likewise.
9413 * progspace.c (new_address_space): Likewise.
9414 (add_program_space): Likewise.
9415 * remote-sim.c (get_sim_inferior_data): Likewise.
9416 * sh-tdep.c (sh_gdbarch_init): Likewise.
9417 * skip.c (Ignore): Likewise.
9418 (skip_delete_command): Likewise.
9419 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9420 (library_list_start_library): Likewise.
9421 (solib_aix_current_sos): Likewise.
9422 * solib-darwin.c (get_darwin_info): Likewise.
9423 (darwin_current_sos): Likewise.
9424 * solib-dsbt.c (get_dsbt_info): Likewise.
9425 * solib-ia64-hpux.c (new_so_list): Likewise.
9426 (ia64_hpux_get_solib_linkage_addr): Likewise.
9427 * solib-spu.c (append_ocl_sos): Likewise.
9428 (spu_current_sos): Likewise.
9429 * solib-svr4.c (get_svr4_info): Likewise.
9430 (svr4_keep_data_in_core): Likewise.
9431 (library_list_start_library): Likewise.
9432 (svr4_default_sos): Likewise.
9433 (svr4_read_so_list): Likewise.
9434 * solib-target.c (library_list_start_library): Likewise.
9435 (solib_target_current_sos): Likewise.
9436 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9437 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9438 * symfile.c (default_symfile_segments): Likewise.
9439 * target-descriptions.c (tdesc_data_init): Likewise.
9440 (tdesc_create_reg): Likewise.
9441 (struct tdesc_type *): Likewise.
9442 (tdesc_create_vector): Likewise.
9443 (tdesc_set_struct_size): Likewise.
9444 (struct tdesc_type *): Likewise.
9445 (tdesc_free_feature): Likewise.
9446 (tdesc_create_feature): Likewise.
9447 * windows-nat.c (windows_add_thread): Likewise.
9448 (windows_make_so): Likewise.
9449 * xml-support.c (gdb_xml_body_text): Likewise.
9450 (gdb_xml_create_parser_and_cleanup): Likewise.
9451 (xml_process_xincludes): Likewise.
9452 * xml-syscall.c (allocate_syscalls_info): Likewise.
9453 (syscall_create_syscall_desc): Likewise.
9455 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9457 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9458 function, with code from i386_stap_parse_special_token.
9459 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9460 (i386_stap_parse_special_token): Move code to the two functions
9463 2014-01-09 Pedro Alves <palves@redhat.com>
9464 Hui Zhu <hui@codesourcery.com>
9467 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9468 bp_err_string. Don't mark the location shlib_disabled if the
9469 error thrown wasn't a generic or memory error. Catch errors
9470 thrown while inserting breakpoints in overlayed code. Output
9471 error message of software breakpoints.
9472 * remote.c (remote_insert_breakpoint): If this breakpoint has
9473 target-side commands but this stub doesn't support Z0 packets,
9474 throw NOT_SUPPORTED_ERROR error.
9475 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9476 * target.h (target_insert_breakpoint): Extend comment.
9477 (target_insert_hw_breakpoint): Add comment.
9479 2014-01-08 Pedro Alves <palves@redhat.com>
9481 * remote.c (remote_add_thread): Add threads silently if starting
9483 (remote_notice_new_inferior): If in all-stop, and starting up,
9484 don't call notice_new_inferior.
9485 (get_current_thread): New function, factored out from ...
9486 (add_current_inferior_and_thread): ... this. Adjust.
9487 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9488 found any thread, then select the remote's current thread as GDB's
9491 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9493 * NEWS: Create a new section for the next release branch.
9494 Rename the section of the current branch, now that it has
9497 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9499 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9500 * version.in: Bump version to 7.7.50.DATE-cvs.
9502 2014-01-08 Yao Qi <yao@codesourcery.com>
9504 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9505 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9506 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9508 2014-01-08 Yao Qi <yao@codesourcery.com>
9510 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9511 return value of bfd_get_filename to symbol_file_add_from_bfd.
9513 2014-01-08 Pierre Muller <muller@sourceware.org>
9516 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9517 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9518 to prim_record_mininal_symbol_and_info.
9519 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9520 in call to prim_record_minimal_symbol_and_info.
9521 (read_pe_exported_syms): Set index field of section_data.
9523 2014-01-07 Andrew Pinski <apinski@cavium.com>
9525 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9526 * features/aarch64.c: Regenerate.
9528 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9530 * target.c (return_null): Define.
9531 (update_current_target): Use it instead of return_zero for
9532 functions that return a pointer.
9534 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9536 * source.c (add_path): Fix check for duplicated paths in the previously
9539 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9541 * ada-lang.c: Remove duplicated include statements.
9542 * alphabsd-nat.c: Ditto.
9543 * amd64-darwin-tdep.c: Ditto.
9544 * amd64fbsd-nat.c: Ditto.
9545 * auto-load.c: Ditto.
9547 * breakpoint.c: Ditto.
9549 * fork-child.c: Ditto.
9550 * gdb_usleep.c: Ditto.
9551 * i386-darwin-tdep.c: Ditto.
9552 * i386fbsd-nat.c: Ditto.
9554 * inferior.c: Ditto.
9556 * linux-nat.c: Ditto.
9557 * linux-tdep.c: Ditto.
9558 * m68kbsd-nat.c: Ditto.
9559 * m68klinux-nat.c: Ditto.
9560 * microblaze-tdep.c: Ditto.
9561 * mips-linux-tdep.c: Ditto.
9562 * mn10300-tdep.c: Ditto.
9563 * nto-tdep.c: Ditto.
9564 * opencl-lang.c: Ditto.
9566 * printcmd.c: Ditto.
9567 * regcache.c: Ditto.
9568 * remote-m32r-sdi.c: Ditto.
9572 * tilegx-linux-nat.c: Ditto.
9573 * tilegx-tdep.c: Ditto.
9574 * tracepoint.c: Ditto.
9576 * vaxbsd-nat.c: Ditto.
9577 * windows-nat.c: Ditto.
9578 * xtensa-tdep.c: Ditto.
9580 2014-01-07 Yao Qi <yao@codesourcery.com>
9582 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9584 2014-01-07 Yao Qi <yao@codesourcery.com>
9585 Joel Brobecker <brobecker@adacore.com>
9587 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9588 (pdc_write_regs): Likewise.
9589 (fetch_regs_kernel_thread): Likewise.
9590 (store_regs_kernel_thread): Likewise.
9592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9594 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9595 tagged type objects to their actual type.
9597 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9599 * ada-valprint.c (print_field_values): Add "language" parameter.
9600 Update calls to print_field_values and print_variant_part.
9601 Pass new parameter "language" in call to val_print instead
9602 of "current_language". Replace call to ada_val_print by call
9604 (print_variant_part): Add "language" parameter.
9605 (ada_val_print_struct_union): Update call to print_field_values.
9607 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9609 * ada-valprint.c (ui_memcpy): Delete.
9610 (ada_print_floating): Update documentation. Add empty line
9611 between between function documentation and implementation.
9612 Delete variable "buffer". Use ui_file_xstrdup in place of
9613 ui_file_put. Minor adjustments following this change.
9615 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9617 * ada-valprint.c (ada_val_print_string): New function,
9618 extracted from ada_val_print_array.
9619 (ada_val_print_array): Replace extracted code by call
9620 to ada_val_print_string followed by a return. Move
9621 "else" branch to the function's top block.
9623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9625 * ada-valprint.c (ada_val_print_array): Move implementation
9626 down. Rename parameter "offset" and "val" into "offset_aligned"
9627 and "original_value" respectively. Add parameter "offset".
9629 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9631 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9632 re-organizing the code. Change the "???" message printed
9633 when target type is a TYPE_CODE_UNDEF into
9634 "<ref to undefined type>".
9636 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9638 * ada-valprint.c (print_record): Delete, implementation inlined...
9639 (ada_val_print_struct_union): ... here. Remove call to
9640 ada_check_typedef in inlined implementation.
9642 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9644 * ada-valprint.c (ada_val_print_gnat_array): New function,
9645 extracted from ada_val_print_1;
9646 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9647 (ada_val_print_flt, ada_val_print_struct_union)
9648 (ada_val_print_ref): Likewise.
9649 (ada_val_print_1): Delete variables i and elttype.
9650 Replace extracted-out code by call to corresponding
9653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9655 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9659 * ada-valprint.c (ada_val_print_1): Replace calls to
9660 ada_val_print_1 by calls to val_print.
9662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9664 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9665 Update calls to self accordingly. Replace calls to c_val_print
9666 by calls to val_print.
9668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9670 * ada-valprint.c (print_record): Delete declaration.
9671 (adjust_type_signedness, ada_val_print_1): Likewise.
9672 (ada_val_print): Move function implementation down.
9673 (print_variant_part, print_field_values, print_record):
9674 Move function implementation up.
9676 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9678 * python/py-type.c (typy_get_name): New function.
9679 (type_object_getset): Add entry for attribute "name".
9680 * NEWS: Add entry mentioning this new attribute.
9682 2014-01-07 Yao Qi <yao@codesourcery.com>
9684 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9687 2014-01-07 Yao Qi <yao@codesourcery.com>
9689 * gnu-nat.c (info_port_rights): Add qualifier const to
9692 2014-01-07 Yao Qi <yao@codesourcery.com>
9694 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9696 2014-01-07 Yao Qi <yao@codesourcery.com>
9698 * gnu-nat.c (make_inf) Update declaration.
9699 (make_inf): Make it static.
9700 (inf_set_traced): Likewise.
9701 (inf_port_to_thread, inf_task_died_status): Likewise.
9703 2014-01-07 Yao Qi <yao@codesourcery.com>
9705 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9707 2014-01-07 Yao Qi <yao@codesourcery.com>
9709 * gnu-nat.c (_initialize_gnu_nat): Declare.
9711 2014-01-07 Yao Qi <yao@codesourcery.com>
9713 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9715 (struct gdbarch_info) <byte_order>: Change type to
9717 <byte_order_for_code>: Likewise.
9718 * gdbarch.c, gdbarch.h: Regenerated.
9720 2014-01-06 Sasha Smundak <asmundak@google.com>
9722 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9724 2014-01-06 Tom Tromey <tromey@redhat.com>
9726 * doublest.c (convert_doublest_to_floatformat): Use const, not
9728 * somread.c (som_symtab_read): Likewise.
9730 2014-01-07 Hui Zhu <hui@codesourcery.com>
9732 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9733 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9734 (gdb_bfd_fopen): Ditto.
9735 (gdb_bfd_openr): Ditto.
9736 (gdb_bfd_openw): Ditto.
9737 (gdb_bfd_openr_iovec): Ditto.
9738 (gdb_bfd_fdopenr): Ditto.
9739 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9740 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9742 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9744 * symfile-mem.c (symbol_file_add_from_memory): Removed
9745 gdb_bfd_stash_filename.
9747 2014-01-03 Doug Evans <dje@google.com>
9749 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9752 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9754 Update year range in copyright notice of all files.
9756 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9758 * top.c (print_gdb_version): Set copyright year to 2014.
9760 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9762 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9764 For older changes see ChangeLog-2013.
9770 version-control: never