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