symtab.c (basic_lookup_symbol_nonlocal): Add comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d9060ba6
DE
12014-11-06 Doug Evans <xdje42@gmail.com>
2
3 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
4
74016e12
DE
52014-11-06 Doug Evans <xdje42@gmail.com>
6
7 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
8 All callers updated.
9 (lookup_symbol_in_all_objfiles): Renamed from
10 lookup_symbol_aux_symtabs. All callers updated.
11 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
12 All callers updated.
13 (lookup_symbol_in_objfile_symtabs): Renamed from
14 lookup_symbol_aux_objfile. All callers updated.
15
d1a2d36d
DE
162014-11-06 Doug Evans <xdje42@gmail.com>
17
18 * symtab.c (lookup_symbol_in_block): Renamed from
19 lookup_symbol_aux_block. All callers updated.
20
24d864bb
DE
212014-11-06 Doug Evans <xdje42@gmail.com>
22
23 * symtab.c (lookup_static_symbol): Renamed from
24 lookup_static_symbol_aux. All callers updated.
25 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
26 All callers updated.
27
358d6ab3
DE
282014-11-06 Doug Evans <xdje42@gmail.com>
29
30 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
31 * block.c (block_lookup_symbol): Use it.
32 * cp-support.c (make_symbol_overload_list_block): Use it.
33 * symtab.c (iterate_over_symbols): Use it.
34
16b2eaa1
DE
352014-11-06 Doug Evans <xdje42@gmail.com>
36
37 * symtab.c (lookup_block_symbol): Moved to ...
38 * block.c (block_lookup_symbol): ... here and renamed.
39 All callers updated.
40 * block.h (block_lookup_symbol): Declare.
41 * symtab.h (lookup_block_symbol): Delete.
42
2dd2cd1c
DE
432014-11-06 Doug Evans <xdje42@gmail.com>
44
45 * ada-lang.c (ada_make_symbol_completion_list): Use
46 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
47 * symtab.c (lookup_objfile_from_block): Ditto.
48
d4c58915
DE
492014-11-06 Doug Evans <xdje42@gmail.com>
50
51 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
52 TYPE_CODE_STRUCT.
53
9c1877ea
DE
542014-11-06 Doug Evans <xdje42@gmail.com>
55
56 * objfiles.c (get_objfile_arch): Constify.
57 * objfiles.h (get_objfile_arch): Update prototype.
58 * solib.c (solib_global_lookup): Fetch arch from objfile,
59 not target_gdbarch.
60
426a4079
SL
612014-11-06 Sandra Loosemore <sandra@codesourcery.com>
62
63 * nios2-tdep.c (wild_insn): Delete.
64 (profiler_insn, irqentry_insn): Delete.
65 (nios2_match_sequence): Delete.
66 (nios2_analyze_prologue): Update comments. Remove matching
67 of obsolete profiler_insn and irqentry_insn sequences.
68
ee11262d
AM
692014-11-05 Alan Modra <amodra@gmail.com>
70
71 * charset.c (convert_between_encodings): Shrink obstack using
72 obstack_blank_fast.
73 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
74 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
75 to char* before doing pointer arithmetic.
ee11262d 76
c87e6d00
SM
772014-11-04 Simon Marchi <simon.marchi@ericsson.com>
78
79 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
80
441ef17f
PA
812014-11-04 Pedro Alves <palves@redhat.com>
82
83 * breakpoint.c (breakpoint_thread_match): Delete function.
84 * breakpoint.h (breakpoint_thread_match): Delete declaration.
85
e0f52461
SC
862014-11-03 Siva Chandra Reddy <sivachandra@google.com>
87
88 PR c++/17494
89 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
90 the method args also under EVAL_SKIP when evaluating method
91 calls under EVAL_SKIP.
92
a0b4d890
YQ
932014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
94
95 * dwarf2loc.c (read_pieced_value): Do big endian
96 processing only if gdb_regnum is not -1.
97 (write_pieced_value): Ditto.
98
992014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
100
101 * arm-linux-tdep.c (arm_linux_init_abi): Use
102 info.byte_order_for_code to choose endianity of breakpoint
103 instructions snippets.
104
1052014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
106
107 * arm-tdep.c (extract_arm_insn): Use
108 gdbarch_byte_order_for_code to read arm instruction.
109
e82149ff
DE
1102014-11-02 Doug Evans <xdje42@gmail.com>
111
112 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
113
d7ee84f1
DE
1142014-11-02 Doug Evans <xdje42@gmail.com>
115
116 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
117 main_subfile before returning.
118
4f072d17
DE
1192014-10-31 Doug Evans <xdje42@gmail.com>
120
121 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
122 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
123
8301c89e
DE
1242014-10-31 Doug Evans <xdje42@gmail.com>
125
126 * valops.c (value_cast_pointers): Fix whitespace.
127 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
128 Ditto.
129
02be9a71
DE
1302014-10-30 Doug Evans <dje@google.com>
131
132 * NEWS: Mention ability add attributes to gdb.Objfile and
133 gdb.Progspace objects.
134 * python/py-objfile.c (objfile_object): New member dict.
135 (objfpy_dealloc): Py_XDECREF dict.
136 (objfpy_initialize): Initialize dict.
137 (objfile_getset): Add __dict__.
138 (objfile_object_type): Set tp_dictoffset member.
139 * python/py-progspace.c (progspace_object): New member dict.
140 (pspy_dealloc): Py_XDECREF dict.
141 (pspy_initialize): Initialize dict.
142 (pspace_getset): Add __dict__.
143 (pspace_object_type): Set tp_dictoffset member.
144
6427bef6
YQ
1452014-10-30 Yao Qi <yao@codesourcery.com>
146
147 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
148 replace '\\' with '\\\\'.
149
f60325be
JB
1502014-10-29 Joel Brobecker <brobecker@adacore.com>
151
152 GDB 7.8.1 released.
153
ab917dfb
PA
1542014-10-29 Pedro Alves <palves@redhat.com>
155
156 PR gdb/17408
157 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
158 instead of assuming a thread with a stepping range is always
159 stepping.
160
d3d4baed
PA
1612014-10-29 Pedro Alves <palves@redhat.com>
162
163 PR python/17372
164 * event-top.c (change_line_handler): Call
165 gdb_rl_callback_handler_remove instead of
166 rl_callback_handler_remove.
167 (callback_handler_installed): New global.
168 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
169 (gdb_rl_callback_handler_reinstall): New functions.
170 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
171 gdb_rl_callback_handler_install instead of
172 rl_callback_handler_remove and rl_callback_handler_install.
173 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
174 instead of rl_callback_handler_remove.
175 * event-top.h (gdb_rl_callback_handler_remove)
176 (gdb_rl_callback_handler_install)
177 (gdb_rl_callback_handler_reinstall): New declarations.
178 * infrun.c (reinstall_readline_callback_handler_cleanup): New
179 cleanup function.
180 (fetch_inferior_event): Install it.
181 * top.c (gdb_readline_wrapper_line) Call
182 gdb_rl_callback_handler_remove instead of
183 rl_callback_handler_remove.
184 (gdb_readline_wrapper_cleanup): Don't call
185 rl_callback_handler_install.
186
6e5d7f39
PA
1872014-10-29 Pedro Alves <palves@redhat.com>
188
189 * event-top.c (command_line_handler): Clear the first byte of
190 linebuffer, when it is first allocated.
191
551cb6a5
PA
1922014-10-29 Pedro Alves <palves@redhat.com>
193
194 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
195 TRY_CATCH.
196
1e1e619b
PA
1972014-10-29 Pedro Alves <palves@redhat.com>
198
199 PR tui/16138
200 PR tui/17519
201 * tui/tui-interp.c (tui_is_toplevel): Delete global.
202 (tui_allowed_p): Delete function.
203 * tui/tui.c: Include "interps.h".
204 (tui_enable): Don't use tui_allowed_p. Error out here with
205 detailed error messages if the TUI is the top level interpreter,
206 or if output is not a terminal. Use newterm instead of initscr,
207 and error out if initializing the terminal fails. Also error out if
208 the terminal doesn't support cursor addressing.
209 * tui/tui.h (tui_allowed_p): Delete declaration.
210
6041179a
JB
2112014-10-29 Joel Brobecker <brobecker@adacore.com>
212
213 * arm-tdep.c (arm_skip_stack_protector): Return early if
214 address loaded by first "ldr" instruction does not have
215 a corresponding minimal symbol. Update comment.
216
6ae274b7
YQ
2172014-10-29 Yao Qi <yao@codesourcery.com>
218
219 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
220 loaded address correctly of ldr instruction.
221
7f5ef605
PA
2222014-10-28 Pedro Alves <palves@redhat.com>
223
224 PR gdb/12623
225 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
226 field.
227 * infrun.c (resume) <stepping breakpoint instruction>: Set the
228 thread's stepped_breakpoint field. Skip if reverse debugging.
229 Add comment.
230 (init_thread_stepping_state, handle_signal_stop): Clear the
231 thread's stepped_breakpoint field.
232
7d1a114c
PA
2332014-10-27 Pedro Alves <palves@redhat.com>
234
235 * remote.c (remote_thread_alive): New, factored out from ...
236 (remote_thread_alive): ... this.
237 (remote_update_thread_list): Bail out before deleting threads if
238 the target returned an empty list, and, the current thread has a
239 magic/fake ptid.
240
e5f8a7cc
PA
2412014-10-27 Pedro Alves <palves@redhat.com>
242
243 * infrun.c (handle_signal_stop): Also skip handlers when a random
244 signal arrives while handling a "stepi" or a "nexti". Set the
245 thread's 'step_after_step_resume_breakpoint' flag.
246
71e396f9
LM
2472014-10-27 Luis Machado <lgustavo@codesourcery.com>
248
249 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
250 (arm_record_ld_st_imm_offset): Reimplement to cover all
251 load/store cases for ARM opcode 010.
252 (arm_record_ld_st_multiple): Reimplement to cover all
253 load/store cases for ARM opcode 100.
254
3aee438b
DE
2552014-10-26 Doug Evans <xdje42@gmail.com>
256
257 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
258
f88cb4b6
DE
2592014-10-26 Doug Evans <xdje42@gmail.com>
260
261 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
262 parameter "kind" to "block_index".
263 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
264 "block_index".
265 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
266
a023a30f
DE
2672014-10-26 Doug Evans <xdje42@gmail.com>
268
269 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
270
4c35218e
DE
2712014-10-26 Doug Evans <xdje42@gmail.com>
272
273 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
274 obstack_alloc.
275
f08e8df3
DE
2762014-10-26 Doug Evans <xdje42@gmail.com>
277
278 * parser-defs.h (block_found): Move decl from here ...
279 * symtab.h (block_found): ... to here.
280
cf901d3b
DE
2812014-10-26 Doug Evans <xdje42@gmail.com>
282
283 * symtab.h (struct field_of_this_result): Fix typo in comment.
284 (lookup_symbol_in_language): Move function comment here.
285 (lookup_symbol): Improve function comment.
286 (basic_lookup_symbol_nonlocal): Ditto.
287 (lookup_symbol_static, lookup_symbol_global): Ditto.
288 (lookup_symbol_aux_block): Ditto.
289 (lookup_language_this): Add function comment.
290 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
291 function comment.
292 (lookup_block_symbol): Improve function comment.
293 (lookup_struct): Fix capitalization in function comment.
294 (lookup_transparent_type): Add function comment.
295 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
296 Improve function comment.
297 (lookup_objfile_from_block): Add function comment.
298 * symtab.c (lookup_symbol_in_language): Update function comment.
299 (lookup_symbol, lookup_language_this): Ditto.
300 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
301 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
302 (basic_lookup_symbol_nonlocal): Ditto.
303 (lookup_symbol_static, lookup_symbol_global): Ditto.
304 (lookup_transparent_type, lookup_block_symbol): Ditto.
305
ff6c39cf
DE
3062014-10-25 Doug Evans <xdje42@gmail.com>
307
308 * symtab.c (types_info): Delete forward decl.
309 (functions_info, variables_info, sources_info): Ditto.
310 (_initialize_symtab): Rewrite forward decl to use
311 initialize_file_ftype.
312
ec201f0c
DE
3132014-10-25 Doug Evans <xdje42@gmail.com>
314
315 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
316
ca040673
DE
3172014-10-25 Doug Evans <xdje42@gmail.com>
318
319 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
320 of local var child_die.
321
6f259a23
DB
3222014-10-24 Don Breazeal <donb@codesourcery.com>
323
324 * infrun.c (follow_fork_inferior): Update fork message printing
325 to use target_terminal_ours_for_output instead of
326 target_terminal_ours, to use _() for all format strings, to print
327 "vfork" instead of "fork" for vforks, and to add a detach message.
328 (handle_vfork_child_exec_or_exit): Update message printing to use
329 target_terminal_ours_for_output instead of target_terminal_ours, to
330 use _() for all format strings, and to fix some formatting.
331
09dd9a69
PA
3322014-10-24 Pedro Alves <palves@redhat.com>
333
334 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
335 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
336 * config/vax/vax.mh: Delete.
337 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
338 obsolete configurations section.
339 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
340 * vax-nat.c: Delete file.
341
5ab806de
PA
3422014-10-24 Pedro Alves <palves@redhat.com>
343
344 * NEWS (Removed targets): Add OS/arch column.
345
3433cfa5
SC
3462014-10-24 Siva Chandra Reddy <sivachandra@google.com>
347
348 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
349 on the arg type of a constructor only if it is of reference type.
350
96ba4233
SL
3512014-10-23 Sandra Loosemore <sandra@codesourcery.com>
352
353 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
354 accessors and constants from nios2 opcodes update.
355 (nios2_get_next_pc): Likewise.
356
28153fd3
DE
3572014-10-19 Doug Evans <xdje42@gmail.com>
358
359 * gdbthread.h (set_running): Fix comment.
360 (set_executing, finish_thread_state): Fix comment.
361
fc9b8e47
DE
3622014-10-18 Doug Evans <xdje42@gmail.com>
363
364 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
365
4ffbba72
DE
3662014-10-17 Doug Evans <dje@google.com>
367
368 * NEWS: Mention new event gdb.clear_objfiles.
369 * python/py-event.h (emit_clear_objfiles_event): Clear
370 * python/py-events.h (events_object): New member clear_objfiles.
371 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
372 event.
373 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
374 emit clear_objfiles event.
375 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
376 function.
377 (emit_clear_objfiles_event): New function.
378 (clear_objfiles): New event.
379 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
380 Declare.
381 * python/python.c (_initialize_python): Call
382 gdbpy_initialize_clear_objfiles_event.
383
d096d8c1
DE
3842014-10-17 Doug Evans <dje@google.com>
385
386 * NEWS: Mention new gdb.Objfile.progspace attribute.
387 * python/py-objfile.c (objfpy_get_progspace): New function.
388 (objfile_getset): New entry for "progspace".
389
6c4486e6
PA
3902014-10-17 Pedro Alves <palves@redhat.com>
391
392 PR gdb/17471
393 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
394 returns a copy of the input.
395 (run_command_1, continue_command, step_1, jump_command)
396 (signal_command, until_command, advance_command, finish_command)
397 (attach_command): Adjust and install a cleanup to free the
398 stripped args.
399
0ff33695
PA
4002014-10-17 Pedro Alves <palves@redhat.com>
401
402 PR gdb/17300
403 * infcmd.c (continue_1): If continuing all threads in the
404 foreground, make sure the inferior's terminal settings are put in
405 effect.
406
6fdebc3d
PA
4072014-10-17 Pedro Alves <palves@redhat.com>
408
409 PR gdb/17472
410 * annotate.c (annotate_breakpoints_invalid): Use
411 target_terminal_our_for_output instead of target_terminal_ours.
412 Give back the terminal to the target.
413 (annotate_frames_invalid): Likewise.
414
5842f62a
PA
4152014-10-17 Pedro Alves <palves@redhat.com>
416
417 * target.c (enum terminal_state): New enum.
418 (terminal_state): New global.
419 (target_terminal_init): New function.
420 (target_terminal_inferior): Skip if inferior already owns the
421 terminal.
422 (target_terminal_ours, target_terminal_ours_for_output): New
423 functions.
424 * target.h (target_terminal_init): Convert to function prototype.
425 (target_terminal_ours_for_output): Convert to function prototype
426 and tweak comment.
427 (target_terminal_ours): Convert to function prototype and tweak
428 comment.
429 * windows-nat.c (do_initial_windows_stuff): Call
430 target_terminal_init instead of child_terminal_init_with_pgrp.
431
32a8097b
PA
4322014-10-17 Pedro Alves <palves@redhat.com>
433
434 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
435 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
436 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
437 solib-osf.c.
438 * NEWS: Mention that support for alpha*-*-osf* has been removed.
439 * ada-lang.h [__alpha__ && __osf__]
440 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
441 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
442 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
443 GDB_OSABI_OSF1.
444 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
445 files.
446 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
447 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
448 * configure: Regenerate.
449 * configure.ac: Remove references to osf.
450 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
451 section. Remove all other references to osf.
452 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
453 Remove all other references to osf.
454 * dec-thread.c: Delete file.
455 * defs.h (GDB_OSABI_OSF1): Delete.
456 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
457 defined.
458 * osabi.c (gdb_osabi_names): Delete "OSF/1".
459 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
460 Delete code.
461 (unconditionally_kill_inferior)
462 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
463 * solib-osf.c: Delete file.
464
80134cf5
PA
4652014-10-17 Pedro Alves <palves@redhat.com>
466
467 * remote.c (clear_threads_listing_context): Move higher up, out of
468 the HAVE_LIBEXPAT guard.
469
89c7137f
TG
4702014-10-16 Tristan Gingold <gingold@adacore.com>
471
472 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
473 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
474 on amd64.
475
44ee4a52
PA
4762014-10-15 Pedro Alves <palves@redhat.com>
477
478 * dec-thread.c (dec_thread_count_gdb_threads)
479 (dec_thread_add_gdb_thread): Delete.
480 (dec_thread_update_thread_list): Delete.
481 (dec_thread_find_new_threads): Rename to ...
482 (dec_thread_update_thread_list): ... this. Delete GDB-size
483 threads that are no longer found in dec_thread_list.
484 (resync_thread_list): Delete.
485 (dec_thread_wait): Call dec_thread_update_thread_list instead of
486 resync_thread_list.
487
ab970af1
PA
4882014-10-15 Pedro Alves <palves@redhat.com>
489
490 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
491 * remote.c (remote_update_thread_list): Skip calling prune_threads
492 if any thread listing method is supported, and instead walk over
493 the set of remote threads listed, deleting those that are not
494 found in GDB's thread list.
495
e8032dde
PA
4962014-10-15 Pedro Alves <palves@redhat.com>
497
498 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
499 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
500 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
501 (bsd_uthread_target): Adjust.
502 * corelow.c (core_open): Adjust.
503 * dec-thread.c (dec_thread_find_new_threads): Update comment.
504 (dec_thread_update_thread_list): New function.
505 (init_dec_thread_ops): Adjust.
506 * gdbthread.h (prune_threads): New declaration.
507 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
508 (thread_db_update_thread_list): ... this. Call prune_threads.
509 (init_thread_db_ops): Adjust.
510 * nto-procfs.c (procfs_find_new_threads): Rename to ...
511 (procfs_update_thread_list): ... this. Call prune_threads.
512 (procfs_attach, procfs_create_inferior, init_procfs_targets):
513 Adjust.
514 * obsd-nat.c (obsd_find_new_threads): Rename to ...
515 (obsd_update_thread_list): ... this. Call prune_threads.
516 (obsd_add_target): Adjust.
517 * procfs.c (procfs_target): Adjust.
518 (procfs_notice_thread): Update comment.
519 (procfs_find_new_threads): Rename to ...
520 (procfs_update_thread_list): ... this. Call prune_threads.
521 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
522 comment.
523 (ravenscar_wait): Adjust.
524 (ravenscar_find_new_threads): Rename to ...
525 (ravenscar_update_thread_list): ... this. Call prune_threads.
526 (init_ravenscar_thread_ops): Adjust.
527 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
528 (record_btrace_update_thread_list): ... this. Adjust comment.
529 (init_record_btrace_ops): Adjust.
530 * remote.c (remote_threads_info): Rename to ...
531 (remote_update_thread_list): ... this. Call prune_threads.
532 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
533 Adjust.
534 * sol-thread.c (check_for_thread_db): Adjust.
535 (sol_find_new_threads_callback): Rename to ...
536 (sol_update_thread_list_callback): ... this.
537 (sol_find_new_threads): Rename to ...
538 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
539 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
540 * target-delegates.c: Regenerate.
541 * target.c (target_find_new_threads): Rename to ...
542 (target_update_thread_list): ... this.
543 * target.h (struct target_ops): Rename to_find_new_threads field
544 to to_update_thread_list.
545 (target_find_new_threads): Rename to ...
546 (target_update_thread_list): ... this.
547 * thread.c (prune_threads): Make extern.
548 (update_thread_list): Adjust.
549
6dc54d91
PA
5502014-10-15 Pedro Alves <palves@redhat.com>
551
552 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
553 Add describing comment. Return -1 if the qL packet is not
554 supported.
555 (struct thread_item, thread_item_t): Move higher up in
556 the file. Add comments.
557 (struct threads_parsing_context): Move higher up in
558 the file, add comments, and remote to ...
559 (struct threads_listing_context): ... this.
560 (remote_newthread_step): Don't add the thread to GDB's thread
561 database here. Instead push it to the thread_listing_context
562 list.
563 (remote_find_new_threads): Rename to ...
564 (remote_get_threads_with_ql): ... this. Add target_ops and
565 targets_listing_context parameters. Pass down context.
566 (start_thread): Adjust.
567 (clear_threads_parsing_context): Rename to ...
568 (clear_threads_listing_context): ... this.
569 (remote_get_threads_with_qxfer): New, with parts salvaged from old
570 remote_threads_info.
571 (remote_get_threads_with_qthreadinfo): Ditto.
572 (remote_threads_info): Reimplement.
573
36728e82
PA
5742014-10-15 Pedro Alves <palves@redhat.com>
575
576 * infrun.c (resume): Don't force displaced-stepping for all
577 single-steps on software single-stepping archs.
578
34b7e8a6
PA
5792014-10-15 Pedro Alves <palves@redhat.com>
580
581 * breakpoint.c (single_step_breakpoints): Delete global.
582 (insert_single_step_breakpoint): Adjust to store the breakpoint
583 pointer in the current thread.
584 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
585 (cancel_single_step_breakpoints): Delete functions.
586 (breakpoint_has_location_inserted_here): Make extern.
587 (single_step_breakpoint_inserted_here_p): Adjust to walk the
588 breakpoint list.
589 * breakpoint.h (breakpoint_has_location_inserted_here): New
590 declaration.
591 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
592 (cancel_single_step_breakpoints): Remove declarations.
593 * gdbthread.h (struct thread_control_state)
594 <single_step_breakpoints>: New field.
595 (delete_single_step_breakpoints)
596 (thread_has_single_step_breakpoints_set)
597 (thread_has_single_step_breakpoint_here): New declarations.
598 * infrun.c (follow_exec): Also clear the single-step breakpoints.
599 (singlestep_breakpoints_inserted_p, singlestep_ptid)
600 (singlestep_pc): Delete globals.
601 (infrun_thread_ptid_changed): Remove references to removed
602 globals.
603 (resume_cleanups): Delete the current thread's single-step
604 breakpoints.
605 (maybe_software_singlestep): Remove references to removed globals.
606 (resume): Adjust to use thread_has_single_step_breakpoints_set and
607 delete_single_step_breakpoints.
608 (init_wait_for_inferior): Remove references to removed globals.
609 (delete_thread_infrun_breakpoints): Delete the thread's
610 single-step breakpoints too.
611 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
612 single-step breakpoints here.
613 (delete_stopped_threads_single_step_breakpoints): New function.
614 (adjust_pc_after_break): Adjust to use
615 thread_has_single_step_breakpoints_set.
616 (handle_inferior_event): Remove references to removed globals.
617 Use delete_stopped_threads_single_step_breakpoints.
618 (handle_signal_stop): Adjust to per-thread single-step
619 breakpoints. Swap test order to do cheaper tests first.
620 (switch_back_to_stepped_thread): Extend debug output. Remove
621 references to removed globals.
622 * record-full.c (record_full_wait_1): Adjust to per-thread
623 single-step breakpoints.
624 * thread.c (delete_single_step_breakpoints)
625 (thread_has_single_step_breakpoints_set)
626 (thread_has_single_step_breakpoint_here): New functions.
627 (clear_thread_inferior_resources): Also delete the thread's
628 single-step breakpoints.
629
5b834a0a
PA
6302014-10-15 Pedro Alves <palves@redhat.com>
631
632 * thread.c (delete_thread_breakpoint): New function.
633 (delete_step_resume_breakpoint)
634 (delete_exception_resume_breakpoint): Use it.
635 (delete_at_next_stop): New function.
636 (clear_thread_inferior_resources): Use delete_at_next_stop.
637
a1fd2fa5
PA
6382014-10-15 Pedro Alves <palves@redhat.com>
639
640 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
641 (breakpoint_inserted_here_p): ... here. Remove special case for
642 software single-step breakpoints.
643 (find_non_raw_software_breakpoint_inserted_here): Inline ...
644 (software_breakpoint_inserted_here_p): ... here. Remove special
645 case for software single-step breakpoints.
646 (bp_target_info_copy_insertion_state)
647 (deprecated_insert_raw_breakpoint)
648 (deprecated_remove_raw_breakpoint): Delete functions.
649 * breakpoint.h (deprecated_insert_raw_breakpoint)
650 (deprecated_remove_raw_breakpoint): Remove declarations.
651
7c16b83e
PA
6522014-10-15 Pedro Alves <palves@redhat.com>
653
654 PR breakpoints/9649
655 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
656 Delete array globals.
657 (single_step_breakpoints): New global.
658 (breakpoint_xfer_memory): Remove special handling for single-step
659 breakpoints.
660 (update_breakpoints_after_exec): Delete bp_single_step
661 breakpoints.
662 (detach_breakpoints): Remove special handling for single-step
663 breakpoints.
664 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
665 (bpstat_stop_status): Add comment.
666 (bpstat_what, bptype_string, print_one_breakpoint_location)
667 (adjust_breakpoint_address, init_bp_location): Handle
668 bp_single_step.
669 (new_single_step_breakpoint): New function.
670 (set_momentary_breakpoint, bkpt_remove_location): Remove special
671 handling for single-step breakpoints.
672 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
673 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
674 Rewrite.
675 (detach_single_step_breakpoints, find_single_step_breakpoint):
676 Delete functions.
677 (breakpoint_has_location_inserted_here): New function.
678 (single_step_breakpoint_inserted_here_p): Rewrite.
679 * breakpoint.h: Remove FIXME.
680 (enum bptype) <bp_single_step>: New enum value.
681 (insert_single_step_breakpoint): Update comment.
682 * infrun.c (resume_cleanups)
683 (delete_step_thread_step_resume_breakpoint): Remove single-step
684 breakpoints.
685 (fetch_inferior_event): Install a cleanup that removes infrun
686 breakpoints.
687 (switch_back_to_stepped_thread) <expect thread advanced also>:
688 Clear step-over info.
689
0cbcdb96
PA
6902014-10-15 Pedro Alves <palves@redhat.com>
691
692 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
693 (delete_thread_infrun_breakpoints): New function, with parts
694 salvaged from delete_step_resume_breakpoint_callback.
695 (delete_step_thread_step_resume_breakpoint): Delete.
696 (for_each_just_stopped_thread_callback_func): New typedef.
697 (for_each_just_stopped_thread): New function.
698 (delete_just_stopped_threads_infrun_breakpoints): New function.
699 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
700 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
701 ... this. Adjust.
702 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
703
963f9c80
PA
7042014-10-15 Pedro Alves <palves@redhat.com>
705
706 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
707 trying to step past a non-steppable watchpoint.
708 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
709 field.
710 * infrun.c (struct step_over_info): Add new field
711 'nonsteppable_watchpoint_p' and adjust comments.
712 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
713 Adjust.
714 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
715 (stepping_past_nonsteppable_watchpoint): New function.
716 (step_over_info_valid_p): Also return true if stepping past a
717 nonsteppable watchpoint.
718 (proceed): Adjust call to set_step_over_info. Remove reference to
719 init_infwait_state.
720 (init_wait_for_inferior): Remove reference to init_infwait_state.
721 (waiton_ptid): Delete global.
722 (struct execution_control_state)
723 <stepped_after_stopped_by_watchpoint>: Delete field.
724 (wait_for_inferior, fetch_inferior_event): Always pass
725 minus_one_ptid to target_wait.
726 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
727 field.
728 (init_infwait_state): Delete function.
729 (handle_inferior_event): Remove infwait_state handling.
730 (handle_signal_stop) <watchpoints handling>: Adjust after
731 stepped_after_stopped_by_watchpoint removal. Don't remove
732 breakpoints here nor set infwait_state. Set the thread's
733 stepping_over_watchpoint flag, and call keep_going instead.
734 (keep_going): Handle stepping_over_watchpoint. Adjust
735 set_step_over_info calls.
736 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
737 function.
738
6cc83d2a
PA
7392014-10-15 Pedro Alves <palves@redhat.com>
740
741 * infrun.c (step_over_info_valid_p): New function.
742 (resume): Use step_over_info_valid_p instead of checking the
743 threads's trap_expected flag.
744
6979730b
DE
7452014-10-15 Doug Evans <dje@google.com>
746 Walfred Tedeschi <walfred.tedeschi@intel.com>
747
748 PR python/17364
749 * python/lib/gdb/__init__.py (packages): Add "printer".
750 * python/lib/gdb/command/bound_registers.py: Moved to ...
751 * python/lib/gdb/printer/bound_registers.py: ... here.
752 Add printer to global set of builtin printers. Rename printer from
753 "bound" to "mpx_bound128".
754 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
755 registered as global "builtin" printer.
756 (add_builtin_pretty_printer): New function.
757 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
758 gdb/printer/__init__.py.
759
35a49624
IB
7602014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
761
762 * Makefile.in (SFILES): Remove d-support.c.
763 (COMMON_OBS): Remove d-support.o.
764 * d-lang.h (d_parse_symbol): Remove declaration.
765 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
766 * d-support.c: Remove file.
767
8fa0c4f8
AA
7682014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
769
770 * gdb/infrun.c (process_event_stop_test): Apply
771 gdbarch_addr_bits_remove to longjmp resume address.
772
3666da81
PA
7732014-10-15 Pedro Alves <palves@redhat.com>
774
775 * regformats/microblaze.dat: Delete file.
776
449aa9df
AKA
7772014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
778
779 * features/Makefile (microblaze-expedite): Replace pc with rpc.
780 * regformats/microblaze-with-stack-protect.dat: Regenerate.
781
ebb8ece2
SC
7822014-10-15 Siva Chandra Reddy <sivachandra@google.com>
783
784 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
785 as non-trivial.
786
82c48ac7
SC
7872014-10-15 Siva Chandra Reddy <sivachandra@google.com>
788
789 PR c++/13403
790 PR c++/15154
791 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
792 with qualified args.
793
c40cc657
JB
7942014-10-14 Joel Brobecker <brobecker@adacore.com>
795
796 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
797 of the case where the second operand is a pointer.
798 <BINOP_SUB>: Likewise.
799
0ea5cda8
SDJ
8002014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
801
802 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
803 only if it is not NULL.
804 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
805 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
806 (struct probe_ops) <clear_semaphore>: Likewise.
807 * tracepoint.c (start_tracing): Call set_semaphore only if it is
808 not NULL.
809 (stop_tracing): Likewise, for clear_semaphore.
810
f7088df3
SDJ
8112014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
812
813 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
814 using language_c, instead of current_language.
815
4e1bbde0
DE
8162014-10-13 Doug Evans <dje@google.com>
817
6ff5a0f6 818 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 819 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 820 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
821 (pspy_new, pspace_to_pspace_object): Call it.
822
c780cc2f
JK
8232014-10-13 Miroslav Franc <mfranc@redhat.com>
824 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 Fix "save breakpoints" for "catch" command.
827 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
828 newline.
829
99894e11
JK
8302014-10-12 Miroslav Franc <mfranc@redhat.com>
831
832 Fix "save breakpoints" for "disable $bpnum" command.
833 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
834
3831839c
PA
8352014-10-10 Pedro Alves <palves@redhat.com>
836
837 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
838 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
839 (HFILES_NO_SRCDIR): Remove solib-irix.h.
840 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
841 and been removed.
842 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
843 * configure.ac: Remove references to IRIX.
844 * configure.host: Add *-*-irix* to the obsolete hosts section.
845 Remove all other references to irix.
846 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
847 Delete files.
848
cc3afae2
AKA
8492014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
850
851 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
852 isn't valid, release the tdesc arch data and return NULL.
853
cdfa0b0a
PA
8542014-10-10 Pedro Alves <palves@redhat.com>
855
856 * linux-tdep.c: Include observer.h.
857 (linux_inferior_data): New global.
858 (struct linux_info): New structure.
859 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
860 (get_linux_inferior_data): New functions.
861 (linux_vsyscall_range): Rename to ...
862 (linux_vsyscall_range_raw): ... this.
863 (linux_vsyscall_range): New function; handles caching.
864 (_initialize_linux_tdep): Register linux_inferior_data. Install
865 inferior_exit and inferior_appeared observers.
866
8b9a549d
PA
8672014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
868 Pedro Alves <palves@redhat.com>
869
870 PR symtab/14466
871 * solib-svr4.c (svr4_read_so_list): Rename to ...
872 (svr4_current_sos_1): ... this and change the function comment.
873 (svr4_current_sos): New function.
874
3437254d
PA
8752014-10-10 Pedro Alves <palves@redhat.com>
876
877 * arch-utils.c (default_vsyscall_range): New function.
878 * arch-utils.h (default_vsyscall_range): New declaration.
879 * gdbarch.sh (vsyscall_range): New hook.
880 * gdbarch.h, gdbarch.c: Regenerate.
881 * linux-tdep.c (linux_vsyscall_range): New function.
882 (linux_init_abi): Install linux_vsyscall_range as
883 vsyscall_range gdbarch hook.
884 * memrange.c (address_in_mem_range): New function.
885 * memrange.h (address_in_mem_range): New declaration.
886 * symfile-mem.c (find_vdso_size): Delete function.
887 (add_vsyscall_page): Use gdbarch_vsyscall_range.
888
31cc0b80
PA
8892014-10-10 Pedro Alves <palves@redhat.com>
890
891 * infrun.c (normal_stop): Fix typo in comment.
892
3e3286a2
SDJ
8932014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
894
895 PR tdep/9390
896 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
897 typo when using logical AND to determine instruction type.
898
fcbdedf8
YQ
8992014-10-09 Yao Qi <yao@codesourcery.com>
900
901 * infrun.c (handle_signal_stop): Remove local variable
902 'printed'.
903
db984616
SS
9042014-10-08 Stan Shebs <stan@codesourcery.com>
905
906 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
907
3ba37e6c
GB
9082014-10-08 Gary Benson <gbenson@redhat.com>
909
910 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
911
a442d071
GB
9122014-10-08 Gary Benson <gbenson@redhat.com>
913
914 * common/common-defs.h: Include common-exceptions.h.
915 * exceptions.h: Do not include common-exceptions.h.
916
6f1947e8
GB
9172014-10-08 Gary Benson <gbenson@redhat.com>
918
919 * common/common-defs.h: Include cleanups.h.
920 * common/common-exceptions.c: Do not include cleanups.h.
921 * utils.h: Likewise.
922
c765fdb9
GB
9232014-10-08 Gary Benson <gbenson@redhat.com>
924
925 * ada-lang.c: Do not include exceptions.h.
926 * ada-valprint.c: Likewise.
927 * amd64-tdep.c: Likewise.
928 * auto-load.c: Likewise.
929 * block.c: Likewise.
930 * break-catch-throw.c: Likewise.
931 * breakpoint.c: Likewise.
932 * btrace.c: Likewise.
933 * c-lang.c: Likewise.
934 * cli/cli-cmds.c: Likewise.
935 * cli/cli-interp.c: Likewise.
936 * cli/cli-script.c: Likewise.
937 * completer.c: Likewise.
938 * corefile.c: Likewise.
939 * corelow.c: Likewise.
940 * cp-abi.c: Likewise.
941 * cp-support.c: Likewise.
942 * cp-valprint.c: Likewise.
943 * darwin-nat.c: Likewise.
944 * dwarf2-frame-tailcall.c: Likewise.
945 * dwarf2-frame.c: Likewise.
946 * dwarf2loc.c: Likewise.
947 * dwarf2read.c: Likewise.
948 * eval.c: Likewise.
949 * event-loop.c: Likewise.
950 * event-top.c: Likewise.
951 * f-valprint.c: Likewise.
952 * frame-unwind.c: Likewise.
953 * frame.c: Likewise.
954 * gdbtypes.c: Likewise.
955 * gnu-v2-abi.c: Likewise.
956 * gnu-v3-abi.c: Likewise.
957 * guile/scm-auto-load.c: Likewise.
958 * guile/scm-breakpoint.c: Likewise.
959 * guile/scm-cmd.c: Likewise.
960 * guile/scm-frame.c: Likewise.
961 * guile/scm-lazy-string.c: Likewise.
962 * guile/scm-param.c: Likewise.
963 * guile/scm-symbol.c: Likewise.
964 * guile/scm-type.c: Likewise.
965 * hppa-hpux-tdep.c: Likewise.
966 * i386-tdep.c: Likewise.
967 * inf-loop.c: Likewise.
968 * infcall.c: Likewise.
969 * infcmd.c: Likewise.
970 * infrun.c: Likewise.
971 * interps.c: Likewise.
972 * interps.h: Likewise.
973 * jit.c: Likewise.
974 * linespec.c: Likewise.
975 * linux-nat.c: Likewise.
976 * linux-thread-db.c: Likewise.
977 * m32r-rom.c: Likewise.
978 * main.c: Likewise.
979 * memory-map.c: Likewise.
980 * mi/mi-cmd-break.c: Likewise.
981 * mi/mi-cmd-stack.c: Likewise.
982 * mi/mi-interp.c: Likewise.
983 * mi/mi-main.c: Likewise.
984 * monitor.c: Likewise.
985 * nto-procfs.c: Likewise.
986 * objc-lang.c: Likewise.
987 * p-valprint.c: Likewise.
988 * parse.c: Likewise.
989 * ppc-linux-tdep.c: Likewise.
990 * printcmd.c: Likewise.
991 * probe.c: Likewise.
992 * python/py-auto-load.c: Likewise.
993 * python/py-breakpoint.c: Likewise.
994 * python/py-cmd.c: Likewise.
995 * python/py-finishbreakpoint.c: Likewise.
996 * python/py-frame.c: Likewise.
997 * python/py-framefilter.c: Likewise.
998 * python/py-function.c: Likewise.
999 * python/py-gdb-readline.c: Likewise.
1000 * python/py-inferior.c: Likewise.
1001 * python/py-infthread.c: Likewise.
1002 * python/py-lazy-string.c: Likewise.
1003 * python/py-linetable.c: Likewise.
1004 * python/py-param.c: Likewise.
1005 * python/py-prettyprint.c: Likewise.
1006 * python/py-symbol.c: Likewise.
1007 * python/py-type.c: Likewise.
1008 * python/py-value.c: Likewise.
1009 * python/python-internal.h: Likewise.
1010 * python/python.c: Likewise.
1011 * record-btrace.c: Likewise.
1012 * record-full.c: Likewise.
1013 * regcache.c: Likewise.
1014 * remote-fileio.c: Likewise.
1015 * remote-mips.c: Likewise.
1016 * remote.c: Likewise.
1017 * rs6000-aix-tdep.c: Likewise.
1018 * rs6000-nat.c: Likewise.
1019 * skip.c: Likewise.
1020 * solib-darwin.c: Likewise.
1021 * solib-dsbt.c: Likewise.
1022 * solib-frv.c: Likewise.
1023 * solib-ia64-hpux.c: Likewise.
1024 * solib-spu.c: Likewise.
1025 * solib-svr4.c: Likewise.
1026 * solib.c: Likewise.
1027 * spu-tdep.c: Likewise.
1028 * stack.c: Likewise.
1029 * stap-probe.c: Likewise.
1030 * symfile-mem.c: Likewise.
1031 * symmisc.c: Likewise.
1032 * target.c: Likewise.
1033 * thread.c: Likewise.
1034 * top.c: Likewise.
1035 * tracepoint.c: Likewise.
1036 * tui/tui-interp.c: Likewise.
1037 * typeprint.c: Likewise.
1038 * utils.c: Likewise.
1039 * valarith.c: Likewise.
1040 * valops.c: Likewise.
1041 * valprint.c: Likewise.
1042 * value.c: Likewise.
1043 * varobj.c: Likewise.
1044 * windows-nat.c: Likewise.
1045 * xml-support.c: Likewise.
1046
484933d1
MR
10472014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1048
1049 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1050 name implies.
1051 (extended_mips16_next_pc): Update accordingly.
1052
ab50adb6
MR
10532014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1054
1055 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1056 function.
1057 (micromips_instruction_is_compact_branch): Likewise.
1058 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1059 or a compact jump, reaching a jump delay slot, or seeing a
1060 second non-prologue instruction.
1061 (micromips_scan_prologue): Also terminate scanning upon seeing a
1062 compact branch or jump, or reaching a branch or jump delay slot.
1063 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1064 or jump delay slot, or seeing a second non-prologue instruction.
1065 (mips32_instruction_has_delay_slot): Retain instruction
1066 examination code only, update arguments accordingly and move
1067 instruction fetch pieces to...
1068 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1069 (micromips_instruction_has_delay_slot): Likewise and to...
1070 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1071 (mips16_instruction_has_delay_slot): Likewise and to...
1072 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1073 (mips_single_step_through_delay): Update accordingly.
1074 (mips_adjust_breakpoint_address): Likewise.
1075
ae790652
MR
10762014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1077
1078 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1079 !mustbe32 also return 1 for 32-bit instructions.
1080 (mips16_instruction_has_delay_slot): Likewise. Add an
1081 explanatory comment.
1082
9b807e7b
MR
10832014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1084
1085 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1086 symbols special.
1087
0d5ed153
MR
10882014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1089
1090 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1091 update comments.
1092 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1093 for the breakpoint's address. Don't preinitialize `placed_size'.
1094 (insert_bp_location): Set `reqstd_address' rather than
1095 `placed_address'.
1096 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1097 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1098 address.
1099 (bkpt_remove_location): Likewise.
1100 (deprecated_insert_raw_breakpoint): Likewise.
1101 (deprecated_remove_raw_breakpoint): Likewise.
1102 (find_single_step_breakpoint): Likewise.
1103 * mem-break.c (default_memory_insert_breakpoint): Use
1104 `reqstd_address' for the breakpoint's address. Don't set
1105 `placed_address' or `placed_size' if breakpoint contents couldn't
1106 have been determined.
1107 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1108 the breakpoint's address.
1109 (remote_insert_hw_breakpoint): Likewise. Don't set
1110 `placed_address' or `placed_size' if breakpoint couldn't have been
1111 set.
1112 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1113 `reqstd_address' for the breakpoint's address.
1114 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1115 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1116 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1117 * microblaze-linux-tdep.c
1118 (microblaze_linux_memory_remove_breakpoint): Likewise.
1119 * monitor.c (monitor_insert_breakpoint): Likewise.
1120 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1121 (procfs_insert_hw_breakpoint): Likewise.
1122 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1123 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1124 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1125 * remote-mips.c (mips_insert_breakpoint): Likewise.
1126 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1127
3e871532
LM
11282014-10-03 Luis Machado <lgustavo@codesourcery.com>
1129
1130 * valops.c (value_assign): Check for bit field assignments
1131 before calling architecture-specific register value
1132 conversion functions.
1133
ec48dc8b
PM
11342014-10-03 Pierre Muller <muller@sourceware.org>
1135
1136 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1137
b57bacec
PA
11382014-10-02 Pedro Alves <palves@redhat.com>
1139
1140 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1141 threads_are_executing.
1142 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1143 describing comment.
1144 * gdbthread.h (threads_are_executing): Declare.
1145 (handle_signal_stop) <random signals>: Don't print about the
1146 signal here if stopping.
1147 (end_stepping_range): Don't notify observers here.
1148 (normal_stop): Update the thread list. If stopped by a random
1149 signal or a stepping range ended, notify observers.
1150 * thread.c (threads_executing): New global.
1151 (init_thread_list): Clear 'threads_executing'.
1152 (set_executing): Set or clear 'threads_executing'.
1153 (threads_are_executing): New function.
1154 (update_threads_executing): New function.
1155 (update_thread_list): Use it.
1156
13fd3ff3
PA
11572014-10-02 Pedro Alves <palves@redhat.com>
1158
1159 PR breakpoints/17431
1160 * breakpoint.c (update_breakpoints_after_exec): Don't create
1161 overlay, longjmp, std terminate nor exception breakpoints here.
1162
32990ada
PA
11632014-10-02 Pedro Alves <palves@redhat.com>
1164
1165 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1166 Adjust comments.
1167 * inferior.c (find_inferior_for_program_space): Give preference to
1168 the current inferior.
1169 * inferior.h (find_inferior_for_program_space): Update comment.
1170 * progspace.c (switch_to_program_space_and_thread): Prefer the
1171 current inferior if it's bound to the program space requested. If
1172 the inferior found doesn't have a PID yet, don't bother looking up
1173 a thread.
1174 * progspace.h (switch_to_program_space_and_thread): Adjust
1175 comment.
1176 * thread.c (any_thread_of_process, any_live_thread_of_process):
1177 Give preference to the current thread.
1178
0fec99e8
PA
11792014-10-01 Pedro Alves <palves@redhat.com>
1180
1181 * breakpoint.c (insert_bp_location): Error out if inserting a
1182 software breakpoint at a read-only address.
1183 * target.c (memory_xfer_check_region): New function, factored out
1184 from ...
1185 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1186 ULONGEST.
1187 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1188 against the memory region attributes.
1189
2ddf4301
SM
11902014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1191
1192 * NEWS: Announce new exit-code field in -list-thread-groups
1193 output.
1194 * inferior.c (exit_inferior_1): Don't clear exit code.
1195 (inferior_appeared): Clear exit code.
1196 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1197 code.
1198
5fdeec1d
PA
11992014-10-01 Pedro Alves <palves@redhat.com>
1200
1201 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1202 GENERATED" along with emacs/vi read-only markers.
1203 * regformats/aarch64.dat: Regenerate.
1204 * regformats/arm-with-iwmmxt.dat: Regenerate.
1205 * regformats/arm-with-neon.dat: Regenerate.
1206 * regformats/arm-with-vfpv2.dat: Regenerate.
1207 * regformats/arm-with-vfpv3.dat: Regenerate.
1208 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1209 * regformats/i386/amd64-avx.dat: Regenerate.
1210 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1211 * regformats/i386/amd64-avx512.dat: Regenerate.
1212 * regformats/i386/amd64-linux.dat: Regenerate.
1213 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1214 * regformats/i386/amd64-mpx.dat: Regenerate.
1215 * regformats/i386/amd64.dat: Regenerate.
1216 * regformats/i386/i386-avx-linux.dat: Regenerate.
1217 * regformats/i386/i386-avx.dat: Regenerate.
1218 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1219 * regformats/i386/i386-avx512.dat: Regenerate.
1220 * regformats/i386/i386-linux.dat: Regenerate.
1221 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1222 * regformats/i386/i386-mmx.dat: Regenerate.
1223 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1224 * regformats/i386/i386-mpx.dat: Regenerate.
1225 * regformats/i386/i386.dat: Regenerate.
1226 * regformats/i386/x32-avx-linux.dat: Regenerate.
1227 * regformats/i386/x32-avx.dat: Regenerate.
1228 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1229 * regformats/i386/x32-avx512.dat: Regenerate.
1230 * regformats/i386/x32-linux.dat: Regenerate.
1231 * regformats/i386/x32.dat: Regenerate.
1232 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1233 * regformats/mips-dsp-linux.dat: Regenerate.
1234 * regformats/mips-linux.dat: Regenerate.
1235 * regformats/mips64-dsp-linux.dat: Regenerate.
1236 * regformats/mips64-linux.dat: Regenerate.
1237 * regformats/nios2-linux.dat: Regenerate.
1238 * regformats/rs6000/powerpc-32.dat: Regenerate.
1239 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1240 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1241 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1242 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1243 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1244 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1245 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1246 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1247 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1248 * regformats/s390-linux32.dat: Regenerate.
1249 * regformats/s390-linux32v1.dat: Regenerate.
1250 * regformats/s390-linux32v2.dat: Regenerate.
1251 * regformats/s390-linux64.dat: Regenerate.
1252 * regformats/s390-linux64v1.dat: Regenerate.
1253 * regformats/s390-linux64v2.dat: Regenerate.
1254 * regformats/s390-te-linux64.dat: Regenerate.
1255 * regformats/s390x-linux64.dat: Regenerate.
1256 * regformats/s390x-linux64v1.dat: Regenerate.
1257 * regformats/s390x-linux64v2.dat: Regenerate.
1258 * regformats/s390x-te-linux64.dat: Regenerate.
1259 * regformats/tic6x-c62x-linux.dat: Regenerate.
1260 * regformats/tic6x-c62x.dat: Regenerate.
1261 * regformats/tic6x-c64x-linux.dat: Regenerate.
1262 * regformats/tic6x-c64x.dat: Regenerate.
1263 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1264 * regformats/tic6x-c64xp.dat: Regenerate.
1265
db74e4ba
PA
12662014-10-01 Pedro Alves <palves@redhat.com>
1267
1268 * features/Makefile: Update comments.
1269 (XMLTOC): List all xml files we build C files from.
1270 (clean-cfiles): New rule.
1271
d63f2f84
PA
12722014-10-01 Pedro Alves <palves@redhat.com>
1273
1274 * features/i386/amd64-avx512-linux.c: Regenerate.
1275 * features/i386/amd64-avx512.c: Regenerate.
1276 * features/i386/x32-avx512-linux.c: Regenerate.
1277 * features/i386/x32-avx512.c: Regenerate.
1278
20ad026d
PA
12792014-10-01 Pedro Alves <palves@redhat.com>
1280
1281 * features/Makefile (WHICH): Remove arm-with-m,
1282 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1283
acc9fe45
PA
12842014-10-01 Pedro Alves <palves@redhat.com>
1285
1286 * features/Makefile (clean): New rule.
1287
e001e535
PA
12882014-10-01 Pedro Alves <palves@redhat.com>
1289
1290 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1291 (zmm14h): Add missing end quotes.
1292
bdc14417
PA
12932014-10-01 Pedro Alves <palves@redhat.com>
1294
1295 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1296 * features/aarch64.c: Regenerate.
1297
d83ad864
DB
12982014-09-30 Don Breazeal <donb@codesourcery.com>
1299
1300 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1301 code so as to work with follow_fork_inferior.
1302 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1303 (inf_ttrace_create_inferior): Remove reference to
1304 inf_ttrace_vfork_ppid.
1305 (inf_ttrace_attach): Ditto.
1306 (inf_ttrace_detach): Ditto.
1307 (inf_ttrace_kill): Use current_inferior instead of
1308 inf_ttrace_vfork_ppid.
1309 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1310 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1311 inferior away from the parent.
1312 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1313 target_follow_fork.
1314 (follow_fork_inferior): New function.
1315 (follow_inferior_reset_breakpoints): Make function static.
1316 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1317 * linux-nat.c (linux_child_follow_fork): Move target-independent
1318 code to infrun.c:follow_fork_inferior.
1319
29082443
AA
13202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1321
1322 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1323 * gdbarch.c: Regenerate.
1324 * gdbarch.h: Likewise.
1325 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1326 gdbarch method 'regset_from_core_section'.
1327 (get_core_register_section): Remove handling for the case that
1328 regset == NULL and regset_from_core_section is defined.
1329 (get_core_registers): Drop check for deleted method.
1330 * procfs.c (procfs_do_thread_registers): Adjust comment.
1331
f968fe80
AA
13322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333
1334 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1335 (linux_nat_make_corefile_notes): Remove.
1336 (linux_target_install_ops): Do not set target method
1337 'make_corefile_notes'.
1338 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1339 Remove field.
1340 (linux_corefile_thread_callback): Instead of args->collect, call
1341 linux_collect_thread_registers.
1342 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1343 NULL unless there is a regset iterator.
1344 (linux_make_corefile_notes_1): Remove.
1345 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1346 by linux_make_corefile_notes.
1347 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1348
174ad59a
AA
13492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1350
1351 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1352 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1353 Remove.
1354 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1355
97094034
AA
13562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1357
1358 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1359 (xtensa_iterate_over_regset_sections): New.
1360 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1361
f73d3ce7
AA
13622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1363
1364 * vax-tdep.c (vax_regset_from_core_section): Remove.
1365 (vax_iterate_over_regset_sections): New.
1366 (vax_gdbarch_init): Adjust gdbarch initialization.
1367
cb24567a
AA
13682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1369
1370 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1371 (tilegx_regset_from_core_section): Remove.
1372 (tilegx_iterate_over_regset_sections): New.
1373 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1374
e5139de8
AA
13752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1376
1377 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1378 (sparc_iterate_over_regset_sections): New.
1379 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1380 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1381 targets.
1382 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1383 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1384 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1385 target method 'make_corefile_notes'.
1386
c6d41a6f
AA
13872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1388
1389 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1390 'sizeof_gregset' and 'sizeof_fpregset'.
1391 * sh-tdep.c (sh_regset_from_core_section): Remove.
1392 (sh_iterate_over_regset_sections): New.
1393 (sh_gdbarch_init): Adjust gdbarch initialization.
1394 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1395 sizeof_fpregset.
1396 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1397 'sizeof_gregset'.
1398
9845a0b5
AA
13992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1400
1401 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1402 (score7_linux_iterate_over_regset_sections): New.
1403 (score_gdbarch_init): Adjust gdbarch initialization.
1404
23ea9aeb
AA
14052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1406
1407 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1408 FreeBSD targets.
1409 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1410 method 'make_corefile_notes'.
1411 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1412 (ppcfbsd_regset_from_core_section): Remove.
1413 (ppcfbsd_iterate_over_regset_sections): New.
1414 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1415 initialization.
1416 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1417 (ppcnbsd_iterate_over_regset_sections): New.
1418 (ppcnbsd_init_abi): Adjust.
1419 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1420 (ppcobsd_iterate_over_regset_sections): New.
1421 (ppcobsd_init_abi): Adjust.
1422 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1423 (rs6000_aix_iterate_over_regset_sections): New.
1424 (rs6000_aix_init_osabi): Adjust.
1425
c5b8d704
AA
14262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1427
1428 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1429 (nios2_regset_from_core_section): Remove.
1430 (nios2_iterate_over_regset_sections): New.
1431 (nios2_linux_init_abi): Adjust gdbarch initialization.
1432
3636e608
AA
14332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1434
1435 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1436 (am33_iterate_over_regset_sections): New.
1437 (am33_linux_init_osabi): Adjust gdbarch initialization.
1438
d4036235
AA
14392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440
1441 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1442 (mips_linux_iterate_over_regset_sections): New.
1443 (mips_linux_init_abi): Adjust gdbarch initialization.
1444 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1445 (mips64obsd_iterate_over_regset_sections): New.
1446 (mips64obsd_init_abi): Adjust.
1447 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1448 (mipsnbsd_iterate_over_regset_sections): New.
1449 (mipsnbsd_init_abi): Adjust.
1450
b61ddd6e
AA
14512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1452
1453 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1454 (m88k_iterate_over_regset_sections): New.
1455 (m88k_gdbarch_init): Adjust gdbarch initialization.
1456
55a2906a
AA
14572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1458
1459 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1460 (ia64_linux_iterate_over_regset_sections): New.
1461 (ia64_linux_init_abi): Adjust gdbarch initialization.
1462
022c98ab
AA
14632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1464
1465 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1466 (m68kbsd_iterate_over_regset_sections): New.
1467 (m68kbsd_init_abi): Adjust gdbarch initialization.
1468 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1469 (m68k_linux_iterate_over_regset_sections): New.
1470 (m68k_linux_init_abi): Adjust gdbarch initialization.
1471
5fac247f
AA
14722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473
1474 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1475 (m32r_linux_regset_from_core_section): Remove.
1476 (m32r_linux_iterate_over_regset_sections): New.
1477 (m32r_linux_init_abi): Adjust gdbarch initialization.
1478
490496c3
AA
14792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1480
1481 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1482 (amd64obsd_iterate_over_regset_sections): New.
1483 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1484 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1485 Remove.
1486 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1487 regset_from_core_section initialization.
1488 * i386-tdep.c (i386_regset_from_core_section): Remove.
1489 (i386_iterate_over_regset_sections): New.
1490 (i386_gdbarch_init): Adjust gdbarch initialization.
1491 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1492 (i386_iterate_over_regset_sections): New prototype.
1493 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1494 Remove.
1495 (i386obsd_aout_iterate_over_regset_sections): New.
1496 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1497 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1498 targets.
1499 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1500 (amd64fbsd_init_abi): Call fbsd_init_abi.
1501 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1502 (i386fbsd4_init_abi): Call fbsd_init_abi.
1503 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1504 target method 'make_corefile_notes'.
1505 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1506
50c5eb53
AA
15072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1508
1509 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1510 (hppa_hpux_iterate_over_regset_sections): New.
1511 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1512 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1513 (hppa_linux_iterate_over_regset_sections): New.
1514 (hppa_linux_init_abi): Adjust.
1515 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1516 (hppanbsd_iterate_over_regset_sections): New.
1517 (hppanbsd_init_abi): Adjust.
1518 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1519 (hppaobsd_iterate_over_regset_sections): New.
1520 (hppaobsd_init_abi): Adjust.
1521
66afae4f
AA
15222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1523
1524 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1525 (frv_linux_iterate_over_regset_sections): New.
1526 (frv_linux_init_abi): Adjust gdbarch initialization.
1527
ed09174e
AA
15282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1529
1530 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1531 (armbsd_iterate_over_regset_sections): New prototype.
1532 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1533 (armbsd_iterate_over_regset_sections): New.
1534 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1535 initialization.
1536
dff2166e
AA
15372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1538
1539 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1540 (alpha_linux_iterate_over_regset_sections): New.
1541 (alpha_linux_init_abi): Adjust gdbarch initialization.
1542 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1543 prototype.
1544 (alphanbsd_iterate_over_regset_sections): New prototype.
1545
4108500a
AA
15462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1547
1548 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1549 Remove.
1550 (aarch64_linux_iterate_over_regset_sections): New.
1551 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1552
a904c024
AA
15532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1554
1555 * fbsd-tdep.c: New file.
1556 * fbsd-tdep.h: New file.
1557 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1558 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1559 (ALLDEPFILES): Add fbsd-tdep.c.
1560
8f0435f7
AA
15612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1562
1563 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1564 parameter.
1565 * gdbarch.h: Regenerate.
1566 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1567 iterator.
1568 (get_core_register_section): Add parameter 'regset' and use it, if
1569 set. Add parameter 'min_size' and verify the bfd section size
1570 against it.
1571 (get_core_registers_cb): Add parameter 'regset' and pass it to
1572 get_core_register section. For the "standard" register sections
1573 ".reg" and ".reg2", set an appropriate default for human_name.
1574 (get_core_registers): Don't abort when the gdbarch has an iterator
1575 but no regset_from_core_section. Add NULL/0 for parameters
1576 'regset'/'min_size' in calls to get_core_register_section.
1577 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1578 'regset' and use it instead of calling the
1579 regset_from_core_section gdbarch method.
1580 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1581 * i386-tdep.c (i386_supply_xstateregset)
1582 (i386_collect_xstateregset, i386_xstateregset): Moved to
1583 i386-linux-tdep.c.
1584 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1585 .reg-xstate.
1586 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1587 core file support only if the regset iterator hasn't been set.
1588 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1589 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1590 Moved from i386-tdep.c and renamed to *_linux*.
1591 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1592 each callback invocation. Allow any .reg-xstate size when reading
1593 from a core file.
1594 * amd64-tdep.c (amd64_supply_xstateregset)
1595 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1596 amd64-linux-tdep.c.
1597 (amd64_regset_from_core_section): Remove.
1598 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1599 install an amd64-specific regset_from_core_section gdbarch method.
1600 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1601 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1602 Moved from amd64-tdep.c and renamed to *_linux*.
1603 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1604 to each callback invocation. Allow any .reg-xstate size when
1605 reading from a core file.
1606 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1607 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1608 each callback invocation.
1609 (arm_linux_init_abi): No longer set the regset_from_core_section
1610 gdbarch method.
1611 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1612 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1613 each callback invocation.
1614 (ppc_linux_init_abi): No longer set the regset_from_core_section
1615 gdbarch method.
1616 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1617 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1618 (s390_regset_from_core_section): Remove.
1619 (s390_iterate_over_regset_sections): Add regset parameter to each
1620 callback invocation.
1621 (s390_gdbarch_init): No longer set the regset_from_core_section
1622 gdbarch method. Drop initialization of deleted tdep fields.
1623
5aa82d05
AA
16242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1625
1626 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1627 (amd64_linux_iterate_over_regset_sections): New.
1628 (amd64_linux_init_abi_common): Don't install the regset section
1629 list, but the new iterator in gdbarch.
1630 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1631 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1632 (arm_linux_iterate_over_regset_sections): ...here. New function.
1633 (arm_linux_init_abi): Set iterator instead of section list.
1634 * corelow.c (get_core_registers_cb): New function, logic moved
1635 from...
1636 (get_core_registers): ...loop body here. Use new iterator method
1637 instead of walking through the regset section list.
1638 * gdbarch.sh: Remove 'core_regset_sections'. New method
1639 'iterate_over_regset_sections'. New typedef
1640 'iterate_over_regset_sections_cb'.
1641 * gdbarch.c: Regenerate.
1642 * gdbarch.h: Likewise.
1643 * i386-linux-tdep.c (i386_linux_regset_sections)
1644 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1645 Remove.
1646 (i386_linux_iterate_over_regset_sections): New.
1647 (i386_linux_init_abi): Don't choose a regset section list, but
1648 install new iterator in gdbarch.
1649 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1650 (linux_collect_regset_section_cb): New function, logic moved
1651 from...
1652 (linux_collect_thread_registers): ...loop body here. Use iterator
1653 method instead of walking through list.
1654 (linux_make_corefile_notes_1): Check for presence of iterator
1655 method instead of regset section list.
1656 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1657 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1658 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1659 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1660 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1661 (ppc_linux_init_abi): Don't choose from above regset section
1662 lists, but install new iterator in gdbarch.
1663 * regset.h (struct core_regset_section): Remove.
1664 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1665 have_linux_v1, have_linux_v2, and have_tdb.
1666 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1667 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1668 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1669 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1670 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1671 (s390_iterate_over_regset_sections): ...here. New function. Use
1672 new tdep fields.
1673 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1674 regset section lists, but install new iterator.
1675
2eca4a8d
JK
16762014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1677
1678 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1679
a73c2b56
SM
16802014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1681
1682 * progspace.c (print_program_space): Don't prune program spaces
1683 before printing them.
1684
03d46957
PA
16852014-09-25 Pedro Alves <palves@redhat.com>
1686
1687 * infrun.c (user_visible_resume_ptid): Don't check
1688 singlestep_breakpoints_inserted_p.
1689
e558d7c1
PA
16902014-09-25 Pedro Alves <palves@redhat.com>
1691
1692 * breakpoint.c (should_be_inserted): Add debug output.
1693
7f89fd65
PA
16942014-09-25 Pedro Alves <palves@redhat.com>
1695
1696 * infrun.c (stepping_past_instruction_at)
1697 (clear_exit_convenience_vars): Point at infrun.h instead of
1698 inferior.h.
1699 (handle_signal_stop): Fix typo.
1700
b7576e5c
YQ
17012014-09-24 Yao Qi <yao@codesourcery.com>
1702
1703 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1704 bitmask.
1705
9a6cf368
GB
17062014-09-22 Gary Benson <gbenson@redhat.com>
1707
1708 * target.c (target_stop): Updated comment.
1709
03f4463b
GB
17102014-09-22 Gary Benson <gbenson@redhat.com>
1711
1712 * target/target.h (target_stop_ptid): Renamed as...
1713 (target_stop_and_wait): New function. Updated comment.
1714 All uses updated.
1715 (target_continue_ptid): Renamed as...
1716 (target_continue_no_signal): New function. Updated comment.
1717 All uses updated.
1718
a25a5a45
PA
17192014-09-22 Pedro Alves <palves@redhat.com>
1720
1721 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1722 and "auto" merged.
1723 * breakpoint.c (enum ugll_insert_mode): New enum.
1724 (always_inserted_mode): Now a plain boolean.
1725 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1726 (breakpoints_always_inserted_mode): Delete.
1727 (breakpoints_should_be_inserted_now): New function.
1728 (insert_breakpoints): Pass UGLL_INSERT to
1729 update_global_location_list instead of calling
1730 insert_breakpoint_locations manually.
1731 (create_solib_event_breakpoint_1): New, factored out from ...
1732 (create_solib_event_breakpoint): ... this.
1733 (create_and_insert_solib_event_breakpoint): Use
1734 create_solib_event_breakpoint_1 instead of calling
1735 insert_breakpoint_locations manually.
1736 (update_global_location_list): Change parameter type from boolean
1737 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1738 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1739 (update_global_location_list_nothrow): Change parameter type from
1740 boolean to enum ugll_insert_mode.
1741 (_initialize_breakpoint): "breakpoint always-inserted" option is
1742 now a boolean command. Update help text.
1743 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1744 (breakpoints_should_be_inserted_now): New declaration.
1745 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1746 Remove breakpoints_always_inserted_mode check.
1747 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1748 * remote.c (remote_start_remote): Likewise.
1749
04086b45
PA
17502014-09-22 Pedro Alves <palves@redhat.com>
1751
1752 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1753 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1754 Instead, pass UGLL_INSERT to update_global_location_list.
1755 (update_global_location_list): Change parameter type from boolean
1756 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1757 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1758 (create_solib_event_breakpoint_1): New, factored out from ...
1759 (create_solib_event_breakpoint): ... this.
1760 (create_and_insert_solib_event_breakpoint): Use
1761 create_solib_event_breakpoint_1 instead of calling
1762 insert_breakpoint_locations manually.
1763 (update_global_location_list): Handle UGLL_INSERT.
1764
44702360
PA
17652014-09-22 Pedro Alves <palves@redhat.com>
1766
1767 * breakpoint.c (enum ugll_insert_mode): New enum.
1768 (update_global_location_list)
1769 (update_global_location_list_nothrow): Change parameter type from
1770 boolean to enum ugll_insert_mode. All callers adjusted.
1771
93c6145a
JB
17722014-09-19 Joel Brobecker <brobecker@adacore.com>
1773
1774 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1775 SystemTap support in GDB.
1776
89a5711c
DB
17772014-09-19 Don Breazeal <donb@codesourcery.com>
1778
1779 * linux-nat.c (linux_handle_extended_wait): Call
1780 linux_ptrace_get_extended_event.
1781 (wait_lwp): Call linux_is_extended_waitstatus.
1782 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1783 and linux_is_extended_waitstatus.
1784 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1785 linux_ptrace_get_extended_event.
1786 (linux_ptrace_get_extended_event): New function.
1787 (linux_is_extended_waitstatus): New function.
1788 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1789 (linux_is_extended_waitstatus): New declarations.
1790
c3b7b696
YQ
17912014-09-19 Yao Qi <yao@codesourcery.com>
1792
1793 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1794 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1795 comments. Callers update.
1796 (dwarf_decode_lines): Likewise.
1797 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1798 comments. Skip the line table if 'lowpc' is greater than
1799 'address'. Don't check
1800 dwarf2_per_objfile->has_section_at_zero.
1801
2b4fd423
DE
18022014-09-18 Doug Evans <dje@google.com>
1803
1804 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1805 * python/py-symtab.c (stpy_get_producer): New function.
1806 (symtab_object_getset): Add "producer" attribute.
1807
5e43d467
UW
18082014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1809
1810 PR gdb/17384
1811 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1812 (do_captured_read_memory_integer): Remove.
1813 (safe_read_memory_integer): Use target_read_memory directly instead
1814 of catching errors in do_captured_read_memory_integer.
1815
04e79979
MR
18162014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1817
1818 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1819 not gdb/doc.
1820
76aeec5b
SDJ
18212014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1822
1823 * objc-lang.c (find_implementation_from_class): Remove dead code.
1824
2f693f9d
SDJ
18252014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1826
1827 PR cli/7233
1828 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1829 "fprintf_unfiltered (gdb_stdlog...)".
1830
bb9d5f81
PP
18312014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1832
1833 PR breakpoints/12526
1834 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1835 val_bitsize.
1836 * breakpoint.c (watch_command_1): Use these fields to retain
1837 bitfield information.
1838 (extract_bitfield_from_watchpoint_value): New function.
1839 (watchpoint_check): Use it.
1840 (update_watchpoint): Use it. Optimize the address and length of a
1841 HW watchpoint pointing to a bitfield.
1842 * value.h (unpack_value_bitfield): New prototype.
1843 * value.c (unpack_value_bitfield): Make extern.
1844
05db5edd
ST
18452014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1846
1847 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1848 x86-dregs.o.
1849 * gnu-nat.c (inf_threads): New function.
1850 * gnu-nat.h (inf_threads_ftype): New typedef.
1851 (inf_threads): New declaration.
1852 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1853 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1854 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1855 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1856 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1857 (i386_gnu_dr_get_control): New functions.
1858 (reg_addr): New structure.
1859 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1860 i386 debugging register hooks.
1861 * NEWS: Mention this.
1862
5a578da5
OJ
18632014-08-13 Omair Javaid <omair.javaid@linaro.org>
1864
1865 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1866 vector data transfer instructions.
1867 (arm_record_coproc_data_proc): Updated.
1868
f20f80dd
OJ
18692014-08-13 Omair Javaid <omair.javaid@linaro.org>
1870
1871 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1872 arm_record_exreg_ld_st_insn.
1873 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1874 load/store insns.
1875
851f26ae
OJ
18762014-08-13 Omair Javaid <omair.javaid@linaro.org>
1877
1878 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1879 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1880 processing instructions.
1881
1e1b6563
OJ
18822014-08-13 Omair Javaid <omair.javaid@linaro.org>
1883
1884 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1885 for advance SIMD struct ld/st insn.
1886 (thumb2_record_decode_insn_handler): Replace stub handler with
1887 thumb2_record_asimd_struct_ld_st.
1888
60cc5e93
OJ
18892014-08-13 Omair Javaid <omair.javaid@linaro.org>
1890
1891 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1892 for asimd, vfp and coprocessor insns.
1893 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1894 and coprocessor insns.
1895 (thumb2_record_coproc_insn): New function.
1896 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1897 handlers.
1898 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1899 opcode 110 insns.
1900
81219e53
DE
19012014-09-13 Doug Evans <xdje42@gmail.com>
1902
1903 * NEWS: Mention new "queue-signal" command.
1904 * infcmd.c (queue_signal_command): New function.
1905 (_initialize_infcmd): Add new queue-signal command.
1906
d36bf488
DE
19072014-09-13 Doug Evans <xdje42@gmail.com>
1908
1909 * linux-nat.c (wait_lwp): Add debugging printf.
1910 (linux_nat_wait_1): Ditto.
1911
f37f681c
PA
19122014-09-12 Pedro Alves <palves@redhat.com>
1913
1914 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1915 (create_and_insert_solib_event_breakpoint): New functions.
1916 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1917 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1918 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1919 (remove_dbx_link_breakpoint): Delete function.
1920 (insert_dbx_link_bpt_in_file): Use
1921 create_and_insert_solib_event_breakpoint instead of
1922 deprecated_insert_raw_breakpoint.
1923 (procfs_wait): Don't check whether we hit __dbx_link here.
1924 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1925 here.
1926 * solib-irix.c (base_breakpoint): Delete global.
1927 (disable_break): Delete function.
1928 (enable_break): Use create_solib_event_breakpoint
1929 instead of deprecated_insert_raw_breakpoint.
1930 (irix_solib_handle_event): New function.
1931 (irix_solib_create_inferior_hook): Don't run the target or disable
1932 the mapping-complete breakpoint here.
1933 (_initialize_irix_solib): Install irix_solib_handle_event as
1934 so_ops->handle_event hook.
1935
9d9bf2df
EBM
19362014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1937 Ulrich Weigand  <uweigand@de.ibm.com>
1938
1939 PR tdep/17379
1940 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1941 instead of read_memory_unsigned_integer.
1942
b006a80e
GB
19432014-09-12 Gary Benson <gbenson@redhat.com>
1944
1945 * nat/linux-waitpid.c: Include common-defs.h.
1946 [GDBSERVER]: Add FIXME comment.
1947 [!GDBSERVER]: Don't include defs.h or signal.h.
1948 (linux_debug) [!GDBSERVER]: Remove empty block.
1949
296b1496
GB
19502014-09-12 Gary Benson <gbenson@redhat.com>
1951
1952 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1953 Don't include defs.h or server.h.
1954
53f81362
GB
19552014-09-12 Gary Benson <gbenson@redhat.com>
1956
1957 * nat/linux-btrace.c: Include common-defs.h.
1958 Don't include defs.h, server.h or gdbthread.h.
1959 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1960
727605ca
GB
19612014-09-12 Gary Benson <gbenson@redhat.com>
1962
1963 * common/agent.c: Include common-defs.h.
1964 Don't include defs.h or server.h.
1965 * common/buffer.c: Likewise.
1966 * common/common-debug.c: Likewise.
1967 * common/common-utils.c: Likewise.
1968 * common/errors.c: Likewise.
1969 * common/filestuff.c: Likewise.
1970 * common/format.c: Likewise.
1971 * common/gdb_vecs.c: Likewise.
1972 * common/print-utils.c: Likewise.
1973 * common/ptid.c: Likewise.
1974 * common/rsp-low.c: Likewise.
1975 * common/signals.c: Likewise.
1976 * common/vec.c: Likewise.
1977 * common/xml-utils.c: Likewise.
1978 * nat/linux-osdata.c: Likewise.
1979 * nat/linux-procfs.c: Likewise.
1980 * nat/linux-ptrace.c: Likewise.
1981 * nat/mips-linux-watch.c: Likewise.
1982 * target/waitstatus.c: Likewise.
1983
361c8ade
GB
19842014-09-12 Tom Tromey <tromey@redhat.com>
1985 Gary Benson <gbenson@redhat.com>
1986
1987 * common/common-regcache.h: New file.
1988 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1989 * regcache.h: Include common-regcache.h.
1990 (regcache_read_pc): Don't declare.
1991 * regcache.c (get_thread_regcache_for_ptid): New function.
1992 * nat/linux-btrace.c: Don't include regcache.h.
1993 Include common-regcache.h.
1994 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1995
a01cbb49
TS
19962014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1997
1998 * regcache.h (struct regset): Declare.
1999
98880d46
PA
20002014-09-11 Pedro Alves <palves@redhat.com>
2001
2002 PR gdb/17347
2003 * main.c: Include "infrun.h".
2004 (catch_command_errors, catch_command_errors_const): Wait for the
2005 foreground command to complete.
2006 * top.c (maybe_wait_sync_command_done): New function, factored out
2007 from ...
2008 (maybe_wait_sync_command_done): ... here.
2009 * top.h (maybe_wait_sync_command_done): New declaration.
2010
bd9269f7
GB
20112014-09-11 Tom Tromey <tromey@redhat.com>
2012 Gary Benson <gbenson@redhat.com>
2013
2014 * common/symbol.h: New file.
2015 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2016 * minsyms.c (find_minimal_symbol_address): New function.
2017 * common/agent.c: Include common/symbol.h.
2018 [!GDBSERVER]: Don't include objfiles.h.
2019 (agent_look_up_symbols): Use find_minimal_symbol_address.
2020
f8c1d06b
GB
20212014-09-11 Gary Benson <gbenson@redhat.com>
2022
2023 * target/target.h (target_stop_ptid, target_continue_ptid):
2024 Declare.
2025 * target.c (target_stop_ptid, target_continue_ptid): New
2026 functions.
2027 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2028 (agent_run_command): Always use target_stop_ptid and
2029 target_continue_ptid.
2030
721ec300
GB
20312014-09-11 Tom Tromey <tromey@redhat.com>
2032 Gary Benson <gbenson@redhat.com>
2033
2034 * target/target.h: New file.
2035 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2036 * target.h: Include target/target.h.
2037 (target_read_memory, target_write_memory): Don't declare.
2038 * target.c (target_read_uint32): New function.
2039 * common/agent.c: Include target/target.h.
2040 [!GDBSERVER]: Don't include target.h.
2041 (helper_thread_id): Type changed to uint32_t.
2042 (agent_get_helper_thread_id): Use target_read_uint32.
2043 (agent_run_command): Always use target_read_memory and
2044 target_write_memory.
2045 (agent_capability): Type changed to uint32_t.
2046 (agent_capability_check): Use target_read_uint32.
2047
c5e92cca
GB
20482014-09-11 Gary Benson <gbenson@redhat.com>
2049
2050 * common/common-debug.h (show_debug_regs): Declare.
2051 * common/common-debug.c (show_debug_regs): Define.
2052 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2053 all uses with show_debug_regs. Replace all uses that considered
2054 debug_hw_points as a multi-value integer with straight boolean
2055 uses.
2056 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2057 with show_debug_regs.
2058 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2059 all uses with show_debug_regs.
2060 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2061 uses with show_debug_regs.
2062
eeef931a
UW
20632014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2064
2065 * findvar.c (address_from_register): Handle targets requiring
2066 a special conversion routine even for plain pointer types.
2067
8efa9855
UW
20682014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2069
2070 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2071 (store_register): Do not call exec_one_dummy_insn.
2072
eb479039
JB
20732014-09-10 Joel Brobecker <brobecker@adacore.com>
2074
2075 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2076 dereference it first. Use value_enclosing_type instead of
2077 value_type.
2078 (ada_array_length): Likewise.
2079
deede10c
JB
20802014-09-10 Joel Brobecker <brobecker@adacore.com>
2081
2082 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2083 Adjust function implementation and documentation accordingly.
2084 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2085 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2086 Update call to ada_value_ptr_subscript.
2087
7828a5f5
JB
20882014-09-10 Joel Brobecker <brobecker@adacore.com>
2089
2090 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2091 instead of VAL's type.
2092
35782f14
JB
20932014-09-10 Joel Brobecker <brobecker@adacore.com>
2094
2095 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2096
d342a0da
DE
20972014-09-09 Doug Evans <xdje42@gmail.com>
2098
2099 PR guile/17367
2100 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2101 last parameter to pkg-config, not first.
2102 * configure.ac: Pass --with-guile provided pkg-config path to
2103 GDB_GUILE_PROGRAM_NAMES.
2104 * configure: Regenerate.
2105
b4a3d263
GKB
21062014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2107
2108 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2109 Bertazi".
2110
6e466374
MR
21112014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2112
2113 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2114 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2115 the list of sections determining GDB_OSABI_IRIX.
2116
a1ada89a
JH
21172014-09-09 James Hogan <james.hogan@imgtec.com>
2118
2119 * MAINTAINERS (Write After Approval): Add "James Hogan".
2120
86db008d
JH
21212014-09-09 James Hogan <james.hogan@imgtec.com>
2122
2123 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2124
72fde3df
JB
21252014-09-09 Joel Brobecker <brobecker@adacore.com>
2126
2127 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2128
92d8d229
DE
21292014-09-08 Doug Evans <xdje42@gmail.com>
2130
2131 PR 17247
2132 * guile.c: #include <signal.h>.
2133 (_initialize_guile): Block SIGCHLD while initializing Guile.
2134
2135 Replaces the following, which is reverted.
2136
2137 2014-07-26 Doug Evans <xdje42@gmail.com>
2138
2139 PR 17185
2140 * configure.ac: Add check for header gc/gc.h.
2141 Add check for function setenv.
2142 * configure: Regenerate.
2143 * config.in: Regenerate.
2144 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2145
d81412aa
DE
21462014-09-08 Doug Evans <xdje42@gmail.com>
2147
2148 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2149 with named constant. Fix style of pointer comparison.
2150 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2151
a9f116cb
GKB
21522014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2153
2154 PR gdb/17035
2155 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2156 decide whether we display the command on "show user".
2157 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2158 printing command name.
2159 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2160 * cli/cli-decode.c (cli_user_command_p): Create helper function
2161 to verify whether cmd_list_element is a user-defined command.
2162
c75bd3a2
JK
21632014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 PR python/17355
2166 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2167 Fix goto out of TRY_CATCH.
2168
faa42425 21692014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2170 Tom Tromey <tromey@redhat.com>
faa42425
DE
2171
2172 PR 15276
2173 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2174 $_any_caller_matches.
2175 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2176 * python/lib/gdb/function/caller_is.py: New file.
2177
0d41ba00
DE
21782014-09-06 Doug Evans <xdje42@gmail.com>
2179
2180 * infcmd.c (program_info): Fix typo.
2181
474ca4f6
SDJ
21822014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2183
2184 PR gdb/17235
2185 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2186 'number'. New variable 'has_digit'. Rewrite code to deal with
2187 subexpressions on SDT probes.
2188
ebf13736
PA
21892014-09-04 Pedro Alves <palves@redhat.com>
2190
2191 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2192 the input is only one character long.
2193
eb0b0463
SDJ
21942014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2195
2196 PR fortran/17237
2197 * f-valprint.c (f_val_print): Specify the correct print option to
2198 use when printing integer values.
2199
5ee44bfa
GB
22002014-09-04 Gary Benson <gbenson@redhat.com>
2201
2202 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2203 Remove code to cope with LWPs wrapped as PIDs.
2204 Add assertions to ensure no wrapped LWPs are passed.
2205
4875ffdb
PA
22062014-09-04 Pedro Alves <palves@redhat.com>
2207
2208 * value.c (value_ranges_copy_adjusted): New function, factored out
2209 from ...
2210 (value_contents_copy_raw): ... here.
2211 (unpack_value_bits_as_long_1): Rename back to ...
2212 (unpack_bits_as_long): ... this. Remove 'original_value' and
2213 'result' parameters. Change return type to LONGEST.
2214 (unpack_value_bits_as_long): Delete.
2215 (unpack_value_field_as_long_1): Delete.
2216 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2217 (unpack_value_bitfield): New function.
2218 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2219 (value_fetch_lazy): Use unpack_value_bitfield.
2220 * value.h (unpack_value_bits_as_long): Delete declaration.
2221
5f3b99cf
SS
22222014-09-03 Sasha Smundak <asmundak@google.com>
2223
2224 * python/py-frame.c (frapy_read_register): New function.
2225
ac740bc7
JH
22262014-09-03 James Hogan <james.hogan@imgtec.com>
2227
2228 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2229 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2230
7d793aa9
SDJ
22312014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2232
2233 PR python/16699
2234 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2235 function.
2236 (add_cmd): Set "completer_handle_brkchars" to NULL.
2237 * cli/cli-decode.h (struct cmd_list_element)
2238 <completer_handle_brkchars>: New field.
2239 * command.h (completer_ftype_void): New typedef.
2240 (set_cmd_completer_handle_brkchars): New prototype.
2241 * completer.c (set_gdb_completion_word_break_characters): New
2242 function.
2243 (complete_line_internal): Call "completer_handle_brkchars"
2244 callback from command.
2245 * completer.h: Include "command.h".
2246 (set_gdb_completion_word_break_characters): New prototype.
2247 * python/py-cmd.c (cmdpy_completer_helper): New function.
2248 (cmdpy_completer_handle_brkchars): New function.
2249 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2250 (cmdpy_init): Set completer_handle_brkchars to
2251 cmdpy_completer_handle_brkchars.
2252
97ea6506
GB
22532014-09-03 Gary Benson <gbenson@redhat.com>
2254
2255 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2256 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2257 Loop conditions changed to equivalent form.
2258 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2259 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2260 ALL_DEBUG_ADDRESS_REGISTERS.
2261
d1437815
JB
22622014-09-03 Joel Brobecker <brobecker@adacore.com>
2263
2264 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2265 description fix.
2266
9b94fcf1
DE
22672014-09-02 Doug Evans <dje@google.com>
2268
2269 * typeprint.c (find_global_typedef): Fix comment.
2270
df7e5265
GB
22712014-09-02 Gary Benson <gbenson@redhat.com>
2272
2273 * i386-nat.h: Renamed as...
2274 * x86-nat.h: New file. All type, function and variable name
2275 prefixes changed from "i386_" to "x86_". All references updated.
2276 * i386-nat.c: Renamed as...
2277 * x86-nat.c: New file. All type, function and variable name
2278 prefixes changed from "i386_" to "x86_". All references updated.
2279 * common/i386-xstate.h: Renamed as...
2280 * common/x86-xstate.h: New file. All type, function and variable
2281 name prefixes changed from "i386_" to "x86_". All references
2282 updated.
2283 * nat/i386-cpuid.h: Renamed as...
2284 * nat/x86-cpuid.h: New file. All type, function and variable name
2285 prefixes changed from "i386_" to "x86_". All references updated.
2286 * nat/i386-gcc-cpuid.h: Renamed as...
2287 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2288 name prefixes changed from "i386_" to "x86_". All references
2289 updated.
2290 * nat/i386-dregs.h: Renamed as...
2291 * nat/x86-dregs.h: New file. All type, function and variable name
2292 prefixes changed from "i386_" to "x86_". All references updated.
2293 * nat/i386-dregs.c: Renamed as...
2294 * nat/x86-dregs.c: New file. All type, function and variable name
2295 prefixes changed from "i386_" to "x86_". All references updated.
2296
1c3569d4
MR
22972014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2298
2299 * varobj.c (_initialize_varobj): Move to the end of file.
2300
ff55e1b5
GB
23012014-08-29 Gary Benson <gbenson@redhat.com>
2302
2303 * common/common-exceptions.h: New file.
2304 * common/common-exceptions.c: Likewise.
2305 * Makefile.in (SFILES): Add common/common-exceptions.c.
2306 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2307 (COMMON_OBS): Add common-exceptions.o.
2308 (common-exceptions.o): New rule.
2309 * exceptions.h (common-exceptions.h): Include.
2310 (gdb_setjmp.h): Do not include.
2311 (return_reason): Moved to common-exceptions.h.
2312 (enum return_reason): Likewise.
2313 (RETURN_MASK): Likewise.
2314 (typedef return_mask): Likewise.
2315 (enum errors): Likewise.
2316 (struct gdb_exception): Likewise.
2317 (exceptions_state_mc_init): Likewise.
2318 (exceptions_state_mc_action_iter): Likewise.
2319 (exceptions_state_mc_action_iter_1): Likewise.
2320 (TRY_CATCH): Likewise.
2321 (throw_exception): Likewise.
2322 (throw_verror): Likewise.
2323 (throw_vquit): Likewise.
2324 (throw_error): Likewise.
2325 (throw_quit): Likewise.
2326 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2327 (enum catcher_action): Likewise.
2328 (struct catcher): Likewise.
2329 (current_catcher): Likewise.
2330 (catcher_list_size): Likewise.
2331 (exceptions_state_mc_init): Likewise.
2332 (catcher_pop): Likewise.
2333 (exceptions_state_mc): Likewise.
2334 (exceptions_state_mc_action_iter): Likewise.
2335 (exceptions_state_mc_action_iter_1): Likewise.
2336 (throw_exception): Likewise.
2337 (exception_messages): Likewise.
2338 (exception_messages_size): Likewise.
2339 (throw_it): Likewise.
2340 (throw_verror): Likewise.
2341 (throw_vquit): Likewise.
2342 (throw_error): Likewise.
2343 (throw_quit): Likewise.
2344 (prepare_to_throw_exception): New function.
2345
e9bcb658
GB
23462014-08-29 Gary Benson <gbenson@redhat.com>
2347
2348 * common/gdb_setjmp.h: New file.
2349 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2350 * configure.ac: Move sigsetjmp check...
2351 * common/common.m4: ...here.
2352 * configure: Regenerate.
2353 * cp-support.c (SIGJMP_BUF): Delete.
2354 (SIGSETJMP): Likewise.
2355 (SIGLONGJMP): Likewise.
2356 * exceptions.h (gdb_setjmp.h): Include.
2357 (setjmp.h): Do not include.
2358 (EXCEPTIONS_SIGJMP_BUF): Delete.
2359 (EXCEPTIONS_SIGSETJMP): Likewise.
2360 (EXCEPTIONS_SIGLONGJMP): Likewise.
2361 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2362 from gdb_setjmp.h.
2363 * exceptions.c: Likewise.
2364
e3180625
GB
23652014-08-29 Gary Benson <gbenson@redhat.com>
2366
2367 * cleanups.h: Moved to...
2368 * common/cleanups.h: New file.
2369 * cleanups.c: Moved to...
2370 * common/cleanups.c: New file. Include common-defs.h and
2371 cleanups.h. Do not include defs.h.
2372 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2373 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2374 (cleanups.o): New rule.
2375
e3d6ba5d
GB
23762014-08-29 Gary Benson <gbenson@redhat.com>
2377
2378 * common/errors.h (internal_warning): New declaration.
2379 (internal_vwarning): Likewise.
2380 * common/errors.c (internal_warning): New function.
2381 * utils.h (internal_warning): Don't declare.
2382 (internal_vwarning): Likewise.
2383 * utils.c (internal_warning): Removed.
2384
075c7033
GB
23852014-08-29 Gary Benson <gbenson@redhat.com>
2386
2387 * main.c (captured_main): Use warning during startup.
2388 Prefix startup warning messages with command name.
2389
91b35fd0
GB
23902014-08-29 Gary Benson <gbenson@redhat.com>
2391
2392 * main.c (captured_main): Handle usage errors with error.
2393
b1ec390e
GB
23942014-08-29 Gary Benson <gbenson@redhat.com>
2395
2396 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2397 exit pair with a call to error. Wrap the message with _().
2398
fd0ef3dd
GB
23992014-08-29 Gary Benson <gbenson@redhat.com>
2400
2401 * main.c (captured_main): Replace a fprintf/exit
2402 pair with a call to error. Wrap the message with _().
2403
e0e6bcab
GB
24042014-08-29 Gary Benson <gbenson@redhat.com>
2405
2406 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2407 pairs with calls to error. Wrap the message with _().
2408
0d2f5c07
GB
24092014-08-29 Gary Benson <gbenson@redhat.com>
2410
2411 * utils.c (vwarning): Protect calls to target_terminal_ours
2412 and wrap_here.
2413
5df43998
GB
24142014-08-29 Gary Benson <gbenson@redhat.com>
2415
2416 * exceptions.c (print_flush): Protect calls to
2417 target_terminal_ours and wrap_here.
2418
2437fd32
GB
24192014-08-29 Gary Benson <gbenson@redhat.com>
2420
2421 * utils.h (filtered_printing_initialized): New declaration.
2422 * utils.c (abort_with_message): New function.
2423 (internal_vproblem): Use abort_with_message for first level
2424 recursive internal problems, and if gdb_stderr is not set up.
2425 Protect calls to target_terminal_ours, begin_line and query.
2426
f1f58506
DE
24272014-08-28 Doug Evans <dje@google.com>
2428
2429 * symtab.c (in_prologue): Move definition to better spot.
2430 (skip_prologue_using_sal): Ditto.
2431
aab2f208
DE
24322014-08-28 Doug Evans <dje@google.com>
2433
2434 * symtab.c (find_function_start_sal): Move definition to better spot.
2435
6b65d1b6
YQ
24362014-08-28 Yao Qi <yao@codesourcery.com>
2437
2438 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2439 found_stack_adjust in forward scan. Remove condition check
2440 on found_stack_adjust which is always true. Indent the code.
2441
a1b34d15
YQ
24422014-08-28 Yao Qi <yao@codesourcery.com>
2443
2444 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2445 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2446 (dwarf_decode_lines): Remove argument
2447 want_line_info. Remove condition check on want_line_info.
2448 Callers update.
2449
d5962de5
DE
24502014-08-27 Doug Evans <dje@google.com>
2451
2452 * dwarf2read.c (dwarf_record_line): Fix typo.
2453
9b139002
SDJ
24542014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2455
2456 * target.h (struct target_ops::to_terminal_save_ours): Remove
2457 declaration.
2458 (target_terminal_save_ours): Remove macro.
2459 * target-delegates.c: Regenerate.
2460 * inf-child.c (inf_child_target): Don't set the nonexistent
2461 field to_terminal_save_ours.
2462 * inferior.h (child_terminal_save_ours): Remove declaration.
2463 * terminal.h (gdb_save_tty_state): New declaration.
2464 * inflow.c (child_terminal_save_ours): Rename to ...
2465 (gdb_save_tty_state): ... this.
2466 * tui/tui.c: Include terminal.h.
2467 (tui_enable): Use gdb_save_tty_state instead of
2468 target_terminal_save_ours.
2469 (tui_disable): Likewise.
2470
9debeba0
DE
24712014-08-25 Doug Evans <dje@google.com>
2472
2473 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2474 Pass NULL instead of 0 for context pointer.
2475
428fc5fc
YQ
24762014-08-25 Yao Qi <yao@codesourcery.com>
2477
2478 * dwarf2read.c: Fix grammatical error.
2479
cdc07690
YQ
24802014-08-24 Yao Qi <yao@codesourcery.com>
2481
2482 * dwarf2read.c (scan_partial_symbols): Update comments.
2483 Rename argument 'need_pc' with 'set_addrmap'.
2484 (add_partial_namespace): Rename argument 'need_pc' with
2485 'set_addrmap'.
2486 (add_partial_module): Likewise.
2487 (add_partial_subprogram): Likewise. Update comments.
2488 (dwarf2_name): Fix typo.
2489
a05a36a5
DE
24902014-08-22 Doug Evans <dje@google.com>
2491
2492 PR 17276
2493 * dwarf2read.c (dwarf_record_line_p): New function.
2494 (dwarf_decode_lines_1): Ignore subsequent line number entries
2495 for the same line if any entry had a non-zero discriminator.
2496
252a6764
DE
24972014-08-22 Doug Evans <dje@google.com>
2498
2499 * buildsym.h (record_line_ftype): New typedef.
2500 (record_line): Use it.
2501 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2502 (dwarf_decode_lines_1): Call them.
2503
510db052
YQ
25042014-08-22 Yao Qi <yao@codesourcery.com>
2505
2506 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2507 (ctf_end): Remove code.
2508
22fd09ae
JK
25092014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2510
2511 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2512 (linux_make_corefile_notes): call update_thread_list, protected against
2513 exceptions.
2514
656e8868
PA
25152014-08-21 Pedro Alves <palves@redhat.com>
2516
2517 * infcmd.c (attach_command): Remove comment.
2518
de589d04
WN
25192014-08-21 Bin Cheng <bin.cheng@arm.com>
2520
2521 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2522 unsigned LONGEST to ULONGEST.
2523
2a31c623
PA
25242014-08-20 Pedro Alves <palves@redhat.com>
2525
2526 * Makefile.in (check-read1): New rule.
2527
d36430db
JB
25282014-08-20 Joel Brobecker <brobecker@adacore.com>
2529
2530 * value.c (value_from_contents_and_address): Strip resolved_type's
2531 typedef layers before checking its TYPE_DATA_LOCATION.
2532
000339af
PA
25332014-08-20 Pedro Alves <palves@redhat.com>
2534
2535 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2536
5f52445b
YQ
25372014-08-20 Yao Qi <yao@codesourcery.com>
2538
2539 * amd64-tdep.c (amd64_classify): Add a blank line after the
2540 example. Move "*/" to a new line.
2541 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2542 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2543 * dwarf2read.c (psymtab_include_file_name): Likewise.
2544
9a0dc9e3
PA
25452014-08-19 Andrew Burgess <aburgess@broadcom.com>
2546 Pedro Alves <palves@redhat.com>
2547
2548 PR symtab/14604
2549 PR symtab/14605
2550 * ada-lang.c (coerce_unspec_val_to_type): Use
2551 value_contents_copy_raw.
2552 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2553 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2554 * cp-valprint.c (cp_print_value_fields): Let the common printing
2555 code handle optimized out values.
2556 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2557 * d-valprint.c (dynamic_array_type): Use
2558 value_bits_any_optimized_out.
2559 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2560 check_any_valid fields.
2561 (check_pieced_value_bits): Delete and inline ...
2562 (check_pieced_synthetic_pointer): ... here.
2563 (check_pieced_value_validity): Delete.
2564 (check_pieced_value_invalid): Delete.
2565 (pieced_value_funcs): Remove check_validity and check_any_valid
2566 fields.
2567 (read_pieced_value): Use mark_value_bits_optimized_out.
2568 (write_pieced_value): Switch to use
2569 mark_value_bytes_optimized_out.
2570 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2571 of assuming the whole value is optimized out.
2572 * findvar.c (read_frame_register_value): Remove special handling
2573 of optimized out registers.
2574 (value_from_register): Use mark_value_bytes_optimized_out.
2575 * frame-unwind.c (frame_unwind_got_optimized): Use
2576 mark_value_bytes_optimized_out.
2577 * jv-valprint.c (java_value_print): Adjust.
2578 (java_print_value_fields): Let the common printing code handle
2579 optimized out values.
2580 * mips-tdep.c (mips_print_register): Remove special handling of
2581 optimized out registers.
2582 * opencl-lang.c (lval_func_check_validity): Delete.
2583 (lval_func_check_any_valid): Delete.
2584 (opencl_value_funcs): Remove check_validity and check_any_valid
2585 fields.
2586 * p-valprint.c (pascal_object_print_value_fields): Let the common
2587 printing code handle optimized out values.
2588 * stack.c (read_frame_arg): Remove special handling of optimized
2589 out values. Fetch both VAL and ENTRYVAL before comparing
2590 contents. Adjust to value_available_contents_eq rename.
2591 * valprint.c (valprint_check_validity)
2592 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2593 (val_print_array_elements): Adjust.
2594 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2595 (value_bits_any_optimized_out): New function.
2596 (value_entirely_covered_by_range_vector): New function, factored
2597 out from value_entirely_unavailable.
2598 (value_entirely_unavailable): Reimplement.
2599 (value_entirely_optimized_out): New function.
2600 (insert_into_bit_range_vector): New function, factored out from
2601 mark_value_bits_unavailable.
2602 (mark_value_bits_unavailable): Reimplement.
2603 (struct ranges_and_idx): New struct.
2604 (find_first_range_overlap_and_match): New function, factored out
2605 from value_available_contents_bits_eq.
2606 (value_available_contents_bits_eq): Rename to ...
2607 (value_contents_bits_eq): ... this. Check both unavailable
2608 contents and optimized out contents.
2609 (value_available_contents_eq): Rename to ...
2610 (value_contents_eq): ... this.
2611 (allocate_value_lazy): Remove reference to the old optimized_out
2612 boolean.
2613 (allocate_optimized_out_value): Use
2614 mark_value_bytes_optimized_out.
2615 (require_not_optimized_out): Adjust to check whether the
2616 optimized_out vec is empty.
2617 (ranges_copy_adjusted): New function, factored out from
2618 value_contents_copy_raw.
2619 (value_contents_copy_raw): Also copy the optimized out ranges.
2620 Assert the destination ranges aren't optimized out.
2621 (value_contents_copy): Update comment, remove call to
2622 require_not_optimized_out.
2623 (value_contents_equal): Adjust to check whether the optimized_out
2624 vec is empty.
2625 (set_value_optimized_out, value_optimized_out_const): Delete.
2626 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2627 New functions.
2628 (value_entirely_optimized_out, value_bits_valid): Delete.
2629 (value_copy): Take a VEC copy of the 'optimized_out' field.
2630 (value_primitive_field): Remove special handling of optimized out.
2631 (value_fetch_lazy): Assert that lazy values have no unavailable
2632 regions. Use value_bits_any_optimized_out. Remove some special
2633 handling for optimized out values.
2634 * value.h: Add intro comment about <optimized out> and
2635 <unavailable>.
2636 (struct lval_funcs): Remove check_validity and check_any_valid
2637 fields.
2638 (set_value_optimized_out, value_optimized_out_const): Remove.
2639 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2640 New declarations.
2641 (value_bits_any_optimized_out): New declaration.
2642 (value_bits_valid): Delete declaration.
2643 (value_available_contents_eq): Rename to ...
2644 (value_contents_eq): ... this, and extend comments.
2645
6694c411
JK
26462014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2647
2648 Fix -fsanitize=address on unreadable inferior strings.
2649 * valprint.c (val_print_string): Fix access before BUFFER.
2650
89a1c21a
SM
26512014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2652
2653 * target.c (target_struct_size): Remove.
2654 (target_struct_allocsize): Remove.
2655 (DEFAULT_ALLOCSIZE): Remove.
2656 (target_ops_p): New typedef.
2657 (DEF_VEC_P (target_ops_p)): New vector type.
2658 (target_structs): Change type to VEC (target_ops_p).
2659 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2660 (find_default_run_target): Rewrite for loop following changes to
2661 target_structs.
2662
cb417230
JB
26632014-08-19 Joel Brobecker <brobecker@adacore.com>
2664
2665 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2666 Adjust code accordingly. Adjust function description comment.
2667
817e0957
YQ
26682014-08-19 Yao Qi <yao@codesourcery.com>
2669
2670 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2671 types.
2672
2974be62
AM
26732014-08-19 Alan Modra <amodra@gmail.com>
2674
2675 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2676 * config.in: Regenerate.
2677 * configure: Regenerate.
2678
34abf635
GB
26792014-08-19 Tom Tromey <tromey@redhat.com>
2680 Gary Benson <gbenson@redhat.com>
2681
2682 * common/common-debug.h: New file.
2683 * common/common-debug.c: Likewise.
2684 * debug.c: Likewise.
2685 * Makefile.in (SFILES): Add common/common-debug.c.
2686 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2687 (COMMON_OBS): Add common-debug.o and debug.o.
2688 (common-debug.o): New rule.
2689 * common/common-defs.h: Include common-debug.h.
2690 * common/agent.c (debug_agent_printf): New function.
2691 (DEBUG_AGENT): Redefine.
2692 * nat/i386-dregs.c (debug_printf): Undefine.
2693
f6e94d78
GB
26942014-08-19 Gary Benson <gbenson@redhat.com>
2695
2696 * common/common-defs.h: Include print-utils.h.
2697 * utils.h: Do not include print-utils.h.
2698
9239eeab
GB
26992014-08-19 Tom Tromey <tromey@redhat.com>
2700 Gary Benson <gbenson@redhat.com>
2701
2702 * common/common-types.h: New file.
2703 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2704 * common/common-defs.h: Include common-types.h.
2705 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2706 (ULONGEST): Remove.
2707
ef87c8bb
GB
27082014-08-19 Tom Tromey <tromey@redhat.com>
2709 Gary Benson <gbenson@redhat.com>
2710
2711 * common/errors.h: New file.
2712 * common/errors.c: Likewise.
2713 * Makefile.in (SFILES): Add common/errors.c.
2714 (HFILES_NO_SRCDIR): Add common/errors.h.
2715 (COMMON_OBS): Add errors.o.
2716 (errors.o): New rule.
2717 * common/common-defs.h: Include errors.h.
2718 * utils.h (perror_with_name, error, verror, warning, vwarning):
2719 Don't declare.
2720 * common/common-utils.h: (malloc_failure, internal_error):
2721 Likewise.
2722
196a707b
GB
27232014-08-19 Gary Benson <gbenson@redhat.com>
2724
2725 * utils.c (internal_vproblem): Always print the message.
2726
ded4fc8f
DE
27272014-08-18 Doug Evans <dje@google.com>
2728
2729 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2730
950c97d8
JB
27312014-08-18 Joel Brobecker <brobecker@adacore.com>
2732
2733 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2734 Return 0 if TYPE is dynamic.
2735 (print_range): Add handling of dynamic ranges.
2736
3cdcd0ce
JB
27372014-08-18 Keven Boell <keven.boell@intel.com>
2738 Joel Brobecker <brobecker@adacore.com>
2739
2740 * gdbtypes.h (struct main_type): Add field "data_location".
2741 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2742 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2743 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2744 a dynamic data location.
2745 (resolve_dynamic_type): Add DW_AT_data_location handling.
2746 (copy_recursive, copy_type): Copy the data_location information
2747 when present.
2748 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2749 * value.c (value_from_contents_and_address): Add
2750 DW_AT_data_location handling.
2751
08412b07
JB
27522014-08-18 Keven Boell <keven.boell@intel.com>
2753 Joel Brobecker <brobecker@adacore.com>
2754
2755 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2756 field "get_object_address".
2757 * dwarf2expr.c (execute_stack_op): Add handling for
2758 DW_OP_push_object_address.
2759 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2760 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2761 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2762 (dwarf_expr_get_obj_addr): New function.
2763 (dwarf_expr_ctx_funcs): Add get_object_address field.
2764 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2765 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2766 (dwarf2_evaluate_property): Add parameter "address". Use it.
2767 (needs_get_obj_addr): New function.
2768 (needs_frame_ctx_funcs): Add get_object_address field.
2769 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2770 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2771 (resolve_dynamic_array): Likewise.
2772
84754697
JB
27732014-08-18 Joel Brobecker <brobecker@adacore.com>
2774
2775 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2776 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2777 fixed value for records and unions for which some GNAT encodings
2778 are present.
2779
da5c522f
JB
27802014-08-18 Joel Brobecker <brobecker@adacore.com>
2781
2782 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2783 rewrite to avoid "else if" and "else" constructs. Should be
2784 a no-op in practice.
2785
0d72a7c3
JB
27862014-08-18 Joel Brobecker <brobecker@adacore.com>
2787
2788 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2789 of lexical block.
2790
e66d4446
SC
27912014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2792
2793 PR c++/17132
2794 * eval.c: Update all calls to find_overload_match.
2795 * valarith.c: Likewise.
2796 (value_user_defined_cpp_op, value_user_defined_op): New
2797 argument NOSIDE. Update all callers.
2798 * valops.c (find_overload_match): New argument NOSIDE.
2799 * value.h (find_overload_match): Update signature.
2800
940df408
SC
28012014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2802
2803 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2804 'items' methods instead of 'iteritems' method on dictionaries.
2805
699ca60a
DE
28062014-08-15 Doug Evans <dje@google.com>
2807
2808 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2809 closer to use.
2810
37780ee5
DE
28112014-08-15 Doug Evans <dje@google.com>
2812
2813 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2814
0ad93d4f
DE
28152014-08-15 Doug Evans <dje@google.com>
2816
2817 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2818
20d8c372
DE
28192014-08-15 Doug Evans <dje@google.com>
2820
2821 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2822 unused.
2823
cb039ba4
EZ
28242014-08-15 Eli Zaretskii <eliz@gnu.org>
2825
2826 * dcache.h: Include target.h, to avoid compile time warnings.
2827
eb7a547a
JB
28282014-08-15 Joel Brobecker <brobecker@adacore.com>
2829
2830 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2831 frame_info" partial declaration.
2832 * gdbarch.h: Regenerate.
2833
783cecc8
YQ
28342014-08-15 Yao Qi <yao@codesourcery.com>
2835
2836 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2837 Add parameter 'decode_for_pst_p'. Callers update.
2838
65c749e7
YQ
28392014-08-13 Yao Qi <yao@codesourcery.com>
2840
2841 PR build/17104
2842 * configure.ac: Use local variable 'pos'.
2843 * configure: Regenerated.
2844
d769e349
DE
28452014-08-11 Doug Evans <dje@google.com>
2846
2847 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2848 message, it is redundant with "Reading symbols from ..." message.
2849
24f1235e
DE
28502014-08-10 Doug Evans <xdje42@gmail.com>
2851
2852 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2853
dcd2e6ef
YQ
28542014-08-09 Yao Qi <yao@codesourcery.com>
2855
2856 PR remote/9053
2857 * remote.c (remote_xfer_partial): Remove dead code.
2858
070bdf0b
AA
28592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2860
2861 * ia64-linux-tdep.c: Include "regset.h".
2862 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2863 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2864 (ia64_linux_supply_fpregset): New function.
2865 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2866 (ia64_linux_regset_from_core_section): New function.
2867 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2868 method.
2869
08f9f542
AA
28702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2871
2872 * m68klinux-tdep.c: Include "regset.h".
2873 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2874 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2875 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2876 (m68k_linux_regset_from_core_section): New function.
2877 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2878 method.
2879
8f1cee41
AA
28802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2881
2882 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2883 function. Move logic to...
2884 (tilegx_linux_regmap): ... this new register map.
2885 (tilegx_linux_regset): Refer to register map, replace supply
2886 method by regcache_supply_regset, and add collect method.
2887 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2888 TILEGX_FIRST_EASY_REGNUM.
2889
c5741217
AA
28902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2891
2892 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2893 that calls regcache_supply_regset and handles the EPC register
2894 separately. Move main logic to...
2895 (score7_linux_gregmap): ... this new register map.
2896 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2897 (score7_linux_gregset): Refer to register map. Add collect method.
2898 (score7_linux_regset_from_core_section): Replace
2899 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2900 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2901 (struct regset): Delete unused forward declaraction.
2902 (struct pt_regs): Delete structure definition.
2903 (elf_gregset_t): Delete typedef.
2904
81580573
AA
29052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2906
2907 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2908 (nios2_core_regset): Add collect method.
2909
ba199d7d
AA
29102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2911
2912 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2913 platform-independent and don't write to read-only input buffer.
2914 (m32r_linux_collect_gregset): New function.
2915 (m32r_linux_gregset): Add collect method.
2916
0006a9da
AA
29172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2918
2919 * hppa-linux-tdep.c (greg_map): Rename to...
2920 (hppa_linux_gregmap): ... this. Also convert to
2921 regcache_map_entry format.
2922 (hppa_linux_supply_regset): Delete function.
2923 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2924 (hppa_linux_fpregmap): ... this new register map.
2925 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2926 register map, replace supply method by regcache_supply_regset, and
2927 add collect method regcache_collect_regset.
2928
901e1b23
AA
29292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2930
2931 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2932 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2933 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2934 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2935 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2936 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2937 (frv_linux_supply_gregset): Replace main logic by call to
2938 regcache_supply_regset, but keep clearing gr32-gr63.
2939 (frv_linux_supply_fpregset): Delete function.
2940 (frv_linux_gregset): Refer to appropriate register map and add
2941 regcache_collect_regset as the collect method.
2942 (frv_linux_fpregset): Likewise. Also exchange the supply method
2943 by regcache_supply_regset.
2944
1d6e7555
AA
29452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2946
2947 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2948 by call to alpha_supply_int_regs.
2949 (alpha_linux_collect_gregset): New function.
2950 (alpha_linux_supply_fpregset): Replace logic by call to
2951 alpha_supply_fp_regs.
2952 (alpha_linux_collect_fpregset): New function.
2953 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2954
d4d793bf
AA
29552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2956
2957 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2958 by call to regcache_collect_regset.
2959 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2960 instead of aarch64_linux_supply_gregset/_fpregset.
2961 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2962 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2963 header file instead.
2964 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2965 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2966 functions. Move logic to ...
2967 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2968 register maps.
2969 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2970 refer to new register maps, replace *_regset_from_core by
2971 regcache_supply_regset, and also use regcache_collect_regset.
2972 * aarch64-linux-tdep.h: Include "regset.h".
2973 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2974 Delete prototypes.
2975 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2976 macros, moved from C source file.
2977 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2978 variable declarations.
2979
99b7da5d
AA
29802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2981
2982 * s390-linux-nat.c: Include "regset.h".
2983 (regmap_gregset): Delete macro.
2984 (s390_64_regmap_gregset): New register map for
2985 regcache_supply/_collect_regset.
2986 (s390_64_gregset): New regset.
2987 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2988 (regmap_fpregset): Delete macro.
2989 (s390_native_supply, s390_native_collect): Delete functions.
2990 (supply_gregset, fill_gregset): Replace s390-specific regmap
2991 handling by a call to regcache_supply/_collect_regset.
2992 (supply_fpregset, fill_fpregset): Call regcache_supply/
2993 _collect_regset instead of s390_native_supply/_collect.
2994 (fetch_regset, store_regset): Likewise. Also change the last
2995 parameter to a regset instead of a regmap.
2996 (s390_linux_fetch_inferior_registers)
2997 (390_linux_store_inferior_registers): Adjust last parameter in
2998 calls to fetch_regset and store_regset.
2999 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3000 (s390_gregmap): ... this. Also make static const and convert to
3001 regcache_map_entry format.
3002 (s390x_regmap_gregset): Delete.
3003 (s390_regmap_fpregset): Rename to...
3004 (s390_fpregmap): ... this. Make static const and convert to
3005 regcache_map_entry format.
3006 (s390_regmap_upper, s390_regmap_last_break)
3007 (s390x_regmap_last_break, s390_regmap_system_call)
3008 (s390_regmap_tdb): Likewise.
3009 (s390_supply_regset, s390_collect_regset): Remove functions.
3010 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3011 s390_supply_regset.
3012 (s390_gregset, s390_fpregset, s390_upper_regset)
3013 (s390_last_break_regset, s390x_last_break_regset)
3014 (s390_system_call_regset, s390_tdb_regset): Make global and
3015 replace s390_supply/_collect_regset by regcache_supply/
3016 _collect_regset.
3017 (s390x_gregset): Delete.
3018 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3019 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3020 (s390_regmap_fpregset, s390_regmap_last_break)
3021 (s390x_regmap_last_break, s390_regmap_system_call)
3022 (s390_regmap_tdb): Delete global variable declarations.
3023 (s390_gregset, s390_fpregset, s390_last_break_regset)
3024 (s390x_last_break_regset, s390_system_call_regset)
3025 (s390_tdb_regset): New global variable declarations.
3026
0b309272
AA
30272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3028
3029 * regcache.c: Include "regset.h".
3030 (regcache_transfer_regset): New local function.
3031 (regcache_supply_regset, regcache_collect_regset): New functions.
3032 * regcache.h (struct regcache_map_entry): New structure.
3033 (REGCACHE_MAP_SKIP): New enum value.
3034 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3035
7fefa8d7
AA
30362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3037
3038 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3039 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3040 (ppc_linux_collect_gregset ): Likewise.
3041 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3042 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3043 (ppc_collect_vrregset): Likewise.
3044 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3045 Likewise.
3046
96c4f946
YQ
30472014-08-07 Yao Qi <yao@codesourcery.com>
3048
3049 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3050 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3051 * remote.c (remote_read_bytes): Likewise.
3052
fffbe6a8
YQ
30532014-08-07 Yao Qi <yao@codesourcery.com>
3054
3055 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3056
5ee8a82c
YQ
30572014-08-07 Yao Qi <yao@codesourcery.com>
3058
3059 PR remote/17230
3060 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3061 TARGET_XFER_OK instead of 0.
3062
bb974a24
GB
30632014-08-07 Gary Benson <gbenson@redhat.com>
3064
3065 * common/common-defs.h: Include errno.h.
3066 * defs.h: Do not include errno.h.
3067 * ada-typeprint.c: Likewise.
3068 * c-typeprint.c: Likewise.
3069 * core-regset.c: Likewise.
3070 * corefile.c: Likewise.
3071 * corelow.c: Likewise.
3072 * event-loop.c: Likewise.
3073 * f-typeprint.c: Likewise.
3074 * gnu-nat.c: Likewise.
3075 * go32-nat.c: Likewise.
3076 * i386gnu-nat.c: Likewise.
3077 * m2-typeprint.c: Likewise.
3078 * nat/linux-btrace.c: Likewise.
3079 * p-typeprint.c: Likewise.
3080 * procfs.c: Likewise.
3081 * remote-sim.c: Likewise.
3082 * rs6000-nat.c: Likewise.
3083 * target.c: Likewise.
3084 * typeprint.c: Likewise.
3085 * ui-file.c: Likewise.
3086 * valops.c: Likewise.
3087 * valprint.c: Likewise.
3088
6d3d12eb
GB
30892014-08-07 Gary Benson <gbenson@redhat.com>
3090
3091 * common/common-defs.h: Include string.h.
3092 * aarch64-tdep.c: Do not include string.h.
3093 * ada-exp.y: Likewise.
3094 * ada-lang.c: Likewise.
3095 * ada-lex.l: Likewise.
3096 * ada-typeprint.c: Likewise.
3097 * ada-valprint.c: Likewise.
3098 * aix-thread.c: Likewise.
3099 * alpha-linux-tdep.c: Likewise.
3100 * alpha-mdebug-tdep.c: Likewise.
3101 * alpha-nat.c: Likewise.
3102 * alpha-osf1-tdep.c: Likewise.
3103 * alpha-tdep.c: Likewise.
3104 * alphanbsd-tdep.c: Likewise.
3105 * amd64-dicos-tdep.c: Likewise.
3106 * amd64-linux-tdep.c: Likewise.
3107 * amd64-nat.c: Likewise.
3108 * amd64-sol2-tdep.c: Likewise.
3109 * amd64fbsd-tdep.c: Likewise.
3110 * amd64obsd-tdep.c: Likewise.
3111 * arch-utils.c: Likewise.
3112 * arm-linux-nat.c: Likewise.
3113 * arm-linux-tdep.c: Likewise.
3114 * arm-tdep.c: Likewise.
3115 * arm-wince-tdep.c: Likewise.
3116 * armbsd-tdep.c: Likewise.
3117 * armnbsd-nat.c: Likewise.
3118 * armnbsd-tdep.c: Likewise.
3119 * armobsd-tdep.c: Likewise.
3120 * avr-tdep.c: Likewise.
3121 * ax-gdb.c: Likewise.
3122 * ax-general.c: Likewise.
3123 * bcache.c: Likewise.
3124 * bfin-tdep.c: Likewise.
3125 * breakpoint.c: Likewise.
3126 * build-id.c: Likewise.
3127 * buildsym.c: Likewise.
3128 * c-exp.y: Likewise.
3129 * c-lang.c: Likewise.
3130 * c-typeprint.c: Likewise.
3131 * c-valprint.c: Likewise.
3132 * charset.c: Likewise.
3133 * cli-out.c: Likewise.
3134 * cli/cli-cmds.c: Likewise.
3135 * cli/cli-decode.c: Likewise.
3136 * cli/cli-dump.c: Likewise.
3137 * cli/cli-interp.c: Likewise.
3138 * cli/cli-logging.c: Likewise.
3139 * cli/cli-script.c: Likewise.
3140 * cli/cli-setshow.c: Likewise.
3141 * cli/cli-utils.c: Likewise.
3142 * coffread.c: Likewise.
3143 * common/agent.c: Likewise.
3144 * common/buffer.c: Likewise.
3145 * common/buffer.h: Likewise.
3146 * common/common-utils.c: Likewise.
3147 * common/filestuff.c: Likewise.
3148 * common/filestuff.c: Likewise.
3149 * common/format.c: Likewise.
3150 * common/print-utils.c: Likewise.
3151 * common/rsp-low.c: Likewise.
3152 * common/signals.c: Likewise.
3153 * common/vec.h: Likewise.
3154 * common/xml-utils.c: Likewise.
3155 * core-regset.c: Likewise.
3156 * corefile.c: Likewise.
3157 * corelow.c: Likewise.
3158 * cp-abi.c: Likewise.
3159 * cp-name-parser.y: Likewise.
3160 * cp-support.c: Likewise.
3161 * cp-valprint.c: Likewise.
3162 * cris-tdep.c: Likewise.
3163 * d-exp.y: Likewise.
3164 * darwin-nat.c: Likewise.
3165 * dbxread.c: Likewise.
3166 * dcache.c: Likewise.
3167 * demangle.c: Likewise.
3168 * dicos-tdep.c: Likewise.
3169 * disasm.c: Likewise.
3170 * doublest.c: Likewise.
3171 * dsrec.c: Likewise.
3172 * dummy-frame.c: Likewise.
3173 * dwarf2-frame.c: Likewise.
3174 * dwarf2loc.c: Likewise.
3175 * dwarf2read.c: Likewise.
3176 * elfread.c: Likewise.
3177 * environ.c: Likewise.
3178 * eval.c: Likewise.
3179 * event-loop.c: Likewise.
3180 * exceptions.c: Likewise.
3181 * exec.c: Likewise.
3182 * expprint.c: Likewise.
3183 * f-exp.y: Likewise.
3184 * f-lang.c: Likewise.
3185 * f-typeprint.c: Likewise.
3186 * f-valprint.c: Likewise.
3187 * fbsd-nat.c: Likewise.
3188 * findcmd.c: Likewise.
3189 * findvar.c: Likewise.
3190 * fork-child.c: Likewise.
3191 * frame.c: Likewise.
3192 * frv-linux-tdep.c: Likewise.
3193 * frv-tdep.c: Likewise.
3194 * gdb.c: Likewise.
3195 * gdb_bfd.c: Likewise.
3196 * gdbarch.c: Likewise.
3197 * gdbarch.sh: Likewise.
3198 * gdbtypes.c: Likewise.
3199 * gnu-nat.c: Likewise.
3200 * gnu-v2-abi.c: Likewise.
3201 * gnu-v3-abi.c: Likewise.
3202 * go-exp.y: Likewise.
3203 * go-lang.c: Likewise.
3204 * go32-nat.c: Likewise.
3205 * guile/guile.c: Likewise.
3206 * guile/scm-auto-load.c: Likewise.
3207 * hppa-hpux-tdep.c: Likewise.
3208 * hppa-linux-nat.c: Likewise.
3209 * hppanbsd-tdep.c: Likewise.
3210 * hppaobsd-tdep.c: Likewise.
3211 * i386-cygwin-tdep.c: Likewise.
3212 * i386-dicos-tdep.c: Likewise.
3213 * i386-linux-tdep.c: Likewise.
3214 * i386-nto-tdep.c: Likewise.
3215 * i386-sol2-tdep.c: Likewise.
3216 * i386-tdep.c: Likewise.
3217 * i386bsd-tdep.c: Likewise.
3218 * i386gnu-nat.c: Likewise.
3219 * i386nbsd-tdep.c: Likewise.
3220 * i386obsd-tdep.c: Likewise.
3221 * i387-tdep.c: Likewise.
3222 * ia64-libunwind-tdep.c: Likewise.
3223 * ia64-linux-nat.c: Likewise.
3224 * inf-child.c: Likewise.
3225 * inf-ptrace.c: Likewise.
3226 * inf-ttrace.c: Likewise.
3227 * infcall.c: Likewise.
3228 * infcmd.c: Likewise.
3229 * inflow.c: Likewise.
3230 * infrun.c: Likewise.
3231 * interps.c: Likewise.
3232 * iq2000-tdep.c: Likewise.
3233 * irix5-nat.c: Likewise.
3234 * jv-exp.y: Likewise.
3235 * jv-lang.c: Likewise.
3236 * jv-typeprint.c: Likewise.
3237 * jv-valprint.c: Likewise.
3238 * language.c: Likewise.
3239 * linux-fork.c: Likewise.
3240 * linux-nat.c: Likewise.
3241 * lm32-tdep.c: Likewise.
3242 * m2-exp.y: Likewise.
3243 * m2-typeprint.c: Likewise.
3244 * m32c-tdep.c: Likewise.
3245 * m32r-linux-nat.c: Likewise.
3246 * m32r-linux-tdep.c: Likewise.
3247 * m32r-rom.c: Likewise.
3248 * m32r-tdep.c: Likewise.
3249 * m68hc11-tdep.c: Likewise.
3250 * m68k-tdep.c: Likewise.
3251 * m68kbsd-tdep.c: Likewise.
3252 * m68klinux-nat.c: Likewise.
3253 * m68klinux-tdep.c: Likewise.
3254 * m88k-tdep.c: Likewise.
3255 * machoread.c: Likewise.
3256 * macrocmd.c: Likewise.
3257 * main.c: Likewise.
3258 * mdebugread.c: Likewise.
3259 * mem-break.c: Likewise.
3260 * memattr.c: Likewise.
3261 * memory-map.c: Likewise.
3262 * mep-tdep.c: Likewise.
3263 * mi/mi-cmd-break.c: Likewise.
3264 * mi/mi-cmd-disas.c: Likewise.
3265 * mi/mi-cmd-env.c: Likewise.
3266 * mi/mi-cmd-stack.c: Likewise.
3267 * mi/mi-cmd-var.c: Likewise.
3268 * mi/mi-cmds.c: Likewise.
3269 * mi/mi-console.c: Likewise.
3270 * mi/mi-getopt.c: Likewise.
3271 * mi/mi-interp.c: Likewise.
3272 * mi/mi-main.c: Likewise.
3273 * mi/mi-parse.c: Likewise.
3274 * microblaze-rom.c: Likewise.
3275 * microblaze-tdep.c: Likewise.
3276 * mingw-hdep.c: Likewise.
3277 * minidebug.c: Likewise.
3278 * minsyms.c: Likewise.
3279 * mips-irix-tdep.c: Likewise.
3280 * mips-linux-tdep.c: Likewise.
3281 * mips-tdep.c: Likewise.
3282 * mips64obsd-tdep.c: Likewise.
3283 * mipsnbsd-tdep.c: Likewise.
3284 * mipsread.c: Likewise.
3285 * mn10300-linux-tdep.c: Likewise.
3286 * mn10300-tdep.c: Likewise.
3287 * monitor.c: Likewise.
3288 * moxie-tdep.c: Likewise.
3289 * mt-tdep.c: Likewise.
3290 * nat/linux-btrace.c: Likewise.
3291 * nat/linux-osdata.c: Likewise.
3292 * nat/linux-procfs.c: Likewise.
3293 * nat/linux-ptrace.c: Likewise.
3294 * nat/linux-waitpid.c: Likewise.
3295 * nbsd-tdep.c: Likewise.
3296 * nios2-linux-tdep.c: Likewise.
3297 * nto-procfs.c: Likewise.
3298 * nto-tdep.c: Likewise.
3299 * objc-lang.c: Likewise.
3300 * objfiles.c: Likewise.
3301 * opencl-lang.c: Likewise.
3302 * osabi.c: Likewise.
3303 * osdata.c: Likewise.
3304 * p-exp.y: Likewise.
3305 * p-lang.c: Likewise.
3306 * p-typeprint.c: Likewise.
3307 * parse.c: Likewise.
3308 * posix-hdep.c: Likewise.
3309 * ppc-linux-nat.c: Likewise.
3310 * ppc-sysv-tdep.c: Likewise.
3311 * ppcfbsd-tdep.c: Likewise.
3312 * ppcnbsd-tdep.c: Likewise.
3313 * ppcobsd-tdep.c: Likewise.
3314 * printcmd.c: Likewise.
3315 * procfs.c: Likewise.
3316 * prologue-value.c: Likewise.
3317 * python/py-auto-load.c: Likewise.
3318 * python/py-gdb-readline.c: Likewise.
3319 * ravenscar-thread.c: Likewise.
3320 * regcache.c: Likewise.
3321 * registry.c: Likewise.
3322 * remote-fileio.c: Likewise.
3323 * remote-m32r-sdi.c: Likewise.
3324 * remote-mips.c: Likewise.
3325 * remote-notif.c: Likewise.
3326 * remote-sim.c: Likewise.
3327 * remote.c: Likewise.
3328 * reverse.c: Likewise.
3329 * rs6000-aix-tdep.c: Likewise.
3330 * ser-base.c: Likewise.
3331 * ser-go32.c: Likewise.
3332 * ser-mingw.c: Likewise.
3333 * ser-pipe.c: Likewise.
3334 * ser-tcp.c: Likewise.
3335 * ser-unix.c: Likewise.
3336 * serial.c: Likewise.
3337 * sh-tdep.c: Likewise.
3338 * sh64-tdep.c: Likewise.
3339 * shnbsd-tdep.c: Likewise.
3340 * skip.c: Likewise.
3341 * sol-thread.c: Likewise.
3342 * solib-dsbt.c: Likewise.
3343 * solib-frv.c: Likewise.
3344 * solib-osf.c: Likewise.
3345 * solib-som.c: Likewise.
3346 * solib-spu.c: Likewise.
3347 * solib-target.c: Likewise.
3348 * solib.c: Likewise.
3349 * somread.c: Likewise.
3350 * source.c: Likewise.
3351 * sparc-nat.c: Likewise.
3352 * sparc-sol2-tdep.c: Likewise.
3353 * sparc-tdep.c: Likewise.
3354 * sparc64-tdep.c: Likewise.
3355 * sparc64fbsd-tdep.c: Likewise.
3356 * sparc64nbsd-tdep.c: Likewise.
3357 * sparcnbsd-tdep.c: Likewise.
3358 * spu-linux-nat.c: Likewise.
3359 * spu-multiarch.c: Likewise.
3360 * spu-tdep.c: Likewise.
3361 * stabsread.c: Likewise.
3362 * stack.c: Likewise.
3363 * std-regs.c: Likewise.
3364 * symfile.c: Likewise.
3365 * symmisc.c: Likewise.
3366 * symtab.c: Likewise.
3367 * target.c: Likewise.
3368 * thread.c: Likewise.
3369 * tilegx-linux-nat.c: Likewise.
3370 * tilegx-tdep.c: Likewise.
3371 * top.c: Likewise.
3372 * tracepoint.c: Likewise.
3373 * tui/tui-command.c: Likewise.
3374 * tui/tui-data.c: Likewise.
3375 * tui/tui-disasm.c: Likewise.
3376 * tui/tui-file.c: Likewise.
3377 * tui/tui-layout.c: Likewise.
3378 * tui/tui-out.c: Likewise.
3379 * tui/tui-regs.c: Likewise.
3380 * tui/tui-source.c: Likewise.
3381 * tui/tui-stack.c: Likewise.
3382 * tui/tui-win.c: Likewise.
3383 * tui/tui-windata.c: Likewise.
3384 * tui/tui-winsource.c: Likewise.
3385 * typeprint.c: Likewise.
3386 * ui-file.c: Likewise.
3387 * ui-out.c: Likewise.
3388 * user-regs.c: Likewise.
3389 * utils.c: Likewise.
3390 * v850-tdep.c: Likewise.
3391 * valarith.c: Likewise.
3392 * valops.c: Likewise.
3393 * valprint.c: Likewise.
3394 * value.c: Likewise.
3395 * varobj.c: Likewise.
3396 * vax-tdep.c: Likewise.
3397 * vaxnbsd-tdep.c: Likewise.
3398 * vaxobsd-tdep.c: Likewise.
3399 * windows-nat.c: Likewise.
3400 * xcoffread.c: Likewise.
3401 * xml-support.c: Likewise.
3402 * xstormy16-tdep.c: Likewise.
3403 * xtensa-linux-nat.c: Likewise.
3404
dccbb609
GB
34052014-08-07 Gary Benson <gbenson@redhat.com>
3406
3407 * common/common-defs.h: Include gdb_assert.h.
3408 * aarch64-tdep.c: Do not include gdb_assert.h.
3409 * addrmap.c: Likewise.
3410 * aix-thread.c: Likewise.
3411 * alpha-linux-tdep.c: Likewise.
3412 * alpha-mdebug-tdep.c: Likewise.
3413 * alphanbsd-tdep.c: Likewise.
3414 * amd64-nat.c: Likewise.
3415 * amd64-tdep.c: Likewise.
3416 * amd64bsd-nat.c: Likewise.
3417 * amd64fbsd-nat.c: Likewise.
3418 * amd64fbsd-tdep.c: Likewise.
3419 * amd64nbsd-nat.c: Likewise.
3420 * amd64nbsd-tdep.c: Likewise.
3421 * amd64obsd-nat.c: Likewise.
3422 * amd64obsd-tdep.c: Likewise.
3423 * arch-utils.c: Likewise.
3424 * arm-tdep.c: Likewise.
3425 * armbsd-tdep.c: Likewise.
3426 * auxv.c: Likewise.
3427 * bcache.c: Likewise.
3428 * bfin-tdep.c: Likewise.
3429 * blockframe.c: Likewise.
3430 * breakpoint.c: Likewise.
3431 * bsd-kvm.c: Likewise.
3432 * bsd-uthread.c: Likewise.
3433 * buildsym.c: Likewise.
3434 * c-exp.y: Likewise.
3435 * c-lang.c: Likewise.
3436 * charset.c: Likewise.
3437 * cleanups.c: Likewise.
3438 * cli-out.c: Likewise.
3439 * cli/cli-decode.c: Likewise.
3440 * cli/cli-dump.c: Likewise.
3441 * cli/cli-logging.c: Likewise.
3442 * cli/cli-script.c: Likewise.
3443 * cli/cli-utils.c: Likewise.
3444 * coffread.c: Likewise.
3445 * common/common-utils.c: Likewise.
3446 * common/queue.h: Likewise.
3447 * common/signals.c: Likewise.
3448 * common/vec.h: Likewise.
3449 * complaints.c: Likewise.
3450 * completer.c: Likewise.
3451 * corelow.c: Likewise.
3452 * cp-abi.c: Likewise.
3453 * cp-name-parser.y: Likewise.
3454 * cp-namespace.c: Likewise.
3455 * cp-support.c: Likewise.
3456 * cris-tdep.c: Likewise.
3457 * dbxread.c: Likewise.
3458 * dictionary.c: Likewise.
3459 * doublest.c: Likewise.
3460 * dsrec.c: Likewise.
3461 * dummy-frame.c: Likewise.
3462 * dwarf2-frame-tailcall.c: Likewise.
3463 * dwarf2-frame.c: Likewise.
3464 * dwarf2expr.c: Likewise.
3465 * dwarf2loc.c: Likewise.
3466 * dwarf2read.c: Likewise.
3467 * eval.c: Likewise.
3468 * event-loop.c: Likewise.
3469 * exceptions.c: Likewise.
3470 * expprint.c: Likewise.
3471 * f-valprint.c: Likewise.
3472 * fbsd-nat.c: Likewise.
3473 * findvar.c: Likewise.
3474 * frame-unwind.c: Likewise.
3475 * frame.c: Likewise.
3476 * frv-tdep.c: Likewise.
3477 * gcore.c: Likewise.
3478 * gdb-dlfcn.c: Likewise.
3479 * gdb_bfd.c: Likewise.
3480 * gdbarch.c: Likewise.
3481 * gdbarch.sh: Likewise.
3482 * gdbtypes.c: Likewise.
3483 * gnu-nat.c: Likewise.
3484 * gnu-v3-abi.c: Likewise.
3485 * go-lang.c: Likewise.
3486 * guile/scm-exception.c: Likewise.
3487 * guile/scm-gsmob.c: Likewise.
3488 * guile/scm-lazy-string.c: Likewise.
3489 * guile/scm-math.c: Likewise.
3490 * guile/scm-pretty-print.c: Likewise.
3491 * guile/scm-safe-call.c: Likewise.
3492 * guile/scm-utils.c: Likewise.
3493 * guile/scm-value.c: Likewise.
3494 * h8300-tdep.c: Likewise.
3495 * hppa-hpux-nat.c: Likewise.
3496 * hppa-tdep.c: Likewise.
3497 * hppanbsd-tdep.c: Likewise.
3498 * hppaobsd-tdep.c: Likewise.
3499 * i386-darwin-nat.c: Likewise.
3500 * i386-darwin-tdep.c: Likewise.
3501 * i386-nto-tdep.c: Likewise.
3502 * i386-tdep.c: Likewise.
3503 * i386bsd-nat.c: Likewise.
3504 * i386fbsd-tdep.c: Likewise.
3505 * i386gnu-nat.c: Likewise.
3506 * i386nbsd-tdep.c: Likewise.
3507 * i386obsd-tdep.c: Likewise.
3508 * i387-tdep.c: Likewise.
3509 * ia64-libunwind-tdep.c: Likewise.
3510 * ia64-tdep.c: Likewise.
3511 * inf-ptrace.c: Likewise.
3512 * inf-ttrace.c: Likewise.
3513 * infcall.c: Likewise.
3514 * infcmd.c: Likewise.
3515 * infrun.c: Likewise.
3516 * inline-frame.c: Likewise.
3517 * interps.c: Likewise.
3518 * jv-lang.c: Likewise.
3519 * jv-typeprint.c: Likewise.
3520 * linux-fork.c: Likewise.
3521 * linux-nat.c: Likewise.
3522 * linux-thread-db.c: Likewise.
3523 * m32c-tdep.c: Likewise.
3524 * m32r-linux-nat.c: Likewise.
3525 * m32r-tdep.c: Likewise.
3526 * m68k-tdep.c: Likewise.
3527 * m68kbsd-nat.c: Likewise.
3528 * m68kbsd-tdep.c: Likewise.
3529 * m88k-tdep.c: Likewise.
3530 * machoread.c: Likewise.
3531 * macroexp.c: Likewise.
3532 * macrotab.c: Likewise.
3533 * maint.c: Likewise.
3534 * mdebugread.c: Likewise.
3535 * memory-map.c: Likewise.
3536 * mep-tdep.c: Likewise.
3537 * mi/mi-common.c: Likewise.
3538 * microblaze-tdep.c: Likewise.
3539 * mingw-hdep.c: Likewise.
3540 * mips-linux-nat.c: Likewise.
3541 * mips-linux-tdep.c: Likewise.
3542 * mips-tdep.c: Likewise.
3543 * mips64obsd-tdep.c: Likewise.
3544 * mipsnbsd-tdep.c: Likewise.
3545 * mn10300-linux-tdep.c: Likewise.
3546 * mn10300-tdep.c: Likewise.
3547 * moxie-tdep.c: Likewise.
3548 * mt-tdep.c: Likewise.
3549 * nat/linux-btrace.c: Likewise.
3550 * nat/linux-osdata.c: Likewise.
3551 * nat/linux-ptrace.c: Likewise.
3552 * nat/mips-linux-watch.c: Likewise.
3553 * nios2-linux-tdep.c: Likewise.
3554 * nios2-tdep.c: Likewise.
3555 * objc-lang.c: Likewise.
3556 * objfiles.c: Likewise.
3557 * obsd-nat.c: Likewise.
3558 * opencl-lang.c: Likewise.
3559 * osabi.c: Likewise.
3560 * parse.c: Likewise.
3561 * ppc-linux-nat.c: Likewise.
3562 * ppc-sysv-tdep.c: Likewise.
3563 * ppcfbsd-nat.c: Likewise.
3564 * ppcfbsd-tdep.c: Likewise.
3565 * ppcnbsd-nat.c: Likewise.
3566 * ppcnbsd-tdep.c: Likewise.
3567 * ppcobsd-nat.c: Likewise.
3568 * ppcobsd-tdep.c: Likewise.
3569 * printcmd.c: Likewise.
3570 * procfs.c: Likewise.
3571 * prologue-value.c: Likewise.
3572 * psymtab.c: Likewise.
3573 * python/py-lazy-string.c: Likewise.
3574 * python/py-value.c: Likewise.
3575 * regcache.c: Likewise.
3576 * reggroups.c: Likewise.
3577 * registry.c: Likewise.
3578 * remote-sim.c: Likewise.
3579 * remote.c: Likewise.
3580 * rs6000-aix-tdep.c: Likewise.
3581 * rs6000-tdep.c: Likewise.
3582 * s390-linux-tdep.c: Likewise.
3583 * score-tdep.c: Likewise.
3584 * ser-base.c: Likewise.
3585 * ser-mingw.c: Likewise.
3586 * sh-tdep.c: Likewise.
3587 * sh64-tdep.c: Likewise.
3588 * solib-darwin.c: Likewise.
3589 * solib-spu.c: Likewise.
3590 * solib-svr4.c: Likewise.
3591 * source.c: Likewise.
3592 * sparc-nat.c: Likewise.
3593 * sparc-sol2-tdep.c: Likewise.
3594 * sparc-tdep.c: Likewise.
3595 * sparc64-sol2-tdep.c: Likewise.
3596 * sparc64-tdep.c: Likewise.
3597 * sparc64fbsd-tdep.c: Likewise.
3598 * sparc64nbsd-tdep.c: Likewise.
3599 * sparc64obsd-tdep.c: Likewise.
3600 * sparcnbsd-tdep.c: Likewise.
3601 * sparcobsd-tdep.c: Likewise.
3602 * spu-multiarch.c: Likewise.
3603 * spu-tdep.c: Likewise.
3604 * stabsread.c: Likewise.
3605 * stack.c: Likewise.
3606 * symfile.c: Likewise.
3607 * symtab.c: Likewise.
3608 * target-descriptions.c: Likewise.
3609 * target-memory.c: Likewise.
3610 * target.c: Likewise.
3611 * tic6x-linux-tdep.c: Likewise.
3612 * tic6x-tdep.c: Likewise.
3613 * tilegx-linux-nat.c: Likewise.
3614 * tilegx-tdep.c: Likewise.
3615 * top.c: Likewise.
3616 * tramp-frame.c: Likewise.
3617 * tui/tui-out.c: Likewise.
3618 * tui/tui-winsource.c: Likewise.
3619 * ui-out.c: Likewise.
3620 * user-regs.c: Likewise.
3621 * utils.c: Likewise.
3622 * v850-tdep.c: Likewise.
3623 * valops.c: Likewise.
3624 * value.c: Likewise.
3625 * varobj.c: Likewise.
3626 * vax-nat.c: Likewise.
3627 * xml-syscall.c: Likewise.
3628 * xml-tdesc.c: Likewise.
3629 * xstormy16-tdep.c: Likewise.
3630 * xtensa-linux-nat.c: Likewise.
3631 * xtensa-tdep.c: Likewise.
3632
e76df0d0
GB
36332014-08-07 Gary Benson <gbenson@redhat.com>
3634
3635 * common/common-defs.h: Include common-utils.h.
3636 * defs.h: Do not include common-utils.h.
3637 * common/gdb_assert.h: Likewise.
3638 * darwin-nat.h: Likewise.
3639 * nat/linux-btrace.c: Likewise.
3640 * target/waitstatus.h: Likewise.
3641
4cb9c816
GB
36422014-08-07 Gary Benson <gbenson@redhat.com>
3643
3644 * common/common-defs.h: Include ptid.h.
3645 * defs.h: Do not include ptid.h.
3646 * inferior.h: Likewise.
3647 * infrun.h: Likewise.
3648 * nat/linux-btrace.h: Likewise.
3649 * nat/linux-osdata.h: Likewise.
3650 * target/waitstatus.h: Likewise.
3651
3995eeee
GB
36522014-08-07 Gary Benson <gbenson@redhat.com>
3653
3654 * common/common-defs.h: Include gdb_locale.h.
3655 * defs.h: Do not include gdb_locale.h.
3656
cb9f1a9b
GB
36572014-08-07 Gary Benson <gbenson@redhat.com>
3658
3659 * common/common-defs.h: Include gdb/signals.h.
3660 * defs.h: Do not include gdb/signals.h.
3661
a5fceff8
GB
36622014-08-07 Gary Benson <gbenson@redhat.com>
3663
3664 * common/common-defs.h: Include pathmax.h.
3665 * defs.h: Do not include pathmax.h.
3666
b9391142
GB
36672014-08-07 Gary Benson <gbenson@redhat.com>
3668
3669 * common/common-defs.h: Include libiberty.h.
3670 * defs.h: Do not include libiberty.h.
3671 * common/queue.h: Likewise.
3672 * cp-name-parser.y: Likewise.
3673 * mi/mi-cmd-catch.c: Likewise.
3674 * python/python.c: Likewise.
3675
0e443c87
GB
36762014-08-07 Gary Benson <gbenson@redhat.com>
3677
3678 * common/common-defs.h: Include ansidecl.h.
3679 * defs.h: Do not include ansidecl.h.
3680 * common/buffer.h: Likewise.
3681 * common/common-utils.h: Likewise.
3682
8ebb3f56
GB
36832014-08-07 Gary Benson <gbenson@redhat.com>
3684
3685 * common/common-defs.h: Include stddef.h.
3686 * defs.h: Do not include stddef.h.
3687 * common/common-utils.h: Likewise.
3688 * amd64fbsd-nat.c: Likewise.
3689 * bcache.c: Likewise.
3690 * charset.c: Likewise.
3691 * common/buffer.h: Likewise.
3692 * common/vec.h: Likewise.
3693 * i386bsd-nat.c: Likewise.
3694 * nat/linux-btrace.h: Likewise.
3695 * ppcfbsd-nat.c: Likewise.
3696 * ppcnbsd-tdep.h: Likewise.
3697 * ppcobsd-nat.c: Likewise.
3698 * ppcobsd-tdep.h: Likewise.
3699 * python/py-gdb-readline.c: Likewise.
3700
8980bdf6
GB
37012014-08-07 Gary Benson <gbenson@redhat.com>
3702
3703 * common/common-defs.h: Include stdarg.h.
3704 * defs.h: Do not include stdarg.h.
3705 * ada-lang.c: Likewise.
3706 * common/common-utils.h: Likewise.
3707 * guile/scm-string.c: Likewise.
3708 * guile/scm-utils.c: Likewise.
3709 * m32c-tdep.c: Likewise.
3710
d7096f71
GB
37112014-08-07 Gary Benson <gbenson@redhat.com>
3712
3713 * common/common-defs.h: Include stdlib.h.
3714 * defs.h: Do not include stdlib.h.
3715 * addrmap.c: Likewise.
3716 * bcache.c: Likewise.
3717 * common/buffer.c: Likewise.
3718 * common/common-utils.c: Likewise.
3719 * cp-name-parser.y: Likewise.
3720 * go32-nat.c: Likewise.
3721 * mn10300-linux-tdep.c: Likewise.
3722 * nat/linux-osdata.c: Likewise.
3723 * tui/tui.c: Likewise.
3724 * windows-nat.c: Likewise.
3725
d02f550d
GB
37262014-08-07 Gary Benson <gbenson@redhat.com>
3727
3728 * common/common-defs.h: Include stdio.h.
3729 * defs.h: Do not include stdio.h.
3730 * ada-lang.c: Likewise.
3731 * common/buffer.c: Likewise.
3732 * common/common-utils.c: Likewise.
3733 * cp-name-parser.y: Likewise.
3734 * gnu-nat.c: Likewise.
3735 * go32-nat.c: Likewise.
3736 * i386gnu-nat.c: Likewise.
3737 * proc-api.c: Likewise.
3738 * proc-events.c: Likewise.
3739 * proc-flags.c: Likewise.
3740 * proc-why.c: Likewise.
3741 * python/python-internal.h: Likewise.
3742 * target-memory.c: Likewise.
3743 * tui/tui-io.c: Likewise.
3744 * tui/tui.c: Likewise.
3745
b6d7a4bf
SM
37462014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3747
3748 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3749 (scan_dyntag_auxv): Same.
3750
af19829b
YQ
37512014-08-06 Yao Qi <yao@codesourcery.com>
3752
3753 * amd64-linux-nat.c: Remove duplicated include
3754 "x86-linux-nat.h".
3755 * i386-linux-nat.c: Likewise.
3756
8e07a239
YQ
37572014-08-06 Yao Qi <yao@codesourcery.com>
3758
3759 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3760 operand" with "Special opcode" in comments.
3761
7bfe8241
GB
37622014-08-05 Gary Benson <gbenson@redhat.com>
3763
3764 * interps.c (initialize_interps): Remove prototype.
3765 (interpreter_initialized): Remove static global.
3766 (interp_add): Do not call initialize_interps.
3767 (initialize_interps): Remove function.
3768
d6c95504
GB
37692014-08-05 Gary Benson <gbenson@redhat.com>
3770
3771 * utils.c (vwarning): Remove spurious va_end.
3772
241fd515
AM
37732014-08-05 Alan Modra <amodra@gmail.com>
3774
3775 * charset.c (convert_between_encodings): Cast result of obstack_base.
3776 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3777 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3778 (read_unwind_info): Use size_t for some locals.
3779 * jit.c (finalize_symtab): Likewise.
3780 * utils.c (hashtab_obstack_allocate): Likewise.
3781 * symmisc.c (print_objfile_statistics): Update format strings.
3782
dc304a94
JK
37832014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3784
3785 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3786 (Changes in GDB 7.8): ... here.
3787
3cecbbbe
TT
37882014-08-04 Tom Tromey <tromey@redhat.com>
3789
3790 * target.c (set_targetdebug): New function.
3791 (initialize_targets): Pass set_targetdebug when creating "set
3792 debug target".
3793
6908c509
JB
37942014-08-01 Joel Brobecker <brobecker@adacore.com>
3795
3796 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3797 if detecting a variable-sized field that is not the last field.
3798 Fix struct type length computation.
3799
53e8f97d
JB
38002014-08-01 Joel Brobecker <brobecker@adacore.com>
3801
3802 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3803 Add debug trace.
3804
e068c55d
JB
38052014-08-01 Joel Brobecker <brobecker@adacore.com>
3806
3807 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3808 Remove "+ 8" offset in computation of CHAIN_VMA.
3809
4d4ca2a1
DE
38102014-07-31 Doug Evans <dje@google.com>
3811
3812 * inflow.c (child_terminal_inferior): Add comment.
3813 (child_terminal_ours_for_output): Add comment.
3814 (child_terminal_ours): Add comment.
3815 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3816 (linux_nat_terminal_ours): Add comment.
3817
462f517e
GB
38182014-07-31 Gary Benson <gbenson@redhat.com>
3819
3820 * common/btrace-common.h: Do not include defs.h or server.h.
3821 * nat/mips-linux-watch.h: Likewise.
3822 * gdb-dlfcn.h: Do not include defs.h.
3823 * tracefile.h: Likewise.
3824
74228e77
RM
38252014-07-30 Roland McGrath <mcgrathr@google.com>
3826
3827 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3828
014f9477
TT
38292014-07-30 Tom Tromey <tromey@redhat.com>
3830
3831 * bsd-kvm.c (bsd_kvm_open): Constify.
3832 * corelow.c (core_open): Constify.
3833 * ctf.c (ctf_open): Constify.
3834 * dbug-rom.c (dbug_open): Constify.
3835 * exec.c (exec_open): Constify.
3836 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3837 * microblaze-rom.c (picobug_open): Constify.
3838 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3839 Constify.
3840 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3841 * record-btrace.c (record_btrace_open): Constify.
3842 * record-full.c (record_full_core_open_1, record_full_open_1)
3843 (record_full_open): Constify.
3844 * remote-m32r-sdi.c (m32r_open): Constify.
3845 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3846 (rockhopper_open, lsi_open): Constify.
3847 * remote-sim.c (gdbsim_open): Constify.
3848 * remote.c (remote_open, extended_remote_open, remote_open_1):
3849 Constify.
3850 * target.h (struct target_ops) <to_open>: Make "arg" const.
3851 * tracefile-tfile.c (tfile_open): Constify.
3852
e799154c
TT
38532014-07-30 Tom Tromey <tromey@redhat.com>
3854
3855 * breakpoint.c (map_breakpoint_numbers): Update.
3856 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3857 (get_number_const): New function.
3858 (get_number): Rewrite using get_number_const.
3859 (init_number_or_range): Make "string" const.
3860 (number_is_in_list): Make "list" const.
3861 * cli/cli-utils.h (get_number_const): Declare.
3862 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3863 (init_number_or_range, number_is_in_list): Update.
3864 * printcmd.c (map_display_numbers): Update.
3865 * value.c (value_from_history_ref): Constify.
3866 * value.h (value_from_history_ref): Update.
3867
5f08566b
TT
38682014-07-30 Tom Tromey <tromey@redhat.com>
3869
3870 * corefile.c (hook_type, call_extra_exec_file_hooks)
3871 (specify_exec_file_hook): Constify.
3872 * exec.c (exec_file_attach): Make "filename" const.
3873 * gdbcore.h (deprecated_exec_file_display_hook)
3874 (specify_exec_file_hook, exec_file_attach): Constify.
3875 * main.c (captured_main): Use catch_command_errors_const.
3876
8981c758
TT
38772014-07-30 Tom Tromey <tromey@redhat.com>
3878
3879 * target.c (open_target): New function.
3880 (add_target_with_completer, add_deprecated_target_alias): Use
3881 set_cmd_sfunc, set_cmd_context.
3882 (debug_to_open): Remove.
3883 (setup_target_debug): Update.
3884
a1c7835a
YQ
38852014-07-30 Yao Qi <yao@codesourcery.com>
3886
3887 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3888 comments.
3889 * parse.c (exp_iterate): Update comments.
3890
976411d6
GB
38912014-07-30 Gary Benson <gbenson@redhat.com>
3892
3893 * common/common-defs.h: New file.
3894 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3895 * defs.h: Include common-defs.h.
3896 Do not include config.h or build-gnulib/config.h.
3897
5d4848a4
GB
38982014-07-30 Gary Benson <gbenson@redhat.com>
3899
3900 * common/common-utils.h: Do not include config.h.
3901 * nat/linux-btrace.h: Likewise.
3902
d41f6d8e
GB
39032014-07-30 Gary Benson <gbenson@redhat.com>
3904
3905 * btrace.c: Include defs.h.
3906 * common/ptid.c: Include defs.h or server.h as appropriate.
3907 * nat/mips-linux-watch.c: Likewise.
3908
84202f9c
TT
39092014-07-29 Tom Tromey <tromey@redhat.com>
3910
3911 * target.c (target_is_pushed): Simplify.
3912
2530441c
JB
39132014-07-29 Joel Brobecker <brobecker@adacore.com>
3914
3915 GDB 7.8 released.
3916
7e09a223
YQ
39172014-07-29 Yao Qi <yao@codesourcery.com>
3918
3919 PR gdb/17206
3920 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3921
7ebdbe92
DE
39222014-07-28 Doug Evans <xdje42@gmail.com>
3923
3924 PR guile/17203
3925 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3926 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3927 parameters.
3928
f347ffc9
WN
39292014-07-28 Will Newton <will.newton@linaro.org>
3930
3931 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3932 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3933 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3934 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3935 (THUMB2_EABI_SYSCALL): Likewise.
3936 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3937 struct tramp_frame.
3938 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3939 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3940
37c5f1f7
DE
39412014-07-27 Doug Evans <xdje42@gmail.com>
3942
3943 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3944
0c3abbc7
DE
39452014-07-27 Doug Evans <xdje42@gmail.com>
3946
3947 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3948
e76c5d17
DE
39492014-07-26 Ludovic Courtès <ludo@gnu.org>
3950 Doug Evans <xdje42@gmail.com>
3951
3952 PR guile/17146
3953 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3954 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3955 * configure.ac: Try to use guild to compile an scm file, if it fails
3956 then disable guile support.
3957 * configure: Regenerate.
3958 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3959 GUILE_FILE_LIST.
3960 (GUILE_COMPILED_FILES): New variable.
3961 (GUILE_FILES) Update.
3962 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3963 (stamp-guile): Compile scm files.
3964 * guile/guile.c (boot_guile_support): New function.
3965 (standard_throw_args_p): New function.
3966 (print_standard_throw_error, print_throw_error): New functions.
3967 (handle_boot_error): New function.
3968 (initialize_scheme_side): Rewrite to call boot_guile_support.
3969 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3970 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3971
186fcde0
DE
39722014-07-26 Ludovic Courtès <ludo@gnu.org>
3973 Doug Evans <xdje42@gmail.com>
3974
3975 PR guile/17146
3976 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3977 * guile/lib/gdb/support.scm: New file.
3978 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3979 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3980 All uses updated.
3981 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3982 All uses updated.
3983 (%assert-type): Ditto, and renamed to assert-type.
3984 (%exception-print-style): Delete.
3985
4df42755
DE
39862014-07-26 Doug Evans <xdje42@gmail.com>
3987
3988 PR build/17105
3989 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3990 * configure: Regenerate.
3991 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3992 PYTHON_FILES.
3993 (PYTHON_FILES): New variable.
3994 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3995 (GUILE_FILES): New variable.
3996 (stamp-python, install-python, uninstall-python): Handle empty
3997 file list.
3998 (stamp-guile, install-guile, uninstall-guile): Ditto.
3999
ee7333ae
DE
40002014-07-26 Doug Evans <xdje42@gmail.com>
4001
4002 PR guile/17177
4003 * guile/lib/gdb.scm (pretty-printers): Export.
4004 (set-pretty-printers!): Export.
4005 * guile/lib/gdb/printing.scm (gdb module): Update.
4006 (prepend-pretty-printer!, append-pretty-printer!): Update.
4007 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4008 (pretty_printer_list_var): Delete.
4009 (pretty_printer_list): New static global.
4010 (gdbscm_pretty_printers): New function.
4011 (gdbscm_set_pretty_printers_x): New function.
4012 (ppscm_find_pretty_printer_from_gdb): Update.
4013 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4014 (gdbscm_initialize_pretty_printers): Update.
4015
74edf516
DE
40162014-07-26 Doug Evans <xdje42@gmail.com>
4017
4018 PR 17185
4019 * configure.ac: Add check for header gc/gc.h.
4020 Add check for function setenv.
4021 * configure: Regenerate.
4022 * config.in: Regenerate.
4023 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4024
d54398a7
MR
40252014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4026
4027 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4028 variation in gdbarch matching.
4029
ab16fce8
TT
40302014-07-25 Tom Tromey <tromey@redhat.com>
4031
4032 * exec.c (using_exec_ops): Remove.
4033 (exec_close_1): Update. Remove extraneous block, reindent.
4034 (add_target_sections): Use target_is_pushed.
4035
88056fbb
PA
40362014-07-25 Pedro Alves <palves@redhat.com>
4037
4038 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4039 * monitor.c (monitor_create_inferior): Likewise.
4040 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4041 * remote-sim.c (gdbsim_create_inferior): Likewise.
4042 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4043 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4044 * windows-nat.c (do_initial_windows_stuff): Likewise.
4045
70509625
PA
40462014-07-25 Pedro Alves <palves@redhat.com>
4047
4048 * NEWS: Mention signal passing and "signal" command changes.
4049 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4050 comment.
4051 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4052 call.
4053 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4054 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4055 (jump_command): Adjust clear_proceed_status call.
4056 (signal_command): Warn if other thread that are resumed have
4057 signals that will be delivered. Adjust clear_proceed_status call.
4058 (until_next_command, finish_command)
4059 (proceed_after_attach_callback, attach_command_post_wait)
4060 (attach_command): Adjust clear_proceed_status call.
4061 * infrun.c (proceed_after_vfork_done): Likewise.
4062 (proceed_after_attach_callback): Adjust comment.
4063 (clear_proceed_status_thread): Clear stop_signal if not in pass
4064 state.
4065 (clear_proceed_status_callback): Delete.
4066 (clear_proceed_status): New 'step' parameter. Only clear the
4067 proceed status of threads the command being prepared is about to
4068 resume.
4069 (proceed): If passed in an explicit signal, override stop_signal
4070 with it. Don't pass the last stop signal to the thread we're
4071 resuming.
4072 (init_wait_for_inferior): Adjust clear_proceed_status call.
4073 (switch_back_to_stepped_thread): Clear the signal if it should not
4074 be passed.
4075 * infrun.h (clear_proceed_status): New 'step' parameter.
4076 (user_visible_resume_ptid): Add comment.
4077 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4078 signal is in pass state.
4079 * remote.c (append_pending_thread_resumptions): Likewise.
4080 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4081
d8be2939
TT
40822014-07-25 Tom Tromey <tromey@redhat.com>
4083
4084 * target.h (target_stopped_data_address)
4085 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4086 parentheses.
4087
7d0d9d2b
PL
40882014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4089
4090 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4091 comments.
4092 (avr_pointer_to_address): Likewise.
4093
e9e7f724
TT
40942014-07-24 Tom Tromey <tromey@redhat.com>
4095
4096 * monitor.c (compile_pattern): Update.
4097 * target.h (struct target_ops) <to_shortname, to_longname,
4098 to_doc>: Now const.
4099
1947513d
TT
41002014-07-24 Tom Tromey <tromey@redhat.com>
4101
4102 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4103 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4104 (add_info_alias, add_com): Make "doc" const.
4105 (print_doc_line): Make "str" const.
4106 (delete_cmd): Update.
4107 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4108 (print_doc_line): Update.
4109 * cli/cli-script.c (document_command): Update.
4110 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4111 (add_com, add_info, add_info_alias): Update.
4112 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4113 * python/py-cmd.c (cmdpy_destroyer): Update.
4114
64e61d29
TT
41152014-07-24 Tom Tromey <tromey@redhat.com>
4116
4117 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4118 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4119 (help_cmd_list): Constify.
4120 (lookup_cmd): Update.
4121 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4122 const.
4123 (help_cmd_list, apropos_cmd): Update.
4124 * cli/cli-script.c (show_user): Update.
4125 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4126 * cli/cli-setshow.h (cmd_show_list): Update.
4127 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4128 (cmd_show_list): Update.
4129 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4130 * python/py-cmd.c (cmdpy_destroyer): Update.
4131
429e55ea
TT
41322014-07-24 Tom Tromey <tromey@redhat.com>
4133
4134 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4135 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4136 const.
4137 * command.h (deprecate_cmd): Update.
4138 * maint.c (maintenance_do_deprecate): Add casts.
4139
64669f3b
TT
41402014-07-24 Tom Tromey <tromey@redhat.com>
4141
4142 * cli/cli-decode.c (help_cmd): Make parameter "const".
4143 * cli/cli-decode.h (help_cmd): Update.
4144
d3d3328b
TT
41452014-07-24 Tom Tromey <tromey@redhat.com>
4146
4147 * stack.c (up_silently_base, down_silently_base): Make argument
4148 const.
4149
414842dc
TT
41502014-07-24 Tom Tromey <tromey@redhat.com>
4151
4152 * solib.c (solib_add): Make "pattern" const.
4153 * solib.h (solib_add): Update.
4154
baa336ce
TT
41552014-07-24 Tom Tromey <tromey@redhat.com>
4156
4157 * remote.c (remote_serial_open, print_packet, putpkt)
4158 (putpkt_binary): Constify.
4159 * remote.h (putpkt): Update.
4160
5a19e2d0
TT
41612014-07-24 Tom Tromey <tromey@redhat.com>
4162
4163 * monitor.c (monitor_open): Make "args" const.
4164 * monitor.h (monitor_open): Update.
4165
fc4baa5e
TT
41662014-07-24 Tom Tromey <tromey@redhat.com>
4167
4168 * maint.c (match_bfd_flags): Make "string" const.
4169 (print_bfd_section_info): Remove casts.
4170 (print_objfile_section_info): Make "string" const.
4171
0d5f0dbe
TT
41722014-07-24 Tom Tromey <tromey@redhat.com>
4173
4174 * inf-child.c (inf_child_open_target): Make "arg" const.
4175 * inf-child.h (inf_child_open_target): Update.
4176
41c77899
TT
41772014-07-24 Tom Tromey <tromey@redhat.com>
4178
4179 * environ.c (unset_in_environ): Make "var" const.
4180 * environ.h (unset_in_environ): Update.
4181
93db0d79
TT
41822014-07-24 Tom Tromey <tromey@redhat.com>
4183
4184 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4185 Make "cmd" const.
4186 (scan_filename_with_cleanup): Likewise.
4187 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4188 Make arguments const.
4189 (restore_command): Update.
4190
36d6eb95
PA
41912014-07-24 Pedro Alves <palves@redhat.com>
4192
4193 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4194
8009206a
TT
41952014-07-24 Tom Tromey <tromey@redhat.com>
4196 Gary Benson <gbenson@redhat.com>
4197
4198 * nat/linux-ptrace.c (additional_flags): New global.
4199 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4200 additional_flags; don't check GDBSERVER.
4201 (linux_ptrace_set_additional_flags): New function.
4202 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4203 Declare.
4204 * linux-nat.c (_initialize_linux_nat): Call
4205 linux_ptrace_set_additional_flags.
4206
a7068b60
TT
42072014-07-24 Tom Tromey <tromey@redhat.com>
4208
4209 * make-target-delegates (munge_type, write_debugmethod): New
4210 functions.
4211 (debug_names): New global.
4212 ($TARGET_DEBUG_PRINTER): New global.
4213 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4214 name.
4215 Write debug methods. Generate init_debug_target.
4216 * target-debug.h: New file.
4217 * target-delegates.c: Rebuild.
4218 * target.c: Include target-debug.h.
4219 (debug_target): Hoist definition.
4220 (target_kill, target_get_section_table, target_memory_map)
4221 (target_flash_erase, target_flash_done, target_detach)
4222 (target_disconnect, target_wait, target_resume)
4223 (target_pass_signals, target_program_signals, target_follow_fork)
4224 (target_mourn_inferior, target_search_memory)
4225 (target_thread_address_space, target_close)
4226 (target_find_new_threads, target_core_of_thread)
4227 (target_verify_memory, target_insert_mask_watchpoint)
4228 (target_remove_mask_watchpoint): Remove targetdebug code.
4229 (debug_to_post_attach, debug_to_prepare_to_store)
4230 (debug_to_files_info, debug_to_insert_breakpoint)
4231 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4232 (debug_to_region_ok_for_hw_watchpoint)
4233 (debug_to_can_accel_watchpoint_condition)
4234 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4235 (debug_to_watchpoint_addr_within_range)
4236 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4237 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4238 (debug_to_terminal_init, debug_to_terminal_inferior)
4239 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4240 (debug_to_terminal_save_ours, debug_to_terminal_info)
4241 (debug_to_load, debug_to_post_startup_inferior)
4242 (debug_to_insert_fork_catchpoint)
4243 (debug_to_remove_fork_catchpoint)
4244 (debug_to_insert_vfork_catchpoint)
4245 (debug_to_remove_vfork_catchpoint)
4246 (debug_to_insert_exec_catchpoint)
4247 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4248 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4249 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4250 (setup_target_debug): Call init_debug_target.
4251 * target.h (TARGET_DEBUG_PRINTER): New macro.
4252 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4253 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4254
2c51604d
GB
42552014-07-24 Gary Benson <gbenson@redhat.com>
4256
4257 * exceptions.h (throw_vfatal): Renamed to...
4258 (throw_vquit): New declaration.
4259 (throw_quit): Likewise.
4260 * exceptions.c (throw_vfatal): Renamed to...
4261 (throw_vquit): New function.
4262 (throw_quit): Likewise.
4263 (throw_error): Call throw_verror rather than throw_it.
4264 * utils.h (vfatal): Removed.
4265 (fatal): Likewise.
4266 * utils.c (vfatal): Removed.
4267 (fatal): Likewise.
4268 (internal_verror): Replaced call to fatal with call to throw_quit.
4269 (quit): Replaced calls to fatal with calls to throw_quit.
4270
34211963
ME
42712014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4272
4273 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4274 target_read_code.
4275
a52b4d3e
ME
42762014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4277
4278 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4279 less than zero in conditional expression.
4280
a8bdc56b
TT
42812014-07-23 Tom Tromey <tromey@redhat.com>
4282
4283 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4284 ($INTRO_PART): Don't match whitespace.
4285 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4286 argument matching.
4287 ($METHOD): Add $METHOD_TRAILER.
4288 (trim): Rewrite.
4289 (scan_target_h): New sub.
4290 Change main loop not to collect state.
4291 * target-delegates.c: Rebuild.
4292
91b52240
GB
42932014-07-23 Gary Benson <gbenson@redhat.com>
4294
4295 * cp-support.c (gdb_demangle): Fix build on systems without
4296 sigaltstack.
4297
45326f6f
JK
42982014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4299
4300 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4301 for reference entry value target data value.
4302
e214cf6c
JK
43032014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4304
4305 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4306 value_available_contents_eq.
4307
bddbbedd
PA
43082014-07-22 Pedro Alves <palves@redhat.com>
4309
4310 * value.c (allocate_optimized_out_value): Don't mark value as
4311 non-lazy.
4312
45c71484
JW
43132014-07-22 Jiong Wang <jiong.wang@arm.com>
4314
4315 * MAINTAINERS (Write After Approval): Update my email address.
4316
9597b22a
DE
43172014-07-20 Doug Evans <dje@google.com>
4318
4319 PR server/17147
4320 * remote.c (putpkt_binary): Add text to error message.
4321
91101fe5
YQ
43222014-07-20 Yao Qi <yao@codesourcery.com>
4323
4324 * eval.c: Remove "Chill" from comments.
4325 * gdbtypes.h: Likewise.
4326 * symtab.h: Likewise.
4327
c9402c95
YQ
43282014-07-20 Yao Qi <yao@codesourcery.com>
4329
4330 * std-operator.def: Update comments to TERNOP_SLICE.
4331
ae8fddda
YQ
43322014-07-20 Yao Qi <yao@codesourcery.com>
4333
4334 * std-operator.def: Remove BINOP_RANGE.
4335 * breakpoint.c (watchpoint_exp_is_const): Update.
4336 * expprint.c (dump_subexp_body_standard): Likewise.
4337 * eval.c (init_array_element): Remove dead code.
4338 (evaluate_subexp_standard): Likewise.
4339
9c816640
YQ
43402014-07-20 Yao Qi <yao@codesourcery.com>
4341
4342 * std-operator.def: Remove BINOP_IN.
4343 * breakpoint.c (watchpoint_exp_is_const): Update.
4344 * eval.c (evaluate_subexp_standard): Likewise.
4345 * expprint.c (dump_subexp_body_standard): Likewise.
4346
164224e9
ME
43472014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4348
4349 * microblaze-tdep.c (microblaze_register_names): Add
4350 the rshr and rslr register names.
4351 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4352 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4353 Use of tdesc_numbered_register. Use of
4354 microblaze_register_g_packet_guesses. Use of
4355 tdesc_use_registers. Use of set_gdbarch_register_type.
4356 (microblaze_register_g_packet_guesses): New.
4357 * microblaze-tdep.h (microblaze_reg_num): Add
4358 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4359 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4360 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4361 * features/microblaze-core.xml: New file.
4362 * features/microblaze-stack-protect.xml: New file.
4363 * features/microblaze-with-stack-protect.c: New file.
4364 * features/microblaze-with-stack-protect.xml: New file.
4365 * features/microblaze.xml: New file.
4366 * features/microblaze.c: New file.
4367 * features/Makefile (microblaze-with-stack-protect): Add
4368 microblaze-with-stack-protect microblaze and microblaze-expedite.
4369 * regformats/microblaze-with-stack-protect.dat: New file.
4370 * regformats/microblaze.dat: New file.
4371 * doc/gdb.texinfo (MicroBlaze Features): Added.
4372
e8b2341c
TT
43732014-07-18 Tom Tromey <tromey@redhat.com>
4374
4375 * exec.c (exec_ops): Now static.
4376 * exec.h (exec_ops): Don't declare.
4377
44e89118
TT
43782014-07-18 Tom Tromey <tromey@redhat.com>
4379
4380 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4381 to find_target_beneath.
4382 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4383 find_target_beneath.
4384 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4385
b0ed115f
TT
43862014-07-18 Tom Tromey <tromey@redhat.com>
4387
4388 PR gdb/17130:
4389 * utils.c (quit): Use target_supports_terminal_ours.
4390 * target.h (target_supports_terminal_ours): Declare.
4391 * target.c (target_supports_delete_record): Don't check
4392 to_delete_record against NULL.
4393 (target_supports_terminal_ours): New function.
4394
e75fdfca
TT
43952014-07-18 Tom Tromey <tromey@redhat.com>
4396
4397 PR gdb/17130:
4398 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4399 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4400 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4401 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4402 * windows-nat.c (windows_xfer_partial): Always delegate.
4403 * record-btrace.c (record_btrace_xfer_partial): Simplify
4404 delegation.
4405 (record_btrace_fetch_registers, record_btrace_store_registers)
4406 (record_btrace_prepare_to_store, record_btrace_resume)
4407 (record_btrace_wait, record_btrace_find_new_threads)
4408 (record_btrace_thread_alive): Likewise.
4409 * procfs.c (procfs_xfer_partial): Always delegate.
4410 * corelow.c (core_xfer_partial): Always delegate.
4411 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4412
83814951
TT
44132014-07-18 Tom Tromey <tromey@redhat.com>
4414
4415 * exec.c (exec_make_note_section): Move earlier.
4416
b8b8facf
DE
44172014-07-17 Doug Evans <dje@google.com>
4418
74b49205 4419 PR gdb/17170
b8b8facf
DE
4420 * maint.c (count_symtabs_and_blocks): Handle NULL
4421 current_program_space.
4422 (report_command_stats): Check global enabled flag in addition to
4423 recorded enabled flag.
4424 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4425
69ff6be5
PA
44262014-07-16 Pedro Alves <palves@redhat.com>
4427
4428 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4429
252db1b5
TT
44302014-07-16 Tom Tromey <tromey@redhat.com>
4431
4432 * target.h (struct target_ops) <to_delete_record>: Reformat
4433 comment.
4434
a432721e
TT
44352014-07-16 Tom Tromey <tromey@redhat.com>
4436
4437 * target-delegates.c: Rebuild.
4438
487d9753
PL
44392014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4440
4441 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4442 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4443 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4444 (avr_pointer_to_address): Likewise.
4445 (avr_address_class_type_flags): New function.
4446 (avr_address_class_type_flags_to_name): Likewise.
4447 (avr_address_class_name_to_type_flags): Likewise.
4448 (avr_gdbarch_init): Set address_class_type_flags,
4449 address_class_type_flags_to_name and
4450 address_class_name_to_type_flags.
4451
57745c90
PA
44522014-07-15 Pedro Alves <palves@redhat.com>
4453
4454 * linux-nat.c (kill_callback): Save errno and work with saved
4455 copy.
4456
2d40be18
SM
44572014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4458
4459 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4460
572f6555
EBM
44612014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4462
4463 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4464 breakpoint support correctly.
4465
cc1c52ad
PA
44662014-07-14 Pedro Alves <palves@redhat.com>
4467
4468 * utils.c (prompt_for_continue): Call target_terminal_ours.
4469
1e973570
PA
44702014-07-14 Pedro Alves <palves@redhat.com>
4471
4472 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4473 catch_errors. Don't re-enable stdin or notify observers where,
4474 and rethrow error.
4475 (fetch_inferior_event_wrapper): Delete.
4476
93d6eb10
PA
44772014-07-14 Pedro Alves <palves@redhat.com>
4478
4479 PR gdb/17072
4480 * top.c: Include "inf-loop.h".
4481 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4482 field.
4483 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4484 was async before.
4485 (gdb_readline_wrapper): Store whether the target is async, and
4486 make it sync.
4487
0017922d
PA
44882014-07-14 Pedro Alves <palves@redhat.com>
4489
4490 PR gdb/17072
4491 * top.c (gdb_readline_wrapper_line): Tweak comment.
4492 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4493 the input handler callback.
4494
94696ad3
PA
44952014-07-14 Pedro Alves <palves@redhat.com>
4496
4497 PR gdb/17072
4498 * main.c: Include event-top.h.
4499 (handle_command_errors): New function.
4500 (catch_command_errors, catch_command_errors_const): Use it.
4501
9d1e69a2
PA
45022014-07-14 Pedro Alves <palves@redhat.com>
4503
4504 * exceptions.c (catch_command_errors, catch_command_errors_const):
4505 Moved to main.c.
4506 * exceptions.h (catch_command_errors_ftype)
4507 (catch_command_errors_const_ftype): Moved to main.c.
4508 (catch_command_errors, catch_command_errors_const): Delete
4509 declarations.
4510 * main.c (catch_command_errors_ftype)
4511 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4512 (catch_command_errors, catch_command_errors_const)): Moved here
4513 from exceptions.c and make static.
4514
feefc97b
PA
45152014-07-14 Pedro Alves <palves@redhat.com>
4516
4517 * exceptions.c (print_any_exception): Delete.
4518 (catch_exceptions_with_msg): Use exception_print instead of
4519 print_any_exception.
4520 (catch_errors): Use exception_fprintf instead of
4521 print_any_exception.
4522 (catch_command_errors, catch_command_errors_const): Use
4523 exception_print instead of print_any_exception.
4524
c933f875
PA
45252014-07-14 Pedro Alves <palves@redhat.com>
4526
4527 * infcall.c (run_inferior_call): Set 'sync_execution' while
4528 running the inferior call.
4529
feb6f816
PA
45302014-07-14 Pedro Alves <palves@redhat.com>
4531
4532 * value.c (value_contents_equal): Delete function.
4533 * value.h (value_contents_equal): Delete declaration.
4534
d98b7a16
TT
45352014-07-14 Tom Tromey <tromey@redhat.com>
4536
4537 PR exp/17106:
4538 * gdbtypes.c (is_dynamic_type_internal): New function, from
4539 is_dynamic_type.
4540 (is_dynamic_type): Rewrite.
4541 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4542 (resolve_dynamic_struct): Likewise.
4543 (resolve_dynamic_type_internal): New function, from
4544 resolve_dynamic_type.
4545 (resolve_dynamic_type): Rewrite.
4546
548740d6
TT
45472014-07-14 Tom Tromey <tromey@redhat.com>
4548
4549 * target.c (target_require_runnable): Also check record_stratum.
4550 Update comment.
4551
808f7ab1
YQ
45522014-07-11 Yao Qi <yao@codesourcery.com>
4553
4554 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4555 thumb_instruction_restores_sp return true.
4556
540314bd
YQ
45572014-07-11 Yao Qi <yao@codesourcery.com>
4558
4559 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4560 (thumb_in_function_epilogue_p): Call
4561 thumb_instruction_restores_sp.
4562
1db01f22
YQ
45632014-07-11 Yao Qi <yao@codesourcery.com>
4564
4565 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4566 'add sp, #imm'.
4567 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4568
3116063b
GB
45692014-07-11 Gary Benson <gbenson@redhat.com>
4570
4571 * amd64-linux-nat.c (gdbcore.h): Remove include.
4572 (regset.h): Likewise.
4573 (nat/linux-btrace.h): Likewise.
4574 (btrace.h): Likewise.
4575 (gdb_assert.h): Likewise.
4576 (string.h): Likewise.
4577 (sys/uio.h): Likewise.
4578 (sys/debugreg.h): Likewise.
4579 (sys/syscall.h): Likewise.
4580 (sys/procfs.h): Likewise.
4581 (sys/user.h): Likewise.
4582 (asm/ptrace.h): Likewise.
4583 (i386-nat.h): Likewise.
4584 * i386-linux-nat.c (i386-nat.h): Likewise.
4585 (regset.h): Likewise.
4586 (target.h): Likewise.
4587 (linux-nat.h): Likewise.
4588 (nat/linux-btrace.h): Likewise.
4589 (btrace.h): Likewise.
4590 (gdb_assert.h): Likewise.
4591 (string.h): Likewise.
4592 (sys/uio.h): Likewise.
4593 (sys/user.h): Likewise.
4594 (sys/procfs.h): Likewise.
4595 (sys/reg.h): Likewise.
4596 (sys/debugreg.h): Likewise.
4597 (ORIG_EAX): Remove definition.
4598
040baaf6
GB
45992014-07-11 Gary Benson <gbenson@redhat.com>
4600
4601 * i386-linux-nat.h: New file.
4602 * x86-linux-nat.h: Likewise.
4603 * x86-linux-nat.c: Likewise.
4604 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4605 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4606 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4607 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4608 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4609 (PTRACE_SETREGSET): Likewise.
4610 (arch_lwp_info): Now in x86-linux-nat.c.
4611 (have_ptrace_getregset): Now in x86-linux-nat.h.
4612 (x86_linux_dr_get): Now in x86-linux-nat.c.
4613 (x86_linux_dr_set): Likewise.
4614 (x86_linux_dr_get_addr): Likewise.
4615 (x86_linux_dr_get_control): Likewise.
4616 (x86_linux_dr_get_status): Likewise.
4617 (update_debug_registers_callback): Likewise.
4618 (x86_linux_dr_set_control): Likewise.
4619 (x86_linux_dr_set_addr): Likewise.
4620 (x86_linux_prepare_to_resume): Likewise.
4621 (x86_linux_new_thread): Likewise.
4622 (x86_linux_new_fork): Likewise.
4623 (x86_linux_get_thread_area): Likewise.
4624 (super_post_startup_inferior): Likewise.
4625 (x86_linux_child_post_startup_inferior): Likewise.
4626 (AMD64_LINUX_USER64_CS): Likewise.
4627 (AMD64_LINUX_X32_DS): Likewise.
4628 (x86_linux_read_description): Likewise.
4629 (x86_linux_enable_btrace): Likewise.
4630 (x86_linux_disable_btrace): Likewise.
4631 (x86_linux_teardown_btrace): Likewise.
4632 (x86_linux_read_btrace): Likewise.
4633 (x86_linux_create_target): Likewise.
4634 (x86_linux_add_target): Likewise.
4635 * i386-linux-nat.c (x86-linux-nat.h): New include.
4636 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4637 (PTRACE_SETREGSET): Likewise.
4638 (arch_lwp_info): Now in x86-linux-nat.c.
4639 (have_ptrace_getregset): Now in x86-linux-nat.h.
4640 (x86_linux_dr_get): Now in x86-linux-nat.c.
4641 (x86_linux_dr_set): Likewise.
4642 (x86_linux_dr_get_addr): Likewise.
4643 (x86_linux_dr_get_control): Likewise.
4644 (x86_linux_dr_get_status): Likewise.
4645 (update_debug_registers_callback): Likewise.
4646 (x86_linux_dr_set_control): Likewise.
4647 (x86_linux_dr_set_addr): Likewise.
4648 (x86_linux_prepare_to_resume): Likewise.
4649 (x86_linux_new_thread): Likewise.
4650 (x86_linux_new_fork): Likewise.
4651 (x86_linux_get_thread_area): Likewise.
4652 (super_post_startup_inferior): Likewise.
4653 (x86_linux_child_post_startup_inferior): Likewise.
4654 (AMD64_LINUX_USER64_CS): Likewise.
4655 (AMD64_LINUX_X32_DS): Likewise.
4656 (x86_linux_read_description): Likewise.
4657 (x86_linux_enable_btrace): Likewise.
4658 (x86_linux_disable_btrace): Likewise.
4659 (x86_linux_teardown_btrace): Likewise.
4660 (x86_linux_read_btrace): Likewise.
4661 (x86_linux_create_target): Likewise.
4662 (x86_linux_add_target): Likewise.
4663
1aa7e42c
GB
46642014-07-11 Gary Benson <gbenson@redhat.com>
4665
4666 * amd64-linux-nat.c: Comment and whitespace changes.
4667 * i386-linux-nat.c: Comment and whitespace changes.
4668
c1e246a0
GB
46692014-07-11 Gary Benson <gbenson@redhat.com>
4670
4671 * amd64-linux-nat.c (x86_linux_create_target): New function.
4672 (x86_linux_add_target): Likewise.
4673 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4674 * i386-linux-nat.c (x86_linux_create_target): New function.
4675 (x86_linux_add_target): Likewise.
4676 (_initialize_i386_linux_nat): Delegate to the above new functions.
4677
8c420b8d
GB
46782014-07-11 Gary Benson <gbenson@redhat.com>
4679
4680 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4681 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4682 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4683 (ps_get_thread_area): Delegate to the above.
4684
cb1da100
GB
46852014-07-11 Gary Benson <gbenson@redhat.com>
4686
4687 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4688 x86_linux_read_description. All uses updated. amd64-specific
4689 code conditionalized. Conditionalized i386-specific code added.
4690 Redundant cast removed.
4691 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4692 x86_linux_read_description. All uses updated. i386-specific
4693 code conditionalized. Conditionalized amd64-specific code added.
4694 One sizeof replaced with the actual type it is describing.
4695
2acf3cd0
GB
46962014-07-11 Gary Benson <gbenson@redhat.com>
4697
4698 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4699 x86_linux_dr_get. All uses updated.
4700 (amd64_linux_dr_set): Renamed to
4701 x86_linux_dr_set. All uses updated.
4702 (amd64_linux_dr_get_addr): Renamed to
4703 x86_linux_dr_get_addr. All uses updated.
4704 (amd64_linux_dr_get_control): Renamed to
4705 x86_linux_dr_get_control. All uses updated.
4706 (amd64_linux_dr_get_status): Renamed to
4707 x86_linux_dr_get_status. All uses updated.
4708 (amd64_linux_dr_set_control): Renamed to
4709 x86_linux_dr_set_control. All uses updated.
4710 (amd64_linux_dr_set_addr): Renamed to
4711 x86_linux_dr_set_addr. All uses updated.
4712 (amd64_linux_prepare_to_resume): Renamed to
4713 x86_linux_prepare_to_resume. All uses updated.
4714 (amd64_linux_new_thread): Renamed to
4715 x86_linux_new_thread. All uses updated.
4716 (amd64_linux_new_fork): Renamed to
4717 x86_linux_new_fork. All uses updated.
4718 (amd64_linux_child_post_startup_inferior): Renamed to
4719 x86_linux_child_post_startup_inferior. All uses updated.
4720 (amd64_linux_enable_btrace): Renamed to
4721 x86_linux_enable_btrace. All uses updated.
4722 (amd64_linux_disable_btrace): Renamed to
4723 x86_linux_disable_btrace. All uses updated.
4724 (amd64_linux_teardown_btrace): Renamed to
4725 x86_linux_teardown_btrace. All uses updated.
4726 (amd64_linux_read_btrace): Renamed to
4727 x86_linux_read_btrace. All uses updated.
4728 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4729 x86_linux_dr_get. All uses updated.
4730 (i386_linux_dr_set): Renamed to
4731 x86_linux_dr_set. All uses updated.
4732 (i386_linux_dr_get_addr): Renamed to
4733 x86_linux_dr_get_addr. All uses updated.
4734 (i386_linux_dr_get_control): Renamed to
4735 x86_linux_dr_get_control. All uses updated.
4736 (i386_linux_dr_get_status): Renamed to
4737 x86_linux_dr_get_status. All uses updated.
4738 (i386_linux_dr_set_control): Renamed to
4739 x86_linux_dr_set_control. All uses updated.
4740 (i386_linux_dr_set_addr): Renamed to
4741 x86_linux_dr_set_addr. All uses updated.
4742 (i386_linux_prepare_to_resume): Renamed to
4743 x86_linux_prepare_to_resume. All uses updated.
4744 (i386_linux_new_thread): Renamed to
4745 x86_linux_new_thread. All uses updated.
4746 (i386_linux_new_fork): Renamed to
4747 x86_linux_new_fork. All uses updated.
4748 (i386_linux_child_post_startup_inferior): Renamed to
4749 x86_linux_child_post_startup_inferior. All uses updated.
4750 (i386_linux_enable_btrace): Renamed to
4751 x86_linux_enable_btrace. All uses updated.
4752 (i386_linux_disable_btrace): Renamed to
4753 x86_linux_disable_btrace. All uses updated.
4754 (i386_linux_teardown_btrace): Renamed to
4755 x86_linux_teardown_btrace. All uses updated.
4756 (i386_linux_read_btrace): Renamed to
4757 x86_linux_read_btrace. All uses updated.
4758
b9c1d481
AS
47592014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4760
4761 * remote.c (extended_remote_post_attach): New function.
4762 (init_extended_remote_ops): Install it as to_post_attach method.
4763
7180e04a
PA
47642014-07-09 Pedro Alves <palves@redhat.com>
4765
4766 * infcmd.c (attach_command_post_wait): Don't call
4767 target_terminal_inferior here.
4768 (attach_command): Call it here instead.
4769
9a9a7608
AB
47702014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4771
4772 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4773 field.
4774 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4775 from varobj.c, with additional checks.
4776 (c_varobj_ops): Fill in is_path_expr_parent field.
4777 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4778 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4779 field.
4780 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4781 ops method.
4782 (varobj_default_is_path_expr_parent): New function.
4783 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4784 (varobj_default_is_path_expr_parent): Declare new function.
4785
1f267ae3
MM
47862014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4787
4788 * infcmd.c (finish_backward): Turn internal error into normal error.
4789
b2ee242b
PA
47902014-07-07 Pedro Alves <palves@redhat.com>
4791
8a869bca 4792 PR gdb/17096
b2ee242b
PA
4793 * remote.c (async_handle_remote_sigint)
4794 (async_handle_remote_sigint_twice): Call
4795 gdb_call_async_signal_handler instead of
4796 mark_async_signal_handler.
4797
38e229b2
TT
47982014-07-07 Tom Tromey <tromey@redhat.com>
4799
4800 * target-delegates.c: Rebuild.
4801 * target.c (target_info_record): Remove.
4802 * record.c (info_record_command): Unconditionally call
4803 to_info_record.
4804 * target.h (struct target_ops) <to_info_record>: Use
4805 TARGET_DEFAULT_IGNORE.
4806 (target_info_record): Remove.
4807
f0f9ff95
TT
48082014-07-07 Tom Tromey <tromey@redhat.com>
4809
4810 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4811 TARGET_DEFAULT_NORETURN.
4812 * target.c (generic_tls_error): New function.
4813 (target_translate_tls_address): Don't search target stack.
4814 * target-delegates.c: Rebuild.
4815 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4816 stack.
4817 * linux-thread-db.c (thread_db_get_thread_local_address):
4818 Unconditionally call beneath target.
4819
4a5be5ee
MK
48202014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4821
4822 * cli/cli-logging.c (pop_output_files): Assign targerr to
4823 gdb_stdtargerr.
4824
92c3b204
AB
48252014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4826
4827 * MAINTAINERS (Write After Approval): Update my email address.
4828
9b11e3a7
GB
48292014-07-02 Gary Benson <gbenson@redhat.com>
4830
4831 * proc-service.c (ps_xfer_memory): Update comment.
4832 (ps_pstop): Remove unused function.
4833 (ps_pcontinue): Likewise.
4834 (ps_lstop): Likewise.
4835 (ps_lcontinue): Likewise.
4836 (ps_lgetxregsize): Likewise.
4837 (ps_lgetxregs): Likewise.
4838 (ps_lsetxregs): Likewise.
4839 (ps_plog): Likewise.
4840 (ps_ptread): Likewise.
4841 (ps_ptwrite): Likewise.
4842
cf363f18
MW
48432014-07-01 Mark Wielaard <mjw@redhat.com>
4844
4845 * dwarf2read.c (add_array_cv_type): New function.
4846 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4847 (read_tag_volatile_type): Likewise.
4848
82ae6c8d
TT
48492014-07-01 Tom Tromey <tromey@redhat.com>
4850
4851 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4852 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4853 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4854 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4855 * command.h (cmd_cfunc_ftype): Move earlier.
4856 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4857 (add_com, add_info): Use cmd_cfunc_ftype.
4858
96142726
TT
48592014-06-30 Tom Tromey <tromey@redhat.com>
4860
4861 * symtab.c (operator_chars): Make parameters and return type
4862 const.
4863 (file_matches): Make "files" const.
4864 (struct search_symbols_data) <files>: Now const.
4865 (search_symbols): Make "regexp" and "files" parameters const.
4866 Update.
4867 (symtab_symbol_info): Remove cast.
4868 (rbreak_command): Update.
4869 * symtab.h (search_symbols): Update.
4870
b67a2c6f
YQ
48712014-06-27 Yao Qi <yao@codesourcery.com>
4872
4873 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4874 Change parameter type to 'struct thread_info *'. Caller
4875 updated.
4876 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4877 Update declaration.
4878 * dummy-frame.c (struct dummy_frame_id): New.
4879 (dummy_frame_id_eq): New function.
4880 (struct dummy_frame) <id>: Change its type to 'struct
4881 dummy_frame_id'.
4882 (dummy_frame_push): Add parameter ptid and save it in
4883 dummy_frame_id.
4884 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4885 inferior_ptid.
4886 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4887 to inferior_ptid.
4888 (lookup_dummy_frame): Change parameter type to 'struct
4889 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4890 instead of frame_id_eq.
4891 (dummy_frame_pop): Add parameter ptid. Callers updated.
4892 Update comments. Compose dummy_frame_id and pass it to
4893 lookup_dummy_frame.
4894 (dummy_frame_discard): Add parameter ptid.
4895 (dummy_frame_sniffer): Compose dummy_frame_id and call
4896 dummy_frame_id_eq instead of frame_id_eq.
4897 (fprint_dummy_frames): Print ptid.
4898 * dummy-frame.h: Remove comments.
4899 (dummy_frame_push): Add ptid in declaration.
4900 (dummy_frame_pop, dummy_frame_discard): Likewise.
4901
5b10184c
TT
49022014-06-26 Tom Tromey <tromey@redhat.com>
4903
4904 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4905 * command.h (error_no_arg): Update.
4906
06900326
TT
49072014-06-26 Tom Tromey <tromey@redhat.com>
4908
4909 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4910 (do_show_command): Make "arg" const.
4911 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4912
c2bcbb1d
TT
49132014-06-26 Tom Tromey <tromey@redhat.com>
4914
4915 * record-full.c (record_full_get_bookmark): Make "args" const.
4916 (record_full_goto_bookmark): Make "raw_bookmark" const.
4917 * record.c (record_goto): New function.
4918 (cmd_record_goto): Use it. Now static.
4919 * record.h (record_goto): Declare.
4920 (cmd_record_goto): Remove declaration.
4921 * target-delegates.c: Rebuild.
4922 * target.h (struct target_ops) <to_get_bookmark,
4923 to_goto_bookmark>: Make parameter const.
4924
9cbe5fff
TT
49252014-06-26 Tom Tromey <tromey@redhat.com>
4926
4927 * defs.h (generic_load): Update.
4928 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4929 * monitor.c (monitor_load): Make "args" const.
4930 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4931 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4932 const.
4933 (mips_load): Make "file" const.
4934 * remote-sim.c (gdbsim_load): Make "args" const.
4935 * remote.c (remote_load): Make "name" const.
4936 * symfile.c (generic_load): Make "args" const.
4937 * target-delegates.c: Rebuild.
4938 * target.c (target_load): Make "arg" const.
4939 (debug_to_load): Make "args" const.
4940 * target.h (struct target_ops) <to_load>: Make parameter const.
4941 (target_load): Update.
4942
34a68019
TT
49432014-06-26 Tom Tromey <tromey@redhat.com>
4944
4945 PR symtab/16902:
4946 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4947 (dwarf2_physname, read_partial_die)
4948 (guess_partial_die_structure_name, fixup_partial_die)
4949 (guess_full_die_structure_name, anonymous_struct_prefix)
4950 (dwarf2_name): Use per-BFD obstack.
4951
efc889c1
YQ
49522014-06-26 Yao Qi <yao@codesourcery.com>
4953
4954 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4955 dummyframe and this_id into inner block below.
4956
4395285e
YQ
49572014-06-26 Yao Qi <yao@codesourcery.com>
4958
4959 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4960 with "signal_pass[0]" in the initialization of signal_pass.
4961
aef92902
MM
49622014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4963
4964 * record-btrace.c (record_btrace_generating_corefile)
4965 (record_btrace_prepare_to_generate_core)
4966 (record_btrace_done_generating_core): New.
4967 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4968 (record_btrace_store_registers, record_btrace_prepare_to_store):
4969 Forward request when generating a core file.
4970 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4971 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4972 to_done_generating_core.
4973
5fff78c4
MM
49742014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4975
4976 * target.h (target_ops) <to_prepare_to_generate_core>
4977 <to_done_generating_core>: New.
4978 (target_prepare_to_generate_core, target_done_generating_core): New.
4979 * target.c (target_prepare_to_generate_core)
4980 (target_done_generating_core): New.
4981 * target-delegates.c: Regenerate.
4982 * gcore.c: (write_gcore_file): Rename to ...
4983 (write_gcore_file_1): ...this.
4984 (write_gcore_file): Call target_prepare_to_generate_core
4985 and target_done_generating_core.
4986
1d1f1ccb
MM
49872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4988
4989 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4990 * gcore.c (write_gcore_file): Free memory returned from
4991 make_corefile_notes.
4992 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4993 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4994
3343ef86
YQ
49952014-06-24 Yao Qi <yao@codesourcery.com>
4996
4997 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4998 (arm_linux_init_abi): Set skip_trampoline_code with
4999 gdbarch_skip_trampoline_code instead of
5000 find_solib_trampoline_target.
5001
18d18ac8
YQ
50022014-06-24 Yao Qi <yao@codesourcery.com>
5003
5004 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5005 arm_skip_bx_reg returns non-zero.
5006
80d8d390
YQ
50072014-06-24 Yao Qi <yao@codesourcery.com>
5008
5009 * arm-tdep.c (arm_skip_bx_reg): New function.
5010 (arm_skip_stub): Call arm_skip_bx_reg.
5011
6a18a01c
DB
50122014-06-23 Don Breazeal <donb@codesourcery.com>
5013
5014 * MAINTAINERS: Add myself as write-after-approval maintainer.
5015
8e9db26e
PA
50162014-06-23 Pedro Alves <palves@redhat.com>
5017
5018 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5019 DR_CONTROL before setting DR0..DR3.
5020 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5021 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5022 bits of DR_CONTROL related to the debug register slot being
5023 disabled. If all slots are vacant, clear local slowdown as well,
5024 and assert DR_CONTROL is 0.
5025
70afc5b7
SC
50262014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5027
5028 * python/lib/gdb/command/xmethods.py
5029 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5030 current progspace only if the string "progspace" matches LOCUS_RE.
5031
840ed64d
JK
50322014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5033
5034 Fix --with-system-readline with readline-6.3 patch 5.
5035 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5036 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5037 types.
5038
26f2dc30
TT
50392014-06-20 Tom Tromey <tromey@redhat.com>
5040
5041 * dwarf2read.c (dw2_get_real_path): Use correct type in
5042 OBSTACK_CALLOC.
5043 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5044
125f8a3d
GB
50452014-06-20 Gary Benson <gbenson@redhat.com>
5046
5047 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5048 * common/glibc_thread_db.h: Likewise.
5049 * common/i386-cpuid.h: Likewise.
5050 * common/i386-gcc-cpuid.h: Likewise.
5051 * common/linux-btrace.h: Likewise.
5052 * common/linux-osdata.h: Likewise.
5053 * common/linux-procfs.h: Likewise.
5054 * common/linux-ptrace.h: Likewise.
5055 * common/mips-linux-watch.h: Likewise.
5056 * common/linux-btrace.c: Moved to nat.
5057 * common/linux-osdata.c: Likewise.
5058 * common/linux-procfs.c: Likewise.
5059 * common/linux-ptrace.c: Likewise.
5060 * common/mips-linux-watch.c: Likewise.
5061 * nat/gdb_thread_db.h: Moved from common.
5062 * nat/glibc_thread_db.h: Likewise.
5063 * nat/i386-cpuid.h: Likewise.
5064 * nat/i386-gcc-cpuid.h: Likewise.
5065 * nat/linux-btrace.c: Likewise.
5066 * nat/linux-btrace.h: Likewise.
5067 * nat/linux-osdata.c: Likewise.
5068 * nat/linux-osdata.h: Likewise.
5069 * nat/linux-procfs.c: Likewise.
5070 * nat/linux-procfs.h: Likewise.
5071 * nat/linux-ptrace.c: Likewise.
5072 * nat/linux-ptrace.h: Likewise.
5073 * nat/mips-linux-watch.c: Likewise.
5074 * nat/mips-linux-watch.h: Likewise.
5075 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5076 (object file files): Reordered.
5077 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5078 of glibc_thread_db.h.
5079
42995dbd
GB
50802014-06-20 Gary Benson <gbenson@redhat.com>
5081
5082 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5083 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5084 (i386_dr_low): Likewise.
5085 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5086 (i386_dr_low_set_addr): Likewise.
5087 (i386_dr_low_get_addr): Likewise.
5088 (i386_dr_low_can_set_control): Likewise.
5089 (i386_dr_low_set_control): Likewise.
5090 (i386_dr_low_get_control): Likewise.
5091 (i386_dr_low_get_status): Likewise.
5092 (i386_get_debug_register_length): Likewise.
5093 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5094 (i386_dr_low): Likewise.
5095 * nat/i386-dregs.c (i386-low.h): Remove include.
5096 (i386-nat.h): Likewise.
5097 (nat/i386-dregs.h): New include.
5098 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5099 (i386_dr_low_set_addr): Likewise.
5100 (i386_dr_low_get_addr): Likewise.
5101 (i386_dr_low_can_set_control): Likewise.
5102 (i386_dr_low_set_control): Likewise.
5103 (i386_dr_low_get_control): Likewise.
5104 (i386_dr_low_get_status): Likewise.
5105 (i386_get_debug_register_length): Likewise.
5106 (debug_hw_points): Likewise.
5107
3ed9baed
IB
51082014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5109
5110 * Makefile.in (SFILES): Add d-exp.y.
5111 (YYFILES): Add d-exp.c.
5112 (YYOBJ): Add d-exp.o.
5113 (local-maintainer-clean): Delete d-exp.c.
5114 * d-exp.y: New file.
5115 * d-lang.h (d_parse): New declaration.
5116 (d_error): New declaration.
5117 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5118 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5119 PREC_ORDER operators.
5120 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5121
78c164b0
YQ
51222014-06-19 Yao Qi <yao@codesourcery.com>
5123
5124 * gdbthread.h (any_running): Remove the declaration.
5125 * thread.c (any_running): Remove.
5126
f6e29b6e
YQ
51272014-06-19 Yao Qi <yao@codesourcery.com>
5128
5129 * gdbthread.h (struct thread_info) <state>: Change its type to
5130 'enum thread_state'. Update comments.
5131
034f788c
PA
51322014-06-19 Pedro Alves <palves@redhat.com>
5133
5134 * gdbthread.h (ALL_THREADS): Delete.
5135 (ALL_NON_EXITED_THREADS): New macro.
5136 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5137 instead of ALL_THREADS.
5138 * infrun.c (find_thread_needs_step_over)
5139 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5140 instead of ALL_THREADS.
5141 * record-btrace.c (record_btrace_open)
5142 (record_btrace_stop_recording, record_btrace_close)
5143 (record_btrace_is_replaying, record_btrace_resume)
5144 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5145 * remote.c (append_pending_thread_resumptions): Likewise.
5146 * thread.c (thread_apply_all_command): Likewise.
5147
46e33252
GB
51482014-06-19 Gary Benson <gbenson@redhat.com>
5149
5150 * i386-nat.c (i386_stopped_by_watchpoint):
5151 Use i386_dr_stopped_by_watchpoint.
5152 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5153 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5154
3a8ee006
GB
51552014-06-19 Gary Benson <gbenson@redhat.com>
5156
5157 * nat/i386-dregs.c: New file.
5158 * Makefile.in (i386-dregs.o): New rule.
5159 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5160 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5161 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5162 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5163 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5164 * config/i386/go32.mh (NATDEPFILES): Likewise.
5165 * config/i386/linux.mh (NATDEPFILES): Likewise.
5166 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5167 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5168 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5169 * i386-nat.h (debug_hw_points): New declaration.
5170 * i386-nat.c (breakpoint.h): Remove include.
5171 (command.h): Likewise.
5172 (target.h): Likewise.
5173 (gdb_assert.h): Likewise.
5174 (debug_hw_points): Made nonstatic.
5175 (debug_printf): Now in i386-dregs.c.
5176 (TARGET_HAS_DR_LEN_8): Likewise.
5177 (DR_CONTROL_SHIFT): Likewise.
5178 (DR_CONTROL_SIZE): Likewise.
5179 (DR_RW_EXECUTE): Likewise.
5180 (DR_RW_WRITE): Likewise.
5181 (DR_RW_READ): Likewise.
5182 (DR_RW_IORW): Likewise.
5183 (DR_LEN_1): Likewise.
5184 (DR_LEN_2): Likewise.
5185 (DR_LEN_4): Likewise.
5186 (DR_LEN_8): Likewise.
5187 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5188 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5189 (DR_ENABLE_SIZE): Likewise.
5190 (DR_LOCAL_SLOWDOWN): Likewise.
5191 (DR_GLOBAL_SLOWDOWN): Likewise.
5192 (DR_CONTROL_RESERVED): Likewise.
5193 (I386_DR_CONTROL_MASK): Likewise.
5194 (I386_DR_VACANT): Likewise.
5195 (I386_DR_LOCAL_ENABLE): Likewise.
5196 (I386_DR_GLOBAL_ENABLE): Likewise.
5197 (I386_DR_DISABLE): Likewise.
5198 (I386_DR_SET_RW_LEN): Likewise.
5199 (I386_DR_GET_RW_LEN): Likewise.
5200 (I386_DR_WATCH_HIT): Likewise.
5201 (i386_wp_op_t): Likewise.
5202 (i386_show_dr): Likewise.
5203 (i386_length_and_rw_bits): Likewise.
5204 (i386_insert_aligned_watchpoint): Likewise.
5205 (i386_remove_aligned_watchpoint): Likewise.
5206 (i386_handle_nonaligned_watchpoint): Likewise.
5207 (i386_update_inferior_debug_regs): Likewise.
5208 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5209 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5210 (i386_region_ok_for_watchpoint):
5211 Use i386_dr_region_ok_for_watchpoint.
5212 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5213
322a8e06
GB
52142014-06-19 Gary Benson <gbenson@redhat.com>
5215
5216 * i386-nat.c (i386_insert_hw_breakpoint): Use
5217 i386_insert_watchpoint.
5218 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5219
8f26655c
GB
52202014-06-19 Gary Benson <gbenson@redhat.com>
5221
5222 * i386-nat.c (i386_dr_show): Renamed to
5223 i386_show_dr and made static. All uses updated.
5224 (i386_dr_length_and_rw_bits): Renamed to
5225 i386_length_and_rw_bits and made static.
5226 All uses updated.
5227 (i386_dr_insert_aligned_watchpoint): Renamed to
5228 i386_insert_aligned_watchpoint and made static.
5229 All uses updated.
5230 (i386_dr_remove_aligned_watchpoint): Renamed to
5231 i386_remove_aligned_watchpoint and made static.
5232 All uses updated.
5233 (i386_dr_update_inferior_debug_regs): Renamed to
5234 i386_update_inferior_debug_regs and made static.
5235 All uses updated.
5236 * nat/i386-dregs.h (i386_dr_show): Removed.
5237 (i386_dr_length_and_rw_bits): Likewise.
5238 (i386_dr_insert_aligned_watchpoint): Likewise.
5239 (i386_dr_remove_aligned_watchpoint): Likewise.
5240 (i386_dr_update_inferior_debug_regs): Likewise.
5241
992c7d70
GB
52422014-06-19 Gary Benson <gbenson@redhat.com>
5243
5244 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5245 * configure: Regenerate.
5246 * config.in: Likewise.
5247 * main.c (signal.h): New include.
5248 (setup_alternate_signal_stack): New function.
5249 (captured_main): Call the above.
5250 * cp-support.c (signal.h): New include.
5251 (catch_demangler_crashes): New flag.
5252 (SIGJMP_BUF): New define.
5253 (SIGSETJMP): Likewise.
5254 (SIGLONGJMP): Likewise.
5255 (gdb_demangle_jmp_buf): New static global.
5256 (gdb_demangle_attempt_core_dump): Likewise.
5257 (gdb_demangle_signal_handler): New function.
5258 (gdb_demangle): If catch_demangler_crashes is set, install the
5259 above signal handler before calling bfd_demangle, and restore
5260 the original signal handler afterwards. Display the offending
5261 symbol and call demangler_warning the first time a segmentation
5262 fault is caught.
5263 (_initialize_cp_support): New maint set/show command.
5264
eae7090b
GB
52652014-06-19 Gary Benson <gbenson@redhat.com>
5266
5267 * utils.h (resource_limit_kind): New enum.
5268 (can_dump_core): New declaration.
5269 (warn_cant_dump_core): Likewise.
5270 (dump_core): Likewise.
5271 * utils.c (dump_core): Made nonstatic. Added new
5272 parameter "limit_kind".
5273 (can_dump_core): Made nonstatic. Moved printing code to...
5274 (warn_cant_dump_core): New function.
5275 (can_dump_core_warn): Likewise.
5276 (internal_vproblem): Replace calls to can_dump_core with
5277 calls to can_dump_core_warn. Supply new argument to each.
5278
57fcfb1b
GB
52792014-06-19 Gary Benson <gbenson@redhat.com>
5280
5281 * utils.h (demangler_vwarning): New declaration.
5282 (demangler_warning): Likewise.
5283 * utils.c (struct internal_problem)
5284 <user_settable_should_quit>: New field.
5285 <user_settable_should_dump_core>: Likewise
5286 (internal_error_problem): Add values for above new fields.
5287 (internal_warning_problem): Likewise.
5288 (demangler_warning_problem): New static global.
5289 (demangler_vwarning): New function.
5290 (demangler_warning): Likewise.
5291 (add_internal_problem_command): Selectively add commands.
5292 (_initialize_utils): New internal problem command.
5293 * maint.c (maintenance_demangler_warning): New function.
5294 (_initialize_maint_cmds): New command.
5295
17a40b44
TT
52962014-06-18 Tom Tromey <tromey@redhat.com>
5297
5298 * f-valprint.c (info_common_command_for_block): Update.
5299 * symtab.h (struct general_symbol_info) <common_block>: Now
5300 const.
5301
346d1dfe
TT
53022014-06-18 Tom Tromey <tromey@redhat.com>
5303
5304 * symtab.h (struct symtab) <blockvector>: Now const.
5305 * ada-lang.c (ada_add_global_exceptions): Update.
5306 * buildsym.c (augment_type_symtab): Update.
5307 * dwarf2read.c (dw2_lookup_symbol): Update.
5308 * jit.c (finalize_symtab): Update.
5309 * jv-lang.c (add_class_symtab_symbol): Update.
5310 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5311 Update.
5312 * objfiles.c (objfile_relocate1): Update.
5313 * psymtab.c (lookup_symbol_aux_psymtabs)
5314 (maintenance_check_psymtabs): Update.
5315 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5316 Update.
5317 * spu-tdep.c (spu_catch_start): Update.
5318 * symmisc.c (dump_symtab_1): Update.
5319 * symtab.c (lookup_global_symbol_from_objfile)
5320 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5321 (basic_lookup_transparent_type_quick)
5322 (basic_lookup_transparent_type, find_pc_sect_symtab)
5323 (find_pc_sect_line, search_symbols): Update.
5324 * block.c (find_block_in_blockvector): Make "bl" const.
5325 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5326 const.
5327 (blockvector_contains_pc): Make "bv" const.
5328 (block_for_pc_sect): Update.
5329 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5330 (blockvector_contains_pc): Update.
5331 * breakpoint.c (resolve_sal_pc): Update.
5332 * inline-frame.c (block_starting_point_at): Update.
5333
1834676b
TT
53342014-06-18 Tom Tromey <tromey@redhat.com>
5335
5336 * completer.c (complete_line): Make "line_buffer" const.
5337 * completer.h (complete_line): Update.
5338
ac1a991b
TT
53392014-06-18 Tom Tromey <tromey@redhat.com>
5340
5341 * symtab.c (add_macro_name): Remove unneeded cast.
5342
5bc98e52
TT
53432014-06-18 Tom Tromey <tromey@redhat.com>
5344
5345 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5346 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5347
8236def8
TT
53482014-06-18 Tom Tromey <tromey@redhat.com>
5349
5350 * probe.c (info_probes_for_ops): Make "arg" const.
5351 * probe.h (info_probes_for_ops): Update.
5352
3977b71f
TT
53532014-06-18 Tom Tromey <tromey@redhat.com>
5354
5355 * varobj.c (varobj_create): Update.
5356 * valops.c (value_of_this): Update.
5357 * tracepoint.c (add_local_symbols, scope_info): Update.
5358 * symtab.h (struct general_symbol_info) <block>: Now const.
5359 * symtab.c (skip_prologue_sal)
5360 (default_make_symbol_completion_list_break_on)
5361 (skip_prologue_using_sal): Update.
5362 * stack.h (iterate_over_block_locals)
5363 (iterate_over_block_local_vars): Update.
5364 * stack.c (print_frame_args): Update.
5365 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5366 parameter const.
5367 (get_selected_block): Make return type const.
5368 * python/py-frame.c (frapy_block): Update.
5369 * python/py-block.c (gdbpy_block_for_pc): Update.
5370 * p-exp.y (%union) <bval>: Now const.
5371 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5372 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5373 * m2-exp.y (%union) <bval>: Now const.
5374 * linespec.c (get_current_search_block): Make return type const.
5375 (create_sals_line_offset, find_label_symbols): Update.
5376 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5377 Update.
5378 (block_starting_point_at): Make "block" const.
5379 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5380 (check_exception_resume): Update.
5381 * guile/scm-frame.c (gdbscm_frame_block): Update.
5382 * guile/scm-block.c (gdbscm_lookup_block): Update.
5383 * frame.h (get_frame_block): Update.
5384 (get_selected_block): Make return type const.
5385 * frame.c (frame_id_inner): Update.
5386 * f-valprint.c (info_common_command_for_block)
5387 (info_common_command): Update.
5388 * dwarf2loc.c (dwarf2_find_location_expression)
5389 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5390 (locexpr_describe_location_piece): Update.
5391 * c-exp.y (%union) <bval>: Now const.
5392 * breakpoint.c (resolve_sal_pc): Update.
5393 * blockframe.c (get_frame_block):Make return type const.
5394 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5395 (block_innermost_frame): Update.
5396 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5397 (block_for_pc, block_for_pc_sect): Update.
5398 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5399 'pblock' const.
5400 (block_for_pc_sect, block_for_pc): Make return type const.
5401 * ax-gdb.c (gen_expr): Update.
5402 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5403 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5404 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5405 (ada_read_var_value): Update.
5406 * ada-exp.y (struct name_info) <block>: Now const.
5407 (%union): Likewise.
5408 (block_lookup): Constify.
5409
b9228891
GB
54102014-06-18 Gary Benson <gbenson@redhat.com>
5411
5412 * nat/i386-dregs.h: New file.
5413 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5414 * i386-nat.h (i386-dregs.h): New include.
5415 (DR_FIRSTADDR): Now in i386-dregs.h.
5416 (DR_LASTADDR): Likewise.
5417 (DR_NADDR): Likewise.
5418 (DR_STATUS): Likewise.
5419 (DR_CONTROL): Likewise.
5420 (i386_debug_reg_state): Likewise.
5421 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5422
a1aa2221
LM
54232014-06-18 Don Breazeal <donb@codesourcery.com>
5424
5425 * breakpoint.c (set_longjmp_breakpoint): Call
5426 momentary_breakpoint_from_master with additional argument.
5427 (set_longjmp_breakpoint_for_call_dummy): Call
5428 momentary_breakpoint_from_master with additional argument.
5429 (set_std_terminate_breakpoint): Call
5430 momentary_breakpoint_from_master with additional argument.
5431 (momentary_breakpoint_from_master): Add argument to function
5432 definition and use it to initialize structure member flag.
74228e77 5433 (clone_momentary_breakpoint): Call
a1aa2221
LM
5434 momentary_breakpoint_from_master with additional argument.
5435 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5436 member flags set in momentary_breakpoint_from_master.
5437
4be83cc2
GB
54382014-06-18 Gary Benson <gbenson@redhat.com>
5439
5440 * i386-nat.c (i386_show_dr): Renamed to
5441 i386_dr_show and made nonstatic. All uses updated.
5442 (i386_length_and_rw_bits): Renamed to
5443 i386_dr_length_and_rw_bits and made nonstatic.
5444 All uses updated.
5445 (i386_insert_aligned_watchpoint): Renamed to
5446 i386_dr_insert_aligned_watchpoint and made nonstatic.
5447 All uses updated.
5448 (i386_remove_aligned_watchpoint): Renamed to
5449 i386_dr_remove_aligned_watchpoint and made nonstatic.
5450 All uses updated.
5451 (i386_update_inferior_debug_regs): Renamed to
5452 i386_dr_update_inferior_debug_regs and made nonstatic.
5453 All uses updated.
5454
131aa0d4
GB
54552014-06-18 Gary Benson <gbenson@redhat.com>
5456
5457 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5458 (i386_dr_low_can_set_control): Likewise.
5459 (i386_dr_low_set_addr): Likewise.
5460 (i386_dr_low_set_control): Likewise.
5461 (i386_dr_low_get_addr): Likewise.
5462 (i386_dr_low_get_status): Likewise.
5463 (i386_dr_low_get_control): Likewise.
5464 (i386_insert_aligned_watchpoint): Use new macros.
5465 (i386_update_inferior_debug_regs): Likewise.
5466 (i386_stopped_data_address): Likewise.
5467
d9305f7f
GB
54682014-06-18 Gary Benson <gbenson@redhat.com>
5469
5470 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5471 New parameter. All uses updated.
5472
ea008da4
GB
54732014-06-18 Gary Benson <gbenson@redhat.com>
5474
5475 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5476 All uses updated.
5477
1b6d4134
GB
54782014-06-18 Gary Benson <gbenson@redhat.com>
5479
5480 * i386-nat.c (debug_printf): New macro.
5481 (i386_get_debug_register_length): Likewise.
5482 (TARGET_HAS_DR_LEN_8): Use above macro.
5483 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5484 and printf_unfiltered. Use phex to format values.
5485
9b4550ef
GB
54862014-06-18 Gary Benson <gbenson@redhat.com>
5487
5488 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5489 Make const.
5490
6e62758f
GB
54912014-06-18 Gary Benson <gbenson@redhat.com>
5492
5493 * i386-nat.c: Comment changes.
5494
51c79e94
GB
54952014-06-18 Gary Benson <gbenson@redhat.com>
5496
5497 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5498
3e11889a
GB
54992014-06-18 Gary Benson <gbenson@redhat.com>
5500
5501 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5502 (i386_insert_aligned_watchpoint): Likewise.
5503 (i386_remove_aligned_watchpoint): Likewise.
5504 (i386_handle_nonaligned_watchpoint): Likewise.
5505
fc6e2f03
GB
55062014-06-18 Gary Benson <gbenson@redhat.com>
5507
5508 * i386-nat.c: Whitespace changes.
5509
2afe7d50
SB
55102014-06-17 Samuel Bronson <naesten@gmail.com>
5511
5512 * MAINTAINERS: Update Roland McGrath's email address.
5513 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5514 Red Hat a while ago, and giving me a current address.
2afe7d50 5515
3bca49ee
TT
55162014-06-17 Tom Tromey <tromey@redhat.com>
5517
5518 * utils.h (savestring): Remove declaration.
5519
6e366df1
TT
55202014-06-17 Tom Tromey <tromey@redhat.com>
5521
5522 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5523
6be47f0c
KS
55242014-06-16 Keith Seitz <keiths@redhat.com>
5525
5526 PR mi/15863
5527 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5528 to update the varobj if inferior_ptid is null_ptid.
5529
7bc112c1
TT
55302014-06-16 Tom Tromey <tromey@redhat.com>
5531
5532 * target.h (struct target_ops) <to_info_proc>: Make parameter
5533 const.
5534 (target_info_proc): Update.
5535 * target.c (target_info_proc): Make "args" const.
5536 * procfs.c (procfs_info_proc): Update.
5537 * linux-tdep.c (linux_info_proc): Update.
5538 (linux_core_info_proc_mappings): Make "args" const.
5539 (linux_core_info_proc): Update.
5540 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5541 * gdbarch.c: Rebuild.
5542 * gdbarch.h: Rebuild.
5543 * corelow.c (core_info_proc): Update.
5544
fee354ee
TT
55452014-06-16 Tom Tromey <tromey@redhat.com>
5546
5547 * target.h (struct target_ops) <to_disconnect>: Make parameter
5548 const.
5549 (target_disconnect): Update.
5550 * target.c (target_disconnect): Make "args" const.
5551 * target-delegates.c: Rebuild.
5552 * remote.c (remote_disconnect): Update.
5553 * record.h (record_disconnect): Update.
5554 * record.c (record_disconnect): Update.
5555 * inf-child.c (inf_child_disconnect): Update.
5556
a30bf1f1
TT
55572014-06-16 Tom Tromey <tromey@redhat.com>
5558
5559 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5560 * target.c (debug_to_rcmd, default_rcmd): Update.
5561 * target-delegates.c: Rebuild.
5562 * remote.c (remote_rcmd): Update.
5563 * monitor.c (monitor_rcmd): Update.
5564
d03de421
PA
55652014-06-16 Pedro Alves <palves@redhat.com>
5566
5567 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5568 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5569 have OBJF_SHARED set.
5570 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5571 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5572 instead of OBJF_USERLOADED.
5573 * objfiles.h (OBJF_SHARED): Update comment.
5574 (userloaded_objfile_contains_address_p): Rename to ...
5575 (shared_objfile_contains_address_p): ... this, and update
5576 comments.
5577 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5578 new objfile.
5579 (remove_symbol_file_command): Skip objfiles that don't have
5580 OBJF_SHARED set.
5581
99f4262f
TT
55822014-06-16 Tom Tromey <tromey@redhat.com>
5583
5584 * minsyms.h (prim_record_minimal_symbol)
5585 (prim_record_minimal_symbol_and_info): Update comments.
5586
97d66cc6
EZ
55872014-06-14 Eli Zaretskii <eliz@gnu.org>
5588
5589 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5590 or --without-guile, according to how GDB was built.
5591
635c7e8a
TT
55922014-06-13 Tom Tromey <tromey@redhat.com>
5593
5594 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5595 to help_list.
5596 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5597 to help_list.
5598 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5599 help_list.
5600 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5601 help_list.Pass all_commands, not -1, to help_list.
5602 * cli/cli-dump.c (dump_command, append_command)
5603 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5604 (binary_dump_command, binary_append_command): Pass all_commands,
5605 not -1, to help_list.
5606 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5607 -1, to help_list.
5608 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5609 -1, to help_list.
5610 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5611 help_list.
5612 * top.c (set_history): Pass all_commands, not -1, to help_list.
5613 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5614 all_commands, not -1, to help_list.
5615 * symfile.c (overlay_command): Pass all_commands, not -1, to
5616 help_list.
5617 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5618 help_list.
5619 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5620 help_list.
5621 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5622 -1, to help_list.
5623 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5624 not -1, to help_list.
5625 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5626 not -1, to help_list.
5627 * maint.c (maintenance_command, maintenance_info_command)
5628 (maintenance_print_command, maintenance_set_cmd): Pass
5629 all_commands, not -1, to help_list.
5630 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5631 help_list.
5632 * language.c (set_check): Pass all_commands, not -1, to help_list.
5633 * infcmd.c (unset_command): Pass all_commands, not -1, to
5634 help_list.
5635 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5636 help_list.
5637 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5638 help_list.
5639 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5640 help_list.
5641 * breakpoint.c (save_command): Pass all_commands, not -1, to
5642 help_list.
5643 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5644 all_commands, not -1, to help_list.
5645
b94ade42
PL
56462014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5647
5648 * regcache.c (struct register_to_invalidate): New structure.
5649 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5650 functions.
5651 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5652
31f628ae
YQ
56532014-06-12 Yao Qi <yao@codesourcery.com>
5654
5655 * varobj.c (varobj_get_num_children): Call
5656 varobj_is_dynamic_p.
5657 (varobj_list_children): Likewise.
5658 (varobj_update): Likewise. Update comments.
5659
cde5ef40
YQ
56602014-06-12 Yao Qi <yao@codesourcery.com>
5661
5662 * varobj.c (varobj_pretty_printed_p): Rename to ...
5663 (varobj_is_dynamic_p): ... this. New function.
5664 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5665 (varobj_is_dynamic_p): Declare.
5666 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5667 (mi_print_value_p, varobj_update_one): Likewise.
5668
576ea091
YQ
56692014-06-12 Pedro Alves <pedro@codesourcery.com>
5670 Yao Qi <yao@codesourcery.com>
5671
5672 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5673 (varobj_get_iterator): Wrap up code for pretty-printer by
5674 "#if HAVE_PYTHON" and "#endif".
5675 (update_dynamic_varobj_children): Likewise.
5676
827f100c
YQ
56772014-06-12 Pedro Alves <pedro@codesourcery.com>
5678 Yao Qi <yao@codesourcery.com>
5679
5680 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5681 gdb_python_initialized is false. Move some code from varobj.c.
5682 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5683 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5684 (struct varobj_item): Moved to varobj-iter.h".
5685 (varobj_clear_saved_item): New function.
5686 (update_dynamic_varobj_children): Move python-related code to
5687 py-varobj.c.
5688 (free_variable): Call varobj_clear_saved_item and
5689 varobj_iter_delete.
5690
e5250216
YQ
56912014-06-12 Pedro Alves <pedro@codesourcery.com>
5692 Yao Qi <yao@codesourcery.com>
5693
5694 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5695 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5696 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5697 (py-varobj.o): New rule.
5698 * python/py-varobj.c: New file.
5699 * python/python-internal.h (py_varobj_get_iterator): Declare.
5700 * varobj-iter.h: New file.
5701 * varobj.c: Include "varobj-iter.h"
5702 (struct varobj) <child_iter>: Change its type from "PyObject *"
5703 to "struct varobj_iter *".
5704 <saved_item>: Likewise.
5705 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5706 [HAVE_PYTHON] (varobj_get_iterator): New function.
5707 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5708 python-specific code to python/py-varobj.c.
5709 (install_visualizer): Call varobj_iter_delete instead of
5710 Py_XDECREF.
5711 * varobj.h (varobj_ensure_python_env): Declare.
5712
5a2e0d6e
YQ
57132014-06-12 Yao Qi <yao@codesourcery.com>
5714
5715 * varobj.c (struct varobj_item): New structure.
5716 (create_child_with_value): Update declaration.
5717 (varobj_add_child): Replace arguments 'name' and 'value' with
5718 'item'. All callers updated.
5719 (install_dynamic_child): Likewise.
5720 (update_dynamic_varobj_children): Likewise.
5721 (varobj_add_child): Likewise.
5722 (create_child_with_value): Likewise.
5723
919b9a93
JB
57242014-06-11 Joel Brobecker <brobecker@adacore.com>
5725
5726 * NEWS: Create a new section for the next release branch.
5727 Rename the section of the current branch, now that it has
5728 been cut.
5729
71a55bdf
JB
57302014-06-11 Joel Brobecker <brobecker@adacore.com>
5731
5732 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5733 * version.in: Bump version to 7.8.50.DATE-cvs.
5734
364fe1f7
PA
57352014-06-11 Pedro Alves <palves@redhat.com>
5736
5737 PR remote/17028
5738 * ser-mingw.c (net_windows_socket_check_pending): New function.
5739 (net_windows_select_thread): Ignore spurious wakeups. Use
5740 net_windows_socket_check_pending.
5741 (net_windows_wait_handle): Check for pending events with
5742 ioctlsocket, through net_windows_socket_check_pending, instead of
5743 checking the socket's event.
5744
5a6c7709
SC
57452014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5746
5747 * python/python-internal.h (gdb_PyObject_GetAttrString)
5748 (gdb_PyObject_HasAttrString): New inline function definitions.
5749 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5750 char * of the second argument to PyObject_GetAttrString.
74228e77 5751
0e58ee40
JB
57522014-06-10 Joel Brobecker <brobecker@adacore.com>
5753
5754 * serial.c (serial_write): Fix index of character to be printed
5755 in call to serial_logchar when serial debug traces are enabled.
5756
d190df30
JB
57572014-06-10 Joel Brobecker <brobecker@adacore.com>
5758
5759 * gdbtypes (resolve_dynamic_range): Add function description.
5760
b4b01d36
PA
57612014-06-09 Pedro Alves <palves@redhat.com>
5762
5763 * linux-nat.c (linux_child_follow_fork): Initialize status with
5764 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5765 inner block. Only pass the signal to PTRACE_DETACH if in pass
5766 state.
5767
3657956b
GB
57682014-06-09 Gary Benson <gbenson@redhat.com>
5769
5770 * common/signals.c (gdb_signal_from_host): Reorder to separate
5771 the always-available ANSI-standard signals from the signals that
5772 require checking.
5773 (do_gdb_signal_to_host): Likewise.
5774 * proc-events.c (signal_table): Likewise.
5775
c077881a
HZ
57762014-06-08 Hui Zhu <hui@codesourcery.com>
5777
5778 * common/linux-ptrace.c (linux_disable_event_reporting): New
5779 function.
5780 * common/linux-ptrace.h (linux_disable_event_reporting): New
5781 declaration.
5782 * linux-nat.c (linux_child_follow_fork): Do a single step before
5783 detach.
5784
4186eb54
KS
57852014-06-07 Keith Seitz <keiths@redhat.com>
5786
5787 Revert:
5788 PR c++/16253
5789 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5790 from symbol_matches_domain in symtab.c. All local callers
5791 of symbol_matches_domain updated.
5792 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5793 search STRUCT_DOMAIN.
5794 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5795 independently. standard_lookup will do that automatically.
5796 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5797 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5798 (cp_lookup_symbol_in_namespace): Likewise.
5799 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5800 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5801 may return a STRUCT_DOMAIN match.
5802 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5803 * cp-support.c: Include language.h.
5804 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5805 VAR_DOMAIN.
5806 * psymtab.c (match_partial_symbol): Compare the requested
5807 domain with the symbol's domain directly.
5808 (lookup_partial_symbol): Likewise.
5809 * symtab.c (lookup_symbol_in_language): Explain when/why
5810 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5811 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5812 appropriate languages.
5813 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5814 and moved to ada-lang.c
5815 (lookup_block_symbol): Explain that this function only returns
5816 symbol matching the requested DOMAIN.
5817 Compare the requested domain with the symbol's domain directly.
5818 (iterate_over_symbols): Compare the requested domain with the
5819 symbol's domain directly.
5820 * symtab.h (symbol_matches_domain): Remove.
5821
25326a28 58222014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5823
5824 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5825 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5826 (gdbscm_guile_version_is_at_least): Declare.
5827 (gdbscm_scm_string_to_int): Declare.
5828 * guile/guile.c (gdbscm_guile_major_version): New global.
5829 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5830 (guile_datadir): New static global.
5831 (gdbscm_guile_data_directory): New function.
5832 (initialize_scheme_side): Update.
5833 (misc_guile_functions): Add guile-data-directory.
5834 (initialize_gdb_module): Fetch guile version number.
5835 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5836 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5837 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5838 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5839 comments.
5840 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5841 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5842 * guile/scm-value.c (gdbscm_value_to_string): Only call
5843 scm_port_conversion_strategy if Guile version >= 2.0.6.
5844
0a770bb2 58452014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5846
5847 * main.c (print_gdb_help): Add -q and --silent.
5848
73ba372c
GB
58492014-06-06 Gary Benson <gbenson@redhat.com>
5850
5851 * common/signals.c: Remove preprocessor conditionals for
5852 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5853 SIGSEGV and SIGTERM.
5854 * proc-events.c: Likewise.
5855
c33b2f12
MM
58562014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5857
5858 * symfile.c (symfile_free_objfile): Remove restriction to
5859 OBJF_USERLOADED.
5860 * symfile-mem.c (symbol_file_add_from_memory): Call
5861 add_target_sections_of_objfile.
5862
fb934770
LC
58632014-06-05 Ludovic Courtès <ludo@gnu.org>
5864
5865 * guile/scm-value.c (gdbscm_history_append_x): Use
5866 'vlscm_get_value_smob_arg_unsafe' instead of
5867 'vlscm_scm_to_value'.
5868
6ef284bd
SM
58692014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5870
5871 PR mi/15806
5872 * utils.c (printchar): Don't escape at all if quoter is NUL.
5873 Update function documentation to clarify effect of parameter
5874 QUOTER.
5875 * remote.c (escape_buffer): Pass '\\' as the quoter to
5876 fputstrn_unfiltered.
5877 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5878 generate the output.
5879 (mi_solib_unloaded): Same.
5880
270c9937
JB
58812014-06-05 Joel Brobecker <brobecker@adacore.com>
5882
5883 * development.sh: Delete.
5884 * Makefile.in (config.status): Adjust dependency on development.sh.
5885 * configure.ac: Adjust development.sh source call.
5886 * configure: Regenerate.
5887
16f691fb
DE
58882014-06-04 Doug Evans <xdje42@gmail.com>
5889
5890 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5891 is_scheme_bkpt, spec.
5892 (bpscm_make_breakpoint_smob): Initialize new members.
5893 (gdbscm_create_breakpoint_x): Split into two ...
5894 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5895 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5896 (scheme_function breakpoint_functions): Update.
5897 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5898 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5899 register-breakpoint!.
5900
ef7cab6b
JB
59012014-06-04 Joel Brobecker <brobecker@adacorer.com>
5902
5903 PR server/17023
5904 * mem-break.c (z_type_supported): Return zero if
5905 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5906
012370f6
TT
59072014-06-04 Tom Tromey <tromey@redhat.com>
5908
5909 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5910 value_from_contents_and_address_unresolved.
5911 (ada_template_to_fixed_record_type_1): Likewise.
5912 (ada_which_variant_applies): Likewise.
5913 * value.h (value_from_contents_and_address_unresolved): Declare.
5914 * value.c (value_from_contents_and_address_unresolved): New
5915 function.
5916 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5917 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5918 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5919
92e2a17f
TT
59202014-06-04 Tom Tromey <tromey@redhat.com>
5921
5922 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5923
c0939df1
TT
59242014-06-04 Tom Tromey <tromey@redhat.com>
5925
5926 * procfs.c (procfs_attach): Make "args" const.
5927 * windows-nat.c (windows_attach): Make "args" const.
5928 * nto-procfs.c (procfs_attach): Make "args" const.
5929 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5930 * go32-nat.c (go32_attach): Make "args" const.
5931 * gnu-nat.c (gnu_attach): Make "args" const.
5932 * darwin-nat.c (darwin_attach): Make "args" const.
5933 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5934 * linux-nat.c (linux_nat_attach): Make "args" const.
5935 * remote.c (extended_remote_attach_1, extended_remote_attach):
5936 Make "args" const.
5937 * target.h (struct target_ops) <to_attach>: Make "args" const.
5938 (find_default_attach): Likewise.
5939 * utils.c (parse_pid_to_attach): Make "args" const.
5940 * utils.h (parse_pid_to_attach): Update.
5941
8eaff7cd
TT
59422014-06-04 Tom Tromey <tromey@redhat.com>
5943
5944 * target-delegates.c: Rebuild.
5945 * target.c (default_thread_address_space): New function.
5946 (target_thread_address_space): Simplify.
5947 * target.h (struct target_ops) <to_thread_address_space>: Add
5948 TARGET_DEFAULT_FUNC.
5949
1913f160
DE
59502014-06-04 Doug Evans <xdje42@gmail.com>
5951
5952 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5953
70ad5bff
MM
59542014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5955
5956 * record-btrace.c: Include event-loop.h and inf-loop.h.
5957 (record_btrace_resume_exec_dir)
5958 (record_btrace_async_inferior_event_handler)
5959 (record_btrace_handle_async_inferior_event): New.
5960 (record_btrace_open): Create async event handler.
5961 (record_btrace_close): Delete async event handler.
5962 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5963 Mark async event handler.
5964 (record_btrace_execution_direction): New.
5965 (init_record_btrace_ops): Initialize to_execution_direction.
5966
b6210538
DE
59672014-06-03 Doug Evans <xdje42@gmail.com>
5968
5969 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5970 (gdbscm_make_parameter): Ditto.
5971
a5b1fd27
DE
59722014-06-03 Doug Evans <dje@google.com>
5973
5974 * exec.c (exec_close_1): Call clear_section_table instead of
5975 resize_section_table.
5976 (clear_section_table): New function.
5977 (resize_section_table): Make static. Rename arg num_added to
5978 adjustment.
5979 * exec.h (clear_section_table): Declare.
5980 (resize_section_table): Delete.
5981 * progspace.c (release_program_space): Call clear_section_table
5982 instead of resize_section_table.
5983
0c6e92a5
SC
59842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5985
5986 * NEWS (Python Scripting): Add entry about the new xmethods
5987 feature.
5988
883964a7
SC
59892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5990
5991 * python/py-xmethods.c: New file.
5992 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5993 (objfpy_dealloc): XDECREF on the new xmethods field.
5994 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5995 field.
5996 (objfpy_get_xmethods): New function.
5997 (objfile_getset): New entry 'xmethods'.
5998 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5999 (pspy_dealloc): XDECREF on the new xmethods field.
6000 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6001 field.
6002 (pspy_get_xmethods): New function.
6003 (pspace_getset): New entry 'xmethods'.
6004 * python/python-internal.h: Add declarations for new functions.
6005 * python/python.c (_initialize_python): Invoke
6006 gdbpy_initialize_xmethods.
6007 * python/lib/gdb/__init__.py (xmethods): New
6008 attribute.
6009 * python/lib/gdb/xmethod.py: New file.
6010 * python/lib/gdb/command/xmethods.py: New file.
6011
58992dc5
SC
60122014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6013
6014 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6015 best match method returned by find_overload_match is an xmethod.
6016 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6017 the best matching operator returned by find_overload_match is an
6018 xmethod.
6019 * valops.c: #include "extension.h".
6020 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6021 Return void. The list of matching source methods is returned in
6022 "fn_list" and a vector of matching debug method workers is
6023 returned in "xm_worker_vec". Update all callers.
6024 (value_find_oload_method_list): Likewise.
6025 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6026 non-NULL, then the index of the best matching method in this
6027 vector is returned. Update all callers.
6028 (find_overload_match): Include xmethods while performing overload
6029 resolution.
6030
e81e7f5e
SC
60312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6032
6033 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6034 * extension-priv.h (struct extension_language_ops): Add the
6035 xmethod interface.
6036 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6037 get_matching_xmethod_workers, get_xmethod_argtypes,
6038 invoke_xmethod, free_xmethod_worker,
6039 free_xmethod_worker_vec): New functions.
6040 * extension.h: #include "common/vec.h".
6041 New function declarations.
6042 (struct xmethod_worker): New struct.
6043 (VEC (xmethod_worker_ptr)): New vector type.
6044 (xmethod_worker_ptr): New typedef.
6045 (xmethod_worker_vec): Likewise.
6046 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6047 builtin_type.
6048 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6049 (struct builtin_type): New field "xmethod".
6050 * valarith.c (value_ptradd): Assert that the value argument is not
6051 lval_xcallable.
6052 * valops.c (value_must_coerce_to_target): Return 0 for
6053 lval_xcallable values.
6054 * value.c (struct value): New field XM_WORKER in the field
6055 LOCATION.
6056 (value_address, value_raw_address): Return 0 for lval_xcallable
6057 values.
6058 (set_value_address): Assert that the value is not an
6059 lval_xcallable.
6060 (value_free): Free the associated xmethod worker when freeing
6061 lval_xcallable values.
6062 (set_value_component_location): Assert that the WHOLE value is not
6063 lval_xcallable.
6064 (value_of_xmethod, call_xmethod): New functions.
6065 * value.h: Declare "struct xmethod_worker".
6066 Declare new functions value_of_xmethod, call_xmethod.
6067
ef370185
JB
60682014-06-03 Joel Brobecker <brobecker@adacore.com>
6069 Pedro Alves <palves@redhat.com>
6070
6071 PR breakpoints/17000
6072 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6073 New function, extracted from software_breakpoint_inserted_here_p.
6074 (software_breakpoint_inserted_here_p): Replace factored out code
6075 by call to find_non_raw_software_breakpoint_inserted_here.
6076 (bp_target_info_copy_insertion_state): New function.
6077 (bkpt_insert_location): Handle the case of a single-step
6078 breakpoint already inserted at the same address.
6079 (bkpt_remove_location): Handle the case of a single-step
6080 breakpoint still inserted at the same address.
6081 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6082 breakpoint already inserted at the same address.
6083 (deprecated_remove_raw_breakpoint): Handle the case of a
6084 non-raw breakpoint still inserted at the same address.
6085 (find_single_step_breakpoint): New function, extracted from
6086 single_step_breakpoint_inserted_here_p.
6087 (find_single_step_breakpoint): New function,
6088 factored out from single_step_breakpoint_inserted_here_p.
6089 (single_step_breakpoint_inserted_here_p): Reimplement.
6090
1e2ccb61
BM
60912014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6092
6093 Pushed by Joel Brobecker <brobecker@adacore.com>
6094 * source.c (show_substitute_path_command): Fix display of matching
6095 substitution rules.
6096
d3448d85
GB
60972014-06-03 Gary Benson <gbenson@redhat.com>
6098
6099 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6100
06eb1586
DE
61012014-06-02 Doug Evans <xdje42@gmail.com>
6102
6103 Add parameter support for Guile.
6104 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6105 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6106 (scm-param.o): New rule.
6107 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6108 (gdbscm_misc_error): Declare.
6109 (gdbscm_canonicalize_command_name): Declare.
6110 (gdbscm_scm_to_host_string): Declare.
6111 (gdbscm_scm_from_host_string): Declare.
6112 (gdbscm_initialize_parameters): Declare.
6113 * guile/guile.c (initialize_gdb_module): Call
6114 gdbscm_initialize_parameters.
6115 * guile/lib/gdb.scm: Export parameter symbols.
6116 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6117 cmdscm_canonicalize_name and made public. All callers updated.
6118 * guile/scm-exception.c (gdbscm_misc_error): New function.
6119 * guile/scm-param.c: New file.
6120 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6121 (gdbscm_scm_to_host_string): New function.
6122 (gdbscm_scm_from_host_string): New function.
6123 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6124
e698b8c4
DE
61252014-06-02 Doug Evans <xdje42@gmail.com>
6126
6127 Add command support for Guile.
6128 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6129 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6130 (scm-cmd.o): New rule.
6131 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6132 (gdbscm_user_error_p): Declare.
6133 (gdbscm_parse_command_name): Declare.
6134 (gdbscm_valid_command_class_p): Declare.
6135 (gdbscm_initialize_commands): Declare.
6136 * guile/guile.c (initialize_gdb_module): Call
6137 gdbscm_initialize_commands.
6138 * guile/lib/gdb.scm: Export command symbols.
6139 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6140 (throw-user-error): New function.
6141 * guile/scm-cmd.c: New file.
6142 * guile/scm-exception.c (user_error_symbol): New static global.
6143 (gdbscm_user_error_p): New function.
6144 (gdbscm_initialize_exceptions): Set user_error_symbol.
6145 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6146
fb1f94b0
PM
61472014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6148
6149 * top.c (command_loop): Handle comments here...
6150 (command_line_input): ... not here.
6151
ded03782
DE
61522014-06-02 Doug Evans <xdje42@gmail.com>
6153
6154 Add progspace support for Guile.
6155 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6156 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6157 (scm-progspace.o): New rule.
6158 * guile/guile-internal.h (pspace_smob): New typedef.
6159 (psscm_pspace_smob_pretty_printers): Declare.
6160 (psscm_pspace_smob_from_pspace): Declare.
6161 (psscm_scm_from_pspace): Declare.
6162 * guile/guile.c (initialize_gdb_module): Call
6163 gdbscm_initialize_pspaces.
6164 * guile/lib/gdb.scm: Export progspace symbols.
6165 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6166 support.
6167 (append-pretty-printer!): Ditto.
6168 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6169 Implement.
6170 * guile/scm-progspace.c: New file.
6171
397998fc
AM
61722014-06-03 Alan Modra <amodra@gmail.com>
6173
6174 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6175 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6176
6aa5f3a6
DE
61772014-06-02 Doug Evans <dje@google.com>
6178
6179 Add support for skeletonless type units.
6180 * dwarf2read.c (struct dwarf2_per_objfile): New member
6181 n_allocated_type_units.
6182 (struct dwarf2_per_objfile) <tu_stats>: New member
6183 nr_all_type_units_reallocs.
6184 (create_signatured_type_table_from_index): Initialize
6185 n_allocated_type_units
6186 (create_all_type_units): Ditto.
6187 (add_type_unit): Move up in file. New arg slot.
6188 All callers updated. Increase space for all_type_units more
6189 efficiently.
6190 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6191 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6192 (lookup_dwp_signatured_type): Ditto.
6193 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6194 All callers updated.
6195 (build_type_psymtabs_1): Leave type_unit_groups as
6196 NULL if no TUs present.
6197 (print_tu_stats): New function.
6198 (process_skeletonless_type_unit): New function.
6199 (process_dwo_file_for_skeletonless_type_units): New
6200 function.
6201 (process_skeletonless_type_units): New function.
6202 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6203 Call print tu_stats if debugging enabled.
6204
41fac0cf
PA
62052014-06-02 Pedro Alves <palves@redhat.com>
6206
6207 * breakpoint.c (build_target_command_list): Don't build a command
6208 list if we have any duplicate location that isn't a dprintf.
6209
cd1608cc
PA
62102014-06-02 Pedro Alves <palves@redhat.com>
6211
6212 * breakpoint.c (dprintf_breakpoint_hit): New function.
6213 (initialize_breakpoint_ops): Install it as dprintf's
6214 breakpoint_hit method.
6215
486ef3b9
JB
62162014-06-02 Joel Brobecker <brobecker@adacore.com>
6217
6218 * source.c (substitute_path_rule_matches): Simplify using
6219 filename_ncmp instead of FILENAME_CMP.
6220
230cd560
JB
62212014-06-02 Joel Brobecker <brobecker@adacore.com>
6222
6223 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6224
16954d5d
LC
62252014-06-01 Ludovic Courtès <ludo@gnu.org>
6226
6227 * configure.ac: When Guile is available, check for the
6228 availability of 'scm_new_smob'.
6229 * configure, config.h.in: Regenerate.
6230 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6231 function.
6232
53e8a631
AB
62332014-05-30 Andrew Burgess <aburgess@broadcom.com>
6234
6235 * frame.c (struct frame_info): Add stop_string field.
6236 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6237 (get_prev_frame_always): Old content moved into
6238 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6239 TRY_CATCH, handle MEMORY_ERROR exceptions.
6240 (frame_stop_reason_string): New function definition.
6241 * frame.h (unwind_stop_reason_to_string): Extend comment to
6242 mention frame_stop_reason_string.
6243 (frame_stop_reason_string): New function declaration.
6244 * stack.c (frame_info): Switch to frame_stop_reason_string.
6245 (backtrace_command_1): Switch to frame_stop_reason_string.
6246 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6247 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6248 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6249
70e38b8e
AB
62502014-05-30 Andrew Burgess <aburgess@broadcom.com>
6251
6252 * frame.c (frame_stop_reason_string): Rename to ...
6253 (unwind_stop_reason_to_string): this.
6254 * frame.h (frame_stop_reason_string): Rename to ...
6255 (unwind_stop_reason_to_string): this.
6256 * stack.c (frame_info): Update call to frame_stop_reason_string.
6257 (backtrace_command_1): Likewise.
6258 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6259 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6260
938f0e2f
AB
62612014-05-30 Andrew Burgess <aburgess@broadcom.com>
6262
6263 * frame.c (remove_prev_frame): New function.
6264 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6265 remove_prev_frame.
6266
a09dd441
PA
62672014-05-29 Pedro Alves <palves@redhat.com>
6268
6269 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6270 and make it const. When a single-step decays to a continue,
6271 clear 'step', not 'hw_step'. Pass whether the caller wanted
6272 to step to user_visible_resume_ptid, not what we ask the
6273 target to do.
6274
bdc36728
PA
62752014-05-29 Pedro Alves <palves@redhat.com>
6276
6277 * infrun.c (process_event_stop_test, handle_step_into_function)
6278 (handle_step_into_function_backward): Adjust.
6279 Don't set the even thread's stop_step and call stop_waiting before
6280 calling end_stepping_range. Instead do that ...
6281 (end_stepping_range): ... here. Take an ecs pointer parameter.
6282
22bcd14b
PA
62832014-05-29 Pedro Alves <palves@redhat.com>
6284
6285 * infrun.c (stop_stepping): Rename to ...
6286 (stop_waiting): ... this.
6287 (proceed): Update comment.
6288 (process_event_stop_test, handle_inferior_event)
6289 (handle_signal_stop, handle_step_into_function)
6290 (handle_step_into_function_backward): Update.
6291
4ae57c05
PA
62922014-05-29 Pedro Alves <palves@redhat.com>
6293
6294 * infcall.c (run_inferior_call): Don't check whether the current
6295 thread is running after the proceed call.
6296
329ea579
PA
62972014-05-29 Pedro Alves <palves@redhat.com>
6298 Tom Tromey <tromey@redhat.com>
6299
6300 * NEWS: Mention "maint set target-async", "set mi-async", and that
6301 background execution commands are now always available.
6302 * target.h (target_async_permitted): Update comment.
6303 * target.c (target_async_permitted, target_async_permitted_1):
6304 Default to 1.
6305 (set_target_async_command): Rename to ...
6306 (maint_set_target_async_command): ... this.
6307 (show_target_async_command): Rename to ...
6308 (maint_show_target_async_command): ... this.
6309 (_initialize_target): Adjust.
6310 * infcmd.c (prepare_execution_command): Make extern.
6311 * inferior.h (prepare_execution_command): Declare.
6312 * infrun.c (set_observer_mode): Leave target async alone.
6313 * mi/mi-interp.c (mi_interpreter_init): Install
6314 mi_on_sync_execution_done as sync_execution_done observer.
6315 (mi_on_sync_execution_done): New function.
6316 (mi_execute_command_input_handler): Don't print the prompt if we
6317 just started a synchronous command with an async target.
6318 (mi_on_resume): Check sync_execution before printing prompt.
6319 * mi/mi-main.h (mi_async_p): Declare.
6320 * mi/mi-main.c: Include gdbcmd.h.
6321 (mi_async_p): New function.
6322 (mi_async, mi_async_1): New globals.
6323 (set_mi_async_command, show_mi_async_command, mi_async): New
6324 functions.
6325 (exec_continue): Call prepare_execution_command.
6326 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6327 (mi_execute_async_cli_command): Use mi_async_p.
6328 (_initialize_mi_main): Install "set mi-async". Make
6329 "target-async" a deprecated alias.
6330
92bcb5f9
PA
63312014-05-29 Pedro Alves <palves@redhat.com>
6332
6333 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6334 (_initialize_cli_interp): Adjust.
6335 * event-loop.c: Include "observer.h".
6336 (start_event_loop): Notify 'command_error' observers instead of
6337 calling display_gdb_prompt. Remove FIXME comment.
6338 * event-top.c (display_gdb_prompt): Remove call into the
6339 interpreters.
6340 * inf-loop.c: Include "observer.h".
6341 (inferior_event_handler): Notify 'command_error' observers instead
6342 of calling display_gdb_prompt.
6343 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6344 observers instead of calling display_gdb_prompt.
6345 * interps.c (interp_set): Don't call display_gdb_prompt.
6346 (current_interp_display_prompt_p): Delete.
6347 * interps.h (interp_prompt_p): Delete declaration.
6348 (interp_prompt_p_ftype): Delete.
6349 (struct interp_procs) <prompt_proc_p>: Delete field.
6350 (current_interp_display_prompt_p): Delete declaration.
6351 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6352 (_initialize_mi_interp): Adjust.
6353 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6354 'command_error' observers.
6355 (tui_on_sync_execution_done, tui_on_command_error): New
6356 functions.
6357 (tui_display_prompt_p): Delete.
6358 (_initialize_tui_interp): Adjust.
6359
fd664c91
PA
63602014-05-29 Pedro Alves <palves@redhat.com>
6361
6362 PR gdb/13860
6363 * cli/cli-interp.c: Include infrun.h and observer.h.
6364 (cli_uiout, cli_interp): New globals.
6365 (cli_on_signal_received, cli_on_end_stepping_range)
6366 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6367 functions.
6368 (cli_interpreter_init): Install them as 'end_stepping_range',
6369 'signal_received' 'signal_exited', 'exited' and 'no_history'
6370 observers.
6371 (_initialize_cli_interp): Remove cli_interp local.
6372 * infrun.c (handle_inferior_event): Call the several stop reason
6373 observers instead of printing the stop reason directly.
6374 (end_stepping_range): New function.
6375 (print_end_stepping_range_reason, print_signal_exited_reason)
6376 (print_exited_reason, print_signal_received_reason)
6377 (print_no_history_reason): Make static, and add an uiout
6378 parameter. Print to that instead of to CURRENT_UIOUT.
6379 * infrun.h (print_end_stepping_range_reason)
6380 (print_signal_exited_reason, print_exited_reason)
6381 (print_signal_received_reason print_no_history_reason): New
6382 declarations.
6383 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6384 'mi_uiout'.
6385 <cli_uiout>: New field.
6386 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6387 uiout for CLI output. Install 'signal_received',
6388 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6389 observers.
6390 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6391 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6392 (mi_on_no_history): New functions.
6393 (ui_out_free_cleanup): Delete function.
6394 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6395 instead use the one already stored in the MI interpreter data.
6396 (mi_ui_out): Adjust.
6397 * tui/tui-interp.c: Include infrun.h and observer.h.
6398 (tui_interp): New global.
6399 (tui_on_signal_received, tui_on_end_stepping_range)
6400 (tui_on_signal_exited, tui_on_exited)
6401 (tui_on_no_history): New functions.
6402 (tui_init): Install them as 'end_stepping_range',
6403 'signal_received' 'signal_exited', 'exited' and 'no_history'
6404 observers.
6405 (_initialize_tui_interp): Delete tui_interp local.
6406
8817a6f2
PA
64072014-05-29 Pedro Alves <palves@redhat.com>
6408
6409 PR gdb/15713
6410 * linux-nat.c (linux_nat_resume_callback): Rename the second
6411 parameter to 'except'. Skip LP if it points to EXCEPT.
6412 (linux_nat_resume): Don't mark the event lwp as not stopped
6413 before resuming sibling lwps. Instead ask
6414 linux_nat_resume_callback to skip the event lwp. Mark it as not
6415 stopped after actually resuming it.
6416 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6417 resuming it.
6418 (wait_lwp): Mark the lwp as stopped here.
6419 (stop_wait_callback): Mark the lwp as not stopped right after
6420 resuming it. Don't mark lwps as stopped here.
6421 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6422 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6423
251bde03
PA
64242014-05-29 Pedro Alves <palves@redhat.com>
6425
6426 PR PR15693
6427 * infrun.c (resume): Determine how much to resume depending on
6428 whether the caller wanted a step, not whether we can hardware step
6429 the target. Mark all threads that we intend to run as running,
6430 unless we're calling an inferior function.
6431 (normal_stop): If the thread is running an infcall, don't finish
6432 thread state.
6433 * target.c (target_resume): Don't mark threads as running here.
6434
7f3c0343
JB
64352014-05-28 Joel Brobecker <brobecker@adacore.com>
6436
6437 * serial.c (_initialize_serial): Remove support for
6438 the "set remotebaud" and "show remotebaud" commands.
6439 * NEWS: Add entry documenting the removal of that command.
6440
ee34b3f9
YQ
64412014-05-28 Yao Qi <yao@codesourcery.com>
6442
6443 * charset.c: Fix typo in comments.
6444
add6c04d
GB
64452014-05-27 Gary Benson <gbenson@redhat.com>
6446
6447 * utils.c (internal_vproblem): Prompt for a bug report.
6448
92c48fc5
AW
64492014-05-26 Andy Wingo <wingo@igalia.com>
6450
6451 * guile/scm-arch.c (arscm_mark_arch_smob):
6452 * guile/scm-block.c (bkscm_mark_block_smob)
6453 (bkscm_mark_block_syms_progress_smob):
6454 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6455 * guile/scm-exception.c (exscm_mark_exception_smob):
6456 * guile/scm-frame.c (frscm_mark_frame_smob):
6457 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6458 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6459 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6460 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6461 (ppscm_mark_pretty_printer_worker_smob):
6462 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6463 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6464 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6465 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6466 mark functions.
6467 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6468 function.
6469
b2715b27
AW
64702014-05-26 Andy Wingo <wingo@igalia.com>
6471 Doug Evans <xdje42@gmail.com>
6472
6473 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6474 empty_base_class. All uses updated.
6475 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6476 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6477 Adapt all callers.
6478 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6479 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6480 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6481 (gdbscm_gsmob_has_property_p, add_property_name)
6482 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6483 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6484 (gdb-object-has-property?, gdb-object-properties): Remove.
6485 (gdb-object-kind): Renamed from gsmob-kind.
6486
214ab2da
AW
64872014-05-26 Andy Wingo <wingo@igalia.com>
6488
6489 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6490 * configure: Regenerate.
6491
589fdceb
MM
64922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6493
6494 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6495
67b5c0c1
MM
64962014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6497
6498 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6499 (replay_memory_access_read_only, replay_memory_access_read_write)
6500 (replay_memory_access_types, replay_memory_access)
6501 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6502 (cmd_set_record_btrace, cmd_show_record_btrace)
6503 (cmd_show_replay_memory_access): New.
6504 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6505 (record_btrace_remove_breakpoint): Replace
6506 record_btrace_allow_memory_access with replay_memory_access.
6507 (_initialize_record_btrace): Add commands.
6508 * NEWS: Announce it.
6509
036cd381
RR
65102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6511
6512 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6513
c77c1e42
RR
65142014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6515
6516 * MAINTAINERS (Write After Approval): Move self back from
6517 paper trail.
6518
45741a9c
PA
65192014-05-22 Pedro Alves <palves@redhat.com>
6520
6521 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6522 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6523 (disable_randomization, enum exec_direction_kind)
6524 (execution_direction, stop_registers, start_remote)
6525 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6526 (wait_for_inferior, normal_stop, get_last_target_status)
6527 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6528 (insert_step_resume_breakpoint_at_sal)
6529 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6530 (set_step_info, print_stop_event, signal_stop_state)
6531 (signal_print_state, signal_pass_state, signal_stop_update)
6532 (signal_print_update, signal_pass_update)
6533 (update_signals_program_target, clear_exit_convenience_vars)
6534 (displaced_step_dump_bytes, update_observer_mode)
6535 (signal_catch_update, gdb_signal_from_command): Move
6536 declarations ...
6537 * infrun.h: ... to this new file.
6538 * amd64-tdep.c: Include infrun.h.
6539 * annotate.c: Include infrun.h.
6540 * arch-utils.c: Include infrun.h.
6541 * arm-linux-tdep.c: Include infrun.h.
6542 * arm-tdep.c: Include infrun.h.
6543 * break-catch-sig.c: Include infrun.h.
6544 * breakpoint.c: Include infrun.h.
6545 * common/agent.c: Include infrun.h instead of inferior.h.
6546 * corelow.c: Include infrun.h.
6547 * event-top.c: Include infrun.h.
6548 * go32-nat.c: Include infrun.h.
6549 * i386-tdep.c: Include infrun.h.
6550 * inf-loop.c: Include infrun.h.
6551 * infcall.c: Include infrun.h.
6552 * infcmd.c: Include infrun.h.
6553 * infrun.c: Include infrun.h.
6554 * linux-fork.c: Include infrun.h.
6555 * linux-nat.c: Include infrun.h.
6556 * linux-thread-db.c: Include infrun.h.
6557 * monitor.c: Include infrun.h.
6558 * nto-tdep.c: Include infrun.h.
6559 * procfs.c: Include infrun.h.
6560 * record-btrace.c: Include infrun.h.
6561 * record-full.c: Include infrun.h.
6562 * remote-m32r-sdi.c: Include infrun.h.
6563 * remote-mips.c: Include infrun.h.
6564 * remote-notif.c: Include infrun.h.
6565 * remote-sim.c: Include infrun.h.
6566 * remote.c: Include infrun.h.
6567 * reverse.c: Include infrun.h.
6568 * rs6000-tdep.c: Include infrun.h.
6569 * s390-linux-tdep.c: Include infrun.h.
6570 * solib-irix.c: Include infrun.h.
6571 * solib-osf.c: Include infrun.h.
6572 * solib-svr4.c: Include infrun.h.
6573 * target.c: Include infrun.h.
6574 * top.c: Include infrun.h.
6575 * windows-nat.c: Include infrun.h.
6576 * mi/mi-interp.c: Include infrun.h.
6577 * mi/mi-main.c: Include infrun.h.
6578 * python/py-threadevent.c: Include infrun.h.
6579
98eb56a4
PA
65802014-05-22 Pedro Alves <palves@redhat.com>
6581
6582 * infrun.c (handle_inferior_event): Store the exit code for
6583 --return-child-result here, instead of ...
6584 (print_exited_reason): ... here.
6585
17b2616c
PA
65862014-05-21 Pedro Alves <palves@redhat.com>
6587
6588 PR gdb/13860
6589 * gdbthread.h (struct thread_control_state): New field
6590 `command_interp'.
6591 * infrun.c (follow_fork): Copy the new thread control field to the
6592 child fork thread.
6593 (clear_proceed_status_thread): Clear the new thread control field.
6594 (proceed): Set the new thread control field.
6595 * interps.h (command_interp): Declare.
6596 * interps.c (command_interpreter): New global.
6597 (command_interp): New function.
6598 (interp_exec): Set `command_interpreter' while here.
6599 * cli-out.c (cli_uiout_dtor): New function.
6600 (cli_ui_out_impl): Install it.
6601 * mi/mi-interp.c: Include cli-out.h.
6602 (mi_cmd_interpreter_exec): Add comment.
6603 (restore_current_uiout_cleanup): New function.
6604 (ui_out_free_cleanup): New function.
6605 (mi_on_normal_stop): If finishing an execution command started by
6606 a CLI command, or any kind of breakpoint-like event triggered,
6607 print the stop event to the output (CLI) stream.
6608 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6609
5166082f
PA
66102014-05-21 Pedro Alves <palves@redhat.com>
6611
6612 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6613 current source line having changed.
6614 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6615 * infrun.c (normal_stop): Adjust call to
6616 set_current_sal_from_frame.
6617 * source.c (clear_lines_listed_range): New function.
6618 (set_current_source_symtab_and_line, identify_source_line): Clear
6619 the lines listed range.
6620 (line_info): Handle the first "info line" after the current source
6621 line having changed.
6622 * stack.c (print_stack_frame): Remove center handling.
6623 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6624 center sal.line.
6625
c1ee2fb3
PA
66262014-05-21 Pedro Alves <palves@redhat.com>
6627
6628 * inf-child.c (inf_child_mourn_inferior): New function.
6629 * inf-child.h (inf_child_mourn_inferior): New declaration.
6630 * darwin-nat.c (darwin_mourn_inferior): Use
6631 inf_child_mourn_inferior.
6632 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6633 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6634 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6635 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6636 * windows-nat.c (windows_mourn_inferior): Likewise.
6637
5c6d4fb2
DE
66382014-05-21 Doug Evans <xdje42@gmail.com>
6639
250748cb 6640 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6641
4a2722c5
DE
66422014-05-21 Doug Evans <xdje42@gmail.com>
6643
17292b30 6644 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6645 (gdbscm_out_of_range_error): Ditto.
6646 (gdbscm_memory_error): Ditto.
250748cb
DE
6647 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6648 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6649 (gdbscm_out_of_range_error): Update.
6650 (gdbscm_memory_error): Update.
6651 (gdbscm_scm_to_target_string_unsafe): Delete.
6652
6a3cb8e8
PA
66532014-05-21 Pedro Alves <palves@redhat.com>
6654
6655 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6656 globals.
6657 (inf_child_open_target): New function.
6658 (inf_child_open): Use inf_child_open_target to push the target
6659 instead of erroring out.
6660 (inf_child_disconnect, inf_child_close)
6661 (inf_child_maybe_unpush_target): New functions.
6662 (inf_child_target): Install inf_child_disconnect and
6663 inf_child_close. Store a pointer to the returned object.
6664 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6665 declarations.
6666 * target.c (auto_connect_native_target): New global.
6667 (show_default_run_target): New function.
6668 (find_default_run_target): Return NULL if automatically connecting
6669 to the native target is disabled.
6670 (_initialize_target): Install set/show auto-connect-native-target.
6671 * NEWS: Mention "set auto-connect-native-target", and "target
6672 native".
6673 * linux-nat.c (super_close): New global.
6674 (linux_nat_close): Call super_close.
6675 (linux_nat_add_target): Store a pointer to the base class's
6676 to_close method.
6677 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6678 inf_child_maybe_unpush.
6679 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6680 already pushed.
6681 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6682 the inferior. Use inf_child_maybe_unpush_target.
6683 (inf_ttrace_attach): Don't push the target if it is already
6684 pushed.
6685 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6686 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6687 after mourning the inferior. Use inf_child_maybe_unpush_target.
6688 (darwin_attach_pid): Don't push the target if it is already
6689 pushed.
6690 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6691 mourning the inferior. Use inf_child_maybe_unpush_target.
6692 (gnu_detach): Use inf_child_maybe_unpush_target.
6693 * go32-nat.c (go32_create_inferior): Don't push the target if it
6694 is already pushed.
6695 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6696 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6697 (procfs_open): Rename to ...
6698 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6699 comments. Can target_preopen before changing node. Call
6700 inf_child_open_target to push the target explicitly.
6701 (procfs_attach): Don't push the target if it is already pushed.
6702 (procfs_detach): Use inf_child_maybe_unpush_target.
6703 (procfs_create_inferior): Don't push the target if it is already
6704 pushed.
6705 (nto_native_ops): New global.
6706 (procfs_open): Reimplement.
6707 (procfs_native_open): New function.
6708 (init_procfs_targets): Install procfs_native_open as to_open of
6709 "target native". Store a pointer to the "native" target in
6710 nto_native_ops.
6711 * procfs.c (procfs_attach): Don't push the target if it is already
6712 pushed.
6713 (procfs_detach): Use inf_child_maybe_unpush_target.
6714 (procfs_mourn_inferior): Only unpush the target after mourning the
6715 inferior. Use inf_child_maybe_unpush_target.
6716 (procfs_init_inferior): Don't push the target if it is already
6717 pushed.
6718 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6719 if it is already pushed.
6720
930ee1b1
PA
67212014-05-21 Pedro Alves <palves@redhat.com>
6722
6723 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6724 and "procfs" targets are now called "native" instead.
6725
1f5d1b13
PA
67262014-05-21 Pedro Alves <palves@redhat.com>
6727
6728 * go32-nat.c (go32_open): Delete.
6729 (go32_target): Don't override the to_open method.
6730
132f8e03
PA
67312014-05-21 Pedro Alves <palves@redhat.com>
6732
6733 * nto-procfs.c (procfs_can_run): New function.
6734 (nto_procfs_ops): New global.
6735 (init_procfs_targets): New, based on procfs_target. Install
6736 "target native" in addition to "target procfs".
6737 (_initialize_procfs): Call init_procfs_targets instead of adding
6738 the target here.
6739
03c136c3
PA
67402014-05-21 Pedro Alves <palves@redhat.com>
6741
6742 * windows-nat.c (windows_target): Don't override to_shortname,
6743 to_longname or to_doc.
6744
a635d0f3
PA
67452014-05-21 Pedro Alves <palves@redhat.com>
6746
6747 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6748 to_doc.
6749
4f9b5133
PA
67502014-05-21 Pedro Alves <palves@redhat.com>
6751
6752 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6753 to_shortname, to_longname or to_doc.
6754
bc85afde
PA
67552014-05-21 Pedro Alves <palves@redhat.com>
6756
6757 * go32-nat.c (go32_target): Don't override to_shortname,
6758 to_longname or to_doc.
6759
4ebfc96e
PA
67602014-05-21 Pedro Alves <palves@redhat.com>
6761
6762 * inf-child.c (inf_child_open): Remove mention of "child".
6763 (inf_child_target): Rename target to "native" instead of "child".
6764
2648dfed
AA
67652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6766
6767 * Makefile.in (SFILES): Delete "regset.c".
6768 (COMMON_OBS): Delete "regset.o".
6769 * regset.c: Remove.
6770 * regset.h (regset_alloc): Delete prototype.
6771
b13feb94
AA
67722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6773
6774 * sparc-linux-tdep.c (sparc32_linux_gregset)
6775 (sparc32_linux_fpregset): New static regset structures.
6776 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6777 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6778 'fpregset' fields.
6779 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6780 (sparc64_linux_fpregset): New static regset structures.
6781 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6782 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6783 New static regset structures.
6784 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6785 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6786 New static regset structures.
6787 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6788 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6789 New static regset structures.
6790 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6791 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6792 New static regset structures.
6793 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6794
b4fd25c9
AA
67952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6796
6797 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6798 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6799 register maps ("regmaps") from "*regset" to "*regmap". Do this
6800 for all regmap types and variables.
6801 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6802 (sparc32_linux_supply_core_gregset)
6803 (sparc32_linux_collect_core_gregset)
6804 (sparc32_linux_supply_core_fpregset)
6805 (sparc32_linux_collect_core_fpregset): Likewise.
6806 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6807 (sparc_gregmap, sparc_fpregmap): ... these.
6808 (sparc_supply_gregset, sparc_collect_gregset)
6809 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6810 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6811 (_initialize_sparc_nat): Rename regmaps.
6812 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6813 (sparc_gregmap, sparc_fpregmap): ... these.
6814 (sparc_supply_gregset, sparc_collect_gregset)
6815 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6816 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6817 Rename macros to...
6818 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6819 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6820 Likewise.
6821 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6822 Rename to...
6823 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6824 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6825 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6826 regmaps.
6827 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6828 (sparc32_bsd_fpregset): Rename to...
6829 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6830 (sparc32_bsd_fpregmap): ... these.
6831 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6832 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6833 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6834 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6835 (struct sparc_gregmap, struct sparc_fpregmap)
6836 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6837 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6838 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6839 (sparc32_supply_regset, sparc32_collect_gregset)
6840 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6841 prototypes.
6842 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6843 (sparc64_linux_ptrace_gregmap): ... this.
6844 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6845 (_initialize_sparc64_linux_nat): Rename regmaps.
6846 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6847 (sparc64_linux_core_gregmap): ... this.
6848 (sparc64_linux_supply_core_gregset)
6849 (sparc64_linux_collect_core_gregset)
6850 (sparc64_linux_supply_core_fpregset)
6851 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6852 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6853 (sparc64_sol2_fpregset): Rename to...
6854 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6855 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6856 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6857 regmaps.
6858 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6859 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6860 (sparc64_bsd_fpregset): Rename to...
6861 (struct sparc_gregmap, sparc64_sol2_gregmap)
6862 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6863 (sparc64_bsd_fpregmap): ... these.
6864 (sparc64_supply_gregset, sparc64_collect_gregset)
6865 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6866 prototypes.
6867 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6868 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6869 (sparc64fbsd_gregmap): ... this.
6870 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6871 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6872 Rename regmaps.
6873 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6874 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6875 (sparc64nbsd_collect_fpregset): Likewise.
6876 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6877 (sparc64nbsd_gregmap): ... this.
6878 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6879 regmaps.
6880 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6881 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6882 (sparc64obsd_gregmap): ... this.
6883 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6884 regmaps.
6885 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6886 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6887 (sparc32nbsd_gregmap): ... this.
6888 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6889 regmaps.
6890
8fea3224
AA
68912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6892
6893 * score-tdep.c (score7_linux_gregset): New static regset
6894 structure.
6895 (score7_linux_regset_from_core_section): Remove dynamic regset
6896 allocation.
6897 (score_gdbarch_init): Drop allocation of tdep structure.
6898 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6899
24534243
AA
69002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6901
6902 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6903 regset structures.
6904 (am33_regset_from_core_section): Remove dynamic regset
6905 allocations.
6906
b7195f27
AA
69072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6908
6909 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6910 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6911 structures.
6912 (mips_linux_regset_from_core_section): Remove dynamic regset
6913 allocations.
6914 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6915 'gregset64', 'fpregset', and 'fpregset64'.
6916 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6917 deleted tdep fields.
6918
ecc37a5a
AA
69192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6920
6921 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6922 regset structures.
6923 (amd64_regset_from_core_section): Remove dynamic regset
6924 allocations.
6925 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6926 structure.
6927 (amd64obsd_regset_from_core_section): Remove dynamic regset
6928 allocation.
6929 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6930 Likewise.
6931 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6932 x86-common regset supply function.
6933 * i386-tdep.c (i386_collect_gregset): Make static.
6934 (i386_gregset): New global regset structure.
6935 (i386_fpregset, i386_xstateregset): New static regset structures.
6936 (i386_regset_from_core_section): Remove dynamic regset
6937 allocations.
6938 (i386_gdbarch_init): Remove initialization of tdep fields
6939 'gregset', 'fpregset', and 'xstateregset'.
6940 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6941 'fpregset', and 'xstateregset'.
6942 (i386_collect_gregset): Remove prototype.
6943 (i386_gregset): New declaration.
6944 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6945 structure.
6946 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6947 allocation.
6948
b7611c43
AA
69492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6950
6951 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6952 (arm_linux_vfpregset): New static regset structures.
6953 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6954 regset structures.
6955 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6956 and 'vfpregset' fields.
6957
a069a2bd
AA
69582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6959
6960 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6961 (aarch64_linux_fpregset): New static regset structures.
6962 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6963 of regset structures.
6964 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6965 'fpregset' fields.
6966
09424cff
AA
69672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6968
6969 * regset.h (struct regset): Remove gdbarch field.
6970 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6971 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6972 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6973 Likewise.
6974 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6975 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6976 (ppc32_linux_vsxregset): Likewise.
6977 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6978 via the regcache instead of the regset.
6979 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6980 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6981 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6982 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6983 Likewise.
6984
3ca7dae4
AA
69852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6986
6987 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6988 Constify structures.
6989 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6990 (alphanbsd_aout_gregset): Likewise.
6991 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6992 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6993 Likewise.
6994 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6995 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6996 Likewise.
6997 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6998 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6999 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7000 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7001 * m88k-tdep.c (m88k_gregset): Likewise.
7002 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7003 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7004 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7005 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7006 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7007 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7008 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7009 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7010 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7011 Likewise.
7012 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7013 * sh-tdep.h (sh_corefile_gregset): Likewise.
7014 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7015 * vax-tdep.c (vax_gregset): Likewise.
7016
5876f503
JK
70172014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7018
7019 Fix TLS access for -static -pthread.
7020 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7021 (try_thread_db_load_1): Initialize it.
7022 (thread_db_get_thread_local_address): Call it if LM is zero.
7023 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7024 * target.h (struct target_ops) (to_get_thread_local_address): Add
7025 load_module_addr comment.
7026
0256a6ac
PA
70272014-05-21 Pedro Alves <palves@redhat.com>
7028
7029 * dcache.c (dcache_read_memory_partial): If reading the cache line
7030 fails, fallback to reading just the memory the caller wanted.
7031
227533ac
DE
70322014-05-20 Doug Evans <dje@google.com>
7033
7034 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7035 instead of get_current_arch.
7036
936d2992
PA
70372014-05-20 Pedro Alves <palves@redhat.com>
7038
7039 * NEWS: Mention that compare-sections now works with all targets.
7040
7041 * remote.c (PACKET_qCRC): New enum value.
7042 (remote_verify_memory): Don't send qCRC if the target has no
7043 execution. Use packet_support/packet_ok. If the target doesn't
7044 support the qCRC packet, fallback to a deep memory copy.
7045 (compare_sections_command): Say "target image" instead of "remote
7046 executable".
7047 (_initialize_remote): Add PACKET_qCRC to the list of config
7048 packets that have no associated command. Extend comment.
7049 * target.c (simple_verify_memory, default_verify_memory): New
7050 function.
7051 * target.h (struct target_ops) <to_verify_memory>: Default to
7052 default_verify_memory.
7053 (simple_verify_memory): New declaration.
7054 * target-delegates.c: Regenerate.
7055
e59fa00f
MM
70562014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7057
7058 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7059
f2205de0
HZ
70602014-05-20 Hui Zhu <hui@codesourcery.com>
7061 Yao Qi <yao@codesourcery.com>
7062
7063 PR backtrace/16558
7064 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7065 and change address of sp and pc.
7066
c4e54771
TT
70672014-05-19 Tom Tromey <tromey@redhat.com>
7068
7069 * gdbtypes.c (rank_function): Use XNEWVEC.
7070 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7071
73051182
DE
70722014-05-19 Doug Evans <dje@google.com>
7073
7074 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7075 build_type_unit_groups and moved closer to only caller. Remove
7076 arguments. All references updated. Remove outdated .gdb_index
7077 comment.
7078 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7079 build_type_psymtabs_1.
7080
8832e7e3
DE
70812014-05-19 Doug Evans <dje@google.com>
7082
7083 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7084 n_type_unit_groups, all_type_unit_groups. All uses removed.
7085 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7086 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7087 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7088 (add_type_unit_group_to_table): Delete.
7089
cd8ae15e
DE
70902014-05-19 Doug Evans <dje@google.com>
7091
7092 * eval.c (evaluate_subexp_standard): Add some comments.
7093
08f4850b
DE
70942014-05-17 Doug Evans <xdje42@gmail.com>
7095
7096 * progspace.c (remove_program_space): Delete, unused.
7097 * progspace.h (remove_program_space): Ditto.
7098
bed8455c
DE
70992014-05-17 Doug Evans <xdje42@gmail.com>
7100
7101 * inferior.c (prune_inferiors): Fix comment.
7102 (remove_inferior_command): Call prune_program_spaces.
7103
8d551b02
DE
71042014-05-16 Doug Evans <dje@google.com>
7105
7106 New command line option -D.
7107 * NEWS: Mention it.
7108 * main.c (set_gdb_data_directory): New function.
7109 (captured_main): Recognize -D. Flag error for --data-directory "".
7110 Call set_gdb_data_directory.
7111 (print_gdb_help): Print --data-directory, -D.
7112 * main.h (set_gdb_data_directory): Declare.
7113 * top.c (staged_gdb_datadir): New static global.
7114 (set_gdb_datadir): Call set_gdb_data_directory
7115 (show_gdb_datadir): New function.
7116 (init_main): Update init of data-directory parameter.
7117
18848e28
GF
71182014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7119
7120 Import the "dirfd" gnulib module.
7121 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7122 * gnulib/aclocal.m4: Update.
7123 * gnulib/config.in: Update.
7124 * gnulib/configure: Update.
7125 * gnulib/import/Makefile.am: Update.
7126 * gnulib/import/Makefile.in: Update.
7127 * gnulib/import/dirfd.c: New.
7128 * gnulib/import/m4/dirfd.m4: New.
7129 * gnulib/import/m4/gnulib-cache.m4: Update.
7130 * gnulib/import/m4/gnulib-comp.m4: Update.
7131
95c64f92
YQ
71322014-05-16 Pierre Muller <muller@sourceware.org>
7133 Yao Qi <yao@codesourcery.com>
7134
7135 * valprint.c (print_wchar): Move the code on checking whether
7136 W is a printable wide char to the default branch of switch
7137 statement below. Call wchar_printable instead of gdb_iswprint.
7138
cac395ea
TM
71392014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7140
19679eca 7141 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7142 ldr.w and ldrd instructions.
7143
83655187
DE
71442014-05-15 Doug Evans <dje@google.com>
7145
7146 * dwarf2read.c (read_structure_type): Delete outdated comments.
7147
dd756689
TT
71482014-05-14 Tom Tromey <tromey@redhat.com>
7149
7150 * macrocmd.c (print_macro_definition): Reindent.
7151
75ddda77
DE
71522014-05-13 Doug Evans <xdje42@gmail.com>
7153
7154 * python/py-cmd.c (cmdpy_completer): Add comment.
7155 (completers): Make const.
7156
b0f16a3e
SM
71572014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7158
7159 * infrun.c (resume): Remove should_resume (unused). Move up
7160 declaration of resume_ptid.
7161
033c3379
TT
71622014-05-13 Tom Tromey <tromey@redhat.com>
7163
7164 * language.h (unop_type_check): Remove.
7165 (binop_type_check): Don't declare.
7166
9b44a3a5
AA
71672014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7168
7169 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7170 call to regcache_raw_collect.
7171
303a33fa
SM
71722014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7173
7174 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7175 mi_console->quote as the quoting character.
7176
196100a0
SM
71772014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7178
7179 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7180
f989a1c8
TT
71812014-04-29 Tom Tromey <tromey@redhat.com>
7182
7183 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7184 "show debug varobj".
7185
9404b58f
KM
71862014-05-07 Kyle McMartin <kyle@redhat.com>
7187
7188 Pushed by Joel Brobecker <brobecker@adacore.com>.
7189 * aarch64-tdep.c (aarch64_software_single_step): New function.
7190 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7191 with aarch64_software_single_step.
7192
5e49ba57
JB
71932014-05-05 Joel Brobecker <brobecker@adacore.com>
7194
7195 GDB 7.7.1 released.
7196
c888a17d
KS
71972014-05-05 Keith Seitz <keiths@redhat.com>
7198
7199 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7200 variable or history value is successfully parsed.
7201
290a839c
YQ
72022014-05-05 Yao Qi <yao@codesourcery.com>
7203 Pedro Alves <palves@redhat.com>
7204
7205 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7206 address of blocks that intersects the requested range. Trim
7207 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7208 sections.
7209 * ctf.c (ctf_xfer_partial): Likewise.
7210
91256dc2
YQ
72112014-05-05 Yao Qi <yao@codesourcery.com>
7212
7213 * printcmd.c (display_command): Remove the check to
7214 target_has_execution.
7215
07284463
MK
72162014-05-03 Mark Kettenis <kettenis@gnu.org>
7217
7218 * ppcobsd-nat.c: Include "obsd-nat.h".
7219 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7220 add_target.
7221 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7222
30a1e6cc
SDJ
72232014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7224
7225 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7226 and 16-bit signed and unsigned arguments. Update comment.
7227 (stap_parse_probe_arguments): Extend code to handle such
7228 arguments. Use warning instead of complaint to notify about
7229 unrecognized bitness.
7230
f33da99a
SDJ
72312014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7232
7233 PR breakpoints/16889
7234 * stap-probe.c (stap_parse_probe_arguments): Simplify
7235 check for non-prefixed probes (i.e., probes whose
7236 arguments do not start with "N@"). Always set the
7237 argument type to a sane value.
7238
95cf3b38
DT
72392014-05-01 David Taylor <dtaylor@emc.com>
7240
7241 * remote.c (compare_sections_command): Add -r option to compare
7242 all loadable read-only sections.
7243
1cfdf534
SC
72442014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7245
7246 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7247 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7248 Update all callers.
7249 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7250 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7251 Remove unused CORE_ADDR argument. Update all callers.
7252
ca4f7f8b
PA
72532014-04-29 Pedro Alves <palves@redhat.com>
7254
7255 * remote.c (struct packet_config) <detect>: Extend comment.
7256 (add_packet_config_cmd): Don't set the config's detect or support
7257 fields here.
7258 (init_all_packet_configs): Also initialize the config's 'detect'
7259 field.
7260 (reset_all_packet_configs_support): New function.
7261 (remote_open_1): Call reset_all_packet_configs_support instead of
7262 init_all_packet_configs.
7263 (_initialize_remote): Initialize all packet configs. Assert that
7264 all packets have an associated command, except a few known
7265 outliers.
7266
11c1ba78
JB
72672014-04-28 Joel Brobecker <brobecker@adacore.com>
7268
7269 * dwarf2read.c (read_subrange_type): Handle dynamic
7270 DW_AT_lower_bound attributes.
7271
8739bc53
JB
72722014-04-28 Joel Brobecker <brobecker@adacore.com>
7273
7274 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7275 dynamic bounds before computing its upper bound.
7276 (ada_discrete_type_low_bound): Same as above with the lower bound.
7277
6f8a3220
JB
72782014-04-28 Joel Brobecker <brobecker@adacore.com>
7279
7280 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7281 range types. Adjust the array handling implementation to
7282 take advantage of this change.
7283 (resolve_dynamic_range): New function, mostly extracted from
7284 resolve_dynamic_bounds.
7285 (resolve_dynamic_array): New function, mostly extracted from
7286 resolve_dynamic_bounds.
7287 (resolve_dynamic_bounds): Delete.
7288 (resolve_dynamic_type): Reimplement. Add handling of
7289 TYPE_CODE_RANGE types.
7290
4d072ce4
JB
72912014-04-28 Joel Brobecker <brobecker@adacore.com>
7292
7293 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7294 handling of parallel ___XA types.
7295
52865325
JB
72962014-04-28 Joel Brobecker <brobecker@adacore.com>
7297
7298 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7299 unnecessary second call to static_unwrap_type.
7300
433e77fa
HZ
73012014-04-27 Hui Zhu <hui@codesourcery.com>
7302
7303 * stack.c (print_frame_info): Call do_gdb_disassembly with
7304 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7305
b51a69ee
DE
73062014-04-26 Doug Evans <xdje42@gmail.com>
7307
7308 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7309
7ae1a6a6
PA
73102014-04-25 Pedro Alves <palves@redhat.com>
7311
7312 PR server/16255
7313 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7314 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7315 and newline from built string.
7316 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7317 (linux_ptrace_attach_fail_reason): ... this.
7318 * linux-nat.c (linux_nat_attach): Adjust to use
7319 linux_ptrace_attach_fail_reason.
7320
4082afcc
PA
73212014-04-25 Pedro Alves <palves@redhat.com>
7322
7323 * remote.c (struct remote_state): Remove multi_process_aware,
7324 non_stop_aware, cond_tracepoints, cond_breakpoints,
7325 breakpoint_commands, fast_tracepoints, static_tracepoints,
7326 install_in_trace, disconnected_tracing,
7327 enable_disable_tracepoints, string_tracing, and
7328 augmented_libraries_svr4_read fields.
7329 (remote_multi_process_p): Move further below in the file.
7330 (struct packet_config): Add comments.
7331 (update_packet_config): Delete function.
7332 (show_packet_config_cmd): Use packet_config_support.
7333 (add_packet_config_cmd): Use NULL as set callback.
7334 (packet_ok): "set remote foo-packet"-style commands no longer
7335 change config->supported -- adjust.
7336 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7337 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7338 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7339 (PACKET_QNonStop, PACKET_multiprocess_feature)
7340 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7341 (PACKET_DisconnectedTracing_feature)
7342 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7343 (set_remote_protocol_packet_cmd): Delete function.
7344 (packet_config_support, packet_support): New functions.
7345 (set_remote_protocol_Z_packet_cmd): Don't call
7346 update_packet_config.
7347 (remote_query_attached, remote_pass_signals)
7348 (remote_program_signals, remote_threads_info)
7349 (remote_threads_extra_info, remote_start_remote): Use
7350 packet_support.
7351 (remote_start_remote): Use packet_config_support and
7352 packet_support.
7353 (init_all_packet_configs): Set all packets to unknown support,
7354 instead of calling update_packet_config.
7355 (remote_check_symbols): Use packet_support.
7356 (remote_supported_packet): Unconditionally set the packet config's
7357 support status.
7358 (remote_multi_process_feature, remote_non_stop_feature)
7359 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7360 (remote_breakpoint_commands_feature)
7361 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7362 (remote_install_in_trace_feature)
7363 (remote_disconnected_tracing_feature)
7364 (remote_enable_disable_tracepoint_feature)
7365 (remote_string_tracing_feature)
7366 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7367 (remote_protocol_features): Adjust to use remote_supported_packet
7368 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7369 "ConditionalTracepoints", "ConditionalBreakpoints",
7370 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7371 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7372 "EnableDisableTracepoints", and "tracenz".
7373 (remote_query_supported): Use packet_support.
7374 (remote_open_1): Adjust.
7375 (extended_remote_attach_1): Use packet_support. Switch on the
7376 result of packet_ok instead of checking whether the packet ended
7377 up disabled.
7378 (remote_vcont_resume): Use packet_support.
7379 (remote_resume, remote_stop_ns, fetch_register_using_p)
7380 (remote_prepare_to_store, store_register_using_P)
7381 (check_binary_download, remote_write_bytes): Use packet_support.
7382 (remote_vkill): Use packet_support. Switch on the result of
7383 packet_ok instead of checking whether the packet ended up
7384 disabled.
7385 (extended_remote_supports_disable_randomization): Use
7386 packet_support.
7387 (extended_remote_run): Switch on the result of packet_ok instead
7388 of checking whether the packet ended up disabled.
7389 (remote_insert_breakpoint, remote_remove_breakpoint)
7390 (remote_insert_watchpoint, remote_remove_watchpoint)
7391 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7392 packet_support.
7393 (remote_search_memory): Use packet_config_support.
7394 (remote_get_thread_local_address, remote_get_tib_address)
7395 (remote_hostio_send_command, remote_can_execute_reverse): Use
7396 packet_support.
7397 (remote_supports_cond_tracepoints)
7398 (remote_supports_cond_breakpoints)
7399 (remote_supports_fast_tracepoints)
7400 (remote_supports_static_tracepoints)
7401 (remote_supports_install_in_trace)
7402 (remote_supports_enable_disable_tracepoint)
7403 (remote_supports_string_tracing)
7404 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7405 the packet config says the feature is enabled or disabled.
7406 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7407 (remote_get_trace_status): Use packet_support.
7408 (remote_set_disconnected_tracing): Adjust to check whether the
7409 feature is enabled with packet_support.
7410 (remote_set_trace_buffer_size, remote_use_agent)
7411 (remote_can_use_agent, remote_supports_btrace): Use
7412 packet_support.
7413 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7414 Use packet_config_support.
7415 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7416 the packet config says the feature is enabled or disabled.
7417 (set_range_stepping): Use packet_support.
7418
bdb52a22
TT
74192014-04-25 Tom Tromey <tromey@redhat.com>
7420
7421 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7422 argument.
7423
e9475ead
SA
74242014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7425
7426 * NEWS: Mention support for C99 variable length arrays.
7427
82eacd52
JB
74282014-04-24 Joel Brobecker <brobecker@adacore.com>
7429
7430 * ada-lang.c (standard_exc): Expand introductory comment.
7431
01f9f808
MS
74322014-04-24 Michael Sturm <michael.sturm@mintel.com>
7433 Walfred Tedeschi <walfred.tedeschi@intel.com>
7434
7435 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7436 AVX512 registers.
7437 (amd64_linux_read_description): Add code to handle AVX512 xstate
7438 mask and return respective tdesc.
7439 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7440 and features/i386/x32-avx512-linux.c.
7441 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7442 (amd64_linux_core_read_description): Add code to handle AVX512
7443 xstate mask and return respective tdesc.
7444 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7445 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7446 calculation.
7447 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7448 (tdesc_amd64_avx512_linux): New prototype.
7449 (tdesc_x32_avx512_linux): Likewise.
7450 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7451 features/i386/x32-avx512.c.
7452 (amd64_ymm_avx512_names): New register names for pseudo
7453 registers YMM16-31.
7454 (amd64_ymmh_avx512_names): New register names for raw registers
7455 YMMH16-31.
7456 (amd64_k_names): New register names for K registers.
7457 (amd64_zmmh_names): New register names for ZMM raw registers.
7458 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7459 (amd64_xmm_avx512_names): New register names for XMM16-31
7460 registers.
7461 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7462 registers.
7463 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7464 if feature is present.
7465 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7466 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7467 (AMD64_NUM_REGS): Adjust to new number of registers.
7468 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7469 registers supplied via XSTATE by AVX512 registers.
7470 (i386_linux_read_description): Add case for AVX512.
7471 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7472 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7473 (i386_linux_core_read_description): Add case for AVX512.
7474 (i386_linux_init_abi): Install supported register note section
7475 for AVX512.
7476 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7477 AVX512.
7478 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7479 registers to be number of zmm7h + 1.
7480 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7481 * i386-tdep.c: Include features/i386/i386-avx512.c.
7482 (i386_zmm_names): Add ZMM pseudo register names array.
7483 (i386_zmmh_names): Add ZMM raw register names array.
7484 (i386_k_names): Add K raw register names array.
7485 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7486 registers. AVX512 has 16 more ZMM registers than there are YMM
7487 registers.
7488 (i386_zmmh_regnum_p): Add function to look up register number of
7489 ZMM raw registers.
7490 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7491 (i386_k_regnum_p): Likewise for K raw registers.
7492 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7493 registers added by AVX512.
7494 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7495 registers added by AVX512.
7496 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7497 added by AVX512.
7498 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7499 (i386_pseudo_register_name): Add ZMM pseudo registers.
7500 (i386_zmm_type): Construct and return vector registers type for ZMM
7501 registers.
7502 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7503 ZMM0-31 pseudo registers and K registers.
7504 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7505 and YMM16-31 registers from register cache.
7506 (i386_pseudo_register_write): Add code to write K, ZMM and
7507 YMM16-31 registers.
7508 (i386_register_reggroup_p): Add code to include/exclude AVX512
7509 registers in/from respective register groups.
7510 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7511 registers if feature is present in xcr0.
7512 (i386_gdbarch_init): Add code to initialize AVX512 feature
7513 variables in tdep structure, wire in pseudo registers and call
7514 initialize_tdesc_i386_avx512.
7515 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7516 variables.
7517 (i386_regnum): Add AVX512 registers.
7518 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7519 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7520 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7521 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7522 512 bits wide.
7523 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7524 (i386_ymm_avx512_regnum_p): Likewise.
7525 (i386_k_regnum_p): Likewise.
7526 (i386_zmm_regnum_p): Likewise.
7527 (i386_zmmh_regnum_p): Likewise.
7528 * i387-tdep.c : Update year in copyright notice.
7529 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7530 XSAVE buffer.
7531 (XSAVE_YMM_AVX512_ADDR): New macro.
7532 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7533 XSAVE buffer.
7534 (XSAVE_XMM_AVX512_ADDR): New macro.
7535 (xsave_avx512_k_offset): New table for K register offsets in
7536 XSAVE buffer.
7537 (XSAVE_AVX512_K_ADDR): New macro.
7538 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7539 in XSAVE buffer.
7540 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7541 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7542 buffer.
7543 (i387_collect_xsave): Add code to collect AVX512 registers from
7544 XSAVE buffer.
7545 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7546 of XMM16-31 registers.
7547 (I387_NUM_K_REGS): New define for number of K registers.
7548 (I387_K0_REGNUM): New define for K0 register number.
7549 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7550 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7551 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7552 registers.
7553 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7554 (I387_XMM16_REGNUM): New define for XMM16 register number.
7555 (I387_YMM0_REGNUM): New define for YMM0 register number.
7556 (I387_KEND_REGNUM): New define for last K register number.
7557 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7558 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7559 number.
7560 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7561 number.
7562 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7563 size.
7564 * features/Makefile: Add AVX512 related files.
7565 * features/i386/32bit-avx512.xml: New file.
7566 * features/i386/64bit-avx512.xml: Likewise.
7567 * features/i386/amd64-avx512-linux.c: Likewise.
7568 * features/i386/amd64-avx512-linux.xml: Likewise.
7569 * features/i386/amd64-avx512.c: Likewise.
7570 * features/i386/amd64-avx512.xml: Likewise.
7571 * features/i386/i386-avx512-linux.c: Likewise.
7572 * features/i386/i386-avx512-linux.xml: Likewise.
7573 * features/i386/i386-avx512.c: Likewise.
7574 * features/i386/i386-avx512.xml: Likewise.
7575 * features/i386/x32-avx512-linux.c: Likewise.
7576 * features/i386/x32-avx512-linux.xml: Likewise.
7577 * features/i386/x32-avx512.c: Likewise.
7578 * features/i386/x32-avx512.xml: Likewise.
7579 * regformats/i386/amd64-avx512-linux.dat: New file.
7580 * regformats/i386/amd64-avx512.dat: Likewise.
7581 * regformats/i386/i386-avx512-linux.dat: Likewise.
7582 * regformats/i386/i386-avx512.dat: Likewise.
7583 * regformats/i386/x32-avx512-linux.dat: Likewise.
7584 * regformats/i386/x32-avx512.dat: Likewise.
7585 * NEWS: Add note about new support for AVX512.
7586
7587
08351840
PA
75882014-04-23 Pedro Alves <palves@redhat.com>
7589
7590 * breakpoint.c (insert_bp_location): Tolerate errors if the
7591 breakpoint is set in a user-loaded objfile.
7592 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7593 location is marked shlib_disabled. If the breakpoint is set in a
7594 user-loaded objfile is a GDB-side memory breakpoint, validate it
7595 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7596 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7597 flag.
7598 * mem-break.c (memory_validate_breakpoint): New function.
7599 * objfiles.c (userloaded_objfile_contains_address_p): New
7600 function.
7601 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7602 * target.h (memory_validate_breakpoint): New declaration.
7603
076855f9
PA
76042014-04-23 Pedro Alves <palves@redhat.com>
7605
7606 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7607 the breakpoint is set in a shared library, only suppress
7608 errors for software breakpoints, not hardware breakpoints.
7609
483805cf
PA
76102014-04-22 Pedro Alves <palves@redhat.com>
7611
7612 * infrun.c (schedlock_applies): New function, factored out from
7613 find_thread_needs_step_over.
7614 (find_thread_needs_step_over): Use it.
7615 (switch_back_to_stepped_thread): Always clear trap_expected if the
7616 step over is finished. Return early if scheduler locking applies.
7617 Look for the stepping thread and a potential step-over thread with
7618 a single loop.
7619 (currently_stepping_or_nexting_callback): Delete.
7620
a75fef0e
NC
76212014-04-22 Nick Clifton <nickc@redhat.com>
7622
7623 * NEWS: Mention that ARM sim now supports tracing.
7624
48b6e87e
YQ
76252014-04-22 Yao Qi <yao@codesourcery.com>
7626
7627 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7628 to ...
7629 * tracefile.c (tracefile_fetch_registers): ... it. New
7630 function.
7631 * tracefile.h (tracefile_fetch_registers): Declare.
7632 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7633 tracefile_fetch_registers.
7634
17617f2d
EZ
76352014-04-19 Eli Zaretskii <eliz@gnu.org>
7636
7637 PR gdb/14018
7638 * windows-nat.c (thread_rec): Don't display a warning when
7639 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7640 fails for any reason, set th->suspended to -1, so that we don't
7641 try to resume such a thread. Also, don't return NULL in these
7642 cases, to avoid completely ruin the session due to "PC register is
7643 not available" error.
7644 (do_windows_fetch_inferior_registers): Check errors in
7645 GetThreadContext call.
7646 (windows_continue): Accept an additional argument KILLED; if not
7647 zero, ignore errors in the SetThreadContext call, since the
7648 inferior was killed and is shutting down.
7649 (windows_resume, get_windows_debug_event)
7650 (windows_create_inferior, windows_mourn_inferior)
7651 (windows_kill_inferior): All callers of windows_continue changed
7652 to adjust to its new calling sequence.
7653
5723a6fd
YQ
76542014-04-19 Yao Qi <yao@codesourcery.com>
7655
7656 * ctf.c (ctf_open): Call post_create_inferior.
7657
614d5099
YQ
76582014-04-19 Yao Qi <yao@codesourcery.com>
7659
7660 * ctf.c (handle_id): New static variable.
7661 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7662 value. Get the declaration of event "register" and get length
7663 of field "contents".
7664
dac3e710
YQ
76652014-04-19 Yao Qi <yao@codesourcery.com>
7666
7667 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7668
2bca57ba
SC
76692014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7670
7671 * valops.c (oload_method_static): Remove unnecessary argument
7672 METHOD. Update all callers.
7673
51d48146
PA
76742014-04-18 Pedro alves <palves@redhat.com>
7675 Tom Tromey <tromey@redhat.com>
7676
7677 PR backtrace/15558
7678 * frame.c (get_prev_frame_1): Rename to ...
7679 (get_prev_frame_always): ... this, and make extern. Adjust.
7680 (skip_artificial_frames): Use get_prev_frame_always.
7681 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7682 (get_frame_unwind_stop_reason): Adjust to rename.
7683 * frame.h (get_prev_frame_always): Declare.
7684 * inline-frame.c: Include frame.h.
7685 (inline_frame_this_id): Use get_prev_frame_always.
7686
1bdad2e0
TG
76872014-04-18 Tristan Gingold <gingold@adacore.com>
7688
7689 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7690 code by using bfd_mach_o_get_base_address.
7691
7ce16bd4
UW
76922014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7693
7694 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7695 (spu_ax_pseudo_register_collect): New function.
7696 (spu_ax_pseudo_register_push_stack): Likewise.
7697 (spu_dwarf_reg_to_regnum): Likewise.
7698 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7699
2ed3c037
UW
77002014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7701
7702 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7703 Replace FRAME argument with FRAME_ID.
7704 * gdbarch.c, gdbarch.h: Regenerate.
7705 * findvar.c (default_value_from_register): Add GDBARCH argument;
7706 replace FRAME by FRAME_ID. No longer call get_frame_id.
7707 (value_from_register): Update call to gdbarch_value_from_register.
7708 * value.h (default_value_from_register): Update prototype.
7709 * s390-linux-tdep.c (s390_value_from_register): Update interface
7710 and call to default_value_from_register.
7711 * spu-tdep.c (spu_value_from_register): Likewise.
7712
7713 * findvar.c (address_from_register): Remove TYPE argument.
7714 Do not call value_from_register; use gdbarch_value_from_register
7715 with null_frame_id instead.
7716 * value.h (address_from_register): Update prototype.
7717 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7718 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7719 address_from_register interface change.
7720
71e50e83
YQ
77212014-04-17 Yao Qi <yao@codesourcery.com>
7722
7723 * gdbtypes.h: Update comments to link to types and macros'
7724 definitions.
7725
7a23c549
SC
77262014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7727
7728 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7729
22869d73
KS
77302014-04-16 Keith Seitz <keiths@redhat.com>
7731
7732 PR gdb/15827
7733 * dwarf2read.c (skip_one_die): Check that all relative-offset
7734 sibling DIEs fall within range of the current reader's buffer.
7735 (read_partial_die): Likewise.
7736
c4f87ca6
KS
77372014-04-16 Keith Seitz <keiths@redhat.com>
7738
7739 PR c++/16597
7740 * cp-namespace.c (lookup_symbol_file): If the type name of
7741 `this' is NULL, return immediately.
7742
b50c8614
KS
77432014-04-14 Keith Seitz <keiths@redhat.com>
7744
7745 PR c++/16253
7746 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7747 from symbol_matches_domain in symtab.c. All local callers
7748 of symbol_matches_domain updated.
7749 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7750 search STRUCT_DOMAIN.
7751 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7752 independently. standard_lookup will do that automatically.
7753 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7754 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7755 (cp_lookup_symbol_in_namespace): Likewise.
7756 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7757 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7758 may return a STRUCT_DOMAIN match.
7759 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7760 * cp-support.c: Include language.h.
7761 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7762 VAR_DOMAIN.
7763 * psymtab.c (match_partial_symbol): Compare the requested
7764 domain with the symbol's domain directly.
7765 (lookup_partial_symbol): Likewise.
7766 * symtab.c (lookup_symbol_in_language): Explain when/why
7767 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7768 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7769 appropriate languages.
7770 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7771 and moved to ada-lang.c
7772 (lookup_block_symbol): Explain that this function only returns
7773 symbol matching the requested DOMAIN.
7774 Compare the requested domain with the symbol's domain directly.
7775 (iterate_over_symbols): Compare the requested domain with the
7776 symbol's domain directly.
7777 * symtab.h (symbol_matches_domain): Remove.
7778
3d567982
TT
77792014-04-14 Tom Tromey <tromey@redhat.com>
7780
7781 PR c++/15246:
7782 * c-exp.y (type_aggregate_p): New function.
7783 (qualified_name, classify_inner_name): Use it.
7784 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7785 and TYPE_TARGET_TYPE of an enum type.
7786 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7787 an enum type.
7788 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7789 handle TYPE_DECLARED_CLASS.
7790 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7791 types.
7792 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7793 * valops.c (enum_constant_from_type): New function.
7794 (value_aggregate_elt): Use it.
7795 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7796 TYPE_CODE_ENUM.
7797
c848d642
TT
77982014-04-14 Tom Tromey <tromey@redhat.com>
7799
7800 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7801 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7802 const.
7803 * value.h (value_aggregate_elt): Update.
7804
0626fc76
TT
78052014-04-14 Tom Tromey <tromey@redhat.com>
7806
7807 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7808
5ecaaa66
SA
78092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7810
7811 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7812 (evaluate_subexp_standard): Pass noside argument.
7813 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7814 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7815 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7816 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7817 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7818
1612e0c0
SA
78192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7820
7821 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7822 points to a constant blob.
7823
c451ebe5
SA
78242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7825
7826 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7827 property and store it as the high bound and flag the range accordingly.
7828 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7829 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7830 * gdbtypes.h (enum range_flags): New enum.
7831 (struct range_bounds): Add flags member.
7832
1d42e4c4
SA
78332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7834
7835 * c-typeprint.c (c_type_print_varspec_suffix): Added
7836 check for not yet resolved high bound. If unresolved, print
7837 "variable length" string to the console instead of random
7838 length.
7839
9f1f738a
SA
78402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7841
7842 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7843 value.
7844 (ada_template_to_fixed_record_type_1): Likewise.
7845 (ada_to_fixed_type_1): Likewise.
7846 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7847 (cp_print_value): Likewise.
7848 * d-valprint.c (dynamic_array_type): Likewise.
7849 * findvar.c (address_of_variable): Likewise.
7850 * jv-valprint.c (java_value_print): Likewise.
7851 * valops.c (value_ind): Likewise.
7852 * value.c (coerce_ref): Likewise.
7853
3c8452d4
SA
78542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7855
7856 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7857 value and retrieve the dynamic type size.
7858
4ad88275
SA
78592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7860
7861 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7862 passed to sizeof is dynamic evaluate the argument to compute the length.
7863
80180f79
SA
78642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7865 Joel Brobecker <brobecker@adacore.com>
7866
7867 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7868 (dwarf2_evaluate_property): New function.
7869 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7870 * dwarf2read.c (attr_to_dynamic_prop): New function.
7871 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7872 attribute.
7873 * gdbtypes.c: Include dwarf2loc.h.
7874 (is_dynamic_type): New function.
7875 (resolve_dynamic_type): New function.
7876 (resolve_dynamic_bounds): New function.
7877 (get_type_length): New function.
7878 (check_typedef): Use get_type_length to compute type length.
7879 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7880 (TYPE_LOW_BOUND_KIND): New macro.
7881 (is_dynamic_type): New function prototype.
7882 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7883 to resolve dynamic properties of the type. Update comment.
7884 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7885
a1556843
RH
78862014-04-14 Richard Henderson <rth@redhat.com>
7887
7888 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7889
0be03e84
DE
78902014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7891 Doug Evans <xdje42@gmail.com>
7892
7893 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7894 dereference TYPE_CODE_REF values.
7895
6b662e19
JB
78962014-04-11 Joel Brobecker <brobecker@adacore.com>
7897
7898 Revert the following changes due to regressions:
7899
7900 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7901 (dwarf2_evaluate_property): New function.
7902 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7903 * dwarf2read.c (attr_to_dynamic_prop): New function.
7904 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7905 attribute.
7906 * gdbtypes.c: Include dwarf2loc.h.
7907 (is_dynamic_type): New function.
7908 (resolve_dynamic_type): New function.
7909 (resolve_dynamic_bounds): New function.
7910 (get_type_length): New function.
7911 (check_typedef): Use get_type_length to compute type length.
7912 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7913 (TYPE_LOW_BOUND_KIND): New macro.
7914 (is_dynamic_type): New function prototype.
7915 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7916 to resolve dynamic properties of the type. Update comment.
7917 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7918
7919 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7920 passed to sizeof is dynamic evaluate the argument to compute the length.
7921
7922 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7923 value and retrieve the dynamic type size.
7924
7925 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7926 (ada_template_to_fixed_record_type_1): Likewise.
7927 (ada_to_fixed_type_1): Likewise.
7928 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7929 (cp_print_value): Likewise.
7930 * d-valprint.c (dynamic_array_type): Likewise.
7931 * eval.c (evaluate_subexp_with_coercion): Likewise.
7932 * findvar.c (address_of_variable): Likewise.
7933 * jv-valprint.c (java_value_print): Likewise.
7934 * valops.c (value_ind): Likewise.
7935 * value.c (coerce_ref): Likewise.
7936
7937 * c-typeprint.c (c_type_print_varspec_suffix): Added
7938 check for not yet resolved high bound. If unresolved, print
7939 "variable length" string to the console instead of random
7940 length.
7941
7942 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7943 property and store it as the high bound and flag the range accordingly.
7944 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7945 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7946 * gdbtypes.h (enum range_flags): New enum.
7947 (struct range_bounds): Add flags member.
7948
7949 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7950 points to a constant blob.
7951
7952 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7953 (evaluate_subexp_standard): Pass noside argument.
7954 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7955 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7956 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7957 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7958 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7959
245a5f0b
KS
79602014-04-11 Keith Seitz <keiths@redhat.com>
7961
7962 PR c++/16675
7963 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7964 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7965 reference types.
7966
3bce8237
SA
79672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7968
7969 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7970 (evaluate_subexp_standard): Pass noside argument.
7971 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7972 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7973 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7974 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7975 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7976
92b09522
SA
79772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7978
7979 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7980 points to a constant blob.
7981
e1969afb
SA
79822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7983
7984 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7985 property and store it as the high bound and flag the range accordingly.
7986 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7987 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7988 * gdbtypes.h (enum range_flags): New enum.
7989 (struct range_bounds): Add flags member.
7990
b86138fb
SA
79912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7992
7993 * c-typeprint.c (c_type_print_varspec_suffix): Added
7994 check for not yet resolved high bound. If unresolved, print
7995 "variable length" string to the console instead of random
7996 length.
7997
bcd629a4
SA
79982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7999
8000 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8001 (ada_template_to_fixed_record_type_1): Likewise.
8002 (ada_to_fixed_type_1): Likewise.
8003 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8004 (cp_print_value): Likewise.
8005 * d-valprint.c (dynamic_array_type): Likewise.
8006 * eval.c (evaluate_subexp_with_coercion): Likewise.
8007 * findvar.c (address_of_variable): Likewise.
8008 * jv-valprint.c (java_value_print): Likewise.
8009 * valops.c (value_ind): Likewise.
8010 * value.c (coerce_ref): Likewise.
8011
04b19544
SA
80122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8013
8014 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8015 value and retrieve the dynamic type size.
8016
26cb189f
SA
80172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8018
8019 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8020 passed to sizeof is dynamic evaluate the argument to compute the length.
8021
37c1ab67
SA
80222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8023
8024 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8025 (dwarf2_evaluate_property): New function.
8026 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8027 * dwarf2read.c (attr_to_dynamic_prop): New function.
8028 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8029 attribute.
8030 * gdbtypes.c: Include dwarf2loc.h.
8031 (is_dynamic_type): New function.
8032 (resolve_dynamic_type): New function.
8033 (resolve_dynamic_bounds): New function.
8034 (get_type_length): New function.
8035 (check_typedef): Use get_type_length to compute type length.
8036 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8037 (TYPE_LOW_BOUND_KIND): New macro.
8038 (is_dynamic_type): New function prototype.
8039 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8040 to resolve dynamic properties of the type. Update comment.
8041 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8042
729efb13
SA
80432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8044
8045 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8046 declaring high/low bounds and change uses accordingly. Call
8047 create_range_type instead of create_static_range_type.
8048 * gdbtypes.c (create_range_type): New function.
8049 (create_range_type): Convert bounds into struct bound_prop and pass
8050 them to create_range_type.
8051 * gdbtypes.h (struct bound_prop): New struct.
8052 (create_range_type): New function prototype.
8053 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8054 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8055 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8056 part of the bound.
8057 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8058
0c9c3474
SA
80592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8060
8061 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8062 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8063 * ada-lang.c: All uses of create_range_type updated.
8064 * coffread.c: All uses of create_range_type updated.
8065 * dwarf2read.c: All uses of create_range_type updated.
8066 * f-exp.y: All uses of create_range_type updated.
8067 * m2-valprint.c: All uses of create_range_type updated.
8068 * mdebugread.c: All uses of create_range_type updated.
8069 * stabsread.c: All uses of create_range_type updated.
8070 * valops.c: All uses of create_range_type updated.
8071 * valprint.c: All uses of create_range_type updated.
8072
9d497a19
PA
80732014-04-10 Pedro Alves <palves@redhat.com>
8074
8075 * breakpoint.c (single_step_breakpoints)
8076 (single_step_gdbarch): Move up in the file.
8077 (one_breakpoint_xfer_memory): New function, factored out from ...
8078 (breakpoint_xfer_memory): ... here. Also process single-step
8079 breakpoints.
8080
15a9128a
TG
80812014-04-09 Tristan Gingold <gingold@adacore.com>
8082
8083 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8084 comments.
8085 (darwin_decode_exception_message): Free port only after use.
8086
9c97a070
PL
80872014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8088
8089 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8090 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8091 when setting the size of call_length.
8092
7af389b8
SC
80932014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8094
8095 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8096 dereference TYPE_CODE_REF values.
8097
86ad98c3
JB
80982014-04-07 Joel Brobecker <brobecker@adacore.com>
8099
8100 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8101 end of warning message.
8102
b0aeadb3
DE
81032014-04-03 Doug Evans <dje@google.com>
8104
8105 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8106 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8107
5979d6b6
AM
81082014-04-02 Alan Modra <amodra@gmail.com>
8109
8110 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8111 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8112 (struct symbol_file_add_from_memory_args): Add size field.
8113 (find_vdso_size): New function.
8114 (add_vsyscall_page): Attempt to find vdso size.
8115
0d60c288
DE
81162014-04-01 Doug Evans <dje@google.com>
8117
8118 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8119
a41f2563
TG
81202014-04-01 Tristan Gingold <gingold@adacore.com>
8121
8122 * darwin-nat.c (darwin_encode_reply): Add prototype.
8123 (darwin_decode_exception_message): Reply to unknown inferiors.
8124 (darwin_decode_message): Handle message by id. Ignore message
8125 to unknown inferior.
8126 (darwin_wait): Discard unknown messages, add debug trace.
8127
11a865c8
DE
81282014-03-31 Doug Evans <dje@google.com>
8129
8130 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8131 comp_dir_string.
8132
770e7fc7
DE
81332014-03-31 Doug Evans <dje@google.com>
8134
8135 New option "set print symbol-loading".
8136 * NEWS: Mention it.
8137 * solib.c (solib_read_symbols): Only print symbol loading messages
8138 if requested.
8139 (solib_add): If symbol loading is in "brief" mode, notify user
8140 symbols are being loaded.
8141 (reload_shared_libraries_1): Ditto.
8142 * symfile.c (print_symbol_loading_off): New static global.
8143 (print_symbol_loading_brief): New static global.
8144 (print_symbol_loading_full): New static global.
8145 (print_symbol_loading_enums): New static global.
8146 (print_symbol_loading): New static global.
8147 (print_symbol_loading_p): New function.
8148 (symbol_file_add_with_addrs): Only print symbol loading messages
8149 if requested.
8150 (_initialize_symfile): Register "print symbol-loading" set/show
8151 command.
8152 * symfile.h (print_symbol_loading_p): Declare.
8153
c32c64b7
DE
81542014-03-30 Doug Evans <xdje42@gmail.com>
8155
8156 * infrun.c (set_last_target_status): New function.
8157 (handle_inferior_event): Call it.
8158
7c0bc051
DE
81592014-03-30 Doug Evans <xdje42@gmail.com>
8160
8161 * inferior.h (enum stop_kind): Improve comment.
8162
8776cfe9
JB
81632014-03-28 Joel Brobecker <brobecker@adacore.com>
8164
8165 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8166 a reference, strip the reference layer before calling
8167 the lang_ops value_has_mutated callback.
8168
410a0ff2
SDJ
81692014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8170
8171 Remove some globals from our parser.
8172 * language.c (unk_lang_parser): Add "struct parser_state"
8173 argument.
8174 * language.h (struct language_defn) <la_parser>: Likewise.
8175 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8176 (initialize_expout): Add "struct parser_state" argument.
8177 Rewrite function to use the parser state.
8178 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8179 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8180 write_exp_elt_longcst, write_exp_elt_dblcst,
8181 write_exp_elt_decfloatcst, write_exp_elt_type,
8182 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8183 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8184 write_dollar_variable): Likewise.
8185 (parse_exp_in_context_1): Use parser state.
8186 (insert_type_address_space): Add "struct parser_state" argument.
8187 Use parser state.
8188 (increase_expout_size): New function.
8189 * parser-defs.h: Forward declare "struct language_defn" and
8190 "struct parser_state".
8191 (expout, expout_size, expout_ptr): Remove extern declarations.
8192 (parse_gdbarch, parse_language): Rewrite macro declarations to
8193 accept the parser state.
8194 (struct parser_state): New struct.
8195 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8196 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8197 write_exp_elt_decfloatcst, write_exp_elt_type,
8198 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8199 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8200 write_exp_msymbol, write_dollar_variable,
8201 mark_struct_expression, insert_type_address_space): Add "struct
8202 parser_state" argument.
8203 (increase_expout_size): New function.
8204 * utils.c (do_clear_parser_state): New function.
8205 (make_cleanup_clear_parser_state): Likewise.
8206 * utils.h (make_cleanup_clear_parser_state): New function
8207 prototype.
8208 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8209 Update calls to write_exp* in order to pass the parser state.
8210 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8211 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8212 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8213 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8214 * stap-probe.c (stap_parse_register_operand): Likewise.
8215 (stap_parse_single_operand): Likewise.
8216 (stap_parse_argument_1): Likewise.
8217 (stap_parse_argument): Use parser state.
8218 * stap-probe.h: Include "parser-defs.h".
8219 (struct stap_parse_info) <pstate>: New field.
8220 * c-exp.y (parse_type): Rewrite to use parser state.
8221 (yyparse): Redefine to c_parse_internal.
8222 (pstate): New global variable.
8223 (parse_number): Add "struct parser_state" argument.
8224 (write_destructor_name): Likewise.
8225 (type_exp): Update calls to write_exp* and similars in order to
8226 use parser state.
8227 (exp1, exp, variable, qualified_name, space_identifier,
8228 typename, typebase): Likewise.
8229 (write_destructor_name, parse_number, lex_one_token,
8230 classify_name, classify_inner_name, c_parse): Add "struct
8231 parser_state" argument. Update function to use parser state.
8232 * c-lang.h: Forward declare "struct parser_state".
8233 (c_parse): Add "struct parser_state" argument.
8234 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8235 (yyparse): Redefine macro to ada_parse_internal.
8236 (pstate): New variable.
8237 (write_int, write_object_renaming, write_var_or_type,
8238 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8239 type_int, type_long, type_long_long, type_float, type_double,
8240 type_long_double, type_char, type_boolean, type_system_address):
8241 Add "struct parser_state" argument.
8242 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8243 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8244 var_or_type, aggregate, aggregate_component_list,
8245 positional_list, others, component_group,
8246 component_associations): Update calls to write_exp* and similar
8247 functions in order to use parser state.
8248 (ada_parse, write_var_from_sym, write_int,
8249 write_exp_op_with_string, write_object_renaming,
8250 find_primitive_type, write_selectors, write_ambiguous_var,
8251 write_var_or_type, write_name_assoc, type_int, type_long,
8252 type_long_long, type_float, type_double, type_long_double,
8253 type_char, type_boolean, type_system_address): Add "struct
8254 parser_state" argument. Adjust function to use parser state.
8255 * ada-lang.c (parse): Likewise.
8256 * ada-lang.h: Forward declare "struct parser_state".
8257 (ada_parse): Add "struct parser_state" argument.
8258 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8259 calls to both functions.
8260 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8261 parser state.
8262 (yyparse): Redefine macro to f_parse_internal.
8263 (pstate): New variable.
8264 (parse_number): Add "struct parser_state" argument.
8265 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8266 and similars in order to use parser state.
8267 (parse_number): Adjust code to use parser state.
8268 (yylex): Likewise.
8269 (f_parse): New function.
8270 * f-lang.h: Forward declare "struct parser_state".
8271 (f_parse): Add "struct parser_state" argument.
8272 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8273 parser state.
8274 (yyparse): Redefine macro for java_parse_internal.
8275 (pstate): New variable.
8276 (push_expression_name, push_expression_name, insert_exp): Add
8277 "struct parser_state" argument.
8278 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8279 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8280 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8281 PostIncrementExpression, PostDecrementExpression,
8282 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8283 UnaryExpressionNotPlusMinus, CastExpression,
8284 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8285 RelationalExpression, EqualityExpression, AndExpression,
8286 ExclusiveOrExpression, InclusiveOrExpression,
8287 ConditionalAndExpression, ConditionalOrExpression,
8288 ConditionalExpression, Assignment, LeftHandSide): Update
8289 calls to write_exp* and similars in order to use parser state.
8290 (parse_number): Ajust code to use parser state.
8291 (yylex): Likewise.
8292 (java_parse): New function.
8293 (push_variable): Add "struct parser_state" argument. Adjust
8294 code to user parser state.
8295 (push_fieldnames, push_qualified_expression_name,
8296 push_expression_name, insert_exp): Likewise.
8297 * jv-lang.h: Forward declare "struct parser_state".
8298 (java_parse): Add "struct parser_state" argument.
8299 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8300 parser state.
8301 (yyparse): Redefine macro to m2_parse_internal.
8302 (pstate): New variable.
8303 (type_exp, exp, fblock, variable, type): Update calls to
8304 write_exp* and similars to use parser state.
8305 (yylex): Likewise.
8306 (m2_parse): New function.
8307 * m2-lang.h: Forward declare "struct parser_state".
8308 (m2_parse): Add "struct parser_state" argument.
8309 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8310 * objc-lang.h: Forward declare "struct parser_state".
8311 (end_msglist): Add "struct parser_state" argument.
8312 * p-exp.y (parse_type): Rewrite macro to use parser state.
8313 (yyparse): Redefine macro to pascal_parse_internal.
8314 (pstate): New variable.
8315 (parse_number): Add "struct parser_state" argument.
8316 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8317 write_exp* and similars in order to use parser state.
8318 (parse_number, yylex): Adjust code to use parser state.
8319 (pascal_parse): New function.
8320 * p-lang.h: Forward declare "struct parser_state".
8321 (pascal_parse): Add "struct parser_state" argument.
8322 * go-exp.y (parse_type): Rewrite macro to use parser state.
8323 (yyparse): Redefine macro to go_parse_internal.
8324 (pstate): New variable.
8325 (parse_number): Add "struct parser_state" argument.
8326 (type_exp, exp1, exp, variable, type): Update calls to
8327 write_exp* and similars in order to use parser state.
8328 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8329 to use parser state.
8330 (go_parse): Likewise.
8331 * go-lang.h: Forward declare "struct parser_state".
8332 (go_parse): Add "struct parser_state" argument.
8333
342587c4
DE
83342014-03-27 Doug Evans <dje@google.com>
8335
8336 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8337
33e80786
DE
83382014-03-27 Doug Evans <dje@google.com>
8339
8340 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8341 Remove argument abbrev_section. All callers updated.
8342
1dbab08b
DE
83432014-03-27 Doug Evans <dje@google.com>
8344
8345 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8346 addr_base, ranges_base.
8347
318d3177
KS
83482014-03-26 Keith Seitz <keiths@redhat.com>
8349
8350 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8351 types, not VAR_DOMAIN.
8352
1e54db15
SL
83532014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8354
8355 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8356 "ra" registers.
8357 * features/nios2-linux.c: Regenerated.
8358 * features/nios2.c: Regenerated.
8359
d3839ede
PA
83602014-03-25 Pedro Alves <palves@redhat.com>
8361
8362 * cli/cli-script.c (script_from_file): Force the interpreter to
8363 sync mode.
8364
7588d2ec
PL
83652014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8366
8367 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8368 small stack allocation.
8369
a6290449
TG
83702014-03-24 Tristan Gingold <gingold@adacore.com>
8371
8372 * darwin-nat.c (exc_server): Remove unused prototype.
8373 (darwin_dump_message): Correctly display data on x86_64.
8374 (darwin_encode_reply): Fix style.
8375 Add comments and fix indentation.
8376
31ae9d24 83772014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8378
8379 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8380
6339bfc4
DE
83812014-03-22 Doug Evans <xdje42@gmail.com>
8382
8383 * infcmd.c: Whitespace fixes.
8384 (interrupt_command): Merge two function comments into one.
8385
0a07590b
DE
83862014-03-22 Doug Evans <xdje42@gmail.com>
8387
8388 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8389 All uses updated.
8390
b55fbac4
YQ
83912014-03-22 Yao Qi <yao@codesourcery.com>
8392
8393 * remote.c (target_read_live_memory): Remove.
8394 (memory_xfer_live_readonly_partial): Rename it to
8395 remote_xfer_live_readonly_partial. Remove argument 'object'.
8396 All callers updated. Call remote_read_bytes_1
8397 instead of target_read_live_memory.
8398 * tracepoint.c (set_traceframe_number): Remove.
8399 (make_cleanup_restore_traceframe_number): Likewise .
8400 * tracepoint.h (set_traceframe_number): Remove declaration.
8401 (make_cleanup_restore_traceframe_number): Likewise.
8402
9217e74e
YQ
84032014-03-22 Yao Qi <yao@codesourcery.com>
8404
8405 * remote.c (remote_read_bytes): Move code on reading from the
8406 remote stub to ...
8407 (remote_read_bytes_1): ... here. New function.
8408
8acf9577
YQ
84092014-03-22 Yao Qi <yao@codesourcery.com>
8410
8411 * ctf.c (ctf_xfer_partial): Check the return value of
8412 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8413 return TARGET_XFER_UNAVAILABLE.
8414 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8415 * target.c (target_read_live_memory): Move it to remote.c.
8416 (memory_xfer_live_readonly_partial): Likewise.
8417 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8418 * remote.c (target_read_live_memory): Moved from target.c.
8419 (memory_xfer_live_readonly_partial): Likewise.
8420 (remote_read_bytes): Factored out from
8421 memory_xfer_partial_1.
8422
feef67ab
DE
84232014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8424
8425 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8426 NULL pointer.
8427
b65dc60b
PA
84282014-03-21 Pedro Alves <palves@redhat.com>
8429
8430 * infrun.c (normal_stop): Extend comment.
8431
b4ab256d
HZ
84322014-03-21 Hui Zhu <hui@codesourcery.com>
8433 Pedro Alves <palves@redhat.com>
8434
8435 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8436 static buffer.
8437 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8438 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8439 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8440
deba7593
MR
84412014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8442
8443 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8444 `z' formatted output modifier.
8445
1bff71c3
SDJ
84462014-03-20 Tom Tromey <tromey@redhat.com>
8447 Sergio Durigan Junior <sergiodj@redhat.com>
8448
8449 * probe.c (parse_probes): Turn assert into an ordinary error.
8450 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8451 exceptions when parsing probes. Rearrange the code for clarity.
8452
90e28950
TT
84532014-03-20 Tom Tromey <tromey@redhat.com>
8454
8455 PR gdb/14135
8456 * top.c (execute_command): Only dispatch events if the command
8457 started the target.
8458
beb460e8
PA
84592014-03-20 Tom Tromey <tromey@redhat.com>
8460
8461 PR cli/15718
8462 * infcall.c: Include event-top.h.
8463 (run_inferior_call): Call async_disable_stdin if needed.
8464
99619bea
PA
84652014-03-20 Pedro Alves <palves@redhat.com>
8466
8467 * infrun.c (prepare_to_proceed): Delete.
8468 (thread_still_needs_step_over): New function.
8469 (find_thread_needs_step_over): New function.
8470 (proceed): If the current thread needs a step-over, set its
8471 steping_over_breakpoint flag. Adjust to use
8472 find_thread_needs_step_over instead of prepare_to_proceed.
8473 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8474 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8475 breakpoint.
8476 (switch_back_to_stepped_thread): Step over breakpoints of all
8477 threads not the stepping thread, before switching back to the
8478 stepping thread.
8479
2adfaa28
PA
84802014-03-20 Pedro Alves <palves@redhat.com>
8481
8482 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8483 extern.
8484 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8485 * infrun.c (saved_singlestep_ptid)
8486 (stepping_past_singlestep_breakpoint): Delete.
8487 (resume): Remove stepping_past_singlestep_breakpoint handling.
8488 (proceed): Store the prev_pc of the stepping thread too.
8489 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8490 singlestep_pc.
8491 (enum infwait_states): Delete infwait_thread_hop_state.
8492 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8493 field.
8494 (handle_inferior_event): Adjust.
8495 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8496 handling and the thread-hop code. Before removing single-step
8497 breakpoints, check whether the thread hit a single-step breakpoint
8498 of another thread. If it did, the trap is not a random signal.
8499 (switch_back_to_stepped_thread): If the event thread hit a
8500 single-step breakpoint, unblock it before switching to the
8501 stepping thread. Handle the case of the stepped thread having
8502 advanced already.
8503 (keep_going): Handle the case of the current thread moving past a
8504 single-step breakpoint.
8505
31e77af2
PA
85062014-03-20 Pedro Alves <palves@redhat.com>
8507
8508 PR breakpoints/7143
8509 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8510 are being stepped over.
8511 (breakpoint_address_match): Make extern.
8512 * breakpoint.h (breakpoint_address_match): New declaration.
8513 * inferior.h (stepping_past_instruction_at): New declaration.
8514 * infrun.c (struct step_over_info): New type.
8515 (step_over_info): New global.
8516 (set_step_over_info, clear_step_over_info)
8517 (stepping_past_instruction_at): New functions.
8518 (handle_inferior_event): Clear the step-over info when
8519 trap_expected is cleared.
8520 (resume): Remove now stale comment.
8521 (clear_proceed_status): Clear step-over info.
8522 (proceed): Adjust step-over handling to set or clear the step-over
8523 info instead of removing all breakpoints.
8524 (handle_signal_stop): When setting up a thread-hop, don't remove
8525 breakpoints here.
8526 (stop_stepping): Clear step-over info.
8527 (keep_going): Adjust step-over handling to set or clear step-over
8528 info and then always inserting breakpoints, instead of removing
8529 all breakpoints when stepping over one.
8530
b9f437de
PA
85312014-03-20 Pedro Alves <palves@redhat.com>
8532
8533 * infrun.c (previous_inferior_ptid): Adjust comment.
8534 (deferred_step_ptid): Delete.
8535 (infrun_thread_ptid_changed, prepare_to_proceed)
8536 (init_wait_for_inferior): Adjust.
8537 (handle_signal_stop): Delete deferred_step_ptid handling.
8538
06c868a8
JK
85392014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8540
8541 PR gdb/15358
8542 * defs.h (sync_quit_force_run): New declaration.
8543 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8544 * event-top.c (async_sigterm_handler): New declaration.
8545 (async_sigterm_token): New variable.
8546 (async_init_signals): Create also async_sigterm_token.
8547 (async_sigterm_handler): New function.
8548 (sync_quit_force_run): New variable.
8549 (handle_sigterm): Replace quit_force call by other calls.
8550 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8551
dea80df0
MR
85522014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8553
8554 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8555 offset into SPE pseudo registers.
8556
0c7e1a46
PA
85572014-03-18 Pedro Alves <palves@redhat.com>
8558
8559 PR gdb/13860
8560 * inferior.h (print_stop_event): Declare.
8561 * infrun.c (print_stop_event): New, factored out from ...
8562 (normal_stop): ... this.
8563 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8564 of bpstat_print/print_stack_frame.
8565
9c1fcd01
TT
85662014-03-17 Tom Tromey <tromey@redhat.com>
8567
8568 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8569
11aa919a
PMR
85702014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8571
8572 * ada-lang.c (decode_constrained_packed_array): Perform a
8573 minimal coercion for reference with coerce_ref instead of
8574 ada_coerce_ref.
8575
d4ccb5e0
TG
85762014-03-17 Tristan Gingold <gingold@adacore.com>
8577
8578 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8579 (darwin_solib_create_inferior_hook): Emit a warning if version
8580 is unhandled.
8581
49840f2a
UW
85822014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8583
8584 * python/py-value.c (get_field_flag): Cast flag_name argument to
8585 PyObject_GetAttrString to support Python 2.4.
8586
ed4123e5
JK
85872014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8588
8589 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8590 (Global Maintainers): Remove Jan Kratochvil.
8591
d6b64346
PA
85922014-03-14 Pedro Alves <palves@redhat.com>
8593
8594 * inferior.h (terminal_ours_for_output): Rename to ...
8595 (child_terminal_ours_for_output): ... this.
8596 (terminal_save_ours): Rename to ...
8597 (child_terminal_save_ours): ... this.
8598 (terminal_ours): Rename to ...
8599 (child_terminal_ours): ... this.
8600 (terminal_inferior): Rename to ...
8601 (child_terminal_inferior): ... this.
8602 (terminal_init_inferior): Rename to ...
8603 (child_terminal_init_inferior): ... this.
8604 (terminal_init_inferior_with_pgrp): Rename to ...
8605 (child_terminal_init_inferior_with_pgrp): ... this.
8606 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8607 (child_terminal_init_with_pgrp): ... this.
8608 (terminal_save_ours): Rename to ...
8609 (child_terminal_save_ours): ... this.
8610 (terminal_init_inferior): Rename to ...
8611 (child_terminal_init): ... this. Adjust.
8612 (terminal_inferior): Rename to ...
8613 (child_terminal_inferior): ... this.
8614 (terminal_ours_for_output): Rename to ...
8615 (child_terminal_ours_for_output): ... this. Adjust.
8616 (terminal_ours): Rename to ...
8617 (child_terminal_ours): ... this.
8618 (terminal_ours_1): Rename to ...
8619 (child_terminal_ours_1): ... this. Adjust.
8620 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8621 * windows-nat.c (do_initial_windows_stuff): Adjust.
8622 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8623 (gnu_terminal_init): ... this. Adjust.
8624 (gnu_target): Adjust.
8625 * inf-child.c (inf_child_target): Adjust.
8626
5a1e8c7a
DE
86272014-03-13 Doug Evans <xdje42@gmail.com>
8628
8629 PR guile/16612
8630 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8631 new eq?-hashtab.
8632
350e1a76
DE
86332014-03-13 Doug Evans <xdje42@gmail.com>
8634
8635 * value.c (record_latest_value): Call release_value_or_incref
8636 instead of release_value.
8637
a69900ae
PA
86382014-03-13 Pedro Alves <palves@redhat.com>
8639
8640 * procfs.c (procfs_target): Don't override to_shortname,
8641 to_longname or to_doc.
8642
5db9f0bd
PA
86432014-03-13 Pedro Alves <palves@redhat.com>
8644
8645 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8646 Unix in user visible strings.
8647
5e3a2c38
SS
86482014-03-12 Stan Shebs <stan@codesourcery.com>
8649
8650 * gdbtypes.h: Annotate comments for Doxygen, add a page
8651 block comment with some general info.
8652
8bc2fe48
PA
86532014-03-12 Pedro Alves <palves@redhat.com>
8654
8655 * infcmd.c (prepare_execution_command): New function, factored out
8656 from several execution commands.
8657 (run_command_1, continue_command, step_1, jump_command)
8658 (signal_command, until_command, advance_command, finish_command)
8659 (attach_command): Use prepare_execution_command.
8660
638c5f49
OJ
86612014-03-12 Omair Javaid <omair.javaid@linaro.org>
8662
8663 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8664 (MAX_BPTS): Define.
8665 (MAX_WPTS): Define.
8666 (struct arm_linux_thread_points): Removed.
8667 (struct arm_linux_process_info): New.
8668 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8669 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8670 (arm_linux_find_breakpoints_by_tid): Removed.
8671 (struct arch_lwp_info): New.
8672 (arm_linux_find_process_pid): New functions.
8673 (arm_linux_add_process): New functions.
8674 (arm_linux_process_info_get): New functions.
8675 (arm_linux_forget_process): New function.
8676 (arm_linux_get_debug_reg_state): New function.
8677 (struct update_registers_data): New.
8678 (update_registers_callback): New function.
8679 (arm_linux_insert_hw_breakpoint1): Updated.
8680 (arm_linux_remove_hw_breakpoint1): Updated.
8681 (arm_linux_insert_hw_breakpoint): Updated.
8682 (arm_linux_remove_hw_breakpoint): Updated.
8683 (arm_linux_insert_watchpoint): Updated.
8684 (arm_linux_remove_watchpoint): Updated.
8685 (arm_linux_new_thread): Updated.
8686 (arm_linux_prepare_to_resume): New function.
8687 (arm_linux_new_fork): New function.
8688 (_initialize_arm_linux_nat): Updated.
8689
6d03af93
PA
86902014-03-12 Pedro Alves <palves@redhat.com>
8691
8692 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8693
b3ccfe11
TT
86942014-03-12 Tom Tromey <tromey@redhat.com>
8695
8696 * inf-child.c (return_zero): New function.
8697 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8698 * aix-thread.c (aix_thread_inferior_created): New function.
8699 (aix_thread_attach): Remove.
8700 (init_aix_thread_ops): Don't set to_attach.
8701 (_initialize_aix_thread): Register inferior_created observer.
8702 * corelow.c (init_core_ops): Don't set to_attach or
8703 to_create_inferior.
8704 * exec.c (init_exec_ops): Don't set to_attach or
8705 to_create_inferior.
8706 * infcmd.c (run_command_1): Use find_run_target. Make direct
8707 target calls.
8708 (attach_command): Use find_attach_target. Make direct target
8709 calls.
8710 * record-btrace.c (init_record_btrace_ops): Don't set
8711 to_create_inferior.
8712 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8713 Remove.
8714 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8715 set to_create_inferior.
8716 * target.c (complete_target_initialization): Add assertion.
8717 (target_create_inferior): Remove.
8718 (find_default_attach, find_default_create_inferior): Remove.
8719 (find_attach_target, find_run_target): New functions.
8720 (find_default_is_async_p, find_default_can_async_p)
8721 (target_supports_non_stop, target_attach): Remove.
8722 (init_dummy_target): Don't set to_create_inferior or
8723 to_supports_non_stop.
8724 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8725 TARGET_DEFAULT_FUNC.
8726 <to_create_inferior>: Add comment.
8727 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8728 TARGET_DEFAULT_RETURN.
8729 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8730 (find_attach_target, find_run_target): Declare.
8731 (target_create_inferior): Remove.
8732 (target_has_execution_1): Update comment.
8733 (target_supports_non_stop): Remove.
8734 * target-delegates.c: Rebuild.
8735
91f83b02
PA
87362014-03-12 Pedro Alves <palves@redhat.com>
8737
8738 * inf-child.h: Update comment to not mention Unix.
8739
f1aea813
PA
87402014-03-12 Pedro Alves <palves@redhat.com>
8741
8742 * inf-child.c: Update top comment to not mention Unix. Add
8743 generic comment describing how this target is meant to be used.
8744 (inf_child_post_attach, inf_child_post_startup_inferior)
8745 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8746 Unix in comment.
8747
ee8e9165
PA
87482014-03-12 Pedro Alves <palves@redhat.com>
8749
8750 * nto-procfs.c: Include inf-child.h.
8751 (procfs_ops): Delete global.
8752 (procfs_can_run): Delete method.
8753 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8754 target pointer instead of referencing procfs_ops.
8755 (procfs_prepare_to_store): Delete.
8756 (init_procfs_ops): Delete function.
8757 (procfs_target): New function, based on init_procfs_ops, but
8758 inherit inf_child_target.
8759 (_initialize_procfs): Use procfs_target.
8760
51a9c8c5
PA
87612014-03-12 Pedro Alves <palves@redhat.com>
8762
8763 * windows-nat.c: Include inf-child.h.
8764 (windows_ops): Delete global.
8765 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8766 methods.
8767 (init_windows_ops): Delete function.
8768 (windows_target): New function, based on init_windows_ops, but
8769 inherit inf_child_target.
8770 (_initialize_windows_nat): Use windows_target. Install x86
8771 specific target methods here.
8772
c1966e26
DE
87732014-03-10 Doug Evans <xdje42@gmail.com>
8774
8775 * guile/guile.c (call_initialize_gdb_module): New function.
8776 (initialize_guile): Replace call to scm_init_guile with call to
8777 scm_with_guile.
8778
023db19c
JB
87792014-03-10 Joel Brobecker <brobecker@adacore.com>
8780
8781 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8782 in call to TYPE_CODE macro.
8783
5ec18f2b
JG
87842014-03-10 Jerome Guitton <guitton@adacore.com>
8785
8668be63
JB
8786 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8787 Resolve tagged types to full view.
5ec18f2b 8788
7d03f2eb
HZ
87892014-03-10 Hui Zhu <hui@codesourcery.com>
8790
8791 * target.h (target_insert_breakpoint): Remove "hardware" from its
8792 comments.
8793
c5164cbc
DE
87942014-03-07 Doug Evans <dje@google.com>
8795
8796 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8797
c4a3fee2
DE
87982014-03-07 Doug Evans <dje@google.com>
8799
8800 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8801 Remove unused local comp_dir_attr. Assert exactly one of
8802 stub_comp_unit_die, stub_comp_dir is non-NULL.
8803
3156469c
JB
88042014-03-07 Joel Brobecker <brobecker@adacore.com>
8805
8806 * target.h (complete_target_initialization, add_target):
8807 Add comment.
8808
c1a7b7c6
PA
88092014-03-07 Pedro Alves <palves@redhat.com>
8810
8811 * go32-nat.c: Include inf-child.h.
8812 (go32_ops): Delete global.
8813 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8814 Delete methods.
8815 (go32_create_inferior): Push the passed in target pointer instead
8816 of referencing go32_ops.
8817 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8818 (go32_target): New function, based on init_go32_ops, but inherit
8819 inf_child_target.
8820 (_initialize_go32_nat): Use go32_target. Move parts of
8821 init_go32_ops here.
8822
d3c1a85f
JB
88232014-03-06 Joel Brobecker <brobecker@adacore.com>
8824
8825 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8826 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8827 SYMBOL_VALUE_ADDRESS.
8828 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8829
5fa1d40e
YQ
88302014-03-06 Yao Qi <yao@codesourcery.com>
8831
8832 * breakpoint.c (get_tracepoint_by_number): Remove argument
8833 optional_p. All callers updated. Adjust comments. Update
8834 output message.
8835 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8836
0c13193f
YQ
88372014-03-06 Yao Qi <yao@codesourcery.com>
8838
8839 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8840 early if get_number returns zero. Use 'p' instead of 'args'.
8841
2217da06
YQ
88422014-03-06 Yao Qi <yao@codesourcery.com>
8843
8844 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8845 message.
8846
cc3da688
YQ
88472014-03-06 Yao Qi <yao@codesourcery.com>
8848
8849 PR breakpoints/16508
8850 * tracepoint.c (check_trace_running): New function.
8851 (trace_find_command): Move code to check_trace_running and
8852 call check_trace_running.
8853 (trace_find_pc_command): Likewise.
8854 (trace_find_tracepoint_command): Likewise.
8855 (trace_find_line_command): Likewise.
8856 (trace_find_range_command): Likewise.
8857 * tracepoint.h (check_trace_running): Likewise.
8858 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8859
6a5f844b
YQ
88602014-03-06 Yao Qi <yao@codesourcery.com>
8861
8862 * target.h (struct target_ops) <to_traceframe_info>: Use
8863 TARGET_DEFAULT_NORETURN (tcomplain ()).
8864 * target-delegates.c: Regenerated.
8865
0f26cec1
PA
88662014-03-05 Pedro Alves <palves@redhat.com>
8867
8868 PR gdb/16575
8869 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8870 void. Update comment.
8871 (dcache_xfer_memory): Delete.
8872 (dcache_read_memory_partial): New, based on the read bits of
8873 dcache_xfer_memory.
8874 (dcache_update): Add status parameter. Use ULONGEST for len, and
8875 adjust. Discard cache lines if the reason for the update was
8876 error.
8877 * dcache.h (dcache_xfer_memory): Delete declaration.
8878 (dcache_read_memory_partial): New declaration.
8879 (dcache_update): Update prototype.
8880 * target.c (raw_memory_xfer_partial): Update the dcache here.
8881 (memory_xfer_partial_1): Don't handle dcache writes here.
8882
b2b255bd
MF
88832014-03-05 Mike Frysinger <vapier@gentoo.org>
8884
8885 * remote-sim.c (gdbsim_load): Add const to prog.
8886
5d9cf8a4
TT
88872014-03-03 Tom Tromey <tromey@redhat.com>
8888
8889 * elfread.c (probe_key): Change to bfd_data.
8890 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8891 now per-BFD, not per-objfile.
8892 * stap-probe.c (stap_probe_destroy): Update comment.
8893 (handle_stap_probe): Allocate on the per-BFD obstack.
8894
729662a5
TT
88952014-03-03 Tom Tromey <tromey@redhat.com>
8896
8897 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8898 * breakpoint.c (create_longjmp_master_breakpoint): Use
8899 get_probe_address.
8900 (add_location_to_breakpoint, bkpt_probe_insert_location)
8901 (bkpt_probe_remove_location): Update.
8902 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8903 * elfread.c (elf_symfile_relocate_probe): Remove.
8904 (elf_probe_fns): Update.
8905 (insert_exception_resume_breakpoint): Change type of "probe"
8906 parameter to bound_probe.
8907 (check_exception_resume): Update.
8908 * objfiles.c (objfile_relocate1): Don't relocate probes.
8909 * probe.c (bound_probe_s): New typedef.
8910 (parse_probes): Use get_probe_address. Set sal's objfile.
8911 (find_probe_by_pc): Return a bound_probe.
8912 (collect_probes): Return a VEC(bound_probe_s).
8913 (compare_probes): Update.
8914 (gen_ui_out_table_header_info): Change type of "probes"
8915 parameter. Update.
8916 (info_probes_for_ops): Update.
8917 (get_probe_address): New function.
8918 (probe_safe_evaluate_at_pc): Update.
8919 * probe.h (struct probe_ops) <get_probe_address>: New field.
8920 <set_semaphore, clear_semaphore>: Add objfile parameter.
8921 (struct probe) <objfile>: Remove field.
8922 <arch>: New field.
8923 <address>: Update comment.
8924 (struct bound_probe): New.
8925 (find_probe_by_pc): Return a bound_probe.
8926 (get_probe_address): Declare.
8927 * solib-svr4.c (struct probe_and_action) <address>: New field.
8928 (hash_probe_and_action, equal_probe_and_action): Update.
8929 (register_solib_event_probe): Add address parameter.
8930 (solib_event_probe_at): Update.
8931 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8932 get_probe_address.
8933 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8934 (stap_get_probe_address): New function.
8935 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8936 (compile_probe_arg): Update.
8937 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8938 address.
8939 (handle_stap_probe): Don't relocate the probe.
8940 (stap_relocate): Remove.
8941 (stap_gen_info_probes_table_values): Update.
8942 (stap_probe_ops): Remove stap_relocate.
8943 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8944 (debug_sym_probe_fns): Update.
8945 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8946 * symtab.c (init_sal): Use memset.
8947 * symtab.h (struct symtab_and_line) <objfile>: New field.
8948 * tracepoint.c (start_tracing, stop_tracing): Update.
8949
ff887920
TT
89502014-03-03 Tom Tromey <tromey@redhat.com>
8951
8952 * probe.h (parse_probes, find_probe_by_pc)
8953 (find_probes_in_objfile): Fix comments.
8954
f0407826
DE
89552014-03-02 Doug Evans <xdje42@gmail.com>
8956
8957 * infrun.c (handle_signal_stop): Replace test for
8958 TARGET_WAITKIND_STOPPED with an assert.
8959
35e6a711
DE
89602014-03-02 Doug Evans <xdje42@gmail.com>
8961
8962 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8963
667f9d0b
DE
89642014-03-02 Doug Evans <xdje42@gmail.com>
8965
8966 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8967
dc92ace0
MK
89682014-03-01 Mark Kettenis <kettenis@gnu.org>
8969
8970 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8971
a900370f
MK
89722014-03-01 Mark Kettenis <kettenis@gnu.org>
8973
8974 * i386obsd-nat.c: Include "obsd-nat.h".
8975 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8976 add_target.
8977 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8978
b72a7981
MK
89792014-03-01 Mark Kettenis <kettenis@gnu.org>
8980
8981 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8982
96c70aba
MK
89832014-03-01 Mark Kettenis <kettenis@gnu.org>
8984
8985 * mips64obsd-nat.c: Include "obsd-nath".
8986 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8987 add_target
8988 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8989
874a80af
MK
89902014-03-01 Mark Kettenis <kettenis@gnu.org>
8991
8fd408f1
MK
8992 * amd64obsd-nat.c: Include "obsd-nat,h.
8993 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8994 add_target.
874a80af
MK
8995 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8996
9cf95373
SC
89972014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8998
8999 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9000 (find_overload_match): Update call to find_oload_champ.
9001 (find_oload_champ_namespace_loop): Likewise
9002
863e4da4
MK
90032014-02-28 Mark Kettenis <kettenis@gnu.org>
9004
025cac40
MK
9005 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9006
1ed586ce
MK
9007 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9008 * config/sparc/obsd64.mh: New file.
9009 * sparc64obsd-nat.c: New file.
9010
863e4da4
MK
9011 * obsd-nat.h: New file.
9012 * obsd-nat.c: New file.
9013 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9014 (ALLDEPFILES): Add obsd-nat.c.
9015
89de4da4
TT
90162014-02-28 Tom Tromey <tromey@redhat.com>
9017
9018 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9019 * cli-out.h (cli_ui_out_impl): Now const.
9020 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9021 * ui-out.c (struct ui_out) <impl>: Now const.
9022 (default_ui_out_impl): Now const.
9023 (ui_out_new): Make 'impl' parameter const.
9024 * ui-out.h (ui_out_new): Update.
9025
c725e7b6
MK
90262014-02-27 Mark Kettenis <kettenis@gnu.org>
9027
9028 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9029
670b46b3
MK
90302014-02-27 Mark Kettenis <kettenis@gnu.org>
9031
9032 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9033
c91550fc
JK
90342014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9035
9036 Additional PR 8882 fix.
9037 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9038
2fa0369e
PA
90392014-02-27 Pedro Alves <palves@redhat.com>
9040
9041 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9042 isn't set.
9043
d632a097
PA
90442014-02-27 Pedro Alves <palves@redhat.com>
9045
9046 PR 12702
9047 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9048 * nat/linux-waitpid.c: Include string.h.
9049 (status_to_str): Moved here and made extern.
9050 * nat/linux-waitpid.h (status_to_str): New declaration.
9051
2ebd5a35
HZ
90522014-02-27 Hui Zhu <hui@codesourcery.com>
9053
9054 PR 12702
9055 * infrun.c (ptid_match): Move ...
9056 * common/ptid.c (ptid_match): ... here.
9057 * inferior.h (ptid_match): Move ...
9058 * common/ptid.h (ptid_match): ... here.
9059
3cdd631f
MK
90602014-02-27 Mark Kettenis <kettenis@gnu.org>
9061
9062 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9063 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9064 gdb_target_obs.
9065
bee30a64
MK
90662014-02-27 Mark Kettenis <kettenis@gnu.org>
9067
9068 * obsd-tdep.c (obsd_auxv_parse): New function.
9069 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9070
9071 * gdbarch.sh (auxv_parse): New.
9072 * gdbarch.h: Regenerated.
9073 * gdbarch.c: Regenerated.
9074 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9075
7a5a839f
LC
90762014-02-26 Ludovic Courtès <ludo@gnu.org>
9077
9078 * guile/scm-value.c (gdbscm_history_append_x): New function.
9079 (value_functions): Add it.
9080
31aa7e4e
JB
90812014-02-27 Joel Brobecker <brobecker@adacore.com>
9082
9083 * dwarf2read.c (attr_value_as_address): New function.
9084 (dwarf2_find_base_address, read_call_site_scope): Use
9085 attr_value_as_address in place of DW_ADDR.
9086 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9087 the low and high addresses. Slight rework of the handling
9088 of the high pc being a constant form, and limit it to
9089 DWARF verson 4 or higher.
9090 (dwarf2_record_block_ranges): Likewise.
9091 (read_partial_die): Likewise.
9092 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9093
9b333ba3
TT
90942014-02-26 Tom Tromey <tromey@redhat.com>
9095
9096 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9097
5f6cac40
TT
90982014-02-26 Tom Tromey <tromey@redhat.com>
9099
9100 * elfread.c (elf_read_minimal_symbols): Return early if
9101 minimal symbols have already been read. Add "ei" parameter.
9102 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9103 * minsyms.c (prim_record_minimal_symbol_full): Update.
9104 * objfiles.h (struct objstats) <n_minsyms>: Move...
9105 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9106 * symmisc.c (print_objfile_statistics): Update.
9107
2750ef27
TT
91082014-02-26 Tom Tromey <tromey@redhat.com>
9109
9110 * elfread.c (elf_read_minimal_symbols): New function, from
9111 elf_symfile_read.
9112 (elf_symfile_read): Call it.
9113
34643a32
TT
91142014-02-26 Tom Tromey <tromey@redhat.com>
9115
9116 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9117 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9118 (lookup_minimal_symbol_solib_trampoline)
9119 (lookup_minimal_symbol_by_pc_section_1)
9120 (lookup_minimal_symbol_and_objfile): Update.
9121 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9122 Don't allocate a minimal symbol if minsyms have already been read.
9123 (build_minimal_symbol_hash_tables): Update.
9124 (install_minimal_symbols): Do nothing if minsyms already read.
9125 Use the per-BFD obstack.
9126 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9127 * objfiles.c (allocate_objfile): Call
9128 terminate_minimal_symbol_table later.
9129 (have_minimal_symbols): Update.
9130 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9131 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9132 Move from struct objfile.
9133 <minsyms_read>: New field.
9134 (struct objfile) <msymbols, minimal_symbol_count,
9135 msymbol_hash, msymbol_demangled_hash>: Move.
9136 (ALL_OBJFILE_MSYMBOLS): Update.
9137 * symfile.c (read_symbols): Set minsyms_read.
9138 (reread_symbols): Update.
9139 * symmisc.c (dump_objfile, dump_msymbols): Update.
9140
2273f0ac
TT
91412014-02-26 Tom Tromey <tromey@redhat.com>
9142
9143 * minsyms.c (msymbols_sort): Remove.
9144 * minsyms.h (msymbols_sort): Remove.
9145 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9146 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9147 * elfread.c (elf_symtab_read): Don't add section offsets.
9148 * xcoffread.c (record_minimal_symbol): Don't add section offset
9149 to minimal symbol address.
9150 * somread.c (text_offset, data_offset): Remove.
9151 (som_symtab_read): Don't add section offsets to minimal symbol
9152 addresses.
9153 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9154 Don't add section offsets to minimal symbols.
9155 * coffread.c (coff_symtab_read): Don't add section offsets
9156 to minimal symbol addresses.
9157 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9158 to minimal symbol addresses.
9159 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9160 section offset to minimal symbol addresses.
9161 * mdebugread.c (parse_partial_symbols): Don't add section
9162 offset to minimal symbol addresses.
9163 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9164 offset to minimal symbol addresses.
9165
77e371c0
TT
91662014-02-26 Tom Tromey <tromey@redhat.com>
9167
9168 * ada-lang.c (ada_main_name): Update.
9169 (ada_add_standard_exceptions): Update.
9170 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9171 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9172 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9173 * auxv.c (ld_so_xfer_auxv): Update.
9174 * avr-tdep.c (avr_scan_prologue): Update.
9175 * ax-gdb.c (gen_var_ref): Update.
9176 * blockframe.c (get_pc_function_start)
9177 (find_pc_partial_function_gnu_ifunc): Update.
9178 * breakpoint.c (create_overlay_event_breakpoint)
9179 (create_longjmp_master_breakpoint)
9180 (create_std_terminate_master_breakpoint)
9181 (create_exception_master_breakpoint): Update.
9182 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9183 * c-valprint.c (c_val_print): Update.
9184 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9185 * common/agent.c (agent_look_up_symbols): Update.
9186 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9187 * dwarf2loc.c (call_site_to_target_addr): Update.
9188 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9189 * elfread.c (elf_gnu_ifunc_record_cache)
9190 (elf_gnu_ifunc_resolve_by_got): Update.
9191 * findvar.c (default_read_var_value): Update.
9192 * frame.c (inside_main_func): Update.
9193 * frv-tdep.c (frv_frame_this_id): Update.
9194 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9195 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9196 Update.
9197 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9198 (hppa_hpux_find_dummy_bpaddr): Update.
9199 * hppa-tdep.c (hppa_symbol_address): Update.
9200 * infcmd.c (until_next_command): Update.
9201 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9202 Update.
9203 * linespec.c (minsym_found, add_minsym): Update.
9204 * linux-nat.c (get_signo): Update.
9205 * linux-thread-db.c (inferior_has_bug): Update.
9206 * m32c-tdep.c (m32c_return_value)
9207 (m32c_m16c_address_to_pointer): Update.
9208 * m32r-tdep.c (m32r_frame_this_id): Update.
9209 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9210 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9211 * maint.c (maintenance_translate_address): Update.
9212 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9213 (frob_address): New function.
9214 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9215 frob_address. Rename parameter to "pc_in".
9216 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9217 addresses.
9218 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9219 Update.
9220 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9221 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9222 * objc-lang.c (find_objc_msgsend): Update.
9223 * objfiles.c (objfile_relocate1): Update.
9224 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9225 * p-valprint.c (pascal_val_print): Update.
9226 * parse.c (write_exp_msymbol): Update.
9227 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9228 (ppc_elfv2_skip_entrypoint): Update.
9229 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9230 * printcmd.c (build_address_symbolic, msym_info)
9231 (address_info): Update.
9232 * proc-service.c (ps_pglobal_lookup): Update.
9233 * psymtab.c (find_pc_sect_psymtab_closer)
9234 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9235 Change msymbol parameter to bound_minimal_symbol.
9236 * ravenscar-thread.c (get_running_thread_id): Update.
9237 * remote.c (remote_check_symbols): Update.
9238 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9239 address.
9240 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9241 * solib-dsbt.c (lm_base): Update.
9242 * solib-frv.c (lm_base, main_got): Update.
9243 * solib-irix.c (locate_base): Update.
9244 * solib-som.c (som_solib_create_inferior_hook)
9245 (link_map_start): Update.
9246 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9247 * solib-svr4.c (elf_locate_base, enable_break): Update.
9248 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9249 (flush_ea_cache): Update.
9250 * stabsread.c (define_symbol, scan_file_globals): Update.
9251 * stack.c (find_frame_funname): Update.
9252 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9253 (debug_qf_find_pc_sect_symtab): Update.
9254 * symfile.c (simple_read_overlay_table)
9255 (simple_overlay_update): Update.
9256 * symfile.h (struct quick_symbol_functions)
9257 <find_pc_sect_symtab>: Change type of msymbol to
9258 bound_minimal_symbol.
9259 * symmisc.c (dump_msymbols): Update.
9260 * symtab.c (find_pc_sect_symtab_via_partial)
9261 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9262 (search_symbols, print_msymbol_info): Update.
9263 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9264 (MSYMBOL_VALUE_ADDRESS): Redefine.
9265 (BMSYMBOL_VALUE_ADDRESS): New macro.
9266 * tracepoint.c (scope_info): Update.
9267 * tui/tui-disasm.c (tui_find_disassembly_address)
9268 (tui_get_begin_asm_address): Update.
9269 * valops.c (find_function_in_inferior): Update.
9270 * value.c (value_static_field, value_fn_field): Update.
9271
3b7344d5
TT
92722014-02-26 Tom Tromey <tromey@redhat.com>
9273
9274 * ada-lang.c (ada_update_initial_language): Update.
9275 (ada_main_name, ada_has_this_exception_support): Update.
9276 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9277 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9278 * arm-tdep.c (arm_skip_stub): Update.
9279 * auxv.c (ld_so_xfer_auxv): Update.
9280 * avr-tdep.c (avr_scan_prologue): Update.
9281 * ax-gdb.c (gen_var_ref): Update.
9282 * breakpoint.c (struct breakpoint_objfile_data)
9283 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9284 type to bound_minimal_symbol.
9285 (create_overlay_event_breakpoint)
9286 (create_longjmp_master_breakpoint)
9287 (create_std_terminate_master_breakpoint)
9288 (create_exception_master_breakpoint): Update.
9289 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9290 * c-exp.y (classify_name): Update.
9291 * coffread.c (coff_symfile_read): Update.
9292 * common/agent.c (agent_look_up_symbols): Update.
9293 * d-lang.c (d_main_name): Update.
9294 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9295 * dec-thread.c (enable_dec_thread): Update.
9296 * dwarf2loc.c (call_site_to_target_addr): Update.
9297 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9298 * eval.c (evaluate_subexp_standard): Update.
9299 * findvar.c (struct minsym_lookup_data) <result>: Change type
9300 to bound_minimal_symbol.
9301 <objfile>: Remove.
9302 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9303 * frame.c (inside_main_func): Update.
9304 * frv-tdep.c (frv_frame_this_id): Update.
9305 * gcore.c (call_target_sbrk): Update.
9306 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9307 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9308 Update.
9309 * go-lang.c (go_main_name): Update.
9310 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9311 (hppa_hpux_find_import_stub_for_addr): Update.
9312 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9313 Update. Change return type.
9314 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9315 type.
9316 * jit.c (jit_breakpoint_re_set_internal): Update.
9317 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9318 Update.
9319 * linux-nat.c (get_signo): Update.
9320 * linux-thread-db.c (inferior_has_bug): Update
9321 * m32c-tdep.c (m32c_return_value)
9322 (m32c_m16c_address_to_pointer): Update.
9323 * m32r-tdep.c (m32r_frame_this_id): Update.
9324 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9325 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9326 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9327 lookup_minimal_symbol. Change return type.
9328 (lookup_minimal_symbol): Remove.
9329 (lookup_bound_minimal_symbol): Update.
9330 (lookup_minimal_symbol_text): Change return type.
9331 (lookup_minimal_symbol_solib_trampoline): Change return type.
9332 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9333 (lookup_minimal_symbol_solib_trampoline): Change return type.
9334 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9335 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9336 (value_nsstring, find_imps): Update.
9337 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9338 * p-lang.c (pascal_main_name): Update.
9339 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9340 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9341 * proc-service.c (ps_pglobal_lookup): Update.
9342 * ravenscar-thread.c (get_running_thread_msymbol): Change
9343 return type.
9344 (has_ravenscar_runtime, get_running_thread_id): Update.
9345 * remote.c (remote_check_symbols): Update.
9346 * sol-thread.c (ps_pglobal_lookup): Update.
9347 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9348 * solib-dsbt.c (lm_base): Update.
9349 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9350 Update.
9351 * solib-irix.c (locate_base): Update.
9352 * solib-som.c (som_solib_create_inferior_hook)
9353 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9354 Update.
9355 * solib-spu.c (spu_enable_break): Update.
9356 * solib-svr4.c (elf_locate_base, enable_break): Update.
9357 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9358 (flush_ea_cache): Update.
9359 * stabsread.c (define_symbol): Update.
9360 * symfile.c (simple_read_overlay_table): Update.
9361 * symtab.c (find_pc_sect_line): Update.
9362 * tracepoint.c (scope_info): Update.
9363 * tui-disasm.c (tui_get_begin_asm_address): Update.
9364 * value.c (value_static_field): Update.
9365
40c1a007
TT
93662014-02-26 Tom Tromey <tromey@redhat.com>
9367
9368 * minsyms.c (prim_record_minimal_symbol_full): Use
9369 SET_MSYMBOL_VALUE_ADDRESS.
9370 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9371 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9372 SET_MSYMBOL_VALUE_ADDRESS.
9373 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9374 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9375
efd66ac6
TT
93762014-02-26 Tom Tromey <tromey@redhat.com>
9377
9378 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9379 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9380 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9381 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9382 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9383 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9384 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9385 * ada-lang.c (ada_main_name): Update.
9386 (ada_lookup_simple_minsym): Update.
9387 (ada_make_symbol_completion_list): Update.
9388 (ada_add_standard_exceptions): Update.
9389 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9390 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9391 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9392 * arm-tdep.c (skip_prologue_function): Update.
9393 (arm_skip_stack_protector, arm_skip_stub): Update.
9394 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9395 (arm_wince_skip_main_prologue): Update.
9396 * auxv.c (ld_so_xfer_auxv): Update.
9397 * avr-tdep.c (avr_scan_prologue): Update.
9398 * ax-gdb.c (gen_var_ref): Update.
9399 * block.c (call_site_for_pc): Update.
9400 * blockframe.c (get_pc_function_start): Update.
9401 (find_pc_partial_function_gnu_ifunc): Update.
9402 * breakpoint.c (create_overlay_event_breakpoint): Update.
9403 (create_longjmp_master_breakpoint): Update.
9404 (create_std_terminate_master_breakpoint): Update.
9405 (create_exception_master_breakpoint): Update.
9406 (resolve_sal_pc): Update.
9407 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9408 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9409 Update.
9410 * c-valprint.c (c_val_print): Update.
9411 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9412 * coffread.c (coff_symfile_read): Update.
9413 * common/agent.c (agent_look_up_symbols): Update.
9414 * dbxread.c (find_stab_function_addr): Update.
9415 (end_psymtab): Update.
9416 * dwarf2loc.c (call_site_to_target_addr): Update.
9417 (func_verify_no_selftailcall): Update.
9418 (tailcall_dump): Update.
9419 (call_site_find_chain_1): Update.
9420 (dwarf_expr_reg_to_entry_parameter): Update.
9421 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9422 (elf_gnu_ifunc_resolve_by_got): Update.
9423 * f-valprint.c (info_common_command): Update.
9424 * findvar.c (read_var_value): Update.
9425 * frame.c (get_prev_frame_1): Update.
9426 (inside_main_func): Update.
9427 * frv-tdep.c (frv_skip_main_prologue): Update.
9428 (frv_frame_this_id): Update.
9429 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9430 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9431 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9432 (gnuv3_skip_trampoline): Update.
9433 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9434 (hppa64_hpux_in_solib_call_trampoline): Update.
9435 (hppa_hpux_skip_trampoline_code): Update.
9436 (hppa64_hpux_search_dummy_call_sequence): Update.
9437 (hppa_hpux_find_import_stub_for_addr): Update.
9438 (hppa_hpux_find_dummy_bpaddr): Update.
9439 * hppa-tdep.c (hppa_symbol_address)
9440 (hppa_lookup_stub_minimal_symbol): Update.
9441 * i386-tdep.c (i386_skip_main_prologue): Update.
9442 (i386_pe_skip_trampoline_code): Update.
9443 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9444 * infcall.c (get_function_name): Update.
9445 * infcmd.c (until_next_command): Update.
9446 * jit.c (jit_breakpoint_re_set_internal): Update.
9447 (jit_inferior_init): Update.
9448 * linespec.c (minsym_found): Update.
9449 (add_minsym): Update.
9450 * linux-fork.c (info_checkpoints_command): Update.
9451 * linux-nat.c (get_signo): Update.
9452 * linux-thread-db.c (inferior_has_bug): Update.
9453 * m32c-tdep.c (m32c_return_value): Update.
9454 (m32c_m16c_address_to_pointer): Update.
9455 (m32c_m16c_pointer_to_address): Update.
9456 * m32r-tdep.c (m32r_frame_this_id): Update.
9457 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9458 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9459 * maint.c (maintenance_translate_address): Update.
9460 * minsyms.c (add_minsym_to_hash_table): Update.
9461 (add_minsym_to_demangled_hash_table): Update.
9462 (msymbol_objfile): Update.
9463 (lookup_minimal_symbol): Update.
9464 (iterate_over_minimal_symbols): Update.
9465 (lookup_minimal_symbol_text): Update.
9466 (lookup_minimal_symbol_by_pc_name): Update.
9467 (lookup_minimal_symbol_solib_trampoline): Update.
9468 (lookup_minimal_symbol_by_pc_section_1): Update.
9469 (lookup_minimal_symbol_and_objfile): Update.
9470 (prim_record_minimal_symbol_full): Update.
9471 (compare_minimal_symbols): Update.
9472 (compact_minimal_symbols): Update.
9473 (build_minimal_symbol_hash_tables): Update.
9474 (install_minimal_symbols): Update.
9475 (terminate_minimal_symbol_table): Update.
9476 (find_solib_trampoline_target): Update.
9477 (minimal_symbol_upper_bound): Update.
9478 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9479 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9480 (mips_skip_pic_trampoline_code): Update.
9481 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9482 * objc-lang.c (selectors_info): Update.
9483 (classes_info): Update.
9484 (find_methods): Update.
9485 (find_imps): Update.
9486 (find_objc_msgsend): Update.
9487 * objfiles.c (objfile_relocate1): Update.
9488 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9489 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9490 * p-valprint.c (pascal_val_print): Update.
9491 * parse.c (write_exp_msymbol): Update.
9492 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9493 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9494 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9495 * printcmd.c (build_address_symbolic): Update.
9496 (sym_info): Update.
9497 (address_info): Update.
9498 * proc-service.c (ps_pglobal_lookup): Update.
9499 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9500 (find_pc_sect_psymtab): Update.
9501 * python/py-framefilter.c (py_print_frame): Update.
9502 * ravenscar-thread.c (get_running_thread_id): Update.
9503 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9504 Update.
9505 * remote.c (remote_check_symbols): Update.
9506 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9507 (rs6000_skip_trampoline_code): Update.
9508 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9509 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9510 * solib-dsbt.c (lm_base): Update.
9511 * solib-frv.c (lm_base): Update.
9512 (main_got): Update.
9513 * solib-irix.c (locate_base): Update.
9514 * solib-som.c (som_solib_create_inferior_hook): Update.
9515 (som_solib_desire_dynamic_linker_symbols): Update.
9516 (link_map_start): Update.
9517 * solib-spu.c (spu_enable_break): Update.
9518 (ocl_enable_break): Update.
9519 * solib-svr4.c (elf_locate_base): Update.
9520 (enable_break): Update.
9521 * spu-tdep.c (spu_get_overlay_table): Update.
9522 (spu_catch_start): Update.
9523 (flush_ea_cache): Update.
9524 * stabsread.c (define_symbol): Update.
9525 (scan_file_globals): Update.
9526 * stack.c (find_frame_funname): Update.
9527 (frame_info): Update.
9528 * symfile.c (simple_read_overlay_table): Update.
9529 (simple_overlay_update): Update.
9530 * symmisc.c (dump_msymbols): Update.
9531 * symtab.c (fixup_section): Update.
9532 (find_pc_sect_line): Update.
9533 (skip_prologue_sal): Update.
9534 (search_symbols): Update.
9535 (print_msymbol_info): Update.
9536 (rbreak_command): Update.
9537 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9538 (completion_list_objc_symbol): Update.
9539 (default_make_symbol_completion_list_break_on): Update.
9540 * tracepoint.c (scope_info): Update.
9541 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9542 (tui_get_begin_asm_address): Update.
9543 * valops.c (find_function_in_inferior): Update.
9544 * value.c (value_static_field): Update.
9545 (value_fn_field): Update.
9546
50e65b17
TT
95472014-02-26 Tom Tromey <tromey@redhat.com>
9548
9549 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9550 bound minimal symbols. Move code that knows about minsym
9551 table layout...
9552 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9553 function.
9554 * minsyms.h (minimal_symbol_upper_bound): Declare.
9555 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9556 minimal_symbol_upper_bound.
9557
1b588015
JB
95582014-02-27 Joel Brobecker <brobecker@adacore.com>
9559
9560 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9561 Use the type's name if its basic type does not have a tag.
9562
dbb9c2b1
JB
95632014-02-27 Joel Brobecker <brobecker@adacore.com>
9564
9565 * dwarf2read.c (read_subrange_type): Add comment.
9566
55426c9d
JB
95672014-02-27 Joel Brobecker <brobecker@adacore.com>
9568
9569 * dwarf2read.c (update_enumeration_type_from_children): New
9570 function, mostly extracted from process_structure_scope.
9571 (read_enumeration_type): Call update_enumeration_type_from_children.
9572 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9573 and flag_flag_enum fields.
9574
f2fce0ca
PA
95752014-02-26 Pedro Alves <palves@redhat.com>
9576
9577 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9578 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9579 to_xfer_partial method.
9580
7a44e40e
PA
95812014-02-26 Pedro Alves <palves@redhat.com>
9582
9583 * target.c (complete_target_initialization): Don't install
9584 default_xfer_partial as to_xfer_partial hook.
9585 (nomemory): Delete.
9586 (update_current_target): Don't INHERIT nor de_fault
9587 deprecated_xfer_memory. Delete de_fault macro.
9588 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9589 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9590 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9591 field.
9592
bd265cd0
PA
95932014-02-26 Pedro Alves <palves@redhat.com>
9594
9595 * go32-nat.c (my_write_child): New function.
9596 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9597 (go32_xfer_partial): New function.
9598 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9599 Instead install a to_xfer_partial hook.
9600
9d46c4e5
PA
96012014-02-26 Pedro Alves <palves@redhat.com>
9602
9603 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9604 to_xfer_partial helper. Rewrite.
9605 (procfs_xfer_partial): New function.
9606 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9607 Install a to_xfer_partial hook.
9608
a1583b1f
PA
96092014-02-26 Pedro Alves <palves@redhat.com>
9610
9611 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9612 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9613 (m32r_xfer_partial): New function.
9614 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9615 Install a to_xfer_partial hook.
9616
6df1b29f
PA
96172014-02-26 Pedro Alves <palves@redhat.com>
9618
9619 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9620 helper.
9621 (mips_xfer_partial): New function.
9622 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9623 hook. Install a to_xfer_partial hook.
9624
dc53a7ad
JB
96252014-02-26 Joel Brobecker <brobecker@adacore.com>
9626
9627 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9628 * gdbtypes.c (create_array_type_with_stride): New function,
9629 renaming create_array_type, but with an added parameter
9630 called "bit_stride".
9631 (create_array_type): Re-implement using
9632 create_array_type_with_stride.
9633 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9634 and DW_AT_bit_stride attributes.
9635
12ab52e9
PA
96362014-02-26 Pedro Alves <palves@redhat.com>
9637
9638 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9639 task-specific breakpoints.
9640
d16461ae
PA
96412014-02-25 Pedro Alves <palves@redhat.com>
9642
9643 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9644 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9645
a8b16220
SS
96462014-02-25 Stan Shebs <stan@codesourcery.com>
9647
9648 * defs.h: Annotate comments for Doxygen.
9649
b9e795ee
TT
96502014-02-25 Tom Tromey <tromey@redhat.com>
9651
9652 * target.h (target_ignore): Don't declare.
9653 * target.c (target_ignore): Remove.
9654
849c862e
JK
96552014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9656
9657 PR gdb/16626
9658 * auto-load.c (auto_load_objfile_script_1): Change filename to
9659 debugfile.
9660
475109d8
JB
96612014-02-25 Joel Brobecker <brobecker@adacore.com>
9662
9663 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9664 documentation. Adjust prototype to match the target_ops
9665 to_xfer_partial method. Adjust implementation accordingly.
9666
e186c3bd
HZ
96672014-02-25 Hui Zhu <hui@codesourcery.com>
9668
9669 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9670 to_traceframe_info.
9671
6d451942
KB
96722014-02-25 Kevin Buettner <kevinb@redhat.com>
9673
041ab8b4 9674 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9675 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9676 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9677 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9678 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9679 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9680 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9681 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9682 New constants.
9683 (rl78_register_type): Use a data pointer type for SP and
9684 new pseudo registers mentioned above. Use a 16 bit integer
9685 type for all other register pairs.
9686 (rl78_register_name, rl78_g10_register_name): Update for
9687 new pseudo registers.
9688 (rl78_pseudo_register_read): Likewise.
9689 (rl78_pseudo_register_write): Likewise.
9690 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9691 to the newly added pseudo registers.
9692
eddf0bae
DE
96932014-02-24 Doug Evans <dje@google.com>
9694
9695 * value.c (record_latest_value): Fix comment.
9696 * printcmd.c (print_command_1): Remove code to handle -1 return from
9697 record_latest_value.
9698
e96027e0
PA
96992014-02-24 Pedro Alves <palves@redhat.com>
9700
9701 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9702 deprecated_xfer_memory hook.
9703 (procfs_xfer_partial): Call procfs_xfer_memory instead
9704 of the deprecated_xfer_memory target hook.
9705 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9706 helper.
9707
0837c976
YZ
97082014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9709
9710 * windows-nat.c (windows_xfer_shared_libraries): Return
9711 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9712 requested object is TARGET_OBJECT_LIBRARIES.
9713
bc113b4e
YQ
97142014-02-24 Yao Qi <yao@codesourcery.com>
9715
9716 * target.h (enum target_xfer_status)
9717 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9718 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9719 explicitly. New.
9720 * corefile.c (memory_error_message): User updated.
9721 * exec.c (section_table_read_available_memory): Likewise.
9722 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9723 * target.c (target_xfer_status_to_string): Likewise.
9724 (raw_memory_xfer_partial): Likewise.
9725 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9726 * valops.c (read_value_memory): Likewise.
9727 * exec.h: Update comments.
9728
01cb8804
YQ
97292014-02-24 Yao Qi <yao@codesourcery.com>
9730
9731 * target.c (target_xfer_status_to_string): Rename argument err
9732 to status.
9733 * target.h (target_xfer_status_to_string): Update declaration.
9734 Replace target_xfer_error_to_string with
9735 target_xfer_status_to_string in comment.
9736
93063aa6
YQ
97372014-02-24 Yao Qi <yao@codesourcery.com>
9738
9739 * mips-linux-nat.c (super_close): Update its type.
9740 (mips_linux_close): Pass 'self' to super_close.
9741
5c328c05
YQ
97422014-02-24 Yao Qi <yao@codesourcery.com>
9743
9744 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9745 * corefile.c (read_memory): Adjusted.
9746 * target.c (target_write_with_progress): Adjusted.
9747
f73023dd
YQ
97482014-02-23 Yao Qi <yao@codesourcery.com>
9749
9750 Revert two patches:
9751
9752 2013-10-25 Yao Qi <yao@codesourcery.com>
9753
9754 * remote.c (remote_traceframe_info): Return early if
9755 traceframe is not selected.
9756
9757 2013-07-19 Yao Qi <yao@codesourcery.com>
9758
9759 * target.c (update_current_target): Change the default action
9760 of 'to_traceframe_info' from tcomplain to return_zero.
9761 * target.h (struct target_ops) <to_traceframe_info>: Add more
9762 comments.
9763
5a2eb0ef
YQ
97642014-02-23 Yao Qi <yao@codesourcery.com>
9765
9766 * valops.c (read_value_memory): Rewrite it. Call
9767 target_xfer_partial in a loop.
9768 * exec.h (section_table_available_memory): Remove declaration.
9769 Move comments to ...
9770 * exec.c (section_table_available_memory): ... here. Make it
9771 static.
9772
1ee79381
YQ
97732014-02-23 Yao Qi <yao@codesourcery.com>
9774
9775 * exec.c (section_table_read_available_memory): New function.
9776 * exec.h (section_table_read_available_memory): Declare.
9777 * ctf.c (ctf_xfer_partial): Call
9778 section_table_read_available_memory.
9779 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9780
1ca49d37
YQ
97812014-02-23 Yao Qi <yao@codesourcery.com>
9782
9783 * ctf.c (ctf_xfer_partial): Move code to ...
9784 * exec.c (exec_read_partial_read_only): ... it. New function.
9785 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9786 * tracefile.c: Include "exec.h".
9787 * exec.h (exec_read_partial_read_only): Declare.
9788
a283690e
YQ
97892014-02-23 Yao Qi <yao@codesourcery.com>
9790
9791 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9792 (tfile_has_memory): Remove.
9793 (init_tfile_ops): Don't set fields to_has_all_memory and
9794 to_has_memory of tfile_ops.
9795 * tracefile.c (tracefile_has_all_memory): New function.
9796 (tracefile_has_memory): New function.
9797 (init_tracefile_ops): Initialize fields to_has_all_memory and
9798 to_has_memory of 'ops'.
9799
12e03cd0
YQ
98002014-02-23 Yao Qi <yao@codesourcery.com>
9801
9802 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9803 (ctf_thread_alive, ctf_get_trace_status): Remove.
9804 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9805 init_tracefile_ops.
9806 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9807 (tfile_has_stack, tfile_has_registers): Remove.
9808 (tfile_thread_alive): Remove.
9809 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9810 init_tracefile_ops.
9811 * tracefile.c (tracefile_has_stack): New function.
9812 (tracefile_has_registers): New function.
9813 (tracefile_thread_alive): New function.
9814 (tracefile_get_trace_status): New function.
9815 (init_tracefile_ops): New function.
9816 * tracefile.h (init_tracefile_ops): Declare.
9817
11395323
YQ
98182014-02-23 Yao Qi <yao@codesourcery.com>
9819
9820 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9821 (O_LARGEFILE): Likewise.
9822 (tfile_ops): Likewise.
9823 (TRACE_HEADER_SIZE): Likewise.
9824 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9825 (cur_data_size): Likewise.
9826 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9827 (tfile_close, tfile_files_info): Likewise.
9828 (tfile_get_trace_status): Likewise.
9829 (tfile_get_tracepoint_status): Likewise.
9830 (tfile_get_traceframe_address): Likewise.
9831 (tfile_trace_find, match_blocktype): Likewise.
9832 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9833 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9834 (tfile_get_trace_state_variable_value): Likewise.
9835 (tfile_has_all_memory, tfile_has_memory): Likewise.
9836 (tfile_has_stack, tfile_has_registers): Likewise.
9837 (tfile_thread_alive, build_traceframe_info): Likewise.
9838 (tfile_traceframe_info, init_tfile_ops): Likewise.
9839 (_initialize_tracepoint): Don't call init_tfile_ops
9840 and add_target_with_completer.
9841 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9842 exec.h, completer.h and filenames.h.
9843 (_initialize_tracefile_tfile): New function.
9844
7951c4eb
YQ
98452014-02-23 Yao Qi <yao@codesourcery.com>
9846
9847 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9848 tracefile-tfile.o.
9849 (HFILES_NO_SRCDIR): Add tracefile.h.
9850 * ctf.c: Include "tracefile.h".
9851 * tracefile.h: New file.
9852 * tracefile.c: New file
9853 * tracefile-tfile.c: New file.
9854 * tracepoint.c: Include "tracefile.h".
9855 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9856 (stop_reason_names): Add const.
9857 (trace_file_writer_xfree): Move it to tracefile.c.
9858 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9859 (trace_save_ctf): Likewise.
9860 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9861 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9862 (tfile_write_header, tfile_write_regblock_type): Likewise.
9863 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9864 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9865 (tfile_write_raw_data, tfile_end): Likewise.
9866 (tfile_trace_file_writer_new): Likewise.
9867 (free_uploaded_tp): Make it extern.
9868 (free_uploaded_tsv): Make it extern.
9869 (_initialize_tracepoint): Move code to register command 'tsave'
9870 to tracefile.c.
9871 * tracepoint.h (stop_reason_names): Declare.
9872 (struct trace_frame_write_ops): Move it to tracefile.h.
9873 (struct trace_file_write_ops): Likewise.
9874 (struct trace_file_writer): Likewise.
9875 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9876
184cd072
JK
98772014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9878
9879 PR gdb/16594
9880 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9881 process name.
9882 (get_cores_used_by_process): New parameter num_cores, use it.
9883 (linux_xfer_osdata_processes): Pass num_cores to it.
9884 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9885 process name.
9886
c63528fc
AK
98872014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9888
9889 * target.c (memory_xfer_partial): Fix length arg in call to
9890 breakpoint_xfer_memory.
9891
d7b30f67
SDJ
98922014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9893
9894 PR tdep/16397
9895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9896 number comes after the + or - signs. Adjust length of register
9897 name to be extracted.
9898
8838afaf
TT
98992014-02-20 Tom Tromey <tromey@redhat.com>
9900
9901 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9902 (ada_varobj_ops): Mark "extern".
9903
05227d14
TT
99042014-02-20 Tom Tromey <tromey@redhat.com>
9905
9906 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9907
1254eefc
DE
99082014-02-20 Doug Evans <xdje42@gmail.com>
9909
9910 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9911 All callers updated.
9912 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9913 All callers updated.
9914 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9915 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9916
adde2bff
DE
99172014-02-20 lin zuojian <manjian2006@gmail.com>
9918 Joel Brobecker <brobecker@adacore.com>
9919 Doug Evans <xdje42@gmail.com>
9920
9921 PR symtab/16581
9922 * dwarf2read.c (struct die_info): New member in_process.
9923 (reset_die_in_process): New function.
9924 (process_die): Set it at the start, reset when returning.
9925 (inherit_abstract_dies): Only call process_die if origin_child_die
9926 not already being processed.
9927
3be75f87
JB
99282014-02-20 Joel Brobecker <brobecker@adacore.com>
9929
9930 * windows-nat.c (handle_unload_dll): Add function documentation.
9931 (do_initial_windows_stuff): Add comment explaining why we wait
9932 until after inferior initialization has finished before
9933 processing all DLLs.
9934
47f7ffdb
JB
99352014-02-20 Joel Brobecker <brobecker@adacore.com>
9936
9937 * windows-nat.c (get_module_name): Delete.
9938 (windows_get_exec_module_filename): New function, mostly
9939 inspired from get_module_name.
9940 (windows_pid_to_exec_file): Replace call to get_module_name
9941 by call to windows_get_exec_module_filename.
9942
1cd9feab
JB
99432014-02-20 Joel Brobecker <brobecker@adacore.com>
9944
9945 * windows-nat.c (handle_load_dll): Rewrite this function's
9946 introductory comment. Remove code using get_module_name
9947 to get the DLL's name.
9948
ea39ad35
JB
99492014-02-20 Joel Brobecker <brobecker@adacore.com>
9950
9951 * windows-nat.c (get_windows_debug_event): Ignore
9952 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9953 if windows_initialization_done == 0.
9954 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9955 Adjust implementation to always load all DLLs.
9956 (do_initial_windows_stuff): Replace call to
9957 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9958
95060284
JB
99592014-02-20 Joel Brobecker <brobecker@adacore.com>
9960
9961 * windows-nat.c (_initialize_windows_nat): Deprecate the
9962 "dll-symbols" command. Turn the "add-shared-symbol-files"
9963 and "assf" aliases into commands, and deprecate them as well.
9964 * NEWS: Add entry explaining that "dll-symbols" and its two
9965 aliases are now deprecated.
9966
8d4fdb12
JB
99672014-02-20 Joel Brobecker <brobecker@adacore.com>
9968
9969 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9970 new-line in debug string. Remove trailing spaces.
9971
1b281443
SS
99722014-02-19 Stan Shebs <stan@codesourcery.com>
9973
9974 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9975
f7bd0f78
SC
99762014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9977
9978 * NEWS: Add entry for the new feature
9979 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9980 and class values.
9981
399ebc3d
SS
99822014-02-19 Stan Shebs <stan@codesourcery.com>
9983
9984 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9985
c658158d
PA
99862014-02-19 Pedro Alves <palves@redhat.com>
9987
9988 * common/ptid.h (struct ptid): Mention that process_stratum
9989 targets should prefer ptid.lwp.
9990
ba348170
PA
99912014-02-19 Pedro Alves <palves@redhat.com>
9992
9993 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9994 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9995 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9996 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9997 store remote thread ids rather than ptid.tid.
9998 (_initialize_remote): Adjust.
9999
ac01945b
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target.c (target_get_unwinder): Rewrite.
10003 (target_get_tailcall_unwinder): Rewrite.
10004 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10005 (record_btrace_to_get_tailcall_unwinder): New function.
10006 (init_record_btrace_ops): Update.
10007 * target.h (struct target_ops) <to_get_unwinder,
10008 to_get_tailcall_unwinder>: Now function pointers. Use
10009 TARGET_DEFAULT_RETURN.
10010
8476dc92
TT
100112014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10014 argument.
10015 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10016
c0eca49f
TT
100172014-02-19 Tom Tromey <tromey@redhat.com>
10018
10019 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10020 directly.
10021 * target-delegates.c: Rebuild.
10022 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10023 TARGET_DEFAULT_FUNC.
10024 * target.c (default_target_decr_pc_after_break): Rename from
10025 forward_target_decr_pc_after_break. Simplify.
10026 (target_decr_pc_after_break): Rely on delegation.
10027
596b6b39
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target.c (update_current_target): Do not INHERIT to_doc or
10031 to_magic. Do not de_fault to_open or to_close.
10032
b427c1bc
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * gcore.h (objfile_find_memory_regions): Declare.
10036 * gcore.c (objfile_find_memory_regions): No longer static. Add
10037 "self" argument.
10038 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10039 * exec.c: Include gcore.h.
10040 (exec_set_find_memory_regions): Remove.
10041 (exec_find_memory_regions): Remove.
10042 (exec_do_find_memory_regions): Remove.
10043 (init_exec_ops): Update.
10044 * defs.h (exec_set_find_memory_regions): Remove.
10045
9b144037
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.h (struct target_ops) <to_extra_thread_info,
10050 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10051 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10052 not 0, in TARGET_DEFAULT_RETURN.
10053
555bbdeb
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target.c (complete_target_initialization): Remove casts. Use
10057 return_zero_has_execution.
10058 (return_zero): Add "ignore" argument.
10059 (return_zero_has_execution): New function.
10060 (init_dummy_target): Remove casts. Use
10061 return_zero_has_execution.
10062
be4ddd36
TT
100632014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target.c (update_current_target): Update comments. Do not
10066 INHERIT to_stratum.
10067
2117c711
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10071 needed.
10072 * corelow.c (core_read_description): Delegate when needed.
10073 * remote.c (remote_read_description): Delegate when needed.
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_read_description): Rewrite.
10076 * target.h (struct target_ops) <to_read_description>: Update
10077 comment. Use TARGET_DEFAULT_RETURN.
10078
e88ef65c
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10083 to_can_run.
10084 (find_default_run_target): Check against delegate_can_run.
10085 * target.h (struct target_ops) <to_can_run>: Use
10086 TARGET_DEFAULT_RETURN.
10087
86a0854a
TT
100882014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target-delegates.c: Rebuild.
10091 * target.c (target_disconnect): Unconditionally delegate.
10092 * target.h (struct target_ops) <to_disconnect>: Use
10093 TARGET_DEFAULT_NORETURN.
10094
ee97f592
TT
100952014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * record.c (record_stop): Unconditionally delegate.
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_stop_recording): Unconditionally delegate.
10100 * target.h (struct target_ops) <to_stop_recording>: Use
10101 TARGET_DEFAULT_IGNORE.
10102
6dc7fcf4
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (target_enable_btrace): Unconditionally delegate.
10107 * target.h (struct target_ops) <to_enable_btrace>: Use
10108 TARGET_DEFAULT_NORETURN.
10109
eb5b20d4
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_read_btrace): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_read_btrace>: Use
10115 TARGET_DEFAULT_NORETURN.
10116
9ace480d
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (target_teardown_btrace): Unconditionally delegate.
10121 * target.h (struct target_ops) <to_teardown_btrace>: Use
10122 TARGET_DEFAULT_NORETURN.
10123
8dc292d3
TT
101242014-02-19 Tom Tromey <tromey@redhat.com>
10125
10126 * target-delegates.c: Rebuild.
10127 * target.c (target_disable_btrace): Unconditionally delegate.
10128 * target.h (struct target_ops) <to_disable_btrace>: Use
10129 TARGET_DEFAULT_NORETURN.
10130
58a5184e
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target-delegates.c: Rebuild.
10134 * target.c (default_search_memory): New function.
10135 (simple_search_memory): Update comment.
10136 (target_search_memory): Unconditionally delegate.
10137 * target.h (struct target_ops) <to_search_memory>: Use
10138 TARGET_DEFAULT_FUNC.
10139
8de71aab
TT
101402014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * auxv.c (default_auxv_parse): No longer static.
10143 (target_auxv_parse): Unconditionally delegate.
10144 * auxv.h (default_auxv_parse): Declare.
10145 * target-delegates.c: Rebuild.
10146 * target.c: Include auxv.h.
10147 * target.h (struct target_ops) <to_auxv_parse>: Use
10148 TARGET_DEFAULT_FUNC.
10149
6b2c5a57
TT
101502014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target-delegates.c: Rebuild.
10153 * target.c (target_memory_map): Unconditionally delegate.
10154 * target.h (struct target_ops) <to_memory_map>: Use
10155 TARGET_DEFAULT_RETURN.
10156
cbffc065
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target-delegates.c: Rebuild.
10160 * target.c (target_thread_alive): Unconditionally delegate.
10161 * target.h (struct target_ops) <to_thread_alive>: Use
10162 TARGET_DEFAULT_RETURN.
10163
f09e2107
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target-delegates.c: Rebuild.
10167 * target.c (target_save_record): Unconditionally delegate.
10168 * target.h (struct target_ops) <to_save_record>: Use
10169 TARGET_DEFAULT_NORETURN.
10170
07366925
TT
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (target_delete_record): Unconditionally delegate.
10175 * target.h (struct target_ops) <to_delete_record>: Use
10176 TARGET_DEFAULT_NORETURN.
10177
dd2e9d25
TT
101782014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target-delegates.c: Rebuild.
10181 * target.c (target_record_is_replaying): Unconditionally
10182 delegate.
10183 * target.h (struct target_ops) <to_record_is_replaying>: Use
10184 TARGET_DEFAULT_RETURN.
10185
671e76cc
TT
101862014-02-19 Tom Tromey <tromey@redhat.com>
10187
10188 * target-delegates.c: Rebuild.
10189 * target.c (target_goto_record_begin): Unconditionally delegate.
10190 * target.h (struct target_ops) <to_goto_record_begin>: Use
10191 TARGET_DEFAULT_NORETURN.
10192
e9179bb3
TT
101932014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (target_goto_record_end): Unconditionally delegate.
10197 * target.h (struct target_ops) <to_goto_record_end>: Use
10198 TARGET_DEFAULT_NORETURN.
10199
05969c84
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target-delegates.c: Rebuild.
10203 * target.c (target_goto_record): Unconditionally delegate.
10204 * target.h (struct target_ops) <to_goto_record>: Use
10205 TARGET_DEFAULT_NORETURN.
10206
3679abfa
TT
102072014-02-19 Tom Tromey <tromey@redhat.com>
10208
10209 * target-delegates.c: Rebuild.
10210 * target.c (target_insn_history): Unconditionally delegate.
10211 * target.h (struct target_ops) <to_insn_history>: Use
10212 TARGET_DEFAULT_NORETURN.
10213
8444ab58
TT
102142014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target-delegates.c: Rebuild.
10217 * target.c (target_insn_history_from): Unconditionally delegate.
10218 * target.h (struct target_ops) <to_insn_history_from>: Use
10219 TARGET_DEFAULT_NORETURN.
10220
c29302cc
TT
102212014-02-19 Tom Tromey <tromey@redhat.com>
10222
10223 * target-delegates.c: Rebuild.
10224 * target.c (target_insn_history_range): Unconditionally delegate.
10225 * target.h (struct target_ops) <to_insn_history_range>: Use
10226 TARGET_DEFAULT_NORETURN.
10227
170049d4
TT
102282014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * target-delegates.c: Rebuild.
10231 * target.c (target_call_history): Unconditionally delegate.
10232 * target.h (struct target_ops) <to_call_history>: Use
10233 TARGET_DEFAULT_NORETURN.
10234
16fc27d6
TT
102352014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target-delegates.c: Rebuild.
10238 * target.c (target_call_history_from): Unconditionally delegate.
10239 * target.h (struct target_ops) <to_call_history_from>: Use
10240 TARGET_DEFAULT_NORETURN.
10241
115d9817
TT
102422014-02-19 Tom Tromey <tromey@redhat.com>
10243
10244 * target-delegates.c: Rebuild.
10245 * target.c (target_call_history_range): Unconditionally delegate.
10246 * target.h (struct target_ops) <to_call_history_range>: Use
10247 TARGET_DEFAULT_NORETURN.
10248
eb276a6b
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target-delegates.c: Rebuild.
10252 * target.c (target_verify_memory): Unconditionally delegate.
10253 * target.h (struct target_ops) <to_verify_memory>: Use
10254 TARGET_DEFAULT_NORETURN.
10255
9e538d0d
TT
102562014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target-delegates.c: Rebuild.
10259 * target.c (target_core_of_thread): Unconditionally delegate.
10260 * target.h (struct target_ops) <to_core_of_thread>: Use
10261 TARGET_DEFAULT_RETURN.
10262
f6fb2925
TT
102632014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target-delegates.c: Rebuild.
10266 * target.c (target_flash_done): Unconditionally delegate.
10267 * target.h (struct target_ops) <to_flash_done>: Use
10268 TARGET_DEFAULT_NORETURN.
10269
e8a6c6ac
TT
102702014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target-delegates.c: Rebuild.
10273 * target.c (target_flash_erase): Unconditionally delegate.
10274 * target.h (struct target_ops) <to_flash_erase>: Use
10275 TARGET_DEFAULT_NORETURN.
10276
7e35c012
TT
102772014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target-delegates.c: Rebuild.
10280 * target.c (target_get_section_table): Unconditionally delegate.
10281 * target.h (struct target_ops) <to_get_section_table>: Use
10282 TARGET_DEFAULT_RETURN.
10283
770234d3
TT
102842014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * target-delegates.c: Rebuild.
10287 * target.c (target_pid_to_str): Unconditionally delegate.
10288 (init_dummy_target): Don't initialize to_pid_to_str.
10289 (default_pid_to_str): Rename from dummy_pid_to_str.
10290 * target.h (struct target_ops) <to_pid_to_str>: Use
10291 TARGET_DEFAULT_FUNC.
10292
09b0dc2b
TT
102932014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_find_new_threads): Unconditionally delegate.
10297 * target.h (struct target_ops) <to_find_new_threads>: Use
10298 TARGET_DEFAULT_RETURN.
10299
7d4f8efa
TT
103002014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target-delegates.c: Rebuild.
10303 * target.c (target_program_signals): Unconditionally delegate.
10304 * target.h (struct target_ops) <to_program_signals>: Use
10305 TARGET_DEFAULT_IGNORE.
10306
035cad7f
TT
103072014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (target_pass_signals): Unconditionally delegate.
10311 * target.h (struct target_ops) <to_pass_signals>: Use
10312 TARGET_DEFAULT_IGNORE.
10313
8d657035
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target-delegates.c: Rebuild.
10317 * target.c (default_mourn_inferior): New function.
10318 (target_mourn_inferior): Unconditionally delegate.
10319 * target.h (struct target_ops) <to_mourn_inferior>: Use
10320 TARGET_DEFAULT_FUNC.
10321
098dba18
TT
103222014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (default_follow_fork): New function.
10326 (target_follow_fork): Unconditionally delegate.
10327 * target.h (struct target_ops) <to_follow_fork>: Use
10328 TARGET_DEFAULT_FUNC.
10329
423a4807
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target-delegates.c: Rebuild.
10333 * target.c (target_kill): Unconditionally delegate.
10334 * target.h (struct target_ops) <to_kill>: Use
10335 TARGET_DEFAULT_NORETURN.
10336
6c7e5e5c
TT
103372014-02-19 Tom Tromey <tromey@redhat.com>
10338
10339 * target-delegates.c: Rebuild.
10340 * target.c (target_masked_watch_num_registers): Unconditionally
10341 delegate.
10342 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10343 Use TARGET_DEFAULT_RETURN.
10344
8b1c364c
TT
103452014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target-delegates.c: Rebuild.
10348 * target.c (target_remove_mask_watchpoint): Unconditionally
10349 delegate.
10350 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10351 TARGET_DEFAULT_RETURN.
10352
cd4ae029
TT
103532014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target-delegates.c: Rebuild.
10356 * target.c (target_insert_mask_watchpoint): Unconditionally
10357 delegate.
10358 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10359 TARGET_DEFAULT_RETURN.
10360
a134316b
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (target_ranged_break_num_registers): Unconditionally
10365 delegate.
10366 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10367 Use TARGET_DEFAULT_RETURN.
10368
ad5989bd
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (target_fetch_registers): Unconditionally delegate.
10373 * target.h (struct target_ops) <to_fetch_registers>: Use
10374 TARGET_DEFAULT_NORETURN.
10375
46ee7e8d
TT
103762014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_stop.
10381 * target.h (struct target_ops) <to_stop>: Use
10382 TARGET_DEFAULT_IGNORE.
10383
843f59ed
TT
103842014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target-delegates.c: Rebuild.
10387 * target.c (update_current_target): Don't inherit or default
10388 to_can_run_breakpoint_commands.
10389 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10390 Use TARGET_DEFAULT_RETURN.
10391
ccfde2a0
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (update_current_target): Don't inherit or default
10396 to_supports_evaluation_of_breakpoint_conditions.
10397 * target.h (struct target_ops)
10398 <to_supports_evaluation_of_breakpoint_conditions>: Use
10399 TARGET_DEFAULT_RETURN.
10400
0de91722
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_augmented_libraries_svr4_read.
10406 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10407 Use TARGET_DEFAULT_RETURN.
10408
9a7d8b48
TT
104092014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_can_use_agent.
10414 * target.h (struct target_ops) <to_can_use_agent>: Use
10415 TARGET_DEFAULT_RETURN.
10416
d9db5b21
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_use_agent.
10422 * target.h (struct target_ops) <to_use_agent>: Use
10423 TARGET_DEFAULT_NORETURN.
10424
92155eeb
TT
104252014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_traceframe_info.
10430 (return_null): Remove.
10431 * target.h (struct target_ops) <to_traceframe_info>: Use
10432 TARGET_DEFAULT_RETURN.
10433
d6522a22
TT
104342014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target-delegates.c: Rebuild.
10437 * target.c (update_current_target): Don't inherit or default
10438 to_static_tracepoint_markers_by_strid.
10439 * target.h (struct target_ops)
10440 <to_static_tracepoint_markers_by_strid>: Use
10441 TARGET_DEFAULT_NORETURN.
10442
4c3e4425
TT
104432014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_static_tracepoint_marker_at.
10448 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10449 Use TARGET_DEFAULT_RETURN.
10450
dcd6917f
TT
104512014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * target-delegates.c: Rebuild.
10454 * target.c (update_current_target): Don't inherit or default
10455 to_set_permissions.
10456 * target.h (struct target_ops) <to_set_permissions>: Use
10457 TARGET_DEFAULT_IGNORE.
10458
22bcceee
TT
104592014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target-delegates.c: Rebuild.
10462 * target.c (update_current_target): Don't inherit or default
10463 to_get_tib_address.
10464 * target.h (struct target_ops) <to_get_tib_address>: Use
10465 TARGET_DEFAULT_NORETURN.
10466
8586ccaa
TT
104672014-02-19 Tom Tromey <tromey@redhat.com>
10468
10469 * target-delegates.c: Rebuild.
10470 * target.c (update_current_target): Don't inherit or default
10471 to_set_trace_notes.
10472 * target.h (struct target_ops) <to_set_trace_notes>: Use
10473 TARGET_DEFAULT_RETURN.
10474
91df8d1d
TT
104752014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target-delegates.c: Rebuild.
10478 * target.c (update_current_target): Don't initialize
10479 to_set_trace_buffer_size.
10480 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10481 TARGET_DEFAULT_IGNORE.
10482
8d526939
TT
104832014-02-19 Tom Tromey <tromey@redhat.com>
10484
10485 * target-delegates.c: Rebuild.
10486 * target.c (update_current_target): Don't inherit or default
10487 to_set_circular_trace_buffer.
10488 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10489 TARGET_DEFAULT_IGNORE.
10490
0bcfeddf
TT
104912014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target-delegates.c: Rebuild.
10494 * target.c (update_current_target): Don't inherit or default
10495 to_set_disconnected_tracing.
10496 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10497 TARGET_DEFAULT_IGNORE.
10498
9249843f
TT
104992014-02-19 Tom Tromey <tromey@redhat.com>
10500
10501 * target-delegates.c: Rebuild.
10502 * target.c (update_current_target): Don't inherit or default
10503 to_get_min_fast_tracepoint_insn_len.
10504 (return_minus_one): Remove.
10505 * target.h (struct target_ops)
10506 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10507
ace92e7d
TT
105082014-02-19 Tom Tromey <tromey@redhat.com>
10509
10510 * target-delegates.c: Rebuild.
10511 * target.c (update_current_target): Don't inherit or default
10512 to_get_raw_trace_data.
10513 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10514 TARGET_DEFAULT_NORETURN.
10515
08120467
TT
105162014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target-delegates.c: Rebuild.
10519 * target.c (update_current_target): Don't inherit or default
10520 to_upload_trace_state_variables.
10521 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10522 Use TARGET_DEFAULT_RETURN.
10523
1e949b00
TT
105242014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * target-delegates.c: Rebuild.
10527 * target.c (update_current_target): Don't inherit or default
10528 to_upload_tracepoints.
10529 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10530 TARGET_DEFAULT_RETURN.
10531
a2e6c147
TT
105322014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * target-delegates.c: Rebuild.
10535 * target.c (update_current_target): Don't inherit or default
10536 to_save_trace_data.
10537 * target.h (struct target_ops) <to_save_trace_data>: Use
10538 TARGET_DEFAULT_NORETURN.
10539
959bcd0b
TT
105402014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target-delegates.c: Rebuild.
10543 * target.c (update_current_target): Don't inherit or default
10544 to_get_trace_state_variable_value.
10545 * target.h (struct target_ops)
10546 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10547
afc94e66
TT
105482014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target-delegates.c: Rebuild.
10551 * target.c (update_current_target): Don't inherit or default
10552 to_trace_find.
10553 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10554
e51c07ea
TT
105552014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_trace_stop.
10560 * target.h (struct target_ops) <to_trace_stop>: Use
10561 TARGET_DEFAULT_NORETURN.
10562
6fea14cd
TT
105632014-02-19 Tom Tromey <tromey@redhat.com>
10564
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_get_tracepoint_status.
10568 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10569 TARGET_DEFAULT_NORETURN.
10570
4072d4ff
TT
105712014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target-delegates.c: Rebuild.
10574 * target.c (update_current_target): Don't inherit or default
10575 to_get_trace_status.
10576 * target.h (struct target_ops) <to_get_trace_status>: Use
10577 TARGET_DEFAULT_RETURN.
10578
25da2e80
TT
105792014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_trace_start.
10584 * target.h (struct target_ops) <to_trace_start>: Use
10585 TARGET_DEFAULT_NORETURN.
10586
86dd181d
TT
105872014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_trace_set_readonly_regions.
10592 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10593 Use TARGET_DEFAULT_NORETURN.
10594
05c41993
TT
105952014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_disable_tracepoint.
10600 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10601 TARGET_DEFAULT_NORETURN.
10602
151f70f1
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_enable_tracepoint.
10608 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10609 TARGET_DEFAULT_NORETURN.
10610
94eb98b9
TT
106112014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target-delegates.c: Rebuild.
10614 * target.c (update_current_target): Don't inherit or default
10615 to_download_trace_state_variable.
10616 * target.h (struct target_ops) <to_download_trace_state_variable>:
10617 Use TARGET_DEFAULT_NORETURN.
10618
719acc4a
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10623 to_can_download_tracepoint.
10624 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10625 TARGET_DEFAULT_RETURN.
10626
9a980a22
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_download_tracepoint.
10632 * target.h (struct target_ops) <to_download_tracepoint>: Use
10633 TARGET_DEFAULT_NORETURN.
10634
5536135b
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_trace_init.
10640 * target.h (struct target_ops) <to_trace_init>: Use
10641 TARGET_DEFAULT_RETURN.
10642
9409d39e
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target-delegates.c: Rebuild.
10646 * target.c (update_current_target): Don't inherit or default
10647 to_supports_string_tracing.
10648 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10649 TARGET_DEFAULT_RETURN.
10650
aab1b22d
TT
106512014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * target-delegates.c: Rebuild.
10654 * target.c (update_current_target): Don't inherit or default
10655 to_supports_enable_disable_tracepoint.
10656 * target.h (struct target_ops)
10657 <to_supports_enable_disable_tracepoint>: Use
10658 TARGET_DEFAULT_RETURN.
10659
a7304748
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_supports_multi_process.
10665 * target.h (struct target_ops) <to_supports_multi_process>: Use
10666 TARGET_DEFAULT_RETURN.
10667
4229b31d
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_get_ada_task_ptid.
10673 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10674 TARGET_DEFAULT_FUNC.
10675
43eba180
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_thread_architecture.
10681 * target.h (struct target_ops) <to_thread_architecture>: Use
10682 TARGET_DEFAULT_FUNC.
10683
fe31bf5b
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10688 to_execution_direction.
10689 * target.h (struct target_ops) <to_execution_direction>: Use
10690 TARGET_DEFAULT_FUNC.
10691
53e1cfc7
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (update_current_target): Don't inherit or default
10696 to_can_execute_reverse.
10697 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10698 TARGET_DEFAULT_RETURN.
10699 (target_can_execute_reverse): Unconditionally delegate.
10700
9bb9d61d
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target-delegates.c: Rebuild.
10704 * target.c (update_current_target): Don't inherit or default
10705 to_goto_bookmark.
10706 (dummy_goto_bookmark): Remove.
10707 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10708 * target.h (struct target_ops) <to_goto_bookmark>: Use
10709 TARGET_DEFAULT_NORETURN.
10710
3dbafbbb
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target-delegates.c: Rebuild.
10714 * target.c (update_current_target): Don't inherit or default
10715 to_get_bookmark.
10716 (dummy_get_bookmark): Remove.
10717 (init_dummy_target): Don't inherit or default to_get_bookmark.
10718 * target.h (struct target_ops) <to_get_bookmark>: Use
10719 TARGET_DEFAULT_NORETURN
10720
16f796b1
TT
107212014-02-19 Tom Tromey <tromey@redhat.com>
10722
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_make_corefile_notes.
10726 (init_dummy_target): Don't initialize to_make_corefile_notes.
10727 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10728 TARGET_DEFAULT_FUNC.
10729
0b5a2719
TT
107302014-02-19 Tom Tromey <tromey@redhat.com>
10731
10732 * target-delegates.c: Rebuild.
10733 * target.c (update_current_target): Don't inherit or default
10734 to_find_memory_regions.
10735 (init_dummy_target): Don't initialize to_find_memory_regions.
10736 * target.h (struct target_ops) <to_find_memory_regions>: Use
10737 TARGET_DEFAULT_FUNC.
10738
d9cb0195
TT
107392014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target-delegates.c: Rebuild.
10742 * target.c (update_current_target): Don't inherit or default
10743 to_log_command.
10744 * target.h (struct target_ops) <to_log_command>: Use
10745 TARGET_DEFAULT_IGNORE.
10746 (target_log_command): Unconditionally delegate.
10747
830ca330
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_pid_to_exec_file.
10753 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10754 TARGET_DEFAULT_RETURN.
10755
825828fc
TT
107562014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target-delegates.c: Rebuild.
10759 * target.c (update_current_target): Don't inherit or default
10760 to_thread_name.
10761 (target_thread_name): Unconditionally delegate.
10762 * target.h (struct target_ops) <to_thread_name>: Use
10763 TARGET_DEFAULT_RETURN.
10764
4a7e6dda
TT
107652014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target-delegates.c: Rebuild.
10768 * target.c (update_current_target): Don't inherit or default
10769 to_extra_thread_info.
10770 * target.h (struct target_ops) <to_extra_thread_info>: Use
10771 TARGET_DEFAULT_RETURN.
10772
0db88c1d
TT
107732014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target-delegates.c: Rebuild.
10776 * target.c (update_current_target): Don't inherit or default
10777 to_has_exited.
10778 * target.h (struct target_ops) <to_has_exited>: Use
10779 TARGET_DEFAULT_RETURN..
10780
6a9fa051
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target-delegates.c: Rebuild.
10784 * target.c (update_current_target): Don't inherit or default
10785 to_set_syscall_catchpoint.
10786 (return_one): Remove.
10787 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10788 TARGET_DEFAULT_RETURN.
10789
62f64d7a
TT
107902014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (update_current_target): Don't inherit or default
10794 to_insert_exec_catchpoint.
10795 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10796 TARGET_DEFAULT_RETURN.
10797
cda0f38c
TT
107982014-01-08 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (update_current_target): Don't inherit or default
10802 to_insert_exec_catchpoint.
10803 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10804 TARGET_DEFAULT_RETURN.
10805
95c3375e
TT
108062014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target-delegates.c: Rebuild.
10809 * target.c (update_current_target): Don't inherit or default
10810 to_remove_vfork_catchpoint.
10811 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10812 TARGET_DEFAULT_RETURN.
10813
7e18a8dc
TT
108142014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (update_current_target): Don't inherit or default
10818 to_insert_vfork_catchpoint.
10819 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10820 TARGET_DEFAULT_RETURN.
10821
e1a21fb7
TT
108222014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (update_current_target): Don't inherit or default
10826 to_remove_fork_catchpoint.
10827 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10828 TARGET_DEFAULT_RETURN.
10829
5958ebeb
TT
108302014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target-delegates.c: Rebuild.
10833 * target.c (update_current_target): Don't inherit or default
10834 to_insert_fork_catchpoint.
10835 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10836 TARGET_DEFAULT_RETURN.
10837
340ba4bf
TT
108382014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target-delegates.c: Rebuild.
10841 * target.c (update_current_target): Don't inherit or default
10842 to_post_startup_inferior.
10843 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10844 TARGET_DEFAULT_IGNORE.
10845
7634da87
TT
108462014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target-delegates.c: Rebuild.
10849 * target.c (update_current_target): Don't inherit or default
10850 to_load.
10851 * target.h (struct target_ops) <to_load>: Use
10852 TARGET_DEFAULT_NORETURN.
10853
e19e919f
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (update_current_target): Don't inherit or default
10858 to_terminal_info.
10859 * target.h (struct target_ops) <to_terminal_info>: Use
10860 TARGET_DEFAULT_FUNC.
10861
c6ea8f79
TT
108622014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target-delegates.c: Rebuild.
10865 * target.c (update_current_target): Don't inherit or default
10866 to_terminal_save_ours.
10867 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10868 TARGET_DEFAULT_IGNORE.
10869
e4a733f1
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target-delegates.c: Rebuild.
10873 * target.c (update_current_target): Don't inherit or default
10874 to_terminal_ours.
10875 * target.h (struct target_ops) <to_terminal_ours>: Use
10876 TARGET_DEFAULT_IGNORE.
10877
74fcbef9
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target-delegates.c: Rebuild.
10881 * target.c (update_current_target): Don't inherit or default
10882 to_terminal_ours_for_output.
10883 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10884 TARGET_DEFAULT_IGNORE.
10885
ddeaacc9
TT
108862014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (update_current_target): Don't inherit or default
10890 to_terminal_inferior.
10891 * target.h (struct target_ops) <to_terminal_inferior>: Use
10892 TARGET_DEFAULT_IGNORE.
10893
0343661d
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target-delegates.c: Rebuild.
10897 * target.c (update_current_target): Don't inherit or default
10898 to_terminal_init.
10899 * target.h (struct target_ops) <to_terminal_init>: Use
10900 TARGET_DEFAULT_IGNORE.
10901
77cdffe9
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target-delegates.c: Rebuild.
10905 * target.c (update_current_target): Don't inherit or default
10906 to_can_accel_watchpoint_condition.
10907 * target.h (struct target_ops)
10908 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10909
d03655e4
TT
109102014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target-delegates.c: Rebuild.
10913 * target.c (update_current_target): Don't inherit or default
10914 to_region_ok_for_hw_watchpoint.
10915 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10916 Use TARGET_DEFAULT_FUNC.
10917
65f160a9
TT
109182014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target-delegates.c: Rebuild.
10921 * target.c (update_current_target): Don't inherit or default
10922 to_watchpoint_addr_within_range.
10923 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10924 Use TARGET_DEFAULT_FUNC.
10925
61dd109f
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target-delegates.c: Rebuild.
10929 * target.c (update_current_target): Don't inherit or default
10930 to_remove_watchpoint.
10931 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10932 TARGET_DEFAULT_NORETURN.
10933
016facd4
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target-delegates.c: Rebuild.
10937 * target.c (update_current_target): Don't inherit or default
10938 to_insert_watchpoint.
10939 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10940 TARGET_DEFAULT_RETURN.
10941
418dabac
TT
109422014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target-delegates.c: Rebuild.
10945 * target.c (update_current_target): Don't inherit or default
10946 to_remove_hw_breakpoint.
10947 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10948 TARGET_DEFAULT_RETURN.
10949
61b371f9
TT
109502014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target-delegates.c: Rebuild.
10953 * target.c (update_current_target): Don't inherit or default
10954 to_insert_hw_breakpoint.
10955 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10956 TARGET_DEFAULT_RETURN.
10957
52b51d06
TT
109582014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target-delegates.c: Rebuild.
10961 * target.c (update_current_target): Don't inherit or default
10962 to_can_use_hw_breakpoint.
10963 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10964 TARGET_DEFAULT_RETURN.
10965
f86e59b2
TT
109662014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target-delegates.c: Rebuild.
10969 * target.c (update_current_target): Don't inherit or default
10970 to_files_info.
10971 * target.h (struct target_ops) <to_files_info>: Use
10972 TARGET_DEFAULT_IGNORE.
10973
6c628163
TT
109742014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target-delegates.c: Rebuild.
10977 * target.c (update_current_target): Don't inherit or default
10978 to_store.
10979 * target.h (struct target_ops) <to_store>: Use
10980 TARGET_DEFAULT_NORETURN.
10981
bebd3233
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (update_current_target): Don't inherit or default
10986 to_post_attach.
10987 * target.h (struct target_ops) <to_post_attach>: Use
10988 TARGET_DEFAULT_IGNORE.
10989
a53f3625
TT
109902014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (update_current_target): Don't inherit or default
10994 to_rcmd.
10995 (default_rcmd): New function.
10996 (do_monitor_command): Unconditionally delegate.
10997 * target.h (struct target_ops) <to_rmcd>: Use
10998 TARGET_DEFAULT_FUNC.
10999
e9a29200
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target-delegates.c: Rebuild.
11003 * target.c (init_dummy_target): Don't initialize to_attach.
11004 (target_attach): Unconditionally delegate.
11005 * target.h (struct target_ops) <to_attach>: Use
11006 TARGET_DEFAULT_FUNC.
11007
09da0d0a
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target-delegates.c: Rebuild.
11011 * target.c (target_detach): Unconditionally delegate.
11012 (init_dummy_target): Don't initialize to_detach.
11013 * target.h (struct target_ops) <to_detach>: Use
11014 TARGET_DEFAULT_IGNORE.
11015
5436ff03
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11019 Add argument.
11020 (target_augmented_libraries_svr4_read): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11023 argument.
11024
f0d960ea
TT
110252014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target.h (struct target_ops) <to_call_history_range>: Add
11028 argument.
11029 * target.c (target_call_history_range): Add argument.
11030 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11031 argument.
11032 (record_btrace_call_history_from): Update.
11033
ec0aea04
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target.h (struct target_ops) <to_call_history_from>: Add
11037 argument.
11038 * target.c (target_call_history_from): Add argument.
11039 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11040 argument.
11041
5df2fcba
TT
110422014-02-19 Tom Tromey <tromey@redhat.com>
11043
11044 * target.h (struct target_ops) <to_call_history>: Add argument.
11045 * target.c (target_call_history): Add argument.
11046 * record-btrace.c (record_btrace_call_history): Add 'self'
11047 argument.
11048
4e99c6b7
TT
110492014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target.h (struct target_ops) <to_insn_history_range>: Add
11052 argument.
11053 * target.c (target_insn_history_range): Add argument.
11054 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11055 argument.
11056 (record_btrace_insn_history_from): Update.
11057
9abc3ff3
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target.h (struct target_ops) <to_insn_history_from>: Add
11061 argument.
11062 * target.c (target_insn_history_from): Add argument.
11063 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11064 argument.
11065
7a6c5609
TT
110662014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_insn_history>: Add argument.
11069 * target.c (target_insn_history): Add argument.
11070 * record-btrace.c (record_btrace_insn_history): Add 'self'
11071 argument.
11072
606183ac
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target.h (struct target_ops) <to_goto_record>: Add argument.
11076 * target.c (target_goto_record): Add argument.
11077 * record-full.c (record_full_goto): Add 'self' argument.
11078 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11079
307a1b91
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11083 * target.c (target_goto_record_end): Add argument.
11084 * record-full.c (record_full_goto_end): Add 'self' argument.
11085 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11086
08475817
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target.h (struct target_ops) <to_goto_record_begin>: Add
11090 argument.
11091 * target.c (target_goto_record_begin): Add argument.
11092 * record-full.c (record_full_goto_begin): Add 'self' argument.
11093 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11094 argument.
11095
1c63c994
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_record_is_replaying>: Add
11099 argument.
11100 * target.c (target_record_is_replaying): Add argument.
11101 * record-full.c (record_full_is_replaying): Add 'self' argument.
11102 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11103 argument.
11104 (record_btrace_xfer_partial, record_btrace_store_registers)
11105 (record_btrace_prepare_to_store, record_btrace_resume)
11106 (record_btrace_wait, record_btrace_decr_pc_after_break)
11107 (record_btrace_find_new_threads, record_btrace_thread_alive):
11108 Update.
11109
d1b55219
TT
111102014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target.h (struct target_ops) <to_delete_record>: Add argument.
11113 * target.c (target_delete_record): Add argument.
11114 * record-full.c (record_full_delete): Add 'self' argument.
11115
1390f529
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target.h (struct target_ops) <to_save_record>: Add argument.
11119 * target.c (target_save_record): Add argument.
11120 * record-full.c (record_full_save): Add 'self' argument.
11121 (record_full_save): Add 'self' argument.
11122
630d6a4a
TT
111232014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target.h (struct target_ops) <to_info_record>: Add argument.
11126 * target.c (target_info_record): Add argument.
11127 * record.c (info_record_command): Add argument.
11128 * record-full.c (record_full_info): Add 'self' argument.
11129 * record-btrace.c (record_btrace_info): Add 'self' argument.
11130
c6cd7c02
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11134 * target.c (target_stop_recording): Add argument.
11135 * record.c (record_stop): Add argument.
11136 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11137 argument.
11138
39c49f83
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11142 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11143 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11144 argument.
11145 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11146 (_initialize_amd64_linux_nat): Use it.
11147 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11148 (_initialize_i386_linux_nat): Use it.
11149
1777056d
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11153 * target.c (target_teardown_btrace): Add argument.
11154 * remote.c (remote_teardown_btrace): Add 'self' argument.
11155 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11156 argument.
11157 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11158 argument.
11159
25e95349
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11163 * target.c (target_disable_btrace): Add argument.
11164 * remote.c (remote_disable_btrace): Add 'self' argument.
11165 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11166 argument.
11167 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11168 argument.
11169
e3c49f88
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11173 * target.c (target_enable_btrace): Add argument.
11174 * remote.c (remote_enable_btrace): Add 'self' argument.
11175 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11176 argument.
11177 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11178 argument.
11179
fe38f897
TT
111802014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11183 (target_can_use_agent): Add argument.
11184 * target.c (update_current_target): Update.
11185 * remote.c (remote_can_use_agent): Add 'self' argument.
11186 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11187
2c152180
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target.h (struct target_ops) <to_use_agent>: Add argument.
11191 (target_use_agent): Add argument.
11192 * target.c (update_current_target): Update.
11193 * remote.c (remote_use_agent): Add 'self' argument.
11194 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11195
a893e81f
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11199 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11200 (target_traceframe_info): Add argument.
11201 * target.c (update_current_target): Update.
11202 * remote.c (remote_traceframe_info): Add 'self' argument.
11203 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11204
c686c57f
TT
112052014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target.h (target_static_tracepoint_markers_by_strid): Add
11208 argument.
11209 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11210 'self' argument.
11211 * target.c (update_current_target): Update.
11212 * remote.c (struct target_ops)
11213 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11214 * linux-nat.c (struct target_ops)
11215 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11216
61fc905d
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11220 Add argument.
11221 (target_static_tracepoint_marker_at): Add argument.
11222 * target.c (update_current_target): Update.
11223 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11224 argument.
11225
c378d69d
TT
112262014-02-19 Tom Tromey <tromey@redhat.com>
11227
11228 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11229 (target_set_permissions): Add argument.
11230 * target.c (update_current_target): Update.
11231 * remote.c (remote_set_permissions): Add 'self' argument.
11232 (remote_start_remote): Update.
11233
bd7ae0f5
TT
112342014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11237 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11238 (target_get_tib_address): Add argument.
11239 * target.c (update_current_target): Update.
11240 * remote.c (remote_get_tib_address): Add 'self' argument.
11241
d9e68a2c
TT
112422014-02-19 Tom Tromey <tromey@redhat.com>
11243
11244 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11245 (target_set_trace_notes): Add argument.
11246 * target.c (update_current_target): Update.
11247 * remote.c (remote_set_trace_notes): Add 'self' argument.
11248
4da384be
TT
112492014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11252 argument.
11253 (target_set_trace_buffer_size): Add argument.
11254 * target.c (update_current_target): Update.
11255 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11256
736d5b1f
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11260 argument.
11261 (target_set_circular_trace_buffer): Add argument.
11262 * target.c (update_current_target): Update.
11263 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11264 argument.
11265
37b25738
TT
112662014-02-19 Tom Tromey <tromey@redhat.com>
11267
11268 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11269 argument.
11270 (target_set_disconnected_tracing): Add argument.
11271 * target.c (update_current_target): Update.
11272 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11273
0e67620a
TT
112742014-02-19 Tom Tromey <tromey@redhat.com>
11275
11276 * target.h (struct target_ops)
11277 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11278 (target_get_min_fast_tracepoint_insn_len): Add argument.
11279 * target.c (update_current_target): Update.
11280 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11281 argument.
11282
88ee6f45
TT
112832014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11286 argument.
11287 (target_get_raw_trace_data): Add argument.
11288 * target.c (update_current_target): Update.
11289 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11290
181e3713
TT
112912014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11294 Add argument.
11295 (target_upload_trace_state_variables): Add argument.
11296 * target.c (update_current_target): Update.
11297 * remote.c (remote_upload_trace_state_variables): Add 'self'
11298 argument.
11299 (remote_start_remote): Update.
11300
ab6617cc
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11304 argument.
11305 (target_upload_tracepoints): Add argument.
11306 * target.c (update_current_target): Update.
11307 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11308 (remote_start_remote): Update.
11309
dc3decaf
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11313 (target_save_trace_data): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_save_trace_data): Add 'self' argument.
11316
4011015b
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11320 argument.
11321 * target.h (struct target_ops)
11322 <to_get_trace_state_variable_value>: Add argument.
11323 (target_get_trace_state_variable_value): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11326 argument.
11327 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11328
bd4c6793
TT
113292014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11332 * target.h (struct target_ops) <to_trace_find>: Add argument.
11333 (target_trace_find): Add argument.
11334 * target.c (update_current_target): Update.
11335 * remote.c (remote_trace_find): Add 'self' argument.
11336 * ctf.c (ctf_trace_find): Add 'self' argument.
11337
74499f1b
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11341 (target_trace_stop): Add argument.
11342 * target.c (update_current_target): Update.
11343 * remote.c (remote_trace_stop): Add 'self' argument.
11344
db90e85c
TT
113452014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11348 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11349 argument.
11350 (target_get_tracepoint_status): Add argument.
11351 * target.c (update_current_target): Update.
11352 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11353
8bd200f1
TT
113542014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11357 * target.h (struct target_ops) <to_get_trace_status>: Add
11358 argument.
11359 (target_get_trace_status): Add argument.
11360 * target.c (update_current_target): Update.
11361 * remote.c (remote_get_trace_status): Add 'self' argument.
11362 (remote_start_remote, remote_can_download_tracepoint): Update.
11363 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11364
e2d1aae3
TT
113652014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target.h (struct target_ops) <to_trace_start>: Add argument.
11368 (target_trace_start): Add argument.
11369 * target.c (update_current_target): Update.
11370 * remote.c (remote_trace_start): Add 'self' argument.
11371
583f9a86
TT
113722014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11375 Add argument.
11376 (target_trace_set_readonly_regions): Add argument.
11377 * target.c (update_current_target): Update.
11378 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11379 argument.
11380
780b049c
TT
113812014-02-19 Tom Tromey <tromey@redhat.com>
11382
11383 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11384 argument.
11385 (target_disable_tracepoint): Add argument.
11386 * target.c (update_current_target): Update.
11387 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11388
46670d57
TT
113892014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11392 argument.
11393 (target_enable_tracepoint): Add argument.
11394 * target.c (update_current_target): Update.
11395 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11396
559d2b81
TT
113972014-02-19 Tom Tromey <tromey@redhat.com>
11398
11399 * target.h (struct target_ops) <to_download_trace_state_variable>:
11400 Add argument.
11401 (target_download_trace_state_variable): Add argument.
11402 * target.c (update_current_target): Update.
11403 * remote.c (remote_download_trace_state_variable): Add 'self'
11404 argument.
11405
a52a8357
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11409 argument.
11410 (target_can_download_tracepoint): Add argument.
11411 * target.c (update_current_target): Update.
11412 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11413
548f7808
TT
114142014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target.h (struct target_ops) <to_download_tracepoint>: Add
11417 argument.
11418 (target_download_tracepoint): Add argument.
11419 * target.c (update_current_target): Update.
11420 * remote.c (remote_download_tracepoint): Add 'self' argument.
11421
ecae04e1
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target.h (struct target_ops) <to_trace_init>: Add argument.
11425 (target_trace_init): Add argument.
11426 * target.c (update_current_target): Update.
11427 * remote.c (remote_trace_init): Add 'self' argument.
11428
fab5aa7c
TT
114292014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11432 * target.c (target_fileio_readlink): Add argument.
11433 * remote.c (remote_hostio_readlink): Add 'self' argument.
11434 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11435
dbbca37d
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11439 * target.c (target_fileio_unlink): Add argument.
11440 * remote.c (remote_hostio_unlink): Add 'self' argument.
11441 (remote_file_delete): Update.
11442 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11443
df39ea25
TT
114442014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11447 * target.c (target_fileio_close): Add argument.
11448 * remote.c (remote_hostio_close): Add 'self' argument.
11449 (remote_hostio_close_cleanup): Update.
11450 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11451 Update.
11452 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11453
a3be983c
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11457 * target.c (target_fileio_pread): Add argument.
11458 * remote.c (remote_hostio_pread): Add 'self' argument.
11459 (remote_bfd_iovec_pread, remote_file_get): Update.
11460 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11461
0d866f62
TT
114622014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11465 * target.c (target_fileio_pwrite): Add argument.
11466 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11467 (remote_file_put): Update.
11468 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11469
cd897586
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11473 * target.c (target_fileio_open): Add argument.
11474 * remote.c (remote_hostio_open): Add 'self' argument.
11475 (remote_bfd_iovec_open): Add 'self' argument.
11476 (remote_file_put): Add 'self' argument.
11477 (remote_file_get): Add 'self' argument.
11478 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11479
78eff0ec
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11483 Add argument.
11484 (target_can_run_breakpoint_commands): Add argument.
11485 * target.c (update_current_target): Update.
11486 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11487 argument.
11488 (remote_insert_breakpoint): Add 'self' argument.
11489 (remote_insert_hw_breakpoint): Add 'self' argument.
11490 (remote_can_run_breakpoint_commands): Add 'self' argument.
11491
efcc2da7
TT
114922014-02-19 Tom Tromey <tromey@redhat.com>
11493
11494 * target.h (struct target_ops)
11495 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11496 (target_supports_evaluation_of_breakpoint_conditions): Add
11497 argument.
11498 * target.c (update_current_target): Update.
11499 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11500 argument.
11501 (remote_insert_breakpoint): Add 'self' argument.
11502 (remote_insert_hw_breakpoint): Add 'self' argument.
11503 (remote_supports_cond_breakpoints): Add 'self' argument.
11504
6de37a3a
TT
115052014-02-19 Tom Tromey <tromey@redhat.com>
11506
11507 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11508 argument.
11509 (target_supports_string_tracing): Add argument.
11510 * target.c (update_current_target): Update.
11511 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11512
2bfc0540
TT
115132014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target.h (struct target_ops)
11516 <to_supports_disable_randomization>: Add argument.
11517 * target.c (find_default_supports_disable_randomization): Add
11518 argument.
11519 (target_supports_disable_randomization): Add argument.
11520 (find_default_supports_disable_randomization): Add 'self'
11521 argument.
11522 * remote.c (extended_remote_supports_disable_randomization): Add
11523 'self' argument.
11524 (remote_supports_disable_randomization): Add 'self' argument.
11525 (extended_remote_create_inferior): Update.
11526 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11527 'self' argument.
11528
7d178d6a
TT
115292014-02-19 Tom Tromey <tromey@redhat.com>
11530
11531 * target.h (struct target_ops)
11532 <to_supports_enable_disable_tracepoint>: Add argument.
11533 (target_supports_enable_disable_tracepoint): Add argument.
11534 * target.c (update_current_target): Update.
11535 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11536 argument.
11537
86ce2668
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target.h (struct target_ops) <to_supports_multi_process>: Add
11541 argument.
11542 (target_supports_multi_process): Add argument.
11543 * target.c (update_current_target): Update.
11544 * remote.c (remote_supports_multi_process): Add 'self' argument.
11545 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11546 argument.
11547 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11548 argument.
11549
4c612759
TT
115502014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.h (struct target_ops) <to_execution_direction>: Add
11553 argument.
11554 (target_execution_direction): Add argument.
11555 * target.c (default_execution_direction): Add 'self' argument.
11556 * record-full.c (record_full_execution_direction): Add 'self'
11557 argument.
11558
19db3e69
TT
115592014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11562 argument.
11563 (target_can_execute_reverse): Add argument.
11564 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11565 * record-full.c (record_full_can_execute_reverse): Add 'self'
11566 argument.
11567 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11568 argument.
11569
1e6b91a4
TT
115702014-02-19 Tom Tromey <tromey@redhat.com>
11571
11572 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11573 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11574 argument.
11575 (target_get_ada_task_ptid): Add argument.
11576 * target.c (update_current_target): Update.
11577 (default_get_ada_task_ptid): Add 'self' argument.
11578 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11579 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11580 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11581 argument.
11582 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11583 argument.
11584 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11585 argument.
11586 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11587 argument.
11588 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11589 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11590 argument.
11591
3c80fb48
TT
115922014-02-19 Tom Tromey <tromey@redhat.com>
11593
11594 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11595 (target_goto_bookmark): Add argument.
11596 * target.c (dummy_goto_bookmark): Add 'self' argument.
11597 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11598
dd0e2830
TT
115992014-02-19 Tom Tromey <tromey@redhat.com>
11600
11601 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11602 (target_get_bookmark): Add argument.
11603 * target.c (dummy_get_bookmark): Add 'self' argument.
11604 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11605
fc6691b2
TT
116062014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11609 argument.
11610 (target_make_corefile_notes): Add argument.
11611 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11612 * procfs.c (procfs_make_note_section): Add 'self' argument.
11613 (procfs_make_note_section): Add 'self' argument.
11614 (procfs_make_note_section): Add 'self' argument.
11615 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11616 argument.
11617 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11618 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11619 * exec.c (exec_make_note_section): Add 'self' argument.
11620 (exec_make_note_section): Add 'self' argument.
11621
2e73927c
TT
116222014-02-19 Tom Tromey <tromey@redhat.com>
11623
11624 * target.h (struct target_ops) <to_find_memory_regions>: Add
11625 argument.
11626 (target_find_memory_regions): Add argument.
11627 * target.c (dummy_find_memory_regions): Add 'self' argument.
11628 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11629 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11630 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11631 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11632 * exec. (exec_do_find_memory_regions): New global.
11633 (exec_set_find_memory_regions): Rewrite.
11634 (exec_find_memory_regions): New function.
11635 (init_exec_ops): Use exec_find_memory_regions.
11636
2a9a2795
TT
116372014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target.h (struct target_ops) <to_supports_non_stop>: Add
11640 argument.
11641 * target.c (find_default_supports_non_stop): Add argument.
11642 (target_supports_non_stop): Add argument.
11643 (find_default_supports_non_stop): Add 'self' argument.
11644 * remote.c (remote_supports_non_stop): Add 'self' argument.
11645 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11646
4ab76ea3
TT
116472014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * target.h (struct target_ops) <to_log_command>: Add argument.
11650 (target_log_command): Add argument.
11651 * serial.h (serial_log_command): Add 'self' argument.
11652 * serial.c (serial_log_command): Add 'self' argument.
11653
8dd27370
TT
116542014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11657 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11658 argument.
11659 (target_pid_to_exec_file): Add argument.
11660 * target.c (debug_to_pid_to_exec_file): Add argument.
11661 (update_current_target): Update.
11662 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11663 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11664 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11665 (linux_handle_extended_wait): Update.
11666 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11667 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11668 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11669 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11670
1aac633b
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target.h (struct target_ops) <to_rcmd>: Add argument.
11674 (target_rcmd): Add argument.
11675 * target.c (debug_to_rcmd): Add argument.
11676 (update_current_target, do_monitor_command): Update.
11677 * remote.c (remote_rcmd): Add 'self' argument.
11678 * monitor.c (monitor_rcmd): Add 'self' argument.
11679
1eab8a48
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * windows-nat.c (windows_stop): Add 'self' argument.
11683 * target.h (struct target_ops) <to_stop>: Add argument.
11684 * target.c (target_stop): Add argument.
11685 (debug_to_stop): Add argument.
11686 (update_current_target): Update.
11687 * remote.c (remote_stop): Add 'self' argument.
11688 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11689 (gdbsim_cntrl_c): Update.
11690 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11691 * procfs.c (procfs_stop): Add 'self' argument.
11692 * nto-procfs.c (procfs_stop): Add 'self' argument.
11693 * monitor.c (monitor_stop): Add 'self' argument.
11694 (monitor_open): Update.
11695 * linux-nat.c (linux_nat_stop): Add argument.
11696 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11697 * gnu-nat.c (gnu_stop): Add 'self' argument.
11698 * darwin-nat.c (darwin_stop): Add 'self' argument.
11699
503a628d
TT
117002014-02-19 Tom Tromey <tromey@redhat.com>
11701
11702 * target.h (struct target_ops) <to_thread_name>: Add argument.
11703 * target.c (target_thread_name): Add argument.
11704 (update_current_target): Update.
11705 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11706
c15906d8
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.h (struct target_ops) <to_extra_thread_info>: Add
11710 argument.
11711 (target_extra_thread_info): Add argument.
11712 * target.c (update_current_target): Update.
11713 * remote.c (remote_threads_extra_info): Add 'self' argument.
11714 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11715 argument.
11716 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11717 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11718 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11719 argument.
11720 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11721 argument.
11722 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11723 argument.
11724 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11725 argument.
11726
daf5e9b6
TT
117272014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target.h (struct target_ops) <to_program_signals>: Add argument.
11730 * target.c (target_program_signals): Add argument.
11731 * remote.c (remote_program_signals): Add 'self' argument.
11732
94bedb42
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11736 * target.c (target_pass_signals): Add argument.
11737 * remote.c (remote_pass_signals): Add 'self' argument.
11738 (remote_start_remote): Update.
11739 * procfs.c (procfs_pass_signals): Add 'self' argument.
11740 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11741 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11742 (linux_nat_create_inferior, linux_nat_attach): Update.
11743
da82bd6b
TT
117442014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * windows-nat.c (windows_can_run): Add 'self' argument.
11747 * target.h (struct target_ops) <to_can_run>: Add argument.
11748 (target_can_run): Add argument.
11749 * target.c (debug_to_can_run): Add argument.
11750 (update_current_target): Update.
11751 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11752 * inf-child.c (inf_child_can_run): Add 'self' argument.
11753 * go32-nat.c (go32_can_run): Add 'self' argument.
11754
d796e1d6
TT
117552014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target.h (struct target_ops) <to_has_exited>: Add argument.
11758 (target_has_exited): Add argument.
11759 * target.c (debug_to_has_exited): Add argument.
11760 (update_current_target): Update.
11761
ff214e67
TT
117622014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11765 argument.
11766 (target_set_syscall_catchpoint): Add argument.
11767 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11768 argument.
11769 * target.c (update_current_target): Update.
11770
758e29d2
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11774 argument.
11775 (target_remove_exec_catchpoint): Add argument.
11776 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11777 (update_current_target): Update.
11778 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11779 argument.
11780
ba025e51
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11784 argument.
11785 (target_insert_exec_catchpoint): Add argument.
11786 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11787 (update_current_target): Update.
11788 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11789 argument.
11790
e98cf0cd
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11794 argument.
11795 (target_remove_vfork_catchpoint): Add argument.
11796 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11797 (update_current_target): Update.
11798 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11799 argument.
11800
3ecc7da0
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11804 argument.
11805 (target_insert_vfork_catchpoint): Add argument.
11806 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11807 (update_current_target): Update.
11808 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11809 argument.
11810
973fc227
TT
118112014-02-19 Tom Tromey <tromey@redhat.com>
11812
11813 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11814 argument.
11815 (target_remove_fork_catchpoint): Add argument.
11816 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11817 (update_current_target): Update.
11818 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11819 argument.
11820
a863b201
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11824 argument.
11825 (target_insert_fork_catchpoint): Add argument.
11826 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11827 (update_current_target): Update.
11828 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11829 argument.
11830
2e97a79e
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11834 argument.
11835 (target_post_startup_inferior): Add argument.
11836 * target.c (debug_to_post_startup_inferior): Add argument.
11837 (update_current_target): Update.
11838 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11839 argument.
11840 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11841 argument.
11842 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11843 argument.
11844 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11845 argument.
11846 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11847 'self' argument.
11848 (super_post_startup_inferior): Likewise.
11849 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11850 'self' argument.
11851 (super_post_startup_inferior): Likewise.
11852 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11853 Add 'self' argument.
11854 (super_post_startup_inferior): Likewise.
11855
71a9f134
TT
118562014-02-19 Tom Tromey <tromey@redhat.com>
11857
11858 * target.h (struct target_ops) <to_load>: Add argument.
11859 * target.c (target_load): Add argument.
11860 (debug_to_load): Add argument.
11861 (update_current_target): Update.
11862 * remote.c (remote_load): Add 'self' argument.
11863 * remote-sim.c (gdbsim_load): Add 'self' argument.
11864 * remote-mips.c (mips_load): Add 'self' argument.
11865 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11866 * monitor.c (monitor_load): Add 'self' argument.
11867 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11868
0a4f40a2
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11872 (target_terminal_info): Add argument.
11873 * target.c (debug_to_terminal_info): Add argument.
11874 (default_terminal_info): Likewise.
11875 * inflow.c (child_terminal_info): Add 'self' argument.
11876 * inferior.h (child_terminal_info): Add 'self' argument.
11877 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11878
ae3bd431
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11882 argument.
11883 (target_terminal_save_ours): Add argument.
11884 * target.c (debug_to_terminal_save_ours): Add argument.
11885 (update_current_target): Update.
11886 * inflow.c (terminal_save_ours): Add 'self' argument.
11887 * inferior.h (terminal_save_ours): Add 'self' argument.
11888
e3594fd1
TT
118892014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11892 (target_terminal_ours): Add argument.
11893 * target.c (debug_to_terminal_ours): Add argument.
11894 (update_current_target): Update.
11895 * remote.c (remote_terminal_ours): Add 'self' argument.
11896 (remote_close): Update.
11897 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11898 * inflow.c (terminal_ours): Add 'self' argument.
11899 * inferior.h (terminal_ours): Add 'self' argument.
11900 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11901
2e1e1a19
TT
119022014-02-19 Pedro Alves <palves@redhat.com>
11903 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11906 argument.
11907 (target_terminal_ours_for_output): Add argument.
11908 * target.c (debug_to_terminal_ours_for_output): Add argument.
11909 (update_current_target): Update.
11910 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11911 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11912 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11913
d2f640d4
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target.h (struct target_ops) <to_terminal_inferior>: Add
11917 argument.
11918 * target.c (target_terminal_inferior): Add argument.
11919 (update_current_target): Update.
11920 * remote.c (remote_terminal_inferior): Add 'self' argument.
11921 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11922 * inflow.c (terminal_inferior): Add 'self' argument.
11923 * inferior.h (terminal_inferior): Add 'self' argument.
11924 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11925 (go32_terminal_inferior): Add 'self' argument.
11926
c42bf286
TT
119272014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11930 (target_terminal_init): Add argument.
11931 * target.c (debug_to_terminal_init): Add argument.
11932 (update_current_target): Update.
11933 * inflow.c (terminal_init_inferior): Add 'self' argument.
11934 * inferior.h (terminal_init_inferior): Add 'self' argument.
11935 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11936 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11937
c3a5ff89
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target.h (struct target_ops)
11941 <to_can_accel_watchpoint_condition>: Add argument.
11942 (target_can_accel_watchpoint_condition): Add argument.
11943 * target.c (debug_to_can_accel_watchpoint_condition): Add
11944 argument.
11945 (update_current_target): Update.
11946 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11947 'self' argument.
11948
31568a15
TT
119492014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11952 Add argument.
11953 (target_region_ok_for_hw_watchpoint): Add argument.
11954 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11955 (default_region_ok_for_hw_watchpoint): Add argument.
11956 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11957 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11958 argument.
11959 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11960 argument.
11961 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11962 argument.
11963 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11964 'self' argument.
11965 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11966 'self' argument.
11967 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11968 'self' argument.
11969 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11970 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11971 'self' argument.
11972 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11973 Add 'self' argument.
11974
7bb99c53
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11978 argument.
11979 (target_insert_watchpoint): Add argument.
11980 * target.c (debug_to_insert_watchpoint): Add argument.
11981 (update_current_target): Update.
11982 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11983 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11984 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11985 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11986 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11987 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11988 argument.
11989 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11990 (procfs_insert_hw_watchpoint): Add 'self' argument.
11991 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11992 argument.
11993 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11994 argument.
11995 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11996 argument.
11997 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11998 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11999 argument.
12000 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12001 'self' argument.
12002
11b5219a
TT
120032014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12006 argument.
12007 (target_remove_watchpoint): Add argument.
12008 * target.c (debug_to_remove_watchpoint): Add argument.
12009 (update_current_target): Update.
12010 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12011 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12012 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12013 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12014 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12015 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12016 argument.
12017 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12018 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12019 argument.
12020 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12021 argument.
12022 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12023 argument.
12024 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12025 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12026 argument.
12027 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12028 'self' argument.
12029
a64dc96c
TT
120302014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12033 argument.
12034 (target_remove_hw_breakpoint): Add argument.
12035 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12036 (update_current_target): Update.
12037 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12038 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12039 argument.
12040 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12041 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12042 argument.
12043 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12044 'self' argument.
12045
23a26771
TT
120462014-02-19 Tom Tromey <tromey@redhat.com>
12047
12048 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12049 argument.
12050 (target_insert_hw_breakpoint): Add argument.
12051 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12052 (update_current_target): Update.
12053 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12054 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12055 argument.
12056 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12057 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12058 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12059 argument.
12060 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12061 'self' argument.
12062
5461485a
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12066 argument.
12067 (target_can_use_hardware_watchpoint): Add argument.
12068 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12069 (update_current_target): Update.
12070 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12071 argument.
12072 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12073 argument.
12074 * remote.c (remote_check_watch_resources): Add 'self' argument.
12075 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12076 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12077 argument.
12078 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12079 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12080 argument.
12081 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12082 argument.
12083 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12084 argument.
12085 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12086 argument.
12087 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12088 argument.
12089 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12090 argument.
12091 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12092 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12093 argument.
12094 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12095 'self' argument.
12096
f045800c
TT
120972014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * target.h (struct target_ops) <to_post_attach>: Add argument.
12100 (target_post_attach): Add argument.
12101 * target.c (debug_to_post_attach): Add argument.
12102 (update_current_target): Update.
12103 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12104 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12105 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12106 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12107 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12108
de90e03d
TT
121092014-02-19 Tom Tromey <tromey@redhat.com>
12110
12111 * windows-nat.c (windows_close): Add 'self' argument.
12112 * tracepoint.c (tfile_close): Add 'self' argument.
12113 * target.h (struct target_ops) <to_close>: Add argument.
12114 * target.c (target_close): Add argument.
12115 (update_current_target): Update.
12116 * remote.c (remote_close): Add 'self' argument.
12117 * remote-sim.c (gdbsim_close): Add 'self' argument.
12118 * remote-mips.c (mips_close): Add 'self' argument.
12119 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12120 * record-full.c (record_full_close): Add 'self' argument.
12121 * record-btrace.c (record_btrace_close): Add 'self' argument.
12122 * monitor.h (monitor_close): Add 'self' argument.
12123 * monitor.c (monitor_close): Add 'self' argument.
12124 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12125 * linux-nat.c (linux_nat_close): Add argument.
12126 * go32-nat.c (go32_close): Add 'self' argument.
12127 * exec.c (exec_close_1): Add 'self' argument.
12128 * ctf.c (ctf_close): Add 'self' argument.
12129 * corelow.c (core_close): Add 'self' argument.
12130 (core_close_cleanup): Update.
12131 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12132 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12133
9dd130a0
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * remote.c (remote_load): New function.
12137 (init_remote_ops): Use it.
12138
46917d26
TT
121392014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12142 argument.
12143 * common/linux-btrace.h (linux_supports_btrace): Update.
12144 * remote.c (remote_supports_btrace): Add "self" argument.
12145 * target-delegates.c: Rebuild.
12146 * target.c (target_supports_btrace): Remove.
12147 * target.h (struct target_ops) <to_supports_btrace>: Add
12148 target_ops argument.
12149 (target_supports_btrace): New define.
12150
6b84065d
TT
121512014-02-19 Tom Tromey <tromey@redhat.com>
12152
12153 * record-full.c (record_full_beneath_to_resume_ops)
12154 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12155 (record_full_beneath_to_wait)
12156 (record_full_beneath_to_store_registers_ops)
12157 (record_full_beneath_to_store_registers)
12158 (record_full_beneath_to_xfer_partial_ops)
12159 (record_full_beneath_to_xfer_partial)
12160 (record_full_beneath_to_insert_breakpoint_ops)
12161 (record_full_beneath_to_insert_breakpoint)
12162 (record_full_beneath_to_remove_breakpoint_ops)
12163 (record_full_beneath_to_remove_breakpoint)
12164 (record_full_beneath_to_stopped_by_watchpoint)
12165 (record_full_beneath_to_stopped_data_address)
12166 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12167 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12168 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12169 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12170 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12171 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12172 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12173 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12174 (record_full_resume, record_full_wait_1)
12175 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12176 (record_full_store_registers, record_full_xfer_partial)
12177 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12178 (record_full_async, record_full_core_xfer_partial): Use target
12179 delegation.
12180 * target-delegates.c: Rebuild.
12181 * target.c (current_xfer_partial): Remove.
12182 (update_current_target): Do not INHERIT or de_fault
12183 to_insert_breakpoint, to_remove_breakpoint,
12184 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12185 to_is_async_p, to_async. Do not set to_xfer_partial field.
12186 (default_xfer_partial): Simplify.
12187 (current_xfer_partial): Remove.
12188 (target_wait, target_resume): Simplify.
12189 (find_default_can_async_p, find_default_is_async_p): Update.
12190 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12191 to_xfer_partial, to_stopped_by_watchpoint,
12192 to_stopped_data_address.
12193 (target_store_registers): Simplify.
12194 (forward_target_remove_breakpoint)
12195 (forward_target_insert_breakpoint): Remove.
12196 (target_remove_breakpoint, target_insert_breakpoint)
12197 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12198 * target.h (struct target_ops) <to_resume, to_wait,
12199 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12200 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12201 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12202 markup.
12203 (forward_target_remove_breakpoint)
12204 (forward_target_insert_breakpoint): Remove.
12205 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12206 directly.
12207 (record_btrace_insert_breakpoint): Delegate directly.
12208
1101cb7b
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 PR build/7701:
12212 * target-delegates.c: New file.
12213 * target.c: Include target-delegates.c.
12214 (init_dummy_target): Call install_dummy_methods.
12215 (complete_target_initialization): Call install_delegators.
12216 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12217 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12218 * make-target-delegates: New file.
12219
8b06beed
TT
122202014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * record.c (find_record_target): Use find_target_at.
12223 * target.c (find_target_at): New function.
12224 * target.h (find_target_at): Declare.
12225
6a109b6b
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12229 Add 'ops' argument.
12230 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12231 'ops' argument.
12232 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12233 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12234 'ops' argument.
12235 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12236 argument.
12237 * linux-nat.c (save_sigtrap): Update.
12238 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12239 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12240 (linux_nat_close): Update.
12241 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12242 argument.
12243 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12244 argument.
12245 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12246 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12247 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12248 (tmp_to_async): Add 'ops' argument.
12249 (record_full_stopped_by_watchpoint, record_full_async)
12250 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12251 argument.
12252 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12253 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12254 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12255 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12256 (remote_is_async_p, remote_async): Add 'ops' argument.
12257 (remote_stopped_data_address): Update.
12258 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12259 * target.c (update_current_target)
12260 (find_default_can_async_p, find_default_is_async_p): Update.
12261 (init_dummy_target): Update.
12262 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12263 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12264 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12265 (target_can_async_p, target_is_async_p, target_async)
12266 (target_stopped_by_watchpoint): Update.
12267
e095146b
YQ
122682014-02-19 Yao Qi <yao@codesourcery.com>
12269
12270 PR gdb/16220
12271 * gdbarch.sh: Remove startup_gdbarch.
12272 * gdbarch.c: Regenerated.
12273 * gdbarch.h: Likewise.
12274
bc3c6b36
KB
122752014-02-17 Kevin Buettner <kevinb@redhat.com>
12276
12277 * rl78-tdep.c (rl78_g10_register_name): New function.
12278 (rl78_return_value): Add g10 support.
12279 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12280 g10.
12281
98dc0167 122822014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12283
12284 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12285 (SUBDIR_GUILE_SRCS): Ditto.
12286 (scm-gsmob.o): Ditto.
12287
842c05cd
YQ
122882014-02-17 Yao Qi <yao@codesourcery.com>
12289
12290 * gnu-nat.c (ILL_RPC): Declare defined function.
12291
25c0bd04
YQ
122922014-02-17 Yao Qi <yao@codesourcery.com>
12293
12294 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12295 mach_msg_type_number_t.
12296 (gnu_write_inferior): Likewise.
12297
a9a758e3
YQ
122982014-02-17 Yao Qi <yao@codesourcery.com>
12299
12300 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12301 in format string.
12302 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12303 (inf_validate_procs, inf_signal): Likewise.
12304 (S_exception_raise_request): Likewise.
12305 (do_mach_notify_dead_name): Likewise.
12306 (steal_exc_port): Likewise.
12307 (gnu_read_inferior): Change 'copy_count''s type to
12308 mach_msg_type_number_t.
12309 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12310 format string.
12311
bae8023e
TS
123122014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12313
c82f56d9
TS
12314 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12315 flag. Adjust all users; in particular...
12316 (gnu_wait): ..., don't decrement its value in here...
12317 (gnu_create_inferior): ..., and instead set the flag in here,
12318 around the startup_inferior call, and call that one with
12319 START_INFERIOR_TRAPS_EXPECTED.
12320
3398af6a
TS
12321 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12322 (ILL_RPC): ... new macro.
12323 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12324 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12325 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12326 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12327 functions with ILL_RPC macro.
12328 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12329 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12330 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12331 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12332 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12333 (S_proc_getlogin_reply, S_proc_getsid_reply)
12334 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12335 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12336 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12337 (S_proc_getnports_reply, S_proc_is_important_reply)
12338 (S_proc_get_code_reply): New stub functions, generated with
12339 ILL_RPC macro.
12340
d47642c9
TS
12341 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12342 collected the type check structures.
12343
bae8023e
TS
12344 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12345
8a55ffb0
DE
123462014-02-14 Doug Evans <dje@google.com>
12347
12348 * target.c (target_write_partial): Fix result type.
12349
c2853f3d
JM
123502014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12351
12352 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12353 the proper offsets to access fpregset_t.
12354
ac61d2db
SA
123552014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12356
12357 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12358 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12359 * h8300-tdep.c (setmachinelist): Remove global.
12360 * hppa-tdep.c (hppa_sigtramp): Remove global.
12361 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12362 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12363 * ravenscar-thread.c (update_target_observer): Remove global.
12364 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12365
9d2d0b8b
TT
123662014-02-12 Tom Tromey <tromey@redhat.com>
12367
12368 * common/rsp-low.c: Update comments.
12369 * common/rsp-low.h: Update comments.
12370
a7191e8b
TT
123712014-02-12 Tom Tromey <tromey@redhat.com>
12372
12373 * common/rsp-low.c (convert_ascii_to_int): Remove.
12374 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12375
ff0e980e
TT
123762014-02-12 Tom Tromey <tromey@redhat.com>
12377
12378 * common/rsp-low.h (unhexify): Don't declare.
12379 * common/rsp-low.c (unhexify): Remove.
12380
e9371aff
TT
123812014-02-12 Tom Tromey <tromey@redhat.com>
12382
12383 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12384 * common/rsp-low.c (convert_int_to_ascii): Remove.
12385
971dc0b8
TT
123862014-02-12 Tom Tromey <tromey@redhat.com>
12387
12388 * common/rsp-low.h (hexify): Don't declare.
12389 * common/rsp-low.c (hexify): Remove.
12390
0a822afb
TT
123912014-02-12 Tom Tromey <tromey@redhat.com>
12392
12393 * common/rsp-low.c (hexify): Never take strlen of argument.
12394
9f1b45b0
TT
123952014-02-12 Tom Tromey <tromey@redhat.com>
12396
12397 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12398 * remote.c (extended_remote_run, remote_rcmd)
12399 (remote_download_trace_state_variable, remote_save_trace_data)
12400 (remote_set_trace_notes): Update.
12401 * tracepoint.c (encode_source_string, tfile_write_status)
12402 (tfile_write_uploaded_tsv): Update.
12403
9c3d6531
TT
124042014-02-12 Tom Tromey <tromey@redhat.com>
12405
12406 * tracepoint.c: Include rsp-low.h.
12407 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12408 * remote.c: Include rsp-low.h.
12409 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12410 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12411 (remote_unescape_input): Move to common/rsp-low.c.
12412 * common/rsp-low.h: New file.
12413 * common/rsp-low.c: New file.
12414 * Makefile.in (SFILES): Add common/rsp-low.c.
12415 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12416 (COMMON_OBS): Add rsp-low.o.
12417 (rsp-low.o): New target.
12418
01fd3ea5
TT
124192014-02-12 Tom Tromey <tromey@redhat.com>
12420
12421 * utils.h: Include print-utils.h.
12422 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12423 (int_string, core_addr_to_string, core_addr_to_string_nz)
12424 (hex_string, hex_string_custom): Don't declare.
12425 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12426 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12427 (hex_string_custom, int_string, core_addr_to_string)
12428 (core_addr_to_string_nz, host_address_to_string): Move to
12429 common/print-utils.c.
12430 * common/print-utils.h: New file.
12431 * common/print-utils.c: New file
12432 * Makefile.in (SFILES): Add common/print-utils.c.
12433 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12434 (COMMON_OBS): Add print-utils.o.
12435 (print-utils.o): New target.
12436
9fb50108
TT
124372014-02-12 Tom Tromey <tromey@redhat.com>
12438
12439 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12440
0548b5db
MK
124412014-02-12 Mark Kettenis <kettenis@gnu.org>
12442
12443 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12444
493443a4
MK
124452014-02-12 Mark Kettenis <kettenis@gnu.org>
12446
12447 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12448 if a PT_IO ptrace request returns sucessfully but indicates that 0
12449 bytes were transferred.
12450
706d0883
PA
124512014-02-12 Pedro Alves <palves@redhat.com>
12452 Kevin Buettner <kevinb@redhat.com>
12453
12454 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12455 TYPE_INSTANCE_FLAG_CODE_SPACE.
12456
5caa2f0b
PA
124572014-02-12 Pedro Alves <palves@redhat.com>
12458
12459 * h8300-tdep.c (pseudo_from_raw_register)
12460 (raw_from_pseudo_register): New functions.
12461 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12462 them.
12463
76fd5f74
PA
124642014-02-12 Pedro Alves <palves@redhat.com>
12465
12466 * h8300-tdep.c (h8300_register_sim_regno): New function.
12467 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12468 gdbarch_register_sim_regno hook.
12469
8f008406
SA
124702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12471
12472 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12473
195abc10
SA
124742014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12475
12476 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12477
93ffa5b9
MK
124782014-02-12 Mark Kettenis <kettenis@gnu.org>
12479
12480 * obsd-tdep.h (obsd_init_abi): New prototype.
12481 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12482 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12483 (obsd_init_abi): New functions.
12484 * i386obsd-tdep.c: Include "obsd-tdep.h".
12485 (i386obsd_init_abi): Call obsd_init_abi.
12486 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12487 (amd64obsd_init_abi): Call obsd_init_abi.
12488 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12489 obsd-tdep.c to gdb_target_obs.
12490
49caec94
JM
124912014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12492
12493 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12494 double float arguments to 16-byte in the argument slots.
12495
e1402065
DE
124962014-02-11 Doug Evans <xdje42@gmail.com>
12497
12498 * configure.ac: Don't crash if pkg-config is not found and guile
12499 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12500 in guile checks.
12501 * configure: Regenerate.
12502
edcc890f
YQ
125032014-02-11 Yao Qi <yao@codesourcery.com>
12504
12505 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12506 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12507 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12508 * gnu-nat.c (gnu_xfer_memory): Likewise.
12509 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12510 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12511 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12512 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12513
9b409511
YQ
125142014-02-11 Yao Qi <yao@codesourcery.com>
12515
12516 * target.h (enum target_xfer_error): Rename to ...
12517 (enum target_xfer_status): ... it. New. All users updated.
12518 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12519 New.
12520 (TARGET_XFER_STATUS_ERROR_P): New macro.
12521 (target_xfer_error_to_string): Remove declaration.
12522 (target_xfer_status_to_string): Declare.
12523 (target_xfer_partial_ftype): Adjust it.
12524 (struct target_ops) <to_xfer_partial>: Return
12525 target_xfer_status. Add argument xfered_len. Update
12526 comments.
12527 * target.c (target_xfer_error_to_string): Rename to ...
12528 (target_xfer_status_to_string): ... it. New. All callers
12529 updated.
12530 (target_read_live_memory): Likewise. Call target_xfer_partial
12531 instead of target_read.
12532 (memory_xfer_live_readonly_partial): Return
12533 target_xfer_status. Add argument xfered_len.
12534 (raw_memory_xfer_partial): Likewise.
12535 (memory_xfer_partial_1): Likewise.
12536 (memory_xfer_partial): Likewise.
12537 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12538 properly. Update debug message.
12539 (default_xfer_partial, current_xfer_partial): Likewise.
12540 (target_write_partial): Likewise.
12541 (target_read_partial): Likewise. All callers updated.
12542 (read_whatever_is_readable): Likewise.
12543 (target_write_with_progress): Likewise.
12544 (target_read_alloc_1): Likewise.
12545
12546 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12547 * auxv.c (procfs_xfer_auxv): Likewise.
12548 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12549 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12550 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12551 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12552 * corefile.c (read_memory): Adjust.
12553 * corelow.c (core_xfer_partial): Likewise.
12554 * ctf.c (ctf_xfer_partial): Likewise.
12555 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12556 updated.
12557 (darwin_xfer_partial): Likewise.
12558 * exec.c (section_table_xfer_memory_partial): Likewise. All
12559 callers updated.
12560 (exec_xfer_partial): Likewise.
12561 * exec.h (section_table_xfer_memory_partial): Update
12562 declaration.
12563 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12564 negative.
12565 (gnu_xfer_partial): Likewise.
12566 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12567 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12568 (ia64_hpux_xfer_solib_got): Likewise.
12569 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12570 type of 'partial_len' to ULONGEST.
12571 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12572 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12573 (linux_nat_xfer_partial): Likewise.
12574 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12575 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12576 * monitor.c (monitor_xfer_memory): Likewise.
12577 (monitor_xfer_partial): Likewise.
12578 * procfs.c (procfs_xfer_partial): Likewise.
12579 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12580 * record-full.c (record_full_xfer_partial): Likewise.
12581 (record_full_core_xfer_partial): Likewise.
12582 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12583 (gdbsim_xfer_partial): Likewise.
12584 * remote.c (remote_write_bytes_aux): Likewise. All callers
12585 updated.
12586 (remote_write_bytes, remote_read_bytes): Likewise. All
12587 callers updated.
12588 (remote_flash_erase): Likewise. All callers updated.
12589 (remote_write_qxfer): Likewise. All callers updated.
12590 (remote_read_qxfer): Likewise. All callers updated.
12591 (remote_xfer_partial): Likewise.
12592 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12593 (rs6000_xfer_shared_libraries): Likewise.
12594 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12595 (sol_thread_xfer_partial): Likewise.
12596 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12597 (sparc_xfer_partial): Likewise.
12598 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12599 updated.
12600 (spu_xfer_partial): Likewise.
12601 * spu-multiarch.c (spu_xfer_partial): Likewise.
12602 * tracepoint.c (tfile_xfer_partial): Likewise.
12603 * windows-nat.c (windows_xfer_memory): Likewise.
12604 (windows_xfer_shared_libraries): Likewise.
12605 (windows_xfer_partial): Likewise.
12606 * valprint.c: Replace 'target_xfer_error' with
12607 'target_xfer_status' in comments.
12608
a8e63083
JB
126092014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12610
12611 Checked in by Joel Brobecker <brobecker@adacore.com>.
12612 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12613
e86b67d3
JB
126142014-02-11 Joel Brobecker <brobecker@adacore.com>
12615
12616 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12617 function parameters.
12618
4b7d1f7f
WN
126192014-02-10 Will Newton <will.newton@linaro.org>
12620
12621 * elfread.c (elf_rel_plt_read): Look for a .got section if
12622 looking up .got.plt fails.
12623 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12624 on address passed to elf_gnu_ifunc_record_cache.
12625 (elf_gnu_ifunc_resolve_addr): Likewise.
12626 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12627
961842b2
JM
126282014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12629
12630 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12631 (X_RETTURN): New macro.
12632 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12633
12634 * sparc64-tdep.c (sparc64_init_abi): Hook
12635 sparc_in_function_epilogue_p.
12636
3f03e7b1
GB
126372014-02-10 Gary Benson <gbenson@redhat.com>
12638
12639 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12640 Rename name_matcher to symbol_matcher.
12641
96f861ef
GB
126422014-02-10 Gary Benson <gbenson@redhat.com>
12643
12644 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12645 Use expand_symtabs_file_matcher_ftype and
12646 expand_symtabs_symbol_matcher_ftype.
12647
ee01b665
JB
126482014-02-10 Joel Brobecker <brobecker@adacore.com>
12649
12650 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12651 (struct ada_symbol_cache): New.
12652 (ada_free_symbol_cache): Forward declare.
12653 (struct ada_pspace_data): New.
12654 (ada_pspace_data_handle): New static global.
12655 (get_ada_pspace_data, ada_pspace_data_cleanup)
12656 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12657 (cache_space, cache): Delete, now folded inside struct
12658 ada_pspace_data.
12659 (ada_get_symbol_cache): New function.
12660 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12661 implementation.
12662 (_initialize_ada_language): Remove initialization of cache_space.
12663 Move call to observer_attach_inferior_exit up, grouping it
12664 with the other observer registrations inside this function.
12665 Rename command to be more general. Add call to
12666 register_program_space_data_with_cleanup.
12667
143adbbf
JB
126682014-02-10 Joel Brobecker <brobecker@adacore.com>
12669
12670 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12671 ada_new_objfile_observer.
12672 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12673 (_initialize_tasks): Update uses of ada_new_objfile_observer
12674 and ada_tasks_normal_stop_observer.
12675
aa4fb036
JB
126762014-02-10 Joel Brobecker <brobecker@adacore.com>
12677
12678 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12679 returned by the 'Length attribute to integer.
12680
9dee8cc6
JB
126812014-02-10 Joel Brobecker <brobecker@adacore.com>
12682
12683 * ada-lang.c (_initialize_ada_language): Initialize
12684 cache_space obstack.
12685
3d9434b5
JB
126862014-02-10 Joel Brobecker <brobecker@adacore.com>
12687
12688 * ada-lang.c (HASH_SIZE): New macro.
12689 (struct cache_entry): New type.
12690 (cache_space, cache): New static globals.
12691 (ada_clear_symbol_cache, find_entry): New functions.
12692 (lookup_cached_symbol, cache_symbol): Implement.
12693 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12694 (_initialize_ada_language): Attach ada_new_objfile_observer
12695 and ada_free_objfile_observer.
12696
f0c5f9b2
JB
126972014-02-10 Joel Brobecker <brobecker@adacore.com>
12698
12699 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12700 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12701 struct block * parameter.
12702 (ada_lookup_symbol_list_worker): Constify local variable "block".
12703 Remove cast which is no longer necessary.
12704
ed3ef339
DE
127052014-02-10 Doug Evans <xdje42@gmail.com>
12706
12707 Add Guile as an extension language.
12708 * NEWS: Mention Guile scripting.
12709 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12710 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12711 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12712 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12713 (CLIBS): Add GUILE_LIBS.
12714 (install-guile): New rule.
12715 (guile.o): New rule.
12716 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12717 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12718 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12719 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12720 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12721 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12722 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12723 * configure.ac: New option --with-guile.
12724 * configure: Regenerate.
12725 * config.in: Regenerate.
12726 * auto-load.c: Remove #include "python/python.h". Add #include
12727 "gdb/section-scripts.h".
12728 (source_section_scripts): Handle Guile scripts.
12729 (_initialize_auto_load): Add name of Guile objfile script to
12730 scripts-directory help text.
12731 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12732 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12733 (struct breakpoint): New member scm_bp_object.
12734 * defs.h (enum command_control_type): New value guile_control.
12735 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12736 "extension.h".
12737 (show_user): Update comment.
12738 (_initialize_cli_cmds): Update help text for "show user". Update help
12739 text for max-user-call-depth.
12740 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12741 "extension.h".
12742 (multi_line_command_p): Add guile_control.
12743 (print_command_lines): Handle guile_control.
12744 (execute_control_command, recurse_read_control_structure): Ditto.
12745 (process_next_line): Recognize "guile" commands.
12746 * disasm.c (gdb_disassemble_info): Make non-static.
12747 * disasm.h: #include "dis-asm.h".
12748 (struct gdbarch): Add forward decl.
12749 (gdb_disassemble_info): Declare.
12750 * extension.c: #include "guile/guile.h".
12751 (extension_languages): Add guile.
12752 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12753 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12754 * gdbtypes.c (get_unsigned_type_max): New function.
12755 (get_signed_type_minmax): New function.
12756 * gdbtypes.h (get_unsigned_type_max): Declare.
12757 (get_signed_type_minmax): Declare.
12758 * guile/README: New file.
12759 * guile/guile-internal.h: New file.
12760 * guile/guile.c: New file.
12761 * guile/guile.h: New file.
12762 * guile/scm-arch.c: New file.
12763 * guile/scm-auto-load.c: New file.
12764 * guile/scm-block.c: New file.
12765 * guile/scm-breakpoint.c: New file.
12766 * guile/scm-disasm.c: New file.
12767 * guile/scm-exception.c: New file.
12768 * guile/scm-frame.c: New file.
12769 * guile/scm-gsmob.c: New file.
12770 * guile/scm-iterator.c: New file.
12771 * guile/scm-lazy-string.c: New file.
12772 * guile/scm-math.c: New file.
12773 * guile/scm-objfile.c: New file.
12774 * guile/scm-ports.c: New file.
12775 * guile/scm-pretty-print.c: New file.
12776 * guile/scm-safe-call.c: New file.
12777 * guile/scm-string.c: New file.
12778 * guile/scm-symbol.c: New file.
12779 * guile/scm-symtab.c: New file.
12780 * guile/scm-type.c: New file.
12781 * guile/scm-utils.c: New file.
12782 * guile/scm-value.c: New file.
12783 * guile/lib/gdb.scm: New file.
12784 * guile/lib/gdb/boot.scm: New file.
12785 * guile/lib/gdb/experimental.scm: New file.
12786 * guile/lib/gdb/init.scm: New file.
12787 * guile/lib/gdb/iterator.scm: New file.
12788 * guile/lib/gdb/printing.scm: New file.
12789 * guile/lib/gdb/types.scm: New file.
12790 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12791 (VPATH): Add $(GUILE_SRCDIR).
12792 (GUILE_DIR): New variable.
12793 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12794 (all): Add stamp-guile dependency.
12795 (stamp-guile): New rule.
12796 (clean-guile, install-guile, uninstall-guile): New rules.
12797 (install-only): Add install-guile dependency.
12798 (uninstall): Add uninstall-guile dependency.
12799 (clean): Add clean-guile dependency.
12800
ac020ec5
DE
128012014-02-09 Doug Evans <xdje42@gmail.com>
12802
12803 Revert this patch (which I approved, mea culpa).
12804
12805 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12806
12807 * Makefile.in (all-lib): Remove.
12808 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12809
2a081c59
JK
128102014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12811
12812 Fix Python stack corruption.
12813 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12814 gdb_py_longest.
12815
0a6bd22d
MK
128162014-02-08 Mark Kettenis <kettenis@gnu.org>
12817
12818 * Makefile.in (all-lib): Remove.
12819 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12820
1a860409
DE
128212014-02-07 Doug Evans <dje@google.com>
12822
12823 * extension-priv.h (extension_language_script_ops): Add comment.
12824 (extension_language_ops): Add comment.
caf5a491 12825 (active_ext_lang_state): Fix typo in comment.
1a860409 12826
d137e6dc
PA
128272014-02-07 Pedro Alves <palves@redhat.com>
12828
0dcb32c3 12829 PR breakpoints/16292
d137e6dc
PA
12830 * infrun.c (handle_signal_stop) <signal arrives while stepping
12831 over a breakpoint>: Switch back to the stepping thread.
12832
ce6d0892
YQ
128332014-02-07 Yao Qi <yao@codesourcery.com>
12834
12835 * target.c (target_xfer_partial): Return zero if LEN is zero.
12836
2ed4b548
YQ
128372014-02-07 Yao Qi <yao@codesourcery.com>
12838
12839 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12840 (ld_so_xfer_auxv): Likewise.
12841 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12842 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12843 * corelow.c (core_xfer_partial): Likewise.
12844 * ctf.c (ctf_xfer_partial): Likewise.
12845 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12846 (darwin_xfer_partial): Likewise.
12847 * exec.c (exec_xfer_partial): Likewise.
12848 * gnu-nat.c (gnu_xfer_partial): Likewise.
12849 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12850 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12851 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12852 * linux-nat.c (linux_xfer_siginfo): Likewise.
12853 (linux_proc_xfer_spu): Likewise.
12854 * procfs.c (procfs_xfer_partial): Likewise.
12855 * record-full.c (record_full_xfer_partial): Likewise.
12856 (record_full_core_xfer_partial): Likewise.
12857 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12858 * remote.c (remote_write_qxfer): Likewise.
12859 (remote_write_qxfer, remote_read_qxfer): Likewise.
12860 (remote_xfer_partial): Likewise.
12861 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12862 (rs6000_xfer_shared_libraries): Likewise.
12863 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12864 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12865 (spu_xfer_partial): Likewise.
12866 * target.c (memory_xfer_partial_1): Likewise.
12867 * tracepoint.c (tfile_xfer_partial): Likewise.
12868 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12869 (windows_xfer_partial): Likewise.
12870
c09f20e4
YQ
128712014-02-07 Yao Qi <yao@codesourcery.com>
12872
12873 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12874 comments.
12875 (core_xfer_shared_libraries_aix): Likewise.
12876 * gdbarch.c, gdbarch.h: Regenerated.
12877 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12878 ULONGEST. Change 'len_avail' type to ULONGEST.
12879 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12880 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12881 declaration.
12882 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12883
8635b3bf
YQ
128842014-02-07 Yao Qi <yao@codesourcery.com>
12885
12886 * corefile.c (memory_error): Get 'exception' from ERR and pass
12887 'exception' to throw_error.
12888
6dddc817
DE
128892014-02-06 Doug Evans <xdje42@gmail.com>
12890
12891 * configure.ac (libpython checking): Remove all but python.o from
12892 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12893 * configure: Regenerate.
12894
12895 * Makefile.in (SFILES): Add extension.c.
12896 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12897 (COMMON_OBS): Add extension.o.
12898 * extension.h: New file.
12899 * extension-priv.h: New file.
12900 * extension.c: New file.
12901
12902 * python/python-internal.h: #include "extension.h".
12903 (gdbpy_auto_load_enabled): Declare.
12904 (gdbpy_apply_val_pretty_printer): Declare.
12905 (gdbpy_apply_frame_filter): Declare.
12906 (gdbpy_preserve_values): Declare.
12907 (gdbpy_breakpoint_cond_says_stop): Declare.
12908 (gdbpy_breakpoint_has_cond): Declare.
12909 (void source_python_script_for_objfile): Delete.
12910 * python/python.c: #include "extension-priv.h".
12911 Delete inclusion of "observer.h".
12912 (extension_language_python): Moved here and renamed from
12913 script_language_python in py-auto-load.c.
12914 Redefined to be of type extension_language_defn.
12915 (python_extension_script_ops): New global.
12916 (python_extension_ops): New global.
12917 (struct python_env): New member previous_active.
12918 (restore_python_env): Call restore_active_ext_lang.
12919 (ensure_python_env): Call set_active_ext_lang.
12920 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12921 New arg extlang.
12922 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12923 New arg extlang.
12924 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12925 New arg extlang.
12926 (gdbpy_eval_from_control_command): Renamed from
12927 eval_python_from_control_command, made static. New arg extlang.
12928 (gdbpy_source_script) Renamed from source_python_script, made static.
12929 New arg extlang.
12930 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12931 result to int. New arg extlang.
12932 (gdbpy_source_objfile_script): Renamed from
12933 source_python_script_for_objfile, made static. New arg extlang.
12934 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12935 static. New args extlang, extlang_printers. Change result type to
12936 "void".
12937 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12938 static. New arg extlang. Rename arg printers to extlang_printers
12939 and change type to ext_lang_type_printers *.
12940 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12941 static. Replace argument arg with extlang, extlang_printers.
12942 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12943 (!HAVE_PYTHON, source_python_script): Delete.
12944 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12945 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12946 (!HAVE_PYTHON, start_type_printers): Delete.
12947 (!HAVE_PYTHON, apply_type_printers): Delete.
12948 (!HAVE_PYTHON, free_type_printers): Delete.
12949 (_initialize_python): Delete call to observer_attach_before_prompt.
12950 (finalize_python): Set/restore active extension language.
12951 (gdbpy_finish_initialization) Renamed from
12952 finish_python_initialization, made static. New arg extlang.
12953 (gdbpy_initialized): New function.
12954 * python/python.h: #include "extension.h". Delete #include
12955 "value.h", "mi/mi-cmds.h".
12956 (extension_language_python): Declare.
12957 (GDBPY_AUTO_FILE_NAME): Delete.
12958 (enum py_bt_status): Moved to extension.h and renamed to
12959 ext_lang_bt_status.
12960 (enum frame_filter_flags): Moved to extension.h.
12961 (enum py_frame_args): Moved to extension.h and renamed to
12962 ext_lang_frame_args.
12963 (finish_python_initialization): Delete.
12964 (eval_python_from_control_command): Delete.
12965 (source_python_script): Delete.
12966 (apply_val_pretty_printer): Delete.
12967 (apply_frame_filter): Delete.
12968 (preserve_python_values): Delete.
12969 (gdbpy_script_language_defn): Delete.
12970 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12971 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12972
12973 * auto-load.c: #include "extension.h".
12974 (GDB_AUTO_FILE_NAME): Delete.
12975 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12976 (script_language_gdb): Delete, moved to extension.c and renamed to
12977 extension_language_gdb.
12978 (source_gdb_script_for_objfile): Delete.
12979 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12980 (loaded_script): Change type of language member to
12981 struct extension_language_defn *.
12982 (init_loaded_scripts_info): Initialize
12983 unsupported_script_warning_printed.
12984 (maybe_add_script): Make static. Change type of language arg to
12985 struct extension_language_defn *.
12986 (clear_section_scripts): Reset unsupported_script_warning_printed.
12987 (auto_load_objfile_script_1): Rewrite to use extension language API.
12988 (auto_load_objfile_script): Make public. Remove support-compiled-in
12989 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12990 (source_section_scripts): Rewrite to use extension language API.
12991 (load_auto_scripts_for_objfile): Rewrite to use
12992 auto_load_scripts_for_objfile.
12993 (collect_matching_scripts_data): Change type of language member to
12994 struct extension_language_defn *.
12995 (auto_load_info_scripts): Change type of language arg to
12996 struct extension_language_defn *.
12997 (unsupported_script_warning_print): New function.
12998 (script_not_found_warning_print): Make static.
12999 (_initialize_auto_load): Rewrite construction of scripts-directory
13000 help.
13001 * auto-load.h (struct objfile): Add forward decl.
13002 (struct script_language): Delete.
13003 (struct auto_load_pspace_info): Add forward decl.
13004 (struct extension_language_defn): Add forward decl.
13005 (maybe_add_script): Delete.
13006 (auto_load_objfile_script): Declare.
13007 (script_not_found_warning_print): Delete.
13008 (auto_load_info_scripts): Update prototype.
13009 (auto_load_gdb_scripts_enabled): Declare.
13010 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13011 auto_load_python_scripts_enabled and made public.
13012 (script_language_python): Delete, moved to python.c.
13013 (gdbpy_script_language_defn): Delete.
13014 (info_auto_load_python_scripts): Update to use
13015 extension_language_python.
13016
13017 * breakpoint.c (condition_command): Replace call to
13018 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13019 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13020 with call to breakpoint_ext_lang_cond_says_stop.
13021 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13022 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13023 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13024 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13025 New arg slang.
13026 (local_setattro): Print name of extension language with existing
13027 stop condition.
13028
13029 * valprint.c (val_print, value_print): Update to call
13030 apply_ext_lang_val_pretty_printer.
13031 * cp-valprint.c (cp_print_value): Update call to
13032 apply_ext_lang_val_pretty_printer.
13033 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13034 (gdbpy_apply_val_pretty_printer): Renamed from
13035 apply_val_pretty_printer. New arg extlang.
13036 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13037
13038 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13039 extension language API.
13040 * cli/cli-script.c (execute_control_command): Update to call
13041 eval_ext_lang_from_control_command.
13042
13043 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13044 enum ext_lang_bt_status values. Update call to
13045 apply_ext_lang_frame_filter.
13046 (mi_cmd_stack_list_locals): Ditto.
13047 (mi_cmd_stack_list_args): Ditto.
13048 (mi_cmd_stack_list_variables): Ditto.
13049 * mi/mi-main.c: Delete #include "python/python-internal.h".
13050 Add #include "extension.h".
13051 (mi_cmd_list_features): Replace reference to python internal variable
13052 gdb_python_initialized with call to ext_lang_initialized_p.
13053
13054 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13055 Update to use enum ext_lang_frame_args. Update to call
13056 apply_ext_lang_frame_filter.
13057 * python/py-framefilter.c (extract_sym): Update to use enum
13058 ext_lang_bt_status.
13059 (extract_value, py_print_type, py_print_value): Ditto.
13060 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13061 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13062 (py_print_frame): Ditto.
13063 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13064 New arg extlang. Update to use enum ext_lang_bt_status.
13065
13066 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13067 finish_python_initialization. Replace with call to
13068 finish_ext_lang_initialization.
13069
13070 * typeprint.c (do_free_global_table): Update to call
13071 free_ext_lang_type_printers.
13072 (create_global_typedef_table): Update to call
13073 start_ext_lang_type_printers.
13074 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13075 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13076 (type_print_options): Change type of global_printers from "void *"
13077 to "struct ext_lang_type_printers *".
13078
13079 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13080 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13081 (gdbpy_preserve_values): Renamed from preserve_python_values.
13082 New arg extlang.
13083 (!HAVE_PYTHON, preserve_python_values): Delete.
13084
13085 * utils.c (quit_flag): Delete, moved to extension.c.
13086 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13087 extension.c.
13088
13089 * eval.c: Delete #include "python/python.h".
13090 * main.c: Delete #include "python/python.h".
13091
13092 * defs.h: Update comment.
13093
6af79985
JB
130942014-02-06 Joel Brobecker <brobecker@adacore.com>
13095
13096 GDB 7.7 released.
13097
12c5175d
MK
130982014-02-05 Mark Kettenis <kettenis@gnu.org>
13099
13100 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13101 defined.
13102
8dc5b319
YQ
131032014-02-05 Yao Qi <yao@codesourcery.com>
13104
13105 * remote.c (remote_pass_signals): Remove local 'buf' and use
13106 rs->buf.
13107 (remote_program_signals): Likewise.
13108
de7b2893
YQ
131092014-02-05 Yao Qi <yao@codesourcery.com>
13110
13111 * ctf.c: Include "inferior.h" and "gdbthread.h".
13112 (CTF_PID): A new macro.
13113 (ctf_open): Call inferior_appeared and add_thread_silent.
13114 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13115 (ctf_thread_alive): New function.
13116 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13117
66d032ac
YQ
131182014-02-05 Yao Qi <yao@codesourcery.com>
13119
13120 Revert this patch:
13121
13122 2013-05-24 Yao Qi <yao@codesourcery.com>
13123
13124 * tracepoint.c (TFILE_PID): Remove.
13125 (tfile_open): Don't add thread and inferior.
13126 (tfile_close): Don't set 'inferior_ptid'. Don't call
13127 exit_inferior_silent.
13128 (tfile_thread_alive): Remove.
13129 (init_tfile_ops): Don't set field 'to_thread_alive' of
13130 tfile_ops.
13131
f4ccffad
CE
131322014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13133
13134 * remote.c (remote_start_remote): Call remote_check_symbols even
13135 if only symbol-file (not file) has been given.
13136
591a12a1
UW
131372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13138
13139 * gdbarch.sh (skip_entrypoint): New callback.
13140 * gdbarch.c, gdbarch.h: Regenerate.
13141 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13142 * infrun.c (fill_in_stop_func): Likewise.
13143 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13144 (ppc_elfv2_elf_make_msymbol_special): New function.
13145 (ppc_elfv2_skip_entrypoint): Likewise.
13146 (ppc_linux_init_abi): Install them for ELFv2.
13147
cc0e89c5
UW
131482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13149
13150 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13151 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13152 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13153 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13154 structures returned in GPRs.
13155
52f548e4
UW
131562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13157
13158 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13159 offset to the stack parameter list for the ELFv2 ABI.
13160
d4094b6a
UW
131612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13162
13163 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13164 set_gdbarch_convert_from_func_ptr_addr and
13165 set_gdbarch_elf_make_msymbol_special for ELFv1.
13166 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13167 function descriptors on ELFv1.
13168 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13169 set up r12 at function entry.
13170
cd453cd0
UW
131712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13172
13173 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13174 (struct gdbarch_tdep): New member elf_abi.
13175
13176 * rs6000-tdep.c: Include "elf/ppc64.h".
13177 (rs6000_gdbarch_init): Detect ELF ABI version.
13178
0ff3e01f
UW
131792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13180
13181 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13182 within a register pair holding a DFP 128-bit value on little-endian.
13183 (ppc64_sysv_abi_return_value_base): Likewise.
13184 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13185 (dfp_pseudo_register_write): Likewise.
13186
5b757e5d
UW
131872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13188
13189 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13190 offset on little-endian when passing _Decimal32.
13191 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13192
084ee545
UW
131932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13194
13195 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13196 of the overlapped FP register within the VSX register on little-
13197 endian platforms.
13198 (efpr_pseudo_register_write): Likewise.
13199
d63167af
UW
132002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13201
13202 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13203 offset on little-endian when passing small structures.
13204
e765b44c
UW
132052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13206
13207 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13208 (struct ppc64_sysv_argpos): New data structure.
13209 (ppc64_sysv_abi_push_float): Remove.
13210 (ppc64_sysv_abi_push_val): New function.
13211 (ppc64_sysv_abi_push_integer): Likewise.
13212 (ppc64_sysv_abi_push_freg): Likewise.
13213 (ppc64_sysv_abi_push_vreg): Likewise.
13214 (ppc64_sysv_abi_push_param): Likewise.
13215 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13216 (ppc64_sysv_abi_return_value_base): New function.
13217 (ppc64_sysv_abi_return_value): Refactor to use it.
13218
36c24d95
UW
132192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13220
13221 * NEWS: Document new target powerpc64le-*-linux*.
13222
26fd9228
MK
132232014-02-04 Mark Kettenis <kettenis@gnu.org>
13224
13225 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13226 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13227 core dumps.
13228 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13229 register set used in ELF core dumps. Add floating-point register set.
13230
c5bb7362
KB
132312014-02-03 Kevin Buettner <kevinb@redhat.com>
13232
74228e77 13233 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13234 dwarf2_to_gdb[] table using symbolic constants. Adjust
13235 penultimate entry from number representing the PC register
13236 to symbolic constant representing the MDR register. Add
13237 constant for the PC register to the end of the table.
13238
af09351e
MK
132392014-02-03 Mark Kettenis <kettenis@gnu.org>
13240
13241 * bsd-kvm.c: Include <sys/param.h>
13242
8507e05d
MK
132432014-02-03 Mark Kettenis <kettenis@gnu.org>
13244
13245 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13246
ae56bfb8
JB
132472014-01-31 Joel Brobecker <brobecker@adacore.com>
13248
13249 * ada-lang.h (clear_ada_sym_cache): Delete.
13250
718ee4dc
UW
132512014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13252
13253 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13254
401e27fd
JM
132552014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13256
13257 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13258 the sigreturn register save area only if the syscall is
13259 sigreturn.
13260
a7c88acd
JB
132612014-01-29 Joel Brobecker <brobecker@adacore.com>
13262
13263 * valops.c (value_slice): Minor reformatting.
13264
fa0079ea
UW
132652014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13266
13267 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13268
c6044dd1
JB
132692014-01-28 Joel Brobecker <brobecker@adacore.com>
13270
13271 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13272 New static globals.
13273 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13274 (ada_ignore_descriptive_types_p): New static global.
13275 (find_parallel_type_by_descriptive_type): Return immediately
13276 if ada_ignore_descriptive_types_p is set.
13277 (_initialize_ada_language): Register new commands "maintenance
13278 set ada", "maintenance show ada", "maintenance set ada
13279 ignore-descriptive-types" and "maintenance show ada
13280 ignore-descriptive-types".
13281 * NEWS: Add entry for new "maint ada set/show
13282 ignore-descriptive-types" commands.
13283
568e808b
MM
132842014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13285
13286 * record-btrace.c (record_btrace_close): Call btrace_teardown
13287 for all threads.
13288
467d141b
JB
132892014-01-27 Joel Brobecker <brobecker@adacore.com>
13290
13291 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13292 "ui-out.h".
13293
fb151210
JB
132942014-01-27 Joel Brobecker <brobecker@adacore.com>
13295
13296 * ada-typeprint (type_is_full_subrange_of_target_type):
13297 New function.
13298 (print_range): Add parameter bounds_prefered_p. If not set,
13299 try printing range types using the name of their base type.
13300 (print_range_type): Add parameter bounds_prefered_p.
13301 Use it in call to print_range.
13302 (print_array_type, ada_print_type): Update calls to print_range
13303 and print_range_type.
13304
aba02109
JB
133052014-01-27 Joel Brobecker <brobecker@adacore.com>
13306
13307 * ada-typeprint.c (print_array_type, print_choices, print_range)
13308 (print_range_bound, print_dynamic_range_bound, print_range_type):
13309 Remove declaration.
13310
e62e21fd
JB
133112014-01-27 Joel Brobecker <brobecker@adacore.com>
13312
13313 * ada-typeprint.c (print_range): Add missing empty line
13314 after local declaration.
13315
859cf5d1
JB
133162014-01-27 Joel Brobecker <brobecker@adacore.com>
13317
13318 * ada-valprint.c (print_optional_low_bound): Get index_type's
13319 target type for as long as it is a TYPE_CODE_RANGE.
13320
25790f6f
JB
133212014-01-27 Joel Brobecker <brobecker@adacore.com>
13322
13323 * procfs.c (procfs_make_note_section): Remove assertion and
13324 associated comment.
13325
6b6aa828
YQ
133262014-01-24 Yao Qi <yao@codesourcery.com>
13327
13328 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13329 * corelow.c (get_core_siginfo): Likewise.
13330
5d6df423
YQ
133312014-01-24 Yao Qi <yao@codesourcery.com>
13332
13333 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13334 ULONGEST. Don't check 'len' is negative.
13335 (remote_write_bytes): Change type of 'len' to ULONGEST.
13336
83b645b8
TT
133372014-01-23 Tom Tromey <tromey@redhat.com>
13338
13339 PR python/16485:
13340 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13341 Handle exception from frame.block.
13342 (FrameVars.fetch_frame_locals): Likewise.
13343
0740f8d8
TT
133442014-01-23 Tom Tromey <tromey@redhat.com>
13345
13346 PR python/16487:
13347 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13348 on a NULL pointer. Move "goto error" to correct place.
13349
21909fa1
TT
133502014-01-23 Tom Tromey <tromey@redhat.com>
13351
13352 PR python/16491:
13353 * python/py-framefilter.c (apply_frame_filter): Call
13354 ensure_python_env after computing gdbarch.
13355
17fde6d0
YQ
133562014-01-23 Yao Qi <yao@codesourcery.com>
13357
13358 * target.c (raw_memory_xfer_partial): Change argument type
13359 from void * to gdb_byte *.
13360 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13361
87ce2a04
DE
133622014-01-22 Doug Evans <dje@google.com>
13363
13364 New gdbserver option --debug-format=timestamp.
13365 * NEWS: Mention it.
13366
237b092b
AA
133672014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13368
13369 * syscalls/s390x-linux.xml: New file.
13370 * syscalls/s390-linux.xml: New file.
13371 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13372 (XML_SYSCALL_FILENAME_S390X): Likewise.
13373 (op_svc): New enum value for SVC opcode.
13374 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13375 (s390_linux_get_syscall_number): New function.
13376 (s390_gdbarch_init): Register '*get_syscall_number' and the
13377 syscall xml file name.
13378 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13379 "s390-linux.xml" and "s390x-linux.xml".
13380 * NEWS: Announce new feature.
13381
54bff650
BS
133822014-01-22 Baruch Siach <baruch@tkos.co.il>
13383
13384 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13385
14e361d7
PA
133862014-01-22 Pedro Alves <palves@redhat.com>
13387
13388 * xtensa-config.c: Include defs.h.
13389
46bbb3ed
JB
133902014-01-22 Joel Brobecker <brobecker@adacore.com>
13391
13392 * common/common-utils.h: Add "ARI:" comment beside __func__
13393 reference.
13394
3a80edfc
JB
133952014-01-22 Joel Brobecker <brobecker@adacore.com>
13396
13397 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13398 documentation a bit.
13399
4869db5e
RM
134002014-01-21 Roland McGrath <mcgrathr@google.com>
13401
13402 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13403 * configure: Regenerate.
13404 * aclocal.m4: Regenerate.
13405 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13406 New substituted variables.
13407 (install-strip): New target.
13408 (INSTALL_SCRIPT): New substituted variable.
13409 (FLAGS_TO_PASS): Add it.
13410 (install-only): Use $(INSTALL_SCRIPT) rather than
13411 $(INSTALL_PROGRAM) for gcore.
13412
9ea4267d
TT
134132014-01-20 Tom Tromey <tromey@redhat.com>
13414
13415 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13416 together.
13417
1f2bdf09
TT
134182014-01-20 Tom Tromey <tromey@redhat.com>
13419
13420 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13421 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13422 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13423 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13424 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13425 (struct cmd_list_element) <flags>: Remove.
13426 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13427 doc_allocated>: New fields.
13428 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13429 bitfields.
13430 * maint.c (maintenance_do_deprecate): Update.
13431 * top.c (execute_command): Update.
13432
e671835b
BS
134332014-01-20 Baruch Siach <baruch@tkos.co.il>
13434
13435 * xtensa-linux-nat.c: Include asm/ptrace.h.
13436
50367cd2
IB
134372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13438
13439 * Makefile.in (SFILES): Add d-support.c.
13440 (COMMON_OBS): Add d-support.o.
13441 * d-lang.h (d_parse_symbol): Add comment, now defined in
13442 d-support.c.
13443 * d-lang.c (parse_call_convention)
13444 (parse_attributes, parse_function_types)
13445 (parse_function_args, parse_type, parse_identifier)
13446 (call_convention_p, d_parse_symbol): Move functions to ...
13447 * d-support.c: ... New file.
13448
ec9f644a
IB
134492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13450
13451 * d-lang.h (d_parse_symbol): Add declaration.
13452 * d-lang.c (extract_identifiers)
13453 (extract_type_info): Remove functions.
13454 (parse_call_convention, parse_attributes)
13455 (parse_function_types, parse_function_args)
13456 (parse_type, parse_identifier, call_convention_p)
13457 (d_parse_symbol): New functions.
13458 (d_demangle): Use d_parse_symbol to demangle D symbols.
13459
94b1b47e
IB
134602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13461
13462 * d-lang.h (struct builtin_d_type): New data type.
13463 (builtin_d_type): Add declaration.
13464 * d-lang.c (d_language_arch_info, build_d_types)
13465 (builtin_d_type): New functions.
13466 (enum d_primitive_types): New data type.
13467 (d_language_defn): Change c_language_arch_info to
13468 d_language_arch_info.
13469 (d_type_data): New static variable.
13470 (_initialize_d_language): Initialize d_type_data.
13471
63778547
IB
134722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13473
13474 * d-lang.h (d_main_name): Add declaration.
13475 * d-lang.c (d_main_name): New function.
13476 * symtab.c (find_main_name): Add call to d_main_name.
13477
3271ba66
IB
134782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13479
13480 * d-lang.c (d_language_defn): Change macro_expansion_c to
13481 macro_expansion_no.
13482
d36b3012
IB
134832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13484
13485 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13486
c90a6fb7
SDJ
134872014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13488
13489 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13490 gdb_exception" declaration.
13491 * remote.c (getpkt_or_notif_sane): Likewise.
13492
749234e5
DE
134932014-01-17 Doug Evans <dje@google.com>
13494
13495 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13496 function, contents of dirnames_to_char_ptr_vec_append moved here.
13497 (delim_string_to_char_ptr_vec): New function.
13498 (dirnames_to_char_ptr_vec_append): Rewrite.
13499 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13500
df049a58
DE
135012014-01-17 Doug Evans <dje@google.com>
13502
13503 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13504 and moved here ...
13505 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13506 #include "common-utils.h".
13507 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13508 * common/vec.h (VEC_ASSERT_PASS): Update.
13509 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13510 (MACH_CHECK_ERROR): Update.
13511
69f97648
SM
135122014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13513
13514 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13515 comments.
13516 * gdbarch.h: Regenerate.
13517
98b1cfdc
TT
135182014-01-16 Tom Tromey <tromey@redhat.com>
13519
13520 * value.c (struct value) <regnum>: Move earlier.
13521
77a19445
TT
135222014-01-16 Tom Tromey <tromey@redhat.com>
13523
13524 * remote.c (extended_remote_create_inferior): Rename from
13525 extended_remote_create_inferior_1. Add "ops" argument. Remove
13526 old implementation.
13527
62261490
PA
135282014-01-16 Pedro Alves <palves@redhat.com>
13529
13530 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13531 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13532 the backchain.
13533
4d65956b
DE
135342014-01-16 Doug Evans <dje@google.com>
13535
13536 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13537
52834460
MM
135382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13539
13540 * btrace.h (btrace_thread_flag): New.
13541 (struct btrace_thread_info) <flags>: New.
13542 * record-btrace.c (record_btrace_resume_thread)
13543 (record_btrace_find_thread_to_move, btrace_step_no_history)
13544 (btrace_step_stopped, record_btrace_start_replaying)
13545 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13546 (record_btrace_find_resume_thread): New.
13547 (record_btrace_resume, record_btrace_wait): Extend.
13548 (record_btrace_can_execute_reverse): New.
13549 (record_btrace_open): Fail in non-stop mode.
13550 (record_btrace_set_replay): Split into this, ...
13551 (record_btrace_stop_replaying): ... this, ...
13552 (record_btrace_clear_histories): ... and this.
13553 (init_record_btrace_ops): Init to_can_execute_reverse.
13554 * NEWS: Announce it.
13555
118e6252
MM
135562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13559 (forward_target_decr_pc_after_break)
13560 (target_decr_pc_after_break): New.
13561 * target.c (forward_target_decr_pc_after_break)
13562 (target_decr_pc_after_break): New.
13563 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13564 instead of gdbarch_decr_pc_after_break.
13565 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13566 instead of gdbarch_decr_pc_after_break.
13567 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13568 instead of gdbarch_decr_pc_after_break.
13569 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13570 instead of gdbarch_decr_pc_after_break.
13571 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13572 instead of gdbarch_decr_pc_after_break.
13573 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13574 instead of gdbarch_decr_pc_after_break.
13575
6e07b1d2
MM
135762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13577
13578 * btrace.c: Include regcache.h.
13579 (btrace_add_pc): New.
13580 (btrace_enable): Call btrace_add_pc.
13581 (btrace_is_empty): New.
13582 * btrace.h (btrace_is_empty): New.
13583 * record-btrace.c (require_btrace, record_btrace_info): Call
13584 btrace_is_empty.
13585
969c39fb
MM
135862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13587
13588 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13589 Support delta reads.
13590 (linux_disable_btrace): Change return type.
13591 * common/linux-btrace.h (linux_read_btrace): Change parameters
13592 and return type to allow error reporting. Update users.
13593 (linux_disable_btrace): Change return type. Update users.
13594 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13595 New.
13596 (btrace_error): New.
13597 (btrace_block) <begin>: Comment on BEGIN == 0.
13598 * btrace.c (btrace_compute_ftrace): Start from the end of
13599 the current trace.
13600 (btrace_stitch_trace, btrace_clear_history): New.
13601 (btrace_fetch): Read delta trace, return if replaying.
13602 (btrace_clear): Move clear history code to btrace_clear_history.
13603 (parse_xml_btrace): Throw an error if parsing failed.
13604 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13605 and return type to allow error reporting.
13606 (target_read_btrace): Change parameters and return type to allow
13607 error reporting.
13608 * target.c (target_read_btrace): Update.
13609 * remote.c (remote_read_btrace): Support delta reads. Pass
13610 errors on.
13611 * NEWS: Announce it.
13612
0b722aec
MM
136132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13614
13615 * record.h (record_btrace_frame_unwind)
13616 (record_btrace_tailcall_frame_unwind): New declarations.
13617 * dwarf2-frame: Include record.h
13618 (dwarf2_frame_cfa): Throw an error for btrace frames.
13619 * record-btrace.c: Include hashtab.h.
13620 (btrace_get_bfun_name): New.
13621 (btrace_call_history): Call btrace_get_bfun_name.
13622 (struct btrace_frame_cache): New.
13623 (bfcache): New.
13624 (bfcache_hash, bfcache_eq, bfcache_new): New.
13625 (btrace_get_frame_function): New.
13626 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13627 (record_btrace_frame_this_id): Compute own id.
13628 (record_btrace_frame_prev_register): Provide PC, throw_error
13629 for all other registers.
13630 (record_btrace_frame_sniffer): Detect btrace frames.
13631 (record_btrace_tailcall_frame_sniffer): New.
13632 (record_btrace_frame_dealloc_cache): New.
13633 (record_btrace_frame_unwind): Add new functions.
13634 (record_btrace_tailcall_frame_unwind): New.
13635 (_initialize_record_btrace): Allocate cache.
13636 * btrace.c (btrace_clear): Call reinit_frame_cache.
13637 * NEWS: Announce it.
13638
066ce621
MM
136392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13640
13641 * record-btrace.c (record_btrace_set_replay)
13642 (record_btrace_goto_begin, record_btrace_goto_end)
13643 (record_btrace_goto): New.
13644 (init_record_btrace_ops): Initialize them.
13645 * NEWS: Announce it.
13646
e2887aa3
MM
136472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13648
13649 * record-btrace.c (record_btrace_find_new_threads)
13650 (record_btrace_thread_alive): New.
13651 (init_record_btrace_ops): Initialize to_find_new_threads and
13652 to_thread_alive.
13653
b2f4cfde
MM
136542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13655
13656 * record-btrace.c (record_btrace_resume): New.
13657 (record_btrace_wait): New.
13658 (init_record_btrace_ops): Initialize to_wait and to_resume.
13659
633785ff
MM
136602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13661
13662 * record-btrace.c (record_btrace_xfer_partial)
13663 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13664 (record_btrace_allow_memory_access): New.
13665 (init_record_btrace_ops): Initialize new methods.
13666 * target.c (raw_memory_xfer_partial): Bail out if target reports
13667 that this memory is not available.
13668
3db08215
MM
136692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13670
13671 * target.h (target_ops) <to_insert_breakpoint>
13672 <to_remove_breakpoint>: Add target_ops parameter.
13673 (forward_target_insert_breakpoint): New.
13674 (forward_target_remove_breakpoint): New.
13675 (memory_remove_breakpoint, memory_insert_breakpoint):
13676 Add target_ops parameter.
13677 * target.c (target_insert_breakpoint): Split into this and ...
13678 (forward_target_insert_breakpoint): ... this.
13679 (target_remove_breakpoint): Split into this and ...
13680 (forward_target_remove_breakpoint): ... this.
13681 (debug_to_insert_breakpoint): Add target_ops parameter.
13682 Call forward_target_insert_breakpoint.
13683 (debug_to_remove_breakpoint): Add target_ops parameter.
13684 Call forward_target_remove_breakpoint.
13685 (update_current_target): Do not inherit or default to_insert_breakpoint
13686 and to_remove_breakpoint.
13687 * corelow.c (ignore): Add target_ops parameter.
13688 * exec.c (ignore): Add target_ops parameter.
13689 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13690 Add target_ops parameter.
13691 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13692 Add target_ops parameter.
13693 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13694 Add target_ops parameter.
13695 * record-full.c (record_full_beneath_to_insert_breakpoint)
13696 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13697 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13698 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13699 (record_full_core_remove_breakpoint): Add target_ops parameter.
13700 Update users.
13701 (record_full_beneath_to_insert_breakpoint_ops)
13702 (record_full_beneath_to_remove_breakpoint_ops)
13703 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13704 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13705 tmp_to_remove_breakpoint_ops,
13706 record_full_beneath_to_insert_breakpoint_ops, and
13707 record_full_beneath_to_remove_breakpoint_ops.
13708 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13709 (m32r_remove_breakpoint): Add target_ops parameter.
13710 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13711 Add target_ops parameter.
13712 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13713 Add target_ops parameter.
13714
cecac1ab
MM
137152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13716 Markus Metzger <markus.t.metzger@intel.com>
13717
13718 * record-btrace.c: Include frame-unwind.h.
13719 (record_btrace_frame_unwind_stop_reason)
13720 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13721 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13722 New.
13723 (init_record_btrace_ops): Install it.
13724
824344ca
MM
137252014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13726
13727 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13728 get_prev_frame_1.
13729
32261e52
MM
137302014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13731
13732 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13733 earlier.
13734
ea001bdc
MM
137352014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13736
13737 * frame-unwind.c: Include target.h.
13738 (frame_unwind_try_unwinder): New function with code from ...
13739 (frame_unwind_find_by_frame): ... here. New variable
13740 unwinder_from_target, call also target_get_unwinder)
13741 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13742 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13743 * target.h (struct target_ops): New fields to_get_unwinder and
13744 to_get_tailcall_unwinder.
13745 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13746
1f3ef581
MM
137472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13748
13749 * record-btrace.c (record_btrace_fetch_registers)
13750 (record_btrace_store_registers)
13751 (record_btrace_to_prepare_to_store): New.
13752 (init_record_btrace_ops): Add the above.
13753
f32dbf8c
MM
137542014-01-16 Tom Tromey <tromey@redhat.com>
13755
13756 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13757 * target.h (struct target_ops) <to_prepare_to_store>: Add
13758 argument.
13759 (target_prepare_to_store): Add argument.
13760 * target.c (debug_to_prepare_to_store): Add argument.
13761 (update_current_target): Update.
13762 * remote.c (remote_prepare_to_store): Add 'self' argument.
13763 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13764 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13765 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13766 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13767 argument.
13768 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13769 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13770 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13771 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13772 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13773
07bbe694
MM
137742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13775
13776 * btrace.h (replay) <replay>: New.
13777 (btrace_is_replaying): New.
13778 * btrace.c (btrace_clear): Free replay iterator.
13779 (btrace_is_replaying): New.
13780 * record-btrace.c (record_btrace_is_replaying): New.
13781 (record_btrace_info): Print insn number if replaying.
13782 (record_btrace_insn_history): Start at replay position.
13783 (record_btrace_call_history): Start at replay position.
13784 (init_record_btrace_ops): Init to_record_is_replaying.
13785
0688d04e
MM
137862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13787
13788 * record-btrace.c (record_btrace_insn_history_range): Include
13789 end.
13790 (record_btrace_insn_history_from): Adjust range.
13791 (record_btrace_call_history_range): Include
13792 end.
13793 (record_btrace_call_history_from): Adjust range.
13794 * NEWS: Announce changes.
13795
8710b709
MM
137962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13797
13798 * record.h (enum record_print_flag)
13799 <record_print_indent_calls>: New.
13800 * record.c (get_call_history_modifiers): Recognize /c modifier.
13801 (_initialize_record): Document /c modifier.
13802 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13803 Reorder fields. Optionally indent the function name. Update
13804 all users.
13805 * NEWS: Announce changes.
13806
d0fa7535
MM
138072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13808
13809 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13810
5de9129b
MM
138112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13812
13813 * btrace.c (ftrace_new_function): Start counting at one.
13814 * record-btrace.c (record_btrace_info): Adjust number of calls
13815 and insns.
13816 * NEWS: Announce it.
13817
7acbe133
MM
138182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13819
13820 * record-btrace.c (btrace_call_history_insn_range): Print
13821 insn range as [begin, end].
13822
23a7fe75
MM
138232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13824
13825 * btrace.h (struct btrace_func_link): New.
13826 (enum btrace_function_flag): New.
13827 (struct btrace_inst): Rename to ...
13828 (struct btrace_insn): ...this. Update all users.
13829 (struct btrace_func) <ibegin, iend>: Remove.
13830 (struct btrace_func_link): New.
13831 (struct btrace_func): Rename to ...
13832 (struct btrace_function): ...this. Update all users.
13833 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13834 (number, level, flags>: New.
13835 (struct btrace_insn_iterator): Rename to ...
13836 (struct btrace_insn_history): ...this.
13837 Update all users.
13838 (struct btrace_insn_iterator, btrace_call_iterator): New.
13839 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13840 (struct btrace_target_info) <begin, end, level>
13841 <insn_history, call_history>: New.
13842 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13843 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13844 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13845 (btrace_call_number, btrace_call_begin, btrace_call_end)
13846 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13847 (btrace_find_function_by_number, btrace_set_insn_history)
13848 (btrace_set_call_history): New.
13849 * btrace.c (btrace_init_insn_iterator)
13850 (btrace_init_func_iterator, compute_itrace): Remove.
13851 (ftrace_print_function_name, ftrace_print_filename)
13852 (ftrace_skip_file): Change
13853 parameter to const.
13854 (ftrace_init_func): Remove.
13855 (ftrace_debug): Use new btrace_function fields.
13856 (ftrace_function_switched): Also consider gaining and
13857 losing symbol information).
13858 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13859 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13860 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13861 New.
13862 (ftrace_new_function): Move. Remove debug print.
13863 (ftrace_update_lines, ftrace_update_insns): New.
13864 (ftrace_update_function): Check for call, ret, and jump.
13865 (compute_ftrace): Renamed to ...
13866 (btrace_compute_ftrace): ...this. Rewritten to compute call
13867 stack.
13868 (btrace_fetch, btrace_clear): Updated.
13869 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13870 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13871 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13872 (btrace_call_number, btrace_call_begin, btrace_call_end)
13873 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13874 (btrace_find_function_by_number, btrace_set_insn_history)
13875 (btrace_set_call_history): New.
13876 * record-btrace.c (require_btrace): Use new btrace thread
13877 info fields.
13878 (record_btrace_info, btrace_insn_history)
13879 (record_btrace_insn_history, record_btrace_insn_history_range):
13880 Use new btrace thread info fields and new iterator.
13881 (btrace_func_history_src_line): Rename to ...
13882 (btrace_call_history_src_line): ...this. Use new btrace
13883 thread info fields.
13884 (btrace_func_history): Rename to ...
13885 (btrace_call_history): ...this. Use new btrace thread info
13886 fields and new iterator.
13887 (record_btrace_call_history, record_btrace_call_history_range):
13888 Use new btrace thread info fields and new iterator.
13889
8372a7cb
MM
138902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13891
13892 * frame.h (frame_id_build_unavailable_stack_special): New.
13893 * frame.c (frame_id_build_unavailable_stack_special): New.
13894
c2170eef
MM
138952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13896
13897 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13898 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13899 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13900 to gdbarch.
13901 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13902 (i386_insn_is_jump, i386_jmp_p): New.
13903 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13904 insn_is_jump to gdbarch.
13905 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13906 * gdbarch.h: Regenerated.
13907 * gdbarch.c: Regenerated.
13908 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13909 (default_insn_is_jump): New.
13910 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13911 (default_insn_is_jump): New.
13912
864089d2
MM
139132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13914
13915 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13916 Change to ...
13917 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13918 (btrace_read_type) <btrace_read_new>: Change to ...
13919 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13920
ed9edfb5
MM
139212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13922
13923 * common/linux-btrace.c (linux_read_btrace): Free trace from
13924 previous iteration.
13925
fbcbc3fd
DE
139262014-01-15 Doug Evans <dje@google.com>
13927
13928 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13929 uint32_t.
13930
3d548a53
TT
139312014-01-15 Tom Tromey <tromey@redhat.com>
13932
13933 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13934 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13935 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13936 (set_objfile_main_name): New function.
13937 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13938 language_of_main>: New fields.
13939 (set_objfile_main_name): Declare.
13940 * symtab.c (find_main_name): Loop over objfiles to find the main
13941 name and language.
13942 (set_main_name): Now static.
13943 (get_main_info): Add comment.
13944 * symtab.h (set_main_name): Don't declare.
13945
32ac0d11
TT
139462014-01-15 Tom Tromey <tromey@redhat.com>
13947
13948 * symtab.c (main_progspace_key): New global.
13949 (struct main_info): New.
13950 (name_of_main, language_of_main): Remove.
13951 (get_main_info, main_info_cleanup): New function.
13952 (set_main_name, main_name, main_language): Use get_main_info.
13953 (_initialize_symtab): Initialize main_progspace_key.
13954
9e6c82ad
TT
139552014-01-15 Tom Tromey <tromey@redhat.com>
13956
13957 * dbxread.c (process_one_symbol): Update.
13958 * dwarf2read.c (read_partial_die): Update.
13959 * symfile.c (set_initial_language): Call main_language.
13960 * symtab.c (language_of_main): Now static.
13961 (set_main_name): Add 'lang' parameter.
13962 (find_main_name): Update.
13963 (main_language): New function.
13964 (symtab_observer_executable_changed): Update.
13965 * symtab.h (set_main_name): Update.
13966 (language_of_main): Remove.
13967 (main_language): Declare.
13968
6ef55de7
TT
139692014-01-15 Tom Tromey <tromey@redhat.com>
13970
13971 * symfile.c (init_entry_point_info): Use new "initialized" field.
13972 Update.
13973 * objfiles.h (struct entry_point) <initialized>: New field.
13974 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13975 (struct objfile) <ei>: ...here. Remove.
13976 * objfiles.c (entry_point_address_query): Update.
13977
53eddfa6
TT
139782014-01-15 Tom Tromey <tromey@redhat.com>
13979
13980 * objfiles.c (entry_point_address_query): Relocate entry point
13981 address.
13982 (objfile_relocate1): Do not relocate entry point address.
13983 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13984 <the_bfd_section_index>: New field.
13985 * symfile.c (init_entry_point_info): Find the entry point's
13986 section.
13987
d56e56aa
TT
139882014-01-15 Tom Tromey <tromey@redhat.com>
13989
13990 * solib-frv.c (enable_break): Use entry_point_address_query.
13991
33a97bbe
OJ
139922014-01-15 Omair Javaid <omair.javaid@linaro.org>
13993
13994 * NEWS: Add note on improved process record-replay on
13995 arm*-linux* targets.
13996
c6ec2b30
OJ
139972014-01-15 Omair Javaid <omair.javaid@linaro.org>
13998
13999 * arm-tdep.c (enum arm_record_result): New enum.
14000 (arm_record_unsupported_insn): New function.
14001 (arm_record_coproc_data_proc): Removed.
14002 (thumb2_record_ld_st_multiple): New function.
14003 (thumb2_record_ld_st_dual_ex_tbb): New function.
14004 (thumb2_record_data_proc_sreg_mimm): New function.
14005 (thumb2_record_ps_dest_generic): New function.
14006 (thumb2_record_branch_misc_cntrl): New function.
14007 (thumb2_record_str_single_data): New function.
14008 (thumb2_record_ld_mem_hints): New function.
14009 (thumb2_record_ld_word): New function.
14010 (thumb2_record_lmul_lmla_div): New function.
14011 (thumb2_record_decode_insn_handler): New function.
14012 (decode_insn): Add thumb32 instruction handlers.
14013
97dfe206
OJ
140142014-01-15 Omair Javaid <omair.javaid@linaro.org>
14015
14016 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14017 (struct arm_linux_record_tdep): Declare.
14018 (arm_canonicalize_syscall): New function.
14019 (arm_all_but_pc_registers_record): New function.
14020 (arm_linux_syscall_record): New function.
14021 (arm_linux_init_abi): Add syscall recording constructs.
14022 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14023 decoding. (arm_record_coproc_data_proc): Update arm syscall
14024 decoding.
14025 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14026 <arm_syscall_record>: New field.
14027 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14028 gdb_target_obs.
14029
9904a494
OJ
140302014-01-15 Omair Javaid <omair.javaid@linaro.org>
14031
14032 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14033 register for push instruction recording.
14034
f969241e
OJ
140352014-01-15 Omair Javaid <omair.javaid@linaro.org>
14036
14037 * arm-tdep.c (thumb_record_misc): Update to correct logical
14038 error while recording ldm, ldmia and pop instructions.
14039
bfbbec00
OJ
140402014-01-15 Omair Javaid <omair.javaid@linaro.org>
14041
14042 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14043
e40adcc9
PA
140442014-01-15 Pedro Alves <palves@redhat.com>
14045
14046 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14047 (go32_resume, go32_fetch_registers, store_register)
14048 (go32_store_registers, go32_prepare_to_store)
14049 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14050 (go32_create_inferior, go32_can_run, go32_terminal_init)
14051 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14052 declarations.
14053
b0a16e66
TT
140542014-01-15 Tom Tromey <tromey@redhat.com>
14055
14056 * target.h (async_callback_ftype): New typedef.
14057 (struct target_ops) <to_async>: Use it.
14058
bf7105a4
JB
140592014-01-15 Joel Brobecker <brobecker@adacore.com>
14060
14061 * python/py-value.c (get_field_type): Remove unnecessary curly
14062 braces for single-statement if block.
14063
a8f35c2e
JB
140642014-01-15 Joel Brobecker <brobecker@adacore.com>
14065
14066 * python/py-type.c (convert_field): Add missing empty line
14067 after declarations.
14068
bb4142cf
DE
140692014-01-14 Doug Evans <dje@google.com>
14070
14071 * symfile.h (expand_symtabs_matching): Renamed from
14072 expand_partial_symbol_names. Update prototype.
14073 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14074 * symfile.c (expand_symtabs_matching): Renamed from
14075 expand_partial_symbol_names. New args file_matcher, kind.
14076 Rename arg fun to symbol_matcher.
14077 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14078 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14079 ada_expand_partial_symbol_name.
14080 (ada_make_symbol_completion_list): Update to call
14081 expand_symtabs_matching.
14082 (ada_add_global_exceptions): Call expand_symtabs_matching.
14083 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14084 call map_symbol_filenames.
14085 * symtab.c (sources_info): Update to call map_symbol_filenames.
14086 (search_symbols): Call expand_symtabs_matching.
14087 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14088 (default_make_symbol_completion_list_break_on): Update to call
14089 expand_symtabs_matching.
14090 (make_source_files_completion_list): Update to call
14091 map_symbol_filenames.
14092
206f2a57
DE
140932014-01-14 Doug Evans <dje@google.com>
14094
14095 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14096 (expand_symtabs_symbol_matcher_ftype): New typedef.
14097 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14098 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14099 * symfile.c (expand_partial_symbol_names): Update to use
14100 expand_symtabs_symbol_matcher_ftype.
14101 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14102 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14103 Arg name_matcher renamed to symbol_matcher.
14104 * psymtab.c (recursively_search_psymtabs): Update to use
14105 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14106 sym_matcher.
14107 (expand_symtabs_matching_via_partial): Update to use
14108 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14109 Arg name_matcher renamed to symbol_matcher.
14110
540c2971
DE
141112014-01-14 Doug Evans <dje@google.com>
14112
14113 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14114 (map_partial_symbol_filenames): Ditto.
14115 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14116 (map_partial_symbol_filenames): Ditto.
14117 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14118 (map_partial_symbol_filenames): Ditto.
14119 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14120 (map_partial_symbol_filenames): Ditto.
14121 * symtab.c: Delete #include "psymtab.h".
14122
8213266a
PA
141232014-01-14 Pedro Alves <palves@redhat.com>
14124 Tom Tromey <tromey@redhat.com>
14125
14126 * infrun.c (use_displaced_stepping): Use find_record_target
14127 instead of RECORD_IS_USED.
14128 (adjust_pc_after_break): Use record_full_is_used instead of
14129 RECORD_IS_USED.
14130 * record-btrace.c (record_btrace_open): Call record_preopen
14131 instead of checking RECORD_IS_USED.
14132 * record-full.c (record_full_shortname)
14133 (record_full_core_shortname): New globals.
14134 (record_full_is_used): New function.
14135 (find_full_open): Call record_preopen instead of checking
14136 RECORD_IS_USED.
14137 (init_record_full_ops): Set the target's shortname to
14138 record_full_shortname.
14139 (init_record_full_core_ops): Set the target's shortname to
14140 record_full_core_shortname.
14141 * record-full.h (record_full_is_used): Declare.
14142 * record.c (find_record_target): Make extern.
14143 (record_preopen): New function.
14144 * record.h (RECORD_IS_USED): Delete macro.
14145 (find_record_target, record_preopen): Declare functions.
14146
7ec1862d
YQ
141472014-01-14 Yao Qi <yao@codesourcery.com>
14148
14149 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14150 'len''s type to ULONGEST.
14151 (core_xfer_shared_libraries_aix): Likewise.
14152 * gdbarch.c, gdbarch.h: Regenerated.
14153 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14154 Change type of 'len' to ULONGEST.
14155 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14156 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14157
dea80a27
YQ
141582014-01-14 Yao Qi <yao@codesourcery.com>
14159
14160 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14161 type of 'len' to ULONGEST.
14162 (linux_xfer_osdata_processgroups): Likewise.
14163 (linux_xfer_osdata_threads): Likewise.
14164 (linux_xfer_osdata_fds): Likewise.
14165 (linux_xfer_osdata_isockets): Likewise.
14166 (linux_xfer_osdata_shm): Likewise.
14167 (linux_xfer_osdata_sem): Likewise.
14168 (linux_xfer_osdata_msg): Likewise.
14169 (linux_common_xfer_osdata): Likewise.
14170 (struct osdata_type) <getter>: Likewise.
14171 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14172 the declaration.
14173
b55e14c7
YQ
141742014-01-14 Yao Qi <yao@codesourcery.com>
14175
14176 * target.h (target_xfer_partial_ftype): Update.
14177 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14178 ULONGEST.
14179 * aix-thread.c (aix_thread_xfer_partial): Change type of
14180 argument 'len' to ULONGEST.
14181 * auxv.c (procfs_xfer_auxv): Likewise.
14182 (ld_so_xfer_auxv): Likewise.
14183 (memory_xfer_auxv): Likewise.
14184 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14185 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14186 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14187 * corelow.c (core_xfer_partial): Likewise.
14188 * ctf.c (ctf_xfer_partial): Likewise.
14189 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14190 '%u'.
14191 (darwin_read_dyld_info): Likewise.
14192 (darwin_xfer_partial): Likewise.
14193 * exec.c (section_table_xfer_memory_partial): Likewise.
14194 (exec_xfer_partial): Likewise.
14195 * exec.h (section_table_xfer_memory_partial): Update
14196 declaration.
14197 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14198 instead of plongest.
14199 (gnu_xfer_partial): Likewise.
14200 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14201 (ia64_hpux_xfer_solib_got): Likewise.
14202 (ia64_hpux_xfer_partial): Likewise.
14203 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14204 * inf-ptrace.c (inf_ptrace_xfer_partial):
14205 * inf-ttrace.c (inf_ttrace_xfer_partial):
14206 * linux-nat.c (linux_xfer_siginfo): Likewise.
14207 (linux_nat_xfer_partial): Likewise.
14208 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14209 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14210 * monitor.c (monitor_xfer_memory): Likewise.
14211 (monitor_xfer_partial): Likewise.
14212 * procfs.c (procfs_xfer_partial): Likewise.
14213 * record-full.c (record_full_xfer_partial): Likewise.
14214 (record_full_core_xfer_partial): Likewise.
14215 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14216 instead of plongest.
14217 (gdbsim_xfer_partial): Likewise.
14218 * remote.c (remote_xfer_partial): Likewise.
14219 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14220 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14221 declaration.
14222 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14223 (rs6000_xfer_shared_libraries): Likewise.
14224 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14225 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14226 (sparc_xfer_partial): Likewise.
14227 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14228 (spu_xfer_partial): Likewise.
14229 * spu-multiarch.c (spu_xfer_partial): Likewise.
14230 * target.c (target_read_live_memory): Likewise.
14231 (memory_xfer_live_readonly_partial): Likewise.
14232 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14233 (target_xfer_partial, default_xfer_partial): Likewise.
14234 (current_xfer_partial): Likewise.
14235 * tracepoint.c (tfile_xfer_partial): Likewise.
14236 * windows-nat.c (windows_xfer_memory): Likewise. Call
14237 pulongest instead of plongest.
14238 (windows_xfer_partial): Likewise.
14239 (windows_xfer_shared_libraries): Likewise.
14240
05804640
YQ
142412014-01-14 Yao Qi <yao@codesourcery.com>
14242
14243 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14244 target_xfer_partial_ftype.
14245
b5b08fb4
SC
142462014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14247
14248 PR python/15464
14249 PR python/16113
14250 * valops.c (value_struct_elt_bitpos): New function
14251 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14252 object to 'None' if the field name is an empty string ("").
14253 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14254 attribute to look for a field when 'name' is 'None'.
14255 (get_field_type): New function
14256
13aaf454
DE
142572014-01-13 Doug Evans <dje@google.com>
14258
14259 PR symtab/16426
14260 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14261 (try_open_dwop_file): Ditto.
14262 * gdb_bfd.c: #include "vec.h".
14263 (bfdp): New typedef.
14264 (struct gdb_bfd_data): New member included_bfds.
14265 (gdb_bfd_unref): Unref all included bfds.
14266 (gdb_bfd_record_inclusion): New function.
14267 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14268
c2cec97c
TT
142692014-01-13 Tom Tromey <tromey@redhat.com>
14270
14271 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14272
78e5999d
TT
142732014-01-13 Tom Tromey <tromey@redhat.com>
14274
14275 * defs.h (use_windows): Remove.
14276 * gdb.c (main): Update.
14277 * main.c (captured_main, gdb_main): Update.
14278 * main.h (struct captured_main_args) <use_windows>: Remove.
14279 * top.c (use_windows): Remove.
14280
f2052bbe
TT
142812014-01-13 Tom Tromey <tromey@redhat.com>
14282
14283 * defs.h (deprecated_flush_hook): Remove.
14284
fde4f8ed
JK
142852014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14286
14287 PR threads/16216
14288 * linux-thread-db.c (try_thread_db_load): Add parameter
14289 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14290 (try_thread_db_load_from_pdir_1): Move it there from here.
14291 (try_thread_db_load_from_sdir): Update caller.
14292 (try_thread_db_load_from_dir): Move it there from here.
14293
bdf61915
PP
142942014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14295
14296 * regformats/regdat.sh: Always rewrite the register file.
14297
f71e1a8d
PA
142982014-01-13 Pedro Alves <palves@redhat.com>
14299
14300 * Makefile.in (CHECK_HEADERS): New variable.
14301 (check-headers:): New rule.
14302
42c85435
TT
143032014-01-13 Tom Tromey <tromey@redhat.com>
14304
14305 * cli/cli-setshow.c (do_set_command): Update.
14306 * defs.h (deprecated_set_hook): Remove.
14307 * top.c (deprecated_set_hook): Remove.
14308
f8de5129
PA
143092014-01-13 Pedro Alves <palves@redhat.com>
14310
14311 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14312 the tracepoint if the PC is a pseudo-register.
14313
fc270c35
TT
143142014-01-13 Tom Tromey <tromey@redhat.com>
14315
14316 * defs.h (XCALLOC): Remove.
14317 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14318 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14319 * dwarf2loc.c (allocate_piece_closure): Likewise.
14320 * elfread.c (elf_symfile_segments): Likewise.
14321 (elf_symfile_segments): Likewise.
14322 * gdbtypes.c (copy_type_recursive): Likewise.
14323 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14324 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14325 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14326 XCALLOC.
14327 * mt-tdep.c (mt_gdbarch_init): Likewise.
14328 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14329 XCALLOC.
14330 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14331 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14332 * registry.c (registry_alloc_data): Likewise.
14333 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14334 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14335 * serial.c (serial_fdopen_ops): Likewise.
14336 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14337 XCALLOC.
14338 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14339 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14340 not XCALLOC.
14341
70ba0933
TT
143422014-01-13 Tom Tromey <tromey@redhat.com>
14343
14344 * defs.h (XMALLOC): Remove.
14345 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14346 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14347 * cli-out.c (struct ui_out *): Likewise.
14348 * cli/cli-dump.c (add_dump_command): Likewise.
14349 (add_dump_command): Likewise.
14350 * complaints.c (get_complaints): Likewise.
14351 (find_complaint): Likewise.
14352 * dwarf2-frame.c (execute_cfa_program): Likewise.
14353 * dwarf2read.c (abbrev_table_read_table): Likewise.
14354 * gdbarch.sh: Likewise.
14355 * gdbarch.c: Rebuild.
14356 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14357 * interps.c (interp_new): Likewise.
14358 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14359 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14360 * mi/mi-console.c (mi_console_file_new): Likewise.
14361 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14362 * mi/mi-out.c (mi_out_new): Likewise.
14363 * mi/mi-parse.c (mi_parse): Likewise.
14364 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14365 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14366 * observer.c (xalloc_observer_list_node): Likewise.
14367 * regcache.c (regcache_xmalloc_1): Likewise.
14368 * reggroups.c (reggroup_new): Likewise.
14369 (_initialize_reggroup): Likewise.
14370 * registry.c (register_data_with_cleanup): Likewise.
14371 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14372 * ser-base.c (serial_ttystate): Likewise.
14373 * ser-mingw.c (make_pipe_state): Likewise.
14374 * ser-pipe.c (pipe_open): Likewise.
14375 * serial.c (serial_open): Likewise.
14376 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14377 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14378 (tui_alloc_win_info): Likewise.
14379 (tui_add_content_elements): Likewise.
14380 * tui/tui-file.c (tui_file_new): Likewise.
14381 * tui/tui-out.c (tui_out_new): Likewise.
14382 * ui-file.c (mem_file_new): Likewise.
14383 * ui-out.c (push_level): Likewise.
14384 (make_cleanup_ui_out_end): Likewise.
14385 (append_header_to_list): Likewise.
14386 (ui_out_new): Likewise.
14387 * user-regs.c (user_reg_add_builtin): Likewise.
14388
41bf6aca
TT
143892014-01-13 Tom Tromey <tromey@redhat.com>
14390
14391 * defs.h (XZALLOC): Remove.
14392 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14393 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14394 (get_ada_tasks_inferior_data): Likewise.
14395 * auto-load.c (get_auto_load_pspace_data): Likewise.
14396 * auxv.c (get_auxv_inferior_data): Likewise.
14397 * bfd-target.c (target_bfd_reopen): Likewise.
14398 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14399 (deprecated_insert_raw_breakpoint): Likewise.
14400 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14401 * corelow.c (core_open): Likewise.
14402 * darwin-nat.c (darwin_check_new_threads): Likewise.
14403 (darwin_attach_pid): Likewise.
14404 * dummy-frame.c (dummy_frame_push): Likewise.
14405 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14406 * dwarf2loc.c (allocate_piece_closure): Likewise.
14407 * elfread.c (elf_symfile_segments): Likewise.
14408 * eval.c (ptrmath_type_p): Likewise.
14409 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14410 * gdbtypes.c (alloc_type_arch): Likewise.
14411 (alloc_type_instance): Likewise.
14412 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14413 * inf-child.c (inf_child_can_use_agent): Likewise.
14414 * inflow.c (get_inflow_inferior_data): Likewise.
14415 * infrun.c (save_infcall_suspend_state): Likewise.
14416 * jit.c (jit_reader_load): Likewise.
14417 (get_jit_objfile_data): Likewise.
14418 (get_jit_program_space_data): Likewise.
14419 (jit_object_open_impl): Likewise.
14420 (jit_symtab_open_impl): Likewise.
14421 (jit_block_open_impl): Likewise.
14422 (jit_frame_sniffer): Likewise.
14423 * linux-fork.c (add_fork): Likewise.
14424 * maint.c (make_command_stats_cleanup): Likewise.
14425 * objfiles.c (get_objfile_pspace_data): Likewise.
14426 * opencl-lang.c (struct lval_closure): Likewise.
14427 * osdata.c (osdata_start_osdata): Likewise.
14428 * progspace.c (new_address_space): Likewise.
14429 (add_program_space): Likewise.
14430 * remote-sim.c (get_sim_inferior_data): Likewise.
14431 * sh-tdep.c (sh_gdbarch_init): Likewise.
14432 * skip.c (Ignore): Likewise.
14433 (skip_delete_command): Likewise.
14434 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14435 (library_list_start_library): Likewise.
14436 (solib_aix_current_sos): Likewise.
14437 * solib-darwin.c (get_darwin_info): Likewise.
14438 (darwin_current_sos): Likewise.
14439 * solib-dsbt.c (get_dsbt_info): Likewise.
14440 * solib-ia64-hpux.c (new_so_list): Likewise.
14441 (ia64_hpux_get_solib_linkage_addr): Likewise.
14442 * solib-spu.c (append_ocl_sos): Likewise.
14443 (spu_current_sos): Likewise.
14444 * solib-svr4.c (get_svr4_info): Likewise.
14445 (svr4_keep_data_in_core): Likewise.
14446 (library_list_start_library): Likewise.
14447 (svr4_default_sos): Likewise.
14448 (svr4_read_so_list): Likewise.
14449 * solib-target.c (library_list_start_library): Likewise.
14450 (solib_target_current_sos): Likewise.
14451 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14452 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14453 * symfile.c (default_symfile_segments): Likewise.
14454 * target-descriptions.c (tdesc_data_init): Likewise.
14455 (tdesc_create_reg): Likewise.
14456 (struct tdesc_type *): Likewise.
14457 (tdesc_create_vector): Likewise.
14458 (tdesc_set_struct_size): Likewise.
14459 (struct tdesc_type *): Likewise.
14460 (tdesc_free_feature): Likewise.
14461 (tdesc_create_feature): Likewise.
14462 * windows-nat.c (windows_add_thread): Likewise.
14463 (windows_make_so): Likewise.
14464 * xml-support.c (gdb_xml_body_text): Likewise.
14465 (gdb_xml_create_parser_and_cleanup): Likewise.
14466 (xml_process_xincludes): Likewise.
14467 * xml-syscall.c (allocate_syscalls_info): Likewise.
14468 (syscall_create_syscall_desc): Likewise.
14469
5acfdbae
SDJ
144702014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14471
14472 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14473 function, with code from i386_stap_parse_special_token.
14474 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14475 (i386_stap_parse_special_token): Move code to the two functions
14476 above; simplify it.
14477
0000e5cc
PA
144782014-01-09 Pedro Alves <palves@redhat.com>
14479 Hui Zhu <hui@codesourcery.com>
14480
14481 PR gdb/16101
14482 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14483 bp_err_string. Don't mark the location shlib_disabled if the
14484 error thrown wasn't a generic or memory error. Catch errors
14485 thrown while inserting breakpoints in overlayed code. Output
14486 error message of software breakpoints.
14487 * remote.c (remote_insert_breakpoint): If this breakpoint has
14488 target-side commands but this stub doesn't support Z0 packets,
14489 throw NOT_SUPPORTED_ERROR error.
14490 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14491 * target.h (target_insert_breakpoint): Extend comment.
14492 (target_insert_hw_breakpoint): Add comment.
14493
b7ea362b
PA
144942014-01-08 Pedro Alves <palves@redhat.com>
14495
14496 * remote.c (remote_add_thread): Add threads silently if starting
14497 up.
14498 (remote_notice_new_inferior): If in all-stop, and starting up,
14499 don't call notice_new_inferior.
14500 (get_current_thread): New function, factored out from ...
14501 (add_current_inferior_and_thread): ... this. Adjust.
14502 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14503 found any thread, then select the remote's current thread as GDB's
14504 current thread too.
14505
b7bba001
JB
145062014-01-08 Joel Brobecker <brobecker@adacore.com>
14507
14508 * NEWS: Create a new section for the next release branch.
14509 Rename the section of the current branch, now that it has
14510 been cut.
14511
16dfbded
JB
145122014-01-08 Joel Brobecker <brobecker@adacore.com>
14513
14514 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14515 * version.in: Bump version to 7.7.50.DATE-cvs.
14516
22c90ac1
YQ
145172014-01-08 Yao Qi <yao@codesourcery.com>
14518
14519 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14520 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14521 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14522
d64ad97c
YQ
145232014-01-08 Yao Qi <yao@codesourcery.com>
14524
14525 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14526 return value of bfd_get_filename to symbol_file_add_from_bfd.
14527
f93ba80c
PM
145282014-01-08 Pierre Muller <muller@sourceware.org>
14529
14530 Fix PR16201.
14531 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14532 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14533 to prim_record_mininal_symbol_and_info.
14534 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14535 in call to prim_record_minimal_symbol_and_info.
14536 (read_pe_exported_syms): Set index field of section_data.
14537
a4d9ba85
AP
145382014-01-07 Andrew Pinski <apinski@cavium.com>
14539
14540 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14541 * features/aarch64.c: Regenerate.
14542
1b67eb02
AS
145432014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14544
14545 * target.c (return_null): Define.
14546 (update_current_target): Use it instead of return_zero for
14547 functions that return a pointer.
14548
5e3f4fab
EBM
145492014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14550
14551 * source.c (add_path): Fix check for duplicated paths in the previously
14552 included paths.
14553
e2616788
HK
145542014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14555
14556 * ada-lang.c: Remove duplicated include statements.
14557 * alphabsd-nat.c: Ditto.
14558 * amd64-darwin-tdep.c: Ditto.
14559 * amd64fbsd-nat.c: Ditto.
14560 * auto-load.c: Ditto.
14561 * ax-gdb.c: Ditto.
14562 * breakpoint.c: Ditto.
14563 * dbxread.c: Ditto.
14564 * fork-child.c: Ditto.
14565 * gdb_usleep.c: Ditto.
14566 * i386-darwin-tdep.c: Ditto.
14567 * i386fbsd-nat.c: Ditto.
14568 * infcmd.c: Ditto.
14569 * inferior.c: Ditto.
14570 * jv-lang.c: Ditto.
14571 * linux-nat.c: Ditto.
14572 * linux-tdep.c: Ditto.
14573 * m68kbsd-nat.c: Ditto.
14574 * m68klinux-nat.c: Ditto.
14575 * microblaze-tdep.c: Ditto.
14576 * mips-linux-tdep.c: Ditto.
14577 * mn10300-tdep.c: Ditto.
14578 * nto-tdep.c: Ditto.
14579 * opencl-lang.c: Ditto.
14580 * osdata.c: Ditto.
14581 * printcmd.c: Ditto.
14582 * regcache.c: Ditto.
14583 * remote-m32r-sdi.c: Ditto.
14584 * remote.c: Ditto.
14585 * symfile.c: Ditto.
14586 * symtab.c: Ditto.
14587 * tilegx-linux-nat.c: Ditto.
14588 * tilegx-tdep.c: Ditto.
14589 * tracepoint.c: Ditto.
14590 * valops.c: Ditto.
14591 * vaxbsd-nat.c: Ditto.
14592 * windows-nat.c: Ditto.
14593 * xtensa-tdep.c: Ditto.
14594
bd1f7788
YQ
145952014-01-07 Yao Qi <yao@codesourcery.com>
14596
14597 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14598
79301218
JB
145992014-01-07 Yao Qi <yao@codesourcery.com>
14600 Joel Brobecker <brobecker@adacore.com>
14601
14602 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14603 (pdc_write_regs): Likewise.
14604 (fetch_regs_kernel_thread): Likewise.
14605 (store_regs_kernel_thread): Likewise.
14606
146072014-01-07 Joel Brobecker <brobecker@adacore.com>
14608
14609 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14610 tagged type objects to their actual type.
14611
8e355c5d
JB
146122014-01-07 Joel Brobecker <brobecker@adacore.com>
14613
14614 * ada-valprint.c (print_field_values): Add "language" parameter.
14615 Update calls to print_field_values and print_variant_part.
14616 Pass new parameter "language" in call to val_print instead
14617 of "current_language". Replace call to ada_val_print by call
14618 to val_print.
14619 (print_variant_part): Add "language" parameter.
14620 (ada_val_print_struct_union): Update call to print_field_values.
14621
4fbf5aa5
JB
146222014-01-07 Joel Brobecker <brobecker@adacore.com>
14623
14624 * ada-valprint.c (ui_memcpy): Delete.
14625 (ada_print_floating): Update documentation. Add empty line
14626 between between function documentation and implementation.
14627 Delete variable "buffer". Use ui_file_xstrdup in place of
14628 ui_file_put. Minor adjustments following this change.
14629
71855601
JB
146302014-01-07 Joel Brobecker <brobecker@adacore.com>
14631
14632 * ada-valprint.c (ada_val_print_string): New function,
14633 extracted from ada_val_print_array.
14634 (ada_val_print_array): Replace extracted code by call
14635 to ada_val_print_string followed by a return. Move
14636 "else" branch to the function's top block.
14637
4eb27a30
JB
146382014-01-07 Joel Brobecker <brobecker@adacore.com>
14639
14640 * ada-valprint.c (ada_val_print_array): Move implementation
14641 down. Rename parameter "offset" and "val" into "offset_aligned"
14642 and "original_value" respectively. Add parameter "offset".
14643
34b27950
JB
146442014-01-07 Joel Brobecker <brobecker@adacore.com>
14645
14646 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14647 re-organizing the code. Change the "???" message printed
14648 when target type is a TYPE_CODE_UNDEF into
14649 "<ref to undefined type>".
14650
079e4591
JB
146512014-01-07 Joel Brobecker <brobecker@adacore.com>
14652
14653 * ada-valprint.c (print_record): Delete, implementation inlined...
14654 (ada_val_print_struct_union): ... here. Remove call to
14655 ada_check_typedef in inlined implementation.
14656
8004dfd1
JB
146572014-01-07 Joel Brobecker <brobecker@adacore.com>
14658
14659 * ada-valprint.c (ada_val_print_gnat_array): New function,
14660 extracted from ada_val_print_1;
14661 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14662 (ada_val_print_flt, ada_val_print_struct_union)
14663 (ada_val_print_ref): Likewise.
14664 (ada_val_print_1): Delete variables i and elttype.
14665 Replace extracted-out code by call to corresponding
14666 new functions.
14667
760a2db0
JB
146682014-01-07 Joel Brobecker <brobecker@adacore.com>
14669
14670 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14671
3a92c861
JB
146722014-01-07 Joel Brobecker <brobecker@adacore.com>
14673
14674 * ada-valprint.c (ada_val_print_1): Replace calls to
14675 ada_val_print_1 by calls to val_print.
14676
cd1630f9
JB
146772014-01-07 Joel Brobecker <brobecker@adacore.com>
14678
14679 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14680 Update calls to self accordingly. Replace calls to c_val_print
14681 by calls to val_print.
14682
bdf779a0
JB
146832014-01-07 Joel Brobecker <brobecker@adacore.com>
14684
14685 * ada-valprint.c (print_record): Delete declaration.
14686 (adjust_type_signedness, ada_val_print_1): Likewise.
14687 (ada_val_print): Move function implementation down.
14688 (print_variant_part, print_field_values, print_record):
14689 Move function implementation up.
14690
c0d48811
JB
146912014-01-07 Joel Brobecker <brobecker@adacore.com>
14692
14693 * python/py-type.c (typy_get_name): New function.
14694 (type_object_getset): Add entry for attribute "name".
14695 * NEWS: Add entry mentioning this new attribute.
14696
c26e9cbb
YQ
146972014-01-07 Yao Qi <yao@codesourcery.com>
14698
14699 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14700 statement.
14701
0cc6f43d
YQ
147022014-01-07 Yao Qi <yao@codesourcery.com>
14703
14704 * gnu-nat.c (info_port_rights): Add qualifier const to
14705 argument args.
14706
eec03155
YQ
147072014-01-07 Yao Qi <yao@codesourcery.com>
14708
14709 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14710
f04a82ef
YQ
147112014-01-07 Yao Qi <yao@codesourcery.com>
14712
14713 * gnu-nat.c (make_inf) Update declaration.
14714 (make_inf): Make it static.
14715 (inf_set_traced): Likewise.
14716 (inf_port_to_thread, inf_task_died_status): Likewise.
14717
d57dda0a
YQ
147182014-01-07 Yao Qi <yao@codesourcery.com>
14719
14720 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14721
3aa8c969
YQ
147222014-01-07 Yao Qi <yao@codesourcery.com>
14723
14724 * gnu-nat.c (_initialize_gnu_nat): Declare.
14725
94123b4f
YQ
147262014-01-07 Yao Qi <yao@codesourcery.com>
14727
14728 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14729 'enum bfd_endian'.
14730 (struct gdbarch_info) <byte_order>: Change type to
14731 'enum bfd_endian'.
14732 <byte_order_for_code>: Likewise.
14733 * gdbarch.c, gdbarch.h: Regenerated.
14734
dc81d70a
TT
147352014-01-06 Sasha Smundak <asmundak@google.com>
14736
14737 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14738
cc2f3c35
TT
147392014-01-06 Tom Tromey <tromey@redhat.com>
14740
14741 * doublest.c (convert_doublest_to_floatformat): Use const, not
14742 CONST.
14743 * somread.c (som_symtab_read): Likewise.
14744
adcf2eed
HZ
147452014-01-07 Hui Zhu <hui@codesourcery.com>
14746
14747 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14748 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14749 (gdb_bfd_fopen): Ditto.
14750 (gdb_bfd_openr): Ditto.
14751 (gdb_bfd_openw): Ditto.
14752 (gdb_bfd_openr_iovec): Ditto.
14753 (gdb_bfd_fdopenr): Ditto.
14754 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14755 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14756 with xstrdup.
14757 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14758 with xstrdup.
14759 * symfile-mem.c (symbol_file_add_from_memory): Removed
14760 gdb_bfd_stash_filename.
14761
50722198
DE
147622014-01-03 Doug Evans <dje@google.com>
14763
14764 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14765 output.
14766
2fa4b862
JB
147672014-01-01 Joel Brobecker <brobecker@adacore.com>
14768
14769 Update year range in copyright notice of all files.
14770
28498c42
JB
147712014-01-01 Joel Brobecker <brobecker@adacore.com>
14772
14773 * top.c (print_gdb_version): Set copyright year to 2014.
14774
7b6e1046
JB
147752014-01-01 Joel Brobecker <brobecker@adacore.com>
14776
14777 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14778
df96af55 14779For older changes see ChangeLog-2013.
c906108c
SS
14780\f
14781Local Variables:
14782mode: change-log
14783left-margin: 8
14784fill-column: 74
14785version-control: never
57da7796 14786coding: utf-8
c906108c 14787End:
This page took 2.307032 seconds and 4 git commands to generate.