Refactor i386_{insert,remove}_hw_breakpoint
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
322a8e06
GB
12014-06-19 Gary Benson <gbenson@redhat.com>
2
3 * i386-nat.c (i386_insert_hw_breakpoint): Use
4 i386_insert_watchpoint.
5 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6
8f26655c
GB
72014-06-19 Gary Benson <gbenson@redhat.com>
8
9 * i386-nat.c (i386_dr_show): Renamed to
10 i386_show_dr and made static. All uses updated.
11 (i386_dr_length_and_rw_bits): Renamed to
12 i386_length_and_rw_bits and made static.
13 All uses updated.
14 (i386_dr_insert_aligned_watchpoint): Renamed to
15 i386_insert_aligned_watchpoint and made static.
16 All uses updated.
17 (i386_dr_remove_aligned_watchpoint): Renamed to
18 i386_remove_aligned_watchpoint and made static.
19 All uses updated.
20 (i386_dr_update_inferior_debug_regs): Renamed to
21 i386_update_inferior_debug_regs and made static.
22 All uses updated.
23 * nat/i386-dregs.h (i386_dr_show): Removed.
24 (i386_dr_length_and_rw_bits): Likewise.
25 (i386_dr_insert_aligned_watchpoint): Likewise.
26 (i386_dr_remove_aligned_watchpoint): Likewise.
27 (i386_dr_update_inferior_debug_regs): Likewise.
28
992c7d70
GB
292014-06-19 Gary Benson <gbenson@redhat.com>
30
31 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
32 * configure: Regenerate.
33 * config.in: Likewise.
34 * main.c (signal.h): New include.
35 (setup_alternate_signal_stack): New function.
36 (captured_main): Call the above.
37 * cp-support.c (signal.h): New include.
38 (catch_demangler_crashes): New flag.
39 (SIGJMP_BUF): New define.
40 (SIGSETJMP): Likewise.
41 (SIGLONGJMP): Likewise.
42 (gdb_demangle_jmp_buf): New static global.
43 (gdb_demangle_attempt_core_dump): Likewise.
44 (gdb_demangle_signal_handler): New function.
45 (gdb_demangle): If catch_demangler_crashes is set, install the
46 above signal handler before calling bfd_demangle, and restore
47 the original signal handler afterwards. Display the offending
48 symbol and call demangler_warning the first time a segmentation
49 fault is caught.
50 (_initialize_cp_support): New maint set/show command.
51
eae7090b
GB
522014-06-19 Gary Benson <gbenson@redhat.com>
53
54 * utils.h (resource_limit_kind): New enum.
55 (can_dump_core): New declaration.
56 (warn_cant_dump_core): Likewise.
57 (dump_core): Likewise.
58 * utils.c (dump_core): Made nonstatic. Added new
59 parameter "limit_kind".
60 (can_dump_core): Made nonstatic. Moved printing code to...
61 (warn_cant_dump_core): New function.
62 (can_dump_core_warn): Likewise.
63 (internal_vproblem): Replace calls to can_dump_core with
64 calls to can_dump_core_warn. Supply new argument to each.
65
57fcfb1b
GB
662014-06-19 Gary Benson <gbenson@redhat.com>
67
68 * utils.h (demangler_vwarning): New declaration.
69 (demangler_warning): Likewise.
70 * utils.c (struct internal_problem)
71 <user_settable_should_quit>: New field.
72 <user_settable_should_dump_core>: Likewise
73 (internal_error_problem): Add values for above new fields.
74 (internal_warning_problem): Likewise.
75 (demangler_warning_problem): New static global.
76 (demangler_vwarning): New function.
77 (demangler_warning): Likewise.
78 (add_internal_problem_command): Selectively add commands.
79 (_initialize_utils): New internal problem command.
80 * maint.c (maintenance_demangler_warning): New function.
81 (_initialize_maint_cmds): New command.
82
17a40b44
TT
832014-06-18 Tom Tromey <tromey@redhat.com>
84
85 * f-valprint.c (info_common_command_for_block): Update.
86 * symtab.h (struct general_symbol_info) <common_block>: Now
87 const.
88
346d1dfe
TT
892014-06-18 Tom Tromey <tromey@redhat.com>
90
91 * symtab.h (struct symtab) <blockvector>: Now const.
92 * ada-lang.c (ada_add_global_exceptions): Update.
93 * buildsym.c (augment_type_symtab): Update.
94 * dwarf2read.c (dw2_lookup_symbol): Update.
95 * jit.c (finalize_symtab): Update.
96 * jv-lang.c (add_class_symtab_symbol): Update.
97 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
98 Update.
99 * objfiles.c (objfile_relocate1): Update.
100 * psymtab.c (lookup_symbol_aux_psymtabs)
101 (maintenance_check_psymtabs): Update.
102 * python/py-symtab.c (stpy_global_block, stpy_static_block):
103 Update.
104 * spu-tdep.c (spu_catch_start): Update.
105 * symmisc.c (dump_symtab_1): Update.
106 * symtab.c (lookup_global_symbol_from_objfile)
107 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
108 (basic_lookup_transparent_type_quick)
109 (basic_lookup_transparent_type, find_pc_sect_symtab)
110 (find_pc_sect_line, search_symbols): Update.
111 * block.c (find_block_in_blockvector): Make "bl" const.
112 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
113 const.
114 (blockvector_contains_pc): Make "bv" const.
115 (block_for_pc_sect): Update.
116 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
117 (blockvector_contains_pc): Update.
118 * breakpoint.c (resolve_sal_pc): Update.
119 * inline-frame.c (block_starting_point_at): Update.
120
1834676b
TT
1212014-06-18 Tom Tromey <tromey@redhat.com>
122
123 * completer.c (complete_line): Make "line_buffer" const.
124 * completer.h (complete_line): Update.
125
ac1a991b
TT
1262014-06-18 Tom Tromey <tromey@redhat.com>
127
128 * symtab.c (add_macro_name): Remove unneeded cast.
129
5bc98e52
TT
1302014-06-18 Tom Tromey <tromey@redhat.com>
131
132 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
133 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
134
8236def8
TT
1352014-06-18 Tom Tromey <tromey@redhat.com>
136
137 * probe.c (info_probes_for_ops): Make "arg" const.
138 * probe.h (info_probes_for_ops): Update.
139
3977b71f
TT
1402014-06-18 Tom Tromey <tromey@redhat.com>
141
142 * varobj.c (varobj_create): Update.
143 * valops.c (value_of_this): Update.
144 * tracepoint.c (add_local_symbols, scope_info): Update.
145 * symtab.h (struct general_symbol_info) <block>: Now const.
146 * symtab.c (skip_prologue_sal)
147 (default_make_symbol_completion_list_break_on)
148 (skip_prologue_using_sal): Update.
149 * stack.h (iterate_over_block_locals)
150 (iterate_over_block_local_vars): Update.
151 * stack.c (print_frame_args): Update.
152 (iterate_over_block_locals, iterate_over_block_local_vars): Make
153 parameter const.
154 (get_selected_block): Make return type const.
155 * python/py-frame.c (frapy_block): Update.
156 * python/py-block.c (gdbpy_block_for_pc): Update.
157 * p-exp.y (%union) <bval>: Now const.
158 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
159 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
160 * m2-exp.y (%union) <bval>: Now const.
161 * linespec.c (get_current_search_block): Make return type const.
162 (create_sals_line_offset, find_label_symbols): Update.
163 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
164 Update.
165 (block_starting_point_at): Make "block" const.
166 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
167 (check_exception_resume): Update.
168 * guile/scm-frame.c (gdbscm_frame_block): Update.
169 * guile/scm-block.c (gdbscm_lookup_block): Update.
170 * frame.h (get_frame_block): Update.
171 (get_selected_block): Make return type const.
172 * frame.c (frame_id_inner): Update.
173 * f-valprint.c (info_common_command_for_block)
174 (info_common_command): Update.
175 * dwarf2loc.c (dwarf2_find_location_expression)
176 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
177 (locexpr_describe_location_piece): Update.
178 * c-exp.y (%union) <bval>: Now const.
179 * breakpoint.c (resolve_sal_pc): Update.
180 * blockframe.c (get_frame_block):Make return type const.
181 (get_pc_function_start, get_frame_function, find_pc_sect_function)
182 (block_innermost_frame): Update.
183 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
184 (block_for_pc, block_for_pc_sect): Update.
185 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
186 'pblock' const.
187 (block_for_pc_sect, block_for_pc): Make return type const.
188 * ax-gdb.c (gen_expr): Update.
189 * alpha-mdebug-tdep.c (find_proc_desc): Update.
190 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
191 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
192 (ada_read_var_value): Update.
193 * ada-exp.y (struct name_info) <block>: Now const.
194 (%union): Likewise.
195 (block_lookup): Constify.
196
b9228891
GB
1972014-06-18 Gary Benson <gbenson@redhat.com>
198
199 * nat/i386-dregs.h: New file.
200 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
201 * i386-nat.h (i386-dregs.h): New include.
202 (DR_FIRSTADDR): Now in i386-dregs.h.
203 (DR_LASTADDR): Likewise.
204 (DR_NADDR): Likewise.
205 (DR_STATUS): Likewise.
206 (DR_CONTROL): Likewise.
207 (i386_debug_reg_state): Likewise.
208 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
209
a1aa2221
LM
2102014-06-18 Don Breazeal <donb@codesourcery.com>
211
212 * breakpoint.c (set_longjmp_breakpoint): Call
213 momentary_breakpoint_from_master with additional argument.
214 (set_longjmp_breakpoint_for_call_dummy): Call
215 momentary_breakpoint_from_master with additional argument.
216 (set_std_terminate_breakpoint): Call
217 momentary_breakpoint_from_master with additional argument.
218 (momentary_breakpoint_from_master): Add argument to function
219 definition and use it to initialize structure member flag.
220 (clone_momentary_breakpoint): Call
221 momentary_breakpoint_from_master with additional argument.
222 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
223 member flags set in momentary_breakpoint_from_master.
224
4be83cc2
GB
2252014-06-18 Gary Benson <gbenson@redhat.com>
226
227 * i386-nat.c (i386_show_dr): Renamed to
228 i386_dr_show and made nonstatic. All uses updated.
229 (i386_length_and_rw_bits): Renamed to
230 i386_dr_length_and_rw_bits and made nonstatic.
231 All uses updated.
232 (i386_insert_aligned_watchpoint): Renamed to
233 i386_dr_insert_aligned_watchpoint and made nonstatic.
234 All uses updated.
235 (i386_remove_aligned_watchpoint): Renamed to
236 i386_dr_remove_aligned_watchpoint and made nonstatic.
237 All uses updated.
238 (i386_update_inferior_debug_regs): Renamed to
239 i386_dr_update_inferior_debug_regs and made nonstatic.
240 All uses updated.
241
131aa0d4
GB
2422014-06-18 Gary Benson <gbenson@redhat.com>
243
244 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
245 (i386_dr_low_can_set_control): Likewise.
246 (i386_dr_low_set_addr): Likewise.
247 (i386_dr_low_set_control): Likewise.
248 (i386_dr_low_get_addr): Likewise.
249 (i386_dr_low_get_status): Likewise.
250 (i386_dr_low_get_control): Likewise.
251 (i386_insert_aligned_watchpoint): Use new macros.
252 (i386_update_inferior_debug_regs): Likewise.
253 (i386_stopped_data_address): Likewise.
254
d9305f7f
GB
2552014-06-18 Gary Benson <gbenson@redhat.com>
256
257 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
258 New parameter. All uses updated.
259
ea008da4
GB
2602014-06-18 Gary Benson <gbenson@redhat.com>
261
262 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
263 All uses updated.
264
1b6d4134
GB
2652014-06-18 Gary Benson <gbenson@redhat.com>
266
267 * i386-nat.c (debug_printf): New macro.
268 (i386_get_debug_register_length): Likewise.
269 (TARGET_HAS_DR_LEN_8): Use above macro.
270 (i386_show_dr): Use debug_printf instead of puts_unfiltered
271 and printf_unfiltered. Use phex to format values.
272
9b4550ef
GB
2732014-06-18 Gary Benson <gbenson@redhat.com>
274
275 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
276 Make const.
277
6e62758f
GB
2782014-06-18 Gary Benson <gbenson@redhat.com>
279
280 * i386-nat.c: Comment changes.
281
51c79e94
GB
2822014-06-18 Gary Benson <gbenson@redhat.com>
283
284 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
285
3e11889a
GB
2862014-06-18 Gary Benson <gbenson@redhat.com>
287
288 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
289 (i386_insert_aligned_watchpoint): Likewise.
290 (i386_remove_aligned_watchpoint): Likewise.
291 (i386_handle_nonaligned_watchpoint): Likewise.
292
fc6e2f03
GB
2932014-06-18 Gary Benson <gbenson@redhat.com>
294
295 * i386-nat.c: Whitespace changes.
296
2afe7d50
SB
2972014-06-17 Samuel Bronson <naesten@gmail.com>
298
299 * MAINTAINERS: Update Roland McGrath's email address.
300 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 301 Red Hat a while ago, and giving me a current address.
2afe7d50 302
3bca49ee
TT
3032014-06-17 Tom Tromey <tromey@redhat.com>
304
305 * utils.h (savestring): Remove declaration.
306
6e366df1
TT
3072014-06-17 Tom Tromey <tromey@redhat.com>
308
309 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
310
6be47f0c
KS
3112014-06-16 Keith Seitz <keiths@redhat.com>
312
313 PR mi/15863
314 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
315 to update the varobj if inferior_ptid is null_ptid.
316
7bc112c1
TT
3172014-06-16 Tom Tromey <tromey@redhat.com>
318
319 * target.h (struct target_ops) <to_info_proc>: Make parameter
320 const.
321 (target_info_proc): Update.
322 * target.c (target_info_proc): Make "args" const.
323 * procfs.c (procfs_info_proc): Update.
324 * linux-tdep.c (linux_info_proc): Update.
325 (linux_core_info_proc_mappings): Make "args" const.
326 (linux_core_info_proc): Update.
327 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
328 * gdbarch.c: Rebuild.
329 * gdbarch.h: Rebuild.
330 * corelow.c (core_info_proc): Update.
331
fee354ee
TT
3322014-06-16 Tom Tromey <tromey@redhat.com>
333
334 * target.h (struct target_ops) <to_disconnect>: Make parameter
335 const.
336 (target_disconnect): Update.
337 * target.c (target_disconnect): Make "args" const.
338 * target-delegates.c: Rebuild.
339 * remote.c (remote_disconnect): Update.
340 * record.h (record_disconnect): Update.
341 * record.c (record_disconnect): Update.
342 * inf-child.c (inf_child_disconnect): Update.
343
a30bf1f1
TT
3442014-06-16 Tom Tromey <tromey@redhat.com>
345
346 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
347 * target.c (debug_to_rcmd, default_rcmd): Update.
348 * target-delegates.c: Rebuild.
349 * remote.c (remote_rcmd): Update.
350 * monitor.c (monitor_rcmd): Update.
351
d03de421
PA
3522014-06-16 Pedro Alves <palves@redhat.com>
353
354 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
355 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
356 have OBJF_SHARED set.
357 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
358 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
359 instead of OBJF_USERLOADED.
360 * objfiles.h (OBJF_SHARED): Update comment.
361 (userloaded_objfile_contains_address_p): Rename to ...
362 (shared_objfile_contains_address_p): ... this, and update
363 comments.
364 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
365 new objfile.
366 (remove_symbol_file_command): Skip objfiles that don't have
367 OBJF_SHARED set.
368
99f4262f
TT
3692014-06-16 Tom Tromey <tromey@redhat.com>
370
371 * minsyms.h (prim_record_minimal_symbol)
372 (prim_record_minimal_symbol_and_info): Update comments.
373
97d66cc6
EZ
3742014-06-14 Eli Zaretskii <eliz@gnu.org>
375
376 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
377 or --without-guile, according to how GDB was built.
378
635c7e8a
TT
3792014-06-13 Tom Tromey <tromey@redhat.com>
380
381 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
382 to help_list.
383 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
384 to help_list.
385 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
386 help_list.
387 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
388 help_list.Pass all_commands, not -1, to help_list.
389 * cli/cli-dump.c (dump_command, append_command)
390 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
391 (binary_dump_command, binary_append_command): Pass all_commands,
392 not -1, to help_list.
393 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
394 -1, to help_list.
395 * valprint.c (set_print, set_print_raw): Pass all_commands, not
396 -1, to help_list.
397 * typeprint.c (set_print_type): Pass all_commands, not -1, to
398 help_list.
399 * top.c (set_history): Pass all_commands, not -1, to help_list.
400 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
401 all_commands, not -1, to help_list.
402 * symfile.c (overlay_command): Pass all_commands, not -1, to
403 help_list.
404 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
405 help_list.
406 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
407 help_list.
408 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
409 -1, to help_list.
410 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
411 not -1, to help_list.
412 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
413 not -1, to help_list.
414 * maint.c (maintenance_command, maintenance_info_command)
415 (maintenance_print_command, maintenance_set_cmd): Pass
416 all_commands, not -1, to help_list.
417 * macrocmd.c (macro_command): Pass all_commands, not -1, to
418 help_list.
419 * language.c (set_check): Pass all_commands, not -1, to help_list.
420 * infcmd.c (unset_command): Pass all_commands, not -1, to
421 help_list.
422 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
423 help_list.
424 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
425 help_list.
426 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
427 help_list.
428 * breakpoint.c (save_command): Pass all_commands, not -1, to
429 help_list.
430 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
431 all_commands, not -1, to help_list.
432
b94ade42
PL
4332014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
434
435 * regcache.c (struct register_to_invalidate): New structure.
436 (do_register_invalidate, make_cleanup_regcache_invalidate): New
437 functions.
438 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
439
31f628ae
YQ
4402014-06-12 Yao Qi <yao@codesourcery.com>
441
442 * varobj.c (varobj_get_num_children): Call
443 varobj_is_dynamic_p.
444 (varobj_list_children): Likewise.
445 (varobj_update): Likewise. Update comments.
446
cde5ef40
YQ
4472014-06-12 Yao Qi <yao@codesourcery.com>
448
449 * varobj.c (varobj_pretty_printed_p): Rename to ...
450 (varobj_is_dynamic_p): ... this. New function.
451 * varobj.h (varobj_pretty_printed_p): Remove declaration.
452 (varobj_is_dynamic_p): Declare.
453 * mi/mi-cmd-var.c (print_varobj): All callers updated.
454 (mi_print_value_p, varobj_update_one): Likewise.
455
576ea091
YQ
4562014-06-12 Pedro Alves <pedro@codesourcery.com>
457 Yao Qi <yao@codesourcery.com>
458
459 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
460 (varobj_get_iterator): Wrap up code for pretty-printer by
461 "#if HAVE_PYTHON" and "#endif".
462 (update_dynamic_varobj_children): Likewise.
463
827f100c
YQ
4642014-06-12 Pedro Alves <pedro@codesourcery.com>
465 Yao Qi <yao@codesourcery.com>
466
467 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
468 gdb_python_initialized is false. Move some code from varobj.c.
469 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
470 * varobj.c: Move "varobj-iter.h" inclusion earlier.
471 (struct varobj_item): Moved to varobj-iter.h".
472 (varobj_clear_saved_item): New function.
473 (update_dynamic_varobj_children): Move python-related code to
474 py-varobj.c.
475 (free_variable): Call varobj_clear_saved_item and
476 varobj_iter_delete.
477
e5250216
YQ
4782014-06-12 Pedro Alves <pedro@codesourcery.com>
479 Yao Qi <yao@codesourcery.com>
480
481 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
482 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
483 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
484 (py-varobj.o): New rule.
485 * python/py-varobj.c: New file.
486 * python/python-internal.h (py_varobj_get_iterator): Declare.
487 * varobj-iter.h: New file.
488 * varobj.c: Include "varobj-iter.h"
489 (struct varobj) <child_iter>: Change its type from "PyObject *"
490 to "struct varobj_iter *".
491 <saved_item>: Likewise.
492 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
493 [HAVE_PYTHON] (varobj_get_iterator): New function.
494 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
495 python-specific code to python/py-varobj.c.
496 (install_visualizer): Call varobj_iter_delete instead of
497 Py_XDECREF.
498 * varobj.h (varobj_ensure_python_env): Declare.
499
5a2e0d6e
YQ
5002014-06-12 Yao Qi <yao@codesourcery.com>
501
502 * varobj.c (struct varobj_item): New structure.
503 (create_child_with_value): Update declaration.
504 (varobj_add_child): Replace arguments 'name' and 'value' with
505 'item'. All callers updated.
506 (install_dynamic_child): Likewise.
507 (update_dynamic_varobj_children): Likewise.
508 (varobj_add_child): Likewise.
509 (create_child_with_value): Likewise.
510
919b9a93
JB
5112014-06-11 Joel Brobecker <brobecker@adacore.com>
512
513 * NEWS: Create a new section for the next release branch.
514 Rename the section of the current branch, now that it has
515 been cut.
516
71a55bdf
JB
5172014-06-11 Joel Brobecker <brobecker@adacore.com>
518
519 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
520 * version.in: Bump version to 7.8.50.DATE-cvs.
521
364fe1f7
PA
5222014-06-11 Pedro Alves <palves@redhat.com>
523
524 PR remote/17028
525 * ser-mingw.c (net_windows_socket_check_pending): New function.
526 (net_windows_select_thread): Ignore spurious wakeups. Use
527 net_windows_socket_check_pending.
528 (net_windows_wait_handle): Check for pending events with
529 ioctlsocket, through net_windows_socket_check_pending, instead of
530 checking the socket's event.
531
5a6c7709
SC
5322014-06-10 Siva Chandra Reddy <sivachandra@google.com>
533
534 * python/python-internal.h (gdb_PyObject_GetAttrString)
535 (gdb_PyObject_HasAttrString): New inline function definitions.
536 * py-value.c (get_field_flag): Remove the now unnecessary cast to
537 char * of the second argument to PyObject_GetAttrString.
538
0e58ee40
JB
5392014-06-10 Joel Brobecker <brobecker@adacore.com>
540
541 * serial.c (serial_write): Fix index of character to be printed
542 in call to serial_logchar when serial debug traces are enabled.
543
d190df30
JB
5442014-06-10 Joel Brobecker <brobecker@adacore.com>
545
546 * gdbtypes (resolve_dynamic_range): Add function description.
547
b4b01d36
PA
5482014-06-09 Pedro Alves <palves@redhat.com>
549
550 * linux-nat.c (linux_child_follow_fork): Initialize status with
551 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
552 inner block. Only pass the signal to PTRACE_DETACH if in pass
553 state.
554
3657956b
GB
5552014-06-09 Gary Benson <gbenson@redhat.com>
556
557 * common/signals.c (gdb_signal_from_host): Reorder to separate
558 the always-available ANSI-standard signals from the signals that
559 require checking.
560 (do_gdb_signal_to_host): Likewise.
561 * proc-events.c (signal_table): Likewise.
562
c077881a
HZ
5632014-06-08 Hui Zhu <hui@codesourcery.com>
564
565 * common/linux-ptrace.c (linux_disable_event_reporting): New
566 function.
567 * common/linux-ptrace.h (linux_disable_event_reporting): New
568 declaration.
569 * linux-nat.c (linux_child_follow_fork): Do a single step before
570 detach.
571
4186eb54
KS
5722014-06-07 Keith Seitz <keiths@redhat.com>
573
574 Revert:
575 PR c++/16253
576 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
577 from symbol_matches_domain in symtab.c. All local callers
578 of symbol_matches_domain updated.
579 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
580 search STRUCT_DOMAIN.
581 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
582 independently. standard_lookup will do that automatically.
583 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
584 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
585 (cp_lookup_symbol_in_namespace): Likewise.
586 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
587 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
588 may return a STRUCT_DOMAIN match.
589 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
590 * cp-support.c: Include language.h.
591 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
592 VAR_DOMAIN.
593 * psymtab.c (match_partial_symbol): Compare the requested
594 domain with the symbol's domain directly.
595 (lookup_partial_symbol): Likewise.
596 * symtab.c (lookup_symbol_in_language): Explain when/why
597 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
598 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
599 appropriate languages.
600 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
601 and moved to ada-lang.c
602 (lookup_block_symbol): Explain that this function only returns
603 symbol matching the requested DOMAIN.
604 Compare the requested domain with the symbol's domain directly.
605 (iterate_over_symbols): Compare the requested domain with the
606 symbol's domain directly.
607 * symtab.h (symbol_matches_domain): Remove.
608
25326a28 6092014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
610
611 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
612 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
613 (gdbscm_guile_version_is_at_least): Declare.
614 (gdbscm_scm_string_to_int): Declare.
615 * guile/guile.c (gdbscm_guile_major_version): New global.
616 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
617 (guile_datadir): New static global.
618 (gdbscm_guile_data_directory): New function.
619 (initialize_scheme_side): Update.
620 (misc_guile_functions): Add guile-data-directory.
621 (initialize_gdb_module): Fetch guile version number.
622 * guile/lib/gdb.scm: Remove call to add-to-load-path.
623 * guile/lib/gdb/init.scm (%initialize!): Ditto.
624 * guile/lib/gdb/boot.scm: Use guile-data-directory.
625 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
626 comments.
627 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
628 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
629 * guile/scm-value.c (gdbscm_value_to_string): Only call
630 scm_port_conversion_strategy if Guile version >= 2.0.6.
631
0a770bb2 6322014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
633
634 * main.c (print_gdb_help): Add -q and --silent.
635
73ba372c
GB
6362014-06-06 Gary Benson <gbenson@redhat.com>
637
638 * common/signals.c: Remove preprocessor conditionals for
639 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
640 SIGSEGV and SIGTERM.
641 * proc-events.c: Likewise.
642
c33b2f12
MM
6432014-06-06 Markus Metzger <markus.t.metzger@intel.com>
644
645 * symfile.c (symfile_free_objfile): Remove restriction to
646 OBJF_USERLOADED.
647 * symfile-mem.c (symbol_file_add_from_memory): Call
648 add_target_sections_of_objfile.
649
fb934770
LC
6502014-06-05 Ludovic Courtès <ludo@gnu.org>
651
652 * guile/scm-value.c (gdbscm_history_append_x): Use
653 'vlscm_get_value_smob_arg_unsafe' instead of
654 'vlscm_scm_to_value'.
655
6ef284bd
SM
6562014-06-05 Simon Marchi <simon.marchi@ericsson.com>
657
658 PR mi/15806
659 * utils.c (printchar): Don't escape at all if quoter is NUL.
660 Update function documentation to clarify effect of parameter
661 QUOTER.
662 * remote.c (escape_buffer): Pass '\\' as the quoter to
663 fputstrn_unfiltered.
664 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
665 generate the output.
666 (mi_solib_unloaded): Same.
667
270c9937
JB
6682014-06-05 Joel Brobecker <brobecker@adacore.com>
669
670 * development.sh: Delete.
671 * Makefile.in (config.status): Adjust dependency on development.sh.
672 * configure.ac: Adjust development.sh source call.
673 * configure: Regenerate.
674
16f691fb
DE
6752014-06-04 Doug Evans <xdje42@gmail.com>
676
677 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
678 is_scheme_bkpt, spec.
679 (bpscm_make_breakpoint_smob): Initialize new members.
680 (gdbscm_create_breakpoint_x): Split into two ...
681 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
682 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
683 (scheme_function breakpoint_functions): Update.
684 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
685 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
686 register-breakpoint!.
687
ef7cab6b
JB
6882014-06-04 Joel Brobecker <brobecker@adacorer.com>
689
690 PR server/17023
691 * mem-break.c (z_type_supported): Return zero if
692 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
693
012370f6
TT
6942014-06-04 Tom Tromey <tromey@redhat.com>
695
696 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
697 value_from_contents_and_address_unresolved.
698 (ada_template_to_fixed_record_type_1): Likewise.
699 (ada_which_variant_applies): Likewise.
700 * value.h (value_from_contents_and_address_unresolved): Declare.
701 * value.c (value_from_contents_and_address_unresolved): New
702 function.
703 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
704 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
705 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
706
92e2a17f
TT
7072014-06-04 Tom Tromey <tromey@redhat.com>
708
709 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
710
c0939df1
TT
7112014-06-04 Tom Tromey <tromey@redhat.com>
712
713 * procfs.c (procfs_attach): Make "args" const.
714 * windows-nat.c (windows_attach): Make "args" const.
715 * nto-procfs.c (procfs_attach): Make "args" const.
716 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
717 * go32-nat.c (go32_attach): Make "args" const.
718 * gnu-nat.c (gnu_attach): Make "args" const.
719 * darwin-nat.c (darwin_attach): Make "args" const.
720 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
721 * linux-nat.c (linux_nat_attach): Make "args" const.
722 * remote.c (extended_remote_attach_1, extended_remote_attach):
723 Make "args" const.
724 * target.h (struct target_ops) <to_attach>: Make "args" const.
725 (find_default_attach): Likewise.
726 * utils.c (parse_pid_to_attach): Make "args" const.
727 * utils.h (parse_pid_to_attach): Update.
728
8eaff7cd
TT
7292014-06-04 Tom Tromey <tromey@redhat.com>
730
731 * target-delegates.c: Rebuild.
732 * target.c (default_thread_address_space): New function.
733 (target_thread_address_space): Simplify.
734 * target.h (struct target_ops) <to_thread_address_space>: Add
735 TARGET_DEFAULT_FUNC.
736
1913f160
DE
7372014-06-04 Doug Evans <xdje42@gmail.com>
738
739 * guile/scm-type.c (type_smob): Remove duplicate typedef.
740
70ad5bff
MM
7412014-06-04 Markus Metzger <markus.t.metzger@intel.com>
742
743 * record-btrace.c: Include event-loop.h and inf-loop.h.
744 (record_btrace_resume_exec_dir)
745 (record_btrace_async_inferior_event_handler)
746 (record_btrace_handle_async_inferior_event): New.
747 (record_btrace_open): Create async event handler.
748 (record_btrace_close): Delete async event handler.
749 (record_btrace_resume): Set record_btrace_resume_exec_dir,
750 Mark async event handler.
751 (record_btrace_execution_direction): New.
752 (init_record_btrace_ops): Initialize to_execution_direction.
753
b6210538
DE
7542014-06-03 Doug Evans <xdje42@gmail.com>
755
756 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
757 (gdbscm_make_parameter): Ditto.
758
a5b1fd27
DE
7592014-06-03 Doug Evans <dje@google.com>
760
761 * exec.c (exec_close_1): Call clear_section_table instead of
762 resize_section_table.
763 (clear_section_table): New function.
764 (resize_section_table): Make static. Rename arg num_added to
765 adjustment.
766 * exec.h (clear_section_table): Declare.
767 (resize_section_table): Delete.
768 * progspace.c (release_program_space): Call clear_section_table
769 instead of resize_section_table.
770
0c6e92a5
SC
7712014-06-03 Siva Chandra Reddy <sivachandra@google.com>
772
773 * NEWS (Python Scripting): Add entry about the new xmethods
774 feature.
775
883964a7
SC
7762014-06-03 Siva Chandra Reddy <sivachandra@google.com>
777
778 * python/py-xmethods.c: New file.
779 * python/py-objfile.c (objfile_object): New field 'xmethods'.
780 (objfpy_dealloc): XDECREF on the new xmethods field.
781 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
782 field.
783 (objfpy_get_xmethods): New function.
784 (objfile_getset): New entry 'xmethods'.
785 * python/py-progspace.c (pspace_object): New field 'xmethods'.
786 (pspy_dealloc): XDECREF on the new xmethods field.
787 (pspy_new, pspace_to_pspace_object): Initialize xmethods
788 field.
789 (pspy_get_xmethods): New function.
790 (pspace_getset): New entry 'xmethods'.
791 * python/python-internal.h: Add declarations for new functions.
792 * python/python.c (_initialize_python): Invoke
793 gdbpy_initialize_xmethods.
794 * python/lib/gdb/__init__.py (xmethods): New
795 attribute.
796 * python/lib/gdb/xmethod.py: New file.
797 * python/lib/gdb/command/xmethods.py: New file.
798
58992dc5
SC
7992014-06-03 Siva Chandra Reddy <sivachandra@google.com>
800
801 * eval.c (evaluate_subexp_standard): Call the xmethod if the
802 best match method returned by find_overload_match is an xmethod.
803 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
804 the best matching operator returned by find_overload_match is an
805 xmethod.
806 * valops.c: #include "extension.h".
807 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
808 Return void. The list of matching source methods is returned in
809 "fn_list" and a vector of matching debug method workers is
810 returned in "xm_worker_vec". Update all callers.
811 (value_find_oload_method_list): Likewise.
812 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
813 non-NULL, then the index of the best matching method in this
814 vector is returned. Update all callers.
815 (find_overload_match): Include xmethods while performing overload
816 resolution.
817
e81e7f5e
SC
8182014-06-03 Siva Chandra Reddy <sivachandra@google.com>
819
820 * defs.h (enum lval_type): New enumerator "lval_xcallable".
821 * extension-priv.h (struct extension_language_ops): Add the
822 xmethod interface.
823 * extension.c (new_xmethod_worker, clone_xmethod_worker,
824 get_matching_xmethod_workers, get_xmethod_argtypes,
825 invoke_xmethod, free_xmethod_worker,
826 free_xmethod_worker_vec): New functions.
827 * extension.h: #include "common/vec.h".
828 New function declarations.
829 (struct xmethod_worker): New struct.
830 (VEC (xmethod_worker_ptr)): New vector type.
831 (xmethod_worker_ptr): New typedef.
832 (xmethod_worker_vec): Likewise.
833 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
834 builtin_type.
835 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
836 (struct builtin_type): New field "xmethod".
837 * valarith.c (value_ptradd): Assert that the value argument is not
838 lval_xcallable.
839 * valops.c (value_must_coerce_to_target): Return 0 for
840 lval_xcallable values.
841 * value.c (struct value): New field XM_WORKER in the field
842 LOCATION.
843 (value_address, value_raw_address): Return 0 for lval_xcallable
844 values.
845 (set_value_address): Assert that the value is not an
846 lval_xcallable.
847 (value_free): Free the associated xmethod worker when freeing
848 lval_xcallable values.
849 (set_value_component_location): Assert that the WHOLE value is not
850 lval_xcallable.
851 (value_of_xmethod, call_xmethod): New functions.
852 * value.h: Declare "struct xmethod_worker".
853 Declare new functions value_of_xmethod, call_xmethod.
854
ef370185
JB
8552014-06-03 Joel Brobecker <brobecker@adacore.com>
856 Pedro Alves <palves@redhat.com>
857
858 PR breakpoints/17000
859 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
860 New function, extracted from software_breakpoint_inserted_here_p.
861 (software_breakpoint_inserted_here_p): Replace factored out code
862 by call to find_non_raw_software_breakpoint_inserted_here.
863 (bp_target_info_copy_insertion_state): New function.
864 (bkpt_insert_location): Handle the case of a single-step
865 breakpoint already inserted at the same address.
866 (bkpt_remove_location): Handle the case of a single-step
867 breakpoint still inserted at the same address.
868 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
869 breakpoint already inserted at the same address.
870 (deprecated_remove_raw_breakpoint): Handle the case of a
871 non-raw breakpoint still inserted at the same address.
872 (find_single_step_breakpoint): New function, extracted from
873 single_step_breakpoint_inserted_here_p.
874 (find_single_step_breakpoint): New function,
875 factored out from single_step_breakpoint_inserted_here_p.
876 (single_step_breakpoint_inserted_here_p): Reimplement.
877
1e2ccb61
BM
8782014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
879
880 Pushed by Joel Brobecker <brobecker@adacore.com>
881 * source.c (show_substitute_path_command): Fix display of matching
882 substitution rules.
883
d3448d85
GB
8842014-06-03 Gary Benson <gbenson@redhat.com>
885
886 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
887
06eb1586
DE
8882014-06-02 Doug Evans <xdje42@gmail.com>
889
890 Add parameter support for Guile.
891 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
892 (SUBDIR_GUILE_SRCS): Add scm-param.c.
893 (scm-param.o): New rule.
894 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
895 (gdbscm_misc_error): Declare.
896 (gdbscm_canonicalize_command_name): Declare.
897 (gdbscm_scm_to_host_string): Declare.
898 (gdbscm_scm_from_host_string): Declare.
899 (gdbscm_initialize_parameters): Declare.
900 * guile/guile.c (initialize_gdb_module): Call
901 gdbscm_initialize_parameters.
902 * guile/lib/gdb.scm: Export parameter symbols.
903 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
904 cmdscm_canonicalize_name and made public. All callers updated.
905 * guile/scm-exception.c (gdbscm_misc_error): New function.
906 * guile/scm-param.c: New file.
907 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
908 (gdbscm_scm_to_host_string): New function.
909 (gdbscm_scm_from_host_string): New function.
910 * scm-utils.c (gdbscm_gc_dup_argv): New function.
911
e698b8c4
DE
9122014-06-02 Doug Evans <xdje42@gmail.com>
913
914 Add command support for Guile.
915 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
916 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
917 (scm-cmd.o): New rule.
918 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
919 (gdbscm_user_error_p): Declare.
920 (gdbscm_parse_command_name): Declare.
921 (gdbscm_valid_command_class_p): Declare.
922 (gdbscm_initialize_commands): Declare.
923 * guile/guile.c (initialize_gdb_module): Call
924 gdbscm_initialize_commands.
925 * guile/lib/gdb.scm: Export command symbols.
926 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
927 (throw-user-error): New function.
928 * guile/scm-cmd.c: New file.
929 * guile/scm-exception.c (user_error_symbol): New static global.
930 (gdbscm_user_error_p): New function.
931 (gdbscm_initialize_exceptions): Set user_error_symbol.
932 * scm-utils.c (gdbscm_gc_xstrdup): New function.
933
fb1f94b0
PM
9342014-06-02 Phil Muldoon <pmuldoon@redhat.com>
935
936 * top.c (command_loop): Handle comments here...
937 (command_line_input): ... not here.
938
ded03782
DE
9392014-06-02 Doug Evans <xdje42@gmail.com>
940
941 Add progspace support for Guile.
942 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
943 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
944 (scm-progspace.o): New rule.
945 * guile/guile-internal.h (pspace_smob): New typedef.
946 (psscm_pspace_smob_pretty_printers): Declare.
947 (psscm_pspace_smob_from_pspace): Declare.
948 (psscm_scm_from_pspace): Declare.
949 * guile/guile.c (initialize_gdb_module): Call
950 gdbscm_initialize_pspaces.
951 * guile/lib/gdb.scm: Export progspace symbols.
952 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
953 support.
954 (append-pretty-printer!): Ditto.
955 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
956 Implement.
957 * guile/scm-progspace.c: New file.
958
397998fc
AM
9592014-06-03 Alan Modra <amodra@gmail.com>
960
961 * ppc64-tdep.c (ppc64_standard_linkage8): New.
962 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
963
6aa5f3a6
DE
9642014-06-02 Doug Evans <dje@google.com>
965
966 Add support for skeletonless type units.
967 * dwarf2read.c (struct dwarf2_per_objfile): New member
968 n_allocated_type_units.
969 (struct dwarf2_per_objfile) <tu_stats>: New member
970 nr_all_type_units_reallocs.
971 (create_signatured_type_table_from_index): Initialize
972 n_allocated_type_units
973 (create_all_type_units): Ditto.
974 (add_type_unit): Move up in file. New arg slot.
975 All callers updated. Increase space for all_type_units more
976 efficiently.
977 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
978 (lookup_dwo_signatured_type): Handle skeletonless TUs.
979 (lookup_dwp_signatured_type): Ditto.
980 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
981 All callers updated.
982 (build_type_psymtabs_1): Leave type_unit_groups as
983 NULL if no TUs present.
984 (print_tu_stats): New function.
985 (process_skeletonless_type_unit): New function.
986 (process_dwo_file_for_skeletonless_type_units): New
987 function.
988 (process_skeletonless_type_units): New function.
989 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
990 Call print tu_stats if debugging enabled.
991
41fac0cf
PA
9922014-06-02 Pedro Alves <palves@redhat.com>
993
994 * breakpoint.c (build_target_command_list): Don't build a command
995 list if we have any duplicate location that isn't a dprintf.
996
cd1608cc
PA
9972014-06-02 Pedro Alves <palves@redhat.com>
998
999 * breakpoint.c (dprintf_breakpoint_hit): New function.
1000 (initialize_breakpoint_ops): Install it as dprintf's
1001 breakpoint_hit method.
1002
486ef3b9
JB
10032014-06-02 Joel Brobecker <brobecker@adacore.com>
1004
1005 * source.c (substitute_path_rule_matches): Simplify using
1006 filename_ncmp instead of FILENAME_CMP.
1007
230cd560
JB
10082014-06-02 Joel Brobecker <brobecker@adacore.com>
1009
1010 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1011
16954d5d
LC
10122014-06-01 Ludovic Courtès <ludo@gnu.org>
1013
1014 * configure.ac: When Guile is available, check for the
1015 availability of 'scm_new_smob'.
1016 * configure, config.h.in: Regenerate.
1017 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1018 function.
1019
53e8a631
AB
10202014-05-30 Andrew Burgess <aburgess@broadcom.com>
1021
1022 * frame.c (struct frame_info): Add stop_string field.
1023 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1024 (get_prev_frame_always): Old content moved into
1025 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1026 TRY_CATCH, handle MEMORY_ERROR exceptions.
1027 (frame_stop_reason_string): New function definition.
1028 * frame.h (unwind_stop_reason_to_string): Extend comment to
1029 mention frame_stop_reason_string.
1030 (frame_stop_reason_string): New function declaration.
1031 * stack.c (frame_info): Switch to frame_stop_reason_string.
1032 (backtrace_command_1): Switch to frame_stop_reason_string.
1033 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1034 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1035 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1036
70e38b8e
AB
10372014-05-30 Andrew Burgess <aburgess@broadcom.com>
1038
1039 * frame.c (frame_stop_reason_string): Rename to ...
1040 (unwind_stop_reason_to_string): this.
1041 * frame.h (frame_stop_reason_string): Rename to ...
1042 (unwind_stop_reason_to_string): this.
1043 * stack.c (frame_info): Update call to frame_stop_reason_string.
1044 (backtrace_command_1): Likewise.
1045 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1046 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1047
938f0e2f
AB
10482014-05-30 Andrew Burgess <aburgess@broadcom.com>
1049
1050 * frame.c (remove_prev_frame): New function.
1051 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1052 remove_prev_frame.
1053
a09dd441
PA
10542014-05-29 Pedro Alves <palves@redhat.com>
1055
1056 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1057 and make it const. When a single-step decays to a continue,
1058 clear 'step', not 'hw_step'. Pass whether the caller wanted
1059 to step to user_visible_resume_ptid, not what we ask the
1060 target to do.
1061
bdc36728
PA
10622014-05-29 Pedro Alves <palves@redhat.com>
1063
1064 * infrun.c (process_event_stop_test, handle_step_into_function)
1065 (handle_step_into_function_backward): Adjust.
1066 Don't set the even thread's stop_step and call stop_waiting before
1067 calling end_stepping_range. Instead do that ...
1068 (end_stepping_range): ... here. Take an ecs pointer parameter.
1069
22bcd14b
PA
10702014-05-29 Pedro Alves <palves@redhat.com>
1071
1072 * infrun.c (stop_stepping): Rename to ...
1073 (stop_waiting): ... this.
1074 (proceed): Update comment.
1075 (process_event_stop_test, handle_inferior_event)
1076 (handle_signal_stop, handle_step_into_function)
1077 (handle_step_into_function_backward): Update.
1078
4ae57c05
PA
10792014-05-29 Pedro Alves <palves@redhat.com>
1080
1081 * infcall.c (run_inferior_call): Don't check whether the current
1082 thread is running after the proceed call.
1083
329ea579
PA
10842014-05-29 Pedro Alves <palves@redhat.com>
1085 Tom Tromey <tromey@redhat.com>
1086
1087 * NEWS: Mention "maint set target-async", "set mi-async", and that
1088 background execution commands are now always available.
1089 * target.h (target_async_permitted): Update comment.
1090 * target.c (target_async_permitted, target_async_permitted_1):
1091 Default to 1.
1092 (set_target_async_command): Rename to ...
1093 (maint_set_target_async_command): ... this.
1094 (show_target_async_command): Rename to ...
1095 (maint_show_target_async_command): ... this.
1096 (_initialize_target): Adjust.
1097 * infcmd.c (prepare_execution_command): Make extern.
1098 * inferior.h (prepare_execution_command): Declare.
1099 * infrun.c (set_observer_mode): Leave target async alone.
1100 * mi/mi-interp.c (mi_interpreter_init): Install
1101 mi_on_sync_execution_done as sync_execution_done observer.
1102 (mi_on_sync_execution_done): New function.
1103 (mi_execute_command_input_handler): Don't print the prompt if we
1104 just started a synchronous command with an async target.
1105 (mi_on_resume): Check sync_execution before printing prompt.
1106 * mi/mi-main.h (mi_async_p): Declare.
1107 * mi/mi-main.c: Include gdbcmd.h.
1108 (mi_async_p): New function.
1109 (mi_async, mi_async_1): New globals.
1110 (set_mi_async_command, show_mi_async_command, mi_async): New
1111 functions.
1112 (exec_continue): Call prepare_execution_command.
1113 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1114 (mi_execute_async_cli_command): Use mi_async_p.
1115 (_initialize_mi_main): Install "set mi-async". Make
1116 "target-async" a deprecated alias.
1117
92bcb5f9
PA
11182014-05-29 Pedro Alves <palves@redhat.com>
1119
1120 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1121 (_initialize_cli_interp): Adjust.
1122 * event-loop.c: Include "observer.h".
1123 (start_event_loop): Notify 'command_error' observers instead of
1124 calling display_gdb_prompt. Remove FIXME comment.
1125 * event-top.c (display_gdb_prompt): Remove call into the
1126 interpreters.
1127 * inf-loop.c: Include "observer.h".
1128 (inferior_event_handler): Notify 'command_error' observers instead
1129 of calling display_gdb_prompt.
1130 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1131 observers instead of calling display_gdb_prompt.
1132 * interps.c (interp_set): Don't call display_gdb_prompt.
1133 (current_interp_display_prompt_p): Delete.
1134 * interps.h (interp_prompt_p): Delete declaration.
1135 (interp_prompt_p_ftype): Delete.
1136 (struct interp_procs) <prompt_proc_p>: Delete field.
1137 (current_interp_display_prompt_p): Delete declaration.
1138 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1139 (_initialize_mi_interp): Adjust.
1140 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1141 'command_error' observers.
1142 (tui_on_sync_execution_done, tui_on_command_error): New
1143 functions.
1144 (tui_display_prompt_p): Delete.
1145 (_initialize_tui_interp): Adjust.
1146
fd664c91
PA
11472014-05-29 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/13860
1150 * cli/cli-interp.c: Include infrun.h and observer.h.
1151 (cli_uiout, cli_interp): New globals.
1152 (cli_on_signal_received, cli_on_end_stepping_range)
1153 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1154 functions.
1155 (cli_interpreter_init): Install them as 'end_stepping_range',
1156 'signal_received' 'signal_exited', 'exited' and 'no_history'
1157 observers.
1158 (_initialize_cli_interp): Remove cli_interp local.
1159 * infrun.c (handle_inferior_event): Call the several stop reason
1160 observers instead of printing the stop reason directly.
1161 (end_stepping_range): New function.
1162 (print_end_stepping_range_reason, print_signal_exited_reason)
1163 (print_exited_reason, print_signal_received_reason)
1164 (print_no_history_reason): Make static, and add an uiout
1165 parameter. Print to that instead of to CURRENT_UIOUT.
1166 * infrun.h (print_end_stepping_range_reason)
1167 (print_signal_exited_reason, print_exited_reason)
1168 (print_signal_received_reason print_no_history_reason): New
1169 declarations.
1170 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1171 'mi_uiout'.
1172 <cli_uiout>: New field.
1173 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1174 uiout for CLI output. Install 'signal_received',
1175 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1176 observers.
1177 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1178 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1179 (mi_on_no_history): New functions.
1180 (ui_out_free_cleanup): Delete function.
1181 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1182 instead use the one already stored in the MI interpreter data.
1183 (mi_ui_out): Adjust.
1184 * tui/tui-interp.c: Include infrun.h and observer.h.
1185 (tui_interp): New global.
1186 (tui_on_signal_received, tui_on_end_stepping_range)
1187 (tui_on_signal_exited, tui_on_exited)
1188 (tui_on_no_history): New functions.
1189 (tui_init): Install them as 'end_stepping_range',
1190 'signal_received' 'signal_exited', 'exited' and 'no_history'
1191 observers.
1192 (_initialize_tui_interp): Delete tui_interp local.
1193
8817a6f2
PA
11942014-05-29 Pedro Alves <palves@redhat.com>
1195
1196 PR gdb/15713
1197 * linux-nat.c (linux_nat_resume_callback): Rename the second
1198 parameter to 'except'. Skip LP if it points to EXCEPT.
1199 (linux_nat_resume): Don't mark the event lwp as not stopped
1200 before resuming sibling lwps. Instead ask
1201 linux_nat_resume_callback to skip the event lwp. Mark it as not
1202 stopped after actually resuming it.
1203 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1204 resuming it.
1205 (wait_lwp): Mark the lwp as stopped here.
1206 (stop_wait_callback): Mark the lwp as not stopped right after
1207 resuming it. Don't mark lwps as stopped here.
1208 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1209 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1210
251bde03
PA
12112014-05-29 Pedro Alves <palves@redhat.com>
1212
1213 PR PR15693
1214 * infrun.c (resume): Determine how much to resume depending on
1215 whether the caller wanted a step, not whether we can hardware step
1216 the target. Mark all threads that we intend to run as running,
1217 unless we're calling an inferior function.
1218 (normal_stop): If the thread is running an infcall, don't finish
1219 thread state.
1220 * target.c (target_resume): Don't mark threads as running here.
1221
7f3c0343
JB
12222014-05-28 Joel Brobecker <brobecker@adacore.com>
1223
1224 * serial.c (_initialize_serial): Remove support for
1225 the "set remotebaud" and "show remotebaud" commands.
1226 * NEWS: Add entry documenting the removal of that command.
1227
ee34b3f9
YQ
12282014-05-28 Yao Qi <yao@codesourcery.com>
1229
1230 * charset.c: Fix typo in comments.
1231
add6c04d
GB
12322014-05-27 Gary Benson <gbenson@redhat.com>
1233
1234 * utils.c (internal_vproblem): Prompt for a bug report.
1235
92c48fc5
AW
12362014-05-26 Andy Wingo <wingo@igalia.com>
1237
1238 * guile/scm-arch.c (arscm_mark_arch_smob):
1239 * guile/scm-block.c (bkscm_mark_block_smob)
1240 (bkscm_mark_block_syms_progress_smob):
1241 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1242 * guile/scm-exception.c (exscm_mark_exception_smob):
1243 * guile/scm-frame.c (frscm_mark_frame_smob):
1244 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1245 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1246 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1247 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1248 (ppscm_mark_pretty_printer_worker_smob):
1249 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1250 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1251 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1252 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1253 mark functions.
1254 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1255 function.
1256
b2715b27
AW
12572014-05-26 Andy Wingo <wingo@igalia.com>
1258 Doug Evans <xdje42@gmail.com>
1259
1260 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1261 empty_base_class. All uses updated.
1262 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1263 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1264 Adapt all callers.
1265 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1266 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1267 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1268 (gdbscm_gsmob_has_property_p, add_property_name)
1269 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1270 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1271 (gdb-object-has-property?, gdb-object-properties): Remove.
1272 (gdb-object-kind): Renamed from gsmob-kind.
1273
214ab2da
AW
12742014-05-26 Andy Wingo <wingo@igalia.com>
1275
1276 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1277 * configure: Regenerate.
1278
589fdceb
MM
12792014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1280
1281 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1282
67b5c0c1
MM
12832014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1284
1285 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1286 (replay_memory_access_read_only, replay_memory_access_read_write)
1287 (replay_memory_access_types, replay_memory_access)
1288 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1289 (cmd_set_record_btrace, cmd_show_record_btrace)
1290 (cmd_show_replay_memory_access): New.
1291 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1292 (record_btrace_remove_breakpoint): Replace
1293 record_btrace_allow_memory_access with replay_memory_access.
1294 (_initialize_record_btrace): Add commands.
1295 * NEWS: Announce it.
1296
036cd381
RR
12972014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1298
1299 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1300
c77c1e42
RR
13012014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1302
1303 * MAINTAINERS (Write After Approval): Move self back from
1304 paper trail.
1305
45741a9c
PA
13062014-05-22 Pedro Alves <palves@redhat.com>
1307
1308 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1309 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1310 (disable_randomization, enum exec_direction_kind)
1311 (execution_direction, stop_registers, start_remote)
1312 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1313 (wait_for_inferior, normal_stop, get_last_target_status)
1314 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1315 (insert_step_resume_breakpoint_at_sal)
1316 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1317 (set_step_info, print_stop_event, signal_stop_state)
1318 (signal_print_state, signal_pass_state, signal_stop_update)
1319 (signal_print_update, signal_pass_update)
1320 (update_signals_program_target, clear_exit_convenience_vars)
1321 (displaced_step_dump_bytes, update_observer_mode)
1322 (signal_catch_update, gdb_signal_from_command): Move
1323 declarations ...
1324 * infrun.h: ... to this new file.
1325 * amd64-tdep.c: Include infrun.h.
1326 * annotate.c: Include infrun.h.
1327 * arch-utils.c: Include infrun.h.
1328 * arm-linux-tdep.c: Include infrun.h.
1329 * arm-tdep.c: Include infrun.h.
1330 * break-catch-sig.c: Include infrun.h.
1331 * breakpoint.c: Include infrun.h.
1332 * common/agent.c: Include infrun.h instead of inferior.h.
1333 * corelow.c: Include infrun.h.
1334 * event-top.c: Include infrun.h.
1335 * go32-nat.c: Include infrun.h.
1336 * i386-tdep.c: Include infrun.h.
1337 * inf-loop.c: Include infrun.h.
1338 * infcall.c: Include infrun.h.
1339 * infcmd.c: Include infrun.h.
1340 * infrun.c: Include infrun.h.
1341 * linux-fork.c: Include infrun.h.
1342 * linux-nat.c: Include infrun.h.
1343 * linux-thread-db.c: Include infrun.h.
1344 * monitor.c: Include infrun.h.
1345 * nto-tdep.c: Include infrun.h.
1346 * procfs.c: Include infrun.h.
1347 * record-btrace.c: Include infrun.h.
1348 * record-full.c: Include infrun.h.
1349 * remote-m32r-sdi.c: Include infrun.h.
1350 * remote-mips.c: Include infrun.h.
1351 * remote-notif.c: Include infrun.h.
1352 * remote-sim.c: Include infrun.h.
1353 * remote.c: Include infrun.h.
1354 * reverse.c: Include infrun.h.
1355 * rs6000-tdep.c: Include infrun.h.
1356 * s390-linux-tdep.c: Include infrun.h.
1357 * solib-irix.c: Include infrun.h.
1358 * solib-osf.c: Include infrun.h.
1359 * solib-svr4.c: Include infrun.h.
1360 * target.c: Include infrun.h.
1361 * top.c: Include infrun.h.
1362 * windows-nat.c: Include infrun.h.
1363 * mi/mi-interp.c: Include infrun.h.
1364 * mi/mi-main.c: Include infrun.h.
1365 * python/py-threadevent.c: Include infrun.h.
1366
98eb56a4
PA
13672014-05-22 Pedro Alves <palves@redhat.com>
1368
1369 * infrun.c (handle_inferior_event): Store the exit code for
1370 --return-child-result here, instead of ...
1371 (print_exited_reason): ... here.
1372
17b2616c
PA
13732014-05-21 Pedro Alves <palves@redhat.com>
1374
1375 PR gdb/13860
1376 * gdbthread.h (struct thread_control_state): New field
1377 `command_interp'.
1378 * infrun.c (follow_fork): Copy the new thread control field to the
1379 child fork thread.
1380 (clear_proceed_status_thread): Clear the new thread control field.
1381 (proceed): Set the new thread control field.
1382 * interps.h (command_interp): Declare.
1383 * interps.c (command_interpreter): New global.
1384 (command_interp): New function.
1385 (interp_exec): Set `command_interpreter' while here.
1386 * cli-out.c (cli_uiout_dtor): New function.
1387 (cli_ui_out_impl): Install it.
1388 * mi/mi-interp.c: Include cli-out.h.
1389 (mi_cmd_interpreter_exec): Add comment.
1390 (restore_current_uiout_cleanup): New function.
1391 (ui_out_free_cleanup): New function.
1392 (mi_on_normal_stop): If finishing an execution command started by
1393 a CLI command, or any kind of breakpoint-like event triggered,
1394 print the stop event to the output (CLI) stream.
1395 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1396
5166082f
PA
13972014-05-21 Pedro Alves <palves@redhat.com>
1398
1399 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1400 current source line having changed.
1401 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1402 * infrun.c (normal_stop): Adjust call to
1403 set_current_sal_from_frame.
1404 * source.c (clear_lines_listed_range): New function.
1405 (set_current_source_symtab_and_line, identify_source_line): Clear
1406 the lines listed range.
1407 (line_info): Handle the first "info line" after the current source
1408 line having changed.
1409 * stack.c (print_stack_frame): Remove center handling.
1410 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1411 center sal.line.
1412
c1ee2fb3
PA
14132014-05-21 Pedro Alves <palves@redhat.com>
1414
1415 * inf-child.c (inf_child_mourn_inferior): New function.
1416 * inf-child.h (inf_child_mourn_inferior): New declaration.
1417 * darwin-nat.c (darwin_mourn_inferior): Use
1418 inf_child_mourn_inferior.
1419 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1420 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1421 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1422 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1423 * windows-nat.c (windows_mourn_inferior): Likewise.
1424
5c6d4fb2
DE
14252014-05-21 Doug Evans <xdje42@gmail.com>
1426
250748cb 1427 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 1428
4a2722c5
DE
14292014-05-21 Doug Evans <xdje42@gmail.com>
1430
17292b30 1431 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
1432 (gdbscm_out_of_range_error): Ditto.
1433 (gdbscm_memory_error): Ditto.
250748cb
DE
1434 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1435 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
1436 (gdbscm_out_of_range_error): Update.
1437 (gdbscm_memory_error): Update.
1438 (gdbscm_scm_to_target_string_unsafe): Delete.
1439
6a3cb8e8
PA
14402014-05-21 Pedro Alves <palves@redhat.com>
1441
1442 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1443 globals.
1444 (inf_child_open_target): New function.
1445 (inf_child_open): Use inf_child_open_target to push the target
1446 instead of erroring out.
1447 (inf_child_disconnect, inf_child_close)
1448 (inf_child_maybe_unpush_target): New functions.
1449 (inf_child_target): Install inf_child_disconnect and
1450 inf_child_close. Store a pointer to the returned object.
1451 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1452 declarations.
1453 * target.c (auto_connect_native_target): New global.
1454 (show_default_run_target): New function.
1455 (find_default_run_target): Return NULL if automatically connecting
1456 to the native target is disabled.
1457 (_initialize_target): Install set/show auto-connect-native-target.
1458 * NEWS: Mention "set auto-connect-native-target", and "target
1459 native".
1460 * linux-nat.c (super_close): New global.
1461 (linux_nat_close): Call super_close.
1462 (linux_nat_add_target): Store a pointer to the base class's
1463 to_close method.
1464 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1465 inf_child_maybe_unpush.
1466 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1467 already pushed.
1468 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1469 the inferior. Use inf_child_maybe_unpush_target.
1470 (inf_ttrace_attach): Don't push the target if it is already
1471 pushed.
1472 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1473 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1474 after mourning the inferior. Use inf_child_maybe_unpush_target.
1475 (darwin_attach_pid): Don't push the target if it is already
1476 pushed.
1477 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1478 mourning the inferior. Use inf_child_maybe_unpush_target.
1479 (gnu_detach): Use inf_child_maybe_unpush_target.
1480 * go32-nat.c (go32_create_inferior): Don't push the target if it
1481 is already pushed.
1482 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1483 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1484 (procfs_open): Rename to ...
1485 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1486 comments. Can target_preopen before changing node. Call
1487 inf_child_open_target to push the target explicitly.
1488 (procfs_attach): Don't push the target if it is already pushed.
1489 (procfs_detach): Use inf_child_maybe_unpush_target.
1490 (procfs_create_inferior): Don't push the target if it is already
1491 pushed.
1492 (nto_native_ops): New global.
1493 (procfs_open): Reimplement.
1494 (procfs_native_open): New function.
1495 (init_procfs_targets): Install procfs_native_open as to_open of
1496 "target native". Store a pointer to the "native" target in
1497 nto_native_ops.
1498 * procfs.c (procfs_attach): Don't push the target if it is already
1499 pushed.
1500 (procfs_detach): Use inf_child_maybe_unpush_target.
1501 (procfs_mourn_inferior): Only unpush the target after mourning the
1502 inferior. Use inf_child_maybe_unpush_target.
1503 (procfs_init_inferior): Don't push the target if it is already
1504 pushed.
1505 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1506 if it is already pushed.
1507
930ee1b1
PA
15082014-05-21 Pedro Alves <palves@redhat.com>
1509
1510 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1511 and "procfs" targets are now called "native" instead.
1512
1f5d1b13
PA
15132014-05-21 Pedro Alves <palves@redhat.com>
1514
1515 * go32-nat.c (go32_open): Delete.
1516 (go32_target): Don't override the to_open method.
1517
132f8e03
PA
15182014-05-21 Pedro Alves <palves@redhat.com>
1519
1520 * nto-procfs.c (procfs_can_run): New function.
1521 (nto_procfs_ops): New global.
1522 (init_procfs_targets): New, based on procfs_target. Install
1523 "target native" in addition to "target procfs".
1524 (_initialize_procfs): Call init_procfs_targets instead of adding
1525 the target here.
1526
03c136c3
PA
15272014-05-21 Pedro Alves <palves@redhat.com>
1528
1529 * windows-nat.c (windows_target): Don't override to_shortname,
1530 to_longname or to_doc.
1531
a635d0f3
PA
15322014-05-21 Pedro Alves <palves@redhat.com>
1533
1534 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1535 to_doc.
1536
4f9b5133
PA
15372014-05-21 Pedro Alves <palves@redhat.com>
1538
1539 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1540 to_shortname, to_longname or to_doc.
1541
bc85afde
PA
15422014-05-21 Pedro Alves <palves@redhat.com>
1543
1544 * go32-nat.c (go32_target): Don't override to_shortname,
1545 to_longname or to_doc.
1546
4ebfc96e
PA
15472014-05-21 Pedro Alves <palves@redhat.com>
1548
1549 * inf-child.c (inf_child_open): Remove mention of "child".
1550 (inf_child_target): Rename target to "native" instead of "child".
1551
2648dfed
AA
15522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1553
1554 * Makefile.in (SFILES): Delete "regset.c".
1555 (COMMON_OBS): Delete "regset.o".
1556 * regset.c: Remove.
1557 * regset.h (regset_alloc): Delete prototype.
1558
b13feb94
AA
15592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1560
1561 * sparc-linux-tdep.c (sparc32_linux_gregset)
1562 (sparc32_linux_fpregset): New static regset structures.
1563 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1564 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1565 'fpregset' fields.
1566 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1567 (sparc64_linux_fpregset): New static regset structures.
1568 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1569 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1570 New static regset structures.
1571 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1572 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1573 New static regset structures.
1574 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1575 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1576 New static regset structures.
1577 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1578 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1579 New static regset structures.
1580 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1581
b4fd25c9
AA
15822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583
1584 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1585 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1586 register maps ("regmaps") from "*regset" to "*regmap". Do this
1587 for all regmap types and variables.
1588 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1589 (sparc32_linux_supply_core_gregset)
1590 (sparc32_linux_collect_core_gregset)
1591 (sparc32_linux_supply_core_fpregset)
1592 (sparc32_linux_collect_core_fpregset): Likewise.
1593 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1594 (sparc_gregmap, sparc_fpregmap): ... these.
1595 (sparc_supply_gregset, sparc_collect_gregset)
1596 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1597 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1598 (_initialize_sparc_nat): Rename regmaps.
1599 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1600 (sparc_gregmap, sparc_fpregmap): ... these.
1601 (sparc_supply_gregset, sparc_collect_gregset)
1602 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1603 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1604 Rename macros to...
1605 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1606 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1607 Likewise.
1608 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1609 Rename to...
1610 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1611 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1612 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1613 regmaps.
1614 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1615 (sparc32_bsd_fpregset): Rename to...
1616 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1617 (sparc32_bsd_fpregmap): ... these.
1618 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1619 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1620 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1621 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1622 (struct sparc_gregmap, struct sparc_fpregmap)
1623 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1624 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1625 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1626 (sparc32_supply_regset, sparc32_collect_gregset)
1627 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1628 prototypes.
1629 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1630 (sparc64_linux_ptrace_gregmap): ... this.
1631 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1632 (_initialize_sparc64_linux_nat): Rename regmaps.
1633 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1634 (sparc64_linux_core_gregmap): ... this.
1635 (sparc64_linux_supply_core_gregset)
1636 (sparc64_linux_collect_core_gregset)
1637 (sparc64_linux_supply_core_fpregset)
1638 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1639 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1640 (sparc64_sol2_fpregset): Rename to...
1641 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1642 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1643 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1644 regmaps.
1645 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1646 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1647 (sparc64_bsd_fpregset): Rename to...
1648 (struct sparc_gregmap, sparc64_sol2_gregmap)
1649 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1650 (sparc64_bsd_fpregmap): ... these.
1651 (sparc64_supply_gregset, sparc64_collect_gregset)
1652 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1653 prototypes.
1654 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1655 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1656 (sparc64fbsd_gregmap): ... this.
1657 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1658 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1659 Rename regmaps.
1660 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1661 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1662 (sparc64nbsd_collect_fpregset): Likewise.
1663 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1664 (sparc64nbsd_gregmap): ... this.
1665 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1666 regmaps.
1667 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1668 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1669 (sparc64obsd_gregmap): ... this.
1670 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1671 regmaps.
1672 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1673 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1674 (sparc32nbsd_gregmap): ... this.
1675 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1676 regmaps.
1677
8fea3224
AA
16782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1679
1680 * score-tdep.c (score7_linux_gregset): New static regset
1681 structure.
1682 (score7_linux_regset_from_core_section): Remove dynamic regset
1683 allocation.
1684 (score_gdbarch_init): Drop allocation of tdep structure.
1685 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1686
24534243
AA
16872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1688
1689 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1690 regset structures.
1691 (am33_regset_from_core_section): Remove dynamic regset
1692 allocations.
1693
b7195f27
AA
16942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1695
1696 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1697 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1698 structures.
1699 (mips_linux_regset_from_core_section): Remove dynamic regset
1700 allocations.
1701 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1702 'gregset64', 'fpregset', and 'fpregset64'.
1703 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1704 deleted tdep fields.
1705
ecc37a5a
AA
17062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1707
1708 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1709 regset structures.
1710 (amd64_regset_from_core_section): Remove dynamic regset
1711 allocations.
1712 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1713 structure.
1714 (amd64obsd_regset_from_core_section): Remove dynamic regset
1715 allocation.
1716 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1717 Likewise.
1718 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1719 x86-common regset supply function.
1720 * i386-tdep.c (i386_collect_gregset): Make static.
1721 (i386_gregset): New global regset structure.
1722 (i386_fpregset, i386_xstateregset): New static regset structures.
1723 (i386_regset_from_core_section): Remove dynamic regset
1724 allocations.
1725 (i386_gdbarch_init): Remove initialization of tdep fields
1726 'gregset', 'fpregset', and 'xstateregset'.
1727 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1728 'fpregset', and 'xstateregset'.
1729 (i386_collect_gregset): Remove prototype.
1730 (i386_gregset): New declaration.
1731 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1732 structure.
1733 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1734 allocation.
1735
b7611c43
AA
17362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1737
1738 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1739 (arm_linux_vfpregset): New static regset structures.
1740 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1741 regset structures.
1742 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1743 and 'vfpregset' fields.
1744
a069a2bd
AA
17452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1746
1747 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1748 (aarch64_linux_fpregset): New static regset structures.
1749 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1750 of regset structures.
1751 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1752 'fpregset' fields.
1753
09424cff
AA
17542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1755
1756 * regset.h (struct regset): Remove gdbarch field.
1757 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1758 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1759 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1760 Likewise.
1761 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1762 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1763 (ppc32_linux_vsxregset): Likewise.
1764 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1765 via the regcache instead of the regset.
1766 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1767 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1768 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1769 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1770 Likewise.
1771
3ca7dae4
AA
17722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1773
1774 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1775 Constify structures.
1776 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1777 (alphanbsd_aout_gregset): Likewise.
1778 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1779 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1780 Likewise.
1781 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1782 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1783 Likewise.
1784 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1785 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1786 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1787 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1788 * m88k-tdep.c (m88k_gregset): Likewise.
1789 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1790 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1791 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1792 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1793 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1794 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1795 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1796 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1797 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1798 Likewise.
1799 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1800 * sh-tdep.h (sh_corefile_gregset): Likewise.
1801 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1802 * vax-tdep.c (vax_gregset): Likewise.
1803
5876f503
JK
18042014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1805
1806 Fix TLS access for -static -pthread.
1807 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1808 (try_thread_db_load_1): Initialize it.
1809 (thread_db_get_thread_local_address): Call it if LM is zero.
1810 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1811 * target.h (struct target_ops) (to_get_thread_local_address): Add
1812 load_module_addr comment.
1813
0256a6ac
PA
18142014-05-21 Pedro Alves <palves@redhat.com>
1815
1816 * dcache.c (dcache_read_memory_partial): If reading the cache line
1817 fails, fallback to reading just the memory the caller wanted.
1818
227533ac
DE
18192014-05-20 Doug Evans <dje@google.com>
1820
1821 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1822 instead of get_current_arch.
1823
936d2992
PA
18242014-05-20 Pedro Alves <palves@redhat.com>
1825
1826 * NEWS: Mention that compare-sections now works with all targets.
1827
1828 * remote.c (PACKET_qCRC): New enum value.
1829 (remote_verify_memory): Don't send qCRC if the target has no
1830 execution. Use packet_support/packet_ok. If the target doesn't
1831 support the qCRC packet, fallback to a deep memory copy.
1832 (compare_sections_command): Say "target image" instead of "remote
1833 executable".
1834 (_initialize_remote): Add PACKET_qCRC to the list of config
1835 packets that have no associated command. Extend comment.
1836 * target.c (simple_verify_memory, default_verify_memory): New
1837 function.
1838 * target.h (struct target_ops) <to_verify_memory>: Default to
1839 default_verify_memory.
1840 (simple_verify_memory): New declaration.
1841 * target-delegates.c: Regenerate.
1842
e59fa00f
MM
18432014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1844
1845 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1846
f2205de0
HZ
18472014-05-20 Hui Zhu <hui@codesourcery.com>
1848 Yao Qi <yao@codesourcery.com>
1849
1850 PR backtrace/16558
1851 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1852 and change address of sp and pc.
1853
c4e54771
TT
18542014-05-19 Tom Tromey <tromey@redhat.com>
1855
1856 * gdbtypes.c (rank_function): Use XNEWVEC.
1857 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1858
73051182
DE
18592014-05-19 Doug Evans <dje@google.com>
1860
1861 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1862 build_type_unit_groups and moved closer to only caller. Remove
1863 arguments. All references updated. Remove outdated .gdb_index
1864 comment.
1865 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1866 build_type_psymtabs_1.
1867
8832e7e3
DE
18682014-05-19 Doug Evans <dje@google.com>
1869
1870 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1871 n_type_unit_groups, all_type_unit_groups. All uses removed.
1872 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1873 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1874 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1875 (add_type_unit_group_to_table): Delete.
1876
cd8ae15e
DE
18772014-05-19 Doug Evans <dje@google.com>
1878
1879 * eval.c (evaluate_subexp_standard): Add some comments.
1880
08f4850b
DE
18812014-05-17 Doug Evans <xdje42@gmail.com>
1882
1883 * progspace.c (remove_program_space): Delete, unused.
1884 * progspace.h (remove_program_space): Ditto.
1885
bed8455c
DE
18862014-05-17 Doug Evans <xdje42@gmail.com>
1887
1888 * inferior.c (prune_inferiors): Fix comment.
1889 (remove_inferior_command): Call prune_program_spaces.
1890
8d551b02
DE
18912014-05-16 Doug Evans <dje@google.com>
1892
1893 New command line option -D.
1894 * NEWS: Mention it.
1895 * main.c (set_gdb_data_directory): New function.
1896 (captured_main): Recognize -D. Flag error for --data-directory "".
1897 Call set_gdb_data_directory.
1898 (print_gdb_help): Print --data-directory, -D.
1899 * main.h (set_gdb_data_directory): Declare.
1900 * top.c (staged_gdb_datadir): New static global.
1901 (set_gdb_datadir): Call set_gdb_data_directory
1902 (show_gdb_datadir): New function.
1903 (init_main): Update init of data-directory parameter.
1904
18848e28
GF
19052014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1906
1907 Import the "dirfd" gnulib module.
1908 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1909 * gnulib/aclocal.m4: Update.
1910 * gnulib/config.in: Update.
1911 * gnulib/configure: Update.
1912 * gnulib/import/Makefile.am: Update.
1913 * gnulib/import/Makefile.in: Update.
1914 * gnulib/import/dirfd.c: New.
1915 * gnulib/import/m4/dirfd.m4: New.
1916 * gnulib/import/m4/gnulib-cache.m4: Update.
1917 * gnulib/import/m4/gnulib-comp.m4: Update.
1918
95c64f92
YQ
19192014-05-16 Pierre Muller <muller@sourceware.org>
1920 Yao Qi <yao@codesourcery.com>
1921
1922 * valprint.c (print_wchar): Move the code on checking whether
1923 W is a printable wide char to the default branch of switch
1924 statement below. Call wchar_printable instead of gdb_iswprint.
1925
cac395ea
TM
19262014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1927
19679eca 1928 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
1929 ldr.w and ldrd instructions.
1930
83655187
DE
19312014-05-15 Doug Evans <dje@google.com>
1932
1933 * dwarf2read.c (read_structure_type): Delete outdated comments.
1934
dd756689
TT
19352014-05-14 Tom Tromey <tromey@redhat.com>
1936
1937 * macrocmd.c (print_macro_definition): Reindent.
1938
75ddda77
DE
19392014-05-13 Doug Evans <xdje42@gmail.com>
1940
1941 * python/py-cmd.c (cmdpy_completer): Add comment.
1942 (completers): Make const.
1943
b0f16a3e
SM
19442014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1945
1946 * infrun.c (resume): Remove should_resume (unused). Move up
1947 declaration of resume_ptid.
1948
033c3379
TT
19492014-05-13 Tom Tromey <tromey@redhat.com>
1950
1951 * language.h (unop_type_check): Remove.
1952 (binop_type_check): Don't declare.
1953
9b44a3a5
AA
19542014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1955
1956 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1957 call to regcache_raw_collect.
1958
303a33fa
SM
19592014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1960
1961 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1962 mi_console->quote as the quoting character.
1963
196100a0
SM
19642014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1965
1966 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1967
f989a1c8
TT
19682014-04-29 Tom Tromey <tromey@redhat.com>
1969
1970 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1971 "show debug varobj".
1972
9404b58f
KM
19732014-05-07 Kyle McMartin <kyle@redhat.com>
1974
1975 Pushed by Joel Brobecker <brobecker@adacore.com>.
1976 * aarch64-tdep.c (aarch64_software_single_step): New function.
1977 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1978 with aarch64_software_single_step.
1979
5e49ba57
JB
19802014-05-05 Joel Brobecker <brobecker@adacore.com>
1981
1982 GDB 7.7.1 released.
1983
c888a17d
KS
19842014-05-05 Keith Seitz <keiths@redhat.com>
1985
1986 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1987 variable or history value is successfully parsed.
1988
290a839c
YQ
19892014-05-05 Yao Qi <yao@codesourcery.com>
1990 Pedro Alves <palves@redhat.com>
1991
1992 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1993 address of blocks that intersects the requested range. Trim
1994 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1995 sections.
1996 * ctf.c (ctf_xfer_partial): Likewise.
1997
91256dc2
YQ
19982014-05-05 Yao Qi <yao@codesourcery.com>
1999
2000 * printcmd.c (display_command): Remove the check to
2001 target_has_execution.
2002
07284463
MK
20032014-05-03 Mark Kettenis <kettenis@gnu.org>
2004
2005 * ppcobsd-nat.c: Include "obsd-nat.h".
2006 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2007 add_target.
2008 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2009
30a1e6cc
SDJ
20102014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2011
2012 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2013 and 16-bit signed and unsigned arguments. Update comment.
2014 (stap_parse_probe_arguments): Extend code to handle such
2015 arguments. Use warning instead of complaint to notify about
2016 unrecognized bitness.
2017
f33da99a
SDJ
20182014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2019
2020 PR breakpoints/16889
2021 * stap-probe.c (stap_parse_probe_arguments): Simplify
2022 check for non-prefixed probes (i.e., probes whose
2023 arguments do not start with "N@"). Always set the
2024 argument type to a sane value.
2025
95cf3b38
DT
20262014-05-01 David Taylor <dtaylor@emc.com>
2027
2028 * remote.c (compare_sections_command): Add -r option to compare
2029 all loadable read-only sections.
2030
1cfdf534
SC
20312014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2032
2033 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2034 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2035 Update all callers.
2036 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2037 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2038 Remove unused CORE_ADDR argument. Update all callers.
2039
ca4f7f8b
PA
20402014-04-29 Pedro Alves <palves@redhat.com>
2041
2042 * remote.c (struct packet_config) <detect>: Extend comment.
2043 (add_packet_config_cmd): Don't set the config's detect or support
2044 fields here.
2045 (init_all_packet_configs): Also initialize the config's 'detect'
2046 field.
2047 (reset_all_packet_configs_support): New function.
2048 (remote_open_1): Call reset_all_packet_configs_support instead of
2049 init_all_packet_configs.
2050 (_initialize_remote): Initialize all packet configs. Assert that
2051 all packets have an associated command, except a few known
2052 outliers.
2053
11c1ba78
JB
20542014-04-28 Joel Brobecker <brobecker@adacore.com>
2055
2056 * dwarf2read.c (read_subrange_type): Handle dynamic
2057 DW_AT_lower_bound attributes.
2058
8739bc53
JB
20592014-04-28 Joel Brobecker <brobecker@adacore.com>
2060
2061 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2062 dynamic bounds before computing its upper bound.
2063 (ada_discrete_type_low_bound): Same as above with the lower bound.
2064
6f8a3220
JB
20652014-04-28 Joel Brobecker <brobecker@adacore.com>
2066
2067 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2068 range types. Adjust the array handling implementation to
2069 take advantage of this change.
2070 (resolve_dynamic_range): New function, mostly extracted from
2071 resolve_dynamic_bounds.
2072 (resolve_dynamic_array): New function, mostly extracted from
2073 resolve_dynamic_bounds.
2074 (resolve_dynamic_bounds): Delete.
2075 (resolve_dynamic_type): Reimplement. Add handling of
2076 TYPE_CODE_RANGE types.
2077
4d072ce4
JB
20782014-04-28 Joel Brobecker <brobecker@adacore.com>
2079
2080 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2081 handling of parallel ___XA types.
2082
52865325
JB
20832014-04-28 Joel Brobecker <brobecker@adacore.com>
2084
2085 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2086 unnecessary second call to static_unwrap_type.
2087
433e77fa
HZ
20882014-04-27 Hui Zhu <hui@codesourcery.com>
2089
2090 * stack.c (print_frame_info): Call do_gdb_disassembly with
2091 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2092
b51a69ee
DE
20932014-04-26 Doug Evans <xdje42@gmail.com>
2094
2095 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2096
7ae1a6a6
PA
20972014-04-25 Pedro Alves <palves@redhat.com>
2098
2099 PR server/16255
2100 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2101 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2102 and newline from built string.
2103 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2104 (linux_ptrace_attach_fail_reason): ... this.
2105 * linux-nat.c (linux_nat_attach): Adjust to use
2106 linux_ptrace_attach_fail_reason.
2107
4082afcc
PA
21082014-04-25 Pedro Alves <palves@redhat.com>
2109
2110 * remote.c (struct remote_state): Remove multi_process_aware,
2111 non_stop_aware, cond_tracepoints, cond_breakpoints,
2112 breakpoint_commands, fast_tracepoints, static_tracepoints,
2113 install_in_trace, disconnected_tracing,
2114 enable_disable_tracepoints, string_tracing, and
2115 augmented_libraries_svr4_read fields.
2116 (remote_multi_process_p): Move further below in the file.
2117 (struct packet_config): Add comments.
2118 (update_packet_config): Delete function.
2119 (show_packet_config_cmd): Use packet_config_support.
2120 (add_packet_config_cmd): Use NULL as set callback.
2121 (packet_ok): "set remote foo-packet"-style commands no longer
2122 change config->supported -- adjust.
2123 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2124 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2125 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2126 (PACKET_QNonStop, PACKET_multiprocess_feature)
2127 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2128 (PACKET_DisconnectedTracing_feature)
2129 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2130 (set_remote_protocol_packet_cmd): Delete function.
2131 (packet_config_support, packet_support): New functions.
2132 (set_remote_protocol_Z_packet_cmd): Don't call
2133 update_packet_config.
2134 (remote_query_attached, remote_pass_signals)
2135 (remote_program_signals, remote_threads_info)
2136 (remote_threads_extra_info, remote_start_remote): Use
2137 packet_support.
2138 (remote_start_remote): Use packet_config_support and
2139 packet_support.
2140 (init_all_packet_configs): Set all packets to unknown support,
2141 instead of calling update_packet_config.
2142 (remote_check_symbols): Use packet_support.
2143 (remote_supported_packet): Unconditionally set the packet config's
2144 support status.
2145 (remote_multi_process_feature, remote_non_stop_feature)
2146 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2147 (remote_breakpoint_commands_feature)
2148 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2149 (remote_install_in_trace_feature)
2150 (remote_disconnected_tracing_feature)
2151 (remote_enable_disable_tracepoint_feature)
2152 (remote_string_tracing_feature)
2153 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2154 (remote_protocol_features): Adjust to use remote_supported_packet
2155 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2156 "ConditionalTracepoints", "ConditionalBreakpoints",
2157 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2158 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2159 "EnableDisableTracepoints", and "tracenz".
2160 (remote_query_supported): Use packet_support.
2161 (remote_open_1): Adjust.
2162 (extended_remote_attach_1): Use packet_support. Switch on the
2163 result of packet_ok instead of checking whether the packet ended
2164 up disabled.
2165 (remote_vcont_resume): Use packet_support.
2166 (remote_resume, remote_stop_ns, fetch_register_using_p)
2167 (remote_prepare_to_store, store_register_using_P)
2168 (check_binary_download, remote_write_bytes): Use packet_support.
2169 (remote_vkill): Use packet_support. Switch on the result of
2170 packet_ok instead of checking whether the packet ended up
2171 disabled.
2172 (extended_remote_supports_disable_randomization): Use
2173 packet_support.
2174 (extended_remote_run): Switch on the result of packet_ok instead
2175 of checking whether the packet ended up disabled.
2176 (remote_insert_breakpoint, remote_remove_breakpoint)
2177 (remote_insert_watchpoint, remote_remove_watchpoint)
2178 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2179 packet_support.
2180 (remote_search_memory): Use packet_config_support.
2181 (remote_get_thread_local_address, remote_get_tib_address)
2182 (remote_hostio_send_command, remote_can_execute_reverse): Use
2183 packet_support.
2184 (remote_supports_cond_tracepoints)
2185 (remote_supports_cond_breakpoints)
2186 (remote_supports_fast_tracepoints)
2187 (remote_supports_static_tracepoints)
2188 (remote_supports_install_in_trace)
2189 (remote_supports_enable_disable_tracepoint)
2190 (remote_supports_string_tracing)
2191 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2192 the packet config says the feature is enabled or disabled.
2193 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2194 (remote_get_trace_status): Use packet_support.
2195 (remote_set_disconnected_tracing): Adjust to check whether the
2196 feature is enabled with packet_support.
2197 (remote_set_trace_buffer_size, remote_use_agent)
2198 (remote_can_use_agent, remote_supports_btrace): Use
2199 packet_support.
2200 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2201 Use packet_config_support.
2202 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2203 the packet config says the feature is enabled or disabled.
2204 (set_range_stepping): Use packet_support.
2205
bdb52a22
TT
22062014-04-25 Tom Tromey <tromey@redhat.com>
2207
2208 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2209 argument.
2210
e9475ead
SA
22112014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2212
2213 * NEWS: Mention support for C99 variable length arrays.
2214
82eacd52
JB
22152014-04-24 Joel Brobecker <brobecker@adacore.com>
2216
2217 * ada-lang.c (standard_exc): Expand introductory comment.
2218
01f9f808
MS
22192014-04-24 Michael Sturm <michael.sturm@mintel.com>
2220 Walfred Tedeschi <walfred.tedeschi@intel.com>
2221
2222 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2223 AVX512 registers.
2224 (amd64_linux_read_description): Add code to handle AVX512 xstate
2225 mask and return respective tdesc.
2226 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2227 and features/i386/x32-avx512-linux.c.
2228 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2229 (amd64_linux_core_read_description): Add code to handle AVX512
2230 xstate mask and return respective tdesc.
2231 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2232 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2233 calculation.
2234 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2235 (tdesc_amd64_avx512_linux): New prototype.
2236 (tdesc_x32_avx512_linux): Likewise.
2237 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2238 features/i386/x32-avx512.c.
2239 (amd64_ymm_avx512_names): New register names for pseudo
2240 registers YMM16-31.
2241 (amd64_ymmh_avx512_names): New register names for raw registers
2242 YMMH16-31.
2243 (amd64_k_names): New register names for K registers.
2244 (amd64_zmmh_names): New register names for ZMM raw registers.
2245 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2246 (amd64_xmm_avx512_names): New register names for XMM16-31
2247 registers.
2248 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2249 registers.
2250 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2251 if feature is present.
2252 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2253 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2254 (AMD64_NUM_REGS): Adjust to new number of registers.
2255 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2256 registers supplied via XSTATE by AVX512 registers.
2257 (i386_linux_read_description): Add case for AVX512.
2258 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2259 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2260 (i386_linux_core_read_description): Add case for AVX512.
2261 (i386_linux_init_abi): Install supported register note section
2262 for AVX512.
2263 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2264 AVX512.
2265 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2266 registers to be number of zmm7h + 1.
2267 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2268 * i386-tdep.c: Include features/i386/i386-avx512.c.
2269 (i386_zmm_names): Add ZMM pseudo register names array.
2270 (i386_zmmh_names): Add ZMM raw register names array.
2271 (i386_k_names): Add K raw register names array.
2272 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2273 registers. AVX512 has 16 more ZMM registers than there are YMM
2274 registers.
2275 (i386_zmmh_regnum_p): Add function to look up register number of
2276 ZMM raw registers.
2277 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2278 (i386_k_regnum_p): Likewise for K raw registers.
2279 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2280 registers added by AVX512.
2281 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2282 registers added by AVX512.
2283 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2284 added by AVX512.
2285 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2286 (i386_pseudo_register_name): Add ZMM pseudo registers.
2287 (i386_zmm_type): Construct and return vector registers type for ZMM
2288 registers.
2289 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2290 ZMM0-31 pseudo registers and K registers.
2291 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2292 and YMM16-31 registers from register cache.
2293 (i386_pseudo_register_write): Add code to write K, ZMM and
2294 YMM16-31 registers.
2295 (i386_register_reggroup_p): Add code to include/exclude AVX512
2296 registers in/from respective register groups.
2297 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2298 registers if feature is present in xcr0.
2299 (i386_gdbarch_init): Add code to initialize AVX512 feature
2300 variables in tdep structure, wire in pseudo registers and call
2301 initialize_tdesc_i386_avx512.
2302 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2303 variables.
2304 (i386_regnum): Add AVX512 registers.
2305 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2306 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2307 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2308 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2309 512 bits wide.
2310 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2311 (i386_ymm_avx512_regnum_p): Likewise.
2312 (i386_k_regnum_p): Likewise.
2313 (i386_zmm_regnum_p): Likewise.
2314 (i386_zmmh_regnum_p): Likewise.
2315 * i387-tdep.c : Update year in copyright notice.
2316 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2317 XSAVE buffer.
2318 (XSAVE_YMM_AVX512_ADDR): New macro.
2319 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2320 XSAVE buffer.
2321 (XSAVE_XMM_AVX512_ADDR): New macro.
2322 (xsave_avx512_k_offset): New table for K register offsets in
2323 XSAVE buffer.
2324 (XSAVE_AVX512_K_ADDR): New macro.
2325 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2326 in XSAVE buffer.
2327 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2328 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2329 buffer.
2330 (i387_collect_xsave): Add code to collect AVX512 registers from
2331 XSAVE buffer.
2332 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2333 of XMM16-31 registers.
2334 (I387_NUM_K_REGS): New define for number of K registers.
2335 (I387_K0_REGNUM): New define for K0 register number.
2336 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2337 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2338 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2339 registers.
2340 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2341 (I387_XMM16_REGNUM): New define for XMM16 register number.
2342 (I387_YMM0_REGNUM): New define for YMM0 register number.
2343 (I387_KEND_REGNUM): New define for last K register number.
2344 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2345 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2346 number.
2347 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2348 number.
2349 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2350 size.
2351 * features/Makefile: Add AVX512 related files.
2352 * features/i386/32bit-avx512.xml: New file.
2353 * features/i386/64bit-avx512.xml: Likewise.
2354 * features/i386/amd64-avx512-linux.c: Likewise.
2355 * features/i386/amd64-avx512-linux.xml: Likewise.
2356 * features/i386/amd64-avx512.c: Likewise.
2357 * features/i386/amd64-avx512.xml: Likewise.
2358 * features/i386/i386-avx512-linux.c: Likewise.
2359 * features/i386/i386-avx512-linux.xml: Likewise.
2360 * features/i386/i386-avx512.c: Likewise.
2361 * features/i386/i386-avx512.xml: Likewise.
2362 * features/i386/x32-avx512-linux.c: Likewise.
2363 * features/i386/x32-avx512-linux.xml: Likewise.
2364 * features/i386/x32-avx512.c: Likewise.
2365 * features/i386/x32-avx512.xml: Likewise.
2366 * regformats/i386/amd64-avx512-linux.dat: New file.
2367 * regformats/i386/amd64-avx512.dat: Likewise.
2368 * regformats/i386/i386-avx512-linux.dat: Likewise.
2369 * regformats/i386/i386-avx512.dat: Likewise.
2370 * regformats/i386/x32-avx512-linux.dat: Likewise.
2371 * regformats/i386/x32-avx512.dat: Likewise.
2372 * NEWS: Add note about new support for AVX512.
2373
2374
08351840
PA
23752014-04-23 Pedro Alves <palves@redhat.com>
2376
2377 * breakpoint.c (insert_bp_location): Tolerate errors if the
2378 breakpoint is set in a user-loaded objfile.
2379 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2380 location is marked shlib_disabled. If the breakpoint is set in a
2381 user-loaded objfile is a GDB-side memory breakpoint, validate it
2382 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2383 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2384 flag.
2385 * mem-break.c (memory_validate_breakpoint): New function.
2386 * objfiles.c (userloaded_objfile_contains_address_p): New
2387 function.
2388 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2389 * target.h (memory_validate_breakpoint): New declaration.
2390
076855f9
PA
23912014-04-23 Pedro Alves <palves@redhat.com>
2392
2393 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2394 the breakpoint is set in a shared library, only suppress
2395 errors for software breakpoints, not hardware breakpoints.
2396
483805cf
PA
23972014-04-22 Pedro Alves <palves@redhat.com>
2398
2399 * infrun.c (schedlock_applies): New function, factored out from
2400 find_thread_needs_step_over.
2401 (find_thread_needs_step_over): Use it.
2402 (switch_back_to_stepped_thread): Always clear trap_expected if the
2403 step over is finished. Return early if scheduler locking applies.
2404 Look for the stepping thread and a potential step-over thread with
2405 a single loop.
2406 (currently_stepping_or_nexting_callback): Delete.
2407
a75fef0e
NC
24082014-04-22 Nick Clifton <nickc@redhat.com>
2409
2410 * NEWS: Mention that ARM sim now supports tracing.
2411
48b6e87e
YQ
24122014-04-22 Yao Qi <yao@codesourcery.com>
2413
2414 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2415 to ...
2416 * tracefile.c (tracefile_fetch_registers): ... it. New
2417 function.
2418 * tracefile.h (tracefile_fetch_registers): Declare.
2419 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2420 tracefile_fetch_registers.
2421
17617f2d
EZ
24222014-04-19 Eli Zaretskii <eliz@gnu.org>
2423
2424 PR gdb/14018
2425 * windows-nat.c (thread_rec): Don't display a warning when
2426 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2427 fails for any reason, set th->suspended to -1, so that we don't
2428 try to resume such a thread. Also, don't return NULL in these
2429 cases, to avoid completely ruin the session due to "PC register is
2430 not available" error.
2431 (do_windows_fetch_inferior_registers): Check errors in
2432 GetThreadContext call.
2433 (windows_continue): Accept an additional argument KILLED; if not
2434 zero, ignore errors in the SetThreadContext call, since the
2435 inferior was killed and is shutting down.
2436 (windows_resume, get_windows_debug_event)
2437 (windows_create_inferior, windows_mourn_inferior)
2438 (windows_kill_inferior): All callers of windows_continue changed
2439 to adjust to its new calling sequence.
2440
5723a6fd
YQ
24412014-04-19 Yao Qi <yao@codesourcery.com>
2442
2443 * ctf.c (ctf_open): Call post_create_inferior.
2444
614d5099
YQ
24452014-04-19 Yao Qi <yao@codesourcery.com>
2446
2447 * ctf.c (handle_id): New static variable.
2448 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2449 value. Get the declaration of event "register" and get length
2450 of field "contents".
2451
dac3e710
YQ
24522014-04-19 Yao Qi <yao@codesourcery.com>
2453
2454 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2455
2bca57ba
SC
24562014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2457
2458 * valops.c (oload_method_static): Remove unnecessary argument
2459 METHOD. Update all callers.
2460
51d48146
PA
24612014-04-18 Pedro alves <palves@redhat.com>
2462 Tom Tromey <tromey@redhat.com>
2463
2464 PR backtrace/15558
2465 * frame.c (get_prev_frame_1): Rename to ...
2466 (get_prev_frame_always): ... this, and make extern. Adjust.
2467 (skip_artificial_frames): Use get_prev_frame_always.
2468 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2469 (get_frame_unwind_stop_reason): Adjust to rename.
2470 * frame.h (get_prev_frame_always): Declare.
2471 * inline-frame.c: Include frame.h.
2472 (inline_frame_this_id): Use get_prev_frame_always.
2473
1bdad2e0
TG
24742014-04-18 Tristan Gingold <gingold@adacore.com>
2475
2476 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2477 code by using bfd_mach_o_get_base_address.
2478
7ce16bd4
UW
24792014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
2480
2481 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2482 (spu_ax_pseudo_register_collect): New function.
2483 (spu_ax_pseudo_register_push_stack): Likewise.
2484 (spu_dwarf_reg_to_regnum): Likewise.
2485 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2486
2ed3c037
UW
24872014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
2488
2489 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2490 Replace FRAME argument with FRAME_ID.
2491 * gdbarch.c, gdbarch.h: Regenerate.
2492 * findvar.c (default_value_from_register): Add GDBARCH argument;
2493 replace FRAME by FRAME_ID. No longer call get_frame_id.
2494 (value_from_register): Update call to gdbarch_value_from_register.
2495 * value.h (default_value_from_register): Update prototype.
2496 * s390-linux-tdep.c (s390_value_from_register): Update interface
2497 and call to default_value_from_register.
2498 * spu-tdep.c (spu_value_from_register): Likewise.
2499
2500 * findvar.c (address_from_register): Remove TYPE argument.
2501 Do not call value_from_register; use gdbarch_value_from_register
2502 with null_frame_id instead.
2503 * value.h (address_from_register): Update prototype.
2504 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2505 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2506 address_from_register interface change.
2507
71e50e83
YQ
25082014-04-17 Yao Qi <yao@codesourcery.com>
2509
2510 * gdbtypes.h: Update comments to link to types and macros'
2511 definitions.
2512
7a23c549
SC
25132014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2514
2515 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2516
22869d73
KS
25172014-04-16 Keith Seitz <keiths@redhat.com>
2518
2519 PR gdb/15827
2520 * dwarf2read.c (skip_one_die): Check that all relative-offset
2521 sibling DIEs fall within range of the current reader's buffer.
2522 (read_partial_die): Likewise.
2523
c4f87ca6
KS
25242014-04-16 Keith Seitz <keiths@redhat.com>
2525
2526 PR c++/16597
2527 * cp-namespace.c (lookup_symbol_file): If the type name of
2528 `this' is NULL, return immediately.
2529
b50c8614
KS
25302014-04-14 Keith Seitz <keiths@redhat.com>
2531
2532 PR c++/16253
2533 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2534 from symbol_matches_domain in symtab.c. All local callers
2535 of symbol_matches_domain updated.
2536 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2537 search STRUCT_DOMAIN.
2538 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2539 independently. standard_lookup will do that automatically.
2540 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2541 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2542 (cp_lookup_symbol_in_namespace): Likewise.
2543 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2544 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2545 may return a STRUCT_DOMAIN match.
2546 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2547 * cp-support.c: Include language.h.
2548 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2549 VAR_DOMAIN.
2550 * psymtab.c (match_partial_symbol): Compare the requested
2551 domain with the symbol's domain directly.
2552 (lookup_partial_symbol): Likewise.
2553 * symtab.c (lookup_symbol_in_language): Explain when/why
2554 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2555 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2556 appropriate languages.
2557 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2558 and moved to ada-lang.c
2559 (lookup_block_symbol): Explain that this function only returns
2560 symbol matching the requested DOMAIN.
2561 Compare the requested domain with the symbol's domain directly.
2562 (iterate_over_symbols): Compare the requested domain with the
2563 symbol's domain directly.
2564 * symtab.h (symbol_matches_domain): Remove.
2565
3d567982
TT
25662014-04-14 Tom Tromey <tromey@redhat.com>
2567
2568 PR c++/15246:
2569 * c-exp.y (type_aggregate_p): New function.
2570 (qualified_name, classify_inner_name): Use it.
2571 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2572 and TYPE_TARGET_TYPE of an enum type.
2573 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2574 an enum type.
2575 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2576 handle TYPE_DECLARED_CLASS.
2577 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2578 types.
2579 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2580 * valops.c (enum_constant_from_type): New function.
2581 (value_aggregate_elt): Use it.
2582 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2583 TYPE_CODE_ENUM.
2584
c848d642
TT
25852014-04-14 Tom Tromey <tromey@redhat.com>
2586
2587 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2588 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2589 const.
2590 * value.h (value_aggregate_elt): Update.
2591
0626fc76
TT
25922014-04-14 Tom Tromey <tromey@redhat.com>
2593
2594 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2595
5ecaaa66
SA
25962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2597
2598 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2599 (evaluate_subexp_standard): Pass noside argument.
2600 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2601 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2602 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2603 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2604 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2605
1612e0c0
SA
26062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2607
2608 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2609 points to a constant blob.
2610
c451ebe5
SA
26112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2612
2613 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2614 property and store it as the high bound and flag the range accordingly.
2615 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2616 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2617 * gdbtypes.h (enum range_flags): New enum.
2618 (struct range_bounds): Add flags member.
2619
1d42e4c4
SA
26202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2621
2622 * c-typeprint.c (c_type_print_varspec_suffix): Added
2623 check for not yet resolved high bound. If unresolved, print
2624 "variable length" string to the console instead of random
2625 length.
2626
9f1f738a
SA
26272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2628
2629 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2630 value.
2631 (ada_template_to_fixed_record_type_1): Likewise.
2632 (ada_to_fixed_type_1): Likewise.
2633 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2634 (cp_print_value): Likewise.
2635 * d-valprint.c (dynamic_array_type): Likewise.
2636 * findvar.c (address_of_variable): Likewise.
2637 * jv-valprint.c (java_value_print): Likewise.
2638 * valops.c (value_ind): Likewise.
2639 * value.c (coerce_ref): Likewise.
2640
3c8452d4
SA
26412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2642
2643 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2644 value and retrieve the dynamic type size.
2645
4ad88275
SA
26462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2647
2648 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2649 passed to sizeof is dynamic evaluate the argument to compute the length.
2650
80180f79
SA
26512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2652 Joel Brobecker <brobecker@adacore.com>
2653
2654 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2655 (dwarf2_evaluate_property): New function.
2656 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2657 * dwarf2read.c (attr_to_dynamic_prop): New function.
2658 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2659 attribute.
2660 * gdbtypes.c: Include dwarf2loc.h.
2661 (is_dynamic_type): New function.
2662 (resolve_dynamic_type): New function.
2663 (resolve_dynamic_bounds): New function.
2664 (get_type_length): New function.
2665 (check_typedef): Use get_type_length to compute type length.
2666 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2667 (TYPE_LOW_BOUND_KIND): New macro.
2668 (is_dynamic_type): New function prototype.
2669 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2670 to resolve dynamic properties of the type. Update comment.
2671 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2672
a1556843
RH
26732014-04-14 Richard Henderson <rth@redhat.com>
2674
2675 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2676
0be03e84
DE
26772014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2678 Doug Evans <xdje42@gmail.com>
2679
2680 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2681 dereference TYPE_CODE_REF values.
2682
6b662e19
JB
26832014-04-11 Joel Brobecker <brobecker@adacore.com>
2684
2685 Revert the following changes due to regressions:
2686
2687 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2688 (dwarf2_evaluate_property): New function.
2689 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2690 * dwarf2read.c (attr_to_dynamic_prop): New function.
2691 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2692 attribute.
2693 * gdbtypes.c: Include dwarf2loc.h.
2694 (is_dynamic_type): New function.
2695 (resolve_dynamic_type): New function.
2696 (resolve_dynamic_bounds): New function.
2697 (get_type_length): New function.
2698 (check_typedef): Use get_type_length to compute type length.
2699 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2700 (TYPE_LOW_BOUND_KIND): New macro.
2701 (is_dynamic_type): New function prototype.
2702 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2703 to resolve dynamic properties of the type. Update comment.
2704 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2705
2706 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2707 passed to sizeof is dynamic evaluate the argument to compute the length.
2708
2709 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2710 value and retrieve the dynamic type size.
2711
2712 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2713 (ada_template_to_fixed_record_type_1): Likewise.
2714 (ada_to_fixed_type_1): Likewise.
2715 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2716 (cp_print_value): Likewise.
2717 * d-valprint.c (dynamic_array_type): Likewise.
2718 * eval.c (evaluate_subexp_with_coercion): Likewise.
2719 * findvar.c (address_of_variable): Likewise.
2720 * jv-valprint.c (java_value_print): Likewise.
2721 * valops.c (value_ind): Likewise.
2722 * value.c (coerce_ref): Likewise.
2723
2724 * c-typeprint.c (c_type_print_varspec_suffix): Added
2725 check for not yet resolved high bound. If unresolved, print
2726 "variable length" string to the console instead of random
2727 length.
2728
2729 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2730 property and store it as the high bound and flag the range accordingly.
2731 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2732 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2733 * gdbtypes.h (enum range_flags): New enum.
2734 (struct range_bounds): Add flags member.
2735
2736 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2737 points to a constant blob.
2738
2739 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2740 (evaluate_subexp_standard): Pass noside argument.
2741 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2742 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2743 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2744 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2745 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2746
245a5f0b
KS
27472014-04-11 Keith Seitz <keiths@redhat.com>
2748
2749 PR c++/16675
2750 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2751 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2752 reference types.
2753
3bce8237
SA
27542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2755
2756 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2757 (evaluate_subexp_standard): Pass noside argument.
2758 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2759 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2760 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2761 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2762 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2763
92b09522
SA
27642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2765
2766 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2767 points to a constant blob.
2768
e1969afb
SA
27692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2770
2771 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2772 property and store it as the high bound and flag the range accordingly.
2773 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2774 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2775 * gdbtypes.h (enum range_flags): New enum.
2776 (struct range_bounds): Add flags member.
2777
b86138fb
SA
27782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2779
2780 * c-typeprint.c (c_type_print_varspec_suffix): Added
2781 check for not yet resolved high bound. If unresolved, print
2782 "variable length" string to the console instead of random
2783 length.
2784
bcd629a4
SA
27852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2786
2787 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2788 (ada_template_to_fixed_record_type_1): Likewise.
2789 (ada_to_fixed_type_1): Likewise.
2790 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2791 (cp_print_value): Likewise.
2792 * d-valprint.c (dynamic_array_type): Likewise.
2793 * eval.c (evaluate_subexp_with_coercion): Likewise.
2794 * findvar.c (address_of_variable): Likewise.
2795 * jv-valprint.c (java_value_print): Likewise.
2796 * valops.c (value_ind): Likewise.
2797 * value.c (coerce_ref): Likewise.
2798
04b19544
SA
27992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2800
2801 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2802 value and retrieve the dynamic type size.
2803
26cb189f
SA
28042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2805
2806 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2807 passed to sizeof is dynamic evaluate the argument to compute the length.
2808
37c1ab67
SA
28092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2810
2811 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2812 (dwarf2_evaluate_property): New function.
2813 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2814 * dwarf2read.c (attr_to_dynamic_prop): New function.
2815 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2816 attribute.
2817 * gdbtypes.c: Include dwarf2loc.h.
2818 (is_dynamic_type): New function.
2819 (resolve_dynamic_type): New function.
2820 (resolve_dynamic_bounds): New function.
2821 (get_type_length): New function.
2822 (check_typedef): Use get_type_length to compute type length.
2823 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2824 (TYPE_LOW_BOUND_KIND): New macro.
2825 (is_dynamic_type): New function prototype.
2826 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2827 to resolve dynamic properties of the type. Update comment.
2828 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2829
729efb13
SA
28302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2831
2832 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2833 declaring high/low bounds and change uses accordingly. Call
2834 create_range_type instead of create_static_range_type.
2835 * gdbtypes.c (create_range_type): New function.
2836 (create_range_type): Convert bounds into struct bound_prop and pass
2837 them to create_range_type.
2838 * gdbtypes.h (struct bound_prop): New struct.
2839 (create_range_type): New function prototype.
2840 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2841 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2842 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2843 part of the bound.
2844 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2845
0c9c3474
SA
28462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2847
2848 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2849 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2850 * ada-lang.c: All uses of create_range_type updated.
2851 * coffread.c: All uses of create_range_type updated.
2852 * dwarf2read.c: All uses of create_range_type updated.
2853 * f-exp.y: All uses of create_range_type updated.
2854 * m2-valprint.c: All uses of create_range_type updated.
2855 * mdebugread.c: All uses of create_range_type updated.
2856 * stabsread.c: All uses of create_range_type updated.
2857 * valops.c: All uses of create_range_type updated.
2858 * valprint.c: All uses of create_range_type updated.
2859
9d497a19
PA
28602014-04-10 Pedro Alves <palves@redhat.com>
2861
2862 * breakpoint.c (single_step_breakpoints)
2863 (single_step_gdbarch): Move up in the file.
2864 (one_breakpoint_xfer_memory): New function, factored out from ...
2865 (breakpoint_xfer_memory): ... here. Also process single-step
2866 breakpoints.
2867
15a9128a
TG
28682014-04-09 Tristan Gingold <gingold@adacore.com>
2869
2870 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2871 comments.
2872 (darwin_decode_exception_message): Free port only after use.
2873
9c97a070
PL
28742014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2875
2876 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2877 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2878 when setting the size of call_length.
2879
7af389b8
SC
28802014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2881
2882 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2883 dereference TYPE_CODE_REF values.
2884
86ad98c3
JB
28852014-04-07 Joel Brobecker <brobecker@adacore.com>
2886
2887 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2888 end of warning message.
2889
b0aeadb3
DE
28902014-04-03 Doug Evans <dje@google.com>
2891
2892 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2893 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2894
5979d6b6
AM
28952014-04-02 Alan Modra <amodra@gmail.com>
2896
2897 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2898 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2899 (struct symbol_file_add_from_memory_args): Add size field.
2900 (find_vdso_size): New function.
2901 (add_vsyscall_page): Attempt to find vdso size.
2902
0d60c288
DE
29032014-04-01 Doug Evans <dje@google.com>
2904
2905 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2906
a41f2563
TG
29072014-04-01 Tristan Gingold <gingold@adacore.com>
2908
2909 * darwin-nat.c (darwin_encode_reply): Add prototype.
2910 (darwin_decode_exception_message): Reply to unknown inferiors.
2911 (darwin_decode_message): Handle message by id. Ignore message
2912 to unknown inferior.
2913 (darwin_wait): Discard unknown messages, add debug trace.
2914
11a865c8
DE
29152014-03-31 Doug Evans <dje@google.com>
2916
2917 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2918 comp_dir_string.
2919
770e7fc7
DE
29202014-03-31 Doug Evans <dje@google.com>
2921
2922 New option "set print symbol-loading".
2923 * NEWS: Mention it.
2924 * solib.c (solib_read_symbols): Only print symbol loading messages
2925 if requested.
2926 (solib_add): If symbol loading is in "brief" mode, notify user
2927 symbols are being loaded.
2928 (reload_shared_libraries_1): Ditto.
2929 * symfile.c (print_symbol_loading_off): New static global.
2930 (print_symbol_loading_brief): New static global.
2931 (print_symbol_loading_full): New static global.
2932 (print_symbol_loading_enums): New static global.
2933 (print_symbol_loading): New static global.
2934 (print_symbol_loading_p): New function.
2935 (symbol_file_add_with_addrs): Only print symbol loading messages
2936 if requested.
2937 (_initialize_symfile): Register "print symbol-loading" set/show
2938 command.
2939 * symfile.h (print_symbol_loading_p): Declare.
2940
c32c64b7
DE
29412014-03-30 Doug Evans <xdje42@gmail.com>
2942
2943 * infrun.c (set_last_target_status): New function.
2944 (handle_inferior_event): Call it.
2945
7c0bc051
DE
29462014-03-30 Doug Evans <xdje42@gmail.com>
2947
2948 * inferior.h (enum stop_kind): Improve comment.
2949
8776cfe9
JB
29502014-03-28 Joel Brobecker <brobecker@adacore.com>
2951
2952 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2953 a reference, strip the reference layer before calling
2954 the lang_ops value_has_mutated callback.
2955
410a0ff2
SDJ
29562014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2957
2958 Remove some globals from our parser.
2959 * language.c (unk_lang_parser): Add "struct parser_state"
2960 argument.
2961 * language.h (struct language_defn) <la_parser>: Likewise.
2962 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2963 (initialize_expout): Add "struct parser_state" argument.
2964 Rewrite function to use the parser state.
2965 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2966 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2967 write_exp_elt_longcst, write_exp_elt_dblcst,
2968 write_exp_elt_decfloatcst, write_exp_elt_type,
2969 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2970 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2971 write_dollar_variable): Likewise.
2972 (parse_exp_in_context_1): Use parser state.
2973 (insert_type_address_space): Add "struct parser_state" argument.
2974 Use parser state.
2975 (increase_expout_size): New function.
2976 * parser-defs.h: Forward declare "struct language_defn" and
2977 "struct parser_state".
2978 (expout, expout_size, expout_ptr): Remove extern declarations.
2979 (parse_gdbarch, parse_language): Rewrite macro declarations to
2980 accept the parser state.
2981 (struct parser_state): New struct.
2982 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2983 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2984 write_exp_elt_decfloatcst, write_exp_elt_type,
2985 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2986 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2987 write_exp_msymbol, write_dollar_variable,
2988 mark_struct_expression, insert_type_address_space): Add "struct
2989 parser_state" argument.
2990 (increase_expout_size): New function.
2991 * utils.c (do_clear_parser_state): New function.
2992 (make_cleanup_clear_parser_state): Likewise.
2993 * utils.h (make_cleanup_clear_parser_state): New function
2994 prototype.
2995 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2996 Update calls to write_exp* in order to pass the parser state.
2997 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2998 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2999 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3000 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3001 * stap-probe.c (stap_parse_register_operand): Likewise.
3002 (stap_parse_single_operand): Likewise.
3003 (stap_parse_argument_1): Likewise.
3004 (stap_parse_argument): Use parser state.
3005 * stap-probe.h: Include "parser-defs.h".
3006 (struct stap_parse_info) <pstate>: New field.
3007 * c-exp.y (parse_type): Rewrite to use parser state.
3008 (yyparse): Redefine to c_parse_internal.
3009 (pstate): New global variable.
3010 (parse_number): Add "struct parser_state" argument.
3011 (write_destructor_name): Likewise.
3012 (type_exp): Update calls to write_exp* and similars in order to
3013 use parser state.
3014 (exp1, exp, variable, qualified_name, space_identifier,
3015 typename, typebase): Likewise.
3016 (write_destructor_name, parse_number, lex_one_token,
3017 classify_name, classify_inner_name, c_parse): Add "struct
3018 parser_state" argument. Update function to use parser state.
3019 * c-lang.h: Forward declare "struct parser_state".
3020 (c_parse): Add "struct parser_state" argument.
3021 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3022 (yyparse): Redefine macro to ada_parse_internal.
3023 (pstate): New variable.
3024 (write_int, write_object_renaming, write_var_or_type,
3025 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3026 type_int, type_long, type_long_long, type_float, type_double,
3027 type_long_double, type_char, type_boolean, type_system_address):
3028 Add "struct parser_state" argument.
3029 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3030 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3031 var_or_type, aggregate, aggregate_component_list,
3032 positional_list, others, component_group,
3033 component_associations): Update calls to write_exp* and similar
3034 functions in order to use parser state.
3035 (ada_parse, write_var_from_sym, write_int,
3036 write_exp_op_with_string, write_object_renaming,
3037 find_primitive_type, write_selectors, write_ambiguous_var,
3038 write_var_or_type, write_name_assoc, type_int, type_long,
3039 type_long_long, type_float, type_double, type_long_double,
3040 type_char, type_boolean, type_system_address): Add "struct
3041 parser_state" argument. Adjust function to use parser state.
3042 * ada-lang.c (parse): Likewise.
3043 * ada-lang.h: Forward declare "struct parser_state".
3044 (ada_parse): Add "struct parser_state" argument.
3045 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3046 calls to both functions.
3047 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3048 parser state.
3049 (yyparse): Redefine macro to f_parse_internal.
3050 (pstate): New variable.
3051 (parse_number): Add "struct parser_state" argument.
3052 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3053 and similars in order to use parser state.
3054 (parse_number): Adjust code to use parser state.
3055 (yylex): Likewise.
3056 (f_parse): New function.
3057 * f-lang.h: Forward declare "struct parser_state".
3058 (f_parse): Add "struct parser_state" argument.
3059 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3060 parser state.
3061 (yyparse): Redefine macro for java_parse_internal.
3062 (pstate): New variable.
3063 (push_expression_name, push_expression_name, insert_exp): Add
3064 "struct parser_state" argument.
3065 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3066 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3067 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3068 PostIncrementExpression, PostDecrementExpression,
3069 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3070 UnaryExpressionNotPlusMinus, CastExpression,
3071 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3072 RelationalExpression, EqualityExpression, AndExpression,
3073 ExclusiveOrExpression, InclusiveOrExpression,
3074 ConditionalAndExpression, ConditionalOrExpression,
3075 ConditionalExpression, Assignment, LeftHandSide): Update
3076 calls to write_exp* and similars in order to use parser state.
3077 (parse_number): Ajust code to use parser state.
3078 (yylex): Likewise.
3079 (java_parse): New function.
3080 (push_variable): Add "struct parser_state" argument. Adjust
3081 code to user parser state.
3082 (push_fieldnames, push_qualified_expression_name,
3083 push_expression_name, insert_exp): Likewise.
3084 * jv-lang.h: Forward declare "struct parser_state".
3085 (java_parse): Add "struct parser_state" argument.
3086 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3087 parser state.
3088 (yyparse): Redefine macro to m2_parse_internal.
3089 (pstate): New variable.
3090 (type_exp, exp, fblock, variable, type): Update calls to
3091 write_exp* and similars to use parser state.
3092 (yylex): Likewise.
3093 (m2_parse): New function.
3094 * m2-lang.h: Forward declare "struct parser_state".
3095 (m2_parse): Add "struct parser_state" argument.
3096 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3097 * objc-lang.h: Forward declare "struct parser_state".
3098 (end_msglist): Add "struct parser_state" argument.
3099 * p-exp.y (parse_type): Rewrite macro to use parser state.
3100 (yyparse): Redefine macro to pascal_parse_internal.
3101 (pstate): New variable.
3102 (parse_number): Add "struct parser_state" argument.
3103 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3104 write_exp* and similars in order to use parser state.
3105 (parse_number, yylex): Adjust code to use parser state.
3106 (pascal_parse): New function.
3107 * p-lang.h: Forward declare "struct parser_state".
3108 (pascal_parse): Add "struct parser_state" argument.
3109 * go-exp.y (parse_type): Rewrite macro to use parser state.
3110 (yyparse): Redefine macro to go_parse_internal.
3111 (pstate): New variable.
3112 (parse_number): Add "struct parser_state" argument.
3113 (type_exp, exp1, exp, variable, type): Update calls to
3114 write_exp* and similars in order to use parser state.
3115 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3116 to use parser state.
3117 (go_parse): Likewise.
3118 * go-lang.h: Forward declare "struct parser_state".
3119 (go_parse): Add "struct parser_state" argument.
3120
342587c4
DE
31212014-03-27 Doug Evans <dje@google.com>
3122
3123 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3124
33e80786
DE
31252014-03-27 Doug Evans <dje@google.com>
3126
3127 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3128 Remove argument abbrev_section. All callers updated.
3129
1dbab08b
DE
31302014-03-27 Doug Evans <dje@google.com>
3131
3132 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3133 addr_base, ranges_base.
3134
318d3177
KS
31352014-03-26 Keith Seitz <keiths@redhat.com>
3136
3137 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3138 types, not VAR_DOMAIN.
3139
1e54db15
SL
31402014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3141
3142 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3143 "ra" registers.
3144 * features/nios2-linux.c: Regenerated.
3145 * features/nios2.c: Regenerated.
3146
d3839ede
PA
31472014-03-25 Pedro Alves <palves@redhat.com>
3148
3149 * cli/cli-script.c (script_from_file): Force the interpreter to
3150 sync mode.
3151
7588d2ec
PL
31522014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3153
3154 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3155 small stack allocation.
3156
a6290449
TG
31572014-03-24 Tristan Gingold <gingold@adacore.com>
3158
3159 * darwin-nat.c (exc_server): Remove unused prototype.
3160 (darwin_dump_message): Correctly display data on x86_64.
3161 (darwin_encode_reply): Fix style.
3162 Add comments and fix indentation.
3163
31ae9d24 31642014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
3165
3166 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3167
6339bfc4
DE
31682014-03-22 Doug Evans <xdje42@gmail.com>
3169
3170 * infcmd.c: Whitespace fixes.
3171 (interrupt_command): Merge two function comments into one.
3172
0a07590b
DE
31732014-03-22 Doug Evans <xdje42@gmail.com>
3174
3175 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3176 All uses updated.
3177
b55fbac4
YQ
31782014-03-22 Yao Qi <yao@codesourcery.com>
3179
3180 * remote.c (target_read_live_memory): Remove.
3181 (memory_xfer_live_readonly_partial): Rename it to
3182 remote_xfer_live_readonly_partial. Remove argument 'object'.
3183 All callers updated. Call remote_read_bytes_1
3184 instead of target_read_live_memory.
3185 * tracepoint.c (set_traceframe_number): Remove.
3186 (make_cleanup_restore_traceframe_number): Likewise .
3187 * tracepoint.h (set_traceframe_number): Remove declaration.
3188 (make_cleanup_restore_traceframe_number): Likewise.
3189
9217e74e
YQ
31902014-03-22 Yao Qi <yao@codesourcery.com>
3191
3192 * remote.c (remote_read_bytes): Move code on reading from the
3193 remote stub to ...
3194 (remote_read_bytes_1): ... here. New function.
3195
8acf9577
YQ
31962014-03-22 Yao Qi <yao@codesourcery.com>
3197
3198 * ctf.c (ctf_xfer_partial): Check the return value of
3199 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3200 return TARGET_XFER_UNAVAILABLE.
3201 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3202 * target.c (target_read_live_memory): Move it to remote.c.
3203 (memory_xfer_live_readonly_partial): Likewise.
3204 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3205 * remote.c (target_read_live_memory): Moved from target.c.
3206 (memory_xfer_live_readonly_partial): Likewise.
3207 (remote_read_bytes): Factored out from
3208 memory_xfer_partial_1.
3209
feef67ab
DE
32102014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3211
3212 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3213 NULL pointer.
3214
b65dc60b
PA
32152014-03-21 Pedro Alves <palves@redhat.com>
3216
3217 * infrun.c (normal_stop): Extend comment.
3218
b4ab256d
HZ
32192014-03-21 Hui Zhu <hui@codesourcery.com>
3220 Pedro Alves <palves@redhat.com>
3221
3222 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3223 static buffer.
3224 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3225 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3226 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3227
deba7593
MR
32282014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3229
3230 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3231 `z' formatted output modifier.
3232
1bff71c3
SDJ
32332014-03-20 Tom Tromey <tromey@redhat.com>
3234 Sergio Durigan Junior <sergiodj@redhat.com>
3235
3236 * probe.c (parse_probes): Turn assert into an ordinary error.
3237 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3238 exceptions when parsing probes. Rearrange the code for clarity.
3239
90e28950
TT
32402014-03-20 Tom Tromey <tromey@redhat.com>
3241
3242 PR gdb/14135
3243 * top.c (execute_command): Only dispatch events if the command
3244 started the target.
3245
beb460e8
PA
32462014-03-20 Tom Tromey <tromey@redhat.com>
3247
3248 PR cli/15718
3249 * infcall.c: Include event-top.h.
3250 (run_inferior_call): Call async_disable_stdin if needed.
3251
99619bea
PA
32522014-03-20 Pedro Alves <palves@redhat.com>
3253
3254 * infrun.c (prepare_to_proceed): Delete.
3255 (thread_still_needs_step_over): New function.
3256 (find_thread_needs_step_over): New function.
3257 (proceed): If the current thread needs a step-over, set its
3258 steping_over_breakpoint flag. Adjust to use
3259 find_thread_needs_step_over instead of prepare_to_proceed.
3260 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3261 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3262 breakpoint.
3263 (switch_back_to_stepped_thread): Step over breakpoints of all
3264 threads not the stepping thread, before switching back to the
3265 stepping thread.
3266
2adfaa28
PA
32672014-03-20 Pedro Alves <palves@redhat.com>
3268
3269 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3270 extern.
3271 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3272 * infrun.c (saved_singlestep_ptid)
3273 (stepping_past_singlestep_breakpoint): Delete.
3274 (resume): Remove stepping_past_singlestep_breakpoint handling.
3275 (proceed): Store the prev_pc of the stepping thread too.
3276 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3277 singlestep_pc.
3278 (enum infwait_states): Delete infwait_thread_hop_state.
3279 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3280 field.
3281 (handle_inferior_event): Adjust.
3282 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3283 handling and the thread-hop code. Before removing single-step
3284 breakpoints, check whether the thread hit a single-step breakpoint
3285 of another thread. If it did, the trap is not a random signal.
3286 (switch_back_to_stepped_thread): If the event thread hit a
3287 single-step breakpoint, unblock it before switching to the
3288 stepping thread. Handle the case of the stepped thread having
3289 advanced already.
3290 (keep_going): Handle the case of the current thread moving past a
3291 single-step breakpoint.
3292
31e77af2
PA
32932014-03-20 Pedro Alves <palves@redhat.com>
3294
3295 PR breakpoints/7143
3296 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3297 are being stepped over.
3298 (breakpoint_address_match): Make extern.
3299 * breakpoint.h (breakpoint_address_match): New declaration.
3300 * inferior.h (stepping_past_instruction_at): New declaration.
3301 * infrun.c (struct step_over_info): New type.
3302 (step_over_info): New global.
3303 (set_step_over_info, clear_step_over_info)
3304 (stepping_past_instruction_at): New functions.
3305 (handle_inferior_event): Clear the step-over info when
3306 trap_expected is cleared.
3307 (resume): Remove now stale comment.
3308 (clear_proceed_status): Clear step-over info.
3309 (proceed): Adjust step-over handling to set or clear the step-over
3310 info instead of removing all breakpoints.
3311 (handle_signal_stop): When setting up a thread-hop, don't remove
3312 breakpoints here.
3313 (stop_stepping): Clear step-over info.
3314 (keep_going): Adjust step-over handling to set or clear step-over
3315 info and then always inserting breakpoints, instead of removing
3316 all breakpoints when stepping over one.
3317
b9f437de
PA
33182014-03-20 Pedro Alves <palves@redhat.com>
3319
3320 * infrun.c (previous_inferior_ptid): Adjust comment.
3321 (deferred_step_ptid): Delete.
3322 (infrun_thread_ptid_changed, prepare_to_proceed)
3323 (init_wait_for_inferior): Adjust.
3324 (handle_signal_stop): Delete deferred_step_ptid handling.
3325
06c868a8
JK
33262014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 PR gdb/15358
3329 * defs.h (sync_quit_force_run): New declaration.
3330 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3331 * event-top.c (async_sigterm_handler): New declaration.
3332 (async_sigterm_token): New variable.
3333 (async_init_signals): Create also async_sigterm_token.
3334 (async_sigterm_handler): New function.
3335 (sync_quit_force_run): New variable.
3336 (handle_sigterm): Replace quit_force call by other calls.
3337 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3338
dea80df0
MR
33392014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3340
3341 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3342 offset into SPE pseudo registers.
3343
0c7e1a46
PA
33442014-03-18 Pedro Alves <palves@redhat.com>
3345
3346 PR gdb/13860
3347 * inferior.h (print_stop_event): Declare.
3348 * infrun.c (print_stop_event): New, factored out from ...
3349 (normal_stop): ... this.
3350 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3351 of bpstat_print/print_stack_frame.
3352
9c1fcd01
TT
33532014-03-17 Tom Tromey <tromey@redhat.com>
3354
3355 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3356
11aa919a
PMR
33572014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3358
3359 * ada-lang.c (decode_constrained_packed_array): Perform a
3360 minimal coercion for reference with coerce_ref instead of
3361 ada_coerce_ref.
3362
d4ccb5e0
TG
33632014-03-17 Tristan Gingold <gingold@adacore.com>
3364
3365 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3366 (darwin_solib_create_inferior_hook): Emit a warning if version
3367 is unhandled.
3368
49840f2a
UW
33692014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
3370
3371 * python/py-value.c (get_field_flag): Cast flag_name argument to
3372 PyObject_GetAttrString to support Python 2.4.
3373
ed4123e5
JK
33742014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3375
3376 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3377 (Global Maintainers): Remove Jan Kratochvil.
3378
d6b64346
PA
33792014-03-14 Pedro Alves <palves@redhat.com>
3380
3381 * inferior.h (terminal_ours_for_output): Rename to ...
3382 (child_terminal_ours_for_output): ... this.
3383 (terminal_save_ours): Rename to ...
3384 (child_terminal_save_ours): ... this.
3385 (terminal_ours): Rename to ...
3386 (child_terminal_ours): ... this.
3387 (terminal_inferior): Rename to ...
3388 (child_terminal_inferior): ... this.
3389 (terminal_init_inferior): Rename to ...
3390 (child_terminal_init_inferior): ... this.
3391 (terminal_init_inferior_with_pgrp): Rename to ...
3392 (child_terminal_init_inferior_with_pgrp): ... this.
3393 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3394 (child_terminal_init_with_pgrp): ... this.
3395 (terminal_save_ours): Rename to ...
3396 (child_terminal_save_ours): ... this.
3397 (terminal_init_inferior): Rename to ...
3398 (child_terminal_init): ... this. Adjust.
3399 (terminal_inferior): Rename to ...
3400 (child_terminal_inferior): ... this.
3401 (terminal_ours_for_output): Rename to ...
3402 (child_terminal_ours_for_output): ... this. Adjust.
3403 (terminal_ours): Rename to ...
3404 (child_terminal_ours): ... this.
3405 (terminal_ours_1): Rename to ...
3406 (child_terminal_ours_1): ... this. Adjust.
3407 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3408 * windows-nat.c (do_initial_windows_stuff): Adjust.
3409 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3410 (gnu_terminal_init): ... this. Adjust.
3411 (gnu_target): Adjust.
3412 * inf-child.c (inf_child_target): Adjust.
3413
5a1e8c7a
DE
34142014-03-13 Doug Evans <xdje42@gmail.com>
3415
3416 PR guile/16612
3417 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3418 new eq?-hashtab.
3419
350e1a76
DE
34202014-03-13 Doug Evans <xdje42@gmail.com>
3421
3422 * value.c (record_latest_value): Call release_value_or_incref
3423 instead of release_value.
3424
a69900ae
PA
34252014-03-13 Pedro Alves <palves@redhat.com>
3426
3427 * procfs.c (procfs_target): Don't override to_shortname,
3428 to_longname or to_doc.
3429
5db9f0bd
PA
34302014-03-13 Pedro Alves <palves@redhat.com>
3431
3432 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3433 Unix in user visible strings.
3434
5e3a2c38
SS
34352014-03-12 Stan Shebs <stan@codesourcery.com>
3436
3437 * gdbtypes.h: Annotate comments for Doxygen, add a page
3438 block comment with some general info.
3439
8bc2fe48
PA
34402014-03-12 Pedro Alves <palves@redhat.com>
3441
3442 * infcmd.c (prepare_execution_command): New function, factored out
3443 from several execution commands.
3444 (run_command_1, continue_command, step_1, jump_command)
3445 (signal_command, until_command, advance_command, finish_command)
3446 (attach_command): Use prepare_execution_command.
3447
638c5f49
OJ
34482014-03-12 Omair Javaid <omair.javaid@linaro.org>
3449
3450 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3451 (MAX_BPTS): Define.
3452 (MAX_WPTS): Define.
3453 (struct arm_linux_thread_points): Removed.
3454 (struct arm_linux_process_info): New.
3455 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3456 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3457 (arm_linux_find_breakpoints_by_tid): Removed.
3458 (struct arch_lwp_info): New.
3459 (arm_linux_find_process_pid): New functions.
3460 (arm_linux_add_process): New functions.
3461 (arm_linux_process_info_get): New functions.
3462 (arm_linux_forget_process): New function.
3463 (arm_linux_get_debug_reg_state): New function.
3464 (struct update_registers_data): New.
3465 (update_registers_callback): New function.
3466 (arm_linux_insert_hw_breakpoint1): Updated.
3467 (arm_linux_remove_hw_breakpoint1): Updated.
3468 (arm_linux_insert_hw_breakpoint): Updated.
3469 (arm_linux_remove_hw_breakpoint): Updated.
3470 (arm_linux_insert_watchpoint): Updated.
3471 (arm_linux_remove_watchpoint): Updated.
3472 (arm_linux_new_thread): Updated.
3473 (arm_linux_prepare_to_resume): New function.
3474 (arm_linux_new_fork): New function.
3475 (_initialize_arm_linux_nat): Updated.
3476
6d03af93
PA
34772014-03-12 Pedro Alves <palves@redhat.com>
3478
3479 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3480
b3ccfe11
TT
34812014-03-12 Tom Tromey <tromey@redhat.com>
3482
3483 * inf-child.c (return_zero): New function.
3484 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3485 * aix-thread.c (aix_thread_inferior_created): New function.
3486 (aix_thread_attach): Remove.
3487 (init_aix_thread_ops): Don't set to_attach.
3488 (_initialize_aix_thread): Register inferior_created observer.
3489 * corelow.c (init_core_ops): Don't set to_attach or
3490 to_create_inferior.
3491 * exec.c (init_exec_ops): Don't set to_attach or
3492 to_create_inferior.
3493 * infcmd.c (run_command_1): Use find_run_target. Make direct
3494 target calls.
3495 (attach_command): Use find_attach_target. Make direct target
3496 calls.
3497 * record-btrace.c (init_record_btrace_ops): Don't set
3498 to_create_inferior.
3499 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3500 Remove.
3501 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3502 set to_create_inferior.
3503 * target.c (complete_target_initialization): Add assertion.
3504 (target_create_inferior): Remove.
3505 (find_default_attach, find_default_create_inferior): Remove.
3506 (find_attach_target, find_run_target): New functions.
3507 (find_default_is_async_p, find_default_can_async_p)
3508 (target_supports_non_stop, target_attach): Remove.
3509 (init_dummy_target): Don't set to_create_inferior or
3510 to_supports_non_stop.
3511 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3512 TARGET_DEFAULT_FUNC.
3513 <to_create_inferior>: Add comment.
3514 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3515 TARGET_DEFAULT_RETURN.
3516 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3517 (find_attach_target, find_run_target): Declare.
3518 (target_create_inferior): Remove.
3519 (target_has_execution_1): Update comment.
3520 (target_supports_non_stop): Remove.
3521 * target-delegates.c: Rebuild.
3522
91f83b02
PA
35232014-03-12 Pedro Alves <palves@redhat.com>
3524
3525 * inf-child.h: Update comment to not mention Unix.
3526
f1aea813
PA
35272014-03-12 Pedro Alves <palves@redhat.com>
3528
3529 * inf-child.c: Update top comment to not mention Unix. Add
3530 generic comment describing how this target is meant to be used.
3531 (inf_child_post_attach, inf_child_post_startup_inferior)
3532 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3533 Unix in comment.
3534
ee8e9165
PA
35352014-03-12 Pedro Alves <palves@redhat.com>
3536
3537 * nto-procfs.c: Include inf-child.h.
3538 (procfs_ops): Delete global.
3539 (procfs_can_run): Delete method.
3540 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3541 target pointer instead of referencing procfs_ops.
3542 (procfs_prepare_to_store): Delete.
3543 (init_procfs_ops): Delete function.
3544 (procfs_target): New function, based on init_procfs_ops, but
3545 inherit inf_child_target.
3546 (_initialize_procfs): Use procfs_target.
3547
51a9c8c5
PA
35482014-03-12 Pedro Alves <palves@redhat.com>
3549
3550 * windows-nat.c: Include inf-child.h.
3551 (windows_ops): Delete global.
3552 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3553 methods.
3554 (init_windows_ops): Delete function.
3555 (windows_target): New function, based on init_windows_ops, but
3556 inherit inf_child_target.
3557 (_initialize_windows_nat): Use windows_target. Install x86
3558 specific target methods here.
3559
c1966e26
DE
35602014-03-10 Doug Evans <xdje42@gmail.com>
3561
3562 * guile/guile.c (call_initialize_gdb_module): New function.
3563 (initialize_guile): Replace call to scm_init_guile with call to
3564 scm_with_guile.
3565
023db19c
JB
35662014-03-10 Joel Brobecker <brobecker@adacore.com>
3567
3568 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3569 in call to TYPE_CODE macro.
3570
5ec18f2b
JG
35712014-03-10 Jerome Guitton <guitton@adacore.com>
3572
8668be63
JB
3573 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3574 Resolve tagged types to full view.
5ec18f2b 3575
7d03f2eb
HZ
35762014-03-10 Hui Zhu <hui@codesourcery.com>
3577
3578 * target.h (target_insert_breakpoint): Remove "hardware" from its
3579 comments.
3580
c5164cbc
DE
35812014-03-07 Doug Evans <dje@google.com>
3582
3583 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3584
c4a3fee2
DE
35852014-03-07 Doug Evans <dje@google.com>
3586
3587 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3588 Remove unused local comp_dir_attr. Assert exactly one of
3589 stub_comp_unit_die, stub_comp_dir is non-NULL.
3590
3156469c
JB
35912014-03-07 Joel Brobecker <brobecker@adacore.com>
3592
3593 * target.h (complete_target_initialization, add_target):
3594 Add comment.
3595
c1a7b7c6
PA
35962014-03-07 Pedro Alves <palves@redhat.com>
3597
3598 * go32-nat.c: Include inf-child.h.
3599 (go32_ops): Delete global.
3600 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3601 Delete methods.
3602 (go32_create_inferior): Push the passed in target pointer instead
3603 of referencing go32_ops.
3604 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3605 (go32_target): New function, based on init_go32_ops, but inherit
3606 inf_child_target.
3607 (_initialize_go32_nat): Use go32_target. Move parts of
3608 init_go32_ops here.
3609
d3c1a85f
JB
36102014-03-06 Joel Brobecker <brobecker@adacore.com>
3611
3612 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3613 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3614 SYMBOL_VALUE_ADDRESS.
3615 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3616
5fa1d40e
YQ
36172014-03-06 Yao Qi <yao@codesourcery.com>
3618
3619 * breakpoint.c (get_tracepoint_by_number): Remove argument
3620 optional_p. All callers updated. Adjust comments. Update
3621 output message.
3622 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3623
0c13193f
YQ
36242014-03-06 Yao Qi <yao@codesourcery.com>
3625
3626 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3627 early if get_number returns zero. Use 'p' instead of 'args'.
3628
2217da06
YQ
36292014-03-06 Yao Qi <yao@codesourcery.com>
3630
3631 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3632 message.
3633
cc3da688
YQ
36342014-03-06 Yao Qi <yao@codesourcery.com>
3635
3636 PR breakpoints/16508
3637 * tracepoint.c (check_trace_running): New function.
3638 (trace_find_command): Move code to check_trace_running and
3639 call check_trace_running.
3640 (trace_find_pc_command): Likewise.
3641 (trace_find_tracepoint_command): Likewise.
3642 (trace_find_line_command): Likewise.
3643 (trace_find_range_command): Likewise.
3644 * tracepoint.h (check_trace_running): Likewise.
3645 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3646
6a5f844b
YQ
36472014-03-06 Yao Qi <yao@codesourcery.com>
3648
3649 * target.h (struct target_ops) <to_traceframe_info>: Use
3650 TARGET_DEFAULT_NORETURN (tcomplain ()).
3651 * target-delegates.c: Regenerated.
3652
0f26cec1
PA
36532014-03-05 Pedro Alves <palves@redhat.com>
3654
3655 PR gdb/16575
3656 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3657 void. Update comment.
3658 (dcache_xfer_memory): Delete.
3659 (dcache_read_memory_partial): New, based on the read bits of
3660 dcache_xfer_memory.
3661 (dcache_update): Add status parameter. Use ULONGEST for len, and
3662 adjust. Discard cache lines if the reason for the update was
3663 error.
3664 * dcache.h (dcache_xfer_memory): Delete declaration.
3665 (dcache_read_memory_partial): New declaration.
3666 (dcache_update): Update prototype.
3667 * target.c (raw_memory_xfer_partial): Update the dcache here.
3668 (memory_xfer_partial_1): Don't handle dcache writes here.
3669
b2b255bd
MF
36702014-03-05 Mike Frysinger <vapier@gentoo.org>
3671
3672 * remote-sim.c (gdbsim_load): Add const to prog.
3673
5d9cf8a4
TT
36742014-03-03 Tom Tromey <tromey@redhat.com>
3675
3676 * elfread.c (probe_key): Change to bfd_data.
3677 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3678 now per-BFD, not per-objfile.
3679 * stap-probe.c (stap_probe_destroy): Update comment.
3680 (handle_stap_probe): Allocate on the per-BFD obstack.
3681
729662a5
TT
36822014-03-03 Tom Tromey <tromey@redhat.com>
3683
3684 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3685 * breakpoint.c (create_longjmp_master_breakpoint): Use
3686 get_probe_address.
3687 (add_location_to_breakpoint, bkpt_probe_insert_location)
3688 (bkpt_probe_remove_location): Update.
3689 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3690 * elfread.c (elf_symfile_relocate_probe): Remove.
3691 (elf_probe_fns): Update.
3692 (insert_exception_resume_breakpoint): Change type of "probe"
3693 parameter to bound_probe.
3694 (check_exception_resume): Update.
3695 * objfiles.c (objfile_relocate1): Don't relocate probes.
3696 * probe.c (bound_probe_s): New typedef.
3697 (parse_probes): Use get_probe_address. Set sal's objfile.
3698 (find_probe_by_pc): Return a bound_probe.
3699 (collect_probes): Return a VEC(bound_probe_s).
3700 (compare_probes): Update.
3701 (gen_ui_out_table_header_info): Change type of "probes"
3702 parameter. Update.
3703 (info_probes_for_ops): Update.
3704 (get_probe_address): New function.
3705 (probe_safe_evaluate_at_pc): Update.
3706 * probe.h (struct probe_ops) <get_probe_address>: New field.
3707 <set_semaphore, clear_semaphore>: Add objfile parameter.
3708 (struct probe) <objfile>: Remove field.
3709 <arch>: New field.
3710 <address>: Update comment.
3711 (struct bound_probe): New.
3712 (find_probe_by_pc): Return a bound_probe.
3713 (get_probe_address): Declare.
3714 * solib-svr4.c (struct probe_and_action) <address>: New field.
3715 (hash_probe_and_action, equal_probe_and_action): Update.
3716 (register_solib_event_probe): Add address parameter.
3717 (solib_event_probe_at): Update.
3718 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3719 get_probe_address.
3720 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3721 (stap_get_probe_address): New function.
3722 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3723 (compile_probe_arg): Update.
3724 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3725 address.
3726 (handle_stap_probe): Don't relocate the probe.
3727 (stap_relocate): Remove.
3728 (stap_gen_info_probes_table_values): Update.
3729 (stap_probe_ops): Remove stap_relocate.
3730 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3731 (debug_sym_probe_fns): Update.
3732 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3733 * symtab.c (init_sal): Use memset.
3734 * symtab.h (struct symtab_and_line) <objfile>: New field.
3735 * tracepoint.c (start_tracing, stop_tracing): Update.
3736
ff887920
TT
37372014-03-03 Tom Tromey <tromey@redhat.com>
3738
3739 * probe.h (parse_probes, find_probe_by_pc)
3740 (find_probes_in_objfile): Fix comments.
3741
f0407826
DE
37422014-03-02 Doug Evans <xdje42@gmail.com>
3743
3744 * infrun.c (handle_signal_stop): Replace test for
3745 TARGET_WAITKIND_STOPPED with an assert.
3746
35e6a711
DE
37472014-03-02 Doug Evans <xdje42@gmail.com>
3748
3749 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3750
667f9d0b
DE
37512014-03-02 Doug Evans <xdje42@gmail.com>
3752
3753 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3754
dc92ace0
MK
37552014-03-01 Mark Kettenis <kettenis@gnu.org>
3756
3757 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3758
a900370f
MK
37592014-03-01 Mark Kettenis <kettenis@gnu.org>
3760
3761 * i386obsd-nat.c: Include "obsd-nat.h".
3762 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3763 add_target.
3764 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3765
b72a7981
MK
37662014-03-01 Mark Kettenis <kettenis@gnu.org>
3767
3768 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3769
96c70aba
MK
37702014-03-01 Mark Kettenis <kettenis@gnu.org>
3771
3772 * mips64obsd-nat.c: Include "obsd-nath".
3773 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3774 add_target
3775 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3776
874a80af
MK
37772014-03-01 Mark Kettenis <kettenis@gnu.org>
3778
8fd408f1
MK
3779 * amd64obsd-nat.c: Include "obsd-nat,h.
3780 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3781 add_target.
874a80af
MK
3782 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3783
9cf95373
SC
37842014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3785
3786 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3787 (find_overload_match): Update call to find_oload_champ.
3788 (find_oload_champ_namespace_loop): Likewise
3789
863e4da4
MK
37902014-02-28 Mark Kettenis <kettenis@gnu.org>
3791
025cac40
MK
3792 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3793
1ed586ce
MK
3794 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3795 * config/sparc/obsd64.mh: New file.
3796 * sparc64obsd-nat.c: New file.
3797
863e4da4
MK
3798 * obsd-nat.h: New file.
3799 * obsd-nat.c: New file.
3800 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3801 (ALLDEPFILES): Add obsd-nat.c.
3802
89de4da4
TT
38032014-02-28 Tom Tromey <tromey@redhat.com>
3804
3805 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3806 * cli-out.h (cli_ui_out_impl): Now const.
3807 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3808 * ui-out.c (struct ui_out) <impl>: Now const.
3809 (default_ui_out_impl): Now const.
3810 (ui_out_new): Make 'impl' parameter const.
3811 * ui-out.h (ui_out_new): Update.
3812
c725e7b6
MK
38132014-02-27 Mark Kettenis <kettenis@gnu.org>
3814
3815 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3816
670b46b3
MK
38172014-02-27 Mark Kettenis <kettenis@gnu.org>
3818
3819 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3820
c91550fc
JK
38212014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3822
3823 Additional PR 8882 fix.
3824 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3825
2fa0369e
PA
38262014-02-27 Pedro Alves <palves@redhat.com>
3827
3828 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3829 isn't set.
3830
d632a097
PA
38312014-02-27 Pedro Alves <palves@redhat.com>
3832
3833 PR 12702
3834 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3835 * nat/linux-waitpid.c: Include string.h.
3836 (status_to_str): Moved here and made extern.
3837 * nat/linux-waitpid.h (status_to_str): New declaration.
3838
2ebd5a35
HZ
38392014-02-27 Hui Zhu <hui@codesourcery.com>
3840
3841 PR 12702
3842 * infrun.c (ptid_match): Move ...
3843 * common/ptid.c (ptid_match): ... here.
3844 * inferior.h (ptid_match): Move ...
3845 * common/ptid.h (ptid_match): ... here.
3846
3cdd631f
MK
38472014-02-27 Mark Kettenis <kettenis@gnu.org>
3848
3849 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3850 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3851 gdb_target_obs.
3852
bee30a64
MK
38532014-02-27 Mark Kettenis <kettenis@gnu.org>
3854
3855 * obsd-tdep.c (obsd_auxv_parse): New function.
3856 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
3857
3858 * gdbarch.sh (auxv_parse): New.
3859 * gdbarch.h: Regenerated.
3860 * gdbarch.c: Regenerated.
3861 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3862
7a5a839f
LC
38632014-02-26 Ludovic Courtès <ludo@gnu.org>
3864
3865 * guile/scm-value.c (gdbscm_history_append_x): New function.
3866 (value_functions): Add it.
3867
31aa7e4e
JB
38682014-02-27 Joel Brobecker <brobecker@adacore.com>
3869
3870 * dwarf2read.c (attr_value_as_address): New function.
3871 (dwarf2_find_base_address, read_call_site_scope): Use
3872 attr_value_as_address in place of DW_ADDR.
3873 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3874 the low and high addresses. Slight rework of the handling
3875 of the high pc being a constant form, and limit it to
3876 DWARF verson 4 or higher.
3877 (dwarf2_record_block_ranges): Likewise.
3878 (read_partial_die): Likewise.
3879 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3880
9b333ba3
TT
38812014-02-26 Tom Tromey <tromey@redhat.com>
3882
3883 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3884
5f6cac40
TT
38852014-02-26 Tom Tromey <tromey@redhat.com>
3886
3887 * elfread.c (elf_read_minimal_symbols): Return early if
3888 minimal symbols have already been read. Add "ei" parameter.
3889 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3890 * minsyms.c (prim_record_minimal_symbol_full): Update.
3891 * objfiles.h (struct objstats) <n_minsyms>: Move...
3892 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3893 * symmisc.c (print_objfile_statistics): Update.
3894
2750ef27
TT
38952014-02-26 Tom Tromey <tromey@redhat.com>
3896
3897 * elfread.c (elf_read_minimal_symbols): New function, from
3898 elf_symfile_read.
3899 (elf_symfile_read): Call it.
3900
34643a32
TT
39012014-02-26 Tom Tromey <tromey@redhat.com>
3902
3903 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3904 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3905 (lookup_minimal_symbol_solib_trampoline)
3906 (lookup_minimal_symbol_by_pc_section_1)
3907 (lookup_minimal_symbol_and_objfile): Update.
3908 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3909 Don't allocate a minimal symbol if minsyms have already been read.
3910 (build_minimal_symbol_hash_tables): Update.
3911 (install_minimal_symbols): Do nothing if minsyms already read.
3912 Use the per-BFD obstack.
3913 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3914 * objfiles.c (allocate_objfile): Call
3915 terminate_minimal_symbol_table later.
3916 (have_minimal_symbols): Update.
3917 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3918 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3919 Move from struct objfile.
3920 <minsyms_read>: New field.
3921 (struct objfile) <msymbols, minimal_symbol_count,
3922 msymbol_hash, msymbol_demangled_hash>: Move.
3923 (ALL_OBJFILE_MSYMBOLS): Update.
3924 * symfile.c (read_symbols): Set minsyms_read.
3925 (reread_symbols): Update.
3926 * symmisc.c (dump_objfile, dump_msymbols): Update.
3927
2273f0ac
TT
39282014-02-26 Tom Tromey <tromey@redhat.com>
3929
3930 * minsyms.c (msymbols_sort): Remove.
3931 * minsyms.h (msymbols_sort): Remove.
3932 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3933 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3934 * elfread.c (elf_symtab_read): Don't add section offsets.
3935 * xcoffread.c (record_minimal_symbol): Don't add section offset
3936 to minimal symbol address.
3937 * somread.c (text_offset, data_offset): Remove.
3938 (som_symtab_read): Don't add section offsets to minimal symbol
3939 addresses.
3940 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3941 Don't add section offsets to minimal symbols.
3942 * coffread.c (coff_symtab_read): Don't add section offsets
3943 to minimal symbol addresses.
3944 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3945 to minimal symbol addresses.
3946 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3947 section offset to minimal symbol addresses.
3948 * mdebugread.c (parse_partial_symbols): Don't add section
3949 offset to minimal symbol addresses.
3950 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3951 offset to minimal symbol addresses.
3952
77e371c0
TT
39532014-02-26 Tom Tromey <tromey@redhat.com>
3954
3955 * ada-lang.c (ada_main_name): Update.
3956 (ada_add_standard_exceptions): Update.
3957 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3958 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3959 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3960 * auxv.c (ld_so_xfer_auxv): Update.
3961 * avr-tdep.c (avr_scan_prologue): Update.
3962 * ax-gdb.c (gen_var_ref): Update.
3963 * blockframe.c (get_pc_function_start)
3964 (find_pc_partial_function_gnu_ifunc): Update.
3965 * breakpoint.c (create_overlay_event_breakpoint)
3966 (create_longjmp_master_breakpoint)
3967 (create_std_terminate_master_breakpoint)
3968 (create_exception_master_breakpoint): Update.
3969 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3970 * c-valprint.c (c_val_print): Update.
3971 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3972 * common/agent.c (agent_look_up_symbols): Update.
3973 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3974 * dwarf2loc.c (call_site_to_target_addr): Update.
3975 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3976 * elfread.c (elf_gnu_ifunc_record_cache)
3977 (elf_gnu_ifunc_resolve_by_got): Update.
3978 * findvar.c (default_read_var_value): Update.
3979 * frame.c (inside_main_func): Update.
3980 * frv-tdep.c (frv_frame_this_id): Update.
3981 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3982 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3983 Update.
3984 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3985 (hppa_hpux_find_dummy_bpaddr): Update.
3986 * hppa-tdep.c (hppa_symbol_address): Update.
3987 * infcmd.c (until_next_command): Update.
3988 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3989 Update.
3990 * linespec.c (minsym_found, add_minsym): Update.
3991 * linux-nat.c (get_signo): Update.
3992 * linux-thread-db.c (inferior_has_bug): Update.
3993 * m32c-tdep.c (m32c_return_value)
3994 (m32c_m16c_address_to_pointer): Update.
3995 * m32r-tdep.c (m32r_frame_this_id): Update.
3996 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3997 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3998 * maint.c (maintenance_translate_address): Update.
3999 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4000 (frob_address): New function.
4001 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4002 frob_address. Rename parameter to "pc_in".
4003 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4004 addresses.
4005 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4006 Update.
4007 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4008 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4009 * objc-lang.c (find_objc_msgsend): Update.
4010 * objfiles.c (objfile_relocate1): Update.
4011 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4012 * p-valprint.c (pascal_val_print): Update.
4013 * parse.c (write_exp_msymbol): Update.
4014 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4015 (ppc_elfv2_skip_entrypoint): Update.
4016 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4017 * printcmd.c (build_address_symbolic, msym_info)
4018 (address_info): Update.
4019 * proc-service.c (ps_pglobal_lookup): Update.
4020 * psymtab.c (find_pc_sect_psymtab_closer)
4021 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4022 Change msymbol parameter to bound_minimal_symbol.
4023 * ravenscar-thread.c (get_running_thread_id): Update.
4024 * remote.c (remote_check_symbols): Update.
4025 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4026 address.
4027 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4028 * solib-dsbt.c (lm_base): Update.
4029 * solib-frv.c (lm_base, main_got): Update.
4030 * solib-irix.c (locate_base): Update.
4031 * solib-som.c (som_solib_create_inferior_hook)
4032 (link_map_start): Update.
4033 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4034 * solib-svr4.c (elf_locate_base, enable_break): Update.
4035 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4036 (flush_ea_cache): Update.
4037 * stabsread.c (define_symbol, scan_file_globals): Update.
4038 * stack.c (find_frame_funname): Update.
4039 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4040 (debug_qf_find_pc_sect_symtab): Update.
4041 * symfile.c (simple_read_overlay_table)
4042 (simple_overlay_update): Update.
4043 * symfile.h (struct quick_symbol_functions)
4044 <find_pc_sect_symtab>: Change type of msymbol to
4045 bound_minimal_symbol.
4046 * symmisc.c (dump_msymbols): Update.
4047 * symtab.c (find_pc_sect_symtab_via_partial)
4048 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4049 (search_symbols, print_msymbol_info): Update.
4050 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4051 (MSYMBOL_VALUE_ADDRESS): Redefine.
4052 (BMSYMBOL_VALUE_ADDRESS): New macro.
4053 * tracepoint.c (scope_info): Update.
4054 * tui/tui-disasm.c (tui_find_disassembly_address)
4055 (tui_get_begin_asm_address): Update.
4056 * valops.c (find_function_in_inferior): Update.
4057 * value.c (value_static_field, value_fn_field): Update.
4058
3b7344d5
TT
40592014-02-26 Tom Tromey <tromey@redhat.com>
4060
4061 * ada-lang.c (ada_update_initial_language): Update.
4062 (ada_main_name, ada_has_this_exception_support): Update.
4063 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4064 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4065 * arm-tdep.c (arm_skip_stub): Update.
4066 * auxv.c (ld_so_xfer_auxv): Update.
4067 * avr-tdep.c (avr_scan_prologue): Update.
4068 * ax-gdb.c (gen_var_ref): Update.
4069 * breakpoint.c (struct breakpoint_objfile_data)
4070 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4071 type to bound_minimal_symbol.
4072 (create_overlay_event_breakpoint)
4073 (create_longjmp_master_breakpoint)
4074 (create_std_terminate_master_breakpoint)
4075 (create_exception_master_breakpoint): Update.
4076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4077 * c-exp.y (classify_name): Update.
4078 * coffread.c (coff_symfile_read): Update.
4079 * common/agent.c (agent_look_up_symbols): Update.
4080 * d-lang.c (d_main_name): Update.
4081 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4082 * dec-thread.c (enable_dec_thread): Update.
4083 * dwarf2loc.c (call_site_to_target_addr): Update.
4084 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4085 * eval.c (evaluate_subexp_standard): Update.
4086 * findvar.c (struct minsym_lookup_data) <result>: Change type
4087 to bound_minimal_symbol.
4088 <objfile>: Remove.
4089 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4090 * frame.c (inside_main_func): Update.
4091 * frv-tdep.c (frv_frame_this_id): Update.
4092 * gcore.c (call_target_sbrk): Update.
4093 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4094 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4095 Update.
4096 * go-lang.c (go_main_name): Update.
4097 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4098 (hppa_hpux_find_import_stub_for_addr): Update.
4099 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4100 Update. Change return type.
4101 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4102 type.
4103 * jit.c (jit_breakpoint_re_set_internal): Update.
4104 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4105 Update.
4106 * linux-nat.c (get_signo): Update.
4107 * linux-thread-db.c (inferior_has_bug): Update
4108 * m32c-tdep.c (m32c_return_value)
4109 (m32c_m16c_address_to_pointer): Update.
4110 * m32r-tdep.c (m32r_frame_this_id): Update.
4111 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4112 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4113 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4114 lookup_minimal_symbol. Change return type.
4115 (lookup_minimal_symbol): Remove.
4116 (lookup_bound_minimal_symbol): Update.
4117 (lookup_minimal_symbol_text): Change return type.
4118 (lookup_minimal_symbol_solib_trampoline): Change return type.
4119 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4120 (lookup_minimal_symbol_solib_trampoline): Change return type.
4121 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4122 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4123 (value_nsstring, find_imps): Update.
4124 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4125 * p-lang.c (pascal_main_name): Update.
4126 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4127 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4128 * proc-service.c (ps_pglobal_lookup): Update.
4129 * ravenscar-thread.c (get_running_thread_msymbol): Change
4130 return type.
4131 (has_ravenscar_runtime, get_running_thread_id): Update.
4132 * remote.c (remote_check_symbols): Update.
4133 * sol-thread.c (ps_pglobal_lookup): Update.
4134 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4135 * solib-dsbt.c (lm_base): Update.
4136 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4137 Update.
4138 * solib-irix.c (locate_base): Update.
4139 * solib-som.c (som_solib_create_inferior_hook)
4140 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4141 Update.
4142 * solib-spu.c (spu_enable_break): Update.
4143 * solib-svr4.c (elf_locate_base, enable_break): Update.
4144 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4145 (flush_ea_cache): Update.
4146 * stabsread.c (define_symbol): Update.
4147 * symfile.c (simple_read_overlay_table): Update.
4148 * symtab.c (find_pc_sect_line): Update.
4149 * tracepoint.c (scope_info): Update.
4150 * tui-disasm.c (tui_get_begin_asm_address): Update.
4151 * value.c (value_static_field): Update.
4152
40c1a007
TT
41532014-02-26 Tom Tromey <tromey@redhat.com>
4154
4155 * minsyms.c (prim_record_minimal_symbol_full): Use
4156 SET_MSYMBOL_VALUE_ADDRESS.
4157 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4158 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4159 SET_MSYMBOL_VALUE_ADDRESS.
4160 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4161 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4162
efd66ac6
TT
41632014-02-26 Tom Tromey <tromey@redhat.com>
4164
4165 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4166 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4167 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4168 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4169 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4170 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4171 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4172 * ada-lang.c (ada_main_name): Update.
4173 (ada_lookup_simple_minsym): Update.
4174 (ada_make_symbol_completion_list): Update.
4175 (ada_add_standard_exceptions): Update.
4176 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4177 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4178 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4179 * arm-tdep.c (skip_prologue_function): Update.
4180 (arm_skip_stack_protector, arm_skip_stub): Update.
4181 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4182 (arm_wince_skip_main_prologue): Update.
4183 * auxv.c (ld_so_xfer_auxv): Update.
4184 * avr-tdep.c (avr_scan_prologue): Update.
4185 * ax-gdb.c (gen_var_ref): Update.
4186 * block.c (call_site_for_pc): Update.
4187 * blockframe.c (get_pc_function_start): Update.
4188 (find_pc_partial_function_gnu_ifunc): Update.
4189 * breakpoint.c (create_overlay_event_breakpoint): Update.
4190 (create_longjmp_master_breakpoint): Update.
4191 (create_std_terminate_master_breakpoint): Update.
4192 (create_exception_master_breakpoint): Update.
4193 (resolve_sal_pc): Update.
4194 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4195 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4196 Update.
4197 * c-valprint.c (c_val_print): Update.
4198 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4199 * coffread.c (coff_symfile_read): Update.
4200 * common/agent.c (agent_look_up_symbols): Update.
4201 * dbxread.c (find_stab_function_addr): Update.
4202 (end_psymtab): Update.
4203 * dwarf2loc.c (call_site_to_target_addr): Update.
4204 (func_verify_no_selftailcall): Update.
4205 (tailcall_dump): Update.
4206 (call_site_find_chain_1): Update.
4207 (dwarf_expr_reg_to_entry_parameter): Update.
4208 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4209 (elf_gnu_ifunc_resolve_by_got): Update.
4210 * f-valprint.c (info_common_command): Update.
4211 * findvar.c (read_var_value): Update.
4212 * frame.c (get_prev_frame_1): Update.
4213 (inside_main_func): Update.
4214 * frv-tdep.c (frv_skip_main_prologue): Update.
4215 (frv_frame_this_id): Update.
4216 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4217 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4218 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4219 (gnuv3_skip_trampoline): Update.
4220 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4221 (hppa64_hpux_in_solib_call_trampoline): Update.
4222 (hppa_hpux_skip_trampoline_code): Update.
4223 (hppa64_hpux_search_dummy_call_sequence): Update.
4224 (hppa_hpux_find_import_stub_for_addr): Update.
4225 (hppa_hpux_find_dummy_bpaddr): Update.
4226 * hppa-tdep.c (hppa_symbol_address)
4227 (hppa_lookup_stub_minimal_symbol): Update.
4228 * i386-tdep.c (i386_skip_main_prologue): Update.
4229 (i386_pe_skip_trampoline_code): Update.
4230 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4231 * infcall.c (get_function_name): Update.
4232 * infcmd.c (until_next_command): Update.
4233 * jit.c (jit_breakpoint_re_set_internal): Update.
4234 (jit_inferior_init): Update.
4235 * linespec.c (minsym_found): Update.
4236 (add_minsym): Update.
4237 * linux-fork.c (info_checkpoints_command): Update.
4238 * linux-nat.c (get_signo): Update.
4239 * linux-thread-db.c (inferior_has_bug): Update.
4240 * m32c-tdep.c (m32c_return_value): Update.
4241 (m32c_m16c_address_to_pointer): Update.
4242 (m32c_m16c_pointer_to_address): Update.
4243 * m32r-tdep.c (m32r_frame_this_id): Update.
4244 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4245 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4246 * maint.c (maintenance_translate_address): Update.
4247 * minsyms.c (add_minsym_to_hash_table): Update.
4248 (add_minsym_to_demangled_hash_table): Update.
4249 (msymbol_objfile): Update.
4250 (lookup_minimal_symbol): Update.
4251 (iterate_over_minimal_symbols): Update.
4252 (lookup_minimal_symbol_text): Update.
4253 (lookup_minimal_symbol_by_pc_name): Update.
4254 (lookup_minimal_symbol_solib_trampoline): Update.
4255 (lookup_minimal_symbol_by_pc_section_1): Update.
4256 (lookup_minimal_symbol_and_objfile): Update.
4257 (prim_record_minimal_symbol_full): Update.
4258 (compare_minimal_symbols): Update.
4259 (compact_minimal_symbols): Update.
4260 (build_minimal_symbol_hash_tables): Update.
4261 (install_minimal_symbols): Update.
4262 (terminate_minimal_symbol_table): Update.
4263 (find_solib_trampoline_target): Update.
4264 (minimal_symbol_upper_bound): Update.
4265 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4266 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4267 (mips_skip_pic_trampoline_code): Update.
4268 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4269 * objc-lang.c (selectors_info): Update.
4270 (classes_info): Update.
4271 (find_methods): Update.
4272 (find_imps): Update.
4273 (find_objc_msgsend): Update.
4274 * objfiles.c (objfile_relocate1): Update.
4275 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4276 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4277 * p-valprint.c (pascal_val_print): Update.
4278 * parse.c (write_exp_msymbol): Update.
4279 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4280 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4281 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4282 * printcmd.c (build_address_symbolic): Update.
4283 (sym_info): Update.
4284 (address_info): Update.
4285 * proc-service.c (ps_pglobal_lookup): Update.
4286 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4287 (find_pc_sect_psymtab): Update.
4288 * python/py-framefilter.c (py_print_frame): Update.
4289 * ravenscar-thread.c (get_running_thread_id): Update.
4290 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4291 Update.
4292 * remote.c (remote_check_symbols): Update.
4293 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4294 (rs6000_skip_trampoline_code): Update.
4295 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4296 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4297 * solib-dsbt.c (lm_base): Update.
4298 * solib-frv.c (lm_base): Update.
4299 (main_got): Update.
4300 * solib-irix.c (locate_base): Update.
4301 * solib-som.c (som_solib_create_inferior_hook): Update.
4302 (som_solib_desire_dynamic_linker_symbols): Update.
4303 (link_map_start): Update.
4304 * solib-spu.c (spu_enable_break): Update.
4305 (ocl_enable_break): Update.
4306 * solib-svr4.c (elf_locate_base): Update.
4307 (enable_break): Update.
4308 * spu-tdep.c (spu_get_overlay_table): Update.
4309 (spu_catch_start): Update.
4310 (flush_ea_cache): Update.
4311 * stabsread.c (define_symbol): Update.
4312 (scan_file_globals): Update.
4313 * stack.c (find_frame_funname): Update.
4314 (frame_info): Update.
4315 * symfile.c (simple_read_overlay_table): Update.
4316 (simple_overlay_update): Update.
4317 * symmisc.c (dump_msymbols): Update.
4318 * symtab.c (fixup_section): Update.
4319 (find_pc_sect_line): Update.
4320 (skip_prologue_sal): Update.
4321 (search_symbols): Update.
4322 (print_msymbol_info): Update.
4323 (rbreak_command): Update.
4324 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4325 (completion_list_objc_symbol): Update.
4326 (default_make_symbol_completion_list_break_on): Update.
4327 * tracepoint.c (scope_info): Update.
4328 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4329 (tui_get_begin_asm_address): Update.
4330 * valops.c (find_function_in_inferior): Update.
4331 * value.c (value_static_field): Update.
4332 (value_fn_field): Update.
4333
50e65b17
TT
43342014-02-26 Tom Tromey <tromey@redhat.com>
4335
4336 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4337 bound minimal symbols. Move code that knows about minsym
4338 table layout...
4339 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4340 function.
4341 * minsyms.h (minimal_symbol_upper_bound): Declare.
4342 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4343 minimal_symbol_upper_bound.
4344
1b588015
JB
43452014-02-27 Joel Brobecker <brobecker@adacore.com>
4346
4347 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4348 Use the type's name if its basic type does not have a tag.
4349
dbb9c2b1
JB
43502014-02-27 Joel Brobecker <brobecker@adacore.com>
4351
4352 * dwarf2read.c (read_subrange_type): Add comment.
4353
55426c9d
JB
43542014-02-27 Joel Brobecker <brobecker@adacore.com>
4355
4356 * dwarf2read.c (update_enumeration_type_from_children): New
4357 function, mostly extracted from process_structure_scope.
4358 (read_enumeration_type): Call update_enumeration_type_from_children.
4359 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4360 and flag_flag_enum fields.
4361
f2fce0ca
PA
43622014-02-26 Pedro Alves <palves@redhat.com>
4363
4364 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4365 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4366 to_xfer_partial method.
4367
7a44e40e
PA
43682014-02-26 Pedro Alves <palves@redhat.com>
4369
4370 * target.c (complete_target_initialization): Don't install
4371 default_xfer_partial as to_xfer_partial hook.
4372 (nomemory): Delete.
4373 (update_current_target): Don't INHERIT nor de_fault
4374 deprecated_xfer_memory. Delete de_fault macro.
4375 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4376 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4377 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4378 field.
4379
bd265cd0
PA
43802014-02-26 Pedro Alves <palves@redhat.com>
4381
4382 * go32-nat.c (my_write_child): New function.
4383 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4384 (go32_xfer_partial): New function.
4385 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4386 Instead install a to_xfer_partial hook.
4387
9d46c4e5
PA
43882014-02-26 Pedro Alves <palves@redhat.com>
4389
4390 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4391 to_xfer_partial helper. Rewrite.
4392 (procfs_xfer_partial): New function.
4393 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4394 Install a to_xfer_partial hook.
4395
a1583b1f
PA
43962014-02-26 Pedro Alves <palves@redhat.com>
4397
4398 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4399 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4400 (m32r_xfer_partial): New function.
4401 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4402 Install a to_xfer_partial hook.
4403
6df1b29f
PA
44042014-02-26 Pedro Alves <palves@redhat.com>
4405
4406 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4407 helper.
4408 (mips_xfer_partial): New function.
4409 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4410 hook. Install a to_xfer_partial hook.
4411
dc53a7ad
JB
44122014-02-26 Joel Brobecker <brobecker@adacore.com>
4413
4414 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4415 * gdbtypes.c (create_array_type_with_stride): New function,
4416 renaming create_array_type, but with an added parameter
4417 called "bit_stride".
4418 (create_array_type): Re-implement using
4419 create_array_type_with_stride.
4420 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4421 and DW_AT_bit_stride attributes.
4422
12ab52e9
PA
44232014-02-26 Pedro Alves <palves@redhat.com>
4424
4425 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4426 task-specific breakpoints.
4427
d16461ae
PA
44282014-02-25 Pedro Alves <palves@redhat.com>
4429
4430 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4431 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4432
a8b16220
SS
44332014-02-25 Stan Shebs <stan@codesourcery.com>
4434
4435 * defs.h: Annotate comments for Doxygen.
4436
b9e795ee
TT
44372014-02-25 Tom Tromey <tromey@redhat.com>
4438
4439 * target.h (target_ignore): Don't declare.
4440 * target.c (target_ignore): Remove.
4441
849c862e
JK
44422014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4443
4444 PR gdb/16626
4445 * auto-load.c (auto_load_objfile_script_1): Change filename to
4446 debugfile.
4447
475109d8
JB
44482014-02-25 Joel Brobecker <brobecker@adacore.com>
4449
4450 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4451 documentation. Adjust prototype to match the target_ops
4452 to_xfer_partial method. Adjust implementation accordingly.
4453
e186c3bd
HZ
44542014-02-25 Hui Zhu <hui@codesourcery.com>
4455
4456 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4457 to_traceframe_info.
4458
6d451942
KB
44592014-02-25 Kevin Buettner <kevinb@redhat.com>
4460
041ab8b4 4461 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
4462 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4463 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4464 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4465 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4466 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4467 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4468 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4469 New constants.
4470 (rl78_register_type): Use a data pointer type for SP and
4471 new pseudo registers mentioned above. Use a 16 bit integer
4472 type for all other register pairs.
4473 (rl78_register_name, rl78_g10_register_name): Update for
4474 new pseudo registers.
4475 (rl78_pseudo_register_read): Likewise.
4476 (rl78_pseudo_register_write): Likewise.
4477 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4478 to the newly added pseudo registers.
4479
eddf0bae
DE
44802014-02-24 Doug Evans <dje@google.com>
4481
4482 * value.c (record_latest_value): Fix comment.
4483 * printcmd.c (print_command_1): Remove code to handle -1 return from
4484 record_latest_value.
4485
e96027e0
PA
44862014-02-24 Pedro Alves <palves@redhat.com>
4487
4488 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4489 deprecated_xfer_memory hook.
4490 (procfs_xfer_partial): Call procfs_xfer_memory instead
4491 of the deprecated_xfer_memory target hook.
4492 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4493 helper.
4494
0837c976
YZ
44952014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4496
4497 * windows-nat.c (windows_xfer_shared_libraries): Return
4498 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4499 requested object is TARGET_OBJECT_LIBRARIES.
4500
bc113b4e
YQ
45012014-02-24 Yao Qi <yao@codesourcery.com>
4502
4503 * target.h (enum target_xfer_status)
4504 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4505 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4506 explicitly. New.
4507 * corefile.c (memory_error_message): User updated.
4508 * exec.c (section_table_read_available_memory): Likewise.
4509 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4510 * target.c (target_xfer_status_to_string): Likewise.
4511 (raw_memory_xfer_partial): Likewise.
4512 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4513 * valops.c (read_value_memory): Likewise.
4514 * exec.h: Update comments.
4515
01cb8804
YQ
45162014-02-24 Yao Qi <yao@codesourcery.com>
4517
4518 * target.c (target_xfer_status_to_string): Rename argument err
4519 to status.
4520 * target.h (target_xfer_status_to_string): Update declaration.
4521 Replace target_xfer_error_to_string with
4522 target_xfer_status_to_string in comment.
4523
93063aa6
YQ
45242014-02-24 Yao Qi <yao@codesourcery.com>
4525
4526 * mips-linux-nat.c (super_close): Update its type.
4527 (mips_linux_close): Pass 'self' to super_close.
4528
5c328c05
YQ
45292014-02-24 Yao Qi <yao@codesourcery.com>
4530
4531 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4532 * corefile.c (read_memory): Adjusted.
4533 * target.c (target_write_with_progress): Adjusted.
4534
f73023dd
YQ
45352014-02-23 Yao Qi <yao@codesourcery.com>
4536
4537 Revert two patches:
4538
4539 2013-10-25 Yao Qi <yao@codesourcery.com>
4540
4541 * remote.c (remote_traceframe_info): Return early if
4542 traceframe is not selected.
4543
4544 2013-07-19 Yao Qi <yao@codesourcery.com>
4545
4546 * target.c (update_current_target): Change the default action
4547 of 'to_traceframe_info' from tcomplain to return_zero.
4548 * target.h (struct target_ops) <to_traceframe_info>: Add more
4549 comments.
4550
5a2eb0ef
YQ
45512014-02-23 Yao Qi <yao@codesourcery.com>
4552
4553 * valops.c (read_value_memory): Rewrite it. Call
4554 target_xfer_partial in a loop.
4555 * exec.h (section_table_available_memory): Remove declaration.
4556 Move comments to ...
4557 * exec.c (section_table_available_memory): ... here. Make it
4558 static.
4559
1ee79381
YQ
45602014-02-23 Yao Qi <yao@codesourcery.com>
4561
4562 * exec.c (section_table_read_available_memory): New function.
4563 * exec.h (section_table_read_available_memory): Declare.
4564 * ctf.c (ctf_xfer_partial): Call
4565 section_table_read_available_memory.
4566 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4567
1ca49d37
YQ
45682014-02-23 Yao Qi <yao@codesourcery.com>
4569
4570 * ctf.c (ctf_xfer_partial): Move code to ...
4571 * exec.c (exec_read_partial_read_only): ... it. New function.
4572 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4573 * tracefile.c: Include "exec.h".
4574 * exec.h (exec_read_partial_read_only): Declare.
4575
a283690e
YQ
45762014-02-23 Yao Qi <yao@codesourcery.com>
4577
4578 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4579 (tfile_has_memory): Remove.
4580 (init_tfile_ops): Don't set fields to_has_all_memory and
4581 to_has_memory of tfile_ops.
4582 * tracefile.c (tracefile_has_all_memory): New function.
4583 (tracefile_has_memory): New function.
4584 (init_tracefile_ops): Initialize fields to_has_all_memory and
4585 to_has_memory of 'ops'.
4586
12e03cd0
YQ
45872014-02-23 Yao Qi <yao@codesourcery.com>
4588
4589 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4590 (ctf_thread_alive, ctf_get_trace_status): Remove.
4591 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4592 init_tracefile_ops.
4593 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4594 (tfile_has_stack, tfile_has_registers): Remove.
4595 (tfile_thread_alive): Remove.
4596 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4597 init_tracefile_ops.
4598 * tracefile.c (tracefile_has_stack): New function.
4599 (tracefile_has_registers): New function.
4600 (tracefile_thread_alive): New function.
4601 (tracefile_get_trace_status): New function.
4602 (init_tracefile_ops): New function.
4603 * tracefile.h (init_tracefile_ops): Declare.
4604
11395323
YQ
46052014-02-23 Yao Qi <yao@codesourcery.com>
4606
4607 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4608 (O_LARGEFILE): Likewise.
4609 (tfile_ops): Likewise.
4610 (TRACE_HEADER_SIZE): Likewise.
4611 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4612 (cur_data_size): Likewise.
4613 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4614 (tfile_close, tfile_files_info): Likewise.
4615 (tfile_get_trace_status): Likewise.
4616 (tfile_get_tracepoint_status): Likewise.
4617 (tfile_get_traceframe_address): Likewise.
4618 (tfile_trace_find, match_blocktype): Likewise.
4619 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4620 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4621 (tfile_get_trace_state_variable_value): Likewise.
4622 (tfile_has_all_memory, tfile_has_memory): Likewise.
4623 (tfile_has_stack, tfile_has_registers): Likewise.
4624 (tfile_thread_alive, build_traceframe_info): Likewise.
4625 (tfile_traceframe_info, init_tfile_ops): Likewise.
4626 (_initialize_tracepoint): Don't call init_tfile_ops
4627 and add_target_with_completer.
4628 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4629 exec.h, completer.h and filenames.h.
4630 (_initialize_tracefile_tfile): New function.
4631
7951c4eb
YQ
46322014-02-23 Yao Qi <yao@codesourcery.com>
4633
4634 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4635 tracefile-tfile.o.
4636 (HFILES_NO_SRCDIR): Add tracefile.h.
4637 * ctf.c: Include "tracefile.h".
4638 * tracefile.h: New file.
4639 * tracefile.c: New file
4640 * tracefile-tfile.c: New file.
4641 * tracepoint.c: Include "tracefile.h".
4642 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4643 (stop_reason_names): Add const.
4644 (trace_file_writer_xfree): Move it to tracefile.c.
4645 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4646 (trace_save_ctf): Likewise.
4647 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4648 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4649 (tfile_write_header, tfile_write_regblock_type): Likewise.
4650 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4651 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4652 (tfile_write_raw_data, tfile_end): Likewise.
4653 (tfile_trace_file_writer_new): Likewise.
4654 (free_uploaded_tp): Make it extern.
4655 (free_uploaded_tsv): Make it extern.
4656 (_initialize_tracepoint): Move code to register command 'tsave'
4657 to tracefile.c.
4658 * tracepoint.h (stop_reason_names): Declare.
4659 (struct trace_frame_write_ops): Move it to tracefile.h.
4660 (struct trace_file_write_ops): Likewise.
4661 (struct trace_file_writer): Likewise.
4662 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4663
184cd072
JK
46642014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4665
4666 PR gdb/16594
4667 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4668 process name.
4669 (get_cores_used_by_process): New parameter num_cores, use it.
4670 (linux_xfer_osdata_processes): Pass num_cores to it.
4671 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4672 process name.
4673
c63528fc
AK
46742014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4675
4676 * target.c (memory_xfer_partial): Fix length arg in call to
4677 breakpoint_xfer_memory.
4678
d7b30f67
SDJ
46792014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4680
4681 PR tdep/16397
4682 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4683 number comes after the + or - signs. Adjust length of register
4684 name to be extracted.
4685
8838afaf
TT
46862014-02-20 Tom Tromey <tromey@redhat.com>
4687
4688 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4689 (ada_varobj_ops): Mark "extern".
4690
05227d14
TT
46912014-02-20 Tom Tromey <tromey@redhat.com>
4692
4693 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4694
1254eefc
DE
46952014-02-20 Doug Evans <xdje42@gmail.com>
4696
4697 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4698 All callers updated.
4699 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4700 All callers updated.
4701 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4702 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4703
adde2bff
DE
47042014-02-20 lin zuojian <manjian2006@gmail.com>
4705 Joel Brobecker <brobecker@adacore.com>
4706 Doug Evans <xdje42@gmail.com>
4707
4708 PR symtab/16581
4709 * dwarf2read.c (struct die_info): New member in_process.
4710 (reset_die_in_process): New function.
4711 (process_die): Set it at the start, reset when returning.
4712 (inherit_abstract_dies): Only call process_die if origin_child_die
4713 not already being processed.
4714
3be75f87
JB
47152014-02-20 Joel Brobecker <brobecker@adacore.com>
4716
4717 * windows-nat.c (handle_unload_dll): Add function documentation.
4718 (do_initial_windows_stuff): Add comment explaining why we wait
4719 until after inferior initialization has finished before
4720 processing all DLLs.
4721
47f7ffdb
JB
47222014-02-20 Joel Brobecker <brobecker@adacore.com>
4723
4724 * windows-nat.c (get_module_name): Delete.
4725 (windows_get_exec_module_filename): New function, mostly
4726 inspired from get_module_name.
4727 (windows_pid_to_exec_file): Replace call to get_module_name
4728 by call to windows_get_exec_module_filename.
4729
1cd9feab
JB
47302014-02-20 Joel Brobecker <brobecker@adacore.com>
4731
4732 * windows-nat.c (handle_load_dll): Rewrite this function's
4733 introductory comment. Remove code using get_module_name
4734 to get the DLL's name.
4735
ea39ad35
JB
47362014-02-20 Joel Brobecker <brobecker@adacore.com>
4737
4738 * windows-nat.c (get_windows_debug_event): Ignore
4739 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4740 if windows_initialization_done == 0.
4741 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4742 Adjust implementation to always load all DLLs.
4743 (do_initial_windows_stuff): Replace call to
4744 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4745
95060284
JB
47462014-02-20 Joel Brobecker <brobecker@adacore.com>
4747
4748 * windows-nat.c (_initialize_windows_nat): Deprecate the
4749 "dll-symbols" command. Turn the "add-shared-symbol-files"
4750 and "assf" aliases into commands, and deprecate them as well.
4751 * NEWS: Add entry explaining that "dll-symbols" and its two
4752 aliases are now deprecated.
4753
8d4fdb12
JB
47542014-02-20 Joel Brobecker <brobecker@adacore.com>
4755
4756 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4757 new-line in debug string. Remove trailing spaces.
4758
1b281443
SS
47592014-02-19 Stan Shebs <stan@codesourcery.com>
4760
4761 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4762
f7bd0f78
SC
47632014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4764
4765 * NEWS: Add entry for the new feature
4766 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4767 and class values.
4768
399ebc3d
SS
47692014-02-19 Stan Shebs <stan@codesourcery.com>
4770
4771 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4772
c658158d
PA
47732014-02-19 Pedro Alves <palves@redhat.com>
4774
4775 * common/ptid.h (struct ptid): Mention that process_stratum
4776 targets should prefer ptid.lwp.
4777
ba348170
PA
47782014-02-19 Pedro Alves <palves@redhat.com>
4779
4780 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4781 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4782 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4783 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4784 store remote thread ids rather than ptid.tid.
4785 (_initialize_remote): Adjust.
4786
ac01945b
TT
47872014-02-19 Tom Tromey <tromey@redhat.com>
4788
4789 * target.c (target_get_unwinder): Rewrite.
4790 (target_get_tailcall_unwinder): Rewrite.
4791 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4792 (record_btrace_to_get_tailcall_unwinder): New function.
4793 (init_record_btrace_ops): Update.
4794 * target.h (struct target_ops) <to_get_unwinder,
4795 to_get_tailcall_unwinder>: Now function pointers. Use
4796 TARGET_DEFAULT_RETURN.
4797
8476dc92
TT
47982014-02-19 Tom Tromey <tromey@redhat.com>
4799
4800 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4801 argument.
4802 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4803
c0eca49f
TT
48042014-02-19 Tom Tromey <tromey@redhat.com>
4805
4806 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4807 directly.
4808 * target-delegates.c: Rebuild.
4809 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4810 TARGET_DEFAULT_FUNC.
4811 * target.c (default_target_decr_pc_after_break): Rename from
4812 forward_target_decr_pc_after_break. Simplify.
4813 (target_decr_pc_after_break): Rely on delegation.
4814
596b6b39
TT
48152014-02-19 Tom Tromey <tromey@redhat.com>
4816
4817 * target.c (update_current_target): Do not INHERIT to_doc or
4818 to_magic. Do not de_fault to_open or to_close.
4819
b427c1bc
TT
48202014-02-19 Tom Tromey <tromey@redhat.com>
4821
4822 * gcore.h (objfile_find_memory_regions): Declare.
4823 * gcore.c (objfile_find_memory_regions): No longer static. Add
4824 "self" argument.
4825 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4826 * exec.c: Include gcore.h.
4827 (exec_set_find_memory_regions): Remove.
4828 (exec_find_memory_regions): Remove.
4829 (exec_do_find_memory_regions): Remove.
4830 (init_exec_ops): Update.
4831 * defs.h (exec_set_find_memory_regions): Remove.
4832
9b144037
TT
48332014-02-19 Tom Tromey <tromey@redhat.com>
4834
4835 * target-delegates.c: Rebuild.
4836 * target.h (struct target_ops) <to_extra_thread_info,
4837 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4838 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4839 not 0, in TARGET_DEFAULT_RETURN.
4840
555bbdeb
TT
48412014-02-19 Tom Tromey <tromey@redhat.com>
4842
4843 * target.c (complete_target_initialization): Remove casts. Use
4844 return_zero_has_execution.
4845 (return_zero): Add "ignore" argument.
4846 (return_zero_has_execution): New function.
4847 (init_dummy_target): Remove casts. Use
4848 return_zero_has_execution.
4849
be4ddd36
TT
48502014-02-19 Tom Tromey <tromey@redhat.com>
4851
4852 * target.c (update_current_target): Update comments. Do not
4853 INHERIT to_stratum.
4854
2117c711
TT
48552014-02-19 Tom Tromey <tromey@redhat.com>
4856
4857 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4858 needed.
4859 * corelow.c (core_read_description): Delegate when needed.
4860 * remote.c (remote_read_description): Delegate when needed.
4861 * target-delegates.c: Rebuild.
4862 * target.c (target_read_description): Rewrite.
4863 * target.h (struct target_ops) <to_read_description>: Update
4864 comment. Use TARGET_DEFAULT_RETURN.
4865
e88ef65c
TT
48662014-02-19 Tom Tromey <tromey@redhat.com>
4867
4868 * target-delegates.c: Rebuild.
4869 * target.c (update_current_target): Don't inherit or default
4870 to_can_run.
4871 (find_default_run_target): Check against delegate_can_run.
4872 * target.h (struct target_ops) <to_can_run>: Use
4873 TARGET_DEFAULT_RETURN.
4874
86a0854a
TT
48752014-02-19 Tom Tromey <tromey@redhat.com>
4876
4877 * target-delegates.c: Rebuild.
4878 * target.c (target_disconnect): Unconditionally delegate.
4879 * target.h (struct target_ops) <to_disconnect>: Use
4880 TARGET_DEFAULT_NORETURN.
4881
ee97f592
TT
48822014-02-19 Tom Tromey <tromey@redhat.com>
4883
4884 * record.c (record_stop): Unconditionally delegate.
4885 * target-delegates.c: Rebuild.
4886 * target.c (target_stop_recording): Unconditionally delegate.
4887 * target.h (struct target_ops) <to_stop_recording>: Use
4888 TARGET_DEFAULT_IGNORE.
4889
6dc7fcf4
TT
48902014-02-19 Tom Tromey <tromey@redhat.com>
4891
4892 * target-delegates.c: Rebuild.
4893 * target.c (target_enable_btrace): Unconditionally delegate.
4894 * target.h (struct target_ops) <to_enable_btrace>: Use
4895 TARGET_DEFAULT_NORETURN.
4896
eb5b20d4
TT
48972014-02-19 Tom Tromey <tromey@redhat.com>
4898
4899 * target-delegates.c: Rebuild.
4900 * target.c (target_read_btrace): Unconditionally delegate.
4901 * target.h (struct target_ops) <to_read_btrace>: Use
4902 TARGET_DEFAULT_NORETURN.
4903
9ace480d
TT
49042014-02-19 Tom Tromey <tromey@redhat.com>
4905
4906 * target-delegates.c: Rebuild.
4907 * target.c (target_teardown_btrace): Unconditionally delegate.
4908 * target.h (struct target_ops) <to_teardown_btrace>: Use
4909 TARGET_DEFAULT_NORETURN.
4910
8dc292d3
TT
49112014-02-19 Tom Tromey <tromey@redhat.com>
4912
4913 * target-delegates.c: Rebuild.
4914 * target.c (target_disable_btrace): Unconditionally delegate.
4915 * target.h (struct target_ops) <to_disable_btrace>: Use
4916 TARGET_DEFAULT_NORETURN.
4917
58a5184e
TT
49182014-02-19 Tom Tromey <tromey@redhat.com>
4919
4920 * target-delegates.c: Rebuild.
4921 * target.c (default_search_memory): New function.
4922 (simple_search_memory): Update comment.
4923 (target_search_memory): Unconditionally delegate.
4924 * target.h (struct target_ops) <to_search_memory>: Use
4925 TARGET_DEFAULT_FUNC.
4926
8de71aab
TT
49272014-02-19 Tom Tromey <tromey@redhat.com>
4928
4929 * auxv.c (default_auxv_parse): No longer static.
4930 (target_auxv_parse): Unconditionally delegate.
4931 * auxv.h (default_auxv_parse): Declare.
4932 * target-delegates.c: Rebuild.
4933 * target.c: Include auxv.h.
4934 * target.h (struct target_ops) <to_auxv_parse>: Use
4935 TARGET_DEFAULT_FUNC.
4936
6b2c5a57
TT
49372014-02-19 Tom Tromey <tromey@redhat.com>
4938
4939 * target-delegates.c: Rebuild.
4940 * target.c (target_memory_map): Unconditionally delegate.
4941 * target.h (struct target_ops) <to_memory_map>: Use
4942 TARGET_DEFAULT_RETURN.
4943
cbffc065
TT
49442014-02-19 Tom Tromey <tromey@redhat.com>
4945
4946 * target-delegates.c: Rebuild.
4947 * target.c (target_thread_alive): Unconditionally delegate.
4948 * target.h (struct target_ops) <to_thread_alive>: Use
4949 TARGET_DEFAULT_RETURN.
4950
f09e2107
TT
49512014-02-19 Tom Tromey <tromey@redhat.com>
4952
4953 * target-delegates.c: Rebuild.
4954 * target.c (target_save_record): Unconditionally delegate.
4955 * target.h (struct target_ops) <to_save_record>: Use
4956 TARGET_DEFAULT_NORETURN.
4957
07366925
TT
49582014-02-19 Tom Tromey <tromey@redhat.com>
4959
4960 * target-delegates.c: Rebuild.
4961 * target.c (target_delete_record): Unconditionally delegate.
4962 * target.h (struct target_ops) <to_delete_record>: Use
4963 TARGET_DEFAULT_NORETURN.
4964
dd2e9d25
TT
49652014-02-19 Tom Tromey <tromey@redhat.com>
4966
4967 * target-delegates.c: Rebuild.
4968 * target.c (target_record_is_replaying): Unconditionally
4969 delegate.
4970 * target.h (struct target_ops) <to_record_is_replaying>: Use
4971 TARGET_DEFAULT_RETURN.
4972
671e76cc
TT
49732014-02-19 Tom Tromey <tromey@redhat.com>
4974
4975 * target-delegates.c: Rebuild.
4976 * target.c (target_goto_record_begin): Unconditionally delegate.
4977 * target.h (struct target_ops) <to_goto_record_begin>: Use
4978 TARGET_DEFAULT_NORETURN.
4979
e9179bb3
TT
49802014-02-19 Tom Tromey <tromey@redhat.com>
4981
4982 * target-delegates.c: Rebuild.
4983 * target.c (target_goto_record_end): Unconditionally delegate.
4984 * target.h (struct target_ops) <to_goto_record_end>: Use
4985 TARGET_DEFAULT_NORETURN.
4986
05969c84
TT
49872014-02-19 Tom Tromey <tromey@redhat.com>
4988
4989 * target-delegates.c: Rebuild.
4990 * target.c (target_goto_record): Unconditionally delegate.
4991 * target.h (struct target_ops) <to_goto_record>: Use
4992 TARGET_DEFAULT_NORETURN.
4993
3679abfa
TT
49942014-02-19 Tom Tromey <tromey@redhat.com>
4995
4996 * target-delegates.c: Rebuild.
4997 * target.c (target_insn_history): Unconditionally delegate.
4998 * target.h (struct target_ops) <to_insn_history>: Use
4999 TARGET_DEFAULT_NORETURN.
5000
8444ab58
TT
50012014-02-19 Tom Tromey <tromey@redhat.com>
5002
5003 * target-delegates.c: Rebuild.
5004 * target.c (target_insn_history_from): Unconditionally delegate.
5005 * target.h (struct target_ops) <to_insn_history_from>: Use
5006 TARGET_DEFAULT_NORETURN.
5007
c29302cc
TT
50082014-02-19 Tom Tromey <tromey@redhat.com>
5009
5010 * target-delegates.c: Rebuild.
5011 * target.c (target_insn_history_range): Unconditionally delegate.
5012 * target.h (struct target_ops) <to_insn_history_range>: Use
5013 TARGET_DEFAULT_NORETURN.
5014
170049d4
TT
50152014-02-19 Tom Tromey <tromey@redhat.com>
5016
5017 * target-delegates.c: Rebuild.
5018 * target.c (target_call_history): Unconditionally delegate.
5019 * target.h (struct target_ops) <to_call_history>: Use
5020 TARGET_DEFAULT_NORETURN.
5021
16fc27d6
TT
50222014-02-19 Tom Tromey <tromey@redhat.com>
5023
5024 * target-delegates.c: Rebuild.
5025 * target.c (target_call_history_from): Unconditionally delegate.
5026 * target.h (struct target_ops) <to_call_history_from>: Use
5027 TARGET_DEFAULT_NORETURN.
5028
115d9817
TT
50292014-02-19 Tom Tromey <tromey@redhat.com>
5030
5031 * target-delegates.c: Rebuild.
5032 * target.c (target_call_history_range): Unconditionally delegate.
5033 * target.h (struct target_ops) <to_call_history_range>: Use
5034 TARGET_DEFAULT_NORETURN.
5035
eb276a6b
TT
50362014-02-19 Tom Tromey <tromey@redhat.com>
5037
5038 * target-delegates.c: Rebuild.
5039 * target.c (target_verify_memory): Unconditionally delegate.
5040 * target.h (struct target_ops) <to_verify_memory>: Use
5041 TARGET_DEFAULT_NORETURN.
5042
9e538d0d
TT
50432014-02-19 Tom Tromey <tromey@redhat.com>
5044
5045 * target-delegates.c: Rebuild.
5046 * target.c (target_core_of_thread): Unconditionally delegate.
5047 * target.h (struct target_ops) <to_core_of_thread>: Use
5048 TARGET_DEFAULT_RETURN.
5049
f6fb2925
TT
50502014-02-19 Tom Tromey <tromey@redhat.com>
5051
5052 * target-delegates.c: Rebuild.
5053 * target.c (target_flash_done): Unconditionally delegate.
5054 * target.h (struct target_ops) <to_flash_done>: Use
5055 TARGET_DEFAULT_NORETURN.
5056
e8a6c6ac
TT
50572014-02-19 Tom Tromey <tromey@redhat.com>
5058
5059 * target-delegates.c: Rebuild.
5060 * target.c (target_flash_erase): Unconditionally delegate.
5061 * target.h (struct target_ops) <to_flash_erase>: Use
5062 TARGET_DEFAULT_NORETURN.
5063
7e35c012
TT
50642014-02-19 Tom Tromey <tromey@redhat.com>
5065
5066 * target-delegates.c: Rebuild.
5067 * target.c (target_get_section_table): Unconditionally delegate.
5068 * target.h (struct target_ops) <to_get_section_table>: Use
5069 TARGET_DEFAULT_RETURN.
5070
770234d3
TT
50712014-02-19 Tom Tromey <tromey@redhat.com>
5072
5073 * target-delegates.c: Rebuild.
5074 * target.c (target_pid_to_str): Unconditionally delegate.
5075 (init_dummy_target): Don't initialize to_pid_to_str.
5076 (default_pid_to_str): Rename from dummy_pid_to_str.
5077 * target.h (struct target_ops) <to_pid_to_str>: Use
5078 TARGET_DEFAULT_FUNC.
5079
09b0dc2b
TT
50802014-02-19 Tom Tromey <tromey@redhat.com>
5081
5082 * target-delegates.c: Rebuild.
5083 * target.c (target_find_new_threads): Unconditionally delegate.
5084 * target.h (struct target_ops) <to_find_new_threads>: Use
5085 TARGET_DEFAULT_RETURN.
5086
7d4f8efa
TT
50872014-02-19 Tom Tromey <tromey@redhat.com>
5088
5089 * target-delegates.c: Rebuild.
5090 * target.c (target_program_signals): Unconditionally delegate.
5091 * target.h (struct target_ops) <to_program_signals>: Use
5092 TARGET_DEFAULT_IGNORE.
5093
035cad7f
TT
50942014-02-19 Tom Tromey <tromey@redhat.com>
5095
5096 * target-delegates.c: Rebuild.
5097 * target.c (target_pass_signals): Unconditionally delegate.
5098 * target.h (struct target_ops) <to_pass_signals>: Use
5099 TARGET_DEFAULT_IGNORE.
5100
8d657035
TT
51012014-02-19 Tom Tromey <tromey@redhat.com>
5102
5103 * target-delegates.c: Rebuild.
5104 * target.c (default_mourn_inferior): New function.
5105 (target_mourn_inferior): Unconditionally delegate.
5106 * target.h (struct target_ops) <to_mourn_inferior>: Use
5107 TARGET_DEFAULT_FUNC.
5108
098dba18
TT
51092014-02-19 Tom Tromey <tromey@redhat.com>
5110
5111 * target-delegates.c: Rebuild.
5112 * target.c (default_follow_fork): New function.
5113 (target_follow_fork): Unconditionally delegate.
5114 * target.h (struct target_ops) <to_follow_fork>: Use
5115 TARGET_DEFAULT_FUNC.
5116
423a4807
TT
51172014-02-19 Tom Tromey <tromey@redhat.com>
5118
5119 * target-delegates.c: Rebuild.
5120 * target.c (target_kill): Unconditionally delegate.
5121 * target.h (struct target_ops) <to_kill>: Use
5122 TARGET_DEFAULT_NORETURN.
5123
6c7e5e5c
TT
51242014-02-19 Tom Tromey <tromey@redhat.com>
5125
5126 * target-delegates.c: Rebuild.
5127 * target.c (target_masked_watch_num_registers): Unconditionally
5128 delegate.
5129 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5130 Use TARGET_DEFAULT_RETURN.
5131
8b1c364c
TT
51322014-02-19 Tom Tromey <tromey@redhat.com>
5133
5134 * target-delegates.c: Rebuild.
5135 * target.c (target_remove_mask_watchpoint): Unconditionally
5136 delegate.
5137 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5138 TARGET_DEFAULT_RETURN.
5139
cd4ae029
TT
51402014-02-19 Tom Tromey <tromey@redhat.com>
5141
5142 * target-delegates.c: Rebuild.
5143 * target.c (target_insert_mask_watchpoint): Unconditionally
5144 delegate.
5145 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5146 TARGET_DEFAULT_RETURN.
5147
a134316b
TT
51482014-02-19 Tom Tromey <tromey@redhat.com>
5149
5150 * target-delegates.c: Rebuild.
5151 * target.c (target_ranged_break_num_registers): Unconditionally
5152 delegate.
5153 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5154 Use TARGET_DEFAULT_RETURN.
5155
ad5989bd
TT
51562014-02-19 Tom Tromey <tromey@redhat.com>
5157
5158 * target-delegates.c: Rebuild.
5159 * target.c (target_fetch_registers): Unconditionally delegate.
5160 * target.h (struct target_ops) <to_fetch_registers>: Use
5161 TARGET_DEFAULT_NORETURN.
5162
46ee7e8d
TT
51632014-02-19 Tom Tromey <tromey@redhat.com>
5164
5165 * target-delegates.c: Rebuild.
5166 * target.c (update_current_target): Don't inherit or default
5167 to_stop.
5168 * target.h (struct target_ops) <to_stop>: Use
5169 TARGET_DEFAULT_IGNORE.
5170
843f59ed
TT
51712014-02-19 Tom Tromey <tromey@redhat.com>
5172
5173 * target-delegates.c: Rebuild.
5174 * target.c (update_current_target): Don't inherit or default
5175 to_can_run_breakpoint_commands.
5176 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5177 Use TARGET_DEFAULT_RETURN.
5178
ccfde2a0
TT
51792014-02-19 Tom Tromey <tromey@redhat.com>
5180
5181 * target-delegates.c: Rebuild.
5182 * target.c (update_current_target): Don't inherit or default
5183 to_supports_evaluation_of_breakpoint_conditions.
5184 * target.h (struct target_ops)
5185 <to_supports_evaluation_of_breakpoint_conditions>: Use
5186 TARGET_DEFAULT_RETURN.
5187
0de91722
TT
51882014-02-19 Tom Tromey <tromey@redhat.com>
5189
5190 * target-delegates.c: Rebuild.
5191 * target.c (update_current_target): Don't inherit or default
5192 to_augmented_libraries_svr4_read.
5193 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5194 Use TARGET_DEFAULT_RETURN.
5195
9a7d8b48
TT
51962014-02-19 Tom Tromey <tromey@redhat.com>
5197
5198 * target-delegates.c: Rebuild.
5199 * target.c (update_current_target): Don't inherit or default
5200 to_can_use_agent.
5201 * target.h (struct target_ops) <to_can_use_agent>: Use
5202 TARGET_DEFAULT_RETURN.
5203
d9db5b21
TT
52042014-02-19 Tom Tromey <tromey@redhat.com>
5205
5206 * target-delegates.c: Rebuild.
5207 * target.c (update_current_target): Don't inherit or default
5208 to_use_agent.
5209 * target.h (struct target_ops) <to_use_agent>: Use
5210 TARGET_DEFAULT_NORETURN.
5211
92155eeb
TT
52122014-02-19 Tom Tromey <tromey@redhat.com>
5213
5214 * target-delegates.c: Rebuild.
5215 * target.c (update_current_target): Don't inherit or default
5216 to_traceframe_info.
5217 (return_null): Remove.
5218 * target.h (struct target_ops) <to_traceframe_info>: Use
5219 TARGET_DEFAULT_RETURN.
5220
d6522a22
TT
52212014-02-19 Tom Tromey <tromey@redhat.com>
5222
5223 * target-delegates.c: Rebuild.
5224 * target.c (update_current_target): Don't inherit or default
5225 to_static_tracepoint_markers_by_strid.
5226 * target.h (struct target_ops)
5227 <to_static_tracepoint_markers_by_strid>: Use
5228 TARGET_DEFAULT_NORETURN.
5229
4c3e4425
TT
52302014-02-19 Tom Tromey <tromey@redhat.com>
5231
5232 * target-delegates.c: Rebuild.
5233 * target.c (update_current_target): Don't inherit or default
5234 to_static_tracepoint_marker_at.
5235 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5236 Use TARGET_DEFAULT_RETURN.
5237
dcd6917f
TT
52382014-02-19 Tom Tromey <tromey@redhat.com>
5239
5240 * target-delegates.c: Rebuild.
5241 * target.c (update_current_target): Don't inherit or default
5242 to_set_permissions.
5243 * target.h (struct target_ops) <to_set_permissions>: Use
5244 TARGET_DEFAULT_IGNORE.
5245
22bcceee
TT
52462014-02-19 Tom Tromey <tromey@redhat.com>
5247
5248 * target-delegates.c: Rebuild.
5249 * target.c (update_current_target): Don't inherit or default
5250 to_get_tib_address.
5251 * target.h (struct target_ops) <to_get_tib_address>: Use
5252 TARGET_DEFAULT_NORETURN.
5253
8586ccaa
TT
52542014-02-19 Tom Tromey <tromey@redhat.com>
5255
5256 * target-delegates.c: Rebuild.
5257 * target.c (update_current_target): Don't inherit or default
5258 to_set_trace_notes.
5259 * target.h (struct target_ops) <to_set_trace_notes>: Use
5260 TARGET_DEFAULT_RETURN.
5261
91df8d1d
TT
52622014-02-19 Tom Tromey <tromey@redhat.com>
5263
5264 * target-delegates.c: Rebuild.
5265 * target.c (update_current_target): Don't initialize
5266 to_set_trace_buffer_size.
5267 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5268 TARGET_DEFAULT_IGNORE.
5269
8d526939
TT
52702014-02-19 Tom Tromey <tromey@redhat.com>
5271
5272 * target-delegates.c: Rebuild.
5273 * target.c (update_current_target): Don't inherit or default
5274 to_set_circular_trace_buffer.
5275 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5276 TARGET_DEFAULT_IGNORE.
5277
0bcfeddf
TT
52782014-02-19 Tom Tromey <tromey@redhat.com>
5279
5280 * target-delegates.c: Rebuild.
5281 * target.c (update_current_target): Don't inherit or default
5282 to_set_disconnected_tracing.
5283 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5284 TARGET_DEFAULT_IGNORE.
5285
9249843f
TT
52862014-02-19 Tom Tromey <tromey@redhat.com>
5287
5288 * target-delegates.c: Rebuild.
5289 * target.c (update_current_target): Don't inherit or default
5290 to_get_min_fast_tracepoint_insn_len.
5291 (return_minus_one): Remove.
5292 * target.h (struct target_ops)
5293 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5294
ace92e7d
TT
52952014-02-19 Tom Tromey <tromey@redhat.com>
5296
5297 * target-delegates.c: Rebuild.
5298 * target.c (update_current_target): Don't inherit or default
5299 to_get_raw_trace_data.
5300 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5301 TARGET_DEFAULT_NORETURN.
5302
08120467
TT
53032014-02-19 Tom Tromey <tromey@redhat.com>
5304
5305 * target-delegates.c: Rebuild.
5306 * target.c (update_current_target): Don't inherit or default
5307 to_upload_trace_state_variables.
5308 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5309 Use TARGET_DEFAULT_RETURN.
5310
1e949b00
TT
53112014-02-19 Tom Tromey <tromey@redhat.com>
5312
5313 * target-delegates.c: Rebuild.
5314 * target.c (update_current_target): Don't inherit or default
5315 to_upload_tracepoints.
5316 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5317 TARGET_DEFAULT_RETURN.
5318
a2e6c147
TT
53192014-02-19 Tom Tromey <tromey@redhat.com>
5320
5321 * target-delegates.c: Rebuild.
5322 * target.c (update_current_target): Don't inherit or default
5323 to_save_trace_data.
5324 * target.h (struct target_ops) <to_save_trace_data>: Use
5325 TARGET_DEFAULT_NORETURN.
5326
959bcd0b
TT
53272014-02-19 Tom Tromey <tromey@redhat.com>
5328
5329 * target-delegates.c: Rebuild.
5330 * target.c (update_current_target): Don't inherit or default
5331 to_get_trace_state_variable_value.
5332 * target.h (struct target_ops)
5333 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5334
afc94e66
TT
53352014-02-19 Tom Tromey <tromey@redhat.com>
5336
5337 * target-delegates.c: Rebuild.
5338 * target.c (update_current_target): Don't inherit or default
5339 to_trace_find.
5340 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5341
e51c07ea
TT
53422014-02-19 Tom Tromey <tromey@redhat.com>
5343
5344 * target-delegates.c: Rebuild.
5345 * target.c (update_current_target): Don't inherit or default
5346 to_trace_stop.
5347 * target.h (struct target_ops) <to_trace_stop>: Use
5348 TARGET_DEFAULT_NORETURN.
5349
6fea14cd
TT
53502014-02-19 Tom Tromey <tromey@redhat.com>
5351
5352 * target-delegates.c: Rebuild.
5353 * target.c (update_current_target): Don't inherit or default
5354 to_get_tracepoint_status.
5355 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5356 TARGET_DEFAULT_NORETURN.
5357
4072d4ff
TT
53582014-02-19 Tom Tromey <tromey@redhat.com>
5359
5360 * target-delegates.c: Rebuild.
5361 * target.c (update_current_target): Don't inherit or default
5362 to_get_trace_status.
5363 * target.h (struct target_ops) <to_get_trace_status>: Use
5364 TARGET_DEFAULT_RETURN.
5365
25da2e80
TT
53662014-02-19 Tom Tromey <tromey@redhat.com>
5367
5368 * target-delegates.c: Rebuild.
5369 * target.c (update_current_target): Don't inherit or default
5370 to_trace_start.
5371 * target.h (struct target_ops) <to_trace_start>: Use
5372 TARGET_DEFAULT_NORETURN.
5373
86dd181d
TT
53742014-02-19 Tom Tromey <tromey@redhat.com>
5375
5376 * target-delegates.c: Rebuild.
5377 * target.c (update_current_target): Don't inherit or default
5378 to_trace_set_readonly_regions.
5379 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5380 Use TARGET_DEFAULT_NORETURN.
5381
05c41993
TT
53822014-02-19 Tom Tromey <tromey@redhat.com>
5383
5384 * target-delegates.c: Rebuild.
5385 * target.c (update_current_target): Don't inherit or default
5386 to_disable_tracepoint.
5387 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5388 TARGET_DEFAULT_NORETURN.
5389
151f70f1
TT
53902014-02-19 Tom Tromey <tromey@redhat.com>
5391
5392 * target-delegates.c: Rebuild.
5393 * target.c (update_current_target): Don't inherit or default
5394 to_enable_tracepoint.
5395 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5396 TARGET_DEFAULT_NORETURN.
5397
94eb98b9
TT
53982014-02-19 Tom Tromey <tromey@redhat.com>
5399
5400 * target-delegates.c: Rebuild.
5401 * target.c (update_current_target): Don't inherit or default
5402 to_download_trace_state_variable.
5403 * target.h (struct target_ops) <to_download_trace_state_variable>:
5404 Use TARGET_DEFAULT_NORETURN.
5405
719acc4a
TT
54062014-02-19 Tom Tromey <tromey@redhat.com>
5407
5408 * target-delegates.c: Rebuild.
5409 * target.c (update_current_target): Don't inherit or default
5410 to_can_download_tracepoint.
5411 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5412 TARGET_DEFAULT_RETURN.
5413
9a980a22
TT
54142014-02-19 Tom Tromey <tromey@redhat.com>
5415
5416 * target-delegates.c: Rebuild.
5417 * target.c (update_current_target): Don't inherit or default
5418 to_download_tracepoint.
5419 * target.h (struct target_ops) <to_download_tracepoint>: Use
5420 TARGET_DEFAULT_NORETURN.
5421
5536135b
TT
54222014-02-19 Tom Tromey <tromey@redhat.com>
5423
5424 * target-delegates.c: Rebuild.
5425 * target.c (update_current_target): Don't inherit or default
5426 to_trace_init.
5427 * target.h (struct target_ops) <to_trace_init>: Use
5428 TARGET_DEFAULT_RETURN.
5429
9409d39e
TT
54302014-02-19 Tom Tromey <tromey@redhat.com>
5431
5432 * target-delegates.c: Rebuild.
5433 * target.c (update_current_target): Don't inherit or default
5434 to_supports_string_tracing.
5435 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5436 TARGET_DEFAULT_RETURN.
5437
aab1b22d
TT
54382014-02-19 Tom Tromey <tromey@redhat.com>
5439
5440 * target-delegates.c: Rebuild.
5441 * target.c (update_current_target): Don't inherit or default
5442 to_supports_enable_disable_tracepoint.
5443 * target.h (struct target_ops)
5444 <to_supports_enable_disable_tracepoint>: Use
5445 TARGET_DEFAULT_RETURN.
5446
a7304748
TT
54472014-02-19 Tom Tromey <tromey@redhat.com>
5448
5449 * target-delegates.c: Rebuild.
5450 * target.c (update_current_target): Don't inherit or default
5451 to_supports_multi_process.
5452 * target.h (struct target_ops) <to_supports_multi_process>: Use
5453 TARGET_DEFAULT_RETURN.
5454
4229b31d
TT
54552014-02-19 Tom Tromey <tromey@redhat.com>
5456
5457 * target-delegates.c: Rebuild.
5458 * target.c (update_current_target): Don't inherit or default
5459 to_get_ada_task_ptid.
5460 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5461 TARGET_DEFAULT_FUNC.
5462
43eba180
TT
54632014-02-19 Tom Tromey <tromey@redhat.com>
5464
5465 * target-delegates.c: Rebuild.
5466 * target.c (update_current_target): Don't inherit or default
5467 to_thread_architecture.
5468 * target.h (struct target_ops) <to_thread_architecture>: Use
5469 TARGET_DEFAULT_FUNC.
5470
fe31bf5b
TT
54712014-02-19 Tom Tromey <tromey@redhat.com>
5472
5473 * target-delegates.c: Rebuild.
5474 * target.c (update_current_target): Don't inherit or default
5475 to_execution_direction.
5476 * target.h (struct target_ops) <to_execution_direction>: Use
5477 TARGET_DEFAULT_FUNC.
5478
53e1cfc7
TT
54792014-02-19 Tom Tromey <tromey@redhat.com>
5480
5481 * target-delegates.c: Rebuild.
5482 * target.c (update_current_target): Don't inherit or default
5483 to_can_execute_reverse.
5484 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5485 TARGET_DEFAULT_RETURN.
5486 (target_can_execute_reverse): Unconditionally delegate.
5487
9bb9d61d
TT
54882014-02-19 Tom Tromey <tromey@redhat.com>
5489
5490 * target-delegates.c: Rebuild.
5491 * target.c (update_current_target): Don't inherit or default
5492 to_goto_bookmark.
5493 (dummy_goto_bookmark): Remove.
5494 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5495 * target.h (struct target_ops) <to_goto_bookmark>: Use
5496 TARGET_DEFAULT_NORETURN.
5497
3dbafbbb
TT
54982014-02-19 Tom Tromey <tromey@redhat.com>
5499
5500 * target-delegates.c: Rebuild.
5501 * target.c (update_current_target): Don't inherit or default
5502 to_get_bookmark.
5503 (dummy_get_bookmark): Remove.
5504 (init_dummy_target): Don't inherit or default to_get_bookmark.
5505 * target.h (struct target_ops) <to_get_bookmark>: Use
5506 TARGET_DEFAULT_NORETURN
5507
16f796b1
TT
55082014-02-19 Tom Tromey <tromey@redhat.com>
5509
5510 * target-delegates.c: Rebuild.
5511 * target.c (update_current_target): Don't inherit or default
5512 to_make_corefile_notes.
5513 (init_dummy_target): Don't initialize to_make_corefile_notes.
5514 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5515 TARGET_DEFAULT_FUNC.
5516
0b5a2719
TT
55172014-02-19 Tom Tromey <tromey@redhat.com>
5518
5519 * target-delegates.c: Rebuild.
5520 * target.c (update_current_target): Don't inherit or default
5521 to_find_memory_regions.
5522 (init_dummy_target): Don't initialize to_find_memory_regions.
5523 * target.h (struct target_ops) <to_find_memory_regions>: Use
5524 TARGET_DEFAULT_FUNC.
5525
d9cb0195
TT
55262014-02-19 Tom Tromey <tromey@redhat.com>
5527
5528 * target-delegates.c: Rebuild.
5529 * target.c (update_current_target): Don't inherit or default
5530 to_log_command.
5531 * target.h (struct target_ops) <to_log_command>: Use
5532 TARGET_DEFAULT_IGNORE.
5533 (target_log_command): Unconditionally delegate.
5534
830ca330
TT
55352014-02-19 Tom Tromey <tromey@redhat.com>
5536
5537 * target-delegates.c: Rebuild.
5538 * target.c (update_current_target): Don't inherit or default
5539 to_pid_to_exec_file.
5540 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5541 TARGET_DEFAULT_RETURN.
5542
825828fc
TT
55432014-02-19 Tom Tromey <tromey@redhat.com>
5544
5545 * target-delegates.c: Rebuild.
5546 * target.c (update_current_target): Don't inherit or default
5547 to_thread_name.
5548 (target_thread_name): Unconditionally delegate.
5549 * target.h (struct target_ops) <to_thread_name>: Use
5550 TARGET_DEFAULT_RETURN.
5551
4a7e6dda
TT
55522014-02-19 Tom Tromey <tromey@redhat.com>
5553
5554 * target-delegates.c: Rebuild.
5555 * target.c (update_current_target): Don't inherit or default
5556 to_extra_thread_info.
5557 * target.h (struct target_ops) <to_extra_thread_info>: Use
5558 TARGET_DEFAULT_RETURN.
5559
0db88c1d
TT
55602014-02-19 Tom Tromey <tromey@redhat.com>
5561
5562 * target-delegates.c: Rebuild.
5563 * target.c (update_current_target): Don't inherit or default
5564 to_has_exited.
5565 * target.h (struct target_ops) <to_has_exited>: Use
5566 TARGET_DEFAULT_RETURN..
5567
6a9fa051
TT
55682014-02-19 Tom Tromey <tromey@redhat.com>
5569
5570 * target-delegates.c: Rebuild.
5571 * target.c (update_current_target): Don't inherit or default
5572 to_set_syscall_catchpoint.
5573 (return_one): Remove.
5574 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5575 TARGET_DEFAULT_RETURN.
5576
62f64d7a
TT
55772014-02-19 Tom Tromey <tromey@redhat.com>
5578
5579 * target-delegates.c: Rebuild.
5580 * target.c (update_current_target): Don't inherit or default
5581 to_insert_exec_catchpoint.
5582 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5583 TARGET_DEFAULT_RETURN.
5584
cda0f38c
TT
55852014-01-08 Tom Tromey <tromey@redhat.com>
5586
5587 * target-delegates.c: Rebuild.
5588 * target.c (update_current_target): Don't inherit or default
5589 to_insert_exec_catchpoint.
5590 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5591 TARGET_DEFAULT_RETURN.
5592
95c3375e
TT
55932014-02-19 Tom Tromey <tromey@redhat.com>
5594
5595 * target-delegates.c: Rebuild.
5596 * target.c (update_current_target): Don't inherit or default
5597 to_remove_vfork_catchpoint.
5598 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5599 TARGET_DEFAULT_RETURN.
5600
7e18a8dc
TT
56012014-02-19 Tom Tromey <tromey@redhat.com>
5602
5603 * target-delegates.c: Rebuild.
5604 * target.c (update_current_target): Don't inherit or default
5605 to_insert_vfork_catchpoint.
5606 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5607 TARGET_DEFAULT_RETURN.
5608
e1a21fb7
TT
56092014-02-19 Tom Tromey <tromey@redhat.com>
5610
5611 * target-delegates.c: Rebuild.
5612 * target.c (update_current_target): Don't inherit or default
5613 to_remove_fork_catchpoint.
5614 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5615 TARGET_DEFAULT_RETURN.
5616
5958ebeb
TT
56172014-02-19 Tom Tromey <tromey@redhat.com>
5618
5619 * target-delegates.c: Rebuild.
5620 * target.c (update_current_target): Don't inherit or default
5621 to_insert_fork_catchpoint.
5622 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5623 TARGET_DEFAULT_RETURN.
5624
340ba4bf
TT
56252014-02-19 Tom Tromey <tromey@redhat.com>
5626
5627 * target-delegates.c: Rebuild.
5628 * target.c (update_current_target): Don't inherit or default
5629 to_post_startup_inferior.
5630 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5631 TARGET_DEFAULT_IGNORE.
5632
7634da87
TT
56332014-02-19 Tom Tromey <tromey@redhat.com>
5634
5635 * target-delegates.c: Rebuild.
5636 * target.c (update_current_target): Don't inherit or default
5637 to_load.
5638 * target.h (struct target_ops) <to_load>: Use
5639 TARGET_DEFAULT_NORETURN.
5640
e19e919f
TT
56412014-02-19 Tom Tromey <tromey@redhat.com>
5642
5643 * target-delegates.c: Rebuild.
5644 * target.c (update_current_target): Don't inherit or default
5645 to_terminal_info.
5646 * target.h (struct target_ops) <to_terminal_info>: Use
5647 TARGET_DEFAULT_FUNC.
5648
c6ea8f79
TT
56492014-02-19 Tom Tromey <tromey@redhat.com>
5650
5651 * target-delegates.c: Rebuild.
5652 * target.c (update_current_target): Don't inherit or default
5653 to_terminal_save_ours.
5654 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5655 TARGET_DEFAULT_IGNORE.
5656
e4a733f1
TT
56572014-02-19 Tom Tromey <tromey@redhat.com>
5658
5659 * target-delegates.c: Rebuild.
5660 * target.c (update_current_target): Don't inherit or default
5661 to_terminal_ours.
5662 * target.h (struct target_ops) <to_terminal_ours>: Use
5663 TARGET_DEFAULT_IGNORE.
5664
74fcbef9
TT
56652014-02-19 Tom Tromey <tromey@redhat.com>
5666
5667 * target-delegates.c: Rebuild.
5668 * target.c (update_current_target): Don't inherit or default
5669 to_terminal_ours_for_output.
5670 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5671 TARGET_DEFAULT_IGNORE.
5672
ddeaacc9
TT
56732014-02-19 Tom Tromey <tromey@redhat.com>
5674
5675 * target-delegates.c: Rebuild.
5676 * target.c (update_current_target): Don't inherit or default
5677 to_terminal_inferior.
5678 * target.h (struct target_ops) <to_terminal_inferior>: Use
5679 TARGET_DEFAULT_IGNORE.
5680
0343661d
TT
56812014-02-19 Tom Tromey <tromey@redhat.com>
5682
5683 * target-delegates.c: Rebuild.
5684 * target.c (update_current_target): Don't inherit or default
5685 to_terminal_init.
5686 * target.h (struct target_ops) <to_terminal_init>: Use
5687 TARGET_DEFAULT_IGNORE.
5688
77cdffe9
TT
56892014-02-19 Tom Tromey <tromey@redhat.com>
5690
5691 * target-delegates.c: Rebuild.
5692 * target.c (update_current_target): Don't inherit or default
5693 to_can_accel_watchpoint_condition.
5694 * target.h (struct target_ops)
5695 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5696
d03655e4
TT
56972014-02-19 Tom Tromey <tromey@redhat.com>
5698
5699 * target-delegates.c: Rebuild.
5700 * target.c (update_current_target): Don't inherit or default
5701 to_region_ok_for_hw_watchpoint.
5702 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5703 Use TARGET_DEFAULT_FUNC.
5704
65f160a9
TT
57052014-02-19 Tom Tromey <tromey@redhat.com>
5706
5707 * target-delegates.c: Rebuild.
5708 * target.c (update_current_target): Don't inherit or default
5709 to_watchpoint_addr_within_range.
5710 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5711 Use TARGET_DEFAULT_FUNC.
5712
61dd109f
TT
57132014-02-19 Tom Tromey <tromey@redhat.com>
5714
5715 * target-delegates.c: Rebuild.
5716 * target.c (update_current_target): Don't inherit or default
5717 to_remove_watchpoint.
5718 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5719 TARGET_DEFAULT_NORETURN.
5720
016facd4
TT
57212014-02-19 Tom Tromey <tromey@redhat.com>
5722
5723 * target-delegates.c: Rebuild.
5724 * target.c (update_current_target): Don't inherit or default
5725 to_insert_watchpoint.
5726 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5727 TARGET_DEFAULT_RETURN.
5728
418dabac
TT
57292014-02-19 Tom Tromey <tromey@redhat.com>
5730
5731 * target-delegates.c: Rebuild.
5732 * target.c (update_current_target): Don't inherit or default
5733 to_remove_hw_breakpoint.
5734 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5735 TARGET_DEFAULT_RETURN.
5736
61b371f9
TT
57372014-02-19 Tom Tromey <tromey@redhat.com>
5738
5739 * target-delegates.c: Rebuild.
5740 * target.c (update_current_target): Don't inherit or default
5741 to_insert_hw_breakpoint.
5742 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5743 TARGET_DEFAULT_RETURN.
5744
52b51d06
TT
57452014-02-19 Tom Tromey <tromey@redhat.com>
5746
5747 * target-delegates.c: Rebuild.
5748 * target.c (update_current_target): Don't inherit or default
5749 to_can_use_hw_breakpoint.
5750 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5751 TARGET_DEFAULT_RETURN.
5752
f86e59b2
TT
57532014-02-19 Tom Tromey <tromey@redhat.com>
5754
5755 * target-delegates.c: Rebuild.
5756 * target.c (update_current_target): Don't inherit or default
5757 to_files_info.
5758 * target.h (struct target_ops) <to_files_info>: Use
5759 TARGET_DEFAULT_IGNORE.
5760
6c628163
TT
57612014-02-19 Tom Tromey <tromey@redhat.com>
5762
5763 * target-delegates.c: Rebuild.
5764 * target.c (update_current_target): Don't inherit or default
5765 to_store.
5766 * target.h (struct target_ops) <to_store>: Use
5767 TARGET_DEFAULT_NORETURN.
5768
bebd3233
TT
57692014-02-19 Tom Tromey <tromey@redhat.com>
5770
5771 * target-delegates.c: Rebuild.
5772 * target.c (update_current_target): Don't inherit or default
5773 to_post_attach.
5774 * target.h (struct target_ops) <to_post_attach>: Use
5775 TARGET_DEFAULT_IGNORE.
5776
a53f3625
TT
57772014-02-19 Tom Tromey <tromey@redhat.com>
5778
5779 * target-delegates.c: Rebuild.
5780 * target.c (update_current_target): Don't inherit or default
5781 to_rcmd.
5782 (default_rcmd): New function.
5783 (do_monitor_command): Unconditionally delegate.
5784 * target.h (struct target_ops) <to_rmcd>: Use
5785 TARGET_DEFAULT_FUNC.
5786
e9a29200
TT
57872014-02-19 Tom Tromey <tromey@redhat.com>
5788
5789 * target-delegates.c: Rebuild.
5790 * target.c (init_dummy_target): Don't initialize to_attach.
5791 (target_attach): Unconditionally delegate.
5792 * target.h (struct target_ops) <to_attach>: Use
5793 TARGET_DEFAULT_FUNC.
5794
09da0d0a
TT
57952014-02-19 Tom Tromey <tromey@redhat.com>
5796
5797 * target-delegates.c: Rebuild.
5798 * target.c (target_detach): Unconditionally delegate.
5799 (init_dummy_target): Don't initialize to_detach.
5800 * target.h (struct target_ops) <to_detach>: Use
5801 TARGET_DEFAULT_IGNORE.
5802
5436ff03
TT
58032014-02-19 Tom Tromey <tromey@redhat.com>
5804
5805 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5806 Add argument.
5807 (target_augmented_libraries_svr4_read): Add argument.
5808 * target.c (update_current_target): Update.
5809 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5810 argument.
5811
f0d960ea
TT
58122014-02-19 Tom Tromey <tromey@redhat.com>
5813
5814 * target.h (struct target_ops) <to_call_history_range>: Add
5815 argument.
5816 * target.c (target_call_history_range): Add argument.
5817 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5818 argument.
5819 (record_btrace_call_history_from): Update.
5820
ec0aea04
TT
58212014-02-19 Tom Tromey <tromey@redhat.com>
5822
5823 * target.h (struct target_ops) <to_call_history_from>: Add
5824 argument.
5825 * target.c (target_call_history_from): Add argument.
5826 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5827 argument.
5828
5df2fcba
TT
58292014-02-19 Tom Tromey <tromey@redhat.com>
5830
5831 * target.h (struct target_ops) <to_call_history>: Add argument.
5832 * target.c (target_call_history): Add argument.
5833 * record-btrace.c (record_btrace_call_history): Add 'self'
5834 argument.
5835
4e99c6b7
TT
58362014-02-19 Tom Tromey <tromey@redhat.com>
5837
5838 * target.h (struct target_ops) <to_insn_history_range>: Add
5839 argument.
5840 * target.c (target_insn_history_range): Add argument.
5841 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5842 argument.
5843 (record_btrace_insn_history_from): Update.
5844
9abc3ff3
TT
58452014-02-19 Tom Tromey <tromey@redhat.com>
5846
5847 * target.h (struct target_ops) <to_insn_history_from>: Add
5848 argument.
5849 * target.c (target_insn_history_from): Add argument.
5850 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5851 argument.
5852
7a6c5609
TT
58532014-02-19 Tom Tromey <tromey@redhat.com>
5854
5855 * target.h (struct target_ops) <to_insn_history>: Add argument.
5856 * target.c (target_insn_history): Add argument.
5857 * record-btrace.c (record_btrace_insn_history): Add 'self'
5858 argument.
5859
606183ac
TT
58602014-02-19 Tom Tromey <tromey@redhat.com>
5861
5862 * target.h (struct target_ops) <to_goto_record>: Add argument.
5863 * target.c (target_goto_record): Add argument.
5864 * record-full.c (record_full_goto): Add 'self' argument.
5865 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5866
307a1b91
TT
58672014-02-19 Tom Tromey <tromey@redhat.com>
5868
5869 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5870 * target.c (target_goto_record_end): Add argument.
5871 * record-full.c (record_full_goto_end): Add 'self' argument.
5872 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5873
08475817
TT
58742014-02-19 Tom Tromey <tromey@redhat.com>
5875
5876 * target.h (struct target_ops) <to_goto_record_begin>: Add
5877 argument.
5878 * target.c (target_goto_record_begin): Add argument.
5879 * record-full.c (record_full_goto_begin): Add 'self' argument.
5880 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5881 argument.
5882
1c63c994
TT
58832014-02-19 Tom Tromey <tromey@redhat.com>
5884
5885 * target.h (struct target_ops) <to_record_is_replaying>: Add
5886 argument.
5887 * target.c (target_record_is_replaying): Add argument.
5888 * record-full.c (record_full_is_replaying): Add 'self' argument.
5889 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5890 argument.
5891 (record_btrace_xfer_partial, record_btrace_store_registers)
5892 (record_btrace_prepare_to_store, record_btrace_resume)
5893 (record_btrace_wait, record_btrace_decr_pc_after_break)
5894 (record_btrace_find_new_threads, record_btrace_thread_alive):
5895 Update.
5896
d1b55219
TT
58972014-02-19 Tom Tromey <tromey@redhat.com>
5898
5899 * target.h (struct target_ops) <to_delete_record>: Add argument.
5900 * target.c (target_delete_record): Add argument.
5901 * record-full.c (record_full_delete): Add 'self' argument.
5902
1390f529
TT
59032014-02-19 Tom Tromey <tromey@redhat.com>
5904
5905 * target.h (struct target_ops) <to_save_record>: Add argument.
5906 * target.c (target_save_record): Add argument.
5907 * record-full.c (record_full_save): Add 'self' argument.
5908 (record_full_save): Add 'self' argument.
5909
630d6a4a
TT
59102014-02-19 Tom Tromey <tromey@redhat.com>
5911
5912 * target.h (struct target_ops) <to_info_record>: Add argument.
5913 * target.c (target_info_record): Add argument.
5914 * record.c (info_record_command): Add argument.
5915 * record-full.c (record_full_info): Add 'self' argument.
5916 * record-btrace.c (record_btrace_info): Add 'self' argument.
5917
c6cd7c02
TT
59182014-02-19 Tom Tromey <tromey@redhat.com>
5919
5920 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5921 * target.c (target_stop_recording): Add argument.
5922 * record.c (record_stop): Add argument.
5923 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5924 argument.
5925
39c49f83
TT
59262014-02-19 Tom Tromey <tromey@redhat.com>
5927
5928 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5929 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5930 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5931 argument.
5932 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5933 (_initialize_amd64_linux_nat): Use it.
5934 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5935 (_initialize_i386_linux_nat): Use it.
5936
1777056d
TT
59372014-02-19 Tom Tromey <tromey@redhat.com>
5938
5939 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5940 * target.c (target_teardown_btrace): Add argument.
5941 * remote.c (remote_teardown_btrace): Add 'self' argument.
5942 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5943 argument.
5944 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5945 argument.
5946
25e95349
TT
59472014-02-19 Tom Tromey <tromey@redhat.com>
5948
5949 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5950 * target.c (target_disable_btrace): Add argument.
5951 * remote.c (remote_disable_btrace): Add 'self' argument.
5952 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5953 argument.
5954 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5955 argument.
5956
e3c49f88
TT
59572014-02-19 Tom Tromey <tromey@redhat.com>
5958
5959 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5960 * target.c (target_enable_btrace): Add argument.
5961 * remote.c (remote_enable_btrace): Add 'self' argument.
5962 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5963 argument.
5964 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5965 argument.
5966
fe38f897
TT
59672014-02-19 Tom Tromey <tromey@redhat.com>
5968
5969 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5970 (target_can_use_agent): Add argument.
5971 * target.c (update_current_target): Update.
5972 * remote.c (remote_can_use_agent): Add 'self' argument.
5973 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5974
2c152180
TT
59752014-02-19 Tom Tromey <tromey@redhat.com>
5976
5977 * target.h (struct target_ops) <to_use_agent>: Add argument.
5978 (target_use_agent): Add argument.
5979 * target.c (update_current_target): Update.
5980 * remote.c (remote_use_agent): Add 'self' argument.
5981 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5982
a893e81f
TT
59832014-02-19 Tom Tromey <tromey@redhat.com>
5984
5985 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5986 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5987 (target_traceframe_info): Add argument.
5988 * target.c (update_current_target): Update.
5989 * remote.c (remote_traceframe_info): Add 'self' argument.
5990 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5991
c686c57f
TT
59922014-02-19 Tom Tromey <tromey@redhat.com>
5993
5994 * target.h (target_static_tracepoint_markers_by_strid): Add
5995 argument.
5996 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5997 'self' argument.
5998 * target.c (update_current_target): Update.
5999 * remote.c (struct target_ops)
6000 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6001 * linux-nat.c (struct target_ops)
6002 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6003
61fc905d
TT
60042014-02-19 Tom Tromey <tromey@redhat.com>
6005
6006 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6007 Add argument.
6008 (target_static_tracepoint_marker_at): Add argument.
6009 * target.c (update_current_target): Update.
6010 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6011 argument.
6012
c378d69d
TT
60132014-02-19 Tom Tromey <tromey@redhat.com>
6014
6015 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6016 (target_set_permissions): Add argument.
6017 * target.c (update_current_target): Update.
6018 * remote.c (remote_set_permissions): Add 'self' argument.
6019 (remote_start_remote): Update.
6020
bd7ae0f5
TT
60212014-02-19 Tom Tromey <tromey@redhat.com>
6022
6023 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6024 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6025 (target_get_tib_address): Add argument.
6026 * target.c (update_current_target): Update.
6027 * remote.c (remote_get_tib_address): Add 'self' argument.
6028
d9e68a2c
TT
60292014-02-19 Tom Tromey <tromey@redhat.com>
6030
6031 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6032 (target_set_trace_notes): Add argument.
6033 * target.c (update_current_target): Update.
6034 * remote.c (remote_set_trace_notes): Add 'self' argument.
6035
4da384be
TT
60362014-02-19 Tom Tromey <tromey@redhat.com>
6037
6038 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6039 argument.
6040 (target_set_trace_buffer_size): Add argument.
6041 * target.c (update_current_target): Update.
6042 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6043
736d5b1f
TT
60442014-02-19 Tom Tromey <tromey@redhat.com>
6045
6046 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6047 argument.
6048 (target_set_circular_trace_buffer): Add argument.
6049 * target.c (update_current_target): Update.
6050 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6051 argument.
6052
37b25738
TT
60532014-02-19 Tom Tromey <tromey@redhat.com>
6054
6055 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6056 argument.
6057 (target_set_disconnected_tracing): Add argument.
6058 * target.c (update_current_target): Update.
6059 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6060
0e67620a
TT
60612014-02-19 Tom Tromey <tromey@redhat.com>
6062
6063 * target.h (struct target_ops)
6064 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6065 (target_get_min_fast_tracepoint_insn_len): Add argument.
6066 * target.c (update_current_target): Update.
6067 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6068 argument.
6069
88ee6f45
TT
60702014-02-19 Tom Tromey <tromey@redhat.com>
6071
6072 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6073 argument.
6074 (target_get_raw_trace_data): Add argument.
6075 * target.c (update_current_target): Update.
6076 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6077
181e3713
TT
60782014-02-19 Tom Tromey <tromey@redhat.com>
6079
6080 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6081 Add argument.
6082 (target_upload_trace_state_variables): Add argument.
6083 * target.c (update_current_target): Update.
6084 * remote.c (remote_upload_trace_state_variables): Add 'self'
6085 argument.
6086 (remote_start_remote): Update.
6087
ab6617cc
TT
60882014-02-19 Tom Tromey <tromey@redhat.com>
6089
6090 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6091 argument.
6092 (target_upload_tracepoints): Add argument.
6093 * target.c (update_current_target): Update.
6094 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6095 (remote_start_remote): Update.
6096
dc3decaf
TT
60972014-02-19 Tom Tromey <tromey@redhat.com>
6098
6099 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6100 (target_save_trace_data): Add argument.
6101 * target.c (update_current_target): Update.
6102 * remote.c (remote_save_trace_data): Add 'self' argument.
6103
4011015b
TT
61042014-02-19 Tom Tromey <tromey@redhat.com>
6105
6106 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6107 argument.
6108 * target.h (struct target_ops)
6109 <to_get_trace_state_variable_value>: Add argument.
6110 (target_get_trace_state_variable_value): Add argument.
6111 * target.c (update_current_target): Update.
6112 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6113 argument.
6114 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6115
bd4c6793
TT
61162014-02-19 Tom Tromey <tromey@redhat.com>
6117
6118 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6119 * target.h (struct target_ops) <to_trace_find>: Add argument.
6120 (target_trace_find): Add argument.
6121 * target.c (update_current_target): Update.
6122 * remote.c (remote_trace_find): Add 'self' argument.
6123 * ctf.c (ctf_trace_find): Add 'self' argument.
6124
74499f1b
TT
61252014-02-19 Tom Tromey <tromey@redhat.com>
6126
6127 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6128 (target_trace_stop): Add argument.
6129 * target.c (update_current_target): Update.
6130 * remote.c (remote_trace_stop): Add 'self' argument.
6131
db90e85c
TT
61322014-02-19 Tom Tromey <tromey@redhat.com>
6133
6134 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6135 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6136 argument.
6137 (target_get_tracepoint_status): Add argument.
6138 * target.c (update_current_target): Update.
6139 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6140
8bd200f1
TT
61412014-02-19 Tom Tromey <tromey@redhat.com>
6142
6143 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6144 * target.h (struct target_ops) <to_get_trace_status>: Add
6145 argument.
6146 (target_get_trace_status): Add argument.
6147 * target.c (update_current_target): Update.
6148 * remote.c (remote_get_trace_status): Add 'self' argument.
6149 (remote_start_remote, remote_can_download_tracepoint): Update.
6150 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6151
e2d1aae3
TT
61522014-02-19 Tom Tromey <tromey@redhat.com>
6153
6154 * target.h (struct target_ops) <to_trace_start>: Add argument.
6155 (target_trace_start): Add argument.
6156 * target.c (update_current_target): Update.
6157 * remote.c (remote_trace_start): Add 'self' argument.
6158
583f9a86
TT
61592014-02-19 Tom Tromey <tromey@redhat.com>
6160
6161 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6162 Add argument.
6163 (target_trace_set_readonly_regions): Add argument.
6164 * target.c (update_current_target): Update.
6165 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6166 argument.
6167
780b049c
TT
61682014-02-19 Tom Tromey <tromey@redhat.com>
6169
6170 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6171 argument.
6172 (target_disable_tracepoint): Add argument.
6173 * target.c (update_current_target): Update.
6174 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6175
46670d57
TT
61762014-02-19 Tom Tromey <tromey@redhat.com>
6177
6178 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6179 argument.
6180 (target_enable_tracepoint): Add argument.
6181 * target.c (update_current_target): Update.
6182 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6183
559d2b81
TT
61842014-02-19 Tom Tromey <tromey@redhat.com>
6185
6186 * target.h (struct target_ops) <to_download_trace_state_variable>:
6187 Add argument.
6188 (target_download_trace_state_variable): Add argument.
6189 * target.c (update_current_target): Update.
6190 * remote.c (remote_download_trace_state_variable): Add 'self'
6191 argument.
6192
a52a8357
TT
61932014-02-19 Tom Tromey <tromey@redhat.com>
6194
6195 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6196 argument.
6197 (target_can_download_tracepoint): Add argument.
6198 * target.c (update_current_target): Update.
6199 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6200
548f7808
TT
62012014-02-19 Tom Tromey <tromey@redhat.com>
6202
6203 * target.h (struct target_ops) <to_download_tracepoint>: Add
6204 argument.
6205 (target_download_tracepoint): Add argument.
6206 * target.c (update_current_target): Update.
6207 * remote.c (remote_download_tracepoint): Add 'self' argument.
6208
ecae04e1
TT
62092014-02-19 Tom Tromey <tromey@redhat.com>
6210
6211 * target.h (struct target_ops) <to_trace_init>: Add argument.
6212 (target_trace_init): Add argument.
6213 * target.c (update_current_target): Update.
6214 * remote.c (remote_trace_init): Add 'self' argument.
6215
fab5aa7c
TT
62162014-02-19 Tom Tromey <tromey@redhat.com>
6217
6218 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6219 * target.c (target_fileio_readlink): Add argument.
6220 * remote.c (remote_hostio_readlink): Add 'self' argument.
6221 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6222
dbbca37d
TT
62232014-02-19 Tom Tromey <tromey@redhat.com>
6224
6225 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6226 * target.c (target_fileio_unlink): Add argument.
6227 * remote.c (remote_hostio_unlink): Add 'self' argument.
6228 (remote_file_delete): Update.
6229 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6230
df39ea25
TT
62312014-02-19 Tom Tromey <tromey@redhat.com>
6232
6233 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6234 * target.c (target_fileio_close): Add argument.
6235 * remote.c (remote_hostio_close): Add 'self' argument.
6236 (remote_hostio_close_cleanup): Update.
6237 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6238 Update.
6239 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6240
a3be983c
TT
62412014-02-19 Tom Tromey <tromey@redhat.com>
6242
6243 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6244 * target.c (target_fileio_pread): Add argument.
6245 * remote.c (remote_hostio_pread): Add 'self' argument.
6246 (remote_bfd_iovec_pread, remote_file_get): Update.
6247 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6248
0d866f62
TT
62492014-02-19 Tom Tromey <tromey@redhat.com>
6250
6251 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6252 * target.c (target_fileio_pwrite): Add argument.
6253 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6254 (remote_file_put): Update.
6255 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6256
cd897586
TT
62572014-02-19 Tom Tromey <tromey@redhat.com>
6258
6259 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6260 * target.c (target_fileio_open): Add argument.
6261 * remote.c (remote_hostio_open): Add 'self' argument.
6262 (remote_bfd_iovec_open): Add 'self' argument.
6263 (remote_file_put): Add 'self' argument.
6264 (remote_file_get): Add 'self' argument.
6265 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6266
78eff0ec
TT
62672014-02-19 Tom Tromey <tromey@redhat.com>
6268
6269 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6270 Add argument.
6271 (target_can_run_breakpoint_commands): Add argument.
6272 * target.c (update_current_target): Update.
6273 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6274 argument.
6275 (remote_insert_breakpoint): Add 'self' argument.
6276 (remote_insert_hw_breakpoint): Add 'self' argument.
6277 (remote_can_run_breakpoint_commands): Add 'self' argument.
6278
efcc2da7
TT
62792014-02-19 Tom Tromey <tromey@redhat.com>
6280
6281 * target.h (struct target_ops)
6282 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6283 (target_supports_evaluation_of_breakpoint_conditions): Add
6284 argument.
6285 * target.c (update_current_target): Update.
6286 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6287 argument.
6288 (remote_insert_breakpoint): Add 'self' argument.
6289 (remote_insert_hw_breakpoint): Add 'self' argument.
6290 (remote_supports_cond_breakpoints): Add 'self' argument.
6291
6de37a3a
TT
62922014-02-19 Tom Tromey <tromey@redhat.com>
6293
6294 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6295 argument.
6296 (target_supports_string_tracing): Add argument.
6297 * target.c (update_current_target): Update.
6298 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6299
2bfc0540
TT
63002014-02-19 Tom Tromey <tromey@redhat.com>
6301
6302 * target.h (struct target_ops)
6303 <to_supports_disable_randomization>: Add argument.
6304 * target.c (find_default_supports_disable_randomization): Add
6305 argument.
6306 (target_supports_disable_randomization): Add argument.
6307 (find_default_supports_disable_randomization): Add 'self'
6308 argument.
6309 * remote.c (extended_remote_supports_disable_randomization): Add
6310 'self' argument.
6311 (remote_supports_disable_randomization): Add 'self' argument.
6312 (extended_remote_create_inferior): Update.
6313 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6314 'self' argument.
6315
7d178d6a
TT
63162014-02-19 Tom Tromey <tromey@redhat.com>
6317
6318 * target.h (struct target_ops)
6319 <to_supports_enable_disable_tracepoint>: Add argument.
6320 (target_supports_enable_disable_tracepoint): Add argument.
6321 * target.c (update_current_target): Update.
6322 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6323 argument.
6324
86ce2668
TT
63252014-02-19 Tom Tromey <tromey@redhat.com>
6326
6327 * target.h (struct target_ops) <to_supports_multi_process>: Add
6328 argument.
6329 (target_supports_multi_process): Add argument.
6330 * target.c (update_current_target): Update.
6331 * remote.c (remote_supports_multi_process): Add 'self' argument.
6332 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6333 argument.
6334 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6335 argument.
6336
4c612759
TT
63372014-02-19 Tom Tromey <tromey@redhat.com>
6338
6339 * target.h (struct target_ops) <to_execution_direction>: Add
6340 argument.
6341 (target_execution_direction): Add argument.
6342 * target.c (default_execution_direction): Add 'self' argument.
6343 * record-full.c (record_full_execution_direction): Add 'self'
6344 argument.
6345
19db3e69
TT
63462014-02-19 Tom Tromey <tromey@redhat.com>
6347
6348 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6349 argument.
6350 (target_can_execute_reverse): Add argument.
6351 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6352 * record-full.c (record_full_can_execute_reverse): Add 'self'
6353 argument.
6354 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6355 argument.
6356
1e6b91a4
TT
63572014-02-19 Tom Tromey <tromey@redhat.com>
6358
6359 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6360 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6361 argument.
6362 (target_get_ada_task_ptid): Add argument.
6363 * target.c (update_current_target): Update.
6364 (default_get_ada_task_ptid): Add 'self' argument.
6365 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6366 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6367 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6368 argument.
6369 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6370 argument.
6371 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6372 argument.
6373 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6374 argument.
6375 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6376 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6377 argument.
6378
3c80fb48
TT
63792014-02-19 Tom Tromey <tromey@redhat.com>
6380
6381 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6382 (target_goto_bookmark): Add argument.
6383 * target.c (dummy_goto_bookmark): Add 'self' argument.
6384 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6385
dd0e2830
TT
63862014-02-19 Tom Tromey <tromey@redhat.com>
6387
6388 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6389 (target_get_bookmark): Add argument.
6390 * target.c (dummy_get_bookmark): Add 'self' argument.
6391 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6392
fc6691b2
TT
63932014-02-19 Tom Tromey <tromey@redhat.com>
6394
6395 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6396 argument.
6397 (target_make_corefile_notes): Add argument.
6398 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6399 * procfs.c (procfs_make_note_section): Add 'self' argument.
6400 (procfs_make_note_section): Add 'self' argument.
6401 (procfs_make_note_section): Add 'self' argument.
6402 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6403 argument.
6404 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6405 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6406 * exec.c (exec_make_note_section): Add 'self' argument.
6407 (exec_make_note_section): Add 'self' argument.
6408
2e73927c
TT
64092014-02-19 Tom Tromey <tromey@redhat.com>
6410
6411 * target.h (struct target_ops) <to_find_memory_regions>: Add
6412 argument.
6413 (target_find_memory_regions): Add argument.
6414 * target.c (dummy_find_memory_regions): Add 'self' argument.
6415 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6416 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6417 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6418 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6419 * exec. (exec_do_find_memory_regions): New global.
6420 (exec_set_find_memory_regions): Rewrite.
6421 (exec_find_memory_regions): New function.
6422 (init_exec_ops): Use exec_find_memory_regions.
6423
2a9a2795
TT
64242014-02-19 Tom Tromey <tromey@redhat.com>
6425
6426 * target.h (struct target_ops) <to_supports_non_stop>: Add
6427 argument.
6428 * target.c (find_default_supports_non_stop): Add argument.
6429 (target_supports_non_stop): Add argument.
6430 (find_default_supports_non_stop): Add 'self' argument.
6431 * remote.c (remote_supports_non_stop): Add 'self' argument.
6432 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6433
4ab76ea3
TT
64342014-02-19 Tom Tromey <tromey@redhat.com>
6435
6436 * target.h (struct target_ops) <to_log_command>: Add argument.
6437 (target_log_command): Add argument.
6438 * serial.h (serial_log_command): Add 'self' argument.
6439 * serial.c (serial_log_command): Add 'self' argument.
6440
8dd27370
TT
64412014-02-19 Tom Tromey <tromey@redhat.com>
6442
6443 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6444 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6445 argument.
6446 (target_pid_to_exec_file): Add argument.
6447 * target.c (debug_to_pid_to_exec_file): Add argument.
6448 (update_current_target): Update.
6449 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6450 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6451 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6452 (linux_handle_extended_wait): Update.
6453 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6454 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6455 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6456 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6457
1aac633b
TT
64582014-02-19 Tom Tromey <tromey@redhat.com>
6459
6460 * target.h (struct target_ops) <to_rcmd>: Add argument.
6461 (target_rcmd): Add argument.
6462 * target.c (debug_to_rcmd): Add argument.
6463 (update_current_target, do_monitor_command): Update.
6464 * remote.c (remote_rcmd): Add 'self' argument.
6465 * monitor.c (monitor_rcmd): Add 'self' argument.
6466
1eab8a48
TT
64672014-02-19 Tom Tromey <tromey@redhat.com>
6468
6469 * windows-nat.c (windows_stop): Add 'self' argument.
6470 * target.h (struct target_ops) <to_stop>: Add argument.
6471 * target.c (target_stop): Add argument.
6472 (debug_to_stop): Add argument.
6473 (update_current_target): Update.
6474 * remote.c (remote_stop): Add 'self' argument.
6475 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6476 (gdbsim_cntrl_c): Update.
6477 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6478 * procfs.c (procfs_stop): Add 'self' argument.
6479 * nto-procfs.c (procfs_stop): Add 'self' argument.
6480 * monitor.c (monitor_stop): Add 'self' argument.
6481 (monitor_open): Update.
6482 * linux-nat.c (linux_nat_stop): Add argument.
6483 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6484 * gnu-nat.c (gnu_stop): Add 'self' argument.
6485 * darwin-nat.c (darwin_stop): Add 'self' argument.
6486
503a628d
TT
64872014-02-19 Tom Tromey <tromey@redhat.com>
6488
6489 * target.h (struct target_ops) <to_thread_name>: Add argument.
6490 * target.c (target_thread_name): Add argument.
6491 (update_current_target): Update.
6492 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6493
c15906d8
TT
64942014-02-19 Tom Tromey <tromey@redhat.com>
6495
6496 * target.h (struct target_ops) <to_extra_thread_info>: Add
6497 argument.
6498 (target_extra_thread_info): Add argument.
6499 * target.c (update_current_target): Update.
6500 * remote.c (remote_threads_extra_info): Add 'self' argument.
6501 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6502 argument.
6503 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6504 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6505 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6506 argument.
6507 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6508 argument.
6509 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6510 argument.
6511 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6512 argument.
6513
daf5e9b6
TT
65142014-02-19 Tom Tromey <tromey@redhat.com>
6515
6516 * target.h (struct target_ops) <to_program_signals>: Add argument.
6517 * target.c (target_program_signals): Add argument.
6518 * remote.c (remote_program_signals): Add 'self' argument.
6519
94bedb42
TT
65202014-02-19 Tom Tromey <tromey@redhat.com>
6521
6522 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6523 * target.c (target_pass_signals): Add argument.
6524 * remote.c (remote_pass_signals): Add 'self' argument.
6525 (remote_start_remote): Update.
6526 * procfs.c (procfs_pass_signals): Add 'self' argument.
6527 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6528 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6529 (linux_nat_create_inferior, linux_nat_attach): Update.
6530
da82bd6b
TT
65312014-02-19 Tom Tromey <tromey@redhat.com>
6532
6533 * windows-nat.c (windows_can_run): Add 'self' argument.
6534 * target.h (struct target_ops) <to_can_run>: Add argument.
6535 (target_can_run): Add argument.
6536 * target.c (debug_to_can_run): Add argument.
6537 (update_current_target): Update.
6538 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6539 * inf-child.c (inf_child_can_run): Add 'self' argument.
6540 * go32-nat.c (go32_can_run): Add 'self' argument.
6541
d796e1d6
TT
65422014-02-19 Tom Tromey <tromey@redhat.com>
6543
6544 * target.h (struct target_ops) <to_has_exited>: Add argument.
6545 (target_has_exited): Add argument.
6546 * target.c (debug_to_has_exited): Add argument.
6547 (update_current_target): Update.
6548
ff214e67
TT
65492014-02-19 Tom Tromey <tromey@redhat.com>
6550
6551 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6552 argument.
6553 (target_set_syscall_catchpoint): Add argument.
6554 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6555 argument.
6556 * target.c (update_current_target): Update.
6557
758e29d2
TT
65582014-02-19 Tom Tromey <tromey@redhat.com>
6559
6560 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6561 argument.
6562 (target_remove_exec_catchpoint): Add argument.
6563 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6564 (update_current_target): Update.
6565 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6566 argument.
6567
ba025e51
TT
65682014-02-19 Tom Tromey <tromey@redhat.com>
6569
6570 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6571 argument.
6572 (target_insert_exec_catchpoint): Add argument.
6573 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6574 (update_current_target): Update.
6575 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6576 argument.
6577
e98cf0cd
TT
65782014-02-19 Tom Tromey <tromey@redhat.com>
6579
6580 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6581 argument.
6582 (target_remove_vfork_catchpoint): Add argument.
6583 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6584 (update_current_target): Update.
6585 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6586 argument.
6587
3ecc7da0
TT
65882014-02-19 Tom Tromey <tromey@redhat.com>
6589
6590 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6591 argument.
6592 (target_insert_vfork_catchpoint): Add argument.
6593 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6594 (update_current_target): Update.
6595 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6596 argument.
6597
973fc227
TT
65982014-02-19 Tom Tromey <tromey@redhat.com>
6599
6600 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6601 argument.
6602 (target_remove_fork_catchpoint): Add argument.
6603 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6604 (update_current_target): Update.
6605 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6606 argument.
6607
a863b201
TT
66082014-02-19 Tom Tromey <tromey@redhat.com>
6609
6610 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6611 argument.
6612 (target_insert_fork_catchpoint): Add argument.
6613 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6614 (update_current_target): Update.
6615 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6616 argument.
6617
2e97a79e
TT
66182014-02-19 Tom Tromey <tromey@redhat.com>
6619
6620 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6621 argument.
6622 (target_post_startup_inferior): Add argument.
6623 * target.c (debug_to_post_startup_inferior): Add argument.
6624 (update_current_target): Update.
6625 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6626 argument.
6627 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6628 argument.
6629 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6630 argument.
6631 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6632 argument.
6633 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6634 'self' argument.
6635 (super_post_startup_inferior): Likewise.
6636 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6637 'self' argument.
6638 (super_post_startup_inferior): Likewise.
6639 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6640 Add 'self' argument.
6641 (super_post_startup_inferior): Likewise.
6642
71a9f134
TT
66432014-02-19 Tom Tromey <tromey@redhat.com>
6644
6645 * target.h (struct target_ops) <to_load>: Add argument.
6646 * target.c (target_load): Add argument.
6647 (debug_to_load): Add argument.
6648 (update_current_target): Update.
6649 * remote.c (remote_load): Add 'self' argument.
6650 * remote-sim.c (gdbsim_load): Add 'self' argument.
6651 * remote-mips.c (mips_load): Add 'self' argument.
6652 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6653 * monitor.c (monitor_load): Add 'self' argument.
6654 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6655
0a4f40a2
TT
66562014-02-19 Tom Tromey <tromey@redhat.com>
6657
6658 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6659 (target_terminal_info): Add argument.
6660 * target.c (debug_to_terminal_info): Add argument.
6661 (default_terminal_info): Likewise.
6662 * inflow.c (child_terminal_info): Add 'self' argument.
6663 * inferior.h (child_terminal_info): Add 'self' argument.
6664 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6665
ae3bd431
TT
66662014-02-19 Tom Tromey <tromey@redhat.com>
6667
6668 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6669 argument.
6670 (target_terminal_save_ours): Add argument.
6671 * target.c (debug_to_terminal_save_ours): Add argument.
6672 (update_current_target): Update.
6673 * inflow.c (terminal_save_ours): Add 'self' argument.
6674 * inferior.h (terminal_save_ours): Add 'self' argument.
6675
e3594fd1
TT
66762014-02-19 Tom Tromey <tromey@redhat.com>
6677
6678 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6679 (target_terminal_ours): Add argument.
6680 * target.c (debug_to_terminal_ours): Add argument.
6681 (update_current_target): Update.
6682 * remote.c (remote_terminal_ours): Add 'self' argument.
6683 (remote_close): Update.
6684 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6685 * inflow.c (terminal_ours): Add 'self' argument.
6686 * inferior.h (terminal_ours): Add 'self' argument.
6687 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6688
2e1e1a19
TT
66892014-02-19 Pedro Alves <palves@redhat.com>
6690 Tom Tromey <tromey@redhat.com>
6691
6692 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6693 argument.
6694 (target_terminal_ours_for_output): Add argument.
6695 * target.c (debug_to_terminal_ours_for_output): Add argument.
6696 (update_current_target): Update.
6697 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6698 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6699 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6700
d2f640d4
TT
67012014-02-19 Tom Tromey <tromey@redhat.com>
6702
6703 * target.h (struct target_ops) <to_terminal_inferior>: Add
6704 argument.
6705 * target.c (target_terminal_inferior): Add argument.
6706 (update_current_target): Update.
6707 * remote.c (remote_terminal_inferior): Add 'self' argument.
6708 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6709 * inflow.c (terminal_inferior): Add 'self' argument.
6710 * inferior.h (terminal_inferior): Add 'self' argument.
6711 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6712 (go32_terminal_inferior): Add 'self' argument.
6713
c42bf286
TT
67142014-02-19 Tom Tromey <tromey@redhat.com>
6715
6716 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6717 (target_terminal_init): Add argument.
6718 * target.c (debug_to_terminal_init): Add argument.
6719 (update_current_target): Update.
6720 * inflow.c (terminal_init_inferior): Add 'self' argument.
6721 * inferior.h (terminal_init_inferior): Add 'self' argument.
6722 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6723 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6724
c3a5ff89
TT
67252014-02-19 Tom Tromey <tromey@redhat.com>
6726
6727 * target.h (struct target_ops)
6728 <to_can_accel_watchpoint_condition>: Add argument.
6729 (target_can_accel_watchpoint_condition): Add argument.
6730 * target.c (debug_to_can_accel_watchpoint_condition): Add
6731 argument.
6732 (update_current_target): Update.
6733 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6734 'self' argument.
6735
31568a15
TT
67362014-02-19 Tom Tromey <tromey@redhat.com>
6737
6738 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6739 Add argument.
6740 (target_region_ok_for_hw_watchpoint): Add argument.
6741 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6742 (default_region_ok_for_hw_watchpoint): Add argument.
6743 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6744 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6745 argument.
6746 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6747 argument.
6748 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6749 argument.
6750 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6751 'self' argument.
6752 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6753 'self' argument.
6754 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6755 'self' argument.
6756 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6757 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6758 'self' argument.
6759 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6760 Add 'self' argument.
6761
7bb99c53
TT
67622014-02-19 Tom Tromey <tromey@redhat.com>
6763
6764 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6765 argument.
6766 (target_insert_watchpoint): Add argument.
6767 * target.c (debug_to_insert_watchpoint): Add argument.
6768 (update_current_target): Update.
6769 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6770 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6771 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6772 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6773 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6774 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6775 argument.
6776 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6777 (procfs_insert_hw_watchpoint): Add 'self' argument.
6778 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6779 argument.
6780 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6781 argument.
6782 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6783 argument.
6784 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6785 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6786 argument.
6787 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6788 'self' argument.
6789
11b5219a
TT
67902014-02-19 Tom Tromey <tromey@redhat.com>
6791
6792 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6793 argument.
6794 (target_remove_watchpoint): Add argument.
6795 * target.c (debug_to_remove_watchpoint): Add argument.
6796 (update_current_target): Update.
6797 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6798 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6799 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6800 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6801 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6802 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6803 argument.
6804 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6805 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6806 argument.
6807 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6808 argument.
6809 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6810 argument.
6811 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6812 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6813 argument.
6814 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6815 'self' argument.
6816
a64dc96c
TT
68172014-02-19 Tom Tromey <tromey@redhat.com>
6818
6819 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6820 argument.
6821 (target_remove_hw_breakpoint): Add argument.
6822 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6823 (update_current_target): Update.
6824 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6825 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6826 argument.
6827 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6828 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6829 argument.
6830 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6831 'self' argument.
6832
23a26771
TT
68332014-02-19 Tom Tromey <tromey@redhat.com>
6834
6835 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6836 argument.
6837 (target_insert_hw_breakpoint): Add argument.
6838 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6839 (update_current_target): Update.
6840 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6841 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6842 argument.
6843 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6844 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6845 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6846 argument.
6847 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6848 'self' argument.
6849
5461485a
TT
68502014-02-19 Tom Tromey <tromey@redhat.com>
6851
6852 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6853 argument.
6854 (target_can_use_hardware_watchpoint): Add argument.
6855 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6856 (update_current_target): Update.
6857 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6858 argument.
6859 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6860 argument.
6861 * remote.c (remote_check_watch_resources): Add 'self' argument.
6862 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6863 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6864 argument.
6865 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6866 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6867 argument.
6868 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6869 argument.
6870 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6871 argument.
6872 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6873 argument.
6874 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6875 argument.
6876 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6877 argument.
6878 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6879 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6880 argument.
6881 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6882 'self' argument.
6883
f045800c
TT
68842014-02-19 Tom Tromey <tromey@redhat.com>
6885
6886 * target.h (struct target_ops) <to_post_attach>: Add argument.
6887 (target_post_attach): Add argument.
6888 * target.c (debug_to_post_attach): Add argument.
6889 (update_current_target): Update.
6890 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6891 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6892 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6893 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6894 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6895
de90e03d
TT
68962014-02-19 Tom Tromey <tromey@redhat.com>
6897
6898 * windows-nat.c (windows_close): Add 'self' argument.
6899 * tracepoint.c (tfile_close): Add 'self' argument.
6900 * target.h (struct target_ops) <to_close>: Add argument.
6901 * target.c (target_close): Add argument.
6902 (update_current_target): Update.
6903 * remote.c (remote_close): Add 'self' argument.
6904 * remote-sim.c (gdbsim_close): Add 'self' argument.
6905 * remote-mips.c (mips_close): Add 'self' argument.
6906 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6907 * record-full.c (record_full_close): Add 'self' argument.
6908 * record-btrace.c (record_btrace_close): Add 'self' argument.
6909 * monitor.h (monitor_close): Add 'self' argument.
6910 * monitor.c (monitor_close): Add 'self' argument.
6911 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6912 * linux-nat.c (linux_nat_close): Add argument.
6913 * go32-nat.c (go32_close): Add 'self' argument.
6914 * exec.c (exec_close_1): Add 'self' argument.
6915 * ctf.c (ctf_close): Add 'self' argument.
6916 * corelow.c (core_close): Add 'self' argument.
6917 (core_close_cleanup): Update.
6918 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6919 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6920
9dd130a0
TT
69212014-02-19 Tom Tromey <tromey@redhat.com>
6922
6923 * remote.c (remote_load): New function.
6924 (init_remote_ops): Use it.
6925
46917d26
TT
69262014-02-19 Tom Tromey <tromey@redhat.com>
6927
6928 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6929 argument.
6930 * common/linux-btrace.h (linux_supports_btrace): Update.
6931 * remote.c (remote_supports_btrace): Add "self" argument.
6932 * target-delegates.c: Rebuild.
6933 * target.c (target_supports_btrace): Remove.
6934 * target.h (struct target_ops) <to_supports_btrace>: Add
6935 target_ops argument.
6936 (target_supports_btrace): New define.
6937
6b84065d
TT
69382014-02-19 Tom Tromey <tromey@redhat.com>
6939
6940 * record-full.c (record_full_beneath_to_resume_ops)
6941 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6942 (record_full_beneath_to_wait)
6943 (record_full_beneath_to_store_registers_ops)
6944 (record_full_beneath_to_store_registers)
6945 (record_full_beneath_to_xfer_partial_ops)
6946 (record_full_beneath_to_xfer_partial)
6947 (record_full_beneath_to_insert_breakpoint_ops)
6948 (record_full_beneath_to_insert_breakpoint)
6949 (record_full_beneath_to_remove_breakpoint_ops)
6950 (record_full_beneath_to_remove_breakpoint)
6951 (record_full_beneath_to_stopped_by_watchpoint)
6952 (record_full_beneath_to_stopped_data_address)
6953 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6954 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6955 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6956 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6957 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6958 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6959 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6960 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6961 (record_full_resume, record_full_wait_1)
6962 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6963 (record_full_store_registers, record_full_xfer_partial)
6964 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6965 (record_full_async, record_full_core_xfer_partial): Use target
6966 delegation.
6967 * target-delegates.c: Rebuild.
6968 * target.c (current_xfer_partial): Remove.
6969 (update_current_target): Do not INHERIT or de_fault
6970 to_insert_breakpoint, to_remove_breakpoint,
6971 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6972 to_is_async_p, to_async. Do not set to_xfer_partial field.
6973 (default_xfer_partial): Simplify.
6974 (current_xfer_partial): Remove.
6975 (target_wait, target_resume): Simplify.
6976 (find_default_can_async_p, find_default_is_async_p): Update.
6977 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6978 to_xfer_partial, to_stopped_by_watchpoint,
6979 to_stopped_data_address.
6980 (target_store_registers): Simplify.
6981 (forward_target_remove_breakpoint)
6982 (forward_target_insert_breakpoint): Remove.
6983 (target_remove_breakpoint, target_insert_breakpoint)
6984 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6985 * target.h (struct target_ops) <to_resume, to_wait,
6986 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6987 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6988 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6989 markup.
6990 (forward_target_remove_breakpoint)
6991 (forward_target_insert_breakpoint): Remove.
6992 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6993 directly.
6994 (record_btrace_insert_breakpoint): Delegate directly.
6995
1101cb7b
TT
69962014-02-19 Tom Tromey <tromey@redhat.com>
6997
6998 PR build/7701:
6999 * target-delegates.c: New file.
7000 * target.c: Include target-delegates.c.
7001 (init_dummy_target): Call install_dummy_methods.
7002 (complete_target_initialization): Call install_delegators.
7003 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7004 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7005 * make-target-delegates: New file.
7006
8b06beed
TT
70072014-02-19 Tom Tromey <tromey@redhat.com>
7008
7009 * record.c (find_record_target): Use find_target_at.
7010 * target.c (find_target_at): New function.
7011 * target.h (find_target_at): Declare.
7012
6a109b6b
TT
70132014-02-19 Tom Tromey <tromey@redhat.com>
7014
7015 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7016 Add 'ops' argument.
7017 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7018 'ops' argument.
7019 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7020 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7021 'ops' argument.
7022 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7023 argument.
7024 * linux-nat.c (save_sigtrap): Update.
7025 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7026 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7027 (linux_nat_close): Update.
7028 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7029 argument.
7030 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7031 argument.
7032 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7033 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7034 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7035 (tmp_to_async): Add 'ops' argument.
7036 (record_full_stopped_by_watchpoint, record_full_async)
7037 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7038 argument.
7039 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7040 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7041 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7042 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7043 (remote_is_async_p, remote_async): Add 'ops' argument.
7044 (remote_stopped_data_address): Update.
7045 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7046 * target.c (update_current_target)
7047 (find_default_can_async_p, find_default_is_async_p): Update.
7048 (init_dummy_target): Update.
7049 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7050 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7051 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7052 (target_can_async_p, target_is_async_p, target_async)
7053 (target_stopped_by_watchpoint): Update.
7054
e095146b
YQ
70552014-02-19 Yao Qi <yao@codesourcery.com>
7056
7057 PR gdb/16220
7058 * gdbarch.sh: Remove startup_gdbarch.
7059 * gdbarch.c: Regenerated.
7060 * gdbarch.h: Likewise.
7061
bc3c6b36
KB
70622014-02-17 Kevin Buettner <kevinb@redhat.com>
7063
7064 * rl78-tdep.c (rl78_g10_register_name): New function.
7065 (rl78_return_value): Add g10 support.
7066 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7067 g10.
7068
98dc0167 70692014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
7070
7071 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7072 (SUBDIR_GUILE_SRCS): Ditto.
7073 (scm-gsmob.o): Ditto.
7074
842c05cd
YQ
70752014-02-17 Yao Qi <yao@codesourcery.com>
7076
7077 * gnu-nat.c (ILL_RPC): Declare defined function.
7078
25c0bd04
YQ
70792014-02-17 Yao Qi <yao@codesourcery.com>
7080
7081 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7082 mach_msg_type_number_t.
7083 (gnu_write_inferior): Likewise.
7084
a9a758e3
YQ
70852014-02-17 Yao Qi <yao@codesourcery.com>
7086
7087 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7088 in format string.
7089 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7090 (inf_validate_procs, inf_signal): Likewise.
7091 (S_exception_raise_request): Likewise.
7092 (do_mach_notify_dead_name): Likewise.
7093 (steal_exc_port): Likewise.
7094 (gnu_read_inferior): Change 'copy_count''s type to
7095 mach_msg_type_number_t.
7096 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7097 format string.
7098
bae8023e
TS
70992014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7100
c82f56d9
TS
7101 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7102 flag. Adjust all users; in particular...
7103 (gnu_wait): ..., don't decrement its value in here...
7104 (gnu_create_inferior): ..., and instead set the flag in here,
7105 around the startup_inferior call, and call that one with
7106 START_INFERIOR_TRAPS_EXPECTED.
7107
3398af6a
TS
7108 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7109 (ILL_RPC): ... new macro.
7110 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7111 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7112 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7113 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7114 functions with ILL_RPC macro.
7115 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7116 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7117 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7118 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7119 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7120 (S_proc_getlogin_reply, S_proc_getsid_reply)
7121 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7122 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7123 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7124 (S_proc_getnports_reply, S_proc_is_important_reply)
7125 (S_proc_get_code_reply): New stub functions, generated with
7126 ILL_RPC macro.
7127
d47642c9
TS
7128 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7129 collected the type check structures.
7130
bae8023e
TS
7131 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7132
8a55ffb0
DE
71332014-02-14 Doug Evans <dje@google.com>
7134
7135 * target.c (target_write_partial): Fix result type.
7136
c2853f3d
JM
71372014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7138
7139 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7140 the proper offsets to access fpregset_t.
7141
ac61d2db
SA
71422014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7143
7144 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7145 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7146 * h8300-tdep.c (setmachinelist): Remove global.
7147 * hppa-tdep.c (hppa_sigtramp): Remove global.
7148 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7149 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7150 * ravenscar-thread.c (update_target_observer): Remove global.
7151 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7152
9d2d0b8b
TT
71532014-02-12 Tom Tromey <tromey@redhat.com>
7154
7155 * common/rsp-low.c: Update comments.
7156 * common/rsp-low.h: Update comments.
7157
a7191e8b
TT
71582014-02-12 Tom Tromey <tromey@redhat.com>
7159
7160 * common/rsp-low.c (convert_ascii_to_int): Remove.
7161 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7162
ff0e980e
TT
71632014-02-12 Tom Tromey <tromey@redhat.com>
7164
7165 * common/rsp-low.h (unhexify): Don't declare.
7166 * common/rsp-low.c (unhexify): Remove.
7167
e9371aff
TT
71682014-02-12 Tom Tromey <tromey@redhat.com>
7169
7170 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7171 * common/rsp-low.c (convert_int_to_ascii): Remove.
7172
971dc0b8
TT
71732014-02-12 Tom Tromey <tromey@redhat.com>
7174
7175 * common/rsp-low.h (hexify): Don't declare.
7176 * common/rsp-low.c (hexify): Remove.
7177
0a822afb
TT
71782014-02-12 Tom Tromey <tromey@redhat.com>
7179
7180 * common/rsp-low.c (hexify): Never take strlen of argument.
7181
9f1b45b0
TT
71822014-02-12 Tom Tromey <tromey@redhat.com>
7183
7184 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7185 * remote.c (extended_remote_run, remote_rcmd)
7186 (remote_download_trace_state_variable, remote_save_trace_data)
7187 (remote_set_trace_notes): Update.
7188 * tracepoint.c (encode_source_string, tfile_write_status)
7189 (tfile_write_uploaded_tsv): Update.
7190
9c3d6531
TT
71912014-02-12 Tom Tromey <tromey@redhat.com>
7192
7193 * tracepoint.c: Include rsp-low.h.
7194 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7195 * remote.c: Include rsp-low.h.
7196 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7197 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7198 (remote_unescape_input): Move to common/rsp-low.c.
7199 * common/rsp-low.h: New file.
7200 * common/rsp-low.c: New file.
7201 * Makefile.in (SFILES): Add common/rsp-low.c.
7202 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7203 (COMMON_OBS): Add rsp-low.o.
7204 (rsp-low.o): New target.
7205
01fd3ea5
TT
72062014-02-12 Tom Tromey <tromey@redhat.com>
7207
7208 * utils.h: Include print-utils.h.
7209 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7210 (int_string, core_addr_to_string, core_addr_to_string_nz)
7211 (hex_string, hex_string_custom): Don't declare.
7212 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7213 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7214 (hex_string_custom, int_string, core_addr_to_string)
7215 (core_addr_to_string_nz, host_address_to_string): Move to
7216 common/print-utils.c.
7217 * common/print-utils.h: New file.
7218 * common/print-utils.c: New file
7219 * Makefile.in (SFILES): Add common/print-utils.c.
7220 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7221 (COMMON_OBS): Add print-utils.o.
7222 (print-utils.o): New target.
7223
9fb50108
TT
72242014-02-12 Tom Tromey <tromey@redhat.com>
7225
7226 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7227
0548b5db
MK
72282014-02-12 Mark Kettenis <kettenis@gnu.org>
7229
7230 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7231
493443a4
MK
72322014-02-12 Mark Kettenis <kettenis@gnu.org>
7233
7234 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7235 if a PT_IO ptrace request returns sucessfully but indicates that 0
7236 bytes were transferred.
7237
706d0883
PA
72382014-02-12 Pedro Alves <palves@redhat.com>
7239 Kevin Buettner <kevinb@redhat.com>
7240
7241 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7242 TYPE_INSTANCE_FLAG_CODE_SPACE.
7243
5caa2f0b
PA
72442014-02-12 Pedro Alves <palves@redhat.com>
7245
7246 * h8300-tdep.c (pseudo_from_raw_register)
7247 (raw_from_pseudo_register): New functions.
7248 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7249 them.
7250
76fd5f74
PA
72512014-02-12 Pedro Alves <palves@redhat.com>
7252
7253 * h8300-tdep.c (h8300_register_sim_regno): New function.
7254 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7255 gdbarch_register_sim_regno hook.
7256
8f008406
SA
72572014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7258
7259 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7260
195abc10
SA
72612014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7262
7263 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7264
93ffa5b9
MK
72652014-02-12 Mark Kettenis <kettenis@gnu.org>
7266
7267 * obsd-tdep.h (obsd_init_abi): New prototype.
7268 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7269 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7270 (obsd_init_abi): New functions.
7271 * i386obsd-tdep.c: Include "obsd-tdep.h".
7272 (i386obsd_init_abi): Call obsd_init_abi.
7273 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7274 (amd64obsd_init_abi): Call obsd_init_abi.
7275 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7276 obsd-tdep.c to gdb_target_obs.
7277
49caec94
JM
72782014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7279
7280 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7281 double float arguments to 16-byte in the argument slots.
7282
e1402065
DE
72832014-02-11 Doug Evans <xdje42@gmail.com>
7284
7285 * configure.ac: Don't crash if pkg-config is not found and guile
7286 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7287 in guile checks.
7288 * configure: Regenerate.
7289
edcc890f
YQ
72902014-02-11 Yao Qi <yao@codesourcery.com>
7291
7292 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7293 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7294 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7295 * gnu-nat.c (gnu_xfer_memory): Likewise.
7296 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7297 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7298 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7299 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7300
9b409511
YQ
73012014-02-11 Yao Qi <yao@codesourcery.com>
7302
7303 * target.h (enum target_xfer_error): Rename to ...
7304 (enum target_xfer_status): ... it. New. All users updated.
7305 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7306 New.
7307 (TARGET_XFER_STATUS_ERROR_P): New macro.
7308 (target_xfer_error_to_string): Remove declaration.
7309 (target_xfer_status_to_string): Declare.
7310 (target_xfer_partial_ftype): Adjust it.
7311 (struct target_ops) <to_xfer_partial>: Return
7312 target_xfer_status. Add argument xfered_len. Update
7313 comments.
7314 * target.c (target_xfer_error_to_string): Rename to ...
7315 (target_xfer_status_to_string): ... it. New. All callers
7316 updated.
7317 (target_read_live_memory): Likewise. Call target_xfer_partial
7318 instead of target_read.
7319 (memory_xfer_live_readonly_partial): Return
7320 target_xfer_status. Add argument xfered_len.
7321 (raw_memory_xfer_partial): Likewise.
7322 (memory_xfer_partial_1): Likewise.
7323 (memory_xfer_partial): Likewise.
7324 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7325 properly. Update debug message.
7326 (default_xfer_partial, current_xfer_partial): Likewise.
7327 (target_write_partial): Likewise.
7328 (target_read_partial): Likewise. All callers updated.
7329 (read_whatever_is_readable): Likewise.
7330 (target_write_with_progress): Likewise.
7331 (target_read_alloc_1): Likewise.
7332
7333 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7334 * auxv.c (procfs_xfer_auxv): Likewise.
7335 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7336 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7337 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7338 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7339 * corefile.c (read_memory): Adjust.
7340 * corelow.c (core_xfer_partial): Likewise.
7341 * ctf.c (ctf_xfer_partial): Likewise.
7342 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7343 updated.
7344 (darwin_xfer_partial): Likewise.
7345 * exec.c (section_table_xfer_memory_partial): Likewise. All
7346 callers updated.
7347 (exec_xfer_partial): Likewise.
7348 * exec.h (section_table_xfer_memory_partial): Update
7349 declaration.
7350 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7351 negative.
7352 (gnu_xfer_partial): Likewise.
7353 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7354 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7355 (ia64_hpux_xfer_solib_got): Likewise.
7356 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7357 type of 'partial_len' to ULONGEST.
7358 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7359 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7360 (linux_nat_xfer_partial): Likewise.
7361 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7362 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7363 * monitor.c (monitor_xfer_memory): Likewise.
7364 (monitor_xfer_partial): Likewise.
7365 * procfs.c (procfs_xfer_partial): Likewise.
7366 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7367 * record-full.c (record_full_xfer_partial): Likewise.
7368 (record_full_core_xfer_partial): Likewise.
7369 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7370 (gdbsim_xfer_partial): Likewise.
7371 * remote.c (remote_write_bytes_aux): Likewise. All callers
7372 updated.
7373 (remote_write_bytes, remote_read_bytes): Likewise. All
7374 callers updated.
7375 (remote_flash_erase): Likewise. All callers updated.
7376 (remote_write_qxfer): Likewise. All callers updated.
7377 (remote_read_qxfer): Likewise. All callers updated.
7378 (remote_xfer_partial): Likewise.
7379 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7380 (rs6000_xfer_shared_libraries): Likewise.
7381 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7382 (sol_thread_xfer_partial): Likewise.
7383 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7384 (sparc_xfer_partial): Likewise.
7385 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7386 updated.
7387 (spu_xfer_partial): Likewise.
7388 * spu-multiarch.c (spu_xfer_partial): Likewise.
7389 * tracepoint.c (tfile_xfer_partial): Likewise.
7390 * windows-nat.c (windows_xfer_memory): Likewise.
7391 (windows_xfer_shared_libraries): Likewise.
7392 (windows_xfer_partial): Likewise.
7393 * valprint.c: Replace 'target_xfer_error' with
7394 'target_xfer_status' in comments.
7395
a8e63083
JB
73962014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7397
7398 Checked in by Joel Brobecker <brobecker@adacore.com>.
7399 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7400
e86b67d3
JB
74012014-02-11 Joel Brobecker <brobecker@adacore.com>
7402
7403 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7404 function parameters.
7405
4b7d1f7f
WN
74062014-02-10 Will Newton <will.newton@linaro.org>
7407
7408 * elfread.c (elf_rel_plt_read): Look for a .got section if
7409 looking up .got.plt fails.
7410 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7411 on address passed to elf_gnu_ifunc_record_cache.
7412 (elf_gnu_ifunc_resolve_addr): Likewise.
7413 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7414
961842b2
JM
74152014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7416
7417 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7418 (X_RETTURN): New macro.
7419 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7420
7421 * sparc64-tdep.c (sparc64_init_abi): Hook
7422 sparc_in_function_epilogue_p.
7423
3f03e7b1
GB
74242014-02-10 Gary Benson <gbenson@redhat.com>
7425
7426 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7427 Rename name_matcher to symbol_matcher.
7428
96f861ef
GB
74292014-02-10 Gary Benson <gbenson@redhat.com>
7430
7431 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7432 Use expand_symtabs_file_matcher_ftype and
7433 expand_symtabs_symbol_matcher_ftype.
7434
ee01b665
JB
74352014-02-10 Joel Brobecker <brobecker@adacore.com>
7436
7437 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7438 (struct ada_symbol_cache): New.
7439 (ada_free_symbol_cache): Forward declare.
7440 (struct ada_pspace_data): New.
7441 (ada_pspace_data_handle): New static global.
7442 (get_ada_pspace_data, ada_pspace_data_cleanup)
7443 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7444 (cache_space, cache): Delete, now folded inside struct
7445 ada_pspace_data.
7446 (ada_get_symbol_cache): New function.
7447 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7448 implementation.
7449 (_initialize_ada_language): Remove initialization of cache_space.
7450 Move call to observer_attach_inferior_exit up, grouping it
7451 with the other observer registrations inside this function.
7452 Rename command to be more general. Add call to
7453 register_program_space_data_with_cleanup.
7454
143adbbf
JB
74552014-02-10 Joel Brobecker <brobecker@adacore.com>
7456
7457 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7458 ada_new_objfile_observer.
7459 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7460 (_initialize_tasks): Update uses of ada_new_objfile_observer
7461 and ada_tasks_normal_stop_observer.
7462
aa4fb036
JB
74632014-02-10 Joel Brobecker <brobecker@adacore.com>
7464
7465 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7466 returned by the 'Length attribute to integer.
7467
9dee8cc6
JB
74682014-02-10 Joel Brobecker <brobecker@adacore.com>
7469
7470 * ada-lang.c (_initialize_ada_language): Initialize
7471 cache_space obstack.
7472
3d9434b5
JB
74732014-02-10 Joel Brobecker <brobecker@adacore.com>
7474
7475 * ada-lang.c (HASH_SIZE): New macro.
7476 (struct cache_entry): New type.
7477 (cache_space, cache): New static globals.
7478 (ada_clear_symbol_cache, find_entry): New functions.
7479 (lookup_cached_symbol, cache_symbol): Implement.
7480 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7481 (_initialize_ada_language): Attach ada_new_objfile_observer
7482 and ada_free_objfile_observer.
7483
f0c5f9b2
JB
74842014-02-10 Joel Brobecker <brobecker@adacore.com>
7485
7486 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7487 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7488 struct block * parameter.
7489 (ada_lookup_symbol_list_worker): Constify local variable "block".
7490 Remove cast which is no longer necessary.
7491
ed3ef339
DE
74922014-02-10 Doug Evans <xdje42@gmail.com>
7493
7494 Add Guile as an extension language.
7495 * NEWS: Mention Guile scripting.
7496 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7497 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7498 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7499 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7500 (CLIBS): Add GUILE_LIBS.
7501 (install-guile): New rule.
7502 (guile.o): New rule.
7503 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7504 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7505 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7506 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7507 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7508 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7509 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7510 * configure.ac: New option --with-guile.
7511 * configure: Regenerate.
7512 * config.in: Regenerate.
7513 * auto-load.c: Remove #include "python/python.h". Add #include
7514 "gdb/section-scripts.h".
7515 (source_section_scripts): Handle Guile scripts.
7516 (_initialize_auto_load): Add name of Guile objfile script to
7517 scripts-directory help text.
7518 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7519 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7520 (struct breakpoint): New member scm_bp_object.
7521 * defs.h (enum command_control_type): New value guile_control.
7522 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7523 "extension.h".
7524 (show_user): Update comment.
7525 (_initialize_cli_cmds): Update help text for "show user". Update help
7526 text for max-user-call-depth.
7527 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7528 "extension.h".
7529 (multi_line_command_p): Add guile_control.
7530 (print_command_lines): Handle guile_control.
7531 (execute_control_command, recurse_read_control_structure): Ditto.
7532 (process_next_line): Recognize "guile" commands.
7533 * disasm.c (gdb_disassemble_info): Make non-static.
7534 * disasm.h: #include "dis-asm.h".
7535 (struct gdbarch): Add forward decl.
7536 (gdb_disassemble_info): Declare.
7537 * extension.c: #include "guile/guile.h".
7538 (extension_languages): Add guile.
7539 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7540 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7541 * gdbtypes.c (get_unsigned_type_max): New function.
7542 (get_signed_type_minmax): New function.
7543 * gdbtypes.h (get_unsigned_type_max): Declare.
7544 (get_signed_type_minmax): Declare.
7545 * guile/README: New file.
7546 * guile/guile-internal.h: New file.
7547 * guile/guile.c: New file.
7548 * guile/guile.h: New file.
7549 * guile/scm-arch.c: New file.
7550 * guile/scm-auto-load.c: New file.
7551 * guile/scm-block.c: New file.
7552 * guile/scm-breakpoint.c: New file.
7553 * guile/scm-disasm.c: New file.
7554 * guile/scm-exception.c: New file.
7555 * guile/scm-frame.c: New file.
7556 * guile/scm-gsmob.c: New file.
7557 * guile/scm-iterator.c: New file.
7558 * guile/scm-lazy-string.c: New file.
7559 * guile/scm-math.c: New file.
7560 * guile/scm-objfile.c: New file.
7561 * guile/scm-ports.c: New file.
7562 * guile/scm-pretty-print.c: New file.
7563 * guile/scm-safe-call.c: New file.
7564 * guile/scm-string.c: New file.
7565 * guile/scm-symbol.c: New file.
7566 * guile/scm-symtab.c: New file.
7567 * guile/scm-type.c: New file.
7568 * guile/scm-utils.c: New file.
7569 * guile/scm-value.c: New file.
7570 * guile/lib/gdb.scm: New file.
7571 * guile/lib/gdb/boot.scm: New file.
7572 * guile/lib/gdb/experimental.scm: New file.
7573 * guile/lib/gdb/init.scm: New file.
7574 * guile/lib/gdb/iterator.scm: New file.
7575 * guile/lib/gdb/printing.scm: New file.
7576 * guile/lib/gdb/types.scm: New file.
7577 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7578 (VPATH): Add $(GUILE_SRCDIR).
7579 (GUILE_DIR): New variable.
7580 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7581 (all): Add stamp-guile dependency.
7582 (stamp-guile): New rule.
7583 (clean-guile, install-guile, uninstall-guile): New rules.
7584 (install-only): Add install-guile dependency.
7585 (uninstall): Add uninstall-guile dependency.
7586 (clean): Add clean-guile dependency.
7587
ac020ec5
DE
75882014-02-09 Doug Evans <xdje42@gmail.com>
7589
7590 Revert this patch (which I approved, mea culpa).
7591
7592 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7593
7594 * Makefile.in (all-lib): Remove.
7595 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7596
2a081c59
JK
75972014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 Fix Python stack corruption.
7600 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7601 gdb_py_longest.
7602
0a6bd22d
MK
76032014-02-08 Mark Kettenis <kettenis@gnu.org>
7604
7605 * Makefile.in (all-lib): Remove.
7606 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7607
1a860409
DE
76082014-02-07 Doug Evans <dje@google.com>
7609
7610 * extension-priv.h (extension_language_script_ops): Add comment.
7611 (extension_language_ops): Add comment.
caf5a491 7612 (active_ext_lang_state): Fix typo in comment.
1a860409 7613
d137e6dc
PA
76142014-02-07 Pedro Alves <palves@redhat.com>
7615
0dcb32c3 7616 PR breakpoints/16292
d137e6dc
PA
7617 * infrun.c (handle_signal_stop) <signal arrives while stepping
7618 over a breakpoint>: Switch back to the stepping thread.
7619
ce6d0892
YQ
76202014-02-07 Yao Qi <yao@codesourcery.com>
7621
7622 * target.c (target_xfer_partial): Return zero if LEN is zero.
7623
2ed4b548
YQ
76242014-02-07 Yao Qi <yao@codesourcery.com>
7625
7626 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7627 (ld_so_xfer_auxv): Likewise.
7628 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7629 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7630 * corelow.c (core_xfer_partial): Likewise.
7631 * ctf.c (ctf_xfer_partial): Likewise.
7632 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7633 (darwin_xfer_partial): Likewise.
7634 * exec.c (exec_xfer_partial): Likewise.
7635 * gnu-nat.c (gnu_xfer_partial): Likewise.
7636 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7637 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7638 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7639 * linux-nat.c (linux_xfer_siginfo): Likewise.
7640 (linux_proc_xfer_spu): Likewise.
7641 * procfs.c (procfs_xfer_partial): Likewise.
7642 * record-full.c (record_full_xfer_partial): Likewise.
7643 (record_full_core_xfer_partial): Likewise.
7644 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7645 * remote.c (remote_write_qxfer): Likewise.
7646 (remote_write_qxfer, remote_read_qxfer): Likewise.
7647 (remote_xfer_partial): Likewise.
7648 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7649 (rs6000_xfer_shared_libraries): Likewise.
7650 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7651 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7652 (spu_xfer_partial): Likewise.
7653 * target.c (memory_xfer_partial_1): Likewise.
7654 * tracepoint.c (tfile_xfer_partial): Likewise.
7655 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7656 (windows_xfer_partial): Likewise.
7657
c09f20e4
YQ
76582014-02-07 Yao Qi <yao@codesourcery.com>
7659
7660 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7661 comments.
7662 (core_xfer_shared_libraries_aix): Likewise.
7663 * gdbarch.c, gdbarch.h: Regenerated.
7664 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7665 ULONGEST. Change 'len_avail' type to ULONGEST.
7666 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7667 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7668 declaration.
7669 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7670
8635b3bf
YQ
76712014-02-07 Yao Qi <yao@codesourcery.com>
7672
7673 * corefile.c (memory_error): Get 'exception' from ERR and pass
7674 'exception' to throw_error.
7675
6dddc817
DE
76762014-02-06 Doug Evans <xdje42@gmail.com>
7677
7678 * configure.ac (libpython checking): Remove all but python.o from
7679 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7680 * configure: Regenerate.
7681
7682 * Makefile.in (SFILES): Add extension.c.
7683 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7684 (COMMON_OBS): Add extension.o.
7685 * extension.h: New file.
7686 * extension-priv.h: New file.
7687 * extension.c: New file.
7688
7689 * python/python-internal.h: #include "extension.h".
7690 (gdbpy_auto_load_enabled): Declare.
7691 (gdbpy_apply_val_pretty_printer): Declare.
7692 (gdbpy_apply_frame_filter): Declare.
7693 (gdbpy_preserve_values): Declare.
7694 (gdbpy_breakpoint_cond_says_stop): Declare.
7695 (gdbpy_breakpoint_has_cond): Declare.
7696 (void source_python_script_for_objfile): Delete.
7697 * python/python.c: #include "extension-priv.h".
7698 Delete inclusion of "observer.h".
7699 (extension_language_python): Moved here and renamed from
7700 script_language_python in py-auto-load.c.
7701 Redefined to be of type extension_language_defn.
7702 (python_extension_script_ops): New global.
7703 (python_extension_ops): New global.
7704 (struct python_env): New member previous_active.
7705 (restore_python_env): Call restore_active_ext_lang.
7706 (ensure_python_env): Call set_active_ext_lang.
7707 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7708 New arg extlang.
7709 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7710 New arg extlang.
7711 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7712 New arg extlang.
7713 (gdbpy_eval_from_control_command): Renamed from
7714 eval_python_from_control_command, made static. New arg extlang.
7715 (gdbpy_source_script) Renamed from source_python_script, made static.
7716 New arg extlang.
7717 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7718 result to int. New arg extlang.
7719 (gdbpy_source_objfile_script): Renamed from
7720 source_python_script_for_objfile, made static. New arg extlang.
7721 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7722 static. New args extlang, extlang_printers. Change result type to
7723 "void".
7724 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7725 static. New arg extlang. Rename arg printers to extlang_printers
7726 and change type to ext_lang_type_printers *.
7727 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7728 static. Replace argument arg with extlang, extlang_printers.
7729 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7730 (!HAVE_PYTHON, source_python_script): Delete.
7731 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7732 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7733 (!HAVE_PYTHON, start_type_printers): Delete.
7734 (!HAVE_PYTHON, apply_type_printers): Delete.
7735 (!HAVE_PYTHON, free_type_printers): Delete.
7736 (_initialize_python): Delete call to observer_attach_before_prompt.
7737 (finalize_python): Set/restore active extension language.
7738 (gdbpy_finish_initialization) Renamed from
7739 finish_python_initialization, made static. New arg extlang.
7740 (gdbpy_initialized): New function.
7741 * python/python.h: #include "extension.h". Delete #include
7742 "value.h", "mi/mi-cmds.h".
7743 (extension_language_python): Declare.
7744 (GDBPY_AUTO_FILE_NAME): Delete.
7745 (enum py_bt_status): Moved to extension.h and renamed to
7746 ext_lang_bt_status.
7747 (enum frame_filter_flags): Moved to extension.h.
7748 (enum py_frame_args): Moved to extension.h and renamed to
7749 ext_lang_frame_args.
7750 (finish_python_initialization): Delete.
7751 (eval_python_from_control_command): Delete.
7752 (source_python_script): Delete.
7753 (apply_val_pretty_printer): Delete.
7754 (apply_frame_filter): Delete.
7755 (preserve_python_values): Delete.
7756 (gdbpy_script_language_defn): Delete.
7757 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7758 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7759
7760 * auto-load.c: #include "extension.h".
7761 (GDB_AUTO_FILE_NAME): Delete.
7762 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7763 (script_language_gdb): Delete, moved to extension.c and renamed to
7764 extension_language_gdb.
7765 (source_gdb_script_for_objfile): Delete.
7766 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7767 (loaded_script): Change type of language member to
7768 struct extension_language_defn *.
7769 (init_loaded_scripts_info): Initialize
7770 unsupported_script_warning_printed.
7771 (maybe_add_script): Make static. Change type of language arg to
7772 struct extension_language_defn *.
7773 (clear_section_scripts): Reset unsupported_script_warning_printed.
7774 (auto_load_objfile_script_1): Rewrite to use extension language API.
7775 (auto_load_objfile_script): Make public. Remove support-compiled-in
7776 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7777 (source_section_scripts): Rewrite to use extension language API.
7778 (load_auto_scripts_for_objfile): Rewrite to use
7779 auto_load_scripts_for_objfile.
7780 (collect_matching_scripts_data): Change type of language member to
7781 struct extension_language_defn *.
7782 (auto_load_info_scripts): Change type of language arg to
7783 struct extension_language_defn *.
7784 (unsupported_script_warning_print): New function.
7785 (script_not_found_warning_print): Make static.
7786 (_initialize_auto_load): Rewrite construction of scripts-directory
7787 help.
7788 * auto-load.h (struct objfile): Add forward decl.
7789 (struct script_language): Delete.
7790 (struct auto_load_pspace_info): Add forward decl.
7791 (struct extension_language_defn): Add forward decl.
7792 (maybe_add_script): Delete.
7793 (auto_load_objfile_script): Declare.
7794 (script_not_found_warning_print): Delete.
7795 (auto_load_info_scripts): Update prototype.
7796 (auto_load_gdb_scripts_enabled): Declare.
7797 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7798 auto_load_python_scripts_enabled and made public.
7799 (script_language_python): Delete, moved to python.c.
7800 (gdbpy_script_language_defn): Delete.
7801 (info_auto_load_python_scripts): Update to use
7802 extension_language_python.
7803
7804 * breakpoint.c (condition_command): Replace call to
7805 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7806 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7807 with call to breakpoint_ext_lang_cond_says_stop.
7808 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7809 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7810 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7811 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7812 New arg slang.
7813 (local_setattro): Print name of extension language with existing
7814 stop condition.
7815
7816 * valprint.c (val_print, value_print): Update to call
7817 apply_ext_lang_val_pretty_printer.
7818 * cp-valprint.c (cp_print_value): Update call to
7819 apply_ext_lang_val_pretty_printer.
7820 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7821 (gdbpy_apply_val_pretty_printer): Renamed from
7822 apply_val_pretty_printer. New arg extlang.
7823 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7824
7825 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7826 extension language API.
7827 * cli/cli-script.c (execute_control_command): Update to call
7828 eval_ext_lang_from_control_command.
7829
7830 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7831 enum ext_lang_bt_status values. Update call to
7832 apply_ext_lang_frame_filter.
7833 (mi_cmd_stack_list_locals): Ditto.
7834 (mi_cmd_stack_list_args): Ditto.
7835 (mi_cmd_stack_list_variables): Ditto.
7836 * mi/mi-main.c: Delete #include "python/python-internal.h".
7837 Add #include "extension.h".
7838 (mi_cmd_list_features): Replace reference to python internal variable
7839 gdb_python_initialized with call to ext_lang_initialized_p.
7840
7841 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7842 Update to use enum ext_lang_frame_args. Update to call
7843 apply_ext_lang_frame_filter.
7844 * python/py-framefilter.c (extract_sym): Update to use enum
7845 ext_lang_bt_status.
7846 (extract_value, py_print_type, py_print_value): Ditto.
7847 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7848 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7849 (py_print_frame): Ditto.
7850 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7851 New arg extlang. Update to use enum ext_lang_bt_status.
7852
7853 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7854 finish_python_initialization. Replace with call to
7855 finish_ext_lang_initialization.
7856
7857 * typeprint.c (do_free_global_table): Update to call
7858 free_ext_lang_type_printers.
7859 (create_global_typedef_table): Update to call
7860 start_ext_lang_type_printers.
7861 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7862 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7863 (type_print_options): Change type of global_printers from "void *"
7864 to "struct ext_lang_type_printers *".
7865
7866 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7867 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7868 (gdbpy_preserve_values): Renamed from preserve_python_values.
7869 New arg extlang.
7870 (!HAVE_PYTHON, preserve_python_values): Delete.
7871
7872 * utils.c (quit_flag): Delete, moved to extension.c.
7873 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7874 extension.c.
7875
7876 * eval.c: Delete #include "python/python.h".
7877 * main.c: Delete #include "python/python.h".
7878
7879 * defs.h: Update comment.
7880
6af79985
JB
78812014-02-06 Joel Brobecker <brobecker@adacore.com>
7882
7883 GDB 7.7 released.
7884
12c5175d
MK
78852014-02-05 Mark Kettenis <kettenis@gnu.org>
7886
7887 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7888 defined.
7889
8dc5b319
YQ
78902014-02-05 Yao Qi <yao@codesourcery.com>
7891
7892 * remote.c (remote_pass_signals): Remove local 'buf' and use
7893 rs->buf.
7894 (remote_program_signals): Likewise.
7895
de7b2893
YQ
78962014-02-05 Yao Qi <yao@codesourcery.com>
7897
7898 * ctf.c: Include "inferior.h" and "gdbthread.h".
7899 (CTF_PID): A new macro.
7900 (ctf_open): Call inferior_appeared and add_thread_silent.
7901 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7902 (ctf_thread_alive): New function.
7903 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7904
66d032ac
YQ
79052014-02-05 Yao Qi <yao@codesourcery.com>
7906
7907 Revert this patch:
7908
7909 2013-05-24 Yao Qi <yao@codesourcery.com>
7910
7911 * tracepoint.c (TFILE_PID): Remove.
7912 (tfile_open): Don't add thread and inferior.
7913 (tfile_close): Don't set 'inferior_ptid'. Don't call
7914 exit_inferior_silent.
7915 (tfile_thread_alive): Remove.
7916 (init_tfile_ops): Don't set field 'to_thread_alive' of
7917 tfile_ops.
7918
f4ccffad
CE
79192014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7920
7921 * remote.c (remote_start_remote): Call remote_check_symbols even
7922 if only symbol-file (not file) has been given.
7923
591a12a1
UW
79242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7925
7926 * gdbarch.sh (skip_entrypoint): New callback.
7927 * gdbarch.c, gdbarch.h: Regenerate.
7928 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7929 * infrun.c (fill_in_stop_func): Likewise.
7930 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7931 (ppc_elfv2_elf_make_msymbol_special): New function.
7932 (ppc_elfv2_skip_entrypoint): Likewise.
7933 (ppc_linux_init_abi): Install them for ELFv2.
7934
cc0e89c5
UW
79352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7936
7937 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7938 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7939 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7940 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7941 structures returned in GPRs.
7942
52f548e4
UW
79432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7944
7945 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7946 offset to the stack parameter list for the ELFv2 ABI.
7947
d4094b6a
UW
79482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7949
7950 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7951 set_gdbarch_convert_from_func_ptr_addr and
7952 set_gdbarch_elf_make_msymbol_special for ELFv1.
7953 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7954 function descriptors on ELFv1.
7955 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7956 set up r12 at function entry.
7957
cd453cd0
UW
79582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7959
7960 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7961 (struct gdbarch_tdep): New member elf_abi.
7962
7963 * rs6000-tdep.c: Include "elf/ppc64.h".
7964 (rs6000_gdbarch_init): Detect ELF ABI version.
7965
0ff3e01f
UW
79662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7967
7968 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7969 within a register pair holding a DFP 128-bit value on little-endian.
7970 (ppc64_sysv_abi_return_value_base): Likewise.
7971 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7972 (dfp_pseudo_register_write): Likewise.
7973
5b757e5d
UW
79742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7975
7976 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7977 offset on little-endian when passing _Decimal32.
7978 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7979
084ee545
UW
79802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7981
7982 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7983 of the overlapped FP register within the VSX register on little-
7984 endian platforms.
7985 (efpr_pseudo_register_write): Likewise.
7986
d63167af
UW
79872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7988
7989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7990 offset on little-endian when passing small structures.
7991
e765b44c
UW
79922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7993
7994 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7995 (struct ppc64_sysv_argpos): New data structure.
7996 (ppc64_sysv_abi_push_float): Remove.
7997 (ppc64_sysv_abi_push_val): New function.
7998 (ppc64_sysv_abi_push_integer): Likewise.
7999 (ppc64_sysv_abi_push_freg): Likewise.
8000 (ppc64_sysv_abi_push_vreg): Likewise.
8001 (ppc64_sysv_abi_push_param): Likewise.
8002 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8003 (ppc64_sysv_abi_return_value_base): New function.
8004 (ppc64_sysv_abi_return_value): Refactor to use it.
8005
36c24d95
UW
80062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8007
8008 * NEWS: Document new target powerpc64le-*-linux*.
8009
26fd9228
MK
80102014-02-04 Mark Kettenis <kettenis@gnu.org>
8011
8012 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8013 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8014 core dumps.
8015 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8016 register set used in ELF core dumps. Add floating-point register set.
8017
c5bb7362
KB
80182014-02-03 Kevin Buettner <kevinb@redhat.com>
8019
8020 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8021 dwarf2_to_gdb[] table using symbolic constants. Adjust
8022 penultimate entry from number representing the PC register
8023 to symbolic constant representing the MDR register. Add
8024 constant for the PC register to the end of the table.
8025
af09351e
MK
80262014-02-03 Mark Kettenis <kettenis@gnu.org>
8027
8028 * bsd-kvm.c: Include <sys/param.h>
8029
8507e05d
MK
80302014-02-03 Mark Kettenis <kettenis@gnu.org>
8031
8032 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8033
ae56bfb8
JB
80342014-01-31 Joel Brobecker <brobecker@adacore.com>
8035
8036 * ada-lang.h (clear_ada_sym_cache): Delete.
8037
718ee4dc
UW
80382014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
8039
8040 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8041
401e27fd
JM
80422014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8043
8044 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8045 the sigreturn register save area only if the syscall is
8046 sigreturn.
8047
a7c88acd
JB
80482014-01-29 Joel Brobecker <brobecker@adacore.com>
8049
8050 * valops.c (value_slice): Minor reformatting.
8051
fa0079ea
UW
80522014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
8053
8054 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8055
c6044dd1
JB
80562014-01-28 Joel Brobecker <brobecker@adacore.com>
8057
8058 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8059 New static globals.
8060 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8061 (ada_ignore_descriptive_types_p): New static global.
8062 (find_parallel_type_by_descriptive_type): Return immediately
8063 if ada_ignore_descriptive_types_p is set.
8064 (_initialize_ada_language): Register new commands "maintenance
8065 set ada", "maintenance show ada", "maintenance set ada
8066 ignore-descriptive-types" and "maintenance show ada
8067 ignore-descriptive-types".
8068 * NEWS: Add entry for new "maint ada set/show
8069 ignore-descriptive-types" commands.
8070
568e808b
MM
80712014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8072
8073 * record-btrace.c (record_btrace_close): Call btrace_teardown
8074 for all threads.
8075
467d141b
JB
80762014-01-27 Joel Brobecker <brobecker@adacore.com>
8077
8078 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8079 "ui-out.h".
8080
fb151210
JB
80812014-01-27 Joel Brobecker <brobecker@adacore.com>
8082
8083 * ada-typeprint (type_is_full_subrange_of_target_type):
8084 New function.
8085 (print_range): Add parameter bounds_prefered_p. If not set,
8086 try printing range types using the name of their base type.
8087 (print_range_type): Add parameter bounds_prefered_p.
8088 Use it in call to print_range.
8089 (print_array_type, ada_print_type): Update calls to print_range
8090 and print_range_type.
8091
aba02109
JB
80922014-01-27 Joel Brobecker <brobecker@adacore.com>
8093
8094 * ada-typeprint.c (print_array_type, print_choices, print_range)
8095 (print_range_bound, print_dynamic_range_bound, print_range_type):
8096 Remove declaration.
8097
e62e21fd
JB
80982014-01-27 Joel Brobecker <brobecker@adacore.com>
8099
8100 * ada-typeprint.c (print_range): Add missing empty line
8101 after local declaration.
8102
859cf5d1
JB
81032014-01-27 Joel Brobecker <brobecker@adacore.com>
8104
8105 * ada-valprint.c (print_optional_low_bound): Get index_type's
8106 target type for as long as it is a TYPE_CODE_RANGE.
8107
25790f6f
JB
81082014-01-27 Joel Brobecker <brobecker@adacore.com>
8109
8110 * procfs.c (procfs_make_note_section): Remove assertion and
8111 associated comment.
8112
6b6aa828
YQ
81132014-01-24 Yao Qi <yao@codesourcery.com>
8114
8115 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8116 * corelow.c (get_core_siginfo): Likewise.
8117
5d6df423
YQ
81182014-01-24 Yao Qi <yao@codesourcery.com>
8119
8120 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8121 ULONGEST. Don't check 'len' is negative.
8122 (remote_write_bytes): Change type of 'len' to ULONGEST.
8123
83b645b8
TT
81242014-01-23 Tom Tromey <tromey@redhat.com>
8125
8126 PR python/16485:
8127 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8128 Handle exception from frame.block.
8129 (FrameVars.fetch_frame_locals): Likewise.
8130
0740f8d8
TT
81312014-01-23 Tom Tromey <tromey@redhat.com>
8132
8133 PR python/16487:
8134 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8135 on a NULL pointer. Move "goto error" to correct place.
8136
21909fa1
TT
81372014-01-23 Tom Tromey <tromey@redhat.com>
8138
8139 PR python/16491:
8140 * python/py-framefilter.c (apply_frame_filter): Call
8141 ensure_python_env after computing gdbarch.
8142
17fde6d0
YQ
81432014-01-23 Yao Qi <yao@codesourcery.com>
8144
8145 * target.c (raw_memory_xfer_partial): Change argument type
8146 from void * to gdb_byte *.
8147 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8148
87ce2a04
DE
81492014-01-22 Doug Evans <dje@google.com>
8150
8151 New gdbserver option --debug-format=timestamp.
8152 * NEWS: Mention it.
8153
237b092b
AA
81542014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8155
8156 * syscalls/s390x-linux.xml: New file.
8157 * syscalls/s390-linux.xml: New file.
8158 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8159 (XML_SYSCALL_FILENAME_S390X): Likewise.
8160 (op_svc): New enum value for SVC opcode.
8161 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8162 (s390_linux_get_syscall_number): New function.
8163 (s390_gdbarch_init): Register '*get_syscall_number' and the
8164 syscall xml file name.
8165 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8166 "s390-linux.xml" and "s390x-linux.xml".
8167 * NEWS: Announce new feature.
8168
54bff650
BS
81692014-01-22 Baruch Siach <baruch@tkos.co.il>
8170
8171 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8172
14e361d7
PA
81732014-01-22 Pedro Alves <palves@redhat.com>
8174
8175 * xtensa-config.c: Include defs.h.
8176
46bbb3ed
JB
81772014-01-22 Joel Brobecker <brobecker@adacore.com>
8178
8179 * common/common-utils.h: Add "ARI:" comment beside __func__
8180 reference.
8181
3a80edfc
JB
81822014-01-22 Joel Brobecker <brobecker@adacore.com>
8183
8184 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8185 documentation a bit.
8186
4869db5e
RM
81872014-01-21 Roland McGrath <mcgrathr@google.com>
8188
8189 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8190 * configure: Regenerate.
8191 * aclocal.m4: Regenerate.
8192 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8193 New substituted variables.
8194 (install-strip): New target.
8195 (INSTALL_SCRIPT): New substituted variable.
8196 (FLAGS_TO_PASS): Add it.
8197 (install-only): Use $(INSTALL_SCRIPT) rather than
8198 $(INSTALL_PROGRAM) for gcore.
8199
9ea4267d
TT
82002014-01-20 Tom Tromey <tromey@redhat.com>
8201
8202 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8203 together.
8204
1f2bdf09
TT
82052014-01-20 Tom Tromey <tromey@redhat.com>
8206
8207 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8208 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8209 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8210 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8211 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8212 (struct cmd_list_element) <flags>: Remove.
8213 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8214 doc_allocated>: New fields.
8215 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8216 bitfields.
8217 * maint.c (maintenance_do_deprecate): Update.
8218 * top.c (execute_command): Update.
8219
e671835b
BS
82202014-01-20 Baruch Siach <baruch@tkos.co.il>
8221
8222 * xtensa-linux-nat.c: Include asm/ptrace.h.
8223
50367cd2
IB
82242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8225
8226 * Makefile.in (SFILES): Add d-support.c.
8227 (COMMON_OBS): Add d-support.o.
8228 * d-lang.h (d_parse_symbol): Add comment, now defined in
8229 d-support.c.
8230 * d-lang.c (parse_call_convention)
8231 (parse_attributes, parse_function_types)
8232 (parse_function_args, parse_type, parse_identifier)
8233 (call_convention_p, d_parse_symbol): Move functions to ...
8234 * d-support.c: ... New file.
8235
ec9f644a
IB
82362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8237
8238 * d-lang.h (d_parse_symbol): Add declaration.
8239 * d-lang.c (extract_identifiers)
8240 (extract_type_info): Remove functions.
8241 (parse_call_convention, parse_attributes)
8242 (parse_function_types, parse_function_args)
8243 (parse_type, parse_identifier, call_convention_p)
8244 (d_parse_symbol): New functions.
8245 (d_demangle): Use d_parse_symbol to demangle D symbols.
8246
94b1b47e
IB
82472014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8248
8249 * d-lang.h (struct builtin_d_type): New data type.
8250 (builtin_d_type): Add declaration.
8251 * d-lang.c (d_language_arch_info, build_d_types)
8252 (builtin_d_type): New functions.
8253 (enum d_primitive_types): New data type.
8254 (d_language_defn): Change c_language_arch_info to
8255 d_language_arch_info.
8256 (d_type_data): New static variable.
8257 (_initialize_d_language): Initialize d_type_data.
8258
63778547
IB
82592014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8260
8261 * d-lang.h (d_main_name): Add declaration.
8262 * d-lang.c (d_main_name): New function.
8263 * symtab.c (find_main_name): Add call to d_main_name.
8264
3271ba66
IB
82652014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8266
8267 * d-lang.c (d_language_defn): Change macro_expansion_c to
8268 macro_expansion_no.
8269
d36b3012
IB
82702014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8271
8272 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8273
c90a6fb7
SDJ
82742014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8275
8276 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8277 gdb_exception" declaration.
8278 * remote.c (getpkt_or_notif_sane): Likewise.
8279
749234e5
DE
82802014-01-17 Doug Evans <dje@google.com>
8281
8282 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8283 function, contents of dirnames_to_char_ptr_vec_append moved here.
8284 (delim_string_to_char_ptr_vec): New function.
8285 (dirnames_to_char_ptr_vec_append): Rewrite.
8286 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8287
df049a58
DE
82882014-01-17 Doug Evans <dje@google.com>
8289
8290 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8291 and moved here ...
8292 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8293 #include "common-utils.h".
8294 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8295 * common/vec.h (VEC_ASSERT_PASS): Update.
8296 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8297 (MACH_CHECK_ERROR): Update.
8298
69f97648
SM
82992014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8300
8301 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8302 comments.
8303 * gdbarch.h: Regenerate.
8304
98b1cfdc
TT
83052014-01-16 Tom Tromey <tromey@redhat.com>
8306
8307 * value.c (struct value) <regnum>: Move earlier.
8308
77a19445
TT
83092014-01-16 Tom Tromey <tromey@redhat.com>
8310
8311 * remote.c (extended_remote_create_inferior): Rename from
8312 extended_remote_create_inferior_1. Add "ops" argument. Remove
8313 old implementation.
8314
62261490
PA
83152014-01-16 Pedro Alves <palves@redhat.com>
8316
8317 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8318 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8319 the backchain.
8320
4d65956b
DE
83212014-01-16 Doug Evans <dje@google.com>
8322
8323 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8324
52834460
MM
83252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8326
8327 * btrace.h (btrace_thread_flag): New.
8328 (struct btrace_thread_info) <flags>: New.
8329 * record-btrace.c (record_btrace_resume_thread)
8330 (record_btrace_find_thread_to_move, btrace_step_no_history)
8331 (btrace_step_stopped, record_btrace_start_replaying)
8332 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8333 (record_btrace_find_resume_thread): New.
8334 (record_btrace_resume, record_btrace_wait): Extend.
8335 (record_btrace_can_execute_reverse): New.
8336 (record_btrace_open): Fail in non-stop mode.
8337 (record_btrace_set_replay): Split into this, ...
8338 (record_btrace_stop_replaying): ... this, ...
8339 (record_btrace_clear_histories): ... and this.
8340 (init_record_btrace_ops): Init to_can_execute_reverse.
8341 * NEWS: Announce it.
8342
118e6252
MM
83432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8344
8345 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8346 (forward_target_decr_pc_after_break)
8347 (target_decr_pc_after_break): New.
8348 * target.c (forward_target_decr_pc_after_break)
8349 (target_decr_pc_after_break): New.
8350 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8351 instead of gdbarch_decr_pc_after_break.
8352 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8353 instead of gdbarch_decr_pc_after_break.
8354 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8355 instead of gdbarch_decr_pc_after_break.
8356 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8357 instead of gdbarch_decr_pc_after_break.
8358 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8359 instead of gdbarch_decr_pc_after_break.
8360 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8361 instead of gdbarch_decr_pc_after_break.
8362
6e07b1d2
MM
83632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8364
8365 * btrace.c: Include regcache.h.
8366 (btrace_add_pc): New.
8367 (btrace_enable): Call btrace_add_pc.
8368 (btrace_is_empty): New.
8369 * btrace.h (btrace_is_empty): New.
8370 * record-btrace.c (require_btrace, record_btrace_info): Call
8371 btrace_is_empty.
8372
969c39fb
MM
83732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8374
8375 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8376 Support delta reads.
8377 (linux_disable_btrace): Change return type.
8378 * common/linux-btrace.h (linux_read_btrace): Change parameters
8379 and return type to allow error reporting. Update users.
8380 (linux_disable_btrace): Change return type. Update users.
8381 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8382 New.
8383 (btrace_error): New.
8384 (btrace_block) <begin>: Comment on BEGIN == 0.
8385 * btrace.c (btrace_compute_ftrace): Start from the end of
8386 the current trace.
8387 (btrace_stitch_trace, btrace_clear_history): New.
8388 (btrace_fetch): Read delta trace, return if replaying.
8389 (btrace_clear): Move clear history code to btrace_clear_history.
8390 (parse_xml_btrace): Throw an error if parsing failed.
8391 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8392 and return type to allow error reporting.
8393 (target_read_btrace): Change parameters and return type to allow
8394 error reporting.
8395 * target.c (target_read_btrace): Update.
8396 * remote.c (remote_read_btrace): Support delta reads. Pass
8397 errors on.
8398 * NEWS: Announce it.
8399
0b722aec
MM
84002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8401
8402 * record.h (record_btrace_frame_unwind)
8403 (record_btrace_tailcall_frame_unwind): New declarations.
8404 * dwarf2-frame: Include record.h
8405 (dwarf2_frame_cfa): Throw an error for btrace frames.
8406 * record-btrace.c: Include hashtab.h.
8407 (btrace_get_bfun_name): New.
8408 (btrace_call_history): Call btrace_get_bfun_name.
8409 (struct btrace_frame_cache): New.
8410 (bfcache): New.
8411 (bfcache_hash, bfcache_eq, bfcache_new): New.
8412 (btrace_get_frame_function): New.
8413 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8414 (record_btrace_frame_this_id): Compute own id.
8415 (record_btrace_frame_prev_register): Provide PC, throw_error
8416 for all other registers.
8417 (record_btrace_frame_sniffer): Detect btrace frames.
8418 (record_btrace_tailcall_frame_sniffer): New.
8419 (record_btrace_frame_dealloc_cache): New.
8420 (record_btrace_frame_unwind): Add new functions.
8421 (record_btrace_tailcall_frame_unwind): New.
8422 (_initialize_record_btrace): Allocate cache.
8423 * btrace.c (btrace_clear): Call reinit_frame_cache.
8424 * NEWS: Announce it.
8425
066ce621
MM
84262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8427
8428 * record-btrace.c (record_btrace_set_replay)
8429 (record_btrace_goto_begin, record_btrace_goto_end)
8430 (record_btrace_goto): New.
8431 (init_record_btrace_ops): Initialize them.
8432 * NEWS: Announce it.
8433
e2887aa3
MM
84342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8435
8436 * record-btrace.c (record_btrace_find_new_threads)
8437 (record_btrace_thread_alive): New.
8438 (init_record_btrace_ops): Initialize to_find_new_threads and
8439 to_thread_alive.
8440
b2f4cfde
MM
84412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8442
8443 * record-btrace.c (record_btrace_resume): New.
8444 (record_btrace_wait): New.
8445 (init_record_btrace_ops): Initialize to_wait and to_resume.
8446
633785ff
MM
84472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8448
8449 * record-btrace.c (record_btrace_xfer_partial)
8450 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8451 (record_btrace_allow_memory_access): New.
8452 (init_record_btrace_ops): Initialize new methods.
8453 * target.c (raw_memory_xfer_partial): Bail out if target reports
8454 that this memory is not available.
8455
3db08215
MM
84562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8457
8458 * target.h (target_ops) <to_insert_breakpoint>
8459 <to_remove_breakpoint>: Add target_ops parameter.
8460 (forward_target_insert_breakpoint): New.
8461 (forward_target_remove_breakpoint): New.
8462 (memory_remove_breakpoint, memory_insert_breakpoint):
8463 Add target_ops parameter.
8464 * target.c (target_insert_breakpoint): Split into this and ...
8465 (forward_target_insert_breakpoint): ... this.
8466 (target_remove_breakpoint): Split into this and ...
8467 (forward_target_remove_breakpoint): ... this.
8468 (debug_to_insert_breakpoint): Add target_ops parameter.
8469 Call forward_target_insert_breakpoint.
8470 (debug_to_remove_breakpoint): Add target_ops parameter.
8471 Call forward_target_remove_breakpoint.
8472 (update_current_target): Do not inherit or default to_insert_breakpoint
8473 and to_remove_breakpoint.
8474 * corelow.c (ignore): Add target_ops parameter.
8475 * exec.c (ignore): Add target_ops parameter.
8476 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8477 Add target_ops parameter.
8478 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8479 Add target_ops parameter.
8480 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8481 Add target_ops parameter.
8482 * record-full.c (record_full_beneath_to_insert_breakpoint)
8483 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8484 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8485 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8486 (record_full_core_remove_breakpoint): Add target_ops parameter.
8487 Update users.
8488 (record_full_beneath_to_insert_breakpoint_ops)
8489 (record_full_beneath_to_remove_breakpoint_ops)
8490 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8491 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8492 tmp_to_remove_breakpoint_ops,
8493 record_full_beneath_to_insert_breakpoint_ops, and
8494 record_full_beneath_to_remove_breakpoint_ops.
8495 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8496 (m32r_remove_breakpoint): Add target_ops parameter.
8497 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8498 Add target_ops parameter.
8499 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8500 Add target_ops parameter.
8501
cecac1ab
MM
85022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8503 Markus Metzger <markus.t.metzger@intel.com>
8504
8505 * record-btrace.c: Include frame-unwind.h.
8506 (record_btrace_frame_unwind_stop_reason)
8507 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8508 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8509 New.
8510 (init_record_btrace_ops): Install it.
8511
824344ca
MM
85122014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8513
8514 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8515 get_prev_frame_1.
8516
32261e52
MM
85172014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8518
8519 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8520 earlier.
8521
ea001bdc
MM
85222014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8523
8524 * frame-unwind.c: Include target.h.
8525 (frame_unwind_try_unwinder): New function with code from ...
8526 (frame_unwind_find_by_frame): ... here. New variable
8527 unwinder_from_target, call also target_get_unwinder)
8528 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8529 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8530 * target.h (struct target_ops): New fields to_get_unwinder and
8531 to_get_tailcall_unwinder.
8532 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8533
1f3ef581
MM
85342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8535
8536 * record-btrace.c (record_btrace_fetch_registers)
8537 (record_btrace_store_registers)
8538 (record_btrace_to_prepare_to_store): New.
8539 (init_record_btrace_ops): Add the above.
8540
f32dbf8c
MM
85412014-01-16 Tom Tromey <tromey@redhat.com>
8542
8543 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8544 * target.h (struct target_ops) <to_prepare_to_store>: Add
8545 argument.
8546 (target_prepare_to_store): Add argument.
8547 * target.c (debug_to_prepare_to_store): Add argument.
8548 (update_current_target): Update.
8549 * remote.c (remote_prepare_to_store): Add 'self' argument.
8550 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8551 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8552 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8553 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8554 argument.
8555 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8556 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8557 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8558 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8559 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8560
07bbe694
MM
85612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8562
8563 * btrace.h (replay) <replay>: New.
8564 (btrace_is_replaying): New.
8565 * btrace.c (btrace_clear): Free replay iterator.
8566 (btrace_is_replaying): New.
8567 * record-btrace.c (record_btrace_is_replaying): New.
8568 (record_btrace_info): Print insn number if replaying.
8569 (record_btrace_insn_history): Start at replay position.
8570 (record_btrace_call_history): Start at replay position.
8571 (init_record_btrace_ops): Init to_record_is_replaying.
8572
0688d04e
MM
85732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8574
8575 * record-btrace.c (record_btrace_insn_history_range): Include
8576 end.
8577 (record_btrace_insn_history_from): Adjust range.
8578 (record_btrace_call_history_range): Include
8579 end.
8580 (record_btrace_call_history_from): Adjust range.
8581 * NEWS: Announce changes.
8582
8710b709
MM
85832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8584
8585 * record.h (enum record_print_flag)
8586 <record_print_indent_calls>: New.
8587 * record.c (get_call_history_modifiers): Recognize /c modifier.
8588 (_initialize_record): Document /c modifier.
8589 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8590 Reorder fields. Optionally indent the function name. Update
8591 all users.
8592 * NEWS: Announce changes.
8593
d0fa7535
MM
85942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8595
8596 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8597
5de9129b
MM
85982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8599
8600 * btrace.c (ftrace_new_function): Start counting at one.
8601 * record-btrace.c (record_btrace_info): Adjust number of calls
8602 and insns.
8603 * NEWS: Announce it.
8604
7acbe133
MM
86052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8606
8607 * record-btrace.c (btrace_call_history_insn_range): Print
8608 insn range as [begin, end].
8609
23a7fe75
MM
86102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8611
8612 * btrace.h (struct btrace_func_link): New.
8613 (enum btrace_function_flag): New.
8614 (struct btrace_inst): Rename to ...
8615 (struct btrace_insn): ...this. Update all users.
8616 (struct btrace_func) <ibegin, iend>: Remove.
8617 (struct btrace_func_link): New.
8618 (struct btrace_func): Rename to ...
8619 (struct btrace_function): ...this. Update all users.
8620 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8621 (number, level, flags>: New.
8622 (struct btrace_insn_iterator): Rename to ...
8623 (struct btrace_insn_history): ...this.
8624 Update all users.
8625 (struct btrace_insn_iterator, btrace_call_iterator): New.
8626 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8627 (struct btrace_target_info) <begin, end, level>
8628 <insn_history, call_history>: New.
8629 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8630 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8631 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8632 (btrace_call_number, btrace_call_begin, btrace_call_end)
8633 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8634 (btrace_find_function_by_number, btrace_set_insn_history)
8635 (btrace_set_call_history): New.
8636 * btrace.c (btrace_init_insn_iterator)
8637 (btrace_init_func_iterator, compute_itrace): Remove.
8638 (ftrace_print_function_name, ftrace_print_filename)
8639 (ftrace_skip_file): Change
8640 parameter to const.
8641 (ftrace_init_func): Remove.
8642 (ftrace_debug): Use new btrace_function fields.
8643 (ftrace_function_switched): Also consider gaining and
8644 losing symbol information).
8645 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8646 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8647 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8648 New.
8649 (ftrace_new_function): Move. Remove debug print.
8650 (ftrace_update_lines, ftrace_update_insns): New.
8651 (ftrace_update_function): Check for call, ret, and jump.
8652 (compute_ftrace): Renamed to ...
8653 (btrace_compute_ftrace): ...this. Rewritten to compute call
8654 stack.
8655 (btrace_fetch, btrace_clear): Updated.
8656 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8657 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8658 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8659 (btrace_call_number, btrace_call_begin, btrace_call_end)
8660 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8661 (btrace_find_function_by_number, btrace_set_insn_history)
8662 (btrace_set_call_history): New.
8663 * record-btrace.c (require_btrace): Use new btrace thread
8664 info fields.
8665 (record_btrace_info, btrace_insn_history)
8666 (record_btrace_insn_history, record_btrace_insn_history_range):
8667 Use new btrace thread info fields and new iterator.
8668 (btrace_func_history_src_line): Rename to ...
8669 (btrace_call_history_src_line): ...this. Use new btrace
8670 thread info fields.
8671 (btrace_func_history): Rename to ...
8672 (btrace_call_history): ...this. Use new btrace thread info
8673 fields and new iterator.
8674 (record_btrace_call_history, record_btrace_call_history_range):
8675 Use new btrace thread info fields and new iterator.
8676
8372a7cb
MM
86772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8678
8679 * frame.h (frame_id_build_unavailable_stack_special): New.
8680 * frame.c (frame_id_build_unavailable_stack_special): New.
8681
c2170eef
MM
86822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8683
8684 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8685 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8686 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8687 to gdbarch.
8688 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8689 (i386_insn_is_jump, i386_jmp_p): New.
8690 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8691 insn_is_jump to gdbarch.
8692 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8693 * gdbarch.h: Regenerated.
8694 * gdbarch.c: Regenerated.
8695 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8696 (default_insn_is_jump): New.
8697 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8698 (default_insn_is_jump): New.
8699
864089d2
MM
87002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8701
8702 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8703 Change to ...
8704 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8705 (btrace_read_type) <btrace_read_new>: Change to ...
8706 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8707
ed9edfb5
MM
87082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8709
8710 * common/linux-btrace.c (linux_read_btrace): Free trace from
8711 previous iteration.
8712
fbcbc3fd
DE
87132014-01-15 Doug Evans <dje@google.com>
8714
8715 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8716 uint32_t.
8717
3d548a53
TT
87182014-01-15 Tom Tromey <tromey@redhat.com>
8719
8720 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8721 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8722 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8723 (set_objfile_main_name): New function.
8724 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8725 language_of_main>: New fields.
8726 (set_objfile_main_name): Declare.
8727 * symtab.c (find_main_name): Loop over objfiles to find the main
8728 name and language.
8729 (set_main_name): Now static.
8730 (get_main_info): Add comment.
8731 * symtab.h (set_main_name): Don't declare.
8732
32ac0d11
TT
87332014-01-15 Tom Tromey <tromey@redhat.com>
8734
8735 * symtab.c (main_progspace_key): New global.
8736 (struct main_info): New.
8737 (name_of_main, language_of_main): Remove.
8738 (get_main_info, main_info_cleanup): New function.
8739 (set_main_name, main_name, main_language): Use get_main_info.
8740 (_initialize_symtab): Initialize main_progspace_key.
8741
9e6c82ad
TT
87422014-01-15 Tom Tromey <tromey@redhat.com>
8743
8744 * dbxread.c (process_one_symbol): Update.
8745 * dwarf2read.c (read_partial_die): Update.
8746 * symfile.c (set_initial_language): Call main_language.
8747 * symtab.c (language_of_main): Now static.
8748 (set_main_name): Add 'lang' parameter.
8749 (find_main_name): Update.
8750 (main_language): New function.
8751 (symtab_observer_executable_changed): Update.
8752 * symtab.h (set_main_name): Update.
8753 (language_of_main): Remove.
8754 (main_language): Declare.
8755
6ef55de7
TT
87562014-01-15 Tom Tromey <tromey@redhat.com>
8757
8758 * symfile.c (init_entry_point_info): Use new "initialized" field.
8759 Update.
8760 * objfiles.h (struct entry_point) <initialized>: New field.
8761 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8762 (struct objfile) <ei>: ...here. Remove.
8763 * objfiles.c (entry_point_address_query): Update.
8764
53eddfa6
TT
87652014-01-15 Tom Tromey <tromey@redhat.com>
8766
8767 * objfiles.c (entry_point_address_query): Relocate entry point
8768 address.
8769 (objfile_relocate1): Do not relocate entry point address.
8770 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8771 <the_bfd_section_index>: New field.
8772 * symfile.c (init_entry_point_info): Find the entry point's
8773 section.
8774
d56e56aa
TT
87752014-01-15 Tom Tromey <tromey@redhat.com>
8776
8777 * solib-frv.c (enable_break): Use entry_point_address_query.
8778
33a97bbe
OJ
87792014-01-15 Omair Javaid <omair.javaid@linaro.org>
8780
8781 * NEWS: Add note on improved process record-replay on
8782 arm*-linux* targets.
8783
c6ec2b30
OJ
87842014-01-15 Omair Javaid <omair.javaid@linaro.org>
8785
8786 * arm-tdep.c (enum arm_record_result): New enum.
8787 (arm_record_unsupported_insn): New function.
8788 (arm_record_coproc_data_proc): Removed.
8789 (thumb2_record_ld_st_multiple): New function.
8790 (thumb2_record_ld_st_dual_ex_tbb): New function.
8791 (thumb2_record_data_proc_sreg_mimm): New function.
8792 (thumb2_record_ps_dest_generic): New function.
8793 (thumb2_record_branch_misc_cntrl): New function.
8794 (thumb2_record_str_single_data): New function.
8795 (thumb2_record_ld_mem_hints): New function.
8796 (thumb2_record_ld_word): New function.
8797 (thumb2_record_lmul_lmla_div): New function.
8798 (thumb2_record_decode_insn_handler): New function.
8799 (decode_insn): Add thumb32 instruction handlers.
8800
97dfe206
OJ
88012014-01-15 Omair Javaid <omair.javaid@linaro.org>
8802
8803 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8804 (struct arm_linux_record_tdep): Declare.
8805 (arm_canonicalize_syscall): New function.
8806 (arm_all_but_pc_registers_record): New function.
8807 (arm_linux_syscall_record): New function.
8808 (arm_linux_init_abi): Add syscall recording constructs.
8809 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8810 decoding. (arm_record_coproc_data_proc): Update arm syscall
8811 decoding.
8812 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8813 <arm_syscall_record>: New field.
8814 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8815 gdb_target_obs.
8816
9904a494
OJ
88172014-01-15 Omair Javaid <omair.javaid@linaro.org>
8818
8819 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8820 register for push instruction recording.
8821
f969241e
OJ
88222014-01-15 Omair Javaid <omair.javaid@linaro.org>
8823
8824 * arm-tdep.c (thumb_record_misc): Update to correct logical
8825 error while recording ldm, ldmia and pop instructions.
8826
bfbbec00
OJ
88272014-01-15 Omair Javaid <omair.javaid@linaro.org>
8828
8829 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8830
e40adcc9
PA
88312014-01-15 Pedro Alves <palves@redhat.com>
8832
8833 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8834 (go32_resume, go32_fetch_registers, store_register)
8835 (go32_store_registers, go32_prepare_to_store)
8836 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8837 (go32_create_inferior, go32_can_run, go32_terminal_init)
8838 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8839 declarations.
8840
b0a16e66
TT
88412014-01-15 Tom Tromey <tromey@redhat.com>
8842
8843 * target.h (async_callback_ftype): New typedef.
8844 (struct target_ops) <to_async>: Use it.
8845
bf7105a4
JB
88462014-01-15 Joel Brobecker <brobecker@adacore.com>
8847
8848 * python/py-value.c (get_field_type): Remove unnecessary curly
8849 braces for single-statement if block.
8850
a8f35c2e
JB
88512014-01-15 Joel Brobecker <brobecker@adacore.com>
8852
8853 * python/py-type.c (convert_field): Add missing empty line
8854 after declarations.
8855
bb4142cf
DE
88562014-01-14 Doug Evans <dje@google.com>
8857
8858 * symfile.h (expand_symtabs_matching): Renamed from
8859 expand_partial_symbol_names. Update prototype.
8860 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8861 * symfile.c (expand_symtabs_matching): Renamed from
8862 expand_partial_symbol_names. New args file_matcher, kind.
8863 Rename arg fun to symbol_matcher.
8864 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8865 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8866 ada_expand_partial_symbol_name.
8867 (ada_make_symbol_completion_list): Update to call
8868 expand_symtabs_matching.
8869 (ada_add_global_exceptions): Call expand_symtabs_matching.
8870 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8871 call map_symbol_filenames.
8872 * symtab.c (sources_info): Update to call map_symbol_filenames.
8873 (search_symbols): Call expand_symtabs_matching.
8874 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8875 (default_make_symbol_completion_list_break_on): Update to call
8876 expand_symtabs_matching.
8877 (make_source_files_completion_list): Update to call
8878 map_symbol_filenames.
8879
206f2a57
DE
88802014-01-14 Doug Evans <dje@google.com>
8881
8882 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8883 (expand_symtabs_symbol_matcher_ftype): New typedef.
8884 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8885 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8886 * symfile.c (expand_partial_symbol_names): Update to use
8887 expand_symtabs_symbol_matcher_ftype.
8888 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8889 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8890 Arg name_matcher renamed to symbol_matcher.
8891 * psymtab.c (recursively_search_psymtabs): Update to use
8892 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8893 sym_matcher.
8894 (expand_symtabs_matching_via_partial): Update to use
8895 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8896 Arg name_matcher renamed to symbol_matcher.
8897
540c2971
DE
88982014-01-14 Doug Evans <dje@google.com>
8899
8900 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8901 (map_partial_symbol_filenames): Ditto.
8902 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8903 (map_partial_symbol_filenames): Ditto.
8904 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8905 (map_partial_symbol_filenames): Ditto.
8906 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8907 (map_partial_symbol_filenames): Ditto.
8908 * symtab.c: Delete #include "psymtab.h".
8909
8213266a
PA
89102014-01-14 Pedro Alves <palves@redhat.com>
8911 Tom Tromey <tromey@redhat.com>
8912
8913 * infrun.c (use_displaced_stepping): Use find_record_target
8914 instead of RECORD_IS_USED.
8915 (adjust_pc_after_break): Use record_full_is_used instead of
8916 RECORD_IS_USED.
8917 * record-btrace.c (record_btrace_open): Call record_preopen
8918 instead of checking RECORD_IS_USED.
8919 * record-full.c (record_full_shortname)
8920 (record_full_core_shortname): New globals.
8921 (record_full_is_used): New function.
8922 (find_full_open): Call record_preopen instead of checking
8923 RECORD_IS_USED.
8924 (init_record_full_ops): Set the target's shortname to
8925 record_full_shortname.
8926 (init_record_full_core_ops): Set the target's shortname to
8927 record_full_core_shortname.
8928 * record-full.h (record_full_is_used): Declare.
8929 * record.c (find_record_target): Make extern.
8930 (record_preopen): New function.
8931 * record.h (RECORD_IS_USED): Delete macro.
8932 (find_record_target, record_preopen): Declare functions.
8933
7ec1862d
YQ
89342014-01-14 Yao Qi <yao@codesourcery.com>
8935
8936 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8937 'len''s type to ULONGEST.
8938 (core_xfer_shared_libraries_aix): Likewise.
8939 * gdbarch.c, gdbarch.h: Regenerated.
8940 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8941 Change type of 'len' to ULONGEST.
8942 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8943 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8944
dea80a27
YQ
89452014-01-14 Yao Qi <yao@codesourcery.com>
8946
8947 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8948 type of 'len' to ULONGEST.
8949 (linux_xfer_osdata_processgroups): Likewise.
8950 (linux_xfer_osdata_threads): Likewise.
8951 (linux_xfer_osdata_fds): Likewise.
8952 (linux_xfer_osdata_isockets): Likewise.
8953 (linux_xfer_osdata_shm): Likewise.
8954 (linux_xfer_osdata_sem): Likewise.
8955 (linux_xfer_osdata_msg): Likewise.
8956 (linux_common_xfer_osdata): Likewise.
8957 (struct osdata_type) <getter>: Likewise.
8958 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8959 the declaration.
8960
b55e14c7
YQ
89612014-01-14 Yao Qi <yao@codesourcery.com>
8962
8963 * target.h (target_xfer_partial_ftype): Update.
8964 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8965 ULONGEST.
8966 * aix-thread.c (aix_thread_xfer_partial): Change type of
8967 argument 'len' to ULONGEST.
8968 * auxv.c (procfs_xfer_auxv): Likewise.
8969 (ld_so_xfer_auxv): Likewise.
8970 (memory_xfer_auxv): Likewise.
8971 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8972 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8973 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8974 * corelow.c (core_xfer_partial): Likewise.
8975 * ctf.c (ctf_xfer_partial): Likewise.
8976 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8977 '%u'.
8978 (darwin_read_dyld_info): Likewise.
8979 (darwin_xfer_partial): Likewise.
8980 * exec.c (section_table_xfer_memory_partial): Likewise.
8981 (exec_xfer_partial): Likewise.
8982 * exec.h (section_table_xfer_memory_partial): Update
8983 declaration.
8984 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8985 instead of plongest.
8986 (gnu_xfer_partial): Likewise.
8987 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8988 (ia64_hpux_xfer_solib_got): Likewise.
8989 (ia64_hpux_xfer_partial): Likewise.
8990 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8991 * inf-ptrace.c (inf_ptrace_xfer_partial):
8992 * inf-ttrace.c (inf_ttrace_xfer_partial):
8993 * linux-nat.c (linux_xfer_siginfo): Likewise.
8994 (linux_nat_xfer_partial): Likewise.
8995 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8996 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8997 * monitor.c (monitor_xfer_memory): Likewise.
8998 (monitor_xfer_partial): Likewise.
8999 * procfs.c (procfs_xfer_partial): Likewise.
9000 * record-full.c (record_full_xfer_partial): Likewise.
9001 (record_full_core_xfer_partial): Likewise.
9002 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9003 instead of plongest.
9004 (gdbsim_xfer_partial): Likewise.
9005 * remote.c (remote_xfer_partial): Likewise.
9006 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9007 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9008 declaration.
9009 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9010 (rs6000_xfer_shared_libraries): Likewise.
9011 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9012 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9013 (sparc_xfer_partial): Likewise.
9014 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9015 (spu_xfer_partial): Likewise.
9016 * spu-multiarch.c (spu_xfer_partial): Likewise.
9017 * target.c (target_read_live_memory): Likewise.
9018 (memory_xfer_live_readonly_partial): Likewise.
9019 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9020 (target_xfer_partial, default_xfer_partial): Likewise.
9021 (current_xfer_partial): Likewise.
9022 * tracepoint.c (tfile_xfer_partial): Likewise.
9023 * windows-nat.c (windows_xfer_memory): Likewise. Call
9024 pulongest instead of plongest.
9025 (windows_xfer_partial): Likewise.
9026 (windows_xfer_shared_libraries): Likewise.
9027
05804640
YQ
90282014-01-14 Yao Qi <yao@codesourcery.com>
9029
9030 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9031 target_xfer_partial_ftype.
9032
b5b08fb4
SC
90332014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9034
9035 PR python/15464
9036 PR python/16113
9037 * valops.c (value_struct_elt_bitpos): New function
9038 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9039 object to 'None' if the field name is an empty string ("").
9040 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9041 attribute to look for a field when 'name' is 'None'.
9042 (get_field_type): New function
9043
13aaf454
DE
90442014-01-13 Doug Evans <dje@google.com>
9045
9046 PR symtab/16426
9047 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9048 (try_open_dwop_file): Ditto.
9049 * gdb_bfd.c: #include "vec.h".
9050 (bfdp): New typedef.
9051 (struct gdb_bfd_data): New member included_bfds.
9052 (gdb_bfd_unref): Unref all included bfds.
9053 (gdb_bfd_record_inclusion): New function.
9054 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9055
c2cec97c
TT
90562014-01-13 Tom Tromey <tromey@redhat.com>
9057
9058 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9059
78e5999d
TT
90602014-01-13 Tom Tromey <tromey@redhat.com>
9061
9062 * defs.h (use_windows): Remove.
9063 * gdb.c (main): Update.
9064 * main.c (captured_main, gdb_main): Update.
9065 * main.h (struct captured_main_args) <use_windows>: Remove.
9066 * top.c (use_windows): Remove.
9067
f2052bbe
TT
90682014-01-13 Tom Tromey <tromey@redhat.com>
9069
9070 * defs.h (deprecated_flush_hook): Remove.
9071
fde4f8ed
JK
90722014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9073
9074 PR threads/16216
9075 * linux-thread-db.c (try_thread_db_load): Add parameter
9076 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9077 (try_thread_db_load_from_pdir_1): Move it there from here.
9078 (try_thread_db_load_from_sdir): Update caller.
9079 (try_thread_db_load_from_dir): Move it there from here.
9080
bdf61915
PP
90812014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9082
9083 * regformats/regdat.sh: Always rewrite the register file.
9084
f71e1a8d
PA
90852014-01-13 Pedro Alves <palves@redhat.com>
9086
9087 * Makefile.in (CHECK_HEADERS): New variable.
9088 (check-headers:): New rule.
9089
42c85435
TT
90902014-01-13 Tom Tromey <tromey@redhat.com>
9091
9092 * cli/cli-setshow.c (do_set_command): Update.
9093 * defs.h (deprecated_set_hook): Remove.
9094 * top.c (deprecated_set_hook): Remove.
9095
f8de5129
PA
90962014-01-13 Pedro Alves <palves@redhat.com>
9097
9098 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9099 the tracepoint if the PC is a pseudo-register.
9100
fc270c35
TT
91012014-01-13 Tom Tromey <tromey@redhat.com>
9102
9103 * defs.h (XCALLOC): Remove.
9104 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9105 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9106 * dwarf2loc.c (allocate_piece_closure): Likewise.
9107 * elfread.c (elf_symfile_segments): Likewise.
9108 (elf_symfile_segments): Likewise.
9109 * gdbtypes.c (copy_type_recursive): Likewise.
9110 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9111 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9112 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9113 XCALLOC.
9114 * mt-tdep.c (mt_gdbarch_init): Likewise.
9115 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9116 XCALLOC.
9117 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9118 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9119 * registry.c (registry_alloc_data): Likewise.
9120 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9121 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9122 * serial.c (serial_fdopen_ops): Likewise.
9123 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9124 XCALLOC.
9125 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9126 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9127 not XCALLOC.
9128
70ba0933
TT
91292014-01-13 Tom Tromey <tromey@redhat.com>
9130
9131 * defs.h (XMALLOC): Remove.
9132 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9133 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9134 * cli-out.c (struct ui_out *): Likewise.
9135 * cli/cli-dump.c (add_dump_command): Likewise.
9136 (add_dump_command): Likewise.
9137 * complaints.c (get_complaints): Likewise.
9138 (find_complaint): Likewise.
9139 * dwarf2-frame.c (execute_cfa_program): Likewise.
9140 * dwarf2read.c (abbrev_table_read_table): Likewise.
9141 * gdbarch.sh: Likewise.
9142 * gdbarch.c: Rebuild.
9143 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9144 * interps.c (interp_new): Likewise.
9145 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9146 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9147 * mi/mi-console.c (mi_console_file_new): Likewise.
9148 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9149 * mi/mi-out.c (mi_out_new): Likewise.
9150 * mi/mi-parse.c (mi_parse): Likewise.
9151 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9152 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9153 * observer.c (xalloc_observer_list_node): Likewise.
9154 * regcache.c (regcache_xmalloc_1): Likewise.
9155 * reggroups.c (reggroup_new): Likewise.
9156 (_initialize_reggroup): Likewise.
9157 * registry.c (register_data_with_cleanup): Likewise.
9158 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9159 * ser-base.c (serial_ttystate): Likewise.
9160 * ser-mingw.c (make_pipe_state): Likewise.
9161 * ser-pipe.c (pipe_open): Likewise.
9162 * serial.c (serial_open): Likewise.
9163 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9164 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9165 (tui_alloc_win_info): Likewise.
9166 (tui_add_content_elements): Likewise.
9167 * tui/tui-file.c (tui_file_new): Likewise.
9168 * tui/tui-out.c (tui_out_new): Likewise.
9169 * ui-file.c (mem_file_new): Likewise.
9170 * ui-out.c (push_level): Likewise.
9171 (make_cleanup_ui_out_end): Likewise.
9172 (append_header_to_list): Likewise.
9173 (ui_out_new): Likewise.
9174 * user-regs.c (user_reg_add_builtin): Likewise.
9175
41bf6aca
TT
91762014-01-13 Tom Tromey <tromey@redhat.com>
9177
9178 * defs.h (XZALLOC): Remove.
9179 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9180 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9181 (get_ada_tasks_inferior_data): Likewise.
9182 * auto-load.c (get_auto_load_pspace_data): Likewise.
9183 * auxv.c (get_auxv_inferior_data): Likewise.
9184 * bfd-target.c (target_bfd_reopen): Likewise.
9185 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9186 (deprecated_insert_raw_breakpoint): Likewise.
9187 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9188 * corelow.c (core_open): Likewise.
9189 * darwin-nat.c (darwin_check_new_threads): Likewise.
9190 (darwin_attach_pid): Likewise.
9191 * dummy-frame.c (dummy_frame_push): Likewise.
9192 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9193 * dwarf2loc.c (allocate_piece_closure): Likewise.
9194 * elfread.c (elf_symfile_segments): Likewise.
9195 * eval.c (ptrmath_type_p): Likewise.
9196 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9197 * gdbtypes.c (alloc_type_arch): Likewise.
9198 (alloc_type_instance): Likewise.
9199 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9200 * inf-child.c (inf_child_can_use_agent): Likewise.
9201 * inflow.c (get_inflow_inferior_data): Likewise.
9202 * infrun.c (save_infcall_suspend_state): Likewise.
9203 * jit.c (jit_reader_load): Likewise.
9204 (get_jit_objfile_data): Likewise.
9205 (get_jit_program_space_data): Likewise.
9206 (jit_object_open_impl): Likewise.
9207 (jit_symtab_open_impl): Likewise.
9208 (jit_block_open_impl): Likewise.
9209 (jit_frame_sniffer): Likewise.
9210 * linux-fork.c (add_fork): Likewise.
9211 * maint.c (make_command_stats_cleanup): Likewise.
9212 * objfiles.c (get_objfile_pspace_data): Likewise.
9213 * opencl-lang.c (struct lval_closure): Likewise.
9214 * osdata.c (osdata_start_osdata): Likewise.
9215 * progspace.c (new_address_space): Likewise.
9216 (add_program_space): Likewise.
9217 * remote-sim.c (get_sim_inferior_data): Likewise.
9218 * sh-tdep.c (sh_gdbarch_init): Likewise.
9219 * skip.c (Ignore): Likewise.
9220 (skip_delete_command): Likewise.
9221 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9222 (library_list_start_library): Likewise.
9223 (solib_aix_current_sos): Likewise.
9224 * solib-darwin.c (get_darwin_info): Likewise.
9225 (darwin_current_sos): Likewise.
9226 * solib-dsbt.c (get_dsbt_info): Likewise.
9227 * solib-ia64-hpux.c (new_so_list): Likewise.
9228 (ia64_hpux_get_solib_linkage_addr): Likewise.
9229 * solib-spu.c (append_ocl_sos): Likewise.
9230 (spu_current_sos): Likewise.
9231 * solib-svr4.c (get_svr4_info): Likewise.
9232 (svr4_keep_data_in_core): Likewise.
9233 (library_list_start_library): Likewise.
9234 (svr4_default_sos): Likewise.
9235 (svr4_read_so_list): Likewise.
9236 * solib-target.c (library_list_start_library): Likewise.
9237 (solib_target_current_sos): Likewise.
9238 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9239 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9240 * symfile.c (default_symfile_segments): Likewise.
9241 * target-descriptions.c (tdesc_data_init): Likewise.
9242 (tdesc_create_reg): Likewise.
9243 (struct tdesc_type *): Likewise.
9244 (tdesc_create_vector): Likewise.
9245 (tdesc_set_struct_size): Likewise.
9246 (struct tdesc_type *): Likewise.
9247 (tdesc_free_feature): Likewise.
9248 (tdesc_create_feature): Likewise.
9249 * windows-nat.c (windows_add_thread): Likewise.
9250 (windows_make_so): Likewise.
9251 * xml-support.c (gdb_xml_body_text): Likewise.
9252 (gdb_xml_create_parser_and_cleanup): Likewise.
9253 (xml_process_xincludes): Likewise.
9254 * xml-syscall.c (allocate_syscalls_info): Likewise.
9255 (syscall_create_syscall_desc): Likewise.
9256
5acfdbae
SDJ
92572014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9258
9259 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9260 function, with code from i386_stap_parse_special_token.
9261 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9262 (i386_stap_parse_special_token): Move code to the two functions
9263 above; simplify it.
9264
0000e5cc
PA
92652014-01-09 Pedro Alves <palves@redhat.com>
9266 Hui Zhu <hui@codesourcery.com>
9267
9268 PR gdb/16101
9269 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9270 bp_err_string. Don't mark the location shlib_disabled if the
9271 error thrown wasn't a generic or memory error. Catch errors
9272 thrown while inserting breakpoints in overlayed code. Output
9273 error message of software breakpoints.
9274 * remote.c (remote_insert_breakpoint): If this breakpoint has
9275 target-side commands but this stub doesn't support Z0 packets,
9276 throw NOT_SUPPORTED_ERROR error.
9277 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9278 * target.h (target_insert_breakpoint): Extend comment.
9279 (target_insert_hw_breakpoint): Add comment.
9280
b7ea362b
PA
92812014-01-08 Pedro Alves <palves@redhat.com>
9282
9283 * remote.c (remote_add_thread): Add threads silently if starting
9284 up.
9285 (remote_notice_new_inferior): If in all-stop, and starting up,
9286 don't call notice_new_inferior.
9287 (get_current_thread): New function, factored out from ...
9288 (add_current_inferior_and_thread): ... this. Adjust.
9289 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9290 found any thread, then select the remote's current thread as GDB's
9291 current thread too.
9292
b7bba001
JB
92932014-01-08 Joel Brobecker <brobecker@adacore.com>
9294
9295 * NEWS: Create a new section for the next release branch.
9296 Rename the section of the current branch, now that it has
9297 been cut.
9298
16dfbded
JB
92992014-01-08 Joel Brobecker <brobecker@adacore.com>
9300
9301 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9302 * version.in: Bump version to 7.7.50.DATE-cvs.
9303
22c90ac1
YQ
93042014-01-08 Yao Qi <yao@codesourcery.com>
9305
9306 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9307 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9308 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9309
d64ad97c
YQ
93102014-01-08 Yao Qi <yao@codesourcery.com>
9311
9312 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9313 return value of bfd_get_filename to symbol_file_add_from_bfd.
9314
f93ba80c
PM
93152014-01-08 Pierre Muller <muller@sourceware.org>
9316
9317 Fix PR16201.
9318 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9319 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9320 to prim_record_mininal_symbol_and_info.
9321 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9322 in call to prim_record_minimal_symbol_and_info.
9323 (read_pe_exported_syms): Set index field of section_data.
9324
a4d9ba85
AP
93252014-01-07 Andrew Pinski <apinski@cavium.com>
9326
9327 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9328 * features/aarch64.c: Regenerate.
9329
1b67eb02
AS
93302014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9331
9332 * target.c (return_null): Define.
9333 (update_current_target): Use it instead of return_zero for
9334 functions that return a pointer.
9335
5e3f4fab
EBM
93362014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9337
9338 * source.c (add_path): Fix check for duplicated paths in the previously
9339 included paths.
9340
e2616788
HK
93412014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9342
9343 * ada-lang.c: Remove duplicated include statements.
9344 * alphabsd-nat.c: Ditto.
9345 * amd64-darwin-tdep.c: Ditto.
9346 * amd64fbsd-nat.c: Ditto.
9347 * auto-load.c: Ditto.
9348 * ax-gdb.c: Ditto.
9349 * breakpoint.c: Ditto.
9350 * dbxread.c: Ditto.
9351 * fork-child.c: Ditto.
9352 * gdb_usleep.c: Ditto.
9353 * i386-darwin-tdep.c: Ditto.
9354 * i386fbsd-nat.c: Ditto.
9355 * infcmd.c: Ditto.
9356 * inferior.c: Ditto.
9357 * jv-lang.c: Ditto.
9358 * linux-nat.c: Ditto.
9359 * linux-tdep.c: Ditto.
9360 * m68kbsd-nat.c: Ditto.
9361 * m68klinux-nat.c: Ditto.
9362 * microblaze-tdep.c: Ditto.
9363 * mips-linux-tdep.c: Ditto.
9364 * mn10300-tdep.c: Ditto.
9365 * nto-tdep.c: Ditto.
9366 * opencl-lang.c: Ditto.
9367 * osdata.c: Ditto.
9368 * printcmd.c: Ditto.
9369 * regcache.c: Ditto.
9370 * remote-m32r-sdi.c: Ditto.
9371 * remote.c: Ditto.
9372 * symfile.c: Ditto.
9373 * symtab.c: Ditto.
9374 * tilegx-linux-nat.c: Ditto.
9375 * tilegx-tdep.c: Ditto.
9376 * tracepoint.c: Ditto.
9377 * valops.c: Ditto.
9378 * vaxbsd-nat.c: Ditto.
9379 * windows-nat.c: Ditto.
9380 * xtensa-tdep.c: Ditto.
9381
bd1f7788
YQ
93822014-01-07 Yao Qi <yao@codesourcery.com>
9383
9384 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9385
79301218
JB
93862014-01-07 Yao Qi <yao@codesourcery.com>
9387 Joel Brobecker <brobecker@adacore.com>
9388
9389 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9390 (pdc_write_regs): Likewise.
9391 (fetch_regs_kernel_thread): Likewise.
9392 (store_regs_kernel_thread): Likewise.
9393
93942014-01-07 Joel Brobecker <brobecker@adacore.com>
9395
9396 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9397 tagged type objects to their actual type.
9398
8e355c5d
JB
93992014-01-07 Joel Brobecker <brobecker@adacore.com>
9400
9401 * ada-valprint.c (print_field_values): Add "language" parameter.
9402 Update calls to print_field_values and print_variant_part.
9403 Pass new parameter "language" in call to val_print instead
9404 of "current_language". Replace call to ada_val_print by call
9405 to val_print.
9406 (print_variant_part): Add "language" parameter.
9407 (ada_val_print_struct_union): Update call to print_field_values.
9408
4fbf5aa5
JB
94092014-01-07 Joel Brobecker <brobecker@adacore.com>
9410
9411 * ada-valprint.c (ui_memcpy): Delete.
9412 (ada_print_floating): Update documentation. Add empty line
9413 between between function documentation and implementation.
9414 Delete variable "buffer". Use ui_file_xstrdup in place of
9415 ui_file_put. Minor adjustments following this change.
9416
71855601
JB
94172014-01-07 Joel Brobecker <brobecker@adacore.com>
9418
9419 * ada-valprint.c (ada_val_print_string): New function,
9420 extracted from ada_val_print_array.
9421 (ada_val_print_array): Replace extracted code by call
9422 to ada_val_print_string followed by a return. Move
9423 "else" branch to the function's top block.
9424
4eb27a30
JB
94252014-01-07 Joel Brobecker <brobecker@adacore.com>
9426
9427 * ada-valprint.c (ada_val_print_array): Move implementation
9428 down. Rename parameter "offset" and "val" into "offset_aligned"
9429 and "original_value" respectively. Add parameter "offset".
9430
34b27950
JB
94312014-01-07 Joel Brobecker <brobecker@adacore.com>
9432
9433 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9434 re-organizing the code. Change the "???" message printed
9435 when target type is a TYPE_CODE_UNDEF into
9436 "<ref to undefined type>".
9437
079e4591
JB
94382014-01-07 Joel Brobecker <brobecker@adacore.com>
9439
9440 * ada-valprint.c (print_record): Delete, implementation inlined...
9441 (ada_val_print_struct_union): ... here. Remove call to
9442 ada_check_typedef in inlined implementation.
9443
8004dfd1
JB
94442014-01-07 Joel Brobecker <brobecker@adacore.com>
9445
9446 * ada-valprint.c (ada_val_print_gnat_array): New function,
9447 extracted from ada_val_print_1;
9448 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9449 (ada_val_print_flt, ada_val_print_struct_union)
9450 (ada_val_print_ref): Likewise.
9451 (ada_val_print_1): Delete variables i and elttype.
9452 Replace extracted-out code by call to corresponding
9453 new functions.
9454
760a2db0
JB
94552014-01-07 Joel Brobecker <brobecker@adacore.com>
9456
9457 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9458
3a92c861
JB
94592014-01-07 Joel Brobecker <brobecker@adacore.com>
9460
9461 * ada-valprint.c (ada_val_print_1): Replace calls to
9462 ada_val_print_1 by calls to val_print.
9463
cd1630f9
JB
94642014-01-07 Joel Brobecker <brobecker@adacore.com>
9465
9466 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9467 Update calls to self accordingly. Replace calls to c_val_print
9468 by calls to val_print.
9469
bdf779a0
JB
94702014-01-07 Joel Brobecker <brobecker@adacore.com>
9471
9472 * ada-valprint.c (print_record): Delete declaration.
9473 (adjust_type_signedness, ada_val_print_1): Likewise.
9474 (ada_val_print): Move function implementation down.
9475 (print_variant_part, print_field_values, print_record):
9476 Move function implementation up.
9477
c0d48811
JB
94782014-01-07 Joel Brobecker <brobecker@adacore.com>
9479
9480 * python/py-type.c (typy_get_name): New function.
9481 (type_object_getset): Add entry for attribute "name".
9482 * NEWS: Add entry mentioning this new attribute.
9483
c26e9cbb
YQ
94842014-01-07 Yao Qi <yao@codesourcery.com>
9485
9486 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9487 statement.
9488
0cc6f43d
YQ
94892014-01-07 Yao Qi <yao@codesourcery.com>
9490
9491 * gnu-nat.c (info_port_rights): Add qualifier const to
9492 argument args.
9493
eec03155
YQ
94942014-01-07 Yao Qi <yao@codesourcery.com>
9495
9496 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9497
f04a82ef
YQ
94982014-01-07 Yao Qi <yao@codesourcery.com>
9499
9500 * gnu-nat.c (make_inf) Update declaration.
9501 (make_inf): Make it static.
9502 (inf_set_traced): Likewise.
9503 (inf_port_to_thread, inf_task_died_status): Likewise.
9504
d57dda0a
YQ
95052014-01-07 Yao Qi <yao@codesourcery.com>
9506
9507 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9508
3aa8c969
YQ
95092014-01-07 Yao Qi <yao@codesourcery.com>
9510
9511 * gnu-nat.c (_initialize_gnu_nat): Declare.
9512
94123b4f
YQ
95132014-01-07 Yao Qi <yao@codesourcery.com>
9514
9515 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9516 'enum bfd_endian'.
9517 (struct gdbarch_info) <byte_order>: Change type to
9518 'enum bfd_endian'.
9519 <byte_order_for_code>: Likewise.
9520 * gdbarch.c, gdbarch.h: Regenerated.
9521
dc81d70a
TT
95222014-01-06 Sasha Smundak <asmundak@google.com>
9523
9524 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9525
cc2f3c35
TT
95262014-01-06 Tom Tromey <tromey@redhat.com>
9527
9528 * doublest.c (convert_doublest_to_floatformat): Use const, not
9529 CONST.
9530 * somread.c (som_symtab_read): Likewise.
9531
adcf2eed
HZ
95322014-01-07 Hui Zhu <hui@codesourcery.com>
9533
9534 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9535 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9536 (gdb_bfd_fopen): Ditto.
9537 (gdb_bfd_openr): Ditto.
9538 (gdb_bfd_openw): Ditto.
9539 (gdb_bfd_openr_iovec): Ditto.
9540 (gdb_bfd_fdopenr): Ditto.
9541 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9542 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9543 with xstrdup.
9544 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9545 with xstrdup.
9546 * symfile-mem.c (symbol_file_add_from_memory): Removed
9547 gdb_bfd_stash_filename.
9548
50722198
DE
95492014-01-03 Doug Evans <dje@google.com>
9550
9551 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9552 output.
9553
2fa4b862
JB
95542014-01-01 Joel Brobecker <brobecker@adacore.com>
9555
9556 Update year range in copyright notice of all files.
9557
28498c42
JB
95582014-01-01 Joel Brobecker <brobecker@adacore.com>
9559
9560 * top.c (print_gdb_version): Set copyright year to 2014.
9561
7b6e1046
JB
95622014-01-01 Joel Brobecker <brobecker@adacore.com>
9563
9564 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9565
df96af55 9566For older changes see ChangeLog-2013.
c906108c
SS
9567\f
9568Local Variables:
9569mode: change-log
9570left-margin: 8
9571fill-column: 74
9572version-control: never
57da7796 9573coding: utf-8
c906108c 9574End:
This page took 2.002074 seconds and 4 git commands to generate.