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