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