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