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