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