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