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