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