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