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