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