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