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