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