1 2014-06-20 Gary Benson <gbenson@redhat.com>
3 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4 * common/glibc_thread_db.h: Likewise.
5 * common/i386-cpuid.h: Likewise.
6 * common/i386-gcc-cpuid.h: Likewise.
7 * common/linux-btrace.h: Likewise.
8 * common/linux-osdata.h: Likewise.
9 * common/linux-procfs.h: Likewise.
10 * common/linux-ptrace.h: Likewise.
11 * common/mips-linux-watch.h: Likewise.
12 * common/linux-btrace.c: Moved to nat.
13 * common/linux-osdata.c: Likewise.
14 * common/linux-procfs.c: Likewise.
15 * common/linux-ptrace.c: Likewise.
16 * common/mips-linux-watch.c: Likewise.
17 * nat/gdb_thread_db.h: Moved from common.
18 * nat/glibc_thread_db.h: Likewise.
19 * nat/i386-cpuid.h: Likewise.
20 * nat/i386-gcc-cpuid.h: Likewise.
21 * nat/linux-btrace.c: Likewise.
22 * nat/linux-btrace.h: Likewise.
23 * nat/linux-osdata.c: Likewise.
24 * nat/linux-osdata.h: Likewise.
25 * nat/linux-procfs.c: Likewise.
26 * nat/linux-procfs.h: Likewise.
27 * nat/linux-ptrace.c: Likewise.
28 * nat/linux-ptrace.h: Likewise.
29 * nat/mips-linux-watch.c: Likewise.
30 * nat/mips-linux-watch.h: Likewise.
31 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
32 (object file files): Reordered.
33 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
36 2014-06-20 Gary Benson <gbenson@redhat.com>
38 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
39 (i386_dr_low_type): Moved to nat/i386-dregs.h.
40 (i386_dr_low): Likewise.
41 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
42 (i386_dr_low_set_addr): Likewise.
43 (i386_dr_low_get_addr): Likewise.
44 (i386_dr_low_can_set_control): Likewise.
45 (i386_dr_low_set_control): Likewise.
46 (i386_dr_low_get_control): Likewise.
47 (i386_dr_low_get_status): Likewise.
48 (i386_get_debug_register_length): Likewise.
49 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
50 (i386_dr_low): Likewise.
51 * nat/i386-dregs.c (i386-low.h): Remove include.
52 (i386-nat.h): Likewise.
53 (nat/i386-dregs.h): New include.
54 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
55 (i386_dr_low_set_addr): Likewise.
56 (i386_dr_low_get_addr): Likewise.
57 (i386_dr_low_can_set_control): Likewise.
58 (i386_dr_low_set_control): Likewise.
59 (i386_dr_low_get_control): Likewise.
60 (i386_dr_low_get_status): Likewise.
61 (i386_get_debug_register_length): Likewise.
62 (debug_hw_points): Likewise.
64 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
66 * Makefile.in (SFILES): Add d-exp.y.
67 (YYFILES): Add d-exp.c.
69 (local-maintainer-clean): Delete d-exp.c.
71 * d-lang.h (d_parse): New declaration.
72 (d_error): New declaration.
73 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
74 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
76 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
78 2014-06-19 Yao Qi <yao@codesourcery.com>
80 * gdbthread.h (any_running): Remove the declaration.
81 * thread.c (any_running): Remove.
83 2014-06-19 Yao Qi <yao@codesourcery.com>
85 * gdbthread.h (struct thread_info) <state>: Change its type to
86 'enum thread_state'. Update comments.
88 2014-06-19 Pedro Alves <palves@redhat.com>
90 * gdbthread.h (ALL_THREADS): Delete.
91 (ALL_NON_EXITED_THREADS): New macro.
92 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
93 instead of ALL_THREADS.
94 * infrun.c (find_thread_needs_step_over)
95 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
96 instead of ALL_THREADS.
97 * record-btrace.c (record_btrace_open)
98 (record_btrace_stop_recording, record_btrace_close)
99 (record_btrace_is_replaying, record_btrace_resume)
100 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
101 * remote.c (append_pending_thread_resumptions): Likewise.
102 * thread.c (thread_apply_all_command): Likewise.
104 2014-06-19 Gary Benson <gbenson@redhat.com>
106 * i386-nat.c (i386_stopped_by_watchpoint):
107 Use i386_dr_stopped_by_watchpoint.
108 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
109 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
111 2014-06-19 Gary Benson <gbenson@redhat.com>
113 * nat/i386-dregs.c: New file.
114 * Makefile.in (i386-dregs.o): New rule.
115 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
116 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
117 * config/i386/darwin.mh (NATDEPFILES): Likewise.
118 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
119 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
120 * config/i386/go32.mh (NATDEPFILES): Likewise.
121 * config/i386/linux.mh (NATDEPFILES): Likewise.
122 * config/i386/linux64.mh (NATDEPFILES): Likewise.
123 * config/i386/mingw.mh (NATDEPFILES): Likewise.
124 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
125 * i386-nat.h (debug_hw_points): New declaration.
126 * i386-nat.c (breakpoint.h): Remove include.
127 (command.h): Likewise.
128 (target.h): Likewise.
129 (gdb_assert.h): Likewise.
130 (debug_hw_points): Made nonstatic.
131 (debug_printf): Now in i386-dregs.c.
132 (TARGET_HAS_DR_LEN_8): Likewise.
133 (DR_CONTROL_SHIFT): Likewise.
134 (DR_CONTROL_SIZE): Likewise.
135 (DR_RW_EXECUTE): Likewise.
136 (DR_RW_WRITE): Likewise.
137 (DR_RW_READ): Likewise.
138 (DR_RW_IORW): Likewise.
139 (DR_LEN_1): Likewise.
140 (DR_LEN_2): Likewise.
141 (DR_LEN_4): Likewise.
142 (DR_LEN_8): Likewise.
143 (DR_LOCAL_ENABLE_SHIFT): Likewise.
144 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
145 (DR_ENABLE_SIZE): Likewise.
146 (DR_LOCAL_SLOWDOWN): Likewise.
147 (DR_GLOBAL_SLOWDOWN): Likewise.
148 (DR_CONTROL_RESERVED): Likewise.
149 (I386_DR_CONTROL_MASK): Likewise.
150 (I386_DR_VACANT): Likewise.
151 (I386_DR_LOCAL_ENABLE): Likewise.
152 (I386_DR_GLOBAL_ENABLE): Likewise.
153 (I386_DR_DISABLE): Likewise.
154 (I386_DR_SET_RW_LEN): Likewise.
155 (I386_DR_GET_RW_LEN): Likewise.
156 (I386_DR_WATCH_HIT): Likewise.
157 (i386_wp_op_t): Likewise.
158 (i386_show_dr): Likewise.
159 (i386_length_and_rw_bits): Likewise.
160 (i386_insert_aligned_watchpoint): Likewise.
161 (i386_remove_aligned_watchpoint): Likewise.
162 (i386_handle_nonaligned_watchpoint): Likewise.
163 (i386_update_inferior_debug_regs): Likewise.
164 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
165 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
166 (i386_region_ok_for_watchpoint):
167 Use i386_dr_region_ok_for_watchpoint.
168 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
170 2014-06-19 Gary Benson <gbenson@redhat.com>
172 * i386-nat.c (i386_insert_hw_breakpoint): Use
173 i386_insert_watchpoint.
174 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
176 2014-06-19 Gary Benson <gbenson@redhat.com>
178 * i386-nat.c (i386_dr_show): Renamed to
179 i386_show_dr and made static. All uses updated.
180 (i386_dr_length_and_rw_bits): Renamed to
181 i386_length_and_rw_bits and made static.
183 (i386_dr_insert_aligned_watchpoint): Renamed to
184 i386_insert_aligned_watchpoint and made static.
186 (i386_dr_remove_aligned_watchpoint): Renamed to
187 i386_remove_aligned_watchpoint and made static.
189 (i386_dr_update_inferior_debug_regs): Renamed to
190 i386_update_inferior_debug_regs and made static.
192 * nat/i386-dregs.h (i386_dr_show): Removed.
193 (i386_dr_length_and_rw_bits): Likewise.
194 (i386_dr_insert_aligned_watchpoint): Likewise.
195 (i386_dr_remove_aligned_watchpoint): Likewise.
196 (i386_dr_update_inferior_debug_regs): Likewise.
198 2014-06-19 Gary Benson <gbenson@redhat.com>
200 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
201 * configure: Regenerate.
202 * config.in: Likewise.
203 * main.c (signal.h): New include.
204 (setup_alternate_signal_stack): New function.
205 (captured_main): Call the above.
206 * cp-support.c (signal.h): New include.
207 (catch_demangler_crashes): New flag.
208 (SIGJMP_BUF): New define.
209 (SIGSETJMP): Likewise.
210 (SIGLONGJMP): Likewise.
211 (gdb_demangle_jmp_buf): New static global.
212 (gdb_demangle_attempt_core_dump): Likewise.
213 (gdb_demangle_signal_handler): New function.
214 (gdb_demangle): If catch_demangler_crashes is set, install the
215 above signal handler before calling bfd_demangle, and restore
216 the original signal handler afterwards. Display the offending
217 symbol and call demangler_warning the first time a segmentation
219 (_initialize_cp_support): New maint set/show command.
221 2014-06-19 Gary Benson <gbenson@redhat.com>
223 * utils.h (resource_limit_kind): New enum.
224 (can_dump_core): New declaration.
225 (warn_cant_dump_core): Likewise.
226 (dump_core): Likewise.
227 * utils.c (dump_core): Made nonstatic. Added new
228 parameter "limit_kind".
229 (can_dump_core): Made nonstatic. Moved printing code to...
230 (warn_cant_dump_core): New function.
231 (can_dump_core_warn): Likewise.
232 (internal_vproblem): Replace calls to can_dump_core with
233 calls to can_dump_core_warn. Supply new argument to each.
235 2014-06-19 Gary Benson <gbenson@redhat.com>
237 * utils.h (demangler_vwarning): New declaration.
238 (demangler_warning): Likewise.
239 * utils.c (struct internal_problem)
240 <user_settable_should_quit>: New field.
241 <user_settable_should_dump_core>: Likewise
242 (internal_error_problem): Add values for above new fields.
243 (internal_warning_problem): Likewise.
244 (demangler_warning_problem): New static global.
245 (demangler_vwarning): New function.
246 (demangler_warning): Likewise.
247 (add_internal_problem_command): Selectively add commands.
248 (_initialize_utils): New internal problem command.
249 * maint.c (maintenance_demangler_warning): New function.
250 (_initialize_maint_cmds): New command.
252 2014-06-18 Tom Tromey <tromey@redhat.com>
254 * f-valprint.c (info_common_command_for_block): Update.
255 * symtab.h (struct general_symbol_info) <common_block>: Now
258 2014-06-18 Tom Tromey <tromey@redhat.com>
260 * symtab.h (struct symtab) <blockvector>: Now const.
261 * ada-lang.c (ada_add_global_exceptions): Update.
262 * buildsym.c (augment_type_symtab): Update.
263 * dwarf2read.c (dw2_lookup_symbol): Update.
264 * jit.c (finalize_symtab): Update.
265 * jv-lang.c (add_class_symtab_symbol): Update.
266 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
268 * objfiles.c (objfile_relocate1): Update.
269 * psymtab.c (lookup_symbol_aux_psymtabs)
270 (maintenance_check_psymtabs): Update.
271 * python/py-symtab.c (stpy_global_block, stpy_static_block):
273 * spu-tdep.c (spu_catch_start): Update.
274 * symmisc.c (dump_symtab_1): Update.
275 * symtab.c (lookup_global_symbol_from_objfile)
276 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
277 (basic_lookup_transparent_type_quick)
278 (basic_lookup_transparent_type, find_pc_sect_symtab)
279 (find_pc_sect_line, search_symbols): Update.
280 * block.c (find_block_in_blockvector): Make "bl" const.
281 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
283 (blockvector_contains_pc): Make "bv" const.
284 (block_for_pc_sect): Update.
285 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
286 (blockvector_contains_pc): Update.
287 * breakpoint.c (resolve_sal_pc): Update.
288 * inline-frame.c (block_starting_point_at): Update.
290 2014-06-18 Tom Tromey <tromey@redhat.com>
292 * completer.c (complete_line): Make "line_buffer" const.
293 * completer.h (complete_line): Update.
295 2014-06-18 Tom Tromey <tromey@redhat.com>
297 * symtab.c (add_macro_name): Remove unneeded cast.
299 2014-06-18 Tom Tromey <tromey@redhat.com>
301 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
302 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
304 2014-06-18 Tom Tromey <tromey@redhat.com>
306 * probe.c (info_probes_for_ops): Make "arg" const.
307 * probe.h (info_probes_for_ops): Update.
309 2014-06-18 Tom Tromey <tromey@redhat.com>
311 * varobj.c (varobj_create): Update.
312 * valops.c (value_of_this): Update.
313 * tracepoint.c (add_local_symbols, scope_info): Update.
314 * symtab.h (struct general_symbol_info) <block>: Now const.
315 * symtab.c (skip_prologue_sal)
316 (default_make_symbol_completion_list_break_on)
317 (skip_prologue_using_sal): Update.
318 * stack.h (iterate_over_block_locals)
319 (iterate_over_block_local_vars): Update.
320 * stack.c (print_frame_args): Update.
321 (iterate_over_block_locals, iterate_over_block_local_vars): Make
323 (get_selected_block): Make return type const.
324 * python/py-frame.c (frapy_block): Update.
325 * python/py-block.c (gdbpy_block_for_pc): Update.
326 * p-exp.y (%union) <bval>: Now const.
327 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
328 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
329 * m2-exp.y (%union) <bval>: Now const.
330 * linespec.c (get_current_search_block): Make return type const.
331 (create_sals_line_offset, find_label_symbols): Update.
332 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
334 (block_starting_point_at): Make "block" const.
335 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
336 (check_exception_resume): Update.
337 * guile/scm-frame.c (gdbscm_frame_block): Update.
338 * guile/scm-block.c (gdbscm_lookup_block): Update.
339 * frame.h (get_frame_block): Update.
340 (get_selected_block): Make return type const.
341 * frame.c (frame_id_inner): Update.
342 * f-valprint.c (info_common_command_for_block)
343 (info_common_command): Update.
344 * dwarf2loc.c (dwarf2_find_location_expression)
345 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
346 (locexpr_describe_location_piece): Update.
347 * c-exp.y (%union) <bval>: Now const.
348 * breakpoint.c (resolve_sal_pc): Update.
349 * blockframe.c (get_frame_block):Make return type const.
350 (get_pc_function_start, get_frame_function, find_pc_sect_function)
351 (block_innermost_frame): Update.
352 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
353 (block_for_pc, block_for_pc_sect): Update.
354 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
356 (block_for_pc_sect, block_for_pc): Make return type const.
357 * ax-gdb.c (gen_expr): Update.
358 * alpha-mdebug-tdep.c (find_proc_desc): Update.
359 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
360 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
361 (ada_read_var_value): Update.
362 * ada-exp.y (struct name_info) <block>: Now const.
364 (block_lookup): Constify.
366 2014-06-18 Gary Benson <gbenson@redhat.com>
368 * nat/i386-dregs.h: New file.
369 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
370 * i386-nat.h (i386-dregs.h): New include.
371 (DR_FIRSTADDR): Now in i386-dregs.h.
372 (DR_LASTADDR): Likewise.
373 (DR_NADDR): Likewise.
374 (DR_STATUS): Likewise.
375 (DR_CONTROL): Likewise.
376 (i386_debug_reg_state): Likewise.
377 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
379 2014-06-18 Don Breazeal <donb@codesourcery.com>
381 * breakpoint.c (set_longjmp_breakpoint): Call
382 momentary_breakpoint_from_master with additional argument.
383 (set_longjmp_breakpoint_for_call_dummy): Call
384 momentary_breakpoint_from_master with additional argument.
385 (set_std_terminate_breakpoint): Call
386 momentary_breakpoint_from_master with additional argument.
387 (momentary_breakpoint_from_master): Add argument to function
388 definition and use it to initialize structure member flag.
389 (clone_momentary_breakpoint): Call
390 momentary_breakpoint_from_master with additional argument.
391 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
392 member flags set in momentary_breakpoint_from_master.
394 2014-06-18 Gary Benson <gbenson@redhat.com>
396 * i386-nat.c (i386_show_dr): Renamed to
397 i386_dr_show and made nonstatic. All uses updated.
398 (i386_length_and_rw_bits): Renamed to
399 i386_dr_length_and_rw_bits and made nonstatic.
401 (i386_insert_aligned_watchpoint): Renamed to
402 i386_dr_insert_aligned_watchpoint and made nonstatic.
404 (i386_remove_aligned_watchpoint): Renamed to
405 i386_dr_remove_aligned_watchpoint and made nonstatic.
407 (i386_update_inferior_debug_regs): Renamed to
408 i386_dr_update_inferior_debug_regs and made nonstatic.
411 2014-06-18 Gary Benson <gbenson@redhat.com>
413 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
414 (i386_dr_low_can_set_control): Likewise.
415 (i386_dr_low_set_addr): Likewise.
416 (i386_dr_low_set_control): Likewise.
417 (i386_dr_low_get_addr): Likewise.
418 (i386_dr_low_get_status): Likewise.
419 (i386_dr_low_get_control): Likewise.
420 (i386_insert_aligned_watchpoint): Use new macros.
421 (i386_update_inferior_debug_regs): Likewise.
422 (i386_stopped_data_address): Likewise.
424 2014-06-18 Gary Benson <gbenson@redhat.com>
426 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
427 New parameter. All uses updated.
429 2014-06-18 Gary Benson <gbenson@redhat.com>
431 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
434 2014-06-18 Gary Benson <gbenson@redhat.com>
436 * i386-nat.c (debug_printf): New macro.
437 (i386_get_debug_register_length): Likewise.
438 (TARGET_HAS_DR_LEN_8): Use above macro.
439 (i386_show_dr): Use debug_printf instead of puts_unfiltered
440 and printf_unfiltered. Use phex to format values.
442 2014-06-18 Gary Benson <gbenson@redhat.com>
444 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
447 2014-06-18 Gary Benson <gbenson@redhat.com>
449 * i386-nat.c: Comment changes.
451 2014-06-18 Gary Benson <gbenson@redhat.com>
453 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
455 2014-06-18 Gary Benson <gbenson@redhat.com>
457 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
458 (i386_insert_aligned_watchpoint): Likewise.
459 (i386_remove_aligned_watchpoint): Likewise.
460 (i386_handle_nonaligned_watchpoint): Likewise.
462 2014-06-18 Gary Benson <gbenson@redhat.com>
464 * i386-nat.c: Whitespace changes.
466 2014-06-17 Samuel Bronson <naesten@gmail.com>
468 * MAINTAINERS: Update Roland McGrath's email address.
469 Thanks to Sergio Durigan Junior for pointing out that he left
470 Red Hat a while ago, and giving me a current address.
472 2014-06-17 Tom Tromey <tromey@redhat.com>
474 * utils.h (savestring): Remove declaration.
476 2014-06-17 Tom Tromey <tromey@redhat.com>
478 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
480 2014-06-16 Keith Seitz <keiths@redhat.com>
483 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
484 to update the varobj if inferior_ptid is null_ptid.
486 2014-06-16 Tom Tromey <tromey@redhat.com>
488 * target.h (struct target_ops) <to_info_proc>: Make parameter
490 (target_info_proc): Update.
491 * target.c (target_info_proc): Make "args" const.
492 * procfs.c (procfs_info_proc): Update.
493 * linux-tdep.c (linux_info_proc): Update.
494 (linux_core_info_proc_mappings): Make "args" const.
495 (linux_core_info_proc): Update.
496 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
497 * gdbarch.c: Rebuild.
498 * gdbarch.h: Rebuild.
499 * corelow.c (core_info_proc): Update.
501 2014-06-16 Tom Tromey <tromey@redhat.com>
503 * target.h (struct target_ops) <to_disconnect>: Make parameter
505 (target_disconnect): Update.
506 * target.c (target_disconnect): Make "args" const.
507 * target-delegates.c: Rebuild.
508 * remote.c (remote_disconnect): Update.
509 * record.h (record_disconnect): Update.
510 * record.c (record_disconnect): Update.
511 * inf-child.c (inf_child_disconnect): Update.
513 2014-06-16 Tom Tromey <tromey@redhat.com>
515 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
516 * target.c (debug_to_rcmd, default_rcmd): Update.
517 * target-delegates.c: Rebuild.
518 * remote.c (remote_rcmd): Update.
519 * monitor.c (monitor_rcmd): Update.
521 2014-06-16 Pedro Alves <palves@redhat.com>
523 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
524 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
525 have OBJF_SHARED set.
526 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
527 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
528 instead of OBJF_USERLOADED.
529 * objfiles.h (OBJF_SHARED): Update comment.
530 (userloaded_objfile_contains_address_p): Rename to ...
531 (shared_objfile_contains_address_p): ... this, and update
533 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
535 (remove_symbol_file_command): Skip objfiles that don't have
538 2014-06-16 Tom Tromey <tromey@redhat.com>
540 * minsyms.h (prim_record_minimal_symbol)
541 (prim_record_minimal_symbol_and_info): Update comments.
543 2014-06-14 Eli Zaretskii <eliz@gnu.org>
545 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
546 or --without-guile, according to how GDB was built.
548 2014-06-13 Tom Tromey <tromey@redhat.com>
550 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
552 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
554 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
556 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
557 help_list.Pass all_commands, not -1, to help_list.
558 * cli/cli-dump.c (dump_command, append_command)
559 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
560 (binary_dump_command, binary_append_command): Pass all_commands,
561 not -1, to help_list.
562 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
564 * valprint.c (set_print, set_print_raw): Pass all_commands, not
566 * typeprint.c (set_print_type): Pass all_commands, not -1, to
568 * top.c (set_history): Pass all_commands, not -1, to help_list.
569 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
570 all_commands, not -1, to help_list.
571 * symfile.c (overlay_command): Pass all_commands, not -1, to
573 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
575 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
577 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
579 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
580 not -1, to help_list.
581 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
582 not -1, to help_list.
583 * maint.c (maintenance_command, maintenance_info_command)
584 (maintenance_print_command, maintenance_set_cmd): Pass
585 all_commands, not -1, to help_list.
586 * macrocmd.c (macro_command): Pass all_commands, not -1, to
588 * language.c (set_check): Pass all_commands, not -1, to help_list.
589 * infcmd.c (unset_command): Pass all_commands, not -1, to
591 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
593 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
595 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
597 * breakpoint.c (save_command): Pass all_commands, not -1, to
599 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
600 all_commands, not -1, to help_list.
602 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
604 * regcache.c (struct register_to_invalidate): New structure.
605 (do_register_invalidate, make_cleanup_regcache_invalidate): New
607 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
609 2014-06-12 Yao Qi <yao@codesourcery.com>
611 * varobj.c (varobj_get_num_children): Call
613 (varobj_list_children): Likewise.
614 (varobj_update): Likewise. Update comments.
616 2014-06-12 Yao Qi <yao@codesourcery.com>
618 * varobj.c (varobj_pretty_printed_p): Rename to ...
619 (varobj_is_dynamic_p): ... this. New function.
620 * varobj.h (varobj_pretty_printed_p): Remove declaration.
621 (varobj_is_dynamic_p): Declare.
622 * mi/mi-cmd-var.c (print_varobj): All callers updated.
623 (mi_print_value_p, varobj_update_one): Likewise.
625 2014-06-12 Pedro Alves <pedro@codesourcery.com>
626 Yao Qi <yao@codesourcery.com>
628 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
629 (varobj_get_iterator): Wrap up code for pretty-printer by
630 "#if HAVE_PYTHON" and "#endif".
631 (update_dynamic_varobj_children): Likewise.
633 2014-06-12 Pedro Alves <pedro@codesourcery.com>
634 Yao Qi <yao@codesourcery.com>
636 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
637 gdb_python_initialized is false. Move some code from varobj.c.
638 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
639 * varobj.c: Move "varobj-iter.h" inclusion earlier.
640 (struct varobj_item): Moved to varobj-iter.h".
641 (varobj_clear_saved_item): New function.
642 (update_dynamic_varobj_children): Move python-related code to
644 (free_variable): Call varobj_clear_saved_item and
647 2014-06-12 Pedro Alves <pedro@codesourcery.com>
648 Yao Qi <yao@codesourcery.com>
650 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
651 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
652 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
653 (py-varobj.o): New rule.
654 * python/py-varobj.c: New file.
655 * python/python-internal.h (py_varobj_get_iterator): Declare.
656 * varobj-iter.h: New file.
657 * varobj.c: Include "varobj-iter.h"
658 (struct varobj) <child_iter>: Change its type from "PyObject *"
659 to "struct varobj_iter *".
660 <saved_item>: Likewise.
661 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
662 [HAVE_PYTHON] (varobj_get_iterator): New function.
663 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
664 python-specific code to python/py-varobj.c.
665 (install_visualizer): Call varobj_iter_delete instead of
667 * varobj.h (varobj_ensure_python_env): Declare.
669 2014-06-12 Yao Qi <yao@codesourcery.com>
671 * varobj.c (struct varobj_item): New structure.
672 (create_child_with_value): Update declaration.
673 (varobj_add_child): Replace arguments 'name' and 'value' with
674 'item'. All callers updated.
675 (install_dynamic_child): Likewise.
676 (update_dynamic_varobj_children): Likewise.
677 (varobj_add_child): Likewise.
678 (create_child_with_value): Likewise.
680 2014-06-11 Joel Brobecker <brobecker@adacore.com>
682 * NEWS: Create a new section for the next release branch.
683 Rename the section of the current branch, now that it has
686 2014-06-11 Joel Brobecker <brobecker@adacore.com>
688 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
689 * version.in: Bump version to 7.8.50.DATE-cvs.
691 2014-06-11 Pedro Alves <palves@redhat.com>
694 * ser-mingw.c (net_windows_socket_check_pending): New function.
695 (net_windows_select_thread): Ignore spurious wakeups. Use
696 net_windows_socket_check_pending.
697 (net_windows_wait_handle): Check for pending events with
698 ioctlsocket, through net_windows_socket_check_pending, instead of
699 checking the socket's event.
701 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
703 * python/python-internal.h (gdb_PyObject_GetAttrString)
704 (gdb_PyObject_HasAttrString): New inline function definitions.
705 * py-value.c (get_field_flag): Remove the now unnecessary cast to
706 char * of the second argument to PyObject_GetAttrString.
708 2014-06-10 Joel Brobecker <brobecker@adacore.com>
710 * serial.c (serial_write): Fix index of character to be printed
711 in call to serial_logchar when serial debug traces are enabled.
713 2014-06-10 Joel Brobecker <brobecker@adacore.com>
715 * gdbtypes (resolve_dynamic_range): Add function description.
717 2014-06-09 Pedro Alves <palves@redhat.com>
719 * linux-nat.c (linux_child_follow_fork): Initialize status with
720 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
721 inner block. Only pass the signal to PTRACE_DETACH if in pass
724 2014-06-09 Gary Benson <gbenson@redhat.com>
726 * common/signals.c (gdb_signal_from_host): Reorder to separate
727 the always-available ANSI-standard signals from the signals that
729 (do_gdb_signal_to_host): Likewise.
730 * proc-events.c (signal_table): Likewise.
732 2014-06-08 Hui Zhu <hui@codesourcery.com>
734 * common/linux-ptrace.c (linux_disable_event_reporting): New
736 * common/linux-ptrace.h (linux_disable_event_reporting): New
738 * linux-nat.c (linux_child_follow_fork): Do a single step before
741 2014-06-07 Keith Seitz <keiths@redhat.com>
745 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
746 from symbol_matches_domain in symtab.c. All local callers
747 of symbol_matches_domain updated.
748 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
749 search STRUCT_DOMAIN.
750 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
751 independently. standard_lookup will do that automatically.
752 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
753 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
754 (cp_lookup_symbol_in_namespace): Likewise.
755 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
756 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
757 may return a STRUCT_DOMAIN match.
758 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
759 * cp-support.c: Include language.h.
760 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
762 * psymtab.c (match_partial_symbol): Compare the requested
763 domain with the symbol's domain directly.
764 (lookup_partial_symbol): Likewise.
765 * symtab.c (lookup_symbol_in_language): Explain when/why
766 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
767 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
768 appropriate languages.
769 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
770 and moved to ada-lang.c
771 (lookup_block_symbol): Explain that this function only returns
772 symbol matching the requested DOMAIN.
773 Compare the requested domain with the symbol's domain directly.
774 (iterate_over_symbols): Compare the requested domain with the
775 symbol's domain directly.
776 * symtab.h (symbol_matches_domain): Remove.
778 2014-06-06 Doug Evans <xdje42@gmail.com>
780 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
781 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
782 (gdbscm_guile_version_is_at_least): Declare.
783 (gdbscm_scm_string_to_int): Declare.
784 * guile/guile.c (gdbscm_guile_major_version): New global.
785 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
786 (guile_datadir): New static global.
787 (gdbscm_guile_data_directory): New function.
788 (initialize_scheme_side): Update.
789 (misc_guile_functions): Add guile-data-directory.
790 (initialize_gdb_module): Fetch guile version number.
791 * guile/lib/gdb.scm: Remove call to add-to-load-path.
792 * guile/lib/gdb/init.scm (%initialize!): Ditto.
793 * guile/lib/gdb/boot.scm: Use guile-data-directory.
794 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
796 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
797 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
798 * guile/scm-value.c (gdbscm_value_to_string): Only call
799 scm_port_conversion_strategy if Guile version >= 2.0.6.
801 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
803 * main.c (print_gdb_help): Add -q and --silent.
805 2014-06-06 Gary Benson <gbenson@redhat.com>
807 * common/signals.c: Remove preprocessor conditionals for
808 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
810 * proc-events.c: Likewise.
812 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
814 * symfile.c (symfile_free_objfile): Remove restriction to
816 * symfile-mem.c (symbol_file_add_from_memory): Call
817 add_target_sections_of_objfile.
819 2014-06-05 Ludovic Courtès <ludo@gnu.org>
821 * guile/scm-value.c (gdbscm_history_append_x): Use
822 'vlscm_get_value_smob_arg_unsafe' instead of
823 'vlscm_scm_to_value'.
825 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
828 * utils.c (printchar): Don't escape at all if quoter is NUL.
829 Update function documentation to clarify effect of parameter
831 * remote.c (escape_buffer): Pass '\\' as the quoter to
833 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
835 (mi_solib_unloaded): Same.
837 2014-06-05 Joel Brobecker <brobecker@adacore.com>
839 * development.sh: Delete.
840 * Makefile.in (config.status): Adjust dependency on development.sh.
841 * configure.ac: Adjust development.sh source call.
842 * configure: Regenerate.
844 2014-06-04 Doug Evans <xdje42@gmail.com>
846 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
847 is_scheme_bkpt, spec.
848 (bpscm_make_breakpoint_smob): Initialize new members.
849 (gdbscm_create_breakpoint_x): Split into two ...
850 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
851 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
852 (scheme_function breakpoint_functions): Update.
853 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
854 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
855 register-breakpoint!.
857 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
860 * mem-break.c (z_type_supported): Return zero if
861 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
863 2014-06-04 Tom Tromey <tromey@redhat.com>
865 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
866 value_from_contents_and_address_unresolved.
867 (ada_template_to_fixed_record_type_1): Likewise.
868 (ada_which_variant_applies): Likewise.
869 * value.h (value_from_contents_and_address_unresolved): Declare.
870 * value.c (value_from_contents_and_address_unresolved): New
872 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
873 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
874 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
876 2014-06-04 Tom Tromey <tromey@redhat.com>
878 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
880 2014-06-04 Tom Tromey <tromey@redhat.com>
882 * procfs.c (procfs_attach): Make "args" const.
883 * windows-nat.c (windows_attach): Make "args" const.
884 * nto-procfs.c (procfs_attach): Make "args" const.
885 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
886 * go32-nat.c (go32_attach): Make "args" const.
887 * gnu-nat.c (gnu_attach): Make "args" const.
888 * darwin-nat.c (darwin_attach): Make "args" const.
889 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
890 * linux-nat.c (linux_nat_attach): Make "args" const.
891 * remote.c (extended_remote_attach_1, extended_remote_attach):
893 * target.h (struct target_ops) <to_attach>: Make "args" const.
894 (find_default_attach): Likewise.
895 * utils.c (parse_pid_to_attach): Make "args" const.
896 * utils.h (parse_pid_to_attach): Update.
898 2014-06-04 Tom Tromey <tromey@redhat.com>
900 * target-delegates.c: Rebuild.
901 * target.c (default_thread_address_space): New function.
902 (target_thread_address_space): Simplify.
903 * target.h (struct target_ops) <to_thread_address_space>: Add
906 2014-06-04 Doug Evans <xdje42@gmail.com>
908 * guile/scm-type.c (type_smob): Remove duplicate typedef.
910 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
912 * record-btrace.c: Include event-loop.h and inf-loop.h.
913 (record_btrace_resume_exec_dir)
914 (record_btrace_async_inferior_event_handler)
915 (record_btrace_handle_async_inferior_event): New.
916 (record_btrace_open): Create async event handler.
917 (record_btrace_close): Delete async event handler.
918 (record_btrace_resume): Set record_btrace_resume_exec_dir,
919 Mark async event handler.
920 (record_btrace_execution_direction): New.
921 (init_record_btrace_ops): Initialize to_execution_direction.
923 2014-06-03 Doug Evans <xdje42@gmail.com>
925 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
926 (gdbscm_make_parameter): Ditto.
928 2014-06-03 Doug Evans <dje@google.com>
930 * exec.c (exec_close_1): Call clear_section_table instead of
931 resize_section_table.
932 (clear_section_table): New function.
933 (resize_section_table): Make static. Rename arg num_added to
935 * exec.h (clear_section_table): Declare.
936 (resize_section_table): Delete.
937 * progspace.c (release_program_space): Call clear_section_table
938 instead of resize_section_table.
940 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
942 * NEWS (Python Scripting): Add entry about the new xmethods
945 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
947 * python/py-xmethods.c: New file.
948 * python/py-objfile.c (objfile_object): New field 'xmethods'.
949 (objfpy_dealloc): XDECREF on the new xmethods field.
950 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
952 (objfpy_get_xmethods): New function.
953 (objfile_getset): New entry 'xmethods'.
954 * python/py-progspace.c (pspace_object): New field 'xmethods'.
955 (pspy_dealloc): XDECREF on the new xmethods field.
956 (pspy_new, pspace_to_pspace_object): Initialize xmethods
958 (pspy_get_xmethods): New function.
959 (pspace_getset): New entry 'xmethods'.
960 * python/python-internal.h: Add declarations for new functions.
961 * python/python.c (_initialize_python): Invoke
962 gdbpy_initialize_xmethods.
963 * python/lib/gdb/__init__.py (xmethods): New
965 * python/lib/gdb/xmethod.py: New file.
966 * python/lib/gdb/command/xmethods.py: New file.
968 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
970 * eval.c (evaluate_subexp_standard): Call the xmethod if the
971 best match method returned by find_overload_match is an xmethod.
972 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
973 the best matching operator returned by find_overload_match is an
975 * valops.c: #include "extension.h".
976 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
977 Return void. The list of matching source methods is returned in
978 "fn_list" and a vector of matching debug method workers is
979 returned in "xm_worker_vec". Update all callers.
980 (value_find_oload_method_list): Likewise.
981 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
982 non-NULL, then the index of the best matching method in this
983 vector is returned. Update all callers.
984 (find_overload_match): Include xmethods while performing overload
987 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
989 * defs.h (enum lval_type): New enumerator "lval_xcallable".
990 * extension-priv.h (struct extension_language_ops): Add the
992 * extension.c (new_xmethod_worker, clone_xmethod_worker,
993 get_matching_xmethod_workers, get_xmethod_argtypes,
994 invoke_xmethod, free_xmethod_worker,
995 free_xmethod_worker_vec): New functions.
996 * extension.h: #include "common/vec.h".
997 New function declarations.
998 (struct xmethod_worker): New struct.
999 (VEC (xmethod_worker_ptr)): New vector type.
1000 (xmethod_worker_ptr): New typedef.
1001 (xmethod_worker_vec): Likewise.
1002 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1004 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1005 (struct builtin_type): New field "xmethod".
1006 * valarith.c (value_ptradd): Assert that the value argument is not
1008 * valops.c (value_must_coerce_to_target): Return 0 for
1009 lval_xcallable values.
1010 * value.c (struct value): New field XM_WORKER in the field
1012 (value_address, value_raw_address): Return 0 for lval_xcallable
1014 (set_value_address): Assert that the value is not an
1016 (value_free): Free the associated xmethod worker when freeing
1017 lval_xcallable values.
1018 (set_value_component_location): Assert that the WHOLE value is not
1020 (value_of_xmethod, call_xmethod): New functions.
1021 * value.h: Declare "struct xmethod_worker".
1022 Declare new functions value_of_xmethod, call_xmethod.
1024 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1025 Pedro Alves <palves@redhat.com>
1027 PR breakpoints/17000
1028 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1029 New function, extracted from software_breakpoint_inserted_here_p.
1030 (software_breakpoint_inserted_here_p): Replace factored out code
1031 by call to find_non_raw_software_breakpoint_inserted_here.
1032 (bp_target_info_copy_insertion_state): New function.
1033 (bkpt_insert_location): Handle the case of a single-step
1034 breakpoint already inserted at the same address.
1035 (bkpt_remove_location): Handle the case of a single-step
1036 breakpoint still inserted at the same address.
1037 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1038 breakpoint already inserted at the same address.
1039 (deprecated_remove_raw_breakpoint): Handle the case of a
1040 non-raw breakpoint still inserted at the same address.
1041 (find_single_step_breakpoint): New function, extracted from
1042 single_step_breakpoint_inserted_here_p.
1043 (find_single_step_breakpoint): New function,
1044 factored out from single_step_breakpoint_inserted_here_p.
1045 (single_step_breakpoint_inserted_here_p): Reimplement.
1047 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1049 Pushed by Joel Brobecker <brobecker@adacore.com>
1050 * source.c (show_substitute_path_command): Fix display of matching
1053 2014-06-03 Gary Benson <gbenson@redhat.com>
1055 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1057 2014-06-02 Doug Evans <xdje42@gmail.com>
1059 Add parameter support for Guile.
1060 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1061 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1062 (scm-param.o): New rule.
1063 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1064 (gdbscm_misc_error): Declare.
1065 (gdbscm_canonicalize_command_name): Declare.
1066 (gdbscm_scm_to_host_string): Declare.
1067 (gdbscm_scm_from_host_string): Declare.
1068 (gdbscm_initialize_parameters): Declare.
1069 * guile/guile.c (initialize_gdb_module): Call
1070 gdbscm_initialize_parameters.
1071 * guile/lib/gdb.scm: Export parameter symbols.
1072 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1073 cmdscm_canonicalize_name and made public. All callers updated.
1074 * guile/scm-exception.c (gdbscm_misc_error): New function.
1075 * guile/scm-param.c: New file.
1076 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1077 (gdbscm_scm_to_host_string): New function.
1078 (gdbscm_scm_from_host_string): New function.
1079 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1081 2014-06-02 Doug Evans <xdje42@gmail.com>
1083 Add command support for Guile.
1084 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1085 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1086 (scm-cmd.o): New rule.
1087 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1088 (gdbscm_user_error_p): Declare.
1089 (gdbscm_parse_command_name): Declare.
1090 (gdbscm_valid_command_class_p): Declare.
1091 (gdbscm_initialize_commands): Declare.
1092 * guile/guile.c (initialize_gdb_module): Call
1093 gdbscm_initialize_commands.
1094 * guile/lib/gdb.scm: Export command symbols.
1095 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1096 (throw-user-error): New function.
1097 * guile/scm-cmd.c: New file.
1098 * guile/scm-exception.c (user_error_symbol): New static global.
1099 (gdbscm_user_error_p): New function.
1100 (gdbscm_initialize_exceptions): Set user_error_symbol.
1101 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1103 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1105 * top.c (command_loop): Handle comments here...
1106 (command_line_input): ... not here.
1108 2014-06-02 Doug Evans <xdje42@gmail.com>
1110 Add progspace support for Guile.
1111 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1112 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1113 (scm-progspace.o): New rule.
1114 * guile/guile-internal.h (pspace_smob): New typedef.
1115 (psscm_pspace_smob_pretty_printers): Declare.
1116 (psscm_pspace_smob_from_pspace): Declare.
1117 (psscm_scm_from_pspace): Declare.
1118 * guile/guile.c (initialize_gdb_module): Call
1119 gdbscm_initialize_pspaces.
1120 * guile/lib/gdb.scm: Export progspace symbols.
1121 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1123 (append-pretty-printer!): Ditto.
1124 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1126 * guile/scm-progspace.c: New file.
1128 2014-06-03 Alan Modra <amodra@gmail.com>
1130 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1131 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1133 2014-06-02 Doug Evans <dje@google.com>
1135 Add support for skeletonless type units.
1136 * dwarf2read.c (struct dwarf2_per_objfile): New member
1137 n_allocated_type_units.
1138 (struct dwarf2_per_objfile) <tu_stats>: New member
1139 nr_all_type_units_reallocs.
1140 (create_signatured_type_table_from_index): Initialize
1141 n_allocated_type_units
1142 (create_all_type_units): Ditto.
1143 (add_type_unit): Move up in file. New arg slot.
1144 All callers updated. Increase space for all_type_units more
1146 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1147 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1148 (lookup_dwp_signatured_type): Ditto.
1149 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1150 All callers updated.
1151 (build_type_psymtabs_1): Leave type_unit_groups as
1152 NULL if no TUs present.
1153 (print_tu_stats): New function.
1154 (process_skeletonless_type_unit): New function.
1155 (process_dwo_file_for_skeletonless_type_units): New
1157 (process_skeletonless_type_units): New function.
1158 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1159 Call print tu_stats if debugging enabled.
1161 2014-06-02 Pedro Alves <palves@redhat.com>
1163 * breakpoint.c (build_target_command_list): Don't build a command
1164 list if we have any duplicate location that isn't a dprintf.
1166 2014-06-02 Pedro Alves <palves@redhat.com>
1168 * breakpoint.c (dprintf_breakpoint_hit): New function.
1169 (initialize_breakpoint_ops): Install it as dprintf's
1170 breakpoint_hit method.
1172 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1174 * source.c (substitute_path_rule_matches): Simplify using
1175 filename_ncmp instead of FILENAME_CMP.
1177 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1179 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1181 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1183 * configure.ac: When Guile is available, check for the
1184 availability of 'scm_new_smob'.
1185 * configure, config.h.in: Regenerate.
1186 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1189 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1191 * frame.c (struct frame_info): Add stop_string field.
1192 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1193 (get_prev_frame_always): Old content moved into
1194 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1195 TRY_CATCH, handle MEMORY_ERROR exceptions.
1196 (frame_stop_reason_string): New function definition.
1197 * frame.h (unwind_stop_reason_to_string): Extend comment to
1198 mention frame_stop_reason_string.
1199 (frame_stop_reason_string): New function declaration.
1200 * stack.c (frame_info): Switch to frame_stop_reason_string.
1201 (backtrace_command_1): Switch to frame_stop_reason_string.
1202 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1203 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1204 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1206 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1208 * frame.c (frame_stop_reason_string): Rename to ...
1209 (unwind_stop_reason_to_string): this.
1210 * frame.h (frame_stop_reason_string): Rename to ...
1211 (unwind_stop_reason_to_string): this.
1212 * stack.c (frame_info): Update call to frame_stop_reason_string.
1213 (backtrace_command_1): Likewise.
1214 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1215 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1217 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1219 * frame.c (remove_prev_frame): New function.
1220 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1223 2014-05-29 Pedro Alves <palves@redhat.com>
1225 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1226 and make it const. When a single-step decays to a continue,
1227 clear 'step', not 'hw_step'. Pass whether the caller wanted
1228 to step to user_visible_resume_ptid, not what we ask the
1231 2014-05-29 Pedro Alves <palves@redhat.com>
1233 * infrun.c (process_event_stop_test, handle_step_into_function)
1234 (handle_step_into_function_backward): Adjust.
1235 Don't set the even thread's stop_step and call stop_waiting before
1236 calling end_stepping_range. Instead do that ...
1237 (end_stepping_range): ... here. Take an ecs pointer parameter.
1239 2014-05-29 Pedro Alves <palves@redhat.com>
1241 * infrun.c (stop_stepping): Rename to ...
1242 (stop_waiting): ... this.
1243 (proceed): Update comment.
1244 (process_event_stop_test, handle_inferior_event)
1245 (handle_signal_stop, handle_step_into_function)
1246 (handle_step_into_function_backward): Update.
1248 2014-05-29 Pedro Alves <palves@redhat.com>
1250 * infcall.c (run_inferior_call): Don't check whether the current
1251 thread is running after the proceed call.
1253 2014-05-29 Pedro Alves <palves@redhat.com>
1254 Tom Tromey <tromey@redhat.com>
1256 * NEWS: Mention "maint set target-async", "set mi-async", and that
1257 background execution commands are now always available.
1258 * target.h (target_async_permitted): Update comment.
1259 * target.c (target_async_permitted, target_async_permitted_1):
1261 (set_target_async_command): Rename to ...
1262 (maint_set_target_async_command): ... this.
1263 (show_target_async_command): Rename to ...
1264 (maint_show_target_async_command): ... this.
1265 (_initialize_target): Adjust.
1266 * infcmd.c (prepare_execution_command): Make extern.
1267 * inferior.h (prepare_execution_command): Declare.
1268 * infrun.c (set_observer_mode): Leave target async alone.
1269 * mi/mi-interp.c (mi_interpreter_init): Install
1270 mi_on_sync_execution_done as sync_execution_done observer.
1271 (mi_on_sync_execution_done): New function.
1272 (mi_execute_command_input_handler): Don't print the prompt if we
1273 just started a synchronous command with an async target.
1274 (mi_on_resume): Check sync_execution before printing prompt.
1275 * mi/mi-main.h (mi_async_p): Declare.
1276 * mi/mi-main.c: Include gdbcmd.h.
1277 (mi_async_p): New function.
1278 (mi_async, mi_async_1): New globals.
1279 (set_mi_async_command, show_mi_async_command, mi_async): New
1281 (exec_continue): Call prepare_execution_command.
1282 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1283 (mi_execute_async_cli_command): Use mi_async_p.
1284 (_initialize_mi_main): Install "set mi-async". Make
1285 "target-async" a deprecated alias.
1287 2014-05-29 Pedro Alves <palves@redhat.com>
1289 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1290 (_initialize_cli_interp): Adjust.
1291 * event-loop.c: Include "observer.h".
1292 (start_event_loop): Notify 'command_error' observers instead of
1293 calling display_gdb_prompt. Remove FIXME comment.
1294 * event-top.c (display_gdb_prompt): Remove call into the
1296 * inf-loop.c: Include "observer.h".
1297 (inferior_event_handler): Notify 'command_error' observers instead
1298 of calling display_gdb_prompt.
1299 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1300 observers instead of calling display_gdb_prompt.
1301 * interps.c (interp_set): Don't call display_gdb_prompt.
1302 (current_interp_display_prompt_p): Delete.
1303 * interps.h (interp_prompt_p): Delete declaration.
1304 (interp_prompt_p_ftype): Delete.
1305 (struct interp_procs) <prompt_proc_p>: Delete field.
1306 (current_interp_display_prompt_p): Delete declaration.
1307 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1308 (_initialize_mi_interp): Adjust.
1309 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1310 'command_error' observers.
1311 (tui_on_sync_execution_done, tui_on_command_error): New
1313 (tui_display_prompt_p): Delete.
1314 (_initialize_tui_interp): Adjust.
1316 2014-05-29 Pedro Alves <palves@redhat.com>
1319 * cli/cli-interp.c: Include infrun.h and observer.h.
1320 (cli_uiout, cli_interp): New globals.
1321 (cli_on_signal_received, cli_on_end_stepping_range)
1322 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1324 (cli_interpreter_init): Install them as 'end_stepping_range',
1325 'signal_received' 'signal_exited', 'exited' and 'no_history'
1327 (_initialize_cli_interp): Remove cli_interp local.
1328 * infrun.c (handle_inferior_event): Call the several stop reason
1329 observers instead of printing the stop reason directly.
1330 (end_stepping_range): New function.
1331 (print_end_stepping_range_reason, print_signal_exited_reason)
1332 (print_exited_reason, print_signal_received_reason)
1333 (print_no_history_reason): Make static, and add an uiout
1334 parameter. Print to that instead of to CURRENT_UIOUT.
1335 * infrun.h (print_end_stepping_range_reason)
1336 (print_signal_exited_reason, print_exited_reason)
1337 (print_signal_received_reason print_no_history_reason): New
1339 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1341 <cli_uiout>: New field.
1342 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1343 uiout for CLI output. Install 'signal_received',
1344 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1346 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1347 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1348 (mi_on_no_history): New functions.
1349 (ui_out_free_cleanup): Delete function.
1350 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1351 instead use the one already stored in the MI interpreter data.
1352 (mi_ui_out): Adjust.
1353 * tui/tui-interp.c: Include infrun.h and observer.h.
1354 (tui_interp): New global.
1355 (tui_on_signal_received, tui_on_end_stepping_range)
1356 (tui_on_signal_exited, tui_on_exited)
1357 (tui_on_no_history): New functions.
1358 (tui_init): Install them as 'end_stepping_range',
1359 'signal_received' 'signal_exited', 'exited' and 'no_history'
1361 (_initialize_tui_interp): Delete tui_interp local.
1363 2014-05-29 Pedro Alves <palves@redhat.com>
1366 * linux-nat.c (linux_nat_resume_callback): Rename the second
1367 parameter to 'except'. Skip LP if it points to EXCEPT.
1368 (linux_nat_resume): Don't mark the event lwp as not stopped
1369 before resuming sibling lwps. Instead ask
1370 linux_nat_resume_callback to skip the event lwp. Mark it as not
1371 stopped after actually resuming it.
1372 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1374 (wait_lwp): Mark the lwp as stopped here.
1375 (stop_wait_callback): Mark the lwp as not stopped right after
1376 resuming it. Don't mark lwps as stopped here.
1377 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1378 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1380 2014-05-29 Pedro Alves <palves@redhat.com>
1383 * infrun.c (resume): Determine how much to resume depending on
1384 whether the caller wanted a step, not whether we can hardware step
1385 the target. Mark all threads that we intend to run as running,
1386 unless we're calling an inferior function.
1387 (normal_stop): If the thread is running an infcall, don't finish
1389 * target.c (target_resume): Don't mark threads as running here.
1391 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1393 * serial.c (_initialize_serial): Remove support for
1394 the "set remotebaud" and "show remotebaud" commands.
1395 * NEWS: Add entry documenting the removal of that command.
1397 2014-05-28 Yao Qi <yao@codesourcery.com>
1399 * charset.c: Fix typo in comments.
1401 2014-05-27 Gary Benson <gbenson@redhat.com>
1403 * utils.c (internal_vproblem): Prompt for a bug report.
1405 2014-05-26 Andy Wingo <wingo@igalia.com>
1407 * guile/scm-arch.c (arscm_mark_arch_smob):
1408 * guile/scm-block.c (bkscm_mark_block_smob)
1409 (bkscm_mark_block_syms_progress_smob):
1410 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1411 * guile/scm-exception.c (exscm_mark_exception_smob):
1412 * guile/scm-frame.c (frscm_mark_frame_smob):
1413 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1414 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1415 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1416 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1417 (ppscm_mark_pretty_printer_worker_smob):
1418 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1419 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1420 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1421 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1423 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1426 2014-05-26 Andy Wingo <wingo@igalia.com>
1427 Doug Evans <xdje42@gmail.com>
1429 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1430 empty_base_class. All uses updated.
1431 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1432 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1434 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1435 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1436 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1437 (gdbscm_gsmob_has_property_p, add_property_name)
1438 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1439 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1440 (gdb-object-has-property?, gdb-object-properties): Remove.
1441 (gdb-object-kind): Renamed from gsmob-kind.
1443 2014-05-26 Andy Wingo <wingo@igalia.com>
1445 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1446 * configure: Regenerate.
1448 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1450 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1452 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1454 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1455 (replay_memory_access_read_only, replay_memory_access_read_write)
1456 (replay_memory_access_types, replay_memory_access)
1457 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1458 (cmd_set_record_btrace, cmd_show_record_btrace)
1459 (cmd_show_replay_memory_access): New.
1460 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1461 (record_btrace_remove_breakpoint): Replace
1462 record_btrace_allow_memory_access with replay_memory_access.
1463 (_initialize_record_btrace): Add commands.
1464 * NEWS: Announce it.
1466 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1468 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1470 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1472 * MAINTAINERS (Write After Approval): Move self back from
1475 2014-05-22 Pedro Alves <palves@redhat.com>
1477 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1478 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1479 (disable_randomization, enum exec_direction_kind)
1480 (execution_direction, stop_registers, start_remote)
1481 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1482 (wait_for_inferior, normal_stop, get_last_target_status)
1483 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1484 (insert_step_resume_breakpoint_at_sal)
1485 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1486 (set_step_info, print_stop_event, signal_stop_state)
1487 (signal_print_state, signal_pass_state, signal_stop_update)
1488 (signal_print_update, signal_pass_update)
1489 (update_signals_program_target, clear_exit_convenience_vars)
1490 (displaced_step_dump_bytes, update_observer_mode)
1491 (signal_catch_update, gdb_signal_from_command): Move
1493 * infrun.h: ... to this new file.
1494 * amd64-tdep.c: Include infrun.h.
1495 * annotate.c: Include infrun.h.
1496 * arch-utils.c: Include infrun.h.
1497 * arm-linux-tdep.c: Include infrun.h.
1498 * arm-tdep.c: Include infrun.h.
1499 * break-catch-sig.c: Include infrun.h.
1500 * breakpoint.c: Include infrun.h.
1501 * common/agent.c: Include infrun.h instead of inferior.h.
1502 * corelow.c: Include infrun.h.
1503 * event-top.c: Include infrun.h.
1504 * go32-nat.c: Include infrun.h.
1505 * i386-tdep.c: Include infrun.h.
1506 * inf-loop.c: Include infrun.h.
1507 * infcall.c: Include infrun.h.
1508 * infcmd.c: Include infrun.h.
1509 * infrun.c: Include infrun.h.
1510 * linux-fork.c: Include infrun.h.
1511 * linux-nat.c: Include infrun.h.
1512 * linux-thread-db.c: Include infrun.h.
1513 * monitor.c: Include infrun.h.
1514 * nto-tdep.c: Include infrun.h.
1515 * procfs.c: Include infrun.h.
1516 * record-btrace.c: Include infrun.h.
1517 * record-full.c: Include infrun.h.
1518 * remote-m32r-sdi.c: Include infrun.h.
1519 * remote-mips.c: Include infrun.h.
1520 * remote-notif.c: Include infrun.h.
1521 * remote-sim.c: Include infrun.h.
1522 * remote.c: Include infrun.h.
1523 * reverse.c: Include infrun.h.
1524 * rs6000-tdep.c: Include infrun.h.
1525 * s390-linux-tdep.c: Include infrun.h.
1526 * solib-irix.c: Include infrun.h.
1527 * solib-osf.c: Include infrun.h.
1528 * solib-svr4.c: Include infrun.h.
1529 * target.c: Include infrun.h.
1530 * top.c: Include infrun.h.
1531 * windows-nat.c: Include infrun.h.
1532 * mi/mi-interp.c: Include infrun.h.
1533 * mi/mi-main.c: Include infrun.h.
1534 * python/py-threadevent.c: Include infrun.h.
1536 2014-05-22 Pedro Alves <palves@redhat.com>
1538 * infrun.c (handle_inferior_event): Store the exit code for
1539 --return-child-result here, instead of ...
1540 (print_exited_reason): ... here.
1542 2014-05-21 Pedro Alves <palves@redhat.com>
1545 * gdbthread.h (struct thread_control_state): New field
1547 * infrun.c (follow_fork): Copy the new thread control field to the
1549 (clear_proceed_status_thread): Clear the new thread control field.
1550 (proceed): Set the new thread control field.
1551 * interps.h (command_interp): Declare.
1552 * interps.c (command_interpreter): New global.
1553 (command_interp): New function.
1554 (interp_exec): Set `command_interpreter' while here.
1555 * cli-out.c (cli_uiout_dtor): New function.
1556 (cli_ui_out_impl): Install it.
1557 * mi/mi-interp.c: Include cli-out.h.
1558 (mi_cmd_interpreter_exec): Add comment.
1559 (restore_current_uiout_cleanup): New function.
1560 (ui_out_free_cleanup): New function.
1561 (mi_on_normal_stop): If finishing an execution command started by
1562 a CLI command, or any kind of breakpoint-like event triggered,
1563 print the stop event to the output (CLI) stream.
1564 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1566 2014-05-21 Pedro Alves <palves@redhat.com>
1568 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1569 current source line having changed.
1570 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1571 * infrun.c (normal_stop): Adjust call to
1572 set_current_sal_from_frame.
1573 * source.c (clear_lines_listed_range): New function.
1574 (set_current_source_symtab_and_line, identify_source_line): Clear
1575 the lines listed range.
1576 (line_info): Handle the first "info line" after the current source
1577 line having changed.
1578 * stack.c (print_stack_frame): Remove center handling.
1579 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1582 2014-05-21 Pedro Alves <palves@redhat.com>
1584 * inf-child.c (inf_child_mourn_inferior): New function.
1585 * inf-child.h (inf_child_mourn_inferior): New declaration.
1586 * darwin-nat.c (darwin_mourn_inferior): Use
1587 inf_child_mourn_inferior.
1588 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1589 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1590 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1591 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1592 * windows-nat.c (windows_mourn_inferior): Likewise.
1594 2014-05-21 Doug Evans <xdje42@gmail.com>
1596 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1598 2014-05-21 Doug Evans <xdje42@gmail.com>
1600 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1601 (gdbscm_out_of_range_error): Ditto.
1602 (gdbscm_memory_error): Ditto.
1603 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1604 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1605 (gdbscm_out_of_range_error): Update.
1606 (gdbscm_memory_error): Update.
1607 (gdbscm_scm_to_target_string_unsafe): Delete.
1609 2014-05-21 Pedro Alves <palves@redhat.com>
1611 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1613 (inf_child_open_target): New function.
1614 (inf_child_open): Use inf_child_open_target to push the target
1615 instead of erroring out.
1616 (inf_child_disconnect, inf_child_close)
1617 (inf_child_maybe_unpush_target): New functions.
1618 (inf_child_target): Install inf_child_disconnect and
1619 inf_child_close. Store a pointer to the returned object.
1620 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1622 * target.c (auto_connect_native_target): New global.
1623 (show_default_run_target): New function.
1624 (find_default_run_target): Return NULL if automatically connecting
1625 to the native target is disabled.
1626 (_initialize_target): Install set/show auto-connect-native-target.
1627 * NEWS: Mention "set auto-connect-native-target", and "target
1629 * linux-nat.c (super_close): New global.
1630 (linux_nat_close): Call super_close.
1631 (linux_nat_add_target): Store a pointer to the base class's
1633 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1634 inf_child_maybe_unpush.
1635 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1637 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1638 the inferior. Use inf_child_maybe_unpush_target.
1639 (inf_ttrace_attach): Don't push the target if it is already
1641 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1642 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1643 after mourning the inferior. Use inf_child_maybe_unpush_target.
1644 (darwin_attach_pid): Don't push the target if it is already
1646 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1647 mourning the inferior. Use inf_child_maybe_unpush_target.
1648 (gnu_detach): Use inf_child_maybe_unpush_target.
1649 * go32-nat.c (go32_create_inferior): Don't push the target if it
1651 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1652 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1653 (procfs_open): Rename to ...
1654 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1655 comments. Can target_preopen before changing node. Call
1656 inf_child_open_target to push the target explicitly.
1657 (procfs_attach): Don't push the target if it is already pushed.
1658 (procfs_detach): Use inf_child_maybe_unpush_target.
1659 (procfs_create_inferior): Don't push the target if it is already
1661 (nto_native_ops): New global.
1662 (procfs_open): Reimplement.
1663 (procfs_native_open): New function.
1664 (init_procfs_targets): Install procfs_native_open as to_open of
1665 "target native". Store a pointer to the "native" target in
1667 * procfs.c (procfs_attach): Don't push the target if it is already
1669 (procfs_detach): Use inf_child_maybe_unpush_target.
1670 (procfs_mourn_inferior): Only unpush the target after mourning the
1671 inferior. Use inf_child_maybe_unpush_target.
1672 (procfs_init_inferior): Don't push the target if it is already
1674 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1675 if it is already pushed.
1677 2014-05-21 Pedro Alves <palves@redhat.com>
1679 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1680 and "procfs" targets are now called "native" instead.
1682 2014-05-21 Pedro Alves <palves@redhat.com>
1684 * go32-nat.c (go32_open): Delete.
1685 (go32_target): Don't override the to_open method.
1687 2014-05-21 Pedro Alves <palves@redhat.com>
1689 * nto-procfs.c (procfs_can_run): New function.
1690 (nto_procfs_ops): New global.
1691 (init_procfs_targets): New, based on procfs_target. Install
1692 "target native" in addition to "target procfs".
1693 (_initialize_procfs): Call init_procfs_targets instead of adding
1696 2014-05-21 Pedro Alves <palves@redhat.com>
1698 * windows-nat.c (windows_target): Don't override to_shortname,
1699 to_longname or to_doc.
1701 2014-05-21 Pedro Alves <palves@redhat.com>
1703 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1706 2014-05-21 Pedro Alves <palves@redhat.com>
1708 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1709 to_shortname, to_longname or to_doc.
1711 2014-05-21 Pedro Alves <palves@redhat.com>
1713 * go32-nat.c (go32_target): Don't override to_shortname,
1714 to_longname or to_doc.
1716 2014-05-21 Pedro Alves <palves@redhat.com>
1718 * inf-child.c (inf_child_open): Remove mention of "child".
1719 (inf_child_target): Rename target to "native" instead of "child".
1721 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1723 * Makefile.in (SFILES): Delete "regset.c".
1724 (COMMON_OBS): Delete "regset.o".
1726 * regset.h (regset_alloc): Delete prototype.
1728 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1730 * sparc-linux-tdep.c (sparc32_linux_gregset)
1731 (sparc32_linux_fpregset): New static regset structures.
1732 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1733 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1735 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1736 (sparc64_linux_fpregset): New static regset structures.
1737 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1738 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1739 New static regset structures.
1740 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1741 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1742 New static regset structures.
1743 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1744 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1745 New static regset structures.
1746 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1747 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1748 New static regset structures.
1749 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1751 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1753 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1754 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1755 register maps ("regmaps") from "*regset" to "*regmap". Do this
1756 for all regmap types and variables.
1757 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1758 (sparc32_linux_supply_core_gregset)
1759 (sparc32_linux_collect_core_gregset)
1760 (sparc32_linux_supply_core_fpregset)
1761 (sparc32_linux_collect_core_fpregset): Likewise.
1762 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1763 (sparc_gregmap, sparc_fpregmap): ... these.
1764 (sparc_supply_gregset, sparc_collect_gregset)
1765 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1766 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1767 (_initialize_sparc_nat): Rename regmaps.
1768 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1769 (sparc_gregmap, sparc_fpregmap): ... these.
1770 (sparc_supply_gregset, sparc_collect_gregset)
1771 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1772 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1774 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1775 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1777 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1779 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1780 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1781 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1783 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1784 (sparc32_bsd_fpregset): Rename to...
1785 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1786 (sparc32_bsd_fpregmap): ... these.
1787 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1788 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1789 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1790 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1791 (struct sparc_gregmap, struct sparc_fpregmap)
1792 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1793 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1794 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1795 (sparc32_supply_regset, sparc32_collect_gregset)
1796 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1798 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1799 (sparc64_linux_ptrace_gregmap): ... this.
1800 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1801 (_initialize_sparc64_linux_nat): Rename regmaps.
1802 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1803 (sparc64_linux_core_gregmap): ... this.
1804 (sparc64_linux_supply_core_gregset)
1805 (sparc64_linux_collect_core_gregset)
1806 (sparc64_linux_supply_core_fpregset)
1807 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1808 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1809 (sparc64_sol2_fpregset): Rename to...
1810 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1811 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1812 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1814 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1815 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1816 (sparc64_bsd_fpregset): Rename to...
1817 (struct sparc_gregmap, sparc64_sol2_gregmap)
1818 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1819 (sparc64_bsd_fpregmap): ... these.
1820 (sparc64_supply_gregset, sparc64_collect_gregset)
1821 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1823 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1824 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1825 (sparc64fbsd_gregmap): ... this.
1826 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1827 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1829 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1830 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1831 (sparc64nbsd_collect_fpregset): Likewise.
1832 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1833 (sparc64nbsd_gregmap): ... this.
1834 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1836 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1837 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1838 (sparc64obsd_gregmap): ... this.
1839 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1841 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1842 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1843 (sparc32nbsd_gregmap): ... this.
1844 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1847 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1849 * score-tdep.c (score7_linux_gregset): New static regset
1851 (score7_linux_regset_from_core_section): Remove dynamic regset
1853 (score_gdbarch_init): Drop allocation of tdep structure.
1854 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1856 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1858 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1860 (am33_regset_from_core_section): Remove dynamic regset
1863 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1865 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1866 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1868 (mips_linux_regset_from_core_section): Remove dynamic regset
1870 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1871 'gregset64', 'fpregset', and 'fpregset64'.
1872 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1873 deleted tdep fields.
1875 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1877 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1879 (amd64_regset_from_core_section): Remove dynamic regset
1881 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1883 (amd64obsd_regset_from_core_section): Remove dynamic regset
1885 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1887 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1888 x86-common regset supply function.
1889 * i386-tdep.c (i386_collect_gregset): Make static.
1890 (i386_gregset): New global regset structure.
1891 (i386_fpregset, i386_xstateregset): New static regset structures.
1892 (i386_regset_from_core_section): Remove dynamic regset
1894 (i386_gdbarch_init): Remove initialization of tdep fields
1895 'gregset', 'fpregset', and 'xstateregset'.
1896 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1897 'fpregset', and 'xstateregset'.
1898 (i386_collect_gregset): Remove prototype.
1899 (i386_gregset): New declaration.
1900 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1902 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1905 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1907 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1908 (arm_linux_vfpregset): New static regset structures.
1909 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1911 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1912 and 'vfpregset' fields.
1914 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1916 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1917 (aarch64_linux_fpregset): New static regset structures.
1918 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1919 of regset structures.
1920 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1923 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1925 * regset.h (struct regset): Remove gdbarch field.
1926 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1927 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1928 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1930 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1931 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1932 (ppc32_linux_vsxregset): Likewise.
1933 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1934 via the regcache instead of the regset.
1935 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1936 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1937 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1938 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1943 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1944 Constify structures.
1945 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1946 (alphanbsd_aout_gregset): Likewise.
1947 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1948 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1950 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1951 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1953 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1954 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1955 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1956 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1957 * m88k-tdep.c (m88k_gregset): Likewise.
1958 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1959 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1960 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1961 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1962 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1963 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1964 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1965 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1966 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1968 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1969 * sh-tdep.h (sh_corefile_gregset): Likewise.
1970 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1971 * vax-tdep.c (vax_gregset): Likewise.
1973 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 Fix TLS access for -static -pthread.
1976 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1977 (try_thread_db_load_1): Initialize it.
1978 (thread_db_get_thread_local_address): Call it if LM is zero.
1979 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1980 * target.h (struct target_ops) (to_get_thread_local_address): Add
1981 load_module_addr comment.
1983 2014-05-21 Pedro Alves <palves@redhat.com>
1985 * dcache.c (dcache_read_memory_partial): If reading the cache line
1986 fails, fallback to reading just the memory the caller wanted.
1988 2014-05-20 Doug Evans <dje@google.com>
1990 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1991 instead of get_current_arch.
1993 2014-05-20 Pedro Alves <palves@redhat.com>
1995 * NEWS: Mention that compare-sections now works with all targets.
1997 * remote.c (PACKET_qCRC): New enum value.
1998 (remote_verify_memory): Don't send qCRC if the target has no
1999 execution. Use packet_support/packet_ok. If the target doesn't
2000 support the qCRC packet, fallback to a deep memory copy.
2001 (compare_sections_command): Say "target image" instead of "remote
2003 (_initialize_remote): Add PACKET_qCRC to the list of config
2004 packets that have no associated command. Extend comment.
2005 * target.c (simple_verify_memory, default_verify_memory): New
2007 * target.h (struct target_ops) <to_verify_memory>: Default to
2008 default_verify_memory.
2009 (simple_verify_memory): New declaration.
2010 * target-delegates.c: Regenerate.
2012 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2014 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2016 2014-05-20 Hui Zhu <hui@codesourcery.com>
2017 Yao Qi <yao@codesourcery.com>
2020 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2021 and change address of sp and pc.
2023 2014-05-19 Tom Tromey <tromey@redhat.com>
2025 * gdbtypes.c (rank_function): Use XNEWVEC.
2026 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2028 2014-05-19 Doug Evans <dje@google.com>
2030 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2031 build_type_unit_groups and moved closer to only caller. Remove
2032 arguments. All references updated. Remove outdated .gdb_index
2034 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2035 build_type_psymtabs_1.
2037 2014-05-19 Doug Evans <dje@google.com>
2039 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2040 n_type_unit_groups, all_type_unit_groups. All uses removed.
2041 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2042 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2043 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2044 (add_type_unit_group_to_table): Delete.
2046 2014-05-19 Doug Evans <dje@google.com>
2048 * eval.c (evaluate_subexp_standard): Add some comments.
2050 2014-05-17 Doug Evans <xdje42@gmail.com>
2052 * progspace.c (remove_program_space): Delete, unused.
2053 * progspace.h (remove_program_space): Ditto.
2055 2014-05-17 Doug Evans <xdje42@gmail.com>
2057 * inferior.c (prune_inferiors): Fix comment.
2058 (remove_inferior_command): Call prune_program_spaces.
2060 2014-05-16 Doug Evans <dje@google.com>
2062 New command line option -D.
2064 * main.c (set_gdb_data_directory): New function.
2065 (captured_main): Recognize -D. Flag error for --data-directory "".
2066 Call set_gdb_data_directory.
2067 (print_gdb_help): Print --data-directory, -D.
2068 * main.h (set_gdb_data_directory): Declare.
2069 * top.c (staged_gdb_datadir): New static global.
2070 (set_gdb_datadir): Call set_gdb_data_directory
2071 (show_gdb_datadir): New function.
2072 (init_main): Update init of data-directory parameter.
2074 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2076 Import the "dirfd" gnulib module.
2077 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2078 * gnulib/aclocal.m4: Update.
2079 * gnulib/config.in: Update.
2080 * gnulib/configure: Update.
2081 * gnulib/import/Makefile.am: Update.
2082 * gnulib/import/Makefile.in: Update.
2083 * gnulib/import/dirfd.c: New.
2084 * gnulib/import/m4/dirfd.m4: New.
2085 * gnulib/import/m4/gnulib-cache.m4: Update.
2086 * gnulib/import/m4/gnulib-comp.m4: Update.
2088 2014-05-16 Pierre Muller <muller@sourceware.org>
2089 Yao Qi <yao@codesourcery.com>
2091 * valprint.c (print_wchar): Move the code on checking whether
2092 W is a printable wide char to the default branch of switch
2093 statement below. Call wchar_printable instead of gdb_iswprint.
2095 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2097 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2098 ldr.w and ldrd instructions.
2100 2014-05-15 Doug Evans <dje@google.com>
2102 * dwarf2read.c (read_structure_type): Delete outdated comments.
2104 2014-05-14 Tom Tromey <tromey@redhat.com>
2106 * macrocmd.c (print_macro_definition): Reindent.
2108 2014-05-13 Doug Evans <xdje42@gmail.com>
2110 * python/py-cmd.c (cmdpy_completer): Add comment.
2111 (completers): Make const.
2113 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2115 * infrun.c (resume): Remove should_resume (unused). Move up
2116 declaration of resume_ptid.
2118 2014-05-13 Tom Tromey <tromey@redhat.com>
2120 * language.h (unop_type_check): Remove.
2121 (binop_type_check): Don't declare.
2123 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2125 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2126 call to regcache_raw_collect.
2128 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2130 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2131 mi_console->quote as the quoting character.
2133 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2135 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2137 2014-04-29 Tom Tromey <tromey@redhat.com>
2139 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2140 "show debug varobj".
2142 2014-05-07 Kyle McMartin <kyle@redhat.com>
2144 Pushed by Joel Brobecker <brobecker@adacore.com>.
2145 * aarch64-tdep.c (aarch64_software_single_step): New function.
2146 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2147 with aarch64_software_single_step.
2149 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2153 2014-05-05 Keith Seitz <keiths@redhat.com>
2155 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2156 variable or history value is successfully parsed.
2158 2014-05-05 Yao Qi <yao@codesourcery.com>
2159 Pedro Alves <palves@redhat.com>
2161 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2162 address of blocks that intersects the requested range. Trim
2163 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2165 * ctf.c (ctf_xfer_partial): Likewise.
2167 2014-05-05 Yao Qi <yao@codesourcery.com>
2169 * printcmd.c (display_command): Remove the check to
2170 target_has_execution.
2172 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2174 * ppcobsd-nat.c: Include "obsd-nat.h".
2175 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2177 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2179 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2181 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2182 and 16-bit signed and unsigned arguments. Update comment.
2183 (stap_parse_probe_arguments): Extend code to handle such
2184 arguments. Use warning instead of complaint to notify about
2185 unrecognized bitness.
2187 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2189 PR breakpoints/16889
2190 * stap-probe.c (stap_parse_probe_arguments): Simplify
2191 check for non-prefixed probes (i.e., probes whose
2192 arguments do not start with "N@"). Always set the
2193 argument type to a sane value.
2195 2014-05-01 David Taylor <dtaylor@emc.com>
2197 * remote.c (compare_sections_command): Add -r option to compare
2198 all loadable read-only sections.
2200 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2202 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2203 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2205 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2206 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2207 Remove unused CORE_ADDR argument. Update all callers.
2209 2014-04-29 Pedro Alves <palves@redhat.com>
2211 * remote.c (struct packet_config) <detect>: Extend comment.
2212 (add_packet_config_cmd): Don't set the config's detect or support
2214 (init_all_packet_configs): Also initialize the config's 'detect'
2216 (reset_all_packet_configs_support): New function.
2217 (remote_open_1): Call reset_all_packet_configs_support instead of
2218 init_all_packet_configs.
2219 (_initialize_remote): Initialize all packet configs. Assert that
2220 all packets have an associated command, except a few known
2223 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2225 * dwarf2read.c (read_subrange_type): Handle dynamic
2226 DW_AT_lower_bound attributes.
2228 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2230 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2231 dynamic bounds before computing its upper bound.
2232 (ada_discrete_type_low_bound): Same as above with the lower bound.
2234 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2236 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2237 range types. Adjust the array handling implementation to
2238 take advantage of this change.
2239 (resolve_dynamic_range): New function, mostly extracted from
2240 resolve_dynamic_bounds.
2241 (resolve_dynamic_array): New function, mostly extracted from
2242 resolve_dynamic_bounds.
2243 (resolve_dynamic_bounds): Delete.
2244 (resolve_dynamic_type): Reimplement. Add handling of
2245 TYPE_CODE_RANGE types.
2247 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2249 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2250 handling of parallel ___XA types.
2252 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2254 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2255 unnecessary second call to static_unwrap_type.
2257 2014-04-27 Hui Zhu <hui@codesourcery.com>
2259 * stack.c (print_frame_info): Call do_gdb_disassembly with
2260 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2262 2014-04-26 Doug Evans <xdje42@gmail.com>
2264 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2266 2014-04-25 Pedro Alves <palves@redhat.com>
2269 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2270 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2271 and newline from built string.
2272 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2273 (linux_ptrace_attach_fail_reason): ... this.
2274 * linux-nat.c (linux_nat_attach): Adjust to use
2275 linux_ptrace_attach_fail_reason.
2277 2014-04-25 Pedro Alves <palves@redhat.com>
2279 * remote.c (struct remote_state): Remove multi_process_aware,
2280 non_stop_aware, cond_tracepoints, cond_breakpoints,
2281 breakpoint_commands, fast_tracepoints, static_tracepoints,
2282 install_in_trace, disconnected_tracing,
2283 enable_disable_tracepoints, string_tracing, and
2284 augmented_libraries_svr4_read fields.
2285 (remote_multi_process_p): Move further below in the file.
2286 (struct packet_config): Add comments.
2287 (update_packet_config): Delete function.
2288 (show_packet_config_cmd): Use packet_config_support.
2289 (add_packet_config_cmd): Use NULL as set callback.
2290 (packet_ok): "set remote foo-packet"-style commands no longer
2291 change config->supported -- adjust.
2292 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2293 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2294 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2295 (PACKET_QNonStop, PACKET_multiprocess_feature)
2296 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2297 (PACKET_DisconnectedTracing_feature)
2298 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2299 (set_remote_protocol_packet_cmd): Delete function.
2300 (packet_config_support, packet_support): New functions.
2301 (set_remote_protocol_Z_packet_cmd): Don't call
2302 update_packet_config.
2303 (remote_query_attached, remote_pass_signals)
2304 (remote_program_signals, remote_threads_info)
2305 (remote_threads_extra_info, remote_start_remote): Use
2307 (remote_start_remote): Use packet_config_support and
2309 (init_all_packet_configs): Set all packets to unknown support,
2310 instead of calling update_packet_config.
2311 (remote_check_symbols): Use packet_support.
2312 (remote_supported_packet): Unconditionally set the packet config's
2314 (remote_multi_process_feature, remote_non_stop_feature)
2315 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2316 (remote_breakpoint_commands_feature)
2317 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2318 (remote_install_in_trace_feature)
2319 (remote_disconnected_tracing_feature)
2320 (remote_enable_disable_tracepoint_feature)
2321 (remote_string_tracing_feature)
2322 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2323 (remote_protocol_features): Adjust to use remote_supported_packet
2324 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2325 "ConditionalTracepoints", "ConditionalBreakpoints",
2326 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2327 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2328 "EnableDisableTracepoints", and "tracenz".
2329 (remote_query_supported): Use packet_support.
2330 (remote_open_1): Adjust.
2331 (extended_remote_attach_1): Use packet_support. Switch on the
2332 result of packet_ok instead of checking whether the packet ended
2334 (remote_vcont_resume): Use packet_support.
2335 (remote_resume, remote_stop_ns, fetch_register_using_p)
2336 (remote_prepare_to_store, store_register_using_P)
2337 (check_binary_download, remote_write_bytes): Use packet_support.
2338 (remote_vkill): Use packet_support. Switch on the result of
2339 packet_ok instead of checking whether the packet ended up
2341 (extended_remote_supports_disable_randomization): Use
2343 (extended_remote_run): Switch on the result of packet_ok instead
2344 of checking whether the packet ended up disabled.
2345 (remote_insert_breakpoint, remote_remove_breakpoint)
2346 (remote_insert_watchpoint, remote_remove_watchpoint)
2347 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2349 (remote_search_memory): Use packet_config_support.
2350 (remote_get_thread_local_address, remote_get_tib_address)
2351 (remote_hostio_send_command, remote_can_execute_reverse): Use
2353 (remote_supports_cond_tracepoints)
2354 (remote_supports_cond_breakpoints)
2355 (remote_supports_fast_tracepoints)
2356 (remote_supports_static_tracepoints)
2357 (remote_supports_install_in_trace)
2358 (remote_supports_enable_disable_tracepoint)
2359 (remote_supports_string_tracing)
2360 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2361 the packet config says the feature is enabled or disabled.
2362 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2363 (remote_get_trace_status): Use packet_support.
2364 (remote_set_disconnected_tracing): Adjust to check whether the
2365 feature is enabled with packet_support.
2366 (remote_set_trace_buffer_size, remote_use_agent)
2367 (remote_can_use_agent, remote_supports_btrace): Use
2369 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2370 Use packet_config_support.
2371 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2372 the packet config says the feature is enabled or disabled.
2373 (set_range_stepping): Use packet_support.
2375 2014-04-25 Tom Tromey <tromey@redhat.com>
2377 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2380 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2382 * NEWS: Mention support for C99 variable length arrays.
2384 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2386 * ada-lang.c (standard_exc): Expand introductory comment.
2388 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2389 Walfred Tedeschi <walfred.tedeschi@intel.com>
2391 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2393 (amd64_linux_read_description): Add code to handle AVX512 xstate
2394 mask and return respective tdesc.
2395 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2396 and features/i386/x32-avx512-linux.c.
2397 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2398 (amd64_linux_core_read_description): Add code to handle AVX512
2399 xstate mask and return respective tdesc.
2400 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2401 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2403 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2404 (tdesc_amd64_avx512_linux): New prototype.
2405 (tdesc_x32_avx512_linux): Likewise.
2406 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2407 features/i386/x32-avx512.c.
2408 (amd64_ymm_avx512_names): New register names for pseudo
2410 (amd64_ymmh_avx512_names): New register names for raw registers
2412 (amd64_k_names): New register names for K registers.
2413 (amd64_zmmh_names): New register names for ZMM raw registers.
2414 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2415 (amd64_xmm_avx512_names): New register names for XMM16-31
2417 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2419 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2420 if feature is present.
2421 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2422 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2423 (AMD64_NUM_REGS): Adjust to new number of registers.
2424 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2425 registers supplied via XSTATE by AVX512 registers.
2426 (i386_linux_read_description): Add case for AVX512.
2427 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2428 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2429 (i386_linux_core_read_description): Add case for AVX512.
2430 (i386_linux_init_abi): Install supported register note section
2432 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2434 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2435 registers to be number of zmm7h + 1.
2436 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2437 * i386-tdep.c: Include features/i386/i386-avx512.c.
2438 (i386_zmm_names): Add ZMM pseudo register names array.
2439 (i386_zmmh_names): Add ZMM raw register names array.
2440 (i386_k_names): Add K raw register names array.
2441 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2442 registers. AVX512 has 16 more ZMM registers than there are YMM
2444 (i386_zmmh_regnum_p): Add function to look up register number of
2446 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2447 (i386_k_regnum_p): Likewise for K raw registers.
2448 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2449 registers added by AVX512.
2450 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2451 registers added by AVX512.
2452 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2454 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2455 (i386_pseudo_register_name): Add ZMM pseudo registers.
2456 (i386_zmm_type): Construct and return vector registers type for ZMM
2458 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2459 ZMM0-31 pseudo registers and K registers.
2460 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2461 and YMM16-31 registers from register cache.
2462 (i386_pseudo_register_write): Add code to write K, ZMM and
2464 (i386_register_reggroup_p): Add code to include/exclude AVX512
2465 registers in/from respective register groups.
2466 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2467 registers if feature is present in xcr0.
2468 (i386_gdbarch_init): Add code to initialize AVX512 feature
2469 variables in tdep structure, wire in pseudo registers and call
2470 initialize_tdesc_i386_avx512.
2471 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2473 (i386_regnum): Add AVX512 registers.
2474 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2475 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2476 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2477 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2479 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2480 (i386_ymm_avx512_regnum_p): Likewise.
2481 (i386_k_regnum_p): Likewise.
2482 (i386_zmm_regnum_p): Likewise.
2483 (i386_zmmh_regnum_p): Likewise.
2484 * i387-tdep.c : Update year in copyright notice.
2485 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2487 (XSAVE_YMM_AVX512_ADDR): New macro.
2488 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2490 (XSAVE_XMM_AVX512_ADDR): New macro.
2491 (xsave_avx512_k_offset): New table for K register offsets in
2493 (XSAVE_AVX512_K_ADDR): New macro.
2494 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2496 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2497 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2499 (i387_collect_xsave): Add code to collect AVX512 registers from
2501 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2502 of XMM16-31 registers.
2503 (I387_NUM_K_REGS): New define for number of K registers.
2504 (I387_K0_REGNUM): New define for K0 register number.
2505 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2506 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2507 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2509 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2510 (I387_XMM16_REGNUM): New define for XMM16 register number.
2511 (I387_YMM0_REGNUM): New define for YMM0 register number.
2512 (I387_KEND_REGNUM): New define for last K register number.
2513 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2514 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2516 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2518 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2520 * features/Makefile: Add AVX512 related files.
2521 * features/i386/32bit-avx512.xml: New file.
2522 * features/i386/64bit-avx512.xml: Likewise.
2523 * features/i386/amd64-avx512-linux.c: Likewise.
2524 * features/i386/amd64-avx512-linux.xml: Likewise.
2525 * features/i386/amd64-avx512.c: Likewise.
2526 * features/i386/amd64-avx512.xml: Likewise.
2527 * features/i386/i386-avx512-linux.c: Likewise.
2528 * features/i386/i386-avx512-linux.xml: Likewise.
2529 * features/i386/i386-avx512.c: Likewise.
2530 * features/i386/i386-avx512.xml: Likewise.
2531 * features/i386/x32-avx512-linux.c: Likewise.
2532 * features/i386/x32-avx512-linux.xml: Likewise.
2533 * features/i386/x32-avx512.c: Likewise.
2534 * features/i386/x32-avx512.xml: Likewise.
2535 * regformats/i386/amd64-avx512-linux.dat: New file.
2536 * regformats/i386/amd64-avx512.dat: Likewise.
2537 * regformats/i386/i386-avx512-linux.dat: Likewise.
2538 * regformats/i386/i386-avx512.dat: Likewise.
2539 * regformats/i386/x32-avx512-linux.dat: Likewise.
2540 * regformats/i386/x32-avx512.dat: Likewise.
2541 * NEWS: Add note about new support for AVX512.
2544 2014-04-23 Pedro Alves <palves@redhat.com>
2546 * breakpoint.c (insert_bp_location): Tolerate errors if the
2547 breakpoint is set in a user-loaded objfile.
2548 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2549 location is marked shlib_disabled. If the breakpoint is set in a
2550 user-loaded objfile is a GDB-side memory breakpoint, validate it
2551 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2552 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2554 * mem-break.c (memory_validate_breakpoint): New function.
2555 * objfiles.c (userloaded_objfile_contains_address_p): New
2557 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2558 * target.h (memory_validate_breakpoint): New declaration.
2560 2014-04-23 Pedro Alves <palves@redhat.com>
2562 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2563 the breakpoint is set in a shared library, only suppress
2564 errors for software breakpoints, not hardware breakpoints.
2566 2014-04-22 Pedro Alves <palves@redhat.com>
2568 * infrun.c (schedlock_applies): New function, factored out from
2569 find_thread_needs_step_over.
2570 (find_thread_needs_step_over): Use it.
2571 (switch_back_to_stepped_thread): Always clear trap_expected if the
2572 step over is finished. Return early if scheduler locking applies.
2573 Look for the stepping thread and a potential step-over thread with
2575 (currently_stepping_or_nexting_callback): Delete.
2577 2014-04-22 Nick Clifton <nickc@redhat.com>
2579 * NEWS: Mention that ARM sim now supports tracing.
2581 2014-04-22 Yao Qi <yao@codesourcery.com>
2583 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2585 * tracefile.c (tracefile_fetch_registers): ... it. New
2587 * tracefile.h (tracefile_fetch_registers): Declare.
2588 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2589 tracefile_fetch_registers.
2591 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2594 * windows-nat.c (thread_rec): Don't display a warning when
2595 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2596 fails for any reason, set th->suspended to -1, so that we don't
2597 try to resume such a thread. Also, don't return NULL in these
2598 cases, to avoid completely ruin the session due to "PC register is
2599 not available" error.
2600 (do_windows_fetch_inferior_registers): Check errors in
2601 GetThreadContext call.
2602 (windows_continue): Accept an additional argument KILLED; if not
2603 zero, ignore errors in the SetThreadContext call, since the
2604 inferior was killed and is shutting down.
2605 (windows_resume, get_windows_debug_event)
2606 (windows_create_inferior, windows_mourn_inferior)
2607 (windows_kill_inferior): All callers of windows_continue changed
2608 to adjust to its new calling sequence.
2610 2014-04-19 Yao Qi <yao@codesourcery.com>
2612 * ctf.c (ctf_open): Call post_create_inferior.
2614 2014-04-19 Yao Qi <yao@codesourcery.com>
2616 * ctf.c (handle_id): New static variable.
2617 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2618 value. Get the declaration of event "register" and get length
2619 of field "contents".
2621 2014-04-19 Yao Qi <yao@codesourcery.com>
2623 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2625 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2627 * valops.c (oload_method_static): Remove unnecessary argument
2628 METHOD. Update all callers.
2630 2014-04-18 Pedro alves <palves@redhat.com>
2631 Tom Tromey <tromey@redhat.com>
2634 * frame.c (get_prev_frame_1): Rename to ...
2635 (get_prev_frame_always): ... this, and make extern. Adjust.
2636 (skip_artificial_frames): Use get_prev_frame_always.
2637 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2638 (get_frame_unwind_stop_reason): Adjust to rename.
2639 * frame.h (get_prev_frame_always): Declare.
2640 * inline-frame.c: Include frame.h.
2641 (inline_frame_this_id): Use get_prev_frame_always.
2643 2014-04-18 Tristan Gingold <gingold@adacore.com>
2645 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2646 code by using bfd_mach_o_get_base_address.
2648 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2650 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2651 (spu_ax_pseudo_register_collect): New function.
2652 (spu_ax_pseudo_register_push_stack): Likewise.
2653 (spu_dwarf_reg_to_regnum): Likewise.
2654 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2656 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2658 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2659 Replace FRAME argument with FRAME_ID.
2660 * gdbarch.c, gdbarch.h: Regenerate.
2661 * findvar.c (default_value_from_register): Add GDBARCH argument;
2662 replace FRAME by FRAME_ID. No longer call get_frame_id.
2663 (value_from_register): Update call to gdbarch_value_from_register.
2664 * value.h (default_value_from_register): Update prototype.
2665 * s390-linux-tdep.c (s390_value_from_register): Update interface
2666 and call to default_value_from_register.
2667 * spu-tdep.c (spu_value_from_register): Likewise.
2669 * findvar.c (address_from_register): Remove TYPE argument.
2670 Do not call value_from_register; use gdbarch_value_from_register
2671 with null_frame_id instead.
2672 * value.h (address_from_register): Update prototype.
2673 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2674 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2675 address_from_register interface change.
2677 2014-04-17 Yao Qi <yao@codesourcery.com>
2679 * gdbtypes.h: Update comments to link to types and macros'
2682 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2684 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2686 2014-04-16 Keith Seitz <keiths@redhat.com>
2689 * dwarf2read.c (skip_one_die): Check that all relative-offset
2690 sibling DIEs fall within range of the current reader's buffer.
2691 (read_partial_die): Likewise.
2693 2014-04-16 Keith Seitz <keiths@redhat.com>
2696 * cp-namespace.c (lookup_symbol_file): If the type name of
2697 `this' is NULL, return immediately.
2699 2014-04-14 Keith Seitz <keiths@redhat.com>
2702 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2703 from symbol_matches_domain in symtab.c. All local callers
2704 of symbol_matches_domain updated.
2705 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2706 search STRUCT_DOMAIN.
2707 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2708 independently. standard_lookup will do that automatically.
2709 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2710 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2711 (cp_lookup_symbol_in_namespace): Likewise.
2712 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2713 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2714 may return a STRUCT_DOMAIN match.
2715 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2716 * cp-support.c: Include language.h.
2717 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2719 * psymtab.c (match_partial_symbol): Compare the requested
2720 domain with the symbol's domain directly.
2721 (lookup_partial_symbol): Likewise.
2722 * symtab.c (lookup_symbol_in_language): Explain when/why
2723 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2724 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2725 appropriate languages.
2726 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2727 and moved to ada-lang.c
2728 (lookup_block_symbol): Explain that this function only returns
2729 symbol matching the requested DOMAIN.
2730 Compare the requested domain with the symbol's domain directly.
2731 (iterate_over_symbols): Compare the requested domain with the
2732 symbol's domain directly.
2733 * symtab.h (symbol_matches_domain): Remove.
2735 2014-04-14 Tom Tromey <tromey@redhat.com>
2738 * c-exp.y (type_aggregate_p): New function.
2739 (qualified_name, classify_inner_name): Use it.
2740 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2741 and TYPE_TARGET_TYPE of an enum type.
2742 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2744 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2745 handle TYPE_DECLARED_CLASS.
2746 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2748 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2749 * valops.c (enum_constant_from_type): New function.
2750 (value_aggregate_elt): Use it.
2751 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2754 2014-04-14 Tom Tromey <tromey@redhat.com>
2756 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2757 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2759 * value.h (value_aggregate_elt): Update.
2761 2014-04-14 Tom Tromey <tromey@redhat.com>
2763 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2765 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2767 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2768 (evaluate_subexp_standard): Pass noside argument.
2769 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2770 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2771 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2772 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2773 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2775 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2777 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2778 points to a constant blob.
2780 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2782 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2783 property and store it as the high bound and flag the range accordingly.
2784 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2785 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2786 * gdbtypes.h (enum range_flags): New enum.
2787 (struct range_bounds): Add flags member.
2789 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2791 * c-typeprint.c (c_type_print_varspec_suffix): Added
2792 check for not yet resolved high bound. If unresolved, print
2793 "variable length" string to the console instead of random
2796 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2798 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2800 (ada_template_to_fixed_record_type_1): Likewise.
2801 (ada_to_fixed_type_1): Likewise.
2802 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2803 (cp_print_value): Likewise.
2804 * d-valprint.c (dynamic_array_type): Likewise.
2805 * findvar.c (address_of_variable): Likewise.
2806 * jv-valprint.c (java_value_print): Likewise.
2807 * valops.c (value_ind): Likewise.
2808 * value.c (coerce_ref): Likewise.
2810 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2812 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2813 value and retrieve the dynamic type size.
2815 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2817 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2818 passed to sizeof is dynamic evaluate the argument to compute the length.
2820 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2821 Joel Brobecker <brobecker@adacore.com>
2823 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2824 (dwarf2_evaluate_property): New function.
2825 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2826 * dwarf2read.c (attr_to_dynamic_prop): New function.
2827 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2829 * gdbtypes.c: Include dwarf2loc.h.
2830 (is_dynamic_type): New function.
2831 (resolve_dynamic_type): New function.
2832 (resolve_dynamic_bounds): New function.
2833 (get_type_length): New function.
2834 (check_typedef): Use get_type_length to compute type length.
2835 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2836 (TYPE_LOW_BOUND_KIND): New macro.
2837 (is_dynamic_type): New function prototype.
2838 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2839 to resolve dynamic properties of the type. Update comment.
2840 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2842 2014-04-14 Richard Henderson <rth@redhat.com>
2844 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2846 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2847 Doug Evans <xdje42@gmail.com>
2849 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2850 dereference TYPE_CODE_REF values.
2852 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2854 Revert the following changes due to regressions:
2856 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2857 (dwarf2_evaluate_property): New function.
2858 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2859 * dwarf2read.c (attr_to_dynamic_prop): New function.
2860 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2862 * gdbtypes.c: Include dwarf2loc.h.
2863 (is_dynamic_type): New function.
2864 (resolve_dynamic_type): New function.
2865 (resolve_dynamic_bounds): New function.
2866 (get_type_length): New function.
2867 (check_typedef): Use get_type_length to compute type length.
2868 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2869 (TYPE_LOW_BOUND_KIND): New macro.
2870 (is_dynamic_type): New function prototype.
2871 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2872 to resolve dynamic properties of the type. Update comment.
2873 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2875 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2876 passed to sizeof is dynamic evaluate the argument to compute the length.
2878 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2879 value and retrieve the dynamic type size.
2881 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2882 (ada_template_to_fixed_record_type_1): Likewise.
2883 (ada_to_fixed_type_1): Likewise.
2884 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2885 (cp_print_value): Likewise.
2886 * d-valprint.c (dynamic_array_type): Likewise.
2887 * eval.c (evaluate_subexp_with_coercion): Likewise.
2888 * findvar.c (address_of_variable): Likewise.
2889 * jv-valprint.c (java_value_print): Likewise.
2890 * valops.c (value_ind): Likewise.
2891 * value.c (coerce_ref): Likewise.
2893 * c-typeprint.c (c_type_print_varspec_suffix): Added
2894 check for not yet resolved high bound. If unresolved, print
2895 "variable length" string to the console instead of random
2898 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2899 property and store it as the high bound and flag the range accordingly.
2900 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2901 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2902 * gdbtypes.h (enum range_flags): New enum.
2903 (struct range_bounds): Add flags member.
2905 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2906 points to a constant blob.
2908 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2909 (evaluate_subexp_standard): Pass noside argument.
2910 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2911 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2912 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2913 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2914 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2916 2014-04-11 Keith Seitz <keiths@redhat.com>
2919 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2920 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2923 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2925 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2926 (evaluate_subexp_standard): Pass noside argument.
2927 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2928 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2929 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2930 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2931 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2933 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2935 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2936 points to a constant blob.
2938 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2940 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2941 property and store it as the high bound and flag the range accordingly.
2942 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2943 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2944 * gdbtypes.h (enum range_flags): New enum.
2945 (struct range_bounds): Add flags member.
2947 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2949 * c-typeprint.c (c_type_print_varspec_suffix): Added
2950 check for not yet resolved high bound. If unresolved, print
2951 "variable length" string to the console instead of random
2954 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2956 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2957 (ada_template_to_fixed_record_type_1): Likewise.
2958 (ada_to_fixed_type_1): Likewise.
2959 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2960 (cp_print_value): Likewise.
2961 * d-valprint.c (dynamic_array_type): Likewise.
2962 * eval.c (evaluate_subexp_with_coercion): Likewise.
2963 * findvar.c (address_of_variable): Likewise.
2964 * jv-valprint.c (java_value_print): Likewise.
2965 * valops.c (value_ind): Likewise.
2966 * value.c (coerce_ref): Likewise.
2968 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2970 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2971 value and retrieve the dynamic type size.
2973 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2975 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2976 passed to sizeof is dynamic evaluate the argument to compute the length.
2978 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2980 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2981 (dwarf2_evaluate_property): New function.
2982 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2983 * dwarf2read.c (attr_to_dynamic_prop): New function.
2984 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2986 * gdbtypes.c: Include dwarf2loc.h.
2987 (is_dynamic_type): New function.
2988 (resolve_dynamic_type): New function.
2989 (resolve_dynamic_bounds): New function.
2990 (get_type_length): New function.
2991 (check_typedef): Use get_type_length to compute type length.
2992 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2993 (TYPE_LOW_BOUND_KIND): New macro.
2994 (is_dynamic_type): New function prototype.
2995 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2996 to resolve dynamic properties of the type. Update comment.
2997 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2999 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3001 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3002 declaring high/low bounds and change uses accordingly. Call
3003 create_range_type instead of create_static_range_type.
3004 * gdbtypes.c (create_range_type): New function.
3005 (create_range_type): Convert bounds into struct bound_prop and pass
3006 them to create_range_type.
3007 * gdbtypes.h (struct bound_prop): New struct.
3008 (create_range_type): New function prototype.
3009 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3010 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3011 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3013 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3015 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3017 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3018 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3019 * ada-lang.c: All uses of create_range_type updated.
3020 * coffread.c: All uses of create_range_type updated.
3021 * dwarf2read.c: All uses of create_range_type updated.
3022 * f-exp.y: All uses of create_range_type updated.
3023 * m2-valprint.c: All uses of create_range_type updated.
3024 * mdebugread.c: All uses of create_range_type updated.
3025 * stabsread.c: All uses of create_range_type updated.
3026 * valops.c: All uses of create_range_type updated.
3027 * valprint.c: All uses of create_range_type updated.
3029 2014-04-10 Pedro Alves <palves@redhat.com>
3031 * breakpoint.c (single_step_breakpoints)
3032 (single_step_gdbarch): Move up in the file.
3033 (one_breakpoint_xfer_memory): New function, factored out from ...
3034 (breakpoint_xfer_memory): ... here. Also process single-step
3037 2014-04-09 Tristan Gingold <gingold@adacore.com>
3039 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3041 (darwin_decode_exception_message): Free port only after use.
3043 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3045 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3046 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3047 when setting the size of call_length.
3049 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3051 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3052 dereference TYPE_CODE_REF values.
3054 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3056 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3057 end of warning message.
3059 2014-04-03 Doug Evans <dje@google.com>
3061 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3062 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3064 2014-04-02 Alan Modra <amodra@gmail.com>
3066 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3067 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3068 (struct symbol_file_add_from_memory_args): Add size field.
3069 (find_vdso_size): New function.
3070 (add_vsyscall_page): Attempt to find vdso size.
3072 2014-04-01 Doug Evans <dje@google.com>
3074 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3076 2014-04-01 Tristan Gingold <gingold@adacore.com>
3078 * darwin-nat.c (darwin_encode_reply): Add prototype.
3079 (darwin_decode_exception_message): Reply to unknown inferiors.
3080 (darwin_decode_message): Handle message by id. Ignore message
3081 to unknown inferior.
3082 (darwin_wait): Discard unknown messages, add debug trace.
3084 2014-03-31 Doug Evans <dje@google.com>
3086 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3089 2014-03-31 Doug Evans <dje@google.com>
3091 New option "set print symbol-loading".
3093 * solib.c (solib_read_symbols): Only print symbol loading messages
3095 (solib_add): If symbol loading is in "brief" mode, notify user
3096 symbols are being loaded.
3097 (reload_shared_libraries_1): Ditto.
3098 * symfile.c (print_symbol_loading_off): New static global.
3099 (print_symbol_loading_brief): New static global.
3100 (print_symbol_loading_full): New static global.
3101 (print_symbol_loading_enums): New static global.
3102 (print_symbol_loading): New static global.
3103 (print_symbol_loading_p): New function.
3104 (symbol_file_add_with_addrs): Only print symbol loading messages
3106 (_initialize_symfile): Register "print symbol-loading" set/show
3108 * symfile.h (print_symbol_loading_p): Declare.
3110 2014-03-30 Doug Evans <xdje42@gmail.com>
3112 * infrun.c (set_last_target_status): New function.
3113 (handle_inferior_event): Call it.
3115 2014-03-30 Doug Evans <xdje42@gmail.com>
3117 * inferior.h (enum stop_kind): Improve comment.
3119 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3121 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3122 a reference, strip the reference layer before calling
3123 the lang_ops value_has_mutated callback.
3125 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3127 Remove some globals from our parser.
3128 * language.c (unk_lang_parser): Add "struct parser_state"
3130 * language.h (struct language_defn) <la_parser>: Likewise.
3131 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3132 (initialize_expout): Add "struct parser_state" argument.
3133 Rewrite function to use the parser state.
3134 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3135 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3136 write_exp_elt_longcst, write_exp_elt_dblcst,
3137 write_exp_elt_decfloatcst, write_exp_elt_type,
3138 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3139 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3140 write_dollar_variable): Likewise.
3141 (parse_exp_in_context_1): Use parser state.
3142 (insert_type_address_space): Add "struct parser_state" argument.
3144 (increase_expout_size): New function.
3145 * parser-defs.h: Forward declare "struct language_defn" and
3146 "struct parser_state".
3147 (expout, expout_size, expout_ptr): Remove extern declarations.
3148 (parse_gdbarch, parse_language): Rewrite macro declarations to
3149 accept the parser state.
3150 (struct parser_state): New struct.
3151 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3152 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3153 write_exp_elt_decfloatcst, write_exp_elt_type,
3154 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3155 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3156 write_exp_msymbol, write_dollar_variable,
3157 mark_struct_expression, insert_type_address_space): Add "struct
3158 parser_state" argument.
3159 (increase_expout_size): New function.
3160 * utils.c (do_clear_parser_state): New function.
3161 (make_cleanup_clear_parser_state): Likewise.
3162 * utils.h (make_cleanup_clear_parser_state): New function
3164 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3165 Update calls to write_exp* in order to pass the parser state.
3166 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3167 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3168 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3169 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3170 * stap-probe.c (stap_parse_register_operand): Likewise.
3171 (stap_parse_single_operand): Likewise.
3172 (stap_parse_argument_1): Likewise.
3173 (stap_parse_argument): Use parser state.
3174 * stap-probe.h: Include "parser-defs.h".
3175 (struct stap_parse_info) <pstate>: New field.
3176 * c-exp.y (parse_type): Rewrite to use parser state.
3177 (yyparse): Redefine to c_parse_internal.
3178 (pstate): New global variable.
3179 (parse_number): Add "struct parser_state" argument.
3180 (write_destructor_name): Likewise.
3181 (type_exp): Update calls to write_exp* and similars in order to
3183 (exp1, exp, variable, qualified_name, space_identifier,
3184 typename, typebase): Likewise.
3185 (write_destructor_name, parse_number, lex_one_token,
3186 classify_name, classify_inner_name, c_parse): Add "struct
3187 parser_state" argument. Update function to use parser state.
3188 * c-lang.h: Forward declare "struct parser_state".
3189 (c_parse): Add "struct parser_state" argument.
3190 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3191 (yyparse): Redefine macro to ada_parse_internal.
3192 (pstate): New variable.
3193 (write_int, write_object_renaming, write_var_or_type,
3194 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3195 type_int, type_long, type_long_long, type_float, type_double,
3196 type_long_double, type_char, type_boolean, type_system_address):
3197 Add "struct parser_state" argument.
3198 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3199 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3200 var_or_type, aggregate, aggregate_component_list,
3201 positional_list, others, component_group,
3202 component_associations): Update calls to write_exp* and similar
3203 functions in order to use parser state.
3204 (ada_parse, write_var_from_sym, write_int,
3205 write_exp_op_with_string, write_object_renaming,
3206 find_primitive_type, write_selectors, write_ambiguous_var,
3207 write_var_or_type, write_name_assoc, type_int, type_long,
3208 type_long_long, type_float, type_double, type_long_double,
3209 type_char, type_boolean, type_system_address): Add "struct
3210 parser_state" argument. Adjust function to use parser state.
3211 * ada-lang.c (parse): Likewise.
3212 * ada-lang.h: Forward declare "struct parser_state".
3213 (ada_parse): Add "struct parser_state" argument.
3214 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3215 calls to both functions.
3216 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3218 (yyparse): Redefine macro to f_parse_internal.
3219 (pstate): New variable.
3220 (parse_number): Add "struct parser_state" argument.
3221 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3222 and similars in order to use parser state.
3223 (parse_number): Adjust code to use parser state.
3225 (f_parse): New function.
3226 * f-lang.h: Forward declare "struct parser_state".
3227 (f_parse): Add "struct parser_state" argument.
3228 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3230 (yyparse): Redefine macro for java_parse_internal.
3231 (pstate): New variable.
3232 (push_expression_name, push_expression_name, insert_exp): Add
3233 "struct parser_state" argument.
3234 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3235 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3236 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3237 PostIncrementExpression, PostDecrementExpression,
3238 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3239 UnaryExpressionNotPlusMinus, CastExpression,
3240 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3241 RelationalExpression, EqualityExpression, AndExpression,
3242 ExclusiveOrExpression, InclusiveOrExpression,
3243 ConditionalAndExpression, ConditionalOrExpression,
3244 ConditionalExpression, Assignment, LeftHandSide): Update
3245 calls to write_exp* and similars in order to use parser state.
3246 (parse_number): Ajust code to use parser state.
3248 (java_parse): New function.
3249 (push_variable): Add "struct parser_state" argument. Adjust
3250 code to user parser state.
3251 (push_fieldnames, push_qualified_expression_name,
3252 push_expression_name, insert_exp): Likewise.
3253 * jv-lang.h: Forward declare "struct parser_state".
3254 (java_parse): Add "struct parser_state" argument.
3255 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3257 (yyparse): Redefine macro to m2_parse_internal.
3258 (pstate): New variable.
3259 (type_exp, exp, fblock, variable, type): Update calls to
3260 write_exp* and similars to use parser state.
3262 (m2_parse): New function.
3263 * m2-lang.h: Forward declare "struct parser_state".
3264 (m2_parse): Add "struct parser_state" argument.
3265 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3266 * objc-lang.h: Forward declare "struct parser_state".
3267 (end_msglist): Add "struct parser_state" argument.
3268 * p-exp.y (parse_type): Rewrite macro to use parser state.
3269 (yyparse): Redefine macro to pascal_parse_internal.
3270 (pstate): New variable.
3271 (parse_number): Add "struct parser_state" argument.
3272 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3273 write_exp* and similars in order to use parser state.
3274 (parse_number, yylex): Adjust code to use parser state.
3275 (pascal_parse): New function.
3276 * p-lang.h: Forward declare "struct parser_state".
3277 (pascal_parse): Add "struct parser_state" argument.
3278 * go-exp.y (parse_type): Rewrite macro to use parser state.
3279 (yyparse): Redefine macro to go_parse_internal.
3280 (pstate): New variable.
3281 (parse_number): Add "struct parser_state" argument.
3282 (type_exp, exp1, exp, variable, type): Update calls to
3283 write_exp* and similars in order to use parser state.
3284 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3285 to use parser state.
3286 (go_parse): Likewise.
3287 * go-lang.h: Forward declare "struct parser_state".
3288 (go_parse): Add "struct parser_state" argument.
3290 2014-03-27 Doug Evans <dje@google.com>
3292 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3294 2014-03-27 Doug Evans <dje@google.com>
3296 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3297 Remove argument abbrev_section. All callers updated.
3299 2014-03-27 Doug Evans <dje@google.com>
3301 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3302 addr_base, ranges_base.
3304 2014-03-26 Keith Seitz <keiths@redhat.com>
3306 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3307 types, not VAR_DOMAIN.
3309 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3311 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3313 * features/nios2-linux.c: Regenerated.
3314 * features/nios2.c: Regenerated.
3316 2014-03-25 Pedro Alves <palves@redhat.com>
3318 * cli/cli-script.c (script_from_file): Force the interpreter to
3321 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3323 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3324 small stack allocation.
3326 2014-03-24 Tristan Gingold <gingold@adacore.com>
3328 * darwin-nat.c (exc_server): Remove unused prototype.
3329 (darwin_dump_message): Correctly display data on x86_64.
3330 (darwin_encode_reply): Fix style.
3331 Add comments and fix indentation.
3333 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3335 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3337 2014-03-22 Doug Evans <xdje42@gmail.com>
3339 * infcmd.c: Whitespace fixes.
3340 (interrupt_command): Merge two function comments into one.
3342 2014-03-22 Doug Evans <xdje42@gmail.com>
3344 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3347 2014-03-22 Yao Qi <yao@codesourcery.com>
3349 * remote.c (target_read_live_memory): Remove.
3350 (memory_xfer_live_readonly_partial): Rename it to
3351 remote_xfer_live_readonly_partial. Remove argument 'object'.
3352 All callers updated. Call remote_read_bytes_1
3353 instead of target_read_live_memory.
3354 * tracepoint.c (set_traceframe_number): Remove.
3355 (make_cleanup_restore_traceframe_number): Likewise .
3356 * tracepoint.h (set_traceframe_number): Remove declaration.
3357 (make_cleanup_restore_traceframe_number): Likewise.
3359 2014-03-22 Yao Qi <yao@codesourcery.com>
3361 * remote.c (remote_read_bytes): Move code on reading from the
3363 (remote_read_bytes_1): ... here. New function.
3365 2014-03-22 Yao Qi <yao@codesourcery.com>
3367 * ctf.c (ctf_xfer_partial): Check the return value of
3368 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3369 return TARGET_XFER_UNAVAILABLE.
3370 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3371 * target.c (target_read_live_memory): Move it to remote.c.
3372 (memory_xfer_live_readonly_partial): Likewise.
3373 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3374 * remote.c (target_read_live_memory): Moved from target.c.
3375 (memory_xfer_live_readonly_partial): Likewise.
3376 (remote_read_bytes): Factored out from
3377 memory_xfer_partial_1.
3379 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3381 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3384 2014-03-21 Pedro Alves <palves@redhat.com>
3386 * infrun.c (normal_stop): Extend comment.
3388 2014-03-21 Hui Zhu <hui@codesourcery.com>
3389 Pedro Alves <palves@redhat.com>
3391 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3393 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3394 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3395 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3397 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3399 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3400 `z' formatted output modifier.
3402 2014-03-20 Tom Tromey <tromey@redhat.com>
3403 Sergio Durigan Junior <sergiodj@redhat.com>
3405 * probe.c (parse_probes): Turn assert into an ordinary error.
3406 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3407 exceptions when parsing probes. Rearrange the code for clarity.
3409 2014-03-20 Tom Tromey <tromey@redhat.com>
3412 * top.c (execute_command): Only dispatch events if the command
3415 2014-03-20 Tom Tromey <tromey@redhat.com>
3418 * infcall.c: Include event-top.h.
3419 (run_inferior_call): Call async_disable_stdin if needed.
3421 2014-03-20 Pedro Alves <palves@redhat.com>
3423 * infrun.c (prepare_to_proceed): Delete.
3424 (thread_still_needs_step_over): New function.
3425 (find_thread_needs_step_over): New function.
3426 (proceed): If the current thread needs a step-over, set its
3427 steping_over_breakpoint flag. Adjust to use
3428 find_thread_needs_step_over instead of prepare_to_proceed.
3429 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3430 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3432 (switch_back_to_stepped_thread): Step over breakpoints of all
3433 threads not the stepping thread, before switching back to the
3436 2014-03-20 Pedro Alves <palves@redhat.com>
3438 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3440 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3441 * infrun.c (saved_singlestep_ptid)
3442 (stepping_past_singlestep_breakpoint): Delete.
3443 (resume): Remove stepping_past_singlestep_breakpoint handling.
3444 (proceed): Store the prev_pc of the stepping thread too.
3445 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3447 (enum infwait_states): Delete infwait_thread_hop_state.
3448 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3450 (handle_inferior_event): Adjust.
3451 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3452 handling and the thread-hop code. Before removing single-step
3453 breakpoints, check whether the thread hit a single-step breakpoint
3454 of another thread. If it did, the trap is not a random signal.
3455 (switch_back_to_stepped_thread): If the event thread hit a
3456 single-step breakpoint, unblock it before switching to the
3457 stepping thread. Handle the case of the stepped thread having
3459 (keep_going): Handle the case of the current thread moving past a
3460 single-step breakpoint.
3462 2014-03-20 Pedro Alves <palves@redhat.com>
3465 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3466 are being stepped over.
3467 (breakpoint_address_match): Make extern.
3468 * breakpoint.h (breakpoint_address_match): New declaration.
3469 * inferior.h (stepping_past_instruction_at): New declaration.
3470 * infrun.c (struct step_over_info): New type.
3471 (step_over_info): New global.
3472 (set_step_over_info, clear_step_over_info)
3473 (stepping_past_instruction_at): New functions.
3474 (handle_inferior_event): Clear the step-over info when
3475 trap_expected is cleared.
3476 (resume): Remove now stale comment.
3477 (clear_proceed_status): Clear step-over info.
3478 (proceed): Adjust step-over handling to set or clear the step-over
3479 info instead of removing all breakpoints.
3480 (handle_signal_stop): When setting up a thread-hop, don't remove
3482 (stop_stepping): Clear step-over info.
3483 (keep_going): Adjust step-over handling to set or clear step-over
3484 info and then always inserting breakpoints, instead of removing
3485 all breakpoints when stepping over one.
3487 2014-03-20 Pedro Alves <palves@redhat.com>
3489 * infrun.c (previous_inferior_ptid): Adjust comment.
3490 (deferred_step_ptid): Delete.
3491 (infrun_thread_ptid_changed, prepare_to_proceed)
3492 (init_wait_for_inferior): Adjust.
3493 (handle_signal_stop): Delete deferred_step_ptid handling.
3495 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3498 * defs.h (sync_quit_force_run): New declaration.
3499 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3500 * event-top.c (async_sigterm_handler): New declaration.
3501 (async_sigterm_token): New variable.
3502 (async_init_signals): Create also async_sigterm_token.
3503 (async_sigterm_handler): New function.
3504 (sync_quit_force_run): New variable.
3505 (handle_sigterm): Replace quit_force call by other calls.
3506 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3508 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3510 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3511 offset into SPE pseudo registers.
3513 2014-03-18 Pedro Alves <palves@redhat.com>
3516 * inferior.h (print_stop_event): Declare.
3517 * infrun.c (print_stop_event): New, factored out from ...
3518 (normal_stop): ... this.
3519 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3520 of bpstat_print/print_stack_frame.
3522 2014-03-17 Tom Tromey <tromey@redhat.com>
3524 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3526 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3528 * ada-lang.c (decode_constrained_packed_array): Perform a
3529 minimal coercion for reference with coerce_ref instead of
3532 2014-03-17 Tristan Gingold <gingold@adacore.com>
3534 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3535 (darwin_solib_create_inferior_hook): Emit a warning if version
3538 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3540 * python/py-value.c (get_field_flag): Cast flag_name argument to
3541 PyObject_GetAttrString to support Python 2.4.
3543 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3545 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3546 (Global Maintainers): Remove Jan Kratochvil.
3548 2014-03-14 Pedro Alves <palves@redhat.com>
3550 * inferior.h (terminal_ours_for_output): Rename to ...
3551 (child_terminal_ours_for_output): ... this.
3552 (terminal_save_ours): Rename to ...
3553 (child_terminal_save_ours): ... this.
3554 (terminal_ours): Rename to ...
3555 (child_terminal_ours): ... this.
3556 (terminal_inferior): Rename to ...
3557 (child_terminal_inferior): ... this.
3558 (terminal_init_inferior): Rename to ...
3559 (child_terminal_init_inferior): ... this.
3560 (terminal_init_inferior_with_pgrp): Rename to ...
3561 (child_terminal_init_inferior_with_pgrp): ... this.
3562 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3563 (child_terminal_init_with_pgrp): ... this.
3564 (terminal_save_ours): Rename to ...
3565 (child_terminal_save_ours): ... this.
3566 (terminal_init_inferior): Rename to ...
3567 (child_terminal_init): ... this. Adjust.
3568 (terminal_inferior): Rename to ...
3569 (child_terminal_inferior): ... this.
3570 (terminal_ours_for_output): Rename to ...
3571 (child_terminal_ours_for_output): ... this. Adjust.
3572 (terminal_ours): Rename to ...
3573 (child_terminal_ours): ... this.
3574 (terminal_ours_1): Rename to ...
3575 (child_terminal_ours_1): ... this. Adjust.
3576 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3577 * windows-nat.c (do_initial_windows_stuff): Adjust.
3578 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3579 (gnu_terminal_init): ... this. Adjust.
3580 (gnu_target): Adjust.
3581 * inf-child.c (inf_child_target): Adjust.
3583 2014-03-13 Doug Evans <xdje42@gmail.com>
3586 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3589 2014-03-13 Doug Evans <xdje42@gmail.com>
3591 * value.c (record_latest_value): Call release_value_or_incref
3592 instead of release_value.
3594 2014-03-13 Pedro Alves <palves@redhat.com>
3596 * procfs.c (procfs_target): Don't override to_shortname,
3597 to_longname or to_doc.
3599 2014-03-13 Pedro Alves <palves@redhat.com>
3601 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3602 Unix in user visible strings.
3604 2014-03-12 Stan Shebs <stan@codesourcery.com>
3606 * gdbtypes.h: Annotate comments for Doxygen, add a page
3607 block comment with some general info.
3609 2014-03-12 Pedro Alves <palves@redhat.com>
3611 * infcmd.c (prepare_execution_command): New function, factored out
3612 from several execution commands.
3613 (run_command_1, continue_command, step_1, jump_command)
3614 (signal_command, until_command, advance_command, finish_command)
3615 (attach_command): Use prepare_execution_command.
3617 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3619 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3622 (struct arm_linux_thread_points): Removed.
3623 (struct arm_linux_process_info): New.
3624 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3625 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3626 (arm_linux_find_breakpoints_by_tid): Removed.
3627 (struct arch_lwp_info): New.
3628 (arm_linux_find_process_pid): New functions.
3629 (arm_linux_add_process): New functions.
3630 (arm_linux_process_info_get): New functions.
3631 (arm_linux_forget_process): New function.
3632 (arm_linux_get_debug_reg_state): New function.
3633 (struct update_registers_data): New.
3634 (update_registers_callback): New function.
3635 (arm_linux_insert_hw_breakpoint1): Updated.
3636 (arm_linux_remove_hw_breakpoint1): Updated.
3637 (arm_linux_insert_hw_breakpoint): Updated.
3638 (arm_linux_remove_hw_breakpoint): Updated.
3639 (arm_linux_insert_watchpoint): Updated.
3640 (arm_linux_remove_watchpoint): Updated.
3641 (arm_linux_new_thread): Updated.
3642 (arm_linux_prepare_to_resume): New function.
3643 (arm_linux_new_fork): New function.
3644 (_initialize_arm_linux_nat): Updated.
3646 2014-03-12 Pedro Alves <palves@redhat.com>
3648 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3650 2014-03-12 Tom Tromey <tromey@redhat.com>
3652 * inf-child.c (return_zero): New function.
3653 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3654 * aix-thread.c (aix_thread_inferior_created): New function.
3655 (aix_thread_attach): Remove.
3656 (init_aix_thread_ops): Don't set to_attach.
3657 (_initialize_aix_thread): Register inferior_created observer.
3658 * corelow.c (init_core_ops): Don't set to_attach or
3660 * exec.c (init_exec_ops): Don't set to_attach or
3662 * infcmd.c (run_command_1): Use find_run_target. Make direct
3664 (attach_command): Use find_attach_target. Make direct target
3666 * record-btrace.c (init_record_btrace_ops): Don't set
3668 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3670 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3671 set to_create_inferior.
3672 * target.c (complete_target_initialization): Add assertion.
3673 (target_create_inferior): Remove.
3674 (find_default_attach, find_default_create_inferior): Remove.
3675 (find_attach_target, find_run_target): New functions.
3676 (find_default_is_async_p, find_default_can_async_p)
3677 (target_supports_non_stop, target_attach): Remove.
3678 (init_dummy_target): Don't set to_create_inferior or
3679 to_supports_non_stop.
3680 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3681 TARGET_DEFAULT_FUNC.
3682 <to_create_inferior>: Add comment.
3683 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3684 TARGET_DEFAULT_RETURN.
3685 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3686 (find_attach_target, find_run_target): Declare.
3687 (target_create_inferior): Remove.
3688 (target_has_execution_1): Update comment.
3689 (target_supports_non_stop): Remove.
3690 * target-delegates.c: Rebuild.
3692 2014-03-12 Pedro Alves <palves@redhat.com>
3694 * inf-child.h: Update comment to not mention Unix.
3696 2014-03-12 Pedro Alves <palves@redhat.com>
3698 * inf-child.c: Update top comment to not mention Unix. Add
3699 generic comment describing how this target is meant to be used.
3700 (inf_child_post_attach, inf_child_post_startup_inferior)
3701 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3704 2014-03-12 Pedro Alves <palves@redhat.com>
3706 * nto-procfs.c: Include inf-child.h.
3707 (procfs_ops): Delete global.
3708 (procfs_can_run): Delete method.
3709 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3710 target pointer instead of referencing procfs_ops.
3711 (procfs_prepare_to_store): Delete.
3712 (init_procfs_ops): Delete function.
3713 (procfs_target): New function, based on init_procfs_ops, but
3714 inherit inf_child_target.
3715 (_initialize_procfs): Use procfs_target.
3717 2014-03-12 Pedro Alves <palves@redhat.com>
3719 * windows-nat.c: Include inf-child.h.
3720 (windows_ops): Delete global.
3721 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3723 (init_windows_ops): Delete function.
3724 (windows_target): New function, based on init_windows_ops, but
3725 inherit inf_child_target.
3726 (_initialize_windows_nat): Use windows_target. Install x86
3727 specific target methods here.
3729 2014-03-10 Doug Evans <xdje42@gmail.com>
3731 * guile/guile.c (call_initialize_gdb_module): New function.
3732 (initialize_guile): Replace call to scm_init_guile with call to
3735 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3737 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3738 in call to TYPE_CODE macro.
3740 2014-03-10 Jerome Guitton <guitton@adacore.com>
3742 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3743 Resolve tagged types to full view.
3745 2014-03-10 Hui Zhu <hui@codesourcery.com>
3747 * target.h (target_insert_breakpoint): Remove "hardware" from its
3750 2014-03-07 Doug Evans <dje@google.com>
3752 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3754 2014-03-07 Doug Evans <dje@google.com>
3756 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3757 Remove unused local comp_dir_attr. Assert exactly one of
3758 stub_comp_unit_die, stub_comp_dir is non-NULL.
3760 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3762 * target.h (complete_target_initialization, add_target):
3765 2014-03-07 Pedro Alves <palves@redhat.com>
3767 * go32-nat.c: Include inf-child.h.
3768 (go32_ops): Delete global.
3769 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3771 (go32_create_inferior): Push the passed in target pointer instead
3772 of referencing go32_ops.
3773 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3774 (go32_target): New function, based on init_go32_ops, but inherit
3776 (_initialize_go32_nat): Use go32_target. Move parts of
3779 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3781 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3782 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3783 SYMBOL_VALUE_ADDRESS.
3784 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3786 2014-03-06 Yao Qi <yao@codesourcery.com>
3788 * breakpoint.c (get_tracepoint_by_number): Remove argument
3789 optional_p. All callers updated. Adjust comments. Update
3791 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3793 2014-03-06 Yao Qi <yao@codesourcery.com>
3795 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3796 early if get_number returns zero. Use 'p' instead of 'args'.
3798 2014-03-06 Yao Qi <yao@codesourcery.com>
3800 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3803 2014-03-06 Yao Qi <yao@codesourcery.com>
3805 PR breakpoints/16508
3806 * tracepoint.c (check_trace_running): New function.
3807 (trace_find_command): Move code to check_trace_running and
3808 call check_trace_running.
3809 (trace_find_pc_command): Likewise.
3810 (trace_find_tracepoint_command): Likewise.
3811 (trace_find_line_command): Likewise.
3812 (trace_find_range_command): Likewise.
3813 * tracepoint.h (check_trace_running): Likewise.
3814 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3816 2014-03-06 Yao Qi <yao@codesourcery.com>
3818 * target.h (struct target_ops) <to_traceframe_info>: Use
3819 TARGET_DEFAULT_NORETURN (tcomplain ()).
3820 * target-delegates.c: Regenerated.
3822 2014-03-05 Pedro Alves <palves@redhat.com>
3825 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3826 void. Update comment.
3827 (dcache_xfer_memory): Delete.
3828 (dcache_read_memory_partial): New, based on the read bits of
3830 (dcache_update): Add status parameter. Use ULONGEST for len, and
3831 adjust. Discard cache lines if the reason for the update was
3833 * dcache.h (dcache_xfer_memory): Delete declaration.
3834 (dcache_read_memory_partial): New declaration.
3835 (dcache_update): Update prototype.
3836 * target.c (raw_memory_xfer_partial): Update the dcache here.
3837 (memory_xfer_partial_1): Don't handle dcache writes here.
3839 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3841 * remote-sim.c (gdbsim_load): Add const to prog.
3843 2014-03-03 Tom Tromey <tromey@redhat.com>
3845 * elfread.c (probe_key): Change to bfd_data.
3846 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3847 now per-BFD, not per-objfile.
3848 * stap-probe.c (stap_probe_destroy): Update comment.
3849 (handle_stap_probe): Allocate on the per-BFD obstack.
3851 2014-03-03 Tom Tromey <tromey@redhat.com>
3853 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3854 * breakpoint.c (create_longjmp_master_breakpoint): Use
3856 (add_location_to_breakpoint, bkpt_probe_insert_location)
3857 (bkpt_probe_remove_location): Update.
3858 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3859 * elfread.c (elf_symfile_relocate_probe): Remove.
3860 (elf_probe_fns): Update.
3861 (insert_exception_resume_breakpoint): Change type of "probe"
3862 parameter to bound_probe.
3863 (check_exception_resume): Update.
3864 * objfiles.c (objfile_relocate1): Don't relocate probes.
3865 * probe.c (bound_probe_s): New typedef.
3866 (parse_probes): Use get_probe_address. Set sal's objfile.
3867 (find_probe_by_pc): Return a bound_probe.
3868 (collect_probes): Return a VEC(bound_probe_s).
3869 (compare_probes): Update.
3870 (gen_ui_out_table_header_info): Change type of "probes"
3872 (info_probes_for_ops): Update.
3873 (get_probe_address): New function.
3874 (probe_safe_evaluate_at_pc): Update.
3875 * probe.h (struct probe_ops) <get_probe_address>: New field.
3876 <set_semaphore, clear_semaphore>: Add objfile parameter.
3877 (struct probe) <objfile>: Remove field.
3879 <address>: Update comment.
3880 (struct bound_probe): New.
3881 (find_probe_by_pc): Return a bound_probe.
3882 (get_probe_address): Declare.
3883 * solib-svr4.c (struct probe_and_action) <address>: New field.
3884 (hash_probe_and_action, equal_probe_and_action): Update.
3885 (register_solib_event_probe): Add address parameter.
3886 (solib_event_probe_at): Update.
3887 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3889 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3890 (stap_get_probe_address): New function.
3891 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3892 (compile_probe_arg): Update.
3893 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3895 (handle_stap_probe): Don't relocate the probe.
3896 (stap_relocate): Remove.
3897 (stap_gen_info_probes_table_values): Update.
3898 (stap_probe_ops): Remove stap_relocate.
3899 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3900 (debug_sym_probe_fns): Update.
3901 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3902 * symtab.c (init_sal): Use memset.
3903 * symtab.h (struct symtab_and_line) <objfile>: New field.
3904 * tracepoint.c (start_tracing, stop_tracing): Update.
3906 2014-03-03 Tom Tromey <tromey@redhat.com>
3908 * probe.h (parse_probes, find_probe_by_pc)
3909 (find_probes_in_objfile): Fix comments.
3911 2014-03-02 Doug Evans <xdje42@gmail.com>
3913 * infrun.c (handle_signal_stop): Replace test for
3914 TARGET_WAITKIND_STOPPED with an assert.
3916 2014-03-02 Doug Evans <xdje42@gmail.com>
3918 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3920 2014-03-02 Doug Evans <xdje42@gmail.com>
3922 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3924 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3926 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3928 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3930 * i386obsd-nat.c: Include "obsd-nat.h".
3931 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3933 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3935 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3937 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3939 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3941 * mips64obsd-nat.c: Include "obsd-nath".
3942 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3944 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3946 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3948 * amd64obsd-nat.c: Include "obsd-nat,h.
3949 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3951 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3953 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3955 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3956 (find_overload_match): Update call to find_oload_champ.
3957 (find_oload_champ_namespace_loop): Likewise
3959 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3961 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3963 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3964 * config/sparc/obsd64.mh: New file.
3965 * sparc64obsd-nat.c: New file.
3967 * obsd-nat.h: New file.
3968 * obsd-nat.c: New file.
3969 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3970 (ALLDEPFILES): Add obsd-nat.c.
3972 2014-02-28 Tom Tromey <tromey@redhat.com>
3974 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3975 * cli-out.h (cli_ui_out_impl): Now const.
3976 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3977 * ui-out.c (struct ui_out) <impl>: Now const.
3978 (default_ui_out_impl): Now const.
3979 (ui_out_new): Make 'impl' parameter const.
3980 * ui-out.h (ui_out_new): Update.
3982 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3984 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3986 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3988 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3990 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 Additional PR 8882 fix.
3993 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3995 2014-02-27 Pedro Alves <palves@redhat.com>
3997 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4000 2014-02-27 Pedro Alves <palves@redhat.com>
4003 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4004 * nat/linux-waitpid.c: Include string.h.
4005 (status_to_str): Moved here and made extern.
4006 * nat/linux-waitpid.h (status_to_str): New declaration.
4008 2014-02-27 Hui Zhu <hui@codesourcery.com>
4011 * infrun.c (ptid_match): Move ...
4012 * common/ptid.c (ptid_match): ... here.
4013 * inferior.h (ptid_match): Move ...
4014 * common/ptid.h (ptid_match): ... here.
4016 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4018 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4019 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4022 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4024 * obsd-tdep.c (obsd_auxv_parse): New function.
4025 (obsd_init_abi): Set auxv_parse.
4027 * gdbarch.sh (auxv_parse): New.
4028 * gdbarch.h: Regenerated.
4029 * gdbarch.c: Regenerated.
4030 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4032 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4034 * guile/scm-value.c (gdbscm_history_append_x): New function.
4035 (value_functions): Add it.
4037 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4039 * dwarf2read.c (attr_value_as_address): New function.
4040 (dwarf2_find_base_address, read_call_site_scope): Use
4041 attr_value_as_address in place of DW_ADDR.
4042 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4043 the low and high addresses. Slight rework of the handling
4044 of the high pc being a constant form, and limit it to
4045 DWARF verson 4 or higher.
4046 (dwarf2_record_block_ranges): Likewise.
4047 (read_partial_die): Likewise.
4048 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4050 2014-02-26 Tom Tromey <tromey@redhat.com>
4052 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4054 2014-02-26 Tom Tromey <tromey@redhat.com>
4056 * elfread.c (elf_read_minimal_symbols): Return early if
4057 minimal symbols have already been read. Add "ei" parameter.
4058 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4059 * minsyms.c (prim_record_minimal_symbol_full): Update.
4060 * objfiles.h (struct objstats) <n_minsyms>: Move...
4061 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4062 * symmisc.c (print_objfile_statistics): Update.
4064 2014-02-26 Tom Tromey <tromey@redhat.com>
4066 * elfread.c (elf_read_minimal_symbols): New function, from
4068 (elf_symfile_read): Call it.
4070 2014-02-26 Tom Tromey <tromey@redhat.com>
4072 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4073 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4074 (lookup_minimal_symbol_solib_trampoline)
4075 (lookup_minimal_symbol_by_pc_section_1)
4076 (lookup_minimal_symbol_and_objfile): Update.
4077 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4078 Don't allocate a minimal symbol if minsyms have already been read.
4079 (build_minimal_symbol_hash_tables): Update.
4080 (install_minimal_symbols): Do nothing if minsyms already read.
4081 Use the per-BFD obstack.
4082 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4083 * objfiles.c (allocate_objfile): Call
4084 terminate_minimal_symbol_table later.
4085 (have_minimal_symbols): Update.
4086 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4087 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4088 Move from struct objfile.
4089 <minsyms_read>: New field.
4090 (struct objfile) <msymbols, minimal_symbol_count,
4091 msymbol_hash, msymbol_demangled_hash>: Move.
4092 (ALL_OBJFILE_MSYMBOLS): Update.
4093 * symfile.c (read_symbols): Set minsyms_read.
4094 (reread_symbols): Update.
4095 * symmisc.c (dump_objfile, dump_msymbols): Update.
4097 2014-02-26 Tom Tromey <tromey@redhat.com>
4099 * minsyms.c (msymbols_sort): Remove.
4100 * minsyms.h (msymbols_sort): Remove.
4101 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4102 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4103 * elfread.c (elf_symtab_read): Don't add section offsets.
4104 * xcoffread.c (record_minimal_symbol): Don't add section offset
4105 to minimal symbol address.
4106 * somread.c (text_offset, data_offset): Remove.
4107 (som_symtab_read): Don't add section offsets to minimal symbol
4109 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4110 Don't add section offsets to minimal symbols.
4111 * coffread.c (coff_symtab_read): Don't add section offsets
4112 to minimal symbol addresses.
4113 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4114 to minimal symbol addresses.
4115 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4116 section offset to minimal symbol addresses.
4117 * mdebugread.c (parse_partial_symbols): Don't add section
4118 offset to minimal symbol addresses.
4119 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4120 offset to minimal symbol addresses.
4122 2014-02-26 Tom Tromey <tromey@redhat.com>
4124 * ada-lang.c (ada_main_name): Update.
4125 (ada_add_standard_exceptions): Update.
4126 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4127 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4128 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4129 * auxv.c (ld_so_xfer_auxv): Update.
4130 * avr-tdep.c (avr_scan_prologue): Update.
4131 * ax-gdb.c (gen_var_ref): Update.
4132 * blockframe.c (get_pc_function_start)
4133 (find_pc_partial_function_gnu_ifunc): Update.
4134 * breakpoint.c (create_overlay_event_breakpoint)
4135 (create_longjmp_master_breakpoint)
4136 (create_std_terminate_master_breakpoint)
4137 (create_exception_master_breakpoint): Update.
4138 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4139 * c-valprint.c (c_val_print): Update.
4140 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4141 * common/agent.c (agent_look_up_symbols): Update.
4142 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4143 * dwarf2loc.c (call_site_to_target_addr): Update.
4144 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4145 * elfread.c (elf_gnu_ifunc_record_cache)
4146 (elf_gnu_ifunc_resolve_by_got): Update.
4147 * findvar.c (default_read_var_value): Update.
4148 * frame.c (inside_main_func): Update.
4149 * frv-tdep.c (frv_frame_this_id): Update.
4150 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4151 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4153 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4154 (hppa_hpux_find_dummy_bpaddr): Update.
4155 * hppa-tdep.c (hppa_symbol_address): Update.
4156 * infcmd.c (until_next_command): Update.
4157 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4159 * linespec.c (minsym_found, add_minsym): Update.
4160 * linux-nat.c (get_signo): Update.
4161 * linux-thread-db.c (inferior_has_bug): Update.
4162 * m32c-tdep.c (m32c_return_value)
4163 (m32c_m16c_address_to_pointer): Update.
4164 * m32r-tdep.c (m32r_frame_this_id): Update.
4165 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4166 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4167 * maint.c (maintenance_translate_address): Update.
4168 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4169 (frob_address): New function.
4170 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4171 frob_address. Rename parameter to "pc_in".
4172 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4174 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4176 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4177 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4178 * objc-lang.c (find_objc_msgsend): Update.
4179 * objfiles.c (objfile_relocate1): Update.
4180 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4181 * p-valprint.c (pascal_val_print): Update.
4182 * parse.c (write_exp_msymbol): Update.
4183 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4184 (ppc_elfv2_skip_entrypoint): Update.
4185 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4186 * printcmd.c (build_address_symbolic, msym_info)
4187 (address_info): Update.
4188 * proc-service.c (ps_pglobal_lookup): Update.
4189 * psymtab.c (find_pc_sect_psymtab_closer)
4190 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4191 Change msymbol parameter to bound_minimal_symbol.
4192 * ravenscar-thread.c (get_running_thread_id): Update.
4193 * remote.c (remote_check_symbols): Update.
4194 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4196 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4197 * solib-dsbt.c (lm_base): Update.
4198 * solib-frv.c (lm_base, main_got): Update.
4199 * solib-irix.c (locate_base): Update.
4200 * solib-som.c (som_solib_create_inferior_hook)
4201 (link_map_start): Update.
4202 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4203 * solib-svr4.c (elf_locate_base, enable_break): Update.
4204 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4205 (flush_ea_cache): Update.
4206 * stabsread.c (define_symbol, scan_file_globals): Update.
4207 * stack.c (find_frame_funname): Update.
4208 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4209 (debug_qf_find_pc_sect_symtab): Update.
4210 * symfile.c (simple_read_overlay_table)
4211 (simple_overlay_update): Update.
4212 * symfile.h (struct quick_symbol_functions)
4213 <find_pc_sect_symtab>: Change type of msymbol to
4214 bound_minimal_symbol.
4215 * symmisc.c (dump_msymbols): Update.
4216 * symtab.c (find_pc_sect_symtab_via_partial)
4217 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4218 (search_symbols, print_msymbol_info): Update.
4219 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4220 (MSYMBOL_VALUE_ADDRESS): Redefine.
4221 (BMSYMBOL_VALUE_ADDRESS): New macro.
4222 * tracepoint.c (scope_info): Update.
4223 * tui/tui-disasm.c (tui_find_disassembly_address)
4224 (tui_get_begin_asm_address): Update.
4225 * valops.c (find_function_in_inferior): Update.
4226 * value.c (value_static_field, value_fn_field): Update.
4228 2014-02-26 Tom Tromey <tromey@redhat.com>
4230 * ada-lang.c (ada_update_initial_language): Update.
4231 (ada_main_name, ada_has_this_exception_support): Update.
4232 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4233 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4234 * arm-tdep.c (arm_skip_stub): Update.
4235 * auxv.c (ld_so_xfer_auxv): Update.
4236 * avr-tdep.c (avr_scan_prologue): Update.
4237 * ax-gdb.c (gen_var_ref): Update.
4238 * breakpoint.c (struct breakpoint_objfile_data)
4239 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4240 type to bound_minimal_symbol.
4241 (create_overlay_event_breakpoint)
4242 (create_longjmp_master_breakpoint)
4243 (create_std_terminate_master_breakpoint)
4244 (create_exception_master_breakpoint): Update.
4245 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4246 * c-exp.y (classify_name): Update.
4247 * coffread.c (coff_symfile_read): Update.
4248 * common/agent.c (agent_look_up_symbols): Update.
4249 * d-lang.c (d_main_name): Update.
4250 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4251 * dec-thread.c (enable_dec_thread): Update.
4252 * dwarf2loc.c (call_site_to_target_addr): Update.
4253 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4254 * eval.c (evaluate_subexp_standard): Update.
4255 * findvar.c (struct minsym_lookup_data) <result>: Change type
4256 to bound_minimal_symbol.
4258 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4259 * frame.c (inside_main_func): Update.
4260 * frv-tdep.c (frv_frame_this_id): Update.
4261 * gcore.c (call_target_sbrk): Update.
4262 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4263 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4265 * go-lang.c (go_main_name): Update.
4266 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4267 (hppa_hpux_find_import_stub_for_addr): Update.
4268 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4269 Update. Change return type.
4270 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4272 * jit.c (jit_breakpoint_re_set_internal): Update.
4273 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4275 * linux-nat.c (get_signo): Update.
4276 * linux-thread-db.c (inferior_has_bug): Update
4277 * m32c-tdep.c (m32c_return_value)
4278 (m32c_m16c_address_to_pointer): Update.
4279 * m32r-tdep.c (m32r_frame_this_id): Update.
4280 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4281 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4282 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4283 lookup_minimal_symbol. Change return type.
4284 (lookup_minimal_symbol): Remove.
4285 (lookup_bound_minimal_symbol): Update.
4286 (lookup_minimal_symbol_text): Change return type.
4287 (lookup_minimal_symbol_solib_trampoline): Change return type.
4288 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4289 (lookup_minimal_symbol_solib_trampoline): Change return type.
4290 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4291 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4292 (value_nsstring, find_imps): Update.
4293 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4294 * p-lang.c (pascal_main_name): Update.
4295 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4296 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4297 * proc-service.c (ps_pglobal_lookup): Update.
4298 * ravenscar-thread.c (get_running_thread_msymbol): Change
4300 (has_ravenscar_runtime, get_running_thread_id): Update.
4301 * remote.c (remote_check_symbols): Update.
4302 * sol-thread.c (ps_pglobal_lookup): Update.
4303 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4304 * solib-dsbt.c (lm_base): Update.
4305 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4307 * solib-irix.c (locate_base): Update.
4308 * solib-som.c (som_solib_create_inferior_hook)
4309 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4311 * solib-spu.c (spu_enable_break): Update.
4312 * solib-svr4.c (elf_locate_base, enable_break): Update.
4313 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4314 (flush_ea_cache): Update.
4315 * stabsread.c (define_symbol): Update.
4316 * symfile.c (simple_read_overlay_table): Update.
4317 * symtab.c (find_pc_sect_line): Update.
4318 * tracepoint.c (scope_info): Update.
4319 * tui-disasm.c (tui_get_begin_asm_address): Update.
4320 * value.c (value_static_field): Update.
4322 2014-02-26 Tom Tromey <tromey@redhat.com>
4324 * minsyms.c (prim_record_minimal_symbol_full): Use
4325 SET_MSYMBOL_VALUE_ADDRESS.
4326 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4327 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4328 SET_MSYMBOL_VALUE_ADDRESS.
4329 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4330 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4332 2014-02-26 Tom Tromey <tromey@redhat.com>
4334 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4335 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4336 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4337 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4338 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4339 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4340 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4341 * ada-lang.c (ada_main_name): Update.
4342 (ada_lookup_simple_minsym): Update.
4343 (ada_make_symbol_completion_list): Update.
4344 (ada_add_standard_exceptions): Update.
4345 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4346 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4347 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4348 * arm-tdep.c (skip_prologue_function): Update.
4349 (arm_skip_stack_protector, arm_skip_stub): Update.
4350 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4351 (arm_wince_skip_main_prologue): Update.
4352 * auxv.c (ld_so_xfer_auxv): Update.
4353 * avr-tdep.c (avr_scan_prologue): Update.
4354 * ax-gdb.c (gen_var_ref): Update.
4355 * block.c (call_site_for_pc): Update.
4356 * blockframe.c (get_pc_function_start): Update.
4357 (find_pc_partial_function_gnu_ifunc): Update.
4358 * breakpoint.c (create_overlay_event_breakpoint): Update.
4359 (create_longjmp_master_breakpoint): Update.
4360 (create_std_terminate_master_breakpoint): Update.
4361 (create_exception_master_breakpoint): Update.
4362 (resolve_sal_pc): Update.
4363 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4364 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4366 * c-valprint.c (c_val_print): Update.
4367 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4368 * coffread.c (coff_symfile_read): Update.
4369 * common/agent.c (agent_look_up_symbols): Update.
4370 * dbxread.c (find_stab_function_addr): Update.
4371 (end_psymtab): Update.
4372 * dwarf2loc.c (call_site_to_target_addr): Update.
4373 (func_verify_no_selftailcall): Update.
4374 (tailcall_dump): Update.
4375 (call_site_find_chain_1): Update.
4376 (dwarf_expr_reg_to_entry_parameter): Update.
4377 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4378 (elf_gnu_ifunc_resolve_by_got): Update.
4379 * f-valprint.c (info_common_command): Update.
4380 * findvar.c (read_var_value): Update.
4381 * frame.c (get_prev_frame_1): Update.
4382 (inside_main_func): Update.
4383 * frv-tdep.c (frv_skip_main_prologue): Update.
4384 (frv_frame_this_id): Update.
4385 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4386 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4387 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4388 (gnuv3_skip_trampoline): Update.
4389 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4390 (hppa64_hpux_in_solib_call_trampoline): Update.
4391 (hppa_hpux_skip_trampoline_code): Update.
4392 (hppa64_hpux_search_dummy_call_sequence): Update.
4393 (hppa_hpux_find_import_stub_for_addr): Update.
4394 (hppa_hpux_find_dummy_bpaddr): Update.
4395 * hppa-tdep.c (hppa_symbol_address)
4396 (hppa_lookup_stub_minimal_symbol): Update.
4397 * i386-tdep.c (i386_skip_main_prologue): Update.
4398 (i386_pe_skip_trampoline_code): Update.
4399 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4400 * infcall.c (get_function_name): Update.
4401 * infcmd.c (until_next_command): Update.
4402 * jit.c (jit_breakpoint_re_set_internal): Update.
4403 (jit_inferior_init): Update.
4404 * linespec.c (minsym_found): Update.
4405 (add_minsym): Update.
4406 * linux-fork.c (info_checkpoints_command): Update.
4407 * linux-nat.c (get_signo): Update.
4408 * linux-thread-db.c (inferior_has_bug): Update.
4409 * m32c-tdep.c (m32c_return_value): Update.
4410 (m32c_m16c_address_to_pointer): Update.
4411 (m32c_m16c_pointer_to_address): Update.
4412 * m32r-tdep.c (m32r_frame_this_id): Update.
4413 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4414 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4415 * maint.c (maintenance_translate_address): Update.
4416 * minsyms.c (add_minsym_to_hash_table): Update.
4417 (add_minsym_to_demangled_hash_table): Update.
4418 (msymbol_objfile): Update.
4419 (lookup_minimal_symbol): Update.
4420 (iterate_over_minimal_symbols): Update.
4421 (lookup_minimal_symbol_text): Update.
4422 (lookup_minimal_symbol_by_pc_name): Update.
4423 (lookup_minimal_symbol_solib_trampoline): Update.
4424 (lookup_minimal_symbol_by_pc_section_1): Update.
4425 (lookup_minimal_symbol_and_objfile): Update.
4426 (prim_record_minimal_symbol_full): Update.
4427 (compare_minimal_symbols): Update.
4428 (compact_minimal_symbols): Update.
4429 (build_minimal_symbol_hash_tables): Update.
4430 (install_minimal_symbols): Update.
4431 (terminate_minimal_symbol_table): Update.
4432 (find_solib_trampoline_target): Update.
4433 (minimal_symbol_upper_bound): Update.
4434 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4435 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4436 (mips_skip_pic_trampoline_code): Update.
4437 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4438 * objc-lang.c (selectors_info): Update.
4439 (classes_info): Update.
4440 (find_methods): Update.
4441 (find_imps): Update.
4442 (find_objc_msgsend): Update.
4443 * objfiles.c (objfile_relocate1): Update.
4444 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4445 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4446 * p-valprint.c (pascal_val_print): Update.
4447 * parse.c (write_exp_msymbol): Update.
4448 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4449 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4450 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4451 * printcmd.c (build_address_symbolic): Update.
4453 (address_info): Update.
4454 * proc-service.c (ps_pglobal_lookup): Update.
4455 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4456 (find_pc_sect_psymtab): Update.
4457 * python/py-framefilter.c (py_print_frame): Update.
4458 * ravenscar-thread.c (get_running_thread_id): Update.
4459 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4461 * remote.c (remote_check_symbols): Update.
4462 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4463 (rs6000_skip_trampoline_code): Update.
4464 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4465 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4466 * solib-dsbt.c (lm_base): Update.
4467 * solib-frv.c (lm_base): Update.
4469 * solib-irix.c (locate_base): Update.
4470 * solib-som.c (som_solib_create_inferior_hook): Update.
4471 (som_solib_desire_dynamic_linker_symbols): Update.
4472 (link_map_start): Update.
4473 * solib-spu.c (spu_enable_break): Update.
4474 (ocl_enable_break): Update.
4475 * solib-svr4.c (elf_locate_base): Update.
4476 (enable_break): Update.
4477 * spu-tdep.c (spu_get_overlay_table): Update.
4478 (spu_catch_start): Update.
4479 (flush_ea_cache): Update.
4480 * stabsread.c (define_symbol): Update.
4481 (scan_file_globals): Update.
4482 * stack.c (find_frame_funname): Update.
4483 (frame_info): Update.
4484 * symfile.c (simple_read_overlay_table): Update.
4485 (simple_overlay_update): Update.
4486 * symmisc.c (dump_msymbols): Update.
4487 * symtab.c (fixup_section): Update.
4488 (find_pc_sect_line): Update.
4489 (skip_prologue_sal): Update.
4490 (search_symbols): Update.
4491 (print_msymbol_info): Update.
4492 (rbreak_command): Update.
4493 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4494 (completion_list_objc_symbol): Update.
4495 (default_make_symbol_completion_list_break_on): Update.
4496 * tracepoint.c (scope_info): Update.
4497 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4498 (tui_get_begin_asm_address): Update.
4499 * valops.c (find_function_in_inferior): Update.
4500 * value.c (value_static_field): Update.
4501 (value_fn_field): Update.
4503 2014-02-26 Tom Tromey <tromey@redhat.com>
4505 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4506 bound minimal symbols. Move code that knows about minsym
4508 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4510 * minsyms.h (minimal_symbol_upper_bound): Declare.
4511 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4512 minimal_symbol_upper_bound.
4514 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4516 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4517 Use the type's name if its basic type does not have a tag.
4519 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4521 * dwarf2read.c (read_subrange_type): Add comment.
4523 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4525 * dwarf2read.c (update_enumeration_type_from_children): New
4526 function, mostly extracted from process_structure_scope.
4527 (read_enumeration_type): Call update_enumeration_type_from_children.
4528 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4529 and flag_flag_enum fields.
4531 2014-02-26 Pedro Alves <palves@redhat.com>
4533 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4534 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4535 to_xfer_partial method.
4537 2014-02-26 Pedro Alves <palves@redhat.com>
4539 * target.c (complete_target_initialization): Don't install
4540 default_xfer_partial as to_xfer_partial hook.
4542 (update_current_target): Don't INHERIT nor de_fault
4543 deprecated_xfer_memory. Delete de_fault macro.
4544 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4545 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4546 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4549 2014-02-26 Pedro Alves <palves@redhat.com>
4551 * go32-nat.c (my_write_child): New function.
4552 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4553 (go32_xfer_partial): New function.
4554 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4555 Instead install a to_xfer_partial hook.
4557 2014-02-26 Pedro Alves <palves@redhat.com>
4559 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4560 to_xfer_partial helper. Rewrite.
4561 (procfs_xfer_partial): New function.
4562 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4563 Install a to_xfer_partial hook.
4565 2014-02-26 Pedro Alves <palves@redhat.com>
4567 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4568 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4569 (m32r_xfer_partial): New function.
4570 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4571 Install a to_xfer_partial hook.
4573 2014-02-26 Pedro Alves <palves@redhat.com>
4575 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4577 (mips_xfer_partial): New function.
4578 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4579 hook. Install a to_xfer_partial hook.
4581 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4583 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4584 * gdbtypes.c (create_array_type_with_stride): New function,
4585 renaming create_array_type, but with an added parameter
4586 called "bit_stride".
4587 (create_array_type): Re-implement using
4588 create_array_type_with_stride.
4589 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4590 and DW_AT_bit_stride attributes.
4592 2014-02-26 Pedro Alves <palves@redhat.com>
4594 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4595 task-specific breakpoints.
4597 2014-02-25 Pedro Alves <palves@redhat.com>
4599 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4600 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4602 2014-02-25 Stan Shebs <stan@codesourcery.com>
4604 * defs.h: Annotate comments for Doxygen.
4606 2014-02-25 Tom Tromey <tromey@redhat.com>
4608 * target.h (target_ignore): Don't declare.
4609 * target.c (target_ignore): Remove.
4611 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4614 * auto-load.c (auto_load_objfile_script_1): Change filename to
4617 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4619 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4620 documentation. Adjust prototype to match the target_ops
4621 to_xfer_partial method. Adjust implementation accordingly.
4623 2014-02-25 Hui Zhu <hui@codesourcery.com>
4625 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4628 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4630 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4631 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4632 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4633 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4634 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4635 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4636 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4637 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4639 (rl78_register_type): Use a data pointer type for SP and
4640 new pseudo registers mentioned above. Use a 16 bit integer
4641 type for all other register pairs.
4642 (rl78_register_name, rl78_g10_register_name): Update for
4643 new pseudo registers.
4644 (rl78_pseudo_register_read): Likewise.
4645 (rl78_pseudo_register_write): Likewise.
4646 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4647 to the newly added pseudo registers.
4649 2014-02-24 Doug Evans <dje@google.com>
4651 * value.c (record_latest_value): Fix comment.
4652 * printcmd.c (print_command_1): Remove code to handle -1 return from
4653 record_latest_value.
4655 2014-02-24 Pedro Alves <palves@redhat.com>
4657 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4658 deprecated_xfer_memory hook.
4659 (procfs_xfer_partial): Call procfs_xfer_memory instead
4660 of the deprecated_xfer_memory target hook.
4661 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4664 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4666 * windows-nat.c (windows_xfer_shared_libraries): Return
4667 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4668 requested object is TARGET_OBJECT_LIBRARIES.
4670 2014-02-24 Yao Qi <yao@codesourcery.com>
4672 * target.h (enum target_xfer_status)
4673 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4674 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4676 * corefile.c (memory_error_message): User updated.
4677 * exec.c (section_table_read_available_memory): Likewise.
4678 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4679 * target.c (target_xfer_status_to_string): Likewise.
4680 (raw_memory_xfer_partial): Likewise.
4681 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4682 * valops.c (read_value_memory): Likewise.
4683 * exec.h: Update comments.
4685 2014-02-24 Yao Qi <yao@codesourcery.com>
4687 * target.c (target_xfer_status_to_string): Rename argument err
4689 * target.h (target_xfer_status_to_string): Update declaration.
4690 Replace target_xfer_error_to_string with
4691 target_xfer_status_to_string in comment.
4693 2014-02-24 Yao Qi <yao@codesourcery.com>
4695 * mips-linux-nat.c (super_close): Update its type.
4696 (mips_linux_close): Pass 'self' to super_close.
4698 2014-02-24 Yao Qi <yao@codesourcery.com>
4700 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4701 * corefile.c (read_memory): Adjusted.
4702 * target.c (target_write_with_progress): Adjusted.
4704 2014-02-23 Yao Qi <yao@codesourcery.com>
4708 2013-10-25 Yao Qi <yao@codesourcery.com>
4710 * remote.c (remote_traceframe_info): Return early if
4711 traceframe is not selected.
4713 2013-07-19 Yao Qi <yao@codesourcery.com>
4715 * target.c (update_current_target): Change the default action
4716 of 'to_traceframe_info' from tcomplain to return_zero.
4717 * target.h (struct target_ops) <to_traceframe_info>: Add more
4720 2014-02-23 Yao Qi <yao@codesourcery.com>
4722 * valops.c (read_value_memory): Rewrite it. Call
4723 target_xfer_partial in a loop.
4724 * exec.h (section_table_available_memory): Remove declaration.
4725 Move comments to ...
4726 * exec.c (section_table_available_memory): ... here. Make it
4729 2014-02-23 Yao Qi <yao@codesourcery.com>
4731 * exec.c (section_table_read_available_memory): New function.
4732 * exec.h (section_table_read_available_memory): Declare.
4733 * ctf.c (ctf_xfer_partial): Call
4734 section_table_read_available_memory.
4735 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4737 2014-02-23 Yao Qi <yao@codesourcery.com>
4739 * ctf.c (ctf_xfer_partial): Move code to ...
4740 * exec.c (exec_read_partial_read_only): ... it. New function.
4741 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4742 * tracefile.c: Include "exec.h".
4743 * exec.h (exec_read_partial_read_only): Declare.
4745 2014-02-23 Yao Qi <yao@codesourcery.com>
4747 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4748 (tfile_has_memory): Remove.
4749 (init_tfile_ops): Don't set fields to_has_all_memory and
4750 to_has_memory of tfile_ops.
4751 * tracefile.c (tracefile_has_all_memory): New function.
4752 (tracefile_has_memory): New function.
4753 (init_tracefile_ops): Initialize fields to_has_all_memory and
4754 to_has_memory of 'ops'.
4756 2014-02-23 Yao Qi <yao@codesourcery.com>
4758 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4759 (ctf_thread_alive, ctf_get_trace_status): Remove.
4760 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4762 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4763 (tfile_has_stack, tfile_has_registers): Remove.
4764 (tfile_thread_alive): Remove.
4765 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4767 * tracefile.c (tracefile_has_stack): New function.
4768 (tracefile_has_registers): New function.
4769 (tracefile_thread_alive): New function.
4770 (tracefile_get_trace_status): New function.
4771 (init_tracefile_ops): New function.
4772 * tracefile.h (init_tracefile_ops): Declare.
4774 2014-02-23 Yao Qi <yao@codesourcery.com>
4776 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4777 (O_LARGEFILE): Likewise.
4778 (tfile_ops): Likewise.
4779 (TRACE_HEADER_SIZE): Likewise.
4780 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4781 (cur_data_size): Likewise.
4782 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4783 (tfile_close, tfile_files_info): Likewise.
4784 (tfile_get_trace_status): Likewise.
4785 (tfile_get_tracepoint_status): Likewise.
4786 (tfile_get_traceframe_address): Likewise.
4787 (tfile_trace_find, match_blocktype): Likewise.
4788 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4789 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4790 (tfile_get_trace_state_variable_value): Likewise.
4791 (tfile_has_all_memory, tfile_has_memory): Likewise.
4792 (tfile_has_stack, tfile_has_registers): Likewise.
4793 (tfile_thread_alive, build_traceframe_info): Likewise.
4794 (tfile_traceframe_info, init_tfile_ops): Likewise.
4795 (_initialize_tracepoint): Don't call init_tfile_ops
4796 and add_target_with_completer.
4797 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4798 exec.h, completer.h and filenames.h.
4799 (_initialize_tracefile_tfile): New function.
4801 2014-02-23 Yao Qi <yao@codesourcery.com>
4803 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4805 (HFILES_NO_SRCDIR): Add tracefile.h.
4806 * ctf.c: Include "tracefile.h".
4807 * tracefile.h: New file.
4808 * tracefile.c: New file
4809 * tracefile-tfile.c: New file.
4810 * tracepoint.c: Include "tracefile.h".
4811 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4812 (stop_reason_names): Add const.
4813 (trace_file_writer_xfree): Move it to tracefile.c.
4814 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4815 (trace_save_ctf): Likewise.
4816 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4817 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4818 (tfile_write_header, tfile_write_regblock_type): Likewise.
4819 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4820 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4821 (tfile_write_raw_data, tfile_end): Likewise.
4822 (tfile_trace_file_writer_new): Likewise.
4823 (free_uploaded_tp): Make it extern.
4824 (free_uploaded_tsv): Make it extern.
4825 (_initialize_tracepoint): Move code to register command 'tsave'
4827 * tracepoint.h (stop_reason_names): Declare.
4828 (struct trace_frame_write_ops): Move it to tracefile.h.
4829 (struct trace_file_write_ops): Likewise.
4830 (struct trace_file_writer): Likewise.
4831 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4833 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4838 (get_cores_used_by_process): New parameter num_cores, use it.
4839 (linux_xfer_osdata_processes): Pass num_cores to it.
4840 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4843 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4845 * target.c (memory_xfer_partial): Fix length arg in call to
4846 breakpoint_xfer_memory.
4848 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4851 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4852 number comes after the + or - signs. Adjust length of register
4853 name to be extracted.
4855 2014-02-20 Tom Tromey <tromey@redhat.com>
4857 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4858 (ada_varobj_ops): Mark "extern".
4860 2014-02-20 Tom Tromey <tromey@redhat.com>
4862 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4864 2014-02-20 Doug Evans <xdje42@gmail.com>
4866 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4867 All callers updated.
4868 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4869 All callers updated.
4870 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4871 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4873 2014-02-20 lin zuojian <manjian2006@gmail.com>
4874 Joel Brobecker <brobecker@adacore.com>
4875 Doug Evans <xdje42@gmail.com>
4878 * dwarf2read.c (struct die_info): New member in_process.
4879 (reset_die_in_process): New function.
4880 (process_die): Set it at the start, reset when returning.
4881 (inherit_abstract_dies): Only call process_die if origin_child_die
4882 not already being processed.
4884 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4886 * windows-nat.c (handle_unload_dll): Add function documentation.
4887 (do_initial_windows_stuff): Add comment explaining why we wait
4888 until after inferior initialization has finished before
4889 processing all DLLs.
4891 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4893 * windows-nat.c (get_module_name): Delete.
4894 (windows_get_exec_module_filename): New function, mostly
4895 inspired from get_module_name.
4896 (windows_pid_to_exec_file): Replace call to get_module_name
4897 by call to windows_get_exec_module_filename.
4899 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4901 * windows-nat.c (handle_load_dll): Rewrite this function's
4902 introductory comment. Remove code using get_module_name
4903 to get the DLL's name.
4905 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4907 * windows-nat.c (get_windows_debug_event): Ignore
4908 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4909 if windows_initialization_done == 0.
4910 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4911 Adjust implementation to always load all DLLs.
4912 (do_initial_windows_stuff): Replace call to
4913 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4915 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4917 * windows-nat.c (_initialize_windows_nat): Deprecate the
4918 "dll-symbols" command. Turn the "add-shared-symbol-files"
4919 and "assf" aliases into commands, and deprecate them as well.
4920 * NEWS: Add entry explaining that "dll-symbols" and its two
4921 aliases are now deprecated.
4923 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4925 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4926 new-line in debug string. Remove trailing spaces.
4928 2014-02-19 Stan Shebs <stan@codesourcery.com>
4930 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4932 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4934 * NEWS: Add entry for the new feature
4935 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4938 2014-02-19 Stan Shebs <stan@codesourcery.com>
4940 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4942 2014-02-19 Pedro Alves <palves@redhat.com>
4944 * common/ptid.h (struct ptid): Mention that process_stratum
4945 targets should prefer ptid.lwp.
4947 2014-02-19 Pedro Alves <palves@redhat.com>
4949 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4950 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4951 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4952 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4953 store remote thread ids rather than ptid.tid.
4954 (_initialize_remote): Adjust.
4956 2014-02-19 Tom Tromey <tromey@redhat.com>
4958 * target.c (target_get_unwinder): Rewrite.
4959 (target_get_tailcall_unwinder): Rewrite.
4960 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4961 (record_btrace_to_get_tailcall_unwinder): New function.
4962 (init_record_btrace_ops): Update.
4963 * target.h (struct target_ops) <to_get_unwinder,
4964 to_get_tailcall_unwinder>: Now function pointers. Use
4965 TARGET_DEFAULT_RETURN.
4967 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4971 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4973 2014-02-19 Tom Tromey <tromey@redhat.com>
4975 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4977 * target-delegates.c: Rebuild.
4978 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4979 TARGET_DEFAULT_FUNC.
4980 * target.c (default_target_decr_pc_after_break): Rename from
4981 forward_target_decr_pc_after_break. Simplify.
4982 (target_decr_pc_after_break): Rely on delegation.
4984 2014-02-19 Tom Tromey <tromey@redhat.com>
4986 * target.c (update_current_target): Do not INHERIT to_doc or
4987 to_magic. Do not de_fault to_open or to_close.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * gcore.h (objfile_find_memory_regions): Declare.
4992 * gcore.c (objfile_find_memory_regions): No longer static. Add
4994 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4995 * exec.c: Include gcore.h.
4996 (exec_set_find_memory_regions): Remove.
4997 (exec_find_memory_regions): Remove.
4998 (exec_do_find_memory_regions): Remove.
4999 (init_exec_ops): Update.
5000 * defs.h (exec_set_find_memory_regions): Remove.
5002 2014-02-19 Tom Tromey <tromey@redhat.com>
5004 * target-delegates.c: Rebuild.
5005 * target.h (struct target_ops) <to_extra_thread_info,
5006 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5007 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5008 not 0, in TARGET_DEFAULT_RETURN.
5010 2014-02-19 Tom Tromey <tromey@redhat.com>
5012 * target.c (complete_target_initialization): Remove casts. Use
5013 return_zero_has_execution.
5014 (return_zero): Add "ignore" argument.
5015 (return_zero_has_execution): New function.
5016 (init_dummy_target): Remove casts. Use
5017 return_zero_has_execution.
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5021 * target.c (update_current_target): Update comments. Do not
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5028 * corelow.c (core_read_description): Delegate when needed.
5029 * remote.c (remote_read_description): Delegate when needed.
5030 * target-delegates.c: Rebuild.
5031 * target.c (target_read_description): Rewrite.
5032 * target.h (struct target_ops) <to_read_description>: Update
5033 comment. Use TARGET_DEFAULT_RETURN.
5035 2014-02-19 Tom Tromey <tromey@redhat.com>
5037 * target-delegates.c: Rebuild.
5038 * target.c (update_current_target): Don't inherit or default
5040 (find_default_run_target): Check against delegate_can_run.
5041 * target.h (struct target_ops) <to_can_run>: Use
5042 TARGET_DEFAULT_RETURN.
5044 2014-02-19 Tom Tromey <tromey@redhat.com>
5046 * target-delegates.c: Rebuild.
5047 * target.c (target_disconnect): Unconditionally delegate.
5048 * target.h (struct target_ops) <to_disconnect>: Use
5049 TARGET_DEFAULT_NORETURN.
5051 2014-02-19 Tom Tromey <tromey@redhat.com>
5053 * record.c (record_stop): Unconditionally delegate.
5054 * target-delegates.c: Rebuild.
5055 * target.c (target_stop_recording): Unconditionally delegate.
5056 * target.h (struct target_ops) <to_stop_recording>: Use
5057 TARGET_DEFAULT_IGNORE.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: Rebuild.
5062 * target.c (target_enable_btrace): Unconditionally delegate.
5063 * target.h (struct target_ops) <to_enable_btrace>: Use
5064 TARGET_DEFAULT_NORETURN.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * target-delegates.c: Rebuild.
5069 * target.c (target_read_btrace): Unconditionally delegate.
5070 * target.h (struct target_ops) <to_read_btrace>: Use
5071 TARGET_DEFAULT_NORETURN.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (target_teardown_btrace): Unconditionally delegate.
5077 * target.h (struct target_ops) <to_teardown_btrace>: Use
5078 TARGET_DEFAULT_NORETURN.
5080 2014-02-19 Tom Tromey <tromey@redhat.com>
5082 * target-delegates.c: Rebuild.
5083 * target.c (target_disable_btrace): Unconditionally delegate.
5084 * target.h (struct target_ops) <to_disable_btrace>: Use
5085 TARGET_DEFAULT_NORETURN.
5087 2014-02-19 Tom Tromey <tromey@redhat.com>
5089 * target-delegates.c: Rebuild.
5090 * target.c (default_search_memory): New function.
5091 (simple_search_memory): Update comment.
5092 (target_search_memory): Unconditionally delegate.
5093 * target.h (struct target_ops) <to_search_memory>: Use
5094 TARGET_DEFAULT_FUNC.
5096 2014-02-19 Tom Tromey <tromey@redhat.com>
5098 * auxv.c (default_auxv_parse): No longer static.
5099 (target_auxv_parse): Unconditionally delegate.
5100 * auxv.h (default_auxv_parse): Declare.
5101 * target-delegates.c: Rebuild.
5102 * target.c: Include auxv.h.
5103 * target.h (struct target_ops) <to_auxv_parse>: Use
5104 TARGET_DEFAULT_FUNC.
5106 2014-02-19 Tom Tromey <tromey@redhat.com>
5108 * target-delegates.c: Rebuild.
5109 * target.c (target_memory_map): Unconditionally delegate.
5110 * target.h (struct target_ops) <to_memory_map>: Use
5111 TARGET_DEFAULT_RETURN.
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target-delegates.c: Rebuild.
5116 * target.c (target_thread_alive): Unconditionally delegate.
5117 * target.h (struct target_ops) <to_thread_alive>: Use
5118 TARGET_DEFAULT_RETURN.
5120 2014-02-19 Tom Tromey <tromey@redhat.com>
5122 * target-delegates.c: Rebuild.
5123 * target.c (target_save_record): Unconditionally delegate.
5124 * target.h (struct target_ops) <to_save_record>: Use
5125 TARGET_DEFAULT_NORETURN.
5127 2014-02-19 Tom Tromey <tromey@redhat.com>
5129 * target-delegates.c: Rebuild.
5130 * target.c (target_delete_record): Unconditionally delegate.
5131 * target.h (struct target_ops) <to_delete_record>: Use
5132 TARGET_DEFAULT_NORETURN.
5134 2014-02-19 Tom Tromey <tromey@redhat.com>
5136 * target-delegates.c: Rebuild.
5137 * target.c (target_record_is_replaying): Unconditionally
5139 * target.h (struct target_ops) <to_record_is_replaying>: Use
5140 TARGET_DEFAULT_RETURN.
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target-delegates.c: Rebuild.
5145 * target.c (target_goto_record_begin): Unconditionally delegate.
5146 * target.h (struct target_ops) <to_goto_record_begin>: Use
5147 TARGET_DEFAULT_NORETURN.
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target-delegates.c: Rebuild.
5152 * target.c (target_goto_record_end): Unconditionally delegate.
5153 * target.h (struct target_ops) <to_goto_record_end>: Use
5154 TARGET_DEFAULT_NORETURN.
5156 2014-02-19 Tom Tromey <tromey@redhat.com>
5158 * target-delegates.c: Rebuild.
5159 * target.c (target_goto_record): Unconditionally delegate.
5160 * target.h (struct target_ops) <to_goto_record>: Use
5161 TARGET_DEFAULT_NORETURN.
5163 2014-02-19 Tom Tromey <tromey@redhat.com>
5165 * target-delegates.c: Rebuild.
5166 * target.c (target_insn_history): Unconditionally delegate.
5167 * target.h (struct target_ops) <to_insn_history>: Use
5168 TARGET_DEFAULT_NORETURN.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target-delegates.c: Rebuild.
5173 * target.c (target_insn_history_from): Unconditionally delegate.
5174 * target.h (struct target_ops) <to_insn_history_from>: Use
5175 TARGET_DEFAULT_NORETURN.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target-delegates.c: Rebuild.
5180 * target.c (target_insn_history_range): Unconditionally delegate.
5181 * target.h (struct target_ops) <to_insn_history_range>: Use
5182 TARGET_DEFAULT_NORETURN.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target-delegates.c: Rebuild.
5187 * target.c (target_call_history): Unconditionally delegate.
5188 * target.h (struct target_ops) <to_call_history>: Use
5189 TARGET_DEFAULT_NORETURN.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * target-delegates.c: Rebuild.
5194 * target.c (target_call_history_from): Unconditionally delegate.
5195 * target.h (struct target_ops) <to_call_history_from>: Use
5196 TARGET_DEFAULT_NORETURN.
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (target_call_history_range): Unconditionally delegate.
5202 * target.h (struct target_ops) <to_call_history_range>: Use
5203 TARGET_DEFAULT_NORETURN.
5205 2014-02-19 Tom Tromey <tromey@redhat.com>
5207 * target-delegates.c: Rebuild.
5208 * target.c (target_verify_memory): Unconditionally delegate.
5209 * target.h (struct target_ops) <to_verify_memory>: Use
5210 TARGET_DEFAULT_NORETURN.
5212 2014-02-19 Tom Tromey <tromey@redhat.com>
5214 * target-delegates.c: Rebuild.
5215 * target.c (target_core_of_thread): Unconditionally delegate.
5216 * target.h (struct target_ops) <to_core_of_thread>: Use
5217 TARGET_DEFAULT_RETURN.
5219 2014-02-19 Tom Tromey <tromey@redhat.com>
5221 * target-delegates.c: Rebuild.
5222 * target.c (target_flash_done): Unconditionally delegate.
5223 * target.h (struct target_ops) <to_flash_done>: Use
5224 TARGET_DEFAULT_NORETURN.
5226 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * target-delegates.c: Rebuild.
5229 * target.c (target_flash_erase): Unconditionally delegate.
5230 * target.h (struct target_ops) <to_flash_erase>: Use
5231 TARGET_DEFAULT_NORETURN.
5233 2014-02-19 Tom Tromey <tromey@redhat.com>
5235 * target-delegates.c: Rebuild.
5236 * target.c (target_get_section_table): Unconditionally delegate.
5237 * target.h (struct target_ops) <to_get_section_table>: Use
5238 TARGET_DEFAULT_RETURN.
5240 2014-02-19 Tom Tromey <tromey@redhat.com>
5242 * target-delegates.c: Rebuild.
5243 * target.c (target_pid_to_str): Unconditionally delegate.
5244 (init_dummy_target): Don't initialize to_pid_to_str.
5245 (default_pid_to_str): Rename from dummy_pid_to_str.
5246 * target.h (struct target_ops) <to_pid_to_str>: Use
5247 TARGET_DEFAULT_FUNC.
5249 2014-02-19 Tom Tromey <tromey@redhat.com>
5251 * target-delegates.c: Rebuild.
5252 * target.c (target_find_new_threads): Unconditionally delegate.
5253 * target.h (struct target_ops) <to_find_new_threads>: Use
5254 TARGET_DEFAULT_RETURN.
5256 2014-02-19 Tom Tromey <tromey@redhat.com>
5258 * target-delegates.c: Rebuild.
5259 * target.c (target_program_signals): Unconditionally delegate.
5260 * target.h (struct target_ops) <to_program_signals>: Use
5261 TARGET_DEFAULT_IGNORE.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target-delegates.c: Rebuild.
5266 * target.c (target_pass_signals): Unconditionally delegate.
5267 * target.h (struct target_ops) <to_pass_signals>: Use
5268 TARGET_DEFAULT_IGNORE.
5270 2014-02-19 Tom Tromey <tromey@redhat.com>
5272 * target-delegates.c: Rebuild.
5273 * target.c (default_mourn_inferior): New function.
5274 (target_mourn_inferior): Unconditionally delegate.
5275 * target.h (struct target_ops) <to_mourn_inferior>: Use
5276 TARGET_DEFAULT_FUNC.
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5280 * target-delegates.c: Rebuild.
5281 * target.c (default_follow_fork): New function.
5282 (target_follow_fork): Unconditionally delegate.
5283 * target.h (struct target_ops) <to_follow_fork>: Use
5284 TARGET_DEFAULT_FUNC.
5286 2014-02-19 Tom Tromey <tromey@redhat.com>
5288 * target-delegates.c: Rebuild.
5289 * target.c (target_kill): Unconditionally delegate.
5290 * target.h (struct target_ops) <to_kill>: Use
5291 TARGET_DEFAULT_NORETURN.
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target-delegates.c: Rebuild.
5296 * target.c (target_masked_watch_num_registers): Unconditionally
5298 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5299 Use TARGET_DEFAULT_RETURN.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target-delegates.c: Rebuild.
5304 * target.c (target_remove_mask_watchpoint): Unconditionally
5306 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5307 TARGET_DEFAULT_RETURN.
5309 2014-02-19 Tom Tromey <tromey@redhat.com>
5311 * target-delegates.c: Rebuild.
5312 * target.c (target_insert_mask_watchpoint): Unconditionally
5314 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5315 TARGET_DEFAULT_RETURN.
5317 2014-02-19 Tom Tromey <tromey@redhat.com>
5319 * target-delegates.c: Rebuild.
5320 * target.c (target_ranged_break_num_registers): Unconditionally
5322 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5323 Use TARGET_DEFAULT_RETURN.
5325 2014-02-19 Tom Tromey <tromey@redhat.com>
5327 * target-delegates.c: Rebuild.
5328 * target.c (target_fetch_registers): Unconditionally delegate.
5329 * target.h (struct target_ops) <to_fetch_registers>: Use
5330 TARGET_DEFAULT_NORETURN.
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target-delegates.c: Rebuild.
5335 * target.c (update_current_target): Don't inherit or default
5337 * target.h (struct target_ops) <to_stop>: Use
5338 TARGET_DEFAULT_IGNORE.
5340 2014-02-19 Tom Tromey <tromey@redhat.com>
5342 * target-delegates.c: Rebuild.
5343 * target.c (update_current_target): Don't inherit or default
5344 to_can_run_breakpoint_commands.
5345 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5346 Use TARGET_DEFAULT_RETURN.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * target-delegates.c: Rebuild.
5351 * target.c (update_current_target): Don't inherit or default
5352 to_supports_evaluation_of_breakpoint_conditions.
5353 * target.h (struct target_ops)
5354 <to_supports_evaluation_of_breakpoint_conditions>: Use
5355 TARGET_DEFAULT_RETURN.
5357 2014-02-19 Tom Tromey <tromey@redhat.com>
5359 * target-delegates.c: Rebuild.
5360 * target.c (update_current_target): Don't inherit or default
5361 to_augmented_libraries_svr4_read.
5362 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5363 Use TARGET_DEFAULT_RETURN.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * target-delegates.c: Rebuild.
5368 * target.c (update_current_target): Don't inherit or default
5370 * target.h (struct target_ops) <to_can_use_agent>: Use
5371 TARGET_DEFAULT_RETURN.
5373 2014-02-19 Tom Tromey <tromey@redhat.com>
5375 * target-delegates.c: Rebuild.
5376 * target.c (update_current_target): Don't inherit or default
5378 * target.h (struct target_ops) <to_use_agent>: Use
5379 TARGET_DEFAULT_NORETURN.
5381 2014-02-19 Tom Tromey <tromey@redhat.com>
5383 * target-delegates.c: Rebuild.
5384 * target.c (update_current_target): Don't inherit or default
5386 (return_null): Remove.
5387 * target.h (struct target_ops) <to_traceframe_info>: Use
5388 TARGET_DEFAULT_RETURN.
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target-delegates.c: Rebuild.
5393 * target.c (update_current_target): Don't inherit or default
5394 to_static_tracepoint_markers_by_strid.
5395 * target.h (struct target_ops)
5396 <to_static_tracepoint_markers_by_strid>: Use
5397 TARGET_DEFAULT_NORETURN.
5399 2014-02-19 Tom Tromey <tromey@redhat.com>
5401 * target-delegates.c: Rebuild.
5402 * target.c (update_current_target): Don't inherit or default
5403 to_static_tracepoint_marker_at.
5404 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5405 Use TARGET_DEFAULT_RETURN.
5407 2014-02-19 Tom Tromey <tromey@redhat.com>
5409 * target-delegates.c: Rebuild.
5410 * target.c (update_current_target): Don't inherit or default
5412 * target.h (struct target_ops) <to_set_permissions>: Use
5413 TARGET_DEFAULT_IGNORE.
5415 2014-02-19 Tom Tromey <tromey@redhat.com>
5417 * target-delegates.c: Rebuild.
5418 * target.c (update_current_target): Don't inherit or default
5420 * target.h (struct target_ops) <to_get_tib_address>: Use
5421 TARGET_DEFAULT_NORETURN.
5423 2014-02-19 Tom Tromey <tromey@redhat.com>
5425 * target-delegates.c: Rebuild.
5426 * target.c (update_current_target): Don't inherit or default
5428 * target.h (struct target_ops) <to_set_trace_notes>: Use
5429 TARGET_DEFAULT_RETURN.
5431 2014-02-19 Tom Tromey <tromey@redhat.com>
5433 * target-delegates.c: Rebuild.
5434 * target.c (update_current_target): Don't initialize
5435 to_set_trace_buffer_size.
5436 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5437 TARGET_DEFAULT_IGNORE.
5439 2014-02-19 Tom Tromey <tromey@redhat.com>
5441 * target-delegates.c: Rebuild.
5442 * target.c (update_current_target): Don't inherit or default
5443 to_set_circular_trace_buffer.
5444 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5445 TARGET_DEFAULT_IGNORE.
5447 2014-02-19 Tom Tromey <tromey@redhat.com>
5449 * target-delegates.c: Rebuild.
5450 * target.c (update_current_target): Don't inherit or default
5451 to_set_disconnected_tracing.
5452 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5453 TARGET_DEFAULT_IGNORE.
5455 2014-02-19 Tom Tromey <tromey@redhat.com>
5457 * target-delegates.c: Rebuild.
5458 * target.c (update_current_target): Don't inherit or default
5459 to_get_min_fast_tracepoint_insn_len.
5460 (return_minus_one): Remove.
5461 * target.h (struct target_ops)
5462 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5466 * target-delegates.c: Rebuild.
5467 * target.c (update_current_target): Don't inherit or default
5468 to_get_raw_trace_data.
5469 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5470 TARGET_DEFAULT_NORETURN.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target-delegates.c: Rebuild.
5475 * target.c (update_current_target): Don't inherit or default
5476 to_upload_trace_state_variables.
5477 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5478 Use TARGET_DEFAULT_RETURN.
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5484 to_upload_tracepoints.
5485 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5486 TARGET_DEFAULT_RETURN.
5488 2014-02-19 Tom Tromey <tromey@redhat.com>
5490 * target-delegates.c: Rebuild.
5491 * target.c (update_current_target): Don't inherit or default
5493 * target.h (struct target_ops) <to_save_trace_data>: Use
5494 TARGET_DEFAULT_NORETURN.
5496 2014-02-19 Tom Tromey <tromey@redhat.com>
5498 * target-delegates.c: Rebuild.
5499 * target.c (update_current_target): Don't inherit or default
5500 to_get_trace_state_variable_value.
5501 * target.h (struct target_ops)
5502 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5504 2014-02-19 Tom Tromey <tromey@redhat.com>
5506 * target-delegates.c: Rebuild.
5507 * target.c (update_current_target): Don't inherit or default
5509 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5511 2014-02-19 Tom Tromey <tromey@redhat.com>
5513 * target-delegates.c: Rebuild.
5514 * target.c (update_current_target): Don't inherit or default
5516 * target.h (struct target_ops) <to_trace_stop>: Use
5517 TARGET_DEFAULT_NORETURN.
5519 2014-02-19 Tom Tromey <tromey@redhat.com>
5521 * target-delegates.c: Rebuild.
5522 * target.c (update_current_target): Don't inherit or default
5523 to_get_tracepoint_status.
5524 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5525 TARGET_DEFAULT_NORETURN.
5527 2014-02-19 Tom Tromey <tromey@redhat.com>
5529 * target-delegates.c: Rebuild.
5530 * target.c (update_current_target): Don't inherit or default
5531 to_get_trace_status.
5532 * target.h (struct target_ops) <to_get_trace_status>: Use
5533 TARGET_DEFAULT_RETURN.
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * target-delegates.c: Rebuild.
5538 * target.c (update_current_target): Don't inherit or default
5540 * target.h (struct target_ops) <to_trace_start>: Use
5541 TARGET_DEFAULT_NORETURN.
5543 2014-02-19 Tom Tromey <tromey@redhat.com>
5545 * target-delegates.c: Rebuild.
5546 * target.c (update_current_target): Don't inherit or default
5547 to_trace_set_readonly_regions.
5548 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5549 Use TARGET_DEFAULT_NORETURN.
5551 2014-02-19 Tom Tromey <tromey@redhat.com>
5553 * target-delegates.c: Rebuild.
5554 * target.c (update_current_target): Don't inherit or default
5555 to_disable_tracepoint.
5556 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5557 TARGET_DEFAULT_NORETURN.
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target-delegates.c: Rebuild.
5562 * target.c (update_current_target): Don't inherit or default
5563 to_enable_tracepoint.
5564 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5565 TARGET_DEFAULT_NORETURN.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target-delegates.c: Rebuild.
5570 * target.c (update_current_target): Don't inherit or default
5571 to_download_trace_state_variable.
5572 * target.h (struct target_ops) <to_download_trace_state_variable>:
5573 Use TARGET_DEFAULT_NORETURN.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target-delegates.c: Rebuild.
5578 * target.c (update_current_target): Don't inherit or default
5579 to_can_download_tracepoint.
5580 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5581 TARGET_DEFAULT_RETURN.
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target-delegates.c: Rebuild.
5586 * target.c (update_current_target): Don't inherit or default
5587 to_download_tracepoint.
5588 * target.h (struct target_ops) <to_download_tracepoint>: Use
5589 TARGET_DEFAULT_NORETURN.
5591 2014-02-19 Tom Tromey <tromey@redhat.com>
5593 * target-delegates.c: Rebuild.
5594 * target.c (update_current_target): Don't inherit or default
5596 * target.h (struct target_ops) <to_trace_init>: Use
5597 TARGET_DEFAULT_RETURN.
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5601 * target-delegates.c: Rebuild.
5602 * target.c (update_current_target): Don't inherit or default
5603 to_supports_string_tracing.
5604 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5605 TARGET_DEFAULT_RETURN.
5607 2014-02-19 Tom Tromey <tromey@redhat.com>
5609 * target-delegates.c: Rebuild.
5610 * target.c (update_current_target): Don't inherit or default
5611 to_supports_enable_disable_tracepoint.
5612 * target.h (struct target_ops)
5613 <to_supports_enable_disable_tracepoint>: Use
5614 TARGET_DEFAULT_RETURN.
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * target-delegates.c: Rebuild.
5619 * target.c (update_current_target): Don't inherit or default
5620 to_supports_multi_process.
5621 * target.h (struct target_ops) <to_supports_multi_process>: Use
5622 TARGET_DEFAULT_RETURN.
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5626 * target-delegates.c: Rebuild.
5627 * target.c (update_current_target): Don't inherit or default
5628 to_get_ada_task_ptid.
5629 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5630 TARGET_DEFAULT_FUNC.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * target-delegates.c: Rebuild.
5635 * target.c (update_current_target): Don't inherit or default
5636 to_thread_architecture.
5637 * target.h (struct target_ops) <to_thread_architecture>: Use
5638 TARGET_DEFAULT_FUNC.
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target-delegates.c: Rebuild.
5643 * target.c (update_current_target): Don't inherit or default
5644 to_execution_direction.
5645 * target.h (struct target_ops) <to_execution_direction>: Use
5646 TARGET_DEFAULT_FUNC.
5648 2014-02-19 Tom Tromey <tromey@redhat.com>
5650 * target-delegates.c: Rebuild.
5651 * target.c (update_current_target): Don't inherit or default
5652 to_can_execute_reverse.
5653 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5654 TARGET_DEFAULT_RETURN.
5655 (target_can_execute_reverse): Unconditionally delegate.
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target-delegates.c: Rebuild.
5660 * target.c (update_current_target): Don't inherit or default
5662 (dummy_goto_bookmark): Remove.
5663 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5664 * target.h (struct target_ops) <to_goto_bookmark>: Use
5665 TARGET_DEFAULT_NORETURN.
5667 2014-02-19 Tom Tromey <tromey@redhat.com>
5669 * target-delegates.c: Rebuild.
5670 * target.c (update_current_target): Don't inherit or default
5672 (dummy_get_bookmark): Remove.
5673 (init_dummy_target): Don't inherit or default to_get_bookmark.
5674 * target.h (struct target_ops) <to_get_bookmark>: Use
5675 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
5682 (init_dummy_target): Don't initialize to_make_corefile_notes.
5683 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5684 TARGET_DEFAULT_FUNC.
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
5690 to_find_memory_regions.
5691 (init_dummy_target): Don't initialize to_find_memory_regions.
5692 * target.h (struct target_ops) <to_find_memory_regions>: Use
5693 TARGET_DEFAULT_FUNC.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * target-delegates.c: Rebuild.
5698 * target.c (update_current_target): Don't inherit or default
5700 * target.h (struct target_ops) <to_log_command>: Use
5701 TARGET_DEFAULT_IGNORE.
5702 (target_log_command): Unconditionally delegate.
5704 2014-02-19 Tom Tromey <tromey@redhat.com>
5706 * target-delegates.c: Rebuild.
5707 * target.c (update_current_target): Don't inherit or default
5708 to_pid_to_exec_file.
5709 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5710 TARGET_DEFAULT_RETURN.
5712 2014-02-19 Tom Tromey <tromey@redhat.com>
5714 * target-delegates.c: Rebuild.
5715 * target.c (update_current_target): Don't inherit or default
5717 (target_thread_name): Unconditionally delegate.
5718 * target.h (struct target_ops) <to_thread_name>: Use
5719 TARGET_DEFAULT_RETURN.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * target-delegates.c: Rebuild.
5724 * target.c (update_current_target): Don't inherit or default
5725 to_extra_thread_info.
5726 * target.h (struct target_ops) <to_extra_thread_info>: Use
5727 TARGET_DEFAULT_RETURN.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target-delegates.c: Rebuild.
5732 * target.c (update_current_target): Don't inherit or default
5734 * target.h (struct target_ops) <to_has_exited>: Use
5735 TARGET_DEFAULT_RETURN..
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target-delegates.c: Rebuild.
5740 * target.c (update_current_target): Don't inherit or default
5741 to_set_syscall_catchpoint.
5742 (return_one): Remove.
5743 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5744 TARGET_DEFAULT_RETURN.
5746 2014-02-19 Tom Tromey <tromey@redhat.com>
5748 * target-delegates.c: Rebuild.
5749 * target.c (update_current_target): Don't inherit or default
5750 to_insert_exec_catchpoint.
5751 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5752 TARGET_DEFAULT_RETURN.
5754 2014-01-08 Tom Tromey <tromey@redhat.com>
5756 * target-delegates.c: Rebuild.
5757 * target.c (update_current_target): Don't inherit or default
5758 to_insert_exec_catchpoint.
5759 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5760 TARGET_DEFAULT_RETURN.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * target-delegates.c: Rebuild.
5765 * target.c (update_current_target): Don't inherit or default
5766 to_remove_vfork_catchpoint.
5767 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5768 TARGET_DEFAULT_RETURN.
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target-delegates.c: Rebuild.
5773 * target.c (update_current_target): Don't inherit or default
5774 to_insert_vfork_catchpoint.
5775 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5776 TARGET_DEFAULT_RETURN.
5778 2014-02-19 Tom Tromey <tromey@redhat.com>
5780 * target-delegates.c: Rebuild.
5781 * target.c (update_current_target): Don't inherit or default
5782 to_remove_fork_catchpoint.
5783 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5784 TARGET_DEFAULT_RETURN.
5786 2014-02-19 Tom Tromey <tromey@redhat.com>
5788 * target-delegates.c: Rebuild.
5789 * target.c (update_current_target): Don't inherit or default
5790 to_insert_fork_catchpoint.
5791 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5792 TARGET_DEFAULT_RETURN.
5794 2014-02-19 Tom Tromey <tromey@redhat.com>
5796 * target-delegates.c: Rebuild.
5797 * target.c (update_current_target): Don't inherit or default
5798 to_post_startup_inferior.
5799 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5800 TARGET_DEFAULT_IGNORE.
5802 2014-02-19 Tom Tromey <tromey@redhat.com>
5804 * target-delegates.c: Rebuild.
5805 * target.c (update_current_target): Don't inherit or default
5807 * target.h (struct target_ops) <to_load>: Use
5808 TARGET_DEFAULT_NORETURN.
5810 2014-02-19 Tom Tromey <tromey@redhat.com>
5812 * target-delegates.c: Rebuild.
5813 * target.c (update_current_target): Don't inherit or default
5815 * target.h (struct target_ops) <to_terminal_info>: Use
5816 TARGET_DEFAULT_FUNC.
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target-delegates.c: Rebuild.
5821 * target.c (update_current_target): Don't inherit or default
5822 to_terminal_save_ours.
5823 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5824 TARGET_DEFAULT_IGNORE.
5826 2014-02-19 Tom Tromey <tromey@redhat.com>
5828 * target-delegates.c: Rebuild.
5829 * target.c (update_current_target): Don't inherit or default
5831 * target.h (struct target_ops) <to_terminal_ours>: Use
5832 TARGET_DEFAULT_IGNORE.
5834 2014-02-19 Tom Tromey <tromey@redhat.com>
5836 * target-delegates.c: Rebuild.
5837 * target.c (update_current_target): Don't inherit or default
5838 to_terminal_ours_for_output.
5839 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5840 TARGET_DEFAULT_IGNORE.
5842 2014-02-19 Tom Tromey <tromey@redhat.com>
5844 * target-delegates.c: Rebuild.
5845 * target.c (update_current_target): Don't inherit or default
5846 to_terminal_inferior.
5847 * target.h (struct target_ops) <to_terminal_inferior>: Use
5848 TARGET_DEFAULT_IGNORE.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target-delegates.c: Rebuild.
5853 * target.c (update_current_target): Don't inherit or default
5855 * target.h (struct target_ops) <to_terminal_init>: Use
5856 TARGET_DEFAULT_IGNORE.
5858 2014-02-19 Tom Tromey <tromey@redhat.com>
5860 * target-delegates.c: Rebuild.
5861 * target.c (update_current_target): Don't inherit or default
5862 to_can_accel_watchpoint_condition.
5863 * target.h (struct target_ops)
5864 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5866 2014-02-19 Tom Tromey <tromey@redhat.com>
5868 * target-delegates.c: Rebuild.
5869 * target.c (update_current_target): Don't inherit or default
5870 to_region_ok_for_hw_watchpoint.
5871 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5872 Use TARGET_DEFAULT_FUNC.
5874 2014-02-19 Tom Tromey <tromey@redhat.com>
5876 * target-delegates.c: Rebuild.
5877 * target.c (update_current_target): Don't inherit or default
5878 to_watchpoint_addr_within_range.
5879 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5880 Use TARGET_DEFAULT_FUNC.
5882 2014-02-19 Tom Tromey <tromey@redhat.com>
5884 * target-delegates.c: Rebuild.
5885 * target.c (update_current_target): Don't inherit or default
5886 to_remove_watchpoint.
5887 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5888 TARGET_DEFAULT_NORETURN.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target-delegates.c: Rebuild.
5893 * target.c (update_current_target): Don't inherit or default
5894 to_insert_watchpoint.
5895 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5896 TARGET_DEFAULT_RETURN.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target-delegates.c: Rebuild.
5901 * target.c (update_current_target): Don't inherit or default
5902 to_remove_hw_breakpoint.
5903 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5904 TARGET_DEFAULT_RETURN.
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target-delegates.c: Rebuild.
5909 * target.c (update_current_target): Don't inherit or default
5910 to_insert_hw_breakpoint.
5911 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5912 TARGET_DEFAULT_RETURN.
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * target-delegates.c: Rebuild.
5917 * target.c (update_current_target): Don't inherit or default
5918 to_can_use_hw_breakpoint.
5919 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5920 TARGET_DEFAULT_RETURN.
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target-delegates.c: Rebuild.
5925 * target.c (update_current_target): Don't inherit or default
5927 * target.h (struct target_ops) <to_files_info>: Use
5928 TARGET_DEFAULT_IGNORE.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * target-delegates.c: Rebuild.
5933 * target.c (update_current_target): Don't inherit or default
5935 * target.h (struct target_ops) <to_store>: Use
5936 TARGET_DEFAULT_NORETURN.
5938 2014-02-19 Tom Tromey <tromey@redhat.com>
5940 * target-delegates.c: Rebuild.
5941 * target.c (update_current_target): Don't inherit or default
5943 * target.h (struct target_ops) <to_post_attach>: Use
5944 TARGET_DEFAULT_IGNORE.
5946 2014-02-19 Tom Tromey <tromey@redhat.com>
5948 * target-delegates.c: Rebuild.
5949 * target.c (update_current_target): Don't inherit or default
5951 (default_rcmd): New function.
5952 (do_monitor_command): Unconditionally delegate.
5953 * target.h (struct target_ops) <to_rmcd>: Use
5954 TARGET_DEFAULT_FUNC.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target-delegates.c: Rebuild.
5959 * target.c (init_dummy_target): Don't initialize to_attach.
5960 (target_attach): Unconditionally delegate.
5961 * target.h (struct target_ops) <to_attach>: Use
5962 TARGET_DEFAULT_FUNC.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target-delegates.c: Rebuild.
5967 * target.c (target_detach): Unconditionally delegate.
5968 (init_dummy_target): Don't initialize to_detach.
5969 * target.h (struct target_ops) <to_detach>: Use
5970 TARGET_DEFAULT_IGNORE.
5972 2014-02-19 Tom Tromey <tromey@redhat.com>
5974 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5976 (target_augmented_libraries_svr4_read): Add argument.
5977 * target.c (update_current_target): Update.
5978 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5981 2014-02-19 Tom Tromey <tromey@redhat.com>
5983 * target.h (struct target_ops) <to_call_history_range>: Add
5985 * target.c (target_call_history_range): Add argument.
5986 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5988 (record_btrace_call_history_from): Update.
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target.h (struct target_ops) <to_call_history_from>: Add
5994 * target.c (target_call_history_from): Add argument.
5995 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5998 2014-02-19 Tom Tromey <tromey@redhat.com>
6000 * target.h (struct target_ops) <to_call_history>: Add argument.
6001 * target.c (target_call_history): Add argument.
6002 * record-btrace.c (record_btrace_call_history): Add 'self'
6005 2014-02-19 Tom Tromey <tromey@redhat.com>
6007 * target.h (struct target_ops) <to_insn_history_range>: Add
6009 * target.c (target_insn_history_range): Add argument.
6010 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6012 (record_btrace_insn_history_from): Update.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target.h (struct target_ops) <to_insn_history_from>: Add
6018 * target.c (target_insn_history_from): Add argument.
6019 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6022 2014-02-19 Tom Tromey <tromey@redhat.com>
6024 * target.h (struct target_ops) <to_insn_history>: Add argument.
6025 * target.c (target_insn_history): Add argument.
6026 * record-btrace.c (record_btrace_insn_history): Add 'self'
6029 2014-02-19 Tom Tromey <tromey@redhat.com>
6031 * target.h (struct target_ops) <to_goto_record>: Add argument.
6032 * target.c (target_goto_record): Add argument.
6033 * record-full.c (record_full_goto): Add 'self' argument.
6034 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6036 2014-02-19 Tom Tromey <tromey@redhat.com>
6038 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6039 * target.c (target_goto_record_end): Add argument.
6040 * record-full.c (record_full_goto_end): Add 'self' argument.
6041 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target.h (struct target_ops) <to_goto_record_begin>: Add
6047 * target.c (target_goto_record_begin): Add argument.
6048 * record-full.c (record_full_goto_begin): Add 'self' argument.
6049 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6052 2014-02-19 Tom Tromey <tromey@redhat.com>
6054 * target.h (struct target_ops) <to_record_is_replaying>: Add
6056 * target.c (target_record_is_replaying): Add argument.
6057 * record-full.c (record_full_is_replaying): Add 'self' argument.
6058 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6060 (record_btrace_xfer_partial, record_btrace_store_registers)
6061 (record_btrace_prepare_to_store, record_btrace_resume)
6062 (record_btrace_wait, record_btrace_decr_pc_after_break)
6063 (record_btrace_find_new_threads, record_btrace_thread_alive):
6066 2014-02-19 Tom Tromey <tromey@redhat.com>
6068 * target.h (struct target_ops) <to_delete_record>: Add argument.
6069 * target.c (target_delete_record): Add argument.
6070 * record-full.c (record_full_delete): Add 'self' argument.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target.h (struct target_ops) <to_save_record>: Add argument.
6075 * target.c (target_save_record): Add argument.
6076 * record-full.c (record_full_save): Add 'self' argument.
6077 (record_full_save): Add 'self' argument.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target.h (struct target_ops) <to_info_record>: Add argument.
6082 * target.c (target_info_record): Add argument.
6083 * record.c (info_record_command): Add argument.
6084 * record-full.c (record_full_info): Add 'self' argument.
6085 * record-btrace.c (record_btrace_info): Add 'self' argument.
6087 2014-02-19 Tom Tromey <tromey@redhat.com>
6089 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6090 * target.c (target_stop_recording): Add argument.
6091 * record.c (record_stop): Add argument.
6092 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6098 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6099 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6101 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6102 (_initialize_amd64_linux_nat): Use it.
6103 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6104 (_initialize_i386_linux_nat): Use it.
6106 2014-02-19 Tom Tromey <tromey@redhat.com>
6108 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6109 * target.c (target_teardown_btrace): Add argument.
6110 * remote.c (remote_teardown_btrace): Add 'self' argument.
6111 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6113 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6119 * target.c (target_disable_btrace): Add argument.
6120 * remote.c (remote_disable_btrace): Add 'self' argument.
6121 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6123 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6129 * target.c (target_enable_btrace): Add argument.
6130 * remote.c (remote_enable_btrace): Add 'self' argument.
6131 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6133 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6139 (target_can_use_agent): Add argument.
6140 * target.c (update_current_target): Update.
6141 * remote.c (remote_can_use_agent): Add 'self' argument.
6142 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6144 2014-02-19 Tom Tromey <tromey@redhat.com>
6146 * target.h (struct target_ops) <to_use_agent>: Add argument.
6147 (target_use_agent): Add argument.
6148 * target.c (update_current_target): Update.
6149 * remote.c (remote_use_agent): Add 'self' argument.
6150 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6154 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6155 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6156 (target_traceframe_info): Add argument.
6157 * target.c (update_current_target): Update.
6158 * remote.c (remote_traceframe_info): Add 'self' argument.
6159 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * target.h (target_static_tracepoint_markers_by_strid): Add
6165 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6167 * target.c (update_current_target): Update.
6168 * remote.c (struct target_ops)
6169 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6170 * linux-nat.c (struct target_ops)
6171 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6173 2014-02-19 Tom Tromey <tromey@redhat.com>
6175 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6177 (target_static_tracepoint_marker_at): Add argument.
6178 * target.c (update_current_target): Update.
6179 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6182 2014-02-19 Tom Tromey <tromey@redhat.com>
6184 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6185 (target_set_permissions): Add argument.
6186 * target.c (update_current_target): Update.
6187 * remote.c (remote_set_permissions): Add 'self' argument.
6188 (remote_start_remote): Update.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6193 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6194 (target_get_tib_address): Add argument.
6195 * target.c (update_current_target): Update.
6196 * remote.c (remote_get_tib_address): Add 'self' argument.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6201 (target_set_trace_notes): Add argument.
6202 * target.c (update_current_target): Update.
6203 * remote.c (remote_set_trace_notes): Add 'self' argument.
6205 2014-02-19 Tom Tromey <tromey@redhat.com>
6207 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6209 (target_set_trace_buffer_size): Add argument.
6210 * target.c (update_current_target): Update.
6211 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6217 (target_set_circular_trace_buffer): Add argument.
6218 * target.c (update_current_target): Update.
6219 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6222 2014-02-19 Tom Tromey <tromey@redhat.com>
6224 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6226 (target_set_disconnected_tracing): Add argument.
6227 * target.c (update_current_target): Update.
6228 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6230 2014-02-19 Tom Tromey <tromey@redhat.com>
6232 * target.h (struct target_ops)
6233 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6234 (target_get_min_fast_tracepoint_insn_len): Add argument.
6235 * target.c (update_current_target): Update.
6236 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6243 (target_get_raw_trace_data): Add argument.
6244 * target.c (update_current_target): Update.
6245 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6247 2014-02-19 Tom Tromey <tromey@redhat.com>
6249 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6251 (target_upload_trace_state_variables): Add argument.
6252 * target.c (update_current_target): Update.
6253 * remote.c (remote_upload_trace_state_variables): Add 'self'
6255 (remote_start_remote): Update.
6257 2014-02-19 Tom Tromey <tromey@redhat.com>
6259 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6261 (target_upload_tracepoints): Add argument.
6262 * target.c (update_current_target): Update.
6263 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6264 (remote_start_remote): Update.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6269 (target_save_trace_data): Add argument.
6270 * target.c (update_current_target): Update.
6271 * remote.c (remote_save_trace_data): Add 'self' argument.
6273 2014-02-19 Tom Tromey <tromey@redhat.com>
6275 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6277 * target.h (struct target_ops)
6278 <to_get_trace_state_variable_value>: Add argument.
6279 (target_get_trace_state_variable_value): Add argument.
6280 * target.c (update_current_target): Update.
6281 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6283 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6287 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6288 * target.h (struct target_ops) <to_trace_find>: Add argument.
6289 (target_trace_find): Add argument.
6290 * target.c (update_current_target): Update.
6291 * remote.c (remote_trace_find): Add 'self' argument.
6292 * ctf.c (ctf_trace_find): Add 'self' argument.
6294 2014-02-19 Tom Tromey <tromey@redhat.com>
6296 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6297 (target_trace_stop): Add argument.
6298 * target.c (update_current_target): Update.
6299 * remote.c (remote_trace_stop): Add 'self' argument.
6301 2014-02-19 Tom Tromey <tromey@redhat.com>
6303 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6304 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6306 (target_get_tracepoint_status): Add argument.
6307 * target.c (update_current_target): Update.
6308 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6313 * target.h (struct target_ops) <to_get_trace_status>: Add
6315 (target_get_trace_status): Add argument.
6316 * target.c (update_current_target): Update.
6317 * remote.c (remote_get_trace_status): Add 'self' argument.
6318 (remote_start_remote, remote_can_download_tracepoint): Update.
6319 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6321 2014-02-19 Tom Tromey <tromey@redhat.com>
6323 * target.h (struct target_ops) <to_trace_start>: Add argument.
6324 (target_trace_start): Add argument.
6325 * target.c (update_current_target): Update.
6326 * remote.c (remote_trace_start): Add 'self' argument.
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6332 (target_trace_set_readonly_regions): Add argument.
6333 * target.c (update_current_target): Update.
6334 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6337 2014-02-19 Tom Tromey <tromey@redhat.com>
6339 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6341 (target_disable_tracepoint): Add argument.
6342 * target.c (update_current_target): Update.
6343 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6349 (target_enable_tracepoint): Add argument.
6350 * target.c (update_current_target): Update.
6351 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * target.h (struct target_ops) <to_download_trace_state_variable>:
6357 (target_download_trace_state_variable): Add argument.
6358 * target.c (update_current_target): Update.
6359 * remote.c (remote_download_trace_state_variable): Add 'self'
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6366 (target_can_download_tracepoint): Add argument.
6367 * target.c (update_current_target): Update.
6368 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6370 2014-02-19 Tom Tromey <tromey@redhat.com>
6372 * target.h (struct target_ops) <to_download_tracepoint>: Add
6374 (target_download_tracepoint): Add argument.
6375 * target.c (update_current_target): Update.
6376 * remote.c (remote_download_tracepoint): Add 'self' argument.
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * target.h (struct target_ops) <to_trace_init>: Add argument.
6381 (target_trace_init): Add argument.
6382 * target.c (update_current_target): Update.
6383 * remote.c (remote_trace_init): Add 'self' argument.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6388 * target.c (target_fileio_readlink): Add argument.
6389 * remote.c (remote_hostio_readlink): Add 'self' argument.
6390 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6392 2014-02-19 Tom Tromey <tromey@redhat.com>
6394 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6395 * target.c (target_fileio_unlink): Add argument.
6396 * remote.c (remote_hostio_unlink): Add 'self' argument.
6397 (remote_file_delete): Update.
6398 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6400 2014-02-19 Tom Tromey <tromey@redhat.com>
6402 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6403 * target.c (target_fileio_close): Add argument.
6404 * remote.c (remote_hostio_close): Add 'self' argument.
6405 (remote_hostio_close_cleanup): Update.
6406 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6408 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6413 * target.c (target_fileio_pread): Add argument.
6414 * remote.c (remote_hostio_pread): Add 'self' argument.
6415 (remote_bfd_iovec_pread, remote_file_get): Update.
6416 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6421 * target.c (target_fileio_pwrite): Add argument.
6422 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6423 (remote_file_put): Update.
6424 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6428 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6429 * target.c (target_fileio_open): Add argument.
6430 * remote.c (remote_hostio_open): Add 'self' argument.
6431 (remote_bfd_iovec_open): Add 'self' argument.
6432 (remote_file_put): Add 'self' argument.
6433 (remote_file_get): Add 'self' argument.
6434 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6440 (target_can_run_breakpoint_commands): Add argument.
6441 * target.c (update_current_target): Update.
6442 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6444 (remote_insert_breakpoint): Add 'self' argument.
6445 (remote_insert_hw_breakpoint): Add 'self' argument.
6446 (remote_can_run_breakpoint_commands): Add 'self' argument.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * target.h (struct target_ops)
6451 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6452 (target_supports_evaluation_of_breakpoint_conditions): Add
6454 * target.c (update_current_target): Update.
6455 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6457 (remote_insert_breakpoint): Add 'self' argument.
6458 (remote_insert_hw_breakpoint): Add 'self' argument.
6459 (remote_supports_cond_breakpoints): Add 'self' argument.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6465 (target_supports_string_tracing): Add argument.
6466 * target.c (update_current_target): Update.
6467 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target.h (struct target_ops)
6472 <to_supports_disable_randomization>: Add argument.
6473 * target.c (find_default_supports_disable_randomization): Add
6475 (target_supports_disable_randomization): Add argument.
6476 (find_default_supports_disable_randomization): Add 'self'
6478 * remote.c (extended_remote_supports_disable_randomization): Add
6480 (remote_supports_disable_randomization): Add 'self' argument.
6481 (extended_remote_create_inferior): Update.
6482 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target.h (struct target_ops)
6488 <to_supports_enable_disable_tracepoint>: Add argument.
6489 (target_supports_enable_disable_tracepoint): Add argument.
6490 * target.c (update_current_target): Update.
6491 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6494 2014-02-19 Tom Tromey <tromey@redhat.com>
6496 * target.h (struct target_ops) <to_supports_multi_process>: Add
6498 (target_supports_multi_process): Add argument.
6499 * target.c (update_current_target): Update.
6500 * remote.c (remote_supports_multi_process): Add 'self' argument.
6501 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6503 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6508 * target.h (struct target_ops) <to_execution_direction>: Add
6510 (target_execution_direction): Add argument.
6511 * target.c (default_execution_direction): Add 'self' argument.
6512 * record-full.c (record_full_execution_direction): Add 'self'
6515 2014-02-19 Tom Tromey <tromey@redhat.com>
6517 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6519 (target_can_execute_reverse): Add argument.
6520 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6521 * record-full.c (record_full_can_execute_reverse): Add 'self'
6523 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6529 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6531 (target_get_ada_task_ptid): Add argument.
6532 * target.c (update_current_target): Update.
6533 (default_get_ada_task_ptid): Add 'self' argument.
6534 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6535 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6536 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6538 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6540 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6542 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6544 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6545 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6550 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6551 (target_goto_bookmark): Add argument.
6552 * target.c (dummy_goto_bookmark): Add 'self' argument.
6553 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6555 2014-02-19 Tom Tromey <tromey@redhat.com>
6557 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6558 (target_get_bookmark): Add argument.
6559 * target.c (dummy_get_bookmark): Add 'self' argument.
6560 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6564 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6566 (target_make_corefile_notes): Add argument.
6567 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6568 * procfs.c (procfs_make_note_section): Add 'self' argument.
6569 (procfs_make_note_section): Add 'self' argument.
6570 (procfs_make_note_section): Add 'self' argument.
6571 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6573 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6574 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6575 * exec.c (exec_make_note_section): Add 'self' argument.
6576 (exec_make_note_section): Add 'self' argument.
6578 2014-02-19 Tom Tromey <tromey@redhat.com>
6580 * target.h (struct target_ops) <to_find_memory_regions>: Add
6582 (target_find_memory_regions): Add argument.
6583 * target.c (dummy_find_memory_regions): Add 'self' argument.
6584 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6585 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6586 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6587 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6588 * exec. (exec_do_find_memory_regions): New global.
6589 (exec_set_find_memory_regions): Rewrite.
6590 (exec_find_memory_regions): New function.
6591 (init_exec_ops): Use exec_find_memory_regions.
6593 2014-02-19 Tom Tromey <tromey@redhat.com>
6595 * target.h (struct target_ops) <to_supports_non_stop>: Add
6597 * target.c (find_default_supports_non_stop): Add argument.
6598 (target_supports_non_stop): Add argument.
6599 (find_default_supports_non_stop): Add 'self' argument.
6600 * remote.c (remote_supports_non_stop): Add 'self' argument.
6601 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6603 2014-02-19 Tom Tromey <tromey@redhat.com>
6605 * target.h (struct target_ops) <to_log_command>: Add argument.
6606 (target_log_command): Add argument.
6607 * serial.h (serial_log_command): Add 'self' argument.
6608 * serial.c (serial_log_command): Add 'self' argument.
6610 2014-02-19 Tom Tromey <tromey@redhat.com>
6612 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6613 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6615 (target_pid_to_exec_file): Add argument.
6616 * target.c (debug_to_pid_to_exec_file): Add argument.
6617 (update_current_target): Update.
6618 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6619 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6620 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6621 (linux_handle_extended_wait): Update.
6622 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6623 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6624 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6625 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6627 2014-02-19 Tom Tromey <tromey@redhat.com>
6629 * target.h (struct target_ops) <to_rcmd>: Add argument.
6630 (target_rcmd): Add argument.
6631 * target.c (debug_to_rcmd): Add argument.
6632 (update_current_target, do_monitor_command): Update.
6633 * remote.c (remote_rcmd): Add 'self' argument.
6634 * monitor.c (monitor_rcmd): Add 'self' argument.
6636 2014-02-19 Tom Tromey <tromey@redhat.com>
6638 * windows-nat.c (windows_stop): Add 'self' argument.
6639 * target.h (struct target_ops) <to_stop>: Add argument.
6640 * target.c (target_stop): Add argument.
6641 (debug_to_stop): Add argument.
6642 (update_current_target): Update.
6643 * remote.c (remote_stop): Add 'self' argument.
6644 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6645 (gdbsim_cntrl_c): Update.
6646 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6647 * procfs.c (procfs_stop): Add 'self' argument.
6648 * nto-procfs.c (procfs_stop): Add 'self' argument.
6649 * monitor.c (monitor_stop): Add 'self' argument.
6650 (monitor_open): Update.
6651 * linux-nat.c (linux_nat_stop): Add argument.
6652 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6653 * gnu-nat.c (gnu_stop): Add 'self' argument.
6654 * darwin-nat.c (darwin_stop): Add 'self' argument.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target.h (struct target_ops) <to_thread_name>: Add argument.
6659 * target.c (target_thread_name): Add argument.
6660 (update_current_target): Update.
6661 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target.h (struct target_ops) <to_extra_thread_info>: Add
6667 (target_extra_thread_info): Add argument.
6668 * target.c (update_current_target): Update.
6669 * remote.c (remote_threads_extra_info): Add 'self' argument.
6670 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6672 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6673 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6674 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6676 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6678 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6680 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6683 2014-02-19 Tom Tromey <tromey@redhat.com>
6685 * target.h (struct target_ops) <to_program_signals>: Add argument.
6686 * target.c (target_program_signals): Add argument.
6687 * remote.c (remote_program_signals): Add 'self' argument.
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6692 * target.c (target_pass_signals): Add argument.
6693 * remote.c (remote_pass_signals): Add 'self' argument.
6694 (remote_start_remote): Update.
6695 * procfs.c (procfs_pass_signals): Add 'self' argument.
6696 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6697 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6698 (linux_nat_create_inferior, linux_nat_attach): Update.
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6702 * windows-nat.c (windows_can_run): Add 'self' argument.
6703 * target.h (struct target_ops) <to_can_run>: Add argument.
6704 (target_can_run): Add argument.
6705 * target.c (debug_to_can_run): Add argument.
6706 (update_current_target): Update.
6707 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6708 * inf-child.c (inf_child_can_run): Add 'self' argument.
6709 * go32-nat.c (go32_can_run): Add 'self' argument.
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target.h (struct target_ops) <to_has_exited>: Add argument.
6714 (target_has_exited): Add argument.
6715 * target.c (debug_to_has_exited): Add argument.
6716 (update_current_target): Update.
6718 2014-02-19 Tom Tromey <tromey@redhat.com>
6720 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6722 (target_set_syscall_catchpoint): Add argument.
6723 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6725 * target.c (update_current_target): Update.
6727 2014-02-19 Tom Tromey <tromey@redhat.com>
6729 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6731 (target_remove_exec_catchpoint): Add argument.
6732 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6733 (update_current_target): Update.
6734 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6739 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6741 (target_insert_exec_catchpoint): Add argument.
6742 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6743 (update_current_target): Update.
6744 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6747 2014-02-19 Tom Tromey <tromey@redhat.com>
6749 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6751 (target_remove_vfork_catchpoint): Add argument.
6752 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6753 (update_current_target): Update.
6754 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6757 2014-02-19 Tom Tromey <tromey@redhat.com>
6759 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6761 (target_insert_vfork_catchpoint): Add argument.
6762 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6763 (update_current_target): Update.
6764 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6767 2014-02-19 Tom Tromey <tromey@redhat.com>
6769 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6771 (target_remove_fork_catchpoint): Add argument.
6772 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6773 (update_current_target): Update.
6774 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6777 2014-02-19 Tom Tromey <tromey@redhat.com>
6779 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6781 (target_insert_fork_catchpoint): Add argument.
6782 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6783 (update_current_target): Update.
6784 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6787 2014-02-19 Tom Tromey <tromey@redhat.com>
6789 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6791 (target_post_startup_inferior): Add argument.
6792 * target.c (debug_to_post_startup_inferior): Add argument.
6793 (update_current_target): Update.
6794 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6796 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6798 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6800 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6802 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6804 (super_post_startup_inferior): Likewise.
6805 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6807 (super_post_startup_inferior): Likewise.
6808 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6809 Add 'self' argument.
6810 (super_post_startup_inferior): Likewise.
6812 2014-02-19 Tom Tromey <tromey@redhat.com>
6814 * target.h (struct target_ops) <to_load>: Add argument.
6815 * target.c (target_load): Add argument.
6816 (debug_to_load): Add argument.
6817 (update_current_target): Update.
6818 * remote.c (remote_load): Add 'self' argument.
6819 * remote-sim.c (gdbsim_load): Add 'self' argument.
6820 * remote-mips.c (mips_load): Add 'self' argument.
6821 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6822 * monitor.c (monitor_load): Add 'self' argument.
6823 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6828 (target_terminal_info): Add argument.
6829 * target.c (debug_to_terminal_info): Add argument.
6830 (default_terminal_info): Likewise.
6831 * inflow.c (child_terminal_info): Add 'self' argument.
6832 * inferior.h (child_terminal_info): Add 'self' argument.
6833 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6839 (target_terminal_save_ours): Add argument.
6840 * target.c (debug_to_terminal_save_ours): Add argument.
6841 (update_current_target): Update.
6842 * inflow.c (terminal_save_ours): Add 'self' argument.
6843 * inferior.h (terminal_save_ours): Add 'self' argument.
6845 2014-02-19 Tom Tromey <tromey@redhat.com>
6847 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6848 (target_terminal_ours): Add argument.
6849 * target.c (debug_to_terminal_ours): Add argument.
6850 (update_current_target): Update.
6851 * remote.c (remote_terminal_ours): Add 'self' argument.
6852 (remote_close): Update.
6853 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6854 * inflow.c (terminal_ours): Add 'self' argument.
6855 * inferior.h (terminal_ours): Add 'self' argument.
6856 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6858 2014-02-19 Pedro Alves <palves@redhat.com>
6859 Tom Tromey <tromey@redhat.com>
6861 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6863 (target_terminal_ours_for_output): Add argument.
6864 * target.c (debug_to_terminal_ours_for_output): Add argument.
6865 (update_current_target): Update.
6866 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6867 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6868 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6870 2014-02-19 Tom Tromey <tromey@redhat.com>
6872 * target.h (struct target_ops) <to_terminal_inferior>: Add
6874 * target.c (target_terminal_inferior): Add argument.
6875 (update_current_target): Update.
6876 * remote.c (remote_terminal_inferior): Add 'self' argument.
6877 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6878 * inflow.c (terminal_inferior): Add 'self' argument.
6879 * inferior.h (terminal_inferior): Add 'self' argument.
6880 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6881 (go32_terminal_inferior): Add 'self' argument.
6883 2014-02-19 Tom Tromey <tromey@redhat.com>
6885 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6886 (target_terminal_init): Add argument.
6887 * target.c (debug_to_terminal_init): Add argument.
6888 (update_current_target): Update.
6889 * inflow.c (terminal_init_inferior): Add 'self' argument.
6890 * inferior.h (terminal_init_inferior): Add 'self' argument.
6891 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6892 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6894 2014-02-19 Tom Tromey <tromey@redhat.com>
6896 * target.h (struct target_ops)
6897 <to_can_accel_watchpoint_condition>: Add argument.
6898 (target_can_accel_watchpoint_condition): Add argument.
6899 * target.c (debug_to_can_accel_watchpoint_condition): Add
6901 (update_current_target): Update.
6902 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6909 (target_region_ok_for_hw_watchpoint): Add argument.
6910 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6911 (default_region_ok_for_hw_watchpoint): Add argument.
6912 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6913 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6915 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6917 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6919 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6921 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6923 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6925 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6926 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6928 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6929 Add 'self' argument.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6935 (target_insert_watchpoint): Add argument.
6936 * target.c (debug_to_insert_watchpoint): Add argument.
6937 (update_current_target): Update.
6938 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6939 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6940 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6941 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6942 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6943 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6945 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6946 (procfs_insert_hw_watchpoint): Add 'self' argument.
6947 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6949 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6951 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6953 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6954 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6956 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6959 2014-02-19 Tom Tromey <tromey@redhat.com>
6961 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6963 (target_remove_watchpoint): Add argument.
6964 * target.c (debug_to_remove_watchpoint): Add argument.
6965 (update_current_target): Update.
6966 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6967 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6968 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6969 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6970 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6971 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6973 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6974 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6976 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6978 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6980 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6981 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6983 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6990 (target_remove_hw_breakpoint): Add argument.
6991 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6992 (update_current_target): Update.
6993 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6994 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6996 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6997 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6999 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7006 (target_insert_hw_breakpoint): Add argument.
7007 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7008 (update_current_target): Update.
7009 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7010 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7012 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7013 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7014 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7016 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7019 2014-02-19 Tom Tromey <tromey@redhat.com>
7021 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7023 (target_can_use_hardware_watchpoint): Add argument.
7024 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7025 (update_current_target): Update.
7026 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7028 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7030 * remote.c (remote_check_watch_resources): Add 'self' argument.
7031 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7032 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7034 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7035 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7037 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7039 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7041 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7043 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7045 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7047 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7048 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7050 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target.h (struct target_ops) <to_post_attach>: Add argument.
7056 (target_post_attach): Add argument.
7057 * target.c (debug_to_post_attach): Add argument.
7058 (update_current_target): Update.
7059 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7060 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7061 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7062 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7063 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7065 2014-02-19 Tom Tromey <tromey@redhat.com>
7067 * windows-nat.c (windows_close): Add 'self' argument.
7068 * tracepoint.c (tfile_close): Add 'self' argument.
7069 * target.h (struct target_ops) <to_close>: Add argument.
7070 * target.c (target_close): Add argument.
7071 (update_current_target): Update.
7072 * remote.c (remote_close): Add 'self' argument.
7073 * remote-sim.c (gdbsim_close): Add 'self' argument.
7074 * remote-mips.c (mips_close): Add 'self' argument.
7075 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7076 * record-full.c (record_full_close): Add 'self' argument.
7077 * record-btrace.c (record_btrace_close): Add 'self' argument.
7078 * monitor.h (monitor_close): Add 'self' argument.
7079 * monitor.c (monitor_close): Add 'self' argument.
7080 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7081 * linux-nat.c (linux_nat_close): Add argument.
7082 * go32-nat.c (go32_close): Add 'self' argument.
7083 * exec.c (exec_close_1): Add 'self' argument.
7084 * ctf.c (ctf_close): Add 'self' argument.
7085 * corelow.c (core_close): Add 'self' argument.
7086 (core_close_cleanup): Update.
7087 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7088 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7090 2014-02-19 Tom Tromey <tromey@redhat.com>
7092 * remote.c (remote_load): New function.
7093 (init_remote_ops): Use it.
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7099 * common/linux-btrace.h (linux_supports_btrace): Update.
7100 * remote.c (remote_supports_btrace): Add "self" argument.
7101 * target-delegates.c: Rebuild.
7102 * target.c (target_supports_btrace): Remove.
7103 * target.h (struct target_ops) <to_supports_btrace>: Add
7104 target_ops argument.
7105 (target_supports_btrace): New define.
7107 2014-02-19 Tom Tromey <tromey@redhat.com>
7109 * record-full.c (record_full_beneath_to_resume_ops)
7110 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7111 (record_full_beneath_to_wait)
7112 (record_full_beneath_to_store_registers_ops)
7113 (record_full_beneath_to_store_registers)
7114 (record_full_beneath_to_xfer_partial_ops)
7115 (record_full_beneath_to_xfer_partial)
7116 (record_full_beneath_to_insert_breakpoint_ops)
7117 (record_full_beneath_to_insert_breakpoint)
7118 (record_full_beneath_to_remove_breakpoint_ops)
7119 (record_full_beneath_to_remove_breakpoint)
7120 (record_full_beneath_to_stopped_by_watchpoint)
7121 (record_full_beneath_to_stopped_data_address)
7122 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7123 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7124 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7125 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7126 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7127 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7128 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7129 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7130 (record_full_resume, record_full_wait_1)
7131 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7132 (record_full_store_registers, record_full_xfer_partial)
7133 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7134 (record_full_async, record_full_core_xfer_partial): Use target
7136 * target-delegates.c: Rebuild.
7137 * target.c (current_xfer_partial): Remove.
7138 (update_current_target): Do not INHERIT or de_fault
7139 to_insert_breakpoint, to_remove_breakpoint,
7140 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7141 to_is_async_p, to_async. Do not set to_xfer_partial field.
7142 (default_xfer_partial): Simplify.
7143 (current_xfer_partial): Remove.
7144 (target_wait, target_resume): Simplify.
7145 (find_default_can_async_p, find_default_is_async_p): Update.
7146 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7147 to_xfer_partial, to_stopped_by_watchpoint,
7148 to_stopped_data_address.
7149 (target_store_registers): Simplify.
7150 (forward_target_remove_breakpoint)
7151 (forward_target_insert_breakpoint): Remove.
7152 (target_remove_breakpoint, target_insert_breakpoint)
7153 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7154 * target.h (struct target_ops) <to_resume, to_wait,
7155 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7156 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7157 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7159 (forward_target_remove_breakpoint)
7160 (forward_target_insert_breakpoint): Remove.
7161 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7163 (record_btrace_insert_breakpoint): Delegate directly.
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7168 * target-delegates.c: New file.
7169 * target.c: Include target-delegates.c.
7170 (init_dummy_target): Call install_dummy_methods.
7171 (complete_target_initialization): Call install_delegators.
7172 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7173 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7174 * make-target-delegates: New file.
7176 2014-02-19 Tom Tromey <tromey@redhat.com>
7178 * record.c (find_record_target): Use find_target_at.
7179 * target.c (find_target_at): New function.
7180 * target.h (find_target_at): Declare.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7186 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7188 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7189 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7191 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7193 * linux-nat.c (save_sigtrap): Update.
7194 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7195 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7196 (linux_nat_close): Update.
7197 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7199 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7201 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7202 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7203 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7204 (tmp_to_async): Add 'ops' argument.
7205 (record_full_stopped_by_watchpoint, record_full_async)
7206 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7208 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7209 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7210 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7211 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7212 (remote_is_async_p, remote_async): Add 'ops' argument.
7213 (remote_stopped_data_address): Update.
7214 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7215 * target.c (update_current_target)
7216 (find_default_can_async_p, find_default_is_async_p): Update.
7217 (init_dummy_target): Update.
7218 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7219 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7220 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7221 (target_can_async_p, target_is_async_p, target_async)
7222 (target_stopped_by_watchpoint): Update.
7224 2014-02-19 Yao Qi <yao@codesourcery.com>
7227 * gdbarch.sh: Remove startup_gdbarch.
7228 * gdbarch.c: Regenerated.
7229 * gdbarch.h: Likewise.
7231 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7233 * rl78-tdep.c (rl78_g10_register_name): New function.
7234 (rl78_return_value): Add g10 support.
7235 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7238 2014-02-17 Doug Evans <xdje42@gmail.com>
7240 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7241 (SUBDIR_GUILE_SRCS): Ditto.
7242 (scm-gsmob.o): Ditto.
7244 2014-02-17 Yao Qi <yao@codesourcery.com>
7246 * gnu-nat.c (ILL_RPC): Declare defined function.
7248 2014-02-17 Yao Qi <yao@codesourcery.com>
7250 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7251 mach_msg_type_number_t.
7252 (gnu_write_inferior): Likewise.
7254 2014-02-17 Yao Qi <yao@codesourcery.com>
7256 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7258 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7259 (inf_validate_procs, inf_signal): Likewise.
7260 (S_exception_raise_request): Likewise.
7261 (do_mach_notify_dead_name): Likewise.
7262 (steal_exc_port): Likewise.
7263 (gnu_read_inferior): Change 'copy_count''s type to
7264 mach_msg_type_number_t.
7265 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7268 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7270 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7271 flag. Adjust all users; in particular...
7272 (gnu_wait): ..., don't decrement its value in here...
7273 (gnu_create_inferior): ..., and instead set the flag in here,
7274 around the startup_inferior call, and call that one with
7275 START_INFERIOR_TRAPS_EXPECTED.
7277 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7278 (ILL_RPC): ... new macro.
7279 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7280 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7281 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7282 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7283 functions with ILL_RPC macro.
7284 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7285 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7286 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7287 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7288 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7289 (S_proc_getlogin_reply, S_proc_getsid_reply)
7290 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7291 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7292 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7293 (S_proc_getnports_reply, S_proc_is_important_reply)
7294 (S_proc_get_code_reply): New stub functions, generated with
7297 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7298 collected the type check structures.
7300 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7302 2014-02-14 Doug Evans <dje@google.com>
7304 * target.c (target_write_partial): Fix result type.
7306 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7308 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7309 the proper offsets to access fpregset_t.
7311 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7313 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7314 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7315 * h8300-tdep.c (setmachinelist): Remove global.
7316 * hppa-tdep.c (hppa_sigtramp): Remove global.
7317 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7318 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7319 * ravenscar-thread.c (update_target_observer): Remove global.
7320 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7322 2014-02-12 Tom Tromey <tromey@redhat.com>
7324 * common/rsp-low.c: Update comments.
7325 * common/rsp-low.h: Update comments.
7327 2014-02-12 Tom Tromey <tromey@redhat.com>
7329 * common/rsp-low.c (convert_ascii_to_int): Remove.
7330 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7332 2014-02-12 Tom Tromey <tromey@redhat.com>
7334 * common/rsp-low.h (unhexify): Don't declare.
7335 * common/rsp-low.c (unhexify): Remove.
7337 2014-02-12 Tom Tromey <tromey@redhat.com>
7339 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7340 * common/rsp-low.c (convert_int_to_ascii): Remove.
7342 2014-02-12 Tom Tromey <tromey@redhat.com>
7344 * common/rsp-low.h (hexify): Don't declare.
7345 * common/rsp-low.c (hexify): Remove.
7347 2014-02-12 Tom Tromey <tromey@redhat.com>
7349 * common/rsp-low.c (hexify): Never take strlen of argument.
7351 2014-02-12 Tom Tromey <tromey@redhat.com>
7353 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7354 * remote.c (extended_remote_run, remote_rcmd)
7355 (remote_download_trace_state_variable, remote_save_trace_data)
7356 (remote_set_trace_notes): Update.
7357 * tracepoint.c (encode_source_string, tfile_write_status)
7358 (tfile_write_uploaded_tsv): Update.
7360 2014-02-12 Tom Tromey <tromey@redhat.com>
7362 * tracepoint.c: Include rsp-low.h.
7363 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7364 * remote.c: Include rsp-low.h.
7365 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7366 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7367 (remote_unescape_input): Move to common/rsp-low.c.
7368 * common/rsp-low.h: New file.
7369 * common/rsp-low.c: New file.
7370 * Makefile.in (SFILES): Add common/rsp-low.c.
7371 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7372 (COMMON_OBS): Add rsp-low.o.
7373 (rsp-low.o): New target.
7375 2014-02-12 Tom Tromey <tromey@redhat.com>
7377 * utils.h: Include print-utils.h.
7378 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7379 (int_string, core_addr_to_string, core_addr_to_string_nz)
7380 (hex_string, hex_string_custom): Don't declare.
7381 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7382 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7383 (hex_string_custom, int_string, core_addr_to_string)
7384 (core_addr_to_string_nz, host_address_to_string): Move to
7385 common/print-utils.c.
7386 * common/print-utils.h: New file.
7387 * common/print-utils.c: New file
7388 * Makefile.in (SFILES): Add common/print-utils.c.
7389 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7390 (COMMON_OBS): Add print-utils.o.
7391 (print-utils.o): New target.
7393 2014-02-12 Tom Tromey <tromey@redhat.com>
7395 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7397 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7399 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7401 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7403 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7404 if a PT_IO ptrace request returns sucessfully but indicates that 0
7405 bytes were transferred.
7407 2014-02-12 Pedro Alves <palves@redhat.com>
7408 Kevin Buettner <kevinb@redhat.com>
7410 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7411 TYPE_INSTANCE_FLAG_CODE_SPACE.
7413 2014-02-12 Pedro Alves <palves@redhat.com>
7415 * h8300-tdep.c (pseudo_from_raw_register)
7416 (raw_from_pseudo_register): New functions.
7417 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7420 2014-02-12 Pedro Alves <palves@redhat.com>
7422 * h8300-tdep.c (h8300_register_sim_regno): New function.
7423 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7424 gdbarch_register_sim_regno hook.
7426 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7428 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7430 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7432 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7434 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7436 * obsd-tdep.h (obsd_init_abi): New prototype.
7437 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7438 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7439 (obsd_init_abi): New functions.
7440 * i386obsd-tdep.c: Include "obsd-tdep.h".
7441 (i386obsd_init_abi): Call obsd_init_abi.
7442 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7443 (amd64obsd_init_abi): Call obsd_init_abi.
7444 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7445 obsd-tdep.c to gdb_target_obs.
7447 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7449 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7450 double float arguments to 16-byte in the argument slots.
7452 2014-02-11 Doug Evans <xdje42@gmail.com>
7454 * configure.ac: Don't crash if pkg-config is not found and guile
7455 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7457 * configure: Regenerate.
7459 2014-02-11 Yao Qi <yao@codesourcery.com>
7461 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7462 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7463 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7464 * gnu-nat.c (gnu_xfer_memory): Likewise.
7465 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7466 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7467 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7468 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7470 2014-02-11 Yao Qi <yao@codesourcery.com>
7472 * target.h (enum target_xfer_error): Rename to ...
7473 (enum target_xfer_status): ... it. New. All users updated.
7474 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7476 (TARGET_XFER_STATUS_ERROR_P): New macro.
7477 (target_xfer_error_to_string): Remove declaration.
7478 (target_xfer_status_to_string): Declare.
7479 (target_xfer_partial_ftype): Adjust it.
7480 (struct target_ops) <to_xfer_partial>: Return
7481 target_xfer_status. Add argument xfered_len. Update
7483 * target.c (target_xfer_error_to_string): Rename to ...
7484 (target_xfer_status_to_string): ... it. New. All callers
7486 (target_read_live_memory): Likewise. Call target_xfer_partial
7487 instead of target_read.
7488 (memory_xfer_live_readonly_partial): Return
7489 target_xfer_status. Add argument xfered_len.
7490 (raw_memory_xfer_partial): Likewise.
7491 (memory_xfer_partial_1): Likewise.
7492 (memory_xfer_partial): Likewise.
7493 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7494 properly. Update debug message.
7495 (default_xfer_partial, current_xfer_partial): Likewise.
7496 (target_write_partial): Likewise.
7497 (target_read_partial): Likewise. All callers updated.
7498 (read_whatever_is_readable): Likewise.
7499 (target_write_with_progress): Likewise.
7500 (target_read_alloc_1): Likewise.
7502 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7503 * auxv.c (procfs_xfer_auxv): Likewise.
7504 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7505 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7506 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7507 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7508 * corefile.c (read_memory): Adjust.
7509 * corelow.c (core_xfer_partial): Likewise.
7510 * ctf.c (ctf_xfer_partial): Likewise.
7511 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7513 (darwin_xfer_partial): Likewise.
7514 * exec.c (section_table_xfer_memory_partial): Likewise. All
7516 (exec_xfer_partial): Likewise.
7517 * exec.h (section_table_xfer_memory_partial): Update
7519 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7521 (gnu_xfer_partial): Likewise.
7522 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7523 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7524 (ia64_hpux_xfer_solib_got): Likewise.
7525 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7526 type of 'partial_len' to ULONGEST.
7527 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7528 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7529 (linux_nat_xfer_partial): Likewise.
7530 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7531 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7532 * monitor.c (monitor_xfer_memory): Likewise.
7533 (monitor_xfer_partial): Likewise.
7534 * procfs.c (procfs_xfer_partial): Likewise.
7535 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7536 * record-full.c (record_full_xfer_partial): Likewise.
7537 (record_full_core_xfer_partial): Likewise.
7538 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7539 (gdbsim_xfer_partial): Likewise.
7540 * remote.c (remote_write_bytes_aux): Likewise. All callers
7542 (remote_write_bytes, remote_read_bytes): Likewise. All
7544 (remote_flash_erase): Likewise. All callers updated.
7545 (remote_write_qxfer): Likewise. All callers updated.
7546 (remote_read_qxfer): Likewise. All callers updated.
7547 (remote_xfer_partial): Likewise.
7548 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7549 (rs6000_xfer_shared_libraries): Likewise.
7550 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7551 (sol_thread_xfer_partial): Likewise.
7552 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7553 (sparc_xfer_partial): Likewise.
7554 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7556 (spu_xfer_partial): Likewise.
7557 * spu-multiarch.c (spu_xfer_partial): Likewise.
7558 * tracepoint.c (tfile_xfer_partial): Likewise.
7559 * windows-nat.c (windows_xfer_memory): Likewise.
7560 (windows_xfer_shared_libraries): Likewise.
7561 (windows_xfer_partial): Likewise.
7562 * valprint.c: Replace 'target_xfer_error' with
7563 'target_xfer_status' in comments.
7565 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7567 Checked in by Joel Brobecker <brobecker@adacore.com>.
7568 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7570 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7572 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7573 function parameters.
7575 2014-02-10 Will Newton <will.newton@linaro.org>
7577 * elfread.c (elf_rel_plt_read): Look for a .got section if
7578 looking up .got.plt fails.
7579 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7580 on address passed to elf_gnu_ifunc_record_cache.
7581 (elf_gnu_ifunc_resolve_addr): Likewise.
7582 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7584 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7586 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7587 (X_RETTURN): New macro.
7588 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7590 * sparc64-tdep.c (sparc64_init_abi): Hook
7591 sparc_in_function_epilogue_p.
7593 2014-02-10 Gary Benson <gbenson@redhat.com>
7595 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7596 Rename name_matcher to symbol_matcher.
7598 2014-02-10 Gary Benson <gbenson@redhat.com>
7600 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7601 Use expand_symtabs_file_matcher_ftype and
7602 expand_symtabs_symbol_matcher_ftype.
7604 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7606 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7607 (struct ada_symbol_cache): New.
7608 (ada_free_symbol_cache): Forward declare.
7609 (struct ada_pspace_data): New.
7610 (ada_pspace_data_handle): New static global.
7611 (get_ada_pspace_data, ada_pspace_data_cleanup)
7612 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7613 (cache_space, cache): Delete, now folded inside struct
7615 (ada_get_symbol_cache): New function.
7616 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7618 (_initialize_ada_language): Remove initialization of cache_space.
7619 Move call to observer_attach_inferior_exit up, grouping it
7620 with the other observer registrations inside this function.
7621 Rename command to be more general. Add call to
7622 register_program_space_data_with_cleanup.
7624 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7626 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7627 ada_new_objfile_observer.
7628 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7629 (_initialize_tasks): Update uses of ada_new_objfile_observer
7630 and ada_tasks_normal_stop_observer.
7632 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7634 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7635 returned by the 'Length attribute to integer.
7637 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7639 * ada-lang.c (_initialize_ada_language): Initialize
7640 cache_space obstack.
7642 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7644 * ada-lang.c (HASH_SIZE): New macro.
7645 (struct cache_entry): New type.
7646 (cache_space, cache): New static globals.
7647 (ada_clear_symbol_cache, find_entry): New functions.
7648 (lookup_cached_symbol, cache_symbol): Implement.
7649 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7650 (_initialize_ada_language): Attach ada_new_objfile_observer
7651 and ada_free_objfile_observer.
7653 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7655 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7656 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7657 struct block * parameter.
7658 (ada_lookup_symbol_list_worker): Constify local variable "block".
7659 Remove cast which is no longer necessary.
7661 2014-02-10 Doug Evans <xdje42@gmail.com>
7663 Add Guile as an extension language.
7664 * NEWS: Mention Guile scripting.
7665 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7666 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7667 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7668 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7669 (CLIBS): Add GUILE_LIBS.
7670 (install-guile): New rule.
7671 (guile.o): New rule.
7672 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7673 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7674 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7675 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7676 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7677 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7678 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7679 * configure.ac: New option --with-guile.
7680 * configure: Regenerate.
7681 * config.in: Regenerate.
7682 * auto-load.c: Remove #include "python/python.h". Add #include
7683 "gdb/section-scripts.h".
7684 (source_section_scripts): Handle Guile scripts.
7685 (_initialize_auto_load): Add name of Guile objfile script to
7686 scripts-directory help text.
7687 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7688 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7689 (struct breakpoint): New member scm_bp_object.
7690 * defs.h (enum command_control_type): New value guile_control.
7691 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7693 (show_user): Update comment.
7694 (_initialize_cli_cmds): Update help text for "show user". Update help
7695 text for max-user-call-depth.
7696 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7698 (multi_line_command_p): Add guile_control.
7699 (print_command_lines): Handle guile_control.
7700 (execute_control_command, recurse_read_control_structure): Ditto.
7701 (process_next_line): Recognize "guile" commands.
7702 * disasm.c (gdb_disassemble_info): Make non-static.
7703 * disasm.h: #include "dis-asm.h".
7704 (struct gdbarch): Add forward decl.
7705 (gdb_disassemble_info): Declare.
7706 * extension.c: #include "guile/guile.h".
7707 (extension_languages): Add guile.
7708 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7709 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7710 * gdbtypes.c (get_unsigned_type_max): New function.
7711 (get_signed_type_minmax): New function.
7712 * gdbtypes.h (get_unsigned_type_max): Declare.
7713 (get_signed_type_minmax): Declare.
7714 * guile/README: New file.
7715 * guile/guile-internal.h: New file.
7716 * guile/guile.c: New file.
7717 * guile/guile.h: New file.
7718 * guile/scm-arch.c: New file.
7719 * guile/scm-auto-load.c: New file.
7720 * guile/scm-block.c: New file.
7721 * guile/scm-breakpoint.c: New file.
7722 * guile/scm-disasm.c: New file.
7723 * guile/scm-exception.c: New file.
7724 * guile/scm-frame.c: New file.
7725 * guile/scm-gsmob.c: New file.
7726 * guile/scm-iterator.c: New file.
7727 * guile/scm-lazy-string.c: New file.
7728 * guile/scm-math.c: New file.
7729 * guile/scm-objfile.c: New file.
7730 * guile/scm-ports.c: New file.
7731 * guile/scm-pretty-print.c: New file.
7732 * guile/scm-safe-call.c: New file.
7733 * guile/scm-string.c: New file.
7734 * guile/scm-symbol.c: New file.
7735 * guile/scm-symtab.c: New file.
7736 * guile/scm-type.c: New file.
7737 * guile/scm-utils.c: New file.
7738 * guile/scm-value.c: New file.
7739 * guile/lib/gdb.scm: New file.
7740 * guile/lib/gdb/boot.scm: New file.
7741 * guile/lib/gdb/experimental.scm: New file.
7742 * guile/lib/gdb/init.scm: New file.
7743 * guile/lib/gdb/iterator.scm: New file.
7744 * guile/lib/gdb/printing.scm: New file.
7745 * guile/lib/gdb/types.scm: New file.
7746 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7747 (VPATH): Add $(GUILE_SRCDIR).
7748 (GUILE_DIR): New variable.
7749 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7750 (all): Add stamp-guile dependency.
7751 (stamp-guile): New rule.
7752 (clean-guile, install-guile, uninstall-guile): New rules.
7753 (install-only): Add install-guile dependency.
7754 (uninstall): Add uninstall-guile dependency.
7755 (clean): Add clean-guile dependency.
7757 2014-02-09 Doug Evans <xdje42@gmail.com>
7759 Revert this patch (which I approved, mea culpa).
7761 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7763 * Makefile.in (all-lib): Remove.
7764 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7766 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7768 Fix Python stack corruption.
7769 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7772 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7774 * Makefile.in (all-lib): Remove.
7775 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7777 2014-02-07 Doug Evans <dje@google.com>
7779 * extension-priv.h (extension_language_script_ops): Add comment.
7780 (extension_language_ops): Add comment.
7781 (active_ext_lang_state): Fix typo in comment.
7783 2014-02-07 Pedro Alves <palves@redhat.com>
7785 PR breakpoints/16292
7786 * infrun.c (handle_signal_stop) <signal arrives while stepping
7787 over a breakpoint>: Switch back to the stepping thread.
7789 2014-02-07 Yao Qi <yao@codesourcery.com>
7791 * target.c (target_xfer_partial): Return zero if LEN is zero.
7793 2014-02-07 Yao Qi <yao@codesourcery.com>
7795 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7796 (ld_so_xfer_auxv): Likewise.
7797 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7798 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7799 * corelow.c (core_xfer_partial): Likewise.
7800 * ctf.c (ctf_xfer_partial): Likewise.
7801 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7802 (darwin_xfer_partial): Likewise.
7803 * exec.c (exec_xfer_partial): Likewise.
7804 * gnu-nat.c (gnu_xfer_partial): Likewise.
7805 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7806 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7807 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7808 * linux-nat.c (linux_xfer_siginfo): Likewise.
7809 (linux_proc_xfer_spu): Likewise.
7810 * procfs.c (procfs_xfer_partial): Likewise.
7811 * record-full.c (record_full_xfer_partial): Likewise.
7812 (record_full_core_xfer_partial): Likewise.
7813 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7814 * remote.c (remote_write_qxfer): Likewise.
7815 (remote_write_qxfer, remote_read_qxfer): Likewise.
7816 (remote_xfer_partial): Likewise.
7817 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7818 (rs6000_xfer_shared_libraries): Likewise.
7819 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7820 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7821 (spu_xfer_partial): Likewise.
7822 * target.c (memory_xfer_partial_1): Likewise.
7823 * tracepoint.c (tfile_xfer_partial): Likewise.
7824 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7825 (windows_xfer_partial): Likewise.
7827 2014-02-07 Yao Qi <yao@codesourcery.com>
7829 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7831 (core_xfer_shared_libraries_aix): Likewise.
7832 * gdbarch.c, gdbarch.h: Regenerated.
7833 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7834 ULONGEST. Change 'len_avail' type to ULONGEST.
7835 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7836 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7838 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7840 2014-02-07 Yao Qi <yao@codesourcery.com>
7842 * corefile.c (memory_error): Get 'exception' from ERR and pass
7843 'exception' to throw_error.
7845 2014-02-06 Doug Evans <xdje42@gmail.com>
7847 * configure.ac (libpython checking): Remove all but python.o from
7848 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7849 * configure: Regenerate.
7851 * Makefile.in (SFILES): Add extension.c.
7852 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7853 (COMMON_OBS): Add extension.o.
7854 * extension.h: New file.
7855 * extension-priv.h: New file.
7856 * extension.c: New file.
7858 * python/python-internal.h: #include "extension.h".
7859 (gdbpy_auto_load_enabled): Declare.
7860 (gdbpy_apply_val_pretty_printer): Declare.
7861 (gdbpy_apply_frame_filter): Declare.
7862 (gdbpy_preserve_values): Declare.
7863 (gdbpy_breakpoint_cond_says_stop): Declare.
7864 (gdbpy_breakpoint_has_cond): Declare.
7865 (void source_python_script_for_objfile): Delete.
7866 * python/python.c: #include "extension-priv.h".
7867 Delete inclusion of "observer.h".
7868 (extension_language_python): Moved here and renamed from
7869 script_language_python in py-auto-load.c.
7870 Redefined to be of type extension_language_defn.
7871 (python_extension_script_ops): New global.
7872 (python_extension_ops): New global.
7873 (struct python_env): New member previous_active.
7874 (restore_python_env): Call restore_active_ext_lang.
7875 (ensure_python_env): Call set_active_ext_lang.
7876 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7878 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7880 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7882 (gdbpy_eval_from_control_command): Renamed from
7883 eval_python_from_control_command, made static. New arg extlang.
7884 (gdbpy_source_script) Renamed from source_python_script, made static.
7886 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7887 result to int. New arg extlang.
7888 (gdbpy_source_objfile_script): Renamed from
7889 source_python_script_for_objfile, made static. New arg extlang.
7890 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7891 static. New args extlang, extlang_printers. Change result type to
7893 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7894 static. New arg extlang. Rename arg printers to extlang_printers
7895 and change type to ext_lang_type_printers *.
7896 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7897 static. Replace argument arg with extlang, extlang_printers.
7898 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7899 (!HAVE_PYTHON, source_python_script): Delete.
7900 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7901 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7902 (!HAVE_PYTHON, start_type_printers): Delete.
7903 (!HAVE_PYTHON, apply_type_printers): Delete.
7904 (!HAVE_PYTHON, free_type_printers): Delete.
7905 (_initialize_python): Delete call to observer_attach_before_prompt.
7906 (finalize_python): Set/restore active extension language.
7907 (gdbpy_finish_initialization) Renamed from
7908 finish_python_initialization, made static. New arg extlang.
7909 (gdbpy_initialized): New function.
7910 * python/python.h: #include "extension.h". Delete #include
7911 "value.h", "mi/mi-cmds.h".
7912 (extension_language_python): Declare.
7913 (GDBPY_AUTO_FILE_NAME): Delete.
7914 (enum py_bt_status): Moved to extension.h and renamed to
7916 (enum frame_filter_flags): Moved to extension.h.
7917 (enum py_frame_args): Moved to extension.h and renamed to
7918 ext_lang_frame_args.
7919 (finish_python_initialization): Delete.
7920 (eval_python_from_control_command): Delete.
7921 (source_python_script): Delete.
7922 (apply_val_pretty_printer): Delete.
7923 (apply_frame_filter): Delete.
7924 (preserve_python_values): Delete.
7925 (gdbpy_script_language_defn): Delete.
7926 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7927 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7929 * auto-load.c: #include "extension.h".
7930 (GDB_AUTO_FILE_NAME): Delete.
7931 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7932 (script_language_gdb): Delete, moved to extension.c and renamed to
7933 extension_language_gdb.
7934 (source_gdb_script_for_objfile): Delete.
7935 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7936 (loaded_script): Change type of language member to
7937 struct extension_language_defn *.
7938 (init_loaded_scripts_info): Initialize
7939 unsupported_script_warning_printed.
7940 (maybe_add_script): Make static. Change type of language arg to
7941 struct extension_language_defn *.
7942 (clear_section_scripts): Reset unsupported_script_warning_printed.
7943 (auto_load_objfile_script_1): Rewrite to use extension language API.
7944 (auto_load_objfile_script): Make public. Remove support-compiled-in
7945 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7946 (source_section_scripts): Rewrite to use extension language API.
7947 (load_auto_scripts_for_objfile): Rewrite to use
7948 auto_load_scripts_for_objfile.
7949 (collect_matching_scripts_data): Change type of language member to
7950 struct extension_language_defn *.
7951 (auto_load_info_scripts): Change type of language arg to
7952 struct extension_language_defn *.
7953 (unsupported_script_warning_print): New function.
7954 (script_not_found_warning_print): Make static.
7955 (_initialize_auto_load): Rewrite construction of scripts-directory
7957 * auto-load.h (struct objfile): Add forward decl.
7958 (struct script_language): Delete.
7959 (struct auto_load_pspace_info): Add forward decl.
7960 (struct extension_language_defn): Add forward decl.
7961 (maybe_add_script): Delete.
7962 (auto_load_objfile_script): Declare.
7963 (script_not_found_warning_print): Delete.
7964 (auto_load_info_scripts): Update prototype.
7965 (auto_load_gdb_scripts_enabled): Declare.
7966 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7967 auto_load_python_scripts_enabled and made public.
7968 (script_language_python): Delete, moved to python.c.
7969 (gdbpy_script_language_defn): Delete.
7970 (info_auto_load_python_scripts): Update to use
7971 extension_language_python.
7973 * breakpoint.c (condition_command): Replace call to
7974 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7975 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7976 with call to breakpoint_ext_lang_cond_says_stop.
7977 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7978 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7979 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7980 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7982 (local_setattro): Print name of extension language with existing
7985 * valprint.c (val_print, value_print): Update to call
7986 apply_ext_lang_val_pretty_printer.
7987 * cp-valprint.c (cp_print_value): Update call to
7988 apply_ext_lang_val_pretty_printer.
7989 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7990 (gdbpy_apply_val_pretty_printer): Renamed from
7991 apply_val_pretty_printer. New arg extlang.
7992 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7994 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7995 extension language API.
7996 * cli/cli-script.c (execute_control_command): Update to call
7997 eval_ext_lang_from_control_command.
7999 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8000 enum ext_lang_bt_status values. Update call to
8001 apply_ext_lang_frame_filter.
8002 (mi_cmd_stack_list_locals): Ditto.
8003 (mi_cmd_stack_list_args): Ditto.
8004 (mi_cmd_stack_list_variables): Ditto.
8005 * mi/mi-main.c: Delete #include "python/python-internal.h".
8006 Add #include "extension.h".
8007 (mi_cmd_list_features): Replace reference to python internal variable
8008 gdb_python_initialized with call to ext_lang_initialized_p.
8010 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8011 Update to use enum ext_lang_frame_args. Update to call
8012 apply_ext_lang_frame_filter.
8013 * python/py-framefilter.c (extract_sym): Update to use enum
8015 (extract_value, py_print_type, py_print_value): Ditto.
8016 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8017 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8018 (py_print_frame): Ditto.
8019 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8020 New arg extlang. Update to use enum ext_lang_bt_status.
8022 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8023 finish_python_initialization. Replace with call to
8024 finish_ext_lang_initialization.
8026 * typeprint.c (do_free_global_table): Update to call
8027 free_ext_lang_type_printers.
8028 (create_global_typedef_table): Update to call
8029 start_ext_lang_type_printers.
8030 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8031 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8032 (type_print_options): Change type of global_printers from "void *"
8033 to "struct ext_lang_type_printers *".
8035 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8036 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8037 (gdbpy_preserve_values): Renamed from preserve_python_values.
8039 (!HAVE_PYTHON, preserve_python_values): Delete.
8041 * utils.c (quit_flag): Delete, moved to extension.c.
8042 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8045 * eval.c: Delete #include "python/python.h".
8046 * main.c: Delete #include "python/python.h".
8048 * defs.h: Update comment.
8050 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8054 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8056 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8059 2014-02-05 Yao Qi <yao@codesourcery.com>
8061 * remote.c (remote_pass_signals): Remove local 'buf' and use
8063 (remote_program_signals): Likewise.
8065 2014-02-05 Yao Qi <yao@codesourcery.com>
8067 * ctf.c: Include "inferior.h" and "gdbthread.h".
8068 (CTF_PID): A new macro.
8069 (ctf_open): Call inferior_appeared and add_thread_silent.
8070 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8071 (ctf_thread_alive): New function.
8072 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8074 2014-02-05 Yao Qi <yao@codesourcery.com>
8078 2013-05-24 Yao Qi <yao@codesourcery.com>
8080 * tracepoint.c (TFILE_PID): Remove.
8081 (tfile_open): Don't add thread and inferior.
8082 (tfile_close): Don't set 'inferior_ptid'. Don't call
8083 exit_inferior_silent.
8084 (tfile_thread_alive): Remove.
8085 (init_tfile_ops): Don't set field 'to_thread_alive' of
8088 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8090 * remote.c (remote_start_remote): Call remote_check_symbols even
8091 if only symbol-file (not file) has been given.
8093 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8095 * gdbarch.sh (skip_entrypoint): New callback.
8096 * gdbarch.c, gdbarch.h: Regenerate.
8097 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8098 * infrun.c (fill_in_stop_func): Likewise.
8099 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8100 (ppc_elfv2_elf_make_msymbol_special): New function.
8101 (ppc_elfv2_skip_entrypoint): Likewise.
8102 (ppc_linux_init_abi): Install them for ELFv2.
8104 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8106 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8107 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8108 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8109 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8110 structures returned in GPRs.
8112 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8114 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8115 offset to the stack parameter list for the ELFv2 ABI.
8117 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8119 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8120 set_gdbarch_convert_from_func_ptr_addr and
8121 set_gdbarch_elf_make_msymbol_special for ELFv1.
8122 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8123 function descriptors on ELFv1.
8124 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8125 set up r12 at function entry.
8127 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8129 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8130 (struct gdbarch_tdep): New member elf_abi.
8132 * rs6000-tdep.c: Include "elf/ppc64.h".
8133 (rs6000_gdbarch_init): Detect ELF ABI version.
8135 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8137 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8138 within a register pair holding a DFP 128-bit value on little-endian.
8139 (ppc64_sysv_abi_return_value_base): Likewise.
8140 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8141 (dfp_pseudo_register_write): Likewise.
8143 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8145 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8146 offset on little-endian when passing _Decimal32.
8147 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8149 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8151 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8152 of the overlapped FP register within the VSX register on little-
8154 (efpr_pseudo_register_write): Likewise.
8156 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8158 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8159 offset on little-endian when passing small structures.
8161 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8163 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8164 (struct ppc64_sysv_argpos): New data structure.
8165 (ppc64_sysv_abi_push_float): Remove.
8166 (ppc64_sysv_abi_push_val): New function.
8167 (ppc64_sysv_abi_push_integer): Likewise.
8168 (ppc64_sysv_abi_push_freg): Likewise.
8169 (ppc64_sysv_abi_push_vreg): Likewise.
8170 (ppc64_sysv_abi_push_param): Likewise.
8171 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8172 (ppc64_sysv_abi_return_value_base): New function.
8173 (ppc64_sysv_abi_return_value): Refactor to use it.
8175 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8177 * NEWS: Document new target powerpc64le-*-linux*.
8179 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8181 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8182 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8184 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8185 register set used in ELF core dumps. Add floating-point register set.
8187 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8189 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8190 dwarf2_to_gdb[] table using symbolic constants. Adjust
8191 penultimate entry from number representing the PC register
8192 to symbolic constant representing the MDR register. Add
8193 constant for the PC register to the end of the table.
8195 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8197 * bsd-kvm.c: Include <sys/param.h>
8199 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8201 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8203 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8205 * ada-lang.h (clear_ada_sym_cache): Delete.
8207 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8209 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8211 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8213 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8214 the sigreturn register save area only if the syscall is
8217 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8219 * valops.c (value_slice): Minor reformatting.
8221 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8223 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8225 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8227 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8229 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8230 (ada_ignore_descriptive_types_p): New static global.
8231 (find_parallel_type_by_descriptive_type): Return immediately
8232 if ada_ignore_descriptive_types_p is set.
8233 (_initialize_ada_language): Register new commands "maintenance
8234 set ada", "maintenance show ada", "maintenance set ada
8235 ignore-descriptive-types" and "maintenance show ada
8236 ignore-descriptive-types".
8237 * NEWS: Add entry for new "maint ada set/show
8238 ignore-descriptive-types" commands.
8240 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8242 * record-btrace.c (record_btrace_close): Call btrace_teardown
8245 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8247 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8250 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8252 * ada-typeprint (type_is_full_subrange_of_target_type):
8254 (print_range): Add parameter bounds_prefered_p. If not set,
8255 try printing range types using the name of their base type.
8256 (print_range_type): Add parameter bounds_prefered_p.
8257 Use it in call to print_range.
8258 (print_array_type, ada_print_type): Update calls to print_range
8259 and print_range_type.
8261 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8263 * ada-typeprint.c (print_array_type, print_choices, print_range)
8264 (print_range_bound, print_dynamic_range_bound, print_range_type):
8267 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8269 * ada-typeprint.c (print_range): Add missing empty line
8270 after local declaration.
8272 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8274 * ada-valprint.c (print_optional_low_bound): Get index_type's
8275 target type for as long as it is a TYPE_CODE_RANGE.
8277 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8279 * procfs.c (procfs_make_note_section): Remove assertion and
8282 2014-01-24 Yao Qi <yao@codesourcery.com>
8284 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8285 * corelow.c (get_core_siginfo): Likewise.
8287 2014-01-24 Yao Qi <yao@codesourcery.com>
8289 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8290 ULONGEST. Don't check 'len' is negative.
8291 (remote_write_bytes): Change type of 'len' to ULONGEST.
8293 2014-01-23 Tom Tromey <tromey@redhat.com>
8296 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8297 Handle exception from frame.block.
8298 (FrameVars.fetch_frame_locals): Likewise.
8300 2014-01-23 Tom Tromey <tromey@redhat.com>
8303 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8304 on a NULL pointer. Move "goto error" to correct place.
8306 2014-01-23 Tom Tromey <tromey@redhat.com>
8309 * python/py-framefilter.c (apply_frame_filter): Call
8310 ensure_python_env after computing gdbarch.
8312 2014-01-23 Yao Qi <yao@codesourcery.com>
8314 * target.c (raw_memory_xfer_partial): Change argument type
8315 from void * to gdb_byte *.
8316 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8318 2014-01-22 Doug Evans <dje@google.com>
8320 New gdbserver option --debug-format=timestamp.
8323 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8325 * syscalls/s390x-linux.xml: New file.
8326 * syscalls/s390-linux.xml: New file.
8327 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8328 (XML_SYSCALL_FILENAME_S390X): Likewise.
8329 (op_svc): New enum value for SVC opcode.
8330 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8331 (s390_linux_get_syscall_number): New function.
8332 (s390_gdbarch_init): Register '*get_syscall_number' and the
8333 syscall xml file name.
8334 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8335 "s390-linux.xml" and "s390x-linux.xml".
8336 * NEWS: Announce new feature.
8338 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8340 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8342 2014-01-22 Pedro Alves <palves@redhat.com>
8344 * xtensa-config.c: Include defs.h.
8346 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8348 * common/common-utils.h: Add "ARI:" comment beside __func__
8351 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8353 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8354 documentation a bit.
8356 2014-01-21 Roland McGrath <mcgrathr@google.com>
8358 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8359 * configure: Regenerate.
8360 * aclocal.m4: Regenerate.
8361 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8362 New substituted variables.
8363 (install-strip): New target.
8364 (INSTALL_SCRIPT): New substituted variable.
8365 (FLAGS_TO_PASS): Add it.
8366 (install-only): Use $(INSTALL_SCRIPT) rather than
8367 $(INSTALL_PROGRAM) for gcore.
8369 2014-01-20 Tom Tromey <tromey@redhat.com>
8371 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8374 2014-01-20 Tom Tromey <tromey@redhat.com>
8376 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8377 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8378 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8379 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8380 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8381 (struct cmd_list_element) <flags>: Remove.
8382 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8383 doc_allocated>: New fields.
8384 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8386 * maint.c (maintenance_do_deprecate): Update.
8387 * top.c (execute_command): Update.
8389 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8391 * xtensa-linux-nat.c: Include asm/ptrace.h.
8393 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8395 * Makefile.in (SFILES): Add d-support.c.
8396 (COMMON_OBS): Add d-support.o.
8397 * d-lang.h (d_parse_symbol): Add comment, now defined in
8399 * d-lang.c (parse_call_convention)
8400 (parse_attributes, parse_function_types)
8401 (parse_function_args, parse_type, parse_identifier)
8402 (call_convention_p, d_parse_symbol): Move functions to ...
8403 * d-support.c: ... New file.
8405 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8407 * d-lang.h (d_parse_symbol): Add declaration.
8408 * d-lang.c (extract_identifiers)
8409 (extract_type_info): Remove functions.
8410 (parse_call_convention, parse_attributes)
8411 (parse_function_types, parse_function_args)
8412 (parse_type, parse_identifier, call_convention_p)
8413 (d_parse_symbol): New functions.
8414 (d_demangle): Use d_parse_symbol to demangle D symbols.
8416 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8418 * d-lang.h (struct builtin_d_type): New data type.
8419 (builtin_d_type): Add declaration.
8420 * d-lang.c (d_language_arch_info, build_d_types)
8421 (builtin_d_type): New functions.
8422 (enum d_primitive_types): New data type.
8423 (d_language_defn): Change c_language_arch_info to
8424 d_language_arch_info.
8425 (d_type_data): New static variable.
8426 (_initialize_d_language): Initialize d_type_data.
8428 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8430 * d-lang.h (d_main_name): Add declaration.
8431 * d-lang.c (d_main_name): New function.
8432 * symtab.c (find_main_name): Add call to d_main_name.
8434 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8436 * d-lang.c (d_language_defn): Change macro_expansion_c to
8439 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8441 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8443 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8445 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8446 gdb_exception" declaration.
8447 * remote.c (getpkt_or_notif_sane): Likewise.
8449 2014-01-17 Doug Evans <dje@google.com>
8451 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8452 function, contents of dirnames_to_char_ptr_vec_append moved here.
8453 (delim_string_to_char_ptr_vec): New function.
8454 (dirnames_to_char_ptr_vec_append): Rewrite.
8455 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8457 2014-01-17 Doug Evans <dje@google.com>
8459 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8461 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8462 #include "common-utils.h".
8463 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8464 * common/vec.h (VEC_ASSERT_PASS): Update.
8465 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8466 (MACH_CHECK_ERROR): Update.
8468 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8470 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8472 * gdbarch.h: Regenerate.
8474 2014-01-16 Tom Tromey <tromey@redhat.com>
8476 * value.c (struct value) <regnum>: Move earlier.
8478 2014-01-16 Tom Tromey <tromey@redhat.com>
8480 * remote.c (extended_remote_create_inferior): Rename from
8481 extended_remote_create_inferior_1. Add "ops" argument. Remove
8484 2014-01-16 Pedro Alves <palves@redhat.com>
8486 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8487 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8490 2014-01-16 Doug Evans <dje@google.com>
8492 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8496 * btrace.h (btrace_thread_flag): New.
8497 (struct btrace_thread_info) <flags>: New.
8498 * record-btrace.c (record_btrace_resume_thread)
8499 (record_btrace_find_thread_to_move, btrace_step_no_history)
8500 (btrace_step_stopped, record_btrace_start_replaying)
8501 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8502 (record_btrace_find_resume_thread): New.
8503 (record_btrace_resume, record_btrace_wait): Extend.
8504 (record_btrace_can_execute_reverse): New.
8505 (record_btrace_open): Fail in non-stop mode.
8506 (record_btrace_set_replay): Split into this, ...
8507 (record_btrace_stop_replaying): ... this, ...
8508 (record_btrace_clear_histories): ... and this.
8509 (init_record_btrace_ops): Init to_can_execute_reverse.
8510 * NEWS: Announce it.
8512 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8514 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8515 (forward_target_decr_pc_after_break)
8516 (target_decr_pc_after_break): New.
8517 * target.c (forward_target_decr_pc_after_break)
8518 (target_decr_pc_after_break): New.
8519 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8520 instead of gdbarch_decr_pc_after_break.
8521 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8522 instead of gdbarch_decr_pc_after_break.
8523 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8524 instead of gdbarch_decr_pc_after_break.
8525 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8526 instead of gdbarch_decr_pc_after_break.
8527 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8528 instead of gdbarch_decr_pc_after_break.
8529 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8530 instead of gdbarch_decr_pc_after_break.
8532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8534 * btrace.c: Include regcache.h.
8535 (btrace_add_pc): New.
8536 (btrace_enable): Call btrace_add_pc.
8537 (btrace_is_empty): New.
8538 * btrace.h (btrace_is_empty): New.
8539 * record-btrace.c (require_btrace, record_btrace_info): Call
8542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8544 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8545 Support delta reads.
8546 (linux_disable_btrace): Change return type.
8547 * common/linux-btrace.h (linux_read_btrace): Change parameters
8548 and return type to allow error reporting. Update users.
8549 (linux_disable_btrace): Change return type. Update users.
8550 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8552 (btrace_error): New.
8553 (btrace_block) <begin>: Comment on BEGIN == 0.
8554 * btrace.c (btrace_compute_ftrace): Start from the end of
8556 (btrace_stitch_trace, btrace_clear_history): New.
8557 (btrace_fetch): Read delta trace, return if replaying.
8558 (btrace_clear): Move clear history code to btrace_clear_history.
8559 (parse_xml_btrace): Throw an error if parsing failed.
8560 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8561 and return type to allow error reporting.
8562 (target_read_btrace): Change parameters and return type to allow
8564 * target.c (target_read_btrace): Update.
8565 * remote.c (remote_read_btrace): Support delta reads. Pass
8567 * NEWS: Announce it.
8569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8571 * record.h (record_btrace_frame_unwind)
8572 (record_btrace_tailcall_frame_unwind): New declarations.
8573 * dwarf2-frame: Include record.h
8574 (dwarf2_frame_cfa): Throw an error for btrace frames.
8575 * record-btrace.c: Include hashtab.h.
8576 (btrace_get_bfun_name): New.
8577 (btrace_call_history): Call btrace_get_bfun_name.
8578 (struct btrace_frame_cache): New.
8580 (bfcache_hash, bfcache_eq, bfcache_new): New.
8581 (btrace_get_frame_function): New.
8582 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8583 (record_btrace_frame_this_id): Compute own id.
8584 (record_btrace_frame_prev_register): Provide PC, throw_error
8585 for all other registers.
8586 (record_btrace_frame_sniffer): Detect btrace frames.
8587 (record_btrace_tailcall_frame_sniffer): New.
8588 (record_btrace_frame_dealloc_cache): New.
8589 (record_btrace_frame_unwind): Add new functions.
8590 (record_btrace_tailcall_frame_unwind): New.
8591 (_initialize_record_btrace): Allocate cache.
8592 * btrace.c (btrace_clear): Call reinit_frame_cache.
8593 * NEWS: Announce it.
8595 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8597 * record-btrace.c (record_btrace_set_replay)
8598 (record_btrace_goto_begin, record_btrace_goto_end)
8599 (record_btrace_goto): New.
8600 (init_record_btrace_ops): Initialize them.
8601 * NEWS: Announce it.
8603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8605 * record-btrace.c (record_btrace_find_new_threads)
8606 (record_btrace_thread_alive): New.
8607 (init_record_btrace_ops): Initialize to_find_new_threads and
8610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8612 * record-btrace.c (record_btrace_resume): New.
8613 (record_btrace_wait): New.
8614 (init_record_btrace_ops): Initialize to_wait and to_resume.
8616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8618 * record-btrace.c (record_btrace_xfer_partial)
8619 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8620 (record_btrace_allow_memory_access): New.
8621 (init_record_btrace_ops): Initialize new methods.
8622 * target.c (raw_memory_xfer_partial): Bail out if target reports
8623 that this memory is not available.
8625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8627 * target.h (target_ops) <to_insert_breakpoint>
8628 <to_remove_breakpoint>: Add target_ops parameter.
8629 (forward_target_insert_breakpoint): New.
8630 (forward_target_remove_breakpoint): New.
8631 (memory_remove_breakpoint, memory_insert_breakpoint):
8632 Add target_ops parameter.
8633 * target.c (target_insert_breakpoint): Split into this and ...
8634 (forward_target_insert_breakpoint): ... this.
8635 (target_remove_breakpoint): Split into this and ...
8636 (forward_target_remove_breakpoint): ... this.
8637 (debug_to_insert_breakpoint): Add target_ops parameter.
8638 Call forward_target_insert_breakpoint.
8639 (debug_to_remove_breakpoint): Add target_ops parameter.
8640 Call forward_target_remove_breakpoint.
8641 (update_current_target): Do not inherit or default to_insert_breakpoint
8642 and to_remove_breakpoint.
8643 * corelow.c (ignore): Add target_ops parameter.
8644 * exec.c (ignore): Add target_ops parameter.
8645 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8646 Add target_ops parameter.
8647 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8648 Add target_ops parameter.
8649 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8650 Add target_ops parameter.
8651 * record-full.c (record_full_beneath_to_insert_breakpoint)
8652 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8653 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8654 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8655 (record_full_core_remove_breakpoint): Add target_ops parameter.
8657 (record_full_beneath_to_insert_breakpoint_ops)
8658 (record_full_beneath_to_remove_breakpoint_ops)
8659 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8660 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8661 tmp_to_remove_breakpoint_ops,
8662 record_full_beneath_to_insert_breakpoint_ops, and
8663 record_full_beneath_to_remove_breakpoint_ops.
8664 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8665 (m32r_remove_breakpoint): Add target_ops parameter.
8666 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8667 Add target_ops parameter.
8668 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8669 Add target_ops parameter.
8671 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8672 Markus Metzger <markus.t.metzger@intel.com>
8674 * record-btrace.c: Include frame-unwind.h.
8675 (record_btrace_frame_unwind_stop_reason)
8676 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8677 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8679 (init_record_btrace_ops): Install it.
8681 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8683 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8686 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8688 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8691 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8693 * frame-unwind.c: Include target.h.
8694 (frame_unwind_try_unwinder): New function with code from ...
8695 (frame_unwind_find_by_frame): ... here. New variable
8696 unwinder_from_target, call also target_get_unwinder)
8697 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8698 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8699 * target.h (struct target_ops): New fields to_get_unwinder and
8700 to_get_tailcall_unwinder.
8701 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8705 * record-btrace.c (record_btrace_fetch_registers)
8706 (record_btrace_store_registers)
8707 (record_btrace_to_prepare_to_store): New.
8708 (init_record_btrace_ops): Add the above.
8710 2014-01-16 Tom Tromey <tromey@redhat.com>
8712 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8713 * target.h (struct target_ops) <to_prepare_to_store>: Add
8715 (target_prepare_to_store): Add argument.
8716 * target.c (debug_to_prepare_to_store): Add argument.
8717 (update_current_target): Update.
8718 * remote.c (remote_prepare_to_store): Add 'self' argument.
8719 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8720 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8721 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8722 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8724 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8725 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8726 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8727 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8728 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8730 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8732 * btrace.h (replay) <replay>: New.
8733 (btrace_is_replaying): New.
8734 * btrace.c (btrace_clear): Free replay iterator.
8735 (btrace_is_replaying): New.
8736 * record-btrace.c (record_btrace_is_replaying): New.
8737 (record_btrace_info): Print insn number if replaying.
8738 (record_btrace_insn_history): Start at replay position.
8739 (record_btrace_call_history): Start at replay position.
8740 (init_record_btrace_ops): Init to_record_is_replaying.
8742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8744 * record-btrace.c (record_btrace_insn_history_range): Include
8746 (record_btrace_insn_history_from): Adjust range.
8747 (record_btrace_call_history_range): Include
8749 (record_btrace_call_history_from): Adjust range.
8750 * NEWS: Announce changes.
8752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8754 * record.h (enum record_print_flag)
8755 <record_print_indent_calls>: New.
8756 * record.c (get_call_history_modifiers): Recognize /c modifier.
8757 (_initialize_record): Document /c modifier.
8758 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8759 Reorder fields. Optionally indent the function name. Update
8761 * NEWS: Announce changes.
8763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8765 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8769 * btrace.c (ftrace_new_function): Start counting at one.
8770 * record-btrace.c (record_btrace_info): Adjust number of calls
8772 * NEWS: Announce it.
8774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8776 * record-btrace.c (btrace_call_history_insn_range): Print
8777 insn range as [begin, end].
8779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8781 * btrace.h (struct btrace_func_link): New.
8782 (enum btrace_function_flag): New.
8783 (struct btrace_inst): Rename to ...
8784 (struct btrace_insn): ...this. Update all users.
8785 (struct btrace_func) <ibegin, iend>: Remove.
8786 (struct btrace_func_link): New.
8787 (struct btrace_func): Rename to ...
8788 (struct btrace_function): ...this. Update all users.
8789 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8790 (number, level, flags>: New.
8791 (struct btrace_insn_iterator): Rename to ...
8792 (struct btrace_insn_history): ...this.
8794 (struct btrace_insn_iterator, btrace_call_iterator): New.
8795 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8796 (struct btrace_target_info) <begin, end, level>
8797 <insn_history, call_history>: New.
8798 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8799 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8800 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8801 (btrace_call_number, btrace_call_begin, btrace_call_end)
8802 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8803 (btrace_find_function_by_number, btrace_set_insn_history)
8804 (btrace_set_call_history): New.
8805 * btrace.c (btrace_init_insn_iterator)
8806 (btrace_init_func_iterator, compute_itrace): Remove.
8807 (ftrace_print_function_name, ftrace_print_filename)
8808 (ftrace_skip_file): Change
8810 (ftrace_init_func): Remove.
8811 (ftrace_debug): Use new btrace_function fields.
8812 (ftrace_function_switched): Also consider gaining and
8813 losing symbol information).
8814 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8815 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8816 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8818 (ftrace_new_function): Move. Remove debug print.
8819 (ftrace_update_lines, ftrace_update_insns): New.
8820 (ftrace_update_function): Check for call, ret, and jump.
8821 (compute_ftrace): Renamed to ...
8822 (btrace_compute_ftrace): ...this. Rewritten to compute call
8824 (btrace_fetch, btrace_clear): Updated.
8825 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8826 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8827 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8828 (btrace_call_number, btrace_call_begin, btrace_call_end)
8829 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8830 (btrace_find_function_by_number, btrace_set_insn_history)
8831 (btrace_set_call_history): New.
8832 * record-btrace.c (require_btrace): Use new btrace thread
8834 (record_btrace_info, btrace_insn_history)
8835 (record_btrace_insn_history, record_btrace_insn_history_range):
8836 Use new btrace thread info fields and new iterator.
8837 (btrace_func_history_src_line): Rename to ...
8838 (btrace_call_history_src_line): ...this. Use new btrace
8840 (btrace_func_history): Rename to ...
8841 (btrace_call_history): ...this. Use new btrace thread info
8842 fields and new iterator.
8843 (record_btrace_call_history, record_btrace_call_history_range):
8844 Use new btrace thread info fields and new iterator.
8846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8848 * frame.h (frame_id_build_unavailable_stack_special): New.
8849 * frame.c (frame_id_build_unavailable_stack_special): New.
8851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8853 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8854 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8855 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8857 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8858 (i386_insn_is_jump, i386_jmp_p): New.
8859 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8860 insn_is_jump to gdbarch.
8861 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8862 * gdbarch.h: Regenerated.
8863 * gdbarch.c: Regenerated.
8864 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8865 (default_insn_is_jump): New.
8866 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8867 (default_insn_is_jump): New.
8869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8871 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8873 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8874 (btrace_read_type) <btrace_read_new>: Change to ...
8875 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8879 * common/linux-btrace.c (linux_read_btrace): Free trace from
8882 2014-01-15 Doug Evans <dje@google.com>
8884 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8887 2014-01-15 Tom Tromey <tromey@redhat.com>
8889 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8890 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8891 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8892 (set_objfile_main_name): New function.
8893 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8894 language_of_main>: New fields.
8895 (set_objfile_main_name): Declare.
8896 * symtab.c (find_main_name): Loop over objfiles to find the main
8898 (set_main_name): Now static.
8899 (get_main_info): Add comment.
8900 * symtab.h (set_main_name): Don't declare.
8902 2014-01-15 Tom Tromey <tromey@redhat.com>
8904 * symtab.c (main_progspace_key): New global.
8905 (struct main_info): New.
8906 (name_of_main, language_of_main): Remove.
8907 (get_main_info, main_info_cleanup): New function.
8908 (set_main_name, main_name, main_language): Use get_main_info.
8909 (_initialize_symtab): Initialize main_progspace_key.
8911 2014-01-15 Tom Tromey <tromey@redhat.com>
8913 * dbxread.c (process_one_symbol): Update.
8914 * dwarf2read.c (read_partial_die): Update.
8915 * symfile.c (set_initial_language): Call main_language.
8916 * symtab.c (language_of_main): Now static.
8917 (set_main_name): Add 'lang' parameter.
8918 (find_main_name): Update.
8919 (main_language): New function.
8920 (symtab_observer_executable_changed): Update.
8921 * symtab.h (set_main_name): Update.
8922 (language_of_main): Remove.
8923 (main_language): Declare.
8925 2014-01-15 Tom Tromey <tromey@redhat.com>
8927 * symfile.c (init_entry_point_info): Use new "initialized" field.
8929 * objfiles.h (struct entry_point) <initialized>: New field.
8930 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8931 (struct objfile) <ei>: ...here. Remove.
8932 * objfiles.c (entry_point_address_query): Update.
8934 2014-01-15 Tom Tromey <tromey@redhat.com>
8936 * objfiles.c (entry_point_address_query): Relocate entry point
8938 (objfile_relocate1): Do not relocate entry point address.
8939 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8940 <the_bfd_section_index>: New field.
8941 * symfile.c (init_entry_point_info): Find the entry point's
8944 2014-01-15 Tom Tromey <tromey@redhat.com>
8946 * solib-frv.c (enable_break): Use entry_point_address_query.
8948 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8950 * NEWS: Add note on improved process record-replay on
8951 arm*-linux* targets.
8953 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8955 * arm-tdep.c (enum arm_record_result): New enum.
8956 (arm_record_unsupported_insn): New function.
8957 (arm_record_coproc_data_proc): Removed.
8958 (thumb2_record_ld_st_multiple): New function.
8959 (thumb2_record_ld_st_dual_ex_tbb): New function.
8960 (thumb2_record_data_proc_sreg_mimm): New function.
8961 (thumb2_record_ps_dest_generic): New function.
8962 (thumb2_record_branch_misc_cntrl): New function.
8963 (thumb2_record_str_single_data): New function.
8964 (thumb2_record_ld_mem_hints): New function.
8965 (thumb2_record_ld_word): New function.
8966 (thumb2_record_lmul_lmla_div): New function.
8967 (thumb2_record_decode_insn_handler): New function.
8968 (decode_insn): Add thumb32 instruction handlers.
8970 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8972 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8973 (struct arm_linux_record_tdep): Declare.
8974 (arm_canonicalize_syscall): New function.
8975 (arm_all_but_pc_registers_record): New function.
8976 (arm_linux_syscall_record): New function.
8977 (arm_linux_init_abi): Add syscall recording constructs.
8978 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8979 decoding. (arm_record_coproc_data_proc): Update arm syscall
8981 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8982 <arm_syscall_record>: New field.
8983 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8986 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8988 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8989 register for push instruction recording.
8991 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8993 * arm-tdep.c (thumb_record_misc): Update to correct logical
8994 error while recording ldm, ldmia and pop instructions.
8996 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8998 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9000 2014-01-15 Pedro Alves <palves@redhat.com>
9002 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9003 (go32_resume, go32_fetch_registers, store_register)
9004 (go32_store_registers, go32_prepare_to_store)
9005 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9006 (go32_create_inferior, go32_can_run, go32_terminal_init)
9007 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9010 2014-01-15 Tom Tromey <tromey@redhat.com>
9012 * target.h (async_callback_ftype): New typedef.
9013 (struct target_ops) <to_async>: Use it.
9015 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9017 * python/py-value.c (get_field_type): Remove unnecessary curly
9018 braces for single-statement if block.
9020 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9022 * python/py-type.c (convert_field): Add missing empty line
9025 2014-01-14 Doug Evans <dje@google.com>
9027 * symfile.h (expand_symtabs_matching): Renamed from
9028 expand_partial_symbol_names. Update prototype.
9029 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9030 * symfile.c (expand_symtabs_matching): Renamed from
9031 expand_partial_symbol_names. New args file_matcher, kind.
9032 Rename arg fun to symbol_matcher.
9033 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9034 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9035 ada_expand_partial_symbol_name.
9036 (ada_make_symbol_completion_list): Update to call
9037 expand_symtabs_matching.
9038 (ada_add_global_exceptions): Call expand_symtabs_matching.
9039 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9040 call map_symbol_filenames.
9041 * symtab.c (sources_info): Update to call map_symbol_filenames.
9042 (search_symbols): Call expand_symtabs_matching.
9043 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9044 (default_make_symbol_completion_list_break_on): Update to call
9045 expand_symtabs_matching.
9046 (make_source_files_completion_list): Update to call
9047 map_symbol_filenames.
9049 2014-01-14 Doug Evans <dje@google.com>
9051 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9052 (expand_symtabs_symbol_matcher_ftype): New typedef.
9053 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9054 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9055 * symfile.c (expand_partial_symbol_names): Update to use
9056 expand_symtabs_symbol_matcher_ftype.
9057 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9058 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9059 Arg name_matcher renamed to symbol_matcher.
9060 * psymtab.c (recursively_search_psymtabs): Update to use
9061 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9063 (expand_symtabs_matching_via_partial): Update to use
9064 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9065 Arg name_matcher renamed to symbol_matcher.
9067 2014-01-14 Doug Evans <dje@google.com>
9069 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9070 (map_partial_symbol_filenames): Ditto.
9071 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9072 (map_partial_symbol_filenames): Ditto.
9073 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9074 (map_partial_symbol_filenames): Ditto.
9075 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9076 (map_partial_symbol_filenames): Ditto.
9077 * symtab.c: Delete #include "psymtab.h".
9079 2014-01-14 Pedro Alves <palves@redhat.com>
9080 Tom Tromey <tromey@redhat.com>
9082 * infrun.c (use_displaced_stepping): Use find_record_target
9083 instead of RECORD_IS_USED.
9084 (adjust_pc_after_break): Use record_full_is_used instead of
9086 * record-btrace.c (record_btrace_open): Call record_preopen
9087 instead of checking RECORD_IS_USED.
9088 * record-full.c (record_full_shortname)
9089 (record_full_core_shortname): New globals.
9090 (record_full_is_used): New function.
9091 (find_full_open): Call record_preopen instead of checking
9093 (init_record_full_ops): Set the target's shortname to
9094 record_full_shortname.
9095 (init_record_full_core_ops): Set the target's shortname to
9096 record_full_core_shortname.
9097 * record-full.h (record_full_is_used): Declare.
9098 * record.c (find_record_target): Make extern.
9099 (record_preopen): New function.
9100 * record.h (RECORD_IS_USED): Delete macro.
9101 (find_record_target, record_preopen): Declare functions.
9103 2014-01-14 Yao Qi <yao@codesourcery.com>
9105 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9106 'len''s type to ULONGEST.
9107 (core_xfer_shared_libraries_aix): Likewise.
9108 * gdbarch.c, gdbarch.h: Regenerated.
9109 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9110 Change type of 'len' to ULONGEST.
9111 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9112 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9114 2014-01-14 Yao Qi <yao@codesourcery.com>
9116 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9117 type of 'len' to ULONGEST.
9118 (linux_xfer_osdata_processgroups): Likewise.
9119 (linux_xfer_osdata_threads): Likewise.
9120 (linux_xfer_osdata_fds): Likewise.
9121 (linux_xfer_osdata_isockets): Likewise.
9122 (linux_xfer_osdata_shm): Likewise.
9123 (linux_xfer_osdata_sem): Likewise.
9124 (linux_xfer_osdata_msg): Likewise.
9125 (linux_common_xfer_osdata): Likewise.
9126 (struct osdata_type) <getter>: Likewise.
9127 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9130 2014-01-14 Yao Qi <yao@codesourcery.com>
9132 * target.h (target_xfer_partial_ftype): Update.
9133 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9135 * aix-thread.c (aix_thread_xfer_partial): Change type of
9136 argument 'len' to ULONGEST.
9137 * auxv.c (procfs_xfer_auxv): Likewise.
9138 (ld_so_xfer_auxv): Likewise.
9139 (memory_xfer_auxv): Likewise.
9140 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9141 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9142 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9143 * corelow.c (core_xfer_partial): Likewise.
9144 * ctf.c (ctf_xfer_partial): Likewise.
9145 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9147 (darwin_read_dyld_info): Likewise.
9148 (darwin_xfer_partial): Likewise.
9149 * exec.c (section_table_xfer_memory_partial): Likewise.
9150 (exec_xfer_partial): Likewise.
9151 * exec.h (section_table_xfer_memory_partial): Update
9153 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9154 instead of plongest.
9155 (gnu_xfer_partial): Likewise.
9156 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9157 (ia64_hpux_xfer_solib_got): Likewise.
9158 (ia64_hpux_xfer_partial): Likewise.
9159 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9160 * inf-ptrace.c (inf_ptrace_xfer_partial):
9161 * inf-ttrace.c (inf_ttrace_xfer_partial):
9162 * linux-nat.c (linux_xfer_siginfo): Likewise.
9163 (linux_nat_xfer_partial): Likewise.
9164 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9165 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9166 * monitor.c (monitor_xfer_memory): Likewise.
9167 (monitor_xfer_partial): Likewise.
9168 * procfs.c (procfs_xfer_partial): Likewise.
9169 * record-full.c (record_full_xfer_partial): Likewise.
9170 (record_full_core_xfer_partial): Likewise.
9171 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9172 instead of plongest.
9173 (gdbsim_xfer_partial): Likewise.
9174 * remote.c (remote_xfer_partial): Likewise.
9175 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9176 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9178 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9179 (rs6000_xfer_shared_libraries): Likewise.
9180 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9181 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9182 (sparc_xfer_partial): Likewise.
9183 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9184 (spu_xfer_partial): Likewise.
9185 * spu-multiarch.c (spu_xfer_partial): Likewise.
9186 * target.c (target_read_live_memory): Likewise.
9187 (memory_xfer_live_readonly_partial): Likewise.
9188 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9189 (target_xfer_partial, default_xfer_partial): Likewise.
9190 (current_xfer_partial): Likewise.
9191 * tracepoint.c (tfile_xfer_partial): Likewise.
9192 * windows-nat.c (windows_xfer_memory): Likewise. Call
9193 pulongest instead of plongest.
9194 (windows_xfer_partial): Likewise.
9195 (windows_xfer_shared_libraries): Likewise.
9197 2014-01-14 Yao Qi <yao@codesourcery.com>
9199 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9200 target_xfer_partial_ftype.
9202 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9206 * valops.c (value_struct_elt_bitpos): New function
9207 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9208 object to 'None' if the field name is an empty string ("").
9209 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9210 attribute to look for a field when 'name' is 'None'.
9211 (get_field_type): New function
9213 2014-01-13 Doug Evans <dje@google.com>
9216 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9217 (try_open_dwop_file): Ditto.
9218 * gdb_bfd.c: #include "vec.h".
9219 (bfdp): New typedef.
9220 (struct gdb_bfd_data): New member included_bfds.
9221 (gdb_bfd_unref): Unref all included bfds.
9222 (gdb_bfd_record_inclusion): New function.
9223 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9225 2014-01-13 Tom Tromey <tromey@redhat.com>
9227 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9229 2014-01-13 Tom Tromey <tromey@redhat.com>
9231 * defs.h (use_windows): Remove.
9232 * gdb.c (main): Update.
9233 * main.c (captured_main, gdb_main): Update.
9234 * main.h (struct captured_main_args) <use_windows>: Remove.
9235 * top.c (use_windows): Remove.
9237 2014-01-13 Tom Tromey <tromey@redhat.com>
9239 * defs.h (deprecated_flush_hook): Remove.
9241 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 * linux-thread-db.c (try_thread_db_load): Add parameter
9245 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9246 (try_thread_db_load_from_pdir_1): Move it there from here.
9247 (try_thread_db_load_from_sdir): Update caller.
9248 (try_thread_db_load_from_dir): Move it there from here.
9250 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9252 * regformats/regdat.sh: Always rewrite the register file.
9254 2014-01-13 Pedro Alves <palves@redhat.com>
9256 * Makefile.in (CHECK_HEADERS): New variable.
9257 (check-headers:): New rule.
9259 2014-01-13 Tom Tromey <tromey@redhat.com>
9261 * cli/cli-setshow.c (do_set_command): Update.
9262 * defs.h (deprecated_set_hook): Remove.
9263 * top.c (deprecated_set_hook): Remove.
9265 2014-01-13 Pedro Alves <palves@redhat.com>
9267 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9268 the tracepoint if the PC is a pseudo-register.
9270 2014-01-13 Tom Tromey <tromey@redhat.com>
9272 * defs.h (XCALLOC): Remove.
9273 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9274 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9275 * dwarf2loc.c (allocate_piece_closure): Likewise.
9276 * elfread.c (elf_symfile_segments): Likewise.
9277 (elf_symfile_segments): Likewise.
9278 * gdbtypes.c (copy_type_recursive): Likewise.
9279 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9280 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9281 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9283 * mt-tdep.c (mt_gdbarch_init): Likewise.
9284 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9286 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9287 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9288 * registry.c (registry_alloc_data): Likewise.
9289 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9290 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9291 * serial.c (serial_fdopen_ops): Likewise.
9292 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9294 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9295 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9298 2014-01-13 Tom Tromey <tromey@redhat.com>
9300 * defs.h (XMALLOC): Remove.
9301 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9302 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9303 * cli-out.c (struct ui_out *): Likewise.
9304 * cli/cli-dump.c (add_dump_command): Likewise.
9305 (add_dump_command): Likewise.
9306 * complaints.c (get_complaints): Likewise.
9307 (find_complaint): Likewise.
9308 * dwarf2-frame.c (execute_cfa_program): Likewise.
9309 * dwarf2read.c (abbrev_table_read_table): Likewise.
9310 * gdbarch.sh: Likewise.
9311 * gdbarch.c: Rebuild.
9312 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9313 * interps.c (interp_new): Likewise.
9314 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9315 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9316 * mi/mi-console.c (mi_console_file_new): Likewise.
9317 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9318 * mi/mi-out.c (mi_out_new): Likewise.
9319 * mi/mi-parse.c (mi_parse): Likewise.
9320 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9321 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9322 * observer.c (xalloc_observer_list_node): Likewise.
9323 * regcache.c (regcache_xmalloc_1): Likewise.
9324 * reggroups.c (reggroup_new): Likewise.
9325 (_initialize_reggroup): Likewise.
9326 * registry.c (register_data_with_cleanup): Likewise.
9327 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9328 * ser-base.c (serial_ttystate): Likewise.
9329 * ser-mingw.c (make_pipe_state): Likewise.
9330 * ser-pipe.c (pipe_open): Likewise.
9331 * serial.c (serial_open): Likewise.
9332 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9333 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9334 (tui_alloc_win_info): Likewise.
9335 (tui_add_content_elements): Likewise.
9336 * tui/tui-file.c (tui_file_new): Likewise.
9337 * tui/tui-out.c (tui_out_new): Likewise.
9338 * ui-file.c (mem_file_new): Likewise.
9339 * ui-out.c (push_level): Likewise.
9340 (make_cleanup_ui_out_end): Likewise.
9341 (append_header_to_list): Likewise.
9342 (ui_out_new): Likewise.
9343 * user-regs.c (user_reg_add_builtin): Likewise.
9345 2014-01-13 Tom Tromey <tromey@redhat.com>
9347 * defs.h (XZALLOC): Remove.
9348 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9349 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9350 (get_ada_tasks_inferior_data): Likewise.
9351 * auto-load.c (get_auto_load_pspace_data): Likewise.
9352 * auxv.c (get_auxv_inferior_data): Likewise.
9353 * bfd-target.c (target_bfd_reopen): Likewise.
9354 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9355 (deprecated_insert_raw_breakpoint): Likewise.
9356 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9357 * corelow.c (core_open): Likewise.
9358 * darwin-nat.c (darwin_check_new_threads): Likewise.
9359 (darwin_attach_pid): Likewise.
9360 * dummy-frame.c (dummy_frame_push): Likewise.
9361 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9362 * dwarf2loc.c (allocate_piece_closure): Likewise.
9363 * elfread.c (elf_symfile_segments): Likewise.
9364 * eval.c (ptrmath_type_p): Likewise.
9365 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9366 * gdbtypes.c (alloc_type_arch): Likewise.
9367 (alloc_type_instance): Likewise.
9368 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9369 * inf-child.c (inf_child_can_use_agent): Likewise.
9370 * inflow.c (get_inflow_inferior_data): Likewise.
9371 * infrun.c (save_infcall_suspend_state): Likewise.
9372 * jit.c (jit_reader_load): Likewise.
9373 (get_jit_objfile_data): Likewise.
9374 (get_jit_program_space_data): Likewise.
9375 (jit_object_open_impl): Likewise.
9376 (jit_symtab_open_impl): Likewise.
9377 (jit_block_open_impl): Likewise.
9378 (jit_frame_sniffer): Likewise.
9379 * linux-fork.c (add_fork): Likewise.
9380 * maint.c (make_command_stats_cleanup): Likewise.
9381 * objfiles.c (get_objfile_pspace_data): Likewise.
9382 * opencl-lang.c (struct lval_closure): Likewise.
9383 * osdata.c (osdata_start_osdata): Likewise.
9384 * progspace.c (new_address_space): Likewise.
9385 (add_program_space): Likewise.
9386 * remote-sim.c (get_sim_inferior_data): Likewise.
9387 * sh-tdep.c (sh_gdbarch_init): Likewise.
9388 * skip.c (Ignore): Likewise.
9389 (skip_delete_command): Likewise.
9390 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9391 (library_list_start_library): Likewise.
9392 (solib_aix_current_sos): Likewise.
9393 * solib-darwin.c (get_darwin_info): Likewise.
9394 (darwin_current_sos): Likewise.
9395 * solib-dsbt.c (get_dsbt_info): Likewise.
9396 * solib-ia64-hpux.c (new_so_list): Likewise.
9397 (ia64_hpux_get_solib_linkage_addr): Likewise.
9398 * solib-spu.c (append_ocl_sos): Likewise.
9399 (spu_current_sos): Likewise.
9400 * solib-svr4.c (get_svr4_info): Likewise.
9401 (svr4_keep_data_in_core): Likewise.
9402 (library_list_start_library): Likewise.
9403 (svr4_default_sos): Likewise.
9404 (svr4_read_so_list): Likewise.
9405 * solib-target.c (library_list_start_library): Likewise.
9406 (solib_target_current_sos): Likewise.
9407 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9408 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9409 * symfile.c (default_symfile_segments): Likewise.
9410 * target-descriptions.c (tdesc_data_init): Likewise.
9411 (tdesc_create_reg): Likewise.
9412 (struct tdesc_type *): Likewise.
9413 (tdesc_create_vector): Likewise.
9414 (tdesc_set_struct_size): Likewise.
9415 (struct tdesc_type *): Likewise.
9416 (tdesc_free_feature): Likewise.
9417 (tdesc_create_feature): Likewise.
9418 * windows-nat.c (windows_add_thread): Likewise.
9419 (windows_make_so): Likewise.
9420 * xml-support.c (gdb_xml_body_text): Likewise.
9421 (gdb_xml_create_parser_and_cleanup): Likewise.
9422 (xml_process_xincludes): Likewise.
9423 * xml-syscall.c (allocate_syscalls_info): Likewise.
9424 (syscall_create_syscall_desc): Likewise.
9426 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9428 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9429 function, with code from i386_stap_parse_special_token.
9430 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9431 (i386_stap_parse_special_token): Move code to the two functions
9434 2014-01-09 Pedro Alves <palves@redhat.com>
9435 Hui Zhu <hui@codesourcery.com>
9438 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9439 bp_err_string. Don't mark the location shlib_disabled if the
9440 error thrown wasn't a generic or memory error. Catch errors
9441 thrown while inserting breakpoints in overlayed code. Output
9442 error message of software breakpoints.
9443 * remote.c (remote_insert_breakpoint): If this breakpoint has
9444 target-side commands but this stub doesn't support Z0 packets,
9445 throw NOT_SUPPORTED_ERROR error.
9446 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9447 * target.h (target_insert_breakpoint): Extend comment.
9448 (target_insert_hw_breakpoint): Add comment.
9450 2014-01-08 Pedro Alves <palves@redhat.com>
9452 * remote.c (remote_add_thread): Add threads silently if starting
9454 (remote_notice_new_inferior): If in all-stop, and starting up,
9455 don't call notice_new_inferior.
9456 (get_current_thread): New function, factored out from ...
9457 (add_current_inferior_and_thread): ... this. Adjust.
9458 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9459 found any thread, then select the remote's current thread as GDB's
9462 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9464 * NEWS: Create a new section for the next release branch.
9465 Rename the section of the current branch, now that it has
9468 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9470 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9471 * version.in: Bump version to 7.7.50.DATE-cvs.
9473 2014-01-08 Yao Qi <yao@codesourcery.com>
9475 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9476 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9477 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9479 2014-01-08 Yao Qi <yao@codesourcery.com>
9481 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9482 return value of bfd_get_filename to symbol_file_add_from_bfd.
9484 2014-01-08 Pierre Muller <muller@sourceware.org>
9487 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9488 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9489 to prim_record_mininal_symbol_and_info.
9490 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9491 in call to prim_record_minimal_symbol_and_info.
9492 (read_pe_exported_syms): Set index field of section_data.
9494 2014-01-07 Andrew Pinski <apinski@cavium.com>
9496 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9497 * features/aarch64.c: Regenerate.
9499 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9501 * target.c (return_null): Define.
9502 (update_current_target): Use it instead of return_zero for
9503 functions that return a pointer.
9505 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9507 * source.c (add_path): Fix check for duplicated paths in the previously
9510 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9512 * ada-lang.c: Remove duplicated include statements.
9513 * alphabsd-nat.c: Ditto.
9514 * amd64-darwin-tdep.c: Ditto.
9515 * amd64fbsd-nat.c: Ditto.
9516 * auto-load.c: Ditto.
9518 * breakpoint.c: Ditto.
9520 * fork-child.c: Ditto.
9521 * gdb_usleep.c: Ditto.
9522 * i386-darwin-tdep.c: Ditto.
9523 * i386fbsd-nat.c: Ditto.
9525 * inferior.c: Ditto.
9527 * linux-nat.c: Ditto.
9528 * linux-tdep.c: Ditto.
9529 * m68kbsd-nat.c: Ditto.
9530 * m68klinux-nat.c: Ditto.
9531 * microblaze-tdep.c: Ditto.
9532 * mips-linux-tdep.c: Ditto.
9533 * mn10300-tdep.c: Ditto.
9534 * nto-tdep.c: Ditto.
9535 * opencl-lang.c: Ditto.
9537 * printcmd.c: Ditto.
9538 * regcache.c: Ditto.
9539 * remote-m32r-sdi.c: Ditto.
9543 * tilegx-linux-nat.c: Ditto.
9544 * tilegx-tdep.c: Ditto.
9545 * tracepoint.c: Ditto.
9547 * vaxbsd-nat.c: Ditto.
9548 * windows-nat.c: Ditto.
9549 * xtensa-tdep.c: Ditto.
9551 2014-01-07 Yao Qi <yao@codesourcery.com>
9553 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9555 2014-01-07 Yao Qi <yao@codesourcery.com>
9556 Joel Brobecker <brobecker@adacore.com>
9558 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9559 (pdc_write_regs): Likewise.
9560 (fetch_regs_kernel_thread): Likewise.
9561 (store_regs_kernel_thread): Likewise.
9563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9565 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9566 tagged type objects to their actual type.
9568 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9570 * ada-valprint.c (print_field_values): Add "language" parameter.
9571 Update calls to print_field_values and print_variant_part.
9572 Pass new parameter "language" in call to val_print instead
9573 of "current_language". Replace call to ada_val_print by call
9575 (print_variant_part): Add "language" parameter.
9576 (ada_val_print_struct_union): Update call to print_field_values.
9578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9580 * ada-valprint.c (ui_memcpy): Delete.
9581 (ada_print_floating): Update documentation. Add empty line
9582 between between function documentation and implementation.
9583 Delete variable "buffer". Use ui_file_xstrdup in place of
9584 ui_file_put. Minor adjustments following this change.
9586 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9588 * ada-valprint.c (ada_val_print_string): New function,
9589 extracted from ada_val_print_array.
9590 (ada_val_print_array): Replace extracted code by call
9591 to ada_val_print_string followed by a return. Move
9592 "else" branch to the function's top block.
9594 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9596 * ada-valprint.c (ada_val_print_array): Move implementation
9597 down. Rename parameter "offset" and "val" into "offset_aligned"
9598 and "original_value" respectively. Add parameter "offset".
9600 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9602 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9603 re-organizing the code. Change the "???" message printed
9604 when target type is a TYPE_CODE_UNDEF into
9605 "<ref to undefined type>".
9607 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9609 * ada-valprint.c (print_record): Delete, implementation inlined...
9610 (ada_val_print_struct_union): ... here. Remove call to
9611 ada_check_typedef in inlined implementation.
9613 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9615 * ada-valprint.c (ada_val_print_gnat_array): New function,
9616 extracted from ada_val_print_1;
9617 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9618 (ada_val_print_flt, ada_val_print_struct_union)
9619 (ada_val_print_ref): Likewise.
9620 (ada_val_print_1): Delete variables i and elttype.
9621 Replace extracted-out code by call to corresponding
9624 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9626 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9630 * ada-valprint.c (ada_val_print_1): Replace calls to
9631 ada_val_print_1 by calls to val_print.
9633 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9635 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9636 Update calls to self accordingly. Replace calls to c_val_print
9637 by calls to val_print.
9639 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9641 * ada-valprint.c (print_record): Delete declaration.
9642 (adjust_type_signedness, ada_val_print_1): Likewise.
9643 (ada_val_print): Move function implementation down.
9644 (print_variant_part, print_field_values, print_record):
9645 Move function implementation up.
9647 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9649 * python/py-type.c (typy_get_name): New function.
9650 (type_object_getset): Add entry for attribute "name".
9651 * NEWS: Add entry mentioning this new attribute.
9653 2014-01-07 Yao Qi <yao@codesourcery.com>
9655 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9658 2014-01-07 Yao Qi <yao@codesourcery.com>
9660 * gnu-nat.c (info_port_rights): Add qualifier const to
9663 2014-01-07 Yao Qi <yao@codesourcery.com>
9665 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9667 2014-01-07 Yao Qi <yao@codesourcery.com>
9669 * gnu-nat.c (make_inf) Update declaration.
9670 (make_inf): Make it static.
9671 (inf_set_traced): Likewise.
9672 (inf_port_to_thread, inf_task_died_status): Likewise.
9674 2014-01-07 Yao Qi <yao@codesourcery.com>
9676 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9678 2014-01-07 Yao Qi <yao@codesourcery.com>
9680 * gnu-nat.c (_initialize_gnu_nat): Declare.
9682 2014-01-07 Yao Qi <yao@codesourcery.com>
9684 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9686 (struct gdbarch_info) <byte_order>: Change type to
9688 <byte_order_for_code>: Likewise.
9689 * gdbarch.c, gdbarch.h: Regenerated.
9691 2014-01-06 Sasha Smundak <asmundak@google.com>
9693 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9695 2014-01-06 Tom Tromey <tromey@redhat.com>
9697 * doublest.c (convert_doublest_to_floatformat): Use const, not
9699 * somread.c (som_symtab_read): Likewise.
9701 2014-01-07 Hui Zhu <hui@codesourcery.com>
9703 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9704 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9705 (gdb_bfd_fopen): Ditto.
9706 (gdb_bfd_openr): Ditto.
9707 (gdb_bfd_openw): Ditto.
9708 (gdb_bfd_openr_iovec): Ditto.
9709 (gdb_bfd_fdopenr): Ditto.
9710 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9711 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9713 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9715 * symfile-mem.c (symbol_file_add_from_memory): Removed
9716 gdb_bfd_stash_filename.
9718 2014-01-03 Doug Evans <dje@google.com>
9720 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9723 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9725 Update year range in copyright notice of all files.
9727 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9729 * top.c (print_gdb_version): Set copyright year to 2014.
9731 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9733 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9735 For older changes see ChangeLog-2013.
9741 version-control: never