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