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