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