Throw away dodgy coff line number info earlier
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
015de688
DC
12014-11-11 Daniel Colascione <dancol@dancol.org>
2
3 Warn about cross-PID-namespace debugging.
4 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
5 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
6 * linux-thread-db.c (check_pid_namespace_match): New function.
7 (thread_db_inferior_created): Call it.
8
26a84859
DE
92014-11-10 Doug Evans <xdje42@gmail.com>
10
11 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
12 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
13
712a2e6d
DE
142014-11-10 Doug Evans <xdje42@gmail.com>
15
16 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
17
af3768e9
DE
182014-11-10 Doug Evans <xdje42@gmail.com>
19
20 PR symtab/17564
21 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
22 (lookup_static_symbol): Move definition to new location and rewrite.
23 (lookup_symbol_in_objfile): New function.
24 (lookup_symbol_global_iterator_cb): Call it.
25
b1f28d99
UW
262014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
27
28 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
29
b7a084be
PA
302014-11-07 Pedro Alves <palves@redhat.com>
31
32 * infrun.c (process_event_stop_test) <subroutine check>: Don't
33 check if we did a "nexti" inside a prologue.
34 * symtab.c (in_prologue): Delete function.
35 * symtab.h (in_prologue): Delete declaration.
36
67be31e5
DE
372014-11-06 Doug Evans <xdje42@gmail.com>
38
39 * symtab.h (lookup_global_symbol): Improve function comment.
40
08724ab7
DE
412014-11-06 Doug Evans <xdje42@gmail.com>
42
43 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
44 All callers updated.
45 * symtab.h (lookup_global_symbol): Update decl.
46 (lookup_static_symbol): Move decl to better location.
47
d9060ba6
DE
482014-11-06 Doug Evans <xdje42@gmail.com>
49
50 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
51
74016e12
DE
522014-11-06 Doug Evans <xdje42@gmail.com>
53
54 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
55 All callers updated.
56 (lookup_symbol_in_all_objfiles): Renamed from
57 lookup_symbol_aux_symtabs. All callers updated.
58 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
59 All callers updated.
60 (lookup_symbol_in_objfile_symtabs): Renamed from
61 lookup_symbol_aux_objfile. All callers updated.
62
d1a2d36d
DE
632014-11-06 Doug Evans <xdje42@gmail.com>
64
65 * symtab.c (lookup_symbol_in_block): Renamed from
66 lookup_symbol_aux_block. All callers updated.
67
24d864bb
DE
682014-11-06 Doug Evans <xdje42@gmail.com>
69
70 * symtab.c (lookup_static_symbol): Renamed from
71 lookup_static_symbol_aux. All callers updated.
72 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
73 All callers updated.
74
358d6ab3
DE
752014-11-06 Doug Evans <xdje42@gmail.com>
76
77 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
78 * block.c (block_lookup_symbol): Use it.
79 * cp-support.c (make_symbol_overload_list_block): Use it.
80 * symtab.c (iterate_over_symbols): Use it.
81
16b2eaa1
DE
822014-11-06 Doug Evans <xdje42@gmail.com>
83
84 * symtab.c (lookup_block_symbol): Moved to ...
85 * block.c (block_lookup_symbol): ... here and renamed.
86 All callers updated.
87 * block.h (block_lookup_symbol): Declare.
88 * symtab.h (lookup_block_symbol): Delete.
89
2dd2cd1c
DE
902014-11-06 Doug Evans <xdje42@gmail.com>
91
92 * ada-lang.c (ada_make_symbol_completion_list): Use
93 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
94 * symtab.c (lookup_objfile_from_block): Ditto.
95
d4c58915
DE
962014-11-06 Doug Evans <xdje42@gmail.com>
97
98 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
99 TYPE_CODE_STRUCT.
100
9c1877ea
DE
1012014-11-06 Doug Evans <xdje42@gmail.com>
102
103 * objfiles.c (get_objfile_arch): Constify.
104 * objfiles.h (get_objfile_arch): Update prototype.
105 * solib.c (solib_global_lookup): Fetch arch from objfile,
106 not target_gdbarch.
107
426a4079
SL
1082014-11-06 Sandra Loosemore <sandra@codesourcery.com>
109
110 * nios2-tdep.c (wild_insn): Delete.
111 (profiler_insn, irqentry_insn): Delete.
112 (nios2_match_sequence): Delete.
113 (nios2_analyze_prologue): Update comments. Remove matching
114 of obsolete profiler_insn and irqentry_insn sequences.
115
ee11262d
AM
1162014-11-05 Alan Modra <amodra@gmail.com>
117
118 * charset.c (convert_between_encodings): Shrink obstack using
119 obstack_blank_fast.
120 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
121 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
122 to char* before doing pointer arithmetic.
ee11262d 123
c87e6d00
SM
1242014-11-04 Simon Marchi <simon.marchi@ericsson.com>
125
126 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
127
441ef17f
PA
1282014-11-04 Pedro Alves <palves@redhat.com>
129
130 * breakpoint.c (breakpoint_thread_match): Delete function.
131 * breakpoint.h (breakpoint_thread_match): Delete declaration.
132
e0f52461
SC
1332014-11-03 Siva Chandra Reddy <sivachandra@google.com>
134
135 PR c++/17494
136 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
137 the method args also under EVAL_SKIP when evaluating method
138 calls under EVAL_SKIP.
139
a0b4d890
YQ
1402014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
141
142 * dwarf2loc.c (read_pieced_value): Do big endian
143 processing only if gdb_regnum is not -1.
144 (write_pieced_value): Ditto.
145
1462014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
147
148 * arm-linux-tdep.c (arm_linux_init_abi): Use
149 info.byte_order_for_code to choose endianity of breakpoint
150 instructions snippets.
151
1522014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
153
154 * arm-tdep.c (extract_arm_insn): Use
155 gdbarch_byte_order_for_code to read arm instruction.
156
e82149ff
DE
1572014-11-02 Doug Evans <xdje42@gmail.com>
158
159 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
160
d7ee84f1
DE
1612014-11-02 Doug Evans <xdje42@gmail.com>
162
163 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
164 main_subfile before returning.
165
4f072d17
DE
1662014-10-31 Doug Evans <xdje42@gmail.com>
167
168 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
169 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
170
8301c89e
DE
1712014-10-31 Doug Evans <xdje42@gmail.com>
172
173 * valops.c (value_cast_pointers): Fix whitespace.
174 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
175 Ditto.
176
02be9a71
DE
1772014-10-30 Doug Evans <dje@google.com>
178
179 * NEWS: Mention ability add attributes to gdb.Objfile and
180 gdb.Progspace objects.
181 * python/py-objfile.c (objfile_object): New member dict.
182 (objfpy_dealloc): Py_XDECREF dict.
183 (objfpy_initialize): Initialize dict.
184 (objfile_getset): Add __dict__.
185 (objfile_object_type): Set tp_dictoffset member.
186 * python/py-progspace.c (progspace_object): New member dict.
187 (pspy_dealloc): Py_XDECREF dict.
188 (pspy_initialize): Initialize dict.
189 (pspace_getset): Add __dict__.
190 (pspace_object_type): Set tp_dictoffset member.
191
6427bef6
YQ
1922014-10-30 Yao Qi <yao@codesourcery.com>
193
194 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
195 replace '\\' with '\\\\'.
196
f60325be
JB
1972014-10-29 Joel Brobecker <brobecker@adacore.com>
198
199 GDB 7.8.1 released.
200
ab917dfb
PA
2012014-10-29 Pedro Alves <palves@redhat.com>
202
203 PR gdb/17408
204 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
205 instead of assuming a thread with a stepping range is always
206 stepping.
207
d3d4baed
PA
2082014-10-29 Pedro Alves <palves@redhat.com>
209
210 PR python/17372
211 * event-top.c (change_line_handler): Call
212 gdb_rl_callback_handler_remove instead of
213 rl_callback_handler_remove.
214 (callback_handler_installed): New global.
215 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
216 (gdb_rl_callback_handler_reinstall): New functions.
217 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
218 gdb_rl_callback_handler_install instead of
219 rl_callback_handler_remove and rl_callback_handler_install.
220 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
221 instead of rl_callback_handler_remove.
222 * event-top.h (gdb_rl_callback_handler_remove)
223 (gdb_rl_callback_handler_install)
224 (gdb_rl_callback_handler_reinstall): New declarations.
225 * infrun.c (reinstall_readline_callback_handler_cleanup): New
226 cleanup function.
227 (fetch_inferior_event): Install it.
228 * top.c (gdb_readline_wrapper_line) Call
229 gdb_rl_callback_handler_remove instead of
230 rl_callback_handler_remove.
231 (gdb_readline_wrapper_cleanup): Don't call
232 rl_callback_handler_install.
233
6e5d7f39
PA
2342014-10-29 Pedro Alves <palves@redhat.com>
235
236 * event-top.c (command_line_handler): Clear the first byte of
237 linebuffer, when it is first allocated.
238
551cb6a5
PA
2392014-10-29 Pedro Alves <palves@redhat.com>
240
241 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
242 TRY_CATCH.
243
1e1e619b
PA
2442014-10-29 Pedro Alves <palves@redhat.com>
245
246 PR tui/16138
247 PR tui/17519
248 * tui/tui-interp.c (tui_is_toplevel): Delete global.
249 (tui_allowed_p): Delete function.
250 * tui/tui.c: Include "interps.h".
251 (tui_enable): Don't use tui_allowed_p. Error out here with
252 detailed error messages if the TUI is the top level interpreter,
253 or if output is not a terminal. Use newterm instead of initscr,
254 and error out if initializing the terminal fails. Also error out if
255 the terminal doesn't support cursor addressing.
256 * tui/tui.h (tui_allowed_p): Delete declaration.
257
6041179a
JB
2582014-10-29 Joel Brobecker <brobecker@adacore.com>
259
260 * arm-tdep.c (arm_skip_stack_protector): Return early if
261 address loaded by first "ldr" instruction does not have
262 a corresponding minimal symbol. Update comment.
263
6ae274b7
YQ
2642014-10-29 Yao Qi <yao@codesourcery.com>
265
266 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
267 loaded address correctly of ldr instruction.
268
7f5ef605
PA
2692014-10-28 Pedro Alves <palves@redhat.com>
270
271 PR gdb/12623
272 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
273 field.
274 * infrun.c (resume) <stepping breakpoint instruction>: Set the
275 thread's stepped_breakpoint field. Skip if reverse debugging.
276 Add comment.
277 (init_thread_stepping_state, handle_signal_stop): Clear the
278 thread's stepped_breakpoint field.
279
7d1a114c
PA
2802014-10-27 Pedro Alves <palves@redhat.com>
281
282 * remote.c (remote_thread_alive): New, factored out from ...
283 (remote_thread_alive): ... this.
284 (remote_update_thread_list): Bail out before deleting threads if
285 the target returned an empty list, and, the current thread has a
286 magic/fake ptid.
287
e5f8a7cc
PA
2882014-10-27 Pedro Alves <palves@redhat.com>
289
290 * infrun.c (handle_signal_stop): Also skip handlers when a random
291 signal arrives while handling a "stepi" or a "nexti". Set the
292 thread's 'step_after_step_resume_breakpoint' flag.
293
71e396f9
LM
2942014-10-27 Luis Machado <lgustavo@codesourcery.com>
295
296 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
297 (arm_record_ld_st_imm_offset): Reimplement to cover all
298 load/store cases for ARM opcode 010.
299 (arm_record_ld_st_multiple): Reimplement to cover all
300 load/store cases for ARM opcode 100.
301
3aee438b
DE
3022014-10-26 Doug Evans <xdje42@gmail.com>
303
304 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
305
f88cb4b6
DE
3062014-10-26 Doug Evans <xdje42@gmail.com>
307
308 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
309 parameter "kind" to "block_index".
310 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
311 "block_index".
312 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
313
a023a30f
DE
3142014-10-26 Doug Evans <xdje42@gmail.com>
315
316 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
317
4c35218e
DE
3182014-10-26 Doug Evans <xdje42@gmail.com>
319
320 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
321 obstack_alloc.
322
f08e8df3
DE
3232014-10-26 Doug Evans <xdje42@gmail.com>
324
325 * parser-defs.h (block_found): Move decl from here ...
326 * symtab.h (block_found): ... to here.
327
cf901d3b
DE
3282014-10-26 Doug Evans <xdje42@gmail.com>
329
330 * symtab.h (struct field_of_this_result): Fix typo in comment.
331 (lookup_symbol_in_language): Move function comment here.
332 (lookup_symbol): Improve function comment.
333 (basic_lookup_symbol_nonlocal): Ditto.
334 (lookup_symbol_static, lookup_symbol_global): Ditto.
335 (lookup_symbol_aux_block): Ditto.
336 (lookup_language_this): Add function comment.
337 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
338 function comment.
339 (lookup_block_symbol): Improve function comment.
340 (lookup_struct): Fix capitalization in function comment.
341 (lookup_transparent_type): Add function comment.
342 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
343 Improve function comment.
344 (lookup_objfile_from_block): Add function comment.
345 * symtab.c (lookup_symbol_in_language): Update function comment.
346 (lookup_symbol, lookup_language_this): Ditto.
347 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
348 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
349 (basic_lookup_symbol_nonlocal): Ditto.
350 (lookup_symbol_static, lookup_symbol_global): Ditto.
351 (lookup_transparent_type, lookup_block_symbol): Ditto.
352
ff6c39cf
DE
3532014-10-25 Doug Evans <xdje42@gmail.com>
354
355 * symtab.c (types_info): Delete forward decl.
356 (functions_info, variables_info, sources_info): Ditto.
357 (_initialize_symtab): Rewrite forward decl to use
358 initialize_file_ftype.
359
ec201f0c
DE
3602014-10-25 Doug Evans <xdje42@gmail.com>
361
362 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
363
ca040673
DE
3642014-10-25 Doug Evans <xdje42@gmail.com>
365
366 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
367 of local var child_die.
368
6f259a23
DB
3692014-10-24 Don Breazeal <donb@codesourcery.com>
370
371 * infrun.c (follow_fork_inferior): Update fork message printing
372 to use target_terminal_ours_for_output instead of
373 target_terminal_ours, to use _() for all format strings, to print
374 "vfork" instead of "fork" for vforks, and to add a detach message.
375 (handle_vfork_child_exec_or_exit): Update message printing to use
376 target_terminal_ours_for_output instead of target_terminal_ours, to
377 use _() for all format strings, and to fix some formatting.
378
09dd9a69
PA
3792014-10-24 Pedro Alves <palves@redhat.com>
380
381 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
382 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
383 * config/vax/vax.mh: Delete.
384 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
385 obsolete configurations section.
386 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
387 * vax-nat.c: Delete file.
388
5ab806de
PA
3892014-10-24 Pedro Alves <palves@redhat.com>
390
391 * NEWS (Removed targets): Add OS/arch column.
392
3433cfa5
SC
3932014-10-24 Siva Chandra Reddy <sivachandra@google.com>
394
395 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
396 on the arg type of a constructor only if it is of reference type.
397
96ba4233
SL
3982014-10-23 Sandra Loosemore <sandra@codesourcery.com>
399
400 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
401 accessors and constants from nios2 opcodes update.
402 (nios2_get_next_pc): Likewise.
403
28153fd3
DE
4042014-10-19 Doug Evans <xdje42@gmail.com>
405
406 * gdbthread.h (set_running): Fix comment.
407 (set_executing, finish_thread_state): Fix comment.
408
fc9b8e47
DE
4092014-10-18 Doug Evans <xdje42@gmail.com>
410
411 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
412
4ffbba72
DE
4132014-10-17 Doug Evans <dje@google.com>
414
415 * NEWS: Mention new event gdb.clear_objfiles.
416 * python/py-event.h (emit_clear_objfiles_event): Clear
417 * python/py-events.h (events_object): New member clear_objfiles.
418 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
419 event.
420 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
421 emit clear_objfiles event.
422 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
423 function.
424 (emit_clear_objfiles_event): New function.
425 (clear_objfiles): New event.
426 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
427 Declare.
428 * python/python.c (_initialize_python): Call
429 gdbpy_initialize_clear_objfiles_event.
430
d096d8c1
DE
4312014-10-17 Doug Evans <dje@google.com>
432
433 * NEWS: Mention new gdb.Objfile.progspace attribute.
434 * python/py-objfile.c (objfpy_get_progspace): New function.
435 (objfile_getset): New entry for "progspace".
436
6c4486e6
PA
4372014-10-17 Pedro Alves <palves@redhat.com>
438
439 PR gdb/17471
440 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
441 returns a copy of the input.
442 (run_command_1, continue_command, step_1, jump_command)
443 (signal_command, until_command, advance_command, finish_command)
444 (attach_command): Adjust and install a cleanup to free the
445 stripped args.
446
0ff33695
PA
4472014-10-17 Pedro Alves <palves@redhat.com>
448
449 PR gdb/17300
450 * infcmd.c (continue_1): If continuing all threads in the
451 foreground, make sure the inferior's terminal settings are put in
452 effect.
453
6fdebc3d
PA
4542014-10-17 Pedro Alves <palves@redhat.com>
455
456 PR gdb/17472
457 * annotate.c (annotate_breakpoints_invalid): Use
458 target_terminal_our_for_output instead of target_terminal_ours.
459 Give back the terminal to the target.
460 (annotate_frames_invalid): Likewise.
461
5842f62a
PA
4622014-10-17 Pedro Alves <palves@redhat.com>
463
464 * target.c (enum terminal_state): New enum.
465 (terminal_state): New global.
466 (target_terminal_init): New function.
467 (target_terminal_inferior): Skip if inferior already owns the
468 terminal.
469 (target_terminal_ours, target_terminal_ours_for_output): New
470 functions.
471 * target.h (target_terminal_init): Convert to function prototype.
472 (target_terminal_ours_for_output): Convert to function prototype
473 and tweak comment.
474 (target_terminal_ours): Convert to function prototype and tweak
475 comment.
476 * windows-nat.c (do_initial_windows_stuff): Call
477 target_terminal_init instead of child_terminal_init_with_pgrp.
478
32a8097b
PA
4792014-10-17 Pedro Alves <palves@redhat.com>
480
481 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
482 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
483 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
484 solib-osf.c.
485 * NEWS: Mention that support for alpha*-*-osf* has been removed.
486 * ada-lang.h [__alpha__ && __osf__]
487 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
488 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
489 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
490 GDB_OSABI_OSF1.
491 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
492 files.
493 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
494 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
495 * configure: Regenerate.
496 * configure.ac: Remove references to osf.
497 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
498 section. Remove all other references to osf.
499 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
500 Remove all other references to osf.
501 * dec-thread.c: Delete file.
502 * defs.h (GDB_OSABI_OSF1): Delete.
503 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
504 defined.
505 * osabi.c (gdb_osabi_names): Delete "OSF/1".
506 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
507 Delete code.
508 (unconditionally_kill_inferior)
509 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
510 * solib-osf.c: Delete file.
511
80134cf5
PA
5122014-10-17 Pedro Alves <palves@redhat.com>
513
514 * remote.c (clear_threads_listing_context): Move higher up, out of
515 the HAVE_LIBEXPAT guard.
516
89c7137f
TG
5172014-10-16 Tristan Gingold <gingold@adacore.com>
518
519 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
520 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
521 on amd64.
522
44ee4a52
PA
5232014-10-15 Pedro Alves <palves@redhat.com>
524
525 * dec-thread.c (dec_thread_count_gdb_threads)
526 (dec_thread_add_gdb_thread): Delete.
527 (dec_thread_update_thread_list): Delete.
528 (dec_thread_find_new_threads): Rename to ...
529 (dec_thread_update_thread_list): ... this. Delete GDB-size
530 threads that are no longer found in dec_thread_list.
531 (resync_thread_list): Delete.
532 (dec_thread_wait): Call dec_thread_update_thread_list instead of
533 resync_thread_list.
534
ab970af1
PA
5352014-10-15 Pedro Alves <palves@redhat.com>
536
537 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
538 * remote.c (remote_update_thread_list): Skip calling prune_threads
539 if any thread listing method is supported, and instead walk over
540 the set of remote threads listed, deleting those that are not
541 found in GDB's thread list.
542
e8032dde
PA
5432014-10-15 Pedro Alves <palves@redhat.com>
544
545 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
546 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
547 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
548 (bsd_uthread_target): Adjust.
549 * corelow.c (core_open): Adjust.
550 * dec-thread.c (dec_thread_find_new_threads): Update comment.
551 (dec_thread_update_thread_list): New function.
552 (init_dec_thread_ops): Adjust.
553 * gdbthread.h (prune_threads): New declaration.
554 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
555 (thread_db_update_thread_list): ... this. Call prune_threads.
556 (init_thread_db_ops): Adjust.
557 * nto-procfs.c (procfs_find_new_threads): Rename to ...
558 (procfs_update_thread_list): ... this. Call prune_threads.
559 (procfs_attach, procfs_create_inferior, init_procfs_targets):
560 Adjust.
561 * obsd-nat.c (obsd_find_new_threads): Rename to ...
562 (obsd_update_thread_list): ... this. Call prune_threads.
563 (obsd_add_target): Adjust.
564 * procfs.c (procfs_target): Adjust.
565 (procfs_notice_thread): Update comment.
566 (procfs_find_new_threads): Rename to ...
567 (procfs_update_thread_list): ... this. Call prune_threads.
568 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
569 comment.
570 (ravenscar_wait): Adjust.
571 (ravenscar_find_new_threads): Rename to ...
572 (ravenscar_update_thread_list): ... this. Call prune_threads.
573 (init_ravenscar_thread_ops): Adjust.
574 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
575 (record_btrace_update_thread_list): ... this. Adjust comment.
576 (init_record_btrace_ops): Adjust.
577 * remote.c (remote_threads_info): Rename to ...
578 (remote_update_thread_list): ... this. Call prune_threads.
579 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
580 Adjust.
581 * sol-thread.c (check_for_thread_db): Adjust.
582 (sol_find_new_threads_callback): Rename to ...
583 (sol_update_thread_list_callback): ... this.
584 (sol_find_new_threads): Rename to ...
585 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
586 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
587 * target-delegates.c: Regenerate.
588 * target.c (target_find_new_threads): Rename to ...
589 (target_update_thread_list): ... this.
590 * target.h (struct target_ops): Rename to_find_new_threads field
591 to to_update_thread_list.
592 (target_find_new_threads): Rename to ...
593 (target_update_thread_list): ... this.
594 * thread.c (prune_threads): Make extern.
595 (update_thread_list): Adjust.
596
6dc54d91
PA
5972014-10-15 Pedro Alves <palves@redhat.com>
598
599 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
600 Add describing comment. Return -1 if the qL packet is not
601 supported.
602 (struct thread_item, thread_item_t): Move higher up in
603 the file. Add comments.
604 (struct threads_parsing_context): Move higher up in
605 the file, add comments, and remote to ...
606 (struct threads_listing_context): ... this.
607 (remote_newthread_step): Don't add the thread to GDB's thread
608 database here. Instead push it to the thread_listing_context
609 list.
610 (remote_find_new_threads): Rename to ...
611 (remote_get_threads_with_ql): ... this. Add target_ops and
612 targets_listing_context parameters. Pass down context.
613 (start_thread): Adjust.
614 (clear_threads_parsing_context): Rename to ...
615 (clear_threads_listing_context): ... this.
616 (remote_get_threads_with_qxfer): New, with parts salvaged from old
617 remote_threads_info.
618 (remote_get_threads_with_qthreadinfo): Ditto.
619 (remote_threads_info): Reimplement.
620
36728e82
PA
6212014-10-15 Pedro Alves <palves@redhat.com>
622
623 * infrun.c (resume): Don't force displaced-stepping for all
624 single-steps on software single-stepping archs.
625
34b7e8a6
PA
6262014-10-15 Pedro Alves <palves@redhat.com>
627
628 * breakpoint.c (single_step_breakpoints): Delete global.
629 (insert_single_step_breakpoint): Adjust to store the breakpoint
630 pointer in the current thread.
631 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
632 (cancel_single_step_breakpoints): Delete functions.
633 (breakpoint_has_location_inserted_here): Make extern.
634 (single_step_breakpoint_inserted_here_p): Adjust to walk the
635 breakpoint list.
636 * breakpoint.h (breakpoint_has_location_inserted_here): New
637 declaration.
638 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
639 (cancel_single_step_breakpoints): Remove declarations.
640 * gdbthread.h (struct thread_control_state)
641 <single_step_breakpoints>: New field.
642 (delete_single_step_breakpoints)
643 (thread_has_single_step_breakpoints_set)
644 (thread_has_single_step_breakpoint_here): New declarations.
645 * infrun.c (follow_exec): Also clear the single-step breakpoints.
646 (singlestep_breakpoints_inserted_p, singlestep_ptid)
647 (singlestep_pc): Delete globals.
648 (infrun_thread_ptid_changed): Remove references to removed
649 globals.
650 (resume_cleanups): Delete the current thread's single-step
651 breakpoints.
652 (maybe_software_singlestep): Remove references to removed globals.
653 (resume): Adjust to use thread_has_single_step_breakpoints_set and
654 delete_single_step_breakpoints.
655 (init_wait_for_inferior): Remove references to removed globals.
656 (delete_thread_infrun_breakpoints): Delete the thread's
657 single-step breakpoints too.
658 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
659 single-step breakpoints here.
660 (delete_stopped_threads_single_step_breakpoints): New function.
661 (adjust_pc_after_break): Adjust to use
662 thread_has_single_step_breakpoints_set.
663 (handle_inferior_event): Remove references to removed globals.
664 Use delete_stopped_threads_single_step_breakpoints.
665 (handle_signal_stop): Adjust to per-thread single-step
666 breakpoints. Swap test order to do cheaper tests first.
667 (switch_back_to_stepped_thread): Extend debug output. Remove
668 references to removed globals.
669 * record-full.c (record_full_wait_1): Adjust to per-thread
670 single-step breakpoints.
671 * thread.c (delete_single_step_breakpoints)
672 (thread_has_single_step_breakpoints_set)
673 (thread_has_single_step_breakpoint_here): New functions.
674 (clear_thread_inferior_resources): Also delete the thread's
675 single-step breakpoints.
676
5b834a0a
PA
6772014-10-15 Pedro Alves <palves@redhat.com>
678
679 * thread.c (delete_thread_breakpoint): New function.
680 (delete_step_resume_breakpoint)
681 (delete_exception_resume_breakpoint): Use it.
682 (delete_at_next_stop): New function.
683 (clear_thread_inferior_resources): Use delete_at_next_stop.
684
a1fd2fa5
PA
6852014-10-15 Pedro Alves <palves@redhat.com>
686
687 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
688 (breakpoint_inserted_here_p): ... here. Remove special case for
689 software single-step breakpoints.
690 (find_non_raw_software_breakpoint_inserted_here): Inline ...
691 (software_breakpoint_inserted_here_p): ... here. Remove special
692 case for software single-step breakpoints.
693 (bp_target_info_copy_insertion_state)
694 (deprecated_insert_raw_breakpoint)
695 (deprecated_remove_raw_breakpoint): Delete functions.
696 * breakpoint.h (deprecated_insert_raw_breakpoint)
697 (deprecated_remove_raw_breakpoint): Remove declarations.
698
7c16b83e
PA
6992014-10-15 Pedro Alves <palves@redhat.com>
700
701 PR breakpoints/9649
702 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
703 Delete array globals.
704 (single_step_breakpoints): New global.
705 (breakpoint_xfer_memory): Remove special handling for single-step
706 breakpoints.
707 (update_breakpoints_after_exec): Delete bp_single_step
708 breakpoints.
709 (detach_breakpoints): Remove special handling for single-step
710 breakpoints.
711 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
712 (bpstat_stop_status): Add comment.
713 (bpstat_what, bptype_string, print_one_breakpoint_location)
714 (adjust_breakpoint_address, init_bp_location): Handle
715 bp_single_step.
716 (new_single_step_breakpoint): New function.
717 (set_momentary_breakpoint, bkpt_remove_location): Remove special
718 handling for single-step breakpoints.
719 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
720 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
721 Rewrite.
722 (detach_single_step_breakpoints, find_single_step_breakpoint):
723 Delete functions.
724 (breakpoint_has_location_inserted_here): New function.
725 (single_step_breakpoint_inserted_here_p): Rewrite.
726 * breakpoint.h: Remove FIXME.
727 (enum bptype) <bp_single_step>: New enum value.
728 (insert_single_step_breakpoint): Update comment.
729 * infrun.c (resume_cleanups)
730 (delete_step_thread_step_resume_breakpoint): Remove single-step
731 breakpoints.
732 (fetch_inferior_event): Install a cleanup that removes infrun
733 breakpoints.
734 (switch_back_to_stepped_thread) <expect thread advanced also>:
735 Clear step-over info.
736
0cbcdb96
PA
7372014-10-15 Pedro Alves <palves@redhat.com>
738
739 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
740 (delete_thread_infrun_breakpoints): New function, with parts
741 salvaged from delete_step_resume_breakpoint_callback.
742 (delete_step_thread_step_resume_breakpoint): Delete.
743 (for_each_just_stopped_thread_callback_func): New typedef.
744 (for_each_just_stopped_thread): New function.
745 (delete_just_stopped_threads_infrun_breakpoints): New function.
746 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
747 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
748 ... this. Adjust.
749 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
750
963f9c80
PA
7512014-10-15 Pedro Alves <palves@redhat.com>
752
753 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
754 trying to step past a non-steppable watchpoint.
755 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
756 field.
757 * infrun.c (struct step_over_info): Add new field
758 'nonsteppable_watchpoint_p' and adjust comments.
759 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
760 Adjust.
761 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
762 (stepping_past_nonsteppable_watchpoint): New function.
763 (step_over_info_valid_p): Also return true if stepping past a
764 nonsteppable watchpoint.
765 (proceed): Adjust call to set_step_over_info. Remove reference to
766 init_infwait_state.
767 (init_wait_for_inferior): Remove reference to init_infwait_state.
768 (waiton_ptid): Delete global.
769 (struct execution_control_state)
770 <stepped_after_stopped_by_watchpoint>: Delete field.
771 (wait_for_inferior, fetch_inferior_event): Always pass
772 minus_one_ptid to target_wait.
773 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
774 field.
775 (init_infwait_state): Delete function.
776 (handle_inferior_event): Remove infwait_state handling.
777 (handle_signal_stop) <watchpoints handling>: Adjust after
778 stepped_after_stopped_by_watchpoint removal. Don't remove
779 breakpoints here nor set infwait_state. Set the thread's
780 stepping_over_watchpoint flag, and call keep_going instead.
781 (keep_going): Handle stepping_over_watchpoint. Adjust
782 set_step_over_info calls.
783 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
784 function.
785
6cc83d2a
PA
7862014-10-15 Pedro Alves <palves@redhat.com>
787
788 * infrun.c (step_over_info_valid_p): New function.
789 (resume): Use step_over_info_valid_p instead of checking the
790 threads's trap_expected flag.
791
6979730b
DE
7922014-10-15 Doug Evans <dje@google.com>
793 Walfred Tedeschi <walfred.tedeschi@intel.com>
794
795 PR python/17364
796 * python/lib/gdb/__init__.py (packages): Add "printer".
797 * python/lib/gdb/command/bound_registers.py: Moved to ...
798 * python/lib/gdb/printer/bound_registers.py: ... here.
799 Add printer to global set of builtin printers. Rename printer from
800 "bound" to "mpx_bound128".
801 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
802 registered as global "builtin" printer.
803 (add_builtin_pretty_printer): New function.
804 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
805 gdb/printer/__init__.py.
806
35a49624
IB
8072014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
808
809 * Makefile.in (SFILES): Remove d-support.c.
810 (COMMON_OBS): Remove d-support.o.
811 * d-lang.h (d_parse_symbol): Remove declaration.
812 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
813 * d-support.c: Remove file.
814
8fa0c4f8
AA
8152014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
816
817 * gdb/infrun.c (process_event_stop_test): Apply
818 gdbarch_addr_bits_remove to longjmp resume address.
819
3666da81
PA
8202014-10-15 Pedro Alves <palves@redhat.com>
821
822 * regformats/microblaze.dat: Delete file.
823
449aa9df
AKA
8242014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
825
826 * features/Makefile (microblaze-expedite): Replace pc with rpc.
827 * regformats/microblaze-with-stack-protect.dat: Regenerate.
828
ebb8ece2
SC
8292014-10-15 Siva Chandra Reddy <sivachandra@google.com>
830
831 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
832 as non-trivial.
833
82c48ac7
SC
8342014-10-15 Siva Chandra Reddy <sivachandra@google.com>
835
836 PR c++/13403
837 PR c++/15154
838 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
839 with qualified args.
840
c40cc657
JB
8412014-10-14 Joel Brobecker <brobecker@adacore.com>
842
843 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
844 of the case where the second operand is a pointer.
845 <BINOP_SUB>: Likewise.
846
0ea5cda8
SDJ
8472014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
848
849 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
850 only if it is not NULL.
851 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
852 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
853 (struct probe_ops) <clear_semaphore>: Likewise.
854 * tracepoint.c (start_tracing): Call set_semaphore only if it is
855 not NULL.
856 (stop_tracing): Likewise, for clear_semaphore.
857
f7088df3
SDJ
8582014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
859
860 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
861 using language_c, instead of current_language.
862
4e1bbde0
DE
8632014-10-13 Doug Evans <dje@google.com>
864
6ff5a0f6 865 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 866 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 867 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
868 (pspy_new, pspace_to_pspace_object): Call it.
869
c780cc2f
JK
8702014-10-13 Miroslav Franc <mfranc@redhat.com>
871 Jan Kratochvil <jan.kratochvil@redhat.com>
872
873 Fix "save breakpoints" for "catch" command.
874 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
875 newline.
876
99894e11
JK
8772014-10-12 Miroslav Franc <mfranc@redhat.com>
878
879 Fix "save breakpoints" for "disable $bpnum" command.
880 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
881
3831839c
PA
8822014-10-10 Pedro Alves <palves@redhat.com>
883
884 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
885 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
886 (HFILES_NO_SRCDIR): Remove solib-irix.h.
887 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
888 and been removed.
889 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
890 * configure.ac: Remove references to IRIX.
891 * configure.host: Add *-*-irix* to the obsolete hosts section.
892 Remove all other references to irix.
893 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
894 Delete files.
895
cc3afae2
AKA
8962014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
897
898 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
899 isn't valid, release the tdesc arch data and return NULL.
900
cdfa0b0a
PA
9012014-10-10 Pedro Alves <palves@redhat.com>
902
903 * linux-tdep.c: Include observer.h.
904 (linux_inferior_data): New global.
905 (struct linux_info): New structure.
906 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
907 (get_linux_inferior_data): New functions.
908 (linux_vsyscall_range): Rename to ...
909 (linux_vsyscall_range_raw): ... this.
910 (linux_vsyscall_range): New function; handles caching.
911 (_initialize_linux_tdep): Register linux_inferior_data. Install
912 inferior_exit and inferior_appeared observers.
913
8b9a549d
PA
9142014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
915 Pedro Alves <palves@redhat.com>
916
917 PR symtab/14466
918 * solib-svr4.c (svr4_read_so_list): Rename to ...
919 (svr4_current_sos_1): ... this and change the function comment.
920 (svr4_current_sos): New function.
921
3437254d
PA
9222014-10-10 Pedro Alves <palves@redhat.com>
923
924 * arch-utils.c (default_vsyscall_range): New function.
925 * arch-utils.h (default_vsyscall_range): New declaration.
926 * gdbarch.sh (vsyscall_range): New hook.
927 * gdbarch.h, gdbarch.c: Regenerate.
928 * linux-tdep.c (linux_vsyscall_range): New function.
929 (linux_init_abi): Install linux_vsyscall_range as
930 vsyscall_range gdbarch hook.
931 * memrange.c (address_in_mem_range): New function.
932 * memrange.h (address_in_mem_range): New declaration.
933 * symfile-mem.c (find_vdso_size): Delete function.
934 (add_vsyscall_page): Use gdbarch_vsyscall_range.
935
31cc0b80
PA
9362014-10-10 Pedro Alves <palves@redhat.com>
937
938 * infrun.c (normal_stop): Fix typo in comment.
939
3e3286a2
SDJ
9402014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
941
942 PR tdep/9390
943 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
944 typo when using logical AND to determine instruction type.
945
fcbdedf8
YQ
9462014-10-09 Yao Qi <yao@codesourcery.com>
947
948 * infrun.c (handle_signal_stop): Remove local variable
949 'printed'.
950
db984616
SS
9512014-10-08 Stan Shebs <stan@codesourcery.com>
952
953 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
954
3ba37e6c
GB
9552014-10-08 Gary Benson <gbenson@redhat.com>
956
957 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
958
a442d071
GB
9592014-10-08 Gary Benson <gbenson@redhat.com>
960
961 * common/common-defs.h: Include common-exceptions.h.
962 * exceptions.h: Do not include common-exceptions.h.
963
6f1947e8
GB
9642014-10-08 Gary Benson <gbenson@redhat.com>
965
966 * common/common-defs.h: Include cleanups.h.
967 * common/common-exceptions.c: Do not include cleanups.h.
968 * utils.h: Likewise.
969
c765fdb9
GB
9702014-10-08 Gary Benson <gbenson@redhat.com>
971
972 * ada-lang.c: Do not include exceptions.h.
973 * ada-valprint.c: Likewise.
974 * amd64-tdep.c: Likewise.
975 * auto-load.c: Likewise.
976 * block.c: Likewise.
977 * break-catch-throw.c: Likewise.
978 * breakpoint.c: Likewise.
979 * btrace.c: Likewise.
980 * c-lang.c: Likewise.
981 * cli/cli-cmds.c: Likewise.
982 * cli/cli-interp.c: Likewise.
983 * cli/cli-script.c: Likewise.
984 * completer.c: Likewise.
985 * corefile.c: Likewise.
986 * corelow.c: Likewise.
987 * cp-abi.c: Likewise.
988 * cp-support.c: Likewise.
989 * cp-valprint.c: Likewise.
990 * darwin-nat.c: Likewise.
991 * dwarf2-frame-tailcall.c: Likewise.
992 * dwarf2-frame.c: Likewise.
993 * dwarf2loc.c: Likewise.
994 * dwarf2read.c: Likewise.
995 * eval.c: Likewise.
996 * event-loop.c: Likewise.
997 * event-top.c: Likewise.
998 * f-valprint.c: Likewise.
999 * frame-unwind.c: Likewise.
1000 * frame.c: Likewise.
1001 * gdbtypes.c: Likewise.
1002 * gnu-v2-abi.c: Likewise.
1003 * gnu-v3-abi.c: Likewise.
1004 * guile/scm-auto-load.c: Likewise.
1005 * guile/scm-breakpoint.c: Likewise.
1006 * guile/scm-cmd.c: Likewise.
1007 * guile/scm-frame.c: Likewise.
1008 * guile/scm-lazy-string.c: Likewise.
1009 * guile/scm-param.c: Likewise.
1010 * guile/scm-symbol.c: Likewise.
1011 * guile/scm-type.c: Likewise.
1012 * hppa-hpux-tdep.c: Likewise.
1013 * i386-tdep.c: Likewise.
1014 * inf-loop.c: Likewise.
1015 * infcall.c: Likewise.
1016 * infcmd.c: Likewise.
1017 * infrun.c: Likewise.
1018 * interps.c: Likewise.
1019 * interps.h: Likewise.
1020 * jit.c: Likewise.
1021 * linespec.c: Likewise.
1022 * linux-nat.c: Likewise.
1023 * linux-thread-db.c: Likewise.
1024 * m32r-rom.c: Likewise.
1025 * main.c: Likewise.
1026 * memory-map.c: Likewise.
1027 * mi/mi-cmd-break.c: Likewise.
1028 * mi/mi-cmd-stack.c: Likewise.
1029 * mi/mi-interp.c: Likewise.
1030 * mi/mi-main.c: Likewise.
1031 * monitor.c: Likewise.
1032 * nto-procfs.c: Likewise.
1033 * objc-lang.c: Likewise.
1034 * p-valprint.c: Likewise.
1035 * parse.c: Likewise.
1036 * ppc-linux-tdep.c: Likewise.
1037 * printcmd.c: Likewise.
1038 * probe.c: Likewise.
1039 * python/py-auto-load.c: Likewise.
1040 * python/py-breakpoint.c: Likewise.
1041 * python/py-cmd.c: Likewise.
1042 * python/py-finishbreakpoint.c: Likewise.
1043 * python/py-frame.c: Likewise.
1044 * python/py-framefilter.c: Likewise.
1045 * python/py-function.c: Likewise.
1046 * python/py-gdb-readline.c: Likewise.
1047 * python/py-inferior.c: Likewise.
1048 * python/py-infthread.c: Likewise.
1049 * python/py-lazy-string.c: Likewise.
1050 * python/py-linetable.c: Likewise.
1051 * python/py-param.c: Likewise.
1052 * python/py-prettyprint.c: Likewise.
1053 * python/py-symbol.c: Likewise.
1054 * python/py-type.c: Likewise.
1055 * python/py-value.c: Likewise.
1056 * python/python-internal.h: Likewise.
1057 * python/python.c: Likewise.
1058 * record-btrace.c: Likewise.
1059 * record-full.c: Likewise.
1060 * regcache.c: Likewise.
1061 * remote-fileio.c: Likewise.
1062 * remote-mips.c: Likewise.
1063 * remote.c: Likewise.
1064 * rs6000-aix-tdep.c: Likewise.
1065 * rs6000-nat.c: Likewise.
1066 * skip.c: Likewise.
1067 * solib-darwin.c: Likewise.
1068 * solib-dsbt.c: Likewise.
1069 * solib-frv.c: Likewise.
1070 * solib-ia64-hpux.c: Likewise.
1071 * solib-spu.c: Likewise.
1072 * solib-svr4.c: Likewise.
1073 * solib.c: Likewise.
1074 * spu-tdep.c: Likewise.
1075 * stack.c: Likewise.
1076 * stap-probe.c: Likewise.
1077 * symfile-mem.c: Likewise.
1078 * symmisc.c: Likewise.
1079 * target.c: Likewise.
1080 * thread.c: Likewise.
1081 * top.c: Likewise.
1082 * tracepoint.c: Likewise.
1083 * tui/tui-interp.c: Likewise.
1084 * typeprint.c: Likewise.
1085 * utils.c: Likewise.
1086 * valarith.c: Likewise.
1087 * valops.c: Likewise.
1088 * valprint.c: Likewise.
1089 * value.c: Likewise.
1090 * varobj.c: Likewise.
1091 * windows-nat.c: Likewise.
1092 * xml-support.c: Likewise.
1093
484933d1
MR
10942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1095
1096 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1097 name implies.
1098 (extended_mips16_next_pc): Update accordingly.
1099
ab50adb6
MR
11002014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1101
1102 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1103 function.
1104 (micromips_instruction_is_compact_branch): Likewise.
1105 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1106 or a compact jump, reaching a jump delay slot, or seeing a
1107 second non-prologue instruction.
1108 (micromips_scan_prologue): Also terminate scanning upon seeing a
1109 compact branch or jump, or reaching a branch or jump delay slot.
1110 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1111 or jump delay slot, or seeing a second non-prologue instruction.
1112 (mips32_instruction_has_delay_slot): Retain instruction
1113 examination code only, update arguments accordingly and move
1114 instruction fetch pieces to...
1115 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1116 (micromips_instruction_has_delay_slot): Likewise and to...
1117 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1118 (mips16_instruction_has_delay_slot): Likewise and to...
1119 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1120 (mips_single_step_through_delay): Update accordingly.
1121 (mips_adjust_breakpoint_address): Likewise.
1122
ae790652
MR
11232014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1124
1125 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1126 !mustbe32 also return 1 for 32-bit instructions.
1127 (mips16_instruction_has_delay_slot): Likewise. Add an
1128 explanatory comment.
1129
9b807e7b
MR
11302014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1131
1132 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1133 symbols special.
1134
0d5ed153
MR
11352014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1136
1137 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1138 update comments.
1139 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1140 for the breakpoint's address. Don't preinitialize `placed_size'.
1141 (insert_bp_location): Set `reqstd_address' rather than
1142 `placed_address'.
1143 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1144 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1145 address.
1146 (bkpt_remove_location): Likewise.
1147 (deprecated_insert_raw_breakpoint): Likewise.
1148 (deprecated_remove_raw_breakpoint): Likewise.
1149 (find_single_step_breakpoint): Likewise.
1150 * mem-break.c (default_memory_insert_breakpoint): Use
1151 `reqstd_address' for the breakpoint's address. Don't set
1152 `placed_address' or `placed_size' if breakpoint contents couldn't
1153 have been determined.
1154 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1155 the breakpoint's address.
1156 (remote_insert_hw_breakpoint): Likewise. Don't set
1157 `placed_address' or `placed_size' if breakpoint couldn't have been
1158 set.
1159 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1160 `reqstd_address' for the breakpoint's address.
1161 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1162 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1163 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1164 * microblaze-linux-tdep.c
1165 (microblaze_linux_memory_remove_breakpoint): Likewise.
1166 * monitor.c (monitor_insert_breakpoint): Likewise.
1167 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1168 (procfs_insert_hw_breakpoint): Likewise.
1169 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1170 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1171 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1172 * remote-mips.c (mips_insert_breakpoint): Likewise.
1173 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1174
3e871532
LM
11752014-10-03 Luis Machado <lgustavo@codesourcery.com>
1176
1177 * valops.c (value_assign): Check for bit field assignments
1178 before calling architecture-specific register value
1179 conversion functions.
1180
ec48dc8b
PM
11812014-10-03 Pierre Muller <muller@sourceware.org>
1182
1183 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1184
b57bacec
PA
11852014-10-02 Pedro Alves <palves@redhat.com>
1186
1187 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1188 threads_are_executing.
1189 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1190 describing comment.
1191 * gdbthread.h (threads_are_executing): Declare.
1192 (handle_signal_stop) <random signals>: Don't print about the
1193 signal here if stopping.
1194 (end_stepping_range): Don't notify observers here.
1195 (normal_stop): Update the thread list. If stopped by a random
1196 signal or a stepping range ended, notify observers.
1197 * thread.c (threads_executing): New global.
1198 (init_thread_list): Clear 'threads_executing'.
1199 (set_executing): Set or clear 'threads_executing'.
1200 (threads_are_executing): New function.
1201 (update_threads_executing): New function.
1202 (update_thread_list): Use it.
1203
13fd3ff3
PA
12042014-10-02 Pedro Alves <palves@redhat.com>
1205
1206 PR breakpoints/17431
1207 * breakpoint.c (update_breakpoints_after_exec): Don't create
1208 overlay, longjmp, std terminate nor exception breakpoints here.
1209
32990ada
PA
12102014-10-02 Pedro Alves <palves@redhat.com>
1211
1212 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1213 Adjust comments.
1214 * inferior.c (find_inferior_for_program_space): Give preference to
1215 the current inferior.
1216 * inferior.h (find_inferior_for_program_space): Update comment.
1217 * progspace.c (switch_to_program_space_and_thread): Prefer the
1218 current inferior if it's bound to the program space requested. If
1219 the inferior found doesn't have a PID yet, don't bother looking up
1220 a thread.
1221 * progspace.h (switch_to_program_space_and_thread): Adjust
1222 comment.
1223 * thread.c (any_thread_of_process, any_live_thread_of_process):
1224 Give preference to the current thread.
1225
0fec99e8
PA
12262014-10-01 Pedro Alves <palves@redhat.com>
1227
1228 * breakpoint.c (insert_bp_location): Error out if inserting a
1229 software breakpoint at a read-only address.
1230 * target.c (memory_xfer_check_region): New function, factored out
1231 from ...
1232 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1233 ULONGEST.
1234 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1235 against the memory region attributes.
1236
2ddf4301
SM
12372014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1238
1239 * NEWS: Announce new exit-code field in -list-thread-groups
1240 output.
1241 * inferior.c (exit_inferior_1): Don't clear exit code.
1242 (inferior_appeared): Clear exit code.
1243 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1244 code.
1245
5fdeec1d
PA
12462014-10-01 Pedro Alves <palves@redhat.com>
1247
1248 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1249 GENERATED" along with emacs/vi read-only markers.
1250 * regformats/aarch64.dat: Regenerate.
1251 * regformats/arm-with-iwmmxt.dat: Regenerate.
1252 * regformats/arm-with-neon.dat: Regenerate.
1253 * regformats/arm-with-vfpv2.dat: Regenerate.
1254 * regformats/arm-with-vfpv3.dat: Regenerate.
1255 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1256 * regformats/i386/amd64-avx.dat: Regenerate.
1257 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1258 * regformats/i386/amd64-avx512.dat: Regenerate.
1259 * regformats/i386/amd64-linux.dat: Regenerate.
1260 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1261 * regformats/i386/amd64-mpx.dat: Regenerate.
1262 * regformats/i386/amd64.dat: Regenerate.
1263 * regformats/i386/i386-avx-linux.dat: Regenerate.
1264 * regformats/i386/i386-avx.dat: Regenerate.
1265 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1266 * regformats/i386/i386-avx512.dat: Regenerate.
1267 * regformats/i386/i386-linux.dat: Regenerate.
1268 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1269 * regformats/i386/i386-mmx.dat: Regenerate.
1270 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1271 * regformats/i386/i386-mpx.dat: Regenerate.
1272 * regformats/i386/i386.dat: Regenerate.
1273 * regformats/i386/x32-avx-linux.dat: Regenerate.
1274 * regformats/i386/x32-avx.dat: Regenerate.
1275 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1276 * regformats/i386/x32-avx512.dat: Regenerate.
1277 * regformats/i386/x32-linux.dat: Regenerate.
1278 * regformats/i386/x32.dat: Regenerate.
1279 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1280 * regformats/mips-dsp-linux.dat: Regenerate.
1281 * regformats/mips-linux.dat: Regenerate.
1282 * regformats/mips64-dsp-linux.dat: Regenerate.
1283 * regformats/mips64-linux.dat: Regenerate.
1284 * regformats/nios2-linux.dat: Regenerate.
1285 * regformats/rs6000/powerpc-32.dat: Regenerate.
1286 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1287 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1288 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1289 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1290 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1291 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1292 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1293 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1294 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1295 * regformats/s390-linux32.dat: Regenerate.
1296 * regformats/s390-linux32v1.dat: Regenerate.
1297 * regformats/s390-linux32v2.dat: Regenerate.
1298 * regformats/s390-linux64.dat: Regenerate.
1299 * regformats/s390-linux64v1.dat: Regenerate.
1300 * regformats/s390-linux64v2.dat: Regenerate.
1301 * regformats/s390-te-linux64.dat: Regenerate.
1302 * regformats/s390x-linux64.dat: Regenerate.
1303 * regformats/s390x-linux64v1.dat: Regenerate.
1304 * regformats/s390x-linux64v2.dat: Regenerate.
1305 * regformats/s390x-te-linux64.dat: Regenerate.
1306 * regformats/tic6x-c62x-linux.dat: Regenerate.
1307 * regformats/tic6x-c62x.dat: Regenerate.
1308 * regformats/tic6x-c64x-linux.dat: Regenerate.
1309 * regformats/tic6x-c64x.dat: Regenerate.
1310 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1311 * regformats/tic6x-c64xp.dat: Regenerate.
1312
db74e4ba
PA
13132014-10-01 Pedro Alves <palves@redhat.com>
1314
1315 * features/Makefile: Update comments.
1316 (XMLTOC): List all xml files we build C files from.
1317 (clean-cfiles): New rule.
1318
d63f2f84
PA
13192014-10-01 Pedro Alves <palves@redhat.com>
1320
1321 * features/i386/amd64-avx512-linux.c: Regenerate.
1322 * features/i386/amd64-avx512.c: Regenerate.
1323 * features/i386/x32-avx512-linux.c: Regenerate.
1324 * features/i386/x32-avx512.c: Regenerate.
1325
20ad026d
PA
13262014-10-01 Pedro Alves <palves@redhat.com>
1327
1328 * features/Makefile (WHICH): Remove arm-with-m,
1329 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1330
acc9fe45
PA
13312014-10-01 Pedro Alves <palves@redhat.com>
1332
1333 * features/Makefile (clean): New rule.
1334
e001e535
PA
13352014-10-01 Pedro Alves <palves@redhat.com>
1336
1337 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1338 (zmm14h): Add missing end quotes.
1339
bdc14417
PA
13402014-10-01 Pedro Alves <palves@redhat.com>
1341
1342 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1343 * features/aarch64.c: Regenerate.
1344
d83ad864
DB
13452014-09-30 Don Breazeal <donb@codesourcery.com>
1346
1347 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1348 code so as to work with follow_fork_inferior.
1349 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1350 (inf_ttrace_create_inferior): Remove reference to
1351 inf_ttrace_vfork_ppid.
1352 (inf_ttrace_attach): Ditto.
1353 (inf_ttrace_detach): Ditto.
1354 (inf_ttrace_kill): Use current_inferior instead of
1355 inf_ttrace_vfork_ppid.
1356 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1357 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1358 inferior away from the parent.
1359 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1360 target_follow_fork.
1361 (follow_fork_inferior): New function.
1362 (follow_inferior_reset_breakpoints): Make function static.
1363 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1364 * linux-nat.c (linux_child_follow_fork): Move target-independent
1365 code to infrun.c:follow_fork_inferior.
1366
29082443
AA
13672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368
1369 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1370 * gdbarch.c: Regenerate.
1371 * gdbarch.h: Likewise.
1372 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1373 gdbarch method 'regset_from_core_section'.
1374 (get_core_register_section): Remove handling for the case that
1375 regset == NULL and regset_from_core_section is defined.
1376 (get_core_registers): Drop check for deleted method.
1377 * procfs.c (procfs_do_thread_registers): Adjust comment.
1378
f968fe80
AA
13792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1380
1381 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1382 (linux_nat_make_corefile_notes): Remove.
1383 (linux_target_install_ops): Do not set target method
1384 'make_corefile_notes'.
1385 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1386 Remove field.
1387 (linux_corefile_thread_callback): Instead of args->collect, call
1388 linux_collect_thread_registers.
1389 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1390 NULL unless there is a regset iterator.
1391 (linux_make_corefile_notes_1): Remove.
1392 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1393 by linux_make_corefile_notes.
1394 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1395
174ad59a
AA
13962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1397
1398 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1399 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1400 Remove.
1401 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1402
97094034
AA
14032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404
1405 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1406 (xtensa_iterate_over_regset_sections): New.
1407 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1408
f73d3ce7
AA
14092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1410
1411 * vax-tdep.c (vax_regset_from_core_section): Remove.
1412 (vax_iterate_over_regset_sections): New.
1413 (vax_gdbarch_init): Adjust gdbarch initialization.
1414
cb24567a
AA
14152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1416
1417 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1418 (tilegx_regset_from_core_section): Remove.
1419 (tilegx_iterate_over_regset_sections): New.
1420 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1421
e5139de8
AA
14222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423
1424 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1425 (sparc_iterate_over_regset_sections): New.
1426 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1427 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1428 targets.
1429 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1430 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1431 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1432 target method 'make_corefile_notes'.
1433
c6d41a6f
AA
14342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435
1436 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1437 'sizeof_gregset' and 'sizeof_fpregset'.
1438 * sh-tdep.c (sh_regset_from_core_section): Remove.
1439 (sh_iterate_over_regset_sections): New.
1440 (sh_gdbarch_init): Adjust gdbarch initialization.
1441 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1442 sizeof_fpregset.
1443 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1444 'sizeof_gregset'.
1445
9845a0b5
AA
14462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1447
1448 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1449 (score7_linux_iterate_over_regset_sections): New.
1450 (score_gdbarch_init): Adjust gdbarch initialization.
1451
23ea9aeb
AA
14522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1453
1454 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1455 FreeBSD targets.
1456 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1457 method 'make_corefile_notes'.
1458 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1459 (ppcfbsd_regset_from_core_section): Remove.
1460 (ppcfbsd_iterate_over_regset_sections): New.
1461 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1462 initialization.
1463 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1464 (ppcnbsd_iterate_over_regset_sections): New.
1465 (ppcnbsd_init_abi): Adjust.
1466 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1467 (ppcobsd_iterate_over_regset_sections): New.
1468 (ppcobsd_init_abi): Adjust.
1469 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1470 (rs6000_aix_iterate_over_regset_sections): New.
1471 (rs6000_aix_init_osabi): Adjust.
1472
c5b8d704
AA
14732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1474
1475 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1476 (nios2_regset_from_core_section): Remove.
1477 (nios2_iterate_over_regset_sections): New.
1478 (nios2_linux_init_abi): Adjust gdbarch initialization.
1479
3636e608
AA
14802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1481
1482 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1483 (am33_iterate_over_regset_sections): New.
1484 (am33_linux_init_osabi): Adjust gdbarch initialization.
1485
d4036235
AA
14862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487
1488 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1489 (mips_linux_iterate_over_regset_sections): New.
1490 (mips_linux_init_abi): Adjust gdbarch initialization.
1491 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1492 (mips64obsd_iterate_over_regset_sections): New.
1493 (mips64obsd_init_abi): Adjust.
1494 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1495 (mipsnbsd_iterate_over_regset_sections): New.
1496 (mipsnbsd_init_abi): Adjust.
1497
b61ddd6e
AA
14982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499
1500 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1501 (m88k_iterate_over_regset_sections): New.
1502 (m88k_gdbarch_init): Adjust gdbarch initialization.
1503
55a2906a
AA
15042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1505
1506 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1507 (ia64_linux_iterate_over_regset_sections): New.
1508 (ia64_linux_init_abi): Adjust gdbarch initialization.
1509
022c98ab
AA
15102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1511
1512 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1513 (m68kbsd_iterate_over_regset_sections): New.
1514 (m68kbsd_init_abi): Adjust gdbarch initialization.
1515 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1516 (m68k_linux_iterate_over_regset_sections): New.
1517 (m68k_linux_init_abi): Adjust gdbarch initialization.
1518
5fac247f
AA
15192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1520
1521 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1522 (m32r_linux_regset_from_core_section): Remove.
1523 (m32r_linux_iterate_over_regset_sections): New.
1524 (m32r_linux_init_abi): Adjust gdbarch initialization.
1525
490496c3
AA
15262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1527
1528 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1529 (amd64obsd_iterate_over_regset_sections): New.
1530 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1531 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1532 Remove.
1533 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1534 regset_from_core_section initialization.
1535 * i386-tdep.c (i386_regset_from_core_section): Remove.
1536 (i386_iterate_over_regset_sections): New.
1537 (i386_gdbarch_init): Adjust gdbarch initialization.
1538 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1539 (i386_iterate_over_regset_sections): New prototype.
1540 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1541 Remove.
1542 (i386obsd_aout_iterate_over_regset_sections): New.
1543 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1544 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1545 targets.
1546 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1547 (amd64fbsd_init_abi): Call fbsd_init_abi.
1548 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1549 (i386fbsd4_init_abi): Call fbsd_init_abi.
1550 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1551 target method 'make_corefile_notes'.
1552 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1553
50c5eb53
AA
15542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1555
1556 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1557 (hppa_hpux_iterate_over_regset_sections): New.
1558 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1559 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1560 (hppa_linux_iterate_over_regset_sections): New.
1561 (hppa_linux_init_abi): Adjust.
1562 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1563 (hppanbsd_iterate_over_regset_sections): New.
1564 (hppanbsd_init_abi): Adjust.
1565 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1566 (hppaobsd_iterate_over_regset_sections): New.
1567 (hppaobsd_init_abi): Adjust.
1568
66afae4f
AA
15692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1570
1571 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1572 (frv_linux_iterate_over_regset_sections): New.
1573 (frv_linux_init_abi): Adjust gdbarch initialization.
1574
ed09174e
AA
15752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576
1577 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1578 (armbsd_iterate_over_regset_sections): New prototype.
1579 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1580 (armbsd_iterate_over_regset_sections): New.
1581 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1582 initialization.
1583
dff2166e
AA
15842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1585
1586 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1587 (alpha_linux_iterate_over_regset_sections): New.
1588 (alpha_linux_init_abi): Adjust gdbarch initialization.
1589 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1590 prototype.
1591 (alphanbsd_iterate_over_regset_sections): New prototype.
1592
4108500a
AA
15932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594
1595 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1596 Remove.
1597 (aarch64_linux_iterate_over_regset_sections): New.
1598 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1599
a904c024
AA
16002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1601
1602 * fbsd-tdep.c: New file.
1603 * fbsd-tdep.h: New file.
1604 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1605 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1606 (ALLDEPFILES): Add fbsd-tdep.c.
1607
8f0435f7
AA
16082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1611 parameter.
1612 * gdbarch.h: Regenerate.
1613 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1614 iterator.
1615 (get_core_register_section): Add parameter 'regset' and use it, if
1616 set. Add parameter 'min_size' and verify the bfd section size
1617 against it.
1618 (get_core_registers_cb): Add parameter 'regset' and pass it to
1619 get_core_register section. For the "standard" register sections
1620 ".reg" and ".reg2", set an appropriate default for human_name.
1621 (get_core_registers): Don't abort when the gdbarch has an iterator
1622 but no regset_from_core_section. Add NULL/0 for parameters
1623 'regset'/'min_size' in calls to get_core_register_section.
1624 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1625 'regset' and use it instead of calling the
1626 regset_from_core_section gdbarch method.
1627 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1628 * i386-tdep.c (i386_supply_xstateregset)
1629 (i386_collect_xstateregset, i386_xstateregset): Moved to
1630 i386-linux-tdep.c.
1631 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1632 .reg-xstate.
1633 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1634 core file support only if the regset iterator hasn't been set.
1635 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1636 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1637 Moved from i386-tdep.c and renamed to *_linux*.
1638 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1639 each callback invocation. Allow any .reg-xstate size when reading
1640 from a core file.
1641 * amd64-tdep.c (amd64_supply_xstateregset)
1642 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1643 amd64-linux-tdep.c.
1644 (amd64_regset_from_core_section): Remove.
1645 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1646 install an amd64-specific regset_from_core_section gdbarch method.
1647 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1648 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1649 Moved from amd64-tdep.c and renamed to *_linux*.
1650 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1651 to each callback invocation. Allow any .reg-xstate size when
1652 reading from a core file.
1653 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1654 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1655 each callback invocation.
1656 (arm_linux_init_abi): No longer set the regset_from_core_section
1657 gdbarch method.
1658 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1659 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1660 each callback invocation.
1661 (ppc_linux_init_abi): No longer set the regset_from_core_section
1662 gdbarch method.
1663 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1664 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1665 (s390_regset_from_core_section): Remove.
1666 (s390_iterate_over_regset_sections): Add regset parameter to each
1667 callback invocation.
1668 (s390_gdbarch_init): No longer set the regset_from_core_section
1669 gdbarch method. Drop initialization of deleted tdep fields.
1670
5aa82d05
AA
16712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1672
1673 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1674 (amd64_linux_iterate_over_regset_sections): New.
1675 (amd64_linux_init_abi_common): Don't install the regset section
1676 list, but the new iterator in gdbarch.
1677 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1678 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1679 (arm_linux_iterate_over_regset_sections): ...here. New function.
1680 (arm_linux_init_abi): Set iterator instead of section list.
1681 * corelow.c (get_core_registers_cb): New function, logic moved
1682 from...
1683 (get_core_registers): ...loop body here. Use new iterator method
1684 instead of walking through the regset section list.
1685 * gdbarch.sh: Remove 'core_regset_sections'. New method
1686 'iterate_over_regset_sections'. New typedef
1687 'iterate_over_regset_sections_cb'.
1688 * gdbarch.c: Regenerate.
1689 * gdbarch.h: Likewise.
1690 * i386-linux-tdep.c (i386_linux_regset_sections)
1691 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1692 Remove.
1693 (i386_linux_iterate_over_regset_sections): New.
1694 (i386_linux_init_abi): Don't choose a regset section list, but
1695 install new iterator in gdbarch.
1696 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1697 (linux_collect_regset_section_cb): New function, logic moved
1698 from...
1699 (linux_collect_thread_registers): ...loop body here. Use iterator
1700 method instead of walking through list.
1701 (linux_make_corefile_notes_1): Check for presence of iterator
1702 method instead of regset section list.
1703 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1704 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1705 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1706 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1707 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1708 (ppc_linux_init_abi): Don't choose from above regset section
1709 lists, but install new iterator in gdbarch.
1710 * regset.h (struct core_regset_section): Remove.
1711 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1712 have_linux_v1, have_linux_v2, and have_tdb.
1713 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1714 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1715 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1716 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1717 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1718 (s390_iterate_over_regset_sections): ...here. New function. Use
1719 new tdep fields.
1720 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1721 regset section lists, but install new iterator.
1722
2eca4a8d
JK
17232014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1724
1725 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1726
a73c2b56
SM
17272014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1728
1729 * progspace.c (print_program_space): Don't prune program spaces
1730 before printing them.
1731
03d46957
PA
17322014-09-25 Pedro Alves <palves@redhat.com>
1733
1734 * infrun.c (user_visible_resume_ptid): Don't check
1735 singlestep_breakpoints_inserted_p.
1736
e558d7c1
PA
17372014-09-25 Pedro Alves <palves@redhat.com>
1738
1739 * breakpoint.c (should_be_inserted): Add debug output.
1740
7f89fd65
PA
17412014-09-25 Pedro Alves <palves@redhat.com>
1742
1743 * infrun.c (stepping_past_instruction_at)
1744 (clear_exit_convenience_vars): Point at infrun.h instead of
1745 inferior.h.
1746 (handle_signal_stop): Fix typo.
1747
b7576e5c
YQ
17482014-09-24 Yao Qi <yao@codesourcery.com>
1749
1750 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1751 bitmask.
1752
9a6cf368
GB
17532014-09-22 Gary Benson <gbenson@redhat.com>
1754
1755 * target.c (target_stop): Updated comment.
1756
03f4463b
GB
17572014-09-22 Gary Benson <gbenson@redhat.com>
1758
1759 * target/target.h (target_stop_ptid): Renamed as...
1760 (target_stop_and_wait): New function. Updated comment.
1761 All uses updated.
1762 (target_continue_ptid): Renamed as...
1763 (target_continue_no_signal): New function. Updated comment.
1764 All uses updated.
1765
a25a5a45
PA
17662014-09-22 Pedro Alves <palves@redhat.com>
1767
1768 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1769 and "auto" merged.
1770 * breakpoint.c (enum ugll_insert_mode): New enum.
1771 (always_inserted_mode): Now a plain boolean.
1772 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1773 (breakpoints_always_inserted_mode): Delete.
1774 (breakpoints_should_be_inserted_now): New function.
1775 (insert_breakpoints): Pass UGLL_INSERT to
1776 update_global_location_list instead of calling
1777 insert_breakpoint_locations manually.
1778 (create_solib_event_breakpoint_1): New, factored out from ...
1779 (create_solib_event_breakpoint): ... this.
1780 (create_and_insert_solib_event_breakpoint): Use
1781 create_solib_event_breakpoint_1 instead of calling
1782 insert_breakpoint_locations manually.
1783 (update_global_location_list): Change parameter type from boolean
1784 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1785 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1786 (update_global_location_list_nothrow): Change parameter type from
1787 boolean to enum ugll_insert_mode.
1788 (_initialize_breakpoint): "breakpoint always-inserted" option is
1789 now a boolean command. Update help text.
1790 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1791 (breakpoints_should_be_inserted_now): New declaration.
1792 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1793 Remove breakpoints_always_inserted_mode check.
1794 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1795 * remote.c (remote_start_remote): Likewise.
1796
04086b45
PA
17972014-09-22 Pedro Alves <palves@redhat.com>
1798
1799 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1800 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1801 Instead, pass UGLL_INSERT to update_global_location_list.
1802 (update_global_location_list): Change parameter type from boolean
1803 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1804 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1805 (create_solib_event_breakpoint_1): New, factored out from ...
1806 (create_solib_event_breakpoint): ... this.
1807 (create_and_insert_solib_event_breakpoint): Use
1808 create_solib_event_breakpoint_1 instead of calling
1809 insert_breakpoint_locations manually.
1810 (update_global_location_list): Handle UGLL_INSERT.
1811
44702360
PA
18122014-09-22 Pedro Alves <palves@redhat.com>
1813
1814 * breakpoint.c (enum ugll_insert_mode): New enum.
1815 (update_global_location_list)
1816 (update_global_location_list_nothrow): Change parameter type from
1817 boolean to enum ugll_insert_mode. All callers adjusted.
1818
93c6145a
JB
18192014-09-19 Joel Brobecker <brobecker@adacore.com>
1820
1821 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1822 SystemTap support in GDB.
1823
89a5711c
DB
18242014-09-19 Don Breazeal <donb@codesourcery.com>
1825
1826 * linux-nat.c (linux_handle_extended_wait): Call
1827 linux_ptrace_get_extended_event.
1828 (wait_lwp): Call linux_is_extended_waitstatus.
1829 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1830 and linux_is_extended_waitstatus.
1831 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1832 linux_ptrace_get_extended_event.
1833 (linux_ptrace_get_extended_event): New function.
1834 (linux_is_extended_waitstatus): New function.
1835 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1836 (linux_is_extended_waitstatus): New declarations.
1837
c3b7b696
YQ
18382014-09-19 Yao Qi <yao@codesourcery.com>
1839
1840 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1841 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1842 comments. Callers update.
1843 (dwarf_decode_lines): Likewise.
1844 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1845 comments. Skip the line table if 'lowpc' is greater than
1846 'address'. Don't check
1847 dwarf2_per_objfile->has_section_at_zero.
1848
2b4fd423
DE
18492014-09-18 Doug Evans <dje@google.com>
1850
1851 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1852 * python/py-symtab.c (stpy_get_producer): New function.
1853 (symtab_object_getset): Add "producer" attribute.
1854
5e43d467
UW
18552014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1856
1857 PR gdb/17384
1858 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1859 (do_captured_read_memory_integer): Remove.
1860 (safe_read_memory_integer): Use target_read_memory directly instead
1861 of catching errors in do_captured_read_memory_integer.
1862
04e79979
MR
18632014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1864
1865 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1866 not gdb/doc.
1867
76aeec5b
SDJ
18682014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1869
1870 * objc-lang.c (find_implementation_from_class): Remove dead code.
1871
2f693f9d
SDJ
18722014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1873
1874 PR cli/7233
1875 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1876 "fprintf_unfiltered (gdb_stdlog...)".
1877
bb9d5f81
PP
18782014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1879
1880 PR breakpoints/12526
1881 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1882 val_bitsize.
1883 * breakpoint.c (watch_command_1): Use these fields to retain
1884 bitfield information.
1885 (extract_bitfield_from_watchpoint_value): New function.
1886 (watchpoint_check): Use it.
1887 (update_watchpoint): Use it. Optimize the address and length of a
1888 HW watchpoint pointing to a bitfield.
1889 * value.h (unpack_value_bitfield): New prototype.
1890 * value.c (unpack_value_bitfield): Make extern.
1891
05db5edd
ST
18922014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1893
1894 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1895 x86-dregs.o.
1896 * gnu-nat.c (inf_threads): New function.
1897 * gnu-nat.h (inf_threads_ftype): New typedef.
1898 (inf_threads): New declaration.
1899 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1900 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1901 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1902 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1903 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1904 (i386_gnu_dr_get_control): New functions.
1905 (reg_addr): New structure.
1906 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1907 i386 debugging register hooks.
1908 * NEWS: Mention this.
1909
5a578da5
OJ
19102014-08-13 Omair Javaid <omair.javaid@linaro.org>
1911
1912 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1913 vector data transfer instructions.
1914 (arm_record_coproc_data_proc): Updated.
1915
f20f80dd
OJ
19162014-08-13 Omair Javaid <omair.javaid@linaro.org>
1917
1918 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1919 arm_record_exreg_ld_st_insn.
1920 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1921 load/store insns.
1922
851f26ae
OJ
19232014-08-13 Omair Javaid <omair.javaid@linaro.org>
1924
1925 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1926 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1927 processing instructions.
1928
1e1b6563
OJ
19292014-08-13 Omair Javaid <omair.javaid@linaro.org>
1930
1931 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1932 for advance SIMD struct ld/st insn.
1933 (thumb2_record_decode_insn_handler): Replace stub handler with
1934 thumb2_record_asimd_struct_ld_st.
1935
60cc5e93
OJ
19362014-08-13 Omair Javaid <omair.javaid@linaro.org>
1937
1938 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1939 for asimd, vfp and coprocessor insns.
1940 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1941 and coprocessor insns.
1942 (thumb2_record_coproc_insn): New function.
1943 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1944 handlers.
1945 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1946 opcode 110 insns.
1947
81219e53
DE
19482014-09-13 Doug Evans <xdje42@gmail.com>
1949
1950 * NEWS: Mention new "queue-signal" command.
1951 * infcmd.c (queue_signal_command): New function.
1952 (_initialize_infcmd): Add new queue-signal command.
1953
d36bf488
DE
19542014-09-13 Doug Evans <xdje42@gmail.com>
1955
1956 * linux-nat.c (wait_lwp): Add debugging printf.
1957 (linux_nat_wait_1): Ditto.
1958
f37f681c
PA
19592014-09-12 Pedro Alves <palves@redhat.com>
1960
1961 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1962 (create_and_insert_solib_event_breakpoint): New functions.
1963 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1964 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1965 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1966 (remove_dbx_link_breakpoint): Delete function.
1967 (insert_dbx_link_bpt_in_file): Use
1968 create_and_insert_solib_event_breakpoint instead of
1969 deprecated_insert_raw_breakpoint.
1970 (procfs_wait): Don't check whether we hit __dbx_link here.
1971 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1972 here.
1973 * solib-irix.c (base_breakpoint): Delete global.
1974 (disable_break): Delete function.
1975 (enable_break): Use create_solib_event_breakpoint
1976 instead of deprecated_insert_raw_breakpoint.
1977 (irix_solib_handle_event): New function.
1978 (irix_solib_create_inferior_hook): Don't run the target or disable
1979 the mapping-complete breakpoint here.
1980 (_initialize_irix_solib): Install irix_solib_handle_event as
1981 so_ops->handle_event hook.
1982
9d9bf2df
EBM
19832014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1984 Ulrich Weigand  <uweigand@de.ibm.com>
1985
1986 PR tdep/17379
1987 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1988 instead of read_memory_unsigned_integer.
1989
b006a80e
GB
19902014-09-12 Gary Benson <gbenson@redhat.com>
1991
1992 * nat/linux-waitpid.c: Include common-defs.h.
1993 [GDBSERVER]: Add FIXME comment.
1994 [!GDBSERVER]: Don't include defs.h or signal.h.
1995 (linux_debug) [!GDBSERVER]: Remove empty block.
1996
296b1496
GB
19972014-09-12 Gary Benson <gbenson@redhat.com>
1998
1999 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2000 Don't include defs.h or server.h.
2001
53f81362
GB
20022014-09-12 Gary Benson <gbenson@redhat.com>
2003
2004 * nat/linux-btrace.c: Include common-defs.h.
2005 Don't include defs.h, server.h or gdbthread.h.
2006 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2007
727605ca
GB
20082014-09-12 Gary Benson <gbenson@redhat.com>
2009
2010 * common/agent.c: Include common-defs.h.
2011 Don't include defs.h or server.h.
2012 * common/buffer.c: Likewise.
2013 * common/common-debug.c: Likewise.
2014 * common/common-utils.c: Likewise.
2015 * common/errors.c: Likewise.
2016 * common/filestuff.c: Likewise.
2017 * common/format.c: Likewise.
2018 * common/gdb_vecs.c: Likewise.
2019 * common/print-utils.c: Likewise.
2020 * common/ptid.c: Likewise.
2021 * common/rsp-low.c: Likewise.
2022 * common/signals.c: Likewise.
2023 * common/vec.c: Likewise.
2024 * common/xml-utils.c: Likewise.
2025 * nat/linux-osdata.c: Likewise.
2026 * nat/linux-procfs.c: Likewise.
2027 * nat/linux-ptrace.c: Likewise.
2028 * nat/mips-linux-watch.c: Likewise.
2029 * target/waitstatus.c: Likewise.
2030
361c8ade
GB
20312014-09-12 Tom Tromey <tromey@redhat.com>
2032 Gary Benson <gbenson@redhat.com>
2033
2034 * common/common-regcache.h: New file.
2035 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2036 * regcache.h: Include common-regcache.h.
2037 (regcache_read_pc): Don't declare.
2038 * regcache.c (get_thread_regcache_for_ptid): New function.
2039 * nat/linux-btrace.c: Don't include regcache.h.
2040 Include common-regcache.h.
2041 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2042
a01cbb49
TS
20432014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2044
2045 * regcache.h (struct regset): Declare.
2046
98880d46
PA
20472014-09-11 Pedro Alves <palves@redhat.com>
2048
2049 PR gdb/17347
2050 * main.c: Include "infrun.h".
2051 (catch_command_errors, catch_command_errors_const): Wait for the
2052 foreground command to complete.
2053 * top.c (maybe_wait_sync_command_done): New function, factored out
2054 from ...
2055 (maybe_wait_sync_command_done): ... here.
2056 * top.h (maybe_wait_sync_command_done): New declaration.
2057
bd9269f7
GB
20582014-09-11 Tom Tromey <tromey@redhat.com>
2059 Gary Benson <gbenson@redhat.com>
2060
2061 * common/symbol.h: New file.
2062 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2063 * minsyms.c (find_minimal_symbol_address): New function.
2064 * common/agent.c: Include common/symbol.h.
2065 [!GDBSERVER]: Don't include objfiles.h.
2066 (agent_look_up_symbols): Use find_minimal_symbol_address.
2067
f8c1d06b
GB
20682014-09-11 Gary Benson <gbenson@redhat.com>
2069
2070 * target/target.h (target_stop_ptid, target_continue_ptid):
2071 Declare.
2072 * target.c (target_stop_ptid, target_continue_ptid): New
2073 functions.
2074 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2075 (agent_run_command): Always use target_stop_ptid and
2076 target_continue_ptid.
2077
721ec300
GB
20782014-09-11 Tom Tromey <tromey@redhat.com>
2079 Gary Benson <gbenson@redhat.com>
2080
2081 * target/target.h: New file.
2082 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2083 * target.h: Include target/target.h.
2084 (target_read_memory, target_write_memory): Don't declare.
2085 * target.c (target_read_uint32): New function.
2086 * common/agent.c: Include target/target.h.
2087 [!GDBSERVER]: Don't include target.h.
2088 (helper_thread_id): Type changed to uint32_t.
2089 (agent_get_helper_thread_id): Use target_read_uint32.
2090 (agent_run_command): Always use target_read_memory and
2091 target_write_memory.
2092 (agent_capability): Type changed to uint32_t.
2093 (agent_capability_check): Use target_read_uint32.
2094
c5e92cca
GB
20952014-09-11 Gary Benson <gbenson@redhat.com>
2096
2097 * common/common-debug.h (show_debug_regs): Declare.
2098 * common/common-debug.c (show_debug_regs): Define.
2099 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2100 all uses with show_debug_regs. Replace all uses that considered
2101 debug_hw_points as a multi-value integer with straight boolean
2102 uses.
2103 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2104 with show_debug_regs.
2105 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2106 all uses with show_debug_regs.
2107 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2108 uses with show_debug_regs.
2109
eeef931a
UW
21102014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2111
2112 * findvar.c (address_from_register): Handle targets requiring
2113 a special conversion routine even for plain pointer types.
2114
8efa9855
UW
21152014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2116
2117 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2118 (store_register): Do not call exec_one_dummy_insn.
2119
eb479039
JB
21202014-09-10 Joel Brobecker <brobecker@adacore.com>
2121
2122 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2123 dereference it first. Use value_enclosing_type instead of
2124 value_type.
2125 (ada_array_length): Likewise.
2126
deede10c
JB
21272014-09-10 Joel Brobecker <brobecker@adacore.com>
2128
2129 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2130 Adjust function implementation and documentation accordingly.
2131 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2132 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2133 Update call to ada_value_ptr_subscript.
2134
7828a5f5
JB
21352014-09-10 Joel Brobecker <brobecker@adacore.com>
2136
2137 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2138 instead of VAL's type.
2139
35782f14
JB
21402014-09-10 Joel Brobecker <brobecker@adacore.com>
2141
2142 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2143
d342a0da
DE
21442014-09-09 Doug Evans <xdje42@gmail.com>
2145
2146 PR guile/17367
2147 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2148 last parameter to pkg-config, not first.
2149 * configure.ac: Pass --with-guile provided pkg-config path to
2150 GDB_GUILE_PROGRAM_NAMES.
2151 * configure: Regenerate.
2152
b4a3d263
GKB
21532014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2154
2155 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2156 Bertazi".
2157
6e466374
MR
21582014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2159
2160 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2161 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2162 the list of sections determining GDB_OSABI_IRIX.
2163
a1ada89a
JH
21642014-09-09 James Hogan <james.hogan@imgtec.com>
2165
2166 * MAINTAINERS (Write After Approval): Add "James Hogan".
2167
86db008d
JH
21682014-09-09 James Hogan <james.hogan@imgtec.com>
2169
2170 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2171
72fde3df
JB
21722014-09-09 Joel Brobecker <brobecker@adacore.com>
2173
2174 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2175
92d8d229
DE
21762014-09-08 Doug Evans <xdje42@gmail.com>
2177
2178 PR 17247
2179 * guile.c: #include <signal.h>.
2180 (_initialize_guile): Block SIGCHLD while initializing Guile.
2181
2182 Replaces the following, which is reverted.
2183
2184 2014-07-26 Doug Evans <xdje42@gmail.com>
2185
2186 PR 17185
2187 * configure.ac: Add check for header gc/gc.h.
2188 Add check for function setenv.
2189 * configure: Regenerate.
2190 * config.in: Regenerate.
2191 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2192
d81412aa
DE
21932014-09-08 Doug Evans <xdje42@gmail.com>
2194
2195 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2196 with named constant. Fix style of pointer comparison.
2197 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2198
a9f116cb
GKB
21992014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2200
2201 PR gdb/17035
2202 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2203 decide whether we display the command on "show user".
2204 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2205 printing command name.
2206 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2207 * cli/cli-decode.c (cli_user_command_p): Create helper function
2208 to verify whether cmd_list_element is a user-defined command.
2209
c75bd3a2
JK
22102014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2211
2212 PR python/17355
2213 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2214 Fix goto out of TRY_CATCH.
2215
faa42425 22162014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2217 Tom Tromey <tromey@redhat.com>
faa42425
DE
2218
2219 PR 15276
2220 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2221 $_any_caller_matches.
2222 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2223 * python/lib/gdb/function/caller_is.py: New file.
2224
0d41ba00
DE
22252014-09-06 Doug Evans <xdje42@gmail.com>
2226
2227 * infcmd.c (program_info): Fix typo.
2228
474ca4f6
SDJ
22292014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2230
2231 PR gdb/17235
2232 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2233 'number'. New variable 'has_digit'. Rewrite code to deal with
2234 subexpressions on SDT probes.
2235
ebf13736
PA
22362014-09-04 Pedro Alves <palves@redhat.com>
2237
2238 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2239 the input is only one character long.
2240
eb0b0463
SDJ
22412014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2242
2243 PR fortran/17237
2244 * f-valprint.c (f_val_print): Specify the correct print option to
2245 use when printing integer values.
2246
5ee44bfa
GB
22472014-09-04 Gary Benson <gbenson@redhat.com>
2248
2249 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2250 Remove code to cope with LWPs wrapped as PIDs.
2251 Add assertions to ensure no wrapped LWPs are passed.
2252
4875ffdb
PA
22532014-09-04 Pedro Alves <palves@redhat.com>
2254
2255 * value.c (value_ranges_copy_adjusted): New function, factored out
2256 from ...
2257 (value_contents_copy_raw): ... here.
2258 (unpack_value_bits_as_long_1): Rename back to ...
2259 (unpack_bits_as_long): ... this. Remove 'original_value' and
2260 'result' parameters. Change return type to LONGEST.
2261 (unpack_value_bits_as_long): Delete.
2262 (unpack_value_field_as_long_1): Delete.
2263 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2264 (unpack_value_bitfield): New function.
2265 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2266 (value_fetch_lazy): Use unpack_value_bitfield.
2267 * value.h (unpack_value_bits_as_long): Delete declaration.
2268
5f3b99cf
SS
22692014-09-03 Sasha Smundak <asmundak@google.com>
2270
2271 * python/py-frame.c (frapy_read_register): New function.
2272
ac740bc7
JH
22732014-09-03 James Hogan <james.hogan@imgtec.com>
2274
2275 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2276 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2277
7d793aa9
SDJ
22782014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2279
2280 PR python/16699
2281 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2282 function.
2283 (add_cmd): Set "completer_handle_brkchars" to NULL.
2284 * cli/cli-decode.h (struct cmd_list_element)
2285 <completer_handle_brkchars>: New field.
2286 * command.h (completer_ftype_void): New typedef.
2287 (set_cmd_completer_handle_brkchars): New prototype.
2288 * completer.c (set_gdb_completion_word_break_characters): New
2289 function.
2290 (complete_line_internal): Call "completer_handle_brkchars"
2291 callback from command.
2292 * completer.h: Include "command.h".
2293 (set_gdb_completion_word_break_characters): New prototype.
2294 * python/py-cmd.c (cmdpy_completer_helper): New function.
2295 (cmdpy_completer_handle_brkchars): New function.
2296 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2297 (cmdpy_init): Set completer_handle_brkchars to
2298 cmdpy_completer_handle_brkchars.
2299
97ea6506
GB
23002014-09-03 Gary Benson <gbenson@redhat.com>
2301
2302 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2303 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2304 Loop conditions changed to equivalent form.
2305 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2306 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2307 ALL_DEBUG_ADDRESS_REGISTERS.
2308
d1437815
JB
23092014-09-03 Joel Brobecker <brobecker@adacore.com>
2310
2311 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2312 description fix.
2313
9b94fcf1
DE
23142014-09-02 Doug Evans <dje@google.com>
2315
2316 * typeprint.c (find_global_typedef): Fix comment.
2317
df7e5265
GB
23182014-09-02 Gary Benson <gbenson@redhat.com>
2319
2320 * i386-nat.h: Renamed as...
2321 * x86-nat.h: New file. All type, function and variable name
2322 prefixes changed from "i386_" to "x86_". All references updated.
2323 * i386-nat.c: Renamed as...
2324 * x86-nat.c: New file. All type, function and variable name
2325 prefixes changed from "i386_" to "x86_". All references updated.
2326 * common/i386-xstate.h: Renamed as...
2327 * common/x86-xstate.h: New file. All type, function and variable
2328 name prefixes changed from "i386_" to "x86_". All references
2329 updated.
2330 * nat/i386-cpuid.h: Renamed as...
2331 * nat/x86-cpuid.h: New file. All type, function and variable name
2332 prefixes changed from "i386_" to "x86_". All references updated.
2333 * nat/i386-gcc-cpuid.h: Renamed as...
2334 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2335 name prefixes changed from "i386_" to "x86_". All references
2336 updated.
2337 * nat/i386-dregs.h: Renamed as...
2338 * nat/x86-dregs.h: New file. All type, function and variable name
2339 prefixes changed from "i386_" to "x86_". All references updated.
2340 * nat/i386-dregs.c: Renamed as...
2341 * nat/x86-dregs.c: New file. All type, function and variable name
2342 prefixes changed from "i386_" to "x86_". All references updated.
2343
1c3569d4
MR
23442014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2345
2346 * varobj.c (_initialize_varobj): Move to the end of file.
2347
ff55e1b5
GB
23482014-08-29 Gary Benson <gbenson@redhat.com>
2349
2350 * common/common-exceptions.h: New file.
2351 * common/common-exceptions.c: Likewise.
2352 * Makefile.in (SFILES): Add common/common-exceptions.c.
2353 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2354 (COMMON_OBS): Add common-exceptions.o.
2355 (common-exceptions.o): New rule.
2356 * exceptions.h (common-exceptions.h): Include.
2357 (gdb_setjmp.h): Do not include.
2358 (return_reason): Moved to common-exceptions.h.
2359 (enum return_reason): Likewise.
2360 (RETURN_MASK): Likewise.
2361 (typedef return_mask): Likewise.
2362 (enum errors): Likewise.
2363 (struct gdb_exception): Likewise.
2364 (exceptions_state_mc_init): Likewise.
2365 (exceptions_state_mc_action_iter): Likewise.
2366 (exceptions_state_mc_action_iter_1): Likewise.
2367 (TRY_CATCH): Likewise.
2368 (throw_exception): Likewise.
2369 (throw_verror): Likewise.
2370 (throw_vquit): Likewise.
2371 (throw_error): Likewise.
2372 (throw_quit): Likewise.
2373 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2374 (enum catcher_action): Likewise.
2375 (struct catcher): Likewise.
2376 (current_catcher): Likewise.
2377 (catcher_list_size): Likewise.
2378 (exceptions_state_mc_init): Likewise.
2379 (catcher_pop): Likewise.
2380 (exceptions_state_mc): Likewise.
2381 (exceptions_state_mc_action_iter): Likewise.
2382 (exceptions_state_mc_action_iter_1): Likewise.
2383 (throw_exception): Likewise.
2384 (exception_messages): Likewise.
2385 (exception_messages_size): Likewise.
2386 (throw_it): Likewise.
2387 (throw_verror): Likewise.
2388 (throw_vquit): Likewise.
2389 (throw_error): Likewise.
2390 (throw_quit): Likewise.
2391 (prepare_to_throw_exception): New function.
2392
e9bcb658
GB
23932014-08-29 Gary Benson <gbenson@redhat.com>
2394
2395 * common/gdb_setjmp.h: New file.
2396 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2397 * configure.ac: Move sigsetjmp check...
2398 * common/common.m4: ...here.
2399 * configure: Regenerate.
2400 * cp-support.c (SIGJMP_BUF): Delete.
2401 (SIGSETJMP): Likewise.
2402 (SIGLONGJMP): Likewise.
2403 * exceptions.h (gdb_setjmp.h): Include.
2404 (setjmp.h): Do not include.
2405 (EXCEPTIONS_SIGJMP_BUF): Delete.
2406 (EXCEPTIONS_SIGSETJMP): Likewise.
2407 (EXCEPTIONS_SIGLONGJMP): Likewise.
2408 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2409 from gdb_setjmp.h.
2410 * exceptions.c: Likewise.
2411
e3180625
GB
24122014-08-29 Gary Benson <gbenson@redhat.com>
2413
2414 * cleanups.h: Moved to...
2415 * common/cleanups.h: New file.
2416 * cleanups.c: Moved to...
2417 * common/cleanups.c: New file. Include common-defs.h and
2418 cleanups.h. Do not include defs.h.
2419 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2420 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2421 (cleanups.o): New rule.
2422
e3d6ba5d
GB
24232014-08-29 Gary Benson <gbenson@redhat.com>
2424
2425 * common/errors.h (internal_warning): New declaration.
2426 (internal_vwarning): Likewise.
2427 * common/errors.c (internal_warning): New function.
2428 * utils.h (internal_warning): Don't declare.
2429 (internal_vwarning): Likewise.
2430 * utils.c (internal_warning): Removed.
2431
075c7033
GB
24322014-08-29 Gary Benson <gbenson@redhat.com>
2433
2434 * main.c (captured_main): Use warning during startup.
2435 Prefix startup warning messages with command name.
2436
91b35fd0
GB
24372014-08-29 Gary Benson <gbenson@redhat.com>
2438
2439 * main.c (captured_main): Handle usage errors with error.
2440
b1ec390e
GB
24412014-08-29 Gary Benson <gbenson@redhat.com>
2442
2443 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2444 exit pair with a call to error. Wrap the message with _().
2445
fd0ef3dd
GB
24462014-08-29 Gary Benson <gbenson@redhat.com>
2447
2448 * main.c (captured_main): Replace a fprintf/exit
2449 pair with a call to error. Wrap the message with _().
2450
e0e6bcab
GB
24512014-08-29 Gary Benson <gbenson@redhat.com>
2452
2453 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2454 pairs with calls to error. Wrap the message with _().
2455
0d2f5c07
GB
24562014-08-29 Gary Benson <gbenson@redhat.com>
2457
2458 * utils.c (vwarning): Protect calls to target_terminal_ours
2459 and wrap_here.
2460
5df43998
GB
24612014-08-29 Gary Benson <gbenson@redhat.com>
2462
2463 * exceptions.c (print_flush): Protect calls to
2464 target_terminal_ours and wrap_here.
2465
2437fd32
GB
24662014-08-29 Gary Benson <gbenson@redhat.com>
2467
2468 * utils.h (filtered_printing_initialized): New declaration.
2469 * utils.c (abort_with_message): New function.
2470 (internal_vproblem): Use abort_with_message for first level
2471 recursive internal problems, and if gdb_stderr is not set up.
2472 Protect calls to target_terminal_ours, begin_line and query.
2473
f1f58506
DE
24742014-08-28 Doug Evans <dje@google.com>
2475
2476 * symtab.c (in_prologue): Move definition to better spot.
2477 (skip_prologue_using_sal): Ditto.
2478
aab2f208
DE
24792014-08-28 Doug Evans <dje@google.com>
2480
2481 * symtab.c (find_function_start_sal): Move definition to better spot.
2482
6b65d1b6
YQ
24832014-08-28 Yao Qi <yao@codesourcery.com>
2484
2485 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2486 found_stack_adjust in forward scan. Remove condition check
2487 on found_stack_adjust which is always true. Indent the code.
2488
a1b34d15
YQ
24892014-08-28 Yao Qi <yao@codesourcery.com>
2490
2491 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2492 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2493 (dwarf_decode_lines): Remove argument
2494 want_line_info. Remove condition check on want_line_info.
2495 Callers update.
2496
d5962de5
DE
24972014-08-27 Doug Evans <dje@google.com>
2498
2499 * dwarf2read.c (dwarf_record_line): Fix typo.
2500
9b139002
SDJ
25012014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2502
2503 * target.h (struct target_ops::to_terminal_save_ours): Remove
2504 declaration.
2505 (target_terminal_save_ours): Remove macro.
2506 * target-delegates.c: Regenerate.
2507 * inf-child.c (inf_child_target): Don't set the nonexistent
2508 field to_terminal_save_ours.
2509 * inferior.h (child_terminal_save_ours): Remove declaration.
2510 * terminal.h (gdb_save_tty_state): New declaration.
2511 * inflow.c (child_terminal_save_ours): Rename to ...
2512 (gdb_save_tty_state): ... this.
2513 * tui/tui.c: Include terminal.h.
2514 (tui_enable): Use gdb_save_tty_state instead of
2515 target_terminal_save_ours.
2516 (tui_disable): Likewise.
2517
9debeba0
DE
25182014-08-25 Doug Evans <dje@google.com>
2519
2520 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2521 Pass NULL instead of 0 for context pointer.
2522
428fc5fc
YQ
25232014-08-25 Yao Qi <yao@codesourcery.com>
2524
2525 * dwarf2read.c: Fix grammatical error.
2526
cdc07690
YQ
25272014-08-24 Yao Qi <yao@codesourcery.com>
2528
2529 * dwarf2read.c (scan_partial_symbols): Update comments.
2530 Rename argument 'need_pc' with 'set_addrmap'.
2531 (add_partial_namespace): Rename argument 'need_pc' with
2532 'set_addrmap'.
2533 (add_partial_module): Likewise.
2534 (add_partial_subprogram): Likewise. Update comments.
2535 (dwarf2_name): Fix typo.
2536
a05a36a5
DE
25372014-08-22 Doug Evans <dje@google.com>
2538
2539 PR 17276
2540 * dwarf2read.c (dwarf_record_line_p): New function.
2541 (dwarf_decode_lines_1): Ignore subsequent line number entries
2542 for the same line if any entry had a non-zero discriminator.
2543
252a6764
DE
25442014-08-22 Doug Evans <dje@google.com>
2545
2546 * buildsym.h (record_line_ftype): New typedef.
2547 (record_line): Use it.
2548 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2549 (dwarf_decode_lines_1): Call them.
2550
510db052
YQ
25512014-08-22 Yao Qi <yao@codesourcery.com>
2552
2553 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2554 (ctf_end): Remove code.
2555
22fd09ae
JK
25562014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2557
2558 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2559 (linux_make_corefile_notes): call update_thread_list, protected against
2560 exceptions.
2561
656e8868
PA
25622014-08-21 Pedro Alves <palves@redhat.com>
2563
2564 * infcmd.c (attach_command): Remove comment.
2565
de589d04
WN
25662014-08-21 Bin Cheng <bin.cheng@arm.com>
2567
2568 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2569 unsigned LONGEST to ULONGEST.
2570
2a31c623
PA
25712014-08-20 Pedro Alves <palves@redhat.com>
2572
2573 * Makefile.in (check-read1): New rule.
2574
d36430db
JB
25752014-08-20 Joel Brobecker <brobecker@adacore.com>
2576
2577 * value.c (value_from_contents_and_address): Strip resolved_type's
2578 typedef layers before checking its TYPE_DATA_LOCATION.
2579
000339af
PA
25802014-08-20 Pedro Alves <palves@redhat.com>
2581
2582 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2583
5f52445b
YQ
25842014-08-20 Yao Qi <yao@codesourcery.com>
2585
2586 * amd64-tdep.c (amd64_classify): Add a blank line after the
2587 example. Move "*/" to a new line.
2588 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2589 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2590 * dwarf2read.c (psymtab_include_file_name): Likewise.
2591
9a0dc9e3
PA
25922014-08-19 Andrew Burgess <aburgess@broadcom.com>
2593 Pedro Alves <palves@redhat.com>
2594
2595 PR symtab/14604
2596 PR symtab/14605
2597 * ada-lang.c (coerce_unspec_val_to_type): Use
2598 value_contents_copy_raw.
2599 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2600 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2601 * cp-valprint.c (cp_print_value_fields): Let the common printing
2602 code handle optimized out values.
2603 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2604 * d-valprint.c (dynamic_array_type): Use
2605 value_bits_any_optimized_out.
2606 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2607 check_any_valid fields.
2608 (check_pieced_value_bits): Delete and inline ...
2609 (check_pieced_synthetic_pointer): ... here.
2610 (check_pieced_value_validity): Delete.
2611 (check_pieced_value_invalid): Delete.
2612 (pieced_value_funcs): Remove check_validity and check_any_valid
2613 fields.
2614 (read_pieced_value): Use mark_value_bits_optimized_out.
2615 (write_pieced_value): Switch to use
2616 mark_value_bytes_optimized_out.
2617 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2618 of assuming the whole value is optimized out.
2619 * findvar.c (read_frame_register_value): Remove special handling
2620 of optimized out registers.
2621 (value_from_register): Use mark_value_bytes_optimized_out.
2622 * frame-unwind.c (frame_unwind_got_optimized): Use
2623 mark_value_bytes_optimized_out.
2624 * jv-valprint.c (java_value_print): Adjust.
2625 (java_print_value_fields): Let the common printing code handle
2626 optimized out values.
2627 * mips-tdep.c (mips_print_register): Remove special handling of
2628 optimized out registers.
2629 * opencl-lang.c (lval_func_check_validity): Delete.
2630 (lval_func_check_any_valid): Delete.
2631 (opencl_value_funcs): Remove check_validity and check_any_valid
2632 fields.
2633 * p-valprint.c (pascal_object_print_value_fields): Let the common
2634 printing code handle optimized out values.
2635 * stack.c (read_frame_arg): Remove special handling of optimized
2636 out values. Fetch both VAL and ENTRYVAL before comparing
2637 contents. Adjust to value_available_contents_eq rename.
2638 * valprint.c (valprint_check_validity)
2639 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2640 (val_print_array_elements): Adjust.
2641 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2642 (value_bits_any_optimized_out): New function.
2643 (value_entirely_covered_by_range_vector): New function, factored
2644 out from value_entirely_unavailable.
2645 (value_entirely_unavailable): Reimplement.
2646 (value_entirely_optimized_out): New function.
2647 (insert_into_bit_range_vector): New function, factored out from
2648 mark_value_bits_unavailable.
2649 (mark_value_bits_unavailable): Reimplement.
2650 (struct ranges_and_idx): New struct.
2651 (find_first_range_overlap_and_match): New function, factored out
2652 from value_available_contents_bits_eq.
2653 (value_available_contents_bits_eq): Rename to ...
2654 (value_contents_bits_eq): ... this. Check both unavailable
2655 contents and optimized out contents.
2656 (value_available_contents_eq): Rename to ...
2657 (value_contents_eq): ... this.
2658 (allocate_value_lazy): Remove reference to the old optimized_out
2659 boolean.
2660 (allocate_optimized_out_value): Use
2661 mark_value_bytes_optimized_out.
2662 (require_not_optimized_out): Adjust to check whether the
2663 optimized_out vec is empty.
2664 (ranges_copy_adjusted): New function, factored out from
2665 value_contents_copy_raw.
2666 (value_contents_copy_raw): Also copy the optimized out ranges.
2667 Assert the destination ranges aren't optimized out.
2668 (value_contents_copy): Update comment, remove call to
2669 require_not_optimized_out.
2670 (value_contents_equal): Adjust to check whether the optimized_out
2671 vec is empty.
2672 (set_value_optimized_out, value_optimized_out_const): Delete.
2673 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2674 New functions.
2675 (value_entirely_optimized_out, value_bits_valid): Delete.
2676 (value_copy): Take a VEC copy of the 'optimized_out' field.
2677 (value_primitive_field): Remove special handling of optimized out.
2678 (value_fetch_lazy): Assert that lazy values have no unavailable
2679 regions. Use value_bits_any_optimized_out. Remove some special
2680 handling for optimized out values.
2681 * value.h: Add intro comment about <optimized out> and
2682 <unavailable>.
2683 (struct lval_funcs): Remove check_validity and check_any_valid
2684 fields.
2685 (set_value_optimized_out, value_optimized_out_const): Remove.
2686 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2687 New declarations.
2688 (value_bits_any_optimized_out): New declaration.
2689 (value_bits_valid): Delete declaration.
2690 (value_available_contents_eq): Rename to ...
2691 (value_contents_eq): ... this, and extend comments.
2692
6694c411
JK
26932014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 Fix -fsanitize=address on unreadable inferior strings.
2696 * valprint.c (val_print_string): Fix access before BUFFER.
2697
89a1c21a
SM
26982014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2699
2700 * target.c (target_struct_size): Remove.
2701 (target_struct_allocsize): Remove.
2702 (DEFAULT_ALLOCSIZE): Remove.
2703 (target_ops_p): New typedef.
2704 (DEF_VEC_P (target_ops_p)): New vector type.
2705 (target_structs): Change type to VEC (target_ops_p).
2706 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2707 (find_default_run_target): Rewrite for loop following changes to
2708 target_structs.
2709
cb417230
JB
27102014-08-19 Joel Brobecker <brobecker@adacore.com>
2711
2712 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2713 Adjust code accordingly. Adjust function description comment.
2714
817e0957
YQ
27152014-08-19 Yao Qi <yao@codesourcery.com>
2716
2717 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2718 types.
2719
2974be62
AM
27202014-08-19 Alan Modra <amodra@gmail.com>
2721
2722 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2723 * config.in: Regenerate.
2724 * configure: Regenerate.
2725
34abf635
GB
27262014-08-19 Tom Tromey <tromey@redhat.com>
2727 Gary Benson <gbenson@redhat.com>
2728
2729 * common/common-debug.h: New file.
2730 * common/common-debug.c: Likewise.
2731 * debug.c: Likewise.
2732 * Makefile.in (SFILES): Add common/common-debug.c.
2733 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2734 (COMMON_OBS): Add common-debug.o and debug.o.
2735 (common-debug.o): New rule.
2736 * common/common-defs.h: Include common-debug.h.
2737 * common/agent.c (debug_agent_printf): New function.
2738 (DEBUG_AGENT): Redefine.
2739 * nat/i386-dregs.c (debug_printf): Undefine.
2740
f6e94d78
GB
27412014-08-19 Gary Benson <gbenson@redhat.com>
2742
2743 * common/common-defs.h: Include print-utils.h.
2744 * utils.h: Do not include print-utils.h.
2745
9239eeab
GB
27462014-08-19 Tom Tromey <tromey@redhat.com>
2747 Gary Benson <gbenson@redhat.com>
2748
2749 * common/common-types.h: New file.
2750 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2751 * common/common-defs.h: Include common-types.h.
2752 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2753 (ULONGEST): Remove.
2754
ef87c8bb
GB
27552014-08-19 Tom Tromey <tromey@redhat.com>
2756 Gary Benson <gbenson@redhat.com>
2757
2758 * common/errors.h: New file.
2759 * common/errors.c: Likewise.
2760 * Makefile.in (SFILES): Add common/errors.c.
2761 (HFILES_NO_SRCDIR): Add common/errors.h.
2762 (COMMON_OBS): Add errors.o.
2763 (errors.o): New rule.
2764 * common/common-defs.h: Include errors.h.
2765 * utils.h (perror_with_name, error, verror, warning, vwarning):
2766 Don't declare.
2767 * common/common-utils.h: (malloc_failure, internal_error):
2768 Likewise.
2769
196a707b
GB
27702014-08-19 Gary Benson <gbenson@redhat.com>
2771
2772 * utils.c (internal_vproblem): Always print the message.
2773
ded4fc8f
DE
27742014-08-18 Doug Evans <dje@google.com>
2775
2776 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2777
950c97d8
JB
27782014-08-18 Joel Brobecker <brobecker@adacore.com>
2779
2780 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2781 Return 0 if TYPE is dynamic.
2782 (print_range): Add handling of dynamic ranges.
2783
3cdcd0ce
JB
27842014-08-18 Keven Boell <keven.boell@intel.com>
2785 Joel Brobecker <brobecker@adacore.com>
2786
2787 * gdbtypes.h (struct main_type): Add field "data_location".
2788 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2789 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2790 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2791 a dynamic data location.
2792 (resolve_dynamic_type): Add DW_AT_data_location handling.
2793 (copy_recursive, copy_type): Copy the data_location information
2794 when present.
2795 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2796 * value.c (value_from_contents_and_address): Add
2797 DW_AT_data_location handling.
2798
08412b07
JB
27992014-08-18 Keven Boell <keven.boell@intel.com>
2800 Joel Brobecker <brobecker@adacore.com>
2801
2802 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2803 field "get_object_address".
2804 * dwarf2expr.c (execute_stack_op): Add handling for
2805 DW_OP_push_object_address.
2806 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2807 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2808 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2809 (dwarf_expr_get_obj_addr): New function.
2810 (dwarf_expr_ctx_funcs): Add get_object_address field.
2811 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2812 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2813 (dwarf2_evaluate_property): Add parameter "address". Use it.
2814 (needs_get_obj_addr): New function.
2815 (needs_frame_ctx_funcs): Add get_object_address field.
2816 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2817 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2818 (resolve_dynamic_array): Likewise.
2819
84754697
JB
28202014-08-18 Joel Brobecker <brobecker@adacore.com>
2821
2822 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2823 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2824 fixed value for records and unions for which some GNAT encodings
2825 are present.
2826
da5c522f
JB
28272014-08-18 Joel Brobecker <brobecker@adacore.com>
2828
2829 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2830 rewrite to avoid "else if" and "else" constructs. Should be
2831 a no-op in practice.
2832
0d72a7c3
JB
28332014-08-18 Joel Brobecker <brobecker@adacore.com>
2834
2835 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2836 of lexical block.
2837
e66d4446
SC
28382014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2839
2840 PR c++/17132
2841 * eval.c: Update all calls to find_overload_match.
2842 * valarith.c: Likewise.
2843 (value_user_defined_cpp_op, value_user_defined_op): New
2844 argument NOSIDE. Update all callers.
2845 * valops.c (find_overload_match): New argument NOSIDE.
2846 * value.h (find_overload_match): Update signature.
2847
940df408
SC
28482014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2849
2850 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2851 'items' methods instead of 'iteritems' method on dictionaries.
2852
699ca60a
DE
28532014-08-15 Doug Evans <dje@google.com>
2854
2855 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2856 closer to use.
2857
37780ee5
DE
28582014-08-15 Doug Evans <dje@google.com>
2859
2860 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2861
0ad93d4f
DE
28622014-08-15 Doug Evans <dje@google.com>
2863
2864 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2865
20d8c372
DE
28662014-08-15 Doug Evans <dje@google.com>
2867
2868 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2869 unused.
2870
cb039ba4
EZ
28712014-08-15 Eli Zaretskii <eliz@gnu.org>
2872
2873 * dcache.h: Include target.h, to avoid compile time warnings.
2874
eb7a547a
JB
28752014-08-15 Joel Brobecker <brobecker@adacore.com>
2876
2877 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2878 frame_info" partial declaration.
2879 * gdbarch.h: Regenerate.
2880
783cecc8
YQ
28812014-08-15 Yao Qi <yao@codesourcery.com>
2882
2883 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2884 Add parameter 'decode_for_pst_p'. Callers update.
2885
65c749e7
YQ
28862014-08-13 Yao Qi <yao@codesourcery.com>
2887
2888 PR build/17104
2889 * configure.ac: Use local variable 'pos'.
2890 * configure: Regenerated.
2891
d769e349
DE
28922014-08-11 Doug Evans <dje@google.com>
2893
2894 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2895 message, it is redundant with "Reading symbols from ..." message.
2896
24f1235e
DE
28972014-08-10 Doug Evans <xdje42@gmail.com>
2898
2899 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2900
dcd2e6ef
YQ
29012014-08-09 Yao Qi <yao@codesourcery.com>
2902
2903 PR remote/9053
2904 * remote.c (remote_xfer_partial): Remove dead code.
2905
070bdf0b
AA
29062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2907
2908 * ia64-linux-tdep.c: Include "regset.h".
2909 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2910 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2911 (ia64_linux_supply_fpregset): New function.
2912 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2913 (ia64_linux_regset_from_core_section): New function.
2914 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2915 method.
2916
08f9f542
AA
29172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2918
2919 * m68klinux-tdep.c: Include "regset.h".
2920 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2921 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2922 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2923 (m68k_linux_regset_from_core_section): New function.
2924 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2925 method.
2926
8f1cee41
AA
29272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2928
2929 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2930 function. Move logic to...
2931 (tilegx_linux_regmap): ... this new register map.
2932 (tilegx_linux_regset): Refer to register map, replace supply
2933 method by regcache_supply_regset, and add collect method.
2934 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2935 TILEGX_FIRST_EASY_REGNUM.
2936
c5741217
AA
29372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2938
2939 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2940 that calls regcache_supply_regset and handles the EPC register
2941 separately. Move main logic to...
2942 (score7_linux_gregmap): ... this new register map.
2943 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2944 (score7_linux_gregset): Refer to register map. Add collect method.
2945 (score7_linux_regset_from_core_section): Replace
2946 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2947 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2948 (struct regset): Delete unused forward declaraction.
2949 (struct pt_regs): Delete structure definition.
2950 (elf_gregset_t): Delete typedef.
2951
81580573
AA
29522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953
2954 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2955 (nios2_core_regset): Add collect method.
2956
ba199d7d
AA
29572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2958
2959 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2960 platform-independent and don't write to read-only input buffer.
2961 (m32r_linux_collect_gregset): New function.
2962 (m32r_linux_gregset): Add collect method.
2963
0006a9da
AA
29642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2965
2966 * hppa-linux-tdep.c (greg_map): Rename to...
2967 (hppa_linux_gregmap): ... this. Also convert to
2968 regcache_map_entry format.
2969 (hppa_linux_supply_regset): Delete function.
2970 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2971 (hppa_linux_fpregmap): ... this new register map.
2972 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2973 register map, replace supply method by regcache_supply_regset, and
2974 add collect method regcache_collect_regset.
2975
901e1b23
AA
29762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2977
2978 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2979 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2980 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2981 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2982 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2983 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2984 (frv_linux_supply_gregset): Replace main logic by call to
2985 regcache_supply_regset, but keep clearing gr32-gr63.
2986 (frv_linux_supply_fpregset): Delete function.
2987 (frv_linux_gregset): Refer to appropriate register map and add
2988 regcache_collect_regset as the collect method.
2989 (frv_linux_fpregset): Likewise. Also exchange the supply method
2990 by regcache_supply_regset.
2991
1d6e7555
AA
29922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993
2994 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2995 by call to alpha_supply_int_regs.
2996 (alpha_linux_collect_gregset): New function.
2997 (alpha_linux_supply_fpregset): Replace logic by call to
2998 alpha_supply_fp_regs.
2999 (alpha_linux_collect_fpregset): New function.
3000 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3001
d4d793bf
AA
30022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3003
3004 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3005 by call to regcache_collect_regset.
3006 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3007 instead of aarch64_linux_supply_gregset/_fpregset.
3008 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3009 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3010 header file instead.
3011 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3012 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3013 functions. Move logic to ...
3014 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3015 register maps.
3016 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3017 refer to new register maps, replace *_regset_from_core by
3018 regcache_supply_regset, and also use regcache_collect_regset.
3019 * aarch64-linux-tdep.h: Include "regset.h".
3020 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3021 Delete prototypes.
3022 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3023 macros, moved from C source file.
3024 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3025 variable declarations.
3026
99b7da5d
AA
30272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3028
3029 * s390-linux-nat.c: Include "regset.h".
3030 (regmap_gregset): Delete macro.
3031 (s390_64_regmap_gregset): New register map for
3032 regcache_supply/_collect_regset.
3033 (s390_64_gregset): New regset.
3034 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3035 (regmap_fpregset): Delete macro.
3036 (s390_native_supply, s390_native_collect): Delete functions.
3037 (supply_gregset, fill_gregset): Replace s390-specific regmap
3038 handling by a call to regcache_supply/_collect_regset.
3039 (supply_fpregset, fill_fpregset): Call regcache_supply/
3040 _collect_regset instead of s390_native_supply/_collect.
3041 (fetch_regset, store_regset): Likewise. Also change the last
3042 parameter to a regset instead of a regmap.
3043 (s390_linux_fetch_inferior_registers)
3044 (390_linux_store_inferior_registers): Adjust last parameter in
3045 calls to fetch_regset and store_regset.
3046 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3047 (s390_gregmap): ... this. Also make static const and convert to
3048 regcache_map_entry format.
3049 (s390x_regmap_gregset): Delete.
3050 (s390_regmap_fpregset): Rename to...
3051 (s390_fpregmap): ... this. Make static const and convert to
3052 regcache_map_entry format.
3053 (s390_regmap_upper, s390_regmap_last_break)
3054 (s390x_regmap_last_break, s390_regmap_system_call)
3055 (s390_regmap_tdb): Likewise.
3056 (s390_supply_regset, s390_collect_regset): Remove functions.
3057 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3058 s390_supply_regset.
3059 (s390_gregset, s390_fpregset, s390_upper_regset)
3060 (s390_last_break_regset, s390x_last_break_regset)
3061 (s390_system_call_regset, s390_tdb_regset): Make global and
3062 replace s390_supply/_collect_regset by regcache_supply/
3063 _collect_regset.
3064 (s390x_gregset): Delete.
3065 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3066 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3067 (s390_regmap_fpregset, s390_regmap_last_break)
3068 (s390x_regmap_last_break, s390_regmap_system_call)
3069 (s390_regmap_tdb): Delete global variable declarations.
3070 (s390_gregset, s390_fpregset, s390_last_break_regset)
3071 (s390x_last_break_regset, s390_system_call_regset)
3072 (s390_tdb_regset): New global variable declarations.
3073
0b309272
AA
30742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3075
3076 * regcache.c: Include "regset.h".
3077 (regcache_transfer_regset): New local function.
3078 (regcache_supply_regset, regcache_collect_regset): New functions.
3079 * regcache.h (struct regcache_map_entry): New structure.
3080 (REGCACHE_MAP_SKIP): New enum value.
3081 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3082
7fefa8d7
AA
30832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3084
3085 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3086 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3087 (ppc_linux_collect_gregset ): Likewise.
3088 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3089 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3090 (ppc_collect_vrregset): Likewise.
3091 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3092 Likewise.
3093
96c4f946
YQ
30942014-08-07 Yao Qi <yao@codesourcery.com>
3095
3096 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3097 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3098 * remote.c (remote_read_bytes): Likewise.
3099
fffbe6a8
YQ
31002014-08-07 Yao Qi <yao@codesourcery.com>
3101
3102 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3103
5ee8a82c
YQ
31042014-08-07 Yao Qi <yao@codesourcery.com>
3105
3106 PR remote/17230
3107 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3108 TARGET_XFER_OK instead of 0.
3109
bb974a24
GB
31102014-08-07 Gary Benson <gbenson@redhat.com>
3111
3112 * common/common-defs.h: Include errno.h.
3113 * defs.h: Do not include errno.h.
3114 * ada-typeprint.c: Likewise.
3115 * c-typeprint.c: Likewise.
3116 * core-regset.c: Likewise.
3117 * corefile.c: Likewise.
3118 * corelow.c: Likewise.
3119 * event-loop.c: Likewise.
3120 * f-typeprint.c: Likewise.
3121 * gnu-nat.c: Likewise.
3122 * go32-nat.c: Likewise.
3123 * i386gnu-nat.c: Likewise.
3124 * m2-typeprint.c: Likewise.
3125 * nat/linux-btrace.c: Likewise.
3126 * p-typeprint.c: Likewise.
3127 * procfs.c: Likewise.
3128 * remote-sim.c: Likewise.
3129 * rs6000-nat.c: Likewise.
3130 * target.c: Likewise.
3131 * typeprint.c: Likewise.
3132 * ui-file.c: Likewise.
3133 * valops.c: Likewise.
3134 * valprint.c: Likewise.
3135
6d3d12eb
GB
31362014-08-07 Gary Benson <gbenson@redhat.com>
3137
3138 * common/common-defs.h: Include string.h.
3139 * aarch64-tdep.c: Do not include string.h.
3140 * ada-exp.y: Likewise.
3141 * ada-lang.c: Likewise.
3142 * ada-lex.l: Likewise.
3143 * ada-typeprint.c: Likewise.
3144 * ada-valprint.c: Likewise.
3145 * aix-thread.c: Likewise.
3146 * alpha-linux-tdep.c: Likewise.
3147 * alpha-mdebug-tdep.c: Likewise.
3148 * alpha-nat.c: Likewise.
3149 * alpha-osf1-tdep.c: Likewise.
3150 * alpha-tdep.c: Likewise.
3151 * alphanbsd-tdep.c: Likewise.
3152 * amd64-dicos-tdep.c: Likewise.
3153 * amd64-linux-tdep.c: Likewise.
3154 * amd64-nat.c: Likewise.
3155 * amd64-sol2-tdep.c: Likewise.
3156 * amd64fbsd-tdep.c: Likewise.
3157 * amd64obsd-tdep.c: Likewise.
3158 * arch-utils.c: Likewise.
3159 * arm-linux-nat.c: Likewise.
3160 * arm-linux-tdep.c: Likewise.
3161 * arm-tdep.c: Likewise.
3162 * arm-wince-tdep.c: Likewise.
3163 * armbsd-tdep.c: Likewise.
3164 * armnbsd-nat.c: Likewise.
3165 * armnbsd-tdep.c: Likewise.
3166 * armobsd-tdep.c: Likewise.
3167 * avr-tdep.c: Likewise.
3168 * ax-gdb.c: Likewise.
3169 * ax-general.c: Likewise.
3170 * bcache.c: Likewise.
3171 * bfin-tdep.c: Likewise.
3172 * breakpoint.c: Likewise.
3173 * build-id.c: Likewise.
3174 * buildsym.c: Likewise.
3175 * c-exp.y: Likewise.
3176 * c-lang.c: Likewise.
3177 * c-typeprint.c: Likewise.
3178 * c-valprint.c: Likewise.
3179 * charset.c: Likewise.
3180 * cli-out.c: Likewise.
3181 * cli/cli-cmds.c: Likewise.
3182 * cli/cli-decode.c: Likewise.
3183 * cli/cli-dump.c: Likewise.
3184 * cli/cli-interp.c: Likewise.
3185 * cli/cli-logging.c: Likewise.
3186 * cli/cli-script.c: Likewise.
3187 * cli/cli-setshow.c: Likewise.
3188 * cli/cli-utils.c: Likewise.
3189 * coffread.c: Likewise.
3190 * common/agent.c: Likewise.
3191 * common/buffer.c: Likewise.
3192 * common/buffer.h: Likewise.
3193 * common/common-utils.c: Likewise.
3194 * common/filestuff.c: Likewise.
3195 * common/filestuff.c: Likewise.
3196 * common/format.c: Likewise.
3197 * common/print-utils.c: Likewise.
3198 * common/rsp-low.c: Likewise.
3199 * common/signals.c: Likewise.
3200 * common/vec.h: Likewise.
3201 * common/xml-utils.c: Likewise.
3202 * core-regset.c: Likewise.
3203 * corefile.c: Likewise.
3204 * corelow.c: Likewise.
3205 * cp-abi.c: Likewise.
3206 * cp-name-parser.y: Likewise.
3207 * cp-support.c: Likewise.
3208 * cp-valprint.c: Likewise.
3209 * cris-tdep.c: Likewise.
3210 * d-exp.y: Likewise.
3211 * darwin-nat.c: Likewise.
3212 * dbxread.c: Likewise.
3213 * dcache.c: Likewise.
3214 * demangle.c: Likewise.
3215 * dicos-tdep.c: Likewise.
3216 * disasm.c: Likewise.
3217 * doublest.c: Likewise.
3218 * dsrec.c: Likewise.
3219 * dummy-frame.c: Likewise.
3220 * dwarf2-frame.c: Likewise.
3221 * dwarf2loc.c: Likewise.
3222 * dwarf2read.c: Likewise.
3223 * elfread.c: Likewise.
3224 * environ.c: Likewise.
3225 * eval.c: Likewise.
3226 * event-loop.c: Likewise.
3227 * exceptions.c: Likewise.
3228 * exec.c: Likewise.
3229 * expprint.c: Likewise.
3230 * f-exp.y: Likewise.
3231 * f-lang.c: Likewise.
3232 * f-typeprint.c: Likewise.
3233 * f-valprint.c: Likewise.
3234 * fbsd-nat.c: Likewise.
3235 * findcmd.c: Likewise.
3236 * findvar.c: Likewise.
3237 * fork-child.c: Likewise.
3238 * frame.c: Likewise.
3239 * frv-linux-tdep.c: Likewise.
3240 * frv-tdep.c: Likewise.
3241 * gdb.c: Likewise.
3242 * gdb_bfd.c: Likewise.
3243 * gdbarch.c: Likewise.
3244 * gdbarch.sh: Likewise.
3245 * gdbtypes.c: Likewise.
3246 * gnu-nat.c: Likewise.
3247 * gnu-v2-abi.c: Likewise.
3248 * gnu-v3-abi.c: Likewise.
3249 * go-exp.y: Likewise.
3250 * go-lang.c: Likewise.
3251 * go32-nat.c: Likewise.
3252 * guile/guile.c: Likewise.
3253 * guile/scm-auto-load.c: Likewise.
3254 * hppa-hpux-tdep.c: Likewise.
3255 * hppa-linux-nat.c: Likewise.
3256 * hppanbsd-tdep.c: Likewise.
3257 * hppaobsd-tdep.c: Likewise.
3258 * i386-cygwin-tdep.c: Likewise.
3259 * i386-dicos-tdep.c: Likewise.
3260 * i386-linux-tdep.c: Likewise.
3261 * i386-nto-tdep.c: Likewise.
3262 * i386-sol2-tdep.c: Likewise.
3263 * i386-tdep.c: Likewise.
3264 * i386bsd-tdep.c: Likewise.
3265 * i386gnu-nat.c: Likewise.
3266 * i386nbsd-tdep.c: Likewise.
3267 * i386obsd-tdep.c: Likewise.
3268 * i387-tdep.c: Likewise.
3269 * ia64-libunwind-tdep.c: Likewise.
3270 * ia64-linux-nat.c: Likewise.
3271 * inf-child.c: Likewise.
3272 * inf-ptrace.c: Likewise.
3273 * inf-ttrace.c: Likewise.
3274 * infcall.c: Likewise.
3275 * infcmd.c: Likewise.
3276 * inflow.c: Likewise.
3277 * infrun.c: Likewise.
3278 * interps.c: Likewise.
3279 * iq2000-tdep.c: Likewise.
3280 * irix5-nat.c: Likewise.
3281 * jv-exp.y: Likewise.
3282 * jv-lang.c: Likewise.
3283 * jv-typeprint.c: Likewise.
3284 * jv-valprint.c: Likewise.
3285 * language.c: Likewise.
3286 * linux-fork.c: Likewise.
3287 * linux-nat.c: Likewise.
3288 * lm32-tdep.c: Likewise.
3289 * m2-exp.y: Likewise.
3290 * m2-typeprint.c: Likewise.
3291 * m32c-tdep.c: Likewise.
3292 * m32r-linux-nat.c: Likewise.
3293 * m32r-linux-tdep.c: Likewise.
3294 * m32r-rom.c: Likewise.
3295 * m32r-tdep.c: Likewise.
3296 * m68hc11-tdep.c: Likewise.
3297 * m68k-tdep.c: Likewise.
3298 * m68kbsd-tdep.c: Likewise.
3299 * m68klinux-nat.c: Likewise.
3300 * m68klinux-tdep.c: Likewise.
3301 * m88k-tdep.c: Likewise.
3302 * machoread.c: Likewise.
3303 * macrocmd.c: Likewise.
3304 * main.c: Likewise.
3305 * mdebugread.c: Likewise.
3306 * mem-break.c: Likewise.
3307 * memattr.c: Likewise.
3308 * memory-map.c: Likewise.
3309 * mep-tdep.c: Likewise.
3310 * mi/mi-cmd-break.c: Likewise.
3311 * mi/mi-cmd-disas.c: Likewise.
3312 * mi/mi-cmd-env.c: Likewise.
3313 * mi/mi-cmd-stack.c: Likewise.
3314 * mi/mi-cmd-var.c: Likewise.
3315 * mi/mi-cmds.c: Likewise.
3316 * mi/mi-console.c: Likewise.
3317 * mi/mi-getopt.c: Likewise.
3318 * mi/mi-interp.c: Likewise.
3319 * mi/mi-main.c: Likewise.
3320 * mi/mi-parse.c: Likewise.
3321 * microblaze-rom.c: Likewise.
3322 * microblaze-tdep.c: Likewise.
3323 * mingw-hdep.c: Likewise.
3324 * minidebug.c: Likewise.
3325 * minsyms.c: Likewise.
3326 * mips-irix-tdep.c: Likewise.
3327 * mips-linux-tdep.c: Likewise.
3328 * mips-tdep.c: Likewise.
3329 * mips64obsd-tdep.c: Likewise.
3330 * mipsnbsd-tdep.c: Likewise.
3331 * mipsread.c: Likewise.
3332 * mn10300-linux-tdep.c: Likewise.
3333 * mn10300-tdep.c: Likewise.
3334 * monitor.c: Likewise.
3335 * moxie-tdep.c: Likewise.
3336 * mt-tdep.c: Likewise.
3337 * nat/linux-btrace.c: Likewise.
3338 * nat/linux-osdata.c: Likewise.
3339 * nat/linux-procfs.c: Likewise.
3340 * nat/linux-ptrace.c: Likewise.
3341 * nat/linux-waitpid.c: Likewise.
3342 * nbsd-tdep.c: Likewise.
3343 * nios2-linux-tdep.c: Likewise.
3344 * nto-procfs.c: Likewise.
3345 * nto-tdep.c: Likewise.
3346 * objc-lang.c: Likewise.
3347 * objfiles.c: Likewise.
3348 * opencl-lang.c: Likewise.
3349 * osabi.c: Likewise.
3350 * osdata.c: Likewise.
3351 * p-exp.y: Likewise.
3352 * p-lang.c: Likewise.
3353 * p-typeprint.c: Likewise.
3354 * parse.c: Likewise.
3355 * posix-hdep.c: Likewise.
3356 * ppc-linux-nat.c: Likewise.
3357 * ppc-sysv-tdep.c: Likewise.
3358 * ppcfbsd-tdep.c: Likewise.
3359 * ppcnbsd-tdep.c: Likewise.
3360 * ppcobsd-tdep.c: Likewise.
3361 * printcmd.c: Likewise.
3362 * procfs.c: Likewise.
3363 * prologue-value.c: Likewise.
3364 * python/py-auto-load.c: Likewise.
3365 * python/py-gdb-readline.c: Likewise.
3366 * ravenscar-thread.c: Likewise.
3367 * regcache.c: Likewise.
3368 * registry.c: Likewise.
3369 * remote-fileio.c: Likewise.
3370 * remote-m32r-sdi.c: Likewise.
3371 * remote-mips.c: Likewise.
3372 * remote-notif.c: Likewise.
3373 * remote-sim.c: Likewise.
3374 * remote.c: Likewise.
3375 * reverse.c: Likewise.
3376 * rs6000-aix-tdep.c: Likewise.
3377 * ser-base.c: Likewise.
3378 * ser-go32.c: Likewise.
3379 * ser-mingw.c: Likewise.
3380 * ser-pipe.c: Likewise.
3381 * ser-tcp.c: Likewise.
3382 * ser-unix.c: Likewise.
3383 * serial.c: Likewise.
3384 * sh-tdep.c: Likewise.
3385 * sh64-tdep.c: Likewise.
3386 * shnbsd-tdep.c: Likewise.
3387 * skip.c: Likewise.
3388 * sol-thread.c: Likewise.
3389 * solib-dsbt.c: Likewise.
3390 * solib-frv.c: Likewise.
3391 * solib-osf.c: Likewise.
3392 * solib-som.c: Likewise.
3393 * solib-spu.c: Likewise.
3394 * solib-target.c: Likewise.
3395 * solib.c: Likewise.
3396 * somread.c: Likewise.
3397 * source.c: Likewise.
3398 * sparc-nat.c: Likewise.
3399 * sparc-sol2-tdep.c: Likewise.
3400 * sparc-tdep.c: Likewise.
3401 * sparc64-tdep.c: Likewise.
3402 * sparc64fbsd-tdep.c: Likewise.
3403 * sparc64nbsd-tdep.c: Likewise.
3404 * sparcnbsd-tdep.c: Likewise.
3405 * spu-linux-nat.c: Likewise.
3406 * spu-multiarch.c: Likewise.
3407 * spu-tdep.c: Likewise.
3408 * stabsread.c: Likewise.
3409 * stack.c: Likewise.
3410 * std-regs.c: Likewise.
3411 * symfile.c: Likewise.
3412 * symmisc.c: Likewise.
3413 * symtab.c: Likewise.
3414 * target.c: Likewise.
3415 * thread.c: Likewise.
3416 * tilegx-linux-nat.c: Likewise.
3417 * tilegx-tdep.c: Likewise.
3418 * top.c: Likewise.
3419 * tracepoint.c: Likewise.
3420 * tui/tui-command.c: Likewise.
3421 * tui/tui-data.c: Likewise.
3422 * tui/tui-disasm.c: Likewise.
3423 * tui/tui-file.c: Likewise.
3424 * tui/tui-layout.c: Likewise.
3425 * tui/tui-out.c: Likewise.
3426 * tui/tui-regs.c: Likewise.
3427 * tui/tui-source.c: Likewise.
3428 * tui/tui-stack.c: Likewise.
3429 * tui/tui-win.c: Likewise.
3430 * tui/tui-windata.c: Likewise.
3431 * tui/tui-winsource.c: Likewise.
3432 * typeprint.c: Likewise.
3433 * ui-file.c: Likewise.
3434 * ui-out.c: Likewise.
3435 * user-regs.c: Likewise.
3436 * utils.c: Likewise.
3437 * v850-tdep.c: Likewise.
3438 * valarith.c: Likewise.
3439 * valops.c: Likewise.
3440 * valprint.c: Likewise.
3441 * value.c: Likewise.
3442 * varobj.c: Likewise.
3443 * vax-tdep.c: Likewise.
3444 * vaxnbsd-tdep.c: Likewise.
3445 * vaxobsd-tdep.c: Likewise.
3446 * windows-nat.c: Likewise.
3447 * xcoffread.c: Likewise.
3448 * xml-support.c: Likewise.
3449 * xstormy16-tdep.c: Likewise.
3450 * xtensa-linux-nat.c: Likewise.
3451
dccbb609
GB
34522014-08-07 Gary Benson <gbenson@redhat.com>
3453
3454 * common/common-defs.h: Include gdb_assert.h.
3455 * aarch64-tdep.c: Do not include gdb_assert.h.
3456 * addrmap.c: Likewise.
3457 * aix-thread.c: Likewise.
3458 * alpha-linux-tdep.c: Likewise.
3459 * alpha-mdebug-tdep.c: Likewise.
3460 * alphanbsd-tdep.c: Likewise.
3461 * amd64-nat.c: Likewise.
3462 * amd64-tdep.c: Likewise.
3463 * amd64bsd-nat.c: Likewise.
3464 * amd64fbsd-nat.c: Likewise.
3465 * amd64fbsd-tdep.c: Likewise.
3466 * amd64nbsd-nat.c: Likewise.
3467 * amd64nbsd-tdep.c: Likewise.
3468 * amd64obsd-nat.c: Likewise.
3469 * amd64obsd-tdep.c: Likewise.
3470 * arch-utils.c: Likewise.
3471 * arm-tdep.c: Likewise.
3472 * armbsd-tdep.c: Likewise.
3473 * auxv.c: Likewise.
3474 * bcache.c: Likewise.
3475 * bfin-tdep.c: Likewise.
3476 * blockframe.c: Likewise.
3477 * breakpoint.c: Likewise.
3478 * bsd-kvm.c: Likewise.
3479 * bsd-uthread.c: Likewise.
3480 * buildsym.c: Likewise.
3481 * c-exp.y: Likewise.
3482 * c-lang.c: Likewise.
3483 * charset.c: Likewise.
3484 * cleanups.c: Likewise.
3485 * cli-out.c: Likewise.
3486 * cli/cli-decode.c: Likewise.
3487 * cli/cli-dump.c: Likewise.
3488 * cli/cli-logging.c: Likewise.
3489 * cli/cli-script.c: Likewise.
3490 * cli/cli-utils.c: Likewise.
3491 * coffread.c: Likewise.
3492 * common/common-utils.c: Likewise.
3493 * common/queue.h: Likewise.
3494 * common/signals.c: Likewise.
3495 * common/vec.h: Likewise.
3496 * complaints.c: Likewise.
3497 * completer.c: Likewise.
3498 * corelow.c: Likewise.
3499 * cp-abi.c: Likewise.
3500 * cp-name-parser.y: Likewise.
3501 * cp-namespace.c: Likewise.
3502 * cp-support.c: Likewise.
3503 * cris-tdep.c: Likewise.
3504 * dbxread.c: Likewise.
3505 * dictionary.c: Likewise.
3506 * doublest.c: Likewise.
3507 * dsrec.c: Likewise.
3508 * dummy-frame.c: Likewise.
3509 * dwarf2-frame-tailcall.c: Likewise.
3510 * dwarf2-frame.c: Likewise.
3511 * dwarf2expr.c: Likewise.
3512 * dwarf2loc.c: Likewise.
3513 * dwarf2read.c: Likewise.
3514 * eval.c: Likewise.
3515 * event-loop.c: Likewise.
3516 * exceptions.c: Likewise.
3517 * expprint.c: Likewise.
3518 * f-valprint.c: Likewise.
3519 * fbsd-nat.c: Likewise.
3520 * findvar.c: Likewise.
3521 * frame-unwind.c: Likewise.
3522 * frame.c: Likewise.
3523 * frv-tdep.c: Likewise.
3524 * gcore.c: Likewise.
3525 * gdb-dlfcn.c: Likewise.
3526 * gdb_bfd.c: Likewise.
3527 * gdbarch.c: Likewise.
3528 * gdbarch.sh: Likewise.
3529 * gdbtypes.c: Likewise.
3530 * gnu-nat.c: Likewise.
3531 * gnu-v3-abi.c: Likewise.
3532 * go-lang.c: Likewise.
3533 * guile/scm-exception.c: Likewise.
3534 * guile/scm-gsmob.c: Likewise.
3535 * guile/scm-lazy-string.c: Likewise.
3536 * guile/scm-math.c: Likewise.
3537 * guile/scm-pretty-print.c: Likewise.
3538 * guile/scm-safe-call.c: Likewise.
3539 * guile/scm-utils.c: Likewise.
3540 * guile/scm-value.c: Likewise.
3541 * h8300-tdep.c: Likewise.
3542 * hppa-hpux-nat.c: Likewise.
3543 * hppa-tdep.c: Likewise.
3544 * hppanbsd-tdep.c: Likewise.
3545 * hppaobsd-tdep.c: Likewise.
3546 * i386-darwin-nat.c: Likewise.
3547 * i386-darwin-tdep.c: Likewise.
3548 * i386-nto-tdep.c: Likewise.
3549 * i386-tdep.c: Likewise.
3550 * i386bsd-nat.c: Likewise.
3551 * i386fbsd-tdep.c: Likewise.
3552 * i386gnu-nat.c: Likewise.
3553 * i386nbsd-tdep.c: Likewise.
3554 * i386obsd-tdep.c: Likewise.
3555 * i387-tdep.c: Likewise.
3556 * ia64-libunwind-tdep.c: Likewise.
3557 * ia64-tdep.c: Likewise.
3558 * inf-ptrace.c: Likewise.
3559 * inf-ttrace.c: Likewise.
3560 * infcall.c: Likewise.
3561 * infcmd.c: Likewise.
3562 * infrun.c: Likewise.
3563 * inline-frame.c: Likewise.
3564 * interps.c: Likewise.
3565 * jv-lang.c: Likewise.
3566 * jv-typeprint.c: Likewise.
3567 * linux-fork.c: Likewise.
3568 * linux-nat.c: Likewise.
3569 * linux-thread-db.c: Likewise.
3570 * m32c-tdep.c: Likewise.
3571 * m32r-linux-nat.c: Likewise.
3572 * m32r-tdep.c: Likewise.
3573 * m68k-tdep.c: Likewise.
3574 * m68kbsd-nat.c: Likewise.
3575 * m68kbsd-tdep.c: Likewise.
3576 * m88k-tdep.c: Likewise.
3577 * machoread.c: Likewise.
3578 * macroexp.c: Likewise.
3579 * macrotab.c: Likewise.
3580 * maint.c: Likewise.
3581 * mdebugread.c: Likewise.
3582 * memory-map.c: Likewise.
3583 * mep-tdep.c: Likewise.
3584 * mi/mi-common.c: Likewise.
3585 * microblaze-tdep.c: Likewise.
3586 * mingw-hdep.c: Likewise.
3587 * mips-linux-nat.c: Likewise.
3588 * mips-linux-tdep.c: Likewise.
3589 * mips-tdep.c: Likewise.
3590 * mips64obsd-tdep.c: Likewise.
3591 * mipsnbsd-tdep.c: Likewise.
3592 * mn10300-linux-tdep.c: Likewise.
3593 * mn10300-tdep.c: Likewise.
3594 * moxie-tdep.c: Likewise.
3595 * mt-tdep.c: Likewise.
3596 * nat/linux-btrace.c: Likewise.
3597 * nat/linux-osdata.c: Likewise.
3598 * nat/linux-ptrace.c: Likewise.
3599 * nat/mips-linux-watch.c: Likewise.
3600 * nios2-linux-tdep.c: Likewise.
3601 * nios2-tdep.c: Likewise.
3602 * objc-lang.c: Likewise.
3603 * objfiles.c: Likewise.
3604 * obsd-nat.c: Likewise.
3605 * opencl-lang.c: Likewise.
3606 * osabi.c: Likewise.
3607 * parse.c: Likewise.
3608 * ppc-linux-nat.c: Likewise.
3609 * ppc-sysv-tdep.c: Likewise.
3610 * ppcfbsd-nat.c: Likewise.
3611 * ppcfbsd-tdep.c: Likewise.
3612 * ppcnbsd-nat.c: Likewise.
3613 * ppcnbsd-tdep.c: Likewise.
3614 * ppcobsd-nat.c: Likewise.
3615 * ppcobsd-tdep.c: Likewise.
3616 * printcmd.c: Likewise.
3617 * procfs.c: Likewise.
3618 * prologue-value.c: Likewise.
3619 * psymtab.c: Likewise.
3620 * python/py-lazy-string.c: Likewise.
3621 * python/py-value.c: Likewise.
3622 * regcache.c: Likewise.
3623 * reggroups.c: Likewise.
3624 * registry.c: Likewise.
3625 * remote-sim.c: Likewise.
3626 * remote.c: Likewise.
3627 * rs6000-aix-tdep.c: Likewise.
3628 * rs6000-tdep.c: Likewise.
3629 * s390-linux-tdep.c: Likewise.
3630 * score-tdep.c: Likewise.
3631 * ser-base.c: Likewise.
3632 * ser-mingw.c: Likewise.
3633 * sh-tdep.c: Likewise.
3634 * sh64-tdep.c: Likewise.
3635 * solib-darwin.c: Likewise.
3636 * solib-spu.c: Likewise.
3637 * solib-svr4.c: Likewise.
3638 * source.c: Likewise.
3639 * sparc-nat.c: Likewise.
3640 * sparc-sol2-tdep.c: Likewise.
3641 * sparc-tdep.c: Likewise.
3642 * sparc64-sol2-tdep.c: Likewise.
3643 * sparc64-tdep.c: Likewise.
3644 * sparc64fbsd-tdep.c: Likewise.
3645 * sparc64nbsd-tdep.c: Likewise.
3646 * sparc64obsd-tdep.c: Likewise.
3647 * sparcnbsd-tdep.c: Likewise.
3648 * sparcobsd-tdep.c: Likewise.
3649 * spu-multiarch.c: Likewise.
3650 * spu-tdep.c: Likewise.
3651 * stabsread.c: Likewise.
3652 * stack.c: Likewise.
3653 * symfile.c: Likewise.
3654 * symtab.c: Likewise.
3655 * target-descriptions.c: Likewise.
3656 * target-memory.c: Likewise.
3657 * target.c: Likewise.
3658 * tic6x-linux-tdep.c: Likewise.
3659 * tic6x-tdep.c: Likewise.
3660 * tilegx-linux-nat.c: Likewise.
3661 * tilegx-tdep.c: Likewise.
3662 * top.c: Likewise.
3663 * tramp-frame.c: Likewise.
3664 * tui/tui-out.c: Likewise.
3665 * tui/tui-winsource.c: Likewise.
3666 * ui-out.c: Likewise.
3667 * user-regs.c: Likewise.
3668 * utils.c: Likewise.
3669 * v850-tdep.c: Likewise.
3670 * valops.c: Likewise.
3671 * value.c: Likewise.
3672 * varobj.c: Likewise.
3673 * vax-nat.c: Likewise.
3674 * xml-syscall.c: Likewise.
3675 * xml-tdesc.c: Likewise.
3676 * xstormy16-tdep.c: Likewise.
3677 * xtensa-linux-nat.c: Likewise.
3678 * xtensa-tdep.c: Likewise.
3679
e76df0d0
GB
36802014-08-07 Gary Benson <gbenson@redhat.com>
3681
3682 * common/common-defs.h: Include common-utils.h.
3683 * defs.h: Do not include common-utils.h.
3684 * common/gdb_assert.h: Likewise.
3685 * darwin-nat.h: Likewise.
3686 * nat/linux-btrace.c: Likewise.
3687 * target/waitstatus.h: Likewise.
3688
4cb9c816
GB
36892014-08-07 Gary Benson <gbenson@redhat.com>
3690
3691 * common/common-defs.h: Include ptid.h.
3692 * defs.h: Do not include ptid.h.
3693 * inferior.h: Likewise.
3694 * infrun.h: Likewise.
3695 * nat/linux-btrace.h: Likewise.
3696 * nat/linux-osdata.h: Likewise.
3697 * target/waitstatus.h: Likewise.
3698
3995eeee
GB
36992014-08-07 Gary Benson <gbenson@redhat.com>
3700
3701 * common/common-defs.h: Include gdb_locale.h.
3702 * defs.h: Do not include gdb_locale.h.
3703
cb9f1a9b
GB
37042014-08-07 Gary Benson <gbenson@redhat.com>
3705
3706 * common/common-defs.h: Include gdb/signals.h.
3707 * defs.h: Do not include gdb/signals.h.
3708
a5fceff8
GB
37092014-08-07 Gary Benson <gbenson@redhat.com>
3710
3711 * common/common-defs.h: Include pathmax.h.
3712 * defs.h: Do not include pathmax.h.
3713
b9391142
GB
37142014-08-07 Gary Benson <gbenson@redhat.com>
3715
3716 * common/common-defs.h: Include libiberty.h.
3717 * defs.h: Do not include libiberty.h.
3718 * common/queue.h: Likewise.
3719 * cp-name-parser.y: Likewise.
3720 * mi/mi-cmd-catch.c: Likewise.
3721 * python/python.c: Likewise.
3722
0e443c87
GB
37232014-08-07 Gary Benson <gbenson@redhat.com>
3724
3725 * common/common-defs.h: Include ansidecl.h.
3726 * defs.h: Do not include ansidecl.h.
3727 * common/buffer.h: Likewise.
3728 * common/common-utils.h: Likewise.
3729
8ebb3f56
GB
37302014-08-07 Gary Benson <gbenson@redhat.com>
3731
3732 * common/common-defs.h: Include stddef.h.
3733 * defs.h: Do not include stddef.h.
3734 * common/common-utils.h: Likewise.
3735 * amd64fbsd-nat.c: Likewise.
3736 * bcache.c: Likewise.
3737 * charset.c: Likewise.
3738 * common/buffer.h: Likewise.
3739 * common/vec.h: Likewise.
3740 * i386bsd-nat.c: Likewise.
3741 * nat/linux-btrace.h: Likewise.
3742 * ppcfbsd-nat.c: Likewise.
3743 * ppcnbsd-tdep.h: Likewise.
3744 * ppcobsd-nat.c: Likewise.
3745 * ppcobsd-tdep.h: Likewise.
3746 * python/py-gdb-readline.c: Likewise.
3747
8980bdf6
GB
37482014-08-07 Gary Benson <gbenson@redhat.com>
3749
3750 * common/common-defs.h: Include stdarg.h.
3751 * defs.h: Do not include stdarg.h.
3752 * ada-lang.c: Likewise.
3753 * common/common-utils.h: Likewise.
3754 * guile/scm-string.c: Likewise.
3755 * guile/scm-utils.c: Likewise.
3756 * m32c-tdep.c: Likewise.
3757
d7096f71
GB
37582014-08-07 Gary Benson <gbenson@redhat.com>
3759
3760 * common/common-defs.h: Include stdlib.h.
3761 * defs.h: Do not include stdlib.h.
3762 * addrmap.c: Likewise.
3763 * bcache.c: Likewise.
3764 * common/buffer.c: Likewise.
3765 * common/common-utils.c: Likewise.
3766 * cp-name-parser.y: Likewise.
3767 * go32-nat.c: Likewise.
3768 * mn10300-linux-tdep.c: Likewise.
3769 * nat/linux-osdata.c: Likewise.
3770 * tui/tui.c: Likewise.
3771 * windows-nat.c: Likewise.
3772
d02f550d
GB
37732014-08-07 Gary Benson <gbenson@redhat.com>
3774
3775 * common/common-defs.h: Include stdio.h.
3776 * defs.h: Do not include stdio.h.
3777 * ada-lang.c: Likewise.
3778 * common/buffer.c: Likewise.
3779 * common/common-utils.c: Likewise.
3780 * cp-name-parser.y: Likewise.
3781 * gnu-nat.c: Likewise.
3782 * go32-nat.c: Likewise.
3783 * i386gnu-nat.c: Likewise.
3784 * proc-api.c: Likewise.
3785 * proc-events.c: Likewise.
3786 * proc-flags.c: Likewise.
3787 * proc-why.c: Likewise.
3788 * python/python-internal.h: Likewise.
3789 * target-memory.c: Likewise.
3790 * tui/tui-io.c: Likewise.
3791 * tui/tui.c: Likewise.
3792
b6d7a4bf
SM
37932014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3794
3795 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3796 (scan_dyntag_auxv): Same.
3797
af19829b
YQ
37982014-08-06 Yao Qi <yao@codesourcery.com>
3799
3800 * amd64-linux-nat.c: Remove duplicated include
3801 "x86-linux-nat.h".
3802 * i386-linux-nat.c: Likewise.
3803
8e07a239
YQ
38042014-08-06 Yao Qi <yao@codesourcery.com>
3805
3806 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3807 operand" with "Special opcode" in comments.
3808
7bfe8241
GB
38092014-08-05 Gary Benson <gbenson@redhat.com>
3810
3811 * interps.c (initialize_interps): Remove prototype.
3812 (interpreter_initialized): Remove static global.
3813 (interp_add): Do not call initialize_interps.
3814 (initialize_interps): Remove function.
3815
d6c95504
GB
38162014-08-05 Gary Benson <gbenson@redhat.com>
3817
3818 * utils.c (vwarning): Remove spurious va_end.
3819
241fd515
AM
38202014-08-05 Alan Modra <amodra@gmail.com>
3821
3822 * charset.c (convert_between_encodings): Cast result of obstack_base.
3823 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3824 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3825 (read_unwind_info): Use size_t for some locals.
3826 * jit.c (finalize_symtab): Likewise.
3827 * utils.c (hashtab_obstack_allocate): Likewise.
3828 * symmisc.c (print_objfile_statistics): Update format strings.
3829
dc304a94
JK
38302014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3833 (Changes in GDB 7.8): ... here.
3834
3cecbbbe
TT
38352014-08-04 Tom Tromey <tromey@redhat.com>
3836
3837 * target.c (set_targetdebug): New function.
3838 (initialize_targets): Pass set_targetdebug when creating "set
3839 debug target".
3840
6908c509
JB
38412014-08-01 Joel Brobecker <brobecker@adacore.com>
3842
3843 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3844 if detecting a variable-sized field that is not the last field.
3845 Fix struct type length computation.
3846
53e8f97d
JB
38472014-08-01 Joel Brobecker <brobecker@adacore.com>
3848
3849 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3850 Add debug trace.
3851
e068c55d
JB
38522014-08-01 Joel Brobecker <brobecker@adacore.com>
3853
3854 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3855 Remove "+ 8" offset in computation of CHAIN_VMA.
3856
4d4ca2a1
DE
38572014-07-31 Doug Evans <dje@google.com>
3858
3859 * inflow.c (child_terminal_inferior): Add comment.
3860 (child_terminal_ours_for_output): Add comment.
3861 (child_terminal_ours): Add comment.
3862 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3863 (linux_nat_terminal_ours): Add comment.
3864
462f517e
GB
38652014-07-31 Gary Benson <gbenson@redhat.com>
3866
3867 * common/btrace-common.h: Do not include defs.h or server.h.
3868 * nat/mips-linux-watch.h: Likewise.
3869 * gdb-dlfcn.h: Do not include defs.h.
3870 * tracefile.h: Likewise.
3871
74228e77
RM
38722014-07-30 Roland McGrath <mcgrathr@google.com>
3873
3874 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3875
014f9477
TT
38762014-07-30 Tom Tromey <tromey@redhat.com>
3877
3878 * bsd-kvm.c (bsd_kvm_open): Constify.
3879 * corelow.c (core_open): Constify.
3880 * ctf.c (ctf_open): Constify.
3881 * dbug-rom.c (dbug_open): Constify.
3882 * exec.c (exec_open): Constify.
3883 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3884 * microblaze-rom.c (picobug_open): Constify.
3885 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3886 Constify.
3887 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3888 * record-btrace.c (record_btrace_open): Constify.
3889 * record-full.c (record_full_core_open_1, record_full_open_1)
3890 (record_full_open): Constify.
3891 * remote-m32r-sdi.c (m32r_open): Constify.
3892 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3893 (rockhopper_open, lsi_open): Constify.
3894 * remote-sim.c (gdbsim_open): Constify.
3895 * remote.c (remote_open, extended_remote_open, remote_open_1):
3896 Constify.
3897 * target.h (struct target_ops) <to_open>: Make "arg" const.
3898 * tracefile-tfile.c (tfile_open): Constify.
3899
e799154c
TT
39002014-07-30 Tom Tromey <tromey@redhat.com>
3901
3902 * breakpoint.c (map_breakpoint_numbers): Update.
3903 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3904 (get_number_const): New function.
3905 (get_number): Rewrite using get_number_const.
3906 (init_number_or_range): Make "string" const.
3907 (number_is_in_list): Make "list" const.
3908 * cli/cli-utils.h (get_number_const): Declare.
3909 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3910 (init_number_or_range, number_is_in_list): Update.
3911 * printcmd.c (map_display_numbers): Update.
3912 * value.c (value_from_history_ref): Constify.
3913 * value.h (value_from_history_ref): Update.
3914
5f08566b
TT
39152014-07-30 Tom Tromey <tromey@redhat.com>
3916
3917 * corefile.c (hook_type, call_extra_exec_file_hooks)
3918 (specify_exec_file_hook): Constify.
3919 * exec.c (exec_file_attach): Make "filename" const.
3920 * gdbcore.h (deprecated_exec_file_display_hook)
3921 (specify_exec_file_hook, exec_file_attach): Constify.
3922 * main.c (captured_main): Use catch_command_errors_const.
3923
8981c758
TT
39242014-07-30 Tom Tromey <tromey@redhat.com>
3925
3926 * target.c (open_target): New function.
3927 (add_target_with_completer, add_deprecated_target_alias): Use
3928 set_cmd_sfunc, set_cmd_context.
3929 (debug_to_open): Remove.
3930 (setup_target_debug): Update.
3931
a1c7835a
YQ
39322014-07-30 Yao Qi <yao@codesourcery.com>
3933
3934 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3935 comments.
3936 * parse.c (exp_iterate): Update comments.
3937
976411d6
GB
39382014-07-30 Gary Benson <gbenson@redhat.com>
3939
3940 * common/common-defs.h: New file.
3941 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3942 * defs.h: Include common-defs.h.
3943 Do not include config.h or build-gnulib/config.h.
3944
5d4848a4
GB
39452014-07-30 Gary Benson <gbenson@redhat.com>
3946
3947 * common/common-utils.h: Do not include config.h.
3948 * nat/linux-btrace.h: Likewise.
3949
d41f6d8e
GB
39502014-07-30 Gary Benson <gbenson@redhat.com>
3951
3952 * btrace.c: Include defs.h.
3953 * common/ptid.c: Include defs.h or server.h as appropriate.
3954 * nat/mips-linux-watch.c: Likewise.
3955
84202f9c
TT
39562014-07-29 Tom Tromey <tromey@redhat.com>
3957
3958 * target.c (target_is_pushed): Simplify.
3959
2530441c
JB
39602014-07-29 Joel Brobecker <brobecker@adacore.com>
3961
3962 GDB 7.8 released.
3963
7e09a223
YQ
39642014-07-29 Yao Qi <yao@codesourcery.com>
3965
3966 PR gdb/17206
3967 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3968
7ebdbe92
DE
39692014-07-28 Doug Evans <xdje42@gmail.com>
3970
3971 PR guile/17203
3972 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3973 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3974 parameters.
3975
f347ffc9
WN
39762014-07-28 Will Newton <will.newton@linaro.org>
3977
3978 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3979 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3980 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3981 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3982 (THUMB2_EABI_SYSCALL): Likewise.
3983 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3984 struct tramp_frame.
3985 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3986 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3987
37c5f1f7
DE
39882014-07-27 Doug Evans <xdje42@gmail.com>
3989
3990 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3991
0c3abbc7
DE
39922014-07-27 Doug Evans <xdje42@gmail.com>
3993
3994 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3995
e76c5d17
DE
39962014-07-26 Ludovic Courtès <ludo@gnu.org>
3997 Doug Evans <xdje42@gmail.com>
3998
3999 PR guile/17146
4000 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4001 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4002 * configure.ac: Try to use guild to compile an scm file, if it fails
4003 then disable guile support.
4004 * configure: Regenerate.
4005 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4006 GUILE_FILE_LIST.
4007 (GUILE_COMPILED_FILES): New variable.
4008 (GUILE_FILES) Update.
4009 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4010 (stamp-guile): Compile scm files.
4011 * guile/guile.c (boot_guile_support): New function.
4012 (standard_throw_args_p): New function.
4013 (print_standard_throw_error, print_throw_error): New functions.
4014 (handle_boot_error): New function.
4015 (initialize_scheme_side): Rewrite to call boot_guile_support.
4016 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4017 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4018
186fcde0
DE
40192014-07-26 Ludovic Courtès <ludo@gnu.org>
4020 Doug Evans <xdje42@gmail.com>
4021
4022 PR guile/17146
4023 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4024 * guile/lib/gdb/support.scm: New file.
4025 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4026 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4027 All uses updated.
4028 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4029 All uses updated.
4030 (%assert-type): Ditto, and renamed to assert-type.
4031 (%exception-print-style): Delete.
4032
4df42755
DE
40332014-07-26 Doug Evans <xdje42@gmail.com>
4034
4035 PR build/17105
4036 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4037 * configure: Regenerate.
4038 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4039 PYTHON_FILES.
4040 (PYTHON_FILES): New variable.
4041 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4042 (GUILE_FILES): New variable.
4043 (stamp-python, install-python, uninstall-python): Handle empty
4044 file list.
4045 (stamp-guile, install-guile, uninstall-guile): Ditto.
4046
ee7333ae
DE
40472014-07-26 Doug Evans <xdje42@gmail.com>
4048
4049 PR guile/17177
4050 * guile/lib/gdb.scm (pretty-printers): Export.
4051 (set-pretty-printers!): Export.
4052 * guile/lib/gdb/printing.scm (gdb module): Update.
4053 (prepend-pretty-printer!, append-pretty-printer!): Update.
4054 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4055 (pretty_printer_list_var): Delete.
4056 (pretty_printer_list): New static global.
4057 (gdbscm_pretty_printers): New function.
4058 (gdbscm_set_pretty_printers_x): New function.
4059 (ppscm_find_pretty_printer_from_gdb): Update.
4060 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4061 (gdbscm_initialize_pretty_printers): Update.
4062
74edf516
DE
40632014-07-26 Doug Evans <xdje42@gmail.com>
4064
4065 PR 17185
4066 * configure.ac: Add check for header gc/gc.h.
4067 Add check for function setenv.
4068 * configure: Regenerate.
4069 * config.in: Regenerate.
4070 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4071
d54398a7
MR
40722014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4073
4074 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4075 variation in gdbarch matching.
4076
ab16fce8
TT
40772014-07-25 Tom Tromey <tromey@redhat.com>
4078
4079 * exec.c (using_exec_ops): Remove.
4080 (exec_close_1): Update. Remove extraneous block, reindent.
4081 (add_target_sections): Use target_is_pushed.
4082
88056fbb
PA
40832014-07-25 Pedro Alves <palves@redhat.com>
4084
4085 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4086 * monitor.c (monitor_create_inferior): Likewise.
4087 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4088 * remote-sim.c (gdbsim_create_inferior): Likewise.
4089 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4090 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4091 * windows-nat.c (do_initial_windows_stuff): Likewise.
4092
70509625
PA
40932014-07-25 Pedro Alves <palves@redhat.com>
4094
4095 * NEWS: Mention signal passing and "signal" command changes.
4096 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4097 comment.
4098 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4099 call.
4100 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4101 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4102 (jump_command): Adjust clear_proceed_status call.
4103 (signal_command): Warn if other thread that are resumed have
4104 signals that will be delivered. Adjust clear_proceed_status call.
4105 (until_next_command, finish_command)
4106 (proceed_after_attach_callback, attach_command_post_wait)
4107 (attach_command): Adjust clear_proceed_status call.
4108 * infrun.c (proceed_after_vfork_done): Likewise.
4109 (proceed_after_attach_callback): Adjust comment.
4110 (clear_proceed_status_thread): Clear stop_signal if not in pass
4111 state.
4112 (clear_proceed_status_callback): Delete.
4113 (clear_proceed_status): New 'step' parameter. Only clear the
4114 proceed status of threads the command being prepared is about to
4115 resume.
4116 (proceed): If passed in an explicit signal, override stop_signal
4117 with it. Don't pass the last stop signal to the thread we're
4118 resuming.
4119 (init_wait_for_inferior): Adjust clear_proceed_status call.
4120 (switch_back_to_stepped_thread): Clear the signal if it should not
4121 be passed.
4122 * infrun.h (clear_proceed_status): New 'step' parameter.
4123 (user_visible_resume_ptid): Add comment.
4124 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4125 signal is in pass state.
4126 * remote.c (append_pending_thread_resumptions): Likewise.
4127 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4128
d8be2939
TT
41292014-07-25 Tom Tromey <tromey@redhat.com>
4130
4131 * target.h (target_stopped_data_address)
4132 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4133 parentheses.
4134
7d0d9d2b
PL
41352014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4136
4137 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4138 comments.
4139 (avr_pointer_to_address): Likewise.
4140
e9e7f724
TT
41412014-07-24 Tom Tromey <tromey@redhat.com>
4142
4143 * monitor.c (compile_pattern): Update.
4144 * target.h (struct target_ops) <to_shortname, to_longname,
4145 to_doc>: Now const.
4146
1947513d
TT
41472014-07-24 Tom Tromey <tromey@redhat.com>
4148
4149 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4150 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4151 (add_info_alias, add_com): Make "doc" const.
4152 (print_doc_line): Make "str" const.
4153 (delete_cmd): Update.
4154 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4155 (print_doc_line): Update.
4156 * cli/cli-script.c (document_command): Update.
4157 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4158 (add_com, add_info, add_info_alias): Update.
4159 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4160 * python/py-cmd.c (cmdpy_destroyer): Update.
4161
64e61d29
TT
41622014-07-24 Tom Tromey <tromey@redhat.com>
4163
4164 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4165 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4166 (help_cmd_list): Constify.
4167 (lookup_cmd): Update.
4168 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4169 const.
4170 (help_cmd_list, apropos_cmd): Update.
4171 * cli/cli-script.c (show_user): Update.
4172 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4173 * cli/cli-setshow.h (cmd_show_list): Update.
4174 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4175 (cmd_show_list): Update.
4176 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4177 * python/py-cmd.c (cmdpy_destroyer): Update.
4178
429e55ea
TT
41792014-07-24 Tom Tromey <tromey@redhat.com>
4180
4181 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4182 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4183 const.
4184 * command.h (deprecate_cmd): Update.
4185 * maint.c (maintenance_do_deprecate): Add casts.
4186
64669f3b
TT
41872014-07-24 Tom Tromey <tromey@redhat.com>
4188
4189 * cli/cli-decode.c (help_cmd): Make parameter "const".
4190 * cli/cli-decode.h (help_cmd): Update.
4191
d3d3328b
TT
41922014-07-24 Tom Tromey <tromey@redhat.com>
4193
4194 * stack.c (up_silently_base, down_silently_base): Make argument
4195 const.
4196
414842dc
TT
41972014-07-24 Tom Tromey <tromey@redhat.com>
4198
4199 * solib.c (solib_add): Make "pattern" const.
4200 * solib.h (solib_add): Update.
4201
baa336ce
TT
42022014-07-24 Tom Tromey <tromey@redhat.com>
4203
4204 * remote.c (remote_serial_open, print_packet, putpkt)
4205 (putpkt_binary): Constify.
4206 * remote.h (putpkt): Update.
4207
5a19e2d0
TT
42082014-07-24 Tom Tromey <tromey@redhat.com>
4209
4210 * monitor.c (monitor_open): Make "args" const.
4211 * monitor.h (monitor_open): Update.
4212
fc4baa5e
TT
42132014-07-24 Tom Tromey <tromey@redhat.com>
4214
4215 * maint.c (match_bfd_flags): Make "string" const.
4216 (print_bfd_section_info): Remove casts.
4217 (print_objfile_section_info): Make "string" const.
4218
0d5f0dbe
TT
42192014-07-24 Tom Tromey <tromey@redhat.com>
4220
4221 * inf-child.c (inf_child_open_target): Make "arg" const.
4222 * inf-child.h (inf_child_open_target): Update.
4223
41c77899
TT
42242014-07-24 Tom Tromey <tromey@redhat.com>
4225
4226 * environ.c (unset_in_environ): Make "var" const.
4227 * environ.h (unset_in_environ): Update.
4228
93db0d79
TT
42292014-07-24 Tom Tromey <tromey@redhat.com>
4230
4231 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4232 Make "cmd" const.
4233 (scan_filename_with_cleanup): Likewise.
4234 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4235 Make arguments const.
4236 (restore_command): Update.
4237
36d6eb95
PA
42382014-07-24 Pedro Alves <palves@redhat.com>
4239
4240 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4241
8009206a
TT
42422014-07-24 Tom Tromey <tromey@redhat.com>
4243 Gary Benson <gbenson@redhat.com>
4244
4245 * nat/linux-ptrace.c (additional_flags): New global.
4246 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4247 additional_flags; don't check GDBSERVER.
4248 (linux_ptrace_set_additional_flags): New function.
4249 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4250 Declare.
4251 * linux-nat.c (_initialize_linux_nat): Call
4252 linux_ptrace_set_additional_flags.
4253
a7068b60
TT
42542014-07-24 Tom Tromey <tromey@redhat.com>
4255
4256 * make-target-delegates (munge_type, write_debugmethod): New
4257 functions.
4258 (debug_names): New global.
4259 ($TARGET_DEBUG_PRINTER): New global.
4260 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4261 name.
4262 Write debug methods. Generate init_debug_target.
4263 * target-debug.h: New file.
4264 * target-delegates.c: Rebuild.
4265 * target.c: Include target-debug.h.
4266 (debug_target): Hoist definition.
4267 (target_kill, target_get_section_table, target_memory_map)
4268 (target_flash_erase, target_flash_done, target_detach)
4269 (target_disconnect, target_wait, target_resume)
4270 (target_pass_signals, target_program_signals, target_follow_fork)
4271 (target_mourn_inferior, target_search_memory)
4272 (target_thread_address_space, target_close)
4273 (target_find_new_threads, target_core_of_thread)
4274 (target_verify_memory, target_insert_mask_watchpoint)
4275 (target_remove_mask_watchpoint): Remove targetdebug code.
4276 (debug_to_post_attach, debug_to_prepare_to_store)
4277 (debug_to_files_info, debug_to_insert_breakpoint)
4278 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4279 (debug_to_region_ok_for_hw_watchpoint)
4280 (debug_to_can_accel_watchpoint_condition)
4281 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4282 (debug_to_watchpoint_addr_within_range)
4283 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4284 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4285 (debug_to_terminal_init, debug_to_terminal_inferior)
4286 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4287 (debug_to_terminal_save_ours, debug_to_terminal_info)
4288 (debug_to_load, debug_to_post_startup_inferior)
4289 (debug_to_insert_fork_catchpoint)
4290 (debug_to_remove_fork_catchpoint)
4291 (debug_to_insert_vfork_catchpoint)
4292 (debug_to_remove_vfork_catchpoint)
4293 (debug_to_insert_exec_catchpoint)
4294 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4295 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4296 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4297 (setup_target_debug): Call init_debug_target.
4298 * target.h (TARGET_DEBUG_PRINTER): New macro.
4299 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4300 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4301
2c51604d
GB
43022014-07-24 Gary Benson <gbenson@redhat.com>
4303
4304 * exceptions.h (throw_vfatal): Renamed to...
4305 (throw_vquit): New declaration.
4306 (throw_quit): Likewise.
4307 * exceptions.c (throw_vfatal): Renamed to...
4308 (throw_vquit): New function.
4309 (throw_quit): Likewise.
4310 (throw_error): Call throw_verror rather than throw_it.
4311 * utils.h (vfatal): Removed.
4312 (fatal): Likewise.
4313 * utils.c (vfatal): Removed.
4314 (fatal): Likewise.
4315 (internal_verror): Replaced call to fatal with call to throw_quit.
4316 (quit): Replaced calls to fatal with calls to throw_quit.
4317
34211963
ME
43182014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4319
4320 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4321 target_read_code.
4322
a52b4d3e
ME
43232014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4324
4325 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4326 less than zero in conditional expression.
4327
a8bdc56b
TT
43282014-07-23 Tom Tromey <tromey@redhat.com>
4329
4330 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4331 ($INTRO_PART): Don't match whitespace.
4332 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4333 argument matching.
4334 ($METHOD): Add $METHOD_TRAILER.
4335 (trim): Rewrite.
4336 (scan_target_h): New sub.
4337 Change main loop not to collect state.
4338 * target-delegates.c: Rebuild.
4339
91b52240
GB
43402014-07-23 Gary Benson <gbenson@redhat.com>
4341
4342 * cp-support.c (gdb_demangle): Fix build on systems without
4343 sigaltstack.
4344
45326f6f
JK
43452014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4346
4347 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4348 for reference entry value target data value.
4349
e214cf6c
JK
43502014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4351
4352 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4353 value_available_contents_eq.
4354
bddbbedd
PA
43552014-07-22 Pedro Alves <palves@redhat.com>
4356
4357 * value.c (allocate_optimized_out_value): Don't mark value as
4358 non-lazy.
4359
45c71484
JW
43602014-07-22 Jiong Wang <jiong.wang@arm.com>
4361
4362 * MAINTAINERS (Write After Approval): Update my email address.
4363
9597b22a
DE
43642014-07-20 Doug Evans <dje@google.com>
4365
4366 PR server/17147
4367 * remote.c (putpkt_binary): Add text to error message.
4368
91101fe5
YQ
43692014-07-20 Yao Qi <yao@codesourcery.com>
4370
4371 * eval.c: Remove "Chill" from comments.
4372 * gdbtypes.h: Likewise.
4373 * symtab.h: Likewise.
4374
c9402c95
YQ
43752014-07-20 Yao Qi <yao@codesourcery.com>
4376
4377 * std-operator.def: Update comments to TERNOP_SLICE.
4378
ae8fddda
YQ
43792014-07-20 Yao Qi <yao@codesourcery.com>
4380
4381 * std-operator.def: Remove BINOP_RANGE.
4382 * breakpoint.c (watchpoint_exp_is_const): Update.
4383 * expprint.c (dump_subexp_body_standard): Likewise.
4384 * eval.c (init_array_element): Remove dead code.
4385 (evaluate_subexp_standard): Likewise.
4386
9c816640
YQ
43872014-07-20 Yao Qi <yao@codesourcery.com>
4388
4389 * std-operator.def: Remove BINOP_IN.
4390 * breakpoint.c (watchpoint_exp_is_const): Update.
4391 * eval.c (evaluate_subexp_standard): Likewise.
4392 * expprint.c (dump_subexp_body_standard): Likewise.
4393
164224e9
ME
43942014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4395
4396 * microblaze-tdep.c (microblaze_register_names): Add
4397 the rshr and rslr register names.
4398 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4399 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4400 Use of tdesc_numbered_register. Use of
4401 microblaze_register_g_packet_guesses. Use of
4402 tdesc_use_registers. Use of set_gdbarch_register_type.
4403 (microblaze_register_g_packet_guesses): New.
4404 * microblaze-tdep.h (microblaze_reg_num): Add
4405 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4406 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4407 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4408 * features/microblaze-core.xml: New file.
4409 * features/microblaze-stack-protect.xml: New file.
4410 * features/microblaze-with-stack-protect.c: New file.
4411 * features/microblaze-with-stack-protect.xml: New file.
4412 * features/microblaze.xml: New file.
4413 * features/microblaze.c: New file.
4414 * features/Makefile (microblaze-with-stack-protect): Add
4415 microblaze-with-stack-protect microblaze and microblaze-expedite.
4416 * regformats/microblaze-with-stack-protect.dat: New file.
4417 * regformats/microblaze.dat: New file.
4418 * doc/gdb.texinfo (MicroBlaze Features): Added.
4419
e8b2341c
TT
44202014-07-18 Tom Tromey <tromey@redhat.com>
4421
4422 * exec.c (exec_ops): Now static.
4423 * exec.h (exec_ops): Don't declare.
4424
44e89118
TT
44252014-07-18 Tom Tromey <tromey@redhat.com>
4426
4427 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4428 to find_target_beneath.
4429 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4430 find_target_beneath.
4431 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4432
b0ed115f
TT
44332014-07-18 Tom Tromey <tromey@redhat.com>
4434
4435 PR gdb/17130:
4436 * utils.c (quit): Use target_supports_terminal_ours.
4437 * target.h (target_supports_terminal_ours): Declare.
4438 * target.c (target_supports_delete_record): Don't check
4439 to_delete_record against NULL.
4440 (target_supports_terminal_ours): New function.
4441
e75fdfca
TT
44422014-07-18 Tom Tromey <tromey@redhat.com>
4443
4444 PR gdb/17130:
4445 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4446 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4447 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4448 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4449 * windows-nat.c (windows_xfer_partial): Always delegate.
4450 * record-btrace.c (record_btrace_xfer_partial): Simplify
4451 delegation.
4452 (record_btrace_fetch_registers, record_btrace_store_registers)
4453 (record_btrace_prepare_to_store, record_btrace_resume)
4454 (record_btrace_wait, record_btrace_find_new_threads)
4455 (record_btrace_thread_alive): Likewise.
4456 * procfs.c (procfs_xfer_partial): Always delegate.
4457 * corelow.c (core_xfer_partial): Always delegate.
4458 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4459
83814951
TT
44602014-07-18 Tom Tromey <tromey@redhat.com>
4461
4462 * exec.c (exec_make_note_section): Move earlier.
4463
b8b8facf
DE
44642014-07-17 Doug Evans <dje@google.com>
4465
74b49205 4466 PR gdb/17170
b8b8facf
DE
4467 * maint.c (count_symtabs_and_blocks): Handle NULL
4468 current_program_space.
4469 (report_command_stats): Check global enabled flag in addition to
4470 recorded enabled flag.
4471 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4472
69ff6be5
PA
44732014-07-16 Pedro Alves <palves@redhat.com>
4474
4475 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4476
252db1b5
TT
44772014-07-16 Tom Tromey <tromey@redhat.com>
4478
4479 * target.h (struct target_ops) <to_delete_record>: Reformat
4480 comment.
4481
a432721e
TT
44822014-07-16 Tom Tromey <tromey@redhat.com>
4483
4484 * target-delegates.c: Rebuild.
4485
487d9753
PL
44862014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4487
4488 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4489 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4490 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4491 (avr_pointer_to_address): Likewise.
4492 (avr_address_class_type_flags): New function.
4493 (avr_address_class_type_flags_to_name): Likewise.
4494 (avr_address_class_name_to_type_flags): Likewise.
4495 (avr_gdbarch_init): Set address_class_type_flags,
4496 address_class_type_flags_to_name and
4497 address_class_name_to_type_flags.
4498
57745c90
PA
44992014-07-15 Pedro Alves <palves@redhat.com>
4500
4501 * linux-nat.c (kill_callback): Save errno and work with saved
4502 copy.
4503
2d40be18
SM
45042014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4505
4506 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4507
572f6555
EBM
45082014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4509
4510 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4511 breakpoint support correctly.
4512
cc1c52ad
PA
45132014-07-14 Pedro Alves <palves@redhat.com>
4514
4515 * utils.c (prompt_for_continue): Call target_terminal_ours.
4516
1e973570
PA
45172014-07-14 Pedro Alves <palves@redhat.com>
4518
4519 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4520 catch_errors. Don't re-enable stdin or notify observers where,
4521 and rethrow error.
4522 (fetch_inferior_event_wrapper): Delete.
4523
93d6eb10
PA
45242014-07-14 Pedro Alves <palves@redhat.com>
4525
4526 PR gdb/17072
4527 * top.c: Include "inf-loop.h".
4528 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4529 field.
4530 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4531 was async before.
4532 (gdb_readline_wrapper): Store whether the target is async, and
4533 make it sync.
4534
0017922d
PA
45352014-07-14 Pedro Alves <palves@redhat.com>
4536
4537 PR gdb/17072
4538 * top.c (gdb_readline_wrapper_line): Tweak comment.
4539 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4540 the input handler callback.
4541
94696ad3
PA
45422014-07-14 Pedro Alves <palves@redhat.com>
4543
4544 PR gdb/17072
4545 * main.c: Include event-top.h.
4546 (handle_command_errors): New function.
4547 (catch_command_errors, catch_command_errors_const): Use it.
4548
9d1e69a2
PA
45492014-07-14 Pedro Alves <palves@redhat.com>
4550
4551 * exceptions.c (catch_command_errors, catch_command_errors_const):
4552 Moved to main.c.
4553 * exceptions.h (catch_command_errors_ftype)
4554 (catch_command_errors_const_ftype): Moved to main.c.
4555 (catch_command_errors, catch_command_errors_const): Delete
4556 declarations.
4557 * main.c (catch_command_errors_ftype)
4558 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4559 (catch_command_errors, catch_command_errors_const)): Moved here
4560 from exceptions.c and make static.
4561
feefc97b
PA
45622014-07-14 Pedro Alves <palves@redhat.com>
4563
4564 * exceptions.c (print_any_exception): Delete.
4565 (catch_exceptions_with_msg): Use exception_print instead of
4566 print_any_exception.
4567 (catch_errors): Use exception_fprintf instead of
4568 print_any_exception.
4569 (catch_command_errors, catch_command_errors_const): Use
4570 exception_print instead of print_any_exception.
4571
c933f875
PA
45722014-07-14 Pedro Alves <palves@redhat.com>
4573
4574 * infcall.c (run_inferior_call): Set 'sync_execution' while
4575 running the inferior call.
4576
feb6f816
PA
45772014-07-14 Pedro Alves <palves@redhat.com>
4578
4579 * value.c (value_contents_equal): Delete function.
4580 * value.h (value_contents_equal): Delete declaration.
4581
d98b7a16
TT
45822014-07-14 Tom Tromey <tromey@redhat.com>
4583
4584 PR exp/17106:
4585 * gdbtypes.c (is_dynamic_type_internal): New function, from
4586 is_dynamic_type.
4587 (is_dynamic_type): Rewrite.
4588 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4589 (resolve_dynamic_struct): Likewise.
4590 (resolve_dynamic_type_internal): New function, from
4591 resolve_dynamic_type.
4592 (resolve_dynamic_type): Rewrite.
4593
548740d6
TT
45942014-07-14 Tom Tromey <tromey@redhat.com>
4595
4596 * target.c (target_require_runnable): Also check record_stratum.
4597 Update comment.
4598
808f7ab1
YQ
45992014-07-11 Yao Qi <yao@codesourcery.com>
4600
4601 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4602 thumb_instruction_restores_sp return true.
4603
540314bd
YQ
46042014-07-11 Yao Qi <yao@codesourcery.com>
4605
4606 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4607 (thumb_in_function_epilogue_p): Call
4608 thumb_instruction_restores_sp.
4609
1db01f22
YQ
46102014-07-11 Yao Qi <yao@codesourcery.com>
4611
4612 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4613 'add sp, #imm'.
4614 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4615
3116063b
GB
46162014-07-11 Gary Benson <gbenson@redhat.com>
4617
4618 * amd64-linux-nat.c (gdbcore.h): Remove include.
4619 (regset.h): Likewise.
4620 (nat/linux-btrace.h): Likewise.
4621 (btrace.h): Likewise.
4622 (gdb_assert.h): Likewise.
4623 (string.h): Likewise.
4624 (sys/uio.h): Likewise.
4625 (sys/debugreg.h): Likewise.
4626 (sys/syscall.h): Likewise.
4627 (sys/procfs.h): Likewise.
4628 (sys/user.h): Likewise.
4629 (asm/ptrace.h): Likewise.
4630 (i386-nat.h): Likewise.
4631 * i386-linux-nat.c (i386-nat.h): Likewise.
4632 (regset.h): Likewise.
4633 (target.h): Likewise.
4634 (linux-nat.h): Likewise.
4635 (nat/linux-btrace.h): Likewise.
4636 (btrace.h): Likewise.
4637 (gdb_assert.h): Likewise.
4638 (string.h): Likewise.
4639 (sys/uio.h): Likewise.
4640 (sys/user.h): Likewise.
4641 (sys/procfs.h): Likewise.
4642 (sys/reg.h): Likewise.
4643 (sys/debugreg.h): Likewise.
4644 (ORIG_EAX): Remove definition.
4645
040baaf6
GB
46462014-07-11 Gary Benson <gbenson@redhat.com>
4647
4648 * i386-linux-nat.h: New file.
4649 * x86-linux-nat.h: Likewise.
4650 * x86-linux-nat.c: Likewise.
4651 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4652 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4653 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4654 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4655 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4656 (PTRACE_SETREGSET): Likewise.
4657 (arch_lwp_info): Now in x86-linux-nat.c.
4658 (have_ptrace_getregset): Now in x86-linux-nat.h.
4659 (x86_linux_dr_get): Now in x86-linux-nat.c.
4660 (x86_linux_dr_set): Likewise.
4661 (x86_linux_dr_get_addr): Likewise.
4662 (x86_linux_dr_get_control): Likewise.
4663 (x86_linux_dr_get_status): Likewise.
4664 (update_debug_registers_callback): Likewise.
4665 (x86_linux_dr_set_control): Likewise.
4666 (x86_linux_dr_set_addr): Likewise.
4667 (x86_linux_prepare_to_resume): Likewise.
4668 (x86_linux_new_thread): Likewise.
4669 (x86_linux_new_fork): Likewise.
4670 (x86_linux_get_thread_area): Likewise.
4671 (super_post_startup_inferior): Likewise.
4672 (x86_linux_child_post_startup_inferior): Likewise.
4673 (AMD64_LINUX_USER64_CS): Likewise.
4674 (AMD64_LINUX_X32_DS): Likewise.
4675 (x86_linux_read_description): Likewise.
4676 (x86_linux_enable_btrace): Likewise.
4677 (x86_linux_disable_btrace): Likewise.
4678 (x86_linux_teardown_btrace): Likewise.
4679 (x86_linux_read_btrace): Likewise.
4680 (x86_linux_create_target): Likewise.
4681 (x86_linux_add_target): Likewise.
4682 * i386-linux-nat.c (x86-linux-nat.h): New include.
4683 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4684 (PTRACE_SETREGSET): Likewise.
4685 (arch_lwp_info): Now in x86-linux-nat.c.
4686 (have_ptrace_getregset): Now in x86-linux-nat.h.
4687 (x86_linux_dr_get): Now in x86-linux-nat.c.
4688 (x86_linux_dr_set): Likewise.
4689 (x86_linux_dr_get_addr): Likewise.
4690 (x86_linux_dr_get_control): Likewise.
4691 (x86_linux_dr_get_status): Likewise.
4692 (update_debug_registers_callback): Likewise.
4693 (x86_linux_dr_set_control): Likewise.
4694 (x86_linux_dr_set_addr): Likewise.
4695 (x86_linux_prepare_to_resume): Likewise.
4696 (x86_linux_new_thread): Likewise.
4697 (x86_linux_new_fork): Likewise.
4698 (x86_linux_get_thread_area): Likewise.
4699 (super_post_startup_inferior): Likewise.
4700 (x86_linux_child_post_startup_inferior): Likewise.
4701 (AMD64_LINUX_USER64_CS): Likewise.
4702 (AMD64_LINUX_X32_DS): Likewise.
4703 (x86_linux_read_description): Likewise.
4704 (x86_linux_enable_btrace): Likewise.
4705 (x86_linux_disable_btrace): Likewise.
4706 (x86_linux_teardown_btrace): Likewise.
4707 (x86_linux_read_btrace): Likewise.
4708 (x86_linux_create_target): Likewise.
4709 (x86_linux_add_target): Likewise.
4710
1aa7e42c
GB
47112014-07-11 Gary Benson <gbenson@redhat.com>
4712
4713 * amd64-linux-nat.c: Comment and whitespace changes.
4714 * i386-linux-nat.c: Comment and whitespace changes.
4715
c1e246a0
GB
47162014-07-11 Gary Benson <gbenson@redhat.com>
4717
4718 * amd64-linux-nat.c (x86_linux_create_target): New function.
4719 (x86_linux_add_target): Likewise.
4720 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4721 * i386-linux-nat.c (x86_linux_create_target): New function.
4722 (x86_linux_add_target): Likewise.
4723 (_initialize_i386_linux_nat): Delegate to the above new functions.
4724
8c420b8d
GB
47252014-07-11 Gary Benson <gbenson@redhat.com>
4726
4727 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4728 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4729 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4730 (ps_get_thread_area): Delegate to the above.
4731
cb1da100
GB
47322014-07-11 Gary Benson <gbenson@redhat.com>
4733
4734 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4735 x86_linux_read_description. All uses updated. amd64-specific
4736 code conditionalized. Conditionalized i386-specific code added.
4737 Redundant cast removed.
4738 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4739 x86_linux_read_description. All uses updated. i386-specific
4740 code conditionalized. Conditionalized amd64-specific code added.
4741 One sizeof replaced with the actual type it is describing.
4742
2acf3cd0
GB
47432014-07-11 Gary Benson <gbenson@redhat.com>
4744
4745 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4746 x86_linux_dr_get. All uses updated.
4747 (amd64_linux_dr_set): Renamed to
4748 x86_linux_dr_set. All uses updated.
4749 (amd64_linux_dr_get_addr): Renamed to
4750 x86_linux_dr_get_addr. All uses updated.
4751 (amd64_linux_dr_get_control): Renamed to
4752 x86_linux_dr_get_control. All uses updated.
4753 (amd64_linux_dr_get_status): Renamed to
4754 x86_linux_dr_get_status. All uses updated.
4755 (amd64_linux_dr_set_control): Renamed to
4756 x86_linux_dr_set_control. All uses updated.
4757 (amd64_linux_dr_set_addr): Renamed to
4758 x86_linux_dr_set_addr. All uses updated.
4759 (amd64_linux_prepare_to_resume): Renamed to
4760 x86_linux_prepare_to_resume. All uses updated.
4761 (amd64_linux_new_thread): Renamed to
4762 x86_linux_new_thread. All uses updated.
4763 (amd64_linux_new_fork): Renamed to
4764 x86_linux_new_fork. All uses updated.
4765 (amd64_linux_child_post_startup_inferior): Renamed to
4766 x86_linux_child_post_startup_inferior. All uses updated.
4767 (amd64_linux_enable_btrace): Renamed to
4768 x86_linux_enable_btrace. All uses updated.
4769 (amd64_linux_disable_btrace): Renamed to
4770 x86_linux_disable_btrace. All uses updated.
4771 (amd64_linux_teardown_btrace): Renamed to
4772 x86_linux_teardown_btrace. All uses updated.
4773 (amd64_linux_read_btrace): Renamed to
4774 x86_linux_read_btrace. All uses updated.
4775 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4776 x86_linux_dr_get. All uses updated.
4777 (i386_linux_dr_set): Renamed to
4778 x86_linux_dr_set. All uses updated.
4779 (i386_linux_dr_get_addr): Renamed to
4780 x86_linux_dr_get_addr. All uses updated.
4781 (i386_linux_dr_get_control): Renamed to
4782 x86_linux_dr_get_control. All uses updated.
4783 (i386_linux_dr_get_status): Renamed to
4784 x86_linux_dr_get_status. All uses updated.
4785 (i386_linux_dr_set_control): Renamed to
4786 x86_linux_dr_set_control. All uses updated.
4787 (i386_linux_dr_set_addr): Renamed to
4788 x86_linux_dr_set_addr. All uses updated.
4789 (i386_linux_prepare_to_resume): Renamed to
4790 x86_linux_prepare_to_resume. All uses updated.
4791 (i386_linux_new_thread): Renamed to
4792 x86_linux_new_thread. All uses updated.
4793 (i386_linux_new_fork): Renamed to
4794 x86_linux_new_fork. All uses updated.
4795 (i386_linux_child_post_startup_inferior): Renamed to
4796 x86_linux_child_post_startup_inferior. All uses updated.
4797 (i386_linux_enable_btrace): Renamed to
4798 x86_linux_enable_btrace. All uses updated.
4799 (i386_linux_disable_btrace): Renamed to
4800 x86_linux_disable_btrace. All uses updated.
4801 (i386_linux_teardown_btrace): Renamed to
4802 x86_linux_teardown_btrace. All uses updated.
4803 (i386_linux_read_btrace): Renamed to
4804 x86_linux_read_btrace. All uses updated.
4805
b9c1d481
AS
48062014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4807
4808 * remote.c (extended_remote_post_attach): New function.
4809 (init_extended_remote_ops): Install it as to_post_attach method.
4810
7180e04a
PA
48112014-07-09 Pedro Alves <palves@redhat.com>
4812
4813 * infcmd.c (attach_command_post_wait): Don't call
4814 target_terminal_inferior here.
4815 (attach_command): Call it here instead.
4816
9a9a7608
AB
48172014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4818
4819 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4820 field.
4821 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4822 from varobj.c, with additional checks.
4823 (c_varobj_ops): Fill in is_path_expr_parent field.
4824 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4825 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4826 field.
4827 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4828 ops method.
4829 (varobj_default_is_path_expr_parent): New function.
4830 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4831 (varobj_default_is_path_expr_parent): Declare new function.
4832
1f267ae3
MM
48332014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4834
4835 * infcmd.c (finish_backward): Turn internal error into normal error.
4836
b2ee242b
PA
48372014-07-07 Pedro Alves <palves@redhat.com>
4838
8a869bca 4839 PR gdb/17096
b2ee242b
PA
4840 * remote.c (async_handle_remote_sigint)
4841 (async_handle_remote_sigint_twice): Call
4842 gdb_call_async_signal_handler instead of
4843 mark_async_signal_handler.
4844
38e229b2
TT
48452014-07-07 Tom Tromey <tromey@redhat.com>
4846
4847 * target-delegates.c: Rebuild.
4848 * target.c (target_info_record): Remove.
4849 * record.c (info_record_command): Unconditionally call
4850 to_info_record.
4851 * target.h (struct target_ops) <to_info_record>: Use
4852 TARGET_DEFAULT_IGNORE.
4853 (target_info_record): Remove.
4854
f0f9ff95
TT
48552014-07-07 Tom Tromey <tromey@redhat.com>
4856
4857 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4858 TARGET_DEFAULT_NORETURN.
4859 * target.c (generic_tls_error): New function.
4860 (target_translate_tls_address): Don't search target stack.
4861 * target-delegates.c: Rebuild.
4862 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4863 stack.
4864 * linux-thread-db.c (thread_db_get_thread_local_address):
4865 Unconditionally call beneath target.
4866
4a5be5ee
MK
48672014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4868
4869 * cli/cli-logging.c (pop_output_files): Assign targerr to
4870 gdb_stdtargerr.
4871
92c3b204
AB
48722014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4873
4874 * MAINTAINERS (Write After Approval): Update my email address.
4875
9b11e3a7
GB
48762014-07-02 Gary Benson <gbenson@redhat.com>
4877
4878 * proc-service.c (ps_xfer_memory): Update comment.
4879 (ps_pstop): Remove unused function.
4880 (ps_pcontinue): Likewise.
4881 (ps_lstop): Likewise.
4882 (ps_lcontinue): Likewise.
4883 (ps_lgetxregsize): Likewise.
4884 (ps_lgetxregs): Likewise.
4885 (ps_lsetxregs): Likewise.
4886 (ps_plog): Likewise.
4887 (ps_ptread): Likewise.
4888 (ps_ptwrite): Likewise.
4889
cf363f18
MW
48902014-07-01 Mark Wielaard <mjw@redhat.com>
4891
4892 * dwarf2read.c (add_array_cv_type): New function.
4893 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4894 (read_tag_volatile_type): Likewise.
4895
82ae6c8d
TT
48962014-07-01 Tom Tromey <tromey@redhat.com>
4897
4898 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4899 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4900 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4901 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4902 * command.h (cmd_cfunc_ftype): Move earlier.
4903 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4904 (add_com, add_info): Use cmd_cfunc_ftype.
4905
96142726
TT
49062014-06-30 Tom Tromey <tromey@redhat.com>
4907
4908 * symtab.c (operator_chars): Make parameters and return type
4909 const.
4910 (file_matches): Make "files" const.
4911 (struct search_symbols_data) <files>: Now const.
4912 (search_symbols): Make "regexp" and "files" parameters const.
4913 Update.
4914 (symtab_symbol_info): Remove cast.
4915 (rbreak_command): Update.
4916 * symtab.h (search_symbols): Update.
4917
b67a2c6f
YQ
49182014-06-27 Yao Qi <yao@codesourcery.com>
4919
4920 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4921 Change parameter type to 'struct thread_info *'. Caller
4922 updated.
4923 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4924 Update declaration.
4925 * dummy-frame.c (struct dummy_frame_id): New.
4926 (dummy_frame_id_eq): New function.
4927 (struct dummy_frame) <id>: Change its type to 'struct
4928 dummy_frame_id'.
4929 (dummy_frame_push): Add parameter ptid and save it in
4930 dummy_frame_id.
4931 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4932 inferior_ptid.
4933 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4934 to inferior_ptid.
4935 (lookup_dummy_frame): Change parameter type to 'struct
4936 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4937 instead of frame_id_eq.
4938 (dummy_frame_pop): Add parameter ptid. Callers updated.
4939 Update comments. Compose dummy_frame_id and pass it to
4940 lookup_dummy_frame.
4941 (dummy_frame_discard): Add parameter ptid.
4942 (dummy_frame_sniffer): Compose dummy_frame_id and call
4943 dummy_frame_id_eq instead of frame_id_eq.
4944 (fprint_dummy_frames): Print ptid.
4945 * dummy-frame.h: Remove comments.
4946 (dummy_frame_push): Add ptid in declaration.
4947 (dummy_frame_pop, dummy_frame_discard): Likewise.
4948
5b10184c
TT
49492014-06-26 Tom Tromey <tromey@redhat.com>
4950
4951 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4952 * command.h (error_no_arg): Update.
4953
06900326
TT
49542014-06-26 Tom Tromey <tromey@redhat.com>
4955
4956 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4957 (do_show_command): Make "arg" const.
4958 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4959
c2bcbb1d
TT
49602014-06-26 Tom Tromey <tromey@redhat.com>
4961
4962 * record-full.c (record_full_get_bookmark): Make "args" const.
4963 (record_full_goto_bookmark): Make "raw_bookmark" const.
4964 * record.c (record_goto): New function.
4965 (cmd_record_goto): Use it. Now static.
4966 * record.h (record_goto): Declare.
4967 (cmd_record_goto): Remove declaration.
4968 * target-delegates.c: Rebuild.
4969 * target.h (struct target_ops) <to_get_bookmark,
4970 to_goto_bookmark>: Make parameter const.
4971
9cbe5fff
TT
49722014-06-26 Tom Tromey <tromey@redhat.com>
4973
4974 * defs.h (generic_load): Update.
4975 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4976 * monitor.c (monitor_load): Make "args" const.
4977 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4978 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4979 const.
4980 (mips_load): Make "file" const.
4981 * remote-sim.c (gdbsim_load): Make "args" const.
4982 * remote.c (remote_load): Make "name" const.
4983 * symfile.c (generic_load): Make "args" const.
4984 * target-delegates.c: Rebuild.
4985 * target.c (target_load): Make "arg" const.
4986 (debug_to_load): Make "args" const.
4987 * target.h (struct target_ops) <to_load>: Make parameter const.
4988 (target_load): Update.
4989
34a68019
TT
49902014-06-26 Tom Tromey <tromey@redhat.com>
4991
4992 PR symtab/16902:
4993 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4994 (dwarf2_physname, read_partial_die)
4995 (guess_partial_die_structure_name, fixup_partial_die)
4996 (guess_full_die_structure_name, anonymous_struct_prefix)
4997 (dwarf2_name): Use per-BFD obstack.
4998
efc889c1
YQ
49992014-06-26 Yao Qi <yao@codesourcery.com>
5000
5001 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5002 dummyframe and this_id into inner block below.
5003
4395285e
YQ
50042014-06-26 Yao Qi <yao@codesourcery.com>
5005
5006 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5007 with "signal_pass[0]" in the initialization of signal_pass.
5008
aef92902
MM
50092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5010
5011 * record-btrace.c (record_btrace_generating_corefile)
5012 (record_btrace_prepare_to_generate_core)
5013 (record_btrace_done_generating_core): New.
5014 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5015 (record_btrace_store_registers, record_btrace_prepare_to_store):
5016 Forward request when generating a core file.
5017 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5018 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5019 to_done_generating_core.
5020
5fff78c4
MM
50212014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5022
5023 * target.h (target_ops) <to_prepare_to_generate_core>
5024 <to_done_generating_core>: New.
5025 (target_prepare_to_generate_core, target_done_generating_core): New.
5026 * target.c (target_prepare_to_generate_core)
5027 (target_done_generating_core): New.
5028 * target-delegates.c: Regenerate.
5029 * gcore.c: (write_gcore_file): Rename to ...
5030 (write_gcore_file_1): ...this.
5031 (write_gcore_file): Call target_prepare_to_generate_core
5032 and target_done_generating_core.
5033
1d1f1ccb
MM
50342014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5035
5036 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5037 * gcore.c (write_gcore_file): Free memory returned from
5038 make_corefile_notes.
5039 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5040 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5041
3343ef86
YQ
50422014-06-24 Yao Qi <yao@codesourcery.com>
5043
5044 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5045 (arm_linux_init_abi): Set skip_trampoline_code with
5046 gdbarch_skip_trampoline_code instead of
5047 find_solib_trampoline_target.
5048
18d18ac8
YQ
50492014-06-24 Yao Qi <yao@codesourcery.com>
5050
5051 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5052 arm_skip_bx_reg returns non-zero.
5053
80d8d390
YQ
50542014-06-24 Yao Qi <yao@codesourcery.com>
5055
5056 * arm-tdep.c (arm_skip_bx_reg): New function.
5057 (arm_skip_stub): Call arm_skip_bx_reg.
5058
6a18a01c
DB
50592014-06-23 Don Breazeal <donb@codesourcery.com>
5060
5061 * MAINTAINERS: Add myself as write-after-approval maintainer.
5062
8e9db26e
PA
50632014-06-23 Pedro Alves <palves@redhat.com>
5064
5065 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5066 DR_CONTROL before setting DR0..DR3.
5067 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5068 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5069 bits of DR_CONTROL related to the debug register slot being
5070 disabled. If all slots are vacant, clear local slowdown as well,
5071 and assert DR_CONTROL is 0.
5072
70afc5b7
SC
50732014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5074
5075 * python/lib/gdb/command/xmethods.py
5076 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5077 current progspace only if the string "progspace" matches LOCUS_RE.
5078
840ed64d
JK
50792014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5080
5081 Fix --with-system-readline with readline-6.3 patch 5.
5082 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5083 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5084 types.
5085
26f2dc30
TT
50862014-06-20 Tom Tromey <tromey@redhat.com>
5087
5088 * dwarf2read.c (dw2_get_real_path): Use correct type in
5089 OBSTACK_CALLOC.
5090 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5091
125f8a3d
GB
50922014-06-20 Gary Benson <gbenson@redhat.com>
5093
5094 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5095 * common/glibc_thread_db.h: Likewise.
5096 * common/i386-cpuid.h: Likewise.
5097 * common/i386-gcc-cpuid.h: Likewise.
5098 * common/linux-btrace.h: Likewise.
5099 * common/linux-osdata.h: Likewise.
5100 * common/linux-procfs.h: Likewise.
5101 * common/linux-ptrace.h: Likewise.
5102 * common/mips-linux-watch.h: Likewise.
5103 * common/linux-btrace.c: Moved to nat.
5104 * common/linux-osdata.c: Likewise.
5105 * common/linux-procfs.c: Likewise.
5106 * common/linux-ptrace.c: Likewise.
5107 * common/mips-linux-watch.c: Likewise.
5108 * nat/gdb_thread_db.h: Moved from common.
5109 * nat/glibc_thread_db.h: Likewise.
5110 * nat/i386-cpuid.h: Likewise.
5111 * nat/i386-gcc-cpuid.h: Likewise.
5112 * nat/linux-btrace.c: Likewise.
5113 * nat/linux-btrace.h: Likewise.
5114 * nat/linux-osdata.c: Likewise.
5115 * nat/linux-osdata.h: Likewise.
5116 * nat/linux-procfs.c: Likewise.
5117 * nat/linux-procfs.h: Likewise.
5118 * nat/linux-ptrace.c: Likewise.
5119 * nat/linux-ptrace.h: Likewise.
5120 * nat/mips-linux-watch.c: Likewise.
5121 * nat/mips-linux-watch.h: Likewise.
5122 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5123 (object file files): Reordered.
5124 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5125 of glibc_thread_db.h.
5126
42995dbd
GB
51272014-06-20 Gary Benson <gbenson@redhat.com>
5128
5129 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5130 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5131 (i386_dr_low): Likewise.
5132 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5133 (i386_dr_low_set_addr): Likewise.
5134 (i386_dr_low_get_addr): Likewise.
5135 (i386_dr_low_can_set_control): Likewise.
5136 (i386_dr_low_set_control): Likewise.
5137 (i386_dr_low_get_control): Likewise.
5138 (i386_dr_low_get_status): Likewise.
5139 (i386_get_debug_register_length): Likewise.
5140 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5141 (i386_dr_low): Likewise.
5142 * nat/i386-dregs.c (i386-low.h): Remove include.
5143 (i386-nat.h): Likewise.
5144 (nat/i386-dregs.h): New include.
5145 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5146 (i386_dr_low_set_addr): Likewise.
5147 (i386_dr_low_get_addr): Likewise.
5148 (i386_dr_low_can_set_control): Likewise.
5149 (i386_dr_low_set_control): Likewise.
5150 (i386_dr_low_get_control): Likewise.
5151 (i386_dr_low_get_status): Likewise.
5152 (i386_get_debug_register_length): Likewise.
5153 (debug_hw_points): Likewise.
5154
3ed9baed
IB
51552014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5156
5157 * Makefile.in (SFILES): Add d-exp.y.
5158 (YYFILES): Add d-exp.c.
5159 (YYOBJ): Add d-exp.o.
5160 (local-maintainer-clean): Delete d-exp.c.
5161 * d-exp.y: New file.
5162 * d-lang.h (d_parse): New declaration.
5163 (d_error): New declaration.
5164 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5165 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5166 PREC_ORDER operators.
5167 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5168
78c164b0
YQ
51692014-06-19 Yao Qi <yao@codesourcery.com>
5170
5171 * gdbthread.h (any_running): Remove the declaration.
5172 * thread.c (any_running): Remove.
5173
f6e29b6e
YQ
51742014-06-19 Yao Qi <yao@codesourcery.com>
5175
5176 * gdbthread.h (struct thread_info) <state>: Change its type to
5177 'enum thread_state'. Update comments.
5178
034f788c
PA
51792014-06-19 Pedro Alves <palves@redhat.com>
5180
5181 * gdbthread.h (ALL_THREADS): Delete.
5182 (ALL_NON_EXITED_THREADS): New macro.
5183 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5184 instead of ALL_THREADS.
5185 * infrun.c (find_thread_needs_step_over)
5186 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5187 instead of ALL_THREADS.
5188 * record-btrace.c (record_btrace_open)
5189 (record_btrace_stop_recording, record_btrace_close)
5190 (record_btrace_is_replaying, record_btrace_resume)
5191 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5192 * remote.c (append_pending_thread_resumptions): Likewise.
5193 * thread.c (thread_apply_all_command): Likewise.
5194
46e33252
GB
51952014-06-19 Gary Benson <gbenson@redhat.com>
5196
5197 * i386-nat.c (i386_stopped_by_watchpoint):
5198 Use i386_dr_stopped_by_watchpoint.
5199 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5200 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5201
3a8ee006
GB
52022014-06-19 Gary Benson <gbenson@redhat.com>
5203
5204 * nat/i386-dregs.c: New file.
5205 * Makefile.in (i386-dregs.o): New rule.
5206 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5207 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5208 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5209 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5210 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5211 * config/i386/go32.mh (NATDEPFILES): Likewise.
5212 * config/i386/linux.mh (NATDEPFILES): Likewise.
5213 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5214 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5215 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5216 * i386-nat.h (debug_hw_points): New declaration.
5217 * i386-nat.c (breakpoint.h): Remove include.
5218 (command.h): Likewise.
5219 (target.h): Likewise.
5220 (gdb_assert.h): Likewise.
5221 (debug_hw_points): Made nonstatic.
5222 (debug_printf): Now in i386-dregs.c.
5223 (TARGET_HAS_DR_LEN_8): Likewise.
5224 (DR_CONTROL_SHIFT): Likewise.
5225 (DR_CONTROL_SIZE): Likewise.
5226 (DR_RW_EXECUTE): Likewise.
5227 (DR_RW_WRITE): Likewise.
5228 (DR_RW_READ): Likewise.
5229 (DR_RW_IORW): Likewise.
5230 (DR_LEN_1): Likewise.
5231 (DR_LEN_2): Likewise.
5232 (DR_LEN_4): Likewise.
5233 (DR_LEN_8): Likewise.
5234 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5235 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5236 (DR_ENABLE_SIZE): Likewise.
5237 (DR_LOCAL_SLOWDOWN): Likewise.
5238 (DR_GLOBAL_SLOWDOWN): Likewise.
5239 (DR_CONTROL_RESERVED): Likewise.
5240 (I386_DR_CONTROL_MASK): Likewise.
5241 (I386_DR_VACANT): Likewise.
5242 (I386_DR_LOCAL_ENABLE): Likewise.
5243 (I386_DR_GLOBAL_ENABLE): Likewise.
5244 (I386_DR_DISABLE): Likewise.
5245 (I386_DR_SET_RW_LEN): Likewise.
5246 (I386_DR_GET_RW_LEN): Likewise.
5247 (I386_DR_WATCH_HIT): Likewise.
5248 (i386_wp_op_t): Likewise.
5249 (i386_show_dr): Likewise.
5250 (i386_length_and_rw_bits): Likewise.
5251 (i386_insert_aligned_watchpoint): Likewise.
5252 (i386_remove_aligned_watchpoint): Likewise.
5253 (i386_handle_nonaligned_watchpoint): Likewise.
5254 (i386_update_inferior_debug_regs): Likewise.
5255 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5256 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5257 (i386_region_ok_for_watchpoint):
5258 Use i386_dr_region_ok_for_watchpoint.
5259 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5260
322a8e06
GB
52612014-06-19 Gary Benson <gbenson@redhat.com>
5262
5263 * i386-nat.c (i386_insert_hw_breakpoint): Use
5264 i386_insert_watchpoint.
5265 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5266
8f26655c
GB
52672014-06-19 Gary Benson <gbenson@redhat.com>
5268
5269 * i386-nat.c (i386_dr_show): Renamed to
5270 i386_show_dr and made static. All uses updated.
5271 (i386_dr_length_and_rw_bits): Renamed to
5272 i386_length_and_rw_bits and made static.
5273 All uses updated.
5274 (i386_dr_insert_aligned_watchpoint): Renamed to
5275 i386_insert_aligned_watchpoint and made static.
5276 All uses updated.
5277 (i386_dr_remove_aligned_watchpoint): Renamed to
5278 i386_remove_aligned_watchpoint and made static.
5279 All uses updated.
5280 (i386_dr_update_inferior_debug_regs): Renamed to
5281 i386_update_inferior_debug_regs and made static.
5282 All uses updated.
5283 * nat/i386-dregs.h (i386_dr_show): Removed.
5284 (i386_dr_length_and_rw_bits): Likewise.
5285 (i386_dr_insert_aligned_watchpoint): Likewise.
5286 (i386_dr_remove_aligned_watchpoint): Likewise.
5287 (i386_dr_update_inferior_debug_regs): Likewise.
5288
992c7d70
GB
52892014-06-19 Gary Benson <gbenson@redhat.com>
5290
5291 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5292 * configure: Regenerate.
5293 * config.in: Likewise.
5294 * main.c (signal.h): New include.
5295 (setup_alternate_signal_stack): New function.
5296 (captured_main): Call the above.
5297 * cp-support.c (signal.h): New include.
5298 (catch_demangler_crashes): New flag.
5299 (SIGJMP_BUF): New define.
5300 (SIGSETJMP): Likewise.
5301 (SIGLONGJMP): Likewise.
5302 (gdb_demangle_jmp_buf): New static global.
5303 (gdb_demangle_attempt_core_dump): Likewise.
5304 (gdb_demangle_signal_handler): New function.
5305 (gdb_demangle): If catch_demangler_crashes is set, install the
5306 above signal handler before calling bfd_demangle, and restore
5307 the original signal handler afterwards. Display the offending
5308 symbol and call demangler_warning the first time a segmentation
5309 fault is caught.
5310 (_initialize_cp_support): New maint set/show command.
5311
eae7090b
GB
53122014-06-19 Gary Benson <gbenson@redhat.com>
5313
5314 * utils.h (resource_limit_kind): New enum.
5315 (can_dump_core): New declaration.
5316 (warn_cant_dump_core): Likewise.
5317 (dump_core): Likewise.
5318 * utils.c (dump_core): Made nonstatic. Added new
5319 parameter "limit_kind".
5320 (can_dump_core): Made nonstatic. Moved printing code to...
5321 (warn_cant_dump_core): New function.
5322 (can_dump_core_warn): Likewise.
5323 (internal_vproblem): Replace calls to can_dump_core with
5324 calls to can_dump_core_warn. Supply new argument to each.
5325
57fcfb1b
GB
53262014-06-19 Gary Benson <gbenson@redhat.com>
5327
5328 * utils.h (demangler_vwarning): New declaration.
5329 (demangler_warning): Likewise.
5330 * utils.c (struct internal_problem)
5331 <user_settable_should_quit>: New field.
5332 <user_settable_should_dump_core>: Likewise
5333 (internal_error_problem): Add values for above new fields.
5334 (internal_warning_problem): Likewise.
5335 (demangler_warning_problem): New static global.
5336 (demangler_vwarning): New function.
5337 (demangler_warning): Likewise.
5338 (add_internal_problem_command): Selectively add commands.
5339 (_initialize_utils): New internal problem command.
5340 * maint.c (maintenance_demangler_warning): New function.
5341 (_initialize_maint_cmds): New command.
5342
17a40b44
TT
53432014-06-18 Tom Tromey <tromey@redhat.com>
5344
5345 * f-valprint.c (info_common_command_for_block): Update.
5346 * symtab.h (struct general_symbol_info) <common_block>: Now
5347 const.
5348
346d1dfe
TT
53492014-06-18 Tom Tromey <tromey@redhat.com>
5350
5351 * symtab.h (struct symtab) <blockvector>: Now const.
5352 * ada-lang.c (ada_add_global_exceptions): Update.
5353 * buildsym.c (augment_type_symtab): Update.
5354 * dwarf2read.c (dw2_lookup_symbol): Update.
5355 * jit.c (finalize_symtab): Update.
5356 * jv-lang.c (add_class_symtab_symbol): Update.
5357 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5358 Update.
5359 * objfiles.c (objfile_relocate1): Update.
5360 * psymtab.c (lookup_symbol_aux_psymtabs)
5361 (maintenance_check_psymtabs): Update.
5362 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5363 Update.
5364 * spu-tdep.c (spu_catch_start): Update.
5365 * symmisc.c (dump_symtab_1): Update.
5366 * symtab.c (lookup_global_symbol_from_objfile)
5367 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5368 (basic_lookup_transparent_type_quick)
5369 (basic_lookup_transparent_type, find_pc_sect_symtab)
5370 (find_pc_sect_line, search_symbols): Update.
5371 * block.c (find_block_in_blockvector): Make "bl" const.
5372 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5373 const.
5374 (blockvector_contains_pc): Make "bv" const.
5375 (block_for_pc_sect): Update.
5376 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5377 (blockvector_contains_pc): Update.
5378 * breakpoint.c (resolve_sal_pc): Update.
5379 * inline-frame.c (block_starting_point_at): Update.
5380
1834676b
TT
53812014-06-18 Tom Tromey <tromey@redhat.com>
5382
5383 * completer.c (complete_line): Make "line_buffer" const.
5384 * completer.h (complete_line): Update.
5385
ac1a991b
TT
53862014-06-18 Tom Tromey <tromey@redhat.com>
5387
5388 * symtab.c (add_macro_name): Remove unneeded cast.
5389
5bc98e52
TT
53902014-06-18 Tom Tromey <tromey@redhat.com>
5391
5392 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5393 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5394
8236def8
TT
53952014-06-18 Tom Tromey <tromey@redhat.com>
5396
5397 * probe.c (info_probes_for_ops): Make "arg" const.
5398 * probe.h (info_probes_for_ops): Update.
5399
3977b71f
TT
54002014-06-18 Tom Tromey <tromey@redhat.com>
5401
5402 * varobj.c (varobj_create): Update.
5403 * valops.c (value_of_this): Update.
5404 * tracepoint.c (add_local_symbols, scope_info): Update.
5405 * symtab.h (struct general_symbol_info) <block>: Now const.
5406 * symtab.c (skip_prologue_sal)
5407 (default_make_symbol_completion_list_break_on)
5408 (skip_prologue_using_sal): Update.
5409 * stack.h (iterate_over_block_locals)
5410 (iterate_over_block_local_vars): Update.
5411 * stack.c (print_frame_args): Update.
5412 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5413 parameter const.
5414 (get_selected_block): Make return type const.
5415 * python/py-frame.c (frapy_block): Update.
5416 * python/py-block.c (gdbpy_block_for_pc): Update.
5417 * p-exp.y (%union) <bval>: Now const.
5418 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5419 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5420 * m2-exp.y (%union) <bval>: Now const.
5421 * linespec.c (get_current_search_block): Make return type const.
5422 (create_sals_line_offset, find_label_symbols): Update.
5423 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5424 Update.
5425 (block_starting_point_at): Make "block" const.
5426 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5427 (check_exception_resume): Update.
5428 * guile/scm-frame.c (gdbscm_frame_block): Update.
5429 * guile/scm-block.c (gdbscm_lookup_block): Update.
5430 * frame.h (get_frame_block): Update.
5431 (get_selected_block): Make return type const.
5432 * frame.c (frame_id_inner): Update.
5433 * f-valprint.c (info_common_command_for_block)
5434 (info_common_command): Update.
5435 * dwarf2loc.c (dwarf2_find_location_expression)
5436 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5437 (locexpr_describe_location_piece): Update.
5438 * c-exp.y (%union) <bval>: Now const.
5439 * breakpoint.c (resolve_sal_pc): Update.
5440 * blockframe.c (get_frame_block):Make return type const.
5441 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5442 (block_innermost_frame): Update.
5443 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5444 (block_for_pc, block_for_pc_sect): Update.
5445 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5446 'pblock' const.
5447 (block_for_pc_sect, block_for_pc): Make return type const.
5448 * ax-gdb.c (gen_expr): Update.
5449 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5450 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5451 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5452 (ada_read_var_value): Update.
5453 * ada-exp.y (struct name_info) <block>: Now const.
5454 (%union): Likewise.
5455 (block_lookup): Constify.
5456
b9228891
GB
54572014-06-18 Gary Benson <gbenson@redhat.com>
5458
5459 * nat/i386-dregs.h: New file.
5460 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5461 * i386-nat.h (i386-dregs.h): New include.
5462 (DR_FIRSTADDR): Now in i386-dregs.h.
5463 (DR_LASTADDR): Likewise.
5464 (DR_NADDR): Likewise.
5465 (DR_STATUS): Likewise.
5466 (DR_CONTROL): Likewise.
5467 (i386_debug_reg_state): Likewise.
5468 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5469
a1aa2221
LM
54702014-06-18 Don Breazeal <donb@codesourcery.com>
5471
5472 * breakpoint.c (set_longjmp_breakpoint): Call
5473 momentary_breakpoint_from_master with additional argument.
5474 (set_longjmp_breakpoint_for_call_dummy): Call
5475 momentary_breakpoint_from_master with additional argument.
5476 (set_std_terminate_breakpoint): Call
5477 momentary_breakpoint_from_master with additional argument.
5478 (momentary_breakpoint_from_master): Add argument to function
5479 definition and use it to initialize structure member flag.
74228e77 5480 (clone_momentary_breakpoint): Call
a1aa2221
LM
5481 momentary_breakpoint_from_master with additional argument.
5482 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5483 member flags set in momentary_breakpoint_from_master.
5484
4be83cc2
GB
54852014-06-18 Gary Benson <gbenson@redhat.com>
5486
5487 * i386-nat.c (i386_show_dr): Renamed to
5488 i386_dr_show and made nonstatic. All uses updated.
5489 (i386_length_and_rw_bits): Renamed to
5490 i386_dr_length_and_rw_bits and made nonstatic.
5491 All uses updated.
5492 (i386_insert_aligned_watchpoint): Renamed to
5493 i386_dr_insert_aligned_watchpoint and made nonstatic.
5494 All uses updated.
5495 (i386_remove_aligned_watchpoint): Renamed to
5496 i386_dr_remove_aligned_watchpoint and made nonstatic.
5497 All uses updated.
5498 (i386_update_inferior_debug_regs): Renamed to
5499 i386_dr_update_inferior_debug_regs and made nonstatic.
5500 All uses updated.
5501
131aa0d4
GB
55022014-06-18 Gary Benson <gbenson@redhat.com>
5503
5504 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5505 (i386_dr_low_can_set_control): Likewise.
5506 (i386_dr_low_set_addr): Likewise.
5507 (i386_dr_low_set_control): Likewise.
5508 (i386_dr_low_get_addr): Likewise.
5509 (i386_dr_low_get_status): Likewise.
5510 (i386_dr_low_get_control): Likewise.
5511 (i386_insert_aligned_watchpoint): Use new macros.
5512 (i386_update_inferior_debug_regs): Likewise.
5513 (i386_stopped_data_address): Likewise.
5514
d9305f7f
GB
55152014-06-18 Gary Benson <gbenson@redhat.com>
5516
5517 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5518 New parameter. All uses updated.
5519
ea008da4
GB
55202014-06-18 Gary Benson <gbenson@redhat.com>
5521
5522 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5523 All uses updated.
5524
1b6d4134
GB
55252014-06-18 Gary Benson <gbenson@redhat.com>
5526
5527 * i386-nat.c (debug_printf): New macro.
5528 (i386_get_debug_register_length): Likewise.
5529 (TARGET_HAS_DR_LEN_8): Use above macro.
5530 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5531 and printf_unfiltered. Use phex to format values.
5532
9b4550ef
GB
55332014-06-18 Gary Benson <gbenson@redhat.com>
5534
5535 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5536 Make const.
5537
6e62758f
GB
55382014-06-18 Gary Benson <gbenson@redhat.com>
5539
5540 * i386-nat.c: Comment changes.
5541
51c79e94
GB
55422014-06-18 Gary Benson <gbenson@redhat.com>
5543
5544 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5545
3e11889a
GB
55462014-06-18 Gary Benson <gbenson@redhat.com>
5547
5548 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5549 (i386_insert_aligned_watchpoint): Likewise.
5550 (i386_remove_aligned_watchpoint): Likewise.
5551 (i386_handle_nonaligned_watchpoint): Likewise.
5552
fc6e2f03
GB
55532014-06-18 Gary Benson <gbenson@redhat.com>
5554
5555 * i386-nat.c: Whitespace changes.
5556
2afe7d50
SB
55572014-06-17 Samuel Bronson <naesten@gmail.com>
5558
5559 * MAINTAINERS: Update Roland McGrath's email address.
5560 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5561 Red Hat a while ago, and giving me a current address.
2afe7d50 5562
3bca49ee
TT
55632014-06-17 Tom Tromey <tromey@redhat.com>
5564
5565 * utils.h (savestring): Remove declaration.
5566
6e366df1
TT
55672014-06-17 Tom Tromey <tromey@redhat.com>
5568
5569 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5570
6be47f0c
KS
55712014-06-16 Keith Seitz <keiths@redhat.com>
5572
5573 PR mi/15863
5574 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5575 to update the varobj if inferior_ptid is null_ptid.
5576
7bc112c1
TT
55772014-06-16 Tom Tromey <tromey@redhat.com>
5578
5579 * target.h (struct target_ops) <to_info_proc>: Make parameter
5580 const.
5581 (target_info_proc): Update.
5582 * target.c (target_info_proc): Make "args" const.
5583 * procfs.c (procfs_info_proc): Update.
5584 * linux-tdep.c (linux_info_proc): Update.
5585 (linux_core_info_proc_mappings): Make "args" const.
5586 (linux_core_info_proc): Update.
5587 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5588 * gdbarch.c: Rebuild.
5589 * gdbarch.h: Rebuild.
5590 * corelow.c (core_info_proc): Update.
5591
fee354ee
TT
55922014-06-16 Tom Tromey <tromey@redhat.com>
5593
5594 * target.h (struct target_ops) <to_disconnect>: Make parameter
5595 const.
5596 (target_disconnect): Update.
5597 * target.c (target_disconnect): Make "args" const.
5598 * target-delegates.c: Rebuild.
5599 * remote.c (remote_disconnect): Update.
5600 * record.h (record_disconnect): Update.
5601 * record.c (record_disconnect): Update.
5602 * inf-child.c (inf_child_disconnect): Update.
5603
a30bf1f1
TT
56042014-06-16 Tom Tromey <tromey@redhat.com>
5605
5606 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5607 * target.c (debug_to_rcmd, default_rcmd): Update.
5608 * target-delegates.c: Rebuild.
5609 * remote.c (remote_rcmd): Update.
5610 * monitor.c (monitor_rcmd): Update.
5611
d03de421
PA
56122014-06-16 Pedro Alves <palves@redhat.com>
5613
5614 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5615 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5616 have OBJF_SHARED set.
5617 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5618 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5619 instead of OBJF_USERLOADED.
5620 * objfiles.h (OBJF_SHARED): Update comment.
5621 (userloaded_objfile_contains_address_p): Rename to ...
5622 (shared_objfile_contains_address_p): ... this, and update
5623 comments.
5624 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5625 new objfile.
5626 (remove_symbol_file_command): Skip objfiles that don't have
5627 OBJF_SHARED set.
5628
99f4262f
TT
56292014-06-16 Tom Tromey <tromey@redhat.com>
5630
5631 * minsyms.h (prim_record_minimal_symbol)
5632 (prim_record_minimal_symbol_and_info): Update comments.
5633
97d66cc6
EZ
56342014-06-14 Eli Zaretskii <eliz@gnu.org>
5635
5636 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5637 or --without-guile, according to how GDB was built.
5638
635c7e8a
TT
56392014-06-13 Tom Tromey <tromey@redhat.com>
5640
5641 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5642 to help_list.
5643 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5644 to help_list.
5645 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5646 help_list.
5647 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5648 help_list.Pass all_commands, not -1, to help_list.
5649 * cli/cli-dump.c (dump_command, append_command)
5650 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5651 (binary_dump_command, binary_append_command): Pass all_commands,
5652 not -1, to help_list.
5653 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5654 -1, to help_list.
5655 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5656 -1, to help_list.
5657 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5658 help_list.
5659 * top.c (set_history): Pass all_commands, not -1, to help_list.
5660 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5661 all_commands, not -1, to help_list.
5662 * symfile.c (overlay_command): Pass all_commands, not -1, to
5663 help_list.
5664 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5665 help_list.
5666 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5667 help_list.
5668 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5669 -1, to help_list.
5670 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5671 not -1, to help_list.
5672 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5673 not -1, to help_list.
5674 * maint.c (maintenance_command, maintenance_info_command)
5675 (maintenance_print_command, maintenance_set_cmd): Pass
5676 all_commands, not -1, to help_list.
5677 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5678 help_list.
5679 * language.c (set_check): Pass all_commands, not -1, to help_list.
5680 * infcmd.c (unset_command): Pass all_commands, not -1, to
5681 help_list.
5682 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5683 help_list.
5684 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5685 help_list.
5686 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5687 help_list.
5688 * breakpoint.c (save_command): Pass all_commands, not -1, to
5689 help_list.
5690 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5691 all_commands, not -1, to help_list.
5692
b94ade42
PL
56932014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5694
5695 * regcache.c (struct register_to_invalidate): New structure.
5696 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5697 functions.
5698 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5699
31f628ae
YQ
57002014-06-12 Yao Qi <yao@codesourcery.com>
5701
5702 * varobj.c (varobj_get_num_children): Call
5703 varobj_is_dynamic_p.
5704 (varobj_list_children): Likewise.
5705 (varobj_update): Likewise. Update comments.
5706
cde5ef40
YQ
57072014-06-12 Yao Qi <yao@codesourcery.com>
5708
5709 * varobj.c (varobj_pretty_printed_p): Rename to ...
5710 (varobj_is_dynamic_p): ... this. New function.
5711 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5712 (varobj_is_dynamic_p): Declare.
5713 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5714 (mi_print_value_p, varobj_update_one): Likewise.
5715
576ea091
YQ
57162014-06-12 Pedro Alves <pedro@codesourcery.com>
5717 Yao Qi <yao@codesourcery.com>
5718
5719 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5720 (varobj_get_iterator): Wrap up code for pretty-printer by
5721 "#if HAVE_PYTHON" and "#endif".
5722 (update_dynamic_varobj_children): Likewise.
5723
827f100c
YQ
57242014-06-12 Pedro Alves <pedro@codesourcery.com>
5725 Yao Qi <yao@codesourcery.com>
5726
5727 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5728 gdb_python_initialized is false. Move some code from varobj.c.
5729 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5730 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5731 (struct varobj_item): Moved to varobj-iter.h".
5732 (varobj_clear_saved_item): New function.
5733 (update_dynamic_varobj_children): Move python-related code to
5734 py-varobj.c.
5735 (free_variable): Call varobj_clear_saved_item and
5736 varobj_iter_delete.
5737
e5250216
YQ
57382014-06-12 Pedro Alves <pedro@codesourcery.com>
5739 Yao Qi <yao@codesourcery.com>
5740
5741 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5742 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5743 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5744 (py-varobj.o): New rule.
5745 * python/py-varobj.c: New file.
5746 * python/python-internal.h (py_varobj_get_iterator): Declare.
5747 * varobj-iter.h: New file.
5748 * varobj.c: Include "varobj-iter.h"
5749 (struct varobj) <child_iter>: Change its type from "PyObject *"
5750 to "struct varobj_iter *".
5751 <saved_item>: Likewise.
5752 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5753 [HAVE_PYTHON] (varobj_get_iterator): New function.
5754 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5755 python-specific code to python/py-varobj.c.
5756 (install_visualizer): Call varobj_iter_delete instead of
5757 Py_XDECREF.
5758 * varobj.h (varobj_ensure_python_env): Declare.
5759
5a2e0d6e
YQ
57602014-06-12 Yao Qi <yao@codesourcery.com>
5761
5762 * varobj.c (struct varobj_item): New structure.
5763 (create_child_with_value): Update declaration.
5764 (varobj_add_child): Replace arguments 'name' and 'value' with
5765 'item'. All callers updated.
5766 (install_dynamic_child): Likewise.
5767 (update_dynamic_varobj_children): Likewise.
5768 (varobj_add_child): Likewise.
5769 (create_child_with_value): Likewise.
5770
919b9a93
JB
57712014-06-11 Joel Brobecker <brobecker@adacore.com>
5772
5773 * NEWS: Create a new section for the next release branch.
5774 Rename the section of the current branch, now that it has
5775 been cut.
5776
71a55bdf
JB
57772014-06-11 Joel Brobecker <brobecker@adacore.com>
5778
5779 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5780 * version.in: Bump version to 7.8.50.DATE-cvs.
5781
364fe1f7
PA
57822014-06-11 Pedro Alves <palves@redhat.com>
5783
5784 PR remote/17028
5785 * ser-mingw.c (net_windows_socket_check_pending): New function.
5786 (net_windows_select_thread): Ignore spurious wakeups. Use
5787 net_windows_socket_check_pending.
5788 (net_windows_wait_handle): Check for pending events with
5789 ioctlsocket, through net_windows_socket_check_pending, instead of
5790 checking the socket's event.
5791
5a6c7709
SC
57922014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5793
5794 * python/python-internal.h (gdb_PyObject_GetAttrString)
5795 (gdb_PyObject_HasAttrString): New inline function definitions.
5796 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5797 char * of the second argument to PyObject_GetAttrString.
74228e77 5798
0e58ee40
JB
57992014-06-10 Joel Brobecker <brobecker@adacore.com>
5800
5801 * serial.c (serial_write): Fix index of character to be printed
5802 in call to serial_logchar when serial debug traces are enabled.
5803
d190df30
JB
58042014-06-10 Joel Brobecker <brobecker@adacore.com>
5805
5806 * gdbtypes (resolve_dynamic_range): Add function description.
5807
b4b01d36
PA
58082014-06-09 Pedro Alves <palves@redhat.com>
5809
5810 * linux-nat.c (linux_child_follow_fork): Initialize status with
5811 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5812 inner block. Only pass the signal to PTRACE_DETACH if in pass
5813 state.
5814
3657956b
GB
58152014-06-09 Gary Benson <gbenson@redhat.com>
5816
5817 * common/signals.c (gdb_signal_from_host): Reorder to separate
5818 the always-available ANSI-standard signals from the signals that
5819 require checking.
5820 (do_gdb_signal_to_host): Likewise.
5821 * proc-events.c (signal_table): Likewise.
5822
c077881a
HZ
58232014-06-08 Hui Zhu <hui@codesourcery.com>
5824
5825 * common/linux-ptrace.c (linux_disable_event_reporting): New
5826 function.
5827 * common/linux-ptrace.h (linux_disable_event_reporting): New
5828 declaration.
5829 * linux-nat.c (linux_child_follow_fork): Do a single step before
5830 detach.
5831
4186eb54
KS
58322014-06-07 Keith Seitz <keiths@redhat.com>
5833
5834 Revert:
5835 PR c++/16253
5836 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5837 from symbol_matches_domain in symtab.c. All local callers
5838 of symbol_matches_domain updated.
5839 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5840 search STRUCT_DOMAIN.
5841 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5842 independently. standard_lookup will do that automatically.
5843 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5844 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5845 (cp_lookup_symbol_in_namespace): Likewise.
5846 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5847 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5848 may return a STRUCT_DOMAIN match.
5849 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5850 * cp-support.c: Include language.h.
5851 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5852 VAR_DOMAIN.
5853 * psymtab.c (match_partial_symbol): Compare the requested
5854 domain with the symbol's domain directly.
5855 (lookup_partial_symbol): Likewise.
5856 * symtab.c (lookup_symbol_in_language): Explain when/why
5857 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5858 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5859 appropriate languages.
5860 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5861 and moved to ada-lang.c
5862 (lookup_block_symbol): Explain that this function only returns
5863 symbol matching the requested DOMAIN.
5864 Compare the requested domain with the symbol's domain directly.
5865 (iterate_over_symbols): Compare the requested domain with the
5866 symbol's domain directly.
5867 * symtab.h (symbol_matches_domain): Remove.
5868
25326a28 58692014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5870
5871 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5872 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5873 (gdbscm_guile_version_is_at_least): Declare.
5874 (gdbscm_scm_string_to_int): Declare.
5875 * guile/guile.c (gdbscm_guile_major_version): New global.
5876 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5877 (guile_datadir): New static global.
5878 (gdbscm_guile_data_directory): New function.
5879 (initialize_scheme_side): Update.
5880 (misc_guile_functions): Add guile-data-directory.
5881 (initialize_gdb_module): Fetch guile version number.
5882 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5883 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5884 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5885 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5886 comments.
5887 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5888 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5889 * guile/scm-value.c (gdbscm_value_to_string): Only call
5890 scm_port_conversion_strategy if Guile version >= 2.0.6.
5891
0a770bb2 58922014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5893
5894 * main.c (print_gdb_help): Add -q and --silent.
5895
73ba372c
GB
58962014-06-06 Gary Benson <gbenson@redhat.com>
5897
5898 * common/signals.c: Remove preprocessor conditionals for
5899 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5900 SIGSEGV and SIGTERM.
5901 * proc-events.c: Likewise.
5902
c33b2f12
MM
59032014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5904
5905 * symfile.c (symfile_free_objfile): Remove restriction to
5906 OBJF_USERLOADED.
5907 * symfile-mem.c (symbol_file_add_from_memory): Call
5908 add_target_sections_of_objfile.
5909
fb934770
LC
59102014-06-05 Ludovic Courtès <ludo@gnu.org>
5911
5912 * guile/scm-value.c (gdbscm_history_append_x): Use
5913 'vlscm_get_value_smob_arg_unsafe' instead of
5914 'vlscm_scm_to_value'.
5915
6ef284bd
SM
59162014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5917
5918 PR mi/15806
5919 * utils.c (printchar): Don't escape at all if quoter is NUL.
5920 Update function documentation to clarify effect of parameter
5921 QUOTER.
5922 * remote.c (escape_buffer): Pass '\\' as the quoter to
5923 fputstrn_unfiltered.
5924 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5925 generate the output.
5926 (mi_solib_unloaded): Same.
5927
270c9937
JB
59282014-06-05 Joel Brobecker <brobecker@adacore.com>
5929
5930 * development.sh: Delete.
5931 * Makefile.in (config.status): Adjust dependency on development.sh.
5932 * configure.ac: Adjust development.sh source call.
5933 * configure: Regenerate.
5934
16f691fb
DE
59352014-06-04 Doug Evans <xdje42@gmail.com>
5936
5937 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5938 is_scheme_bkpt, spec.
5939 (bpscm_make_breakpoint_smob): Initialize new members.
5940 (gdbscm_create_breakpoint_x): Split into two ...
5941 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5942 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5943 (scheme_function breakpoint_functions): Update.
5944 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5945 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5946 register-breakpoint!.
5947
ef7cab6b
JB
59482014-06-04 Joel Brobecker <brobecker@adacorer.com>
5949
5950 PR server/17023
5951 * mem-break.c (z_type_supported): Return zero if
5952 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5953
012370f6
TT
59542014-06-04 Tom Tromey <tromey@redhat.com>
5955
5956 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5957 value_from_contents_and_address_unresolved.
5958 (ada_template_to_fixed_record_type_1): Likewise.
5959 (ada_which_variant_applies): Likewise.
5960 * value.h (value_from_contents_and_address_unresolved): Declare.
5961 * value.c (value_from_contents_and_address_unresolved): New
5962 function.
5963 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5964 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5965 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5966
92e2a17f
TT
59672014-06-04 Tom Tromey <tromey@redhat.com>
5968
5969 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5970
c0939df1
TT
59712014-06-04 Tom Tromey <tromey@redhat.com>
5972
5973 * procfs.c (procfs_attach): Make "args" const.
5974 * windows-nat.c (windows_attach): Make "args" const.
5975 * nto-procfs.c (procfs_attach): Make "args" const.
5976 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5977 * go32-nat.c (go32_attach): Make "args" const.
5978 * gnu-nat.c (gnu_attach): Make "args" const.
5979 * darwin-nat.c (darwin_attach): Make "args" const.
5980 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5981 * linux-nat.c (linux_nat_attach): Make "args" const.
5982 * remote.c (extended_remote_attach_1, extended_remote_attach):
5983 Make "args" const.
5984 * target.h (struct target_ops) <to_attach>: Make "args" const.
5985 (find_default_attach): Likewise.
5986 * utils.c (parse_pid_to_attach): Make "args" const.
5987 * utils.h (parse_pid_to_attach): Update.
5988
8eaff7cd
TT
59892014-06-04 Tom Tromey <tromey@redhat.com>
5990
5991 * target-delegates.c: Rebuild.
5992 * target.c (default_thread_address_space): New function.
5993 (target_thread_address_space): Simplify.
5994 * target.h (struct target_ops) <to_thread_address_space>: Add
5995 TARGET_DEFAULT_FUNC.
5996
1913f160
DE
59972014-06-04 Doug Evans <xdje42@gmail.com>
5998
5999 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6000
70ad5bff
MM
60012014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6002
6003 * record-btrace.c: Include event-loop.h and inf-loop.h.
6004 (record_btrace_resume_exec_dir)
6005 (record_btrace_async_inferior_event_handler)
6006 (record_btrace_handle_async_inferior_event): New.
6007 (record_btrace_open): Create async event handler.
6008 (record_btrace_close): Delete async event handler.
6009 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6010 Mark async event handler.
6011 (record_btrace_execution_direction): New.
6012 (init_record_btrace_ops): Initialize to_execution_direction.
6013
b6210538
DE
60142014-06-03 Doug Evans <xdje42@gmail.com>
6015
6016 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6017 (gdbscm_make_parameter): Ditto.
6018
a5b1fd27
DE
60192014-06-03 Doug Evans <dje@google.com>
6020
6021 * exec.c (exec_close_1): Call clear_section_table instead of
6022 resize_section_table.
6023 (clear_section_table): New function.
6024 (resize_section_table): Make static. Rename arg num_added to
6025 adjustment.
6026 * exec.h (clear_section_table): Declare.
6027 (resize_section_table): Delete.
6028 * progspace.c (release_program_space): Call clear_section_table
6029 instead of resize_section_table.
6030
0c6e92a5
SC
60312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6032
6033 * NEWS (Python Scripting): Add entry about the new xmethods
6034 feature.
6035
883964a7
SC
60362014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6037
6038 * python/py-xmethods.c: New file.
6039 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6040 (objfpy_dealloc): XDECREF on the new xmethods field.
6041 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6042 field.
6043 (objfpy_get_xmethods): New function.
6044 (objfile_getset): New entry 'xmethods'.
6045 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6046 (pspy_dealloc): XDECREF on the new xmethods field.
6047 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6048 field.
6049 (pspy_get_xmethods): New function.
6050 (pspace_getset): New entry 'xmethods'.
6051 * python/python-internal.h: Add declarations for new functions.
6052 * python/python.c (_initialize_python): Invoke
6053 gdbpy_initialize_xmethods.
6054 * python/lib/gdb/__init__.py (xmethods): New
6055 attribute.
6056 * python/lib/gdb/xmethod.py: New file.
6057 * python/lib/gdb/command/xmethods.py: New file.
6058
58992dc5
SC
60592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6060
6061 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6062 best match method returned by find_overload_match is an xmethod.
6063 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6064 the best matching operator returned by find_overload_match is an
6065 xmethod.
6066 * valops.c: #include "extension.h".
6067 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6068 Return void. The list of matching source methods is returned in
6069 "fn_list" and a vector of matching debug method workers is
6070 returned in "xm_worker_vec". Update all callers.
6071 (value_find_oload_method_list): Likewise.
6072 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6073 non-NULL, then the index of the best matching method in this
6074 vector is returned. Update all callers.
6075 (find_overload_match): Include xmethods while performing overload
6076 resolution.
6077
e81e7f5e
SC
60782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6079
6080 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6081 * extension-priv.h (struct extension_language_ops): Add the
6082 xmethod interface.
6083 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6084 get_matching_xmethod_workers, get_xmethod_argtypes,
6085 invoke_xmethod, free_xmethod_worker,
6086 free_xmethod_worker_vec): New functions.
6087 * extension.h: #include "common/vec.h".
6088 New function declarations.
6089 (struct xmethod_worker): New struct.
6090 (VEC (xmethod_worker_ptr)): New vector type.
6091 (xmethod_worker_ptr): New typedef.
6092 (xmethod_worker_vec): Likewise.
6093 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6094 builtin_type.
6095 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6096 (struct builtin_type): New field "xmethod".
6097 * valarith.c (value_ptradd): Assert that the value argument is not
6098 lval_xcallable.
6099 * valops.c (value_must_coerce_to_target): Return 0 for
6100 lval_xcallable values.
6101 * value.c (struct value): New field XM_WORKER in the field
6102 LOCATION.
6103 (value_address, value_raw_address): Return 0 for lval_xcallable
6104 values.
6105 (set_value_address): Assert that the value is not an
6106 lval_xcallable.
6107 (value_free): Free the associated xmethod worker when freeing
6108 lval_xcallable values.
6109 (set_value_component_location): Assert that the WHOLE value is not
6110 lval_xcallable.
6111 (value_of_xmethod, call_xmethod): New functions.
6112 * value.h: Declare "struct xmethod_worker".
6113 Declare new functions value_of_xmethod, call_xmethod.
6114
ef370185
JB
61152014-06-03 Joel Brobecker <brobecker@adacore.com>
6116 Pedro Alves <palves@redhat.com>
6117
6118 PR breakpoints/17000
6119 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6120 New function, extracted from software_breakpoint_inserted_here_p.
6121 (software_breakpoint_inserted_here_p): Replace factored out code
6122 by call to find_non_raw_software_breakpoint_inserted_here.
6123 (bp_target_info_copy_insertion_state): New function.
6124 (bkpt_insert_location): Handle the case of a single-step
6125 breakpoint already inserted at the same address.
6126 (bkpt_remove_location): Handle the case of a single-step
6127 breakpoint still inserted at the same address.
6128 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6129 breakpoint already inserted at the same address.
6130 (deprecated_remove_raw_breakpoint): Handle the case of a
6131 non-raw breakpoint still inserted at the same address.
6132 (find_single_step_breakpoint): New function, extracted from
6133 single_step_breakpoint_inserted_here_p.
6134 (find_single_step_breakpoint): New function,
6135 factored out from single_step_breakpoint_inserted_here_p.
6136 (single_step_breakpoint_inserted_here_p): Reimplement.
6137
1e2ccb61
BM
61382014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6139
6140 Pushed by Joel Brobecker <brobecker@adacore.com>
6141 * source.c (show_substitute_path_command): Fix display of matching
6142 substitution rules.
6143
d3448d85
GB
61442014-06-03 Gary Benson <gbenson@redhat.com>
6145
6146 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6147
06eb1586
DE
61482014-06-02 Doug Evans <xdje42@gmail.com>
6149
6150 Add parameter support for Guile.
6151 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6152 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6153 (scm-param.o): New rule.
6154 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6155 (gdbscm_misc_error): Declare.
6156 (gdbscm_canonicalize_command_name): Declare.
6157 (gdbscm_scm_to_host_string): Declare.
6158 (gdbscm_scm_from_host_string): Declare.
6159 (gdbscm_initialize_parameters): Declare.
6160 * guile/guile.c (initialize_gdb_module): Call
6161 gdbscm_initialize_parameters.
6162 * guile/lib/gdb.scm: Export parameter symbols.
6163 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6164 cmdscm_canonicalize_name and made public. All callers updated.
6165 * guile/scm-exception.c (gdbscm_misc_error): New function.
6166 * guile/scm-param.c: New file.
6167 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6168 (gdbscm_scm_to_host_string): New function.
6169 (gdbscm_scm_from_host_string): New function.
6170 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6171
e698b8c4
DE
61722014-06-02 Doug Evans <xdje42@gmail.com>
6173
6174 Add command support for Guile.
6175 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6176 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6177 (scm-cmd.o): New rule.
6178 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6179 (gdbscm_user_error_p): Declare.
6180 (gdbscm_parse_command_name): Declare.
6181 (gdbscm_valid_command_class_p): Declare.
6182 (gdbscm_initialize_commands): Declare.
6183 * guile/guile.c (initialize_gdb_module): Call
6184 gdbscm_initialize_commands.
6185 * guile/lib/gdb.scm: Export command symbols.
6186 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6187 (throw-user-error): New function.
6188 * guile/scm-cmd.c: New file.
6189 * guile/scm-exception.c (user_error_symbol): New static global.
6190 (gdbscm_user_error_p): New function.
6191 (gdbscm_initialize_exceptions): Set user_error_symbol.
6192 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6193
fb1f94b0
PM
61942014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6195
6196 * top.c (command_loop): Handle comments here...
6197 (command_line_input): ... not here.
6198
ded03782
DE
61992014-06-02 Doug Evans <xdje42@gmail.com>
6200
6201 Add progspace support for Guile.
6202 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6203 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6204 (scm-progspace.o): New rule.
6205 * guile/guile-internal.h (pspace_smob): New typedef.
6206 (psscm_pspace_smob_pretty_printers): Declare.
6207 (psscm_pspace_smob_from_pspace): Declare.
6208 (psscm_scm_from_pspace): Declare.
6209 * guile/guile.c (initialize_gdb_module): Call
6210 gdbscm_initialize_pspaces.
6211 * guile/lib/gdb.scm: Export progspace symbols.
6212 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6213 support.
6214 (append-pretty-printer!): Ditto.
6215 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6216 Implement.
6217 * guile/scm-progspace.c: New file.
6218
397998fc
AM
62192014-06-03 Alan Modra <amodra@gmail.com>
6220
6221 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6222 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6223
6aa5f3a6
DE
62242014-06-02 Doug Evans <dje@google.com>
6225
6226 Add support for skeletonless type units.
6227 * dwarf2read.c (struct dwarf2_per_objfile): New member
6228 n_allocated_type_units.
6229 (struct dwarf2_per_objfile) <tu_stats>: New member
6230 nr_all_type_units_reallocs.
6231 (create_signatured_type_table_from_index): Initialize
6232 n_allocated_type_units
6233 (create_all_type_units): Ditto.
6234 (add_type_unit): Move up in file. New arg slot.
6235 All callers updated. Increase space for all_type_units more
6236 efficiently.
6237 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6238 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6239 (lookup_dwp_signatured_type): Ditto.
6240 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6241 All callers updated.
6242 (build_type_psymtabs_1): Leave type_unit_groups as
6243 NULL if no TUs present.
6244 (print_tu_stats): New function.
6245 (process_skeletonless_type_unit): New function.
6246 (process_dwo_file_for_skeletonless_type_units): New
6247 function.
6248 (process_skeletonless_type_units): New function.
6249 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6250 Call print tu_stats if debugging enabled.
6251
41fac0cf
PA
62522014-06-02 Pedro Alves <palves@redhat.com>
6253
6254 * breakpoint.c (build_target_command_list): Don't build a command
6255 list if we have any duplicate location that isn't a dprintf.
6256
cd1608cc
PA
62572014-06-02 Pedro Alves <palves@redhat.com>
6258
6259 * breakpoint.c (dprintf_breakpoint_hit): New function.
6260 (initialize_breakpoint_ops): Install it as dprintf's
6261 breakpoint_hit method.
6262
486ef3b9
JB
62632014-06-02 Joel Brobecker <brobecker@adacore.com>
6264
6265 * source.c (substitute_path_rule_matches): Simplify using
6266 filename_ncmp instead of FILENAME_CMP.
6267
230cd560
JB
62682014-06-02 Joel Brobecker <brobecker@adacore.com>
6269
6270 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6271
16954d5d
LC
62722014-06-01 Ludovic Courtès <ludo@gnu.org>
6273
6274 * configure.ac: When Guile is available, check for the
6275 availability of 'scm_new_smob'.
6276 * configure, config.h.in: Regenerate.
6277 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6278 function.
6279
53e8a631
AB
62802014-05-30 Andrew Burgess <aburgess@broadcom.com>
6281
6282 * frame.c (struct frame_info): Add stop_string field.
6283 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6284 (get_prev_frame_always): Old content moved into
6285 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6286 TRY_CATCH, handle MEMORY_ERROR exceptions.
6287 (frame_stop_reason_string): New function definition.
6288 * frame.h (unwind_stop_reason_to_string): Extend comment to
6289 mention frame_stop_reason_string.
6290 (frame_stop_reason_string): New function declaration.
6291 * stack.c (frame_info): Switch to frame_stop_reason_string.
6292 (backtrace_command_1): Switch to frame_stop_reason_string.
6293 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6294 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6295 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6296
70e38b8e
AB
62972014-05-30 Andrew Burgess <aburgess@broadcom.com>
6298
6299 * frame.c (frame_stop_reason_string): Rename to ...
6300 (unwind_stop_reason_to_string): this.
6301 * frame.h (frame_stop_reason_string): Rename to ...
6302 (unwind_stop_reason_to_string): this.
6303 * stack.c (frame_info): Update call to frame_stop_reason_string.
6304 (backtrace_command_1): Likewise.
6305 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6306 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6307
938f0e2f
AB
63082014-05-30 Andrew Burgess <aburgess@broadcom.com>
6309
6310 * frame.c (remove_prev_frame): New function.
6311 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6312 remove_prev_frame.
6313
a09dd441
PA
63142014-05-29 Pedro Alves <palves@redhat.com>
6315
6316 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6317 and make it const. When a single-step decays to a continue,
6318 clear 'step', not 'hw_step'. Pass whether the caller wanted
6319 to step to user_visible_resume_ptid, not what we ask the
6320 target to do.
6321
bdc36728
PA
63222014-05-29 Pedro Alves <palves@redhat.com>
6323
6324 * infrun.c (process_event_stop_test, handle_step_into_function)
6325 (handle_step_into_function_backward): Adjust.
6326 Don't set the even thread's stop_step and call stop_waiting before
6327 calling end_stepping_range. Instead do that ...
6328 (end_stepping_range): ... here. Take an ecs pointer parameter.
6329
22bcd14b
PA
63302014-05-29 Pedro Alves <palves@redhat.com>
6331
6332 * infrun.c (stop_stepping): Rename to ...
6333 (stop_waiting): ... this.
6334 (proceed): Update comment.
6335 (process_event_stop_test, handle_inferior_event)
6336 (handle_signal_stop, handle_step_into_function)
6337 (handle_step_into_function_backward): Update.
6338
4ae57c05
PA
63392014-05-29 Pedro Alves <palves@redhat.com>
6340
6341 * infcall.c (run_inferior_call): Don't check whether the current
6342 thread is running after the proceed call.
6343
329ea579
PA
63442014-05-29 Pedro Alves <palves@redhat.com>
6345 Tom Tromey <tromey@redhat.com>
6346
6347 * NEWS: Mention "maint set target-async", "set mi-async", and that
6348 background execution commands are now always available.
6349 * target.h (target_async_permitted): Update comment.
6350 * target.c (target_async_permitted, target_async_permitted_1):
6351 Default to 1.
6352 (set_target_async_command): Rename to ...
6353 (maint_set_target_async_command): ... this.
6354 (show_target_async_command): Rename to ...
6355 (maint_show_target_async_command): ... this.
6356 (_initialize_target): Adjust.
6357 * infcmd.c (prepare_execution_command): Make extern.
6358 * inferior.h (prepare_execution_command): Declare.
6359 * infrun.c (set_observer_mode): Leave target async alone.
6360 * mi/mi-interp.c (mi_interpreter_init): Install
6361 mi_on_sync_execution_done as sync_execution_done observer.
6362 (mi_on_sync_execution_done): New function.
6363 (mi_execute_command_input_handler): Don't print the prompt if we
6364 just started a synchronous command with an async target.
6365 (mi_on_resume): Check sync_execution before printing prompt.
6366 * mi/mi-main.h (mi_async_p): Declare.
6367 * mi/mi-main.c: Include gdbcmd.h.
6368 (mi_async_p): New function.
6369 (mi_async, mi_async_1): New globals.
6370 (set_mi_async_command, show_mi_async_command, mi_async): New
6371 functions.
6372 (exec_continue): Call prepare_execution_command.
6373 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6374 (mi_execute_async_cli_command): Use mi_async_p.
6375 (_initialize_mi_main): Install "set mi-async". Make
6376 "target-async" a deprecated alias.
6377
92bcb5f9
PA
63782014-05-29 Pedro Alves <palves@redhat.com>
6379
6380 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6381 (_initialize_cli_interp): Adjust.
6382 * event-loop.c: Include "observer.h".
6383 (start_event_loop): Notify 'command_error' observers instead of
6384 calling display_gdb_prompt. Remove FIXME comment.
6385 * event-top.c (display_gdb_prompt): Remove call into the
6386 interpreters.
6387 * inf-loop.c: Include "observer.h".
6388 (inferior_event_handler): Notify 'command_error' observers instead
6389 of calling display_gdb_prompt.
6390 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6391 observers instead of calling display_gdb_prompt.
6392 * interps.c (interp_set): Don't call display_gdb_prompt.
6393 (current_interp_display_prompt_p): Delete.
6394 * interps.h (interp_prompt_p): Delete declaration.
6395 (interp_prompt_p_ftype): Delete.
6396 (struct interp_procs) <prompt_proc_p>: Delete field.
6397 (current_interp_display_prompt_p): Delete declaration.
6398 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6399 (_initialize_mi_interp): Adjust.
6400 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6401 'command_error' observers.
6402 (tui_on_sync_execution_done, tui_on_command_error): New
6403 functions.
6404 (tui_display_prompt_p): Delete.
6405 (_initialize_tui_interp): Adjust.
6406
fd664c91
PA
64072014-05-29 Pedro Alves <palves@redhat.com>
6408
6409 PR gdb/13860
6410 * cli/cli-interp.c: Include infrun.h and observer.h.
6411 (cli_uiout, cli_interp): New globals.
6412 (cli_on_signal_received, cli_on_end_stepping_range)
6413 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6414 functions.
6415 (cli_interpreter_init): Install them as 'end_stepping_range',
6416 'signal_received' 'signal_exited', 'exited' and 'no_history'
6417 observers.
6418 (_initialize_cli_interp): Remove cli_interp local.
6419 * infrun.c (handle_inferior_event): Call the several stop reason
6420 observers instead of printing the stop reason directly.
6421 (end_stepping_range): New function.
6422 (print_end_stepping_range_reason, print_signal_exited_reason)
6423 (print_exited_reason, print_signal_received_reason)
6424 (print_no_history_reason): Make static, and add an uiout
6425 parameter. Print to that instead of to CURRENT_UIOUT.
6426 * infrun.h (print_end_stepping_range_reason)
6427 (print_signal_exited_reason, print_exited_reason)
6428 (print_signal_received_reason print_no_history_reason): New
6429 declarations.
6430 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6431 'mi_uiout'.
6432 <cli_uiout>: New field.
6433 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6434 uiout for CLI output. Install 'signal_received',
6435 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6436 observers.
6437 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6438 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6439 (mi_on_no_history): New functions.
6440 (ui_out_free_cleanup): Delete function.
6441 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6442 instead use the one already stored in the MI interpreter data.
6443 (mi_ui_out): Adjust.
6444 * tui/tui-interp.c: Include infrun.h and observer.h.
6445 (tui_interp): New global.
6446 (tui_on_signal_received, tui_on_end_stepping_range)
6447 (tui_on_signal_exited, tui_on_exited)
6448 (tui_on_no_history): New functions.
6449 (tui_init): Install them as 'end_stepping_range',
6450 'signal_received' 'signal_exited', 'exited' and 'no_history'
6451 observers.
6452 (_initialize_tui_interp): Delete tui_interp local.
6453
8817a6f2
PA
64542014-05-29 Pedro Alves <palves@redhat.com>
6455
6456 PR gdb/15713
6457 * linux-nat.c (linux_nat_resume_callback): Rename the second
6458 parameter to 'except'. Skip LP if it points to EXCEPT.
6459 (linux_nat_resume): Don't mark the event lwp as not stopped
6460 before resuming sibling lwps. Instead ask
6461 linux_nat_resume_callback to skip the event lwp. Mark it as not
6462 stopped after actually resuming it.
6463 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6464 resuming it.
6465 (wait_lwp): Mark the lwp as stopped here.
6466 (stop_wait_callback): Mark the lwp as not stopped right after
6467 resuming it. Don't mark lwps as stopped here.
6468 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6469 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6470
251bde03
PA
64712014-05-29 Pedro Alves <palves@redhat.com>
6472
6473 PR PR15693
6474 * infrun.c (resume): Determine how much to resume depending on
6475 whether the caller wanted a step, not whether we can hardware step
6476 the target. Mark all threads that we intend to run as running,
6477 unless we're calling an inferior function.
6478 (normal_stop): If the thread is running an infcall, don't finish
6479 thread state.
6480 * target.c (target_resume): Don't mark threads as running here.
6481
7f3c0343
JB
64822014-05-28 Joel Brobecker <brobecker@adacore.com>
6483
6484 * serial.c (_initialize_serial): Remove support for
6485 the "set remotebaud" and "show remotebaud" commands.
6486 * NEWS: Add entry documenting the removal of that command.
6487
ee34b3f9
YQ
64882014-05-28 Yao Qi <yao@codesourcery.com>
6489
6490 * charset.c: Fix typo in comments.
6491
add6c04d
GB
64922014-05-27 Gary Benson <gbenson@redhat.com>
6493
6494 * utils.c (internal_vproblem): Prompt for a bug report.
6495
92c48fc5
AW
64962014-05-26 Andy Wingo <wingo@igalia.com>
6497
6498 * guile/scm-arch.c (arscm_mark_arch_smob):
6499 * guile/scm-block.c (bkscm_mark_block_smob)
6500 (bkscm_mark_block_syms_progress_smob):
6501 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6502 * guile/scm-exception.c (exscm_mark_exception_smob):
6503 * guile/scm-frame.c (frscm_mark_frame_smob):
6504 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6505 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6506 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6507 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6508 (ppscm_mark_pretty_printer_worker_smob):
6509 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6510 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6511 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6512 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6513 mark functions.
6514 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6515 function.
6516
b2715b27
AW
65172014-05-26 Andy Wingo <wingo@igalia.com>
6518 Doug Evans <xdje42@gmail.com>
6519
6520 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6521 empty_base_class. All uses updated.
6522 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6523 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6524 Adapt all callers.
6525 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6526 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6527 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6528 (gdbscm_gsmob_has_property_p, add_property_name)
6529 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6530 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6531 (gdb-object-has-property?, gdb-object-properties): Remove.
6532 (gdb-object-kind): Renamed from gsmob-kind.
6533
214ab2da
AW
65342014-05-26 Andy Wingo <wingo@igalia.com>
6535
6536 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6537 * configure: Regenerate.
6538
589fdceb
MM
65392014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6540
6541 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6542
67b5c0c1
MM
65432014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6544
6545 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6546 (replay_memory_access_read_only, replay_memory_access_read_write)
6547 (replay_memory_access_types, replay_memory_access)
6548 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6549 (cmd_set_record_btrace, cmd_show_record_btrace)
6550 (cmd_show_replay_memory_access): New.
6551 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6552 (record_btrace_remove_breakpoint): Replace
6553 record_btrace_allow_memory_access with replay_memory_access.
6554 (_initialize_record_btrace): Add commands.
6555 * NEWS: Announce it.
6556
036cd381
RR
65572014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6558
6559 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6560
c77c1e42
RR
65612014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6562
6563 * MAINTAINERS (Write After Approval): Move self back from
6564 paper trail.
6565
45741a9c
PA
65662014-05-22 Pedro Alves <palves@redhat.com>
6567
6568 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6569 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6570 (disable_randomization, enum exec_direction_kind)
6571 (execution_direction, stop_registers, start_remote)
6572 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6573 (wait_for_inferior, normal_stop, get_last_target_status)
6574 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6575 (insert_step_resume_breakpoint_at_sal)
6576 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6577 (set_step_info, print_stop_event, signal_stop_state)
6578 (signal_print_state, signal_pass_state, signal_stop_update)
6579 (signal_print_update, signal_pass_update)
6580 (update_signals_program_target, clear_exit_convenience_vars)
6581 (displaced_step_dump_bytes, update_observer_mode)
6582 (signal_catch_update, gdb_signal_from_command): Move
6583 declarations ...
6584 * infrun.h: ... to this new file.
6585 * amd64-tdep.c: Include infrun.h.
6586 * annotate.c: Include infrun.h.
6587 * arch-utils.c: Include infrun.h.
6588 * arm-linux-tdep.c: Include infrun.h.
6589 * arm-tdep.c: Include infrun.h.
6590 * break-catch-sig.c: Include infrun.h.
6591 * breakpoint.c: Include infrun.h.
6592 * common/agent.c: Include infrun.h instead of inferior.h.
6593 * corelow.c: Include infrun.h.
6594 * event-top.c: Include infrun.h.
6595 * go32-nat.c: Include infrun.h.
6596 * i386-tdep.c: Include infrun.h.
6597 * inf-loop.c: Include infrun.h.
6598 * infcall.c: Include infrun.h.
6599 * infcmd.c: Include infrun.h.
6600 * infrun.c: Include infrun.h.
6601 * linux-fork.c: Include infrun.h.
6602 * linux-nat.c: Include infrun.h.
6603 * linux-thread-db.c: Include infrun.h.
6604 * monitor.c: Include infrun.h.
6605 * nto-tdep.c: Include infrun.h.
6606 * procfs.c: Include infrun.h.
6607 * record-btrace.c: Include infrun.h.
6608 * record-full.c: Include infrun.h.
6609 * remote-m32r-sdi.c: Include infrun.h.
6610 * remote-mips.c: Include infrun.h.
6611 * remote-notif.c: Include infrun.h.
6612 * remote-sim.c: Include infrun.h.
6613 * remote.c: Include infrun.h.
6614 * reverse.c: Include infrun.h.
6615 * rs6000-tdep.c: Include infrun.h.
6616 * s390-linux-tdep.c: Include infrun.h.
6617 * solib-irix.c: Include infrun.h.
6618 * solib-osf.c: Include infrun.h.
6619 * solib-svr4.c: Include infrun.h.
6620 * target.c: Include infrun.h.
6621 * top.c: Include infrun.h.
6622 * windows-nat.c: Include infrun.h.
6623 * mi/mi-interp.c: Include infrun.h.
6624 * mi/mi-main.c: Include infrun.h.
6625 * python/py-threadevent.c: Include infrun.h.
6626
98eb56a4
PA
66272014-05-22 Pedro Alves <palves@redhat.com>
6628
6629 * infrun.c (handle_inferior_event): Store the exit code for
6630 --return-child-result here, instead of ...
6631 (print_exited_reason): ... here.
6632
17b2616c
PA
66332014-05-21 Pedro Alves <palves@redhat.com>
6634
6635 PR gdb/13860
6636 * gdbthread.h (struct thread_control_state): New field
6637 `command_interp'.
6638 * infrun.c (follow_fork): Copy the new thread control field to the
6639 child fork thread.
6640 (clear_proceed_status_thread): Clear the new thread control field.
6641 (proceed): Set the new thread control field.
6642 * interps.h (command_interp): Declare.
6643 * interps.c (command_interpreter): New global.
6644 (command_interp): New function.
6645 (interp_exec): Set `command_interpreter' while here.
6646 * cli-out.c (cli_uiout_dtor): New function.
6647 (cli_ui_out_impl): Install it.
6648 * mi/mi-interp.c: Include cli-out.h.
6649 (mi_cmd_interpreter_exec): Add comment.
6650 (restore_current_uiout_cleanup): New function.
6651 (ui_out_free_cleanup): New function.
6652 (mi_on_normal_stop): If finishing an execution command started by
6653 a CLI command, or any kind of breakpoint-like event triggered,
6654 print the stop event to the output (CLI) stream.
6655 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6656
5166082f
PA
66572014-05-21 Pedro Alves <palves@redhat.com>
6658
6659 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6660 current source line having changed.
6661 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6662 * infrun.c (normal_stop): Adjust call to
6663 set_current_sal_from_frame.
6664 * source.c (clear_lines_listed_range): New function.
6665 (set_current_source_symtab_and_line, identify_source_line): Clear
6666 the lines listed range.
6667 (line_info): Handle the first "info line" after the current source
6668 line having changed.
6669 * stack.c (print_stack_frame): Remove center handling.
6670 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6671 center sal.line.
6672
c1ee2fb3
PA
66732014-05-21 Pedro Alves <palves@redhat.com>
6674
6675 * inf-child.c (inf_child_mourn_inferior): New function.
6676 * inf-child.h (inf_child_mourn_inferior): New declaration.
6677 * darwin-nat.c (darwin_mourn_inferior): Use
6678 inf_child_mourn_inferior.
6679 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6680 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6681 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6682 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6683 * windows-nat.c (windows_mourn_inferior): Likewise.
6684
5c6d4fb2
DE
66852014-05-21 Doug Evans <xdje42@gmail.com>
6686
250748cb 6687 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6688
4a2722c5
DE
66892014-05-21 Doug Evans <xdje42@gmail.com>
6690
17292b30 6691 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6692 (gdbscm_out_of_range_error): Ditto.
6693 (gdbscm_memory_error): Ditto.
250748cb
DE
6694 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6695 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6696 (gdbscm_out_of_range_error): Update.
6697 (gdbscm_memory_error): Update.
6698 (gdbscm_scm_to_target_string_unsafe): Delete.
6699
6a3cb8e8
PA
67002014-05-21 Pedro Alves <palves@redhat.com>
6701
6702 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6703 globals.
6704 (inf_child_open_target): New function.
6705 (inf_child_open): Use inf_child_open_target to push the target
6706 instead of erroring out.
6707 (inf_child_disconnect, inf_child_close)
6708 (inf_child_maybe_unpush_target): New functions.
6709 (inf_child_target): Install inf_child_disconnect and
6710 inf_child_close. Store a pointer to the returned object.
6711 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6712 declarations.
6713 * target.c (auto_connect_native_target): New global.
6714 (show_default_run_target): New function.
6715 (find_default_run_target): Return NULL if automatically connecting
6716 to the native target is disabled.
6717 (_initialize_target): Install set/show auto-connect-native-target.
6718 * NEWS: Mention "set auto-connect-native-target", and "target
6719 native".
6720 * linux-nat.c (super_close): New global.
6721 (linux_nat_close): Call super_close.
6722 (linux_nat_add_target): Store a pointer to the base class's
6723 to_close method.
6724 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6725 inf_child_maybe_unpush.
6726 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6727 already pushed.
6728 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6729 the inferior. Use inf_child_maybe_unpush_target.
6730 (inf_ttrace_attach): Don't push the target if it is already
6731 pushed.
6732 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6733 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6734 after mourning the inferior. Use inf_child_maybe_unpush_target.
6735 (darwin_attach_pid): Don't push the target if it is already
6736 pushed.
6737 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6738 mourning the inferior. Use inf_child_maybe_unpush_target.
6739 (gnu_detach): Use inf_child_maybe_unpush_target.
6740 * go32-nat.c (go32_create_inferior): Don't push the target if it
6741 is already pushed.
6742 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6743 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6744 (procfs_open): Rename to ...
6745 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6746 comments. Can target_preopen before changing node. Call
6747 inf_child_open_target to push the target explicitly.
6748 (procfs_attach): Don't push the target if it is already pushed.
6749 (procfs_detach): Use inf_child_maybe_unpush_target.
6750 (procfs_create_inferior): Don't push the target if it is already
6751 pushed.
6752 (nto_native_ops): New global.
6753 (procfs_open): Reimplement.
6754 (procfs_native_open): New function.
6755 (init_procfs_targets): Install procfs_native_open as to_open of
6756 "target native". Store a pointer to the "native" target in
6757 nto_native_ops.
6758 * procfs.c (procfs_attach): Don't push the target if it is already
6759 pushed.
6760 (procfs_detach): Use inf_child_maybe_unpush_target.
6761 (procfs_mourn_inferior): Only unpush the target after mourning the
6762 inferior. Use inf_child_maybe_unpush_target.
6763 (procfs_init_inferior): Don't push the target if it is already
6764 pushed.
6765 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6766 if it is already pushed.
6767
930ee1b1
PA
67682014-05-21 Pedro Alves <palves@redhat.com>
6769
6770 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6771 and "procfs" targets are now called "native" instead.
6772
1f5d1b13
PA
67732014-05-21 Pedro Alves <palves@redhat.com>
6774
6775 * go32-nat.c (go32_open): Delete.
6776 (go32_target): Don't override the to_open method.
6777
132f8e03
PA
67782014-05-21 Pedro Alves <palves@redhat.com>
6779
6780 * nto-procfs.c (procfs_can_run): New function.
6781 (nto_procfs_ops): New global.
6782 (init_procfs_targets): New, based on procfs_target. Install
6783 "target native" in addition to "target procfs".
6784 (_initialize_procfs): Call init_procfs_targets instead of adding
6785 the target here.
6786
03c136c3
PA
67872014-05-21 Pedro Alves <palves@redhat.com>
6788
6789 * windows-nat.c (windows_target): Don't override to_shortname,
6790 to_longname or to_doc.
6791
a635d0f3
PA
67922014-05-21 Pedro Alves <palves@redhat.com>
6793
6794 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6795 to_doc.
6796
4f9b5133
PA
67972014-05-21 Pedro Alves <palves@redhat.com>
6798
6799 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6800 to_shortname, to_longname or to_doc.
6801
bc85afde
PA
68022014-05-21 Pedro Alves <palves@redhat.com>
6803
6804 * go32-nat.c (go32_target): Don't override to_shortname,
6805 to_longname or to_doc.
6806
4ebfc96e
PA
68072014-05-21 Pedro Alves <palves@redhat.com>
6808
6809 * inf-child.c (inf_child_open): Remove mention of "child".
6810 (inf_child_target): Rename target to "native" instead of "child".
6811
2648dfed
AA
68122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6813
6814 * Makefile.in (SFILES): Delete "regset.c".
6815 (COMMON_OBS): Delete "regset.o".
6816 * regset.c: Remove.
6817 * regset.h (regset_alloc): Delete prototype.
6818
b13feb94
AA
68192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6820
6821 * sparc-linux-tdep.c (sparc32_linux_gregset)
6822 (sparc32_linux_fpregset): New static regset structures.
6823 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6824 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6825 'fpregset' fields.
6826 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6827 (sparc64_linux_fpregset): New static regset structures.
6828 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6829 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6830 New static regset structures.
6831 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6832 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6833 New static regset structures.
6834 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6835 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6836 New static regset structures.
6837 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6838 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6839 New static regset structures.
6840 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6841
b4fd25c9
AA
68422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6843
6844 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6845 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6846 register maps ("regmaps") from "*regset" to "*regmap". Do this
6847 for all regmap types and variables.
6848 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6849 (sparc32_linux_supply_core_gregset)
6850 (sparc32_linux_collect_core_gregset)
6851 (sparc32_linux_supply_core_fpregset)
6852 (sparc32_linux_collect_core_fpregset): Likewise.
6853 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6854 (sparc_gregmap, sparc_fpregmap): ... these.
6855 (sparc_supply_gregset, sparc_collect_gregset)
6856 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6857 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6858 (_initialize_sparc_nat): Rename regmaps.
6859 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6860 (sparc_gregmap, sparc_fpregmap): ... these.
6861 (sparc_supply_gregset, sparc_collect_gregset)
6862 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6863 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6864 Rename macros to...
6865 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6866 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6867 Likewise.
6868 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6869 Rename to...
6870 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6871 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6872 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6873 regmaps.
6874 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6875 (sparc32_bsd_fpregset): Rename to...
6876 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6877 (sparc32_bsd_fpregmap): ... these.
6878 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6879 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6880 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6881 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6882 (struct sparc_gregmap, struct sparc_fpregmap)
6883 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6884 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6885 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6886 (sparc32_supply_regset, sparc32_collect_gregset)
6887 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6888 prototypes.
6889 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6890 (sparc64_linux_ptrace_gregmap): ... this.
6891 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6892 (_initialize_sparc64_linux_nat): Rename regmaps.
6893 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6894 (sparc64_linux_core_gregmap): ... this.
6895 (sparc64_linux_supply_core_gregset)
6896 (sparc64_linux_collect_core_gregset)
6897 (sparc64_linux_supply_core_fpregset)
6898 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6899 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6900 (sparc64_sol2_fpregset): Rename to...
6901 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6902 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6903 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6904 regmaps.
6905 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6906 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6907 (sparc64_bsd_fpregset): Rename to...
6908 (struct sparc_gregmap, sparc64_sol2_gregmap)
6909 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6910 (sparc64_bsd_fpregmap): ... these.
6911 (sparc64_supply_gregset, sparc64_collect_gregset)
6912 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6913 prototypes.
6914 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6915 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6916 (sparc64fbsd_gregmap): ... this.
6917 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6918 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6919 Rename regmaps.
6920 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6921 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6922 (sparc64nbsd_collect_fpregset): Likewise.
6923 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6924 (sparc64nbsd_gregmap): ... this.
6925 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6926 regmaps.
6927 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6928 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6929 (sparc64obsd_gregmap): ... this.
6930 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6931 regmaps.
6932 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6933 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6934 (sparc32nbsd_gregmap): ... this.
6935 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6936 regmaps.
6937
8fea3224
AA
69382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6939
6940 * score-tdep.c (score7_linux_gregset): New static regset
6941 structure.
6942 (score7_linux_regset_from_core_section): Remove dynamic regset
6943 allocation.
6944 (score_gdbarch_init): Drop allocation of tdep structure.
6945 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6946
24534243
AA
69472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6948
6949 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6950 regset structures.
6951 (am33_regset_from_core_section): Remove dynamic regset
6952 allocations.
6953
b7195f27
AA
69542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6955
6956 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6957 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6958 structures.
6959 (mips_linux_regset_from_core_section): Remove dynamic regset
6960 allocations.
6961 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6962 'gregset64', 'fpregset', and 'fpregset64'.
6963 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6964 deleted tdep fields.
6965
ecc37a5a
AA
69662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6967
6968 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6969 regset structures.
6970 (amd64_regset_from_core_section): Remove dynamic regset
6971 allocations.
6972 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6973 structure.
6974 (amd64obsd_regset_from_core_section): Remove dynamic regset
6975 allocation.
6976 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6977 Likewise.
6978 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6979 x86-common regset supply function.
6980 * i386-tdep.c (i386_collect_gregset): Make static.
6981 (i386_gregset): New global regset structure.
6982 (i386_fpregset, i386_xstateregset): New static regset structures.
6983 (i386_regset_from_core_section): Remove dynamic regset
6984 allocations.
6985 (i386_gdbarch_init): Remove initialization of tdep fields
6986 'gregset', 'fpregset', and 'xstateregset'.
6987 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6988 'fpregset', and 'xstateregset'.
6989 (i386_collect_gregset): Remove prototype.
6990 (i386_gregset): New declaration.
6991 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6992 structure.
6993 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6994 allocation.
6995
b7611c43
AA
69962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6997
6998 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6999 (arm_linux_vfpregset): New static regset structures.
7000 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7001 regset structures.
7002 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7003 and 'vfpregset' fields.
7004
a069a2bd
AA
70052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7006
7007 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7008 (aarch64_linux_fpregset): New static regset structures.
7009 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7010 of regset structures.
7011 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7012 'fpregset' fields.
7013
09424cff
AA
70142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7015
7016 * regset.h (struct regset): Remove gdbarch field.
7017 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7018 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7019 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7020 Likewise.
7021 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7022 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7023 (ppc32_linux_vsxregset): Likewise.
7024 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7025 via the regcache instead of the regset.
7026 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7027 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7028 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7029 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7030 Likewise.
7031
3ca7dae4
AA
70322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7033
7034 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7035 Constify structures.
7036 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7037 (alphanbsd_aout_gregset): Likewise.
7038 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7039 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7040 Likewise.
7041 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7042 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7043 Likewise.
7044 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7045 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7046 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7047 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7048 * m88k-tdep.c (m88k_gregset): Likewise.
7049 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7050 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7051 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7052 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7053 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7054 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7055 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7056 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7057 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7058 Likewise.
7059 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7060 * sh-tdep.h (sh_corefile_gregset): Likewise.
7061 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7062 * vax-tdep.c (vax_gregset): Likewise.
7063
5876f503
JK
70642014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7065
7066 Fix TLS access for -static -pthread.
7067 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7068 (try_thread_db_load_1): Initialize it.
7069 (thread_db_get_thread_local_address): Call it if LM is zero.
7070 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7071 * target.h (struct target_ops) (to_get_thread_local_address): Add
7072 load_module_addr comment.
7073
0256a6ac
PA
70742014-05-21 Pedro Alves <palves@redhat.com>
7075
7076 * dcache.c (dcache_read_memory_partial): If reading the cache line
7077 fails, fallback to reading just the memory the caller wanted.
7078
227533ac
DE
70792014-05-20 Doug Evans <dje@google.com>
7080
7081 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7082 instead of get_current_arch.
7083
936d2992
PA
70842014-05-20 Pedro Alves <palves@redhat.com>
7085
7086 * NEWS: Mention that compare-sections now works with all targets.
7087
7088 * remote.c (PACKET_qCRC): New enum value.
7089 (remote_verify_memory): Don't send qCRC if the target has no
7090 execution. Use packet_support/packet_ok. If the target doesn't
7091 support the qCRC packet, fallback to a deep memory copy.
7092 (compare_sections_command): Say "target image" instead of "remote
7093 executable".
7094 (_initialize_remote): Add PACKET_qCRC to the list of config
7095 packets that have no associated command. Extend comment.
7096 * target.c (simple_verify_memory, default_verify_memory): New
7097 function.
7098 * target.h (struct target_ops) <to_verify_memory>: Default to
7099 default_verify_memory.
7100 (simple_verify_memory): New declaration.
7101 * target-delegates.c: Regenerate.
7102
e59fa00f
MM
71032014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7104
7105 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7106
f2205de0
HZ
71072014-05-20 Hui Zhu <hui@codesourcery.com>
7108 Yao Qi <yao@codesourcery.com>
7109
7110 PR backtrace/16558
7111 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7112 and change address of sp and pc.
7113
c4e54771
TT
71142014-05-19 Tom Tromey <tromey@redhat.com>
7115
7116 * gdbtypes.c (rank_function): Use XNEWVEC.
7117 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7118
73051182
DE
71192014-05-19 Doug Evans <dje@google.com>
7120
7121 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7122 build_type_unit_groups and moved closer to only caller. Remove
7123 arguments. All references updated. Remove outdated .gdb_index
7124 comment.
7125 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7126 build_type_psymtabs_1.
7127
8832e7e3
DE
71282014-05-19 Doug Evans <dje@google.com>
7129
7130 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7131 n_type_unit_groups, all_type_unit_groups. All uses removed.
7132 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7133 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7134 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7135 (add_type_unit_group_to_table): Delete.
7136
cd8ae15e
DE
71372014-05-19 Doug Evans <dje@google.com>
7138
7139 * eval.c (evaluate_subexp_standard): Add some comments.
7140
08f4850b
DE
71412014-05-17 Doug Evans <xdje42@gmail.com>
7142
7143 * progspace.c (remove_program_space): Delete, unused.
7144 * progspace.h (remove_program_space): Ditto.
7145
bed8455c
DE
71462014-05-17 Doug Evans <xdje42@gmail.com>
7147
7148 * inferior.c (prune_inferiors): Fix comment.
7149 (remove_inferior_command): Call prune_program_spaces.
7150
8d551b02
DE
71512014-05-16 Doug Evans <dje@google.com>
7152
7153 New command line option -D.
7154 * NEWS: Mention it.
7155 * main.c (set_gdb_data_directory): New function.
7156 (captured_main): Recognize -D. Flag error for --data-directory "".
7157 Call set_gdb_data_directory.
7158 (print_gdb_help): Print --data-directory, -D.
7159 * main.h (set_gdb_data_directory): Declare.
7160 * top.c (staged_gdb_datadir): New static global.
7161 (set_gdb_datadir): Call set_gdb_data_directory
7162 (show_gdb_datadir): New function.
7163 (init_main): Update init of data-directory parameter.
7164
18848e28
GF
71652014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7166
7167 Import the "dirfd" gnulib module.
7168 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7169 * gnulib/aclocal.m4: Update.
7170 * gnulib/config.in: Update.
7171 * gnulib/configure: Update.
7172 * gnulib/import/Makefile.am: Update.
7173 * gnulib/import/Makefile.in: Update.
7174 * gnulib/import/dirfd.c: New.
7175 * gnulib/import/m4/dirfd.m4: New.
7176 * gnulib/import/m4/gnulib-cache.m4: Update.
7177 * gnulib/import/m4/gnulib-comp.m4: Update.
7178
95c64f92
YQ
71792014-05-16 Pierre Muller <muller@sourceware.org>
7180 Yao Qi <yao@codesourcery.com>
7181
7182 * valprint.c (print_wchar): Move the code on checking whether
7183 W is a printable wide char to the default branch of switch
7184 statement below. Call wchar_printable instead of gdb_iswprint.
7185
cac395ea
TM
71862014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7187
19679eca 7188 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7189 ldr.w and ldrd instructions.
7190
83655187
DE
71912014-05-15 Doug Evans <dje@google.com>
7192
7193 * dwarf2read.c (read_structure_type): Delete outdated comments.
7194
dd756689
TT
71952014-05-14 Tom Tromey <tromey@redhat.com>
7196
7197 * macrocmd.c (print_macro_definition): Reindent.
7198
75ddda77
DE
71992014-05-13 Doug Evans <xdje42@gmail.com>
7200
7201 * python/py-cmd.c (cmdpy_completer): Add comment.
7202 (completers): Make const.
7203
b0f16a3e
SM
72042014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7205
7206 * infrun.c (resume): Remove should_resume (unused). Move up
7207 declaration of resume_ptid.
7208
033c3379
TT
72092014-05-13 Tom Tromey <tromey@redhat.com>
7210
7211 * language.h (unop_type_check): Remove.
7212 (binop_type_check): Don't declare.
7213
9b44a3a5
AA
72142014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7215
7216 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7217 call to regcache_raw_collect.
7218
303a33fa
SM
72192014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7220
7221 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7222 mi_console->quote as the quoting character.
7223
196100a0
SM
72242014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7227
f989a1c8
TT
72282014-04-29 Tom Tromey <tromey@redhat.com>
7229
7230 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7231 "show debug varobj".
7232
9404b58f
KM
72332014-05-07 Kyle McMartin <kyle@redhat.com>
7234
7235 Pushed by Joel Brobecker <brobecker@adacore.com>.
7236 * aarch64-tdep.c (aarch64_software_single_step): New function.
7237 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7238 with aarch64_software_single_step.
7239
5e49ba57
JB
72402014-05-05 Joel Brobecker <brobecker@adacore.com>
7241
7242 GDB 7.7.1 released.
7243
c888a17d
KS
72442014-05-05 Keith Seitz <keiths@redhat.com>
7245
7246 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7247 variable or history value is successfully parsed.
7248
290a839c
YQ
72492014-05-05 Yao Qi <yao@codesourcery.com>
7250 Pedro Alves <palves@redhat.com>
7251
7252 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7253 address of blocks that intersects the requested range. Trim
7254 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7255 sections.
7256 * ctf.c (ctf_xfer_partial): Likewise.
7257
91256dc2
YQ
72582014-05-05 Yao Qi <yao@codesourcery.com>
7259
7260 * printcmd.c (display_command): Remove the check to
7261 target_has_execution.
7262
07284463
MK
72632014-05-03 Mark Kettenis <kettenis@gnu.org>
7264
7265 * ppcobsd-nat.c: Include "obsd-nat.h".
7266 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7267 add_target.
7268 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7269
30a1e6cc
SDJ
72702014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7271
7272 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7273 and 16-bit signed and unsigned arguments. Update comment.
7274 (stap_parse_probe_arguments): Extend code to handle such
7275 arguments. Use warning instead of complaint to notify about
7276 unrecognized bitness.
7277
f33da99a
SDJ
72782014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7279
7280 PR breakpoints/16889
7281 * stap-probe.c (stap_parse_probe_arguments): Simplify
7282 check for non-prefixed probes (i.e., probes whose
7283 arguments do not start with "N@"). Always set the
7284 argument type to a sane value.
7285
95cf3b38
DT
72862014-05-01 David Taylor <dtaylor@emc.com>
7287
7288 * remote.c (compare_sections_command): Add -r option to compare
7289 all loadable read-only sections.
7290
1cfdf534
SC
72912014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7292
7293 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7294 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7295 Update all callers.
7296 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7297 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7298 Remove unused CORE_ADDR argument. Update all callers.
7299
ca4f7f8b
PA
73002014-04-29 Pedro Alves <palves@redhat.com>
7301
7302 * remote.c (struct packet_config) <detect>: Extend comment.
7303 (add_packet_config_cmd): Don't set the config's detect or support
7304 fields here.
7305 (init_all_packet_configs): Also initialize the config's 'detect'
7306 field.
7307 (reset_all_packet_configs_support): New function.
7308 (remote_open_1): Call reset_all_packet_configs_support instead of
7309 init_all_packet_configs.
7310 (_initialize_remote): Initialize all packet configs. Assert that
7311 all packets have an associated command, except a few known
7312 outliers.
7313
11c1ba78
JB
73142014-04-28 Joel Brobecker <brobecker@adacore.com>
7315
7316 * dwarf2read.c (read_subrange_type): Handle dynamic
7317 DW_AT_lower_bound attributes.
7318
8739bc53
JB
73192014-04-28 Joel Brobecker <brobecker@adacore.com>
7320
7321 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7322 dynamic bounds before computing its upper bound.
7323 (ada_discrete_type_low_bound): Same as above with the lower bound.
7324
6f8a3220
JB
73252014-04-28 Joel Brobecker <brobecker@adacore.com>
7326
7327 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7328 range types. Adjust the array handling implementation to
7329 take advantage of this change.
7330 (resolve_dynamic_range): New function, mostly extracted from
7331 resolve_dynamic_bounds.
7332 (resolve_dynamic_array): New function, mostly extracted from
7333 resolve_dynamic_bounds.
7334 (resolve_dynamic_bounds): Delete.
7335 (resolve_dynamic_type): Reimplement. Add handling of
7336 TYPE_CODE_RANGE types.
7337
4d072ce4
JB
73382014-04-28 Joel Brobecker <brobecker@adacore.com>
7339
7340 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7341 handling of parallel ___XA types.
7342
52865325
JB
73432014-04-28 Joel Brobecker <brobecker@adacore.com>
7344
7345 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7346 unnecessary second call to static_unwrap_type.
7347
433e77fa
HZ
73482014-04-27 Hui Zhu <hui@codesourcery.com>
7349
7350 * stack.c (print_frame_info): Call do_gdb_disassembly with
7351 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7352
b51a69ee
DE
73532014-04-26 Doug Evans <xdje42@gmail.com>
7354
7355 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7356
7ae1a6a6
PA
73572014-04-25 Pedro Alves <palves@redhat.com>
7358
7359 PR server/16255
7360 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7361 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7362 and newline from built string.
7363 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7364 (linux_ptrace_attach_fail_reason): ... this.
7365 * linux-nat.c (linux_nat_attach): Adjust to use
7366 linux_ptrace_attach_fail_reason.
7367
4082afcc
PA
73682014-04-25 Pedro Alves <palves@redhat.com>
7369
7370 * remote.c (struct remote_state): Remove multi_process_aware,
7371 non_stop_aware, cond_tracepoints, cond_breakpoints,
7372 breakpoint_commands, fast_tracepoints, static_tracepoints,
7373 install_in_trace, disconnected_tracing,
7374 enable_disable_tracepoints, string_tracing, and
7375 augmented_libraries_svr4_read fields.
7376 (remote_multi_process_p): Move further below in the file.
7377 (struct packet_config): Add comments.
7378 (update_packet_config): Delete function.
7379 (show_packet_config_cmd): Use packet_config_support.
7380 (add_packet_config_cmd): Use NULL as set callback.
7381 (packet_ok): "set remote foo-packet"-style commands no longer
7382 change config->supported -- adjust.
7383 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7384 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7385 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7386 (PACKET_QNonStop, PACKET_multiprocess_feature)
7387 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7388 (PACKET_DisconnectedTracing_feature)
7389 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7390 (set_remote_protocol_packet_cmd): Delete function.
7391 (packet_config_support, packet_support): New functions.
7392 (set_remote_protocol_Z_packet_cmd): Don't call
7393 update_packet_config.
7394 (remote_query_attached, remote_pass_signals)
7395 (remote_program_signals, remote_threads_info)
7396 (remote_threads_extra_info, remote_start_remote): Use
7397 packet_support.
7398 (remote_start_remote): Use packet_config_support and
7399 packet_support.
7400 (init_all_packet_configs): Set all packets to unknown support,
7401 instead of calling update_packet_config.
7402 (remote_check_symbols): Use packet_support.
7403 (remote_supported_packet): Unconditionally set the packet config's
7404 support status.
7405 (remote_multi_process_feature, remote_non_stop_feature)
7406 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7407 (remote_breakpoint_commands_feature)
7408 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7409 (remote_install_in_trace_feature)
7410 (remote_disconnected_tracing_feature)
7411 (remote_enable_disable_tracepoint_feature)
7412 (remote_string_tracing_feature)
7413 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7414 (remote_protocol_features): Adjust to use remote_supported_packet
7415 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7416 "ConditionalTracepoints", "ConditionalBreakpoints",
7417 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7418 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7419 "EnableDisableTracepoints", and "tracenz".
7420 (remote_query_supported): Use packet_support.
7421 (remote_open_1): Adjust.
7422 (extended_remote_attach_1): Use packet_support. Switch on the
7423 result of packet_ok instead of checking whether the packet ended
7424 up disabled.
7425 (remote_vcont_resume): Use packet_support.
7426 (remote_resume, remote_stop_ns, fetch_register_using_p)
7427 (remote_prepare_to_store, store_register_using_P)
7428 (check_binary_download, remote_write_bytes): Use packet_support.
7429 (remote_vkill): Use packet_support. Switch on the result of
7430 packet_ok instead of checking whether the packet ended up
7431 disabled.
7432 (extended_remote_supports_disable_randomization): Use
7433 packet_support.
7434 (extended_remote_run): Switch on the result of packet_ok instead
7435 of checking whether the packet ended up disabled.
7436 (remote_insert_breakpoint, remote_remove_breakpoint)
7437 (remote_insert_watchpoint, remote_remove_watchpoint)
7438 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7439 packet_support.
7440 (remote_search_memory): Use packet_config_support.
7441 (remote_get_thread_local_address, remote_get_tib_address)
7442 (remote_hostio_send_command, remote_can_execute_reverse): Use
7443 packet_support.
7444 (remote_supports_cond_tracepoints)
7445 (remote_supports_cond_breakpoints)
7446 (remote_supports_fast_tracepoints)
7447 (remote_supports_static_tracepoints)
7448 (remote_supports_install_in_trace)
7449 (remote_supports_enable_disable_tracepoint)
7450 (remote_supports_string_tracing)
7451 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7452 the packet config says the feature is enabled or disabled.
7453 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7454 (remote_get_trace_status): Use packet_support.
7455 (remote_set_disconnected_tracing): Adjust to check whether the
7456 feature is enabled with packet_support.
7457 (remote_set_trace_buffer_size, remote_use_agent)
7458 (remote_can_use_agent, remote_supports_btrace): Use
7459 packet_support.
7460 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7461 Use packet_config_support.
7462 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7463 the packet config says the feature is enabled or disabled.
7464 (set_range_stepping): Use packet_support.
7465
bdb52a22
TT
74662014-04-25 Tom Tromey <tromey@redhat.com>
7467
7468 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7469 argument.
7470
e9475ead
SA
74712014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7472
7473 * NEWS: Mention support for C99 variable length arrays.
7474
82eacd52
JB
74752014-04-24 Joel Brobecker <brobecker@adacore.com>
7476
7477 * ada-lang.c (standard_exc): Expand introductory comment.
7478
01f9f808
MS
74792014-04-24 Michael Sturm <michael.sturm@mintel.com>
7480 Walfred Tedeschi <walfred.tedeschi@intel.com>
7481
7482 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7483 AVX512 registers.
7484 (amd64_linux_read_description): Add code to handle AVX512 xstate
7485 mask and return respective tdesc.
7486 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7487 and features/i386/x32-avx512-linux.c.
7488 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7489 (amd64_linux_core_read_description): Add code to handle AVX512
7490 xstate mask and return respective tdesc.
7491 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7492 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7493 calculation.
7494 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7495 (tdesc_amd64_avx512_linux): New prototype.
7496 (tdesc_x32_avx512_linux): Likewise.
7497 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7498 features/i386/x32-avx512.c.
7499 (amd64_ymm_avx512_names): New register names for pseudo
7500 registers YMM16-31.
7501 (amd64_ymmh_avx512_names): New register names for raw registers
7502 YMMH16-31.
7503 (amd64_k_names): New register names for K registers.
7504 (amd64_zmmh_names): New register names for ZMM raw registers.
7505 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7506 (amd64_xmm_avx512_names): New register names for XMM16-31
7507 registers.
7508 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7509 registers.
7510 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7511 if feature is present.
7512 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7513 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7514 (AMD64_NUM_REGS): Adjust to new number of registers.
7515 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7516 registers supplied via XSTATE by AVX512 registers.
7517 (i386_linux_read_description): Add case for AVX512.
7518 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7519 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7520 (i386_linux_core_read_description): Add case for AVX512.
7521 (i386_linux_init_abi): Install supported register note section
7522 for AVX512.
7523 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7524 AVX512.
7525 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7526 registers to be number of zmm7h + 1.
7527 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7528 * i386-tdep.c: Include features/i386/i386-avx512.c.
7529 (i386_zmm_names): Add ZMM pseudo register names array.
7530 (i386_zmmh_names): Add ZMM raw register names array.
7531 (i386_k_names): Add K raw register names array.
7532 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7533 registers. AVX512 has 16 more ZMM registers than there are YMM
7534 registers.
7535 (i386_zmmh_regnum_p): Add function to look up register number of
7536 ZMM raw registers.
7537 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7538 (i386_k_regnum_p): Likewise for K raw registers.
7539 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7540 registers added by AVX512.
7541 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7542 registers added by AVX512.
7543 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7544 added by AVX512.
7545 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7546 (i386_pseudo_register_name): Add ZMM pseudo registers.
7547 (i386_zmm_type): Construct and return vector registers type for ZMM
7548 registers.
7549 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7550 ZMM0-31 pseudo registers and K registers.
7551 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7552 and YMM16-31 registers from register cache.
7553 (i386_pseudo_register_write): Add code to write K, ZMM and
7554 YMM16-31 registers.
7555 (i386_register_reggroup_p): Add code to include/exclude AVX512
7556 registers in/from respective register groups.
7557 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7558 registers if feature is present in xcr0.
7559 (i386_gdbarch_init): Add code to initialize AVX512 feature
7560 variables in tdep structure, wire in pseudo registers and call
7561 initialize_tdesc_i386_avx512.
7562 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7563 variables.
7564 (i386_regnum): Add AVX512 registers.
7565 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7566 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7567 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7568 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7569 512 bits wide.
7570 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7571 (i386_ymm_avx512_regnum_p): Likewise.
7572 (i386_k_regnum_p): Likewise.
7573 (i386_zmm_regnum_p): Likewise.
7574 (i386_zmmh_regnum_p): Likewise.
7575 * i387-tdep.c : Update year in copyright notice.
7576 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7577 XSAVE buffer.
7578 (XSAVE_YMM_AVX512_ADDR): New macro.
7579 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7580 XSAVE buffer.
7581 (XSAVE_XMM_AVX512_ADDR): New macro.
7582 (xsave_avx512_k_offset): New table for K register offsets in
7583 XSAVE buffer.
7584 (XSAVE_AVX512_K_ADDR): New macro.
7585 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7586 in XSAVE buffer.
7587 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7588 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7589 buffer.
7590 (i387_collect_xsave): Add code to collect AVX512 registers from
7591 XSAVE buffer.
7592 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7593 of XMM16-31 registers.
7594 (I387_NUM_K_REGS): New define for number of K registers.
7595 (I387_K0_REGNUM): New define for K0 register number.
7596 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7597 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7598 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7599 registers.
7600 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7601 (I387_XMM16_REGNUM): New define for XMM16 register number.
7602 (I387_YMM0_REGNUM): New define for YMM0 register number.
7603 (I387_KEND_REGNUM): New define for last K register number.
7604 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7605 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7606 number.
7607 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7608 number.
7609 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7610 size.
7611 * features/Makefile: Add AVX512 related files.
7612 * features/i386/32bit-avx512.xml: New file.
7613 * features/i386/64bit-avx512.xml: Likewise.
7614 * features/i386/amd64-avx512-linux.c: Likewise.
7615 * features/i386/amd64-avx512-linux.xml: Likewise.
7616 * features/i386/amd64-avx512.c: Likewise.
7617 * features/i386/amd64-avx512.xml: Likewise.
7618 * features/i386/i386-avx512-linux.c: Likewise.
7619 * features/i386/i386-avx512-linux.xml: Likewise.
7620 * features/i386/i386-avx512.c: Likewise.
7621 * features/i386/i386-avx512.xml: Likewise.
7622 * features/i386/x32-avx512-linux.c: Likewise.
7623 * features/i386/x32-avx512-linux.xml: Likewise.
7624 * features/i386/x32-avx512.c: Likewise.
7625 * features/i386/x32-avx512.xml: Likewise.
7626 * regformats/i386/amd64-avx512-linux.dat: New file.
7627 * regformats/i386/amd64-avx512.dat: Likewise.
7628 * regformats/i386/i386-avx512-linux.dat: Likewise.
7629 * regformats/i386/i386-avx512.dat: Likewise.
7630 * regformats/i386/x32-avx512-linux.dat: Likewise.
7631 * regformats/i386/x32-avx512.dat: Likewise.
7632 * NEWS: Add note about new support for AVX512.
7633
7634
08351840
PA
76352014-04-23 Pedro Alves <palves@redhat.com>
7636
7637 * breakpoint.c (insert_bp_location): Tolerate errors if the
7638 breakpoint is set in a user-loaded objfile.
7639 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7640 location is marked shlib_disabled. If the breakpoint is set in a
7641 user-loaded objfile is a GDB-side memory breakpoint, validate it
7642 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7643 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7644 flag.
7645 * mem-break.c (memory_validate_breakpoint): New function.
7646 * objfiles.c (userloaded_objfile_contains_address_p): New
7647 function.
7648 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7649 * target.h (memory_validate_breakpoint): New declaration.
7650
076855f9
PA
76512014-04-23 Pedro Alves <palves@redhat.com>
7652
7653 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7654 the breakpoint is set in a shared library, only suppress
7655 errors for software breakpoints, not hardware breakpoints.
7656
483805cf
PA
76572014-04-22 Pedro Alves <palves@redhat.com>
7658
7659 * infrun.c (schedlock_applies): New function, factored out from
7660 find_thread_needs_step_over.
7661 (find_thread_needs_step_over): Use it.
7662 (switch_back_to_stepped_thread): Always clear trap_expected if the
7663 step over is finished. Return early if scheduler locking applies.
7664 Look for the stepping thread and a potential step-over thread with
7665 a single loop.
7666 (currently_stepping_or_nexting_callback): Delete.
7667
a75fef0e
NC
76682014-04-22 Nick Clifton <nickc@redhat.com>
7669
7670 * NEWS: Mention that ARM sim now supports tracing.
7671
48b6e87e
YQ
76722014-04-22 Yao Qi <yao@codesourcery.com>
7673
7674 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7675 to ...
7676 * tracefile.c (tracefile_fetch_registers): ... it. New
7677 function.
7678 * tracefile.h (tracefile_fetch_registers): Declare.
7679 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7680 tracefile_fetch_registers.
7681
17617f2d
EZ
76822014-04-19 Eli Zaretskii <eliz@gnu.org>
7683
7684 PR gdb/14018
7685 * windows-nat.c (thread_rec): Don't display a warning when
7686 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7687 fails for any reason, set th->suspended to -1, so that we don't
7688 try to resume such a thread. Also, don't return NULL in these
7689 cases, to avoid completely ruin the session due to "PC register is
7690 not available" error.
7691 (do_windows_fetch_inferior_registers): Check errors in
7692 GetThreadContext call.
7693 (windows_continue): Accept an additional argument KILLED; if not
7694 zero, ignore errors in the SetThreadContext call, since the
7695 inferior was killed and is shutting down.
7696 (windows_resume, get_windows_debug_event)
7697 (windows_create_inferior, windows_mourn_inferior)
7698 (windows_kill_inferior): All callers of windows_continue changed
7699 to adjust to its new calling sequence.
7700
5723a6fd
YQ
77012014-04-19 Yao Qi <yao@codesourcery.com>
7702
7703 * ctf.c (ctf_open): Call post_create_inferior.
7704
614d5099
YQ
77052014-04-19 Yao Qi <yao@codesourcery.com>
7706
7707 * ctf.c (handle_id): New static variable.
7708 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7709 value. Get the declaration of event "register" and get length
7710 of field "contents".
7711
dac3e710
YQ
77122014-04-19 Yao Qi <yao@codesourcery.com>
7713
7714 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7715
2bca57ba
SC
77162014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7717
7718 * valops.c (oload_method_static): Remove unnecessary argument
7719 METHOD. Update all callers.
7720
51d48146
PA
77212014-04-18 Pedro alves <palves@redhat.com>
7722 Tom Tromey <tromey@redhat.com>
7723
7724 PR backtrace/15558
7725 * frame.c (get_prev_frame_1): Rename to ...
7726 (get_prev_frame_always): ... this, and make extern. Adjust.
7727 (skip_artificial_frames): Use get_prev_frame_always.
7728 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7729 (get_frame_unwind_stop_reason): Adjust to rename.
7730 * frame.h (get_prev_frame_always): Declare.
7731 * inline-frame.c: Include frame.h.
7732 (inline_frame_this_id): Use get_prev_frame_always.
7733
1bdad2e0
TG
77342014-04-18 Tristan Gingold <gingold@adacore.com>
7735
7736 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7737 code by using bfd_mach_o_get_base_address.
7738
7ce16bd4
UW
77392014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7740
7741 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7742 (spu_ax_pseudo_register_collect): New function.
7743 (spu_ax_pseudo_register_push_stack): Likewise.
7744 (spu_dwarf_reg_to_regnum): Likewise.
7745 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7746
2ed3c037
UW
77472014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7748
7749 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7750 Replace FRAME argument with FRAME_ID.
7751 * gdbarch.c, gdbarch.h: Regenerate.
7752 * findvar.c (default_value_from_register): Add GDBARCH argument;
7753 replace FRAME by FRAME_ID. No longer call get_frame_id.
7754 (value_from_register): Update call to gdbarch_value_from_register.
7755 * value.h (default_value_from_register): Update prototype.
7756 * s390-linux-tdep.c (s390_value_from_register): Update interface
7757 and call to default_value_from_register.
7758 * spu-tdep.c (spu_value_from_register): Likewise.
7759
7760 * findvar.c (address_from_register): Remove TYPE argument.
7761 Do not call value_from_register; use gdbarch_value_from_register
7762 with null_frame_id instead.
7763 * value.h (address_from_register): Update prototype.
7764 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7765 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7766 address_from_register interface change.
7767
71e50e83
YQ
77682014-04-17 Yao Qi <yao@codesourcery.com>
7769
7770 * gdbtypes.h: Update comments to link to types and macros'
7771 definitions.
7772
7a23c549
SC
77732014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7774
7775 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7776
22869d73
KS
77772014-04-16 Keith Seitz <keiths@redhat.com>
7778
7779 PR gdb/15827
7780 * dwarf2read.c (skip_one_die): Check that all relative-offset
7781 sibling DIEs fall within range of the current reader's buffer.
7782 (read_partial_die): Likewise.
7783
c4f87ca6
KS
77842014-04-16 Keith Seitz <keiths@redhat.com>
7785
7786 PR c++/16597
7787 * cp-namespace.c (lookup_symbol_file): If the type name of
7788 `this' is NULL, return immediately.
7789
b50c8614
KS
77902014-04-14 Keith Seitz <keiths@redhat.com>
7791
7792 PR c++/16253
7793 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7794 from symbol_matches_domain in symtab.c. All local callers
7795 of symbol_matches_domain updated.
7796 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7797 search STRUCT_DOMAIN.
7798 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7799 independently. standard_lookup will do that automatically.
7800 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7801 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7802 (cp_lookup_symbol_in_namespace): Likewise.
7803 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7804 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7805 may return a STRUCT_DOMAIN match.
7806 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7807 * cp-support.c: Include language.h.
7808 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7809 VAR_DOMAIN.
7810 * psymtab.c (match_partial_symbol): Compare the requested
7811 domain with the symbol's domain directly.
7812 (lookup_partial_symbol): Likewise.
7813 * symtab.c (lookup_symbol_in_language): Explain when/why
7814 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7815 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7816 appropriate languages.
7817 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7818 and moved to ada-lang.c
7819 (lookup_block_symbol): Explain that this function only returns
7820 symbol matching the requested DOMAIN.
7821 Compare the requested domain with the symbol's domain directly.
7822 (iterate_over_symbols): Compare the requested domain with the
7823 symbol's domain directly.
7824 * symtab.h (symbol_matches_domain): Remove.
7825
3d567982
TT
78262014-04-14 Tom Tromey <tromey@redhat.com>
7827
7828 PR c++/15246:
7829 * c-exp.y (type_aggregate_p): New function.
7830 (qualified_name, classify_inner_name): Use it.
7831 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7832 and TYPE_TARGET_TYPE of an enum type.
7833 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7834 an enum type.
7835 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7836 handle TYPE_DECLARED_CLASS.
7837 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7838 types.
7839 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7840 * valops.c (enum_constant_from_type): New function.
7841 (value_aggregate_elt): Use it.
7842 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7843 TYPE_CODE_ENUM.
7844
c848d642
TT
78452014-04-14 Tom Tromey <tromey@redhat.com>
7846
7847 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7848 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7849 const.
7850 * value.h (value_aggregate_elt): Update.
7851
0626fc76
TT
78522014-04-14 Tom Tromey <tromey@redhat.com>
7853
7854 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7855
5ecaaa66
SA
78562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7857
7858 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7859 (evaluate_subexp_standard): Pass noside argument.
7860 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7861 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7862 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7863 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7864 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7865
1612e0c0
SA
78662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7867
7868 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7869 points to a constant blob.
7870
c451ebe5
SA
78712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7872
7873 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7874 property and store it as the high bound and flag the range accordingly.
7875 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7876 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7877 * gdbtypes.h (enum range_flags): New enum.
7878 (struct range_bounds): Add flags member.
7879
1d42e4c4
SA
78802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7881
7882 * c-typeprint.c (c_type_print_varspec_suffix): Added
7883 check for not yet resolved high bound. If unresolved, print
7884 "variable length" string to the console instead of random
7885 length.
7886
9f1f738a
SA
78872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7888
7889 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7890 value.
7891 (ada_template_to_fixed_record_type_1): Likewise.
7892 (ada_to_fixed_type_1): Likewise.
7893 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7894 (cp_print_value): Likewise.
7895 * d-valprint.c (dynamic_array_type): Likewise.
7896 * findvar.c (address_of_variable): Likewise.
7897 * jv-valprint.c (java_value_print): Likewise.
7898 * valops.c (value_ind): Likewise.
7899 * value.c (coerce_ref): Likewise.
7900
3c8452d4
SA
79012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7902
7903 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7904 value and retrieve the dynamic type size.
7905
4ad88275
SA
79062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7907
7908 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7909 passed to sizeof is dynamic evaluate the argument to compute the length.
7910
80180f79
SA
79112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7912 Joel Brobecker <brobecker@adacore.com>
7913
7914 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7915 (dwarf2_evaluate_property): New function.
7916 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7917 * dwarf2read.c (attr_to_dynamic_prop): New function.
7918 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7919 attribute.
7920 * gdbtypes.c: Include dwarf2loc.h.
7921 (is_dynamic_type): New function.
7922 (resolve_dynamic_type): New function.
7923 (resolve_dynamic_bounds): New function.
7924 (get_type_length): New function.
7925 (check_typedef): Use get_type_length to compute type length.
7926 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7927 (TYPE_LOW_BOUND_KIND): New macro.
7928 (is_dynamic_type): New function prototype.
7929 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7930 to resolve dynamic properties of the type. Update comment.
7931 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7932
a1556843
RH
79332014-04-14 Richard Henderson <rth@redhat.com>
7934
7935 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7936
0be03e84
DE
79372014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7938 Doug Evans <xdje42@gmail.com>
7939
7940 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7941 dereference TYPE_CODE_REF values.
7942
6b662e19
JB
79432014-04-11 Joel Brobecker <brobecker@adacore.com>
7944
7945 Revert the following changes due to regressions:
7946
7947 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7948 (dwarf2_evaluate_property): New function.
7949 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7950 * dwarf2read.c (attr_to_dynamic_prop): New function.
7951 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7952 attribute.
7953 * gdbtypes.c: Include dwarf2loc.h.
7954 (is_dynamic_type): New function.
7955 (resolve_dynamic_type): New function.
7956 (resolve_dynamic_bounds): New function.
7957 (get_type_length): New function.
7958 (check_typedef): Use get_type_length to compute type length.
7959 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7960 (TYPE_LOW_BOUND_KIND): New macro.
7961 (is_dynamic_type): New function prototype.
7962 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7963 to resolve dynamic properties of the type. Update comment.
7964 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7965
7966 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7967 passed to sizeof is dynamic evaluate the argument to compute the length.
7968
7969 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7970 value and retrieve the dynamic type size.
7971
7972 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7973 (ada_template_to_fixed_record_type_1): Likewise.
7974 (ada_to_fixed_type_1): Likewise.
7975 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7976 (cp_print_value): Likewise.
7977 * d-valprint.c (dynamic_array_type): Likewise.
7978 * eval.c (evaluate_subexp_with_coercion): Likewise.
7979 * findvar.c (address_of_variable): Likewise.
7980 * jv-valprint.c (java_value_print): Likewise.
7981 * valops.c (value_ind): Likewise.
7982 * value.c (coerce_ref): Likewise.
7983
7984 * c-typeprint.c (c_type_print_varspec_suffix): Added
7985 check for not yet resolved high bound. If unresolved, print
7986 "variable length" string to the console instead of random
7987 length.
7988
7989 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7990 property and store it as the high bound and flag the range accordingly.
7991 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7992 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7993 * gdbtypes.h (enum range_flags): New enum.
7994 (struct range_bounds): Add flags member.
7995
7996 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7997 points to a constant blob.
7998
7999 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8000 (evaluate_subexp_standard): Pass noside argument.
8001 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8002 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8003 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8004 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8005 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8006
245a5f0b
KS
80072014-04-11 Keith Seitz <keiths@redhat.com>
8008
8009 PR c++/16675
8010 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8011 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8012 reference types.
8013
3bce8237
SA
80142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8015
8016 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8017 (evaluate_subexp_standard): Pass noside argument.
8018 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8019 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8020 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8021 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8022 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8023
92b09522
SA
80242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8025
8026 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8027 points to a constant blob.
8028
e1969afb
SA
80292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8030
8031 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8032 property and store it as the high bound and flag the range accordingly.
8033 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8034 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8035 * gdbtypes.h (enum range_flags): New enum.
8036 (struct range_bounds): Add flags member.
8037
b86138fb
SA
80382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8039
8040 * c-typeprint.c (c_type_print_varspec_suffix): Added
8041 check for not yet resolved high bound. If unresolved, print
8042 "variable length" string to the console instead of random
8043 length.
8044
bcd629a4
SA
80452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8046
8047 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8048 (ada_template_to_fixed_record_type_1): Likewise.
8049 (ada_to_fixed_type_1): Likewise.
8050 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8051 (cp_print_value): Likewise.
8052 * d-valprint.c (dynamic_array_type): Likewise.
8053 * eval.c (evaluate_subexp_with_coercion): Likewise.
8054 * findvar.c (address_of_variable): Likewise.
8055 * jv-valprint.c (java_value_print): Likewise.
8056 * valops.c (value_ind): Likewise.
8057 * value.c (coerce_ref): Likewise.
8058
04b19544
SA
80592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8060
8061 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8062 value and retrieve the dynamic type size.
8063
26cb189f
SA
80642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8065
8066 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8067 passed to sizeof is dynamic evaluate the argument to compute the length.
8068
37c1ab67
SA
80692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8070
8071 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8072 (dwarf2_evaluate_property): New function.
8073 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8074 * dwarf2read.c (attr_to_dynamic_prop): New function.
8075 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8076 attribute.
8077 * gdbtypes.c: Include dwarf2loc.h.
8078 (is_dynamic_type): New function.
8079 (resolve_dynamic_type): New function.
8080 (resolve_dynamic_bounds): New function.
8081 (get_type_length): New function.
8082 (check_typedef): Use get_type_length to compute type length.
8083 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8084 (TYPE_LOW_BOUND_KIND): New macro.
8085 (is_dynamic_type): New function prototype.
8086 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8087 to resolve dynamic properties of the type. Update comment.
8088 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8089
729efb13
SA
80902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8091
8092 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8093 declaring high/low bounds and change uses accordingly. Call
8094 create_range_type instead of create_static_range_type.
8095 * gdbtypes.c (create_range_type): New function.
8096 (create_range_type): Convert bounds into struct bound_prop and pass
8097 them to create_range_type.
8098 * gdbtypes.h (struct bound_prop): New struct.
8099 (create_range_type): New function prototype.
8100 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8101 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8102 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8103 part of the bound.
8104 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8105
0c9c3474
SA
81062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8107
8108 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8109 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8110 * ada-lang.c: All uses of create_range_type updated.
8111 * coffread.c: All uses of create_range_type updated.
8112 * dwarf2read.c: All uses of create_range_type updated.
8113 * f-exp.y: All uses of create_range_type updated.
8114 * m2-valprint.c: All uses of create_range_type updated.
8115 * mdebugread.c: All uses of create_range_type updated.
8116 * stabsread.c: All uses of create_range_type updated.
8117 * valops.c: All uses of create_range_type updated.
8118 * valprint.c: All uses of create_range_type updated.
8119
9d497a19
PA
81202014-04-10 Pedro Alves <palves@redhat.com>
8121
8122 * breakpoint.c (single_step_breakpoints)
8123 (single_step_gdbarch): Move up in the file.
8124 (one_breakpoint_xfer_memory): New function, factored out from ...
8125 (breakpoint_xfer_memory): ... here. Also process single-step
8126 breakpoints.
8127
15a9128a
TG
81282014-04-09 Tristan Gingold <gingold@adacore.com>
8129
8130 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8131 comments.
8132 (darwin_decode_exception_message): Free port only after use.
8133
9c97a070
PL
81342014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8135
8136 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8137 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8138 when setting the size of call_length.
8139
7af389b8
SC
81402014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8141
8142 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8143 dereference TYPE_CODE_REF values.
8144
86ad98c3
JB
81452014-04-07 Joel Brobecker <brobecker@adacore.com>
8146
8147 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8148 end of warning message.
8149
b0aeadb3
DE
81502014-04-03 Doug Evans <dje@google.com>
8151
8152 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8153 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8154
5979d6b6
AM
81552014-04-02 Alan Modra <amodra@gmail.com>
8156
8157 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8158 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8159 (struct symbol_file_add_from_memory_args): Add size field.
8160 (find_vdso_size): New function.
8161 (add_vsyscall_page): Attempt to find vdso size.
8162
0d60c288
DE
81632014-04-01 Doug Evans <dje@google.com>
8164
8165 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8166
a41f2563
TG
81672014-04-01 Tristan Gingold <gingold@adacore.com>
8168
8169 * darwin-nat.c (darwin_encode_reply): Add prototype.
8170 (darwin_decode_exception_message): Reply to unknown inferiors.
8171 (darwin_decode_message): Handle message by id. Ignore message
8172 to unknown inferior.
8173 (darwin_wait): Discard unknown messages, add debug trace.
8174
11a865c8
DE
81752014-03-31 Doug Evans <dje@google.com>
8176
8177 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8178 comp_dir_string.
8179
770e7fc7
DE
81802014-03-31 Doug Evans <dje@google.com>
8181
8182 New option "set print symbol-loading".
8183 * NEWS: Mention it.
8184 * solib.c (solib_read_symbols): Only print symbol loading messages
8185 if requested.
8186 (solib_add): If symbol loading is in "brief" mode, notify user
8187 symbols are being loaded.
8188 (reload_shared_libraries_1): Ditto.
8189 * symfile.c (print_symbol_loading_off): New static global.
8190 (print_symbol_loading_brief): New static global.
8191 (print_symbol_loading_full): New static global.
8192 (print_symbol_loading_enums): New static global.
8193 (print_symbol_loading): New static global.
8194 (print_symbol_loading_p): New function.
8195 (symbol_file_add_with_addrs): Only print symbol loading messages
8196 if requested.
8197 (_initialize_symfile): Register "print symbol-loading" set/show
8198 command.
8199 * symfile.h (print_symbol_loading_p): Declare.
8200
c32c64b7
DE
82012014-03-30 Doug Evans <xdje42@gmail.com>
8202
8203 * infrun.c (set_last_target_status): New function.
8204 (handle_inferior_event): Call it.
8205
7c0bc051
DE
82062014-03-30 Doug Evans <xdje42@gmail.com>
8207
8208 * inferior.h (enum stop_kind): Improve comment.
8209
8776cfe9
JB
82102014-03-28 Joel Brobecker <brobecker@adacore.com>
8211
8212 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8213 a reference, strip the reference layer before calling
8214 the lang_ops value_has_mutated callback.
8215
410a0ff2
SDJ
82162014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8217
8218 Remove some globals from our parser.
8219 * language.c (unk_lang_parser): Add "struct parser_state"
8220 argument.
8221 * language.h (struct language_defn) <la_parser>: Likewise.
8222 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8223 (initialize_expout): Add "struct parser_state" argument.
8224 Rewrite function to use the parser state.
8225 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8226 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8227 write_exp_elt_longcst, write_exp_elt_dblcst,
8228 write_exp_elt_decfloatcst, write_exp_elt_type,
8229 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8230 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8231 write_dollar_variable): Likewise.
8232 (parse_exp_in_context_1): Use parser state.
8233 (insert_type_address_space): Add "struct parser_state" argument.
8234 Use parser state.
8235 (increase_expout_size): New function.
8236 * parser-defs.h: Forward declare "struct language_defn" and
8237 "struct parser_state".
8238 (expout, expout_size, expout_ptr): Remove extern declarations.
8239 (parse_gdbarch, parse_language): Rewrite macro declarations to
8240 accept the parser state.
8241 (struct parser_state): New struct.
8242 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8243 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8244 write_exp_elt_decfloatcst, write_exp_elt_type,
8245 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8246 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8247 write_exp_msymbol, write_dollar_variable,
8248 mark_struct_expression, insert_type_address_space): Add "struct
8249 parser_state" argument.
8250 (increase_expout_size): New function.
8251 * utils.c (do_clear_parser_state): New function.
8252 (make_cleanup_clear_parser_state): Likewise.
8253 * utils.h (make_cleanup_clear_parser_state): New function
8254 prototype.
8255 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8256 Update calls to write_exp* in order to pass the parser state.
8257 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8258 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8259 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8260 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8261 * stap-probe.c (stap_parse_register_operand): Likewise.
8262 (stap_parse_single_operand): Likewise.
8263 (stap_parse_argument_1): Likewise.
8264 (stap_parse_argument): Use parser state.
8265 * stap-probe.h: Include "parser-defs.h".
8266 (struct stap_parse_info) <pstate>: New field.
8267 * c-exp.y (parse_type): Rewrite to use parser state.
8268 (yyparse): Redefine to c_parse_internal.
8269 (pstate): New global variable.
8270 (parse_number): Add "struct parser_state" argument.
8271 (write_destructor_name): Likewise.
8272 (type_exp): Update calls to write_exp* and similars in order to
8273 use parser state.
8274 (exp1, exp, variable, qualified_name, space_identifier,
8275 typename, typebase): Likewise.
8276 (write_destructor_name, parse_number, lex_one_token,
8277 classify_name, classify_inner_name, c_parse): Add "struct
8278 parser_state" argument. Update function to use parser state.
8279 * c-lang.h: Forward declare "struct parser_state".
8280 (c_parse): Add "struct parser_state" argument.
8281 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8282 (yyparse): Redefine macro to ada_parse_internal.
8283 (pstate): New variable.
8284 (write_int, write_object_renaming, write_var_or_type,
8285 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8286 type_int, type_long, type_long_long, type_float, type_double,
8287 type_long_double, type_char, type_boolean, type_system_address):
8288 Add "struct parser_state" argument.
8289 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8290 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8291 var_or_type, aggregate, aggregate_component_list,
8292 positional_list, others, component_group,
8293 component_associations): Update calls to write_exp* and similar
8294 functions in order to use parser state.
8295 (ada_parse, write_var_from_sym, write_int,
8296 write_exp_op_with_string, write_object_renaming,
8297 find_primitive_type, write_selectors, write_ambiguous_var,
8298 write_var_or_type, write_name_assoc, type_int, type_long,
8299 type_long_long, type_float, type_double, type_long_double,
8300 type_char, type_boolean, type_system_address): Add "struct
8301 parser_state" argument. Adjust function to use parser state.
8302 * ada-lang.c (parse): Likewise.
8303 * ada-lang.h: Forward declare "struct parser_state".
8304 (ada_parse): Add "struct parser_state" argument.
8305 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8306 calls to both functions.
8307 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8308 parser state.
8309 (yyparse): Redefine macro to f_parse_internal.
8310 (pstate): New variable.
8311 (parse_number): Add "struct parser_state" argument.
8312 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8313 and similars in order to use parser state.
8314 (parse_number): Adjust code to use parser state.
8315 (yylex): Likewise.
8316 (f_parse): New function.
8317 * f-lang.h: Forward declare "struct parser_state".
8318 (f_parse): Add "struct parser_state" argument.
8319 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8320 parser state.
8321 (yyparse): Redefine macro for java_parse_internal.
8322 (pstate): New variable.
8323 (push_expression_name, push_expression_name, insert_exp): Add
8324 "struct parser_state" argument.
8325 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8326 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8327 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8328 PostIncrementExpression, PostDecrementExpression,
8329 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8330 UnaryExpressionNotPlusMinus, CastExpression,
8331 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8332 RelationalExpression, EqualityExpression, AndExpression,
8333 ExclusiveOrExpression, InclusiveOrExpression,
8334 ConditionalAndExpression, ConditionalOrExpression,
8335 ConditionalExpression, Assignment, LeftHandSide): Update
8336 calls to write_exp* and similars in order to use parser state.
8337 (parse_number): Ajust code to use parser state.
8338 (yylex): Likewise.
8339 (java_parse): New function.
8340 (push_variable): Add "struct parser_state" argument. Adjust
8341 code to user parser state.
8342 (push_fieldnames, push_qualified_expression_name,
8343 push_expression_name, insert_exp): Likewise.
8344 * jv-lang.h: Forward declare "struct parser_state".
8345 (java_parse): Add "struct parser_state" argument.
8346 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8347 parser state.
8348 (yyparse): Redefine macro to m2_parse_internal.
8349 (pstate): New variable.
8350 (type_exp, exp, fblock, variable, type): Update calls to
8351 write_exp* and similars to use parser state.
8352 (yylex): Likewise.
8353 (m2_parse): New function.
8354 * m2-lang.h: Forward declare "struct parser_state".
8355 (m2_parse): Add "struct parser_state" argument.
8356 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8357 * objc-lang.h: Forward declare "struct parser_state".
8358 (end_msglist): Add "struct parser_state" argument.
8359 * p-exp.y (parse_type): Rewrite macro to use parser state.
8360 (yyparse): Redefine macro to pascal_parse_internal.
8361 (pstate): New variable.
8362 (parse_number): Add "struct parser_state" argument.
8363 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8364 write_exp* and similars in order to use parser state.
8365 (parse_number, yylex): Adjust code to use parser state.
8366 (pascal_parse): New function.
8367 * p-lang.h: Forward declare "struct parser_state".
8368 (pascal_parse): Add "struct parser_state" argument.
8369 * go-exp.y (parse_type): Rewrite macro to use parser state.
8370 (yyparse): Redefine macro to go_parse_internal.
8371 (pstate): New variable.
8372 (parse_number): Add "struct parser_state" argument.
8373 (type_exp, exp1, exp, variable, type): Update calls to
8374 write_exp* and similars in order to use parser state.
8375 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8376 to use parser state.
8377 (go_parse): Likewise.
8378 * go-lang.h: Forward declare "struct parser_state".
8379 (go_parse): Add "struct parser_state" argument.
8380
342587c4
DE
83812014-03-27 Doug Evans <dje@google.com>
8382
8383 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8384
33e80786
DE
83852014-03-27 Doug Evans <dje@google.com>
8386
8387 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8388 Remove argument abbrev_section. All callers updated.
8389
1dbab08b
DE
83902014-03-27 Doug Evans <dje@google.com>
8391
8392 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8393 addr_base, ranges_base.
8394
318d3177
KS
83952014-03-26 Keith Seitz <keiths@redhat.com>
8396
8397 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8398 types, not VAR_DOMAIN.
8399
1e54db15
SL
84002014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8401
8402 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8403 "ra" registers.
8404 * features/nios2-linux.c: Regenerated.
8405 * features/nios2.c: Regenerated.
8406
d3839ede
PA
84072014-03-25 Pedro Alves <palves@redhat.com>
8408
8409 * cli/cli-script.c (script_from_file): Force the interpreter to
8410 sync mode.
8411
7588d2ec
PL
84122014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8413
8414 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8415 small stack allocation.
8416
a6290449
TG
84172014-03-24 Tristan Gingold <gingold@adacore.com>
8418
8419 * darwin-nat.c (exc_server): Remove unused prototype.
8420 (darwin_dump_message): Correctly display data on x86_64.
8421 (darwin_encode_reply): Fix style.
8422 Add comments and fix indentation.
8423
31ae9d24 84242014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8425
8426 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8427
6339bfc4
DE
84282014-03-22 Doug Evans <xdje42@gmail.com>
8429
8430 * infcmd.c: Whitespace fixes.
8431 (interrupt_command): Merge two function comments into one.
8432
0a07590b
DE
84332014-03-22 Doug Evans <xdje42@gmail.com>
8434
8435 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8436 All uses updated.
8437
b55fbac4
YQ
84382014-03-22 Yao Qi <yao@codesourcery.com>
8439
8440 * remote.c (target_read_live_memory): Remove.
8441 (memory_xfer_live_readonly_partial): Rename it to
8442 remote_xfer_live_readonly_partial. Remove argument 'object'.
8443 All callers updated. Call remote_read_bytes_1
8444 instead of target_read_live_memory.
8445 * tracepoint.c (set_traceframe_number): Remove.
8446 (make_cleanup_restore_traceframe_number): Likewise .
8447 * tracepoint.h (set_traceframe_number): Remove declaration.
8448 (make_cleanup_restore_traceframe_number): Likewise.
8449
9217e74e
YQ
84502014-03-22 Yao Qi <yao@codesourcery.com>
8451
8452 * remote.c (remote_read_bytes): Move code on reading from the
8453 remote stub to ...
8454 (remote_read_bytes_1): ... here. New function.
8455
8acf9577
YQ
84562014-03-22 Yao Qi <yao@codesourcery.com>
8457
8458 * ctf.c (ctf_xfer_partial): Check the return value of
8459 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8460 return TARGET_XFER_UNAVAILABLE.
8461 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8462 * target.c (target_read_live_memory): Move it to remote.c.
8463 (memory_xfer_live_readonly_partial): Likewise.
8464 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8465 * remote.c (target_read_live_memory): Moved from target.c.
8466 (memory_xfer_live_readonly_partial): Likewise.
8467 (remote_read_bytes): Factored out from
8468 memory_xfer_partial_1.
8469
feef67ab
DE
84702014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8471
8472 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8473 NULL pointer.
8474
b65dc60b
PA
84752014-03-21 Pedro Alves <palves@redhat.com>
8476
8477 * infrun.c (normal_stop): Extend comment.
8478
b4ab256d
HZ
84792014-03-21 Hui Zhu <hui@codesourcery.com>
8480 Pedro Alves <palves@redhat.com>
8481
8482 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8483 static buffer.
8484 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8485 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8486 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8487
deba7593
MR
84882014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8489
8490 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8491 `z' formatted output modifier.
8492
1bff71c3
SDJ
84932014-03-20 Tom Tromey <tromey@redhat.com>
8494 Sergio Durigan Junior <sergiodj@redhat.com>
8495
8496 * probe.c (parse_probes): Turn assert into an ordinary error.
8497 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8498 exceptions when parsing probes. Rearrange the code for clarity.
8499
90e28950
TT
85002014-03-20 Tom Tromey <tromey@redhat.com>
8501
8502 PR gdb/14135
8503 * top.c (execute_command): Only dispatch events if the command
8504 started the target.
8505
beb460e8
PA
85062014-03-20 Tom Tromey <tromey@redhat.com>
8507
8508 PR cli/15718
8509 * infcall.c: Include event-top.h.
8510 (run_inferior_call): Call async_disable_stdin if needed.
8511
99619bea
PA
85122014-03-20 Pedro Alves <palves@redhat.com>
8513
8514 * infrun.c (prepare_to_proceed): Delete.
8515 (thread_still_needs_step_over): New function.
8516 (find_thread_needs_step_over): New function.
8517 (proceed): If the current thread needs a step-over, set its
8518 steping_over_breakpoint flag. Adjust to use
8519 find_thread_needs_step_over instead of prepare_to_proceed.
8520 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8521 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8522 breakpoint.
8523 (switch_back_to_stepped_thread): Step over breakpoints of all
8524 threads not the stepping thread, before switching back to the
8525 stepping thread.
8526
2adfaa28
PA
85272014-03-20 Pedro Alves <palves@redhat.com>
8528
8529 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8530 extern.
8531 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8532 * infrun.c (saved_singlestep_ptid)
8533 (stepping_past_singlestep_breakpoint): Delete.
8534 (resume): Remove stepping_past_singlestep_breakpoint handling.
8535 (proceed): Store the prev_pc of the stepping thread too.
8536 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8537 singlestep_pc.
8538 (enum infwait_states): Delete infwait_thread_hop_state.
8539 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8540 field.
8541 (handle_inferior_event): Adjust.
8542 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8543 handling and the thread-hop code. Before removing single-step
8544 breakpoints, check whether the thread hit a single-step breakpoint
8545 of another thread. If it did, the trap is not a random signal.
8546 (switch_back_to_stepped_thread): If the event thread hit a
8547 single-step breakpoint, unblock it before switching to the
8548 stepping thread. Handle the case of the stepped thread having
8549 advanced already.
8550 (keep_going): Handle the case of the current thread moving past a
8551 single-step breakpoint.
8552
31e77af2
PA
85532014-03-20 Pedro Alves <palves@redhat.com>
8554
8555 PR breakpoints/7143
8556 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8557 are being stepped over.
8558 (breakpoint_address_match): Make extern.
8559 * breakpoint.h (breakpoint_address_match): New declaration.
8560 * inferior.h (stepping_past_instruction_at): New declaration.
8561 * infrun.c (struct step_over_info): New type.
8562 (step_over_info): New global.
8563 (set_step_over_info, clear_step_over_info)
8564 (stepping_past_instruction_at): New functions.
8565 (handle_inferior_event): Clear the step-over info when
8566 trap_expected is cleared.
8567 (resume): Remove now stale comment.
8568 (clear_proceed_status): Clear step-over info.
8569 (proceed): Adjust step-over handling to set or clear the step-over
8570 info instead of removing all breakpoints.
8571 (handle_signal_stop): When setting up a thread-hop, don't remove
8572 breakpoints here.
8573 (stop_stepping): Clear step-over info.
8574 (keep_going): Adjust step-over handling to set or clear step-over
8575 info and then always inserting breakpoints, instead of removing
8576 all breakpoints when stepping over one.
8577
b9f437de
PA
85782014-03-20 Pedro Alves <palves@redhat.com>
8579
8580 * infrun.c (previous_inferior_ptid): Adjust comment.
8581 (deferred_step_ptid): Delete.
8582 (infrun_thread_ptid_changed, prepare_to_proceed)
8583 (init_wait_for_inferior): Adjust.
8584 (handle_signal_stop): Delete deferred_step_ptid handling.
8585
06c868a8
JK
85862014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8587
8588 PR gdb/15358
8589 * defs.h (sync_quit_force_run): New declaration.
8590 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8591 * event-top.c (async_sigterm_handler): New declaration.
8592 (async_sigterm_token): New variable.
8593 (async_init_signals): Create also async_sigterm_token.
8594 (async_sigterm_handler): New function.
8595 (sync_quit_force_run): New variable.
8596 (handle_sigterm): Replace quit_force call by other calls.
8597 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8598
dea80df0
MR
85992014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8600
8601 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8602 offset into SPE pseudo registers.
8603
0c7e1a46
PA
86042014-03-18 Pedro Alves <palves@redhat.com>
8605
8606 PR gdb/13860
8607 * inferior.h (print_stop_event): Declare.
8608 * infrun.c (print_stop_event): New, factored out from ...
8609 (normal_stop): ... this.
8610 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8611 of bpstat_print/print_stack_frame.
8612
9c1fcd01
TT
86132014-03-17 Tom Tromey <tromey@redhat.com>
8614
8615 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8616
11aa919a
PMR
86172014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8618
8619 * ada-lang.c (decode_constrained_packed_array): Perform a
8620 minimal coercion for reference with coerce_ref instead of
8621 ada_coerce_ref.
8622
d4ccb5e0
TG
86232014-03-17 Tristan Gingold <gingold@adacore.com>
8624
8625 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8626 (darwin_solib_create_inferior_hook): Emit a warning if version
8627 is unhandled.
8628
49840f2a
UW
86292014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8630
8631 * python/py-value.c (get_field_flag): Cast flag_name argument to
8632 PyObject_GetAttrString to support Python 2.4.
8633
ed4123e5
JK
86342014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8635
8636 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8637 (Global Maintainers): Remove Jan Kratochvil.
8638
d6b64346
PA
86392014-03-14 Pedro Alves <palves@redhat.com>
8640
8641 * inferior.h (terminal_ours_for_output): Rename to ...
8642 (child_terminal_ours_for_output): ... this.
8643 (terminal_save_ours): Rename to ...
8644 (child_terminal_save_ours): ... this.
8645 (terminal_ours): Rename to ...
8646 (child_terminal_ours): ... this.
8647 (terminal_inferior): Rename to ...
8648 (child_terminal_inferior): ... this.
8649 (terminal_init_inferior): Rename to ...
8650 (child_terminal_init_inferior): ... this.
8651 (terminal_init_inferior_with_pgrp): Rename to ...
8652 (child_terminal_init_inferior_with_pgrp): ... this.
8653 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8654 (child_terminal_init_with_pgrp): ... this.
8655 (terminal_save_ours): Rename to ...
8656 (child_terminal_save_ours): ... this.
8657 (terminal_init_inferior): Rename to ...
8658 (child_terminal_init): ... this. Adjust.
8659 (terminal_inferior): Rename to ...
8660 (child_terminal_inferior): ... this.
8661 (terminal_ours_for_output): Rename to ...
8662 (child_terminal_ours_for_output): ... this. Adjust.
8663 (terminal_ours): Rename to ...
8664 (child_terminal_ours): ... this.
8665 (terminal_ours_1): Rename to ...
8666 (child_terminal_ours_1): ... this. Adjust.
8667 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8668 * windows-nat.c (do_initial_windows_stuff): Adjust.
8669 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8670 (gnu_terminal_init): ... this. Adjust.
8671 (gnu_target): Adjust.
8672 * inf-child.c (inf_child_target): Adjust.
8673
5a1e8c7a
DE
86742014-03-13 Doug Evans <xdje42@gmail.com>
8675
8676 PR guile/16612
8677 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8678 new eq?-hashtab.
8679
350e1a76
DE
86802014-03-13 Doug Evans <xdje42@gmail.com>
8681
8682 * value.c (record_latest_value): Call release_value_or_incref
8683 instead of release_value.
8684
a69900ae
PA
86852014-03-13 Pedro Alves <palves@redhat.com>
8686
8687 * procfs.c (procfs_target): Don't override to_shortname,
8688 to_longname or to_doc.
8689
5db9f0bd
PA
86902014-03-13 Pedro Alves <palves@redhat.com>
8691
8692 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8693 Unix in user visible strings.
8694
5e3a2c38
SS
86952014-03-12 Stan Shebs <stan@codesourcery.com>
8696
8697 * gdbtypes.h: Annotate comments for Doxygen, add a page
8698 block comment with some general info.
8699
8bc2fe48
PA
87002014-03-12 Pedro Alves <palves@redhat.com>
8701
8702 * infcmd.c (prepare_execution_command): New function, factored out
8703 from several execution commands.
8704 (run_command_1, continue_command, step_1, jump_command)
8705 (signal_command, until_command, advance_command, finish_command)
8706 (attach_command): Use prepare_execution_command.
8707
638c5f49
OJ
87082014-03-12 Omair Javaid <omair.javaid@linaro.org>
8709
8710 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8711 (MAX_BPTS): Define.
8712 (MAX_WPTS): Define.
8713 (struct arm_linux_thread_points): Removed.
8714 (struct arm_linux_process_info): New.
8715 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8716 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8717 (arm_linux_find_breakpoints_by_tid): Removed.
8718 (struct arch_lwp_info): New.
8719 (arm_linux_find_process_pid): New functions.
8720 (arm_linux_add_process): New functions.
8721 (arm_linux_process_info_get): New functions.
8722 (arm_linux_forget_process): New function.
8723 (arm_linux_get_debug_reg_state): New function.
8724 (struct update_registers_data): New.
8725 (update_registers_callback): New function.
8726 (arm_linux_insert_hw_breakpoint1): Updated.
8727 (arm_linux_remove_hw_breakpoint1): Updated.
8728 (arm_linux_insert_hw_breakpoint): Updated.
8729 (arm_linux_remove_hw_breakpoint): Updated.
8730 (arm_linux_insert_watchpoint): Updated.
8731 (arm_linux_remove_watchpoint): Updated.
8732 (arm_linux_new_thread): Updated.
8733 (arm_linux_prepare_to_resume): New function.
8734 (arm_linux_new_fork): New function.
8735 (_initialize_arm_linux_nat): Updated.
8736
6d03af93
PA
87372014-03-12 Pedro Alves <palves@redhat.com>
8738
8739 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8740
b3ccfe11
TT
87412014-03-12 Tom Tromey <tromey@redhat.com>
8742
8743 * inf-child.c (return_zero): New function.
8744 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8745 * aix-thread.c (aix_thread_inferior_created): New function.
8746 (aix_thread_attach): Remove.
8747 (init_aix_thread_ops): Don't set to_attach.
8748 (_initialize_aix_thread): Register inferior_created observer.
8749 * corelow.c (init_core_ops): Don't set to_attach or
8750 to_create_inferior.
8751 * exec.c (init_exec_ops): Don't set to_attach or
8752 to_create_inferior.
8753 * infcmd.c (run_command_1): Use find_run_target. Make direct
8754 target calls.
8755 (attach_command): Use find_attach_target. Make direct target
8756 calls.
8757 * record-btrace.c (init_record_btrace_ops): Don't set
8758 to_create_inferior.
8759 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8760 Remove.
8761 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8762 set to_create_inferior.
8763 * target.c (complete_target_initialization): Add assertion.
8764 (target_create_inferior): Remove.
8765 (find_default_attach, find_default_create_inferior): Remove.
8766 (find_attach_target, find_run_target): New functions.
8767 (find_default_is_async_p, find_default_can_async_p)
8768 (target_supports_non_stop, target_attach): Remove.
8769 (init_dummy_target): Don't set to_create_inferior or
8770 to_supports_non_stop.
8771 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8772 TARGET_DEFAULT_FUNC.
8773 <to_create_inferior>: Add comment.
8774 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8775 TARGET_DEFAULT_RETURN.
8776 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8777 (find_attach_target, find_run_target): Declare.
8778 (target_create_inferior): Remove.
8779 (target_has_execution_1): Update comment.
8780 (target_supports_non_stop): Remove.
8781 * target-delegates.c: Rebuild.
8782
91f83b02
PA
87832014-03-12 Pedro Alves <palves@redhat.com>
8784
8785 * inf-child.h: Update comment to not mention Unix.
8786
f1aea813
PA
87872014-03-12 Pedro Alves <palves@redhat.com>
8788
8789 * inf-child.c: Update top comment to not mention Unix. Add
8790 generic comment describing how this target is meant to be used.
8791 (inf_child_post_attach, inf_child_post_startup_inferior)
8792 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8793 Unix in comment.
8794
ee8e9165
PA
87952014-03-12 Pedro Alves <palves@redhat.com>
8796
8797 * nto-procfs.c: Include inf-child.h.
8798 (procfs_ops): Delete global.
8799 (procfs_can_run): Delete method.
8800 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8801 target pointer instead of referencing procfs_ops.
8802 (procfs_prepare_to_store): Delete.
8803 (init_procfs_ops): Delete function.
8804 (procfs_target): New function, based on init_procfs_ops, but
8805 inherit inf_child_target.
8806 (_initialize_procfs): Use procfs_target.
8807
51a9c8c5
PA
88082014-03-12 Pedro Alves <palves@redhat.com>
8809
8810 * windows-nat.c: Include inf-child.h.
8811 (windows_ops): Delete global.
8812 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8813 methods.
8814 (init_windows_ops): Delete function.
8815 (windows_target): New function, based on init_windows_ops, but
8816 inherit inf_child_target.
8817 (_initialize_windows_nat): Use windows_target. Install x86
8818 specific target methods here.
8819
c1966e26
DE
88202014-03-10 Doug Evans <xdje42@gmail.com>
8821
8822 * guile/guile.c (call_initialize_gdb_module): New function.
8823 (initialize_guile): Replace call to scm_init_guile with call to
8824 scm_with_guile.
8825
023db19c
JB
88262014-03-10 Joel Brobecker <brobecker@adacore.com>
8827
8828 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8829 in call to TYPE_CODE macro.
8830
5ec18f2b
JG
88312014-03-10 Jerome Guitton <guitton@adacore.com>
8832
8668be63
JB
8833 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8834 Resolve tagged types to full view.
5ec18f2b 8835
7d03f2eb
HZ
88362014-03-10 Hui Zhu <hui@codesourcery.com>
8837
8838 * target.h (target_insert_breakpoint): Remove "hardware" from its
8839 comments.
8840
c5164cbc
DE
88412014-03-07 Doug Evans <dje@google.com>
8842
8843 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8844
c4a3fee2
DE
88452014-03-07 Doug Evans <dje@google.com>
8846
8847 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8848 Remove unused local comp_dir_attr. Assert exactly one of
8849 stub_comp_unit_die, stub_comp_dir is non-NULL.
8850
3156469c
JB
88512014-03-07 Joel Brobecker <brobecker@adacore.com>
8852
8853 * target.h (complete_target_initialization, add_target):
8854 Add comment.
8855
c1a7b7c6
PA
88562014-03-07 Pedro Alves <palves@redhat.com>
8857
8858 * go32-nat.c: Include inf-child.h.
8859 (go32_ops): Delete global.
8860 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8861 Delete methods.
8862 (go32_create_inferior): Push the passed in target pointer instead
8863 of referencing go32_ops.
8864 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8865 (go32_target): New function, based on init_go32_ops, but inherit
8866 inf_child_target.
8867 (_initialize_go32_nat): Use go32_target. Move parts of
8868 init_go32_ops here.
8869
d3c1a85f
JB
88702014-03-06 Joel Brobecker <brobecker@adacore.com>
8871
8872 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8873 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8874 SYMBOL_VALUE_ADDRESS.
8875 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8876
5fa1d40e
YQ
88772014-03-06 Yao Qi <yao@codesourcery.com>
8878
8879 * breakpoint.c (get_tracepoint_by_number): Remove argument
8880 optional_p. All callers updated. Adjust comments. Update
8881 output message.
8882 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8883
0c13193f
YQ
88842014-03-06 Yao Qi <yao@codesourcery.com>
8885
8886 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8887 early if get_number returns zero. Use 'p' instead of 'args'.
8888
2217da06
YQ
88892014-03-06 Yao Qi <yao@codesourcery.com>
8890
8891 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8892 message.
8893
cc3da688
YQ
88942014-03-06 Yao Qi <yao@codesourcery.com>
8895
8896 PR breakpoints/16508
8897 * tracepoint.c (check_trace_running): New function.
8898 (trace_find_command): Move code to check_trace_running and
8899 call check_trace_running.
8900 (trace_find_pc_command): Likewise.
8901 (trace_find_tracepoint_command): Likewise.
8902 (trace_find_line_command): Likewise.
8903 (trace_find_range_command): Likewise.
8904 * tracepoint.h (check_trace_running): Likewise.
8905 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8906
6a5f844b
YQ
89072014-03-06 Yao Qi <yao@codesourcery.com>
8908
8909 * target.h (struct target_ops) <to_traceframe_info>: Use
8910 TARGET_DEFAULT_NORETURN (tcomplain ()).
8911 * target-delegates.c: Regenerated.
8912
0f26cec1
PA
89132014-03-05 Pedro Alves <palves@redhat.com>
8914
8915 PR gdb/16575
8916 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8917 void. Update comment.
8918 (dcache_xfer_memory): Delete.
8919 (dcache_read_memory_partial): New, based on the read bits of
8920 dcache_xfer_memory.
8921 (dcache_update): Add status parameter. Use ULONGEST for len, and
8922 adjust. Discard cache lines if the reason for the update was
8923 error.
8924 * dcache.h (dcache_xfer_memory): Delete declaration.
8925 (dcache_read_memory_partial): New declaration.
8926 (dcache_update): Update prototype.
8927 * target.c (raw_memory_xfer_partial): Update the dcache here.
8928 (memory_xfer_partial_1): Don't handle dcache writes here.
8929
b2b255bd
MF
89302014-03-05 Mike Frysinger <vapier@gentoo.org>
8931
8932 * remote-sim.c (gdbsim_load): Add const to prog.
8933
5d9cf8a4
TT
89342014-03-03 Tom Tromey <tromey@redhat.com>
8935
8936 * elfread.c (probe_key): Change to bfd_data.
8937 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8938 now per-BFD, not per-objfile.
8939 * stap-probe.c (stap_probe_destroy): Update comment.
8940 (handle_stap_probe): Allocate on the per-BFD obstack.
8941
729662a5
TT
89422014-03-03 Tom Tromey <tromey@redhat.com>
8943
8944 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8945 * breakpoint.c (create_longjmp_master_breakpoint): Use
8946 get_probe_address.
8947 (add_location_to_breakpoint, bkpt_probe_insert_location)
8948 (bkpt_probe_remove_location): Update.
8949 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8950 * elfread.c (elf_symfile_relocate_probe): Remove.
8951 (elf_probe_fns): Update.
8952 (insert_exception_resume_breakpoint): Change type of "probe"
8953 parameter to bound_probe.
8954 (check_exception_resume): Update.
8955 * objfiles.c (objfile_relocate1): Don't relocate probes.
8956 * probe.c (bound_probe_s): New typedef.
8957 (parse_probes): Use get_probe_address. Set sal's objfile.
8958 (find_probe_by_pc): Return a bound_probe.
8959 (collect_probes): Return a VEC(bound_probe_s).
8960 (compare_probes): Update.
8961 (gen_ui_out_table_header_info): Change type of "probes"
8962 parameter. Update.
8963 (info_probes_for_ops): Update.
8964 (get_probe_address): New function.
8965 (probe_safe_evaluate_at_pc): Update.
8966 * probe.h (struct probe_ops) <get_probe_address>: New field.
8967 <set_semaphore, clear_semaphore>: Add objfile parameter.
8968 (struct probe) <objfile>: Remove field.
8969 <arch>: New field.
8970 <address>: Update comment.
8971 (struct bound_probe): New.
8972 (find_probe_by_pc): Return a bound_probe.
8973 (get_probe_address): Declare.
8974 * solib-svr4.c (struct probe_and_action) <address>: New field.
8975 (hash_probe_and_action, equal_probe_and_action): Update.
8976 (register_solib_event_probe): Add address parameter.
8977 (solib_event_probe_at): Update.
8978 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8979 get_probe_address.
8980 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8981 (stap_get_probe_address): New function.
8982 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8983 (compile_probe_arg): Update.
8984 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8985 address.
8986 (handle_stap_probe): Don't relocate the probe.
8987 (stap_relocate): Remove.
8988 (stap_gen_info_probes_table_values): Update.
8989 (stap_probe_ops): Remove stap_relocate.
8990 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8991 (debug_sym_probe_fns): Update.
8992 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8993 * symtab.c (init_sal): Use memset.
8994 * symtab.h (struct symtab_and_line) <objfile>: New field.
8995 * tracepoint.c (start_tracing, stop_tracing): Update.
8996
ff887920
TT
89972014-03-03 Tom Tromey <tromey@redhat.com>
8998
8999 * probe.h (parse_probes, find_probe_by_pc)
9000 (find_probes_in_objfile): Fix comments.
9001
f0407826
DE
90022014-03-02 Doug Evans <xdje42@gmail.com>
9003
9004 * infrun.c (handle_signal_stop): Replace test for
9005 TARGET_WAITKIND_STOPPED with an assert.
9006
35e6a711
DE
90072014-03-02 Doug Evans <xdje42@gmail.com>
9008
9009 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9010
667f9d0b
DE
90112014-03-02 Doug Evans <xdje42@gmail.com>
9012
9013 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9014
dc92ace0
MK
90152014-03-01 Mark Kettenis <kettenis@gnu.org>
9016
9017 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9018
a900370f
MK
90192014-03-01 Mark Kettenis <kettenis@gnu.org>
9020
9021 * i386obsd-nat.c: Include "obsd-nat.h".
9022 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9023 add_target.
9024 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9025
b72a7981
MK
90262014-03-01 Mark Kettenis <kettenis@gnu.org>
9027
9028 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9029
96c70aba
MK
90302014-03-01 Mark Kettenis <kettenis@gnu.org>
9031
9032 * mips64obsd-nat.c: Include "obsd-nath".
9033 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9034 add_target
9035 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9036
874a80af
MK
90372014-03-01 Mark Kettenis <kettenis@gnu.org>
9038
8fd408f1
MK
9039 * amd64obsd-nat.c: Include "obsd-nat,h.
9040 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9041 add_target.
874a80af
MK
9042 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9043
9cf95373
SC
90442014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9045
9046 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9047 (find_overload_match): Update call to find_oload_champ.
9048 (find_oload_champ_namespace_loop): Likewise
9049
863e4da4
MK
90502014-02-28 Mark Kettenis <kettenis@gnu.org>
9051
025cac40
MK
9052 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9053
1ed586ce
MK
9054 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9055 * config/sparc/obsd64.mh: New file.
9056 * sparc64obsd-nat.c: New file.
9057
863e4da4
MK
9058 * obsd-nat.h: New file.
9059 * obsd-nat.c: New file.
9060 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9061 (ALLDEPFILES): Add obsd-nat.c.
9062
89de4da4
TT
90632014-02-28 Tom Tromey <tromey@redhat.com>
9064
9065 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9066 * cli-out.h (cli_ui_out_impl): Now const.
9067 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9068 * ui-out.c (struct ui_out) <impl>: Now const.
9069 (default_ui_out_impl): Now const.
9070 (ui_out_new): Make 'impl' parameter const.
9071 * ui-out.h (ui_out_new): Update.
9072
c725e7b6
MK
90732014-02-27 Mark Kettenis <kettenis@gnu.org>
9074
9075 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9076
670b46b3
MK
90772014-02-27 Mark Kettenis <kettenis@gnu.org>
9078
9079 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9080
c91550fc
JK
90812014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9082
9083 Additional PR 8882 fix.
9084 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9085
2fa0369e
PA
90862014-02-27 Pedro Alves <palves@redhat.com>
9087
9088 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9089 isn't set.
9090
d632a097
PA
90912014-02-27 Pedro Alves <palves@redhat.com>
9092
9093 PR 12702
9094 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9095 * nat/linux-waitpid.c: Include string.h.
9096 (status_to_str): Moved here and made extern.
9097 * nat/linux-waitpid.h (status_to_str): New declaration.
9098
2ebd5a35
HZ
90992014-02-27 Hui Zhu <hui@codesourcery.com>
9100
9101 PR 12702
9102 * infrun.c (ptid_match): Move ...
9103 * common/ptid.c (ptid_match): ... here.
9104 * inferior.h (ptid_match): Move ...
9105 * common/ptid.h (ptid_match): ... here.
9106
3cdd631f
MK
91072014-02-27 Mark Kettenis <kettenis@gnu.org>
9108
9109 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9110 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9111 gdb_target_obs.
9112
bee30a64
MK
91132014-02-27 Mark Kettenis <kettenis@gnu.org>
9114
9115 * obsd-tdep.c (obsd_auxv_parse): New function.
9116 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9117
9118 * gdbarch.sh (auxv_parse): New.
9119 * gdbarch.h: Regenerated.
9120 * gdbarch.c: Regenerated.
9121 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9122
7a5a839f
LC
91232014-02-26 Ludovic Courtès <ludo@gnu.org>
9124
9125 * guile/scm-value.c (gdbscm_history_append_x): New function.
9126 (value_functions): Add it.
9127
31aa7e4e
JB
91282014-02-27 Joel Brobecker <brobecker@adacore.com>
9129
9130 * dwarf2read.c (attr_value_as_address): New function.
9131 (dwarf2_find_base_address, read_call_site_scope): Use
9132 attr_value_as_address in place of DW_ADDR.
9133 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9134 the low and high addresses. Slight rework of the handling
9135 of the high pc being a constant form, and limit it to
9136 DWARF verson 4 or higher.
9137 (dwarf2_record_block_ranges): Likewise.
9138 (read_partial_die): Likewise.
9139 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9140
9b333ba3
TT
91412014-02-26 Tom Tromey <tromey@redhat.com>
9142
9143 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9144
5f6cac40
TT
91452014-02-26 Tom Tromey <tromey@redhat.com>
9146
9147 * elfread.c (elf_read_minimal_symbols): Return early if
9148 minimal symbols have already been read. Add "ei" parameter.
9149 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9150 * minsyms.c (prim_record_minimal_symbol_full): Update.
9151 * objfiles.h (struct objstats) <n_minsyms>: Move...
9152 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9153 * symmisc.c (print_objfile_statistics): Update.
9154
2750ef27
TT
91552014-02-26 Tom Tromey <tromey@redhat.com>
9156
9157 * elfread.c (elf_read_minimal_symbols): New function, from
9158 elf_symfile_read.
9159 (elf_symfile_read): Call it.
9160
34643a32
TT
91612014-02-26 Tom Tromey <tromey@redhat.com>
9162
9163 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9164 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9165 (lookup_minimal_symbol_solib_trampoline)
9166 (lookup_minimal_symbol_by_pc_section_1)
9167 (lookup_minimal_symbol_and_objfile): Update.
9168 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9169 Don't allocate a minimal symbol if minsyms have already been read.
9170 (build_minimal_symbol_hash_tables): Update.
9171 (install_minimal_symbols): Do nothing if minsyms already read.
9172 Use the per-BFD obstack.
9173 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9174 * objfiles.c (allocate_objfile): Call
9175 terminate_minimal_symbol_table later.
9176 (have_minimal_symbols): Update.
9177 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9178 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9179 Move from struct objfile.
9180 <minsyms_read>: New field.
9181 (struct objfile) <msymbols, minimal_symbol_count,
9182 msymbol_hash, msymbol_demangled_hash>: Move.
9183 (ALL_OBJFILE_MSYMBOLS): Update.
9184 * symfile.c (read_symbols): Set minsyms_read.
9185 (reread_symbols): Update.
9186 * symmisc.c (dump_objfile, dump_msymbols): Update.
9187
2273f0ac
TT
91882014-02-26 Tom Tromey <tromey@redhat.com>
9189
9190 * minsyms.c (msymbols_sort): Remove.
9191 * minsyms.h (msymbols_sort): Remove.
9192 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9193 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9194 * elfread.c (elf_symtab_read): Don't add section offsets.
9195 * xcoffread.c (record_minimal_symbol): Don't add section offset
9196 to minimal symbol address.
9197 * somread.c (text_offset, data_offset): Remove.
9198 (som_symtab_read): Don't add section offsets to minimal symbol
9199 addresses.
9200 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9201 Don't add section offsets to minimal symbols.
9202 * coffread.c (coff_symtab_read): Don't add section offsets
9203 to minimal symbol addresses.
9204 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9205 to minimal symbol addresses.
9206 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9207 section offset to minimal symbol addresses.
9208 * mdebugread.c (parse_partial_symbols): Don't add section
9209 offset to minimal symbol addresses.
9210 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9211 offset to minimal symbol addresses.
9212
77e371c0
TT
92132014-02-26 Tom Tromey <tromey@redhat.com>
9214
9215 * ada-lang.c (ada_main_name): Update.
9216 (ada_add_standard_exceptions): Update.
9217 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9218 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9219 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9220 * auxv.c (ld_so_xfer_auxv): Update.
9221 * avr-tdep.c (avr_scan_prologue): Update.
9222 * ax-gdb.c (gen_var_ref): Update.
9223 * blockframe.c (get_pc_function_start)
9224 (find_pc_partial_function_gnu_ifunc): Update.
9225 * breakpoint.c (create_overlay_event_breakpoint)
9226 (create_longjmp_master_breakpoint)
9227 (create_std_terminate_master_breakpoint)
9228 (create_exception_master_breakpoint): Update.
9229 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9230 * c-valprint.c (c_val_print): Update.
9231 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9232 * common/agent.c (agent_look_up_symbols): Update.
9233 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9234 * dwarf2loc.c (call_site_to_target_addr): Update.
9235 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9236 * elfread.c (elf_gnu_ifunc_record_cache)
9237 (elf_gnu_ifunc_resolve_by_got): Update.
9238 * findvar.c (default_read_var_value): Update.
9239 * frame.c (inside_main_func): Update.
9240 * frv-tdep.c (frv_frame_this_id): Update.
9241 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9242 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9243 Update.
9244 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9245 (hppa_hpux_find_dummy_bpaddr): Update.
9246 * hppa-tdep.c (hppa_symbol_address): Update.
9247 * infcmd.c (until_next_command): Update.
9248 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9249 Update.
9250 * linespec.c (minsym_found, add_minsym): Update.
9251 * linux-nat.c (get_signo): Update.
9252 * linux-thread-db.c (inferior_has_bug): Update.
9253 * m32c-tdep.c (m32c_return_value)
9254 (m32c_m16c_address_to_pointer): Update.
9255 * m32r-tdep.c (m32r_frame_this_id): Update.
9256 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9257 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9258 * maint.c (maintenance_translate_address): Update.
9259 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9260 (frob_address): New function.
9261 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9262 frob_address. Rename parameter to "pc_in".
9263 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9264 addresses.
9265 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9266 Update.
9267 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9268 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9269 * objc-lang.c (find_objc_msgsend): Update.
9270 * objfiles.c (objfile_relocate1): Update.
9271 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9272 * p-valprint.c (pascal_val_print): Update.
9273 * parse.c (write_exp_msymbol): Update.
9274 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9275 (ppc_elfv2_skip_entrypoint): Update.
9276 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9277 * printcmd.c (build_address_symbolic, msym_info)
9278 (address_info): Update.
9279 * proc-service.c (ps_pglobal_lookup): Update.
9280 * psymtab.c (find_pc_sect_psymtab_closer)
9281 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9282 Change msymbol parameter to bound_minimal_symbol.
9283 * ravenscar-thread.c (get_running_thread_id): Update.
9284 * remote.c (remote_check_symbols): Update.
9285 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9286 address.
9287 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9288 * solib-dsbt.c (lm_base): Update.
9289 * solib-frv.c (lm_base, main_got): Update.
9290 * solib-irix.c (locate_base): Update.
9291 * solib-som.c (som_solib_create_inferior_hook)
9292 (link_map_start): Update.
9293 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9294 * solib-svr4.c (elf_locate_base, enable_break): Update.
9295 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9296 (flush_ea_cache): Update.
9297 * stabsread.c (define_symbol, scan_file_globals): Update.
9298 * stack.c (find_frame_funname): Update.
9299 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9300 (debug_qf_find_pc_sect_symtab): Update.
9301 * symfile.c (simple_read_overlay_table)
9302 (simple_overlay_update): Update.
9303 * symfile.h (struct quick_symbol_functions)
9304 <find_pc_sect_symtab>: Change type of msymbol to
9305 bound_minimal_symbol.
9306 * symmisc.c (dump_msymbols): Update.
9307 * symtab.c (find_pc_sect_symtab_via_partial)
9308 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9309 (search_symbols, print_msymbol_info): Update.
9310 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9311 (MSYMBOL_VALUE_ADDRESS): Redefine.
9312 (BMSYMBOL_VALUE_ADDRESS): New macro.
9313 * tracepoint.c (scope_info): Update.
9314 * tui/tui-disasm.c (tui_find_disassembly_address)
9315 (tui_get_begin_asm_address): Update.
9316 * valops.c (find_function_in_inferior): Update.
9317 * value.c (value_static_field, value_fn_field): Update.
9318
3b7344d5
TT
93192014-02-26 Tom Tromey <tromey@redhat.com>
9320
9321 * ada-lang.c (ada_update_initial_language): Update.
9322 (ada_main_name, ada_has_this_exception_support): Update.
9323 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9324 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9325 * arm-tdep.c (arm_skip_stub): Update.
9326 * auxv.c (ld_so_xfer_auxv): Update.
9327 * avr-tdep.c (avr_scan_prologue): Update.
9328 * ax-gdb.c (gen_var_ref): Update.
9329 * breakpoint.c (struct breakpoint_objfile_data)
9330 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9331 type to bound_minimal_symbol.
9332 (create_overlay_event_breakpoint)
9333 (create_longjmp_master_breakpoint)
9334 (create_std_terminate_master_breakpoint)
9335 (create_exception_master_breakpoint): Update.
9336 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9337 * c-exp.y (classify_name): Update.
9338 * coffread.c (coff_symfile_read): Update.
9339 * common/agent.c (agent_look_up_symbols): Update.
9340 * d-lang.c (d_main_name): Update.
9341 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9342 * dec-thread.c (enable_dec_thread): Update.
9343 * dwarf2loc.c (call_site_to_target_addr): Update.
9344 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9345 * eval.c (evaluate_subexp_standard): Update.
9346 * findvar.c (struct minsym_lookup_data) <result>: Change type
9347 to bound_minimal_symbol.
9348 <objfile>: Remove.
9349 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9350 * frame.c (inside_main_func): Update.
9351 * frv-tdep.c (frv_frame_this_id): Update.
9352 * gcore.c (call_target_sbrk): Update.
9353 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9354 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9355 Update.
9356 * go-lang.c (go_main_name): Update.
9357 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9358 (hppa_hpux_find_import_stub_for_addr): Update.
9359 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9360 Update. Change return type.
9361 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9362 type.
9363 * jit.c (jit_breakpoint_re_set_internal): Update.
9364 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9365 Update.
9366 * linux-nat.c (get_signo): Update.
9367 * linux-thread-db.c (inferior_has_bug): Update
9368 * m32c-tdep.c (m32c_return_value)
9369 (m32c_m16c_address_to_pointer): Update.
9370 * m32r-tdep.c (m32r_frame_this_id): Update.
9371 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9372 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9373 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9374 lookup_minimal_symbol. Change return type.
9375 (lookup_minimal_symbol): Remove.
9376 (lookup_bound_minimal_symbol): Update.
9377 (lookup_minimal_symbol_text): Change return type.
9378 (lookup_minimal_symbol_solib_trampoline): Change return type.
9379 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9380 (lookup_minimal_symbol_solib_trampoline): Change return type.
9381 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9382 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9383 (value_nsstring, find_imps): Update.
9384 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9385 * p-lang.c (pascal_main_name): Update.
9386 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9387 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9388 * proc-service.c (ps_pglobal_lookup): Update.
9389 * ravenscar-thread.c (get_running_thread_msymbol): Change
9390 return type.
9391 (has_ravenscar_runtime, get_running_thread_id): Update.
9392 * remote.c (remote_check_symbols): Update.
9393 * sol-thread.c (ps_pglobal_lookup): Update.
9394 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9395 * solib-dsbt.c (lm_base): Update.
9396 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9397 Update.
9398 * solib-irix.c (locate_base): Update.
9399 * solib-som.c (som_solib_create_inferior_hook)
9400 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9401 Update.
9402 * solib-spu.c (spu_enable_break): Update.
9403 * solib-svr4.c (elf_locate_base, enable_break): Update.
9404 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9405 (flush_ea_cache): Update.
9406 * stabsread.c (define_symbol): Update.
9407 * symfile.c (simple_read_overlay_table): Update.
9408 * symtab.c (find_pc_sect_line): Update.
9409 * tracepoint.c (scope_info): Update.
9410 * tui-disasm.c (tui_get_begin_asm_address): Update.
9411 * value.c (value_static_field): Update.
9412
40c1a007
TT
94132014-02-26 Tom Tromey <tromey@redhat.com>
9414
9415 * minsyms.c (prim_record_minimal_symbol_full): Use
9416 SET_MSYMBOL_VALUE_ADDRESS.
9417 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9418 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9419 SET_MSYMBOL_VALUE_ADDRESS.
9420 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9421 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9422
efd66ac6
TT
94232014-02-26 Tom Tromey <tromey@redhat.com>
9424
9425 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9426 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9427 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9428 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9429 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9430 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9431 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9432 * ada-lang.c (ada_main_name): Update.
9433 (ada_lookup_simple_minsym): Update.
9434 (ada_make_symbol_completion_list): Update.
9435 (ada_add_standard_exceptions): Update.
9436 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9437 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9438 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9439 * arm-tdep.c (skip_prologue_function): Update.
9440 (arm_skip_stack_protector, arm_skip_stub): Update.
9441 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9442 (arm_wince_skip_main_prologue): Update.
9443 * auxv.c (ld_so_xfer_auxv): Update.
9444 * avr-tdep.c (avr_scan_prologue): Update.
9445 * ax-gdb.c (gen_var_ref): Update.
9446 * block.c (call_site_for_pc): Update.
9447 * blockframe.c (get_pc_function_start): Update.
9448 (find_pc_partial_function_gnu_ifunc): Update.
9449 * breakpoint.c (create_overlay_event_breakpoint): Update.
9450 (create_longjmp_master_breakpoint): Update.
9451 (create_std_terminate_master_breakpoint): Update.
9452 (create_exception_master_breakpoint): Update.
9453 (resolve_sal_pc): Update.
9454 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9455 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9456 Update.
9457 * c-valprint.c (c_val_print): Update.
9458 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9459 * coffread.c (coff_symfile_read): Update.
9460 * common/agent.c (agent_look_up_symbols): Update.
9461 * dbxread.c (find_stab_function_addr): Update.
9462 (end_psymtab): Update.
9463 * dwarf2loc.c (call_site_to_target_addr): Update.
9464 (func_verify_no_selftailcall): Update.
9465 (tailcall_dump): Update.
9466 (call_site_find_chain_1): Update.
9467 (dwarf_expr_reg_to_entry_parameter): Update.
9468 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9469 (elf_gnu_ifunc_resolve_by_got): Update.
9470 * f-valprint.c (info_common_command): Update.
9471 * findvar.c (read_var_value): Update.
9472 * frame.c (get_prev_frame_1): Update.
9473 (inside_main_func): Update.
9474 * frv-tdep.c (frv_skip_main_prologue): Update.
9475 (frv_frame_this_id): Update.
9476 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9477 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9478 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9479 (gnuv3_skip_trampoline): Update.
9480 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9481 (hppa64_hpux_in_solib_call_trampoline): Update.
9482 (hppa_hpux_skip_trampoline_code): Update.
9483 (hppa64_hpux_search_dummy_call_sequence): Update.
9484 (hppa_hpux_find_import_stub_for_addr): Update.
9485 (hppa_hpux_find_dummy_bpaddr): Update.
9486 * hppa-tdep.c (hppa_symbol_address)
9487 (hppa_lookup_stub_minimal_symbol): Update.
9488 * i386-tdep.c (i386_skip_main_prologue): Update.
9489 (i386_pe_skip_trampoline_code): Update.
9490 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9491 * infcall.c (get_function_name): Update.
9492 * infcmd.c (until_next_command): Update.
9493 * jit.c (jit_breakpoint_re_set_internal): Update.
9494 (jit_inferior_init): Update.
9495 * linespec.c (minsym_found): Update.
9496 (add_minsym): Update.
9497 * linux-fork.c (info_checkpoints_command): Update.
9498 * linux-nat.c (get_signo): Update.
9499 * linux-thread-db.c (inferior_has_bug): Update.
9500 * m32c-tdep.c (m32c_return_value): Update.
9501 (m32c_m16c_address_to_pointer): Update.
9502 (m32c_m16c_pointer_to_address): Update.
9503 * m32r-tdep.c (m32r_frame_this_id): Update.
9504 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9505 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9506 * maint.c (maintenance_translate_address): Update.
9507 * minsyms.c (add_minsym_to_hash_table): Update.
9508 (add_minsym_to_demangled_hash_table): Update.
9509 (msymbol_objfile): Update.
9510 (lookup_minimal_symbol): Update.
9511 (iterate_over_minimal_symbols): Update.
9512 (lookup_minimal_symbol_text): Update.
9513 (lookup_minimal_symbol_by_pc_name): Update.
9514 (lookup_minimal_symbol_solib_trampoline): Update.
9515 (lookup_minimal_symbol_by_pc_section_1): Update.
9516 (lookup_minimal_symbol_and_objfile): Update.
9517 (prim_record_minimal_symbol_full): Update.
9518 (compare_minimal_symbols): Update.
9519 (compact_minimal_symbols): Update.
9520 (build_minimal_symbol_hash_tables): Update.
9521 (install_minimal_symbols): Update.
9522 (terminate_minimal_symbol_table): Update.
9523 (find_solib_trampoline_target): Update.
9524 (minimal_symbol_upper_bound): Update.
9525 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9526 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9527 (mips_skip_pic_trampoline_code): Update.
9528 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9529 * objc-lang.c (selectors_info): Update.
9530 (classes_info): Update.
9531 (find_methods): Update.
9532 (find_imps): Update.
9533 (find_objc_msgsend): Update.
9534 * objfiles.c (objfile_relocate1): Update.
9535 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9536 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9537 * p-valprint.c (pascal_val_print): Update.
9538 * parse.c (write_exp_msymbol): Update.
9539 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9540 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9541 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9542 * printcmd.c (build_address_symbolic): Update.
9543 (sym_info): Update.
9544 (address_info): Update.
9545 * proc-service.c (ps_pglobal_lookup): Update.
9546 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9547 (find_pc_sect_psymtab): Update.
9548 * python/py-framefilter.c (py_print_frame): Update.
9549 * ravenscar-thread.c (get_running_thread_id): Update.
9550 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9551 Update.
9552 * remote.c (remote_check_symbols): Update.
9553 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9554 (rs6000_skip_trampoline_code): Update.
9555 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9556 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9557 * solib-dsbt.c (lm_base): Update.
9558 * solib-frv.c (lm_base): Update.
9559 (main_got): Update.
9560 * solib-irix.c (locate_base): Update.
9561 * solib-som.c (som_solib_create_inferior_hook): Update.
9562 (som_solib_desire_dynamic_linker_symbols): Update.
9563 (link_map_start): Update.
9564 * solib-spu.c (spu_enable_break): Update.
9565 (ocl_enable_break): Update.
9566 * solib-svr4.c (elf_locate_base): Update.
9567 (enable_break): Update.
9568 * spu-tdep.c (spu_get_overlay_table): Update.
9569 (spu_catch_start): Update.
9570 (flush_ea_cache): Update.
9571 * stabsread.c (define_symbol): Update.
9572 (scan_file_globals): Update.
9573 * stack.c (find_frame_funname): Update.
9574 (frame_info): Update.
9575 * symfile.c (simple_read_overlay_table): Update.
9576 (simple_overlay_update): Update.
9577 * symmisc.c (dump_msymbols): Update.
9578 * symtab.c (fixup_section): Update.
9579 (find_pc_sect_line): Update.
9580 (skip_prologue_sal): Update.
9581 (search_symbols): Update.
9582 (print_msymbol_info): Update.
9583 (rbreak_command): Update.
9584 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9585 (completion_list_objc_symbol): Update.
9586 (default_make_symbol_completion_list_break_on): Update.
9587 * tracepoint.c (scope_info): Update.
9588 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9589 (tui_get_begin_asm_address): Update.
9590 * valops.c (find_function_in_inferior): Update.
9591 * value.c (value_static_field): Update.
9592 (value_fn_field): Update.
9593
50e65b17
TT
95942014-02-26 Tom Tromey <tromey@redhat.com>
9595
9596 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9597 bound minimal symbols. Move code that knows about minsym
9598 table layout...
9599 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9600 function.
9601 * minsyms.h (minimal_symbol_upper_bound): Declare.
9602 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9603 minimal_symbol_upper_bound.
9604
1b588015
JB
96052014-02-27 Joel Brobecker <brobecker@adacore.com>
9606
9607 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9608 Use the type's name if its basic type does not have a tag.
9609
dbb9c2b1
JB
96102014-02-27 Joel Brobecker <brobecker@adacore.com>
9611
9612 * dwarf2read.c (read_subrange_type): Add comment.
9613
55426c9d
JB
96142014-02-27 Joel Brobecker <brobecker@adacore.com>
9615
9616 * dwarf2read.c (update_enumeration_type_from_children): New
9617 function, mostly extracted from process_structure_scope.
9618 (read_enumeration_type): Call update_enumeration_type_from_children.
9619 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9620 and flag_flag_enum fields.
9621
f2fce0ca
PA
96222014-02-26 Pedro Alves <palves@redhat.com>
9623
9624 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9625 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9626 to_xfer_partial method.
9627
7a44e40e
PA
96282014-02-26 Pedro Alves <palves@redhat.com>
9629
9630 * target.c (complete_target_initialization): Don't install
9631 default_xfer_partial as to_xfer_partial hook.
9632 (nomemory): Delete.
9633 (update_current_target): Don't INHERIT nor de_fault
9634 deprecated_xfer_memory. Delete de_fault macro.
9635 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9636 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9637 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9638 field.
9639
bd265cd0
PA
96402014-02-26 Pedro Alves <palves@redhat.com>
9641
9642 * go32-nat.c (my_write_child): New function.
9643 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9644 (go32_xfer_partial): New function.
9645 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9646 Instead install a to_xfer_partial hook.
9647
9d46c4e5
PA
96482014-02-26 Pedro Alves <palves@redhat.com>
9649
9650 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9651 to_xfer_partial helper. Rewrite.
9652 (procfs_xfer_partial): New function.
9653 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9654 Install a to_xfer_partial hook.
9655
a1583b1f
PA
96562014-02-26 Pedro Alves <palves@redhat.com>
9657
9658 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9659 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9660 (m32r_xfer_partial): New function.
9661 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9662 Install a to_xfer_partial hook.
9663
6df1b29f
PA
96642014-02-26 Pedro Alves <palves@redhat.com>
9665
9666 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9667 helper.
9668 (mips_xfer_partial): New function.
9669 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9670 hook. Install a to_xfer_partial hook.
9671
dc53a7ad
JB
96722014-02-26 Joel Brobecker <brobecker@adacore.com>
9673
9674 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9675 * gdbtypes.c (create_array_type_with_stride): New function,
9676 renaming create_array_type, but with an added parameter
9677 called "bit_stride".
9678 (create_array_type): Re-implement using
9679 create_array_type_with_stride.
9680 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9681 and DW_AT_bit_stride attributes.
9682
12ab52e9
PA
96832014-02-26 Pedro Alves <palves@redhat.com>
9684
9685 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9686 task-specific breakpoints.
9687
d16461ae
PA
96882014-02-25 Pedro Alves <palves@redhat.com>
9689
9690 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9691 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9692
a8b16220
SS
96932014-02-25 Stan Shebs <stan@codesourcery.com>
9694
9695 * defs.h: Annotate comments for Doxygen.
9696
b9e795ee
TT
96972014-02-25 Tom Tromey <tromey@redhat.com>
9698
9699 * target.h (target_ignore): Don't declare.
9700 * target.c (target_ignore): Remove.
9701
849c862e
JK
97022014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9703
9704 PR gdb/16626
9705 * auto-load.c (auto_load_objfile_script_1): Change filename to
9706 debugfile.
9707
475109d8
JB
97082014-02-25 Joel Brobecker <brobecker@adacore.com>
9709
9710 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9711 documentation. Adjust prototype to match the target_ops
9712 to_xfer_partial method. Adjust implementation accordingly.
9713
e186c3bd
HZ
97142014-02-25 Hui Zhu <hui@codesourcery.com>
9715
9716 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9717 to_traceframe_info.
9718
6d451942
KB
97192014-02-25 Kevin Buettner <kevinb@redhat.com>
9720
041ab8b4 9721 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9722 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9723 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9724 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9725 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9726 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9727 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9728 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9729 New constants.
9730 (rl78_register_type): Use a data pointer type for SP and
9731 new pseudo registers mentioned above. Use a 16 bit integer
9732 type for all other register pairs.
9733 (rl78_register_name, rl78_g10_register_name): Update for
9734 new pseudo registers.
9735 (rl78_pseudo_register_read): Likewise.
9736 (rl78_pseudo_register_write): Likewise.
9737 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9738 to the newly added pseudo registers.
9739
eddf0bae
DE
97402014-02-24 Doug Evans <dje@google.com>
9741
9742 * value.c (record_latest_value): Fix comment.
9743 * printcmd.c (print_command_1): Remove code to handle -1 return from
9744 record_latest_value.
9745
e96027e0
PA
97462014-02-24 Pedro Alves <palves@redhat.com>
9747
9748 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9749 deprecated_xfer_memory hook.
9750 (procfs_xfer_partial): Call procfs_xfer_memory instead
9751 of the deprecated_xfer_memory target hook.
9752 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9753 helper.
9754
0837c976
YZ
97552014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9756
9757 * windows-nat.c (windows_xfer_shared_libraries): Return
9758 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9759 requested object is TARGET_OBJECT_LIBRARIES.
9760
bc113b4e
YQ
97612014-02-24 Yao Qi <yao@codesourcery.com>
9762
9763 * target.h (enum target_xfer_status)
9764 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9765 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9766 explicitly. New.
9767 * corefile.c (memory_error_message): User updated.
9768 * exec.c (section_table_read_available_memory): Likewise.
9769 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9770 * target.c (target_xfer_status_to_string): Likewise.
9771 (raw_memory_xfer_partial): Likewise.
9772 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9773 * valops.c (read_value_memory): Likewise.
9774 * exec.h: Update comments.
9775
01cb8804
YQ
97762014-02-24 Yao Qi <yao@codesourcery.com>
9777
9778 * target.c (target_xfer_status_to_string): Rename argument err
9779 to status.
9780 * target.h (target_xfer_status_to_string): Update declaration.
9781 Replace target_xfer_error_to_string with
9782 target_xfer_status_to_string in comment.
9783
93063aa6
YQ
97842014-02-24 Yao Qi <yao@codesourcery.com>
9785
9786 * mips-linux-nat.c (super_close): Update its type.
9787 (mips_linux_close): Pass 'self' to super_close.
9788
5c328c05
YQ
97892014-02-24 Yao Qi <yao@codesourcery.com>
9790
9791 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9792 * corefile.c (read_memory): Adjusted.
9793 * target.c (target_write_with_progress): Adjusted.
9794
f73023dd
YQ
97952014-02-23 Yao Qi <yao@codesourcery.com>
9796
9797 Revert two patches:
9798
9799 2013-10-25 Yao Qi <yao@codesourcery.com>
9800
9801 * remote.c (remote_traceframe_info): Return early if
9802 traceframe is not selected.
9803
9804 2013-07-19 Yao Qi <yao@codesourcery.com>
9805
9806 * target.c (update_current_target): Change the default action
9807 of 'to_traceframe_info' from tcomplain to return_zero.
9808 * target.h (struct target_ops) <to_traceframe_info>: Add more
9809 comments.
9810
5a2eb0ef
YQ
98112014-02-23 Yao Qi <yao@codesourcery.com>
9812
9813 * valops.c (read_value_memory): Rewrite it. Call
9814 target_xfer_partial in a loop.
9815 * exec.h (section_table_available_memory): Remove declaration.
9816 Move comments to ...
9817 * exec.c (section_table_available_memory): ... here. Make it
9818 static.
9819
1ee79381
YQ
98202014-02-23 Yao Qi <yao@codesourcery.com>
9821
9822 * exec.c (section_table_read_available_memory): New function.
9823 * exec.h (section_table_read_available_memory): Declare.
9824 * ctf.c (ctf_xfer_partial): Call
9825 section_table_read_available_memory.
9826 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9827
1ca49d37
YQ
98282014-02-23 Yao Qi <yao@codesourcery.com>
9829
9830 * ctf.c (ctf_xfer_partial): Move code to ...
9831 * exec.c (exec_read_partial_read_only): ... it. New function.
9832 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9833 * tracefile.c: Include "exec.h".
9834 * exec.h (exec_read_partial_read_only): Declare.
9835
a283690e
YQ
98362014-02-23 Yao Qi <yao@codesourcery.com>
9837
9838 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9839 (tfile_has_memory): Remove.
9840 (init_tfile_ops): Don't set fields to_has_all_memory and
9841 to_has_memory of tfile_ops.
9842 * tracefile.c (tracefile_has_all_memory): New function.
9843 (tracefile_has_memory): New function.
9844 (init_tracefile_ops): Initialize fields to_has_all_memory and
9845 to_has_memory of 'ops'.
9846
12e03cd0
YQ
98472014-02-23 Yao Qi <yao@codesourcery.com>
9848
9849 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9850 (ctf_thread_alive, ctf_get_trace_status): Remove.
9851 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9852 init_tracefile_ops.
9853 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9854 (tfile_has_stack, tfile_has_registers): Remove.
9855 (tfile_thread_alive): Remove.
9856 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9857 init_tracefile_ops.
9858 * tracefile.c (tracefile_has_stack): New function.
9859 (tracefile_has_registers): New function.
9860 (tracefile_thread_alive): New function.
9861 (tracefile_get_trace_status): New function.
9862 (init_tracefile_ops): New function.
9863 * tracefile.h (init_tracefile_ops): Declare.
9864
11395323
YQ
98652014-02-23 Yao Qi <yao@codesourcery.com>
9866
9867 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9868 (O_LARGEFILE): Likewise.
9869 (tfile_ops): Likewise.
9870 (TRACE_HEADER_SIZE): Likewise.
9871 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9872 (cur_data_size): Likewise.
9873 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9874 (tfile_close, tfile_files_info): Likewise.
9875 (tfile_get_trace_status): Likewise.
9876 (tfile_get_tracepoint_status): Likewise.
9877 (tfile_get_traceframe_address): Likewise.
9878 (tfile_trace_find, match_blocktype): Likewise.
9879 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9880 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9881 (tfile_get_trace_state_variable_value): Likewise.
9882 (tfile_has_all_memory, tfile_has_memory): Likewise.
9883 (tfile_has_stack, tfile_has_registers): Likewise.
9884 (tfile_thread_alive, build_traceframe_info): Likewise.
9885 (tfile_traceframe_info, init_tfile_ops): Likewise.
9886 (_initialize_tracepoint): Don't call init_tfile_ops
9887 and add_target_with_completer.
9888 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9889 exec.h, completer.h and filenames.h.
9890 (_initialize_tracefile_tfile): New function.
9891
7951c4eb
YQ
98922014-02-23 Yao Qi <yao@codesourcery.com>
9893
9894 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9895 tracefile-tfile.o.
9896 (HFILES_NO_SRCDIR): Add tracefile.h.
9897 * ctf.c: Include "tracefile.h".
9898 * tracefile.h: New file.
9899 * tracefile.c: New file
9900 * tracefile-tfile.c: New file.
9901 * tracepoint.c: Include "tracefile.h".
9902 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9903 (stop_reason_names): Add const.
9904 (trace_file_writer_xfree): Move it to tracefile.c.
9905 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9906 (trace_save_ctf): Likewise.
9907 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9908 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9909 (tfile_write_header, tfile_write_regblock_type): Likewise.
9910 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9911 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9912 (tfile_write_raw_data, tfile_end): Likewise.
9913 (tfile_trace_file_writer_new): Likewise.
9914 (free_uploaded_tp): Make it extern.
9915 (free_uploaded_tsv): Make it extern.
9916 (_initialize_tracepoint): Move code to register command 'tsave'
9917 to tracefile.c.
9918 * tracepoint.h (stop_reason_names): Declare.
9919 (struct trace_frame_write_ops): Move it to tracefile.h.
9920 (struct trace_file_write_ops): Likewise.
9921 (struct trace_file_writer): Likewise.
9922 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9923
184cd072
JK
99242014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9925
9926 PR gdb/16594
9927 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9928 process name.
9929 (get_cores_used_by_process): New parameter num_cores, use it.
9930 (linux_xfer_osdata_processes): Pass num_cores to it.
9931 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9932 process name.
9933
c63528fc
AK
99342014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9935
9936 * target.c (memory_xfer_partial): Fix length arg in call to
9937 breakpoint_xfer_memory.
9938
d7b30f67
SDJ
99392014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9940
9941 PR tdep/16397
9942 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9943 number comes after the + or - signs. Adjust length of register
9944 name to be extracted.
9945
8838afaf
TT
99462014-02-20 Tom Tromey <tromey@redhat.com>
9947
9948 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9949 (ada_varobj_ops): Mark "extern".
9950
05227d14
TT
99512014-02-20 Tom Tromey <tromey@redhat.com>
9952
9953 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9954
1254eefc
DE
99552014-02-20 Doug Evans <xdje42@gmail.com>
9956
9957 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9958 All callers updated.
9959 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9960 All callers updated.
9961 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9962 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9963
adde2bff
DE
99642014-02-20 lin zuojian <manjian2006@gmail.com>
9965 Joel Brobecker <brobecker@adacore.com>
9966 Doug Evans <xdje42@gmail.com>
9967
9968 PR symtab/16581
9969 * dwarf2read.c (struct die_info): New member in_process.
9970 (reset_die_in_process): New function.
9971 (process_die): Set it at the start, reset when returning.
9972 (inherit_abstract_dies): Only call process_die if origin_child_die
9973 not already being processed.
9974
3be75f87
JB
99752014-02-20 Joel Brobecker <brobecker@adacore.com>
9976
9977 * windows-nat.c (handle_unload_dll): Add function documentation.
9978 (do_initial_windows_stuff): Add comment explaining why we wait
9979 until after inferior initialization has finished before
9980 processing all DLLs.
9981
47f7ffdb
JB
99822014-02-20 Joel Brobecker <brobecker@adacore.com>
9983
9984 * windows-nat.c (get_module_name): Delete.
9985 (windows_get_exec_module_filename): New function, mostly
9986 inspired from get_module_name.
9987 (windows_pid_to_exec_file): Replace call to get_module_name
9988 by call to windows_get_exec_module_filename.
9989
1cd9feab
JB
99902014-02-20 Joel Brobecker <brobecker@adacore.com>
9991
9992 * windows-nat.c (handle_load_dll): Rewrite this function's
9993 introductory comment. Remove code using get_module_name
9994 to get the DLL's name.
9995
ea39ad35
JB
99962014-02-20 Joel Brobecker <brobecker@adacore.com>
9997
9998 * windows-nat.c (get_windows_debug_event): Ignore
9999 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10000 if windows_initialization_done == 0.
10001 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10002 Adjust implementation to always load all DLLs.
10003 (do_initial_windows_stuff): Replace call to
10004 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10005
95060284
JB
100062014-02-20 Joel Brobecker <brobecker@adacore.com>
10007
10008 * windows-nat.c (_initialize_windows_nat): Deprecate the
10009 "dll-symbols" command. Turn the "add-shared-symbol-files"
10010 and "assf" aliases into commands, and deprecate them as well.
10011 * NEWS: Add entry explaining that "dll-symbols" and its two
10012 aliases are now deprecated.
10013
8d4fdb12
JB
100142014-02-20 Joel Brobecker <brobecker@adacore.com>
10015
10016 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10017 new-line in debug string. Remove trailing spaces.
10018
1b281443
SS
100192014-02-19 Stan Shebs <stan@codesourcery.com>
10020
10021 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10022
f7bd0f78
SC
100232014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10024
10025 * NEWS: Add entry for the new feature
10026 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10027 and class values.
10028
399ebc3d
SS
100292014-02-19 Stan Shebs <stan@codesourcery.com>
10030
10031 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10032
c658158d
PA
100332014-02-19 Pedro Alves <palves@redhat.com>
10034
10035 * common/ptid.h (struct ptid): Mention that process_stratum
10036 targets should prefer ptid.lwp.
10037
ba348170
PA
100382014-02-19 Pedro Alves <palves@redhat.com>
10039
10040 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10041 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10042 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10043 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10044 store remote thread ids rather than ptid.tid.
10045 (_initialize_remote): Adjust.
10046
ac01945b
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target.c (target_get_unwinder): Rewrite.
10050 (target_get_tailcall_unwinder): Rewrite.
10051 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10052 (record_btrace_to_get_tailcall_unwinder): New function.
10053 (init_record_btrace_ops): Update.
10054 * target.h (struct target_ops) <to_get_unwinder,
10055 to_get_tailcall_unwinder>: Now function pointers. Use
10056 TARGET_DEFAULT_RETURN.
10057
8476dc92
TT
100582014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10061 argument.
10062 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10063
c0eca49f
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10067 directly.
10068 * target-delegates.c: Rebuild.
10069 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10070 TARGET_DEFAULT_FUNC.
10071 * target.c (default_target_decr_pc_after_break): Rename from
10072 forward_target_decr_pc_after_break. Simplify.
10073 (target_decr_pc_after_break): Rely on delegation.
10074
596b6b39
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target.c (update_current_target): Do not INHERIT to_doc or
10078 to_magic. Do not de_fault to_open or to_close.
10079
b427c1bc
TT
100802014-02-19 Tom Tromey <tromey@redhat.com>
10081
10082 * gcore.h (objfile_find_memory_regions): Declare.
10083 * gcore.c (objfile_find_memory_regions): No longer static. Add
10084 "self" argument.
10085 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10086 * exec.c: Include gcore.h.
10087 (exec_set_find_memory_regions): Remove.
10088 (exec_find_memory_regions): Remove.
10089 (exec_do_find_memory_regions): Remove.
10090 (init_exec_ops): Update.
10091 * defs.h (exec_set_find_memory_regions): Remove.
10092
9b144037
TT
100932014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * target-delegates.c: Rebuild.
10096 * target.h (struct target_ops) <to_extra_thread_info,
10097 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10098 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10099 not 0, in TARGET_DEFAULT_RETURN.
10100
555bbdeb
TT
101012014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target.c (complete_target_initialization): Remove casts. Use
10104 return_zero_has_execution.
10105 (return_zero): Add "ignore" argument.
10106 (return_zero_has_execution): New function.
10107 (init_dummy_target): Remove casts. Use
10108 return_zero_has_execution.
10109
be4ddd36
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target.c (update_current_target): Update comments. Do not
10113 INHERIT to_stratum.
10114
2117c711
TT
101152014-02-19 Tom Tromey <tromey@redhat.com>
10116
10117 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10118 needed.
10119 * corelow.c (core_read_description): Delegate when needed.
10120 * remote.c (remote_read_description): Delegate when needed.
10121 * target-delegates.c: Rebuild.
10122 * target.c (target_read_description): Rewrite.
10123 * target.h (struct target_ops) <to_read_description>: Update
10124 comment. Use TARGET_DEFAULT_RETURN.
10125
e88ef65c
TT
101262014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_can_run.
10131 (find_default_run_target): Check against delegate_can_run.
10132 * target.h (struct target_ops) <to_can_run>: Use
10133 TARGET_DEFAULT_RETURN.
10134
86a0854a
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target-delegates.c: Rebuild.
10138 * target.c (target_disconnect): Unconditionally delegate.
10139 * target.h (struct target_ops) <to_disconnect>: Use
10140 TARGET_DEFAULT_NORETURN.
10141
ee97f592
TT
101422014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * record.c (record_stop): Unconditionally delegate.
10145 * target-delegates.c: Rebuild.
10146 * target.c (target_stop_recording): Unconditionally delegate.
10147 * target.h (struct target_ops) <to_stop_recording>: Use
10148 TARGET_DEFAULT_IGNORE.
10149
6dc7fcf4
TT
101502014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target-delegates.c: Rebuild.
10153 * target.c (target_enable_btrace): Unconditionally delegate.
10154 * target.h (struct target_ops) <to_enable_btrace>: Use
10155 TARGET_DEFAULT_NORETURN.
10156
eb5b20d4
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target-delegates.c: Rebuild.
10160 * target.c (target_read_btrace): Unconditionally delegate.
10161 * target.h (struct target_ops) <to_read_btrace>: Use
10162 TARGET_DEFAULT_NORETURN.
10163
9ace480d
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target-delegates.c: Rebuild.
10167 * target.c (target_teardown_btrace): Unconditionally delegate.
10168 * target.h (struct target_ops) <to_teardown_btrace>: Use
10169 TARGET_DEFAULT_NORETURN.
10170
8dc292d3
TT
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (target_disable_btrace): Unconditionally delegate.
10175 * target.h (struct target_ops) <to_disable_btrace>: Use
10176 TARGET_DEFAULT_NORETURN.
10177
58a5184e
TT
101782014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target-delegates.c: Rebuild.
10181 * target.c (default_search_memory): New function.
10182 (simple_search_memory): Update comment.
10183 (target_search_memory): Unconditionally delegate.
10184 * target.h (struct target_ops) <to_search_memory>: Use
10185 TARGET_DEFAULT_FUNC.
10186
8de71aab
TT
101872014-02-19 Tom Tromey <tromey@redhat.com>
10188
10189 * auxv.c (default_auxv_parse): No longer static.
10190 (target_auxv_parse): Unconditionally delegate.
10191 * auxv.h (default_auxv_parse): Declare.
10192 * target-delegates.c: Rebuild.
10193 * target.c: Include auxv.h.
10194 * target.h (struct target_ops) <to_auxv_parse>: Use
10195 TARGET_DEFAULT_FUNC.
10196
6b2c5a57
TT
101972014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target-delegates.c: Rebuild.
10200 * target.c (target_memory_map): Unconditionally delegate.
10201 * target.h (struct target_ops) <to_memory_map>: Use
10202 TARGET_DEFAULT_RETURN.
10203
cbffc065
TT
102042014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target-delegates.c: Rebuild.
10207 * target.c (target_thread_alive): Unconditionally delegate.
10208 * target.h (struct target_ops) <to_thread_alive>: Use
10209 TARGET_DEFAULT_RETURN.
10210
f09e2107
TT
102112014-02-19 Tom Tromey <tromey@redhat.com>
10212
10213 * target-delegates.c: Rebuild.
10214 * target.c (target_save_record): Unconditionally delegate.
10215 * target.h (struct target_ops) <to_save_record>: Use
10216 TARGET_DEFAULT_NORETURN.
10217
07366925
TT
102182014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target-delegates.c: Rebuild.
10221 * target.c (target_delete_record): Unconditionally delegate.
10222 * target.h (struct target_ops) <to_delete_record>: Use
10223 TARGET_DEFAULT_NORETURN.
10224
dd2e9d25
TT
102252014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target-delegates.c: Rebuild.
10228 * target.c (target_record_is_replaying): Unconditionally
10229 delegate.
10230 * target.h (struct target_ops) <to_record_is_replaying>: Use
10231 TARGET_DEFAULT_RETURN.
10232
671e76cc
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target-delegates.c: Rebuild.
10236 * target.c (target_goto_record_begin): Unconditionally delegate.
10237 * target.h (struct target_ops) <to_goto_record_begin>: Use
10238 TARGET_DEFAULT_NORETURN.
10239
e9179bb3
TT
102402014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * target-delegates.c: Rebuild.
10243 * target.c (target_goto_record_end): Unconditionally delegate.
10244 * target.h (struct target_ops) <to_goto_record_end>: Use
10245 TARGET_DEFAULT_NORETURN.
10246
05969c84
TT
102472014-02-19 Tom Tromey <tromey@redhat.com>
10248
10249 * target-delegates.c: Rebuild.
10250 * target.c (target_goto_record): Unconditionally delegate.
10251 * target.h (struct target_ops) <to_goto_record>: Use
10252 TARGET_DEFAULT_NORETURN.
10253
3679abfa
TT
102542014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target-delegates.c: Rebuild.
10257 * target.c (target_insn_history): Unconditionally delegate.
10258 * target.h (struct target_ops) <to_insn_history>: Use
10259 TARGET_DEFAULT_NORETURN.
10260
8444ab58
TT
102612014-02-19 Tom Tromey <tromey@redhat.com>
10262
10263 * target-delegates.c: Rebuild.
10264 * target.c (target_insn_history_from): Unconditionally delegate.
10265 * target.h (struct target_ops) <to_insn_history_from>: Use
10266 TARGET_DEFAULT_NORETURN.
10267
c29302cc
TT
102682014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * target-delegates.c: Rebuild.
10271 * target.c (target_insn_history_range): Unconditionally delegate.
10272 * target.h (struct target_ops) <to_insn_history_range>: Use
10273 TARGET_DEFAULT_NORETURN.
10274
170049d4
TT
102752014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target-delegates.c: Rebuild.
10278 * target.c (target_call_history): Unconditionally delegate.
10279 * target.h (struct target_ops) <to_call_history>: Use
10280 TARGET_DEFAULT_NORETURN.
10281
16fc27d6
TT
102822014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target-delegates.c: Rebuild.
10285 * target.c (target_call_history_from): Unconditionally delegate.
10286 * target.h (struct target_ops) <to_call_history_from>: Use
10287 TARGET_DEFAULT_NORETURN.
10288
115d9817
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (target_call_history_range): Unconditionally delegate.
10293 * target.h (struct target_ops) <to_call_history_range>: Use
10294 TARGET_DEFAULT_NORETURN.
10295
eb276a6b
TT
102962014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target-delegates.c: Rebuild.
10299 * target.c (target_verify_memory): Unconditionally delegate.
10300 * target.h (struct target_ops) <to_verify_memory>: Use
10301 TARGET_DEFAULT_NORETURN.
10302
9e538d0d
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target-delegates.c: Rebuild.
10306 * target.c (target_core_of_thread): Unconditionally delegate.
10307 * target.h (struct target_ops) <to_core_of_thread>: Use
10308 TARGET_DEFAULT_RETURN.
10309
f6fb2925
TT
103102014-02-19 Tom Tromey <tromey@redhat.com>
10311
10312 * target-delegates.c: Rebuild.
10313 * target.c (target_flash_done): Unconditionally delegate.
10314 * target.h (struct target_ops) <to_flash_done>: Use
10315 TARGET_DEFAULT_NORETURN.
10316
e8a6c6ac
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target-delegates.c: Rebuild.
10320 * target.c (target_flash_erase): Unconditionally delegate.
10321 * target.h (struct target_ops) <to_flash_erase>: Use
10322 TARGET_DEFAULT_NORETURN.
10323
7e35c012
TT
103242014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target-delegates.c: Rebuild.
10327 * target.c (target_get_section_table): Unconditionally delegate.
10328 * target.h (struct target_ops) <to_get_section_table>: Use
10329 TARGET_DEFAULT_RETURN.
10330
770234d3
TT
103312014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target-delegates.c: Rebuild.
10334 * target.c (target_pid_to_str): Unconditionally delegate.
10335 (init_dummy_target): Don't initialize to_pid_to_str.
10336 (default_pid_to_str): Rename from dummy_pid_to_str.
10337 * target.h (struct target_ops) <to_pid_to_str>: Use
10338 TARGET_DEFAULT_FUNC.
10339
09b0dc2b
TT
103402014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target-delegates.c: Rebuild.
10343 * target.c (target_find_new_threads): Unconditionally delegate.
10344 * target.h (struct target_ops) <to_find_new_threads>: Use
10345 TARGET_DEFAULT_RETURN.
10346
7d4f8efa
TT
103472014-02-19 Tom Tromey <tromey@redhat.com>
10348
10349 * target-delegates.c: Rebuild.
10350 * target.c (target_program_signals): Unconditionally delegate.
10351 * target.h (struct target_ops) <to_program_signals>: Use
10352 TARGET_DEFAULT_IGNORE.
10353
035cad7f
TT
103542014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target-delegates.c: Rebuild.
10357 * target.c (target_pass_signals): Unconditionally delegate.
10358 * target.h (struct target_ops) <to_pass_signals>: Use
10359 TARGET_DEFAULT_IGNORE.
10360
8d657035
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (default_mourn_inferior): New function.
10365 (target_mourn_inferior): Unconditionally delegate.
10366 * target.h (struct target_ops) <to_mourn_inferior>: Use
10367 TARGET_DEFAULT_FUNC.
10368
098dba18
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (default_follow_fork): New function.
10373 (target_follow_fork): Unconditionally delegate.
10374 * target.h (struct target_ops) <to_follow_fork>: Use
10375 TARGET_DEFAULT_FUNC.
10376
423a4807
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (target_kill): Unconditionally delegate.
10381 * target.h (struct target_ops) <to_kill>: Use
10382 TARGET_DEFAULT_NORETURN.
10383
6c7e5e5c
TT
103842014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target-delegates.c: Rebuild.
10387 * target.c (target_masked_watch_num_registers): Unconditionally
10388 delegate.
10389 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10390 Use TARGET_DEFAULT_RETURN.
10391
8b1c364c
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (target_remove_mask_watchpoint): Unconditionally
10396 delegate.
10397 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10398 TARGET_DEFAULT_RETURN.
10399
cd4ae029
TT
104002014-02-19 Tom Tromey <tromey@redhat.com>
10401
10402 * target-delegates.c: Rebuild.
10403 * target.c (target_insert_mask_watchpoint): Unconditionally
10404 delegate.
10405 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10406 TARGET_DEFAULT_RETURN.
10407
a134316b
TT
104082014-02-19 Tom Tromey <tromey@redhat.com>
10409
10410 * target-delegates.c: Rebuild.
10411 * target.c (target_ranged_break_num_registers): Unconditionally
10412 delegate.
10413 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10414 Use TARGET_DEFAULT_RETURN.
10415
ad5989bd
TT
104162014-02-19 Tom Tromey <tromey@redhat.com>
10417
10418 * target-delegates.c: Rebuild.
10419 * target.c (target_fetch_registers): Unconditionally delegate.
10420 * target.h (struct target_ops) <to_fetch_registers>: Use
10421 TARGET_DEFAULT_NORETURN.
10422
46ee7e8d
TT
104232014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_stop.
10428 * target.h (struct target_ops) <to_stop>: Use
10429 TARGET_DEFAULT_IGNORE.
10430
843f59ed
TT
104312014-02-19 Tom Tromey <tromey@redhat.com>
10432
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_can_run_breakpoint_commands.
10436 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10437 Use TARGET_DEFAULT_RETURN.
10438
ccfde2a0
TT
104392014-02-19 Tom Tromey <tromey@redhat.com>
10440
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_supports_evaluation_of_breakpoint_conditions.
10444 * target.h (struct target_ops)
10445 <to_supports_evaluation_of_breakpoint_conditions>: Use
10446 TARGET_DEFAULT_RETURN.
10447
0de91722
TT
104482014-02-19 Tom Tromey <tromey@redhat.com>
10449
10450 * target-delegates.c: Rebuild.
10451 * target.c (update_current_target): Don't inherit or default
10452 to_augmented_libraries_svr4_read.
10453 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10454 Use TARGET_DEFAULT_RETURN.
10455
9a7d8b48
TT
104562014-02-19 Tom Tromey <tromey@redhat.com>
10457
10458 * target-delegates.c: Rebuild.
10459 * target.c (update_current_target): Don't inherit or default
10460 to_can_use_agent.
10461 * target.h (struct target_ops) <to_can_use_agent>: Use
10462 TARGET_DEFAULT_RETURN.
10463
d9db5b21
TT
104642014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10468 to_use_agent.
10469 * target.h (struct target_ops) <to_use_agent>: Use
10470 TARGET_DEFAULT_NORETURN.
10471
92155eeb
TT
104722014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target-delegates.c: Rebuild.
10475 * target.c (update_current_target): Don't inherit or default
10476 to_traceframe_info.
10477 (return_null): Remove.
10478 * target.h (struct target_ops) <to_traceframe_info>: Use
10479 TARGET_DEFAULT_RETURN.
10480
d6522a22
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_static_tracepoint_markers_by_strid.
10486 * target.h (struct target_ops)
10487 <to_static_tracepoint_markers_by_strid>: Use
10488 TARGET_DEFAULT_NORETURN.
10489
4c3e4425
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_static_tracepoint_marker_at.
10495 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10496 Use TARGET_DEFAULT_RETURN.
10497
dcd6917f
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_set_permissions.
10503 * target.h (struct target_ops) <to_set_permissions>: Use
10504 TARGET_DEFAULT_IGNORE.
10505
22bcceee
TT
105062014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_get_tib_address.
10511 * target.h (struct target_ops) <to_get_tib_address>: Use
10512 TARGET_DEFAULT_NORETURN.
10513
8586ccaa
TT
105142014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target-delegates.c: Rebuild.
10517 * target.c (update_current_target): Don't inherit or default
10518 to_set_trace_notes.
10519 * target.h (struct target_ops) <to_set_trace_notes>: Use
10520 TARGET_DEFAULT_RETURN.
10521
91df8d1d
TT
105222014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target-delegates.c: Rebuild.
10525 * target.c (update_current_target): Don't initialize
10526 to_set_trace_buffer_size.
10527 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10528 TARGET_DEFAULT_IGNORE.
10529
8d526939
TT
105302014-02-19 Tom Tromey <tromey@redhat.com>
10531
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10534 to_set_circular_trace_buffer.
10535 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10536 TARGET_DEFAULT_IGNORE.
10537
0bcfeddf
TT
105382014-02-19 Tom Tromey <tromey@redhat.com>
10539
10540 * target-delegates.c: Rebuild.
10541 * target.c (update_current_target): Don't inherit or default
10542 to_set_disconnected_tracing.
10543 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10544 TARGET_DEFAULT_IGNORE.
10545
9249843f
TT
105462014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * target-delegates.c: Rebuild.
10549 * target.c (update_current_target): Don't inherit or default
10550 to_get_min_fast_tracepoint_insn_len.
10551 (return_minus_one): Remove.
10552 * target.h (struct target_ops)
10553 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10554
ace92e7d
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_get_raw_trace_data.
10560 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10561 TARGET_DEFAULT_NORETURN.
10562
08120467
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_upload_trace_state_variables.
10568 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10569 Use TARGET_DEFAULT_RETURN.
10570
1e949b00
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_upload_tracepoints.
10576 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10577 TARGET_DEFAULT_RETURN.
10578
a2e6c147
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_save_trace_data.
10584 * target.h (struct target_ops) <to_save_trace_data>: Use
10585 TARGET_DEFAULT_NORETURN.
10586
959bcd0b
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_get_trace_state_variable_value.
10592 * target.h (struct target_ops)
10593 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10594
afc94e66
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_trace_find.
10600 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10601
e51c07ea
TT
106022014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * target-delegates.c: Rebuild.
10605 * target.c (update_current_target): Don't inherit or default
10606 to_trace_stop.
10607 * target.h (struct target_ops) <to_trace_stop>: Use
10608 TARGET_DEFAULT_NORETURN.
10609
6fea14cd
TT
106102014-02-19 Tom Tromey <tromey@redhat.com>
10611
10612 * target-delegates.c: Rebuild.
10613 * target.c (update_current_target): Don't inherit or default
10614 to_get_tracepoint_status.
10615 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10616 TARGET_DEFAULT_NORETURN.
10617
4072d4ff
TT
106182014-02-19 Tom Tromey <tromey@redhat.com>
10619
10620 * target-delegates.c: Rebuild.
10621 * target.c (update_current_target): Don't inherit or default
10622 to_get_trace_status.
10623 * target.h (struct target_ops) <to_get_trace_status>: Use
10624 TARGET_DEFAULT_RETURN.
10625
25da2e80
TT
106262014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * target-delegates.c: Rebuild.
10629 * target.c (update_current_target): Don't inherit or default
10630 to_trace_start.
10631 * target.h (struct target_ops) <to_trace_start>: Use
10632 TARGET_DEFAULT_NORETURN.
10633
86dd181d
TT
106342014-02-19 Tom Tromey <tromey@redhat.com>
10635
10636 * target-delegates.c: Rebuild.
10637 * target.c (update_current_target): Don't inherit or default
10638 to_trace_set_readonly_regions.
10639 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10640 Use TARGET_DEFAULT_NORETURN.
10641
05c41993
TT
106422014-02-19 Tom Tromey <tromey@redhat.com>
10643
10644 * target-delegates.c: Rebuild.
10645 * target.c (update_current_target): Don't inherit or default
10646 to_disable_tracepoint.
10647 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10648 TARGET_DEFAULT_NORETURN.
10649
151f70f1
TT
106502014-02-19 Tom Tromey <tromey@redhat.com>
10651
10652 * target-delegates.c: Rebuild.
10653 * target.c (update_current_target): Don't inherit or default
10654 to_enable_tracepoint.
10655 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10656 TARGET_DEFAULT_NORETURN.
10657
94eb98b9
TT
106582014-02-19 Tom Tromey <tromey@redhat.com>
10659
10660 * target-delegates.c: Rebuild.
10661 * target.c (update_current_target): Don't inherit or default
10662 to_download_trace_state_variable.
10663 * target.h (struct target_ops) <to_download_trace_state_variable>:
10664 Use TARGET_DEFAULT_NORETURN.
10665
719acc4a
TT
106662014-02-19 Tom Tromey <tromey@redhat.com>
10667
10668 * target-delegates.c: Rebuild.
10669 * target.c (update_current_target): Don't inherit or default
10670 to_can_download_tracepoint.
10671 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10672 TARGET_DEFAULT_RETURN.
10673
9a980a22
TT
106742014-02-19 Tom Tromey <tromey@redhat.com>
10675
10676 * target-delegates.c: Rebuild.
10677 * target.c (update_current_target): Don't inherit or default
10678 to_download_tracepoint.
10679 * target.h (struct target_ops) <to_download_tracepoint>: Use
10680 TARGET_DEFAULT_NORETURN.
10681
5536135b
TT
106822014-02-19 Tom Tromey <tromey@redhat.com>
10683
10684 * target-delegates.c: Rebuild.
10685 * target.c (update_current_target): Don't inherit or default
10686 to_trace_init.
10687 * target.h (struct target_ops) <to_trace_init>: Use
10688 TARGET_DEFAULT_RETURN.
10689
9409d39e
TT
106902014-02-19 Tom Tromey <tromey@redhat.com>
10691
10692 * target-delegates.c: Rebuild.
10693 * target.c (update_current_target): Don't inherit or default
10694 to_supports_string_tracing.
10695 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10696 TARGET_DEFAULT_RETURN.
10697
aab1b22d
TT
106982014-02-19 Tom Tromey <tromey@redhat.com>
10699
10700 * target-delegates.c: Rebuild.
10701 * target.c (update_current_target): Don't inherit or default
10702 to_supports_enable_disable_tracepoint.
10703 * target.h (struct target_ops)
10704 <to_supports_enable_disable_tracepoint>: Use
10705 TARGET_DEFAULT_RETURN.
10706
a7304748
TT
107072014-02-19 Tom Tromey <tromey@redhat.com>
10708
10709 * target-delegates.c: Rebuild.
10710 * target.c (update_current_target): Don't inherit or default
10711 to_supports_multi_process.
10712 * target.h (struct target_ops) <to_supports_multi_process>: Use
10713 TARGET_DEFAULT_RETURN.
10714
4229b31d
TT
107152014-02-19 Tom Tromey <tromey@redhat.com>
10716
10717 * target-delegates.c: Rebuild.
10718 * target.c (update_current_target): Don't inherit or default
10719 to_get_ada_task_ptid.
10720 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10721 TARGET_DEFAULT_FUNC.
10722
43eba180
TT
107232014-02-19 Tom Tromey <tromey@redhat.com>
10724
10725 * target-delegates.c: Rebuild.
10726 * target.c (update_current_target): Don't inherit or default
10727 to_thread_architecture.
10728 * target.h (struct target_ops) <to_thread_architecture>: Use
10729 TARGET_DEFAULT_FUNC.
10730
fe31bf5b
TT
107312014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 * target-delegates.c: Rebuild.
10734 * target.c (update_current_target): Don't inherit or default
10735 to_execution_direction.
10736 * target.h (struct target_ops) <to_execution_direction>: Use
10737 TARGET_DEFAULT_FUNC.
10738
53e1cfc7
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_can_execute_reverse.
10744 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10745 TARGET_DEFAULT_RETURN.
10746 (target_can_execute_reverse): Unconditionally delegate.
10747
9bb9d61d
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_goto_bookmark.
10753 (dummy_goto_bookmark): Remove.
10754 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10755 * target.h (struct target_ops) <to_goto_bookmark>: Use
10756 TARGET_DEFAULT_NORETURN.
10757
3dbafbbb
TT
107582014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10762 to_get_bookmark.
10763 (dummy_get_bookmark): Remove.
10764 (init_dummy_target): Don't inherit or default to_get_bookmark.
10765 * target.h (struct target_ops) <to_get_bookmark>: Use
10766 TARGET_DEFAULT_NORETURN
10767
16f796b1
TT
107682014-02-19 Tom Tromey <tromey@redhat.com>
10769
10770 * target-delegates.c: Rebuild.
10771 * target.c (update_current_target): Don't inherit or default
10772 to_make_corefile_notes.
10773 (init_dummy_target): Don't initialize to_make_corefile_notes.
10774 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10775 TARGET_DEFAULT_FUNC.
10776
0b5a2719
TT
107772014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * target-delegates.c: Rebuild.
10780 * target.c (update_current_target): Don't inherit or default
10781 to_find_memory_regions.
10782 (init_dummy_target): Don't initialize to_find_memory_regions.
10783 * target.h (struct target_ops) <to_find_memory_regions>: Use
10784 TARGET_DEFAULT_FUNC.
10785
d9cb0195
TT
107862014-02-19 Tom Tromey <tromey@redhat.com>
10787
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10790 to_log_command.
10791 * target.h (struct target_ops) <to_log_command>: Use
10792 TARGET_DEFAULT_IGNORE.
10793 (target_log_command): Unconditionally delegate.
10794
830ca330
TT
107952014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target-delegates.c: Rebuild.
10798 * target.c (update_current_target): Don't inherit or default
10799 to_pid_to_exec_file.
10800 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10801 TARGET_DEFAULT_RETURN.
10802
825828fc
TT
108032014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target-delegates.c: Rebuild.
10806 * target.c (update_current_target): Don't inherit or default
10807 to_thread_name.
10808 (target_thread_name): Unconditionally delegate.
10809 * target.h (struct target_ops) <to_thread_name>: Use
10810 TARGET_DEFAULT_RETURN.
10811
4a7e6dda
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (update_current_target): Don't inherit or default
10816 to_extra_thread_info.
10817 * target.h (struct target_ops) <to_extra_thread_info>: Use
10818 TARGET_DEFAULT_RETURN.
10819
0db88c1d
TT
108202014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target-delegates.c: Rebuild.
10823 * target.c (update_current_target): Don't inherit or default
10824 to_has_exited.
10825 * target.h (struct target_ops) <to_has_exited>: Use
10826 TARGET_DEFAULT_RETURN..
10827
6a9fa051
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target-delegates.c: Rebuild.
10831 * target.c (update_current_target): Don't inherit or default
10832 to_set_syscall_catchpoint.
10833 (return_one): Remove.
10834 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10835 TARGET_DEFAULT_RETURN.
10836
62f64d7a
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target-delegates.c: Rebuild.
10840 * target.c (update_current_target): Don't inherit or default
10841 to_insert_exec_catchpoint.
10842 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10843 TARGET_DEFAULT_RETURN.
10844
cda0f38c
TT
108452014-01-08 Tom Tromey <tromey@redhat.com>
10846
10847 * target-delegates.c: Rebuild.
10848 * target.c (update_current_target): Don't inherit or default
10849 to_insert_exec_catchpoint.
10850 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10851 TARGET_DEFAULT_RETURN.
10852
95c3375e
TT
108532014-02-19 Tom Tromey <tromey@redhat.com>
10854
10855 * target-delegates.c: Rebuild.
10856 * target.c (update_current_target): Don't inherit or default
10857 to_remove_vfork_catchpoint.
10858 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10859 TARGET_DEFAULT_RETURN.
10860
7e18a8dc
TT
108612014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target-delegates.c: Rebuild.
10864 * target.c (update_current_target): Don't inherit or default
10865 to_insert_vfork_catchpoint.
10866 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10867 TARGET_DEFAULT_RETURN.
10868
e1a21fb7
TT
108692014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * target-delegates.c: Rebuild.
10872 * target.c (update_current_target): Don't inherit or default
10873 to_remove_fork_catchpoint.
10874 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10875 TARGET_DEFAULT_RETURN.
10876
5958ebeb
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target-delegates.c: Rebuild.
10880 * target.c (update_current_target): Don't inherit or default
10881 to_insert_fork_catchpoint.
10882 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10883 TARGET_DEFAULT_RETURN.
10884
340ba4bf
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target-delegates.c: Rebuild.
10888 * target.c (update_current_target): Don't inherit or default
10889 to_post_startup_inferior.
10890 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10891 TARGET_DEFAULT_IGNORE.
10892
7634da87
TT
108932014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target-delegates.c: Rebuild.
10896 * target.c (update_current_target): Don't inherit or default
10897 to_load.
10898 * target.h (struct target_ops) <to_load>: Use
10899 TARGET_DEFAULT_NORETURN.
10900
e19e919f
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target-delegates.c: Rebuild.
10904 * target.c (update_current_target): Don't inherit or default
10905 to_terminal_info.
10906 * target.h (struct target_ops) <to_terminal_info>: Use
10907 TARGET_DEFAULT_FUNC.
10908
c6ea8f79
TT
109092014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target-delegates.c: Rebuild.
10912 * target.c (update_current_target): Don't inherit or default
10913 to_terminal_save_ours.
10914 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10915 TARGET_DEFAULT_IGNORE.
10916
e4a733f1
TT
109172014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target-delegates.c: Rebuild.
10920 * target.c (update_current_target): Don't inherit or default
10921 to_terminal_ours.
10922 * target.h (struct target_ops) <to_terminal_ours>: Use
10923 TARGET_DEFAULT_IGNORE.
10924
74fcbef9
TT
109252014-02-19 Tom Tromey <tromey@redhat.com>
10926
10927 * target-delegates.c: Rebuild.
10928 * target.c (update_current_target): Don't inherit or default
10929 to_terminal_ours_for_output.
10930 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10931 TARGET_DEFAULT_IGNORE.
10932
ddeaacc9
TT
109332014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target-delegates.c: Rebuild.
10936 * target.c (update_current_target): Don't inherit or default
10937 to_terminal_inferior.
10938 * target.h (struct target_ops) <to_terminal_inferior>: Use
10939 TARGET_DEFAULT_IGNORE.
10940
0343661d
TT
109412014-02-19 Tom Tromey <tromey@redhat.com>
10942
10943 * target-delegates.c: Rebuild.
10944 * target.c (update_current_target): Don't inherit or default
10945 to_terminal_init.
10946 * target.h (struct target_ops) <to_terminal_init>: Use
10947 TARGET_DEFAULT_IGNORE.
10948
77cdffe9
TT
109492014-02-19 Tom Tromey <tromey@redhat.com>
10950
10951 * target-delegates.c: Rebuild.
10952 * target.c (update_current_target): Don't inherit or default
10953 to_can_accel_watchpoint_condition.
10954 * target.h (struct target_ops)
10955 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10956
d03655e4
TT
109572014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target-delegates.c: Rebuild.
10960 * target.c (update_current_target): Don't inherit or default
10961 to_region_ok_for_hw_watchpoint.
10962 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10963 Use TARGET_DEFAULT_FUNC.
10964
65f160a9
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target-delegates.c: Rebuild.
10968 * target.c (update_current_target): Don't inherit or default
10969 to_watchpoint_addr_within_range.
10970 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10971 Use TARGET_DEFAULT_FUNC.
10972
61dd109f
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target-delegates.c: Rebuild.
10976 * target.c (update_current_target): Don't inherit or default
10977 to_remove_watchpoint.
10978 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10979 TARGET_DEFAULT_NORETURN.
10980
016facd4
TT
109812014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target-delegates.c: Rebuild.
10984 * target.c (update_current_target): Don't inherit or default
10985 to_insert_watchpoint.
10986 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10987 TARGET_DEFAULT_RETURN.
10988
418dabac
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target-delegates.c: Rebuild.
10992 * target.c (update_current_target): Don't inherit or default
10993 to_remove_hw_breakpoint.
10994 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10995 TARGET_DEFAULT_RETURN.
10996
61b371f9
TT
109972014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * target-delegates.c: Rebuild.
11000 * target.c (update_current_target): Don't inherit or default
11001 to_insert_hw_breakpoint.
11002 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11003 TARGET_DEFAULT_RETURN.
11004
52b51d06
TT
110052014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target-delegates.c: Rebuild.
11008 * target.c (update_current_target): Don't inherit or default
11009 to_can_use_hw_breakpoint.
11010 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11011 TARGET_DEFAULT_RETURN.
11012
f86e59b2
TT
110132014-02-19 Tom Tromey <tromey@redhat.com>
11014
11015 * target-delegates.c: Rebuild.
11016 * target.c (update_current_target): Don't inherit or default
11017 to_files_info.
11018 * target.h (struct target_ops) <to_files_info>: Use
11019 TARGET_DEFAULT_IGNORE.
11020
6c628163
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target-delegates.c: Rebuild.
11024 * target.c (update_current_target): Don't inherit or default
11025 to_store.
11026 * target.h (struct target_ops) <to_store>: Use
11027 TARGET_DEFAULT_NORETURN.
11028
bebd3233
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (update_current_target): Don't inherit or default
11033 to_post_attach.
11034 * target.h (struct target_ops) <to_post_attach>: Use
11035 TARGET_DEFAULT_IGNORE.
11036
a53f3625
TT
110372014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target-delegates.c: Rebuild.
11040 * target.c (update_current_target): Don't inherit or default
11041 to_rcmd.
11042 (default_rcmd): New function.
11043 (do_monitor_command): Unconditionally delegate.
11044 * target.h (struct target_ops) <to_rmcd>: Use
11045 TARGET_DEFAULT_FUNC.
11046
e9a29200
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target-delegates.c: Rebuild.
11050 * target.c (init_dummy_target): Don't initialize to_attach.
11051 (target_attach): Unconditionally delegate.
11052 * target.h (struct target_ops) <to_attach>: Use
11053 TARGET_DEFAULT_FUNC.
11054
09da0d0a
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (target_detach): Unconditionally delegate.
11059 (init_dummy_target): Don't initialize to_detach.
11060 * target.h (struct target_ops) <to_detach>: Use
11061 TARGET_DEFAULT_IGNORE.
11062
5436ff03
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11066 Add argument.
11067 (target_augmented_libraries_svr4_read): Add argument.
11068 * target.c (update_current_target): Update.
11069 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11070 argument.
11071
f0d960ea
TT
110722014-02-19 Tom Tromey <tromey@redhat.com>
11073
11074 * target.h (struct target_ops) <to_call_history_range>: Add
11075 argument.
11076 * target.c (target_call_history_range): Add argument.
11077 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11078 argument.
11079 (record_btrace_call_history_from): Update.
11080
ec0aea04
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_call_history_from>: Add
11084 argument.
11085 * target.c (target_call_history_from): Add argument.
11086 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11087 argument.
11088
5df2fcba
TT
110892014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target.h (struct target_ops) <to_call_history>: Add argument.
11092 * target.c (target_call_history): Add argument.
11093 * record-btrace.c (record_btrace_call_history): Add 'self'
11094 argument.
11095
4e99c6b7
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_insn_history_range>: Add
11099 argument.
11100 * target.c (target_insn_history_range): Add argument.
11101 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11102 argument.
11103 (record_btrace_insn_history_from): Update.
11104
9abc3ff3
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_insn_history_from>: Add
11108 argument.
11109 * target.c (target_insn_history_from): Add argument.
11110 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11111 argument.
11112
7a6c5609
TT
111132014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target.h (struct target_ops) <to_insn_history>: Add argument.
11116 * target.c (target_insn_history): Add argument.
11117 * record-btrace.c (record_btrace_insn_history): Add 'self'
11118 argument.
11119
606183ac
TT
111202014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target.h (struct target_ops) <to_goto_record>: Add argument.
11123 * target.c (target_goto_record): Add argument.
11124 * record-full.c (record_full_goto): Add 'self' argument.
11125 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11126
307a1b91
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11130 * target.c (target_goto_record_end): Add argument.
11131 * record-full.c (record_full_goto_end): Add 'self' argument.
11132 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11133
08475817
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target.h (struct target_ops) <to_goto_record_begin>: Add
11137 argument.
11138 * target.c (target_goto_record_begin): Add argument.
11139 * record-full.c (record_full_goto_begin): Add 'self' argument.
11140 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11141 argument.
11142
1c63c994
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target.h (struct target_ops) <to_record_is_replaying>: Add
11146 argument.
11147 * target.c (target_record_is_replaying): Add argument.
11148 * record-full.c (record_full_is_replaying): Add 'self' argument.
11149 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11150 argument.
11151 (record_btrace_xfer_partial, record_btrace_store_registers)
11152 (record_btrace_prepare_to_store, record_btrace_resume)
11153 (record_btrace_wait, record_btrace_decr_pc_after_break)
11154 (record_btrace_find_new_threads, record_btrace_thread_alive):
11155 Update.
11156
d1b55219
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target.h (struct target_ops) <to_delete_record>: Add argument.
11160 * target.c (target_delete_record): Add argument.
11161 * record-full.c (record_full_delete): Add 'self' argument.
11162
1390f529
TT
111632014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * target.h (struct target_ops) <to_save_record>: Add argument.
11166 * target.c (target_save_record): Add argument.
11167 * record-full.c (record_full_save): Add 'self' argument.
11168 (record_full_save): Add 'self' argument.
11169
630d6a4a
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_info_record>: Add argument.
11173 * target.c (target_info_record): Add argument.
11174 * record.c (info_record_command): Add argument.
11175 * record-full.c (record_full_info): Add 'self' argument.
11176 * record-btrace.c (record_btrace_info): Add 'self' argument.
11177
c6cd7c02
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11181 * target.c (target_stop_recording): Add argument.
11182 * record.c (record_stop): Add argument.
11183 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11184 argument.
11185
39c49f83
TT
111862014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11189 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11190 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11191 argument.
11192 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11193 (_initialize_amd64_linux_nat): Use it.
11194 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11195 (_initialize_i386_linux_nat): Use it.
11196
1777056d
TT
111972014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11200 * target.c (target_teardown_btrace): Add argument.
11201 * remote.c (remote_teardown_btrace): Add 'self' argument.
11202 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11203 argument.
11204 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11205 argument.
11206
25e95349
TT
112072014-02-19 Tom Tromey <tromey@redhat.com>
11208
11209 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11210 * target.c (target_disable_btrace): Add argument.
11211 * remote.c (remote_disable_btrace): Add 'self' argument.
11212 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11213 argument.
11214 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11215 argument.
11216
e3c49f88
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11220 * target.c (target_enable_btrace): Add argument.
11221 * remote.c (remote_enable_btrace): Add 'self' argument.
11222 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11223 argument.
11224 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11225 argument.
11226
fe38f897
TT
112272014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11230 (target_can_use_agent): Add argument.
11231 * target.c (update_current_target): Update.
11232 * remote.c (remote_can_use_agent): Add 'self' argument.
11233 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11234
2c152180
TT
112352014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * target.h (struct target_ops) <to_use_agent>: Add argument.
11238 (target_use_agent): Add argument.
11239 * target.c (update_current_target): Update.
11240 * remote.c (remote_use_agent): Add 'self' argument.
11241 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11242
a893e81f
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11246 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11247 (target_traceframe_info): Add argument.
11248 * target.c (update_current_target): Update.
11249 * remote.c (remote_traceframe_info): Add 'self' argument.
11250 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11251
c686c57f
TT
112522014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (target_static_tracepoint_markers_by_strid): Add
11255 argument.
11256 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11257 'self' argument.
11258 * target.c (update_current_target): Update.
11259 * remote.c (struct target_ops)
11260 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11261 * linux-nat.c (struct target_ops)
11262 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11263
61fc905d
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11267 Add argument.
11268 (target_static_tracepoint_marker_at): Add argument.
11269 * target.c (update_current_target): Update.
11270 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11271 argument.
11272
c378d69d
TT
112732014-02-19 Tom Tromey <tromey@redhat.com>
11274
11275 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11276 (target_set_permissions): Add argument.
11277 * target.c (update_current_target): Update.
11278 * remote.c (remote_set_permissions): Add 'self' argument.
11279 (remote_start_remote): Update.
11280
bd7ae0f5
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11284 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11285 (target_get_tib_address): Add argument.
11286 * target.c (update_current_target): Update.
11287 * remote.c (remote_get_tib_address): Add 'self' argument.
11288
d9e68a2c
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11292 (target_set_trace_notes): Add argument.
11293 * target.c (update_current_target): Update.
11294 * remote.c (remote_set_trace_notes): Add 'self' argument.
11295
4da384be
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11299 argument.
11300 (target_set_trace_buffer_size): Add argument.
11301 * target.c (update_current_target): Update.
11302 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11303
736d5b1f
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11307 argument.
11308 (target_set_circular_trace_buffer): Add argument.
11309 * target.c (update_current_target): Update.
11310 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11311 argument.
11312
37b25738
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11316 argument.
11317 (target_set_disconnected_tracing): Add argument.
11318 * target.c (update_current_target): Update.
11319 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11320
0e67620a
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target.h (struct target_ops)
11324 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11325 (target_get_min_fast_tracepoint_insn_len): Add argument.
11326 * target.c (update_current_target): Update.
11327 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11328 argument.
11329
88ee6f45
TT
113302014-02-19 Tom Tromey <tromey@redhat.com>
11331
11332 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11333 argument.
11334 (target_get_raw_trace_data): Add argument.
11335 * target.c (update_current_target): Update.
11336 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11337
181e3713
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11341 Add argument.
11342 (target_upload_trace_state_variables): Add argument.
11343 * target.c (update_current_target): Update.
11344 * remote.c (remote_upload_trace_state_variables): Add 'self'
11345 argument.
11346 (remote_start_remote): Update.
11347
ab6617cc
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11351 argument.
11352 (target_upload_tracepoints): Add argument.
11353 * target.c (update_current_target): Update.
11354 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11355 (remote_start_remote): Update.
11356
dc3decaf
TT
113572014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11360 (target_save_trace_data): Add argument.
11361 * target.c (update_current_target): Update.
11362 * remote.c (remote_save_trace_data): Add 'self' argument.
11363
4011015b
TT
113642014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11367 argument.
11368 * target.h (struct target_ops)
11369 <to_get_trace_state_variable_value>: Add argument.
11370 (target_get_trace_state_variable_value): Add argument.
11371 * target.c (update_current_target): Update.
11372 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11373 argument.
11374 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11375
bd4c6793
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11379 * target.h (struct target_ops) <to_trace_find>: Add argument.
11380 (target_trace_find): Add argument.
11381 * target.c (update_current_target): Update.
11382 * remote.c (remote_trace_find): Add 'self' argument.
11383 * ctf.c (ctf_trace_find): Add 'self' argument.
11384
74499f1b
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11388 (target_trace_stop): Add argument.
11389 * target.c (update_current_target): Update.
11390 * remote.c (remote_trace_stop): Add 'self' argument.
11391
db90e85c
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11395 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11396 argument.
11397 (target_get_tracepoint_status): Add argument.
11398 * target.c (update_current_target): Update.
11399 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11400
8bd200f1
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11404 * target.h (struct target_ops) <to_get_trace_status>: Add
11405 argument.
11406 (target_get_trace_status): Add argument.
11407 * target.c (update_current_target): Update.
11408 * remote.c (remote_get_trace_status): Add 'self' argument.
11409 (remote_start_remote, remote_can_download_tracepoint): Update.
11410 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11411
e2d1aae3
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_trace_start>: Add argument.
11415 (target_trace_start): Add argument.
11416 * target.c (update_current_target): Update.
11417 * remote.c (remote_trace_start): Add 'self' argument.
11418
583f9a86
TT
114192014-02-19 Tom Tromey <tromey@redhat.com>
11420
11421 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11422 Add argument.
11423 (target_trace_set_readonly_regions): Add argument.
11424 * target.c (update_current_target): Update.
11425 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11426 argument.
11427
780b049c
TT
114282014-02-19 Tom Tromey <tromey@redhat.com>
11429
11430 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11431 argument.
11432 (target_disable_tracepoint): Add argument.
11433 * target.c (update_current_target): Update.
11434 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11435
46670d57
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11439 argument.
11440 (target_enable_tracepoint): Add argument.
11441 * target.c (update_current_target): Update.
11442 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11443
559d2b81
TT
114442014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * target.h (struct target_ops) <to_download_trace_state_variable>:
11447 Add argument.
11448 (target_download_trace_state_variable): Add argument.
11449 * target.c (update_current_target): Update.
11450 * remote.c (remote_download_trace_state_variable): Add 'self'
11451 argument.
11452
a52a8357
TT
114532014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11456 argument.
11457 (target_can_download_tracepoint): Add argument.
11458 * target.c (update_current_target): Update.
11459 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11460
548f7808
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target.h (struct target_ops) <to_download_tracepoint>: Add
11464 argument.
11465 (target_download_tracepoint): Add argument.
11466 * target.c (update_current_target): Update.
11467 * remote.c (remote_download_tracepoint): Add 'self' argument.
11468
ecae04e1
TT
114692014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * target.h (struct target_ops) <to_trace_init>: Add argument.
11472 (target_trace_init): Add argument.
11473 * target.c (update_current_target): Update.
11474 * remote.c (remote_trace_init): Add 'self' argument.
11475
fab5aa7c
TT
114762014-02-19 Tom Tromey <tromey@redhat.com>
11477
11478 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11479 * target.c (target_fileio_readlink): Add argument.
11480 * remote.c (remote_hostio_readlink): Add 'self' argument.
11481 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11482
dbbca37d
TT
114832014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11486 * target.c (target_fileio_unlink): Add argument.
11487 * remote.c (remote_hostio_unlink): Add 'self' argument.
11488 (remote_file_delete): Update.
11489 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11490
df39ea25
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11494 * target.c (target_fileio_close): Add argument.
11495 * remote.c (remote_hostio_close): Add 'self' argument.
11496 (remote_hostio_close_cleanup): Update.
11497 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11498 Update.
11499 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11500
a3be983c
TT
115012014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11504 * target.c (target_fileio_pread): Add argument.
11505 * remote.c (remote_hostio_pread): Add 'self' argument.
11506 (remote_bfd_iovec_pread, remote_file_get): Update.
11507 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11508
0d866f62
TT
115092014-02-19 Tom Tromey <tromey@redhat.com>
11510
11511 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11512 * target.c (target_fileio_pwrite): Add argument.
11513 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11514 (remote_file_put): Update.
11515 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11516
cd897586
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11520 * target.c (target_fileio_open): Add argument.
11521 * remote.c (remote_hostio_open): Add 'self' argument.
11522 (remote_bfd_iovec_open): Add 'self' argument.
11523 (remote_file_put): Add 'self' argument.
11524 (remote_file_get): Add 'self' argument.
11525 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11526
78eff0ec
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11530 Add argument.
11531 (target_can_run_breakpoint_commands): Add argument.
11532 * target.c (update_current_target): Update.
11533 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11534 argument.
11535 (remote_insert_breakpoint): Add 'self' argument.
11536 (remote_insert_hw_breakpoint): Add 'self' argument.
11537 (remote_can_run_breakpoint_commands): Add 'self' argument.
11538
efcc2da7
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target.h (struct target_ops)
11542 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11543 (target_supports_evaluation_of_breakpoint_conditions): Add
11544 argument.
11545 * target.c (update_current_target): Update.
11546 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11547 argument.
11548 (remote_insert_breakpoint): Add 'self' argument.
11549 (remote_insert_hw_breakpoint): Add 'self' argument.
11550 (remote_supports_cond_breakpoints): Add 'self' argument.
11551
6de37a3a
TT
115522014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11555 argument.
11556 (target_supports_string_tracing): Add argument.
11557 * target.c (update_current_target): Update.
11558 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11559
2bfc0540
TT
115602014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target.h (struct target_ops)
11563 <to_supports_disable_randomization>: Add argument.
11564 * target.c (find_default_supports_disable_randomization): Add
11565 argument.
11566 (target_supports_disable_randomization): Add argument.
11567 (find_default_supports_disable_randomization): Add 'self'
11568 argument.
11569 * remote.c (extended_remote_supports_disable_randomization): Add
11570 'self' argument.
11571 (remote_supports_disable_randomization): Add 'self' argument.
11572 (extended_remote_create_inferior): Update.
11573 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11574 'self' argument.
11575
7d178d6a
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target.h (struct target_ops)
11579 <to_supports_enable_disable_tracepoint>: Add argument.
11580 (target_supports_enable_disable_tracepoint): Add argument.
11581 * target.c (update_current_target): Update.
11582 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11583 argument.
11584
86ce2668
TT
115852014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target.h (struct target_ops) <to_supports_multi_process>: Add
11588 argument.
11589 (target_supports_multi_process): Add argument.
11590 * target.c (update_current_target): Update.
11591 * remote.c (remote_supports_multi_process): Add 'self' argument.
11592 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11593 argument.
11594 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11595 argument.
11596
4c612759
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target.h (struct target_ops) <to_execution_direction>: Add
11600 argument.
11601 (target_execution_direction): Add argument.
11602 * target.c (default_execution_direction): Add 'self' argument.
11603 * record-full.c (record_full_execution_direction): Add 'self'
11604 argument.
11605
19db3e69
TT
116062014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11609 argument.
11610 (target_can_execute_reverse): Add argument.
11611 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11612 * record-full.c (record_full_can_execute_reverse): Add 'self'
11613 argument.
11614 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11615 argument.
11616
1e6b91a4
TT
116172014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11620 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11621 argument.
11622 (target_get_ada_task_ptid): Add argument.
11623 * target.c (update_current_target): Update.
11624 (default_get_ada_task_ptid): Add 'self' argument.
11625 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11626 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11627 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11628 argument.
11629 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11630 argument.
11631 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11632 argument.
11633 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11634 argument.
11635 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11636 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11637 argument.
11638
3c80fb48
TT
116392014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11642 (target_goto_bookmark): Add argument.
11643 * target.c (dummy_goto_bookmark): Add 'self' argument.
11644 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11645
dd0e2830
TT
116462014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11649 (target_get_bookmark): Add argument.
11650 * target.c (dummy_get_bookmark): Add 'self' argument.
11651 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11652
fc6691b2
TT
116532014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11656 argument.
11657 (target_make_corefile_notes): Add argument.
11658 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11659 * procfs.c (procfs_make_note_section): Add 'self' argument.
11660 (procfs_make_note_section): Add 'self' argument.
11661 (procfs_make_note_section): Add 'self' argument.
11662 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11663 argument.
11664 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11665 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11666 * exec.c (exec_make_note_section): Add 'self' argument.
11667 (exec_make_note_section): Add 'self' argument.
11668
2e73927c
TT
116692014-02-19 Tom Tromey <tromey@redhat.com>
11670
11671 * target.h (struct target_ops) <to_find_memory_regions>: Add
11672 argument.
11673 (target_find_memory_regions): Add argument.
11674 * target.c (dummy_find_memory_regions): Add 'self' argument.
11675 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11676 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11677 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11678 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11679 * exec. (exec_do_find_memory_regions): New global.
11680 (exec_set_find_memory_regions): Rewrite.
11681 (exec_find_memory_regions): New function.
11682 (init_exec_ops): Use exec_find_memory_regions.
11683
2a9a2795
TT
116842014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target.h (struct target_ops) <to_supports_non_stop>: Add
11687 argument.
11688 * target.c (find_default_supports_non_stop): Add argument.
11689 (target_supports_non_stop): Add argument.
11690 (find_default_supports_non_stop): Add 'self' argument.
11691 * remote.c (remote_supports_non_stop): Add 'self' argument.
11692 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11693
4ab76ea3
TT
116942014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target.h (struct target_ops) <to_log_command>: Add argument.
11697 (target_log_command): Add argument.
11698 * serial.h (serial_log_command): Add 'self' argument.
11699 * serial.c (serial_log_command): Add 'self' argument.
11700
8dd27370
TT
117012014-02-19 Tom Tromey <tromey@redhat.com>
11702
11703 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11704 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11705 argument.
11706 (target_pid_to_exec_file): Add argument.
11707 * target.c (debug_to_pid_to_exec_file): Add argument.
11708 (update_current_target): Update.
11709 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11710 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11711 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11712 (linux_handle_extended_wait): Update.
11713 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11714 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11715 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11716 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11717
1aac633b
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target.h (struct target_ops) <to_rcmd>: Add argument.
11721 (target_rcmd): Add argument.
11722 * target.c (debug_to_rcmd): Add argument.
11723 (update_current_target, do_monitor_command): Update.
11724 * remote.c (remote_rcmd): Add 'self' argument.
11725 * monitor.c (monitor_rcmd): Add 'self' argument.
11726
1eab8a48
TT
117272014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * windows-nat.c (windows_stop): Add 'self' argument.
11730 * target.h (struct target_ops) <to_stop>: Add argument.
11731 * target.c (target_stop): Add argument.
11732 (debug_to_stop): Add argument.
11733 (update_current_target): Update.
11734 * remote.c (remote_stop): Add 'self' argument.
11735 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11736 (gdbsim_cntrl_c): Update.
11737 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11738 * procfs.c (procfs_stop): Add 'self' argument.
11739 * nto-procfs.c (procfs_stop): Add 'self' argument.
11740 * monitor.c (monitor_stop): Add 'self' argument.
11741 (monitor_open): Update.
11742 * linux-nat.c (linux_nat_stop): Add argument.
11743 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11744 * gnu-nat.c (gnu_stop): Add 'self' argument.
11745 * darwin-nat.c (darwin_stop): Add 'self' argument.
11746
503a628d
TT
117472014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target.h (struct target_ops) <to_thread_name>: Add argument.
11750 * target.c (target_thread_name): Add argument.
11751 (update_current_target): Update.
11752 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11753
c15906d8
TT
117542014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target.h (struct target_ops) <to_extra_thread_info>: Add
11757 argument.
11758 (target_extra_thread_info): Add argument.
11759 * target.c (update_current_target): Update.
11760 * remote.c (remote_threads_extra_info): Add 'self' argument.
11761 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11762 argument.
11763 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11764 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11765 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11766 argument.
11767 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11768 argument.
11769 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11770 argument.
11771 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11772 argument.
11773
daf5e9b6
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target.h (struct target_ops) <to_program_signals>: Add argument.
11777 * target.c (target_program_signals): Add argument.
11778 * remote.c (remote_program_signals): Add 'self' argument.
11779
94bedb42
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11783 * target.c (target_pass_signals): Add argument.
11784 * remote.c (remote_pass_signals): Add 'self' argument.
11785 (remote_start_remote): Update.
11786 * procfs.c (procfs_pass_signals): Add 'self' argument.
11787 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11788 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11789 (linux_nat_create_inferior, linux_nat_attach): Update.
11790
da82bd6b
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * windows-nat.c (windows_can_run): Add 'self' argument.
11794 * target.h (struct target_ops) <to_can_run>: Add argument.
11795 (target_can_run): Add argument.
11796 * target.c (debug_to_can_run): Add argument.
11797 (update_current_target): Update.
11798 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11799 * inf-child.c (inf_child_can_run): Add 'self' argument.
11800 * go32-nat.c (go32_can_run): Add 'self' argument.
11801
d796e1d6
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target.h (struct target_ops) <to_has_exited>: Add argument.
11805 (target_has_exited): Add argument.
11806 * target.c (debug_to_has_exited): Add argument.
11807 (update_current_target): Update.
11808
ff214e67
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11812 argument.
11813 (target_set_syscall_catchpoint): Add argument.
11814 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11815 argument.
11816 * target.c (update_current_target): Update.
11817
758e29d2
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11821 argument.
11822 (target_remove_exec_catchpoint): Add argument.
11823 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11824 (update_current_target): Update.
11825 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11826 argument.
11827
ba025e51
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11831 argument.
11832 (target_insert_exec_catchpoint): Add argument.
11833 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11834 (update_current_target): Update.
11835 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11836 argument.
11837
e98cf0cd
TT
118382014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11841 argument.
11842 (target_remove_vfork_catchpoint): Add argument.
11843 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11844 (update_current_target): Update.
11845 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11846 argument.
11847
3ecc7da0
TT
118482014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11851 argument.
11852 (target_insert_vfork_catchpoint): Add argument.
11853 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11854 (update_current_target): Update.
11855 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11856 argument.
11857
973fc227
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11861 argument.
11862 (target_remove_fork_catchpoint): Add argument.
11863 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11864 (update_current_target): Update.
11865 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11866 argument.
11867
a863b201
TT
118682014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11871 argument.
11872 (target_insert_fork_catchpoint): Add argument.
11873 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11874 (update_current_target): Update.
11875 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11876 argument.
11877
2e97a79e
TT
118782014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11881 argument.
11882 (target_post_startup_inferior): Add argument.
11883 * target.c (debug_to_post_startup_inferior): Add argument.
11884 (update_current_target): Update.
11885 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11886 argument.
11887 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11888 argument.
11889 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11890 argument.
11891 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11892 argument.
11893 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11894 'self' argument.
11895 (super_post_startup_inferior): Likewise.
11896 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11897 'self' argument.
11898 (super_post_startup_inferior): Likewise.
11899 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11900 Add 'self' argument.
11901 (super_post_startup_inferior): Likewise.
11902
71a9f134
TT
119032014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_load>: Add argument.
11906 * target.c (target_load): Add argument.
11907 (debug_to_load): Add argument.
11908 (update_current_target): Update.
11909 * remote.c (remote_load): Add 'self' argument.
11910 * remote-sim.c (gdbsim_load): Add 'self' argument.
11911 * remote-mips.c (mips_load): Add 'self' argument.
11912 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11913 * monitor.c (monitor_load): Add 'self' argument.
11914 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11915
0a4f40a2
TT
119162014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11919 (target_terminal_info): Add argument.
11920 * target.c (debug_to_terminal_info): Add argument.
11921 (default_terminal_info): Likewise.
11922 * inflow.c (child_terminal_info): Add 'self' argument.
11923 * inferior.h (child_terminal_info): Add 'self' argument.
11924 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11925
ae3bd431
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11929 argument.
11930 (target_terminal_save_ours): Add argument.
11931 * target.c (debug_to_terminal_save_ours): Add argument.
11932 (update_current_target): Update.
11933 * inflow.c (terminal_save_ours): Add 'self' argument.
11934 * inferior.h (terminal_save_ours): Add 'self' argument.
11935
e3594fd1
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11939 (target_terminal_ours): Add argument.
11940 * target.c (debug_to_terminal_ours): Add argument.
11941 (update_current_target): Update.
11942 * remote.c (remote_terminal_ours): Add 'self' argument.
11943 (remote_close): Update.
11944 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11945 * inflow.c (terminal_ours): Add 'self' argument.
11946 * inferior.h (terminal_ours): Add 'self' argument.
11947 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11948
2e1e1a19
TT
119492014-02-19 Pedro Alves <palves@redhat.com>
11950 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11953 argument.
11954 (target_terminal_ours_for_output): Add argument.
11955 * target.c (debug_to_terminal_ours_for_output): Add argument.
11956 (update_current_target): Update.
11957 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11958 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11959 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11960
d2f640d4
TT
119612014-02-19 Tom Tromey <tromey@redhat.com>
11962
11963 * target.h (struct target_ops) <to_terminal_inferior>: Add
11964 argument.
11965 * target.c (target_terminal_inferior): Add argument.
11966 (update_current_target): Update.
11967 * remote.c (remote_terminal_inferior): Add 'self' argument.
11968 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11969 * inflow.c (terminal_inferior): Add 'self' argument.
11970 * inferior.h (terminal_inferior): Add 'self' argument.
11971 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11972 (go32_terminal_inferior): Add 'self' argument.
11973
c42bf286
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11977 (target_terminal_init): Add argument.
11978 * target.c (debug_to_terminal_init): Add argument.
11979 (update_current_target): Update.
11980 * inflow.c (terminal_init_inferior): Add 'self' argument.
11981 * inferior.h (terminal_init_inferior): Add 'self' argument.
11982 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11983 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11984
c3a5ff89
TT
119852014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * target.h (struct target_ops)
11988 <to_can_accel_watchpoint_condition>: Add argument.
11989 (target_can_accel_watchpoint_condition): Add argument.
11990 * target.c (debug_to_can_accel_watchpoint_condition): Add
11991 argument.
11992 (update_current_target): Update.
11993 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11994 'self' argument.
11995
31568a15
TT
119962014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11999 Add argument.
12000 (target_region_ok_for_hw_watchpoint): Add argument.
12001 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12002 (default_region_ok_for_hw_watchpoint): Add argument.
12003 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12004 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12005 argument.
12006 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12007 argument.
12008 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12009 argument.
12010 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12011 'self' argument.
12012 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12013 'self' argument.
12014 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12015 'self' argument.
12016 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12017 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12018 'self' argument.
12019 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12020 Add 'self' argument.
12021
7bb99c53
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12025 argument.
12026 (target_insert_watchpoint): Add argument.
12027 * target.c (debug_to_insert_watchpoint): Add argument.
12028 (update_current_target): Update.
12029 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12030 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12031 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12032 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12033 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12034 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12035 argument.
12036 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12037 (procfs_insert_hw_watchpoint): Add 'self' argument.
12038 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12039 argument.
12040 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12041 argument.
12042 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12043 argument.
12044 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12045 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12046 argument.
12047 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12048 'self' argument.
12049
11b5219a
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12053 argument.
12054 (target_remove_watchpoint): Add argument.
12055 * target.c (debug_to_remove_watchpoint): Add argument.
12056 (update_current_target): Update.
12057 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12058 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12059 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12060 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12061 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12062 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12063 argument.
12064 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12065 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12066 argument.
12067 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12068 argument.
12069 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12070 argument.
12071 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12072 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12073 argument.
12074 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12075 'self' argument.
12076
a64dc96c
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12080 argument.
12081 (target_remove_hw_breakpoint): Add argument.
12082 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12083 (update_current_target): Update.
12084 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12085 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12086 argument.
12087 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12088 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12089 argument.
12090 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12091 'self' argument.
12092
23a26771
TT
120932014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12096 argument.
12097 (target_insert_hw_breakpoint): Add argument.
12098 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12099 (update_current_target): Update.
12100 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12101 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12102 argument.
12103 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12104 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12105 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12106 argument.
12107 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12108 'self' argument.
12109
5461485a
TT
121102014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12113 argument.
12114 (target_can_use_hardware_watchpoint): Add argument.
12115 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12116 (update_current_target): Update.
12117 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12118 argument.
12119 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12120 argument.
12121 * remote.c (remote_check_watch_resources): Add 'self' argument.
12122 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12123 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12124 argument.
12125 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12126 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12127 argument.
12128 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12129 argument.
12130 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12131 argument.
12132 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12133 argument.
12134 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12135 argument.
12136 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12137 argument.
12138 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12139 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12140 argument.
12141 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12142 'self' argument.
12143
f045800c
TT
121442014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target.h (struct target_ops) <to_post_attach>: Add argument.
12147 (target_post_attach): Add argument.
12148 * target.c (debug_to_post_attach): Add argument.
12149 (update_current_target): Update.
12150 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12151 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12152 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12153 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12154 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12155
de90e03d
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * windows-nat.c (windows_close): Add 'self' argument.
12159 * tracepoint.c (tfile_close): Add 'self' argument.
12160 * target.h (struct target_ops) <to_close>: Add argument.
12161 * target.c (target_close): Add argument.
12162 (update_current_target): Update.
12163 * remote.c (remote_close): Add 'self' argument.
12164 * remote-sim.c (gdbsim_close): Add 'self' argument.
12165 * remote-mips.c (mips_close): Add 'self' argument.
12166 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12167 * record-full.c (record_full_close): Add 'self' argument.
12168 * record-btrace.c (record_btrace_close): Add 'self' argument.
12169 * monitor.h (monitor_close): Add 'self' argument.
12170 * monitor.c (monitor_close): Add 'self' argument.
12171 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12172 * linux-nat.c (linux_nat_close): Add argument.
12173 * go32-nat.c (go32_close): Add 'self' argument.
12174 * exec.c (exec_close_1): Add 'self' argument.
12175 * ctf.c (ctf_close): Add 'self' argument.
12176 * corelow.c (core_close): Add 'self' argument.
12177 (core_close_cleanup): Update.
12178 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12179 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12180
9dd130a0
TT
121812014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * remote.c (remote_load): New function.
12184 (init_remote_ops): Use it.
12185
46917d26
TT
121862014-02-19 Tom Tromey <tromey@redhat.com>
12187
12188 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12189 argument.
12190 * common/linux-btrace.h (linux_supports_btrace): Update.
12191 * remote.c (remote_supports_btrace): Add "self" argument.
12192 * target-delegates.c: Rebuild.
12193 * target.c (target_supports_btrace): Remove.
12194 * target.h (struct target_ops) <to_supports_btrace>: Add
12195 target_ops argument.
12196 (target_supports_btrace): New define.
12197
6b84065d
TT
121982014-02-19 Tom Tromey <tromey@redhat.com>
12199
12200 * record-full.c (record_full_beneath_to_resume_ops)
12201 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12202 (record_full_beneath_to_wait)
12203 (record_full_beneath_to_store_registers_ops)
12204 (record_full_beneath_to_store_registers)
12205 (record_full_beneath_to_xfer_partial_ops)
12206 (record_full_beneath_to_xfer_partial)
12207 (record_full_beneath_to_insert_breakpoint_ops)
12208 (record_full_beneath_to_insert_breakpoint)
12209 (record_full_beneath_to_remove_breakpoint_ops)
12210 (record_full_beneath_to_remove_breakpoint)
12211 (record_full_beneath_to_stopped_by_watchpoint)
12212 (record_full_beneath_to_stopped_data_address)
12213 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12214 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12215 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12216 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12217 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12218 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12219 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12220 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12221 (record_full_resume, record_full_wait_1)
12222 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12223 (record_full_store_registers, record_full_xfer_partial)
12224 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12225 (record_full_async, record_full_core_xfer_partial): Use target
12226 delegation.
12227 * target-delegates.c: Rebuild.
12228 * target.c (current_xfer_partial): Remove.
12229 (update_current_target): Do not INHERIT or de_fault
12230 to_insert_breakpoint, to_remove_breakpoint,
12231 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12232 to_is_async_p, to_async. Do not set to_xfer_partial field.
12233 (default_xfer_partial): Simplify.
12234 (current_xfer_partial): Remove.
12235 (target_wait, target_resume): Simplify.
12236 (find_default_can_async_p, find_default_is_async_p): Update.
12237 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12238 to_xfer_partial, to_stopped_by_watchpoint,
12239 to_stopped_data_address.
12240 (target_store_registers): Simplify.
12241 (forward_target_remove_breakpoint)
12242 (forward_target_insert_breakpoint): Remove.
12243 (target_remove_breakpoint, target_insert_breakpoint)
12244 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12245 * target.h (struct target_ops) <to_resume, to_wait,
12246 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12247 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12248 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12249 markup.
12250 (forward_target_remove_breakpoint)
12251 (forward_target_insert_breakpoint): Remove.
12252 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12253 directly.
12254 (record_btrace_insert_breakpoint): Delegate directly.
12255
1101cb7b
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 PR build/7701:
12259 * target-delegates.c: New file.
12260 * target.c: Include target-delegates.c.
12261 (init_dummy_target): Call install_dummy_methods.
12262 (complete_target_initialization): Call install_delegators.
12263 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12264 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12265 * make-target-delegates: New file.
12266
8b06beed
TT
122672014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * record.c (find_record_target): Use find_target_at.
12270 * target.c (find_target_at): New function.
12271 * target.h (find_target_at): Declare.
12272
6a109b6b
TT
122732014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12276 Add 'ops' argument.
12277 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12278 'ops' argument.
12279 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12280 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12281 'ops' argument.
12282 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12283 argument.
12284 * linux-nat.c (save_sigtrap): Update.
12285 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12286 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12287 (linux_nat_close): Update.
12288 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12289 argument.
12290 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12291 argument.
12292 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12293 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12294 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12295 (tmp_to_async): Add 'ops' argument.
12296 (record_full_stopped_by_watchpoint, record_full_async)
12297 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12298 argument.
12299 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12300 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12301 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12302 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12303 (remote_is_async_p, remote_async): Add 'ops' argument.
12304 (remote_stopped_data_address): Update.
12305 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12306 * target.c (update_current_target)
12307 (find_default_can_async_p, find_default_is_async_p): Update.
12308 (init_dummy_target): Update.
12309 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12310 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12311 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12312 (target_can_async_p, target_is_async_p, target_async)
12313 (target_stopped_by_watchpoint): Update.
12314
e095146b
YQ
123152014-02-19 Yao Qi <yao@codesourcery.com>
12316
12317 PR gdb/16220
12318 * gdbarch.sh: Remove startup_gdbarch.
12319 * gdbarch.c: Regenerated.
12320 * gdbarch.h: Likewise.
12321
bc3c6b36
KB
123222014-02-17 Kevin Buettner <kevinb@redhat.com>
12323
12324 * rl78-tdep.c (rl78_g10_register_name): New function.
12325 (rl78_return_value): Add g10 support.
12326 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12327 g10.
12328
98dc0167 123292014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12330
12331 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12332 (SUBDIR_GUILE_SRCS): Ditto.
12333 (scm-gsmob.o): Ditto.
12334
842c05cd
YQ
123352014-02-17 Yao Qi <yao@codesourcery.com>
12336
12337 * gnu-nat.c (ILL_RPC): Declare defined function.
12338
25c0bd04
YQ
123392014-02-17 Yao Qi <yao@codesourcery.com>
12340
12341 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12342 mach_msg_type_number_t.
12343 (gnu_write_inferior): Likewise.
12344
a9a758e3
YQ
123452014-02-17 Yao Qi <yao@codesourcery.com>
12346
12347 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12348 in format string.
12349 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12350 (inf_validate_procs, inf_signal): Likewise.
12351 (S_exception_raise_request): Likewise.
12352 (do_mach_notify_dead_name): Likewise.
12353 (steal_exc_port): Likewise.
12354 (gnu_read_inferior): Change 'copy_count''s type to
12355 mach_msg_type_number_t.
12356 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12357 format string.
12358
bae8023e
TS
123592014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12360
c82f56d9
TS
12361 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12362 flag. Adjust all users; in particular...
12363 (gnu_wait): ..., don't decrement its value in here...
12364 (gnu_create_inferior): ..., and instead set the flag in here,
12365 around the startup_inferior call, and call that one with
12366 START_INFERIOR_TRAPS_EXPECTED.
12367
3398af6a
TS
12368 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12369 (ILL_RPC): ... new macro.
12370 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12371 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12372 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12373 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12374 functions with ILL_RPC macro.
12375 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12376 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12377 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12378 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12379 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12380 (S_proc_getlogin_reply, S_proc_getsid_reply)
12381 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12382 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12383 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12384 (S_proc_getnports_reply, S_proc_is_important_reply)
12385 (S_proc_get_code_reply): New stub functions, generated with
12386 ILL_RPC macro.
12387
d47642c9
TS
12388 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12389 collected the type check structures.
12390
bae8023e
TS
12391 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12392
8a55ffb0
DE
123932014-02-14 Doug Evans <dje@google.com>
12394
12395 * target.c (target_write_partial): Fix result type.
12396
c2853f3d
JM
123972014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12398
12399 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12400 the proper offsets to access fpregset_t.
12401
ac61d2db
SA
124022014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12403
12404 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12405 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12406 * h8300-tdep.c (setmachinelist): Remove global.
12407 * hppa-tdep.c (hppa_sigtramp): Remove global.
12408 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12409 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12410 * ravenscar-thread.c (update_target_observer): Remove global.
12411 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12412
9d2d0b8b
TT
124132014-02-12 Tom Tromey <tromey@redhat.com>
12414
12415 * common/rsp-low.c: Update comments.
12416 * common/rsp-low.h: Update comments.
12417
a7191e8b
TT
124182014-02-12 Tom Tromey <tromey@redhat.com>
12419
12420 * common/rsp-low.c (convert_ascii_to_int): Remove.
12421 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12422
ff0e980e
TT
124232014-02-12 Tom Tromey <tromey@redhat.com>
12424
12425 * common/rsp-low.h (unhexify): Don't declare.
12426 * common/rsp-low.c (unhexify): Remove.
12427
e9371aff
TT
124282014-02-12 Tom Tromey <tromey@redhat.com>
12429
12430 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12431 * common/rsp-low.c (convert_int_to_ascii): Remove.
12432
971dc0b8
TT
124332014-02-12 Tom Tromey <tromey@redhat.com>
12434
12435 * common/rsp-low.h (hexify): Don't declare.
12436 * common/rsp-low.c (hexify): Remove.
12437
0a822afb
TT
124382014-02-12 Tom Tromey <tromey@redhat.com>
12439
12440 * common/rsp-low.c (hexify): Never take strlen of argument.
12441
9f1b45b0
TT
124422014-02-12 Tom Tromey <tromey@redhat.com>
12443
12444 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12445 * remote.c (extended_remote_run, remote_rcmd)
12446 (remote_download_trace_state_variable, remote_save_trace_data)
12447 (remote_set_trace_notes): Update.
12448 * tracepoint.c (encode_source_string, tfile_write_status)
12449 (tfile_write_uploaded_tsv): Update.
12450
9c3d6531
TT
124512014-02-12 Tom Tromey <tromey@redhat.com>
12452
12453 * tracepoint.c: Include rsp-low.h.
12454 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12455 * remote.c: Include rsp-low.h.
12456 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12457 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12458 (remote_unescape_input): Move to common/rsp-low.c.
12459 * common/rsp-low.h: New file.
12460 * common/rsp-low.c: New file.
12461 * Makefile.in (SFILES): Add common/rsp-low.c.
12462 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12463 (COMMON_OBS): Add rsp-low.o.
12464 (rsp-low.o): New target.
12465
01fd3ea5
TT
124662014-02-12 Tom Tromey <tromey@redhat.com>
12467
12468 * utils.h: Include print-utils.h.
12469 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12470 (int_string, core_addr_to_string, core_addr_to_string_nz)
12471 (hex_string, hex_string_custom): Don't declare.
12472 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12473 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12474 (hex_string_custom, int_string, core_addr_to_string)
12475 (core_addr_to_string_nz, host_address_to_string): Move to
12476 common/print-utils.c.
12477 * common/print-utils.h: New file.
12478 * common/print-utils.c: New file
12479 * Makefile.in (SFILES): Add common/print-utils.c.
12480 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12481 (COMMON_OBS): Add print-utils.o.
12482 (print-utils.o): New target.
12483
9fb50108
TT
124842014-02-12 Tom Tromey <tromey@redhat.com>
12485
12486 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12487
0548b5db
MK
124882014-02-12 Mark Kettenis <kettenis@gnu.org>
12489
12490 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12491
493443a4
MK
124922014-02-12 Mark Kettenis <kettenis@gnu.org>
12493
12494 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12495 if a PT_IO ptrace request returns sucessfully but indicates that 0
12496 bytes were transferred.
12497
706d0883
PA
124982014-02-12 Pedro Alves <palves@redhat.com>
12499 Kevin Buettner <kevinb@redhat.com>
12500
12501 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12502 TYPE_INSTANCE_FLAG_CODE_SPACE.
12503
5caa2f0b
PA
125042014-02-12 Pedro Alves <palves@redhat.com>
12505
12506 * h8300-tdep.c (pseudo_from_raw_register)
12507 (raw_from_pseudo_register): New functions.
12508 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12509 them.
12510
76fd5f74
PA
125112014-02-12 Pedro Alves <palves@redhat.com>
12512
12513 * h8300-tdep.c (h8300_register_sim_regno): New function.
12514 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12515 gdbarch_register_sim_regno hook.
12516
8f008406
SA
125172014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12518
12519 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12520
195abc10
SA
125212014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12522
12523 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12524
93ffa5b9
MK
125252014-02-12 Mark Kettenis <kettenis@gnu.org>
12526
12527 * obsd-tdep.h (obsd_init_abi): New prototype.
12528 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12529 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12530 (obsd_init_abi): New functions.
12531 * i386obsd-tdep.c: Include "obsd-tdep.h".
12532 (i386obsd_init_abi): Call obsd_init_abi.
12533 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12534 (amd64obsd_init_abi): Call obsd_init_abi.
12535 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12536 obsd-tdep.c to gdb_target_obs.
12537
49caec94
JM
125382014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12539
12540 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12541 double float arguments to 16-byte in the argument slots.
12542
e1402065
DE
125432014-02-11 Doug Evans <xdje42@gmail.com>
12544
12545 * configure.ac: Don't crash if pkg-config is not found and guile
12546 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12547 in guile checks.
12548 * configure: Regenerate.
12549
edcc890f
YQ
125502014-02-11 Yao Qi <yao@codesourcery.com>
12551
12552 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12553 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12554 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12555 * gnu-nat.c (gnu_xfer_memory): Likewise.
12556 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12557 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12558 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12559 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12560
9b409511
YQ
125612014-02-11 Yao Qi <yao@codesourcery.com>
12562
12563 * target.h (enum target_xfer_error): Rename to ...
12564 (enum target_xfer_status): ... it. New. All users updated.
12565 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12566 New.
12567 (TARGET_XFER_STATUS_ERROR_P): New macro.
12568 (target_xfer_error_to_string): Remove declaration.
12569 (target_xfer_status_to_string): Declare.
12570 (target_xfer_partial_ftype): Adjust it.
12571 (struct target_ops) <to_xfer_partial>: Return
12572 target_xfer_status. Add argument xfered_len. Update
12573 comments.
12574 * target.c (target_xfer_error_to_string): Rename to ...
12575 (target_xfer_status_to_string): ... it. New. All callers
12576 updated.
12577 (target_read_live_memory): Likewise. Call target_xfer_partial
12578 instead of target_read.
12579 (memory_xfer_live_readonly_partial): Return
12580 target_xfer_status. Add argument xfered_len.
12581 (raw_memory_xfer_partial): Likewise.
12582 (memory_xfer_partial_1): Likewise.
12583 (memory_xfer_partial): Likewise.
12584 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12585 properly. Update debug message.
12586 (default_xfer_partial, current_xfer_partial): Likewise.
12587 (target_write_partial): Likewise.
12588 (target_read_partial): Likewise. All callers updated.
12589 (read_whatever_is_readable): Likewise.
12590 (target_write_with_progress): Likewise.
12591 (target_read_alloc_1): Likewise.
12592
12593 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12594 * auxv.c (procfs_xfer_auxv): Likewise.
12595 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12596 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12597 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12598 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12599 * corefile.c (read_memory): Adjust.
12600 * corelow.c (core_xfer_partial): Likewise.
12601 * ctf.c (ctf_xfer_partial): Likewise.
12602 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12603 updated.
12604 (darwin_xfer_partial): Likewise.
12605 * exec.c (section_table_xfer_memory_partial): Likewise. All
12606 callers updated.
12607 (exec_xfer_partial): Likewise.
12608 * exec.h (section_table_xfer_memory_partial): Update
12609 declaration.
12610 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12611 negative.
12612 (gnu_xfer_partial): Likewise.
12613 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12614 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12615 (ia64_hpux_xfer_solib_got): Likewise.
12616 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12617 type of 'partial_len' to ULONGEST.
12618 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12619 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12620 (linux_nat_xfer_partial): Likewise.
12621 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12622 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12623 * monitor.c (monitor_xfer_memory): Likewise.
12624 (monitor_xfer_partial): Likewise.
12625 * procfs.c (procfs_xfer_partial): Likewise.
12626 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12627 * record-full.c (record_full_xfer_partial): Likewise.
12628 (record_full_core_xfer_partial): Likewise.
12629 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12630 (gdbsim_xfer_partial): Likewise.
12631 * remote.c (remote_write_bytes_aux): Likewise. All callers
12632 updated.
12633 (remote_write_bytes, remote_read_bytes): Likewise. All
12634 callers updated.
12635 (remote_flash_erase): Likewise. All callers updated.
12636 (remote_write_qxfer): Likewise. All callers updated.
12637 (remote_read_qxfer): Likewise. All callers updated.
12638 (remote_xfer_partial): Likewise.
12639 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12640 (rs6000_xfer_shared_libraries): Likewise.
12641 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12642 (sol_thread_xfer_partial): Likewise.
12643 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12644 (sparc_xfer_partial): Likewise.
12645 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12646 updated.
12647 (spu_xfer_partial): Likewise.
12648 * spu-multiarch.c (spu_xfer_partial): Likewise.
12649 * tracepoint.c (tfile_xfer_partial): Likewise.
12650 * windows-nat.c (windows_xfer_memory): Likewise.
12651 (windows_xfer_shared_libraries): Likewise.
12652 (windows_xfer_partial): Likewise.
12653 * valprint.c: Replace 'target_xfer_error' with
12654 'target_xfer_status' in comments.
12655
a8e63083
JB
126562014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12657
12658 Checked in by Joel Brobecker <brobecker@adacore.com>.
12659 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12660
e86b67d3
JB
126612014-02-11 Joel Brobecker <brobecker@adacore.com>
12662
12663 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12664 function parameters.
12665
4b7d1f7f
WN
126662014-02-10 Will Newton <will.newton@linaro.org>
12667
12668 * elfread.c (elf_rel_plt_read): Look for a .got section if
12669 looking up .got.plt fails.
12670 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12671 on address passed to elf_gnu_ifunc_record_cache.
12672 (elf_gnu_ifunc_resolve_addr): Likewise.
12673 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12674
961842b2
JM
126752014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12676
12677 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12678 (X_RETTURN): New macro.
12679 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12680
12681 * sparc64-tdep.c (sparc64_init_abi): Hook
12682 sparc_in_function_epilogue_p.
12683
3f03e7b1
GB
126842014-02-10 Gary Benson <gbenson@redhat.com>
12685
12686 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12687 Rename name_matcher to symbol_matcher.
12688
96f861ef
GB
126892014-02-10 Gary Benson <gbenson@redhat.com>
12690
12691 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12692 Use expand_symtabs_file_matcher_ftype and
12693 expand_symtabs_symbol_matcher_ftype.
12694
ee01b665
JB
126952014-02-10 Joel Brobecker <brobecker@adacore.com>
12696
12697 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12698 (struct ada_symbol_cache): New.
12699 (ada_free_symbol_cache): Forward declare.
12700 (struct ada_pspace_data): New.
12701 (ada_pspace_data_handle): New static global.
12702 (get_ada_pspace_data, ada_pspace_data_cleanup)
12703 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12704 (cache_space, cache): Delete, now folded inside struct
12705 ada_pspace_data.
12706 (ada_get_symbol_cache): New function.
12707 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12708 implementation.
12709 (_initialize_ada_language): Remove initialization of cache_space.
12710 Move call to observer_attach_inferior_exit up, grouping it
12711 with the other observer registrations inside this function.
12712 Rename command to be more general. Add call to
12713 register_program_space_data_with_cleanup.
12714
143adbbf
JB
127152014-02-10 Joel Brobecker <brobecker@adacore.com>
12716
12717 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12718 ada_new_objfile_observer.
12719 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12720 (_initialize_tasks): Update uses of ada_new_objfile_observer
12721 and ada_tasks_normal_stop_observer.
12722
aa4fb036
JB
127232014-02-10 Joel Brobecker <brobecker@adacore.com>
12724
12725 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12726 returned by the 'Length attribute to integer.
12727
9dee8cc6
JB
127282014-02-10 Joel Brobecker <brobecker@adacore.com>
12729
12730 * ada-lang.c (_initialize_ada_language): Initialize
12731 cache_space obstack.
12732
3d9434b5
JB
127332014-02-10 Joel Brobecker <brobecker@adacore.com>
12734
12735 * ada-lang.c (HASH_SIZE): New macro.
12736 (struct cache_entry): New type.
12737 (cache_space, cache): New static globals.
12738 (ada_clear_symbol_cache, find_entry): New functions.
12739 (lookup_cached_symbol, cache_symbol): Implement.
12740 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12741 (_initialize_ada_language): Attach ada_new_objfile_observer
12742 and ada_free_objfile_observer.
12743
f0c5f9b2
JB
127442014-02-10 Joel Brobecker <brobecker@adacore.com>
12745
12746 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12747 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12748 struct block * parameter.
12749 (ada_lookup_symbol_list_worker): Constify local variable "block".
12750 Remove cast which is no longer necessary.
12751
ed3ef339
DE
127522014-02-10 Doug Evans <xdje42@gmail.com>
12753
12754 Add Guile as an extension language.
12755 * NEWS: Mention Guile scripting.
12756 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12757 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12758 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12759 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12760 (CLIBS): Add GUILE_LIBS.
12761 (install-guile): New rule.
12762 (guile.o): New rule.
12763 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12764 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12765 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12766 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12767 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12768 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12769 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12770 * configure.ac: New option --with-guile.
12771 * configure: Regenerate.
12772 * config.in: Regenerate.
12773 * auto-load.c: Remove #include "python/python.h". Add #include
12774 "gdb/section-scripts.h".
12775 (source_section_scripts): Handle Guile scripts.
12776 (_initialize_auto_load): Add name of Guile objfile script to
12777 scripts-directory help text.
12778 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12779 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12780 (struct breakpoint): New member scm_bp_object.
12781 * defs.h (enum command_control_type): New value guile_control.
12782 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12783 "extension.h".
12784 (show_user): Update comment.
12785 (_initialize_cli_cmds): Update help text for "show user". Update help
12786 text for max-user-call-depth.
12787 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12788 "extension.h".
12789 (multi_line_command_p): Add guile_control.
12790 (print_command_lines): Handle guile_control.
12791 (execute_control_command, recurse_read_control_structure): Ditto.
12792 (process_next_line): Recognize "guile" commands.
12793 * disasm.c (gdb_disassemble_info): Make non-static.
12794 * disasm.h: #include "dis-asm.h".
12795 (struct gdbarch): Add forward decl.
12796 (gdb_disassemble_info): Declare.
12797 * extension.c: #include "guile/guile.h".
12798 (extension_languages): Add guile.
12799 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12800 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12801 * gdbtypes.c (get_unsigned_type_max): New function.
12802 (get_signed_type_minmax): New function.
12803 * gdbtypes.h (get_unsigned_type_max): Declare.
12804 (get_signed_type_minmax): Declare.
12805 * guile/README: New file.
12806 * guile/guile-internal.h: New file.
12807 * guile/guile.c: New file.
12808 * guile/guile.h: New file.
12809 * guile/scm-arch.c: New file.
12810 * guile/scm-auto-load.c: New file.
12811 * guile/scm-block.c: New file.
12812 * guile/scm-breakpoint.c: New file.
12813 * guile/scm-disasm.c: New file.
12814 * guile/scm-exception.c: New file.
12815 * guile/scm-frame.c: New file.
12816 * guile/scm-gsmob.c: New file.
12817 * guile/scm-iterator.c: New file.
12818 * guile/scm-lazy-string.c: New file.
12819 * guile/scm-math.c: New file.
12820 * guile/scm-objfile.c: New file.
12821 * guile/scm-ports.c: New file.
12822 * guile/scm-pretty-print.c: New file.
12823 * guile/scm-safe-call.c: New file.
12824 * guile/scm-string.c: New file.
12825 * guile/scm-symbol.c: New file.
12826 * guile/scm-symtab.c: New file.
12827 * guile/scm-type.c: New file.
12828 * guile/scm-utils.c: New file.
12829 * guile/scm-value.c: New file.
12830 * guile/lib/gdb.scm: New file.
12831 * guile/lib/gdb/boot.scm: New file.
12832 * guile/lib/gdb/experimental.scm: New file.
12833 * guile/lib/gdb/init.scm: New file.
12834 * guile/lib/gdb/iterator.scm: New file.
12835 * guile/lib/gdb/printing.scm: New file.
12836 * guile/lib/gdb/types.scm: New file.
12837 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12838 (VPATH): Add $(GUILE_SRCDIR).
12839 (GUILE_DIR): New variable.
12840 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12841 (all): Add stamp-guile dependency.
12842 (stamp-guile): New rule.
12843 (clean-guile, install-guile, uninstall-guile): New rules.
12844 (install-only): Add install-guile dependency.
12845 (uninstall): Add uninstall-guile dependency.
12846 (clean): Add clean-guile dependency.
12847
ac020ec5
DE
128482014-02-09 Doug Evans <xdje42@gmail.com>
12849
12850 Revert this patch (which I approved, mea culpa).
12851
12852 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12853
12854 * Makefile.in (all-lib): Remove.
12855 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12856
2a081c59
JK
128572014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12858
12859 Fix Python stack corruption.
12860 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12861 gdb_py_longest.
12862
0a6bd22d
MK
128632014-02-08 Mark Kettenis <kettenis@gnu.org>
12864
12865 * Makefile.in (all-lib): Remove.
12866 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12867
1a860409
DE
128682014-02-07 Doug Evans <dje@google.com>
12869
12870 * extension-priv.h (extension_language_script_ops): Add comment.
12871 (extension_language_ops): Add comment.
caf5a491 12872 (active_ext_lang_state): Fix typo in comment.
1a860409 12873
d137e6dc
PA
128742014-02-07 Pedro Alves <palves@redhat.com>
12875
0dcb32c3 12876 PR breakpoints/16292
d137e6dc
PA
12877 * infrun.c (handle_signal_stop) <signal arrives while stepping
12878 over a breakpoint>: Switch back to the stepping thread.
12879
ce6d0892
YQ
128802014-02-07 Yao Qi <yao@codesourcery.com>
12881
12882 * target.c (target_xfer_partial): Return zero if LEN is zero.
12883
2ed4b548
YQ
128842014-02-07 Yao Qi <yao@codesourcery.com>
12885
12886 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12887 (ld_so_xfer_auxv): Likewise.
12888 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12889 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12890 * corelow.c (core_xfer_partial): Likewise.
12891 * ctf.c (ctf_xfer_partial): Likewise.
12892 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12893 (darwin_xfer_partial): Likewise.
12894 * exec.c (exec_xfer_partial): Likewise.
12895 * gnu-nat.c (gnu_xfer_partial): Likewise.
12896 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12897 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12898 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12899 * linux-nat.c (linux_xfer_siginfo): Likewise.
12900 (linux_proc_xfer_spu): Likewise.
12901 * procfs.c (procfs_xfer_partial): Likewise.
12902 * record-full.c (record_full_xfer_partial): Likewise.
12903 (record_full_core_xfer_partial): Likewise.
12904 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12905 * remote.c (remote_write_qxfer): Likewise.
12906 (remote_write_qxfer, remote_read_qxfer): Likewise.
12907 (remote_xfer_partial): Likewise.
12908 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12909 (rs6000_xfer_shared_libraries): Likewise.
12910 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12911 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12912 (spu_xfer_partial): Likewise.
12913 * target.c (memory_xfer_partial_1): Likewise.
12914 * tracepoint.c (tfile_xfer_partial): Likewise.
12915 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12916 (windows_xfer_partial): Likewise.
12917
c09f20e4
YQ
129182014-02-07 Yao Qi <yao@codesourcery.com>
12919
12920 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12921 comments.
12922 (core_xfer_shared_libraries_aix): Likewise.
12923 * gdbarch.c, gdbarch.h: Regenerated.
12924 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12925 ULONGEST. Change 'len_avail' type to ULONGEST.
12926 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12927 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12928 declaration.
12929 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12930
8635b3bf
YQ
129312014-02-07 Yao Qi <yao@codesourcery.com>
12932
12933 * corefile.c (memory_error): Get 'exception' from ERR and pass
12934 'exception' to throw_error.
12935
6dddc817
DE
129362014-02-06 Doug Evans <xdje42@gmail.com>
12937
12938 * configure.ac (libpython checking): Remove all but python.o from
12939 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12940 * configure: Regenerate.
12941
12942 * Makefile.in (SFILES): Add extension.c.
12943 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12944 (COMMON_OBS): Add extension.o.
12945 * extension.h: New file.
12946 * extension-priv.h: New file.
12947 * extension.c: New file.
12948
12949 * python/python-internal.h: #include "extension.h".
12950 (gdbpy_auto_load_enabled): Declare.
12951 (gdbpy_apply_val_pretty_printer): Declare.
12952 (gdbpy_apply_frame_filter): Declare.
12953 (gdbpy_preserve_values): Declare.
12954 (gdbpy_breakpoint_cond_says_stop): Declare.
12955 (gdbpy_breakpoint_has_cond): Declare.
12956 (void source_python_script_for_objfile): Delete.
12957 * python/python.c: #include "extension-priv.h".
12958 Delete inclusion of "observer.h".
12959 (extension_language_python): Moved here and renamed from
12960 script_language_python in py-auto-load.c.
12961 Redefined to be of type extension_language_defn.
12962 (python_extension_script_ops): New global.
12963 (python_extension_ops): New global.
12964 (struct python_env): New member previous_active.
12965 (restore_python_env): Call restore_active_ext_lang.
12966 (ensure_python_env): Call set_active_ext_lang.
12967 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12968 New arg extlang.
12969 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12970 New arg extlang.
12971 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12972 New arg extlang.
12973 (gdbpy_eval_from_control_command): Renamed from
12974 eval_python_from_control_command, made static. New arg extlang.
12975 (gdbpy_source_script) Renamed from source_python_script, made static.
12976 New arg extlang.
12977 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12978 result to int. New arg extlang.
12979 (gdbpy_source_objfile_script): Renamed from
12980 source_python_script_for_objfile, made static. New arg extlang.
12981 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12982 static. New args extlang, extlang_printers. Change result type to
12983 "void".
12984 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12985 static. New arg extlang. Rename arg printers to extlang_printers
12986 and change type to ext_lang_type_printers *.
12987 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12988 static. Replace argument arg with extlang, extlang_printers.
12989 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12990 (!HAVE_PYTHON, source_python_script): Delete.
12991 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12992 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12993 (!HAVE_PYTHON, start_type_printers): Delete.
12994 (!HAVE_PYTHON, apply_type_printers): Delete.
12995 (!HAVE_PYTHON, free_type_printers): Delete.
12996 (_initialize_python): Delete call to observer_attach_before_prompt.
12997 (finalize_python): Set/restore active extension language.
12998 (gdbpy_finish_initialization) Renamed from
12999 finish_python_initialization, made static. New arg extlang.
13000 (gdbpy_initialized): New function.
13001 * python/python.h: #include "extension.h". Delete #include
13002 "value.h", "mi/mi-cmds.h".
13003 (extension_language_python): Declare.
13004 (GDBPY_AUTO_FILE_NAME): Delete.
13005 (enum py_bt_status): Moved to extension.h and renamed to
13006 ext_lang_bt_status.
13007 (enum frame_filter_flags): Moved to extension.h.
13008 (enum py_frame_args): Moved to extension.h and renamed to
13009 ext_lang_frame_args.
13010 (finish_python_initialization): Delete.
13011 (eval_python_from_control_command): Delete.
13012 (source_python_script): Delete.
13013 (apply_val_pretty_printer): Delete.
13014 (apply_frame_filter): Delete.
13015 (preserve_python_values): Delete.
13016 (gdbpy_script_language_defn): Delete.
13017 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13018 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13019
13020 * auto-load.c: #include "extension.h".
13021 (GDB_AUTO_FILE_NAME): Delete.
13022 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13023 (script_language_gdb): Delete, moved to extension.c and renamed to
13024 extension_language_gdb.
13025 (source_gdb_script_for_objfile): Delete.
13026 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13027 (loaded_script): Change type of language member to
13028 struct extension_language_defn *.
13029 (init_loaded_scripts_info): Initialize
13030 unsupported_script_warning_printed.
13031 (maybe_add_script): Make static. Change type of language arg to
13032 struct extension_language_defn *.
13033 (clear_section_scripts): Reset unsupported_script_warning_printed.
13034 (auto_load_objfile_script_1): Rewrite to use extension language API.
13035 (auto_load_objfile_script): Make public. Remove support-compiled-in
13036 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13037 (source_section_scripts): Rewrite to use extension language API.
13038 (load_auto_scripts_for_objfile): Rewrite to use
13039 auto_load_scripts_for_objfile.
13040 (collect_matching_scripts_data): Change type of language member to
13041 struct extension_language_defn *.
13042 (auto_load_info_scripts): Change type of language arg to
13043 struct extension_language_defn *.
13044 (unsupported_script_warning_print): New function.
13045 (script_not_found_warning_print): Make static.
13046 (_initialize_auto_load): Rewrite construction of scripts-directory
13047 help.
13048 * auto-load.h (struct objfile): Add forward decl.
13049 (struct script_language): Delete.
13050 (struct auto_load_pspace_info): Add forward decl.
13051 (struct extension_language_defn): Add forward decl.
13052 (maybe_add_script): Delete.
13053 (auto_load_objfile_script): Declare.
13054 (script_not_found_warning_print): Delete.
13055 (auto_load_info_scripts): Update prototype.
13056 (auto_load_gdb_scripts_enabled): Declare.
13057 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13058 auto_load_python_scripts_enabled and made public.
13059 (script_language_python): Delete, moved to python.c.
13060 (gdbpy_script_language_defn): Delete.
13061 (info_auto_load_python_scripts): Update to use
13062 extension_language_python.
13063
13064 * breakpoint.c (condition_command): Replace call to
13065 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13066 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13067 with call to breakpoint_ext_lang_cond_says_stop.
13068 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13069 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13070 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13071 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13072 New arg slang.
13073 (local_setattro): Print name of extension language with existing
13074 stop condition.
13075
13076 * valprint.c (val_print, value_print): Update to call
13077 apply_ext_lang_val_pretty_printer.
13078 * cp-valprint.c (cp_print_value): Update call to
13079 apply_ext_lang_val_pretty_printer.
13080 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13081 (gdbpy_apply_val_pretty_printer): Renamed from
13082 apply_val_pretty_printer. New arg extlang.
13083 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13084
13085 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13086 extension language API.
13087 * cli/cli-script.c (execute_control_command): Update to call
13088 eval_ext_lang_from_control_command.
13089
13090 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13091 enum ext_lang_bt_status values. Update call to
13092 apply_ext_lang_frame_filter.
13093 (mi_cmd_stack_list_locals): Ditto.
13094 (mi_cmd_stack_list_args): Ditto.
13095 (mi_cmd_stack_list_variables): Ditto.
13096 * mi/mi-main.c: Delete #include "python/python-internal.h".
13097 Add #include "extension.h".
13098 (mi_cmd_list_features): Replace reference to python internal variable
13099 gdb_python_initialized with call to ext_lang_initialized_p.
13100
13101 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13102 Update to use enum ext_lang_frame_args. Update to call
13103 apply_ext_lang_frame_filter.
13104 * python/py-framefilter.c (extract_sym): Update to use enum
13105 ext_lang_bt_status.
13106 (extract_value, py_print_type, py_print_value): Ditto.
13107 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13108 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13109 (py_print_frame): Ditto.
13110 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13111 New arg extlang. Update to use enum ext_lang_bt_status.
13112
13113 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13114 finish_python_initialization. Replace with call to
13115 finish_ext_lang_initialization.
13116
13117 * typeprint.c (do_free_global_table): Update to call
13118 free_ext_lang_type_printers.
13119 (create_global_typedef_table): Update to call
13120 start_ext_lang_type_printers.
13121 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13122 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13123 (type_print_options): Change type of global_printers from "void *"
13124 to "struct ext_lang_type_printers *".
13125
13126 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13127 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13128 (gdbpy_preserve_values): Renamed from preserve_python_values.
13129 New arg extlang.
13130 (!HAVE_PYTHON, preserve_python_values): Delete.
13131
13132 * utils.c (quit_flag): Delete, moved to extension.c.
13133 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13134 extension.c.
13135
13136 * eval.c: Delete #include "python/python.h".
13137 * main.c: Delete #include "python/python.h".
13138
13139 * defs.h: Update comment.
13140
6af79985
JB
131412014-02-06 Joel Brobecker <brobecker@adacore.com>
13142
13143 GDB 7.7 released.
13144
12c5175d
MK
131452014-02-05 Mark Kettenis <kettenis@gnu.org>
13146
13147 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13148 defined.
13149
8dc5b319
YQ
131502014-02-05 Yao Qi <yao@codesourcery.com>
13151
13152 * remote.c (remote_pass_signals): Remove local 'buf' and use
13153 rs->buf.
13154 (remote_program_signals): Likewise.
13155
de7b2893
YQ
131562014-02-05 Yao Qi <yao@codesourcery.com>
13157
13158 * ctf.c: Include "inferior.h" and "gdbthread.h".
13159 (CTF_PID): A new macro.
13160 (ctf_open): Call inferior_appeared and add_thread_silent.
13161 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13162 (ctf_thread_alive): New function.
13163 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13164
66d032ac
YQ
131652014-02-05 Yao Qi <yao@codesourcery.com>
13166
13167 Revert this patch:
13168
13169 2013-05-24 Yao Qi <yao@codesourcery.com>
13170
13171 * tracepoint.c (TFILE_PID): Remove.
13172 (tfile_open): Don't add thread and inferior.
13173 (tfile_close): Don't set 'inferior_ptid'. Don't call
13174 exit_inferior_silent.
13175 (tfile_thread_alive): Remove.
13176 (init_tfile_ops): Don't set field 'to_thread_alive' of
13177 tfile_ops.
13178
f4ccffad
CE
131792014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13180
13181 * remote.c (remote_start_remote): Call remote_check_symbols even
13182 if only symbol-file (not file) has been given.
13183
591a12a1
UW
131842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13185
13186 * gdbarch.sh (skip_entrypoint): New callback.
13187 * gdbarch.c, gdbarch.h: Regenerate.
13188 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13189 * infrun.c (fill_in_stop_func): Likewise.
13190 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13191 (ppc_elfv2_elf_make_msymbol_special): New function.
13192 (ppc_elfv2_skip_entrypoint): Likewise.
13193 (ppc_linux_init_abi): Install them for ELFv2.
13194
cc0e89c5
UW
131952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13196
13197 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13198 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13199 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13200 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13201 structures returned in GPRs.
13202
52f548e4
UW
132032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13204
13205 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13206 offset to the stack parameter list for the ELFv2 ABI.
13207
d4094b6a
UW
132082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13209
13210 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13211 set_gdbarch_convert_from_func_ptr_addr and
13212 set_gdbarch_elf_make_msymbol_special for ELFv1.
13213 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13214 function descriptors on ELFv1.
13215 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13216 set up r12 at function entry.
13217
cd453cd0
UW
132182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13219
13220 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13221 (struct gdbarch_tdep): New member elf_abi.
13222
13223 * rs6000-tdep.c: Include "elf/ppc64.h".
13224 (rs6000_gdbarch_init): Detect ELF ABI version.
13225
0ff3e01f
UW
132262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13227
13228 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13229 within a register pair holding a DFP 128-bit value on little-endian.
13230 (ppc64_sysv_abi_return_value_base): Likewise.
13231 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13232 (dfp_pseudo_register_write): Likewise.
13233
5b757e5d
UW
132342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13235
13236 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13237 offset on little-endian when passing _Decimal32.
13238 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13239
084ee545
UW
132402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13241
13242 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13243 of the overlapped FP register within the VSX register on little-
13244 endian platforms.
13245 (efpr_pseudo_register_write): Likewise.
13246
d63167af
UW
132472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13248
13249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13250 offset on little-endian when passing small structures.
13251
e765b44c
UW
132522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13253
13254 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13255 (struct ppc64_sysv_argpos): New data structure.
13256 (ppc64_sysv_abi_push_float): Remove.
13257 (ppc64_sysv_abi_push_val): New function.
13258 (ppc64_sysv_abi_push_integer): Likewise.
13259 (ppc64_sysv_abi_push_freg): Likewise.
13260 (ppc64_sysv_abi_push_vreg): Likewise.
13261 (ppc64_sysv_abi_push_param): Likewise.
13262 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13263 (ppc64_sysv_abi_return_value_base): New function.
13264 (ppc64_sysv_abi_return_value): Refactor to use it.
13265
36c24d95
UW
132662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13267
13268 * NEWS: Document new target powerpc64le-*-linux*.
13269
26fd9228
MK
132702014-02-04 Mark Kettenis <kettenis@gnu.org>
13271
13272 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13273 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13274 core dumps.
13275 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13276 register set used in ELF core dumps. Add floating-point register set.
13277
c5bb7362
KB
132782014-02-03 Kevin Buettner <kevinb@redhat.com>
13279
74228e77 13280 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13281 dwarf2_to_gdb[] table using symbolic constants. Adjust
13282 penultimate entry from number representing the PC register
13283 to symbolic constant representing the MDR register. Add
13284 constant for the PC register to the end of the table.
13285
af09351e
MK
132862014-02-03 Mark Kettenis <kettenis@gnu.org>
13287
13288 * bsd-kvm.c: Include <sys/param.h>
13289
8507e05d
MK
132902014-02-03 Mark Kettenis <kettenis@gnu.org>
13291
13292 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13293
ae56bfb8
JB
132942014-01-31 Joel Brobecker <brobecker@adacore.com>
13295
13296 * ada-lang.h (clear_ada_sym_cache): Delete.
13297
718ee4dc
UW
132982014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13299
13300 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13301
401e27fd
JM
133022014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13303
13304 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13305 the sigreturn register save area only if the syscall is
13306 sigreturn.
13307
a7c88acd
JB
133082014-01-29 Joel Brobecker <brobecker@adacore.com>
13309
13310 * valops.c (value_slice): Minor reformatting.
13311
fa0079ea
UW
133122014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13313
13314 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13315
c6044dd1
JB
133162014-01-28 Joel Brobecker <brobecker@adacore.com>
13317
13318 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13319 New static globals.
13320 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13321 (ada_ignore_descriptive_types_p): New static global.
13322 (find_parallel_type_by_descriptive_type): Return immediately
13323 if ada_ignore_descriptive_types_p is set.
13324 (_initialize_ada_language): Register new commands "maintenance
13325 set ada", "maintenance show ada", "maintenance set ada
13326 ignore-descriptive-types" and "maintenance show ada
13327 ignore-descriptive-types".
13328 * NEWS: Add entry for new "maint ada set/show
13329 ignore-descriptive-types" commands.
13330
568e808b
MM
133312014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13332
13333 * record-btrace.c (record_btrace_close): Call btrace_teardown
13334 for all threads.
13335
467d141b
JB
133362014-01-27 Joel Brobecker <brobecker@adacore.com>
13337
13338 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13339 "ui-out.h".
13340
fb151210
JB
133412014-01-27 Joel Brobecker <brobecker@adacore.com>
13342
13343 * ada-typeprint (type_is_full_subrange_of_target_type):
13344 New function.
13345 (print_range): Add parameter bounds_prefered_p. If not set,
13346 try printing range types using the name of their base type.
13347 (print_range_type): Add parameter bounds_prefered_p.
13348 Use it in call to print_range.
13349 (print_array_type, ada_print_type): Update calls to print_range
13350 and print_range_type.
13351
aba02109
JB
133522014-01-27 Joel Brobecker <brobecker@adacore.com>
13353
13354 * ada-typeprint.c (print_array_type, print_choices, print_range)
13355 (print_range_bound, print_dynamic_range_bound, print_range_type):
13356 Remove declaration.
13357
e62e21fd
JB
133582014-01-27 Joel Brobecker <brobecker@adacore.com>
13359
13360 * ada-typeprint.c (print_range): Add missing empty line
13361 after local declaration.
13362
859cf5d1
JB
133632014-01-27 Joel Brobecker <brobecker@adacore.com>
13364
13365 * ada-valprint.c (print_optional_low_bound): Get index_type's
13366 target type for as long as it is a TYPE_CODE_RANGE.
13367
25790f6f
JB
133682014-01-27 Joel Brobecker <brobecker@adacore.com>
13369
13370 * procfs.c (procfs_make_note_section): Remove assertion and
13371 associated comment.
13372
6b6aa828
YQ
133732014-01-24 Yao Qi <yao@codesourcery.com>
13374
13375 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13376 * corelow.c (get_core_siginfo): Likewise.
13377
5d6df423
YQ
133782014-01-24 Yao Qi <yao@codesourcery.com>
13379
13380 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13381 ULONGEST. Don't check 'len' is negative.
13382 (remote_write_bytes): Change type of 'len' to ULONGEST.
13383
83b645b8
TT
133842014-01-23 Tom Tromey <tromey@redhat.com>
13385
13386 PR python/16485:
13387 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13388 Handle exception from frame.block.
13389 (FrameVars.fetch_frame_locals): Likewise.
13390
0740f8d8
TT
133912014-01-23 Tom Tromey <tromey@redhat.com>
13392
13393 PR python/16487:
13394 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13395 on a NULL pointer. Move "goto error" to correct place.
13396
21909fa1
TT
133972014-01-23 Tom Tromey <tromey@redhat.com>
13398
13399 PR python/16491:
13400 * python/py-framefilter.c (apply_frame_filter): Call
13401 ensure_python_env after computing gdbarch.
13402
17fde6d0
YQ
134032014-01-23 Yao Qi <yao@codesourcery.com>
13404
13405 * target.c (raw_memory_xfer_partial): Change argument type
13406 from void * to gdb_byte *.
13407 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13408
87ce2a04
DE
134092014-01-22 Doug Evans <dje@google.com>
13410
13411 New gdbserver option --debug-format=timestamp.
13412 * NEWS: Mention it.
13413
237b092b
AA
134142014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13415
13416 * syscalls/s390x-linux.xml: New file.
13417 * syscalls/s390-linux.xml: New file.
13418 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13419 (XML_SYSCALL_FILENAME_S390X): Likewise.
13420 (op_svc): New enum value for SVC opcode.
13421 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13422 (s390_linux_get_syscall_number): New function.
13423 (s390_gdbarch_init): Register '*get_syscall_number' and the
13424 syscall xml file name.
13425 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13426 "s390-linux.xml" and "s390x-linux.xml".
13427 * NEWS: Announce new feature.
13428
54bff650
BS
134292014-01-22 Baruch Siach <baruch@tkos.co.il>
13430
13431 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13432
14e361d7
PA
134332014-01-22 Pedro Alves <palves@redhat.com>
13434
13435 * xtensa-config.c: Include defs.h.
13436
46bbb3ed
JB
134372014-01-22 Joel Brobecker <brobecker@adacore.com>
13438
13439 * common/common-utils.h: Add "ARI:" comment beside __func__
13440 reference.
13441
3a80edfc
JB
134422014-01-22 Joel Brobecker <brobecker@adacore.com>
13443
13444 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13445 documentation a bit.
13446
4869db5e
RM
134472014-01-21 Roland McGrath <mcgrathr@google.com>
13448
13449 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13450 * configure: Regenerate.
13451 * aclocal.m4: Regenerate.
13452 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13453 New substituted variables.
13454 (install-strip): New target.
13455 (INSTALL_SCRIPT): New substituted variable.
13456 (FLAGS_TO_PASS): Add it.
13457 (install-only): Use $(INSTALL_SCRIPT) rather than
13458 $(INSTALL_PROGRAM) for gcore.
13459
9ea4267d
TT
134602014-01-20 Tom Tromey <tromey@redhat.com>
13461
13462 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13463 together.
13464
1f2bdf09
TT
134652014-01-20 Tom Tromey <tromey@redhat.com>
13466
13467 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13468 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13469 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13470 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13471 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13472 (struct cmd_list_element) <flags>: Remove.
13473 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13474 doc_allocated>: New fields.
13475 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13476 bitfields.
13477 * maint.c (maintenance_do_deprecate): Update.
13478 * top.c (execute_command): Update.
13479
e671835b
BS
134802014-01-20 Baruch Siach <baruch@tkos.co.il>
13481
13482 * xtensa-linux-nat.c: Include asm/ptrace.h.
13483
50367cd2
IB
134842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13485
13486 * Makefile.in (SFILES): Add d-support.c.
13487 (COMMON_OBS): Add d-support.o.
13488 * d-lang.h (d_parse_symbol): Add comment, now defined in
13489 d-support.c.
13490 * d-lang.c (parse_call_convention)
13491 (parse_attributes, parse_function_types)
13492 (parse_function_args, parse_type, parse_identifier)
13493 (call_convention_p, d_parse_symbol): Move functions to ...
13494 * d-support.c: ... New file.
13495
ec9f644a
IB
134962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13497
13498 * d-lang.h (d_parse_symbol): Add declaration.
13499 * d-lang.c (extract_identifiers)
13500 (extract_type_info): Remove functions.
13501 (parse_call_convention, parse_attributes)
13502 (parse_function_types, parse_function_args)
13503 (parse_type, parse_identifier, call_convention_p)
13504 (d_parse_symbol): New functions.
13505 (d_demangle): Use d_parse_symbol to demangle D symbols.
13506
94b1b47e
IB
135072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13508
13509 * d-lang.h (struct builtin_d_type): New data type.
13510 (builtin_d_type): Add declaration.
13511 * d-lang.c (d_language_arch_info, build_d_types)
13512 (builtin_d_type): New functions.
13513 (enum d_primitive_types): New data type.
13514 (d_language_defn): Change c_language_arch_info to
13515 d_language_arch_info.
13516 (d_type_data): New static variable.
13517 (_initialize_d_language): Initialize d_type_data.
13518
63778547
IB
135192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13520
13521 * d-lang.h (d_main_name): Add declaration.
13522 * d-lang.c (d_main_name): New function.
13523 * symtab.c (find_main_name): Add call to d_main_name.
13524
3271ba66
IB
135252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13526
13527 * d-lang.c (d_language_defn): Change macro_expansion_c to
13528 macro_expansion_no.
13529
d36b3012
IB
135302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13531
13532 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13533
c90a6fb7
SDJ
135342014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13535
13536 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13537 gdb_exception" declaration.
13538 * remote.c (getpkt_or_notif_sane): Likewise.
13539
749234e5
DE
135402014-01-17 Doug Evans <dje@google.com>
13541
13542 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13543 function, contents of dirnames_to_char_ptr_vec_append moved here.
13544 (delim_string_to_char_ptr_vec): New function.
13545 (dirnames_to_char_ptr_vec_append): Rewrite.
13546 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13547
df049a58
DE
135482014-01-17 Doug Evans <dje@google.com>
13549
13550 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13551 and moved here ...
13552 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13553 #include "common-utils.h".
13554 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13555 * common/vec.h (VEC_ASSERT_PASS): Update.
13556 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13557 (MACH_CHECK_ERROR): Update.
13558
69f97648
SM
135592014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13560
13561 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13562 comments.
13563 * gdbarch.h: Regenerate.
13564
98b1cfdc
TT
135652014-01-16 Tom Tromey <tromey@redhat.com>
13566
13567 * value.c (struct value) <regnum>: Move earlier.
13568
77a19445
TT
135692014-01-16 Tom Tromey <tromey@redhat.com>
13570
13571 * remote.c (extended_remote_create_inferior): Rename from
13572 extended_remote_create_inferior_1. Add "ops" argument. Remove
13573 old implementation.
13574
62261490
PA
135752014-01-16 Pedro Alves <palves@redhat.com>
13576
13577 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13578 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13579 the backchain.
13580
4d65956b
DE
135812014-01-16 Doug Evans <dje@google.com>
13582
13583 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13584
52834460
MM
135852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13586
13587 * btrace.h (btrace_thread_flag): New.
13588 (struct btrace_thread_info) <flags>: New.
13589 * record-btrace.c (record_btrace_resume_thread)
13590 (record_btrace_find_thread_to_move, btrace_step_no_history)
13591 (btrace_step_stopped, record_btrace_start_replaying)
13592 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13593 (record_btrace_find_resume_thread): New.
13594 (record_btrace_resume, record_btrace_wait): Extend.
13595 (record_btrace_can_execute_reverse): New.
13596 (record_btrace_open): Fail in non-stop mode.
13597 (record_btrace_set_replay): Split into this, ...
13598 (record_btrace_stop_replaying): ... this, ...
13599 (record_btrace_clear_histories): ... and this.
13600 (init_record_btrace_ops): Init to_can_execute_reverse.
13601 * NEWS: Announce it.
13602
118e6252
MM
136032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13604
13605 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13606 (forward_target_decr_pc_after_break)
13607 (target_decr_pc_after_break): New.
13608 * target.c (forward_target_decr_pc_after_break)
13609 (target_decr_pc_after_break): New.
13610 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13611 instead of gdbarch_decr_pc_after_break.
13612 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13613 instead of gdbarch_decr_pc_after_break.
13614 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13615 instead of gdbarch_decr_pc_after_break.
13616 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13617 instead of gdbarch_decr_pc_after_break.
13618 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13619 instead of gdbarch_decr_pc_after_break.
13620 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13621 instead of gdbarch_decr_pc_after_break.
13622
6e07b1d2
MM
136232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13624
13625 * btrace.c: Include regcache.h.
13626 (btrace_add_pc): New.
13627 (btrace_enable): Call btrace_add_pc.
13628 (btrace_is_empty): New.
13629 * btrace.h (btrace_is_empty): New.
13630 * record-btrace.c (require_btrace, record_btrace_info): Call
13631 btrace_is_empty.
13632
969c39fb
MM
136332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13634
13635 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13636 Support delta reads.
13637 (linux_disable_btrace): Change return type.
13638 * common/linux-btrace.h (linux_read_btrace): Change parameters
13639 and return type to allow error reporting. Update users.
13640 (linux_disable_btrace): Change return type. Update users.
13641 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13642 New.
13643 (btrace_error): New.
13644 (btrace_block) <begin>: Comment on BEGIN == 0.
13645 * btrace.c (btrace_compute_ftrace): Start from the end of
13646 the current trace.
13647 (btrace_stitch_trace, btrace_clear_history): New.
13648 (btrace_fetch): Read delta trace, return if replaying.
13649 (btrace_clear): Move clear history code to btrace_clear_history.
13650 (parse_xml_btrace): Throw an error if parsing failed.
13651 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13652 and return type to allow error reporting.
13653 (target_read_btrace): Change parameters and return type to allow
13654 error reporting.
13655 * target.c (target_read_btrace): Update.
13656 * remote.c (remote_read_btrace): Support delta reads. Pass
13657 errors on.
13658 * NEWS: Announce it.
13659
0b722aec
MM
136602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13661
13662 * record.h (record_btrace_frame_unwind)
13663 (record_btrace_tailcall_frame_unwind): New declarations.
13664 * dwarf2-frame: Include record.h
13665 (dwarf2_frame_cfa): Throw an error for btrace frames.
13666 * record-btrace.c: Include hashtab.h.
13667 (btrace_get_bfun_name): New.
13668 (btrace_call_history): Call btrace_get_bfun_name.
13669 (struct btrace_frame_cache): New.
13670 (bfcache): New.
13671 (bfcache_hash, bfcache_eq, bfcache_new): New.
13672 (btrace_get_frame_function): New.
13673 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13674 (record_btrace_frame_this_id): Compute own id.
13675 (record_btrace_frame_prev_register): Provide PC, throw_error
13676 for all other registers.
13677 (record_btrace_frame_sniffer): Detect btrace frames.
13678 (record_btrace_tailcall_frame_sniffer): New.
13679 (record_btrace_frame_dealloc_cache): New.
13680 (record_btrace_frame_unwind): Add new functions.
13681 (record_btrace_tailcall_frame_unwind): New.
13682 (_initialize_record_btrace): Allocate cache.
13683 * btrace.c (btrace_clear): Call reinit_frame_cache.
13684 * NEWS: Announce it.
13685
066ce621
MM
136862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13687
13688 * record-btrace.c (record_btrace_set_replay)
13689 (record_btrace_goto_begin, record_btrace_goto_end)
13690 (record_btrace_goto): New.
13691 (init_record_btrace_ops): Initialize them.
13692 * NEWS: Announce it.
13693
e2887aa3
MM
136942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13695
13696 * record-btrace.c (record_btrace_find_new_threads)
13697 (record_btrace_thread_alive): New.
13698 (init_record_btrace_ops): Initialize to_find_new_threads and
13699 to_thread_alive.
13700
b2f4cfde
MM
137012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13702
13703 * record-btrace.c (record_btrace_resume): New.
13704 (record_btrace_wait): New.
13705 (init_record_btrace_ops): Initialize to_wait and to_resume.
13706
633785ff
MM
137072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13708
13709 * record-btrace.c (record_btrace_xfer_partial)
13710 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13711 (record_btrace_allow_memory_access): New.
13712 (init_record_btrace_ops): Initialize new methods.
13713 * target.c (raw_memory_xfer_partial): Bail out if target reports
13714 that this memory is not available.
13715
3db08215
MM
137162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13717
13718 * target.h (target_ops) <to_insert_breakpoint>
13719 <to_remove_breakpoint>: Add target_ops parameter.
13720 (forward_target_insert_breakpoint): New.
13721 (forward_target_remove_breakpoint): New.
13722 (memory_remove_breakpoint, memory_insert_breakpoint):
13723 Add target_ops parameter.
13724 * target.c (target_insert_breakpoint): Split into this and ...
13725 (forward_target_insert_breakpoint): ... this.
13726 (target_remove_breakpoint): Split into this and ...
13727 (forward_target_remove_breakpoint): ... this.
13728 (debug_to_insert_breakpoint): Add target_ops parameter.
13729 Call forward_target_insert_breakpoint.
13730 (debug_to_remove_breakpoint): Add target_ops parameter.
13731 Call forward_target_remove_breakpoint.
13732 (update_current_target): Do not inherit or default to_insert_breakpoint
13733 and to_remove_breakpoint.
13734 * corelow.c (ignore): Add target_ops parameter.
13735 * exec.c (ignore): Add target_ops parameter.
13736 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13737 Add target_ops parameter.
13738 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13739 Add target_ops parameter.
13740 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13741 Add target_ops parameter.
13742 * record-full.c (record_full_beneath_to_insert_breakpoint)
13743 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13744 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13745 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13746 (record_full_core_remove_breakpoint): Add target_ops parameter.
13747 Update users.
13748 (record_full_beneath_to_insert_breakpoint_ops)
13749 (record_full_beneath_to_remove_breakpoint_ops)
13750 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13751 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13752 tmp_to_remove_breakpoint_ops,
13753 record_full_beneath_to_insert_breakpoint_ops, and
13754 record_full_beneath_to_remove_breakpoint_ops.
13755 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13756 (m32r_remove_breakpoint): Add target_ops parameter.
13757 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13758 Add target_ops parameter.
13759 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13760 Add target_ops parameter.
13761
cecac1ab
MM
137622014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13763 Markus Metzger <markus.t.metzger@intel.com>
13764
13765 * record-btrace.c: Include frame-unwind.h.
13766 (record_btrace_frame_unwind_stop_reason)
13767 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13768 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13769 New.
13770 (init_record_btrace_ops): Install it.
13771
824344ca
MM
137722014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13773
13774 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13775 get_prev_frame_1.
13776
32261e52
MM
137772014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13778
13779 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13780 earlier.
13781
ea001bdc
MM
137822014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13783
13784 * frame-unwind.c: Include target.h.
13785 (frame_unwind_try_unwinder): New function with code from ...
13786 (frame_unwind_find_by_frame): ... here. New variable
13787 unwinder_from_target, call also target_get_unwinder)
13788 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13789 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13790 * target.h (struct target_ops): New fields to_get_unwinder and
13791 to_get_tailcall_unwinder.
13792 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13793
1f3ef581
MM
137942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13795
13796 * record-btrace.c (record_btrace_fetch_registers)
13797 (record_btrace_store_registers)
13798 (record_btrace_to_prepare_to_store): New.
13799 (init_record_btrace_ops): Add the above.
13800
f32dbf8c
MM
138012014-01-16 Tom Tromey <tromey@redhat.com>
13802
13803 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13804 * target.h (struct target_ops) <to_prepare_to_store>: Add
13805 argument.
13806 (target_prepare_to_store): Add argument.
13807 * target.c (debug_to_prepare_to_store): Add argument.
13808 (update_current_target): Update.
13809 * remote.c (remote_prepare_to_store): Add 'self' argument.
13810 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13811 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13812 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13813 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13814 argument.
13815 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13816 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13817 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13818 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13819 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13820
07bbe694
MM
138212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13822
13823 * btrace.h (replay) <replay>: New.
13824 (btrace_is_replaying): New.
13825 * btrace.c (btrace_clear): Free replay iterator.
13826 (btrace_is_replaying): New.
13827 * record-btrace.c (record_btrace_is_replaying): New.
13828 (record_btrace_info): Print insn number if replaying.
13829 (record_btrace_insn_history): Start at replay position.
13830 (record_btrace_call_history): Start at replay position.
13831 (init_record_btrace_ops): Init to_record_is_replaying.
13832
0688d04e
MM
138332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13834
13835 * record-btrace.c (record_btrace_insn_history_range): Include
13836 end.
13837 (record_btrace_insn_history_from): Adjust range.
13838 (record_btrace_call_history_range): Include
13839 end.
13840 (record_btrace_call_history_from): Adjust range.
13841 * NEWS: Announce changes.
13842
8710b709
MM
138432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13844
13845 * record.h (enum record_print_flag)
13846 <record_print_indent_calls>: New.
13847 * record.c (get_call_history_modifiers): Recognize /c modifier.
13848 (_initialize_record): Document /c modifier.
13849 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13850 Reorder fields. Optionally indent the function name. Update
13851 all users.
13852 * NEWS: Announce changes.
13853
d0fa7535
MM
138542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13855
13856 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13857
5de9129b
MM
138582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13859
13860 * btrace.c (ftrace_new_function): Start counting at one.
13861 * record-btrace.c (record_btrace_info): Adjust number of calls
13862 and insns.
13863 * NEWS: Announce it.
13864
7acbe133
MM
138652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13866
13867 * record-btrace.c (btrace_call_history_insn_range): Print
13868 insn range as [begin, end].
13869
23a7fe75
MM
138702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13871
13872 * btrace.h (struct btrace_func_link): New.
13873 (enum btrace_function_flag): New.
13874 (struct btrace_inst): Rename to ...
13875 (struct btrace_insn): ...this. Update all users.
13876 (struct btrace_func) <ibegin, iend>: Remove.
13877 (struct btrace_func_link): New.
13878 (struct btrace_func): Rename to ...
13879 (struct btrace_function): ...this. Update all users.
13880 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13881 (number, level, flags>: New.
13882 (struct btrace_insn_iterator): Rename to ...
13883 (struct btrace_insn_history): ...this.
13884 Update all users.
13885 (struct btrace_insn_iterator, btrace_call_iterator): New.
13886 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13887 (struct btrace_target_info) <begin, end, level>
13888 <insn_history, call_history>: New.
13889 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13890 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13891 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13892 (btrace_call_number, btrace_call_begin, btrace_call_end)
13893 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13894 (btrace_find_function_by_number, btrace_set_insn_history)
13895 (btrace_set_call_history): New.
13896 * btrace.c (btrace_init_insn_iterator)
13897 (btrace_init_func_iterator, compute_itrace): Remove.
13898 (ftrace_print_function_name, ftrace_print_filename)
13899 (ftrace_skip_file): Change
13900 parameter to const.
13901 (ftrace_init_func): Remove.
13902 (ftrace_debug): Use new btrace_function fields.
13903 (ftrace_function_switched): Also consider gaining and
13904 losing symbol information).
13905 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13906 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13907 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13908 New.
13909 (ftrace_new_function): Move. Remove debug print.
13910 (ftrace_update_lines, ftrace_update_insns): New.
13911 (ftrace_update_function): Check for call, ret, and jump.
13912 (compute_ftrace): Renamed to ...
13913 (btrace_compute_ftrace): ...this. Rewritten to compute call
13914 stack.
13915 (btrace_fetch, btrace_clear): Updated.
13916 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13917 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13918 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13919 (btrace_call_number, btrace_call_begin, btrace_call_end)
13920 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13921 (btrace_find_function_by_number, btrace_set_insn_history)
13922 (btrace_set_call_history): New.
13923 * record-btrace.c (require_btrace): Use new btrace thread
13924 info fields.
13925 (record_btrace_info, btrace_insn_history)
13926 (record_btrace_insn_history, record_btrace_insn_history_range):
13927 Use new btrace thread info fields and new iterator.
13928 (btrace_func_history_src_line): Rename to ...
13929 (btrace_call_history_src_line): ...this. Use new btrace
13930 thread info fields.
13931 (btrace_func_history): Rename to ...
13932 (btrace_call_history): ...this. Use new btrace thread info
13933 fields and new iterator.
13934 (record_btrace_call_history, record_btrace_call_history_range):
13935 Use new btrace thread info fields and new iterator.
13936
8372a7cb
MM
139372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13938
13939 * frame.h (frame_id_build_unavailable_stack_special): New.
13940 * frame.c (frame_id_build_unavailable_stack_special): New.
13941
c2170eef
MM
139422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13943
13944 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13945 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13946 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13947 to gdbarch.
13948 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13949 (i386_insn_is_jump, i386_jmp_p): New.
13950 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13951 insn_is_jump to gdbarch.
13952 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13953 * gdbarch.h: Regenerated.
13954 * gdbarch.c: Regenerated.
13955 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13956 (default_insn_is_jump): New.
13957 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13958 (default_insn_is_jump): New.
13959
864089d2
MM
139602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13961
13962 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13963 Change to ...
13964 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13965 (btrace_read_type) <btrace_read_new>: Change to ...
13966 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13967
ed9edfb5
MM
139682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13969
13970 * common/linux-btrace.c (linux_read_btrace): Free trace from
13971 previous iteration.
13972
fbcbc3fd
DE
139732014-01-15 Doug Evans <dje@google.com>
13974
13975 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13976 uint32_t.
13977
3d548a53
TT
139782014-01-15 Tom Tromey <tromey@redhat.com>
13979
13980 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13981 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13982 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13983 (set_objfile_main_name): New function.
13984 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13985 language_of_main>: New fields.
13986 (set_objfile_main_name): Declare.
13987 * symtab.c (find_main_name): Loop over objfiles to find the main
13988 name and language.
13989 (set_main_name): Now static.
13990 (get_main_info): Add comment.
13991 * symtab.h (set_main_name): Don't declare.
13992
32ac0d11
TT
139932014-01-15 Tom Tromey <tromey@redhat.com>
13994
13995 * symtab.c (main_progspace_key): New global.
13996 (struct main_info): New.
13997 (name_of_main, language_of_main): Remove.
13998 (get_main_info, main_info_cleanup): New function.
13999 (set_main_name, main_name, main_language): Use get_main_info.
14000 (_initialize_symtab): Initialize main_progspace_key.
14001
9e6c82ad
TT
140022014-01-15 Tom Tromey <tromey@redhat.com>
14003
14004 * dbxread.c (process_one_symbol): Update.
14005 * dwarf2read.c (read_partial_die): Update.
14006 * symfile.c (set_initial_language): Call main_language.
14007 * symtab.c (language_of_main): Now static.
14008 (set_main_name): Add 'lang' parameter.
14009 (find_main_name): Update.
14010 (main_language): New function.
14011 (symtab_observer_executable_changed): Update.
14012 * symtab.h (set_main_name): Update.
14013 (language_of_main): Remove.
14014 (main_language): Declare.
14015
6ef55de7
TT
140162014-01-15 Tom Tromey <tromey@redhat.com>
14017
14018 * symfile.c (init_entry_point_info): Use new "initialized" field.
14019 Update.
14020 * objfiles.h (struct entry_point) <initialized>: New field.
14021 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14022 (struct objfile) <ei>: ...here. Remove.
14023 * objfiles.c (entry_point_address_query): Update.
14024
53eddfa6
TT
140252014-01-15 Tom Tromey <tromey@redhat.com>
14026
14027 * objfiles.c (entry_point_address_query): Relocate entry point
14028 address.
14029 (objfile_relocate1): Do not relocate entry point address.
14030 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14031 <the_bfd_section_index>: New field.
14032 * symfile.c (init_entry_point_info): Find the entry point's
14033 section.
14034
d56e56aa
TT
140352014-01-15 Tom Tromey <tromey@redhat.com>
14036
14037 * solib-frv.c (enable_break): Use entry_point_address_query.
14038
33a97bbe
OJ
140392014-01-15 Omair Javaid <omair.javaid@linaro.org>
14040
14041 * NEWS: Add note on improved process record-replay on
14042 arm*-linux* targets.
14043
c6ec2b30
OJ
140442014-01-15 Omair Javaid <omair.javaid@linaro.org>
14045
14046 * arm-tdep.c (enum arm_record_result): New enum.
14047 (arm_record_unsupported_insn): New function.
14048 (arm_record_coproc_data_proc): Removed.
14049 (thumb2_record_ld_st_multiple): New function.
14050 (thumb2_record_ld_st_dual_ex_tbb): New function.
14051 (thumb2_record_data_proc_sreg_mimm): New function.
14052 (thumb2_record_ps_dest_generic): New function.
14053 (thumb2_record_branch_misc_cntrl): New function.
14054 (thumb2_record_str_single_data): New function.
14055 (thumb2_record_ld_mem_hints): New function.
14056 (thumb2_record_ld_word): New function.
14057 (thumb2_record_lmul_lmla_div): New function.
14058 (thumb2_record_decode_insn_handler): New function.
14059 (decode_insn): Add thumb32 instruction handlers.
14060
97dfe206
OJ
140612014-01-15 Omair Javaid <omair.javaid@linaro.org>
14062
14063 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14064 (struct arm_linux_record_tdep): Declare.
14065 (arm_canonicalize_syscall): New function.
14066 (arm_all_but_pc_registers_record): New function.
14067 (arm_linux_syscall_record): New function.
14068 (arm_linux_init_abi): Add syscall recording constructs.
14069 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14070 decoding. (arm_record_coproc_data_proc): Update arm syscall
14071 decoding.
14072 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14073 <arm_syscall_record>: New field.
14074 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14075 gdb_target_obs.
14076
9904a494
OJ
140772014-01-15 Omair Javaid <omair.javaid@linaro.org>
14078
14079 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14080 register for push instruction recording.
14081
f969241e
OJ
140822014-01-15 Omair Javaid <omair.javaid@linaro.org>
14083
14084 * arm-tdep.c (thumb_record_misc): Update to correct logical
14085 error while recording ldm, ldmia and pop instructions.
14086
bfbbec00
OJ
140872014-01-15 Omair Javaid <omair.javaid@linaro.org>
14088
14089 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14090
e40adcc9
PA
140912014-01-15 Pedro Alves <palves@redhat.com>
14092
14093 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14094 (go32_resume, go32_fetch_registers, store_register)
14095 (go32_store_registers, go32_prepare_to_store)
14096 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14097 (go32_create_inferior, go32_can_run, go32_terminal_init)
14098 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14099 declarations.
14100
b0a16e66
TT
141012014-01-15 Tom Tromey <tromey@redhat.com>
14102
14103 * target.h (async_callback_ftype): New typedef.
14104 (struct target_ops) <to_async>: Use it.
14105
bf7105a4
JB
141062014-01-15 Joel Brobecker <brobecker@adacore.com>
14107
14108 * python/py-value.c (get_field_type): Remove unnecessary curly
14109 braces for single-statement if block.
14110
a8f35c2e
JB
141112014-01-15 Joel Brobecker <brobecker@adacore.com>
14112
14113 * python/py-type.c (convert_field): Add missing empty line
14114 after declarations.
14115
bb4142cf
DE
141162014-01-14 Doug Evans <dje@google.com>
14117
14118 * symfile.h (expand_symtabs_matching): Renamed from
14119 expand_partial_symbol_names. Update prototype.
14120 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14121 * symfile.c (expand_symtabs_matching): Renamed from
14122 expand_partial_symbol_names. New args file_matcher, kind.
14123 Rename arg fun to symbol_matcher.
14124 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14125 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14126 ada_expand_partial_symbol_name.
14127 (ada_make_symbol_completion_list): Update to call
14128 expand_symtabs_matching.
14129 (ada_add_global_exceptions): Call expand_symtabs_matching.
14130 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14131 call map_symbol_filenames.
14132 * symtab.c (sources_info): Update to call map_symbol_filenames.
14133 (search_symbols): Call expand_symtabs_matching.
14134 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14135 (default_make_symbol_completion_list_break_on): Update to call
14136 expand_symtabs_matching.
14137 (make_source_files_completion_list): Update to call
14138 map_symbol_filenames.
14139
206f2a57
DE
141402014-01-14 Doug Evans <dje@google.com>
14141
14142 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14143 (expand_symtabs_symbol_matcher_ftype): New typedef.
14144 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14145 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14146 * symfile.c (expand_partial_symbol_names): Update to use
14147 expand_symtabs_symbol_matcher_ftype.
14148 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14149 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14150 Arg name_matcher renamed to symbol_matcher.
14151 * psymtab.c (recursively_search_psymtabs): Update to use
14152 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14153 sym_matcher.
14154 (expand_symtabs_matching_via_partial): Update to use
14155 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14156 Arg name_matcher renamed to symbol_matcher.
14157
540c2971
DE
141582014-01-14 Doug Evans <dje@google.com>
14159
14160 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14161 (map_partial_symbol_filenames): Ditto.
14162 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14163 (map_partial_symbol_filenames): Ditto.
14164 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14165 (map_partial_symbol_filenames): Ditto.
14166 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14167 (map_partial_symbol_filenames): Ditto.
14168 * symtab.c: Delete #include "psymtab.h".
14169
8213266a
PA
141702014-01-14 Pedro Alves <palves@redhat.com>
14171 Tom Tromey <tromey@redhat.com>
14172
14173 * infrun.c (use_displaced_stepping): Use find_record_target
14174 instead of RECORD_IS_USED.
14175 (adjust_pc_after_break): Use record_full_is_used instead of
14176 RECORD_IS_USED.
14177 * record-btrace.c (record_btrace_open): Call record_preopen
14178 instead of checking RECORD_IS_USED.
14179 * record-full.c (record_full_shortname)
14180 (record_full_core_shortname): New globals.
14181 (record_full_is_used): New function.
14182 (find_full_open): Call record_preopen instead of checking
14183 RECORD_IS_USED.
14184 (init_record_full_ops): Set the target's shortname to
14185 record_full_shortname.
14186 (init_record_full_core_ops): Set the target's shortname to
14187 record_full_core_shortname.
14188 * record-full.h (record_full_is_used): Declare.
14189 * record.c (find_record_target): Make extern.
14190 (record_preopen): New function.
14191 * record.h (RECORD_IS_USED): Delete macro.
14192 (find_record_target, record_preopen): Declare functions.
14193
7ec1862d
YQ
141942014-01-14 Yao Qi <yao@codesourcery.com>
14195
14196 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14197 'len''s type to ULONGEST.
14198 (core_xfer_shared_libraries_aix): Likewise.
14199 * gdbarch.c, gdbarch.h: Regenerated.
14200 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14201 Change type of 'len' to ULONGEST.
14202 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14203 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14204
dea80a27
YQ
142052014-01-14 Yao Qi <yao@codesourcery.com>
14206
14207 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14208 type of 'len' to ULONGEST.
14209 (linux_xfer_osdata_processgroups): Likewise.
14210 (linux_xfer_osdata_threads): Likewise.
14211 (linux_xfer_osdata_fds): Likewise.
14212 (linux_xfer_osdata_isockets): Likewise.
14213 (linux_xfer_osdata_shm): Likewise.
14214 (linux_xfer_osdata_sem): Likewise.
14215 (linux_xfer_osdata_msg): Likewise.
14216 (linux_common_xfer_osdata): Likewise.
14217 (struct osdata_type) <getter>: Likewise.
14218 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14219 the declaration.
14220
b55e14c7
YQ
142212014-01-14 Yao Qi <yao@codesourcery.com>
14222
14223 * target.h (target_xfer_partial_ftype): Update.
14224 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14225 ULONGEST.
14226 * aix-thread.c (aix_thread_xfer_partial): Change type of
14227 argument 'len' to ULONGEST.
14228 * auxv.c (procfs_xfer_auxv): Likewise.
14229 (ld_so_xfer_auxv): Likewise.
14230 (memory_xfer_auxv): Likewise.
14231 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14232 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14233 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14234 * corelow.c (core_xfer_partial): Likewise.
14235 * ctf.c (ctf_xfer_partial): Likewise.
14236 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14237 '%u'.
14238 (darwin_read_dyld_info): Likewise.
14239 (darwin_xfer_partial): Likewise.
14240 * exec.c (section_table_xfer_memory_partial): Likewise.
14241 (exec_xfer_partial): Likewise.
14242 * exec.h (section_table_xfer_memory_partial): Update
14243 declaration.
14244 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14245 instead of plongest.
14246 (gnu_xfer_partial): Likewise.
14247 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14248 (ia64_hpux_xfer_solib_got): Likewise.
14249 (ia64_hpux_xfer_partial): Likewise.
14250 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14251 * inf-ptrace.c (inf_ptrace_xfer_partial):
14252 * inf-ttrace.c (inf_ttrace_xfer_partial):
14253 * linux-nat.c (linux_xfer_siginfo): Likewise.
14254 (linux_nat_xfer_partial): Likewise.
14255 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14256 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14257 * monitor.c (monitor_xfer_memory): Likewise.
14258 (monitor_xfer_partial): Likewise.
14259 * procfs.c (procfs_xfer_partial): Likewise.
14260 * record-full.c (record_full_xfer_partial): Likewise.
14261 (record_full_core_xfer_partial): Likewise.
14262 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14263 instead of plongest.
14264 (gdbsim_xfer_partial): Likewise.
14265 * remote.c (remote_xfer_partial): Likewise.
14266 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14267 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14268 declaration.
14269 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14270 (rs6000_xfer_shared_libraries): Likewise.
14271 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14272 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14273 (sparc_xfer_partial): Likewise.
14274 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14275 (spu_xfer_partial): Likewise.
14276 * spu-multiarch.c (spu_xfer_partial): Likewise.
14277 * target.c (target_read_live_memory): Likewise.
14278 (memory_xfer_live_readonly_partial): Likewise.
14279 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14280 (target_xfer_partial, default_xfer_partial): Likewise.
14281 (current_xfer_partial): Likewise.
14282 * tracepoint.c (tfile_xfer_partial): Likewise.
14283 * windows-nat.c (windows_xfer_memory): Likewise. Call
14284 pulongest instead of plongest.
14285 (windows_xfer_partial): Likewise.
14286 (windows_xfer_shared_libraries): Likewise.
14287
05804640
YQ
142882014-01-14 Yao Qi <yao@codesourcery.com>
14289
14290 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14291 target_xfer_partial_ftype.
14292
b5b08fb4
SC
142932014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14294
14295 PR python/15464
14296 PR python/16113
14297 * valops.c (value_struct_elt_bitpos): New function
14298 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14299 object to 'None' if the field name is an empty string ("").
14300 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14301 attribute to look for a field when 'name' is 'None'.
14302 (get_field_type): New function
14303
13aaf454
DE
143042014-01-13 Doug Evans <dje@google.com>
14305
14306 PR symtab/16426
14307 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14308 (try_open_dwop_file): Ditto.
14309 * gdb_bfd.c: #include "vec.h".
14310 (bfdp): New typedef.
14311 (struct gdb_bfd_data): New member included_bfds.
14312 (gdb_bfd_unref): Unref all included bfds.
14313 (gdb_bfd_record_inclusion): New function.
14314 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14315
c2cec97c
TT
143162014-01-13 Tom Tromey <tromey@redhat.com>
14317
14318 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14319
78e5999d
TT
143202014-01-13 Tom Tromey <tromey@redhat.com>
14321
14322 * defs.h (use_windows): Remove.
14323 * gdb.c (main): Update.
14324 * main.c (captured_main, gdb_main): Update.
14325 * main.h (struct captured_main_args) <use_windows>: Remove.
14326 * top.c (use_windows): Remove.
14327
f2052bbe
TT
143282014-01-13 Tom Tromey <tromey@redhat.com>
14329
14330 * defs.h (deprecated_flush_hook): Remove.
14331
fde4f8ed
JK
143322014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14333
14334 PR threads/16216
14335 * linux-thread-db.c (try_thread_db_load): Add parameter
14336 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14337 (try_thread_db_load_from_pdir_1): Move it there from here.
14338 (try_thread_db_load_from_sdir): Update caller.
14339 (try_thread_db_load_from_dir): Move it there from here.
14340
bdf61915
PP
143412014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14342
14343 * regformats/regdat.sh: Always rewrite the register file.
14344
f71e1a8d
PA
143452014-01-13 Pedro Alves <palves@redhat.com>
14346
14347 * Makefile.in (CHECK_HEADERS): New variable.
14348 (check-headers:): New rule.
14349
42c85435
TT
143502014-01-13 Tom Tromey <tromey@redhat.com>
14351
14352 * cli/cli-setshow.c (do_set_command): Update.
14353 * defs.h (deprecated_set_hook): Remove.
14354 * top.c (deprecated_set_hook): Remove.
14355
f8de5129
PA
143562014-01-13 Pedro Alves <palves@redhat.com>
14357
14358 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14359 the tracepoint if the PC is a pseudo-register.
14360
fc270c35
TT
143612014-01-13 Tom Tromey <tromey@redhat.com>
14362
14363 * defs.h (XCALLOC): Remove.
14364 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14365 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14366 * dwarf2loc.c (allocate_piece_closure): Likewise.
14367 * elfread.c (elf_symfile_segments): Likewise.
14368 (elf_symfile_segments): Likewise.
14369 * gdbtypes.c (copy_type_recursive): Likewise.
14370 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14371 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14372 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14373 XCALLOC.
14374 * mt-tdep.c (mt_gdbarch_init): Likewise.
14375 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14376 XCALLOC.
14377 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14378 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14379 * registry.c (registry_alloc_data): Likewise.
14380 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14381 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14382 * serial.c (serial_fdopen_ops): Likewise.
14383 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14384 XCALLOC.
14385 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14386 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14387 not XCALLOC.
14388
70ba0933
TT
143892014-01-13 Tom Tromey <tromey@redhat.com>
14390
14391 * defs.h (XMALLOC): Remove.
14392 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14393 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14394 * cli-out.c (struct ui_out *): Likewise.
14395 * cli/cli-dump.c (add_dump_command): Likewise.
14396 (add_dump_command): Likewise.
14397 * complaints.c (get_complaints): Likewise.
14398 (find_complaint): Likewise.
14399 * dwarf2-frame.c (execute_cfa_program): Likewise.
14400 * dwarf2read.c (abbrev_table_read_table): Likewise.
14401 * gdbarch.sh: Likewise.
14402 * gdbarch.c: Rebuild.
14403 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14404 * interps.c (interp_new): Likewise.
14405 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14406 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14407 * mi/mi-console.c (mi_console_file_new): Likewise.
14408 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14409 * mi/mi-out.c (mi_out_new): Likewise.
14410 * mi/mi-parse.c (mi_parse): Likewise.
14411 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14412 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14413 * observer.c (xalloc_observer_list_node): Likewise.
14414 * regcache.c (regcache_xmalloc_1): Likewise.
14415 * reggroups.c (reggroup_new): Likewise.
14416 (_initialize_reggroup): Likewise.
14417 * registry.c (register_data_with_cleanup): Likewise.
14418 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14419 * ser-base.c (serial_ttystate): Likewise.
14420 * ser-mingw.c (make_pipe_state): Likewise.
14421 * ser-pipe.c (pipe_open): Likewise.
14422 * serial.c (serial_open): Likewise.
14423 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14424 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14425 (tui_alloc_win_info): Likewise.
14426 (tui_add_content_elements): Likewise.
14427 * tui/tui-file.c (tui_file_new): Likewise.
14428 * tui/tui-out.c (tui_out_new): Likewise.
14429 * ui-file.c (mem_file_new): Likewise.
14430 * ui-out.c (push_level): Likewise.
14431 (make_cleanup_ui_out_end): Likewise.
14432 (append_header_to_list): Likewise.
14433 (ui_out_new): Likewise.
14434 * user-regs.c (user_reg_add_builtin): Likewise.
14435
41bf6aca
TT
144362014-01-13 Tom Tromey <tromey@redhat.com>
14437
14438 * defs.h (XZALLOC): Remove.
14439 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14440 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14441 (get_ada_tasks_inferior_data): Likewise.
14442 * auto-load.c (get_auto_load_pspace_data): Likewise.
14443 * auxv.c (get_auxv_inferior_data): Likewise.
14444 * bfd-target.c (target_bfd_reopen): Likewise.
14445 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14446 (deprecated_insert_raw_breakpoint): Likewise.
14447 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14448 * corelow.c (core_open): Likewise.
14449 * darwin-nat.c (darwin_check_new_threads): Likewise.
14450 (darwin_attach_pid): Likewise.
14451 * dummy-frame.c (dummy_frame_push): Likewise.
14452 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14453 * dwarf2loc.c (allocate_piece_closure): Likewise.
14454 * elfread.c (elf_symfile_segments): Likewise.
14455 * eval.c (ptrmath_type_p): Likewise.
14456 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14457 * gdbtypes.c (alloc_type_arch): Likewise.
14458 (alloc_type_instance): Likewise.
14459 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14460 * inf-child.c (inf_child_can_use_agent): Likewise.
14461 * inflow.c (get_inflow_inferior_data): Likewise.
14462 * infrun.c (save_infcall_suspend_state): Likewise.
14463 * jit.c (jit_reader_load): Likewise.
14464 (get_jit_objfile_data): Likewise.
14465 (get_jit_program_space_data): Likewise.
14466 (jit_object_open_impl): Likewise.
14467 (jit_symtab_open_impl): Likewise.
14468 (jit_block_open_impl): Likewise.
14469 (jit_frame_sniffer): Likewise.
14470 * linux-fork.c (add_fork): Likewise.
14471 * maint.c (make_command_stats_cleanup): Likewise.
14472 * objfiles.c (get_objfile_pspace_data): Likewise.
14473 * opencl-lang.c (struct lval_closure): Likewise.
14474 * osdata.c (osdata_start_osdata): Likewise.
14475 * progspace.c (new_address_space): Likewise.
14476 (add_program_space): Likewise.
14477 * remote-sim.c (get_sim_inferior_data): Likewise.
14478 * sh-tdep.c (sh_gdbarch_init): Likewise.
14479 * skip.c (Ignore): Likewise.
14480 (skip_delete_command): Likewise.
14481 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14482 (library_list_start_library): Likewise.
14483 (solib_aix_current_sos): Likewise.
14484 * solib-darwin.c (get_darwin_info): Likewise.
14485 (darwin_current_sos): Likewise.
14486 * solib-dsbt.c (get_dsbt_info): Likewise.
14487 * solib-ia64-hpux.c (new_so_list): Likewise.
14488 (ia64_hpux_get_solib_linkage_addr): Likewise.
14489 * solib-spu.c (append_ocl_sos): Likewise.
14490 (spu_current_sos): Likewise.
14491 * solib-svr4.c (get_svr4_info): Likewise.
14492 (svr4_keep_data_in_core): Likewise.
14493 (library_list_start_library): Likewise.
14494 (svr4_default_sos): Likewise.
14495 (svr4_read_so_list): Likewise.
14496 * solib-target.c (library_list_start_library): Likewise.
14497 (solib_target_current_sos): Likewise.
14498 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14499 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14500 * symfile.c (default_symfile_segments): Likewise.
14501 * target-descriptions.c (tdesc_data_init): Likewise.
14502 (tdesc_create_reg): Likewise.
14503 (struct tdesc_type *): Likewise.
14504 (tdesc_create_vector): Likewise.
14505 (tdesc_set_struct_size): Likewise.
14506 (struct tdesc_type *): Likewise.
14507 (tdesc_free_feature): Likewise.
14508 (tdesc_create_feature): Likewise.
14509 * windows-nat.c (windows_add_thread): Likewise.
14510 (windows_make_so): Likewise.
14511 * xml-support.c (gdb_xml_body_text): Likewise.
14512 (gdb_xml_create_parser_and_cleanup): Likewise.
14513 (xml_process_xincludes): Likewise.
14514 * xml-syscall.c (allocate_syscalls_info): Likewise.
14515 (syscall_create_syscall_desc): Likewise.
14516
5acfdbae
SDJ
145172014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14518
14519 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14520 function, with code from i386_stap_parse_special_token.
14521 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14522 (i386_stap_parse_special_token): Move code to the two functions
14523 above; simplify it.
14524
0000e5cc
PA
145252014-01-09 Pedro Alves <palves@redhat.com>
14526 Hui Zhu <hui@codesourcery.com>
14527
14528 PR gdb/16101
14529 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14530 bp_err_string. Don't mark the location shlib_disabled if the
14531 error thrown wasn't a generic or memory error. Catch errors
14532 thrown while inserting breakpoints in overlayed code. Output
14533 error message of software breakpoints.
14534 * remote.c (remote_insert_breakpoint): If this breakpoint has
14535 target-side commands but this stub doesn't support Z0 packets,
14536 throw NOT_SUPPORTED_ERROR error.
14537 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14538 * target.h (target_insert_breakpoint): Extend comment.
14539 (target_insert_hw_breakpoint): Add comment.
14540
b7ea362b
PA
145412014-01-08 Pedro Alves <palves@redhat.com>
14542
14543 * remote.c (remote_add_thread): Add threads silently if starting
14544 up.
14545 (remote_notice_new_inferior): If in all-stop, and starting up,
14546 don't call notice_new_inferior.
14547 (get_current_thread): New function, factored out from ...
14548 (add_current_inferior_and_thread): ... this. Adjust.
14549 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14550 found any thread, then select the remote's current thread as GDB's
14551 current thread too.
14552
b7bba001
JB
145532014-01-08 Joel Brobecker <brobecker@adacore.com>
14554
14555 * NEWS: Create a new section for the next release branch.
14556 Rename the section of the current branch, now that it has
14557 been cut.
14558
16dfbded
JB
145592014-01-08 Joel Brobecker <brobecker@adacore.com>
14560
14561 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14562 * version.in: Bump version to 7.7.50.DATE-cvs.
14563
22c90ac1
YQ
145642014-01-08 Yao Qi <yao@codesourcery.com>
14565
14566 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14567 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14568 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14569
d64ad97c
YQ
145702014-01-08 Yao Qi <yao@codesourcery.com>
14571
14572 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14573 return value of bfd_get_filename to symbol_file_add_from_bfd.
14574
f93ba80c
PM
145752014-01-08 Pierre Muller <muller@sourceware.org>
14576
14577 Fix PR16201.
14578 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14579 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14580 to prim_record_mininal_symbol_and_info.
14581 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14582 in call to prim_record_minimal_symbol_and_info.
14583 (read_pe_exported_syms): Set index field of section_data.
14584
a4d9ba85
AP
145852014-01-07 Andrew Pinski <apinski@cavium.com>
14586
14587 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14588 * features/aarch64.c: Regenerate.
14589
1b67eb02
AS
145902014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14591
14592 * target.c (return_null): Define.
14593 (update_current_target): Use it instead of return_zero for
14594 functions that return a pointer.
14595
5e3f4fab
EBM
145962014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14597
14598 * source.c (add_path): Fix check for duplicated paths in the previously
14599 included paths.
14600
e2616788
HK
146012014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14602
14603 * ada-lang.c: Remove duplicated include statements.
14604 * alphabsd-nat.c: Ditto.
14605 * amd64-darwin-tdep.c: Ditto.
14606 * amd64fbsd-nat.c: Ditto.
14607 * auto-load.c: Ditto.
14608 * ax-gdb.c: Ditto.
14609 * breakpoint.c: Ditto.
14610 * dbxread.c: Ditto.
14611 * fork-child.c: Ditto.
14612 * gdb_usleep.c: Ditto.
14613 * i386-darwin-tdep.c: Ditto.
14614 * i386fbsd-nat.c: Ditto.
14615 * infcmd.c: Ditto.
14616 * inferior.c: Ditto.
14617 * jv-lang.c: Ditto.
14618 * linux-nat.c: Ditto.
14619 * linux-tdep.c: Ditto.
14620 * m68kbsd-nat.c: Ditto.
14621 * m68klinux-nat.c: Ditto.
14622 * microblaze-tdep.c: Ditto.
14623 * mips-linux-tdep.c: Ditto.
14624 * mn10300-tdep.c: Ditto.
14625 * nto-tdep.c: Ditto.
14626 * opencl-lang.c: Ditto.
14627 * osdata.c: Ditto.
14628 * printcmd.c: Ditto.
14629 * regcache.c: Ditto.
14630 * remote-m32r-sdi.c: Ditto.
14631 * remote.c: Ditto.
14632 * symfile.c: Ditto.
14633 * symtab.c: Ditto.
14634 * tilegx-linux-nat.c: Ditto.
14635 * tilegx-tdep.c: Ditto.
14636 * tracepoint.c: Ditto.
14637 * valops.c: Ditto.
14638 * vaxbsd-nat.c: Ditto.
14639 * windows-nat.c: Ditto.
14640 * xtensa-tdep.c: Ditto.
14641
bd1f7788
YQ
146422014-01-07 Yao Qi <yao@codesourcery.com>
14643
14644 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14645
79301218
JB
146462014-01-07 Yao Qi <yao@codesourcery.com>
14647 Joel Brobecker <brobecker@adacore.com>
14648
14649 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14650 (pdc_write_regs): Likewise.
14651 (fetch_regs_kernel_thread): Likewise.
14652 (store_regs_kernel_thread): Likewise.
14653
146542014-01-07 Joel Brobecker <brobecker@adacore.com>
14655
14656 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14657 tagged type objects to their actual type.
14658
8e355c5d
JB
146592014-01-07 Joel Brobecker <brobecker@adacore.com>
14660
14661 * ada-valprint.c (print_field_values): Add "language" parameter.
14662 Update calls to print_field_values and print_variant_part.
14663 Pass new parameter "language" in call to val_print instead
14664 of "current_language". Replace call to ada_val_print by call
14665 to val_print.
14666 (print_variant_part): Add "language" parameter.
14667 (ada_val_print_struct_union): Update call to print_field_values.
14668
4fbf5aa5
JB
146692014-01-07 Joel Brobecker <brobecker@adacore.com>
14670
14671 * ada-valprint.c (ui_memcpy): Delete.
14672 (ada_print_floating): Update documentation. Add empty line
14673 between between function documentation and implementation.
14674 Delete variable "buffer". Use ui_file_xstrdup in place of
14675 ui_file_put. Minor adjustments following this change.
14676
71855601
JB
146772014-01-07 Joel Brobecker <brobecker@adacore.com>
14678
14679 * ada-valprint.c (ada_val_print_string): New function,
14680 extracted from ada_val_print_array.
14681 (ada_val_print_array): Replace extracted code by call
14682 to ada_val_print_string followed by a return. Move
14683 "else" branch to the function's top block.
14684
4eb27a30
JB
146852014-01-07 Joel Brobecker <brobecker@adacore.com>
14686
14687 * ada-valprint.c (ada_val_print_array): Move implementation
14688 down. Rename parameter "offset" and "val" into "offset_aligned"
14689 and "original_value" respectively. Add parameter "offset".
14690
34b27950
JB
146912014-01-07 Joel Brobecker <brobecker@adacore.com>
14692
14693 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14694 re-organizing the code. Change the "???" message printed
14695 when target type is a TYPE_CODE_UNDEF into
14696 "<ref to undefined type>".
14697
079e4591
JB
146982014-01-07 Joel Brobecker <brobecker@adacore.com>
14699
14700 * ada-valprint.c (print_record): Delete, implementation inlined...
14701 (ada_val_print_struct_union): ... here. Remove call to
14702 ada_check_typedef in inlined implementation.
14703
8004dfd1
JB
147042014-01-07 Joel Brobecker <brobecker@adacore.com>
14705
14706 * ada-valprint.c (ada_val_print_gnat_array): New function,
14707 extracted from ada_val_print_1;
14708 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14709 (ada_val_print_flt, ada_val_print_struct_union)
14710 (ada_val_print_ref): Likewise.
14711 (ada_val_print_1): Delete variables i and elttype.
14712 Replace extracted-out code by call to corresponding
14713 new functions.
14714
760a2db0
JB
147152014-01-07 Joel Brobecker <brobecker@adacore.com>
14716
14717 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14718
3a92c861
JB
147192014-01-07 Joel Brobecker <brobecker@adacore.com>
14720
14721 * ada-valprint.c (ada_val_print_1): Replace calls to
14722 ada_val_print_1 by calls to val_print.
14723
cd1630f9
JB
147242014-01-07 Joel Brobecker <brobecker@adacore.com>
14725
14726 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14727 Update calls to self accordingly. Replace calls to c_val_print
14728 by calls to val_print.
14729
bdf779a0
JB
147302014-01-07 Joel Brobecker <brobecker@adacore.com>
14731
14732 * ada-valprint.c (print_record): Delete declaration.
14733 (adjust_type_signedness, ada_val_print_1): Likewise.
14734 (ada_val_print): Move function implementation down.
14735 (print_variant_part, print_field_values, print_record):
14736 Move function implementation up.
14737
c0d48811
JB
147382014-01-07 Joel Brobecker <brobecker@adacore.com>
14739
14740 * python/py-type.c (typy_get_name): New function.
14741 (type_object_getset): Add entry for attribute "name".
14742 * NEWS: Add entry mentioning this new attribute.
14743
c26e9cbb
YQ
147442014-01-07 Yao Qi <yao@codesourcery.com>
14745
14746 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14747 statement.
14748
0cc6f43d
YQ
147492014-01-07 Yao Qi <yao@codesourcery.com>
14750
14751 * gnu-nat.c (info_port_rights): Add qualifier const to
14752 argument args.
14753
eec03155
YQ
147542014-01-07 Yao Qi <yao@codesourcery.com>
14755
14756 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14757
f04a82ef
YQ
147582014-01-07 Yao Qi <yao@codesourcery.com>
14759
14760 * gnu-nat.c (make_inf) Update declaration.
14761 (make_inf): Make it static.
14762 (inf_set_traced): Likewise.
14763 (inf_port_to_thread, inf_task_died_status): Likewise.
14764
d57dda0a
YQ
147652014-01-07 Yao Qi <yao@codesourcery.com>
14766
14767 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14768
3aa8c969
YQ
147692014-01-07 Yao Qi <yao@codesourcery.com>
14770
14771 * gnu-nat.c (_initialize_gnu_nat): Declare.
14772
94123b4f
YQ
147732014-01-07 Yao Qi <yao@codesourcery.com>
14774
14775 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14776 'enum bfd_endian'.
14777 (struct gdbarch_info) <byte_order>: Change type to
14778 'enum bfd_endian'.
14779 <byte_order_for_code>: Likewise.
14780 * gdbarch.c, gdbarch.h: Regenerated.
14781
dc81d70a
TT
147822014-01-06 Sasha Smundak <asmundak@google.com>
14783
14784 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14785
cc2f3c35
TT
147862014-01-06 Tom Tromey <tromey@redhat.com>
14787
14788 * doublest.c (convert_doublest_to_floatformat): Use const, not
14789 CONST.
14790 * somread.c (som_symtab_read): Likewise.
14791
adcf2eed
HZ
147922014-01-07 Hui Zhu <hui@codesourcery.com>
14793
14794 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14795 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14796 (gdb_bfd_fopen): Ditto.
14797 (gdb_bfd_openr): Ditto.
14798 (gdb_bfd_openw): Ditto.
14799 (gdb_bfd_openr_iovec): Ditto.
14800 (gdb_bfd_fdopenr): Ditto.
14801 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14802 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14803 with xstrdup.
14804 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14805 with xstrdup.
14806 * symfile-mem.c (symbol_file_add_from_memory): Removed
14807 gdb_bfd_stash_filename.
14808
50722198
DE
148092014-01-03 Doug Evans <dje@google.com>
14810
14811 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14812 output.
14813
2fa4b862
JB
148142014-01-01 Joel Brobecker <brobecker@adacore.com>
14815
14816 Update year range in copyright notice of all files.
14817
28498c42
JB
148182014-01-01 Joel Brobecker <brobecker@adacore.com>
14819
14820 * top.c (print_gdb_version): Set copyright year to 2014.
14821
7b6e1046
JB
148222014-01-01 Joel Brobecker <brobecker@adacore.com>
14823
14824 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14825
df96af55 14826For older changes see ChangeLog-2013.
c906108c
SS
14827\f
14828Local Variables:
14829mode: change-log
14830left-margin: 8
14831fill-column: 74
14832version-control: never
57da7796 14833coding: utf-8
c906108c 14834End:
This page took 2.27374 seconds and 4 git commands to generate.