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