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