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