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