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