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