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