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