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