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