Update for moxie ISA changes
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6441e6db
AG
12014-12-27 Anthony Green <green@moxielogic.com>
2
3 * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
4 are 32 bits, not 48. Update comments for various instructions.
5 (moxie_process_record): Update for new shorter ldo/sto
6 instructions. Add support for sex, zex, umul.x and mul.x
7 instructions. Update comments for various instructions.
8
5c294fee
TG
92014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
10
11 * arm-tdep.c (arm_gdbarch_init): Explicitely handle value 3 of
12 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
13 switch handling the different values of Tag_ABI_VFP_args.
14
1994afbf
DE
152014-12-23 Doug Evans <xdje42@gmail.com>
16
17 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
18 objfile-owned.
19 (cache_symbol): Ignore symbols that are not objfile-owned.
20 * block.c (block_objfile): New function.
21 (block_gdbarch): New function.
22 * block.h (block_objfile): Declare.
23 (block_gdbarch): Declare.
24 * c-exp.y (classify_name): Remove call to
25 language_lookup_primitive_type. No longer necessary.
26 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
27 Remove call to language_lookup_primitive_type. No longer necessary.
28 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
29 (syscm_gdbarch_data): New struct.
30 (syscm_init_arch_symbols): New function.
31 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
32 All callers updated. Handle symbols owned by arches.
33 (gdbscm_symbol_symtab): Handle symbols owned by arches.
34 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
35 * language.c (language_lookup_primitive_type_1): New function.
36 (language_lookup_primitive_type): Call it.
37 (language_alloc_type_symbol): New function.
38 (language_init_primitive_type_symbols): New function.
39 (language_lookup_primitive_type_as_symbol): New function.
40 * language.h (struct language_arch_info) <primitive_type_symbols>:
41 New member.
42 (language_lookup_primitive_type): Add function comment.
43 (language_lookup_primitive_type_as_symbol): Declare.
44 * printcmd.c (address_info): Handle arch-owned symbols.
45 * python/py-symbol.c (sympy_get_symtab): Ditto.
46 (set_symbol): Ditto.
47 (sympy_dealloc): Ditto.
48 * symmisc.c (print_symbol): Ditto.
49 * symtab.c (fixup_symbol_section): Ditto.
50 (lookup_symbol_aux): Initialize block_found.
51 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
52 primitive type.
53 (initialize_objfile_symbol_1): New function.
54 (initialize_objfile_symbol): Call it.
55 (allocate_symbol): Call it.
56 (allocate_template_symbol): Call it.
57 (symbol_objfile): Assert symbol is objfile-owned.
58 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
59 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
60 (struct symbol) <is_objfile_owned>: New member.
61 (SYMBOL_OBJFILE_OWNED): New macro.
62 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
63 All callers updated. Try to find the symbol as a primitive type.
64 (lookup_namespace_scope): New arg langdef. All callers updated.
65 Call cp_lookup_bare_symbol directly for simple bare symbols.
66
c01feb36
DE
672014-12-23 Doug Evans <xdje42@gmail.com>
68
69 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
70 (struct symbol) <domain>: Use it.
71
38bf1463
DE
722014-12-23 Doug Evans <xdje42@gmail.com>
73
74 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
75 All callers updated.
76
f606139a
DE
772014-12-23 Doug Evans <xdje42@gmail.com>
78
79 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
80 New arg language_defn. All uses updated.
81
08be3fe3
DE
822014-12-23 Doug Evans <xdje42@gmail.com>
83
84 * symtab.h (SYMBOL_SYMTAB): Delete
85 (SYMBOL_OBJFILE): Delete.
86 (symbol_symtab, symbol_set_symtab): Declare.
87 (symbol_objfile, symbol_arch): Declare.
88 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
89 All references to symbol->symtab redirected through here.
90 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
91 redirected through here.
92 (symbol_arch): New function.
93 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
94 All uses updated.
95 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
96 symbol_arch.
97 * findvar.c (default_read_var_value): Call symbol_arch.
98 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
99 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
100 * printcmd.c (address_info): Call symbol_arch.
101 * tracepoint.c (scope_info): Call symbol_arch.
102
f953163f
DE
1032014-12-22 Doug Evans <xdje42@gmail.com>
104
105 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
106 (cp_lookup_symbol_namespace): Call it.
107 (cp_lookup_symbol_nonlocal): Ditto.
108
4bd0864e
DE
1092014-12-22 Doug Evans <xdje42@gmail.com>
110
111 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
112 "search_scope_first". All callers updated.
113
6f27419a
DE
1142014-12-22 Doug Evans <xdje42@gmail.com>
115
116 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
117 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
118 arg "search". All callers updated.
119 (cp_lookup_bare_symbol): New function.
120 (cp_search_static_and_baseclasses): New function.
121 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
122 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
123 (cp_lookup_nested_symbol): Ditto.
124
d2763117
DE
1252014-12-22 Doug Evans <xdje42@gmail.com>
126
127 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
128
791244be
DE
1292014-12-22 Doug Evans <xdje42@gmail.com>
130
131 * cp-namespace.c: Whitespace cleanup.
132
87186c6a
MMN
1332014-12-20 Keith Seitz <keiths@redhat.com>
134 Mihail-Marian Nistor <mihail.nistor@freescale.com>
135
136 PR gdb/17394
137 * linespec.c (struct collect_minsyms): Add new member `symtab'.
138 (add_minsym): Handle cases where info.symtab is non-NULL.
139 (search_minsyms_for_name): Add new parameter `symtab'.
140 Handle limiting searches to a specific symtab.
141 (add_matching_symtabs_to_info): Search through minimal symbols
142 for language_asm files for which no new symbols are found.
143
bb7e3f4d
YQ
1442014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
145 Nigel Stephens <nigel@mips.com>
146 Chris Dearman <chris@mips.com>
147 Luis Machado <lgustavo@codesourcery.com>
148
149 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
150 (ALLDEPFILES): Add mips-sde-tdep.c.
151 * mips-sde-tdep.c: New file containg SDE specific code.
152 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
153 gdb_target_obs.
154 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
155 * osabi.c (gdb_osabi_names): Add SDE.
156 * NEWS: Mention the change.
157
db7a9bcd
SM
1582014-12-18 Simon Marchi <simon.marchi@ericsson.com>
159
160 * elfread.c (elf_symfile_init): Remove stale comment.
161 (elf_symfile_read): Same.
162 * symfile.h (struct sym_fns): Same.
163
1bab7383
YQ
1642014-12-18 Nigel Stephens <nigel@mips.com>
165 Maciej W. Rozycki <macro@codesourcery.com>
166
167 * mips-tdep.c (print_fpu_flags): New function.
168 (mips_print_float_info): Likewise.
169 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
170 print_float_info routine.
171
cc86d1cb
YQ
1722014-12-18 Yao Qi <yao@codesourcery.com>
173
174 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
175 * gdbarch.c: Re-generated.
176 * gdbarch.h: Likewise.
177 * infcmd.c (default_print_float_info): New function.
178 (print_float_info): Removed. Move code to
179 default_print_float_info.
180 (float_info): Adjust to call gdbarch_print_float_info.
181 * inferior.h (default_print_float_info): Declare it.
182
2ad47ec4
YQ
1832014-12-18 Yao Qi <yao@codesourcery.com>
184
185 * h8300-tdep.c (h8300_print_float_info): Remove.
186 (h8300_gdbarch_init): Remove the call to
187 set_gdbarch_print_float_info.
188
253342b8
DE
1892014-12-18 Doug Evans <xdje42@gmail.com>
190
191 * infcmd.c (jump_command): Minor simplification.
192
46b0da17
DE
1932014-12-18 Doug Evans <xdje42@gmail.com>
194
195 * language.c (language_lookup_primitive_type): Renamed from
196 language_lookup_primitive_type_by_name. All callers updated.
197
1bc1068a
JK
1982014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
199
200 Fix MinGW compilation.
201 * compile/compile.c (get_compile_file_tempdir): Call error if
202 !HAVE_MKDTEMP.
203 * config.in: Regenerate.
204 * configure: Regenerate.
205 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
206
5e3c72e6
DE
2072014-12-17 Doug Evans <xdje42@gmail.com>
208
209 * valops.c (value_maybe_namespace_elt): Remove redundant call to
210 lookup_static_symbol.
211
cc485e62
DE
2122014-12-17 Doug Evans <xdje42@gmail.com>
213
214 New parameter "debug symbol-lookup".
215 * NEWS: Mention it.
216 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
217 output.
218 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
219 (cp_lookup_nested_symbol): Ditto.
220 * language.c (language_lookup_primitive_type_by_name): Add debug
221 output.
222 * minsyms.c (lookup_minimal_symbol): Add debug output.
223 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
224 * symfile-debug.c (debug_objfile_name): ... from here. All callers
225 updated.
226 * objfiles.h (objfile_debug_name): Declare.
227 * symtab.h (symbol_lookup_debug): Declare.
228 * symtab.c (symbol_lookup_debug): New global.
229 (lookup_language_this): Add debug output.
230 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
231 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
232 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
233 (_initialize_symtab): Add new parameter "debug symbol-lookup".
234
0ab9ce85
DE
2352014-12-16 Doug Evans <xdje42@gmail.com>
236
237 * buildsym.c: Add comments describing how the buildsym machinery
238 is used by the various file formats.
239 (really_free_pendings): Enhance function comment.
240 See pending_macros to NULL. Simplify resetting pending_addrmap.
241 Call free_buildsym_compunit.
242 (free_buildsym_compunit): Set current_subfile to NULL.
243 (prepare_for_building): New function.
244 (start_symtab): Call it. Remove call to set_last_source_file.
245 (restart_symtab): New arg "cust". All callers updated.
246 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
247 (reset_symtab_globals): Enhance function comment.
248 Set local_symbols, file_symbols, global_symbols to NULL.
249 Set pending_macros to NULL. Simplify resetting pending_addrmap.
250 Call free_buildysym_compunit.
251 (end_symtab_without_blockvector): Delete. All callers updated.
252 (end_symtab_with_blockvector): Remove redundant call to
253 free_buildsym_compunit.
254 (augment_type_symtab): Remove arg "cust". All callers updated.
255 (buildsym_init): Remove resetting of free_pendings, file_symbols,
256 global_symbols, pending_blocks, pending_macros. Instead make
257 handling consistent with pending_addrmap: Assert value was reset
258 at end of previous symtab building. Initialize context_stack here.
259
55accf4a
DE
2602014-12-16 Doug Evans <xdje42@gmail.com>
261
262 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
263 cp_lookup_symbol_imports. All callers updated.
264
a07e3e18
DE
2652014-12-16 Doug Evans <xdje42@gmail.com>
266
267 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
268 find_type_baseclass_by_name. All callers updated.
269
d01060f0
DE
2702014-12-16 Doug Evans <xdje42@gmail.com>
271
272 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
273 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
274 (print_symbol_info): Delete arg symtab. All callers updated.
275 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
276
25dda427
AA
2772014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
278
279 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
280 "Name" columns. Assure that the output is always indented.
281
beed38b8
JB
2822014-12-16 Joel Brobecker <brobecker@adacore.com>
283
284 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
285 already defined.
286 (linux_enable_event_reporting): Add parameter "attached".
287 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
288 declaration. New function.
289 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
290 (linux_enable_event_reporting): Add new parameter "attached".
291 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
292 nonzero.
293 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
294 Use it. Update function description.
295 (linux_child_post_attach, linux_child_post_startup_inferior):
296 Update call to linux_enable_event_reporting.
297
8fda9068
YQ
2982014-12-16 Yao Qi <yao@codesourcery.com>
299
300 * NEWS: Move some entries to "Changes since GDB 7.8" section.
301
2a546367
YQ
3022014-12-16 Yao Qi <yao@codesourcery.com>
303
304 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
305 ARG_LAST.
306
c9657e70
SM
3072014-12-15 Simon Marchi <simon.marchi@ericsson.com>
308
309 * inferior.c (find_inferior_ptid): New function.
310 * inferior.h (find_inferior_ptid): New declaration.
311 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
312 * corelow.c (core_pid_to_str): Same.
313 * darwin-nat.c (darwin_resume): Same.
314 * infrun.c (fetch_inferior_event): Same.
315 (get_inferior_stop_soon): Same.
316 (handle_inferior_event): Same.
317 (handle_signal_stop): Same.
318 * linux-nat.c (resume_lwp): Same.
319 (stop_wait_callback): Same.
320 * mi/mi-interp.c (mi_new_thread): Same.
321 (mi_thread_exit): Same.
322 * proc-service.c (ps_pglobal_lookup): Same.
323 * record-btrace.c (record_btrace_step_thread): Same.
324 * remote-sim.c (gdbsim_close_inferior): Same.
325 (gdbsim_resume): Same.
326 (gdbsim_stop): Same.
327 * sol2-tdep.c (sol2_core_pid_to_str): Same.
328 * target.c (memory_xfer_partial_1): Same.
329 (default_thread_address_space): Same.
330 * thread.c (thread_change_ptid): Same.
331 (switch_to_thread): Same.
332 (do_restore_current_thread_cleanup): Same.
333
38bcc89d
SM
3342014-12-15 Simon Marchi <simon.marchi@ericsson.com>
335
336 * defs.h (gdb_readline): Constify argument.
337 (gdb_readline_wrapper): Same.
338 (command_line_input): Same.
339 (deprecated_readline_hook): Same.
340 * top.c (deprecated_readline_hook): Same.
341 (gdb_readline): Same.
342 (gdb_readline_wrapper): Same.
343 (command_line_input): Constify argument. Pass prompt_arg to called
344 functions instead of local_prompt, overwriting prompt_arg if necessary.
345 * event-top.h (display_gdb_prompt): Constify argument.
346 * event-top.c (display_gdb_prompt): Same.
347 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
348 if building with Python 3.4 and up.
349
89ed8ea1
SM
3502014-12-15 Simon Marchi <simon.marchi@ericsson.com>
351
352 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
353 os.getcwdu().
354
aacd3e8c
CU
3552014-12-15 Catalin Udma <catalin.udma@freescale.com>
356
357 PR gdb/15684
358 * memattr.c (mem_info_command): Remove "unsigned long" casts.
359
dc4d6886
DE
3602014-12-13 Doug Evans <xdje42@gmail.com>
361
362 * utils.c (make_hex_string): Fix off-by-one error.
363
c1b5a1a6
JB
3642014-12-13 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lang.h (ada_ensure_varsize_limit): Declare.
367 * ada-lang.c (check_size): Remove advance declaration.
368 (ada_ensure_varsize_limit): Renames check_size.
369 Replace calls to check_size by calls to ada_ensure_varsize_limit
370 throughout.
371 * ada-valprint.c (ada_val_print_ref): Add call to
372 ada_ensure_varsize_limit. Add comment explaining why.
373
3c46a02f
JB
3742014-12-13 Joel Brobecker <brobecker@adacore.com>
375
376 * utils.c (make_hex_string): Replace use of sprintf by use of
377 xsnprintf.
378
8e8347b8
JB
3792014-12-13 Joel Brobecker <brobecker@adacore.com>
380
381 * compile/compile-object-load.c (link_callbacks_multiple_definition)
382 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
383 newline at end of warning message.
384
f93b65a0
JB
3852014-12-13 Joel Brobecker <brobecker@adacore.com>
386
387 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
388 new "EXTRA-ARGS" parameter.
389 * configure.ac: If large-file support is disabled in GDB,
390 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
391 * configure: Regenerate.
392
5537b577
JK
3932014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 PR symtab/17642
396 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
397 TYPE if not TYPE_CODE_TYPEDEF.
398
e0782980
JB
3992014-12-13 Joel Brobecker <brobecker@adacore.com>
400
401 PR backtrace/16215:
402 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
403 the frame unwinder must either be the dwarf2_frame_unwind
404 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
405 stack_addr is valid before calling get_frame_base. Throw
406 an error if not valid.
407
ae6a105d
DE
4082014-12-12 Doug Evans <xdje42@gmail.com>
409
410 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
411 result != NULL.
412
59da4d04
DE
4132014-12-12 Doug Evans <xdje42@gmail.com>
414
415 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
416 All callers updated. Rename arg "namespace" to "symbol_name".
417
83827540
DE
4182014-12-12 Doug Evans <xdje42@gmail.com>
419
420 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
421 partial_map_symtabs_matching_filename. All uses updated.
422 (psym_find_pc_sect_compunit_symtab): Renamed from
423 find_pc_sect_compunit_symtab_from_partial. All uses updated.
424 Add function comment.
425 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
426 All uses updated. Add function comment.
427 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
428 Add function comment.
429 (psym_find_last_source_symtab): Renamed from
430 find_last_source_symtab_from_partial. All uses updated.
431 Add function comment.
432 (psym_forget_cached_source_info): Renamed from
433 forget_cached_source_info_partial. All uses updated.
434 Add function comment.
435 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
436 All uses updated. Add function comment.
437 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
438 updated. Add function comment.
439 (psym_expand_symtabs_for_function): Renamed from
440 read_symtabs_for_function. All uses updated. Update function comment.
441 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
442 All uses updated. Add function comment.
443 (psym_expand_symtabs_with_fullname): Renamed from
444 read_psymtabs_with_fullname. All uses updated. Add function comment.
445 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
446 All uses updated. Add function comment.
447 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
448 All uses updated.
449 (psym_expand_symtabs_matching): Renamed from
450 expand_symtabs_matching_via_partial. All uses updated.
451 Add function comment.
452 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
453 Add function comment.
454
bb2ec1b3
TT
4552014-12-12 Phil Muldoon <pmuldoon@redhat.com>
456 Jan Kratochvil <jan.kratochvil@redhat.com>
457 Tom Tromey <tromey@redhat.com>
458
459 * NEWS: Update.
460 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
461 field.
462 * p-lang.c (pascal_language_defn): Update.
463 * opencl-lang.c (opencl_language_defn): Update.
464 * objc-lang.c (objc_language_defn): Update.
465 * m2-lang.c (m2_language_defn): Update.
466 * language.h (struct language_defn) <la_get_compile_instance,
467 la_compute_program>: New fields.
468 * language.c (unknown_language_defn, auto_language_defn)
469 (local_language_defn): Update.
470 * jv-lang.c (java_language_defn): Update.
471 * go-lang.c (go_language_defn): Update.
472 * f-lang.c (f_language_defn): Update.
473 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
474 * dwarf2loc.c (dwarf2_compile_property_to_c)
475 (locexpr_generate_c_location, loclist_generate_c_location): New
476 functions.
477 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
478 * defs.h (enum compile_i_scope_types): New.
479 (enum command_control_type) <compile_control>: New constant.
480 (struct command_line) <control_u>: New field.
481 * d-lang.c (d_language_defn): Update.
482 * compile/compile.c: New file.
483 * compile/compile-c-support.c: New file.
484 * compile/compile-c-symbols.c: New file.
485 * compile/compile-c-types.c: New file.
486 * compile/compile.h: New file.
487 * compile/compile-internal.h: New file.
488 * compile/compile-loc2c.c: New file.
489 * compile/compile-object-load.c: New file.
490 * compile/compile-object-load.h: New file.
491 * compile/compile-object-run.c: New file.
492 * compile/compile-object-run.h: New file.
493 * cli/cli-script.c (multi_line_command_p, print_command_lines)
494 (execute_control_command, process_next_line)
495 (recurse_read_control_structure): Handle compile_control.
496 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
497 * c-lang.c (c_language_defn, cplus_language_defn)
498 (asm_language_defn, minimal_language_defn): Update.
499 * ada-lang.c (ada_language_defn): Update.
500 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
501 New variables.
502 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
503 (HFILES_NO_SRCDIR): Add compile.h.
504 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
505 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
506 (compile.o, compile-c-types.o, compile-c-symbols.o)
507 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
508 (compile-c-support.o): New targets.
509
a2658feb
JK
5102014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
511
512 * s390-linux-tdep.c (s390_gcc_target_options): New function.
513 (s390_gdbarch_init): Add it to gdbarch.
514
3bc3cebe
JK
5152014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
516
517 * linux-tdep.c: Include objfiles.h and infcall.h.
518 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
519 function.
520 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
521
d064d1be
JK
5222014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
523
524 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
525 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
526 translate_register. Now public.
527 (dwarf2_compile_expr_to_ax): Update.
528
af945b75
TT
5292014-12-12 Tom Tromey <tromey@redhat.com>
530 Jan Kratochvil <jan.kratochvil@redhat.com>
531
532 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
533 (dwarf_expr_frame_base): Update caller.
534 (dwarf_expr_frame_base_1): Rename to ...
535 (func_get_frame_base_dwarf_block): ... this and make it public.
536 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
537 callers.
538 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
539
a8fd5589
TT
5402014-12-12 Tom Tromey <tromey@redhat.com>
541
542 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
543 Update.
544 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
545 dwarf2_compile_cfa_to_ax.
546 (dwarf2_compile_cfa_to_ax): Remove.
547 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
548 (dwarf2_compile_cfa_to_ax): Remove.
549
ed12ef62
JK
5502014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
551
552 * infcall.h (call_function_by_hand_dummy): Declare.
553 * infcall.c (call_function_by_hand): Use
554 call_function_by_hand_dummy.
555 (call_function_by_hand_dummy): Rename from call_function_by_hand.
556 Add arguments. Register a destructor.
557
ac04f72b
TT
5582014-12-12 Tom Tromey <tromey@redhat.com>
559 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 * osabi.h (osabi_triplet_regexp): Declare.
562 * osabi.c (struct osabi_names): New.
563 (gdb_osabi_names): Change type to struct osabi_names. Update
564 values.
565 (gdbarch_osabi_name): Update.
566 (osabi_triplet_regexp): New function.
567 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
568 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
569 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
570 set_gdbarch_gnu_triplet_regexp.
571 * gdbarch.sh (gnu_triplet_regexp): New method.
572 * gdbarch.c, gdbarch.h: Rebuild.
573 * arch-utils.h (default_gnu_triplet_regexp): Declare.
574 * arch-utils.c (default_gnu_triplet_regexp): New function.
575
f208eee0
JK
5762014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
577
578 * arch-utils.c (default_infcall_mmap)
579 (default_gcc_target_options): New functions.
580 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
581 (GDB_MMAP_PROT_EXEC): Define.
582 (default_infcall_mmap, default_gcc_target_options): Declare.
583 * gdbarch.h: Rebuild.
584 * gdbarch.c: Rebuild.
585 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
586
233a8fb3
JK
5872014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
590 fields.
591 (pop_dummy_frame): Call the destructor if it exists.
592 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
593 functions.
594 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
595 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
596
f1660027
TT
5972014-12-12 Tom Tromey <tromey@redhat.com>
598
599 * gdbtypes.h (make_unqualified_type): Declare.
600 * gdbtypes.c (make_unqualified_type): New function.
601
de571fc5
TT
6022014-12-12 Tom Tromey <tromey@redhat.com>
603
604 * ui-file.h (ui_file_write_for_put): Declare.
605 * ui-file.c (ui_file_write_for_put): New function.
606 * mi/mi-out.c (do_write): Remove.
607 (mi_out_put): Use ui_file_write_for_put.
608
6dddd6a5
DE
6092014-12-12 Doug Evans <dje@google.com>
610
611 * NEWS: Mention gdb.lookup_objfile.
612 * python/python.c (GdbMethods): Add lookup_objfile.
613 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
614 * python/py-objfile.c: #include "symtab.h".
615 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
616 (objfpy_lookup_objfile_by_name): New function.
617 (objfpy_lookup_objfile_by_build_id): New function.
618 (gdbpy_lookup_objfile): New function.
619
f161c171
MR
6202014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
621
622 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
623 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
624 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
625 macros.
626 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
627 Likewise.
628
71c24708
AA
6292014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
630
631 * completer.c: Include "target.h", "reggroups.h", and
632 "user-regs.h".
633 (reg_or_group_completer): New.
634 * completer.h (reg_or_group_completer): Declare.
635 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
636 the "info registers" and "info all-registers" commands and the
637 dbx-mode "lr" command.
638
f5b95c01
AA
6392014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
640
641 * user-regs.c: Include "arch-utils.h", "command.h", and
642 "cli/cli-cmds.h".
643 (maintenance_print_user_registers): New.
644 (_initialize_user_regs): Register new "maint print user-registers"
645 subcommand.
646 * NEWS: Mention new GDB command "maint print user-registers".
647
3e29f34a
MR
6482014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
649 Maciej W. Rozycki <macro@mips.com>
650 Pedro Alves <pedro@codesourcery.com>
651
652 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
653 remove `predefault' and `invalid_p' initializers.
654 (make_symbol_special): New architecture method.
655 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
656 (objfile, symbol): New declarations.
657 * arch-utils.h (default_elf_make_msymbol_special): Remove
658 prototype.
659 (default_make_symbol_special): New prototype.
660 (default_adjust_dwarf2_addr): Likewise.
661 (default_adjust_dwarf2_line): Likewise.
662 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
663 * arch-utils.c (default_elf_make_msymbol_special): Remove
664 function.
665 (default_make_symbol_special): New function.
666 (default_adjust_dwarf2_addr): Likewise.
667 (default_adjust_dwarf2_line): Likewise.
668 * dwarf2-frame.c (decode_frame_entry_1): Call
669 `gdbarch_adjust_dwarf2_addr'.
670 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
671 * dwarf2read.c (create_addrmap_from_index): Likewise.
672 (process_psymtab_comp_unit_reader): Likewise.
673 (add_partial_symbol): Likewise.
674 (add_partial_subprogram): Likewise.
675 (process_full_comp_unit): Likewise.
676 (read_file_scope): Likewise.
677 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
678 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
679 (read_call_site_scope): Likewise.
680 (dwarf2_ranges_read): Likewise.
681 (dwarf2_record_block_ranges): Likewise.
682 (read_attribute_value): Likewise.
683 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
684 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
685 * elfread.c (elf_symtab_read): Don't call
686 `gdbarch_elf_make_msymbol_special' if unset.
687 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
688 the ISA bit from the PC.
689 * mips-tdep.c (mips_unmake_compact_addr): New function.
690 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
691 address appropriately.
692 (mips_make_symbol_special): New function.
693 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
694 (mips_pc_is_mips16): Likewise.
695 (mips_pc_is_micromips): Likewise.
696 (mips_pc_isa): Likewise.
697 (mips_adjust_dwarf2_addr): New function.
698 (mips_adjust_dwarf2_line): Likewise.
699 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
700 (mips_addr_bits_remove): Likewise.
701 (mips_skip_trampoline_code): Likewise.
702 (mips_write_pc): Don't set the ISA bit.
703 (mips_eabi_push_dummy_call): Likewise.
704 (mips_o64_push_dummy_call): Likewise.
705 (mips_gdbarch_init): Install `mips_make_symbol_special',
706 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
707 handlers.
708 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
709 target-specific symbol address adjustments.
710 * gdbarch.h: Regenerate.
711 * gdbarch.c: Regenerate.
712
21daaaaf
YQ
7132014-12-12 Yao Qi <yao@codesourcery.com>
714
715 PR tdep/14261
716 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
717 'skip_pc'. Remove code skipping prologue instructions, use
718 arm_analyze_prologue instead.
719 (arm_analyze_prologue): Stop the scanning for unrecognized
720 instruction when skipping prologue.
721
f303bc3e
YQ
7222014-12-12 Yao Qi <yao@codesourcery.com>
723
724 * arm-tdep.c (arm_instruction_restores_sp): New function.
725 (arm_analyze_prologue): Call arm_instruction_restores_sp.
726 (arm_in_function_epilogue_p): Move code to
727 arm_instruction_restores_sp.
728
05a6c3c8
DE
7292014-12-11 Doug Evans <xdje42@gmail.com>
730
731 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
732
fe2a438d
DE
7332014-12-11 Doug Evans <xdje42@gmail.com>
734
735 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
736 (symbol *lookup_symbol_via_quick_fns): Ditto.
737 (lookup_symbol_in_objfile): Add forward decl.
738 (lookup_global_symbol_from_objfile): Simplify, call
739 lookup_symbol_in_objfile.
740
540feddf
DE
7412014-12-11 Doug Evans <xdje42@gmail.com>
742
743 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
744
fc126975
SM
7452014-12-10 Simon Marchi <simon.marchi@ericsson.com>
746
747 PR breakpoints/17012
748 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
749 it is marked as persistent.
750
56286edf
DE
7512014-12-10 Doug Evans <xdje42@gmail.com>
752
753 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
754 closer to its subroutines.
755
34ef8452
DE
7562014-12-10 Doug Evans <xdje42@gmail.com>
757
758 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
759
9a80057a
DE
7602014-12-10 Doug Evans <xdje42@gmail.com>
761
762 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 763 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 764
1abf3a14
SM
7652014-12-10 Simon Marchi <simon.marchi@ericsson.com>
766
767 PR gdb/17627
768 * target.c (cleanup_restore_target_terminal): New function.
769 (make_cleanup_restore_target_terminal): New function.
770 * target.h (make_cleanup_restore_target_terminal): New declaration.
771 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
772
d4d1e336
DE
7732014-12-08 Doug Evans <dje@google.com>
774
775 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
776
a0be3e44
DE
7772014-12-08 Doug Evans <dje@google.com>
778
779 * NEWS: Mention gdb.Objfile.owner.
780 * python/py-objfile.c (objfpy_get_owner): New function.
781 (objfile_getset): Add "owner".
782
6c1c7be3
JK
7832014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
784
785 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
786 (lookup_global_symbol_from_objfile): Call it.
787
efad9b6a
JK
7882014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
789
790 Remove const from struct objfile *.
791 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
792 symtab.c, symtab.h: In these files.
793
069bb7ec
AF
7942014-12-05 Andreas From <andreas.from@ericsson.com>
795
796 * MAINTAINERS (Write After Approval): Add "Andreas From"
797
642a8d80
DE
7982014-12-05 Doug Evans <xdje42@gmail.com>
799
800 Revert:
801 PR symtab/17602
802 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
803
86e4ed39
DE
8042014-12-04 Doug Evans <dje@google.com>
805
806 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
807 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
808 (objfile_getset): Add "add_separate_debug_file".
809
7c50a931
DE
8102014-12-04 Doug Evans <dje@google.com>
811
812 * NEWS: Mention gdb.Objfile.build_id.
813 * build-id.c (build_id_bfd_get): Make non-static.
814 * build-id.h (build_id_bfd_get): Add declaration.
815 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
816 (OBJFPY_REQUIRE_VALID): New macro.
817 (objfpy_get_build_id): New function.
818 (objfile_getset): Add "build_id".
819 * utils.c (make_hex_string): New function.
820 * utils.h (make_hex_string): Add declaration.
821
ba715d7f
JK
8222014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
823
824 * block.c (block_lookup_symbol_primary): New function.
825 * block.h (block_lookup_symbol_primary): New declaration.
826 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
827 Call block_lookup_symbol_primary.
828
858339f2
MR
8292014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
830
831 * tramp-frame.h (tramp_frame): Add `validate' member.
832 * tramp-frame.c (tramp_frame_start): Validate trampoline before
833 scanning.
834 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
835 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
836 (mips_linux_o32_sigframe): Initialize `validate' member.
837 (mips_linux_o32_rt_sigframe): Likewise.
838 (mips_linux_n32_rt_sigframe): Likewise.
839 (mips_linux_n64_rt_sigframe): Likewise.
840 (micromips_linux_o32_sigframe): New variable.
841 (micromips_linux_o32_rt_sigframe): Likewise.
842 (micromips_linux_n32_rt_sigframe): Likewise.
843 (micromips_linux_n64_rt_sigframe): Likewise.
844 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
845 (mips_linux_n32n64_sigframe_init): Likewise.
846 (mips_linux_sigframe_validate): New function.
847 (micromips_linux_sigframe_validate): Likewise.
848 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
849
ff1eb2b5
UW
8502014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
851
852 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
853 * sparc-sol2-tdep.c: Include "regset.h".
854 (sparc32_sol2_supply_core_gregset): New function.
855 (sparc32_sol2_collect_core_gregset): Likewise.
856 (sparc32_sol2_supply_core_fpregset): Likewise.
857 (sparc32_sol2_collect_core_fpregset): Likewise.
858 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
859 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
860 tdep->fpregset/sizeof_fpregset.
861 * sparc64-sol2-tdep.c: Include "regset.h".
862 (sparc64_sol2_supply_core_gregset): New function.
863 (sparc64_sol2_collect_core_gregset): Likewise.
864 (sparc64_sol2_supply_core_fpregset): Likewise.
865 (sparc64_sol2_collect_core_fpregset): Likewise.
866 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
867 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
868 tdep->fpregset/sizeof_fpregset.
869
75783939
SM
8702014-12-03 Simon Marchi <simon.marchi@ericsson.com>
871
872 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
873 type.
874
7c5fdd25
DE
8752014-12-02 Doug Evans <dje@google.com>
876
877 * symtab.c (symbol_init_cplus_specific): Delete.
878 (symbol_set_demangled_name): Remove special c++ support.
879 (symbol_get_demangled_name, symbol_set_language): Ditto.
880 * symtab.h (struct cplus_specific): Delete.
881 (struct general_symbol_info) <language_specific>: Remove
882 cplus_specific.
883
29f0c3b7
DE
8842014-12-02 Doug Evans <dje@google.com>
885
886 PR symtab/17602
887 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
888
72998fb3
DE
8892014-12-02 Doug Evans <dje@google.com>
890
891 PR symtab/17591
892 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
893 to strip parameters.
894
422b9917
DE
8952014-12-02 Doug Evans <dje@google.com>
896
897 * dwarf2read.c (peek_die_abbrev): Improve error message text.
898
47c6ee49
DE
8992014-12-02 Doug Evans <dje@google.com>
900
901 * valops.c (do_search_struct_field): Remove remnant of Chill support.
902 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
903
5da3ffc9
SM
9042014-12-02 Simon Marchi <simon.marchi@ericsson.com>
905
906 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
907
162078c8
NB
9082014-12-02 Nick Bull <nicholaspbull@gmail.com>
909
910 * NEWS: Mention new Python events.
911 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
912 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
913 (py-infevents.o): New rule.
914 * doc/observer.texi (inferior_call_pre, inferior_call_post)
915 (memory_changed, register_changed): New observers.
916 * infcall.c (call_function_by_hand): Notify observer before and
917 after inferior call.
918 * python/py-event.h (inferior_call_kind): New enum.
919 (emit_inferior_call_event): New prototype.
920 (emit_register_changed_event): New prototype.
921 (emit_memory_changed_event): New prototype.
922 * python/py-events.h (events_object): New registries
923 inferior_call, memory_changed and register_changed.
924 * python/py-evts.c (gdbpy_initialize_py_events): Add the
925 inferior_call, memory_changed and register_changed registries.
926 * python/py-infevents.c: New.
927 * python/py-inferior.c (python_on_inferior_call_pre)
928 (python_on_inferior_call_post, python_on_register_change)
929 (python_on_memory_change): New functions.
930 (gdbpy_initialize_inferior): Attach python handler to new
931 observers.
932 * python/py-infthread.c(gdbpy_create_ptid_object): New.
933 (thpy_get_ptid) Use gdbpy_create_ptid_object.
934 * python/python-internal.h:
935 (gdbpy_create_ptid_object)
936 (gdbpy_initialize_inferior_call_pre_event)
937 (gdbpy_initialize_inferior_call_post_event)
938 (gdbpy_initialize_register_changed_event)
939 (gdbpy_initialize_memory_changed_event): New prototypes.
940 * python/python.c (_initialize_python): Initialize new events.
941 * valops.c (value_assign): Notify register_changed observer.
942
007baf27
DE
9432014-12-02 Doug Evans <dje@google.com>
944
945 * python/py-infthread.c: Whitespace fixes.
946
d5552aab
AA
9472014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
948
949 * features/Makefile (s390-te-linux64-expedite): Replace
950 non-existant r14 and r15 by r14l and r15l, respectively.
951 * regformats/s390-te-linux64.dat: Regenerate.
952
30b5e341
SM
9532014-12-01 Simon Marchi <simon.marchi@ericsson.com>
954
955 * objfiles.c (allocate_objfile): Remove duplicate comment.
956
ac3d87c0
UW
9572014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
958
959 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
960 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
961 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
962 (supply_gregset, supply_fpregset): Remove.
963 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
964 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
965 and sizeof_gregset.
966
f10c5b19
JK
9672014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 Add add-auto-load-scripts-directory.
970 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
971 * auto-load.c (add_auto_load_dir): New function.
972 (_initialize_auto_load): Install it.
973
f0d4ba1f
MG
9742014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
975
976 Pushed by Joel Brobecker <brobecker@adacore.com>.
977 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
978
18ac6ffc
SC
9792014-11-29 Siva Chandra Reddy <sivachandra@google.com>
980
981 * eval.c (evaluate_subexp): Check that the thread stack temporaries
982 are not already enabled before enabling them.
983
4072f920
YQ
9842014-11-29 Yao Qi <yao@codesourcery.com>
985
986 * arm-tdep.c (arm_analyze_prologue): Move local variables
987 'framereg' and 'framesize' to inner block. Move code to
988 inner block too.
989
6c659fc2
SC
9902014-11-28 Siva Chandra Reddy <sivachandra@google.com>
991
992 * eval.c: Include gdbthread.h.
993 (evaluate_subexp): Enable thread stack temporaries before
994 evaluating a complete expression and clean them up after the
995 evaluation is complete.
996 * gdbthread.h: Include common/vec.h.
997 (value_ptr): New typedef.
998 (VEC (value_ptr)): New vector type.
999 (value_vec): New typedef.
1000 (struct thread_info): Add new fields stack_temporaries_enabled
1001 and stack_temporaries.
1002 (enable_thread_stack_temporaries)
1003 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1004 (get_last_thread_stack_temporary)
1005 (value_in_thread_stack_temporaries): Declare.
1006 * gdbtypes.c (class_or_union_p): New function.
1007 * gdbtypes.h (class_or_union_p): Declare.
1008 * infcall.c (call_function_by_hand): Store return values of class
1009 type as temporaries on stack.
1010 * thread.c (enable_thread_stack_temporaries): New function.
1011 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1012 (get_last_thread_stack_temporary): Likewise.
1013 (value_in_thread_stack_temporaries): Likewise.
1014 * value.c (value_force_lval): New function.
1015 * value.h (value_force_lval): Declare.
1016
f7ca3fcf
PM
10172014-11-28 Pierre Muller <muller@sourceware.org>
1018
1019 Pushed by Joel Brobecker <brobecker@adacore.com>.
1020 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1021 registers.
1022
b2859a9a
UW
10232014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
1024
1025 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1026 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1027 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1028 * m68klinux-nat.c (fetch_core_registers): Remove.
1029 (linux_elf_core_fns): Remove.
1030 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1031
0fa9473f
JB
10322014-11-28 Joel Brobecker <brobecker@adacore.com>
1033
1034 * utils.c (gdb_realpath): Rework comment about handling on
1035 Windows.
1036
6a29c58e
YQ
10372014-11-28 Yao Qi <yao@codesourcery.com>
1038
1039 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1040 rename.
1041 * gnulib/aclocal.m4: Re-generated.
1042 * gnulib/config.in: Re-generated.
1043 * gnulib/configure: Re-generated.
1044 * gnulib/import/Makefile.am: Re-generated.
1045 * gnulib/import/Makefile.in: Re-generated.
1046 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1047 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1048 * import/basename-lgpl.c: New file.
1049 * import/dirname-lgpl.c: New file.
1050 * import/dirname.h: New file.
1051 * import/m4/dirname.m4: New file.
1052 * import/m4/malloc.m4: New file.
1053 * import/m4/rename.m4: New file.
1054 * import/m4/rmdir.m4: New file.
1055 * import/m4/stdio_h.m4: New file.
1056 * import/malloc.c: New file.
1057 * import/rename.c: New file.
1058 * import/rmdir.c: New file.
1059 * import/same-inode.h: New file.
1060 * import/stdio.c: New file.
1061 * import/stdio.in.h: New file.
1062 * import/stripslash.c: New file.
1063
abbffc89
YQ
10642014-11-28 Yao Qi <yao@codesourcery.com>
1065
1066 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1067 and realpath.
1068 * config.in: Re-generated.
1069 * configure: Re-generated.
1070 * utils.c (gdb_realpath): Remove code calling realpath,
1071 canonicalize_file_name and pathconf.
1072 [!_WIN32]: Call canonicalize_file_name.
1073
98399780
YQ
10742014-11-28 Yao Qi <yao@codesourcery.com>
1075
1076 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1077 canonicalize-lgpl.
1078 * aclocal.m4: Re-generated.
1079 * config.in: Re-generated.
1080 * configure: Re-generated.
1081 * import/Makefile.am: Re-generated.
1082 * import/Makefile.in: Re-generated.
1083 * import/m4/gnulib-cache.m4: Re-generated.
1084 * import/m4/gnulib-comp.m4: Re-generated.
1085 * import/canonicalize-lgpl.c: New file.
1086 * import/extra/snippet/_Noreturn.h: New file.
1087 * import/m4/canonicalize.m4: New file.
1088 * import/m4/double-slash-root.m4: New file.
1089 * import/m4/eealloc.m4: New file.
1090 * import/m4/malloca.m4: New file.
1091 * import/m4/nocrash.m4: New file.
1092 * import/m4/stdlib_h.m4: New file.
1093 * import/malloca.c: New file.
1094 * import/malloca.h: New file.
1095 * import/malloca.valgrind: New file.
1096
3332aaf2
YQ
10972014-11-28 Yao Qi <yao@codesourcery.com>
1098
1099 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1100 * config.in, configure: Regenerate.
1101 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1102 code checking HAVE_LSTAT is defined.
1103
f45c62c4
YQ
11042014-11-28 Yao Qi <yao@codesourcery.com>
1105
1106 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1107 lstat.
1108 * gnulib/aclocal.m4: Re-generated.
1109 * gnulib/config.in: Re-generated.
1110 * gnulib/configure: Re-generated.
1111 * gnulib/import/Makefile.am: Re-generated.
1112 * gnulib/import/Makefile.in: Re-generated.
1113 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1114 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1115 * gnulib/import/lstat.c: New file.
1116 * gnulib/import/m4/lstat.m4: New file.
1117
bdca27a2
YQ
11182014-11-28 Yao Qi <yao@codesourcery.com>
1119
1120 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1121 * config.in, configure: Re-generate.
1122 * inf-child.c (inf_child_fileio_readlink): Don't check
1123 HAVE_READLINK is defined.
1124
2196f55f
YQ
11252014-11-28 Yao Qi <yao@codesourcery.com>
1126
1127 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1128 * gnulib/aclocal.m4: Re-generated.
1129 * gnulib/config.in: Likewise.
1130 * gnulib/configure: Likewise.
1131 * gnulib/import/Makefile.am: Likewise.
1132 * gnulib/import/Makefile.in: Likewise.
1133 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1134 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1135 * gnulib/import/dosname.h: New file
1136 * gnulib/import/m4/largefile.m4: New file.
1137 * gnulib/import/m4/readlink.m4: New file.
1138 * gnulib/import/m4/stat.m4: New file.
1139 * gnulib/import/readlink.c: New file.
1140 * gnulib/import/stat.c: New file.
1141
7014e923 11422014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
1143
1144 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1145 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1146
aa489395
SL
11472014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1148
1149 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1150 that there can be only one stack adjustment in the prologue
1151 with tests to detect specific disallowed stack adjustments.
1152
7f1659b5
SL
11532014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1154
1155 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1156 adjustments.
1157
d53c26c7
SL
11582014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1159
1160 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1161 the instruction as well as reading it from memory.
1162 (nios2_match_add): New.
1163 (nios2_match_sub): New.
1164 (nios2_match_addi): New.
1165 (nios2_match_orhi): New.
1166 (nios2_match_stw): New.
1167 (nios2_match_ldw): New.
1168 (nios2_match_rdctl): New.
1169 (enum branch_condition): New.
1170 (nios2_match_branch): New.
1171 (nios2_match_jmpi): New.
1172 (nios2_match_calli): New.
1173 (nios2_match_jmpr): New.
1174 (nios2_match_callr): New.
1175 (nios2_match_break): New.
1176 (nios2_match_trap): New.
1177 (nios2_in_epilogue_p): Rewrite to use new functions.
1178 (nios2_analyze_prologue): Likewise.
1179 (nios2_skip_prologue): Delete unused local limit_pc.
1180 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1181 (nios2_get_next_pc): Rewrite to use new functions.
1182
cac9b138
JK
11832014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1184
1185 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1186
a441dfbc
ST
11872014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1188
1189 Pushed by Joel Brobecker <brobecker@adacore.com>
1190 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1191 elements pi_len by the size of the elements before calling
1192 vm_deallocate.
1193 (inf_validate_task_sc): Likewise, and properly deallocate the
1194 noise array.
1195
4c9e8482
DE
11962014-11-23 Doug Evans <xdje42@gmail.com>
1197
1198 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1199 number and name if present. All callers updated.
1200 (dump_fn_fieldlists): Fix indentation of args.
1201
15ee0bbd
PP
12022014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1203
1204 * MAINTAINERS (Write After Approval): Add myself.
1205
e8af5d7a
JB
12062014-11-23 Joel Brobecker <brobecker@adacore.com>
1207
1208 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1209 to a bp_call_dummy breakpoint type.
1210
a344fc09
PP
12112014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1212
1213 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1214 registering the signal handler.
1215
d64e57fa
PP
12162014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1217
1218 * event-top.h (call_stdin_event_handler_again_p): Declare.
1219 * event-top.c (call_stdin_event_handler_again_p): Define.
1220 (stdin_event_handler): Use it.
1221 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1222 handler again if there is pending input following a
1223 start sequence.
1224
6f9d33d8
PP
12252014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1226
1227 Pushed by Joel Brobecker <brobecker@adacore.com>
1228 * linux-fork.c (checkpoint_command): Print index of new
1229 checkpoint in response message.
1230
88db67ef
YQ
12312014-11-23 Yao Qi <yao@codesourcery.com>
1232
1233 * valprint.c (read_string): Move local variables 'found_nul',
1234 'chunksize' and 'limit' to inner scope. Update comments.
1235
01465b56
DE
12362014-11-22 Doug Evans <xdje42@gmail.com>
1237
1238 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1239 function comment.
1240 (search_symbols): Fix comments and whitespace.
1241
07a1c2c3
DE
12422014-11-22 Doug Evans <xdje42@gmail.com>
1243
1244 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1245
b2a919a8
DE
12462014-11-21 Doug Evans <dje@google.com>
1247
1248 * psymtab.c (psymtab_search_name): Fix whitespace.
1249
278289d5
YQ
12502014-11-21 Yao Qi <yao@codesourcery.com>
1251
1252 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1253 errno.
1254 * gnulib/import/Makefile.am: Re-generated.
1255 * gnulib/import/Makefile.in: Likewise.
1256 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1257
e01e2baa
YQ
12582014-11-21 Yao Qi <yao@codesourcery.com>
1259
1260 * gdb_wchar.h: Include wchar.h and wctype.h.
1261 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1262 include wchar.h and wctype.h.
1263 Don't check HAVE_WCHAR_H.
1264
f0c00af8
YQ
12652014-11-21 Yao Qi <yao@codesourcery.com>
1266
1267 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1268 and wctype-h.
1269 * gnulib/import/Makefile.am: Re-generated.
1270 * gnulib/import/Makefile.in: Likewise.
1271 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1272
0cae13bb
YQ
12732014-11-21 Yao Qi <yao@codesourcery.com>
1274
1275 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1276 memchr.
1277 * gnulib/import/Makefile.am: Re-generated.
1278 * gnulib/import/Makefile.in: Likewise.
1279 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1280
9c232dda
YQ
12812014-11-21 Yao Qi <yao@codesourcery.com>
1282
1283 * common/common-defs.h: Include alloca.h
1284 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1285 * configure: Re-generated.
1286 * defs.h: Remove code handling alloca.
1287 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1288 or not.
1289
00d7f58f
YQ
12902014-11-21 Yao Qi <yao@codesourcery.com>
1291
1292 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1293 alloca.
1294 * gnulib/import/Makefile.am: Re-generated.
1295 * gnulib/import/Makefile.in: Likewise..
1296 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1297
6068ad5d
YQ
12982014-11-21 Yao Qi <yao@codesourcery.com>
1299
1300 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1301 alphabetical order.
1302
45e44d27
JB
13032014-11-21 Joel Brobecker <brobecker@adacore.com>
1304
1305 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1306 flag_unsigned if HIGH_BOUND is constant and negative.
1307
7e7cbeb3
SDJ
13082014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1309
1310 PR breakpoints/10737
1311 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1312 modifier from "struct gdbarch" when compiling without Expat (XML)
1313 support.
1314 (get_syscall_by_number): Likewise.
1315 (get_syscall_by_name): Likewise.
1316 (get_syscall_names): Likewise.
1317
458c8db8
SDJ
13182014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1319
1320 PR breakpoints/10737
1321 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1322 set_xml_syscall_file_name to provide gdbarch.
1323 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1324 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1325 * breakpoint.c (print_it_catch_syscall): Adjust call to
1326 get_syscall_by_number to provide gdbarch.
1327 (print_one_catch_syscall): Likewise.
1328 (print_mention_catch_syscall): Likewise.
1329 (print_recreate_catch_syscall): Likewise.
1330 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1331 and get_syscall_by_name to provide gdbarch.
1332 (catch_syscall_completer): Adjust call to get_syscall_names to
1333 provide gdbarch.
1334 * gdbarch.c: Regenerate.
1335 * gdbarch.h: Likewise.
1336 * gdbarch.sh: Forward declare "struct syscalls_info".
1337 (xml_syscall_file): New variable.
1338 (syscalls_info): Likewise.
1339 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1340 set_xml_syscall_file_name to provide gdbarch.
1341 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1342 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1343 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1344 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1345 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1346 * xml-syscall.c: Include gdbarch.h.
1347 (set_xml_syscall_file_name): Accept gdbarch parameter.
1348 (get_syscall_by_number): Likewise.
1349 (get_syscall_by_name): Likewise.
1350 (get_syscall_names): Likewise.
1351 (my_gdb_datadir): Delete global variable.
1352 (struct syscalls_info) <my_gdb_datadir>: New variable.
1353 (struct syscalls_info) <sysinfo>: Rename variable to
1354 "syscalls_info".
1355 (sysinfo): Delete global variable.
1356 (have_initialized_sysinfo): Likewise.
1357 (xml_syscall_file): Likewise.
1358 (sysinfo_free_syscalls_desc): Rename to...
1359 (syscalls_info_free_syscalls_desc): ... this.
1360 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1361 code to the new layout of "struct syscalls_info".
1362 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1363 "syscalls_info".
1364 (syscall_create_syscall_desc): Likewise.
1365 (syscall_start_syscall): Likewise.
1366 (syscall_parse_xml): Likewise.
1367 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1368 (init_sysinfo): Rename to...
1369 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1370 Adjust function to deal with gdbarch.
1371 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1372 gdbarch as a parameter. Adjust code.
1373 (xml_get_syscall_name): Likewise.
1374 (xml_list_of_syscalls): Likewise.
1375 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1376 (get_syscall_by_number): Likewise.
1377 (get_syscall_by_name): Likewise.
1378 (get_syscall_names): Likewise.
1379 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1380 (get_syscall_by_number): Likewise.
1381 (get_syscall_by_name): Likewise.
1382 (get_syscall_names): Likewise.
1383
43f3e411
DE
13842014-11-20 Doug Evans <xdje42@gmail.com>
1385
1386 Split struct symtab into two: struct symtab and compunit_symtab.
1387 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1388 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1389 to "struct compunit_symtab *". All callers updated.
1390 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1391 "struct symtab *" argument to "struct compunit_symtab *".
1392 All callers updated.
1393 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1394 result to "struct compunit_symtab *". All callers updated.
1395 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1396 Change result to "struct compunit_symtab *". All callers updated.
1397 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1398 hange type to "struct compunit_symtab *". All uses updated.
1399 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1400 Change type to "struct compunit_symtab *". All uses updated.
1401 * buildsym.c (struct buildsym_compunit): New struct.
1402 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1403 (buildsym_compunit): New static global.
1404 (finish_block_internal): Update to fetch objfile from
1405 buildsym_compunit.
1406 (make_blockvector): Delete objfile argument.
1407 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1408 debugformat, producer.
1409 (start_buildsym_compunit): New function.
1410 (free_buildsym_compunit): Renamed from free_subfiles_list.
1411 All callers updated.
1412 (patch_subfile_names): Rewrite to use buildsym_compunit.
1413 (get_compunit_symtab): New function.
1414 (get_macro_table): Delete argument comp_dir. All callers updated.
1415 (start_symtab): Change result to "struct compunit_symtab *".
1416 All callers updated. Create the subfile of the main source file.
1417 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1418 (reset_symtab_globals): Update.
1419 (end_symtab_get_static_block): Update to use buildsym_compunit.
1420 (end_symtab_without_blockvector): Rewrite.
1421 (end_symtab_with_blockvector): Change result to
1422 "struct compunit_symtab *". All callers updated.
1423 Update to use buildsym_compunit. Don't set symtab->dirname,
1424 instead set it in the compunit.
1425 Explicitly make sure main symtab is first in its list.
1426 Set debugformat, producer, blockvector, block_line_section, and
1427 macrotable in the compunit.
1428 (end_symtab_from_static_block): Change result to
1429 "struct compunit_symtab *". All callers updated.
1430 (end_symtab, end_expandable_symtab): Ditto.
1431 (set_missing_symtab): Change symtab argument to
1432 "struct compunit_symtab *". All callers updated.
1433 (augment_type_symtab): Ditto.
1434 (record_debugformat): Update to use buildsym_compunit.
1435 (record_producer): Update to use buildsym_compunit.
1436 * buildsym.h (struct subfile) <dirname>: Delete.
1437 <producer, debugformat>: Delete.
1438 <buildsym_compunit>: New member.
1439 (get_compunit_symtab): Declare.
1440 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1441 from primary_symtab. Change type to "struct compunit_symtab *".
1442 All uses updated.
1443 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1444 All callers updated.
1445 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1446 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1447 symtab. Change type to "struct compunit_symtab *". All uses updated.
1448 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1449 All callers updated.
1450 (dw2_find_last_source_symtab): Ditto.
1451 (dw2_lookup_symbol): Ditto.
1452 (recursively_find_pc_sect_compunit_symtab): Renamed from
1453 recursively_find_pc_sect_symtab. Change result to
1454 "struct compunit_symtab *". All callers updated.
1455 (dw2_find_pc_sect_compunit_symtab): Renamed from
1456 dw2_find_pc_sect_symtab. Change result to
1457 "struct compunit_symtab *". All callers updated.
1458 (get_compunit_symtab): Renamed from get_symtab. Change result to
1459 "struct compunit_symtab *". All callers updated.
1460 (recursively_compute_inclusions): Change type of immediate_parent
1461 argument to "struct compunit_symtab *". All callers updated.
1462 (compute_compunit_symtab_includes): Renamed from
1463 compute_symtab_includes. All callers updated. Rewrite to compute
1464 includes of compunit_symtabs and not symtabs.
1465 (process_full_comp_unit): Update to work with struct compunit_symtab.
1466 (process_full_type_unit): Ditto.
1467 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1468 (dwarf_decode_lines): Remove special case handling of main subfile.
1469 (macro_start_file): Delete argument comp_dir. All callers updated.
1470 (dwarf_decode_macro_bytes): Ditto.
1471 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1472 use struct compunit_symtab.
1473 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1474 * jit.c (finalize_symtab): Build compunit_symtab.
1475 * jv-lang.c (get_java_class_symtab): Change result to
1476 "struct compunit_symtab *". All callers updated.
1477 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1478 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1479 comp_dir. Change type to "struct compunit_symtab *".
1480 All uses updated.
1481 (new_macro_table): Change comp_dir argument to cust,
1482 "struct compunit_symtab *". All callers updated.
1483 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1484 nr_primary_symtabs. All uses updated.
1485 (count_symtabs_and_blocks): Update to handle compunits.
1486 (report_command_stats): Update output, "primary symtabs" renamed to
1487 "compunits".
1488 * mdebugread.c (new_symtab): Change result to
1489 "struct compunit_symtab *". All callers updated.
1490 (parse_procedure): Change type of search_symtab argument to
1491 "struct compunit_symtab *". All callers updated.
1492 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1493 separate loop.
1494 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1495 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1496 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1497 All uses updated.
1498 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1499 All uses updated.
1500 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1501 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1502 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1503 symtab. Change type to "struct compunit_symtab *". All uses updated.
1504 * psymtab.c (psymtab_to_symtab): Change result type to
1505 "struct compunit_symtab *". All callers updated.
1506 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1507 find_pc_sect_symtab_from_partial. Change result type to
1508 "struct compunit_symtab *". All callers updated.
1509 (lookup_symbol_aux_psymtabs): Change result type to
1510 "struct compunit_symtab *". All callers updated.
1511 (find_last_source_symtab_from_partial): Ditto.
1512 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1513 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1514 and macro_table from compunit.
1515 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1516 type to "struct compunit_symtab *". All callers updated.
1517 (debug_qf_lookup_symbol): Ditto.
1518 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1519 debug_qf_find_pc_sect_symtab, change result type to
1520 "struct compunit_symtab *". All callers updated.
1521 * symfile.c (allocate_symtab): Delete objfile argument.
1522 New argument cust.
1523 (allocate_compunit_symtab): New function.
1524 (add_compunit_symtab_to_objfile): New function.
1525 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1526 Change result type to "struct compunit_symtab *". All uses updated.
1527 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1528 Change result type to "struct compunit_symtab *". All uses updated.
1529 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1530 separate loop.
1531 (dump_symtab_1): Update test for primary source symtab.
1532 (maintenance_info_symtabs): Update to handle compunit symtabs.
1533 (maintenance_check_symtabs): Ditto.
1534 * symtab.c (set_primary_symtab): Delete.
1535 (compunit_primary_filetab): New function.
1536 (compunit_language): New function.
1537 (iterate_over_some_symtabs): Change type of arguments "first",
1538 "after_last" to "struct compunit_symtab *". All callers updated.
1539 Update to loop over symtabs in each compunit.
1540 (error_in_psymtab_expansion): Rename symtab argument to cust,
1541 and change type to "struct compunit_symtab *". All callers updated.
1542 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1543 Change result type to "struct compunit_symtab *". All callers updated.
1544 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1545 Change result type to "struct compunit_symtab *". All callers updated.
1546 (find_pc_sect_line): Only loop over symtabs within selected compunit
1547 instead of all symtabs in the objfile.
1548 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1549 <compunit_symtab> New member.
1550 <block_line_section>: Moved to compunit_symtab.
1551 <locations_valid>: Ditto.
1552 <epilogue_unwind_valid>: Ditto.
1553 <macro_table>: Ditto.
1554 <dirname>: Ditto.
1555 <debugformat>: Ditto.
1556 <producer>: Ditto.
1557 <objfile>: Ditto.
1558 <call_site_htab>: Ditto.
1559 <includes>: Ditto.
1560 <user>: Ditto.
1561 <primary>: Delete
1562 (SYMTAB_COMPUNIT): New macro.
1563 (SYMTAB_BLOCKVECTOR): Update definition.
1564 (SYMTAB_OBJFILE): Update definition.
1565 (SYMTAB_DIRNAME): Update definition.
1566 (struct compunit_symtab): New type. Common members among all source
1567 symtabs within a compilation unit moved here. All uses updated.
1568 (COMPUNIT_OBJFILE): New macro.
1569 (COMPUNIT_FILETABS): New macro.
1570 (COMPUNIT_DEBUGFORMAT): New macro.
1571 (COMPUNIT_PRODUCER): New macro.
1572 (COMPUNIT_DIRNAME): New macro.
1573 (COMPUNIT_BLOCKVECTOR): New macro.
1574 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1575 (COMPUNIT_LOCATIONS_VALID): New macro.
1576 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1577 (COMPUNIT_CALL_SITE_HTAB): New macro.
1578 (COMPUNIT_MACRO_TABLE): New macro.
1579 (ALL_COMPUNIT_FILETABS): New macro.
1580 (compunit_symtab_ptr): New typedef.
1581 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1582
005e2509
JB
15832014-11-20 Joel Brobecker <brobecker@adacore.com>
1584
1585 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1586 if the TYPE_CODE of range_type's base type does not match
1587 the TYPE_CODE of encoding_type's base type.
1588
2b0f535a
JB
15892014-11-19 Joel Brobecker <brobecker@adacore.com>
1590
1591 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1592 it starts with '<'.
1593
8908fca5
JB
15942014-11-19 Joel Brobecker <brobecker@adacore.com>
1595
1596 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1597 (ada_is_redundant_index_type_desc): New function.
1598 (to_fixed_array_type): Ignore parallel XA type if redundant.
1599
4a46959e
JB
16002014-11-19 Joel Brobecker <brobecker@adacore.com>
1601
1602 * ada-lang.c (constrained_packed_array_type): Set the length
1603 of the return array as if both bounds where zero if that
1604 returned array's index type is dynamic.
1605
2acf986b
YQ
16062014-11-19 Yao Qi <yao@codesourcery.com>
1607
1608 * config/i386/go32.mh (CC): Remove.
1609
439247b6
DE
16102014-11-18 Doug Evans <xdje42@gmail.com>
1611
1612 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1613 updated.
1614
4d663531
DE
16152014-11-18 Doug Evans <xdje42@gmail.com>
1616
1617 * buildsym.c (buildsym_objfile): New static global.
1618 (buildsym_comp_dir): New static global.
1619 (finish_block_internal): Delete arg objfile. All callers updated.
1620 (finish_block): Delete arg objfile. All callers updated.
1621 (start_subfile): Delete arg dirname. All callers updated.
1622 (patch_subfile_names): Update buildsym_comp_dir.
1623 (get_macro_table): Delete arg objfile. All callers updated.
1624 (start_symtab): New arg objfile. All callers updated.
1625 Rename arg dirname to comp_dir.
1626 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1627 (end_symtab_get_static_block): Delete arg objfile. All callers
1628 updated.
1629 (end_symtab_without_blockvector): Ditto.
1630 (end_symtab_with_blockvector): Ditto.
1631 (end_symtab_from_static_block): Ditto.
1632 (end_symtab): Ditto.
1633 (end_expandable_symtab): Ditto.
1634 (augment_type_symtab): Ditto.
1635 * coffread.c (coff_start_symtab): New arg objfile. All callers
1636 updated.
1637
8435453b
DE
16382014-11-18 Doug Evans <xdje42@gmail.com>
1639
1640 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1641 updated.
1642
ee6f8984
DE
16432014-11-18 Doug Evans <xdje42@gmail.com>
1644
1645 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1646 symtab.dirname updated to use it.
1647
eb822aa6
DE
16482014-11-18 Doug Evans <xdje42@gmail.com>
1649
1650 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1651 symtab.objfile updated to use it.
1652
98387a29
DE
16532014-11-18 Doug Evans <xdje42@gmail.com>
1654
1655 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1656
aff08958
DE
16572014-11-18 Doug Evans <xdje42@gmail.com>
1658
1659 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1660 SYMBOL_OBJFILE.
1661 * findvar.c (default_read_var_value): Ditto.
1662 * jv-lang.c (add_class_symtab_symbol): Ditto.
1663 * parse.c (operator_check_standard): Ditto.
1664 * printcmd.c (address_info): Ditto.
1665 * symtab.c (fixup_symbol_section): Ditto.
1666 (skip_prologue_sal): Ditto.
1667 * tracepoint.c (scope_info): Ditto.
1668 * valops.c (find_function_in_inferior): Ditto.
1669 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1670 * python/py-symbol.c (set_symbol): Ditto.
1671
7bab9b58
DE
16722014-11-18 Doug Evans <xdje42@gmail.com>
1673
1674 * buildsym.c (main_subfile): New static global.
1675 (free_subfiles_list): New function.
1676 (start_symtab): Set main_subfile.
1677 (restart_symtab): Replace init of subfiles, current_subfile with
1678 call to free_subfiles_list.
1679 (watch_main_source_file_lossage): Use main_subfile.
1680 (reset_symtab_globals): Replace init of current_subfile with call
1681 to free_subfiles_list.
1682 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1683 functions, split out from ...
1684 (end_symtab_from_static_block): ... here. Rewrite to call them.
1685
f194fefb
DE
16862014-11-18 Doug Evans <xdje42@gmail.com>
1687
1688 The result of symtab expansion is always a primary symtab.
1689 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1690 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1691 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1692 (psymtab_to_symtab): Add comment and assert.
1693 (map_matching_symbols_psymtab): Remove unnecessary test for
1694 non-primary symtab.
1695
34248c3a
DE
16962014-11-15 Doug Evans <xdje42@gmail.com>
1697
1698 PR symtab/17559
1699 * symtab.c (find_pc_line_symtab): New function.
1700 * symtab.h (find_pc_line_symtab): Declare.
1701 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1702 find_pc_symtab.
1703 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1704 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1705 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1706 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1707 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1708 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1709
2097ae25
DE
17102014-11-15 Doug Evans <xdje42@gmail.com>
1711
1712 * symtab.c (expand_symtab_containing_pc): Renamed from
1713 find_pc_sect_symtab_via_partial. All callers updated.
1714
1ada499f
YQ
17152014-11-15 Yao Qi <yao@codesourcery.com>
1716
1717 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1718
355e2102
JB
17192014-11-14 Joel Brobecker <brobecker@adacore.com>
1720
1721 * common/common-defs.h: Move <stdarg.h> #include ahead of
1722 <stdio.h> #include.
1723
83030110
PA
17242014-11-14 Pedro Alves <palves@redhat.com>
1725
1726 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1727 [!PHONY_ICONV] (gdb_iconv): New function.
1728 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1729
a8719064
DE
17302014-11-13 Doug Evans <dje@google.com>
1731
1732 PR symtab/17591
1733 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1734 "(anonymous namespace)".
1735
60f7655a
DE
17362014-11-13 Doug Evans <dje@google.com>
1737
1738 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1739 infinite loop.
1740
5784b3ca
JK
17412014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1742
1743 * NEWS (maint set target-async): Fix typo.
1744
6218dc4b
PA
17452014-11-12 Pedro Alves <palves@redhat.com>
1746
1747 * infrun.c (enum infwait_states, infwait_state): Delete.
1748
af48d08f
PA
17492014-11-12 Pedro Alves <palves@redhat.com>
1750
1751 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1752 Rewrite stepping over a permanent breakpoint.
1753 (thread_still_needs_step_over, proceed): Don't set
1754 stepping_over_breakpoint for permanent breakpoints.
1755 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1756 single-step breakpoints out of the target on hardware step
1757 targets.
1758 (process_event_stop_test): If stepping a permanent breakpoint
1759 doesn't hit the step-resume breakpoint, delete the step-resume
1760 breakpoint.
1761 (switch_back_to_stepped_thread): Also check if the stepped thread
1762 has advanced already on hardware step targets.
1763 (currently_stepping): Return true if the thread stepped a
1764 breakpoint.
1765
1a853c52
PA
17662014-11-12 Pedro Alves <palves@redhat.com>
1767
1768 Mark locations as permanent, not the whole breakpoint.
1769 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1770 (mark_breakpoints_out): Don't mark permanent breakpoints as
1771 uninserted.
1772 (breakpoint_init_inferior): Use mark_breakpoints_out.
1773 (breakpoint_here_p): Adjust.
1774 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1775 of permanent breakpoints.
1776 (make_breakpoint_permanent): Mark each location as permanent,
1777 instead of marking the breakpoint.
1778 (add_location_to_breakpoint): If the location is permanent, mark
1779 it as such, and as inserted.
1780 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1781 (bp_location_compare, update_global_location_list): Adjust.
1782 (update_breakpoint_locations): Don't make the breakpoint permanent
1783 here.
1784 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1785 breakpoints.
1786 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1787 (struct bp_location) <permanent>: New field.
1788 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1789 reference to bp_permanent.
1790
ae9bb220
PA
17912014-11-12 Pedro Alves <palves@redhat.com>
1792
1793 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1794 * arch-utils.h (default_skip_permanent_breakpoint): New
1795 declaration.
1796 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1797 Install default_skip_permanent_breakpoint as default method.
1798 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1799 (i386_gdbarch_init): Don't install it.
1800 * infrun.c (resume): Assume there's always a
1801 gdbarch_skip_permanent_breakpoint implementation.
1802 * gdbarch.h, gdbarch.c: Regenerate.
1803
015de688
DC
18042014-11-11 Daniel Colascione <dancol@dancol.org>
1805
1806 Warn about cross-PID-namespace debugging.
1807 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1808 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1809 * linux-thread-db.c (check_pid_namespace_match): New function.
1810 (thread_db_inferior_created): Call it.
1811
26a84859
DE
18122014-11-10 Doug Evans <xdje42@gmail.com>
1813
1814 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1815 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1816
712a2e6d
DE
18172014-11-10 Doug Evans <xdje42@gmail.com>
1818
1819 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1820
af3768e9
DE
18212014-11-10 Doug Evans <xdje42@gmail.com>
1822
1823 PR symtab/17564
1824 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1825 (lookup_static_symbol): Move definition to new location and rewrite.
1826 (lookup_symbol_in_objfile): New function.
1827 (lookup_symbol_global_iterator_cb): Call it.
1828
b1f28d99
UW
18292014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1830
1831 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1832
b7a084be
PA
18332014-11-07 Pedro Alves <palves@redhat.com>
1834
1835 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1836 check if we did a "nexti" inside a prologue.
1837 * symtab.c (in_prologue): Delete function.
1838 * symtab.h (in_prologue): Delete declaration.
1839
67be31e5
DE
18402014-11-06 Doug Evans <xdje42@gmail.com>
1841
1842 * symtab.h (lookup_global_symbol): Improve function comment.
1843
08724ab7
DE
18442014-11-06 Doug Evans <xdje42@gmail.com>
1845
1846 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1847 All callers updated.
1848 * symtab.h (lookup_global_symbol): Update decl.
1849 (lookup_static_symbol): Move decl to better location.
1850
d9060ba6
DE
18512014-11-06 Doug Evans <xdje42@gmail.com>
1852
1853 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1854
74016e12
DE
18552014-11-06 Doug Evans <xdje42@gmail.com>
1856
1857 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1858 All callers updated.
1859 (lookup_symbol_in_all_objfiles): Renamed from
1860 lookup_symbol_aux_symtabs. All callers updated.
1861 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1862 All callers updated.
1863 (lookup_symbol_in_objfile_symtabs): Renamed from
1864 lookup_symbol_aux_objfile. All callers updated.
1865
d1a2d36d
DE
18662014-11-06 Doug Evans <xdje42@gmail.com>
1867
1868 * symtab.c (lookup_symbol_in_block): Renamed from
1869 lookup_symbol_aux_block. All callers updated.
1870
24d864bb
DE
18712014-11-06 Doug Evans <xdje42@gmail.com>
1872
1873 * symtab.c (lookup_static_symbol): Renamed from
1874 lookup_static_symbol_aux. All callers updated.
1875 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1876 All callers updated.
1877
358d6ab3
DE
18782014-11-06 Doug Evans <xdje42@gmail.com>
1879
1880 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1881 * block.c (block_lookup_symbol): Use it.
1882 * cp-support.c (make_symbol_overload_list_block): Use it.
1883 * symtab.c (iterate_over_symbols): Use it.
1884
16b2eaa1
DE
18852014-11-06 Doug Evans <xdje42@gmail.com>
1886
1887 * symtab.c (lookup_block_symbol): Moved to ...
1888 * block.c (block_lookup_symbol): ... here and renamed.
1889 All callers updated.
1890 * block.h (block_lookup_symbol): Declare.
1891 * symtab.h (lookup_block_symbol): Delete.
1892
2dd2cd1c
DE
18932014-11-06 Doug Evans <xdje42@gmail.com>
1894
1895 * ada-lang.c (ada_make_symbol_completion_list): Use
1896 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1897 * symtab.c (lookup_objfile_from_block): Ditto.
1898
d4c58915
DE
18992014-11-06 Doug Evans <xdje42@gmail.com>
1900
1901 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1902 TYPE_CODE_STRUCT.
1903
9c1877ea
DE
19042014-11-06 Doug Evans <xdje42@gmail.com>
1905
1906 * objfiles.c (get_objfile_arch): Constify.
1907 * objfiles.h (get_objfile_arch): Update prototype.
1908 * solib.c (solib_global_lookup): Fetch arch from objfile,
1909 not target_gdbarch.
1910
426a4079
SL
19112014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1912
1913 * nios2-tdep.c (wild_insn): Delete.
1914 (profiler_insn, irqentry_insn): Delete.
1915 (nios2_match_sequence): Delete.
1916 (nios2_analyze_prologue): Update comments. Remove matching
1917 of obsolete profiler_insn and irqentry_insn sequences.
1918
ee11262d
AM
19192014-11-05 Alan Modra <amodra@gmail.com>
1920
1921 * charset.c (convert_between_encodings): Shrink obstack using
1922 obstack_blank_fast.
1923 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1924 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1925 to char* before doing pointer arithmetic.
ee11262d 1926
c87e6d00
SM
19272014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1928
1929 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1930
441ef17f
PA
19312014-11-04 Pedro Alves <palves@redhat.com>
1932
1933 * breakpoint.c (breakpoint_thread_match): Delete function.
1934 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1935
e0f52461
SC
19362014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1937
1938 PR c++/17494
1939 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1940 the method args also under EVAL_SKIP when evaluating method
1941 calls under EVAL_SKIP.
1942
a0b4d890
YQ
19432014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1944
1945 * dwarf2loc.c (read_pieced_value): Do big endian
1946 processing only if gdb_regnum is not -1.
1947 (write_pieced_value): Ditto.
1948
19492014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1950
1951 * arm-linux-tdep.c (arm_linux_init_abi): Use
1952 info.byte_order_for_code to choose endianity of breakpoint
1953 instructions snippets.
1954
19552014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1956
1957 * arm-tdep.c (extract_arm_insn): Use
1958 gdbarch_byte_order_for_code to read arm instruction.
1959
e82149ff
DE
19602014-11-02 Doug Evans <xdje42@gmail.com>
1961
1962 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1963
d7ee84f1
DE
19642014-11-02 Doug Evans <xdje42@gmail.com>
1965
1966 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1967 main_subfile before returning.
1968
4f072d17
DE
19692014-10-31 Doug Evans <xdje42@gmail.com>
1970
1971 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1972 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1973
8301c89e
DE
19742014-10-31 Doug Evans <xdje42@gmail.com>
1975
1976 * valops.c (value_cast_pointers): Fix whitespace.
1977 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1978 Ditto.
1979
02be9a71
DE
19802014-10-30 Doug Evans <dje@google.com>
1981
1982 * NEWS: Mention ability add attributes to gdb.Objfile and
1983 gdb.Progspace objects.
1984 * python/py-objfile.c (objfile_object): New member dict.
1985 (objfpy_dealloc): Py_XDECREF dict.
1986 (objfpy_initialize): Initialize dict.
1987 (objfile_getset): Add __dict__.
1988 (objfile_object_type): Set tp_dictoffset member.
1989 * python/py-progspace.c (progspace_object): New member dict.
1990 (pspy_dealloc): Py_XDECREF dict.
1991 (pspy_initialize): Initialize dict.
1992 (pspace_getset): Add __dict__.
1993 (pspace_object_type): Set tp_dictoffset member.
1994
6427bef6
YQ
19952014-10-30 Yao Qi <yao@codesourcery.com>
1996
1997 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1998 replace '\\' with '\\\\'.
1999
f60325be
JB
20002014-10-29 Joel Brobecker <brobecker@adacore.com>
2001
2002 GDB 7.8.1 released.
2003
ab917dfb
PA
20042014-10-29 Pedro Alves <palves@redhat.com>
2005
2006 PR gdb/17408
2007 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2008 instead of assuming a thread with a stepping range is always
2009 stepping.
2010
d3d4baed
PA
20112014-10-29 Pedro Alves <palves@redhat.com>
2012
2013 PR python/17372
2014 * event-top.c (change_line_handler): Call
2015 gdb_rl_callback_handler_remove instead of
2016 rl_callback_handler_remove.
2017 (callback_handler_installed): New global.
2018 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2019 (gdb_rl_callback_handler_reinstall): New functions.
2020 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2021 gdb_rl_callback_handler_install instead of
2022 rl_callback_handler_remove and rl_callback_handler_install.
2023 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2024 instead of rl_callback_handler_remove.
2025 * event-top.h (gdb_rl_callback_handler_remove)
2026 (gdb_rl_callback_handler_install)
2027 (gdb_rl_callback_handler_reinstall): New declarations.
2028 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2029 cleanup function.
2030 (fetch_inferior_event): Install it.
2031 * top.c (gdb_readline_wrapper_line) Call
2032 gdb_rl_callback_handler_remove instead of
2033 rl_callback_handler_remove.
2034 (gdb_readline_wrapper_cleanup): Don't call
2035 rl_callback_handler_install.
2036
6e5d7f39
PA
20372014-10-29 Pedro Alves <palves@redhat.com>
2038
2039 * event-top.c (command_line_handler): Clear the first byte of
2040 linebuffer, when it is first allocated.
2041
551cb6a5
PA
20422014-10-29 Pedro Alves <palves@redhat.com>
2043
2044 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2045 TRY_CATCH.
2046
1e1e619b
PA
20472014-10-29 Pedro Alves <palves@redhat.com>
2048
2049 PR tui/16138
2050 PR tui/17519
2051 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2052 (tui_allowed_p): Delete function.
2053 * tui/tui.c: Include "interps.h".
2054 (tui_enable): Don't use tui_allowed_p. Error out here with
2055 detailed error messages if the TUI is the top level interpreter,
2056 or if output is not a terminal. Use newterm instead of initscr,
2057 and error out if initializing the terminal fails. Also error out if
2058 the terminal doesn't support cursor addressing.
2059 * tui/tui.h (tui_allowed_p): Delete declaration.
2060
6041179a
JB
20612014-10-29 Joel Brobecker <brobecker@adacore.com>
2062
2063 * arm-tdep.c (arm_skip_stack_protector): Return early if
2064 address loaded by first "ldr" instruction does not have
2065 a corresponding minimal symbol. Update comment.
2066
6ae274b7
YQ
20672014-10-29 Yao Qi <yao@codesourcery.com>
2068
2069 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2070 loaded address correctly of ldr instruction.
2071
7f5ef605
PA
20722014-10-28 Pedro Alves <palves@redhat.com>
2073
2074 PR gdb/12623
2075 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2076 field.
2077 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2078 thread's stepped_breakpoint field. Skip if reverse debugging.
2079 Add comment.
2080 (init_thread_stepping_state, handle_signal_stop): Clear the
2081 thread's stepped_breakpoint field.
2082
7d1a114c
PA
20832014-10-27 Pedro Alves <palves@redhat.com>
2084
2085 * remote.c (remote_thread_alive): New, factored out from ...
2086 (remote_thread_alive): ... this.
2087 (remote_update_thread_list): Bail out before deleting threads if
2088 the target returned an empty list, and, the current thread has a
2089 magic/fake ptid.
2090
e5f8a7cc
PA
20912014-10-27 Pedro Alves <palves@redhat.com>
2092
2093 * infrun.c (handle_signal_stop): Also skip handlers when a random
2094 signal arrives while handling a "stepi" or a "nexti". Set the
2095 thread's 'step_after_step_resume_breakpoint' flag.
2096
71e396f9
LM
20972014-10-27 Luis Machado <lgustavo@codesourcery.com>
2098
2099 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2100 (arm_record_ld_st_imm_offset): Reimplement to cover all
2101 load/store cases for ARM opcode 010.
2102 (arm_record_ld_st_multiple): Reimplement to cover all
2103 load/store cases for ARM opcode 100.
2104
3aee438b
DE
21052014-10-26 Doug Evans <xdje42@gmail.com>
2106
2107 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2108
f88cb4b6
DE
21092014-10-26 Doug Evans <xdje42@gmail.com>
2110
2111 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2112 parameter "kind" to "block_index".
2113 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2114 "block_index".
2115 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2116
a023a30f
DE
21172014-10-26 Doug Evans <xdje42@gmail.com>
2118
2119 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2120
4c35218e
DE
21212014-10-26 Doug Evans <xdje42@gmail.com>
2122
2123 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2124 obstack_alloc.
2125
f08e8df3
DE
21262014-10-26 Doug Evans <xdje42@gmail.com>
2127
2128 * parser-defs.h (block_found): Move decl from here ...
2129 * symtab.h (block_found): ... to here.
2130
cf901d3b
DE
21312014-10-26 Doug Evans <xdje42@gmail.com>
2132
2133 * symtab.h (struct field_of_this_result): Fix typo in comment.
2134 (lookup_symbol_in_language): Move function comment here.
2135 (lookup_symbol): Improve function comment.
2136 (basic_lookup_symbol_nonlocal): Ditto.
2137 (lookup_symbol_static, lookup_symbol_global): Ditto.
2138 (lookup_symbol_aux_block): Ditto.
2139 (lookup_language_this): Add function comment.
2140 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2141 function comment.
2142 (lookup_block_symbol): Improve function comment.
2143 (lookup_struct): Fix capitalization in function comment.
2144 (lookup_transparent_type): Add function comment.
2145 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2146 Improve function comment.
2147 (lookup_objfile_from_block): Add function comment.
2148 * symtab.c (lookup_symbol_in_language): Update function comment.
2149 (lookup_symbol, lookup_language_this): Ditto.
2150 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2151 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2152 (basic_lookup_symbol_nonlocal): Ditto.
2153 (lookup_symbol_static, lookup_symbol_global): Ditto.
2154 (lookup_transparent_type, lookup_block_symbol): Ditto.
2155
ff6c39cf
DE
21562014-10-25 Doug Evans <xdje42@gmail.com>
2157
2158 * symtab.c (types_info): Delete forward decl.
2159 (functions_info, variables_info, sources_info): Ditto.
2160 (_initialize_symtab): Rewrite forward decl to use
2161 initialize_file_ftype.
2162
ec201f0c
DE
21632014-10-25 Doug Evans <xdje42@gmail.com>
2164
2165 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2166
ca040673
DE
21672014-10-25 Doug Evans <xdje42@gmail.com>
2168
2169 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2170 of local var child_die.
2171
6f259a23
DB
21722014-10-24 Don Breazeal <donb@codesourcery.com>
2173
2174 * infrun.c (follow_fork_inferior): Update fork message printing
2175 to use target_terminal_ours_for_output instead of
2176 target_terminal_ours, to use _() for all format strings, to print
2177 "vfork" instead of "fork" for vforks, and to add a detach message.
2178 (handle_vfork_child_exec_or_exit): Update message printing to use
2179 target_terminal_ours_for_output instead of target_terminal_ours, to
2180 use _() for all format strings, and to fix some formatting.
2181
09dd9a69
PA
21822014-10-24 Pedro Alves <palves@redhat.com>
2183
2184 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2185 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2186 * config/vax/vax.mh: Delete.
2187 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2188 obsolete configurations section.
2189 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2190 * vax-nat.c: Delete file.
2191
5ab806de
PA
21922014-10-24 Pedro Alves <palves@redhat.com>
2193
2194 * NEWS (Removed targets): Add OS/arch column.
2195
3433cfa5
SC
21962014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2197
2198 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2199 on the arg type of a constructor only if it is of reference type.
2200
96ba4233
SL
22012014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2202
2203 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2204 accessors and constants from nios2 opcodes update.
2205 (nios2_get_next_pc): Likewise.
2206
28153fd3
DE
22072014-10-19 Doug Evans <xdje42@gmail.com>
2208
2209 * gdbthread.h (set_running): Fix comment.
2210 (set_executing, finish_thread_state): Fix comment.
2211
fc9b8e47
DE
22122014-10-18 Doug Evans <xdje42@gmail.com>
2213
2214 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2215
4ffbba72
DE
22162014-10-17 Doug Evans <dje@google.com>
2217
2218 * NEWS: Mention new event gdb.clear_objfiles.
2219 * python/py-event.h (emit_clear_objfiles_event): Clear
2220 * python/py-events.h (events_object): New member clear_objfiles.
2221 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2222 event.
2223 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2224 emit clear_objfiles event.
2225 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2226 function.
2227 (emit_clear_objfiles_event): New function.
2228 (clear_objfiles): New event.
2229 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2230 Declare.
2231 * python/python.c (_initialize_python): Call
2232 gdbpy_initialize_clear_objfiles_event.
2233
d096d8c1
DE
22342014-10-17 Doug Evans <dje@google.com>
2235
2236 * NEWS: Mention new gdb.Objfile.progspace attribute.
2237 * python/py-objfile.c (objfpy_get_progspace): New function.
2238 (objfile_getset): New entry for "progspace".
2239
6c4486e6
PA
22402014-10-17 Pedro Alves <palves@redhat.com>
2241
2242 PR gdb/17471
2243 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2244 returns a copy of the input.
2245 (run_command_1, continue_command, step_1, jump_command)
2246 (signal_command, until_command, advance_command, finish_command)
2247 (attach_command): Adjust and install a cleanup to free the
2248 stripped args.
2249
0ff33695
PA
22502014-10-17 Pedro Alves <palves@redhat.com>
2251
2252 PR gdb/17300
2253 * infcmd.c (continue_1): If continuing all threads in the
2254 foreground, make sure the inferior's terminal settings are put in
2255 effect.
2256
6fdebc3d
PA
22572014-10-17 Pedro Alves <palves@redhat.com>
2258
2259 PR gdb/17472
2260 * annotate.c (annotate_breakpoints_invalid): Use
2261 target_terminal_our_for_output instead of target_terminal_ours.
2262 Give back the terminal to the target.
2263 (annotate_frames_invalid): Likewise.
2264
5842f62a
PA
22652014-10-17 Pedro Alves <palves@redhat.com>
2266
2267 * target.c (enum terminal_state): New enum.
2268 (terminal_state): New global.
2269 (target_terminal_init): New function.
2270 (target_terminal_inferior): Skip if inferior already owns the
2271 terminal.
2272 (target_terminal_ours, target_terminal_ours_for_output): New
2273 functions.
2274 * target.h (target_terminal_init): Convert to function prototype.
2275 (target_terminal_ours_for_output): Convert to function prototype
2276 and tweak comment.
2277 (target_terminal_ours): Convert to function prototype and tweak
2278 comment.
2279 * windows-nat.c (do_initial_windows_stuff): Call
2280 target_terminal_init instead of child_terminal_init_with_pgrp.
2281
32a8097b
PA
22822014-10-17 Pedro Alves <palves@redhat.com>
2283
2284 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2285 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2286 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2287 solib-osf.c.
2288 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2289 * ada-lang.h [__alpha__ && __osf__]
2290 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2291 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2292 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2293 GDB_OSABI_OSF1.
2294 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2295 files.
2296 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2297 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2298 * configure: Regenerate.
2299 * configure.ac: Remove references to osf.
2300 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2301 section. Remove all other references to osf.
2302 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2303 Remove all other references to osf.
2304 * dec-thread.c: Delete file.
2305 * defs.h (GDB_OSABI_OSF1): Delete.
2306 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2307 defined.
2308 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2309 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2310 Delete code.
2311 (unconditionally_kill_inferior)
2312 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2313 * solib-osf.c: Delete file.
2314
80134cf5
PA
23152014-10-17 Pedro Alves <palves@redhat.com>
2316
2317 * remote.c (clear_threads_listing_context): Move higher up, out of
2318 the HAVE_LIBEXPAT guard.
2319
89c7137f
TG
23202014-10-16 Tristan Gingold <gingold@adacore.com>
2321
2322 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2323 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2324 on amd64.
2325
44ee4a52
PA
23262014-10-15 Pedro Alves <palves@redhat.com>
2327
2328 * dec-thread.c (dec_thread_count_gdb_threads)
2329 (dec_thread_add_gdb_thread): Delete.
2330 (dec_thread_update_thread_list): Delete.
2331 (dec_thread_find_new_threads): Rename to ...
2332 (dec_thread_update_thread_list): ... this. Delete GDB-size
2333 threads that are no longer found in dec_thread_list.
2334 (resync_thread_list): Delete.
2335 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2336 resync_thread_list.
2337
ab970af1
PA
23382014-10-15 Pedro Alves <palves@redhat.com>
2339
2340 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2341 * remote.c (remote_update_thread_list): Skip calling prune_threads
2342 if any thread listing method is supported, and instead walk over
2343 the set of remote threads listed, deleting those that are not
2344 found in GDB's thread list.
2345
e8032dde
PA
23462014-10-15 Pedro Alves <palves@redhat.com>
2347
2348 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2349 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2350 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2351 (bsd_uthread_target): Adjust.
2352 * corelow.c (core_open): Adjust.
2353 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2354 (dec_thread_update_thread_list): New function.
2355 (init_dec_thread_ops): Adjust.
2356 * gdbthread.h (prune_threads): New declaration.
2357 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2358 (thread_db_update_thread_list): ... this. Call prune_threads.
2359 (init_thread_db_ops): Adjust.
2360 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2361 (procfs_update_thread_list): ... this. Call prune_threads.
2362 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2363 Adjust.
2364 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2365 (obsd_update_thread_list): ... this. Call prune_threads.
2366 (obsd_add_target): Adjust.
2367 * procfs.c (procfs_target): Adjust.
2368 (procfs_notice_thread): Update comment.
2369 (procfs_find_new_threads): Rename to ...
2370 (procfs_update_thread_list): ... this. Call prune_threads.
2371 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2372 comment.
2373 (ravenscar_wait): Adjust.
2374 (ravenscar_find_new_threads): Rename to ...
2375 (ravenscar_update_thread_list): ... this. Call prune_threads.
2376 (init_ravenscar_thread_ops): Adjust.
2377 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2378 (record_btrace_update_thread_list): ... this. Adjust comment.
2379 (init_record_btrace_ops): Adjust.
2380 * remote.c (remote_threads_info): Rename to ...
2381 (remote_update_thread_list): ... this. Call prune_threads.
2382 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2383 Adjust.
2384 * sol-thread.c (check_for_thread_db): Adjust.
2385 (sol_find_new_threads_callback): Rename to ...
2386 (sol_update_thread_list_callback): ... this.
2387 (sol_find_new_threads): Rename to ...
2388 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2389 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2390 * target-delegates.c: Regenerate.
2391 * target.c (target_find_new_threads): Rename to ...
2392 (target_update_thread_list): ... this.
2393 * target.h (struct target_ops): Rename to_find_new_threads field
2394 to to_update_thread_list.
2395 (target_find_new_threads): Rename to ...
2396 (target_update_thread_list): ... this.
2397 * thread.c (prune_threads): Make extern.
2398 (update_thread_list): Adjust.
2399
6dc54d91
PA
24002014-10-15 Pedro Alves <palves@redhat.com>
2401
2402 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2403 Add describing comment. Return -1 if the qL packet is not
2404 supported.
2405 (struct thread_item, thread_item_t): Move higher up in
2406 the file. Add comments.
2407 (struct threads_parsing_context): Move higher up in
2408 the file, add comments, and remote to ...
2409 (struct threads_listing_context): ... this.
2410 (remote_newthread_step): Don't add the thread to GDB's thread
2411 database here. Instead push it to the thread_listing_context
2412 list.
2413 (remote_find_new_threads): Rename to ...
2414 (remote_get_threads_with_ql): ... this. Add target_ops and
2415 targets_listing_context parameters. Pass down context.
2416 (start_thread): Adjust.
2417 (clear_threads_parsing_context): Rename to ...
2418 (clear_threads_listing_context): ... this.
2419 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2420 remote_threads_info.
2421 (remote_get_threads_with_qthreadinfo): Ditto.
2422 (remote_threads_info): Reimplement.
2423
36728e82
PA
24242014-10-15 Pedro Alves <palves@redhat.com>
2425
2426 * infrun.c (resume): Don't force displaced-stepping for all
2427 single-steps on software single-stepping archs.
2428
34b7e8a6
PA
24292014-10-15 Pedro Alves <palves@redhat.com>
2430
2431 * breakpoint.c (single_step_breakpoints): Delete global.
2432 (insert_single_step_breakpoint): Adjust to store the breakpoint
2433 pointer in the current thread.
2434 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2435 (cancel_single_step_breakpoints): Delete functions.
2436 (breakpoint_has_location_inserted_here): Make extern.
2437 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2438 breakpoint list.
2439 * breakpoint.h (breakpoint_has_location_inserted_here): New
2440 declaration.
2441 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2442 (cancel_single_step_breakpoints): Remove declarations.
2443 * gdbthread.h (struct thread_control_state)
2444 <single_step_breakpoints>: New field.
2445 (delete_single_step_breakpoints)
2446 (thread_has_single_step_breakpoints_set)
2447 (thread_has_single_step_breakpoint_here): New declarations.
2448 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2449 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2450 (singlestep_pc): Delete globals.
2451 (infrun_thread_ptid_changed): Remove references to removed
2452 globals.
2453 (resume_cleanups): Delete the current thread's single-step
2454 breakpoints.
2455 (maybe_software_singlestep): Remove references to removed globals.
2456 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2457 delete_single_step_breakpoints.
2458 (init_wait_for_inferior): Remove references to removed globals.
2459 (delete_thread_infrun_breakpoints): Delete the thread's
2460 single-step breakpoints too.
2461 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2462 single-step breakpoints here.
2463 (delete_stopped_threads_single_step_breakpoints): New function.
2464 (adjust_pc_after_break): Adjust to use
2465 thread_has_single_step_breakpoints_set.
2466 (handle_inferior_event): Remove references to removed globals.
2467 Use delete_stopped_threads_single_step_breakpoints.
2468 (handle_signal_stop): Adjust to per-thread single-step
2469 breakpoints. Swap test order to do cheaper tests first.
2470 (switch_back_to_stepped_thread): Extend debug output. Remove
2471 references to removed globals.
2472 * record-full.c (record_full_wait_1): Adjust to per-thread
2473 single-step breakpoints.
2474 * thread.c (delete_single_step_breakpoints)
2475 (thread_has_single_step_breakpoints_set)
2476 (thread_has_single_step_breakpoint_here): New functions.
2477 (clear_thread_inferior_resources): Also delete the thread's
2478 single-step breakpoints.
2479
5b834a0a
PA
24802014-10-15 Pedro Alves <palves@redhat.com>
2481
2482 * thread.c (delete_thread_breakpoint): New function.
2483 (delete_step_resume_breakpoint)
2484 (delete_exception_resume_breakpoint): Use it.
2485 (delete_at_next_stop): New function.
2486 (clear_thread_inferior_resources): Use delete_at_next_stop.
2487
a1fd2fa5
PA
24882014-10-15 Pedro Alves <palves@redhat.com>
2489
2490 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2491 (breakpoint_inserted_here_p): ... here. Remove special case for
2492 software single-step breakpoints.
2493 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2494 (software_breakpoint_inserted_here_p): ... here. Remove special
2495 case for software single-step breakpoints.
2496 (bp_target_info_copy_insertion_state)
2497 (deprecated_insert_raw_breakpoint)
2498 (deprecated_remove_raw_breakpoint): Delete functions.
2499 * breakpoint.h (deprecated_insert_raw_breakpoint)
2500 (deprecated_remove_raw_breakpoint): Remove declarations.
2501
7c16b83e
PA
25022014-10-15 Pedro Alves <palves@redhat.com>
2503
2504 PR breakpoints/9649
2505 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2506 Delete array globals.
2507 (single_step_breakpoints): New global.
2508 (breakpoint_xfer_memory): Remove special handling for single-step
2509 breakpoints.
2510 (update_breakpoints_after_exec): Delete bp_single_step
2511 breakpoints.
2512 (detach_breakpoints): Remove special handling for single-step
2513 breakpoints.
2514 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2515 (bpstat_stop_status): Add comment.
2516 (bpstat_what, bptype_string, print_one_breakpoint_location)
2517 (adjust_breakpoint_address, init_bp_location): Handle
2518 bp_single_step.
2519 (new_single_step_breakpoint): New function.
2520 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2521 handling for single-step breakpoints.
2522 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2523 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2524 Rewrite.
2525 (detach_single_step_breakpoints, find_single_step_breakpoint):
2526 Delete functions.
2527 (breakpoint_has_location_inserted_here): New function.
2528 (single_step_breakpoint_inserted_here_p): Rewrite.
2529 * breakpoint.h: Remove FIXME.
2530 (enum bptype) <bp_single_step>: New enum value.
2531 (insert_single_step_breakpoint): Update comment.
2532 * infrun.c (resume_cleanups)
2533 (delete_step_thread_step_resume_breakpoint): Remove single-step
2534 breakpoints.
2535 (fetch_inferior_event): Install a cleanup that removes infrun
2536 breakpoints.
2537 (switch_back_to_stepped_thread) <expect thread advanced also>:
2538 Clear step-over info.
2539
0cbcdb96
PA
25402014-10-15 Pedro Alves <palves@redhat.com>
2541
2542 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2543 (delete_thread_infrun_breakpoints): New function, with parts
2544 salvaged from delete_step_resume_breakpoint_callback.
2545 (delete_step_thread_step_resume_breakpoint): Delete.
2546 (for_each_just_stopped_thread_callback_func): New typedef.
2547 (for_each_just_stopped_thread): New function.
2548 (delete_just_stopped_threads_infrun_breakpoints): New function.
2549 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2550 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2551 ... this. Adjust.
2552 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2553
963f9c80
PA
25542014-10-15 Pedro Alves <palves@redhat.com>
2555
2556 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2557 trying to step past a non-steppable watchpoint.
2558 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2559 field.
2560 * infrun.c (struct step_over_info): Add new field
2561 'nonsteppable_watchpoint_p' and adjust comments.
2562 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2563 Adjust.
2564 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2565 (stepping_past_nonsteppable_watchpoint): New function.
2566 (step_over_info_valid_p): Also return true if stepping past a
2567 nonsteppable watchpoint.
2568 (proceed): Adjust call to set_step_over_info. Remove reference to
2569 init_infwait_state.
2570 (init_wait_for_inferior): Remove reference to init_infwait_state.
2571 (waiton_ptid): Delete global.
2572 (struct execution_control_state)
2573 <stepped_after_stopped_by_watchpoint>: Delete field.
2574 (wait_for_inferior, fetch_inferior_event): Always pass
2575 minus_one_ptid to target_wait.
2576 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2577 field.
2578 (init_infwait_state): Delete function.
2579 (handle_inferior_event): Remove infwait_state handling.
2580 (handle_signal_stop) <watchpoints handling>: Adjust after
2581 stepped_after_stopped_by_watchpoint removal. Don't remove
2582 breakpoints here nor set infwait_state. Set the thread's
2583 stepping_over_watchpoint flag, and call keep_going instead.
2584 (keep_going): Handle stepping_over_watchpoint. Adjust
2585 set_step_over_info calls.
2586 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2587 function.
2588
6cc83d2a
PA
25892014-10-15 Pedro Alves <palves@redhat.com>
2590
2591 * infrun.c (step_over_info_valid_p): New function.
2592 (resume): Use step_over_info_valid_p instead of checking the
2593 threads's trap_expected flag.
2594
6979730b
DE
25952014-10-15 Doug Evans <dje@google.com>
2596 Walfred Tedeschi <walfred.tedeschi@intel.com>
2597
2598 PR python/17364
2599 * python/lib/gdb/__init__.py (packages): Add "printer".
2600 * python/lib/gdb/command/bound_registers.py: Moved to ...
2601 * python/lib/gdb/printer/bound_registers.py: ... here.
2602 Add printer to global set of builtin printers. Rename printer from
2603 "bound" to "mpx_bound128".
2604 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2605 registered as global "builtin" printer.
2606 (add_builtin_pretty_printer): New function.
2607 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2608 gdb/printer/__init__.py.
2609
35a49624
IB
26102014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2611
2612 * Makefile.in (SFILES): Remove d-support.c.
2613 (COMMON_OBS): Remove d-support.o.
2614 * d-lang.h (d_parse_symbol): Remove declaration.
2615 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2616 * d-support.c: Remove file.
2617
8fa0c4f8
AA
26182014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2619
2620 * gdb/infrun.c (process_event_stop_test): Apply
2621 gdbarch_addr_bits_remove to longjmp resume address.
2622
3666da81
PA
26232014-10-15 Pedro Alves <palves@redhat.com>
2624
2625 * regformats/microblaze.dat: Delete file.
2626
449aa9df
AKA
26272014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2628
2629 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2630 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2631
ebb8ece2
SC
26322014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2633
2634 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2635 as non-trivial.
2636
82c48ac7
SC
26372014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2638
2639 PR c++/13403
2640 PR c++/15154
2641 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2642 with qualified args.
2643
c40cc657
JB
26442014-10-14 Joel Brobecker <brobecker@adacore.com>
2645
2646 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2647 of the case where the second operand is a pointer.
2648 <BINOP_SUB>: Likewise.
2649
0ea5cda8
SDJ
26502014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2651
2652 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2653 only if it is not NULL.
2654 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2655 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2656 (struct probe_ops) <clear_semaphore>: Likewise.
2657 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2658 not NULL.
2659 (stop_tracing): Likewise, for clear_semaphore.
2660
f7088df3
SDJ
26612014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2662
2663 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2664 using language_c, instead of current_language.
2665
4e1bbde0
DE
26662014-10-13 Doug Evans <dje@google.com>
2667
6ff5a0f6 2668 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2669 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2670 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2671 (pspy_new, pspace_to_pspace_object): Call it.
2672
c780cc2f
JK
26732014-10-13 Miroslav Franc <mfranc@redhat.com>
2674 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 Fix "save breakpoints" for "catch" command.
2677 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2678 newline.
2679
99894e11
JK
26802014-10-12 Miroslav Franc <mfranc@redhat.com>
2681
2682 Fix "save breakpoints" for "disable $bpnum" command.
2683 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2684
3831839c
PA
26852014-10-10 Pedro Alves <palves@redhat.com>
2686
2687 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2688 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2689 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2690 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2691 and been removed.
2692 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2693 * configure.ac: Remove references to IRIX.
2694 * configure.host: Add *-*-irix* to the obsolete hosts section.
2695 Remove all other references to irix.
2696 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2697 Delete files.
2698
cc3afae2
AKA
26992014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2700
2701 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2702 isn't valid, release the tdesc arch data and return NULL.
2703
cdfa0b0a
PA
27042014-10-10 Pedro Alves <palves@redhat.com>
2705
2706 * linux-tdep.c: Include observer.h.
2707 (linux_inferior_data): New global.
2708 (struct linux_info): New structure.
2709 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2710 (get_linux_inferior_data): New functions.
2711 (linux_vsyscall_range): Rename to ...
2712 (linux_vsyscall_range_raw): ... this.
2713 (linux_vsyscall_range): New function; handles caching.
2714 (_initialize_linux_tdep): Register linux_inferior_data. Install
2715 inferior_exit and inferior_appeared observers.
2716
8b9a549d
PA
27172014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 Pedro Alves <palves@redhat.com>
2719
2720 PR symtab/14466
2721 * solib-svr4.c (svr4_read_so_list): Rename to ...
2722 (svr4_current_sos_1): ... this and change the function comment.
2723 (svr4_current_sos): New function.
2724
3437254d
PA
27252014-10-10 Pedro Alves <palves@redhat.com>
2726
2727 * arch-utils.c (default_vsyscall_range): New function.
2728 * arch-utils.h (default_vsyscall_range): New declaration.
2729 * gdbarch.sh (vsyscall_range): New hook.
2730 * gdbarch.h, gdbarch.c: Regenerate.
2731 * linux-tdep.c (linux_vsyscall_range): New function.
2732 (linux_init_abi): Install linux_vsyscall_range as
2733 vsyscall_range gdbarch hook.
2734 * memrange.c (address_in_mem_range): New function.
2735 * memrange.h (address_in_mem_range): New declaration.
2736 * symfile-mem.c (find_vdso_size): Delete function.
2737 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2738
31cc0b80
PA
27392014-10-10 Pedro Alves <palves@redhat.com>
2740
2741 * infrun.c (normal_stop): Fix typo in comment.
2742
3e3286a2
SDJ
27432014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2744
2745 PR tdep/9390
2746 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2747 typo when using logical AND to determine instruction type.
2748
fcbdedf8
YQ
27492014-10-09 Yao Qi <yao@codesourcery.com>
2750
2751 * infrun.c (handle_signal_stop): Remove local variable
2752 'printed'.
2753
db984616
SS
27542014-10-08 Stan Shebs <stan@codesourcery.com>
2755
2756 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2757
3ba37e6c
GB
27582014-10-08 Gary Benson <gbenson@redhat.com>
2759
2760 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2761
a442d071
GB
27622014-10-08 Gary Benson <gbenson@redhat.com>
2763
2764 * common/common-defs.h: Include common-exceptions.h.
2765 * exceptions.h: Do not include common-exceptions.h.
2766
6f1947e8
GB
27672014-10-08 Gary Benson <gbenson@redhat.com>
2768
2769 * common/common-defs.h: Include cleanups.h.
2770 * common/common-exceptions.c: Do not include cleanups.h.
2771 * utils.h: Likewise.
2772
c765fdb9
GB
27732014-10-08 Gary Benson <gbenson@redhat.com>
2774
2775 * ada-lang.c: Do not include exceptions.h.
2776 * ada-valprint.c: Likewise.
2777 * amd64-tdep.c: Likewise.
2778 * auto-load.c: Likewise.
2779 * block.c: Likewise.
2780 * break-catch-throw.c: Likewise.
2781 * breakpoint.c: Likewise.
2782 * btrace.c: Likewise.
2783 * c-lang.c: Likewise.
2784 * cli/cli-cmds.c: Likewise.
2785 * cli/cli-interp.c: Likewise.
2786 * cli/cli-script.c: Likewise.
2787 * completer.c: Likewise.
2788 * corefile.c: Likewise.
2789 * corelow.c: Likewise.
2790 * cp-abi.c: Likewise.
2791 * cp-support.c: Likewise.
2792 * cp-valprint.c: Likewise.
2793 * darwin-nat.c: Likewise.
2794 * dwarf2-frame-tailcall.c: Likewise.
2795 * dwarf2-frame.c: Likewise.
2796 * dwarf2loc.c: Likewise.
2797 * dwarf2read.c: Likewise.
2798 * eval.c: Likewise.
2799 * event-loop.c: Likewise.
2800 * event-top.c: Likewise.
2801 * f-valprint.c: Likewise.
2802 * frame-unwind.c: Likewise.
2803 * frame.c: Likewise.
2804 * gdbtypes.c: Likewise.
2805 * gnu-v2-abi.c: Likewise.
2806 * gnu-v3-abi.c: Likewise.
2807 * guile/scm-auto-load.c: Likewise.
2808 * guile/scm-breakpoint.c: Likewise.
2809 * guile/scm-cmd.c: Likewise.
2810 * guile/scm-frame.c: Likewise.
2811 * guile/scm-lazy-string.c: Likewise.
2812 * guile/scm-param.c: Likewise.
2813 * guile/scm-symbol.c: Likewise.
2814 * guile/scm-type.c: Likewise.
2815 * hppa-hpux-tdep.c: Likewise.
2816 * i386-tdep.c: Likewise.
2817 * inf-loop.c: Likewise.
2818 * infcall.c: Likewise.
2819 * infcmd.c: Likewise.
2820 * infrun.c: Likewise.
2821 * interps.c: Likewise.
2822 * interps.h: Likewise.
2823 * jit.c: Likewise.
2824 * linespec.c: Likewise.
2825 * linux-nat.c: Likewise.
2826 * linux-thread-db.c: Likewise.
2827 * m32r-rom.c: Likewise.
2828 * main.c: Likewise.
2829 * memory-map.c: Likewise.
2830 * mi/mi-cmd-break.c: Likewise.
2831 * mi/mi-cmd-stack.c: Likewise.
2832 * mi/mi-interp.c: Likewise.
2833 * mi/mi-main.c: Likewise.
2834 * monitor.c: Likewise.
2835 * nto-procfs.c: Likewise.
2836 * objc-lang.c: Likewise.
2837 * p-valprint.c: Likewise.
2838 * parse.c: Likewise.
2839 * ppc-linux-tdep.c: Likewise.
2840 * printcmd.c: Likewise.
2841 * probe.c: Likewise.
2842 * python/py-auto-load.c: Likewise.
2843 * python/py-breakpoint.c: Likewise.
2844 * python/py-cmd.c: Likewise.
2845 * python/py-finishbreakpoint.c: Likewise.
2846 * python/py-frame.c: Likewise.
2847 * python/py-framefilter.c: Likewise.
2848 * python/py-function.c: Likewise.
2849 * python/py-gdb-readline.c: Likewise.
2850 * python/py-inferior.c: Likewise.
2851 * python/py-infthread.c: Likewise.
2852 * python/py-lazy-string.c: Likewise.
2853 * python/py-linetable.c: Likewise.
2854 * python/py-param.c: Likewise.
2855 * python/py-prettyprint.c: Likewise.
2856 * python/py-symbol.c: Likewise.
2857 * python/py-type.c: Likewise.
2858 * python/py-value.c: Likewise.
2859 * python/python-internal.h: Likewise.
2860 * python/python.c: Likewise.
2861 * record-btrace.c: Likewise.
2862 * record-full.c: Likewise.
2863 * regcache.c: Likewise.
2864 * remote-fileio.c: Likewise.
2865 * remote-mips.c: Likewise.
2866 * remote.c: Likewise.
2867 * rs6000-aix-tdep.c: Likewise.
2868 * rs6000-nat.c: Likewise.
2869 * skip.c: Likewise.
2870 * solib-darwin.c: Likewise.
2871 * solib-dsbt.c: Likewise.
2872 * solib-frv.c: Likewise.
2873 * solib-ia64-hpux.c: Likewise.
2874 * solib-spu.c: Likewise.
2875 * solib-svr4.c: Likewise.
2876 * solib.c: Likewise.
2877 * spu-tdep.c: Likewise.
2878 * stack.c: Likewise.
2879 * stap-probe.c: Likewise.
2880 * symfile-mem.c: Likewise.
2881 * symmisc.c: Likewise.
2882 * target.c: Likewise.
2883 * thread.c: Likewise.
2884 * top.c: Likewise.
2885 * tracepoint.c: Likewise.
2886 * tui/tui-interp.c: Likewise.
2887 * typeprint.c: Likewise.
2888 * utils.c: Likewise.
2889 * valarith.c: Likewise.
2890 * valops.c: Likewise.
2891 * valprint.c: Likewise.
2892 * value.c: Likewise.
2893 * varobj.c: Likewise.
2894 * windows-nat.c: Likewise.
2895 * xml-support.c: Likewise.
2896
484933d1
MR
28972014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2898
2899 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2900 name implies.
2901 (extended_mips16_next_pc): Update accordingly.
2902
ab50adb6
MR
29032014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2904
2905 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2906 function.
2907 (micromips_instruction_is_compact_branch): Likewise.
2908 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2909 or a compact jump, reaching a jump delay slot, or seeing a
2910 second non-prologue instruction.
2911 (micromips_scan_prologue): Also terminate scanning upon seeing a
2912 compact branch or jump, or reaching a branch or jump delay slot.
2913 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2914 or jump delay slot, or seeing a second non-prologue instruction.
2915 (mips32_instruction_has_delay_slot): Retain instruction
2916 examination code only, update arguments accordingly and move
2917 instruction fetch pieces to...
2918 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2919 (micromips_instruction_has_delay_slot): Likewise and to...
2920 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2921 (mips16_instruction_has_delay_slot): Likewise and to...
2922 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2923 (mips_single_step_through_delay): Update accordingly.
2924 (mips_adjust_breakpoint_address): Likewise.
2925
ae790652
MR
29262014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2927
2928 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2929 !mustbe32 also return 1 for 32-bit instructions.
2930 (mips16_instruction_has_delay_slot): Likewise. Add an
2931 explanatory comment.
2932
9b807e7b
MR
29332014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2934
2935 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2936 symbols special.
2937
0d5ed153
MR
29382014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2939
2940 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2941 update comments.
2942 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2943 for the breakpoint's address. Don't preinitialize `placed_size'.
2944 (insert_bp_location): Set `reqstd_address' rather than
2945 `placed_address'.
2946 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2947 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2948 address.
2949 (bkpt_remove_location): Likewise.
2950 (deprecated_insert_raw_breakpoint): Likewise.
2951 (deprecated_remove_raw_breakpoint): Likewise.
2952 (find_single_step_breakpoint): Likewise.
2953 * mem-break.c (default_memory_insert_breakpoint): Use
2954 `reqstd_address' for the breakpoint's address. Don't set
2955 `placed_address' or `placed_size' if breakpoint contents couldn't
2956 have been determined.
2957 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2958 the breakpoint's address.
2959 (remote_insert_hw_breakpoint): Likewise. Don't set
2960 `placed_address' or `placed_size' if breakpoint couldn't have been
2961 set.
2962 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2963 `reqstd_address' for the breakpoint's address.
2964 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2965 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2966 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2967 * microblaze-linux-tdep.c
2968 (microblaze_linux_memory_remove_breakpoint): Likewise.
2969 * monitor.c (monitor_insert_breakpoint): Likewise.
2970 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2971 (procfs_insert_hw_breakpoint): Likewise.
2972 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2973 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2974 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2975 * remote-mips.c (mips_insert_breakpoint): Likewise.
2976 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2977
3e871532
LM
29782014-10-03 Luis Machado <lgustavo@codesourcery.com>
2979
2980 * valops.c (value_assign): Check for bit field assignments
2981 before calling architecture-specific register value
2982 conversion functions.
2983
ec48dc8b
PM
29842014-10-03 Pierre Muller <muller@sourceware.org>
2985
2986 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2987
b57bacec
PA
29882014-10-02 Pedro Alves <palves@redhat.com>
2989
2990 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2991 threads_are_executing.
2992 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2993 describing comment.
2994 * gdbthread.h (threads_are_executing): Declare.
2995 (handle_signal_stop) <random signals>: Don't print about the
2996 signal here if stopping.
2997 (end_stepping_range): Don't notify observers here.
2998 (normal_stop): Update the thread list. If stopped by a random
2999 signal or a stepping range ended, notify observers.
3000 * thread.c (threads_executing): New global.
3001 (init_thread_list): Clear 'threads_executing'.
3002 (set_executing): Set or clear 'threads_executing'.
3003 (threads_are_executing): New function.
3004 (update_threads_executing): New function.
3005 (update_thread_list): Use it.
3006
13fd3ff3
PA
30072014-10-02 Pedro Alves <palves@redhat.com>
3008
3009 PR breakpoints/17431
3010 * breakpoint.c (update_breakpoints_after_exec): Don't create
3011 overlay, longjmp, std terminate nor exception breakpoints here.
3012
32990ada
PA
30132014-10-02 Pedro Alves <palves@redhat.com>
3014
3015 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3016 Adjust comments.
3017 * inferior.c (find_inferior_for_program_space): Give preference to
3018 the current inferior.
3019 * inferior.h (find_inferior_for_program_space): Update comment.
3020 * progspace.c (switch_to_program_space_and_thread): Prefer the
3021 current inferior if it's bound to the program space requested. If
3022 the inferior found doesn't have a PID yet, don't bother looking up
3023 a thread.
3024 * progspace.h (switch_to_program_space_and_thread): Adjust
3025 comment.
3026 * thread.c (any_thread_of_process, any_live_thread_of_process):
3027 Give preference to the current thread.
3028
0fec99e8
PA
30292014-10-01 Pedro Alves <palves@redhat.com>
3030
3031 * breakpoint.c (insert_bp_location): Error out if inserting a
3032 software breakpoint at a read-only address.
3033 * target.c (memory_xfer_check_region): New function, factored out
3034 from ...
3035 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3036 ULONGEST.
3037 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3038 against the memory region attributes.
3039
2ddf4301
SM
30402014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3041
3042 * NEWS: Announce new exit-code field in -list-thread-groups
3043 output.
3044 * inferior.c (exit_inferior_1): Don't clear exit code.
3045 (inferior_appeared): Clear exit code.
3046 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3047 code.
3048
5fdeec1d
PA
30492014-10-01 Pedro Alves <palves@redhat.com>
3050
3051 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3052 GENERATED" along with emacs/vi read-only markers.
3053 * regformats/aarch64.dat: Regenerate.
3054 * regformats/arm-with-iwmmxt.dat: Regenerate.
3055 * regformats/arm-with-neon.dat: Regenerate.
3056 * regformats/arm-with-vfpv2.dat: Regenerate.
3057 * regformats/arm-with-vfpv3.dat: Regenerate.
3058 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3059 * regformats/i386/amd64-avx.dat: Regenerate.
3060 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3061 * regformats/i386/amd64-avx512.dat: Regenerate.
3062 * regformats/i386/amd64-linux.dat: Regenerate.
3063 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3064 * regformats/i386/amd64-mpx.dat: Regenerate.
3065 * regformats/i386/amd64.dat: Regenerate.
3066 * regformats/i386/i386-avx-linux.dat: Regenerate.
3067 * regformats/i386/i386-avx.dat: Regenerate.
3068 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3069 * regformats/i386/i386-avx512.dat: Regenerate.
3070 * regformats/i386/i386-linux.dat: Regenerate.
3071 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3072 * regformats/i386/i386-mmx.dat: Regenerate.
3073 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3074 * regformats/i386/i386-mpx.dat: Regenerate.
3075 * regformats/i386/i386.dat: Regenerate.
3076 * regformats/i386/x32-avx-linux.dat: Regenerate.
3077 * regformats/i386/x32-avx.dat: Regenerate.
3078 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3079 * regformats/i386/x32-avx512.dat: Regenerate.
3080 * regformats/i386/x32-linux.dat: Regenerate.
3081 * regformats/i386/x32.dat: Regenerate.
3082 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3083 * regformats/mips-dsp-linux.dat: Regenerate.
3084 * regformats/mips-linux.dat: Regenerate.
3085 * regformats/mips64-dsp-linux.dat: Regenerate.
3086 * regformats/mips64-linux.dat: Regenerate.
3087 * regformats/nios2-linux.dat: Regenerate.
3088 * regformats/rs6000/powerpc-32.dat: Regenerate.
3089 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3090 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3091 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3092 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3093 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3094 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3095 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3096 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3097 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3098 * regformats/s390-linux32.dat: Regenerate.
3099 * regformats/s390-linux32v1.dat: Regenerate.
3100 * regformats/s390-linux32v2.dat: Regenerate.
3101 * regformats/s390-linux64.dat: Regenerate.
3102 * regformats/s390-linux64v1.dat: Regenerate.
3103 * regformats/s390-linux64v2.dat: Regenerate.
3104 * regformats/s390-te-linux64.dat: Regenerate.
3105 * regformats/s390x-linux64.dat: Regenerate.
3106 * regformats/s390x-linux64v1.dat: Regenerate.
3107 * regformats/s390x-linux64v2.dat: Regenerate.
3108 * regformats/s390x-te-linux64.dat: Regenerate.
3109 * regformats/tic6x-c62x-linux.dat: Regenerate.
3110 * regformats/tic6x-c62x.dat: Regenerate.
3111 * regformats/tic6x-c64x-linux.dat: Regenerate.
3112 * regformats/tic6x-c64x.dat: Regenerate.
3113 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3114 * regformats/tic6x-c64xp.dat: Regenerate.
3115
db74e4ba
PA
31162014-10-01 Pedro Alves <palves@redhat.com>
3117
3118 * features/Makefile: Update comments.
3119 (XMLTOC): List all xml files we build C files from.
3120 (clean-cfiles): New rule.
3121
d63f2f84
PA
31222014-10-01 Pedro Alves <palves@redhat.com>
3123
3124 * features/i386/amd64-avx512-linux.c: Regenerate.
3125 * features/i386/amd64-avx512.c: Regenerate.
3126 * features/i386/x32-avx512-linux.c: Regenerate.
3127 * features/i386/x32-avx512.c: Regenerate.
3128
20ad026d
PA
31292014-10-01 Pedro Alves <palves@redhat.com>
3130
3131 * features/Makefile (WHICH): Remove arm-with-m,
3132 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3133
acc9fe45
PA
31342014-10-01 Pedro Alves <palves@redhat.com>
3135
3136 * features/Makefile (clean): New rule.
3137
e001e535
PA
31382014-10-01 Pedro Alves <palves@redhat.com>
3139
3140 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3141 (zmm14h): Add missing end quotes.
3142
bdc14417
PA
31432014-10-01 Pedro Alves <palves@redhat.com>
3144
3145 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3146 * features/aarch64.c: Regenerate.
3147
d83ad864
DB
31482014-09-30 Don Breazeal <donb@codesourcery.com>
3149
3150 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3151 code so as to work with follow_fork_inferior.
3152 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3153 (inf_ttrace_create_inferior): Remove reference to
3154 inf_ttrace_vfork_ppid.
3155 (inf_ttrace_attach): Ditto.
3156 (inf_ttrace_detach): Ditto.
3157 (inf_ttrace_kill): Use current_inferior instead of
3158 inf_ttrace_vfork_ppid.
3159 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3160 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3161 inferior away from the parent.
3162 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3163 target_follow_fork.
3164 (follow_fork_inferior): New function.
3165 (follow_inferior_reset_breakpoints): Make function static.
3166 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3167 * linux-nat.c (linux_child_follow_fork): Move target-independent
3168 code to infrun.c:follow_fork_inferior.
3169
29082443
AA
31702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3171
3172 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3173 * gdbarch.c: Regenerate.
3174 * gdbarch.h: Likewise.
3175 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3176 gdbarch method 'regset_from_core_section'.
3177 (get_core_register_section): Remove handling for the case that
3178 regset == NULL and regset_from_core_section is defined.
3179 (get_core_registers): Drop check for deleted method.
3180 * procfs.c (procfs_do_thread_registers): Adjust comment.
3181
f968fe80
AA
31822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3183
3184 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3185 (linux_nat_make_corefile_notes): Remove.
3186 (linux_target_install_ops): Do not set target method
3187 'make_corefile_notes'.
3188 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3189 Remove field.
3190 (linux_corefile_thread_callback): Instead of args->collect, call
3191 linux_collect_thread_registers.
3192 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3193 NULL unless there is a regset iterator.
3194 (linux_make_corefile_notes_1): Remove.
3195 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3196 by linux_make_corefile_notes.
3197 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3198
174ad59a
AA
31992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3200
3201 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3202 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3203 Remove.
3204 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3205
97094034
AA
32062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3207
3208 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3209 (xtensa_iterate_over_regset_sections): New.
3210 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3211
f73d3ce7
AA
32122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3213
3214 * vax-tdep.c (vax_regset_from_core_section): Remove.
3215 (vax_iterate_over_regset_sections): New.
3216 (vax_gdbarch_init): Adjust gdbarch initialization.
3217
cb24567a
AA
32182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3219
3220 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3221 (tilegx_regset_from_core_section): Remove.
3222 (tilegx_iterate_over_regset_sections): New.
3223 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3224
e5139de8
AA
32252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3226
3227 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3228 (sparc_iterate_over_regset_sections): New.
3229 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3230 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3231 targets.
3232 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3233 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3234 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3235 target method 'make_corefile_notes'.
3236
c6d41a6f
AA
32372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3238
3239 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3240 'sizeof_gregset' and 'sizeof_fpregset'.
3241 * sh-tdep.c (sh_regset_from_core_section): Remove.
3242 (sh_iterate_over_regset_sections): New.
3243 (sh_gdbarch_init): Adjust gdbarch initialization.
3244 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3245 sizeof_fpregset.
3246 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3247 'sizeof_gregset'.
3248
9845a0b5
AA
32492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3250
3251 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3252 (score7_linux_iterate_over_regset_sections): New.
3253 (score_gdbarch_init): Adjust gdbarch initialization.
3254
23ea9aeb
AA
32552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3256
3257 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3258 FreeBSD targets.
3259 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3260 method 'make_corefile_notes'.
3261 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3262 (ppcfbsd_regset_from_core_section): Remove.
3263 (ppcfbsd_iterate_over_regset_sections): New.
3264 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3265 initialization.
3266 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3267 (ppcnbsd_iterate_over_regset_sections): New.
3268 (ppcnbsd_init_abi): Adjust.
3269 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3270 (ppcobsd_iterate_over_regset_sections): New.
3271 (ppcobsd_init_abi): Adjust.
3272 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3273 (rs6000_aix_iterate_over_regset_sections): New.
3274 (rs6000_aix_init_osabi): Adjust.
3275
c5b8d704
AA
32762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3277
3278 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3279 (nios2_regset_from_core_section): Remove.
3280 (nios2_iterate_over_regset_sections): New.
3281 (nios2_linux_init_abi): Adjust gdbarch initialization.
3282
3636e608
AA
32832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284
3285 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3286 (am33_iterate_over_regset_sections): New.
3287 (am33_linux_init_osabi): Adjust gdbarch initialization.
3288
d4036235
AA
32892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3290
3291 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3292 (mips_linux_iterate_over_regset_sections): New.
3293 (mips_linux_init_abi): Adjust gdbarch initialization.
3294 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3295 (mips64obsd_iterate_over_regset_sections): New.
3296 (mips64obsd_init_abi): Adjust.
3297 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3298 (mipsnbsd_iterate_over_regset_sections): New.
3299 (mipsnbsd_init_abi): Adjust.
3300
b61ddd6e
AA
33012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3302
3303 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3304 (m88k_iterate_over_regset_sections): New.
3305 (m88k_gdbarch_init): Adjust gdbarch initialization.
3306
55a2906a
AA
33072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3308
3309 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3310 (ia64_linux_iterate_over_regset_sections): New.
3311 (ia64_linux_init_abi): Adjust gdbarch initialization.
3312
022c98ab
AA
33132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3314
3315 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3316 (m68kbsd_iterate_over_regset_sections): New.
3317 (m68kbsd_init_abi): Adjust gdbarch initialization.
3318 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3319 (m68k_linux_iterate_over_regset_sections): New.
3320 (m68k_linux_init_abi): Adjust gdbarch initialization.
3321
5fac247f
AA
33222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3323
3324 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3325 (m32r_linux_regset_from_core_section): Remove.
3326 (m32r_linux_iterate_over_regset_sections): New.
3327 (m32r_linux_init_abi): Adjust gdbarch initialization.
3328
490496c3
AA
33292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3330
3331 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3332 (amd64obsd_iterate_over_regset_sections): New.
3333 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3334 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3335 Remove.
3336 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3337 regset_from_core_section initialization.
3338 * i386-tdep.c (i386_regset_from_core_section): Remove.
3339 (i386_iterate_over_regset_sections): New.
3340 (i386_gdbarch_init): Adjust gdbarch initialization.
3341 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3342 (i386_iterate_over_regset_sections): New prototype.
3343 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3344 Remove.
3345 (i386obsd_aout_iterate_over_regset_sections): New.
3346 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3347 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3348 targets.
3349 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3350 (amd64fbsd_init_abi): Call fbsd_init_abi.
3351 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3352 (i386fbsd4_init_abi): Call fbsd_init_abi.
3353 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3354 target method 'make_corefile_notes'.
3355 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3356
50c5eb53
AA
33572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3358
3359 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3360 (hppa_hpux_iterate_over_regset_sections): New.
3361 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3362 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3363 (hppa_linux_iterate_over_regset_sections): New.
3364 (hppa_linux_init_abi): Adjust.
3365 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3366 (hppanbsd_iterate_over_regset_sections): New.
3367 (hppanbsd_init_abi): Adjust.
3368 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3369 (hppaobsd_iterate_over_regset_sections): New.
3370 (hppaobsd_init_abi): Adjust.
3371
66afae4f
AA
33722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3373
3374 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3375 (frv_linux_iterate_over_regset_sections): New.
3376 (frv_linux_init_abi): Adjust gdbarch initialization.
3377
ed09174e
AA
33782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3379
3380 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3381 (armbsd_iterate_over_regset_sections): New prototype.
3382 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3383 (armbsd_iterate_over_regset_sections): New.
3384 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3385 initialization.
3386
dff2166e
AA
33872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3388
3389 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3390 (alpha_linux_iterate_over_regset_sections): New.
3391 (alpha_linux_init_abi): Adjust gdbarch initialization.
3392 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3393 prototype.
3394 (alphanbsd_iterate_over_regset_sections): New prototype.
3395
4108500a
AA
33962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3397
3398 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3399 Remove.
3400 (aarch64_linux_iterate_over_regset_sections): New.
3401 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3402
a904c024
AA
34032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3404
3405 * fbsd-tdep.c: New file.
3406 * fbsd-tdep.h: New file.
3407 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3408 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3409 (ALLDEPFILES): Add fbsd-tdep.c.
3410
8f0435f7
AA
34112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3412
3413 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3414 parameter.
3415 * gdbarch.h: Regenerate.
3416 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3417 iterator.
3418 (get_core_register_section): Add parameter 'regset' and use it, if
3419 set. Add parameter 'min_size' and verify the bfd section size
3420 against it.
3421 (get_core_registers_cb): Add parameter 'regset' and pass it to
3422 get_core_register section. For the "standard" register sections
3423 ".reg" and ".reg2", set an appropriate default for human_name.
3424 (get_core_registers): Don't abort when the gdbarch has an iterator
3425 but no regset_from_core_section. Add NULL/0 for parameters
3426 'regset'/'min_size' in calls to get_core_register_section.
3427 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3428 'regset' and use it instead of calling the
3429 regset_from_core_section gdbarch method.
3430 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3431 * i386-tdep.c (i386_supply_xstateregset)
3432 (i386_collect_xstateregset, i386_xstateregset): Moved to
3433 i386-linux-tdep.c.
3434 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3435 .reg-xstate.
3436 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3437 core file support only if the regset iterator hasn't been set.
3438 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3439 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3440 Moved from i386-tdep.c and renamed to *_linux*.
3441 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3442 each callback invocation. Allow any .reg-xstate size when reading
3443 from a core file.
3444 * amd64-tdep.c (amd64_supply_xstateregset)
3445 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3446 amd64-linux-tdep.c.
3447 (amd64_regset_from_core_section): Remove.
3448 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3449 install an amd64-specific regset_from_core_section gdbarch method.
3450 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3451 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3452 Moved from amd64-tdep.c and renamed to *_linux*.
3453 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3454 to each callback invocation. Allow any .reg-xstate size when
3455 reading from a core file.
3456 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3457 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3458 each callback invocation.
3459 (arm_linux_init_abi): No longer set the regset_from_core_section
3460 gdbarch method.
3461 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3462 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3463 each callback invocation.
3464 (ppc_linux_init_abi): No longer set the regset_from_core_section
3465 gdbarch method.
3466 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3467 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3468 (s390_regset_from_core_section): Remove.
3469 (s390_iterate_over_regset_sections): Add regset parameter to each
3470 callback invocation.
3471 (s390_gdbarch_init): No longer set the regset_from_core_section
3472 gdbarch method. Drop initialization of deleted tdep fields.
3473
5aa82d05
AA
34742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3475
3476 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3477 (amd64_linux_iterate_over_regset_sections): New.
3478 (amd64_linux_init_abi_common): Don't install the regset section
3479 list, but the new iterator in gdbarch.
3480 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3481 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3482 (arm_linux_iterate_over_regset_sections): ...here. New function.
3483 (arm_linux_init_abi): Set iterator instead of section list.
3484 * corelow.c (get_core_registers_cb): New function, logic moved
3485 from...
3486 (get_core_registers): ...loop body here. Use new iterator method
3487 instead of walking through the regset section list.
3488 * gdbarch.sh: Remove 'core_regset_sections'. New method
3489 'iterate_over_regset_sections'. New typedef
3490 'iterate_over_regset_sections_cb'.
3491 * gdbarch.c: Regenerate.
3492 * gdbarch.h: Likewise.
3493 * i386-linux-tdep.c (i386_linux_regset_sections)
3494 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3495 Remove.
3496 (i386_linux_iterate_over_regset_sections): New.
3497 (i386_linux_init_abi): Don't choose a regset section list, but
3498 install new iterator in gdbarch.
3499 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3500 (linux_collect_regset_section_cb): New function, logic moved
3501 from...
3502 (linux_collect_thread_registers): ...loop body here. Use iterator
3503 method instead of walking through list.
3504 (linux_make_corefile_notes_1): Check for presence of iterator
3505 method instead of regset section list.
3506 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3507 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3508 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3509 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3510 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3511 (ppc_linux_init_abi): Don't choose from above regset section
3512 lists, but install new iterator in gdbarch.
3513 * regset.h (struct core_regset_section): Remove.
3514 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3515 have_linux_v1, have_linux_v2, and have_tdb.
3516 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3517 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3518 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3519 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3520 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3521 (s390_iterate_over_regset_sections): ...here. New function. Use
3522 new tdep fields.
3523 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3524 regset section lists, but install new iterator.
3525
2eca4a8d
JK
35262014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3527
3528 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3529
a73c2b56
SM
35302014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * progspace.c (print_program_space): Don't prune program spaces
3533 before printing them.
3534
03d46957
PA
35352014-09-25 Pedro Alves <palves@redhat.com>
3536
3537 * infrun.c (user_visible_resume_ptid): Don't check
3538 singlestep_breakpoints_inserted_p.
3539
e558d7c1
PA
35402014-09-25 Pedro Alves <palves@redhat.com>
3541
3542 * breakpoint.c (should_be_inserted): Add debug output.
3543
7f89fd65
PA
35442014-09-25 Pedro Alves <palves@redhat.com>
3545
3546 * infrun.c (stepping_past_instruction_at)
3547 (clear_exit_convenience_vars): Point at infrun.h instead of
3548 inferior.h.
3549 (handle_signal_stop): Fix typo.
3550
b7576e5c
YQ
35512014-09-24 Yao Qi <yao@codesourcery.com>
3552
3553 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3554 bitmask.
3555
9a6cf368
GB
35562014-09-22 Gary Benson <gbenson@redhat.com>
3557
3558 * target.c (target_stop): Updated comment.
3559
03f4463b
GB
35602014-09-22 Gary Benson <gbenson@redhat.com>
3561
3562 * target/target.h (target_stop_ptid): Renamed as...
3563 (target_stop_and_wait): New function. Updated comment.
3564 All uses updated.
3565 (target_continue_ptid): Renamed as...
3566 (target_continue_no_signal): New function. Updated comment.
3567 All uses updated.
3568
a25a5a45
PA
35692014-09-22 Pedro Alves <palves@redhat.com>
3570
3571 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3572 and "auto" merged.
3573 * breakpoint.c (enum ugll_insert_mode): New enum.
3574 (always_inserted_mode): Now a plain boolean.
3575 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3576 (breakpoints_always_inserted_mode): Delete.
3577 (breakpoints_should_be_inserted_now): New function.
3578 (insert_breakpoints): Pass UGLL_INSERT to
3579 update_global_location_list instead of calling
3580 insert_breakpoint_locations manually.
3581 (create_solib_event_breakpoint_1): New, factored out from ...
3582 (create_solib_event_breakpoint): ... this.
3583 (create_and_insert_solib_event_breakpoint): Use
3584 create_solib_event_breakpoint_1 instead of calling
3585 insert_breakpoint_locations manually.
3586 (update_global_location_list): Change parameter type from boolean
3587 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3588 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3589 (update_global_location_list_nothrow): Change parameter type from
3590 boolean to enum ugll_insert_mode.
3591 (_initialize_breakpoint): "breakpoint always-inserted" option is
3592 now a boolean command. Update help text.
3593 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3594 (breakpoints_should_be_inserted_now): New declaration.
3595 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3596 Remove breakpoints_always_inserted_mode check.
3597 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3598 * remote.c (remote_start_remote): Likewise.
3599
04086b45
PA
36002014-09-22 Pedro Alves <palves@redhat.com>
3601
3602 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3603 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3604 Instead, pass UGLL_INSERT to update_global_location_list.
3605 (update_global_location_list): Change parameter type from boolean
3606 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3607 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3608 (create_solib_event_breakpoint_1): New, factored out from ...
3609 (create_solib_event_breakpoint): ... this.
3610 (create_and_insert_solib_event_breakpoint): Use
3611 create_solib_event_breakpoint_1 instead of calling
3612 insert_breakpoint_locations manually.
3613 (update_global_location_list): Handle UGLL_INSERT.
3614
44702360
PA
36152014-09-22 Pedro Alves <palves@redhat.com>
3616
3617 * breakpoint.c (enum ugll_insert_mode): New enum.
3618 (update_global_location_list)
3619 (update_global_location_list_nothrow): Change parameter type from
3620 boolean to enum ugll_insert_mode. All callers adjusted.
3621
93c6145a
JB
36222014-09-19 Joel Brobecker <brobecker@adacore.com>
3623
3624 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3625 SystemTap support in GDB.
3626
89a5711c
DB
36272014-09-19 Don Breazeal <donb@codesourcery.com>
3628
3629 * linux-nat.c (linux_handle_extended_wait): Call
3630 linux_ptrace_get_extended_event.
3631 (wait_lwp): Call linux_is_extended_waitstatus.
3632 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3633 and linux_is_extended_waitstatus.
3634 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3635 linux_ptrace_get_extended_event.
3636 (linux_ptrace_get_extended_event): New function.
3637 (linux_is_extended_waitstatus): New function.
3638 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3639 (linux_is_extended_waitstatus): New declarations.
3640
c3b7b696
YQ
36412014-09-19 Yao Qi <yao@codesourcery.com>
3642
3643 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3644 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3645 comments. Callers update.
3646 (dwarf_decode_lines): Likewise.
3647 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3648 comments. Skip the line table if 'lowpc' is greater than
3649 'address'. Don't check
3650 dwarf2_per_objfile->has_section_at_zero.
3651
2b4fd423
DE
36522014-09-18 Doug Evans <dje@google.com>
3653
3654 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3655 * python/py-symtab.c (stpy_get_producer): New function.
3656 (symtab_object_getset): Add "producer" attribute.
3657
5e43d467
UW
36582014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3659
3660 PR gdb/17384
3661 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3662 (do_captured_read_memory_integer): Remove.
3663 (safe_read_memory_integer): Use target_read_memory directly instead
3664 of catching errors in do_captured_read_memory_integer.
3665
04e79979
MR
36662014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3667
3668 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3669 not gdb/doc.
3670
76aeec5b
SDJ
36712014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3672
3673 * objc-lang.c (find_implementation_from_class): Remove dead code.
3674
2f693f9d
SDJ
36752014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3676
3677 PR cli/7233
3678 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3679 "fprintf_unfiltered (gdb_stdlog...)".
3680
bb9d5f81
PP
36812014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3682
3683 PR breakpoints/12526
3684 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3685 val_bitsize.
3686 * breakpoint.c (watch_command_1): Use these fields to retain
3687 bitfield information.
3688 (extract_bitfield_from_watchpoint_value): New function.
3689 (watchpoint_check): Use it.
3690 (update_watchpoint): Use it. Optimize the address and length of a
3691 HW watchpoint pointing to a bitfield.
3692 * value.h (unpack_value_bitfield): New prototype.
3693 * value.c (unpack_value_bitfield): Make extern.
3694
05db5edd
ST
36952014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3696
3697 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3698 x86-dregs.o.
3699 * gnu-nat.c (inf_threads): New function.
3700 * gnu-nat.h (inf_threads_ftype): New typedef.
3701 (inf_threads): New declaration.
3702 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3703 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3704 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3705 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3706 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3707 (i386_gnu_dr_get_control): New functions.
3708 (reg_addr): New structure.
3709 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3710 i386 debugging register hooks.
3711 * NEWS: Mention this.
3712
5a578da5
OJ
37132014-08-13 Omair Javaid <omair.javaid@linaro.org>
3714
3715 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3716 vector data transfer instructions.
3717 (arm_record_coproc_data_proc): Updated.
3718
f20f80dd
OJ
37192014-08-13 Omair Javaid <omair.javaid@linaro.org>
3720
3721 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3722 arm_record_exreg_ld_st_insn.
3723 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3724 load/store insns.
3725
851f26ae
OJ
37262014-08-13 Omair Javaid <omair.javaid@linaro.org>
3727
3728 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3729 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3730 processing instructions.
3731
1e1b6563
OJ
37322014-08-13 Omair Javaid <omair.javaid@linaro.org>
3733
3734 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3735 for advance SIMD struct ld/st insn.
3736 (thumb2_record_decode_insn_handler): Replace stub handler with
3737 thumb2_record_asimd_struct_ld_st.
3738
60cc5e93
OJ
37392014-08-13 Omair Javaid <omair.javaid@linaro.org>
3740
3741 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3742 for asimd, vfp and coprocessor insns.
3743 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3744 and coprocessor insns.
3745 (thumb2_record_coproc_insn): New function.
3746 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3747 handlers.
3748 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3749 opcode 110 insns.
3750
81219e53
DE
37512014-09-13 Doug Evans <xdje42@gmail.com>
3752
3753 * NEWS: Mention new "queue-signal" command.
3754 * infcmd.c (queue_signal_command): New function.
3755 (_initialize_infcmd): Add new queue-signal command.
3756
d36bf488
DE
37572014-09-13 Doug Evans <xdje42@gmail.com>
3758
3759 * linux-nat.c (wait_lwp): Add debugging printf.
3760 (linux_nat_wait_1): Ditto.
3761
f37f681c
PA
37622014-09-12 Pedro Alves <palves@redhat.com>
3763
3764 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3765 (create_and_insert_solib_event_breakpoint): New functions.
3766 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3767 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3768 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3769 (remove_dbx_link_breakpoint): Delete function.
3770 (insert_dbx_link_bpt_in_file): Use
3771 create_and_insert_solib_event_breakpoint instead of
3772 deprecated_insert_raw_breakpoint.
3773 (procfs_wait): Don't check whether we hit __dbx_link here.
3774 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3775 here.
3776 * solib-irix.c (base_breakpoint): Delete global.
3777 (disable_break): Delete function.
3778 (enable_break): Use create_solib_event_breakpoint
3779 instead of deprecated_insert_raw_breakpoint.
3780 (irix_solib_handle_event): New function.
3781 (irix_solib_create_inferior_hook): Don't run the target or disable
3782 the mapping-complete breakpoint here.
3783 (_initialize_irix_solib): Install irix_solib_handle_event as
3784 so_ops->handle_event hook.
3785
9d9bf2df
EBM
37862014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3787 Ulrich Weigand  <uweigand@de.ibm.com>
3788
3789 PR tdep/17379
3790 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3791 instead of read_memory_unsigned_integer.
3792
b006a80e
GB
37932014-09-12 Gary Benson <gbenson@redhat.com>
3794
3795 * nat/linux-waitpid.c: Include common-defs.h.
3796 [GDBSERVER]: Add FIXME comment.
3797 [!GDBSERVER]: Don't include defs.h or signal.h.
3798 (linux_debug) [!GDBSERVER]: Remove empty block.
3799
296b1496
GB
38002014-09-12 Gary Benson <gbenson@redhat.com>
3801
3802 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3803 Don't include defs.h or server.h.
3804
53f81362
GB
38052014-09-12 Gary Benson <gbenson@redhat.com>
3806
3807 * nat/linux-btrace.c: Include common-defs.h.
3808 Don't include defs.h, server.h or gdbthread.h.
3809 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3810
727605ca
GB
38112014-09-12 Gary Benson <gbenson@redhat.com>
3812
3813 * common/agent.c: Include common-defs.h.
3814 Don't include defs.h or server.h.
3815 * common/buffer.c: Likewise.
3816 * common/common-debug.c: Likewise.
3817 * common/common-utils.c: Likewise.
3818 * common/errors.c: Likewise.
3819 * common/filestuff.c: Likewise.
3820 * common/format.c: Likewise.
3821 * common/gdb_vecs.c: Likewise.
3822 * common/print-utils.c: Likewise.
3823 * common/ptid.c: Likewise.
3824 * common/rsp-low.c: Likewise.
3825 * common/signals.c: Likewise.
3826 * common/vec.c: Likewise.
3827 * common/xml-utils.c: Likewise.
3828 * nat/linux-osdata.c: Likewise.
3829 * nat/linux-procfs.c: Likewise.
3830 * nat/linux-ptrace.c: Likewise.
3831 * nat/mips-linux-watch.c: Likewise.
3832 * target/waitstatus.c: Likewise.
3833
361c8ade
GB
38342014-09-12 Tom Tromey <tromey@redhat.com>
3835 Gary Benson <gbenson@redhat.com>
3836
3837 * common/common-regcache.h: New file.
3838 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3839 * regcache.h: Include common-regcache.h.
3840 (regcache_read_pc): Don't declare.
3841 * regcache.c (get_thread_regcache_for_ptid): New function.
3842 * nat/linux-btrace.c: Don't include regcache.h.
3843 Include common-regcache.h.
3844 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3845
a01cbb49
TS
38462014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3847
3848 * regcache.h (struct regset): Declare.
3849
98880d46
PA
38502014-09-11 Pedro Alves <palves@redhat.com>
3851
3852 PR gdb/17347
3853 * main.c: Include "infrun.h".
3854 (catch_command_errors, catch_command_errors_const): Wait for the
3855 foreground command to complete.
3856 * top.c (maybe_wait_sync_command_done): New function, factored out
3857 from ...
3858 (maybe_wait_sync_command_done): ... here.
3859 * top.h (maybe_wait_sync_command_done): New declaration.
3860
bd9269f7
GB
38612014-09-11 Tom Tromey <tromey@redhat.com>
3862 Gary Benson <gbenson@redhat.com>
3863
3864 * common/symbol.h: New file.
3865 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3866 * minsyms.c (find_minimal_symbol_address): New function.
3867 * common/agent.c: Include common/symbol.h.
3868 [!GDBSERVER]: Don't include objfiles.h.
3869 (agent_look_up_symbols): Use find_minimal_symbol_address.
3870
f8c1d06b
GB
38712014-09-11 Gary Benson <gbenson@redhat.com>
3872
3873 * target/target.h (target_stop_ptid, target_continue_ptid):
3874 Declare.
3875 * target.c (target_stop_ptid, target_continue_ptid): New
3876 functions.
3877 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3878 (agent_run_command): Always use target_stop_ptid and
3879 target_continue_ptid.
3880
721ec300
GB
38812014-09-11 Tom Tromey <tromey@redhat.com>
3882 Gary Benson <gbenson@redhat.com>
3883
3884 * target/target.h: New file.
3885 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3886 * target.h: Include target/target.h.
3887 (target_read_memory, target_write_memory): Don't declare.
3888 * target.c (target_read_uint32): New function.
3889 * common/agent.c: Include target/target.h.
3890 [!GDBSERVER]: Don't include target.h.
3891 (helper_thread_id): Type changed to uint32_t.
3892 (agent_get_helper_thread_id): Use target_read_uint32.
3893 (agent_run_command): Always use target_read_memory and
3894 target_write_memory.
3895 (agent_capability): Type changed to uint32_t.
3896 (agent_capability_check): Use target_read_uint32.
3897
c5e92cca
GB
38982014-09-11 Gary Benson <gbenson@redhat.com>
3899
3900 * common/common-debug.h (show_debug_regs): Declare.
3901 * common/common-debug.c (show_debug_regs): Define.
3902 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3903 all uses with show_debug_regs. Replace all uses that considered
3904 debug_hw_points as a multi-value integer with straight boolean
3905 uses.
3906 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3907 with show_debug_regs.
3908 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3909 all uses with show_debug_regs.
3910 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3911 uses with show_debug_regs.
3912
eeef931a
UW
39132014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3914
3915 * findvar.c (address_from_register): Handle targets requiring
3916 a special conversion routine even for plain pointer types.
3917
8efa9855
UW
39182014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3919
3920 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3921 (store_register): Do not call exec_one_dummy_insn.
3922
eb479039
JB
39232014-09-10 Joel Brobecker <brobecker@adacore.com>
3924
3925 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3926 dereference it first. Use value_enclosing_type instead of
3927 value_type.
3928 (ada_array_length): Likewise.
3929
deede10c
JB
39302014-09-10 Joel Brobecker <brobecker@adacore.com>
3931
3932 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3933 Adjust function implementation and documentation accordingly.
3934 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3935 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3936 Update call to ada_value_ptr_subscript.
3937
7828a5f5
JB
39382014-09-10 Joel Brobecker <brobecker@adacore.com>
3939
3940 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3941 instead of VAL's type.
3942
35782f14
JB
39432014-09-10 Joel Brobecker <brobecker@adacore.com>
3944
3945 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3946
d342a0da
DE
39472014-09-09 Doug Evans <xdje42@gmail.com>
3948
3949 PR guile/17367
3950 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3951 last parameter to pkg-config, not first.
3952 * configure.ac: Pass --with-guile provided pkg-config path to
3953 GDB_GUILE_PROGRAM_NAMES.
3954 * configure: Regenerate.
3955
b4a3d263
GKB
39562014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3957
3958 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3959 Bertazi".
3960
6e466374
MR
39612014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3962
3963 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3964 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3965 the list of sections determining GDB_OSABI_IRIX.
3966
a1ada89a
JH
39672014-09-09 James Hogan <james.hogan@imgtec.com>
3968
3969 * MAINTAINERS (Write After Approval): Add "James Hogan".
3970
86db008d
JH
39712014-09-09 James Hogan <james.hogan@imgtec.com>
3972
3973 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3974
72fde3df
JB
39752014-09-09 Joel Brobecker <brobecker@adacore.com>
3976
3977 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3978
92d8d229
DE
39792014-09-08 Doug Evans <xdje42@gmail.com>
3980
3981 PR 17247
3982 * guile.c: #include <signal.h>.
3983 (_initialize_guile): Block SIGCHLD while initializing Guile.
3984
3985 Replaces the following, which is reverted.
3986
3987 2014-07-26 Doug Evans <xdje42@gmail.com>
3988
3989 PR 17185
3990 * configure.ac: Add check for header gc/gc.h.
3991 Add check for function setenv.
3992 * configure: Regenerate.
3993 * config.in: Regenerate.
3994 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3995
d81412aa
DE
39962014-09-08 Doug Evans <xdje42@gmail.com>
3997
3998 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3999 with named constant. Fix style of pointer comparison.
4000 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4001
a9f116cb
GKB
40022014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4003
4004 PR gdb/17035
4005 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4006 decide whether we display the command on "show user".
4007 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4008 printing command name.
4009 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4010 * cli/cli-decode.c (cli_user_command_p): Create helper function
4011 to verify whether cmd_list_element is a user-defined command.
4012
c75bd3a2
JK
40132014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4014
4015 PR python/17355
4016 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4017 Fix goto out of TRY_CATCH.
4018
faa42425 40192014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 4020 Tom Tromey <tromey@redhat.com>
faa42425
DE
4021
4022 PR 15276
4023 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4024 $_any_caller_matches.
4025 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4026 * python/lib/gdb/function/caller_is.py: New file.
4027
0d41ba00
DE
40282014-09-06 Doug Evans <xdje42@gmail.com>
4029
4030 * infcmd.c (program_info): Fix typo.
4031
474ca4f6
SDJ
40322014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4033
4034 PR gdb/17235
4035 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4036 'number'. New variable 'has_digit'. Rewrite code to deal with
4037 subexpressions on SDT probes.
4038
ebf13736
PA
40392014-09-04 Pedro Alves <palves@redhat.com>
4040
4041 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4042 the input is only one character long.
4043
eb0b0463
SDJ
40442014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4045
4046 PR fortran/17237
4047 * f-valprint.c (f_val_print): Specify the correct print option to
4048 use when printing integer values.
4049
5ee44bfa
GB
40502014-09-04 Gary Benson <gbenson@redhat.com>
4051
4052 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4053 Remove code to cope with LWPs wrapped as PIDs.
4054 Add assertions to ensure no wrapped LWPs are passed.
4055
4875ffdb
PA
40562014-09-04 Pedro Alves <palves@redhat.com>
4057
4058 * value.c (value_ranges_copy_adjusted): New function, factored out
4059 from ...
4060 (value_contents_copy_raw): ... here.
4061 (unpack_value_bits_as_long_1): Rename back to ...
4062 (unpack_bits_as_long): ... this. Remove 'original_value' and
4063 'result' parameters. Change return type to LONGEST.
4064 (unpack_value_bits_as_long): Delete.
4065 (unpack_value_field_as_long_1): Delete.
4066 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4067 (unpack_value_bitfield): New function.
4068 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4069 (value_fetch_lazy): Use unpack_value_bitfield.
4070 * value.h (unpack_value_bits_as_long): Delete declaration.
4071
5f3b99cf
SS
40722014-09-03 Sasha Smundak <asmundak@google.com>
4073
4074 * python/py-frame.c (frapy_read_register): New function.
4075
ac740bc7
JH
40762014-09-03 James Hogan <james.hogan@imgtec.com>
4077
4078 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4079 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4080
7d793aa9
SDJ
40812014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4082
4083 PR python/16699
4084 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4085 function.
4086 (add_cmd): Set "completer_handle_brkchars" to NULL.
4087 * cli/cli-decode.h (struct cmd_list_element)
4088 <completer_handle_brkchars>: New field.
4089 * command.h (completer_ftype_void): New typedef.
4090 (set_cmd_completer_handle_brkchars): New prototype.
4091 * completer.c (set_gdb_completion_word_break_characters): New
4092 function.
4093 (complete_line_internal): Call "completer_handle_brkchars"
4094 callback from command.
4095 * completer.h: Include "command.h".
4096 (set_gdb_completion_word_break_characters): New prototype.
4097 * python/py-cmd.c (cmdpy_completer_helper): New function.
4098 (cmdpy_completer_handle_brkchars): New function.
4099 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4100 (cmdpy_init): Set completer_handle_brkchars to
4101 cmdpy_completer_handle_brkchars.
4102
97ea6506
GB
41032014-09-03 Gary Benson <gbenson@redhat.com>
4104
4105 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4106 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4107 Loop conditions changed to equivalent form.
4108 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4109 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4110 ALL_DEBUG_ADDRESS_REGISTERS.
4111
d1437815
JB
41122014-09-03 Joel Brobecker <brobecker@adacore.com>
4113
4114 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4115 description fix.
4116
9b94fcf1
DE
41172014-09-02 Doug Evans <dje@google.com>
4118
4119 * typeprint.c (find_global_typedef): Fix comment.
4120
df7e5265
GB
41212014-09-02 Gary Benson <gbenson@redhat.com>
4122
4123 * i386-nat.h: Renamed as...
4124 * x86-nat.h: New file. All type, function and variable name
4125 prefixes changed from "i386_" to "x86_". All references updated.
4126 * i386-nat.c: Renamed as...
4127 * x86-nat.c: New file. All type, function and variable name
4128 prefixes changed from "i386_" to "x86_". All references updated.
4129 * common/i386-xstate.h: Renamed as...
4130 * common/x86-xstate.h: New file. All type, function and variable
4131 name prefixes changed from "i386_" to "x86_". All references
4132 updated.
4133 * nat/i386-cpuid.h: Renamed as...
4134 * nat/x86-cpuid.h: New file. All type, function and variable name
4135 prefixes changed from "i386_" to "x86_". All references updated.
4136 * nat/i386-gcc-cpuid.h: Renamed as...
4137 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4138 name prefixes changed from "i386_" to "x86_". All references
4139 updated.
4140 * nat/i386-dregs.h: Renamed as...
4141 * nat/x86-dregs.h: New file. All type, function and variable name
4142 prefixes changed from "i386_" to "x86_". All references updated.
4143 * nat/i386-dregs.c: Renamed as...
4144 * nat/x86-dregs.c: New file. All type, function and variable name
4145 prefixes changed from "i386_" to "x86_". All references updated.
4146
1c3569d4
MR
41472014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4148
4149 * varobj.c (_initialize_varobj): Move to the end of file.
4150
ff55e1b5
GB
41512014-08-29 Gary Benson <gbenson@redhat.com>
4152
4153 * common/common-exceptions.h: New file.
4154 * common/common-exceptions.c: Likewise.
4155 * Makefile.in (SFILES): Add common/common-exceptions.c.
4156 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4157 (COMMON_OBS): Add common-exceptions.o.
4158 (common-exceptions.o): New rule.
4159 * exceptions.h (common-exceptions.h): Include.
4160 (gdb_setjmp.h): Do not include.
4161 (return_reason): Moved to common-exceptions.h.
4162 (enum return_reason): Likewise.
4163 (RETURN_MASK): Likewise.
4164 (typedef return_mask): Likewise.
4165 (enum errors): Likewise.
4166 (struct gdb_exception): Likewise.
4167 (exceptions_state_mc_init): Likewise.
4168 (exceptions_state_mc_action_iter): Likewise.
4169 (exceptions_state_mc_action_iter_1): Likewise.
4170 (TRY_CATCH): Likewise.
4171 (throw_exception): Likewise.
4172 (throw_verror): Likewise.
4173 (throw_vquit): Likewise.
4174 (throw_error): Likewise.
4175 (throw_quit): Likewise.
4176 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4177 (enum catcher_action): Likewise.
4178 (struct catcher): Likewise.
4179 (current_catcher): Likewise.
4180 (catcher_list_size): Likewise.
4181 (exceptions_state_mc_init): Likewise.
4182 (catcher_pop): Likewise.
4183 (exceptions_state_mc): Likewise.
4184 (exceptions_state_mc_action_iter): Likewise.
4185 (exceptions_state_mc_action_iter_1): Likewise.
4186 (throw_exception): Likewise.
4187 (exception_messages): Likewise.
4188 (exception_messages_size): Likewise.
4189 (throw_it): Likewise.
4190 (throw_verror): Likewise.
4191 (throw_vquit): Likewise.
4192 (throw_error): Likewise.
4193 (throw_quit): Likewise.
4194 (prepare_to_throw_exception): New function.
4195
e9bcb658
GB
41962014-08-29 Gary Benson <gbenson@redhat.com>
4197
4198 * common/gdb_setjmp.h: New file.
4199 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4200 * configure.ac: Move sigsetjmp check...
4201 * common/common.m4: ...here.
4202 * configure: Regenerate.
4203 * cp-support.c (SIGJMP_BUF): Delete.
4204 (SIGSETJMP): Likewise.
4205 (SIGLONGJMP): Likewise.
4206 * exceptions.h (gdb_setjmp.h): Include.
4207 (setjmp.h): Do not include.
4208 (EXCEPTIONS_SIGJMP_BUF): Delete.
4209 (EXCEPTIONS_SIGSETJMP): Likewise.
4210 (EXCEPTIONS_SIGLONGJMP): Likewise.
4211 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4212 from gdb_setjmp.h.
4213 * exceptions.c: Likewise.
4214
e3180625
GB
42152014-08-29 Gary Benson <gbenson@redhat.com>
4216
4217 * cleanups.h: Moved to...
4218 * common/cleanups.h: New file.
4219 * cleanups.c: Moved to...
4220 * common/cleanups.c: New file. Include common-defs.h and
4221 cleanups.h. Do not include defs.h.
4222 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4223 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4224 (cleanups.o): New rule.
4225
e3d6ba5d
GB
42262014-08-29 Gary Benson <gbenson@redhat.com>
4227
4228 * common/errors.h (internal_warning): New declaration.
4229 (internal_vwarning): Likewise.
4230 * common/errors.c (internal_warning): New function.
4231 * utils.h (internal_warning): Don't declare.
4232 (internal_vwarning): Likewise.
4233 * utils.c (internal_warning): Removed.
4234
075c7033
GB
42352014-08-29 Gary Benson <gbenson@redhat.com>
4236
4237 * main.c (captured_main): Use warning during startup.
4238 Prefix startup warning messages with command name.
4239
91b35fd0
GB
42402014-08-29 Gary Benson <gbenson@redhat.com>
4241
4242 * main.c (captured_main): Handle usage errors with error.
4243
b1ec390e
GB
42442014-08-29 Gary Benson <gbenson@redhat.com>
4245
4246 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4247 exit pair with a call to error. Wrap the message with _().
4248
fd0ef3dd
GB
42492014-08-29 Gary Benson <gbenson@redhat.com>
4250
4251 * main.c (captured_main): Replace a fprintf/exit
4252 pair with a call to error. Wrap the message with _().
4253
e0e6bcab
GB
42542014-08-29 Gary Benson <gbenson@redhat.com>
4255
4256 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4257 pairs with calls to error. Wrap the message with _().
4258
0d2f5c07
GB
42592014-08-29 Gary Benson <gbenson@redhat.com>
4260
4261 * utils.c (vwarning): Protect calls to target_terminal_ours
4262 and wrap_here.
4263
5df43998
GB
42642014-08-29 Gary Benson <gbenson@redhat.com>
4265
4266 * exceptions.c (print_flush): Protect calls to
4267 target_terminal_ours and wrap_here.
4268
2437fd32
GB
42692014-08-29 Gary Benson <gbenson@redhat.com>
4270
4271 * utils.h (filtered_printing_initialized): New declaration.
4272 * utils.c (abort_with_message): New function.
4273 (internal_vproblem): Use abort_with_message for first level
4274 recursive internal problems, and if gdb_stderr is not set up.
4275 Protect calls to target_terminal_ours, begin_line and query.
4276
f1f58506
DE
42772014-08-28 Doug Evans <dje@google.com>
4278
4279 * symtab.c (in_prologue): Move definition to better spot.
4280 (skip_prologue_using_sal): Ditto.
4281
aab2f208
DE
42822014-08-28 Doug Evans <dje@google.com>
4283
4284 * symtab.c (find_function_start_sal): Move definition to better spot.
4285
6b65d1b6
YQ
42862014-08-28 Yao Qi <yao@codesourcery.com>
4287
4288 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4289 found_stack_adjust in forward scan. Remove condition check
4290 on found_stack_adjust which is always true. Indent the code.
4291
a1b34d15
YQ
42922014-08-28 Yao Qi <yao@codesourcery.com>
4293
4294 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4295 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4296 (dwarf_decode_lines): Remove argument
4297 want_line_info. Remove condition check on want_line_info.
4298 Callers update.
4299
d5962de5
DE
43002014-08-27 Doug Evans <dje@google.com>
4301
4302 * dwarf2read.c (dwarf_record_line): Fix typo.
4303
9b139002
SDJ
43042014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4305
4306 * target.h (struct target_ops::to_terminal_save_ours): Remove
4307 declaration.
4308 (target_terminal_save_ours): Remove macro.
4309 * target-delegates.c: Regenerate.
4310 * inf-child.c (inf_child_target): Don't set the nonexistent
4311 field to_terminal_save_ours.
4312 * inferior.h (child_terminal_save_ours): Remove declaration.
4313 * terminal.h (gdb_save_tty_state): New declaration.
4314 * inflow.c (child_terminal_save_ours): Rename to ...
4315 (gdb_save_tty_state): ... this.
4316 * tui/tui.c: Include terminal.h.
4317 (tui_enable): Use gdb_save_tty_state instead of
4318 target_terminal_save_ours.
4319 (tui_disable): Likewise.
4320
9debeba0
DE
43212014-08-25 Doug Evans <dje@google.com>
4322
4323 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4324 Pass NULL instead of 0 for context pointer.
4325
428fc5fc
YQ
43262014-08-25 Yao Qi <yao@codesourcery.com>
4327
4328 * dwarf2read.c: Fix grammatical error.
4329
cdc07690
YQ
43302014-08-24 Yao Qi <yao@codesourcery.com>
4331
4332 * dwarf2read.c (scan_partial_symbols): Update comments.
4333 Rename argument 'need_pc' with 'set_addrmap'.
4334 (add_partial_namespace): Rename argument 'need_pc' with
4335 'set_addrmap'.
4336 (add_partial_module): Likewise.
4337 (add_partial_subprogram): Likewise. Update comments.
4338 (dwarf2_name): Fix typo.
4339
a05a36a5
DE
43402014-08-22 Doug Evans <dje@google.com>
4341
4342 PR 17276
4343 * dwarf2read.c (dwarf_record_line_p): New function.
4344 (dwarf_decode_lines_1): Ignore subsequent line number entries
4345 for the same line if any entry had a non-zero discriminator.
4346
252a6764
DE
43472014-08-22 Doug Evans <dje@google.com>
4348
4349 * buildsym.h (record_line_ftype): New typedef.
4350 (record_line): Use it.
4351 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4352 (dwarf_decode_lines_1): Call them.
4353
510db052
YQ
43542014-08-22 Yao Qi <yao@codesourcery.com>
4355
4356 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4357 (ctf_end): Remove code.
4358
22fd09ae
JK
43592014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4360
4361 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4362 (linux_make_corefile_notes): call update_thread_list, protected against
4363 exceptions.
4364
656e8868
PA
43652014-08-21 Pedro Alves <palves@redhat.com>
4366
4367 * infcmd.c (attach_command): Remove comment.
4368
de589d04
WN
43692014-08-21 Bin Cheng <bin.cheng@arm.com>
4370
4371 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4372 unsigned LONGEST to ULONGEST.
4373
2a31c623
PA
43742014-08-20 Pedro Alves <palves@redhat.com>
4375
4376 * Makefile.in (check-read1): New rule.
4377
d36430db
JB
43782014-08-20 Joel Brobecker <brobecker@adacore.com>
4379
4380 * value.c (value_from_contents_and_address): Strip resolved_type's
4381 typedef layers before checking its TYPE_DATA_LOCATION.
4382
000339af
PA
43832014-08-20 Pedro Alves <palves@redhat.com>
4384
4385 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4386
5f52445b
YQ
43872014-08-20 Yao Qi <yao@codesourcery.com>
4388
4389 * amd64-tdep.c (amd64_classify): Add a blank line after the
4390 example. Move "*/" to a new line.
4391 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4392 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4393 * dwarf2read.c (psymtab_include_file_name): Likewise.
4394
9a0dc9e3
PA
43952014-08-19 Andrew Burgess <aburgess@broadcom.com>
4396 Pedro Alves <palves@redhat.com>
4397
4398 PR symtab/14604
4399 PR symtab/14605
4400 * ada-lang.c (coerce_unspec_val_to_type): Use
4401 value_contents_copy_raw.
4402 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4403 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4404 * cp-valprint.c (cp_print_value_fields): Let the common printing
4405 code handle optimized out values.
4406 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4407 * d-valprint.c (dynamic_array_type): Use
4408 value_bits_any_optimized_out.
4409 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4410 check_any_valid fields.
4411 (check_pieced_value_bits): Delete and inline ...
4412 (check_pieced_synthetic_pointer): ... here.
4413 (check_pieced_value_validity): Delete.
4414 (check_pieced_value_invalid): Delete.
4415 (pieced_value_funcs): Remove check_validity and check_any_valid
4416 fields.
4417 (read_pieced_value): Use mark_value_bits_optimized_out.
4418 (write_pieced_value): Switch to use
4419 mark_value_bytes_optimized_out.
4420 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4421 of assuming the whole value is optimized out.
4422 * findvar.c (read_frame_register_value): Remove special handling
4423 of optimized out registers.
4424 (value_from_register): Use mark_value_bytes_optimized_out.
4425 * frame-unwind.c (frame_unwind_got_optimized): Use
4426 mark_value_bytes_optimized_out.
4427 * jv-valprint.c (java_value_print): Adjust.
4428 (java_print_value_fields): Let the common printing code handle
4429 optimized out values.
4430 * mips-tdep.c (mips_print_register): Remove special handling of
4431 optimized out registers.
4432 * opencl-lang.c (lval_func_check_validity): Delete.
4433 (lval_func_check_any_valid): Delete.
4434 (opencl_value_funcs): Remove check_validity and check_any_valid
4435 fields.
4436 * p-valprint.c (pascal_object_print_value_fields): Let the common
4437 printing code handle optimized out values.
4438 * stack.c (read_frame_arg): Remove special handling of optimized
4439 out values. Fetch both VAL and ENTRYVAL before comparing
4440 contents. Adjust to value_available_contents_eq rename.
4441 * valprint.c (valprint_check_validity)
4442 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4443 (val_print_array_elements): Adjust.
4444 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4445 (value_bits_any_optimized_out): New function.
4446 (value_entirely_covered_by_range_vector): New function, factored
4447 out from value_entirely_unavailable.
4448 (value_entirely_unavailable): Reimplement.
4449 (value_entirely_optimized_out): New function.
4450 (insert_into_bit_range_vector): New function, factored out from
4451 mark_value_bits_unavailable.
4452 (mark_value_bits_unavailable): Reimplement.
4453 (struct ranges_and_idx): New struct.
4454 (find_first_range_overlap_and_match): New function, factored out
4455 from value_available_contents_bits_eq.
4456 (value_available_contents_bits_eq): Rename to ...
4457 (value_contents_bits_eq): ... this. Check both unavailable
4458 contents and optimized out contents.
4459 (value_available_contents_eq): Rename to ...
4460 (value_contents_eq): ... this.
4461 (allocate_value_lazy): Remove reference to the old optimized_out
4462 boolean.
4463 (allocate_optimized_out_value): Use
4464 mark_value_bytes_optimized_out.
4465 (require_not_optimized_out): Adjust to check whether the
4466 optimized_out vec is empty.
4467 (ranges_copy_adjusted): New function, factored out from
4468 value_contents_copy_raw.
4469 (value_contents_copy_raw): Also copy the optimized out ranges.
4470 Assert the destination ranges aren't optimized out.
4471 (value_contents_copy): Update comment, remove call to
4472 require_not_optimized_out.
4473 (value_contents_equal): Adjust to check whether the optimized_out
4474 vec is empty.
4475 (set_value_optimized_out, value_optimized_out_const): Delete.
4476 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4477 New functions.
4478 (value_entirely_optimized_out, value_bits_valid): Delete.
4479 (value_copy): Take a VEC copy of the 'optimized_out' field.
4480 (value_primitive_field): Remove special handling of optimized out.
4481 (value_fetch_lazy): Assert that lazy values have no unavailable
4482 regions. Use value_bits_any_optimized_out. Remove some special
4483 handling for optimized out values.
4484 * value.h: Add intro comment about <optimized out> and
4485 <unavailable>.
4486 (struct lval_funcs): Remove check_validity and check_any_valid
4487 fields.
4488 (set_value_optimized_out, value_optimized_out_const): Remove.
4489 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4490 New declarations.
4491 (value_bits_any_optimized_out): New declaration.
4492 (value_bits_valid): Delete declaration.
4493 (value_available_contents_eq): Rename to ...
4494 (value_contents_eq): ... this, and extend comments.
4495
6694c411
JK
44962014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4497
4498 Fix -fsanitize=address on unreadable inferior strings.
4499 * valprint.c (val_print_string): Fix access before BUFFER.
4500
89a1c21a
SM
45012014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4502
4503 * target.c (target_struct_size): Remove.
4504 (target_struct_allocsize): Remove.
4505 (DEFAULT_ALLOCSIZE): Remove.
4506 (target_ops_p): New typedef.
4507 (DEF_VEC_P (target_ops_p)): New vector type.
4508 (target_structs): Change type to VEC (target_ops_p).
4509 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4510 (find_default_run_target): Rewrite for loop following changes to
4511 target_structs.
4512
cb417230
JB
45132014-08-19 Joel Brobecker <brobecker@adacore.com>
4514
4515 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4516 Adjust code accordingly. Adjust function description comment.
4517
817e0957
YQ
45182014-08-19 Yao Qi <yao@codesourcery.com>
4519
4520 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4521 types.
4522
2974be62
AM
45232014-08-19 Alan Modra <amodra@gmail.com>
4524
4525 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4526 * config.in: Regenerate.
4527 * configure: Regenerate.
4528
34abf635
GB
45292014-08-19 Tom Tromey <tromey@redhat.com>
4530 Gary Benson <gbenson@redhat.com>
4531
4532 * common/common-debug.h: New file.
4533 * common/common-debug.c: Likewise.
4534 * debug.c: Likewise.
4535 * Makefile.in (SFILES): Add common/common-debug.c.
4536 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4537 (COMMON_OBS): Add common-debug.o and debug.o.
4538 (common-debug.o): New rule.
4539 * common/common-defs.h: Include common-debug.h.
4540 * common/agent.c (debug_agent_printf): New function.
4541 (DEBUG_AGENT): Redefine.
4542 * nat/i386-dregs.c (debug_printf): Undefine.
4543
f6e94d78
GB
45442014-08-19 Gary Benson <gbenson@redhat.com>
4545
4546 * common/common-defs.h: Include print-utils.h.
4547 * utils.h: Do not include print-utils.h.
4548
9239eeab
GB
45492014-08-19 Tom Tromey <tromey@redhat.com>
4550 Gary Benson <gbenson@redhat.com>
4551
4552 * common/common-types.h: New file.
4553 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4554 * common/common-defs.h: Include common-types.h.
4555 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4556 (ULONGEST): Remove.
4557
ef87c8bb
GB
45582014-08-19 Tom Tromey <tromey@redhat.com>
4559 Gary Benson <gbenson@redhat.com>
4560
4561 * common/errors.h: New file.
4562 * common/errors.c: Likewise.
4563 * Makefile.in (SFILES): Add common/errors.c.
4564 (HFILES_NO_SRCDIR): Add common/errors.h.
4565 (COMMON_OBS): Add errors.o.
4566 (errors.o): New rule.
4567 * common/common-defs.h: Include errors.h.
4568 * utils.h (perror_with_name, error, verror, warning, vwarning):
4569 Don't declare.
4570 * common/common-utils.h: (malloc_failure, internal_error):
4571 Likewise.
4572
196a707b
GB
45732014-08-19 Gary Benson <gbenson@redhat.com>
4574
4575 * utils.c (internal_vproblem): Always print the message.
4576
ded4fc8f
DE
45772014-08-18 Doug Evans <dje@google.com>
4578
4579 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4580
950c97d8
JB
45812014-08-18 Joel Brobecker <brobecker@adacore.com>
4582
4583 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4584 Return 0 if TYPE is dynamic.
4585 (print_range): Add handling of dynamic ranges.
4586
3cdcd0ce
JB
45872014-08-18 Keven Boell <keven.boell@intel.com>
4588 Joel Brobecker <brobecker@adacore.com>
4589
4590 * gdbtypes.h (struct main_type): Add field "data_location".
4591 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4592 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4593 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4594 a dynamic data location.
4595 (resolve_dynamic_type): Add DW_AT_data_location handling.
4596 (copy_recursive, copy_type): Copy the data_location information
4597 when present.
4598 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4599 * value.c (value_from_contents_and_address): Add
4600 DW_AT_data_location handling.
4601
08412b07
JB
46022014-08-18 Keven Boell <keven.boell@intel.com>
4603 Joel Brobecker <brobecker@adacore.com>
4604
4605 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4606 field "get_object_address".
4607 * dwarf2expr.c (execute_stack_op): Add handling for
4608 DW_OP_push_object_address.
4609 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4610 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4611 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4612 (dwarf_expr_get_obj_addr): New function.
4613 (dwarf_expr_ctx_funcs): Add get_object_address field.
4614 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4615 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4616 (dwarf2_evaluate_property): Add parameter "address". Use it.
4617 (needs_get_obj_addr): New function.
4618 (needs_frame_ctx_funcs): Add get_object_address field.
4619 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4620 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4621 (resolve_dynamic_array): Likewise.
4622
84754697
JB
46232014-08-18 Joel Brobecker <brobecker@adacore.com>
4624
4625 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4626 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4627 fixed value for records and unions for which some GNAT encodings
4628 are present.
4629
da5c522f
JB
46302014-08-18 Joel Brobecker <brobecker@adacore.com>
4631
4632 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4633 rewrite to avoid "else if" and "else" constructs. Should be
4634 a no-op in practice.
4635
0d72a7c3
JB
46362014-08-18 Joel Brobecker <brobecker@adacore.com>
4637
4638 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4639 of lexical block.
4640
e66d4446
SC
46412014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4642
4643 PR c++/17132
4644 * eval.c: Update all calls to find_overload_match.
4645 * valarith.c: Likewise.
4646 (value_user_defined_cpp_op, value_user_defined_op): New
4647 argument NOSIDE. Update all callers.
4648 * valops.c (find_overload_match): New argument NOSIDE.
4649 * value.h (find_overload_match): Update signature.
4650
940df408
SC
46512014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4652
4653 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4654 'items' methods instead of 'iteritems' method on dictionaries.
4655
699ca60a
DE
46562014-08-15 Doug Evans <dje@google.com>
4657
4658 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4659 closer to use.
4660
37780ee5
DE
46612014-08-15 Doug Evans <dje@google.com>
4662
4663 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4664
0ad93d4f
DE
46652014-08-15 Doug Evans <dje@google.com>
4666
4667 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4668
20d8c372
DE
46692014-08-15 Doug Evans <dje@google.com>
4670
4671 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4672 unused.
4673
cb039ba4
EZ
46742014-08-15 Eli Zaretskii <eliz@gnu.org>
4675
4676 * dcache.h: Include target.h, to avoid compile time warnings.
4677
eb7a547a
JB
46782014-08-15 Joel Brobecker <brobecker@adacore.com>
4679
4680 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4681 frame_info" partial declaration.
4682 * gdbarch.h: Regenerate.
4683
783cecc8
YQ
46842014-08-15 Yao Qi <yao@codesourcery.com>
4685
4686 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4687 Add parameter 'decode_for_pst_p'. Callers update.
4688
65c749e7
YQ
46892014-08-13 Yao Qi <yao@codesourcery.com>
4690
4691 PR build/17104
4692 * configure.ac: Use local variable 'pos'.
4693 * configure: Regenerated.
4694
d769e349
DE
46952014-08-11 Doug Evans <dje@google.com>
4696
4697 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4698 message, it is redundant with "Reading symbols from ..." message.
4699
24f1235e
DE
47002014-08-10 Doug Evans <xdje42@gmail.com>
4701
4702 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4703
dcd2e6ef
YQ
47042014-08-09 Yao Qi <yao@codesourcery.com>
4705
4706 PR remote/9053
4707 * remote.c (remote_xfer_partial): Remove dead code.
4708
070bdf0b
AA
47092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4710
4711 * ia64-linux-tdep.c: Include "regset.h".
4712 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4713 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4714 (ia64_linux_supply_fpregset): New function.
4715 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4716 (ia64_linux_regset_from_core_section): New function.
4717 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4718 method.
4719
08f9f542
AA
47202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4721
4722 * m68klinux-tdep.c: Include "regset.h".
4723 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4724 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4725 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4726 (m68k_linux_regset_from_core_section): New function.
4727 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4728 method.
4729
8f1cee41
AA
47302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731
4732 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4733 function. Move logic to...
4734 (tilegx_linux_regmap): ... this new register map.
4735 (tilegx_linux_regset): Refer to register map, replace supply
4736 method by regcache_supply_regset, and add collect method.
4737 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4738 TILEGX_FIRST_EASY_REGNUM.
4739
c5741217
AA
47402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4741
4742 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4743 that calls regcache_supply_regset and handles the EPC register
4744 separately. Move main logic to...
4745 (score7_linux_gregmap): ... this new register map.
4746 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4747 (score7_linux_gregset): Refer to register map. Add collect method.
4748 (score7_linux_regset_from_core_section): Replace
4749 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4750 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4751 (struct regset): Delete unused forward declaraction.
4752 (struct pt_regs): Delete structure definition.
4753 (elf_gregset_t): Delete typedef.
4754
81580573
AA
47552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4756
4757 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4758 (nios2_core_regset): Add collect method.
4759
ba199d7d
AA
47602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4761
4762 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4763 platform-independent and don't write to read-only input buffer.
4764 (m32r_linux_collect_gregset): New function.
4765 (m32r_linux_gregset): Add collect method.
4766
0006a9da
AA
47672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4768
4769 * hppa-linux-tdep.c (greg_map): Rename to...
4770 (hppa_linux_gregmap): ... this. Also convert to
4771 regcache_map_entry format.
4772 (hppa_linux_supply_regset): Delete function.
4773 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4774 (hppa_linux_fpregmap): ... this new register map.
4775 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4776 register map, replace supply method by regcache_supply_regset, and
4777 add collect method regcache_collect_regset.
4778
901e1b23
AA
47792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4780
4781 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4782 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4783 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4784 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4785 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4786 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4787 (frv_linux_supply_gregset): Replace main logic by call to
4788 regcache_supply_regset, but keep clearing gr32-gr63.
4789 (frv_linux_supply_fpregset): Delete function.
4790 (frv_linux_gregset): Refer to appropriate register map and add
4791 regcache_collect_regset as the collect method.
4792 (frv_linux_fpregset): Likewise. Also exchange the supply method
4793 by regcache_supply_regset.
4794
1d6e7555
AA
47952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4796
4797 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4798 by call to alpha_supply_int_regs.
4799 (alpha_linux_collect_gregset): New function.
4800 (alpha_linux_supply_fpregset): Replace logic by call to
4801 alpha_supply_fp_regs.
4802 (alpha_linux_collect_fpregset): New function.
4803 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4804
d4d793bf
AA
48052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4806
4807 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4808 by call to regcache_collect_regset.
4809 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4810 instead of aarch64_linux_supply_gregset/_fpregset.
4811 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4812 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4813 header file instead.
4814 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4815 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4816 functions. Move logic to ...
4817 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4818 register maps.
4819 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4820 refer to new register maps, replace *_regset_from_core by
4821 regcache_supply_regset, and also use regcache_collect_regset.
4822 * aarch64-linux-tdep.h: Include "regset.h".
4823 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4824 Delete prototypes.
4825 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4826 macros, moved from C source file.
4827 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4828 variable declarations.
4829
99b7da5d
AA
48302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4831
4832 * s390-linux-nat.c: Include "regset.h".
4833 (regmap_gregset): Delete macro.
4834 (s390_64_regmap_gregset): New register map for
4835 regcache_supply/_collect_regset.
4836 (s390_64_gregset): New regset.
4837 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4838 (regmap_fpregset): Delete macro.
4839 (s390_native_supply, s390_native_collect): Delete functions.
4840 (supply_gregset, fill_gregset): Replace s390-specific regmap
4841 handling by a call to regcache_supply/_collect_regset.
4842 (supply_fpregset, fill_fpregset): Call regcache_supply/
4843 _collect_regset instead of s390_native_supply/_collect.
4844 (fetch_regset, store_regset): Likewise. Also change the last
4845 parameter to a regset instead of a regmap.
4846 (s390_linux_fetch_inferior_registers)
4847 (390_linux_store_inferior_registers): Adjust last parameter in
4848 calls to fetch_regset and store_regset.
4849 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4850 (s390_gregmap): ... this. Also make static const and convert to
4851 regcache_map_entry format.
4852 (s390x_regmap_gregset): Delete.
4853 (s390_regmap_fpregset): Rename to...
4854 (s390_fpregmap): ... this. Make static const and convert to
4855 regcache_map_entry format.
4856 (s390_regmap_upper, s390_regmap_last_break)
4857 (s390x_regmap_last_break, s390_regmap_system_call)
4858 (s390_regmap_tdb): Likewise.
4859 (s390_supply_regset, s390_collect_regset): Remove functions.
4860 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4861 s390_supply_regset.
4862 (s390_gregset, s390_fpregset, s390_upper_regset)
4863 (s390_last_break_regset, s390x_last_break_regset)
4864 (s390_system_call_regset, s390_tdb_regset): Make global and
4865 replace s390_supply/_collect_regset by regcache_supply/
4866 _collect_regset.
4867 (s390x_gregset): Delete.
4868 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4869 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4870 (s390_regmap_fpregset, s390_regmap_last_break)
4871 (s390x_regmap_last_break, s390_regmap_system_call)
4872 (s390_regmap_tdb): Delete global variable declarations.
4873 (s390_gregset, s390_fpregset, s390_last_break_regset)
4874 (s390x_last_break_regset, s390_system_call_regset)
4875 (s390_tdb_regset): New global variable declarations.
4876
0b309272
AA
48772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4878
4879 * regcache.c: Include "regset.h".
4880 (regcache_transfer_regset): New local function.
4881 (regcache_supply_regset, regcache_collect_regset): New functions.
4882 * regcache.h (struct regcache_map_entry): New structure.
4883 (REGCACHE_MAP_SKIP): New enum value.
4884 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4885
7fefa8d7
AA
48862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4887
4888 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4889 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4890 (ppc_linux_collect_gregset ): Likewise.
4891 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4892 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4893 (ppc_collect_vrregset): Likewise.
4894 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4895 Likewise.
4896
96c4f946
YQ
48972014-08-07 Yao Qi <yao@codesourcery.com>
4898
4899 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4900 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4901 * remote.c (remote_read_bytes): Likewise.
4902
fffbe6a8
YQ
49032014-08-07 Yao Qi <yao@codesourcery.com>
4904
4905 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4906
5ee8a82c
YQ
49072014-08-07 Yao Qi <yao@codesourcery.com>
4908
4909 PR remote/17230
4910 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4911 TARGET_XFER_OK instead of 0.
4912
bb974a24
GB
49132014-08-07 Gary Benson <gbenson@redhat.com>
4914
4915 * common/common-defs.h: Include errno.h.
4916 * defs.h: Do not include errno.h.
4917 * ada-typeprint.c: Likewise.
4918 * c-typeprint.c: Likewise.
4919 * core-regset.c: Likewise.
4920 * corefile.c: Likewise.
4921 * corelow.c: Likewise.
4922 * event-loop.c: Likewise.
4923 * f-typeprint.c: Likewise.
4924 * gnu-nat.c: Likewise.
4925 * go32-nat.c: Likewise.
4926 * i386gnu-nat.c: Likewise.
4927 * m2-typeprint.c: Likewise.
4928 * nat/linux-btrace.c: Likewise.
4929 * p-typeprint.c: Likewise.
4930 * procfs.c: Likewise.
4931 * remote-sim.c: Likewise.
4932 * rs6000-nat.c: Likewise.
4933 * target.c: Likewise.
4934 * typeprint.c: Likewise.
4935 * ui-file.c: Likewise.
4936 * valops.c: Likewise.
4937 * valprint.c: Likewise.
4938
6d3d12eb
GB
49392014-08-07 Gary Benson <gbenson@redhat.com>
4940
4941 * common/common-defs.h: Include string.h.
4942 * aarch64-tdep.c: Do not include string.h.
4943 * ada-exp.y: Likewise.
4944 * ada-lang.c: Likewise.
4945 * ada-lex.l: Likewise.
4946 * ada-typeprint.c: Likewise.
4947 * ada-valprint.c: Likewise.
4948 * aix-thread.c: Likewise.
4949 * alpha-linux-tdep.c: Likewise.
4950 * alpha-mdebug-tdep.c: Likewise.
4951 * alpha-nat.c: Likewise.
4952 * alpha-osf1-tdep.c: Likewise.
4953 * alpha-tdep.c: Likewise.
4954 * alphanbsd-tdep.c: Likewise.
4955 * amd64-dicos-tdep.c: Likewise.
4956 * amd64-linux-tdep.c: Likewise.
4957 * amd64-nat.c: Likewise.
4958 * amd64-sol2-tdep.c: Likewise.
4959 * amd64fbsd-tdep.c: Likewise.
4960 * amd64obsd-tdep.c: Likewise.
4961 * arch-utils.c: Likewise.
4962 * arm-linux-nat.c: Likewise.
4963 * arm-linux-tdep.c: Likewise.
4964 * arm-tdep.c: Likewise.
4965 * arm-wince-tdep.c: Likewise.
4966 * armbsd-tdep.c: Likewise.
4967 * armnbsd-nat.c: Likewise.
4968 * armnbsd-tdep.c: Likewise.
4969 * armobsd-tdep.c: Likewise.
4970 * avr-tdep.c: Likewise.
4971 * ax-gdb.c: Likewise.
4972 * ax-general.c: Likewise.
4973 * bcache.c: Likewise.
4974 * bfin-tdep.c: Likewise.
4975 * breakpoint.c: Likewise.
4976 * build-id.c: Likewise.
4977 * buildsym.c: Likewise.
4978 * c-exp.y: Likewise.
4979 * c-lang.c: Likewise.
4980 * c-typeprint.c: Likewise.
4981 * c-valprint.c: Likewise.
4982 * charset.c: Likewise.
4983 * cli-out.c: Likewise.
4984 * cli/cli-cmds.c: Likewise.
4985 * cli/cli-decode.c: Likewise.
4986 * cli/cli-dump.c: Likewise.
4987 * cli/cli-interp.c: Likewise.
4988 * cli/cli-logging.c: Likewise.
4989 * cli/cli-script.c: Likewise.
4990 * cli/cli-setshow.c: Likewise.
4991 * cli/cli-utils.c: Likewise.
4992 * coffread.c: Likewise.
4993 * common/agent.c: Likewise.
4994 * common/buffer.c: Likewise.
4995 * common/buffer.h: Likewise.
4996 * common/common-utils.c: Likewise.
4997 * common/filestuff.c: Likewise.
4998 * common/filestuff.c: Likewise.
4999 * common/format.c: Likewise.
5000 * common/print-utils.c: Likewise.
5001 * common/rsp-low.c: Likewise.
5002 * common/signals.c: Likewise.
5003 * common/vec.h: Likewise.
5004 * common/xml-utils.c: Likewise.
5005 * core-regset.c: Likewise.
5006 * corefile.c: Likewise.
5007 * corelow.c: Likewise.
5008 * cp-abi.c: Likewise.
5009 * cp-name-parser.y: Likewise.
5010 * cp-support.c: Likewise.
5011 * cp-valprint.c: Likewise.
5012 * cris-tdep.c: Likewise.
5013 * d-exp.y: Likewise.
5014 * darwin-nat.c: Likewise.
5015 * dbxread.c: Likewise.
5016 * dcache.c: Likewise.
5017 * demangle.c: Likewise.
5018 * dicos-tdep.c: Likewise.
5019 * disasm.c: Likewise.
5020 * doublest.c: Likewise.
5021 * dsrec.c: Likewise.
5022 * dummy-frame.c: Likewise.
5023 * dwarf2-frame.c: Likewise.
5024 * dwarf2loc.c: Likewise.
5025 * dwarf2read.c: Likewise.
5026 * elfread.c: Likewise.
5027 * environ.c: Likewise.
5028 * eval.c: Likewise.
5029 * event-loop.c: Likewise.
5030 * exceptions.c: Likewise.
5031 * exec.c: Likewise.
5032 * expprint.c: Likewise.
5033 * f-exp.y: Likewise.
5034 * f-lang.c: Likewise.
5035 * f-typeprint.c: Likewise.
5036 * f-valprint.c: Likewise.
5037 * fbsd-nat.c: Likewise.
5038 * findcmd.c: Likewise.
5039 * findvar.c: Likewise.
5040 * fork-child.c: Likewise.
5041 * frame.c: Likewise.
5042 * frv-linux-tdep.c: Likewise.
5043 * frv-tdep.c: Likewise.
5044 * gdb.c: Likewise.
5045 * gdb_bfd.c: Likewise.
5046 * gdbarch.c: Likewise.
5047 * gdbarch.sh: Likewise.
5048 * gdbtypes.c: Likewise.
5049 * gnu-nat.c: Likewise.
5050 * gnu-v2-abi.c: Likewise.
5051 * gnu-v3-abi.c: Likewise.
5052 * go-exp.y: Likewise.
5053 * go-lang.c: Likewise.
5054 * go32-nat.c: Likewise.
5055 * guile/guile.c: Likewise.
5056 * guile/scm-auto-load.c: Likewise.
5057 * hppa-hpux-tdep.c: Likewise.
5058 * hppa-linux-nat.c: Likewise.
5059 * hppanbsd-tdep.c: Likewise.
5060 * hppaobsd-tdep.c: Likewise.
5061 * i386-cygwin-tdep.c: Likewise.
5062 * i386-dicos-tdep.c: Likewise.
5063 * i386-linux-tdep.c: Likewise.
5064 * i386-nto-tdep.c: Likewise.
5065 * i386-sol2-tdep.c: Likewise.
5066 * i386-tdep.c: Likewise.
5067 * i386bsd-tdep.c: Likewise.
5068 * i386gnu-nat.c: Likewise.
5069 * i386nbsd-tdep.c: Likewise.
5070 * i386obsd-tdep.c: Likewise.
5071 * i387-tdep.c: Likewise.
5072 * ia64-libunwind-tdep.c: Likewise.
5073 * ia64-linux-nat.c: Likewise.
5074 * inf-child.c: Likewise.
5075 * inf-ptrace.c: Likewise.
5076 * inf-ttrace.c: Likewise.
5077 * infcall.c: Likewise.
5078 * infcmd.c: Likewise.
5079 * inflow.c: Likewise.
5080 * infrun.c: Likewise.
5081 * interps.c: Likewise.
5082 * iq2000-tdep.c: Likewise.
5083 * irix5-nat.c: Likewise.
5084 * jv-exp.y: Likewise.
5085 * jv-lang.c: Likewise.
5086 * jv-typeprint.c: Likewise.
5087 * jv-valprint.c: Likewise.
5088 * language.c: Likewise.
5089 * linux-fork.c: Likewise.
5090 * linux-nat.c: Likewise.
5091 * lm32-tdep.c: Likewise.
5092 * m2-exp.y: Likewise.
5093 * m2-typeprint.c: Likewise.
5094 * m32c-tdep.c: Likewise.
5095 * m32r-linux-nat.c: Likewise.
5096 * m32r-linux-tdep.c: Likewise.
5097 * m32r-rom.c: Likewise.
5098 * m32r-tdep.c: Likewise.
5099 * m68hc11-tdep.c: Likewise.
5100 * m68k-tdep.c: Likewise.
5101 * m68kbsd-tdep.c: Likewise.
5102 * m68klinux-nat.c: Likewise.
5103 * m68klinux-tdep.c: Likewise.
5104 * m88k-tdep.c: Likewise.
5105 * machoread.c: Likewise.
5106 * macrocmd.c: Likewise.
5107 * main.c: Likewise.
5108 * mdebugread.c: Likewise.
5109 * mem-break.c: Likewise.
5110 * memattr.c: Likewise.
5111 * memory-map.c: Likewise.
5112 * mep-tdep.c: Likewise.
5113 * mi/mi-cmd-break.c: Likewise.
5114 * mi/mi-cmd-disas.c: Likewise.
5115 * mi/mi-cmd-env.c: Likewise.
5116 * mi/mi-cmd-stack.c: Likewise.
5117 * mi/mi-cmd-var.c: Likewise.
5118 * mi/mi-cmds.c: Likewise.
5119 * mi/mi-console.c: Likewise.
5120 * mi/mi-getopt.c: Likewise.
5121 * mi/mi-interp.c: Likewise.
5122 * mi/mi-main.c: Likewise.
5123 * mi/mi-parse.c: Likewise.
5124 * microblaze-rom.c: Likewise.
5125 * microblaze-tdep.c: Likewise.
5126 * mingw-hdep.c: Likewise.
5127 * minidebug.c: Likewise.
5128 * minsyms.c: Likewise.
5129 * mips-irix-tdep.c: Likewise.
5130 * mips-linux-tdep.c: Likewise.
5131 * mips-tdep.c: Likewise.
5132 * mips64obsd-tdep.c: Likewise.
5133 * mipsnbsd-tdep.c: Likewise.
5134 * mipsread.c: Likewise.
5135 * mn10300-linux-tdep.c: Likewise.
5136 * mn10300-tdep.c: Likewise.
5137 * monitor.c: Likewise.
5138 * moxie-tdep.c: Likewise.
5139 * mt-tdep.c: Likewise.
5140 * nat/linux-btrace.c: Likewise.
5141 * nat/linux-osdata.c: Likewise.
5142 * nat/linux-procfs.c: Likewise.
5143 * nat/linux-ptrace.c: Likewise.
5144 * nat/linux-waitpid.c: Likewise.
5145 * nbsd-tdep.c: Likewise.
5146 * nios2-linux-tdep.c: Likewise.
5147 * nto-procfs.c: Likewise.
5148 * nto-tdep.c: Likewise.
5149 * objc-lang.c: Likewise.
5150 * objfiles.c: Likewise.
5151 * opencl-lang.c: Likewise.
5152 * osabi.c: Likewise.
5153 * osdata.c: Likewise.
5154 * p-exp.y: Likewise.
5155 * p-lang.c: Likewise.
5156 * p-typeprint.c: Likewise.
5157 * parse.c: Likewise.
5158 * posix-hdep.c: Likewise.
5159 * ppc-linux-nat.c: Likewise.
5160 * ppc-sysv-tdep.c: Likewise.
5161 * ppcfbsd-tdep.c: Likewise.
5162 * ppcnbsd-tdep.c: Likewise.
5163 * ppcobsd-tdep.c: Likewise.
5164 * printcmd.c: Likewise.
5165 * procfs.c: Likewise.
5166 * prologue-value.c: Likewise.
5167 * python/py-auto-load.c: Likewise.
5168 * python/py-gdb-readline.c: Likewise.
5169 * ravenscar-thread.c: Likewise.
5170 * regcache.c: Likewise.
5171 * registry.c: Likewise.
5172 * remote-fileio.c: Likewise.
5173 * remote-m32r-sdi.c: Likewise.
5174 * remote-mips.c: Likewise.
5175 * remote-notif.c: Likewise.
5176 * remote-sim.c: Likewise.
5177 * remote.c: Likewise.
5178 * reverse.c: Likewise.
5179 * rs6000-aix-tdep.c: Likewise.
5180 * ser-base.c: Likewise.
5181 * ser-go32.c: Likewise.
5182 * ser-mingw.c: Likewise.
5183 * ser-pipe.c: Likewise.
5184 * ser-tcp.c: Likewise.
5185 * ser-unix.c: Likewise.
5186 * serial.c: Likewise.
5187 * sh-tdep.c: Likewise.
5188 * sh64-tdep.c: Likewise.
5189 * shnbsd-tdep.c: Likewise.
5190 * skip.c: Likewise.
5191 * sol-thread.c: Likewise.
5192 * solib-dsbt.c: Likewise.
5193 * solib-frv.c: Likewise.
5194 * solib-osf.c: Likewise.
5195 * solib-som.c: Likewise.
5196 * solib-spu.c: Likewise.
5197 * solib-target.c: Likewise.
5198 * solib.c: Likewise.
5199 * somread.c: Likewise.
5200 * source.c: Likewise.
5201 * sparc-nat.c: Likewise.
5202 * sparc-sol2-tdep.c: Likewise.
5203 * sparc-tdep.c: Likewise.
5204 * sparc64-tdep.c: Likewise.
5205 * sparc64fbsd-tdep.c: Likewise.
5206 * sparc64nbsd-tdep.c: Likewise.
5207 * sparcnbsd-tdep.c: Likewise.
5208 * spu-linux-nat.c: Likewise.
5209 * spu-multiarch.c: Likewise.
5210 * spu-tdep.c: Likewise.
5211 * stabsread.c: Likewise.
5212 * stack.c: Likewise.
5213 * std-regs.c: Likewise.
5214 * symfile.c: Likewise.
5215 * symmisc.c: Likewise.
5216 * symtab.c: Likewise.
5217 * target.c: Likewise.
5218 * thread.c: Likewise.
5219 * tilegx-linux-nat.c: Likewise.
5220 * tilegx-tdep.c: Likewise.
5221 * top.c: Likewise.
5222 * tracepoint.c: Likewise.
5223 * tui/tui-command.c: Likewise.
5224 * tui/tui-data.c: Likewise.
5225 * tui/tui-disasm.c: Likewise.
5226 * tui/tui-file.c: Likewise.
5227 * tui/tui-layout.c: Likewise.
5228 * tui/tui-out.c: Likewise.
5229 * tui/tui-regs.c: Likewise.
5230 * tui/tui-source.c: Likewise.
5231 * tui/tui-stack.c: Likewise.
5232 * tui/tui-win.c: Likewise.
5233 * tui/tui-windata.c: Likewise.
5234 * tui/tui-winsource.c: Likewise.
5235 * typeprint.c: Likewise.
5236 * ui-file.c: Likewise.
5237 * ui-out.c: Likewise.
5238 * user-regs.c: Likewise.
5239 * utils.c: Likewise.
5240 * v850-tdep.c: Likewise.
5241 * valarith.c: Likewise.
5242 * valops.c: Likewise.
5243 * valprint.c: Likewise.
5244 * value.c: Likewise.
5245 * varobj.c: Likewise.
5246 * vax-tdep.c: Likewise.
5247 * vaxnbsd-tdep.c: Likewise.
5248 * vaxobsd-tdep.c: Likewise.
5249 * windows-nat.c: Likewise.
5250 * xcoffread.c: Likewise.
5251 * xml-support.c: Likewise.
5252 * xstormy16-tdep.c: Likewise.
5253 * xtensa-linux-nat.c: Likewise.
5254
dccbb609
GB
52552014-08-07 Gary Benson <gbenson@redhat.com>
5256
5257 * common/common-defs.h: Include gdb_assert.h.
5258 * aarch64-tdep.c: Do not include gdb_assert.h.
5259 * addrmap.c: Likewise.
5260 * aix-thread.c: Likewise.
5261 * alpha-linux-tdep.c: Likewise.
5262 * alpha-mdebug-tdep.c: Likewise.
5263 * alphanbsd-tdep.c: Likewise.
5264 * amd64-nat.c: Likewise.
5265 * amd64-tdep.c: Likewise.
5266 * amd64bsd-nat.c: Likewise.
5267 * amd64fbsd-nat.c: Likewise.
5268 * amd64fbsd-tdep.c: Likewise.
5269 * amd64nbsd-nat.c: Likewise.
5270 * amd64nbsd-tdep.c: Likewise.
5271 * amd64obsd-nat.c: Likewise.
5272 * amd64obsd-tdep.c: Likewise.
5273 * arch-utils.c: Likewise.
5274 * arm-tdep.c: Likewise.
5275 * armbsd-tdep.c: Likewise.
5276 * auxv.c: Likewise.
5277 * bcache.c: Likewise.
5278 * bfin-tdep.c: Likewise.
5279 * blockframe.c: Likewise.
5280 * breakpoint.c: Likewise.
5281 * bsd-kvm.c: Likewise.
5282 * bsd-uthread.c: Likewise.
5283 * buildsym.c: Likewise.
5284 * c-exp.y: Likewise.
5285 * c-lang.c: Likewise.
5286 * charset.c: Likewise.
5287 * cleanups.c: Likewise.
5288 * cli-out.c: Likewise.
5289 * cli/cli-decode.c: Likewise.
5290 * cli/cli-dump.c: Likewise.
5291 * cli/cli-logging.c: Likewise.
5292 * cli/cli-script.c: Likewise.
5293 * cli/cli-utils.c: Likewise.
5294 * coffread.c: Likewise.
5295 * common/common-utils.c: Likewise.
5296 * common/queue.h: Likewise.
5297 * common/signals.c: Likewise.
5298 * common/vec.h: Likewise.
5299 * complaints.c: Likewise.
5300 * completer.c: Likewise.
5301 * corelow.c: Likewise.
5302 * cp-abi.c: Likewise.
5303 * cp-name-parser.y: Likewise.
5304 * cp-namespace.c: Likewise.
5305 * cp-support.c: Likewise.
5306 * cris-tdep.c: Likewise.
5307 * dbxread.c: Likewise.
5308 * dictionary.c: Likewise.
5309 * doublest.c: Likewise.
5310 * dsrec.c: Likewise.
5311 * dummy-frame.c: Likewise.
5312 * dwarf2-frame-tailcall.c: Likewise.
5313 * dwarf2-frame.c: Likewise.
5314 * dwarf2expr.c: Likewise.
5315 * dwarf2loc.c: Likewise.
5316 * dwarf2read.c: Likewise.
5317 * eval.c: Likewise.
5318 * event-loop.c: Likewise.
5319 * exceptions.c: Likewise.
5320 * expprint.c: Likewise.
5321 * f-valprint.c: Likewise.
5322 * fbsd-nat.c: Likewise.
5323 * findvar.c: Likewise.
5324 * frame-unwind.c: Likewise.
5325 * frame.c: Likewise.
5326 * frv-tdep.c: Likewise.
5327 * gcore.c: Likewise.
5328 * gdb-dlfcn.c: Likewise.
5329 * gdb_bfd.c: Likewise.
5330 * gdbarch.c: Likewise.
5331 * gdbarch.sh: Likewise.
5332 * gdbtypes.c: Likewise.
5333 * gnu-nat.c: Likewise.
5334 * gnu-v3-abi.c: Likewise.
5335 * go-lang.c: Likewise.
5336 * guile/scm-exception.c: Likewise.
5337 * guile/scm-gsmob.c: Likewise.
5338 * guile/scm-lazy-string.c: Likewise.
5339 * guile/scm-math.c: Likewise.
5340 * guile/scm-pretty-print.c: Likewise.
5341 * guile/scm-safe-call.c: Likewise.
5342 * guile/scm-utils.c: Likewise.
5343 * guile/scm-value.c: Likewise.
5344 * h8300-tdep.c: Likewise.
5345 * hppa-hpux-nat.c: Likewise.
5346 * hppa-tdep.c: Likewise.
5347 * hppanbsd-tdep.c: Likewise.
5348 * hppaobsd-tdep.c: Likewise.
5349 * i386-darwin-nat.c: Likewise.
5350 * i386-darwin-tdep.c: Likewise.
5351 * i386-nto-tdep.c: Likewise.
5352 * i386-tdep.c: Likewise.
5353 * i386bsd-nat.c: Likewise.
5354 * i386fbsd-tdep.c: Likewise.
5355 * i386gnu-nat.c: Likewise.
5356 * i386nbsd-tdep.c: Likewise.
5357 * i386obsd-tdep.c: Likewise.
5358 * i387-tdep.c: Likewise.
5359 * ia64-libunwind-tdep.c: Likewise.
5360 * ia64-tdep.c: Likewise.
5361 * inf-ptrace.c: Likewise.
5362 * inf-ttrace.c: Likewise.
5363 * infcall.c: Likewise.
5364 * infcmd.c: Likewise.
5365 * infrun.c: Likewise.
5366 * inline-frame.c: Likewise.
5367 * interps.c: Likewise.
5368 * jv-lang.c: Likewise.
5369 * jv-typeprint.c: Likewise.
5370 * linux-fork.c: Likewise.
5371 * linux-nat.c: Likewise.
5372 * linux-thread-db.c: Likewise.
5373 * m32c-tdep.c: Likewise.
5374 * m32r-linux-nat.c: Likewise.
5375 * m32r-tdep.c: Likewise.
5376 * m68k-tdep.c: Likewise.
5377 * m68kbsd-nat.c: Likewise.
5378 * m68kbsd-tdep.c: Likewise.
5379 * m88k-tdep.c: Likewise.
5380 * machoread.c: Likewise.
5381 * macroexp.c: Likewise.
5382 * macrotab.c: Likewise.
5383 * maint.c: Likewise.
5384 * mdebugread.c: Likewise.
5385 * memory-map.c: Likewise.
5386 * mep-tdep.c: Likewise.
5387 * mi/mi-common.c: Likewise.
5388 * microblaze-tdep.c: Likewise.
5389 * mingw-hdep.c: Likewise.
5390 * mips-linux-nat.c: Likewise.
5391 * mips-linux-tdep.c: Likewise.
5392 * mips-tdep.c: Likewise.
5393 * mips64obsd-tdep.c: Likewise.
5394 * mipsnbsd-tdep.c: Likewise.
5395 * mn10300-linux-tdep.c: Likewise.
5396 * mn10300-tdep.c: Likewise.
5397 * moxie-tdep.c: Likewise.
5398 * mt-tdep.c: Likewise.
5399 * nat/linux-btrace.c: Likewise.
5400 * nat/linux-osdata.c: Likewise.
5401 * nat/linux-ptrace.c: Likewise.
5402 * nat/mips-linux-watch.c: Likewise.
5403 * nios2-linux-tdep.c: Likewise.
5404 * nios2-tdep.c: Likewise.
5405 * objc-lang.c: Likewise.
5406 * objfiles.c: Likewise.
5407 * obsd-nat.c: Likewise.
5408 * opencl-lang.c: Likewise.
5409 * osabi.c: Likewise.
5410 * parse.c: Likewise.
5411 * ppc-linux-nat.c: Likewise.
5412 * ppc-sysv-tdep.c: Likewise.
5413 * ppcfbsd-nat.c: Likewise.
5414 * ppcfbsd-tdep.c: Likewise.
5415 * ppcnbsd-nat.c: Likewise.
5416 * ppcnbsd-tdep.c: Likewise.
5417 * ppcobsd-nat.c: Likewise.
5418 * ppcobsd-tdep.c: Likewise.
5419 * printcmd.c: Likewise.
5420 * procfs.c: Likewise.
5421 * prologue-value.c: Likewise.
5422 * psymtab.c: Likewise.
5423 * python/py-lazy-string.c: Likewise.
5424 * python/py-value.c: Likewise.
5425 * regcache.c: Likewise.
5426 * reggroups.c: Likewise.
5427 * registry.c: Likewise.
5428 * remote-sim.c: Likewise.
5429 * remote.c: Likewise.
5430 * rs6000-aix-tdep.c: Likewise.
5431 * rs6000-tdep.c: Likewise.
5432 * s390-linux-tdep.c: Likewise.
5433 * score-tdep.c: Likewise.
5434 * ser-base.c: Likewise.
5435 * ser-mingw.c: Likewise.
5436 * sh-tdep.c: Likewise.
5437 * sh64-tdep.c: Likewise.
5438 * solib-darwin.c: Likewise.
5439 * solib-spu.c: Likewise.
5440 * solib-svr4.c: Likewise.
5441 * source.c: Likewise.
5442 * sparc-nat.c: Likewise.
5443 * sparc-sol2-tdep.c: Likewise.
5444 * sparc-tdep.c: Likewise.
5445 * sparc64-sol2-tdep.c: Likewise.
5446 * sparc64-tdep.c: Likewise.
5447 * sparc64fbsd-tdep.c: Likewise.
5448 * sparc64nbsd-tdep.c: Likewise.
5449 * sparc64obsd-tdep.c: Likewise.
5450 * sparcnbsd-tdep.c: Likewise.
5451 * sparcobsd-tdep.c: Likewise.
5452 * spu-multiarch.c: Likewise.
5453 * spu-tdep.c: Likewise.
5454 * stabsread.c: Likewise.
5455 * stack.c: Likewise.
5456 * symfile.c: Likewise.
5457 * symtab.c: Likewise.
5458 * target-descriptions.c: Likewise.
5459 * target-memory.c: Likewise.
5460 * target.c: Likewise.
5461 * tic6x-linux-tdep.c: Likewise.
5462 * tic6x-tdep.c: Likewise.
5463 * tilegx-linux-nat.c: Likewise.
5464 * tilegx-tdep.c: Likewise.
5465 * top.c: Likewise.
5466 * tramp-frame.c: Likewise.
5467 * tui/tui-out.c: Likewise.
5468 * tui/tui-winsource.c: Likewise.
5469 * ui-out.c: Likewise.
5470 * user-regs.c: Likewise.
5471 * utils.c: Likewise.
5472 * v850-tdep.c: Likewise.
5473 * valops.c: Likewise.
5474 * value.c: Likewise.
5475 * varobj.c: Likewise.
5476 * vax-nat.c: Likewise.
5477 * xml-syscall.c: Likewise.
5478 * xml-tdesc.c: Likewise.
5479 * xstormy16-tdep.c: Likewise.
5480 * xtensa-linux-nat.c: Likewise.
5481 * xtensa-tdep.c: Likewise.
5482
e76df0d0
GB
54832014-08-07 Gary Benson <gbenson@redhat.com>
5484
5485 * common/common-defs.h: Include common-utils.h.
5486 * defs.h: Do not include common-utils.h.
5487 * common/gdb_assert.h: Likewise.
5488 * darwin-nat.h: Likewise.
5489 * nat/linux-btrace.c: Likewise.
5490 * target/waitstatus.h: Likewise.
5491
4cb9c816
GB
54922014-08-07 Gary Benson <gbenson@redhat.com>
5493
5494 * common/common-defs.h: Include ptid.h.
5495 * defs.h: Do not include ptid.h.
5496 * inferior.h: Likewise.
5497 * infrun.h: Likewise.
5498 * nat/linux-btrace.h: Likewise.
5499 * nat/linux-osdata.h: Likewise.
5500 * target/waitstatus.h: Likewise.
5501
3995eeee
GB
55022014-08-07 Gary Benson <gbenson@redhat.com>
5503
5504 * common/common-defs.h: Include gdb_locale.h.
5505 * defs.h: Do not include gdb_locale.h.
5506
cb9f1a9b
GB
55072014-08-07 Gary Benson <gbenson@redhat.com>
5508
5509 * common/common-defs.h: Include gdb/signals.h.
5510 * defs.h: Do not include gdb/signals.h.
5511
a5fceff8
GB
55122014-08-07 Gary Benson <gbenson@redhat.com>
5513
5514 * common/common-defs.h: Include pathmax.h.
5515 * defs.h: Do not include pathmax.h.
5516
b9391142
GB
55172014-08-07 Gary Benson <gbenson@redhat.com>
5518
5519 * common/common-defs.h: Include libiberty.h.
5520 * defs.h: Do not include libiberty.h.
5521 * common/queue.h: Likewise.
5522 * cp-name-parser.y: Likewise.
5523 * mi/mi-cmd-catch.c: Likewise.
5524 * python/python.c: Likewise.
5525
0e443c87
GB
55262014-08-07 Gary Benson <gbenson@redhat.com>
5527
5528 * common/common-defs.h: Include ansidecl.h.
5529 * defs.h: Do not include ansidecl.h.
5530 * common/buffer.h: Likewise.
5531 * common/common-utils.h: Likewise.
5532
8ebb3f56
GB
55332014-08-07 Gary Benson <gbenson@redhat.com>
5534
5535 * common/common-defs.h: Include stddef.h.
5536 * defs.h: Do not include stddef.h.
5537 * common/common-utils.h: Likewise.
5538 * amd64fbsd-nat.c: Likewise.
5539 * bcache.c: Likewise.
5540 * charset.c: Likewise.
5541 * common/buffer.h: Likewise.
5542 * common/vec.h: Likewise.
5543 * i386bsd-nat.c: Likewise.
5544 * nat/linux-btrace.h: Likewise.
5545 * ppcfbsd-nat.c: Likewise.
5546 * ppcnbsd-tdep.h: Likewise.
5547 * ppcobsd-nat.c: Likewise.
5548 * ppcobsd-tdep.h: Likewise.
5549 * python/py-gdb-readline.c: Likewise.
5550
8980bdf6
GB
55512014-08-07 Gary Benson <gbenson@redhat.com>
5552
5553 * common/common-defs.h: Include stdarg.h.
5554 * defs.h: Do not include stdarg.h.
5555 * ada-lang.c: Likewise.
5556 * common/common-utils.h: Likewise.
5557 * guile/scm-string.c: Likewise.
5558 * guile/scm-utils.c: Likewise.
5559 * m32c-tdep.c: Likewise.
5560
d7096f71
GB
55612014-08-07 Gary Benson <gbenson@redhat.com>
5562
5563 * common/common-defs.h: Include stdlib.h.
5564 * defs.h: Do not include stdlib.h.
5565 * addrmap.c: Likewise.
5566 * bcache.c: Likewise.
5567 * common/buffer.c: Likewise.
5568 * common/common-utils.c: Likewise.
5569 * cp-name-parser.y: Likewise.
5570 * go32-nat.c: Likewise.
5571 * mn10300-linux-tdep.c: Likewise.
5572 * nat/linux-osdata.c: Likewise.
5573 * tui/tui.c: Likewise.
5574 * windows-nat.c: Likewise.
5575
d02f550d
GB
55762014-08-07 Gary Benson <gbenson@redhat.com>
5577
5578 * common/common-defs.h: Include stdio.h.
5579 * defs.h: Do not include stdio.h.
5580 * ada-lang.c: Likewise.
5581 * common/buffer.c: Likewise.
5582 * common/common-utils.c: Likewise.
5583 * cp-name-parser.y: Likewise.
5584 * gnu-nat.c: Likewise.
5585 * go32-nat.c: Likewise.
5586 * i386gnu-nat.c: Likewise.
5587 * proc-api.c: Likewise.
5588 * proc-events.c: Likewise.
5589 * proc-flags.c: Likewise.
5590 * proc-why.c: Likewise.
5591 * python/python-internal.h: Likewise.
5592 * target-memory.c: Likewise.
5593 * tui/tui-io.c: Likewise.
5594 * tui/tui.c: Likewise.
5595
b6d7a4bf
SM
55962014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5597
5598 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5599 (scan_dyntag_auxv): Same.
5600
af19829b
YQ
56012014-08-06 Yao Qi <yao@codesourcery.com>
5602
5603 * amd64-linux-nat.c: Remove duplicated include
5604 "x86-linux-nat.h".
5605 * i386-linux-nat.c: Likewise.
5606
8e07a239
YQ
56072014-08-06 Yao Qi <yao@codesourcery.com>
5608
5609 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5610 operand" with "Special opcode" in comments.
5611
7bfe8241
GB
56122014-08-05 Gary Benson <gbenson@redhat.com>
5613
5614 * interps.c (initialize_interps): Remove prototype.
5615 (interpreter_initialized): Remove static global.
5616 (interp_add): Do not call initialize_interps.
5617 (initialize_interps): Remove function.
5618
d6c95504
GB
56192014-08-05 Gary Benson <gbenson@redhat.com>
5620
5621 * utils.c (vwarning): Remove spurious va_end.
5622
241fd515
AM
56232014-08-05 Alan Modra <amodra@gmail.com>
5624
5625 * charset.c (convert_between_encodings): Cast result of obstack_base.
5626 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5627 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5628 (read_unwind_info): Use size_t for some locals.
5629 * jit.c (finalize_symtab): Likewise.
5630 * utils.c (hashtab_obstack_allocate): Likewise.
5631 * symmisc.c (print_objfile_statistics): Update format strings.
5632
dc304a94
JK
56332014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5634
5635 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5636 (Changes in GDB 7.8): ... here.
5637
3cecbbbe
TT
56382014-08-04 Tom Tromey <tromey@redhat.com>
5639
5640 * target.c (set_targetdebug): New function.
5641 (initialize_targets): Pass set_targetdebug when creating "set
5642 debug target".
5643
6908c509
JB
56442014-08-01 Joel Brobecker <brobecker@adacore.com>
5645
5646 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5647 if detecting a variable-sized field that is not the last field.
5648 Fix struct type length computation.
5649
53e8f97d
JB
56502014-08-01 Joel Brobecker <brobecker@adacore.com>
5651
5652 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5653 Add debug trace.
5654
e068c55d
JB
56552014-08-01 Joel Brobecker <brobecker@adacore.com>
5656
5657 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5658 Remove "+ 8" offset in computation of CHAIN_VMA.
5659
4d4ca2a1
DE
56602014-07-31 Doug Evans <dje@google.com>
5661
5662 * inflow.c (child_terminal_inferior): Add comment.
5663 (child_terminal_ours_for_output): Add comment.
5664 (child_terminal_ours): Add comment.
5665 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5666 (linux_nat_terminal_ours): Add comment.
5667
462f517e
GB
56682014-07-31 Gary Benson <gbenson@redhat.com>
5669
5670 * common/btrace-common.h: Do not include defs.h or server.h.
5671 * nat/mips-linux-watch.h: Likewise.
5672 * gdb-dlfcn.h: Do not include defs.h.
5673 * tracefile.h: Likewise.
5674
74228e77
RM
56752014-07-30 Roland McGrath <mcgrathr@google.com>
5676
5677 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5678
014f9477
TT
56792014-07-30 Tom Tromey <tromey@redhat.com>
5680
5681 * bsd-kvm.c (bsd_kvm_open): Constify.
5682 * corelow.c (core_open): Constify.
5683 * ctf.c (ctf_open): Constify.
5684 * dbug-rom.c (dbug_open): Constify.
5685 * exec.c (exec_open): Constify.
5686 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5687 * microblaze-rom.c (picobug_open): Constify.
5688 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5689 Constify.
5690 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5691 * record-btrace.c (record_btrace_open): Constify.
5692 * record-full.c (record_full_core_open_1, record_full_open_1)
5693 (record_full_open): Constify.
5694 * remote-m32r-sdi.c (m32r_open): Constify.
5695 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5696 (rockhopper_open, lsi_open): Constify.
5697 * remote-sim.c (gdbsim_open): Constify.
5698 * remote.c (remote_open, extended_remote_open, remote_open_1):
5699 Constify.
5700 * target.h (struct target_ops) <to_open>: Make "arg" const.
5701 * tracefile-tfile.c (tfile_open): Constify.
5702
e799154c
TT
57032014-07-30 Tom Tromey <tromey@redhat.com>
5704
5705 * breakpoint.c (map_breakpoint_numbers): Update.
5706 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5707 (get_number_const): New function.
5708 (get_number): Rewrite using get_number_const.
5709 (init_number_or_range): Make "string" const.
5710 (number_is_in_list): Make "list" const.
5711 * cli/cli-utils.h (get_number_const): Declare.
5712 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5713 (init_number_or_range, number_is_in_list): Update.
5714 * printcmd.c (map_display_numbers): Update.
5715 * value.c (value_from_history_ref): Constify.
5716 * value.h (value_from_history_ref): Update.
5717
5f08566b
TT
57182014-07-30 Tom Tromey <tromey@redhat.com>
5719
5720 * corefile.c (hook_type, call_extra_exec_file_hooks)
5721 (specify_exec_file_hook): Constify.
5722 * exec.c (exec_file_attach): Make "filename" const.
5723 * gdbcore.h (deprecated_exec_file_display_hook)
5724 (specify_exec_file_hook, exec_file_attach): Constify.
5725 * main.c (captured_main): Use catch_command_errors_const.
5726
8981c758
TT
57272014-07-30 Tom Tromey <tromey@redhat.com>
5728
5729 * target.c (open_target): New function.
5730 (add_target_with_completer, add_deprecated_target_alias): Use
5731 set_cmd_sfunc, set_cmd_context.
5732 (debug_to_open): Remove.
5733 (setup_target_debug): Update.
5734
a1c7835a
YQ
57352014-07-30 Yao Qi <yao@codesourcery.com>
5736
5737 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5738 comments.
5739 * parse.c (exp_iterate): Update comments.
5740
976411d6
GB
57412014-07-30 Gary Benson <gbenson@redhat.com>
5742
5743 * common/common-defs.h: New file.
5744 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5745 * defs.h: Include common-defs.h.
5746 Do not include config.h or build-gnulib/config.h.
5747
5d4848a4
GB
57482014-07-30 Gary Benson <gbenson@redhat.com>
5749
5750 * common/common-utils.h: Do not include config.h.
5751 * nat/linux-btrace.h: Likewise.
5752
d41f6d8e
GB
57532014-07-30 Gary Benson <gbenson@redhat.com>
5754
5755 * btrace.c: Include defs.h.
5756 * common/ptid.c: Include defs.h or server.h as appropriate.
5757 * nat/mips-linux-watch.c: Likewise.
5758
84202f9c
TT
57592014-07-29 Tom Tromey <tromey@redhat.com>
5760
5761 * target.c (target_is_pushed): Simplify.
5762
2530441c
JB
57632014-07-29 Joel Brobecker <brobecker@adacore.com>
5764
5765 GDB 7.8 released.
5766
7e09a223
YQ
57672014-07-29 Yao Qi <yao@codesourcery.com>
5768
5769 PR gdb/17206
5770 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5771
7ebdbe92
DE
57722014-07-28 Doug Evans <xdje42@gmail.com>
5773
5774 PR guile/17203
5775 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5776 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5777 parameters.
5778
f347ffc9
WN
57792014-07-28 Will Newton <will.newton@linaro.org>
5780
5781 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5782 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5783 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5784 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5785 (THUMB2_EABI_SYSCALL): Likewise.
5786 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5787 struct tramp_frame.
5788 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5789 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5790
37c5f1f7
DE
57912014-07-27 Doug Evans <xdje42@gmail.com>
5792
5793 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5794
0c3abbc7
DE
57952014-07-27 Doug Evans <xdje42@gmail.com>
5796
5797 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5798
e76c5d17
DE
57992014-07-26 Ludovic Courtès <ludo@gnu.org>
5800 Doug Evans <xdje42@gmail.com>
5801
5802 PR guile/17146
5803 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5804 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5805 * configure.ac: Try to use guild to compile an scm file, if it fails
5806 then disable guile support.
5807 * configure: Regenerate.
5808 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5809 GUILE_FILE_LIST.
5810 (GUILE_COMPILED_FILES): New variable.
5811 (GUILE_FILES) Update.
5812 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5813 (stamp-guile): Compile scm files.
5814 * guile/guile.c (boot_guile_support): New function.
5815 (standard_throw_args_p): New function.
5816 (print_standard_throw_error, print_throw_error): New functions.
5817 (handle_boot_error): New function.
5818 (initialize_scheme_side): Rewrite to call boot_guile_support.
5819 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5820 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5821
186fcde0
DE
58222014-07-26 Ludovic Courtès <ludo@gnu.org>
5823 Doug Evans <xdje42@gmail.com>
5824
5825 PR guile/17146
5826 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5827 * guile/lib/gdb/support.scm: New file.
5828 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5829 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5830 All uses updated.
5831 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5832 All uses updated.
5833 (%assert-type): Ditto, and renamed to assert-type.
5834 (%exception-print-style): Delete.
5835
4df42755
DE
58362014-07-26 Doug Evans <xdje42@gmail.com>
5837
5838 PR build/17105
5839 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5840 * configure: Regenerate.
5841 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5842 PYTHON_FILES.
5843 (PYTHON_FILES): New variable.
5844 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5845 (GUILE_FILES): New variable.
5846 (stamp-python, install-python, uninstall-python): Handle empty
5847 file list.
5848 (stamp-guile, install-guile, uninstall-guile): Ditto.
5849
ee7333ae
DE
58502014-07-26 Doug Evans <xdje42@gmail.com>
5851
5852 PR guile/17177
5853 * guile/lib/gdb.scm (pretty-printers): Export.
5854 (set-pretty-printers!): Export.
5855 * guile/lib/gdb/printing.scm (gdb module): Update.
5856 (prepend-pretty-printer!, append-pretty-printer!): Update.
5857 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5858 (pretty_printer_list_var): Delete.
5859 (pretty_printer_list): New static global.
5860 (gdbscm_pretty_printers): New function.
5861 (gdbscm_set_pretty_printers_x): New function.
5862 (ppscm_find_pretty_printer_from_gdb): Update.
5863 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5864 (gdbscm_initialize_pretty_printers): Update.
5865
74edf516
DE
58662014-07-26 Doug Evans <xdje42@gmail.com>
5867
5868 PR 17185
5869 * configure.ac: Add check for header gc/gc.h.
5870 Add check for function setenv.
5871 * configure: Regenerate.
5872 * config.in: Regenerate.
5873 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5874
d54398a7
MR
58752014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5876
5877 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5878 variation in gdbarch matching.
5879
ab16fce8
TT
58802014-07-25 Tom Tromey <tromey@redhat.com>
5881
5882 * exec.c (using_exec_ops): Remove.
5883 (exec_close_1): Update. Remove extraneous block, reindent.
5884 (add_target_sections): Use target_is_pushed.
5885
88056fbb
PA
58862014-07-25 Pedro Alves <palves@redhat.com>
5887
5888 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5889 * monitor.c (monitor_create_inferior): Likewise.
5890 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5891 * remote-sim.c (gdbsim_create_inferior): Likewise.
5892 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5893 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5894 * windows-nat.c (do_initial_windows_stuff): Likewise.
5895
70509625
PA
58962014-07-25 Pedro Alves <palves@redhat.com>
5897
5898 * NEWS: Mention signal passing and "signal" command changes.
5899 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5900 comment.
5901 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5902 call.
5903 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5904 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5905 (jump_command): Adjust clear_proceed_status call.
5906 (signal_command): Warn if other thread that are resumed have
5907 signals that will be delivered. Adjust clear_proceed_status call.
5908 (until_next_command, finish_command)
5909 (proceed_after_attach_callback, attach_command_post_wait)
5910 (attach_command): Adjust clear_proceed_status call.
5911 * infrun.c (proceed_after_vfork_done): Likewise.
5912 (proceed_after_attach_callback): Adjust comment.
5913 (clear_proceed_status_thread): Clear stop_signal if not in pass
5914 state.
5915 (clear_proceed_status_callback): Delete.
5916 (clear_proceed_status): New 'step' parameter. Only clear the
5917 proceed status of threads the command being prepared is about to
5918 resume.
5919 (proceed): If passed in an explicit signal, override stop_signal
5920 with it. Don't pass the last stop signal to the thread we're
5921 resuming.
5922 (init_wait_for_inferior): Adjust clear_proceed_status call.
5923 (switch_back_to_stepped_thread): Clear the signal if it should not
5924 be passed.
5925 * infrun.h (clear_proceed_status): New 'step' parameter.
5926 (user_visible_resume_ptid): Add comment.
5927 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5928 signal is in pass state.
5929 * remote.c (append_pending_thread_resumptions): Likewise.
5930 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5931
d8be2939
TT
59322014-07-25 Tom Tromey <tromey@redhat.com>
5933
5934 * target.h (target_stopped_data_address)
5935 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5936 parentheses.
5937
7d0d9d2b
PL
59382014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5939
5940 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5941 comments.
5942 (avr_pointer_to_address): Likewise.
5943
e9e7f724
TT
59442014-07-24 Tom Tromey <tromey@redhat.com>
5945
5946 * monitor.c (compile_pattern): Update.
5947 * target.h (struct target_ops) <to_shortname, to_longname,
5948 to_doc>: Now const.
5949
1947513d
TT
59502014-07-24 Tom Tromey <tromey@redhat.com>
5951
5952 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5953 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5954 (add_info_alias, add_com): Make "doc" const.
5955 (print_doc_line): Make "str" const.
5956 (delete_cmd): Update.
5957 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5958 (print_doc_line): Update.
5959 * cli/cli-script.c (document_command): Update.
5960 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5961 (add_com, add_info, add_info_alias): Update.
5962 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5963 * python/py-cmd.c (cmdpy_destroyer): Update.
5964
64e61d29
TT
59652014-07-24 Tom Tromey <tromey@redhat.com>
5966
5967 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5968 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5969 (help_cmd_list): Constify.
5970 (lookup_cmd): Update.
5971 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5972 const.
5973 (help_cmd_list, apropos_cmd): Update.
5974 * cli/cli-script.c (show_user): Update.
5975 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5976 * cli/cli-setshow.h (cmd_show_list): Update.
5977 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5978 (cmd_show_list): Update.
5979 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5980 * python/py-cmd.c (cmdpy_destroyer): Update.
5981
429e55ea
TT
59822014-07-24 Tom Tromey <tromey@redhat.com>
5983
5984 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5985 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5986 const.
5987 * command.h (deprecate_cmd): Update.
5988 * maint.c (maintenance_do_deprecate): Add casts.
5989
64669f3b
TT
59902014-07-24 Tom Tromey <tromey@redhat.com>
5991
5992 * cli/cli-decode.c (help_cmd): Make parameter "const".
5993 * cli/cli-decode.h (help_cmd): Update.
5994
d3d3328b
TT
59952014-07-24 Tom Tromey <tromey@redhat.com>
5996
5997 * stack.c (up_silently_base, down_silently_base): Make argument
5998 const.
5999
414842dc
TT
60002014-07-24 Tom Tromey <tromey@redhat.com>
6001
6002 * solib.c (solib_add): Make "pattern" const.
6003 * solib.h (solib_add): Update.
6004
baa336ce
TT
60052014-07-24 Tom Tromey <tromey@redhat.com>
6006
6007 * remote.c (remote_serial_open, print_packet, putpkt)
6008 (putpkt_binary): Constify.
6009 * remote.h (putpkt): Update.
6010
5a19e2d0
TT
60112014-07-24 Tom Tromey <tromey@redhat.com>
6012
6013 * monitor.c (monitor_open): Make "args" const.
6014 * monitor.h (monitor_open): Update.
6015
fc4baa5e
TT
60162014-07-24 Tom Tromey <tromey@redhat.com>
6017
6018 * maint.c (match_bfd_flags): Make "string" const.
6019 (print_bfd_section_info): Remove casts.
6020 (print_objfile_section_info): Make "string" const.
6021
0d5f0dbe
TT
60222014-07-24 Tom Tromey <tromey@redhat.com>
6023
6024 * inf-child.c (inf_child_open_target): Make "arg" const.
6025 * inf-child.h (inf_child_open_target): Update.
6026
41c77899
TT
60272014-07-24 Tom Tromey <tromey@redhat.com>
6028
6029 * environ.c (unset_in_environ): Make "var" const.
6030 * environ.h (unset_in_environ): Update.
6031
93db0d79
TT
60322014-07-24 Tom Tromey <tromey@redhat.com>
6033
6034 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6035 Make "cmd" const.
6036 (scan_filename_with_cleanup): Likewise.
6037 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6038 Make arguments const.
6039 (restore_command): Update.
6040
36d6eb95
PA
60412014-07-24 Pedro Alves <palves@redhat.com>
6042
6043 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6044
8009206a
TT
60452014-07-24 Tom Tromey <tromey@redhat.com>
6046 Gary Benson <gbenson@redhat.com>
6047
6048 * nat/linux-ptrace.c (additional_flags): New global.
6049 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6050 additional_flags; don't check GDBSERVER.
6051 (linux_ptrace_set_additional_flags): New function.
6052 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6053 Declare.
6054 * linux-nat.c (_initialize_linux_nat): Call
6055 linux_ptrace_set_additional_flags.
6056
a7068b60
TT
60572014-07-24 Tom Tromey <tromey@redhat.com>
6058
6059 * make-target-delegates (munge_type, write_debugmethod): New
6060 functions.
6061 (debug_names): New global.
6062 ($TARGET_DEBUG_PRINTER): New global.
6063 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6064 name.
6065 Write debug methods. Generate init_debug_target.
6066 * target-debug.h: New file.
6067 * target-delegates.c: Rebuild.
6068 * target.c: Include target-debug.h.
6069 (debug_target): Hoist definition.
6070 (target_kill, target_get_section_table, target_memory_map)
6071 (target_flash_erase, target_flash_done, target_detach)
6072 (target_disconnect, target_wait, target_resume)
6073 (target_pass_signals, target_program_signals, target_follow_fork)
6074 (target_mourn_inferior, target_search_memory)
6075 (target_thread_address_space, target_close)
6076 (target_find_new_threads, target_core_of_thread)
6077 (target_verify_memory, target_insert_mask_watchpoint)
6078 (target_remove_mask_watchpoint): Remove targetdebug code.
6079 (debug_to_post_attach, debug_to_prepare_to_store)
6080 (debug_to_files_info, debug_to_insert_breakpoint)
6081 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6082 (debug_to_region_ok_for_hw_watchpoint)
6083 (debug_to_can_accel_watchpoint_condition)
6084 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6085 (debug_to_watchpoint_addr_within_range)
6086 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6087 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6088 (debug_to_terminal_init, debug_to_terminal_inferior)
6089 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6090 (debug_to_terminal_save_ours, debug_to_terminal_info)
6091 (debug_to_load, debug_to_post_startup_inferior)
6092 (debug_to_insert_fork_catchpoint)
6093 (debug_to_remove_fork_catchpoint)
6094 (debug_to_insert_vfork_catchpoint)
6095 (debug_to_remove_vfork_catchpoint)
6096 (debug_to_insert_exec_catchpoint)
6097 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6098 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6099 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6100 (setup_target_debug): Call init_debug_target.
6101 * target.h (TARGET_DEBUG_PRINTER): New macro.
6102 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6103 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6104
2c51604d
GB
61052014-07-24 Gary Benson <gbenson@redhat.com>
6106
6107 * exceptions.h (throw_vfatal): Renamed to...
6108 (throw_vquit): New declaration.
6109 (throw_quit): Likewise.
6110 * exceptions.c (throw_vfatal): Renamed to...
6111 (throw_vquit): New function.
6112 (throw_quit): Likewise.
6113 (throw_error): Call throw_verror rather than throw_it.
6114 * utils.h (vfatal): Removed.
6115 (fatal): Likewise.
6116 * utils.c (vfatal): Removed.
6117 (fatal): Likewise.
6118 (internal_verror): Replaced call to fatal with call to throw_quit.
6119 (quit): Replaced calls to fatal with calls to throw_quit.
6120
34211963
ME
61212014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6122
6123 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6124 target_read_code.
6125
a52b4d3e
ME
61262014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6127
6128 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6129 less than zero in conditional expression.
6130
a8bdc56b
TT
61312014-07-23 Tom Tromey <tromey@redhat.com>
6132
6133 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6134 ($INTRO_PART): Don't match whitespace.
6135 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6136 argument matching.
6137 ($METHOD): Add $METHOD_TRAILER.
6138 (trim): Rewrite.
6139 (scan_target_h): New sub.
6140 Change main loop not to collect state.
6141 * target-delegates.c: Rebuild.
6142
91b52240
GB
61432014-07-23 Gary Benson <gbenson@redhat.com>
6144
6145 * cp-support.c (gdb_demangle): Fix build on systems without
6146 sigaltstack.
6147
45326f6f
JK
61482014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6149
6150 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6151 for reference entry value target data value.
6152
e214cf6c
JK
61532014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6154
6155 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6156 value_available_contents_eq.
6157
bddbbedd
PA
61582014-07-22 Pedro Alves <palves@redhat.com>
6159
6160 * value.c (allocate_optimized_out_value): Don't mark value as
6161 non-lazy.
6162
45c71484
JW
61632014-07-22 Jiong Wang <jiong.wang@arm.com>
6164
6165 * MAINTAINERS (Write After Approval): Update my email address.
6166
9597b22a
DE
61672014-07-20 Doug Evans <dje@google.com>
6168
6169 PR server/17147
6170 * remote.c (putpkt_binary): Add text to error message.
6171
91101fe5
YQ
61722014-07-20 Yao Qi <yao@codesourcery.com>
6173
6174 * eval.c: Remove "Chill" from comments.
6175 * gdbtypes.h: Likewise.
6176 * symtab.h: Likewise.
6177
c9402c95
YQ
61782014-07-20 Yao Qi <yao@codesourcery.com>
6179
6180 * std-operator.def: Update comments to TERNOP_SLICE.
6181
ae8fddda
YQ
61822014-07-20 Yao Qi <yao@codesourcery.com>
6183
6184 * std-operator.def: Remove BINOP_RANGE.
6185 * breakpoint.c (watchpoint_exp_is_const): Update.
6186 * expprint.c (dump_subexp_body_standard): Likewise.
6187 * eval.c (init_array_element): Remove dead code.
6188 (evaluate_subexp_standard): Likewise.
6189
9c816640
YQ
61902014-07-20 Yao Qi <yao@codesourcery.com>
6191
6192 * std-operator.def: Remove BINOP_IN.
6193 * breakpoint.c (watchpoint_exp_is_const): Update.
6194 * eval.c (evaluate_subexp_standard): Likewise.
6195 * expprint.c (dump_subexp_body_standard): Likewise.
6196
164224e9
ME
61972014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6198
6199 * microblaze-tdep.c (microblaze_register_names): Add
6200 the rshr and rslr register names.
6201 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6202 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6203 Use of tdesc_numbered_register. Use of
6204 microblaze_register_g_packet_guesses. Use of
6205 tdesc_use_registers. Use of set_gdbarch_register_type.
6206 (microblaze_register_g_packet_guesses): New.
6207 * microblaze-tdep.h (microblaze_reg_num): Add
6208 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6209 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6210 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6211 * features/microblaze-core.xml: New file.
6212 * features/microblaze-stack-protect.xml: New file.
6213 * features/microblaze-with-stack-protect.c: New file.
6214 * features/microblaze-with-stack-protect.xml: New file.
6215 * features/microblaze.xml: New file.
6216 * features/microblaze.c: New file.
6217 * features/Makefile (microblaze-with-stack-protect): Add
6218 microblaze-with-stack-protect microblaze and microblaze-expedite.
6219 * regformats/microblaze-with-stack-protect.dat: New file.
6220 * regformats/microblaze.dat: New file.
6221 * doc/gdb.texinfo (MicroBlaze Features): Added.
6222
e8b2341c
TT
62232014-07-18 Tom Tromey <tromey@redhat.com>
6224
6225 * exec.c (exec_ops): Now static.
6226 * exec.h (exec_ops): Don't declare.
6227
44e89118
TT
62282014-07-18 Tom Tromey <tromey@redhat.com>
6229
6230 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6231 to find_target_beneath.
6232 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6233 find_target_beneath.
6234 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6235
b0ed115f
TT
62362014-07-18 Tom Tromey <tromey@redhat.com>
6237
6238 PR gdb/17130:
6239 * utils.c (quit): Use target_supports_terminal_ours.
6240 * target.h (target_supports_terminal_ours): Declare.
6241 * target.c (target_supports_delete_record): Don't check
6242 to_delete_record against NULL.
6243 (target_supports_terminal_ours): New function.
6244
e75fdfca
TT
62452014-07-18 Tom Tromey <tromey@redhat.com>
6246
6247 PR gdb/17130:
6248 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6249 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6250 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6251 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6252 * windows-nat.c (windows_xfer_partial): Always delegate.
6253 * record-btrace.c (record_btrace_xfer_partial): Simplify
6254 delegation.
6255 (record_btrace_fetch_registers, record_btrace_store_registers)
6256 (record_btrace_prepare_to_store, record_btrace_resume)
6257 (record_btrace_wait, record_btrace_find_new_threads)
6258 (record_btrace_thread_alive): Likewise.
6259 * procfs.c (procfs_xfer_partial): Always delegate.
6260 * corelow.c (core_xfer_partial): Always delegate.
6261 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6262
83814951
TT
62632014-07-18 Tom Tromey <tromey@redhat.com>
6264
6265 * exec.c (exec_make_note_section): Move earlier.
6266
b8b8facf
DE
62672014-07-17 Doug Evans <dje@google.com>
6268
74b49205 6269 PR gdb/17170
b8b8facf
DE
6270 * maint.c (count_symtabs_and_blocks): Handle NULL
6271 current_program_space.
6272 (report_command_stats): Check global enabled flag in addition to
6273 recorded enabled flag.
6274 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6275
69ff6be5
PA
62762014-07-16 Pedro Alves <palves@redhat.com>
6277
6278 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6279
252db1b5
TT
62802014-07-16 Tom Tromey <tromey@redhat.com>
6281
6282 * target.h (struct target_ops) <to_delete_record>: Reformat
6283 comment.
6284
a432721e
TT
62852014-07-16 Tom Tromey <tromey@redhat.com>
6286
6287 * target-delegates.c: Rebuild.
6288
487d9753
PL
62892014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6290
6291 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6292 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6293 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6294 (avr_pointer_to_address): Likewise.
6295 (avr_address_class_type_flags): New function.
6296 (avr_address_class_type_flags_to_name): Likewise.
6297 (avr_address_class_name_to_type_flags): Likewise.
6298 (avr_gdbarch_init): Set address_class_type_flags,
6299 address_class_type_flags_to_name and
6300 address_class_name_to_type_flags.
6301
57745c90
PA
63022014-07-15 Pedro Alves <palves@redhat.com>
6303
6304 * linux-nat.c (kill_callback): Save errno and work with saved
6305 copy.
6306
2d40be18
SM
63072014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6308
6309 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6310
572f6555
EBM
63112014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6312
6313 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6314 breakpoint support correctly.
6315
cc1c52ad
PA
63162014-07-14 Pedro Alves <palves@redhat.com>
6317
6318 * utils.c (prompt_for_continue): Call target_terminal_ours.
6319
1e973570
PA
63202014-07-14 Pedro Alves <palves@redhat.com>
6321
6322 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6323 catch_errors. Don't re-enable stdin or notify observers where,
6324 and rethrow error.
6325 (fetch_inferior_event_wrapper): Delete.
6326
93d6eb10
PA
63272014-07-14 Pedro Alves <palves@redhat.com>
6328
6329 PR gdb/17072
6330 * top.c: Include "inf-loop.h".
6331 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6332 field.
6333 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6334 was async before.
6335 (gdb_readline_wrapper): Store whether the target is async, and
6336 make it sync.
6337
0017922d
PA
63382014-07-14 Pedro Alves <palves@redhat.com>
6339
6340 PR gdb/17072
6341 * top.c (gdb_readline_wrapper_line): Tweak comment.
6342 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6343 the input handler callback.
6344
94696ad3
PA
63452014-07-14 Pedro Alves <palves@redhat.com>
6346
6347 PR gdb/17072
6348 * main.c: Include event-top.h.
6349 (handle_command_errors): New function.
6350 (catch_command_errors, catch_command_errors_const): Use it.
6351
9d1e69a2
PA
63522014-07-14 Pedro Alves <palves@redhat.com>
6353
6354 * exceptions.c (catch_command_errors, catch_command_errors_const):
6355 Moved to main.c.
6356 * exceptions.h (catch_command_errors_ftype)
6357 (catch_command_errors_const_ftype): Moved to main.c.
6358 (catch_command_errors, catch_command_errors_const): Delete
6359 declarations.
6360 * main.c (catch_command_errors_ftype)
6361 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6362 (catch_command_errors, catch_command_errors_const)): Moved here
6363 from exceptions.c and make static.
6364
feefc97b
PA
63652014-07-14 Pedro Alves <palves@redhat.com>
6366
6367 * exceptions.c (print_any_exception): Delete.
6368 (catch_exceptions_with_msg): Use exception_print instead of
6369 print_any_exception.
6370 (catch_errors): Use exception_fprintf instead of
6371 print_any_exception.
6372 (catch_command_errors, catch_command_errors_const): Use
6373 exception_print instead of print_any_exception.
6374
c933f875
PA
63752014-07-14 Pedro Alves <palves@redhat.com>
6376
6377 * infcall.c (run_inferior_call): Set 'sync_execution' while
6378 running the inferior call.
6379
feb6f816
PA
63802014-07-14 Pedro Alves <palves@redhat.com>
6381
6382 * value.c (value_contents_equal): Delete function.
6383 * value.h (value_contents_equal): Delete declaration.
6384
d98b7a16
TT
63852014-07-14 Tom Tromey <tromey@redhat.com>
6386
6387 PR exp/17106:
6388 * gdbtypes.c (is_dynamic_type_internal): New function, from
6389 is_dynamic_type.
6390 (is_dynamic_type): Rewrite.
6391 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6392 (resolve_dynamic_struct): Likewise.
6393 (resolve_dynamic_type_internal): New function, from
6394 resolve_dynamic_type.
6395 (resolve_dynamic_type): Rewrite.
6396
548740d6
TT
63972014-07-14 Tom Tromey <tromey@redhat.com>
6398
6399 * target.c (target_require_runnable): Also check record_stratum.
6400 Update comment.
6401
808f7ab1
YQ
64022014-07-11 Yao Qi <yao@codesourcery.com>
6403
6404 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6405 thumb_instruction_restores_sp return true.
6406
540314bd
YQ
64072014-07-11 Yao Qi <yao@codesourcery.com>
6408
6409 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6410 (thumb_in_function_epilogue_p): Call
6411 thumb_instruction_restores_sp.
6412
1db01f22
YQ
64132014-07-11 Yao Qi <yao@codesourcery.com>
6414
6415 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6416 'add sp, #imm'.
6417 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6418
3116063b
GB
64192014-07-11 Gary Benson <gbenson@redhat.com>
6420
6421 * amd64-linux-nat.c (gdbcore.h): Remove include.
6422 (regset.h): Likewise.
6423 (nat/linux-btrace.h): Likewise.
6424 (btrace.h): Likewise.
6425 (gdb_assert.h): Likewise.
6426 (string.h): Likewise.
6427 (sys/uio.h): Likewise.
6428 (sys/debugreg.h): Likewise.
6429 (sys/syscall.h): Likewise.
6430 (sys/procfs.h): Likewise.
6431 (sys/user.h): Likewise.
6432 (asm/ptrace.h): Likewise.
6433 (i386-nat.h): Likewise.
6434 * i386-linux-nat.c (i386-nat.h): Likewise.
6435 (regset.h): Likewise.
6436 (target.h): Likewise.
6437 (linux-nat.h): Likewise.
6438 (nat/linux-btrace.h): Likewise.
6439 (btrace.h): Likewise.
6440 (gdb_assert.h): Likewise.
6441 (string.h): Likewise.
6442 (sys/uio.h): Likewise.
6443 (sys/user.h): Likewise.
6444 (sys/procfs.h): Likewise.
6445 (sys/reg.h): Likewise.
6446 (sys/debugreg.h): Likewise.
6447 (ORIG_EAX): Remove definition.
6448
040baaf6
GB
64492014-07-11 Gary Benson <gbenson@redhat.com>
6450
6451 * i386-linux-nat.h: New file.
6452 * x86-linux-nat.h: Likewise.
6453 * x86-linux-nat.c: Likewise.
6454 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6455 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6456 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6457 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6458 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6459 (PTRACE_SETREGSET): Likewise.
6460 (arch_lwp_info): Now in x86-linux-nat.c.
6461 (have_ptrace_getregset): Now in x86-linux-nat.h.
6462 (x86_linux_dr_get): Now in x86-linux-nat.c.
6463 (x86_linux_dr_set): Likewise.
6464 (x86_linux_dr_get_addr): Likewise.
6465 (x86_linux_dr_get_control): Likewise.
6466 (x86_linux_dr_get_status): Likewise.
6467 (update_debug_registers_callback): Likewise.
6468 (x86_linux_dr_set_control): Likewise.
6469 (x86_linux_dr_set_addr): Likewise.
6470 (x86_linux_prepare_to_resume): Likewise.
6471 (x86_linux_new_thread): Likewise.
6472 (x86_linux_new_fork): Likewise.
6473 (x86_linux_get_thread_area): Likewise.
6474 (super_post_startup_inferior): Likewise.
6475 (x86_linux_child_post_startup_inferior): Likewise.
6476 (AMD64_LINUX_USER64_CS): Likewise.
6477 (AMD64_LINUX_X32_DS): Likewise.
6478 (x86_linux_read_description): Likewise.
6479 (x86_linux_enable_btrace): Likewise.
6480 (x86_linux_disable_btrace): Likewise.
6481 (x86_linux_teardown_btrace): Likewise.
6482 (x86_linux_read_btrace): Likewise.
6483 (x86_linux_create_target): Likewise.
6484 (x86_linux_add_target): Likewise.
6485 * i386-linux-nat.c (x86-linux-nat.h): New include.
6486 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6487 (PTRACE_SETREGSET): Likewise.
6488 (arch_lwp_info): Now in x86-linux-nat.c.
6489 (have_ptrace_getregset): Now in x86-linux-nat.h.
6490 (x86_linux_dr_get): Now in x86-linux-nat.c.
6491 (x86_linux_dr_set): Likewise.
6492 (x86_linux_dr_get_addr): Likewise.
6493 (x86_linux_dr_get_control): Likewise.
6494 (x86_linux_dr_get_status): Likewise.
6495 (update_debug_registers_callback): Likewise.
6496 (x86_linux_dr_set_control): Likewise.
6497 (x86_linux_dr_set_addr): Likewise.
6498 (x86_linux_prepare_to_resume): Likewise.
6499 (x86_linux_new_thread): Likewise.
6500 (x86_linux_new_fork): Likewise.
6501 (x86_linux_get_thread_area): Likewise.
6502 (super_post_startup_inferior): Likewise.
6503 (x86_linux_child_post_startup_inferior): Likewise.
6504 (AMD64_LINUX_USER64_CS): Likewise.
6505 (AMD64_LINUX_X32_DS): Likewise.
6506 (x86_linux_read_description): Likewise.
6507 (x86_linux_enable_btrace): Likewise.
6508 (x86_linux_disable_btrace): Likewise.
6509 (x86_linux_teardown_btrace): Likewise.
6510 (x86_linux_read_btrace): Likewise.
6511 (x86_linux_create_target): Likewise.
6512 (x86_linux_add_target): Likewise.
6513
1aa7e42c
GB
65142014-07-11 Gary Benson <gbenson@redhat.com>
6515
6516 * amd64-linux-nat.c: Comment and whitespace changes.
6517 * i386-linux-nat.c: Comment and whitespace changes.
6518
c1e246a0
GB
65192014-07-11 Gary Benson <gbenson@redhat.com>
6520
6521 * amd64-linux-nat.c (x86_linux_create_target): New function.
6522 (x86_linux_add_target): Likewise.
6523 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6524 * i386-linux-nat.c (x86_linux_create_target): New function.
6525 (x86_linux_add_target): Likewise.
6526 (_initialize_i386_linux_nat): Delegate to the above new functions.
6527
8c420b8d
GB
65282014-07-11 Gary Benson <gbenson@redhat.com>
6529
6530 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6531 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6532 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6533 (ps_get_thread_area): Delegate to the above.
6534
cb1da100
GB
65352014-07-11 Gary Benson <gbenson@redhat.com>
6536
6537 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6538 x86_linux_read_description. All uses updated. amd64-specific
6539 code conditionalized. Conditionalized i386-specific code added.
6540 Redundant cast removed.
6541 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6542 x86_linux_read_description. All uses updated. i386-specific
6543 code conditionalized. Conditionalized amd64-specific code added.
6544 One sizeof replaced with the actual type it is describing.
6545
2acf3cd0
GB
65462014-07-11 Gary Benson <gbenson@redhat.com>
6547
6548 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6549 x86_linux_dr_get. All uses updated.
6550 (amd64_linux_dr_set): Renamed to
6551 x86_linux_dr_set. All uses updated.
6552 (amd64_linux_dr_get_addr): Renamed to
6553 x86_linux_dr_get_addr. All uses updated.
6554 (amd64_linux_dr_get_control): Renamed to
6555 x86_linux_dr_get_control. All uses updated.
6556 (amd64_linux_dr_get_status): Renamed to
6557 x86_linux_dr_get_status. All uses updated.
6558 (amd64_linux_dr_set_control): Renamed to
6559 x86_linux_dr_set_control. All uses updated.
6560 (amd64_linux_dr_set_addr): Renamed to
6561 x86_linux_dr_set_addr. All uses updated.
6562 (amd64_linux_prepare_to_resume): Renamed to
6563 x86_linux_prepare_to_resume. All uses updated.
6564 (amd64_linux_new_thread): Renamed to
6565 x86_linux_new_thread. All uses updated.
6566 (amd64_linux_new_fork): Renamed to
6567 x86_linux_new_fork. All uses updated.
6568 (amd64_linux_child_post_startup_inferior): Renamed to
6569 x86_linux_child_post_startup_inferior. All uses updated.
6570 (amd64_linux_enable_btrace): Renamed to
6571 x86_linux_enable_btrace. All uses updated.
6572 (amd64_linux_disable_btrace): Renamed to
6573 x86_linux_disable_btrace. All uses updated.
6574 (amd64_linux_teardown_btrace): Renamed to
6575 x86_linux_teardown_btrace. All uses updated.
6576 (amd64_linux_read_btrace): Renamed to
6577 x86_linux_read_btrace. All uses updated.
6578 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6579 x86_linux_dr_get. All uses updated.
6580 (i386_linux_dr_set): Renamed to
6581 x86_linux_dr_set. All uses updated.
6582 (i386_linux_dr_get_addr): Renamed to
6583 x86_linux_dr_get_addr. All uses updated.
6584 (i386_linux_dr_get_control): Renamed to
6585 x86_linux_dr_get_control. All uses updated.
6586 (i386_linux_dr_get_status): Renamed to
6587 x86_linux_dr_get_status. All uses updated.
6588 (i386_linux_dr_set_control): Renamed to
6589 x86_linux_dr_set_control. All uses updated.
6590 (i386_linux_dr_set_addr): Renamed to
6591 x86_linux_dr_set_addr. All uses updated.
6592 (i386_linux_prepare_to_resume): Renamed to
6593 x86_linux_prepare_to_resume. All uses updated.
6594 (i386_linux_new_thread): Renamed to
6595 x86_linux_new_thread. All uses updated.
6596 (i386_linux_new_fork): Renamed to
6597 x86_linux_new_fork. All uses updated.
6598 (i386_linux_child_post_startup_inferior): Renamed to
6599 x86_linux_child_post_startup_inferior. All uses updated.
6600 (i386_linux_enable_btrace): Renamed to
6601 x86_linux_enable_btrace. All uses updated.
6602 (i386_linux_disable_btrace): Renamed to
6603 x86_linux_disable_btrace. All uses updated.
6604 (i386_linux_teardown_btrace): Renamed to
6605 x86_linux_teardown_btrace. All uses updated.
6606 (i386_linux_read_btrace): Renamed to
6607 x86_linux_read_btrace. All uses updated.
6608
b9c1d481
AS
66092014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6610
6611 * remote.c (extended_remote_post_attach): New function.
6612 (init_extended_remote_ops): Install it as to_post_attach method.
6613
7180e04a
PA
66142014-07-09 Pedro Alves <palves@redhat.com>
6615
6616 * infcmd.c (attach_command_post_wait): Don't call
6617 target_terminal_inferior here.
6618 (attach_command): Call it here instead.
6619
9a9a7608
AB
66202014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6623 field.
6624 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6625 from varobj.c, with additional checks.
6626 (c_varobj_ops): Fill in is_path_expr_parent field.
6627 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6628 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6629 field.
6630 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6631 ops method.
6632 (varobj_default_is_path_expr_parent): New function.
6633 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6634 (varobj_default_is_path_expr_parent): Declare new function.
6635
1f267ae3
MM
66362014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6637
6638 * infcmd.c (finish_backward): Turn internal error into normal error.
6639
b2ee242b
PA
66402014-07-07 Pedro Alves <palves@redhat.com>
6641
8a869bca 6642 PR gdb/17096
b2ee242b
PA
6643 * remote.c (async_handle_remote_sigint)
6644 (async_handle_remote_sigint_twice): Call
6645 gdb_call_async_signal_handler instead of
6646 mark_async_signal_handler.
6647
38e229b2
TT
66482014-07-07 Tom Tromey <tromey@redhat.com>
6649
6650 * target-delegates.c: Rebuild.
6651 * target.c (target_info_record): Remove.
6652 * record.c (info_record_command): Unconditionally call
6653 to_info_record.
6654 * target.h (struct target_ops) <to_info_record>: Use
6655 TARGET_DEFAULT_IGNORE.
6656 (target_info_record): Remove.
6657
f0f9ff95
TT
66582014-07-07 Tom Tromey <tromey@redhat.com>
6659
6660 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6661 TARGET_DEFAULT_NORETURN.
6662 * target.c (generic_tls_error): New function.
6663 (target_translate_tls_address): Don't search target stack.
6664 * target-delegates.c: Rebuild.
6665 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6666 stack.
6667 * linux-thread-db.c (thread_db_get_thread_local_address):
6668 Unconditionally call beneath target.
6669
4a5be5ee
MK
66702014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6671
6672 * cli/cli-logging.c (pop_output_files): Assign targerr to
6673 gdb_stdtargerr.
6674
92c3b204
AB
66752014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6676
6677 * MAINTAINERS (Write After Approval): Update my email address.
6678
9b11e3a7
GB
66792014-07-02 Gary Benson <gbenson@redhat.com>
6680
6681 * proc-service.c (ps_xfer_memory): Update comment.
6682 (ps_pstop): Remove unused function.
6683 (ps_pcontinue): Likewise.
6684 (ps_lstop): Likewise.
6685 (ps_lcontinue): Likewise.
6686 (ps_lgetxregsize): Likewise.
6687 (ps_lgetxregs): Likewise.
6688 (ps_lsetxregs): Likewise.
6689 (ps_plog): Likewise.
6690 (ps_ptread): Likewise.
6691 (ps_ptwrite): Likewise.
6692
cf363f18
MW
66932014-07-01 Mark Wielaard <mjw@redhat.com>
6694
6695 * dwarf2read.c (add_array_cv_type): New function.
6696 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6697 (read_tag_volatile_type): Likewise.
6698
82ae6c8d
TT
66992014-07-01 Tom Tromey <tromey@redhat.com>
6700
6701 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6702 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6703 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6704 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6705 * command.h (cmd_cfunc_ftype): Move earlier.
6706 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6707 (add_com, add_info): Use cmd_cfunc_ftype.
6708
96142726
TT
67092014-06-30 Tom Tromey <tromey@redhat.com>
6710
6711 * symtab.c (operator_chars): Make parameters and return type
6712 const.
6713 (file_matches): Make "files" const.
6714 (struct search_symbols_data) <files>: Now const.
6715 (search_symbols): Make "regexp" and "files" parameters const.
6716 Update.
6717 (symtab_symbol_info): Remove cast.
6718 (rbreak_command): Update.
6719 * symtab.h (search_symbols): Update.
6720
b67a2c6f
YQ
67212014-06-27 Yao Qi <yao@codesourcery.com>
6722
6723 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6724 Change parameter type to 'struct thread_info *'. Caller
6725 updated.
6726 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6727 Update declaration.
6728 * dummy-frame.c (struct dummy_frame_id): New.
6729 (dummy_frame_id_eq): New function.
6730 (struct dummy_frame) <id>: Change its type to 'struct
6731 dummy_frame_id'.
6732 (dummy_frame_push): Add parameter ptid and save it in
6733 dummy_frame_id.
6734 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6735 inferior_ptid.
6736 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6737 to inferior_ptid.
6738 (lookup_dummy_frame): Change parameter type to 'struct
6739 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6740 instead of frame_id_eq.
6741 (dummy_frame_pop): Add parameter ptid. Callers updated.
6742 Update comments. Compose dummy_frame_id and pass it to
6743 lookup_dummy_frame.
6744 (dummy_frame_discard): Add parameter ptid.
6745 (dummy_frame_sniffer): Compose dummy_frame_id and call
6746 dummy_frame_id_eq instead of frame_id_eq.
6747 (fprint_dummy_frames): Print ptid.
6748 * dummy-frame.h: Remove comments.
6749 (dummy_frame_push): Add ptid in declaration.
6750 (dummy_frame_pop, dummy_frame_discard): Likewise.
6751
5b10184c
TT
67522014-06-26 Tom Tromey <tromey@redhat.com>
6753
6754 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6755 * command.h (error_no_arg): Update.
6756
06900326
TT
67572014-06-26 Tom Tromey <tromey@redhat.com>
6758
6759 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6760 (do_show_command): Make "arg" const.
6761 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6762
c2bcbb1d
TT
67632014-06-26 Tom Tromey <tromey@redhat.com>
6764
6765 * record-full.c (record_full_get_bookmark): Make "args" const.
6766 (record_full_goto_bookmark): Make "raw_bookmark" const.
6767 * record.c (record_goto): New function.
6768 (cmd_record_goto): Use it. Now static.
6769 * record.h (record_goto): Declare.
6770 (cmd_record_goto): Remove declaration.
6771 * target-delegates.c: Rebuild.
6772 * target.h (struct target_ops) <to_get_bookmark,
6773 to_goto_bookmark>: Make parameter const.
6774
9cbe5fff
TT
67752014-06-26 Tom Tromey <tromey@redhat.com>
6776
6777 * defs.h (generic_load): Update.
6778 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6779 * monitor.c (monitor_load): Make "args" const.
6780 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6781 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6782 const.
6783 (mips_load): Make "file" const.
6784 * remote-sim.c (gdbsim_load): Make "args" const.
6785 * remote.c (remote_load): Make "name" const.
6786 * symfile.c (generic_load): Make "args" const.
6787 * target-delegates.c: Rebuild.
6788 * target.c (target_load): Make "arg" const.
6789 (debug_to_load): Make "args" const.
6790 * target.h (struct target_ops) <to_load>: Make parameter const.
6791 (target_load): Update.
6792
34a68019
TT
67932014-06-26 Tom Tromey <tromey@redhat.com>
6794
6795 PR symtab/16902:
6796 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6797 (dwarf2_physname, read_partial_die)
6798 (guess_partial_die_structure_name, fixup_partial_die)
6799 (guess_full_die_structure_name, anonymous_struct_prefix)
6800 (dwarf2_name): Use per-BFD obstack.
6801
efc889c1
YQ
68022014-06-26 Yao Qi <yao@codesourcery.com>
6803
6804 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6805 dummyframe and this_id into inner block below.
6806
4395285e
YQ
68072014-06-26 Yao Qi <yao@codesourcery.com>
6808
6809 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6810 with "signal_pass[0]" in the initialization of signal_pass.
6811
aef92902
MM
68122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6813
6814 * record-btrace.c (record_btrace_generating_corefile)
6815 (record_btrace_prepare_to_generate_core)
6816 (record_btrace_done_generating_core): New.
6817 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6818 (record_btrace_store_registers, record_btrace_prepare_to_store):
6819 Forward request when generating a core file.
6820 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6821 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6822 to_done_generating_core.
6823
5fff78c4
MM
68242014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6825
6826 * target.h (target_ops) <to_prepare_to_generate_core>
6827 <to_done_generating_core>: New.
6828 (target_prepare_to_generate_core, target_done_generating_core): New.
6829 * target.c (target_prepare_to_generate_core)
6830 (target_done_generating_core): New.
6831 * target-delegates.c: Regenerate.
6832 * gcore.c: (write_gcore_file): Rename to ...
6833 (write_gcore_file_1): ...this.
6834 (write_gcore_file): Call target_prepare_to_generate_core
6835 and target_done_generating_core.
6836
1d1f1ccb
MM
68372014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6838
6839 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6840 * gcore.c (write_gcore_file): Free memory returned from
6841 make_corefile_notes.
6842 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6843 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6844
3343ef86
YQ
68452014-06-24 Yao Qi <yao@codesourcery.com>
6846
6847 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6848 (arm_linux_init_abi): Set skip_trampoline_code with
6849 gdbarch_skip_trampoline_code instead of
6850 find_solib_trampoline_target.
6851
18d18ac8
YQ
68522014-06-24 Yao Qi <yao@codesourcery.com>
6853
6854 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6855 arm_skip_bx_reg returns non-zero.
6856
80d8d390
YQ
68572014-06-24 Yao Qi <yao@codesourcery.com>
6858
6859 * arm-tdep.c (arm_skip_bx_reg): New function.
6860 (arm_skip_stub): Call arm_skip_bx_reg.
6861
6a18a01c
DB
68622014-06-23 Don Breazeal <donb@codesourcery.com>
6863
6864 * MAINTAINERS: Add myself as write-after-approval maintainer.
6865
8e9db26e
PA
68662014-06-23 Pedro Alves <palves@redhat.com>
6867
6868 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6869 DR_CONTROL before setting DR0..DR3.
6870 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6871 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6872 bits of DR_CONTROL related to the debug register slot being
6873 disabled. If all slots are vacant, clear local slowdown as well,
6874 and assert DR_CONTROL is 0.
6875
70afc5b7
SC
68762014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6877
6878 * python/lib/gdb/command/xmethods.py
6879 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6880 current progspace only if the string "progspace" matches LOCUS_RE.
6881
840ed64d
JK
68822014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 Fix --with-system-readline with readline-6.3 patch 5.
6885 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6886 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6887 types.
6888
26f2dc30
TT
68892014-06-20 Tom Tromey <tromey@redhat.com>
6890
6891 * dwarf2read.c (dw2_get_real_path): Use correct type in
6892 OBSTACK_CALLOC.
6893 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6894
125f8a3d
GB
68952014-06-20 Gary Benson <gbenson@redhat.com>
6896
6897 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6898 * common/glibc_thread_db.h: Likewise.
6899 * common/i386-cpuid.h: Likewise.
6900 * common/i386-gcc-cpuid.h: Likewise.
6901 * common/linux-btrace.h: Likewise.
6902 * common/linux-osdata.h: Likewise.
6903 * common/linux-procfs.h: Likewise.
6904 * common/linux-ptrace.h: Likewise.
6905 * common/mips-linux-watch.h: Likewise.
6906 * common/linux-btrace.c: Moved to nat.
6907 * common/linux-osdata.c: Likewise.
6908 * common/linux-procfs.c: Likewise.
6909 * common/linux-ptrace.c: Likewise.
6910 * common/mips-linux-watch.c: Likewise.
6911 * nat/gdb_thread_db.h: Moved from common.
6912 * nat/glibc_thread_db.h: Likewise.
6913 * nat/i386-cpuid.h: Likewise.
6914 * nat/i386-gcc-cpuid.h: Likewise.
6915 * nat/linux-btrace.c: Likewise.
6916 * nat/linux-btrace.h: Likewise.
6917 * nat/linux-osdata.c: Likewise.
6918 * nat/linux-osdata.h: Likewise.
6919 * nat/linux-procfs.c: Likewise.
6920 * nat/linux-procfs.h: Likewise.
6921 * nat/linux-ptrace.c: Likewise.
6922 * nat/linux-ptrace.h: Likewise.
6923 * nat/mips-linux-watch.c: Likewise.
6924 * nat/mips-linux-watch.h: Likewise.
6925 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6926 (object file files): Reordered.
6927 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6928 of glibc_thread_db.h.
6929
42995dbd
GB
69302014-06-20 Gary Benson <gbenson@redhat.com>
6931
6932 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6933 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6934 (i386_dr_low): Likewise.
6935 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6936 (i386_dr_low_set_addr): Likewise.
6937 (i386_dr_low_get_addr): Likewise.
6938 (i386_dr_low_can_set_control): Likewise.
6939 (i386_dr_low_set_control): Likewise.
6940 (i386_dr_low_get_control): Likewise.
6941 (i386_dr_low_get_status): Likewise.
6942 (i386_get_debug_register_length): Likewise.
6943 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6944 (i386_dr_low): Likewise.
6945 * nat/i386-dregs.c (i386-low.h): Remove include.
6946 (i386-nat.h): Likewise.
6947 (nat/i386-dregs.h): New include.
6948 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6949 (i386_dr_low_set_addr): Likewise.
6950 (i386_dr_low_get_addr): Likewise.
6951 (i386_dr_low_can_set_control): Likewise.
6952 (i386_dr_low_set_control): Likewise.
6953 (i386_dr_low_get_control): Likewise.
6954 (i386_dr_low_get_status): Likewise.
6955 (i386_get_debug_register_length): Likewise.
6956 (debug_hw_points): Likewise.
6957
3ed9baed
IB
69582014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6959
6960 * Makefile.in (SFILES): Add d-exp.y.
6961 (YYFILES): Add d-exp.c.
6962 (YYOBJ): Add d-exp.o.
6963 (local-maintainer-clean): Delete d-exp.c.
6964 * d-exp.y: New file.
6965 * d-lang.h (d_parse): New declaration.
6966 (d_error): New declaration.
6967 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6968 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6969 PREC_ORDER operators.
6970 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6971
78c164b0
YQ
69722014-06-19 Yao Qi <yao@codesourcery.com>
6973
6974 * gdbthread.h (any_running): Remove the declaration.
6975 * thread.c (any_running): Remove.
6976
f6e29b6e
YQ
69772014-06-19 Yao Qi <yao@codesourcery.com>
6978
6979 * gdbthread.h (struct thread_info) <state>: Change its type to
6980 'enum thread_state'. Update comments.
6981
034f788c
PA
69822014-06-19 Pedro Alves <palves@redhat.com>
6983
6984 * gdbthread.h (ALL_THREADS): Delete.
6985 (ALL_NON_EXITED_THREADS): New macro.
6986 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6987 instead of ALL_THREADS.
6988 * infrun.c (find_thread_needs_step_over)
6989 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6990 instead of ALL_THREADS.
6991 * record-btrace.c (record_btrace_open)
6992 (record_btrace_stop_recording, record_btrace_close)
6993 (record_btrace_is_replaying, record_btrace_resume)
6994 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6995 * remote.c (append_pending_thread_resumptions): Likewise.
6996 * thread.c (thread_apply_all_command): Likewise.
6997
46e33252
GB
69982014-06-19 Gary Benson <gbenson@redhat.com>
6999
7000 * i386-nat.c (i386_stopped_by_watchpoint):
7001 Use i386_dr_stopped_by_watchpoint.
7002 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7003 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7004
3a8ee006
GB
70052014-06-19 Gary Benson <gbenson@redhat.com>
7006
7007 * nat/i386-dregs.c: New file.
7008 * Makefile.in (i386-dregs.o): New rule.
7009 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7010 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7011 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7012 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7013 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7014 * config/i386/go32.mh (NATDEPFILES): Likewise.
7015 * config/i386/linux.mh (NATDEPFILES): Likewise.
7016 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7017 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7018 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7019 * i386-nat.h (debug_hw_points): New declaration.
7020 * i386-nat.c (breakpoint.h): Remove include.
7021 (command.h): Likewise.
7022 (target.h): Likewise.
7023 (gdb_assert.h): Likewise.
7024 (debug_hw_points): Made nonstatic.
7025 (debug_printf): Now in i386-dregs.c.
7026 (TARGET_HAS_DR_LEN_8): Likewise.
7027 (DR_CONTROL_SHIFT): Likewise.
7028 (DR_CONTROL_SIZE): Likewise.
7029 (DR_RW_EXECUTE): Likewise.
7030 (DR_RW_WRITE): Likewise.
7031 (DR_RW_READ): Likewise.
7032 (DR_RW_IORW): Likewise.
7033 (DR_LEN_1): Likewise.
7034 (DR_LEN_2): Likewise.
7035 (DR_LEN_4): Likewise.
7036 (DR_LEN_8): Likewise.
7037 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7038 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7039 (DR_ENABLE_SIZE): Likewise.
7040 (DR_LOCAL_SLOWDOWN): Likewise.
7041 (DR_GLOBAL_SLOWDOWN): Likewise.
7042 (DR_CONTROL_RESERVED): Likewise.
7043 (I386_DR_CONTROL_MASK): Likewise.
7044 (I386_DR_VACANT): Likewise.
7045 (I386_DR_LOCAL_ENABLE): Likewise.
7046 (I386_DR_GLOBAL_ENABLE): Likewise.
7047 (I386_DR_DISABLE): Likewise.
7048 (I386_DR_SET_RW_LEN): Likewise.
7049 (I386_DR_GET_RW_LEN): Likewise.
7050 (I386_DR_WATCH_HIT): Likewise.
7051 (i386_wp_op_t): Likewise.
7052 (i386_show_dr): Likewise.
7053 (i386_length_and_rw_bits): Likewise.
7054 (i386_insert_aligned_watchpoint): Likewise.
7055 (i386_remove_aligned_watchpoint): Likewise.
7056 (i386_handle_nonaligned_watchpoint): Likewise.
7057 (i386_update_inferior_debug_regs): Likewise.
7058 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7059 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7060 (i386_region_ok_for_watchpoint):
7061 Use i386_dr_region_ok_for_watchpoint.
7062 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7063
322a8e06
GB
70642014-06-19 Gary Benson <gbenson@redhat.com>
7065
7066 * i386-nat.c (i386_insert_hw_breakpoint): Use
7067 i386_insert_watchpoint.
7068 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7069
8f26655c
GB
70702014-06-19 Gary Benson <gbenson@redhat.com>
7071
7072 * i386-nat.c (i386_dr_show): Renamed to
7073 i386_show_dr and made static. All uses updated.
7074 (i386_dr_length_and_rw_bits): Renamed to
7075 i386_length_and_rw_bits and made static.
7076 All uses updated.
7077 (i386_dr_insert_aligned_watchpoint): Renamed to
7078 i386_insert_aligned_watchpoint and made static.
7079 All uses updated.
7080 (i386_dr_remove_aligned_watchpoint): Renamed to
7081 i386_remove_aligned_watchpoint and made static.
7082 All uses updated.
7083 (i386_dr_update_inferior_debug_regs): Renamed to
7084 i386_update_inferior_debug_regs and made static.
7085 All uses updated.
7086 * nat/i386-dregs.h (i386_dr_show): Removed.
7087 (i386_dr_length_and_rw_bits): Likewise.
7088 (i386_dr_insert_aligned_watchpoint): Likewise.
7089 (i386_dr_remove_aligned_watchpoint): Likewise.
7090 (i386_dr_update_inferior_debug_regs): Likewise.
7091
992c7d70
GB
70922014-06-19 Gary Benson <gbenson@redhat.com>
7093
7094 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7095 * configure: Regenerate.
7096 * config.in: Likewise.
7097 * main.c (signal.h): New include.
7098 (setup_alternate_signal_stack): New function.
7099 (captured_main): Call the above.
7100 * cp-support.c (signal.h): New include.
7101 (catch_demangler_crashes): New flag.
7102 (SIGJMP_BUF): New define.
7103 (SIGSETJMP): Likewise.
7104 (SIGLONGJMP): Likewise.
7105 (gdb_demangle_jmp_buf): New static global.
7106 (gdb_demangle_attempt_core_dump): Likewise.
7107 (gdb_demangle_signal_handler): New function.
7108 (gdb_demangle): If catch_demangler_crashes is set, install the
7109 above signal handler before calling bfd_demangle, and restore
7110 the original signal handler afterwards. Display the offending
7111 symbol and call demangler_warning the first time a segmentation
7112 fault is caught.
7113 (_initialize_cp_support): New maint set/show command.
7114
eae7090b
GB
71152014-06-19 Gary Benson <gbenson@redhat.com>
7116
7117 * utils.h (resource_limit_kind): New enum.
7118 (can_dump_core): New declaration.
7119 (warn_cant_dump_core): Likewise.
7120 (dump_core): Likewise.
7121 * utils.c (dump_core): Made nonstatic. Added new
7122 parameter "limit_kind".
7123 (can_dump_core): Made nonstatic. Moved printing code to...
7124 (warn_cant_dump_core): New function.
7125 (can_dump_core_warn): Likewise.
7126 (internal_vproblem): Replace calls to can_dump_core with
7127 calls to can_dump_core_warn. Supply new argument to each.
7128
57fcfb1b
GB
71292014-06-19 Gary Benson <gbenson@redhat.com>
7130
7131 * utils.h (demangler_vwarning): New declaration.
7132 (demangler_warning): Likewise.
7133 * utils.c (struct internal_problem)
7134 <user_settable_should_quit>: New field.
7135 <user_settable_should_dump_core>: Likewise
7136 (internal_error_problem): Add values for above new fields.
7137 (internal_warning_problem): Likewise.
7138 (demangler_warning_problem): New static global.
7139 (demangler_vwarning): New function.
7140 (demangler_warning): Likewise.
7141 (add_internal_problem_command): Selectively add commands.
7142 (_initialize_utils): New internal problem command.
7143 * maint.c (maintenance_demangler_warning): New function.
7144 (_initialize_maint_cmds): New command.
7145
17a40b44
TT
71462014-06-18 Tom Tromey <tromey@redhat.com>
7147
7148 * f-valprint.c (info_common_command_for_block): Update.
7149 * symtab.h (struct general_symbol_info) <common_block>: Now
7150 const.
7151
346d1dfe
TT
71522014-06-18 Tom Tromey <tromey@redhat.com>
7153
7154 * symtab.h (struct symtab) <blockvector>: Now const.
7155 * ada-lang.c (ada_add_global_exceptions): Update.
7156 * buildsym.c (augment_type_symtab): Update.
7157 * dwarf2read.c (dw2_lookup_symbol): Update.
7158 * jit.c (finalize_symtab): Update.
7159 * jv-lang.c (add_class_symtab_symbol): Update.
7160 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7161 Update.
7162 * objfiles.c (objfile_relocate1): Update.
7163 * psymtab.c (lookup_symbol_aux_psymtabs)
7164 (maintenance_check_psymtabs): Update.
7165 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7166 Update.
7167 * spu-tdep.c (spu_catch_start): Update.
7168 * symmisc.c (dump_symtab_1): Update.
7169 * symtab.c (lookup_global_symbol_from_objfile)
7170 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7171 (basic_lookup_transparent_type_quick)
7172 (basic_lookup_transparent_type, find_pc_sect_symtab)
7173 (find_pc_sect_line, search_symbols): Update.
7174 * block.c (find_block_in_blockvector): Make "bl" const.
7175 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7176 const.
7177 (blockvector_contains_pc): Make "bv" const.
7178 (block_for_pc_sect): Update.
7179 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7180 (blockvector_contains_pc): Update.
7181 * breakpoint.c (resolve_sal_pc): Update.
7182 * inline-frame.c (block_starting_point_at): Update.
7183
1834676b
TT
71842014-06-18 Tom Tromey <tromey@redhat.com>
7185
7186 * completer.c (complete_line): Make "line_buffer" const.
7187 * completer.h (complete_line): Update.
7188
ac1a991b
TT
71892014-06-18 Tom Tromey <tromey@redhat.com>
7190
7191 * symtab.c (add_macro_name): Remove unneeded cast.
7192
5bc98e52
TT
71932014-06-18 Tom Tromey <tromey@redhat.com>
7194
7195 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7196 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7197
8236def8
TT
71982014-06-18 Tom Tromey <tromey@redhat.com>
7199
7200 * probe.c (info_probes_for_ops): Make "arg" const.
7201 * probe.h (info_probes_for_ops): Update.
7202
3977b71f
TT
72032014-06-18 Tom Tromey <tromey@redhat.com>
7204
7205 * varobj.c (varobj_create): Update.
7206 * valops.c (value_of_this): Update.
7207 * tracepoint.c (add_local_symbols, scope_info): Update.
7208 * symtab.h (struct general_symbol_info) <block>: Now const.
7209 * symtab.c (skip_prologue_sal)
7210 (default_make_symbol_completion_list_break_on)
7211 (skip_prologue_using_sal): Update.
7212 * stack.h (iterate_over_block_locals)
7213 (iterate_over_block_local_vars): Update.
7214 * stack.c (print_frame_args): Update.
7215 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7216 parameter const.
7217 (get_selected_block): Make return type const.
7218 * python/py-frame.c (frapy_block): Update.
7219 * python/py-block.c (gdbpy_block_for_pc): Update.
7220 * p-exp.y (%union) <bval>: Now const.
7221 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7222 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7223 * m2-exp.y (%union) <bval>: Now const.
7224 * linespec.c (get_current_search_block): Make return type const.
7225 (create_sals_line_offset, find_label_symbols): Update.
7226 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7227 Update.
7228 (block_starting_point_at): Make "block" const.
7229 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7230 (check_exception_resume): Update.
7231 * guile/scm-frame.c (gdbscm_frame_block): Update.
7232 * guile/scm-block.c (gdbscm_lookup_block): Update.
7233 * frame.h (get_frame_block): Update.
7234 (get_selected_block): Make return type const.
7235 * frame.c (frame_id_inner): Update.
7236 * f-valprint.c (info_common_command_for_block)
7237 (info_common_command): Update.
7238 * dwarf2loc.c (dwarf2_find_location_expression)
7239 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7240 (locexpr_describe_location_piece): Update.
7241 * c-exp.y (%union) <bval>: Now const.
7242 * breakpoint.c (resolve_sal_pc): Update.
7243 * blockframe.c (get_frame_block):Make return type const.
7244 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7245 (block_innermost_frame): Update.
7246 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7247 (block_for_pc, block_for_pc_sect): Update.
7248 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7249 'pblock' const.
7250 (block_for_pc_sect, block_for_pc): Make return type const.
7251 * ax-gdb.c (gen_expr): Update.
7252 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7253 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7254 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7255 (ada_read_var_value): Update.
7256 * ada-exp.y (struct name_info) <block>: Now const.
7257 (%union): Likewise.
7258 (block_lookup): Constify.
7259
b9228891
GB
72602014-06-18 Gary Benson <gbenson@redhat.com>
7261
7262 * nat/i386-dregs.h: New file.
7263 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7264 * i386-nat.h (i386-dregs.h): New include.
7265 (DR_FIRSTADDR): Now in i386-dregs.h.
7266 (DR_LASTADDR): Likewise.
7267 (DR_NADDR): Likewise.
7268 (DR_STATUS): Likewise.
7269 (DR_CONTROL): Likewise.
7270 (i386_debug_reg_state): Likewise.
7271 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7272
a1aa2221
LM
72732014-06-18 Don Breazeal <donb@codesourcery.com>
7274
7275 * breakpoint.c (set_longjmp_breakpoint): Call
7276 momentary_breakpoint_from_master with additional argument.
7277 (set_longjmp_breakpoint_for_call_dummy): Call
7278 momentary_breakpoint_from_master with additional argument.
7279 (set_std_terminate_breakpoint): Call
7280 momentary_breakpoint_from_master with additional argument.
7281 (momentary_breakpoint_from_master): Add argument to function
7282 definition and use it to initialize structure member flag.
74228e77 7283 (clone_momentary_breakpoint): Call
a1aa2221
LM
7284 momentary_breakpoint_from_master with additional argument.
7285 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7286 member flags set in momentary_breakpoint_from_master.
7287
4be83cc2
GB
72882014-06-18 Gary Benson <gbenson@redhat.com>
7289
7290 * i386-nat.c (i386_show_dr): Renamed to
7291 i386_dr_show and made nonstatic. All uses updated.
7292 (i386_length_and_rw_bits): Renamed to
7293 i386_dr_length_and_rw_bits and made nonstatic.
7294 All uses updated.
7295 (i386_insert_aligned_watchpoint): Renamed to
7296 i386_dr_insert_aligned_watchpoint and made nonstatic.
7297 All uses updated.
7298 (i386_remove_aligned_watchpoint): Renamed to
7299 i386_dr_remove_aligned_watchpoint and made nonstatic.
7300 All uses updated.
7301 (i386_update_inferior_debug_regs): Renamed to
7302 i386_dr_update_inferior_debug_regs and made nonstatic.
7303 All uses updated.
7304
131aa0d4
GB
73052014-06-18 Gary Benson <gbenson@redhat.com>
7306
7307 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7308 (i386_dr_low_can_set_control): Likewise.
7309 (i386_dr_low_set_addr): Likewise.
7310 (i386_dr_low_set_control): Likewise.
7311 (i386_dr_low_get_addr): Likewise.
7312 (i386_dr_low_get_status): Likewise.
7313 (i386_dr_low_get_control): Likewise.
7314 (i386_insert_aligned_watchpoint): Use new macros.
7315 (i386_update_inferior_debug_regs): Likewise.
7316 (i386_stopped_data_address): Likewise.
7317
d9305f7f
GB
73182014-06-18 Gary Benson <gbenson@redhat.com>
7319
7320 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7321 New parameter. All uses updated.
7322
ea008da4
GB
73232014-06-18 Gary Benson <gbenson@redhat.com>
7324
7325 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7326 All uses updated.
7327
1b6d4134
GB
73282014-06-18 Gary Benson <gbenson@redhat.com>
7329
7330 * i386-nat.c (debug_printf): New macro.
7331 (i386_get_debug_register_length): Likewise.
7332 (TARGET_HAS_DR_LEN_8): Use above macro.
7333 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7334 and printf_unfiltered. Use phex to format values.
7335
9b4550ef
GB
73362014-06-18 Gary Benson <gbenson@redhat.com>
7337
7338 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7339 Make const.
7340
6e62758f
GB
73412014-06-18 Gary Benson <gbenson@redhat.com>
7342
7343 * i386-nat.c: Comment changes.
7344
51c79e94
GB
73452014-06-18 Gary Benson <gbenson@redhat.com>
7346
7347 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7348
3e11889a
GB
73492014-06-18 Gary Benson <gbenson@redhat.com>
7350
7351 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7352 (i386_insert_aligned_watchpoint): Likewise.
7353 (i386_remove_aligned_watchpoint): Likewise.
7354 (i386_handle_nonaligned_watchpoint): Likewise.
7355
fc6e2f03
GB
73562014-06-18 Gary Benson <gbenson@redhat.com>
7357
7358 * i386-nat.c: Whitespace changes.
7359
2afe7d50
SB
73602014-06-17 Samuel Bronson <naesten@gmail.com>
7361
7362 * MAINTAINERS: Update Roland McGrath's email address.
7363 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7364 Red Hat a while ago, and giving me a current address.
2afe7d50 7365
3bca49ee
TT
73662014-06-17 Tom Tromey <tromey@redhat.com>
7367
7368 * utils.h (savestring): Remove declaration.
7369
6e366df1
TT
73702014-06-17 Tom Tromey <tromey@redhat.com>
7371
7372 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7373
6be47f0c
KS
73742014-06-16 Keith Seitz <keiths@redhat.com>
7375
7376 PR mi/15863
7377 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7378 to update the varobj if inferior_ptid is null_ptid.
7379
7bc112c1
TT
73802014-06-16 Tom Tromey <tromey@redhat.com>
7381
7382 * target.h (struct target_ops) <to_info_proc>: Make parameter
7383 const.
7384 (target_info_proc): Update.
7385 * target.c (target_info_proc): Make "args" const.
7386 * procfs.c (procfs_info_proc): Update.
7387 * linux-tdep.c (linux_info_proc): Update.
7388 (linux_core_info_proc_mappings): Make "args" const.
7389 (linux_core_info_proc): Update.
7390 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7391 * gdbarch.c: Rebuild.
7392 * gdbarch.h: Rebuild.
7393 * corelow.c (core_info_proc): Update.
7394
fee354ee
TT
73952014-06-16 Tom Tromey <tromey@redhat.com>
7396
7397 * target.h (struct target_ops) <to_disconnect>: Make parameter
7398 const.
7399 (target_disconnect): Update.
7400 * target.c (target_disconnect): Make "args" const.
7401 * target-delegates.c: Rebuild.
7402 * remote.c (remote_disconnect): Update.
7403 * record.h (record_disconnect): Update.
7404 * record.c (record_disconnect): Update.
7405 * inf-child.c (inf_child_disconnect): Update.
7406
a30bf1f1
TT
74072014-06-16 Tom Tromey <tromey@redhat.com>
7408
7409 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7410 * target.c (debug_to_rcmd, default_rcmd): Update.
7411 * target-delegates.c: Rebuild.
7412 * remote.c (remote_rcmd): Update.
7413 * monitor.c (monitor_rcmd): Update.
7414
d03de421
PA
74152014-06-16 Pedro Alves <palves@redhat.com>
7416
7417 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7418 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7419 have OBJF_SHARED set.
7420 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7421 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7422 instead of OBJF_USERLOADED.
7423 * objfiles.h (OBJF_SHARED): Update comment.
7424 (userloaded_objfile_contains_address_p): Rename to ...
7425 (shared_objfile_contains_address_p): ... this, and update
7426 comments.
7427 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7428 new objfile.
7429 (remove_symbol_file_command): Skip objfiles that don't have
7430 OBJF_SHARED set.
7431
99f4262f
TT
74322014-06-16 Tom Tromey <tromey@redhat.com>
7433
7434 * minsyms.h (prim_record_minimal_symbol)
7435 (prim_record_minimal_symbol_and_info): Update comments.
7436
97d66cc6
EZ
74372014-06-14 Eli Zaretskii <eliz@gnu.org>
7438
7439 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7440 or --without-guile, according to how GDB was built.
7441
635c7e8a
TT
74422014-06-13 Tom Tromey <tromey@redhat.com>
7443
7444 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7445 to help_list.
7446 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7447 to help_list.
7448 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7449 help_list.
7450 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7451 help_list.Pass all_commands, not -1, to help_list.
7452 * cli/cli-dump.c (dump_command, append_command)
7453 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7454 (binary_dump_command, binary_append_command): Pass all_commands,
7455 not -1, to help_list.
7456 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7457 -1, to help_list.
7458 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7459 -1, to help_list.
7460 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7461 help_list.
7462 * top.c (set_history): Pass all_commands, not -1, to help_list.
7463 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7464 all_commands, not -1, to help_list.
7465 * symfile.c (overlay_command): Pass all_commands, not -1, to
7466 help_list.
7467 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7468 help_list.
7469 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7470 help_list.
7471 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7472 -1, to help_list.
7473 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7474 not -1, to help_list.
7475 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7476 not -1, to help_list.
7477 * maint.c (maintenance_command, maintenance_info_command)
7478 (maintenance_print_command, maintenance_set_cmd): Pass
7479 all_commands, not -1, to help_list.
7480 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7481 help_list.
7482 * language.c (set_check): Pass all_commands, not -1, to help_list.
7483 * infcmd.c (unset_command): Pass all_commands, not -1, to
7484 help_list.
7485 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7486 help_list.
7487 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7488 help_list.
7489 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7490 help_list.
7491 * breakpoint.c (save_command): Pass all_commands, not -1, to
7492 help_list.
7493 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7494 all_commands, not -1, to help_list.
7495
b94ade42
PL
74962014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7497
7498 * regcache.c (struct register_to_invalidate): New structure.
7499 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7500 functions.
7501 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7502
31f628ae
YQ
75032014-06-12 Yao Qi <yao@codesourcery.com>
7504
7505 * varobj.c (varobj_get_num_children): Call
7506 varobj_is_dynamic_p.
7507 (varobj_list_children): Likewise.
7508 (varobj_update): Likewise. Update comments.
7509
cde5ef40
YQ
75102014-06-12 Yao Qi <yao@codesourcery.com>
7511
7512 * varobj.c (varobj_pretty_printed_p): Rename to ...
7513 (varobj_is_dynamic_p): ... this. New function.
7514 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7515 (varobj_is_dynamic_p): Declare.
7516 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7517 (mi_print_value_p, varobj_update_one): Likewise.
7518
576ea091
YQ
75192014-06-12 Pedro Alves <pedro@codesourcery.com>
7520 Yao Qi <yao@codesourcery.com>
7521
7522 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7523 (varobj_get_iterator): Wrap up code for pretty-printer by
7524 "#if HAVE_PYTHON" and "#endif".
7525 (update_dynamic_varobj_children): Likewise.
7526
827f100c
YQ
75272014-06-12 Pedro Alves <pedro@codesourcery.com>
7528 Yao Qi <yao@codesourcery.com>
7529
7530 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7531 gdb_python_initialized is false. Move some code from varobj.c.
7532 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7533 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7534 (struct varobj_item): Moved to varobj-iter.h".
7535 (varobj_clear_saved_item): New function.
7536 (update_dynamic_varobj_children): Move python-related code to
7537 py-varobj.c.
7538 (free_variable): Call varobj_clear_saved_item and
7539 varobj_iter_delete.
7540
e5250216
YQ
75412014-06-12 Pedro Alves <pedro@codesourcery.com>
7542 Yao Qi <yao@codesourcery.com>
7543
7544 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7545 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7546 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7547 (py-varobj.o): New rule.
7548 * python/py-varobj.c: New file.
7549 * python/python-internal.h (py_varobj_get_iterator): Declare.
7550 * varobj-iter.h: New file.
7551 * varobj.c: Include "varobj-iter.h"
7552 (struct varobj) <child_iter>: Change its type from "PyObject *"
7553 to "struct varobj_iter *".
7554 <saved_item>: Likewise.
7555 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7556 [HAVE_PYTHON] (varobj_get_iterator): New function.
7557 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7558 python-specific code to python/py-varobj.c.
7559 (install_visualizer): Call varobj_iter_delete instead of
7560 Py_XDECREF.
7561 * varobj.h (varobj_ensure_python_env): Declare.
7562
5a2e0d6e
YQ
75632014-06-12 Yao Qi <yao@codesourcery.com>
7564
7565 * varobj.c (struct varobj_item): New structure.
7566 (create_child_with_value): Update declaration.
7567 (varobj_add_child): Replace arguments 'name' and 'value' with
7568 'item'. All callers updated.
7569 (install_dynamic_child): Likewise.
7570 (update_dynamic_varobj_children): Likewise.
7571 (varobj_add_child): Likewise.
7572 (create_child_with_value): Likewise.
7573
919b9a93
JB
75742014-06-11 Joel Brobecker <brobecker@adacore.com>
7575
7576 * NEWS: Create a new section for the next release branch.
7577 Rename the section of the current branch, now that it has
7578 been cut.
7579
71a55bdf
JB
75802014-06-11 Joel Brobecker <brobecker@adacore.com>
7581
7582 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7583 * version.in: Bump version to 7.8.50.DATE-cvs.
7584
364fe1f7
PA
75852014-06-11 Pedro Alves <palves@redhat.com>
7586
7587 PR remote/17028
7588 * ser-mingw.c (net_windows_socket_check_pending): New function.
7589 (net_windows_select_thread): Ignore spurious wakeups. Use
7590 net_windows_socket_check_pending.
7591 (net_windows_wait_handle): Check for pending events with
7592 ioctlsocket, through net_windows_socket_check_pending, instead of
7593 checking the socket's event.
7594
5a6c7709
SC
75952014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7596
7597 * python/python-internal.h (gdb_PyObject_GetAttrString)
7598 (gdb_PyObject_HasAttrString): New inline function definitions.
7599 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7600 char * of the second argument to PyObject_GetAttrString.
74228e77 7601
0e58ee40
JB
76022014-06-10 Joel Brobecker <brobecker@adacore.com>
7603
7604 * serial.c (serial_write): Fix index of character to be printed
7605 in call to serial_logchar when serial debug traces are enabled.
7606
d190df30
JB
76072014-06-10 Joel Brobecker <brobecker@adacore.com>
7608
7609 * gdbtypes (resolve_dynamic_range): Add function description.
7610
b4b01d36
PA
76112014-06-09 Pedro Alves <palves@redhat.com>
7612
7613 * linux-nat.c (linux_child_follow_fork): Initialize status with
7614 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7615 inner block. Only pass the signal to PTRACE_DETACH if in pass
7616 state.
7617
3657956b
GB
76182014-06-09 Gary Benson <gbenson@redhat.com>
7619
7620 * common/signals.c (gdb_signal_from_host): Reorder to separate
7621 the always-available ANSI-standard signals from the signals that
7622 require checking.
7623 (do_gdb_signal_to_host): Likewise.
7624 * proc-events.c (signal_table): Likewise.
7625
c077881a
HZ
76262014-06-08 Hui Zhu <hui@codesourcery.com>
7627
7628 * common/linux-ptrace.c (linux_disable_event_reporting): New
7629 function.
7630 * common/linux-ptrace.h (linux_disable_event_reporting): New
7631 declaration.
7632 * linux-nat.c (linux_child_follow_fork): Do a single step before
7633 detach.
7634
4186eb54
KS
76352014-06-07 Keith Seitz <keiths@redhat.com>
7636
7637 Revert:
7638 PR c++/16253
7639 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7640 from symbol_matches_domain in symtab.c. All local callers
7641 of symbol_matches_domain updated.
7642 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7643 search STRUCT_DOMAIN.
7644 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7645 independently. standard_lookup will do that automatically.
7646 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7647 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7648 (cp_lookup_symbol_in_namespace): Likewise.
7649 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7650 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7651 may return a STRUCT_DOMAIN match.
7652 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7653 * cp-support.c: Include language.h.
7654 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7655 VAR_DOMAIN.
7656 * psymtab.c (match_partial_symbol): Compare the requested
7657 domain with the symbol's domain directly.
7658 (lookup_partial_symbol): Likewise.
7659 * symtab.c (lookup_symbol_in_language): Explain when/why
7660 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7661 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7662 appropriate languages.
7663 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7664 and moved to ada-lang.c
7665 (lookup_block_symbol): Explain that this function only returns
7666 symbol matching the requested DOMAIN.
7667 Compare the requested domain with the symbol's domain directly.
7668 (iterate_over_symbols): Compare the requested domain with the
7669 symbol's domain directly.
7670 * symtab.h (symbol_matches_domain): Remove.
7671
25326a28 76722014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7673
7674 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7675 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7676 (gdbscm_guile_version_is_at_least): Declare.
7677 (gdbscm_scm_string_to_int): Declare.
7678 * guile/guile.c (gdbscm_guile_major_version): New global.
7679 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7680 (guile_datadir): New static global.
7681 (gdbscm_guile_data_directory): New function.
7682 (initialize_scheme_side): Update.
7683 (misc_guile_functions): Add guile-data-directory.
7684 (initialize_gdb_module): Fetch guile version number.
7685 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7686 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7687 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7688 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7689 comments.
7690 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7691 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7692 * guile/scm-value.c (gdbscm_value_to_string): Only call
7693 scm_port_conversion_strategy if Guile version >= 2.0.6.
7694
0a770bb2 76952014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7696
7697 * main.c (print_gdb_help): Add -q and --silent.
7698
73ba372c
GB
76992014-06-06 Gary Benson <gbenson@redhat.com>
7700
7701 * common/signals.c: Remove preprocessor conditionals for
7702 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7703 SIGSEGV and SIGTERM.
7704 * proc-events.c: Likewise.
7705
c33b2f12
MM
77062014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7707
7708 * symfile.c (symfile_free_objfile): Remove restriction to
7709 OBJF_USERLOADED.
7710 * symfile-mem.c (symbol_file_add_from_memory): Call
7711 add_target_sections_of_objfile.
7712
fb934770
LC
77132014-06-05 Ludovic Courtès <ludo@gnu.org>
7714
7715 * guile/scm-value.c (gdbscm_history_append_x): Use
7716 'vlscm_get_value_smob_arg_unsafe' instead of
7717 'vlscm_scm_to_value'.
7718
6ef284bd
SM
77192014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7720
7721 PR mi/15806
7722 * utils.c (printchar): Don't escape at all if quoter is NUL.
7723 Update function documentation to clarify effect of parameter
7724 QUOTER.
7725 * remote.c (escape_buffer): Pass '\\' as the quoter to
7726 fputstrn_unfiltered.
7727 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7728 generate the output.
7729 (mi_solib_unloaded): Same.
7730
270c9937
JB
77312014-06-05 Joel Brobecker <brobecker@adacore.com>
7732
7733 * development.sh: Delete.
7734 * Makefile.in (config.status): Adjust dependency on development.sh.
7735 * configure.ac: Adjust development.sh source call.
7736 * configure: Regenerate.
7737
16f691fb
DE
77382014-06-04 Doug Evans <xdje42@gmail.com>
7739
7740 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7741 is_scheme_bkpt, spec.
7742 (bpscm_make_breakpoint_smob): Initialize new members.
7743 (gdbscm_create_breakpoint_x): Split into two ...
7744 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7745 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7746 (scheme_function breakpoint_functions): Update.
7747 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7748 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7749 register-breakpoint!.
7750
ef7cab6b
JB
77512014-06-04 Joel Brobecker <brobecker@adacorer.com>
7752
7753 PR server/17023
7754 * mem-break.c (z_type_supported): Return zero if
7755 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7756
012370f6
TT
77572014-06-04 Tom Tromey <tromey@redhat.com>
7758
7759 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7760 value_from_contents_and_address_unresolved.
7761 (ada_template_to_fixed_record_type_1): Likewise.
7762 (ada_which_variant_applies): Likewise.
7763 * value.h (value_from_contents_and_address_unresolved): Declare.
7764 * value.c (value_from_contents_and_address_unresolved): New
7765 function.
7766 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7767 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7768 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7769
92e2a17f
TT
77702014-06-04 Tom Tromey <tromey@redhat.com>
7771
7772 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7773
c0939df1
TT
77742014-06-04 Tom Tromey <tromey@redhat.com>
7775
7776 * procfs.c (procfs_attach): Make "args" const.
7777 * windows-nat.c (windows_attach): Make "args" const.
7778 * nto-procfs.c (procfs_attach): Make "args" const.
7779 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7780 * go32-nat.c (go32_attach): Make "args" const.
7781 * gnu-nat.c (gnu_attach): Make "args" const.
7782 * darwin-nat.c (darwin_attach): Make "args" const.
7783 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7784 * linux-nat.c (linux_nat_attach): Make "args" const.
7785 * remote.c (extended_remote_attach_1, extended_remote_attach):
7786 Make "args" const.
7787 * target.h (struct target_ops) <to_attach>: Make "args" const.
7788 (find_default_attach): Likewise.
7789 * utils.c (parse_pid_to_attach): Make "args" const.
7790 * utils.h (parse_pid_to_attach): Update.
7791
8eaff7cd
TT
77922014-06-04 Tom Tromey <tromey@redhat.com>
7793
7794 * target-delegates.c: Rebuild.
7795 * target.c (default_thread_address_space): New function.
7796 (target_thread_address_space): Simplify.
7797 * target.h (struct target_ops) <to_thread_address_space>: Add
7798 TARGET_DEFAULT_FUNC.
7799
1913f160
DE
78002014-06-04 Doug Evans <xdje42@gmail.com>
7801
7802 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7803
70ad5bff
MM
78042014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7805
7806 * record-btrace.c: Include event-loop.h and inf-loop.h.
7807 (record_btrace_resume_exec_dir)
7808 (record_btrace_async_inferior_event_handler)
7809 (record_btrace_handle_async_inferior_event): New.
7810 (record_btrace_open): Create async event handler.
7811 (record_btrace_close): Delete async event handler.
7812 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7813 Mark async event handler.
7814 (record_btrace_execution_direction): New.
7815 (init_record_btrace_ops): Initialize to_execution_direction.
7816
b6210538
DE
78172014-06-03 Doug Evans <xdje42@gmail.com>
7818
7819 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7820 (gdbscm_make_parameter): Ditto.
7821
a5b1fd27
DE
78222014-06-03 Doug Evans <dje@google.com>
7823
7824 * exec.c (exec_close_1): Call clear_section_table instead of
7825 resize_section_table.
7826 (clear_section_table): New function.
7827 (resize_section_table): Make static. Rename arg num_added to
7828 adjustment.
7829 * exec.h (clear_section_table): Declare.
7830 (resize_section_table): Delete.
7831 * progspace.c (release_program_space): Call clear_section_table
7832 instead of resize_section_table.
7833
0c6e92a5
SC
78342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7835
7836 * NEWS (Python Scripting): Add entry about the new xmethods
7837 feature.
7838
883964a7
SC
78392014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7840
7841 * python/py-xmethods.c: New file.
7842 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7843 (objfpy_dealloc): XDECREF on the new xmethods field.
7844 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7845 field.
7846 (objfpy_get_xmethods): New function.
7847 (objfile_getset): New entry 'xmethods'.
7848 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7849 (pspy_dealloc): XDECREF on the new xmethods field.
7850 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7851 field.
7852 (pspy_get_xmethods): New function.
7853 (pspace_getset): New entry 'xmethods'.
7854 * python/python-internal.h: Add declarations for new functions.
7855 * python/python.c (_initialize_python): Invoke
7856 gdbpy_initialize_xmethods.
7857 * python/lib/gdb/__init__.py (xmethods): New
7858 attribute.
7859 * python/lib/gdb/xmethod.py: New file.
7860 * python/lib/gdb/command/xmethods.py: New file.
7861
58992dc5
SC
78622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7863
7864 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7865 best match method returned by find_overload_match is an xmethod.
7866 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7867 the best matching operator returned by find_overload_match is an
7868 xmethod.
7869 * valops.c: #include "extension.h".
7870 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7871 Return void. The list of matching source methods is returned in
7872 "fn_list" and a vector of matching debug method workers is
7873 returned in "xm_worker_vec". Update all callers.
7874 (value_find_oload_method_list): Likewise.
7875 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7876 non-NULL, then the index of the best matching method in this
7877 vector is returned. Update all callers.
7878 (find_overload_match): Include xmethods while performing overload
7879 resolution.
7880
e81e7f5e
SC
78812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7882
7883 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7884 * extension-priv.h (struct extension_language_ops): Add the
7885 xmethod interface.
7886 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7887 get_matching_xmethod_workers, get_xmethod_argtypes,
7888 invoke_xmethod, free_xmethod_worker,
7889 free_xmethod_worker_vec): New functions.
7890 * extension.h: #include "common/vec.h".
7891 New function declarations.
7892 (struct xmethod_worker): New struct.
7893 (VEC (xmethod_worker_ptr)): New vector type.
7894 (xmethod_worker_ptr): New typedef.
7895 (xmethod_worker_vec): Likewise.
7896 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7897 builtin_type.
7898 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7899 (struct builtin_type): New field "xmethod".
7900 * valarith.c (value_ptradd): Assert that the value argument is not
7901 lval_xcallable.
7902 * valops.c (value_must_coerce_to_target): Return 0 for
7903 lval_xcallable values.
7904 * value.c (struct value): New field XM_WORKER in the field
7905 LOCATION.
7906 (value_address, value_raw_address): Return 0 for lval_xcallable
7907 values.
7908 (set_value_address): Assert that the value is not an
7909 lval_xcallable.
7910 (value_free): Free the associated xmethod worker when freeing
7911 lval_xcallable values.
7912 (set_value_component_location): Assert that the WHOLE value is not
7913 lval_xcallable.
7914 (value_of_xmethod, call_xmethod): New functions.
7915 * value.h: Declare "struct xmethod_worker".
7916 Declare new functions value_of_xmethod, call_xmethod.
7917
ef370185
JB
79182014-06-03 Joel Brobecker <brobecker@adacore.com>
7919 Pedro Alves <palves@redhat.com>
7920
7921 PR breakpoints/17000
7922 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7923 New function, extracted from software_breakpoint_inserted_here_p.
7924 (software_breakpoint_inserted_here_p): Replace factored out code
7925 by call to find_non_raw_software_breakpoint_inserted_here.
7926 (bp_target_info_copy_insertion_state): New function.
7927 (bkpt_insert_location): Handle the case of a single-step
7928 breakpoint already inserted at the same address.
7929 (bkpt_remove_location): Handle the case of a single-step
7930 breakpoint still inserted at the same address.
7931 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7932 breakpoint already inserted at the same address.
7933 (deprecated_remove_raw_breakpoint): Handle the case of a
7934 non-raw breakpoint still inserted at the same address.
7935 (find_single_step_breakpoint): New function, extracted from
7936 single_step_breakpoint_inserted_here_p.
7937 (find_single_step_breakpoint): New function,
7938 factored out from single_step_breakpoint_inserted_here_p.
7939 (single_step_breakpoint_inserted_here_p): Reimplement.
7940
1e2ccb61
BM
79412014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7942
7943 Pushed by Joel Brobecker <brobecker@adacore.com>
7944 * source.c (show_substitute_path_command): Fix display of matching
7945 substitution rules.
7946
d3448d85
GB
79472014-06-03 Gary Benson <gbenson@redhat.com>
7948
7949 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7950
06eb1586
DE
79512014-06-02 Doug Evans <xdje42@gmail.com>
7952
7953 Add parameter support for Guile.
7954 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7955 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7956 (scm-param.o): New rule.
7957 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7958 (gdbscm_misc_error): Declare.
7959 (gdbscm_canonicalize_command_name): Declare.
7960 (gdbscm_scm_to_host_string): Declare.
7961 (gdbscm_scm_from_host_string): Declare.
7962 (gdbscm_initialize_parameters): Declare.
7963 * guile/guile.c (initialize_gdb_module): Call
7964 gdbscm_initialize_parameters.
7965 * guile/lib/gdb.scm: Export parameter symbols.
7966 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7967 cmdscm_canonicalize_name and made public. All callers updated.
7968 * guile/scm-exception.c (gdbscm_misc_error): New function.
7969 * guile/scm-param.c: New file.
7970 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7971 (gdbscm_scm_to_host_string): New function.
7972 (gdbscm_scm_from_host_string): New function.
7973 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7974
e698b8c4
DE
79752014-06-02 Doug Evans <xdje42@gmail.com>
7976
7977 Add command support for Guile.
7978 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7979 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7980 (scm-cmd.o): New rule.
7981 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7982 (gdbscm_user_error_p): Declare.
7983 (gdbscm_parse_command_name): Declare.
7984 (gdbscm_valid_command_class_p): Declare.
7985 (gdbscm_initialize_commands): Declare.
7986 * guile/guile.c (initialize_gdb_module): Call
7987 gdbscm_initialize_commands.
7988 * guile/lib/gdb.scm: Export command symbols.
7989 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7990 (throw-user-error): New function.
7991 * guile/scm-cmd.c: New file.
7992 * guile/scm-exception.c (user_error_symbol): New static global.
7993 (gdbscm_user_error_p): New function.
7994 (gdbscm_initialize_exceptions): Set user_error_symbol.
7995 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7996
fb1f94b0
PM
79972014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7998
7999 * top.c (command_loop): Handle comments here...
8000 (command_line_input): ... not here.
8001
ded03782
DE
80022014-06-02 Doug Evans <xdje42@gmail.com>
8003
8004 Add progspace support for Guile.
8005 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8006 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8007 (scm-progspace.o): New rule.
8008 * guile/guile-internal.h (pspace_smob): New typedef.
8009 (psscm_pspace_smob_pretty_printers): Declare.
8010 (psscm_pspace_smob_from_pspace): Declare.
8011 (psscm_scm_from_pspace): Declare.
8012 * guile/guile.c (initialize_gdb_module): Call
8013 gdbscm_initialize_pspaces.
8014 * guile/lib/gdb.scm: Export progspace symbols.
8015 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8016 support.
8017 (append-pretty-printer!): Ditto.
8018 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8019 Implement.
8020 * guile/scm-progspace.c: New file.
8021
397998fc
AM
80222014-06-03 Alan Modra <amodra@gmail.com>
8023
8024 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8025 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8026
6aa5f3a6
DE
80272014-06-02 Doug Evans <dje@google.com>
8028
8029 Add support for skeletonless type units.
8030 * dwarf2read.c (struct dwarf2_per_objfile): New member
8031 n_allocated_type_units.
8032 (struct dwarf2_per_objfile) <tu_stats>: New member
8033 nr_all_type_units_reallocs.
8034 (create_signatured_type_table_from_index): Initialize
8035 n_allocated_type_units
8036 (create_all_type_units): Ditto.
8037 (add_type_unit): Move up in file. New arg slot.
8038 All callers updated. Increase space for all_type_units more
8039 efficiently.
8040 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8041 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8042 (lookup_dwp_signatured_type): Ditto.
8043 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8044 All callers updated.
8045 (build_type_psymtabs_1): Leave type_unit_groups as
8046 NULL if no TUs present.
8047 (print_tu_stats): New function.
8048 (process_skeletonless_type_unit): New function.
8049 (process_dwo_file_for_skeletonless_type_units): New
8050 function.
8051 (process_skeletonless_type_units): New function.
8052 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8053 Call print tu_stats if debugging enabled.
8054
41fac0cf
PA
80552014-06-02 Pedro Alves <palves@redhat.com>
8056
8057 * breakpoint.c (build_target_command_list): Don't build a command
8058 list if we have any duplicate location that isn't a dprintf.
8059
cd1608cc
PA
80602014-06-02 Pedro Alves <palves@redhat.com>
8061
8062 * breakpoint.c (dprintf_breakpoint_hit): New function.
8063 (initialize_breakpoint_ops): Install it as dprintf's
8064 breakpoint_hit method.
8065
486ef3b9
JB
80662014-06-02 Joel Brobecker <brobecker@adacore.com>
8067
8068 * source.c (substitute_path_rule_matches): Simplify using
8069 filename_ncmp instead of FILENAME_CMP.
8070
230cd560
JB
80712014-06-02 Joel Brobecker <brobecker@adacore.com>
8072
8073 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8074
16954d5d
LC
80752014-06-01 Ludovic Courtès <ludo@gnu.org>
8076
8077 * configure.ac: When Guile is available, check for the
8078 availability of 'scm_new_smob'.
8079 * configure, config.h.in: Regenerate.
8080 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8081 function.
8082
53e8a631
AB
80832014-05-30 Andrew Burgess <aburgess@broadcom.com>
8084
8085 * frame.c (struct frame_info): Add stop_string field.
8086 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8087 (get_prev_frame_always): Old content moved into
8088 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8089 TRY_CATCH, handle MEMORY_ERROR exceptions.
8090 (frame_stop_reason_string): New function definition.
8091 * frame.h (unwind_stop_reason_to_string): Extend comment to
8092 mention frame_stop_reason_string.
8093 (frame_stop_reason_string): New function declaration.
8094 * stack.c (frame_info): Switch to frame_stop_reason_string.
8095 (backtrace_command_1): Switch to frame_stop_reason_string.
8096 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8097 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8098 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8099
70e38b8e
AB
81002014-05-30 Andrew Burgess <aburgess@broadcom.com>
8101
8102 * frame.c (frame_stop_reason_string): Rename to ...
8103 (unwind_stop_reason_to_string): this.
8104 * frame.h (frame_stop_reason_string): Rename to ...
8105 (unwind_stop_reason_to_string): this.
8106 * stack.c (frame_info): Update call to frame_stop_reason_string.
8107 (backtrace_command_1): Likewise.
8108 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8109 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8110
938f0e2f
AB
81112014-05-30 Andrew Burgess <aburgess@broadcom.com>
8112
8113 * frame.c (remove_prev_frame): New function.
8114 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8115 remove_prev_frame.
8116
a09dd441
PA
81172014-05-29 Pedro Alves <palves@redhat.com>
8118
8119 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8120 and make it const. When a single-step decays to a continue,
8121 clear 'step', not 'hw_step'. Pass whether the caller wanted
8122 to step to user_visible_resume_ptid, not what we ask the
8123 target to do.
8124
bdc36728
PA
81252014-05-29 Pedro Alves <palves@redhat.com>
8126
8127 * infrun.c (process_event_stop_test, handle_step_into_function)
8128 (handle_step_into_function_backward): Adjust.
8129 Don't set the even thread's stop_step and call stop_waiting before
8130 calling end_stepping_range. Instead do that ...
8131 (end_stepping_range): ... here. Take an ecs pointer parameter.
8132
22bcd14b
PA
81332014-05-29 Pedro Alves <palves@redhat.com>
8134
8135 * infrun.c (stop_stepping): Rename to ...
8136 (stop_waiting): ... this.
8137 (proceed): Update comment.
8138 (process_event_stop_test, handle_inferior_event)
8139 (handle_signal_stop, handle_step_into_function)
8140 (handle_step_into_function_backward): Update.
8141
4ae57c05
PA
81422014-05-29 Pedro Alves <palves@redhat.com>
8143
8144 * infcall.c (run_inferior_call): Don't check whether the current
8145 thread is running after the proceed call.
8146
329ea579
PA
81472014-05-29 Pedro Alves <palves@redhat.com>
8148 Tom Tromey <tromey@redhat.com>
8149
8150 * NEWS: Mention "maint set target-async", "set mi-async", and that
8151 background execution commands are now always available.
8152 * target.h (target_async_permitted): Update comment.
8153 * target.c (target_async_permitted, target_async_permitted_1):
8154 Default to 1.
8155 (set_target_async_command): Rename to ...
8156 (maint_set_target_async_command): ... this.
8157 (show_target_async_command): Rename to ...
8158 (maint_show_target_async_command): ... this.
8159 (_initialize_target): Adjust.
8160 * infcmd.c (prepare_execution_command): Make extern.
8161 * inferior.h (prepare_execution_command): Declare.
8162 * infrun.c (set_observer_mode): Leave target async alone.
8163 * mi/mi-interp.c (mi_interpreter_init): Install
8164 mi_on_sync_execution_done as sync_execution_done observer.
8165 (mi_on_sync_execution_done): New function.
8166 (mi_execute_command_input_handler): Don't print the prompt if we
8167 just started a synchronous command with an async target.
8168 (mi_on_resume): Check sync_execution before printing prompt.
8169 * mi/mi-main.h (mi_async_p): Declare.
8170 * mi/mi-main.c: Include gdbcmd.h.
8171 (mi_async_p): New function.
8172 (mi_async, mi_async_1): New globals.
8173 (set_mi_async_command, show_mi_async_command, mi_async): New
8174 functions.
8175 (exec_continue): Call prepare_execution_command.
8176 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8177 (mi_execute_async_cli_command): Use mi_async_p.
8178 (_initialize_mi_main): Install "set mi-async". Make
8179 "target-async" a deprecated alias.
8180
92bcb5f9
PA
81812014-05-29 Pedro Alves <palves@redhat.com>
8182
8183 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8184 (_initialize_cli_interp): Adjust.
8185 * event-loop.c: Include "observer.h".
8186 (start_event_loop): Notify 'command_error' observers instead of
8187 calling display_gdb_prompt. Remove FIXME comment.
8188 * event-top.c (display_gdb_prompt): Remove call into the
8189 interpreters.
8190 * inf-loop.c: Include "observer.h".
8191 (inferior_event_handler): Notify 'command_error' observers instead
8192 of calling display_gdb_prompt.
8193 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8194 observers instead of calling display_gdb_prompt.
8195 * interps.c (interp_set): Don't call display_gdb_prompt.
8196 (current_interp_display_prompt_p): Delete.
8197 * interps.h (interp_prompt_p): Delete declaration.
8198 (interp_prompt_p_ftype): Delete.
8199 (struct interp_procs) <prompt_proc_p>: Delete field.
8200 (current_interp_display_prompt_p): Delete declaration.
8201 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8202 (_initialize_mi_interp): Adjust.
8203 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8204 'command_error' observers.
8205 (tui_on_sync_execution_done, tui_on_command_error): New
8206 functions.
8207 (tui_display_prompt_p): Delete.
8208 (_initialize_tui_interp): Adjust.
8209
fd664c91
PA
82102014-05-29 Pedro Alves <palves@redhat.com>
8211
8212 PR gdb/13860
8213 * cli/cli-interp.c: Include infrun.h and observer.h.
8214 (cli_uiout, cli_interp): New globals.
8215 (cli_on_signal_received, cli_on_end_stepping_range)
8216 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8217 functions.
8218 (cli_interpreter_init): Install them as 'end_stepping_range',
8219 'signal_received' 'signal_exited', 'exited' and 'no_history'
8220 observers.
8221 (_initialize_cli_interp): Remove cli_interp local.
8222 * infrun.c (handle_inferior_event): Call the several stop reason
8223 observers instead of printing the stop reason directly.
8224 (end_stepping_range): New function.
8225 (print_end_stepping_range_reason, print_signal_exited_reason)
8226 (print_exited_reason, print_signal_received_reason)
8227 (print_no_history_reason): Make static, and add an uiout
8228 parameter. Print to that instead of to CURRENT_UIOUT.
8229 * infrun.h (print_end_stepping_range_reason)
8230 (print_signal_exited_reason, print_exited_reason)
8231 (print_signal_received_reason print_no_history_reason): New
8232 declarations.
8233 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8234 'mi_uiout'.
8235 <cli_uiout>: New field.
8236 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8237 uiout for CLI output. Install 'signal_received',
8238 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8239 observers.
8240 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8241 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8242 (mi_on_no_history): New functions.
8243 (ui_out_free_cleanup): Delete function.
8244 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8245 instead use the one already stored in the MI interpreter data.
8246 (mi_ui_out): Adjust.
8247 * tui/tui-interp.c: Include infrun.h and observer.h.
8248 (tui_interp): New global.
8249 (tui_on_signal_received, tui_on_end_stepping_range)
8250 (tui_on_signal_exited, tui_on_exited)
8251 (tui_on_no_history): New functions.
8252 (tui_init): Install them as 'end_stepping_range',
8253 'signal_received' 'signal_exited', 'exited' and 'no_history'
8254 observers.
8255 (_initialize_tui_interp): Delete tui_interp local.
8256
8817a6f2
PA
82572014-05-29 Pedro Alves <palves@redhat.com>
8258
8259 PR gdb/15713
8260 * linux-nat.c (linux_nat_resume_callback): Rename the second
8261 parameter to 'except'. Skip LP if it points to EXCEPT.
8262 (linux_nat_resume): Don't mark the event lwp as not stopped
8263 before resuming sibling lwps. Instead ask
8264 linux_nat_resume_callback to skip the event lwp. Mark it as not
8265 stopped after actually resuming it.
8266 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8267 resuming it.
8268 (wait_lwp): Mark the lwp as stopped here.
8269 (stop_wait_callback): Mark the lwp as not stopped right after
8270 resuming it. Don't mark lwps as stopped here.
8271 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8272 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8273
251bde03
PA
82742014-05-29 Pedro Alves <palves@redhat.com>
8275
8276 PR PR15693
8277 * infrun.c (resume): Determine how much to resume depending on
8278 whether the caller wanted a step, not whether we can hardware step
8279 the target. Mark all threads that we intend to run as running,
8280 unless we're calling an inferior function.
8281 (normal_stop): If the thread is running an infcall, don't finish
8282 thread state.
8283 * target.c (target_resume): Don't mark threads as running here.
8284
7f3c0343
JB
82852014-05-28 Joel Brobecker <brobecker@adacore.com>
8286
8287 * serial.c (_initialize_serial): Remove support for
8288 the "set remotebaud" and "show remotebaud" commands.
8289 * NEWS: Add entry documenting the removal of that command.
8290
ee34b3f9
YQ
82912014-05-28 Yao Qi <yao@codesourcery.com>
8292
8293 * charset.c: Fix typo in comments.
8294
add6c04d
GB
82952014-05-27 Gary Benson <gbenson@redhat.com>
8296
8297 * utils.c (internal_vproblem): Prompt for a bug report.
8298
92c48fc5
AW
82992014-05-26 Andy Wingo <wingo@igalia.com>
8300
8301 * guile/scm-arch.c (arscm_mark_arch_smob):
8302 * guile/scm-block.c (bkscm_mark_block_smob)
8303 (bkscm_mark_block_syms_progress_smob):
8304 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8305 * guile/scm-exception.c (exscm_mark_exception_smob):
8306 * guile/scm-frame.c (frscm_mark_frame_smob):
8307 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8308 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8309 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8310 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8311 (ppscm_mark_pretty_printer_worker_smob):
8312 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8313 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8314 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8315 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8316 mark functions.
8317 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8318 function.
8319
b2715b27
AW
83202014-05-26 Andy Wingo <wingo@igalia.com>
8321 Doug Evans <xdje42@gmail.com>
8322
8323 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8324 empty_base_class. All uses updated.
8325 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8326 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8327 Adapt all callers.
8328 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8329 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8330 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8331 (gdbscm_gsmob_has_property_p, add_property_name)
8332 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8333 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8334 (gdb-object-has-property?, gdb-object-properties): Remove.
8335 (gdb-object-kind): Renamed from gsmob-kind.
8336
214ab2da
AW
83372014-05-26 Andy Wingo <wingo@igalia.com>
8338
8339 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8340 * configure: Regenerate.
8341
589fdceb
MM
83422014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8343
8344 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8345
67b5c0c1
MM
83462014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8347
8348 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8349 (replay_memory_access_read_only, replay_memory_access_read_write)
8350 (replay_memory_access_types, replay_memory_access)
8351 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8352 (cmd_set_record_btrace, cmd_show_record_btrace)
8353 (cmd_show_replay_memory_access): New.
8354 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8355 (record_btrace_remove_breakpoint): Replace
8356 record_btrace_allow_memory_access with replay_memory_access.
8357 (_initialize_record_btrace): Add commands.
8358 * NEWS: Announce it.
8359
036cd381
RR
83602014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8361
8362 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8363
c77c1e42
RR
83642014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8365
8366 * MAINTAINERS (Write After Approval): Move self back from
8367 paper trail.
8368
45741a9c
PA
83692014-05-22 Pedro Alves <palves@redhat.com>
8370
8371 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8372 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8373 (disable_randomization, enum exec_direction_kind)
8374 (execution_direction, stop_registers, start_remote)
8375 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8376 (wait_for_inferior, normal_stop, get_last_target_status)
8377 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8378 (insert_step_resume_breakpoint_at_sal)
8379 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8380 (set_step_info, print_stop_event, signal_stop_state)
8381 (signal_print_state, signal_pass_state, signal_stop_update)
8382 (signal_print_update, signal_pass_update)
8383 (update_signals_program_target, clear_exit_convenience_vars)
8384 (displaced_step_dump_bytes, update_observer_mode)
8385 (signal_catch_update, gdb_signal_from_command): Move
8386 declarations ...
8387 * infrun.h: ... to this new file.
8388 * amd64-tdep.c: Include infrun.h.
8389 * annotate.c: Include infrun.h.
8390 * arch-utils.c: Include infrun.h.
8391 * arm-linux-tdep.c: Include infrun.h.
8392 * arm-tdep.c: Include infrun.h.
8393 * break-catch-sig.c: Include infrun.h.
8394 * breakpoint.c: Include infrun.h.
8395 * common/agent.c: Include infrun.h instead of inferior.h.
8396 * corelow.c: Include infrun.h.
8397 * event-top.c: Include infrun.h.
8398 * go32-nat.c: Include infrun.h.
8399 * i386-tdep.c: Include infrun.h.
8400 * inf-loop.c: Include infrun.h.
8401 * infcall.c: Include infrun.h.
8402 * infcmd.c: Include infrun.h.
8403 * infrun.c: Include infrun.h.
8404 * linux-fork.c: Include infrun.h.
8405 * linux-nat.c: Include infrun.h.
8406 * linux-thread-db.c: Include infrun.h.
8407 * monitor.c: Include infrun.h.
8408 * nto-tdep.c: Include infrun.h.
8409 * procfs.c: Include infrun.h.
8410 * record-btrace.c: Include infrun.h.
8411 * record-full.c: Include infrun.h.
8412 * remote-m32r-sdi.c: Include infrun.h.
8413 * remote-mips.c: Include infrun.h.
8414 * remote-notif.c: Include infrun.h.
8415 * remote-sim.c: Include infrun.h.
8416 * remote.c: Include infrun.h.
8417 * reverse.c: Include infrun.h.
8418 * rs6000-tdep.c: Include infrun.h.
8419 * s390-linux-tdep.c: Include infrun.h.
8420 * solib-irix.c: Include infrun.h.
8421 * solib-osf.c: Include infrun.h.
8422 * solib-svr4.c: Include infrun.h.
8423 * target.c: Include infrun.h.
8424 * top.c: Include infrun.h.
8425 * windows-nat.c: Include infrun.h.
8426 * mi/mi-interp.c: Include infrun.h.
8427 * mi/mi-main.c: Include infrun.h.
8428 * python/py-threadevent.c: Include infrun.h.
8429
98eb56a4
PA
84302014-05-22 Pedro Alves <palves@redhat.com>
8431
8432 * infrun.c (handle_inferior_event): Store the exit code for
8433 --return-child-result here, instead of ...
8434 (print_exited_reason): ... here.
8435
17b2616c
PA
84362014-05-21 Pedro Alves <palves@redhat.com>
8437
8438 PR gdb/13860
8439 * gdbthread.h (struct thread_control_state): New field
8440 `command_interp'.
8441 * infrun.c (follow_fork): Copy the new thread control field to the
8442 child fork thread.
8443 (clear_proceed_status_thread): Clear the new thread control field.
8444 (proceed): Set the new thread control field.
8445 * interps.h (command_interp): Declare.
8446 * interps.c (command_interpreter): New global.
8447 (command_interp): New function.
8448 (interp_exec): Set `command_interpreter' while here.
8449 * cli-out.c (cli_uiout_dtor): New function.
8450 (cli_ui_out_impl): Install it.
8451 * mi/mi-interp.c: Include cli-out.h.
8452 (mi_cmd_interpreter_exec): Add comment.
8453 (restore_current_uiout_cleanup): New function.
8454 (ui_out_free_cleanup): New function.
8455 (mi_on_normal_stop): If finishing an execution command started by
8456 a CLI command, or any kind of breakpoint-like event triggered,
8457 print the stop event to the output (CLI) stream.
8458 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8459
5166082f
PA
84602014-05-21 Pedro Alves <palves@redhat.com>
8461
8462 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8463 current source line having changed.
8464 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8465 * infrun.c (normal_stop): Adjust call to
8466 set_current_sal_from_frame.
8467 * source.c (clear_lines_listed_range): New function.
8468 (set_current_source_symtab_and_line, identify_source_line): Clear
8469 the lines listed range.
8470 (line_info): Handle the first "info line" after the current source
8471 line having changed.
8472 * stack.c (print_stack_frame): Remove center handling.
8473 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8474 center sal.line.
8475
c1ee2fb3
PA
84762014-05-21 Pedro Alves <palves@redhat.com>
8477
8478 * inf-child.c (inf_child_mourn_inferior): New function.
8479 * inf-child.h (inf_child_mourn_inferior): New declaration.
8480 * darwin-nat.c (darwin_mourn_inferior): Use
8481 inf_child_mourn_inferior.
8482 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8483 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8484 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8485 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8486 * windows-nat.c (windows_mourn_inferior): Likewise.
8487
5c6d4fb2
DE
84882014-05-21 Doug Evans <xdje42@gmail.com>
8489
250748cb 8490 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8491
4a2722c5
DE
84922014-05-21 Doug Evans <xdje42@gmail.com>
8493
17292b30 8494 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8495 (gdbscm_out_of_range_error): Ditto.
8496 (gdbscm_memory_error): Ditto.
250748cb
DE
8497 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8498 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8499 (gdbscm_out_of_range_error): Update.
8500 (gdbscm_memory_error): Update.
8501 (gdbscm_scm_to_target_string_unsafe): Delete.
8502
6a3cb8e8
PA
85032014-05-21 Pedro Alves <palves@redhat.com>
8504
8505 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8506 globals.
8507 (inf_child_open_target): New function.
8508 (inf_child_open): Use inf_child_open_target to push the target
8509 instead of erroring out.
8510 (inf_child_disconnect, inf_child_close)
8511 (inf_child_maybe_unpush_target): New functions.
8512 (inf_child_target): Install inf_child_disconnect and
8513 inf_child_close. Store a pointer to the returned object.
8514 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8515 declarations.
8516 * target.c (auto_connect_native_target): New global.
8517 (show_default_run_target): New function.
8518 (find_default_run_target): Return NULL if automatically connecting
8519 to the native target is disabled.
8520 (_initialize_target): Install set/show auto-connect-native-target.
8521 * NEWS: Mention "set auto-connect-native-target", and "target
8522 native".
8523 * linux-nat.c (super_close): New global.
8524 (linux_nat_close): Call super_close.
8525 (linux_nat_add_target): Store a pointer to the base class's
8526 to_close method.
8527 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8528 inf_child_maybe_unpush.
8529 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8530 already pushed.
8531 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8532 the inferior. Use inf_child_maybe_unpush_target.
8533 (inf_ttrace_attach): Don't push the target if it is already
8534 pushed.
8535 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8536 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8537 after mourning the inferior. Use inf_child_maybe_unpush_target.
8538 (darwin_attach_pid): Don't push the target if it is already
8539 pushed.
8540 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8541 mourning the inferior. Use inf_child_maybe_unpush_target.
8542 (gnu_detach): Use inf_child_maybe_unpush_target.
8543 * go32-nat.c (go32_create_inferior): Don't push the target if it
8544 is already pushed.
8545 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8546 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8547 (procfs_open): Rename to ...
8548 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8549 comments. Can target_preopen before changing node. Call
8550 inf_child_open_target to push the target explicitly.
8551 (procfs_attach): Don't push the target if it is already pushed.
8552 (procfs_detach): Use inf_child_maybe_unpush_target.
8553 (procfs_create_inferior): Don't push the target if it is already
8554 pushed.
8555 (nto_native_ops): New global.
8556 (procfs_open): Reimplement.
8557 (procfs_native_open): New function.
8558 (init_procfs_targets): Install procfs_native_open as to_open of
8559 "target native". Store a pointer to the "native" target in
8560 nto_native_ops.
8561 * procfs.c (procfs_attach): Don't push the target if it is already
8562 pushed.
8563 (procfs_detach): Use inf_child_maybe_unpush_target.
8564 (procfs_mourn_inferior): Only unpush the target after mourning the
8565 inferior. Use inf_child_maybe_unpush_target.
8566 (procfs_init_inferior): Don't push the target if it is already
8567 pushed.
8568 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8569 if it is already pushed.
8570
930ee1b1
PA
85712014-05-21 Pedro Alves <palves@redhat.com>
8572
8573 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8574 and "procfs" targets are now called "native" instead.
8575
1f5d1b13
PA
85762014-05-21 Pedro Alves <palves@redhat.com>
8577
8578 * go32-nat.c (go32_open): Delete.
8579 (go32_target): Don't override the to_open method.
8580
132f8e03
PA
85812014-05-21 Pedro Alves <palves@redhat.com>
8582
8583 * nto-procfs.c (procfs_can_run): New function.
8584 (nto_procfs_ops): New global.
8585 (init_procfs_targets): New, based on procfs_target. Install
8586 "target native" in addition to "target procfs".
8587 (_initialize_procfs): Call init_procfs_targets instead of adding
8588 the target here.
8589
03c136c3
PA
85902014-05-21 Pedro Alves <palves@redhat.com>
8591
8592 * windows-nat.c (windows_target): Don't override to_shortname,
8593 to_longname or to_doc.
8594
a635d0f3
PA
85952014-05-21 Pedro Alves <palves@redhat.com>
8596
8597 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8598 to_doc.
8599
4f9b5133
PA
86002014-05-21 Pedro Alves <palves@redhat.com>
8601
8602 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8603 to_shortname, to_longname or to_doc.
8604
bc85afde
PA
86052014-05-21 Pedro Alves <palves@redhat.com>
8606
8607 * go32-nat.c (go32_target): Don't override to_shortname,
8608 to_longname or to_doc.
8609
4ebfc96e
PA
86102014-05-21 Pedro Alves <palves@redhat.com>
8611
8612 * inf-child.c (inf_child_open): Remove mention of "child".
8613 (inf_child_target): Rename target to "native" instead of "child".
8614
2648dfed
AA
86152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8616
8617 * Makefile.in (SFILES): Delete "regset.c".
8618 (COMMON_OBS): Delete "regset.o".
8619 * regset.c: Remove.
8620 * regset.h (regset_alloc): Delete prototype.
8621
b13feb94
AA
86222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8623
8624 * sparc-linux-tdep.c (sparc32_linux_gregset)
8625 (sparc32_linux_fpregset): New static regset structures.
8626 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8627 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8628 'fpregset' fields.
8629 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8630 (sparc64_linux_fpregset): New static regset structures.
8631 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8632 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8633 New static regset structures.
8634 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8635 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8636 New static regset structures.
8637 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8638 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8639 New static regset structures.
8640 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8641 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8642 New static regset structures.
8643 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8644
b4fd25c9
AA
86452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8646
8647 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8648 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8649 register maps ("regmaps") from "*regset" to "*regmap". Do this
8650 for all regmap types and variables.
8651 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8652 (sparc32_linux_supply_core_gregset)
8653 (sparc32_linux_collect_core_gregset)
8654 (sparc32_linux_supply_core_fpregset)
8655 (sparc32_linux_collect_core_fpregset): Likewise.
8656 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8657 (sparc_gregmap, sparc_fpregmap): ... these.
8658 (sparc_supply_gregset, sparc_collect_gregset)
8659 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8660 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8661 (_initialize_sparc_nat): Rename regmaps.
8662 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8663 (sparc_gregmap, sparc_fpregmap): ... these.
8664 (sparc_supply_gregset, sparc_collect_gregset)
8665 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8666 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8667 Rename macros to...
8668 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8669 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8670 Likewise.
8671 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8672 Rename to...
8673 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8674 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8675 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8676 regmaps.
8677 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8678 (sparc32_bsd_fpregset): Rename to...
8679 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8680 (sparc32_bsd_fpregmap): ... these.
8681 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8682 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8683 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8684 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8685 (struct sparc_gregmap, struct sparc_fpregmap)
8686 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8687 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8688 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8689 (sparc32_supply_regset, sparc32_collect_gregset)
8690 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8691 prototypes.
8692 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8693 (sparc64_linux_ptrace_gregmap): ... this.
8694 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8695 (_initialize_sparc64_linux_nat): Rename regmaps.
8696 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8697 (sparc64_linux_core_gregmap): ... this.
8698 (sparc64_linux_supply_core_gregset)
8699 (sparc64_linux_collect_core_gregset)
8700 (sparc64_linux_supply_core_fpregset)
8701 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8702 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8703 (sparc64_sol2_fpregset): Rename to...
8704 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8705 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8706 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8707 regmaps.
8708 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8709 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8710 (sparc64_bsd_fpregset): Rename to...
8711 (struct sparc_gregmap, sparc64_sol2_gregmap)
8712 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8713 (sparc64_bsd_fpregmap): ... these.
8714 (sparc64_supply_gregset, sparc64_collect_gregset)
8715 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8716 prototypes.
8717 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8718 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8719 (sparc64fbsd_gregmap): ... this.
8720 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8721 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8722 Rename regmaps.
8723 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8724 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8725 (sparc64nbsd_collect_fpregset): Likewise.
8726 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8727 (sparc64nbsd_gregmap): ... this.
8728 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8729 regmaps.
8730 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8731 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8732 (sparc64obsd_gregmap): ... this.
8733 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8734 regmaps.
8735 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8736 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8737 (sparc32nbsd_gregmap): ... this.
8738 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8739 regmaps.
8740
8fea3224
AA
87412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8742
8743 * score-tdep.c (score7_linux_gregset): New static regset
8744 structure.
8745 (score7_linux_regset_from_core_section): Remove dynamic regset
8746 allocation.
8747 (score_gdbarch_init): Drop allocation of tdep structure.
8748 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8749
24534243
AA
87502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8751
8752 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8753 regset structures.
8754 (am33_regset_from_core_section): Remove dynamic regset
8755 allocations.
8756
b7195f27
AA
87572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8758
8759 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8760 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8761 structures.
8762 (mips_linux_regset_from_core_section): Remove dynamic regset
8763 allocations.
8764 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8765 'gregset64', 'fpregset', and 'fpregset64'.
8766 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8767 deleted tdep fields.
8768
ecc37a5a
AA
87692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8770
8771 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8772 regset structures.
8773 (amd64_regset_from_core_section): Remove dynamic regset
8774 allocations.
8775 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8776 structure.
8777 (amd64obsd_regset_from_core_section): Remove dynamic regset
8778 allocation.
8779 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8780 Likewise.
8781 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8782 x86-common regset supply function.
8783 * i386-tdep.c (i386_collect_gregset): Make static.
8784 (i386_gregset): New global regset structure.
8785 (i386_fpregset, i386_xstateregset): New static regset structures.
8786 (i386_regset_from_core_section): Remove dynamic regset
8787 allocations.
8788 (i386_gdbarch_init): Remove initialization of tdep fields
8789 'gregset', 'fpregset', and 'xstateregset'.
8790 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8791 'fpregset', and 'xstateregset'.
8792 (i386_collect_gregset): Remove prototype.
8793 (i386_gregset): New declaration.
8794 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8795 structure.
8796 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8797 allocation.
8798
b7611c43
AA
87992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8800
8801 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8802 (arm_linux_vfpregset): New static regset structures.
8803 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8804 regset structures.
8805 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8806 and 'vfpregset' fields.
8807
a069a2bd
AA
88082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8809
8810 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8811 (aarch64_linux_fpregset): New static regset structures.
8812 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8813 of regset structures.
8814 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8815 'fpregset' fields.
8816
09424cff
AA
88172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8818
8819 * regset.h (struct regset): Remove gdbarch field.
8820 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8821 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8822 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8823 Likewise.
8824 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8825 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8826 (ppc32_linux_vsxregset): Likewise.
8827 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8828 via the regcache instead of the regset.
8829 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8830 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8831 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8832 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8833 Likewise.
8834
3ca7dae4
AA
88352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8836
8837 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8838 Constify structures.
8839 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8840 (alphanbsd_aout_gregset): Likewise.
8841 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8842 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8843 Likewise.
8844 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8845 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8846 Likewise.
8847 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8848 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8849 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8850 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8851 * m88k-tdep.c (m88k_gregset): Likewise.
8852 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8853 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8854 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8855 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8856 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8857 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8858 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8859 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8860 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8861 Likewise.
8862 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8863 * sh-tdep.h (sh_corefile_gregset): Likewise.
8864 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8865 * vax-tdep.c (vax_gregset): Likewise.
8866
5876f503
JK
88672014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8868
8869 Fix TLS access for -static -pthread.
8870 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8871 (try_thread_db_load_1): Initialize it.
8872 (thread_db_get_thread_local_address): Call it if LM is zero.
8873 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8874 * target.h (struct target_ops) (to_get_thread_local_address): Add
8875 load_module_addr comment.
8876
0256a6ac
PA
88772014-05-21 Pedro Alves <palves@redhat.com>
8878
8879 * dcache.c (dcache_read_memory_partial): If reading the cache line
8880 fails, fallback to reading just the memory the caller wanted.
8881
227533ac
DE
88822014-05-20 Doug Evans <dje@google.com>
8883
8884 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8885 instead of get_current_arch.
8886
936d2992
PA
88872014-05-20 Pedro Alves <palves@redhat.com>
8888
8889 * NEWS: Mention that compare-sections now works with all targets.
8890
8891 * remote.c (PACKET_qCRC): New enum value.
8892 (remote_verify_memory): Don't send qCRC if the target has no
8893 execution. Use packet_support/packet_ok. If the target doesn't
8894 support the qCRC packet, fallback to a deep memory copy.
8895 (compare_sections_command): Say "target image" instead of "remote
8896 executable".
8897 (_initialize_remote): Add PACKET_qCRC to the list of config
8898 packets that have no associated command. Extend comment.
8899 * target.c (simple_verify_memory, default_verify_memory): New
8900 function.
8901 * target.h (struct target_ops) <to_verify_memory>: Default to
8902 default_verify_memory.
8903 (simple_verify_memory): New declaration.
8904 * target-delegates.c: Regenerate.
8905
e59fa00f
MM
89062014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8907
8908 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8909
f2205de0
HZ
89102014-05-20 Hui Zhu <hui@codesourcery.com>
8911 Yao Qi <yao@codesourcery.com>
8912
8913 PR backtrace/16558
8914 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8915 and change address of sp and pc.
8916
c4e54771
TT
89172014-05-19 Tom Tromey <tromey@redhat.com>
8918
8919 * gdbtypes.c (rank_function): Use XNEWVEC.
8920 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8921
73051182
DE
89222014-05-19 Doug Evans <dje@google.com>
8923
8924 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8925 build_type_unit_groups and moved closer to only caller. Remove
8926 arguments. All references updated. Remove outdated .gdb_index
8927 comment.
8928 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8929 build_type_psymtabs_1.
8930
8832e7e3
DE
89312014-05-19 Doug Evans <dje@google.com>
8932
8933 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8934 n_type_unit_groups, all_type_unit_groups. All uses removed.
8935 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8936 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8937 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8938 (add_type_unit_group_to_table): Delete.
8939
cd8ae15e
DE
89402014-05-19 Doug Evans <dje@google.com>
8941
8942 * eval.c (evaluate_subexp_standard): Add some comments.
8943
08f4850b
DE
89442014-05-17 Doug Evans <xdje42@gmail.com>
8945
8946 * progspace.c (remove_program_space): Delete, unused.
8947 * progspace.h (remove_program_space): Ditto.
8948
bed8455c
DE
89492014-05-17 Doug Evans <xdje42@gmail.com>
8950
8951 * inferior.c (prune_inferiors): Fix comment.
8952 (remove_inferior_command): Call prune_program_spaces.
8953
8d551b02
DE
89542014-05-16 Doug Evans <dje@google.com>
8955
8956 New command line option -D.
8957 * NEWS: Mention it.
8958 * main.c (set_gdb_data_directory): New function.
8959 (captured_main): Recognize -D. Flag error for --data-directory "".
8960 Call set_gdb_data_directory.
8961 (print_gdb_help): Print --data-directory, -D.
8962 * main.h (set_gdb_data_directory): Declare.
8963 * top.c (staged_gdb_datadir): New static global.
8964 (set_gdb_datadir): Call set_gdb_data_directory
8965 (show_gdb_datadir): New function.
8966 (init_main): Update init of data-directory parameter.
8967
18848e28
GF
89682014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8969
8970 Import the "dirfd" gnulib module.
8971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8972 * gnulib/aclocal.m4: Update.
8973 * gnulib/config.in: Update.
8974 * gnulib/configure: Update.
8975 * gnulib/import/Makefile.am: Update.
8976 * gnulib/import/Makefile.in: Update.
8977 * gnulib/import/dirfd.c: New.
8978 * gnulib/import/m4/dirfd.m4: New.
8979 * gnulib/import/m4/gnulib-cache.m4: Update.
8980 * gnulib/import/m4/gnulib-comp.m4: Update.
8981
95c64f92
YQ
89822014-05-16 Pierre Muller <muller@sourceware.org>
8983 Yao Qi <yao@codesourcery.com>
8984
8985 * valprint.c (print_wchar): Move the code on checking whether
8986 W is a printable wide char to the default branch of switch
8987 statement below. Call wchar_printable instead of gdb_iswprint.
8988
cac395ea
TM
89892014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8990
19679eca 8991 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8992 ldr.w and ldrd instructions.
8993
83655187
DE
89942014-05-15 Doug Evans <dje@google.com>
8995
8996 * dwarf2read.c (read_structure_type): Delete outdated comments.
8997
dd756689
TT
89982014-05-14 Tom Tromey <tromey@redhat.com>
8999
9000 * macrocmd.c (print_macro_definition): Reindent.
9001
75ddda77
DE
90022014-05-13 Doug Evans <xdje42@gmail.com>
9003
9004 * python/py-cmd.c (cmdpy_completer): Add comment.
9005 (completers): Make const.
9006
b0f16a3e
SM
90072014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9008
9009 * infrun.c (resume): Remove should_resume (unused). Move up
9010 declaration of resume_ptid.
9011
033c3379
TT
90122014-05-13 Tom Tromey <tromey@redhat.com>
9013
9014 * language.h (unop_type_check): Remove.
9015 (binop_type_check): Don't declare.
9016
9b44a3a5
AA
90172014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9018
9019 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9020 call to regcache_raw_collect.
9021
303a33fa
SM
90222014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9023
9024 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9025 mi_console->quote as the quoting character.
9026
196100a0
SM
90272014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9028
9029 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9030
f989a1c8
TT
90312014-04-29 Tom Tromey <tromey@redhat.com>
9032
9033 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9034 "show debug varobj".
9035
9404b58f
KM
90362014-05-07 Kyle McMartin <kyle@redhat.com>
9037
9038 Pushed by Joel Brobecker <brobecker@adacore.com>.
9039 * aarch64-tdep.c (aarch64_software_single_step): New function.
9040 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9041 with aarch64_software_single_step.
9042
5e49ba57
JB
90432014-05-05 Joel Brobecker <brobecker@adacore.com>
9044
9045 GDB 7.7.1 released.
9046
c888a17d
KS
90472014-05-05 Keith Seitz <keiths@redhat.com>
9048
9049 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9050 variable or history value is successfully parsed.
9051
290a839c
YQ
90522014-05-05 Yao Qi <yao@codesourcery.com>
9053 Pedro Alves <palves@redhat.com>
9054
9055 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9056 address of blocks that intersects the requested range. Trim
9057 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9058 sections.
9059 * ctf.c (ctf_xfer_partial): Likewise.
9060
91256dc2
YQ
90612014-05-05 Yao Qi <yao@codesourcery.com>
9062
9063 * printcmd.c (display_command): Remove the check to
9064 target_has_execution.
9065
07284463
MK
90662014-05-03 Mark Kettenis <kettenis@gnu.org>
9067
9068 * ppcobsd-nat.c: Include "obsd-nat.h".
9069 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9070 add_target.
9071 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9072
30a1e6cc
SDJ
90732014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9074
9075 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9076 and 16-bit signed and unsigned arguments. Update comment.
9077 (stap_parse_probe_arguments): Extend code to handle such
9078 arguments. Use warning instead of complaint to notify about
9079 unrecognized bitness.
9080
f33da99a
SDJ
90812014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9082
9083 PR breakpoints/16889
9084 * stap-probe.c (stap_parse_probe_arguments): Simplify
9085 check for non-prefixed probes (i.e., probes whose
9086 arguments do not start with "N@"). Always set the
9087 argument type to a sane value.
9088
95cf3b38
DT
90892014-05-01 David Taylor <dtaylor@emc.com>
9090
9091 * remote.c (compare_sections_command): Add -r option to compare
9092 all loadable read-only sections.
9093
1cfdf534
SC
90942014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9095
9096 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9097 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9098 Update all callers.
9099 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9100 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9101 Remove unused CORE_ADDR argument. Update all callers.
9102
ca4f7f8b
PA
91032014-04-29 Pedro Alves <palves@redhat.com>
9104
9105 * remote.c (struct packet_config) <detect>: Extend comment.
9106 (add_packet_config_cmd): Don't set the config's detect or support
9107 fields here.
9108 (init_all_packet_configs): Also initialize the config's 'detect'
9109 field.
9110 (reset_all_packet_configs_support): New function.
9111 (remote_open_1): Call reset_all_packet_configs_support instead of
9112 init_all_packet_configs.
9113 (_initialize_remote): Initialize all packet configs. Assert that
9114 all packets have an associated command, except a few known
9115 outliers.
9116
11c1ba78
JB
91172014-04-28 Joel Brobecker <brobecker@adacore.com>
9118
9119 * dwarf2read.c (read_subrange_type): Handle dynamic
9120 DW_AT_lower_bound attributes.
9121
8739bc53
JB
91222014-04-28 Joel Brobecker <brobecker@adacore.com>
9123
9124 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9125 dynamic bounds before computing its upper bound.
9126 (ada_discrete_type_low_bound): Same as above with the lower bound.
9127
6f8a3220
JB
91282014-04-28 Joel Brobecker <brobecker@adacore.com>
9129
9130 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9131 range types. Adjust the array handling implementation to
9132 take advantage of this change.
9133 (resolve_dynamic_range): New function, mostly extracted from
9134 resolve_dynamic_bounds.
9135 (resolve_dynamic_array): New function, mostly extracted from
9136 resolve_dynamic_bounds.
9137 (resolve_dynamic_bounds): Delete.
9138 (resolve_dynamic_type): Reimplement. Add handling of
9139 TYPE_CODE_RANGE types.
9140
4d072ce4
JB
91412014-04-28 Joel Brobecker <brobecker@adacore.com>
9142
9143 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9144 handling of parallel ___XA types.
9145
52865325
JB
91462014-04-28 Joel Brobecker <brobecker@adacore.com>
9147
9148 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9149 unnecessary second call to static_unwrap_type.
9150
433e77fa
HZ
91512014-04-27 Hui Zhu <hui@codesourcery.com>
9152
9153 * stack.c (print_frame_info): Call do_gdb_disassembly with
9154 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9155
b51a69ee
DE
91562014-04-26 Doug Evans <xdje42@gmail.com>
9157
9158 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9159
7ae1a6a6
PA
91602014-04-25 Pedro Alves <palves@redhat.com>
9161
9162 PR server/16255
9163 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9164 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9165 and newline from built string.
9166 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9167 (linux_ptrace_attach_fail_reason): ... this.
9168 * linux-nat.c (linux_nat_attach): Adjust to use
9169 linux_ptrace_attach_fail_reason.
9170
4082afcc
PA
91712014-04-25 Pedro Alves <palves@redhat.com>
9172
9173 * remote.c (struct remote_state): Remove multi_process_aware,
9174 non_stop_aware, cond_tracepoints, cond_breakpoints,
9175 breakpoint_commands, fast_tracepoints, static_tracepoints,
9176 install_in_trace, disconnected_tracing,
9177 enable_disable_tracepoints, string_tracing, and
9178 augmented_libraries_svr4_read fields.
9179 (remote_multi_process_p): Move further below in the file.
9180 (struct packet_config): Add comments.
9181 (update_packet_config): Delete function.
9182 (show_packet_config_cmd): Use packet_config_support.
9183 (add_packet_config_cmd): Use NULL as set callback.
9184 (packet_ok): "set remote foo-packet"-style commands no longer
9185 change config->supported -- adjust.
9186 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9187 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9188 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9189 (PACKET_QNonStop, PACKET_multiprocess_feature)
9190 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9191 (PACKET_DisconnectedTracing_feature)
9192 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9193 (set_remote_protocol_packet_cmd): Delete function.
9194 (packet_config_support, packet_support): New functions.
9195 (set_remote_protocol_Z_packet_cmd): Don't call
9196 update_packet_config.
9197 (remote_query_attached, remote_pass_signals)
9198 (remote_program_signals, remote_threads_info)
9199 (remote_threads_extra_info, remote_start_remote): Use
9200 packet_support.
9201 (remote_start_remote): Use packet_config_support and
9202 packet_support.
9203 (init_all_packet_configs): Set all packets to unknown support,
9204 instead of calling update_packet_config.
9205 (remote_check_symbols): Use packet_support.
9206 (remote_supported_packet): Unconditionally set the packet config's
9207 support status.
9208 (remote_multi_process_feature, remote_non_stop_feature)
9209 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9210 (remote_breakpoint_commands_feature)
9211 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9212 (remote_install_in_trace_feature)
9213 (remote_disconnected_tracing_feature)
9214 (remote_enable_disable_tracepoint_feature)
9215 (remote_string_tracing_feature)
9216 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9217 (remote_protocol_features): Adjust to use remote_supported_packet
9218 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9219 "ConditionalTracepoints", "ConditionalBreakpoints",
9220 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9221 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9222 "EnableDisableTracepoints", and "tracenz".
9223 (remote_query_supported): Use packet_support.
9224 (remote_open_1): Adjust.
9225 (extended_remote_attach_1): Use packet_support. Switch on the
9226 result of packet_ok instead of checking whether the packet ended
9227 up disabled.
9228 (remote_vcont_resume): Use packet_support.
9229 (remote_resume, remote_stop_ns, fetch_register_using_p)
9230 (remote_prepare_to_store, store_register_using_P)
9231 (check_binary_download, remote_write_bytes): Use packet_support.
9232 (remote_vkill): Use packet_support. Switch on the result of
9233 packet_ok instead of checking whether the packet ended up
9234 disabled.
9235 (extended_remote_supports_disable_randomization): Use
9236 packet_support.
9237 (extended_remote_run): Switch on the result of packet_ok instead
9238 of checking whether the packet ended up disabled.
9239 (remote_insert_breakpoint, remote_remove_breakpoint)
9240 (remote_insert_watchpoint, remote_remove_watchpoint)
9241 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9242 packet_support.
9243 (remote_search_memory): Use packet_config_support.
9244 (remote_get_thread_local_address, remote_get_tib_address)
9245 (remote_hostio_send_command, remote_can_execute_reverse): Use
9246 packet_support.
9247 (remote_supports_cond_tracepoints)
9248 (remote_supports_cond_breakpoints)
9249 (remote_supports_fast_tracepoints)
9250 (remote_supports_static_tracepoints)
9251 (remote_supports_install_in_trace)
9252 (remote_supports_enable_disable_tracepoint)
9253 (remote_supports_string_tracing)
9254 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9255 the packet config says the feature is enabled or disabled.
9256 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9257 (remote_get_trace_status): Use packet_support.
9258 (remote_set_disconnected_tracing): Adjust to check whether the
9259 feature is enabled with packet_support.
9260 (remote_set_trace_buffer_size, remote_use_agent)
9261 (remote_can_use_agent, remote_supports_btrace): Use
9262 packet_support.
9263 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9264 Use packet_config_support.
9265 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9266 the packet config says the feature is enabled or disabled.
9267 (set_range_stepping): Use packet_support.
9268
bdb52a22
TT
92692014-04-25 Tom Tromey <tromey@redhat.com>
9270
9271 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9272 argument.
9273
e9475ead
SA
92742014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9275
9276 * NEWS: Mention support for C99 variable length arrays.
9277
82eacd52
JB
92782014-04-24 Joel Brobecker <brobecker@adacore.com>
9279
9280 * ada-lang.c (standard_exc): Expand introductory comment.
9281
01f9f808
MS
92822014-04-24 Michael Sturm <michael.sturm@mintel.com>
9283 Walfred Tedeschi <walfred.tedeschi@intel.com>
9284
9285 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9286 AVX512 registers.
9287 (amd64_linux_read_description): Add code to handle AVX512 xstate
9288 mask and return respective tdesc.
9289 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9290 and features/i386/x32-avx512-linux.c.
9291 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9292 (amd64_linux_core_read_description): Add code to handle AVX512
9293 xstate mask and return respective tdesc.
9294 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9295 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9296 calculation.
9297 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9298 (tdesc_amd64_avx512_linux): New prototype.
9299 (tdesc_x32_avx512_linux): Likewise.
9300 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9301 features/i386/x32-avx512.c.
9302 (amd64_ymm_avx512_names): New register names for pseudo
9303 registers YMM16-31.
9304 (amd64_ymmh_avx512_names): New register names for raw registers
9305 YMMH16-31.
9306 (amd64_k_names): New register names for K registers.
9307 (amd64_zmmh_names): New register names for ZMM raw registers.
9308 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9309 (amd64_xmm_avx512_names): New register names for XMM16-31
9310 registers.
9311 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9312 registers.
9313 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9314 if feature is present.
9315 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9316 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9317 (AMD64_NUM_REGS): Adjust to new number of registers.
9318 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9319 registers supplied via XSTATE by AVX512 registers.
9320 (i386_linux_read_description): Add case for AVX512.
9321 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9322 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9323 (i386_linux_core_read_description): Add case for AVX512.
9324 (i386_linux_init_abi): Install supported register note section
9325 for AVX512.
9326 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9327 AVX512.
9328 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9329 registers to be number of zmm7h + 1.
9330 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9331 * i386-tdep.c: Include features/i386/i386-avx512.c.
9332 (i386_zmm_names): Add ZMM pseudo register names array.
9333 (i386_zmmh_names): Add ZMM raw register names array.
9334 (i386_k_names): Add K raw register names array.
9335 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9336 registers. AVX512 has 16 more ZMM registers than there are YMM
9337 registers.
9338 (i386_zmmh_regnum_p): Add function to look up register number of
9339 ZMM raw registers.
9340 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9341 (i386_k_regnum_p): Likewise for K raw registers.
9342 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9343 registers added by AVX512.
9344 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9345 registers added by AVX512.
9346 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9347 added by AVX512.
9348 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9349 (i386_pseudo_register_name): Add ZMM pseudo registers.
9350 (i386_zmm_type): Construct and return vector registers type for ZMM
9351 registers.
9352 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9353 ZMM0-31 pseudo registers and K registers.
9354 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9355 and YMM16-31 registers from register cache.
9356 (i386_pseudo_register_write): Add code to write K, ZMM and
9357 YMM16-31 registers.
9358 (i386_register_reggroup_p): Add code to include/exclude AVX512
9359 registers in/from respective register groups.
9360 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9361 registers if feature is present in xcr0.
9362 (i386_gdbarch_init): Add code to initialize AVX512 feature
9363 variables in tdep structure, wire in pseudo registers and call
9364 initialize_tdesc_i386_avx512.
9365 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9366 variables.
9367 (i386_regnum): Add AVX512 registers.
9368 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9369 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9370 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9371 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9372 512 bits wide.
9373 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9374 (i386_ymm_avx512_regnum_p): Likewise.
9375 (i386_k_regnum_p): Likewise.
9376 (i386_zmm_regnum_p): Likewise.
9377 (i386_zmmh_regnum_p): Likewise.
9378 * i387-tdep.c : Update year in copyright notice.
9379 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9380 XSAVE buffer.
9381 (XSAVE_YMM_AVX512_ADDR): New macro.
9382 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9383 XSAVE buffer.
9384 (XSAVE_XMM_AVX512_ADDR): New macro.
9385 (xsave_avx512_k_offset): New table for K register offsets in
9386 XSAVE buffer.
9387 (XSAVE_AVX512_K_ADDR): New macro.
9388 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9389 in XSAVE buffer.
9390 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9391 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9392 buffer.
9393 (i387_collect_xsave): Add code to collect AVX512 registers from
9394 XSAVE buffer.
9395 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9396 of XMM16-31 registers.
9397 (I387_NUM_K_REGS): New define for number of K registers.
9398 (I387_K0_REGNUM): New define for K0 register number.
9399 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9400 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9401 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9402 registers.
9403 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9404 (I387_XMM16_REGNUM): New define for XMM16 register number.
9405 (I387_YMM0_REGNUM): New define for YMM0 register number.
9406 (I387_KEND_REGNUM): New define for last K register number.
9407 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9408 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9409 number.
9410 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9411 number.
9412 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9413 size.
9414 * features/Makefile: Add AVX512 related files.
9415 * features/i386/32bit-avx512.xml: New file.
9416 * features/i386/64bit-avx512.xml: Likewise.
9417 * features/i386/amd64-avx512-linux.c: Likewise.
9418 * features/i386/amd64-avx512-linux.xml: Likewise.
9419 * features/i386/amd64-avx512.c: Likewise.
9420 * features/i386/amd64-avx512.xml: Likewise.
9421 * features/i386/i386-avx512-linux.c: Likewise.
9422 * features/i386/i386-avx512-linux.xml: Likewise.
9423 * features/i386/i386-avx512.c: Likewise.
9424 * features/i386/i386-avx512.xml: Likewise.
9425 * features/i386/x32-avx512-linux.c: Likewise.
9426 * features/i386/x32-avx512-linux.xml: Likewise.
9427 * features/i386/x32-avx512.c: Likewise.
9428 * features/i386/x32-avx512.xml: Likewise.
9429 * regformats/i386/amd64-avx512-linux.dat: New file.
9430 * regformats/i386/amd64-avx512.dat: Likewise.
9431 * regformats/i386/i386-avx512-linux.dat: Likewise.
9432 * regformats/i386/i386-avx512.dat: Likewise.
9433 * regformats/i386/x32-avx512-linux.dat: Likewise.
9434 * regformats/i386/x32-avx512.dat: Likewise.
9435 * NEWS: Add note about new support for AVX512.
9436
9437
08351840
PA
94382014-04-23 Pedro Alves <palves@redhat.com>
9439
9440 * breakpoint.c (insert_bp_location): Tolerate errors if the
9441 breakpoint is set in a user-loaded objfile.
9442 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9443 location is marked shlib_disabled. If the breakpoint is set in a
9444 user-loaded objfile is a GDB-side memory breakpoint, validate it
9445 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9446 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9447 flag.
9448 * mem-break.c (memory_validate_breakpoint): New function.
9449 * objfiles.c (userloaded_objfile_contains_address_p): New
9450 function.
9451 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9452 * target.h (memory_validate_breakpoint): New declaration.
9453
076855f9
PA
94542014-04-23 Pedro Alves <palves@redhat.com>
9455
9456 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9457 the breakpoint is set in a shared library, only suppress
9458 errors for software breakpoints, not hardware breakpoints.
9459
483805cf
PA
94602014-04-22 Pedro Alves <palves@redhat.com>
9461
9462 * infrun.c (schedlock_applies): New function, factored out from
9463 find_thread_needs_step_over.
9464 (find_thread_needs_step_over): Use it.
9465 (switch_back_to_stepped_thread): Always clear trap_expected if the
9466 step over is finished. Return early if scheduler locking applies.
9467 Look for the stepping thread and a potential step-over thread with
9468 a single loop.
9469 (currently_stepping_or_nexting_callback): Delete.
9470
a75fef0e
NC
94712014-04-22 Nick Clifton <nickc@redhat.com>
9472
9473 * NEWS: Mention that ARM sim now supports tracing.
9474
48b6e87e
YQ
94752014-04-22 Yao Qi <yao@codesourcery.com>
9476
9477 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9478 to ...
9479 * tracefile.c (tracefile_fetch_registers): ... it. New
9480 function.
9481 * tracefile.h (tracefile_fetch_registers): Declare.
9482 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9483 tracefile_fetch_registers.
9484
17617f2d
EZ
94852014-04-19 Eli Zaretskii <eliz@gnu.org>
9486
9487 PR gdb/14018
9488 * windows-nat.c (thread_rec): Don't display a warning when
9489 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9490 fails for any reason, set th->suspended to -1, so that we don't
9491 try to resume such a thread. Also, don't return NULL in these
9492 cases, to avoid completely ruin the session due to "PC register is
9493 not available" error.
9494 (do_windows_fetch_inferior_registers): Check errors in
9495 GetThreadContext call.
9496 (windows_continue): Accept an additional argument KILLED; if not
9497 zero, ignore errors in the SetThreadContext call, since the
9498 inferior was killed and is shutting down.
9499 (windows_resume, get_windows_debug_event)
9500 (windows_create_inferior, windows_mourn_inferior)
9501 (windows_kill_inferior): All callers of windows_continue changed
9502 to adjust to its new calling sequence.
9503
5723a6fd
YQ
95042014-04-19 Yao Qi <yao@codesourcery.com>
9505
9506 * ctf.c (ctf_open): Call post_create_inferior.
9507
614d5099
YQ
95082014-04-19 Yao Qi <yao@codesourcery.com>
9509
9510 * ctf.c (handle_id): New static variable.
9511 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9512 value. Get the declaration of event "register" and get length
9513 of field "contents".
9514
dac3e710
YQ
95152014-04-19 Yao Qi <yao@codesourcery.com>
9516
9517 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9518
2bca57ba
SC
95192014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9520
9521 * valops.c (oload_method_static): Remove unnecessary argument
9522 METHOD. Update all callers.
9523
51d48146
PA
95242014-04-18 Pedro alves <palves@redhat.com>
9525 Tom Tromey <tromey@redhat.com>
9526
9527 PR backtrace/15558
9528 * frame.c (get_prev_frame_1): Rename to ...
9529 (get_prev_frame_always): ... this, and make extern. Adjust.
9530 (skip_artificial_frames): Use get_prev_frame_always.
9531 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9532 (get_frame_unwind_stop_reason): Adjust to rename.
9533 * frame.h (get_prev_frame_always): Declare.
9534 * inline-frame.c: Include frame.h.
9535 (inline_frame_this_id): Use get_prev_frame_always.
9536
1bdad2e0
TG
95372014-04-18 Tristan Gingold <gingold@adacore.com>
9538
9539 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9540 code by using bfd_mach_o_get_base_address.
9541
7ce16bd4
UW
95422014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9543
9544 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9545 (spu_ax_pseudo_register_collect): New function.
9546 (spu_ax_pseudo_register_push_stack): Likewise.
9547 (spu_dwarf_reg_to_regnum): Likewise.
9548 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9549
2ed3c037
UW
95502014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9551
9552 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9553 Replace FRAME argument with FRAME_ID.
9554 * gdbarch.c, gdbarch.h: Regenerate.
9555 * findvar.c (default_value_from_register): Add GDBARCH argument;
9556 replace FRAME by FRAME_ID. No longer call get_frame_id.
9557 (value_from_register): Update call to gdbarch_value_from_register.
9558 * value.h (default_value_from_register): Update prototype.
9559 * s390-linux-tdep.c (s390_value_from_register): Update interface
9560 and call to default_value_from_register.
9561 * spu-tdep.c (spu_value_from_register): Likewise.
9562
9563 * findvar.c (address_from_register): Remove TYPE argument.
9564 Do not call value_from_register; use gdbarch_value_from_register
9565 with null_frame_id instead.
9566 * value.h (address_from_register): Update prototype.
9567 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9568 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9569 address_from_register interface change.
9570
71e50e83
YQ
95712014-04-17 Yao Qi <yao@codesourcery.com>
9572
9573 * gdbtypes.h: Update comments to link to types and macros'
9574 definitions.
9575
7a23c549
SC
95762014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9577
9578 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9579
22869d73
KS
95802014-04-16 Keith Seitz <keiths@redhat.com>
9581
9582 PR gdb/15827
9583 * dwarf2read.c (skip_one_die): Check that all relative-offset
9584 sibling DIEs fall within range of the current reader's buffer.
9585 (read_partial_die): Likewise.
9586
c4f87ca6
KS
95872014-04-16 Keith Seitz <keiths@redhat.com>
9588
9589 PR c++/16597
9590 * cp-namespace.c (lookup_symbol_file): If the type name of
9591 `this' is NULL, return immediately.
9592
b50c8614
KS
95932014-04-14 Keith Seitz <keiths@redhat.com>
9594
9595 PR c++/16253
9596 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9597 from symbol_matches_domain in symtab.c. All local callers
9598 of symbol_matches_domain updated.
9599 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9600 search STRUCT_DOMAIN.
9601 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9602 independently. standard_lookup will do that automatically.
9603 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9604 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9605 (cp_lookup_symbol_in_namespace): Likewise.
9606 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9607 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9608 may return a STRUCT_DOMAIN match.
9609 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9610 * cp-support.c: Include language.h.
9611 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9612 VAR_DOMAIN.
9613 * psymtab.c (match_partial_symbol): Compare the requested
9614 domain with the symbol's domain directly.
9615 (lookup_partial_symbol): Likewise.
9616 * symtab.c (lookup_symbol_in_language): Explain when/why
9617 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9619 appropriate languages.
9620 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9621 and moved to ada-lang.c
9622 (lookup_block_symbol): Explain that this function only returns
9623 symbol matching the requested DOMAIN.
9624 Compare the requested domain with the symbol's domain directly.
9625 (iterate_over_symbols): Compare the requested domain with the
9626 symbol's domain directly.
9627 * symtab.h (symbol_matches_domain): Remove.
9628
3d567982
TT
96292014-04-14 Tom Tromey <tromey@redhat.com>
9630
9631 PR c++/15246:
9632 * c-exp.y (type_aggregate_p): New function.
9633 (qualified_name, classify_inner_name): Use it.
9634 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9635 and TYPE_TARGET_TYPE of an enum type.
9636 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9637 an enum type.
9638 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9639 handle TYPE_DECLARED_CLASS.
9640 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9641 types.
9642 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9643 * valops.c (enum_constant_from_type): New function.
9644 (value_aggregate_elt): Use it.
9645 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9646 TYPE_CODE_ENUM.
9647
c848d642
TT
96482014-04-14 Tom Tromey <tromey@redhat.com>
9649
9650 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9651 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9652 const.
9653 * value.h (value_aggregate_elt): Update.
9654
0626fc76
TT
96552014-04-14 Tom Tromey <tromey@redhat.com>
9656
9657 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9658
5ecaaa66
SA
96592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9660
9661 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9662 (evaluate_subexp_standard): Pass noside argument.
9663 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9664 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9665 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9666 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9667 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9668
1612e0c0
SA
96692014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9670
9671 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9672 points to a constant blob.
9673
c451ebe5
SA
96742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9675
9676 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9677 property and store it as the high bound and flag the range accordingly.
9678 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9679 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9680 * gdbtypes.h (enum range_flags): New enum.
9681 (struct range_bounds): Add flags member.
9682
1d42e4c4
SA
96832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9684
9685 * c-typeprint.c (c_type_print_varspec_suffix): Added
9686 check for not yet resolved high bound. If unresolved, print
9687 "variable length" string to the console instead of random
9688 length.
9689
9f1f738a
SA
96902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9691
9692 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9693 value.
9694 (ada_template_to_fixed_record_type_1): Likewise.
9695 (ada_to_fixed_type_1): Likewise.
9696 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9697 (cp_print_value): Likewise.
9698 * d-valprint.c (dynamic_array_type): Likewise.
9699 * findvar.c (address_of_variable): Likewise.
9700 * jv-valprint.c (java_value_print): Likewise.
9701 * valops.c (value_ind): Likewise.
9702 * value.c (coerce_ref): Likewise.
9703
3c8452d4
SA
97042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9705
9706 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9707 value and retrieve the dynamic type size.
9708
4ad88275
SA
97092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9710
9711 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9712 passed to sizeof is dynamic evaluate the argument to compute the length.
9713
80180f79
SA
97142014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9715 Joel Brobecker <brobecker@adacore.com>
9716
9717 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9718 (dwarf2_evaluate_property): New function.
9719 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9720 * dwarf2read.c (attr_to_dynamic_prop): New function.
9721 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9722 attribute.
9723 * gdbtypes.c: Include dwarf2loc.h.
9724 (is_dynamic_type): New function.
9725 (resolve_dynamic_type): New function.
9726 (resolve_dynamic_bounds): New function.
9727 (get_type_length): New function.
9728 (check_typedef): Use get_type_length to compute type length.
9729 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9730 (TYPE_LOW_BOUND_KIND): New macro.
9731 (is_dynamic_type): New function prototype.
9732 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9733 to resolve dynamic properties of the type. Update comment.
9734 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9735
a1556843
RH
97362014-04-14 Richard Henderson <rth@redhat.com>
9737
9738 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9739
0be03e84
DE
97402014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9741 Doug Evans <xdje42@gmail.com>
9742
9743 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9744 dereference TYPE_CODE_REF values.
9745
6b662e19
JB
97462014-04-11 Joel Brobecker <brobecker@adacore.com>
9747
9748 Revert the following changes due to regressions:
9749
9750 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9751 (dwarf2_evaluate_property): New function.
9752 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9753 * dwarf2read.c (attr_to_dynamic_prop): New function.
9754 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9755 attribute.
9756 * gdbtypes.c: Include dwarf2loc.h.
9757 (is_dynamic_type): New function.
9758 (resolve_dynamic_type): New function.
9759 (resolve_dynamic_bounds): New function.
9760 (get_type_length): New function.
9761 (check_typedef): Use get_type_length to compute type length.
9762 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9763 (TYPE_LOW_BOUND_KIND): New macro.
9764 (is_dynamic_type): New function prototype.
9765 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9766 to resolve dynamic properties of the type. Update comment.
9767 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9768
9769 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9770 passed to sizeof is dynamic evaluate the argument to compute the length.
9771
9772 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9773 value and retrieve the dynamic type size.
9774
9775 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9776 (ada_template_to_fixed_record_type_1): Likewise.
9777 (ada_to_fixed_type_1): Likewise.
9778 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9779 (cp_print_value): Likewise.
9780 * d-valprint.c (dynamic_array_type): Likewise.
9781 * eval.c (evaluate_subexp_with_coercion): Likewise.
9782 * findvar.c (address_of_variable): Likewise.
9783 * jv-valprint.c (java_value_print): Likewise.
9784 * valops.c (value_ind): Likewise.
9785 * value.c (coerce_ref): Likewise.
9786
9787 * c-typeprint.c (c_type_print_varspec_suffix): Added
9788 check for not yet resolved high bound. If unresolved, print
9789 "variable length" string to the console instead of random
9790 length.
9791
9792 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9793 property and store it as the high bound and flag the range accordingly.
9794 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9795 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9796 * gdbtypes.h (enum range_flags): New enum.
9797 (struct range_bounds): Add flags member.
9798
9799 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9800 points to a constant blob.
9801
9802 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9803 (evaluate_subexp_standard): Pass noside argument.
9804 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9805 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9806 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9807 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9808 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9809
245a5f0b
KS
98102014-04-11 Keith Seitz <keiths@redhat.com>
9811
9812 PR c++/16675
9813 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9814 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9815 reference types.
9816
3bce8237
SA
98172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9818
9819 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9820 (evaluate_subexp_standard): Pass noside argument.
9821 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9822 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9823 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9824 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9825 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9826
92b09522
SA
98272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9828
9829 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9830 points to a constant blob.
9831
e1969afb
SA
98322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9833
9834 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9835 property and store it as the high bound and flag the range accordingly.
9836 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9837 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9838 * gdbtypes.h (enum range_flags): New enum.
9839 (struct range_bounds): Add flags member.
9840
b86138fb
SA
98412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9842
9843 * c-typeprint.c (c_type_print_varspec_suffix): Added
9844 check for not yet resolved high bound. If unresolved, print
9845 "variable length" string to the console instead of random
9846 length.
9847
bcd629a4
SA
98482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9849
9850 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9851 (ada_template_to_fixed_record_type_1): Likewise.
9852 (ada_to_fixed_type_1): Likewise.
9853 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9854 (cp_print_value): Likewise.
9855 * d-valprint.c (dynamic_array_type): Likewise.
9856 * eval.c (evaluate_subexp_with_coercion): Likewise.
9857 * findvar.c (address_of_variable): Likewise.
9858 * jv-valprint.c (java_value_print): Likewise.
9859 * valops.c (value_ind): Likewise.
9860 * value.c (coerce_ref): Likewise.
9861
04b19544
SA
98622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9863
9864 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9865 value and retrieve the dynamic type size.
9866
26cb189f
SA
98672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9868
9869 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9870 passed to sizeof is dynamic evaluate the argument to compute the length.
9871
37c1ab67
SA
98722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9873
9874 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9875 (dwarf2_evaluate_property): New function.
9876 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9877 * dwarf2read.c (attr_to_dynamic_prop): New function.
9878 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9879 attribute.
9880 * gdbtypes.c: Include dwarf2loc.h.
9881 (is_dynamic_type): New function.
9882 (resolve_dynamic_type): New function.
9883 (resolve_dynamic_bounds): New function.
9884 (get_type_length): New function.
9885 (check_typedef): Use get_type_length to compute type length.
9886 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9887 (TYPE_LOW_BOUND_KIND): New macro.
9888 (is_dynamic_type): New function prototype.
9889 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9890 to resolve dynamic properties of the type. Update comment.
9891 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9892
729efb13
SA
98932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9894
9895 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9896 declaring high/low bounds and change uses accordingly. Call
9897 create_range_type instead of create_static_range_type.
9898 * gdbtypes.c (create_range_type): New function.
9899 (create_range_type): Convert bounds into struct bound_prop and pass
9900 them to create_range_type.
9901 * gdbtypes.h (struct bound_prop): New struct.
9902 (create_range_type): New function prototype.
9903 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9904 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9905 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9906 part of the bound.
9907 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9908
0c9c3474
SA
99092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9910
9911 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9912 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9913 * ada-lang.c: All uses of create_range_type updated.
9914 * coffread.c: All uses of create_range_type updated.
9915 * dwarf2read.c: All uses of create_range_type updated.
9916 * f-exp.y: All uses of create_range_type updated.
9917 * m2-valprint.c: All uses of create_range_type updated.
9918 * mdebugread.c: All uses of create_range_type updated.
9919 * stabsread.c: All uses of create_range_type updated.
9920 * valops.c: All uses of create_range_type updated.
9921 * valprint.c: All uses of create_range_type updated.
9922
9d497a19
PA
99232014-04-10 Pedro Alves <palves@redhat.com>
9924
9925 * breakpoint.c (single_step_breakpoints)
9926 (single_step_gdbarch): Move up in the file.
9927 (one_breakpoint_xfer_memory): New function, factored out from ...
9928 (breakpoint_xfer_memory): ... here. Also process single-step
9929 breakpoints.
9930
15a9128a
TG
99312014-04-09 Tristan Gingold <gingold@adacore.com>
9932
9933 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9934 comments.
9935 (darwin_decode_exception_message): Free port only after use.
9936
9c97a070
PL
99372014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9938
9939 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9940 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9941 when setting the size of call_length.
9942
7af389b8
SC
99432014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9944
9945 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9946 dereference TYPE_CODE_REF values.
9947
86ad98c3
JB
99482014-04-07 Joel Brobecker <brobecker@adacore.com>
9949
9950 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9951 end of warning message.
9952
b0aeadb3
DE
99532014-04-03 Doug Evans <dje@google.com>
9954
9955 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9956 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9957
5979d6b6
AM
99582014-04-02 Alan Modra <amodra@gmail.com>
9959
9960 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9961 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9962 (struct symbol_file_add_from_memory_args): Add size field.
9963 (find_vdso_size): New function.
9964 (add_vsyscall_page): Attempt to find vdso size.
9965
0d60c288
DE
99662014-04-01 Doug Evans <dje@google.com>
9967
9968 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9969
a41f2563
TG
99702014-04-01 Tristan Gingold <gingold@adacore.com>
9971
9972 * darwin-nat.c (darwin_encode_reply): Add prototype.
9973 (darwin_decode_exception_message): Reply to unknown inferiors.
9974 (darwin_decode_message): Handle message by id. Ignore message
9975 to unknown inferior.
9976 (darwin_wait): Discard unknown messages, add debug trace.
9977
11a865c8
DE
99782014-03-31 Doug Evans <dje@google.com>
9979
9980 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9981 comp_dir_string.
9982
770e7fc7
DE
99832014-03-31 Doug Evans <dje@google.com>
9984
9985 New option "set print symbol-loading".
9986 * NEWS: Mention it.
9987 * solib.c (solib_read_symbols): Only print symbol loading messages
9988 if requested.
9989 (solib_add): If symbol loading is in "brief" mode, notify user
9990 symbols are being loaded.
9991 (reload_shared_libraries_1): Ditto.
9992 * symfile.c (print_symbol_loading_off): New static global.
9993 (print_symbol_loading_brief): New static global.
9994 (print_symbol_loading_full): New static global.
9995 (print_symbol_loading_enums): New static global.
9996 (print_symbol_loading): New static global.
9997 (print_symbol_loading_p): New function.
9998 (symbol_file_add_with_addrs): Only print symbol loading messages
9999 if requested.
10000 (_initialize_symfile): Register "print symbol-loading" set/show
10001 command.
10002 * symfile.h (print_symbol_loading_p): Declare.
10003
c32c64b7
DE
100042014-03-30 Doug Evans <xdje42@gmail.com>
10005
10006 * infrun.c (set_last_target_status): New function.
10007 (handle_inferior_event): Call it.
10008
7c0bc051
DE
100092014-03-30 Doug Evans <xdje42@gmail.com>
10010
10011 * inferior.h (enum stop_kind): Improve comment.
10012
8776cfe9
JB
100132014-03-28 Joel Brobecker <brobecker@adacore.com>
10014
10015 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10016 a reference, strip the reference layer before calling
10017 the lang_ops value_has_mutated callback.
10018
410a0ff2
SDJ
100192014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10020
10021 Remove some globals from our parser.
10022 * language.c (unk_lang_parser): Add "struct parser_state"
10023 argument.
10024 * language.h (struct language_defn) <la_parser>: Likewise.
10025 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10026 (initialize_expout): Add "struct parser_state" argument.
10027 Rewrite function to use the parser state.
10028 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10029 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10030 write_exp_elt_longcst, write_exp_elt_dblcst,
10031 write_exp_elt_decfloatcst, write_exp_elt_type,
10032 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10033 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10034 write_dollar_variable): Likewise.
10035 (parse_exp_in_context_1): Use parser state.
10036 (insert_type_address_space): Add "struct parser_state" argument.
10037 Use parser state.
10038 (increase_expout_size): New function.
10039 * parser-defs.h: Forward declare "struct language_defn" and
10040 "struct parser_state".
10041 (expout, expout_size, expout_ptr): Remove extern declarations.
10042 (parse_gdbarch, parse_language): Rewrite macro declarations to
10043 accept the parser state.
10044 (struct parser_state): New struct.
10045 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10046 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10047 write_exp_elt_decfloatcst, write_exp_elt_type,
10048 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10049 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10050 write_exp_msymbol, write_dollar_variable,
10051 mark_struct_expression, insert_type_address_space): Add "struct
10052 parser_state" argument.
10053 (increase_expout_size): New function.
10054 * utils.c (do_clear_parser_state): New function.
10055 (make_cleanup_clear_parser_state): Likewise.
10056 * utils.h (make_cleanup_clear_parser_state): New function
10057 prototype.
10058 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10059 Update calls to write_exp* in order to pass the parser state.
10060 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10061 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10062 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10063 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10064 * stap-probe.c (stap_parse_register_operand): Likewise.
10065 (stap_parse_single_operand): Likewise.
10066 (stap_parse_argument_1): Likewise.
10067 (stap_parse_argument): Use parser state.
10068 * stap-probe.h: Include "parser-defs.h".
10069 (struct stap_parse_info) <pstate>: New field.
10070 * c-exp.y (parse_type): Rewrite to use parser state.
10071 (yyparse): Redefine to c_parse_internal.
10072 (pstate): New global variable.
10073 (parse_number): Add "struct parser_state" argument.
10074 (write_destructor_name): Likewise.
10075 (type_exp): Update calls to write_exp* and similars in order to
10076 use parser state.
10077 (exp1, exp, variable, qualified_name, space_identifier,
10078 typename, typebase): Likewise.
10079 (write_destructor_name, parse_number, lex_one_token,
10080 classify_name, classify_inner_name, c_parse): Add "struct
10081 parser_state" argument. Update function to use parser state.
10082 * c-lang.h: Forward declare "struct parser_state".
10083 (c_parse): Add "struct parser_state" argument.
10084 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10085 (yyparse): Redefine macro to ada_parse_internal.
10086 (pstate): New variable.
10087 (write_int, write_object_renaming, write_var_or_type,
10088 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10089 type_int, type_long, type_long_long, type_float, type_double,
10090 type_long_double, type_char, type_boolean, type_system_address):
10091 Add "struct parser_state" argument.
10092 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10093 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10094 var_or_type, aggregate, aggregate_component_list,
10095 positional_list, others, component_group,
10096 component_associations): Update calls to write_exp* and similar
10097 functions in order to use parser state.
10098 (ada_parse, write_var_from_sym, write_int,
10099 write_exp_op_with_string, write_object_renaming,
10100 find_primitive_type, write_selectors, write_ambiguous_var,
10101 write_var_or_type, write_name_assoc, type_int, type_long,
10102 type_long_long, type_float, type_double, type_long_double,
10103 type_char, type_boolean, type_system_address): Add "struct
10104 parser_state" argument. Adjust function to use parser state.
10105 * ada-lang.c (parse): Likewise.
10106 * ada-lang.h: Forward declare "struct parser_state".
10107 (ada_parse): Add "struct parser_state" argument.
10108 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10109 calls to both functions.
10110 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10111 parser state.
10112 (yyparse): Redefine macro to f_parse_internal.
10113 (pstate): New variable.
10114 (parse_number): Add "struct parser_state" argument.
10115 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10116 and similars in order to use parser state.
10117 (parse_number): Adjust code to use parser state.
10118 (yylex): Likewise.
10119 (f_parse): New function.
10120 * f-lang.h: Forward declare "struct parser_state".
10121 (f_parse): Add "struct parser_state" argument.
10122 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10123 parser state.
10124 (yyparse): Redefine macro for java_parse_internal.
10125 (pstate): New variable.
10126 (push_expression_name, push_expression_name, insert_exp): Add
10127 "struct parser_state" argument.
10128 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10129 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10130 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10131 PostIncrementExpression, PostDecrementExpression,
10132 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10133 UnaryExpressionNotPlusMinus, CastExpression,
10134 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10135 RelationalExpression, EqualityExpression, AndExpression,
10136 ExclusiveOrExpression, InclusiveOrExpression,
10137 ConditionalAndExpression, ConditionalOrExpression,
10138 ConditionalExpression, Assignment, LeftHandSide): Update
10139 calls to write_exp* and similars in order to use parser state.
10140 (parse_number): Ajust code to use parser state.
10141 (yylex): Likewise.
10142 (java_parse): New function.
10143 (push_variable): Add "struct parser_state" argument. Adjust
10144 code to user parser state.
10145 (push_fieldnames, push_qualified_expression_name,
10146 push_expression_name, insert_exp): Likewise.
10147 * jv-lang.h: Forward declare "struct parser_state".
10148 (java_parse): Add "struct parser_state" argument.
10149 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10150 parser state.
10151 (yyparse): Redefine macro to m2_parse_internal.
10152 (pstate): New variable.
10153 (type_exp, exp, fblock, variable, type): Update calls to
10154 write_exp* and similars to use parser state.
10155 (yylex): Likewise.
10156 (m2_parse): New function.
10157 * m2-lang.h: Forward declare "struct parser_state".
10158 (m2_parse): Add "struct parser_state" argument.
10159 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10160 * objc-lang.h: Forward declare "struct parser_state".
10161 (end_msglist): Add "struct parser_state" argument.
10162 * p-exp.y (parse_type): Rewrite macro to use parser state.
10163 (yyparse): Redefine macro to pascal_parse_internal.
10164 (pstate): New variable.
10165 (parse_number): Add "struct parser_state" argument.
10166 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10167 write_exp* and similars in order to use parser state.
10168 (parse_number, yylex): Adjust code to use parser state.
10169 (pascal_parse): New function.
10170 * p-lang.h: Forward declare "struct parser_state".
10171 (pascal_parse): Add "struct parser_state" argument.
10172 * go-exp.y (parse_type): Rewrite macro to use parser state.
10173 (yyparse): Redefine macro to go_parse_internal.
10174 (pstate): New variable.
10175 (parse_number): Add "struct parser_state" argument.
10176 (type_exp, exp1, exp, variable, type): Update calls to
10177 write_exp* and similars in order to use parser state.
10178 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10179 to use parser state.
10180 (go_parse): Likewise.
10181 * go-lang.h: Forward declare "struct parser_state".
10182 (go_parse): Add "struct parser_state" argument.
10183
342587c4
DE
101842014-03-27 Doug Evans <dje@google.com>
10185
10186 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10187
33e80786
DE
101882014-03-27 Doug Evans <dje@google.com>
10189
10190 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10191 Remove argument abbrev_section. All callers updated.
10192
1dbab08b
DE
101932014-03-27 Doug Evans <dje@google.com>
10194
10195 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10196 addr_base, ranges_base.
10197
318d3177
KS
101982014-03-26 Keith Seitz <keiths@redhat.com>
10199
10200 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10201 types, not VAR_DOMAIN.
10202
1e54db15
SL
102032014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10204
10205 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10206 "ra" registers.
10207 * features/nios2-linux.c: Regenerated.
10208 * features/nios2.c: Regenerated.
10209
d3839ede
PA
102102014-03-25 Pedro Alves <palves@redhat.com>
10211
10212 * cli/cli-script.c (script_from_file): Force the interpreter to
10213 sync mode.
10214
7588d2ec
PL
102152014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10216
10217 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10218 small stack allocation.
10219
a6290449
TG
102202014-03-24 Tristan Gingold <gingold@adacore.com>
10221
10222 * darwin-nat.c (exc_server): Remove unused prototype.
10223 (darwin_dump_message): Correctly display data on x86_64.
10224 (darwin_encode_reply): Fix style.
10225 Add comments and fix indentation.
10226
31ae9d24 102272014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10228
10229 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10230
6339bfc4
DE
102312014-03-22 Doug Evans <xdje42@gmail.com>
10232
10233 * infcmd.c: Whitespace fixes.
10234 (interrupt_command): Merge two function comments into one.
10235
0a07590b
DE
102362014-03-22 Doug Evans <xdje42@gmail.com>
10237
10238 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10239 All uses updated.
10240
b55fbac4
YQ
102412014-03-22 Yao Qi <yao@codesourcery.com>
10242
10243 * remote.c (target_read_live_memory): Remove.
10244 (memory_xfer_live_readonly_partial): Rename it to
10245 remote_xfer_live_readonly_partial. Remove argument 'object'.
10246 All callers updated. Call remote_read_bytes_1
10247 instead of target_read_live_memory.
10248 * tracepoint.c (set_traceframe_number): Remove.
10249 (make_cleanup_restore_traceframe_number): Likewise .
10250 * tracepoint.h (set_traceframe_number): Remove declaration.
10251 (make_cleanup_restore_traceframe_number): Likewise.
10252
9217e74e
YQ
102532014-03-22 Yao Qi <yao@codesourcery.com>
10254
10255 * remote.c (remote_read_bytes): Move code on reading from the
10256 remote stub to ...
10257 (remote_read_bytes_1): ... here. New function.
10258
8acf9577
YQ
102592014-03-22 Yao Qi <yao@codesourcery.com>
10260
10261 * ctf.c (ctf_xfer_partial): Check the return value of
10262 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10263 return TARGET_XFER_UNAVAILABLE.
10264 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10265 * target.c (target_read_live_memory): Move it to remote.c.
10266 (memory_xfer_live_readonly_partial): Likewise.
10267 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10268 * remote.c (target_read_live_memory): Moved from target.c.
10269 (memory_xfer_live_readonly_partial): Likewise.
10270 (remote_read_bytes): Factored out from
10271 memory_xfer_partial_1.
10272
feef67ab
DE
102732014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10274
10275 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10276 NULL pointer.
10277
b65dc60b
PA
102782014-03-21 Pedro Alves <palves@redhat.com>
10279
10280 * infrun.c (normal_stop): Extend comment.
10281
b4ab256d
HZ
102822014-03-21 Hui Zhu <hui@codesourcery.com>
10283 Pedro Alves <palves@redhat.com>
10284
10285 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10286 static buffer.
10287 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10288 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10289 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10290
deba7593
MR
102912014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10292
10293 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10294 `z' formatted output modifier.
10295
1bff71c3
SDJ
102962014-03-20 Tom Tromey <tromey@redhat.com>
10297 Sergio Durigan Junior <sergiodj@redhat.com>
10298
10299 * probe.c (parse_probes): Turn assert into an ordinary error.
10300 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10301 exceptions when parsing probes. Rearrange the code for clarity.
10302
90e28950
TT
103032014-03-20 Tom Tromey <tromey@redhat.com>
10304
10305 PR gdb/14135
10306 * top.c (execute_command): Only dispatch events if the command
10307 started the target.
10308
beb460e8
PA
103092014-03-20 Tom Tromey <tromey@redhat.com>
10310
10311 PR cli/15718
10312 * infcall.c: Include event-top.h.
10313 (run_inferior_call): Call async_disable_stdin if needed.
10314
99619bea
PA
103152014-03-20 Pedro Alves <palves@redhat.com>
10316
10317 * infrun.c (prepare_to_proceed): Delete.
10318 (thread_still_needs_step_over): New function.
10319 (find_thread_needs_step_over): New function.
10320 (proceed): If the current thread needs a step-over, set its
10321 steping_over_breakpoint flag. Adjust to use
10322 find_thread_needs_step_over instead of prepare_to_proceed.
10323 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10324 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10325 breakpoint.
10326 (switch_back_to_stepped_thread): Step over breakpoints of all
10327 threads not the stepping thread, before switching back to the
10328 stepping thread.
10329
2adfaa28
PA
103302014-03-20 Pedro Alves <palves@redhat.com>
10331
10332 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10333 extern.
10334 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10335 * infrun.c (saved_singlestep_ptid)
10336 (stepping_past_singlestep_breakpoint): Delete.
10337 (resume): Remove stepping_past_singlestep_breakpoint handling.
10338 (proceed): Store the prev_pc of the stepping thread too.
10339 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10340 singlestep_pc.
10341 (enum infwait_states): Delete infwait_thread_hop_state.
10342 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10343 field.
10344 (handle_inferior_event): Adjust.
10345 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10346 handling and the thread-hop code. Before removing single-step
10347 breakpoints, check whether the thread hit a single-step breakpoint
10348 of another thread. If it did, the trap is not a random signal.
10349 (switch_back_to_stepped_thread): If the event thread hit a
10350 single-step breakpoint, unblock it before switching to the
10351 stepping thread. Handle the case of the stepped thread having
10352 advanced already.
10353 (keep_going): Handle the case of the current thread moving past a
10354 single-step breakpoint.
10355
31e77af2
PA
103562014-03-20 Pedro Alves <palves@redhat.com>
10357
10358 PR breakpoints/7143
10359 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10360 are being stepped over.
10361 (breakpoint_address_match): Make extern.
10362 * breakpoint.h (breakpoint_address_match): New declaration.
10363 * inferior.h (stepping_past_instruction_at): New declaration.
10364 * infrun.c (struct step_over_info): New type.
10365 (step_over_info): New global.
10366 (set_step_over_info, clear_step_over_info)
10367 (stepping_past_instruction_at): New functions.
10368 (handle_inferior_event): Clear the step-over info when
10369 trap_expected is cleared.
10370 (resume): Remove now stale comment.
10371 (clear_proceed_status): Clear step-over info.
10372 (proceed): Adjust step-over handling to set or clear the step-over
10373 info instead of removing all breakpoints.
10374 (handle_signal_stop): When setting up a thread-hop, don't remove
10375 breakpoints here.
10376 (stop_stepping): Clear step-over info.
10377 (keep_going): Adjust step-over handling to set or clear step-over
10378 info and then always inserting breakpoints, instead of removing
10379 all breakpoints when stepping over one.
10380
b9f437de
PA
103812014-03-20 Pedro Alves <palves@redhat.com>
10382
10383 * infrun.c (previous_inferior_ptid): Adjust comment.
10384 (deferred_step_ptid): Delete.
10385 (infrun_thread_ptid_changed, prepare_to_proceed)
10386 (init_wait_for_inferior): Adjust.
10387 (handle_signal_stop): Delete deferred_step_ptid handling.
10388
06c868a8
JK
103892014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10390
10391 PR gdb/15358
10392 * defs.h (sync_quit_force_run): New declaration.
10393 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10394 * event-top.c (async_sigterm_handler): New declaration.
10395 (async_sigterm_token): New variable.
10396 (async_init_signals): Create also async_sigterm_token.
10397 (async_sigterm_handler): New function.
10398 (sync_quit_force_run): New variable.
10399 (handle_sigterm): Replace quit_force call by other calls.
10400 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10401
dea80df0
MR
104022014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10403
10404 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10405 offset into SPE pseudo registers.
10406
0c7e1a46
PA
104072014-03-18 Pedro Alves <palves@redhat.com>
10408
10409 PR gdb/13860
10410 * inferior.h (print_stop_event): Declare.
10411 * infrun.c (print_stop_event): New, factored out from ...
10412 (normal_stop): ... this.
10413 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10414 of bpstat_print/print_stack_frame.
10415
9c1fcd01
TT
104162014-03-17 Tom Tromey <tromey@redhat.com>
10417
10418 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10419
11aa919a
PMR
104202014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10421
10422 * ada-lang.c (decode_constrained_packed_array): Perform a
10423 minimal coercion for reference with coerce_ref instead of
10424 ada_coerce_ref.
10425
d4ccb5e0
TG
104262014-03-17 Tristan Gingold <gingold@adacore.com>
10427
10428 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10429 (darwin_solib_create_inferior_hook): Emit a warning if version
10430 is unhandled.
10431
49840f2a
UW
104322014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10433
10434 * python/py-value.c (get_field_flag): Cast flag_name argument to
10435 PyObject_GetAttrString to support Python 2.4.
10436
ed4123e5
JK
104372014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10438
10439 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10440 (Global Maintainers): Remove Jan Kratochvil.
10441
d6b64346
PA
104422014-03-14 Pedro Alves <palves@redhat.com>
10443
10444 * inferior.h (terminal_ours_for_output): Rename to ...
10445 (child_terminal_ours_for_output): ... this.
10446 (terminal_save_ours): Rename to ...
10447 (child_terminal_save_ours): ... this.
10448 (terminal_ours): Rename to ...
10449 (child_terminal_ours): ... this.
10450 (terminal_inferior): Rename to ...
10451 (child_terminal_inferior): ... this.
10452 (terminal_init_inferior): Rename to ...
10453 (child_terminal_init_inferior): ... this.
10454 (terminal_init_inferior_with_pgrp): Rename to ...
10455 (child_terminal_init_inferior_with_pgrp): ... this.
10456 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10457 (child_terminal_init_with_pgrp): ... this.
10458 (terminal_save_ours): Rename to ...
10459 (child_terminal_save_ours): ... this.
10460 (terminal_init_inferior): Rename to ...
10461 (child_terminal_init): ... this. Adjust.
10462 (terminal_inferior): Rename to ...
10463 (child_terminal_inferior): ... this.
10464 (terminal_ours_for_output): Rename to ...
10465 (child_terminal_ours_for_output): ... this. Adjust.
10466 (terminal_ours): Rename to ...
10467 (child_terminal_ours): ... this.
10468 (terminal_ours_1): Rename to ...
10469 (child_terminal_ours_1): ... this. Adjust.
10470 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10471 * windows-nat.c (do_initial_windows_stuff): Adjust.
10472 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10473 (gnu_terminal_init): ... this. Adjust.
10474 (gnu_target): Adjust.
10475 * inf-child.c (inf_child_target): Adjust.
10476
5a1e8c7a
DE
104772014-03-13 Doug Evans <xdje42@gmail.com>
10478
10479 PR guile/16612
10480 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10481 new eq?-hashtab.
10482
350e1a76
DE
104832014-03-13 Doug Evans <xdje42@gmail.com>
10484
10485 * value.c (record_latest_value): Call release_value_or_incref
10486 instead of release_value.
10487
a69900ae
PA
104882014-03-13 Pedro Alves <palves@redhat.com>
10489
10490 * procfs.c (procfs_target): Don't override to_shortname,
10491 to_longname or to_doc.
10492
5db9f0bd
PA
104932014-03-13 Pedro Alves <palves@redhat.com>
10494
10495 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10496 Unix in user visible strings.
10497
5e3a2c38
SS
104982014-03-12 Stan Shebs <stan@codesourcery.com>
10499
10500 * gdbtypes.h: Annotate comments for Doxygen, add a page
10501 block comment with some general info.
10502
8bc2fe48
PA
105032014-03-12 Pedro Alves <palves@redhat.com>
10504
10505 * infcmd.c (prepare_execution_command): New function, factored out
10506 from several execution commands.
10507 (run_command_1, continue_command, step_1, jump_command)
10508 (signal_command, until_command, advance_command, finish_command)
10509 (attach_command): Use prepare_execution_command.
10510
638c5f49
OJ
105112014-03-12 Omair Javaid <omair.javaid@linaro.org>
10512
10513 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10514 (MAX_BPTS): Define.
10515 (MAX_WPTS): Define.
10516 (struct arm_linux_thread_points): Removed.
10517 (struct arm_linux_process_info): New.
10518 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10519 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10520 (arm_linux_find_breakpoints_by_tid): Removed.
10521 (struct arch_lwp_info): New.
10522 (arm_linux_find_process_pid): New functions.
10523 (arm_linux_add_process): New functions.
10524 (arm_linux_process_info_get): New functions.
10525 (arm_linux_forget_process): New function.
10526 (arm_linux_get_debug_reg_state): New function.
10527 (struct update_registers_data): New.
10528 (update_registers_callback): New function.
10529 (arm_linux_insert_hw_breakpoint1): Updated.
10530 (arm_linux_remove_hw_breakpoint1): Updated.
10531 (arm_linux_insert_hw_breakpoint): Updated.
10532 (arm_linux_remove_hw_breakpoint): Updated.
10533 (arm_linux_insert_watchpoint): Updated.
10534 (arm_linux_remove_watchpoint): Updated.
10535 (arm_linux_new_thread): Updated.
10536 (arm_linux_prepare_to_resume): New function.
10537 (arm_linux_new_fork): New function.
10538 (_initialize_arm_linux_nat): Updated.
10539
6d03af93
PA
105402014-03-12 Pedro Alves <palves@redhat.com>
10541
10542 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10543
b3ccfe11
TT
105442014-03-12 Tom Tromey <tromey@redhat.com>
10545
10546 * inf-child.c (return_zero): New function.
10547 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10548 * aix-thread.c (aix_thread_inferior_created): New function.
10549 (aix_thread_attach): Remove.
10550 (init_aix_thread_ops): Don't set to_attach.
10551 (_initialize_aix_thread): Register inferior_created observer.
10552 * corelow.c (init_core_ops): Don't set to_attach or
10553 to_create_inferior.
10554 * exec.c (init_exec_ops): Don't set to_attach or
10555 to_create_inferior.
10556 * infcmd.c (run_command_1): Use find_run_target. Make direct
10557 target calls.
10558 (attach_command): Use find_attach_target. Make direct target
10559 calls.
10560 * record-btrace.c (init_record_btrace_ops): Don't set
10561 to_create_inferior.
10562 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10563 Remove.
10564 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10565 set to_create_inferior.
10566 * target.c (complete_target_initialization): Add assertion.
10567 (target_create_inferior): Remove.
10568 (find_default_attach, find_default_create_inferior): Remove.
10569 (find_attach_target, find_run_target): New functions.
10570 (find_default_is_async_p, find_default_can_async_p)
10571 (target_supports_non_stop, target_attach): Remove.
10572 (init_dummy_target): Don't set to_create_inferior or
10573 to_supports_non_stop.
10574 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10575 TARGET_DEFAULT_FUNC.
10576 <to_create_inferior>: Add comment.
10577 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10578 TARGET_DEFAULT_RETURN.
10579 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10580 (find_attach_target, find_run_target): Declare.
10581 (target_create_inferior): Remove.
10582 (target_has_execution_1): Update comment.
10583 (target_supports_non_stop): Remove.
10584 * target-delegates.c: Rebuild.
10585
91f83b02
PA
105862014-03-12 Pedro Alves <palves@redhat.com>
10587
10588 * inf-child.h: Update comment to not mention Unix.
10589
f1aea813
PA
105902014-03-12 Pedro Alves <palves@redhat.com>
10591
10592 * inf-child.c: Update top comment to not mention Unix. Add
10593 generic comment describing how this target is meant to be used.
10594 (inf_child_post_attach, inf_child_post_startup_inferior)
10595 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10596 Unix in comment.
10597
ee8e9165
PA
105982014-03-12 Pedro Alves <palves@redhat.com>
10599
10600 * nto-procfs.c: Include inf-child.h.
10601 (procfs_ops): Delete global.
10602 (procfs_can_run): Delete method.
10603 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10604 target pointer instead of referencing procfs_ops.
10605 (procfs_prepare_to_store): Delete.
10606 (init_procfs_ops): Delete function.
10607 (procfs_target): New function, based on init_procfs_ops, but
10608 inherit inf_child_target.
10609 (_initialize_procfs): Use procfs_target.
10610
51a9c8c5
PA
106112014-03-12 Pedro Alves <palves@redhat.com>
10612
10613 * windows-nat.c: Include inf-child.h.
10614 (windows_ops): Delete global.
10615 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10616 methods.
10617 (init_windows_ops): Delete function.
10618 (windows_target): New function, based on init_windows_ops, but
10619 inherit inf_child_target.
10620 (_initialize_windows_nat): Use windows_target. Install x86
10621 specific target methods here.
10622
c1966e26
DE
106232014-03-10 Doug Evans <xdje42@gmail.com>
10624
10625 * guile/guile.c (call_initialize_gdb_module): New function.
10626 (initialize_guile): Replace call to scm_init_guile with call to
10627 scm_with_guile.
10628
023db19c
JB
106292014-03-10 Joel Brobecker <brobecker@adacore.com>
10630
10631 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10632 in call to TYPE_CODE macro.
10633
5ec18f2b
JG
106342014-03-10 Jerome Guitton <guitton@adacore.com>
10635
8668be63
JB
10636 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10637 Resolve tagged types to full view.
5ec18f2b 10638
7d03f2eb
HZ
106392014-03-10 Hui Zhu <hui@codesourcery.com>
10640
10641 * target.h (target_insert_breakpoint): Remove "hardware" from its
10642 comments.
10643
c5164cbc
DE
106442014-03-07 Doug Evans <dje@google.com>
10645
10646 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10647
c4a3fee2
DE
106482014-03-07 Doug Evans <dje@google.com>
10649
10650 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10651 Remove unused local comp_dir_attr. Assert exactly one of
10652 stub_comp_unit_die, stub_comp_dir is non-NULL.
10653
3156469c
JB
106542014-03-07 Joel Brobecker <brobecker@adacore.com>
10655
10656 * target.h (complete_target_initialization, add_target):
10657 Add comment.
10658
c1a7b7c6
PA
106592014-03-07 Pedro Alves <palves@redhat.com>
10660
10661 * go32-nat.c: Include inf-child.h.
10662 (go32_ops): Delete global.
10663 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10664 Delete methods.
10665 (go32_create_inferior): Push the passed in target pointer instead
10666 of referencing go32_ops.
10667 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10668 (go32_target): New function, based on init_go32_ops, but inherit
10669 inf_child_target.
10670 (_initialize_go32_nat): Use go32_target. Move parts of
10671 init_go32_ops here.
10672
d3c1a85f
JB
106732014-03-06 Joel Brobecker <brobecker@adacore.com>
10674
10675 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10676 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10677 SYMBOL_VALUE_ADDRESS.
10678 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10679
5fa1d40e
YQ
106802014-03-06 Yao Qi <yao@codesourcery.com>
10681
10682 * breakpoint.c (get_tracepoint_by_number): Remove argument
10683 optional_p. All callers updated. Adjust comments. Update
10684 output message.
10685 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10686
0c13193f
YQ
106872014-03-06 Yao Qi <yao@codesourcery.com>
10688
10689 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10690 early if get_number returns zero. Use 'p' instead of 'args'.
10691
2217da06
YQ
106922014-03-06 Yao Qi <yao@codesourcery.com>
10693
10694 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10695 message.
10696
cc3da688
YQ
106972014-03-06 Yao Qi <yao@codesourcery.com>
10698
10699 PR breakpoints/16508
10700 * tracepoint.c (check_trace_running): New function.
10701 (trace_find_command): Move code to check_trace_running and
10702 call check_trace_running.
10703 (trace_find_pc_command): Likewise.
10704 (trace_find_tracepoint_command): Likewise.
10705 (trace_find_line_command): Likewise.
10706 (trace_find_range_command): Likewise.
10707 * tracepoint.h (check_trace_running): Likewise.
10708 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10709
6a5f844b
YQ
107102014-03-06 Yao Qi <yao@codesourcery.com>
10711
10712 * target.h (struct target_ops) <to_traceframe_info>: Use
10713 TARGET_DEFAULT_NORETURN (tcomplain ()).
10714 * target-delegates.c: Regenerated.
10715
0f26cec1
PA
107162014-03-05 Pedro Alves <palves@redhat.com>
10717
10718 PR gdb/16575
10719 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10720 void. Update comment.
10721 (dcache_xfer_memory): Delete.
10722 (dcache_read_memory_partial): New, based on the read bits of
10723 dcache_xfer_memory.
10724 (dcache_update): Add status parameter. Use ULONGEST for len, and
10725 adjust. Discard cache lines if the reason for the update was
10726 error.
10727 * dcache.h (dcache_xfer_memory): Delete declaration.
10728 (dcache_read_memory_partial): New declaration.
10729 (dcache_update): Update prototype.
10730 * target.c (raw_memory_xfer_partial): Update the dcache here.
10731 (memory_xfer_partial_1): Don't handle dcache writes here.
10732
b2b255bd
MF
107332014-03-05 Mike Frysinger <vapier@gentoo.org>
10734
10735 * remote-sim.c (gdbsim_load): Add const to prog.
10736
5d9cf8a4
TT
107372014-03-03 Tom Tromey <tromey@redhat.com>
10738
10739 * elfread.c (probe_key): Change to bfd_data.
10740 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10741 now per-BFD, not per-objfile.
10742 * stap-probe.c (stap_probe_destroy): Update comment.
10743 (handle_stap_probe): Allocate on the per-BFD obstack.
10744
729662a5
TT
107452014-03-03 Tom Tromey <tromey@redhat.com>
10746
10747 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10748 * breakpoint.c (create_longjmp_master_breakpoint): Use
10749 get_probe_address.
10750 (add_location_to_breakpoint, bkpt_probe_insert_location)
10751 (bkpt_probe_remove_location): Update.
10752 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10753 * elfread.c (elf_symfile_relocate_probe): Remove.
10754 (elf_probe_fns): Update.
10755 (insert_exception_resume_breakpoint): Change type of "probe"
10756 parameter to bound_probe.
10757 (check_exception_resume): Update.
10758 * objfiles.c (objfile_relocate1): Don't relocate probes.
10759 * probe.c (bound_probe_s): New typedef.
10760 (parse_probes): Use get_probe_address. Set sal's objfile.
10761 (find_probe_by_pc): Return a bound_probe.
10762 (collect_probes): Return a VEC(bound_probe_s).
10763 (compare_probes): Update.
10764 (gen_ui_out_table_header_info): Change type of "probes"
10765 parameter. Update.
10766 (info_probes_for_ops): Update.
10767 (get_probe_address): New function.
10768 (probe_safe_evaluate_at_pc): Update.
10769 * probe.h (struct probe_ops) <get_probe_address>: New field.
10770 <set_semaphore, clear_semaphore>: Add objfile parameter.
10771 (struct probe) <objfile>: Remove field.
10772 <arch>: New field.
10773 <address>: Update comment.
10774 (struct bound_probe): New.
10775 (find_probe_by_pc): Return a bound_probe.
10776 (get_probe_address): Declare.
10777 * solib-svr4.c (struct probe_and_action) <address>: New field.
10778 (hash_probe_and_action, equal_probe_and_action): Update.
10779 (register_solib_event_probe): Add address parameter.
10780 (solib_event_probe_at): Update.
10781 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10782 get_probe_address.
10783 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10784 (stap_get_probe_address): New function.
10785 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10786 (compile_probe_arg): Update.
10787 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10788 address.
10789 (handle_stap_probe): Don't relocate the probe.
10790 (stap_relocate): Remove.
10791 (stap_gen_info_probes_table_values): Update.
10792 (stap_probe_ops): Remove stap_relocate.
10793 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10794 (debug_sym_probe_fns): Update.
10795 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10796 * symtab.c (init_sal): Use memset.
10797 * symtab.h (struct symtab_and_line) <objfile>: New field.
10798 * tracepoint.c (start_tracing, stop_tracing): Update.
10799
ff887920
TT
108002014-03-03 Tom Tromey <tromey@redhat.com>
10801
10802 * probe.h (parse_probes, find_probe_by_pc)
10803 (find_probes_in_objfile): Fix comments.
10804
f0407826
DE
108052014-03-02 Doug Evans <xdje42@gmail.com>
10806
10807 * infrun.c (handle_signal_stop): Replace test for
10808 TARGET_WAITKIND_STOPPED with an assert.
10809
35e6a711
DE
108102014-03-02 Doug Evans <xdje42@gmail.com>
10811
10812 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10813
667f9d0b
DE
108142014-03-02 Doug Evans <xdje42@gmail.com>
10815
10816 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10817
dc92ace0
MK
108182014-03-01 Mark Kettenis <kettenis@gnu.org>
10819
10820 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10821
a900370f
MK
108222014-03-01 Mark Kettenis <kettenis@gnu.org>
10823
10824 * i386obsd-nat.c: Include "obsd-nat.h".
10825 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10826 add_target.
10827 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10828
b72a7981
MK
108292014-03-01 Mark Kettenis <kettenis@gnu.org>
10830
10831 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10832
96c70aba
MK
108332014-03-01 Mark Kettenis <kettenis@gnu.org>
10834
10835 * mips64obsd-nat.c: Include "obsd-nath".
10836 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10837 add_target
10838 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10839
874a80af
MK
108402014-03-01 Mark Kettenis <kettenis@gnu.org>
10841
8fd408f1
MK
10842 * amd64obsd-nat.c: Include "obsd-nat,h.
10843 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10844 add_target.
874a80af
MK
10845 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10846
9cf95373
SC
108472014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10848
10849 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10850 (find_overload_match): Update call to find_oload_champ.
10851 (find_oload_champ_namespace_loop): Likewise
10852
863e4da4
MK
108532014-02-28 Mark Kettenis <kettenis@gnu.org>
10854
025cac40
MK
10855 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10856
1ed586ce
MK
10857 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10858 * config/sparc/obsd64.mh: New file.
10859 * sparc64obsd-nat.c: New file.
10860
863e4da4
MK
10861 * obsd-nat.h: New file.
10862 * obsd-nat.c: New file.
10863 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10864 (ALLDEPFILES): Add obsd-nat.c.
10865
89de4da4
TT
108662014-02-28 Tom Tromey <tromey@redhat.com>
10867
10868 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10869 * cli-out.h (cli_ui_out_impl): Now const.
10870 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10871 * ui-out.c (struct ui_out) <impl>: Now const.
10872 (default_ui_out_impl): Now const.
10873 (ui_out_new): Make 'impl' parameter const.
10874 * ui-out.h (ui_out_new): Update.
10875
c725e7b6
MK
108762014-02-27 Mark Kettenis <kettenis@gnu.org>
10877
10878 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10879
670b46b3
MK
108802014-02-27 Mark Kettenis <kettenis@gnu.org>
10881
10882 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10883
c91550fc
JK
108842014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10885
10886 Additional PR 8882 fix.
10887 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10888
2fa0369e
PA
108892014-02-27 Pedro Alves <palves@redhat.com>
10890
10891 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10892 isn't set.
10893
d632a097
PA
108942014-02-27 Pedro Alves <palves@redhat.com>
10895
10896 PR 12702
10897 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10898 * nat/linux-waitpid.c: Include string.h.
10899 (status_to_str): Moved here and made extern.
10900 * nat/linux-waitpid.h (status_to_str): New declaration.
10901
2ebd5a35
HZ
109022014-02-27 Hui Zhu <hui@codesourcery.com>
10903
10904 PR 12702
10905 * infrun.c (ptid_match): Move ...
10906 * common/ptid.c (ptid_match): ... here.
10907 * inferior.h (ptid_match): Move ...
10908 * common/ptid.h (ptid_match): ... here.
10909
3cdd631f
MK
109102014-02-27 Mark Kettenis <kettenis@gnu.org>
10911
10912 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10913 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10914 gdb_target_obs.
10915
bee30a64
MK
109162014-02-27 Mark Kettenis <kettenis@gnu.org>
10917
10918 * obsd-tdep.c (obsd_auxv_parse): New function.
10919 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10920
10921 * gdbarch.sh (auxv_parse): New.
10922 * gdbarch.h: Regenerated.
10923 * gdbarch.c: Regenerated.
10924 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10925
7a5a839f
LC
109262014-02-26 Ludovic Courtès <ludo@gnu.org>
10927
10928 * guile/scm-value.c (gdbscm_history_append_x): New function.
10929 (value_functions): Add it.
10930
31aa7e4e
JB
109312014-02-27 Joel Brobecker <brobecker@adacore.com>
10932
10933 * dwarf2read.c (attr_value_as_address): New function.
10934 (dwarf2_find_base_address, read_call_site_scope): Use
10935 attr_value_as_address in place of DW_ADDR.
10936 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10937 the low and high addresses. Slight rework of the handling
10938 of the high pc being a constant form, and limit it to
10939 DWARF verson 4 or higher.
10940 (dwarf2_record_block_ranges): Likewise.
10941 (read_partial_die): Likewise.
10942 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10943
9b333ba3
TT
109442014-02-26 Tom Tromey <tromey@redhat.com>
10945
10946 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10947
5f6cac40
TT
109482014-02-26 Tom Tromey <tromey@redhat.com>
10949
10950 * elfread.c (elf_read_minimal_symbols): Return early if
10951 minimal symbols have already been read. Add "ei" parameter.
10952 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10953 * minsyms.c (prim_record_minimal_symbol_full): Update.
10954 * objfiles.h (struct objstats) <n_minsyms>: Move...
10955 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10956 * symmisc.c (print_objfile_statistics): Update.
10957
2750ef27
TT
109582014-02-26 Tom Tromey <tromey@redhat.com>
10959
10960 * elfread.c (elf_read_minimal_symbols): New function, from
10961 elf_symfile_read.
10962 (elf_symfile_read): Call it.
10963
34643a32
TT
109642014-02-26 Tom Tromey <tromey@redhat.com>
10965
10966 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10967 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10968 (lookup_minimal_symbol_solib_trampoline)
10969 (lookup_minimal_symbol_by_pc_section_1)
10970 (lookup_minimal_symbol_and_objfile): Update.
10971 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10972 Don't allocate a minimal symbol if minsyms have already been read.
10973 (build_minimal_symbol_hash_tables): Update.
10974 (install_minimal_symbols): Do nothing if minsyms already read.
10975 Use the per-BFD obstack.
10976 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10977 * objfiles.c (allocate_objfile): Call
10978 terminate_minimal_symbol_table later.
10979 (have_minimal_symbols): Update.
10980 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10981 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10982 Move from struct objfile.
10983 <minsyms_read>: New field.
10984 (struct objfile) <msymbols, minimal_symbol_count,
10985 msymbol_hash, msymbol_demangled_hash>: Move.
10986 (ALL_OBJFILE_MSYMBOLS): Update.
10987 * symfile.c (read_symbols): Set minsyms_read.
10988 (reread_symbols): Update.
10989 * symmisc.c (dump_objfile, dump_msymbols): Update.
10990
2273f0ac
TT
109912014-02-26 Tom Tromey <tromey@redhat.com>
10992
10993 * minsyms.c (msymbols_sort): Remove.
10994 * minsyms.h (msymbols_sort): Remove.
10995 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10996 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10997 * elfread.c (elf_symtab_read): Don't add section offsets.
10998 * xcoffread.c (record_minimal_symbol): Don't add section offset
10999 to minimal symbol address.
11000 * somread.c (text_offset, data_offset): Remove.
11001 (som_symtab_read): Don't add section offsets to minimal symbol
11002 addresses.
11003 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11004 Don't add section offsets to minimal symbols.
11005 * coffread.c (coff_symtab_read): Don't add section offsets
11006 to minimal symbol addresses.
11007 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11008 to minimal symbol addresses.
11009 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11010 section offset to minimal symbol addresses.
11011 * mdebugread.c (parse_partial_symbols): Don't add section
11012 offset to minimal symbol addresses.
11013 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11014 offset to minimal symbol addresses.
11015
77e371c0
TT
110162014-02-26 Tom Tromey <tromey@redhat.com>
11017
11018 * ada-lang.c (ada_main_name): Update.
11019 (ada_add_standard_exceptions): Update.
11020 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11021 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11022 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11023 * auxv.c (ld_so_xfer_auxv): Update.
11024 * avr-tdep.c (avr_scan_prologue): Update.
11025 * ax-gdb.c (gen_var_ref): Update.
11026 * blockframe.c (get_pc_function_start)
11027 (find_pc_partial_function_gnu_ifunc): Update.
11028 * breakpoint.c (create_overlay_event_breakpoint)
11029 (create_longjmp_master_breakpoint)
11030 (create_std_terminate_master_breakpoint)
11031 (create_exception_master_breakpoint): Update.
11032 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11033 * c-valprint.c (c_val_print): Update.
11034 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11035 * common/agent.c (agent_look_up_symbols): Update.
11036 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11037 * dwarf2loc.c (call_site_to_target_addr): Update.
11038 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11039 * elfread.c (elf_gnu_ifunc_record_cache)
11040 (elf_gnu_ifunc_resolve_by_got): Update.
11041 * findvar.c (default_read_var_value): Update.
11042 * frame.c (inside_main_func): Update.
11043 * frv-tdep.c (frv_frame_this_id): Update.
11044 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11045 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11046 Update.
11047 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11048 (hppa_hpux_find_dummy_bpaddr): Update.
11049 * hppa-tdep.c (hppa_symbol_address): Update.
11050 * infcmd.c (until_next_command): Update.
11051 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11052 Update.
11053 * linespec.c (minsym_found, add_minsym): Update.
11054 * linux-nat.c (get_signo): Update.
11055 * linux-thread-db.c (inferior_has_bug): Update.
11056 * m32c-tdep.c (m32c_return_value)
11057 (m32c_m16c_address_to_pointer): Update.
11058 * m32r-tdep.c (m32r_frame_this_id): Update.
11059 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11060 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11061 * maint.c (maintenance_translate_address): Update.
11062 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11063 (frob_address): New function.
11064 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11065 frob_address. Rename parameter to "pc_in".
11066 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11067 addresses.
11068 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11069 Update.
11070 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11071 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11072 * objc-lang.c (find_objc_msgsend): Update.
11073 * objfiles.c (objfile_relocate1): Update.
11074 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11075 * p-valprint.c (pascal_val_print): Update.
11076 * parse.c (write_exp_msymbol): Update.
11077 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11078 (ppc_elfv2_skip_entrypoint): Update.
11079 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11080 * printcmd.c (build_address_symbolic, msym_info)
11081 (address_info): Update.
11082 * proc-service.c (ps_pglobal_lookup): Update.
11083 * psymtab.c (find_pc_sect_psymtab_closer)
11084 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11085 Change msymbol parameter to bound_minimal_symbol.
11086 * ravenscar-thread.c (get_running_thread_id): Update.
11087 * remote.c (remote_check_symbols): Update.
11088 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11089 address.
11090 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11091 * solib-dsbt.c (lm_base): Update.
11092 * solib-frv.c (lm_base, main_got): Update.
11093 * solib-irix.c (locate_base): Update.
11094 * solib-som.c (som_solib_create_inferior_hook)
11095 (link_map_start): Update.
11096 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11097 * solib-svr4.c (elf_locate_base, enable_break): Update.
11098 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11099 (flush_ea_cache): Update.
11100 * stabsread.c (define_symbol, scan_file_globals): Update.
11101 * stack.c (find_frame_funname): Update.
11102 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11103 (debug_qf_find_pc_sect_symtab): Update.
11104 * symfile.c (simple_read_overlay_table)
11105 (simple_overlay_update): Update.
11106 * symfile.h (struct quick_symbol_functions)
11107 <find_pc_sect_symtab>: Change type of msymbol to
11108 bound_minimal_symbol.
11109 * symmisc.c (dump_msymbols): Update.
11110 * symtab.c (find_pc_sect_symtab_via_partial)
11111 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11112 (search_symbols, print_msymbol_info): Update.
11113 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11114 (MSYMBOL_VALUE_ADDRESS): Redefine.
11115 (BMSYMBOL_VALUE_ADDRESS): New macro.
11116 * tracepoint.c (scope_info): Update.
11117 * tui/tui-disasm.c (tui_find_disassembly_address)
11118 (tui_get_begin_asm_address): Update.
11119 * valops.c (find_function_in_inferior): Update.
11120 * value.c (value_static_field, value_fn_field): Update.
11121
3b7344d5
TT
111222014-02-26 Tom Tromey <tromey@redhat.com>
11123
11124 * ada-lang.c (ada_update_initial_language): Update.
11125 (ada_main_name, ada_has_this_exception_support): Update.
11126 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11127 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11128 * arm-tdep.c (arm_skip_stub): Update.
11129 * auxv.c (ld_so_xfer_auxv): Update.
11130 * avr-tdep.c (avr_scan_prologue): Update.
11131 * ax-gdb.c (gen_var_ref): Update.
11132 * breakpoint.c (struct breakpoint_objfile_data)
11133 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11134 type to bound_minimal_symbol.
11135 (create_overlay_event_breakpoint)
11136 (create_longjmp_master_breakpoint)
11137 (create_std_terminate_master_breakpoint)
11138 (create_exception_master_breakpoint): Update.
11139 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11140 * c-exp.y (classify_name): Update.
11141 * coffread.c (coff_symfile_read): Update.
11142 * common/agent.c (agent_look_up_symbols): Update.
11143 * d-lang.c (d_main_name): Update.
11144 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11145 * dec-thread.c (enable_dec_thread): Update.
11146 * dwarf2loc.c (call_site_to_target_addr): Update.
11147 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11148 * eval.c (evaluate_subexp_standard): Update.
11149 * findvar.c (struct minsym_lookup_data) <result>: Change type
11150 to bound_minimal_symbol.
11151 <objfile>: Remove.
11152 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11153 * frame.c (inside_main_func): Update.
11154 * frv-tdep.c (frv_frame_this_id): Update.
11155 * gcore.c (call_target_sbrk): Update.
11156 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11157 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11158 Update.
11159 * go-lang.c (go_main_name): Update.
11160 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11161 (hppa_hpux_find_import_stub_for_addr): Update.
11162 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11163 Update. Change return type.
11164 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11165 type.
11166 * jit.c (jit_breakpoint_re_set_internal): Update.
11167 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11168 Update.
11169 * linux-nat.c (get_signo): Update.
11170 * linux-thread-db.c (inferior_has_bug): Update
11171 * m32c-tdep.c (m32c_return_value)
11172 (m32c_m16c_address_to_pointer): Update.
11173 * m32r-tdep.c (m32r_frame_this_id): Update.
11174 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11175 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11176 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11177 lookup_minimal_symbol. Change return type.
11178 (lookup_minimal_symbol): Remove.
11179 (lookup_bound_minimal_symbol): Update.
11180 (lookup_minimal_symbol_text): Change return type.
11181 (lookup_minimal_symbol_solib_trampoline): Change return type.
11182 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11183 (lookup_minimal_symbol_solib_trampoline): Change return type.
11184 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11185 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11186 (value_nsstring, find_imps): Update.
11187 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11188 * p-lang.c (pascal_main_name): Update.
11189 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11190 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11191 * proc-service.c (ps_pglobal_lookup): Update.
11192 * ravenscar-thread.c (get_running_thread_msymbol): Change
11193 return type.
11194 (has_ravenscar_runtime, get_running_thread_id): Update.
11195 * remote.c (remote_check_symbols): Update.
11196 * sol-thread.c (ps_pglobal_lookup): Update.
11197 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11198 * solib-dsbt.c (lm_base): Update.
11199 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11200 Update.
11201 * solib-irix.c (locate_base): Update.
11202 * solib-som.c (som_solib_create_inferior_hook)
11203 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11204 Update.
11205 * solib-spu.c (spu_enable_break): Update.
11206 * solib-svr4.c (elf_locate_base, enable_break): Update.
11207 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11208 (flush_ea_cache): Update.
11209 * stabsread.c (define_symbol): Update.
11210 * symfile.c (simple_read_overlay_table): Update.
11211 * symtab.c (find_pc_sect_line): Update.
11212 * tracepoint.c (scope_info): Update.
11213 * tui-disasm.c (tui_get_begin_asm_address): Update.
11214 * value.c (value_static_field): Update.
11215
40c1a007
TT
112162014-02-26 Tom Tromey <tromey@redhat.com>
11217
11218 * minsyms.c (prim_record_minimal_symbol_full): Use
11219 SET_MSYMBOL_VALUE_ADDRESS.
11220 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11221 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11222 SET_MSYMBOL_VALUE_ADDRESS.
11223 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11224 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11225
efd66ac6
TT
112262014-02-26 Tom Tromey <tromey@redhat.com>
11227
11228 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11229 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11230 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11231 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11232 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11233 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11234 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11235 * ada-lang.c (ada_main_name): Update.
11236 (ada_lookup_simple_minsym): Update.
11237 (ada_make_symbol_completion_list): Update.
11238 (ada_add_standard_exceptions): Update.
11239 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11240 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11241 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11242 * arm-tdep.c (skip_prologue_function): Update.
11243 (arm_skip_stack_protector, arm_skip_stub): Update.
11244 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11245 (arm_wince_skip_main_prologue): Update.
11246 * auxv.c (ld_so_xfer_auxv): Update.
11247 * avr-tdep.c (avr_scan_prologue): Update.
11248 * ax-gdb.c (gen_var_ref): Update.
11249 * block.c (call_site_for_pc): Update.
11250 * blockframe.c (get_pc_function_start): Update.
11251 (find_pc_partial_function_gnu_ifunc): Update.
11252 * breakpoint.c (create_overlay_event_breakpoint): Update.
11253 (create_longjmp_master_breakpoint): Update.
11254 (create_std_terminate_master_breakpoint): Update.
11255 (create_exception_master_breakpoint): Update.
11256 (resolve_sal_pc): Update.
11257 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11258 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11259 Update.
11260 * c-valprint.c (c_val_print): Update.
11261 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11262 * coffread.c (coff_symfile_read): Update.
11263 * common/agent.c (agent_look_up_symbols): Update.
11264 * dbxread.c (find_stab_function_addr): Update.
11265 (end_psymtab): Update.
11266 * dwarf2loc.c (call_site_to_target_addr): Update.
11267 (func_verify_no_selftailcall): Update.
11268 (tailcall_dump): Update.
11269 (call_site_find_chain_1): Update.
11270 (dwarf_expr_reg_to_entry_parameter): Update.
11271 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11272 (elf_gnu_ifunc_resolve_by_got): Update.
11273 * f-valprint.c (info_common_command): Update.
11274 * findvar.c (read_var_value): Update.
11275 * frame.c (get_prev_frame_1): Update.
11276 (inside_main_func): Update.
11277 * frv-tdep.c (frv_skip_main_prologue): Update.
11278 (frv_frame_this_id): Update.
11279 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11280 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11281 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11282 (gnuv3_skip_trampoline): Update.
11283 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11284 (hppa64_hpux_in_solib_call_trampoline): Update.
11285 (hppa_hpux_skip_trampoline_code): Update.
11286 (hppa64_hpux_search_dummy_call_sequence): Update.
11287 (hppa_hpux_find_import_stub_for_addr): Update.
11288 (hppa_hpux_find_dummy_bpaddr): Update.
11289 * hppa-tdep.c (hppa_symbol_address)
11290 (hppa_lookup_stub_minimal_symbol): Update.
11291 * i386-tdep.c (i386_skip_main_prologue): Update.
11292 (i386_pe_skip_trampoline_code): Update.
11293 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11294 * infcall.c (get_function_name): Update.
11295 * infcmd.c (until_next_command): Update.
11296 * jit.c (jit_breakpoint_re_set_internal): Update.
11297 (jit_inferior_init): Update.
11298 * linespec.c (minsym_found): Update.
11299 (add_minsym): Update.
11300 * linux-fork.c (info_checkpoints_command): Update.
11301 * linux-nat.c (get_signo): Update.
11302 * linux-thread-db.c (inferior_has_bug): Update.
11303 * m32c-tdep.c (m32c_return_value): Update.
11304 (m32c_m16c_address_to_pointer): Update.
11305 (m32c_m16c_pointer_to_address): Update.
11306 * m32r-tdep.c (m32r_frame_this_id): Update.
11307 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11308 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11309 * maint.c (maintenance_translate_address): Update.
11310 * minsyms.c (add_minsym_to_hash_table): Update.
11311 (add_minsym_to_demangled_hash_table): Update.
11312 (msymbol_objfile): Update.
11313 (lookup_minimal_symbol): Update.
11314 (iterate_over_minimal_symbols): Update.
11315 (lookup_minimal_symbol_text): Update.
11316 (lookup_minimal_symbol_by_pc_name): Update.
11317 (lookup_minimal_symbol_solib_trampoline): Update.
11318 (lookup_minimal_symbol_by_pc_section_1): Update.
11319 (lookup_minimal_symbol_and_objfile): Update.
11320 (prim_record_minimal_symbol_full): Update.
11321 (compare_minimal_symbols): Update.
11322 (compact_minimal_symbols): Update.
11323 (build_minimal_symbol_hash_tables): Update.
11324 (install_minimal_symbols): Update.
11325 (terminate_minimal_symbol_table): Update.
11326 (find_solib_trampoline_target): Update.
11327 (minimal_symbol_upper_bound): Update.
11328 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11329 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11330 (mips_skip_pic_trampoline_code): Update.
11331 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11332 * objc-lang.c (selectors_info): Update.
11333 (classes_info): Update.
11334 (find_methods): Update.
11335 (find_imps): Update.
11336 (find_objc_msgsend): Update.
11337 * objfiles.c (objfile_relocate1): Update.
11338 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11339 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11340 * p-valprint.c (pascal_val_print): Update.
11341 * parse.c (write_exp_msymbol): Update.
11342 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11343 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11344 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11345 * printcmd.c (build_address_symbolic): Update.
11346 (sym_info): Update.
11347 (address_info): Update.
11348 * proc-service.c (ps_pglobal_lookup): Update.
11349 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11350 (find_pc_sect_psymtab): Update.
11351 * python/py-framefilter.c (py_print_frame): Update.
11352 * ravenscar-thread.c (get_running_thread_id): Update.
11353 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11354 Update.
11355 * remote.c (remote_check_symbols): Update.
11356 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11357 (rs6000_skip_trampoline_code): Update.
11358 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11359 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11360 * solib-dsbt.c (lm_base): Update.
11361 * solib-frv.c (lm_base): Update.
11362 (main_got): Update.
11363 * solib-irix.c (locate_base): Update.
11364 * solib-som.c (som_solib_create_inferior_hook): Update.
11365 (som_solib_desire_dynamic_linker_symbols): Update.
11366 (link_map_start): Update.
11367 * solib-spu.c (spu_enable_break): Update.
11368 (ocl_enable_break): Update.
11369 * solib-svr4.c (elf_locate_base): Update.
11370 (enable_break): Update.
11371 * spu-tdep.c (spu_get_overlay_table): Update.
11372 (spu_catch_start): Update.
11373 (flush_ea_cache): Update.
11374 * stabsread.c (define_symbol): Update.
11375 (scan_file_globals): Update.
11376 * stack.c (find_frame_funname): Update.
11377 (frame_info): Update.
11378 * symfile.c (simple_read_overlay_table): Update.
11379 (simple_overlay_update): Update.
11380 * symmisc.c (dump_msymbols): Update.
11381 * symtab.c (fixup_section): Update.
11382 (find_pc_sect_line): Update.
11383 (skip_prologue_sal): Update.
11384 (search_symbols): Update.
11385 (print_msymbol_info): Update.
11386 (rbreak_command): Update.
11387 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11388 (completion_list_objc_symbol): Update.
11389 (default_make_symbol_completion_list_break_on): Update.
11390 * tracepoint.c (scope_info): Update.
11391 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11392 (tui_get_begin_asm_address): Update.
11393 * valops.c (find_function_in_inferior): Update.
11394 * value.c (value_static_field): Update.
11395 (value_fn_field): Update.
11396
50e65b17
TT
113972014-02-26 Tom Tromey <tromey@redhat.com>
11398
11399 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11400 bound minimal symbols. Move code that knows about minsym
11401 table layout...
11402 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11403 function.
11404 * minsyms.h (minimal_symbol_upper_bound): Declare.
11405 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11406 minimal_symbol_upper_bound.
11407
1b588015
JB
114082014-02-27 Joel Brobecker <brobecker@adacore.com>
11409
11410 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11411 Use the type's name if its basic type does not have a tag.
11412
dbb9c2b1
JB
114132014-02-27 Joel Brobecker <brobecker@adacore.com>
11414
11415 * dwarf2read.c (read_subrange_type): Add comment.
11416
55426c9d
JB
114172014-02-27 Joel Brobecker <brobecker@adacore.com>
11418
11419 * dwarf2read.c (update_enumeration_type_from_children): New
11420 function, mostly extracted from process_structure_scope.
11421 (read_enumeration_type): Call update_enumeration_type_from_children.
11422 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11423 and flag_flag_enum fields.
11424
f2fce0ca
PA
114252014-02-26 Pedro Alves <palves@redhat.com>
11426
11427 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11428 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11429 to_xfer_partial method.
11430
7a44e40e
PA
114312014-02-26 Pedro Alves <palves@redhat.com>
11432
11433 * target.c (complete_target_initialization): Don't install
11434 default_xfer_partial as to_xfer_partial hook.
11435 (nomemory): Delete.
11436 (update_current_target): Don't INHERIT nor de_fault
11437 deprecated_xfer_memory. Delete de_fault macro.
11438 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11439 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11440 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11441 field.
11442
bd265cd0
PA
114432014-02-26 Pedro Alves <palves@redhat.com>
11444
11445 * go32-nat.c (my_write_child): New function.
11446 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11447 (go32_xfer_partial): New function.
11448 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11449 Instead install a to_xfer_partial hook.
11450
9d46c4e5
PA
114512014-02-26 Pedro Alves <palves@redhat.com>
11452
11453 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11454 to_xfer_partial helper. Rewrite.
11455 (procfs_xfer_partial): New function.
11456 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11457 Install a to_xfer_partial hook.
11458
a1583b1f
PA
114592014-02-26 Pedro Alves <palves@redhat.com>
11460
11461 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11462 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11463 (m32r_xfer_partial): New function.
11464 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11465 Install a to_xfer_partial hook.
11466
6df1b29f
PA
114672014-02-26 Pedro Alves <palves@redhat.com>
11468
11469 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11470 helper.
11471 (mips_xfer_partial): New function.
11472 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11473 hook. Install a to_xfer_partial hook.
11474
dc53a7ad
JB
114752014-02-26 Joel Brobecker <brobecker@adacore.com>
11476
11477 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11478 * gdbtypes.c (create_array_type_with_stride): New function,
11479 renaming create_array_type, but with an added parameter
11480 called "bit_stride".
11481 (create_array_type): Re-implement using
11482 create_array_type_with_stride.
11483 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11484 and DW_AT_bit_stride attributes.
11485
12ab52e9
PA
114862014-02-26 Pedro Alves <palves@redhat.com>
11487
11488 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11489 task-specific breakpoints.
11490
d16461ae
PA
114912014-02-25 Pedro Alves <palves@redhat.com>
11492
11493 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11494 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11495
a8b16220
SS
114962014-02-25 Stan Shebs <stan@codesourcery.com>
11497
11498 * defs.h: Annotate comments for Doxygen.
11499
b9e795ee
TT
115002014-02-25 Tom Tromey <tromey@redhat.com>
11501
11502 * target.h (target_ignore): Don't declare.
11503 * target.c (target_ignore): Remove.
11504
849c862e
JK
115052014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 PR gdb/16626
11508 * auto-load.c (auto_load_objfile_script_1): Change filename to
11509 debugfile.
11510
475109d8
JB
115112014-02-25 Joel Brobecker <brobecker@adacore.com>
11512
11513 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11514 documentation. Adjust prototype to match the target_ops
11515 to_xfer_partial method. Adjust implementation accordingly.
11516
e186c3bd
HZ
115172014-02-25 Hui Zhu <hui@codesourcery.com>
11518
11519 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11520 to_traceframe_info.
11521
6d451942
KB
115222014-02-25 Kevin Buettner <kevinb@redhat.com>
11523
041ab8b4 11524 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11525 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11526 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11527 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11528 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11529 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11530 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11531 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11532 New constants.
11533 (rl78_register_type): Use a data pointer type for SP and
11534 new pseudo registers mentioned above. Use a 16 bit integer
11535 type for all other register pairs.
11536 (rl78_register_name, rl78_g10_register_name): Update for
11537 new pseudo registers.
11538 (rl78_pseudo_register_read): Likewise.
11539 (rl78_pseudo_register_write): Likewise.
11540 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11541 to the newly added pseudo registers.
11542
eddf0bae
DE
115432014-02-24 Doug Evans <dje@google.com>
11544
11545 * value.c (record_latest_value): Fix comment.
11546 * printcmd.c (print_command_1): Remove code to handle -1 return from
11547 record_latest_value.
11548
e96027e0
PA
115492014-02-24 Pedro Alves <palves@redhat.com>
11550
11551 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11552 deprecated_xfer_memory hook.
11553 (procfs_xfer_partial): Call procfs_xfer_memory instead
11554 of the deprecated_xfer_memory target hook.
11555 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11556 helper.
11557
0837c976
YZ
115582014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11559
11560 * windows-nat.c (windows_xfer_shared_libraries): Return
11561 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11562 requested object is TARGET_OBJECT_LIBRARIES.
11563
bc113b4e
YQ
115642014-02-24 Yao Qi <yao@codesourcery.com>
11565
11566 * target.h (enum target_xfer_status)
11567 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11568 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11569 explicitly. New.
11570 * corefile.c (memory_error_message): User updated.
11571 * exec.c (section_table_read_available_memory): Likewise.
11572 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11573 * target.c (target_xfer_status_to_string): Likewise.
11574 (raw_memory_xfer_partial): Likewise.
11575 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11576 * valops.c (read_value_memory): Likewise.
11577 * exec.h: Update comments.
11578
01cb8804
YQ
115792014-02-24 Yao Qi <yao@codesourcery.com>
11580
11581 * target.c (target_xfer_status_to_string): Rename argument err
11582 to status.
11583 * target.h (target_xfer_status_to_string): Update declaration.
11584 Replace target_xfer_error_to_string with
11585 target_xfer_status_to_string in comment.
11586
93063aa6
YQ
115872014-02-24 Yao Qi <yao@codesourcery.com>
11588
11589 * mips-linux-nat.c (super_close): Update its type.
11590 (mips_linux_close): Pass 'self' to super_close.
11591
5c328c05
YQ
115922014-02-24 Yao Qi <yao@codesourcery.com>
11593
11594 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11595 * corefile.c (read_memory): Adjusted.
11596 * target.c (target_write_with_progress): Adjusted.
11597
f73023dd
YQ
115982014-02-23 Yao Qi <yao@codesourcery.com>
11599
11600 Revert two patches:
11601
11602 2013-10-25 Yao Qi <yao@codesourcery.com>
11603
11604 * remote.c (remote_traceframe_info): Return early if
11605 traceframe is not selected.
11606
11607 2013-07-19 Yao Qi <yao@codesourcery.com>
11608
11609 * target.c (update_current_target): Change the default action
11610 of 'to_traceframe_info' from tcomplain to return_zero.
11611 * target.h (struct target_ops) <to_traceframe_info>: Add more
11612 comments.
11613
5a2eb0ef
YQ
116142014-02-23 Yao Qi <yao@codesourcery.com>
11615
11616 * valops.c (read_value_memory): Rewrite it. Call
11617 target_xfer_partial in a loop.
11618 * exec.h (section_table_available_memory): Remove declaration.
11619 Move comments to ...
11620 * exec.c (section_table_available_memory): ... here. Make it
11621 static.
11622
1ee79381
YQ
116232014-02-23 Yao Qi <yao@codesourcery.com>
11624
11625 * exec.c (section_table_read_available_memory): New function.
11626 * exec.h (section_table_read_available_memory): Declare.
11627 * ctf.c (ctf_xfer_partial): Call
11628 section_table_read_available_memory.
11629 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11630
1ca49d37
YQ
116312014-02-23 Yao Qi <yao@codesourcery.com>
11632
11633 * ctf.c (ctf_xfer_partial): Move code to ...
11634 * exec.c (exec_read_partial_read_only): ... it. New function.
11635 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11636 * tracefile.c: Include "exec.h".
11637 * exec.h (exec_read_partial_read_only): Declare.
11638
a283690e
YQ
116392014-02-23 Yao Qi <yao@codesourcery.com>
11640
11641 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11642 (tfile_has_memory): Remove.
11643 (init_tfile_ops): Don't set fields to_has_all_memory and
11644 to_has_memory of tfile_ops.
11645 * tracefile.c (tracefile_has_all_memory): New function.
11646 (tracefile_has_memory): New function.
11647 (init_tracefile_ops): Initialize fields to_has_all_memory and
11648 to_has_memory of 'ops'.
11649
12e03cd0
YQ
116502014-02-23 Yao Qi <yao@codesourcery.com>
11651
11652 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11653 (ctf_thread_alive, ctf_get_trace_status): Remove.
11654 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11655 init_tracefile_ops.
11656 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11657 (tfile_has_stack, tfile_has_registers): Remove.
11658 (tfile_thread_alive): Remove.
11659 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11660 init_tracefile_ops.
11661 * tracefile.c (tracefile_has_stack): New function.
11662 (tracefile_has_registers): New function.
11663 (tracefile_thread_alive): New function.
11664 (tracefile_get_trace_status): New function.
11665 (init_tracefile_ops): New function.
11666 * tracefile.h (init_tracefile_ops): Declare.
11667
11395323
YQ
116682014-02-23 Yao Qi <yao@codesourcery.com>
11669
11670 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11671 (O_LARGEFILE): Likewise.
11672 (tfile_ops): Likewise.
11673 (TRACE_HEADER_SIZE): Likewise.
11674 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11675 (cur_data_size): Likewise.
11676 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11677 (tfile_close, tfile_files_info): Likewise.
11678 (tfile_get_trace_status): Likewise.
11679 (tfile_get_tracepoint_status): Likewise.
11680 (tfile_get_traceframe_address): Likewise.
11681 (tfile_trace_find, match_blocktype): Likewise.
11682 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11683 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11684 (tfile_get_trace_state_variable_value): Likewise.
11685 (tfile_has_all_memory, tfile_has_memory): Likewise.
11686 (tfile_has_stack, tfile_has_registers): Likewise.
11687 (tfile_thread_alive, build_traceframe_info): Likewise.
11688 (tfile_traceframe_info, init_tfile_ops): Likewise.
11689 (_initialize_tracepoint): Don't call init_tfile_ops
11690 and add_target_with_completer.
11691 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11692 exec.h, completer.h and filenames.h.
11693 (_initialize_tracefile_tfile): New function.
11694
7951c4eb
YQ
116952014-02-23 Yao Qi <yao@codesourcery.com>
11696
11697 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11698 tracefile-tfile.o.
11699 (HFILES_NO_SRCDIR): Add tracefile.h.
11700 * ctf.c: Include "tracefile.h".
11701 * tracefile.h: New file.
11702 * tracefile.c: New file
11703 * tracefile-tfile.c: New file.
11704 * tracepoint.c: Include "tracefile.h".
11705 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11706 (stop_reason_names): Add const.
11707 (trace_file_writer_xfree): Move it to tracefile.c.
11708 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11709 (trace_save_ctf): Likewise.
11710 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11711 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11712 (tfile_write_header, tfile_write_regblock_type): Likewise.
11713 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11714 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11715 (tfile_write_raw_data, tfile_end): Likewise.
11716 (tfile_trace_file_writer_new): Likewise.
11717 (free_uploaded_tp): Make it extern.
11718 (free_uploaded_tsv): Make it extern.
11719 (_initialize_tracepoint): Move code to register command 'tsave'
11720 to tracefile.c.
11721 * tracepoint.h (stop_reason_names): Declare.
11722 (struct trace_frame_write_ops): Move it to tracefile.h.
11723 (struct trace_file_write_ops): Likewise.
11724 (struct trace_file_writer): Likewise.
11725 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11726
184cd072
JK
117272014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11728
11729 PR gdb/16594
11730 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11731 process name.
11732 (get_cores_used_by_process): New parameter num_cores, use it.
11733 (linux_xfer_osdata_processes): Pass num_cores to it.
11734 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11735 process name.
11736
c63528fc
AK
117372014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11738
11739 * target.c (memory_xfer_partial): Fix length arg in call to
11740 breakpoint_xfer_memory.
11741
d7b30f67
SDJ
117422014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11743
11744 PR tdep/16397
11745 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11746 number comes after the + or - signs. Adjust length of register
11747 name to be extracted.
11748
8838afaf
TT
117492014-02-20 Tom Tromey <tromey@redhat.com>
11750
11751 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11752 (ada_varobj_ops): Mark "extern".
11753
05227d14
TT
117542014-02-20 Tom Tromey <tromey@redhat.com>
11755
11756 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11757
1254eefc
DE
117582014-02-20 Doug Evans <xdje42@gmail.com>
11759
11760 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11761 All callers updated.
11762 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11763 All callers updated.
11764 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11765 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11766
adde2bff
DE
117672014-02-20 lin zuojian <manjian2006@gmail.com>
11768 Joel Brobecker <brobecker@adacore.com>
11769 Doug Evans <xdje42@gmail.com>
11770
11771 PR symtab/16581
11772 * dwarf2read.c (struct die_info): New member in_process.
11773 (reset_die_in_process): New function.
11774 (process_die): Set it at the start, reset when returning.
11775 (inherit_abstract_dies): Only call process_die if origin_child_die
11776 not already being processed.
11777
3be75f87
JB
117782014-02-20 Joel Brobecker <brobecker@adacore.com>
11779
11780 * windows-nat.c (handle_unload_dll): Add function documentation.
11781 (do_initial_windows_stuff): Add comment explaining why we wait
11782 until after inferior initialization has finished before
11783 processing all DLLs.
11784
47f7ffdb
JB
117852014-02-20 Joel Brobecker <brobecker@adacore.com>
11786
11787 * windows-nat.c (get_module_name): Delete.
11788 (windows_get_exec_module_filename): New function, mostly
11789 inspired from get_module_name.
11790 (windows_pid_to_exec_file): Replace call to get_module_name
11791 by call to windows_get_exec_module_filename.
11792
1cd9feab
JB
117932014-02-20 Joel Brobecker <brobecker@adacore.com>
11794
11795 * windows-nat.c (handle_load_dll): Rewrite this function's
11796 introductory comment. Remove code using get_module_name
11797 to get the DLL's name.
11798
ea39ad35
JB
117992014-02-20 Joel Brobecker <brobecker@adacore.com>
11800
11801 * windows-nat.c (get_windows_debug_event): Ignore
11802 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11803 if windows_initialization_done == 0.
11804 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11805 Adjust implementation to always load all DLLs.
11806 (do_initial_windows_stuff): Replace call to
11807 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11808
95060284
JB
118092014-02-20 Joel Brobecker <brobecker@adacore.com>
11810
11811 * windows-nat.c (_initialize_windows_nat): Deprecate the
11812 "dll-symbols" command. Turn the "add-shared-symbol-files"
11813 and "assf" aliases into commands, and deprecate them as well.
11814 * NEWS: Add entry explaining that "dll-symbols" and its two
11815 aliases are now deprecated.
11816
8d4fdb12
JB
118172014-02-20 Joel Brobecker <brobecker@adacore.com>
11818
11819 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11820 new-line in debug string. Remove trailing spaces.
11821
1b281443
SS
118222014-02-19 Stan Shebs <stan@codesourcery.com>
11823
11824 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11825
f7bd0f78
SC
118262014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11827
11828 * NEWS: Add entry for the new feature
11829 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11830 and class values.
11831
399ebc3d
SS
118322014-02-19 Stan Shebs <stan@codesourcery.com>
11833
11834 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11835
c658158d
PA
118362014-02-19 Pedro Alves <palves@redhat.com>
11837
11838 * common/ptid.h (struct ptid): Mention that process_stratum
11839 targets should prefer ptid.lwp.
11840
ba348170
PA
118412014-02-19 Pedro Alves <palves@redhat.com>
11842
11843 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11844 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11845 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11846 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11847 store remote thread ids rather than ptid.tid.
11848 (_initialize_remote): Adjust.
11849
ac01945b
TT
118502014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target.c (target_get_unwinder): Rewrite.
11853 (target_get_tailcall_unwinder): Rewrite.
11854 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11855 (record_btrace_to_get_tailcall_unwinder): New function.
11856 (init_record_btrace_ops): Update.
11857 * target.h (struct target_ops) <to_get_unwinder,
11858 to_get_tailcall_unwinder>: Now function pointers. Use
11859 TARGET_DEFAULT_RETURN.
11860
8476dc92
TT
118612014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11864 argument.
11865 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11866
c0eca49f
TT
118672014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11870 directly.
11871 * target-delegates.c: Rebuild.
11872 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11873 TARGET_DEFAULT_FUNC.
11874 * target.c (default_target_decr_pc_after_break): Rename from
11875 forward_target_decr_pc_after_break. Simplify.
11876 (target_decr_pc_after_break): Rely on delegation.
11877
596b6b39
TT
118782014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target.c (update_current_target): Do not INHERIT to_doc or
11881 to_magic. Do not de_fault to_open or to_close.
11882
b427c1bc
TT
118832014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * gcore.h (objfile_find_memory_regions): Declare.
11886 * gcore.c (objfile_find_memory_regions): No longer static. Add
11887 "self" argument.
11888 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11889 * exec.c: Include gcore.h.
11890 (exec_set_find_memory_regions): Remove.
11891 (exec_find_memory_regions): Remove.
11892 (exec_do_find_memory_regions): Remove.
11893 (init_exec_ops): Update.
11894 * defs.h (exec_set_find_memory_regions): Remove.
11895
9b144037
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.h (struct target_ops) <to_extra_thread_info,
11900 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11901 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11902 not 0, in TARGET_DEFAULT_RETURN.
11903
555bbdeb
TT
119042014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target.c (complete_target_initialization): Remove casts. Use
11907 return_zero_has_execution.
11908 (return_zero): Add "ignore" argument.
11909 (return_zero_has_execution): New function.
11910 (init_dummy_target): Remove casts. Use
11911 return_zero_has_execution.
11912
be4ddd36
TT
119132014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target.c (update_current_target): Update comments. Do not
11916 INHERIT to_stratum.
11917
2117c711
TT
119182014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11921 needed.
11922 * corelow.c (core_read_description): Delegate when needed.
11923 * remote.c (remote_read_description): Delegate when needed.
11924 * target-delegates.c: Rebuild.
11925 * target.c (target_read_description): Rewrite.
11926 * target.h (struct target_ops) <to_read_description>: Update
11927 comment. Use TARGET_DEFAULT_RETURN.
11928
e88ef65c
TT
119292014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * target-delegates.c: Rebuild.
11932 * target.c (update_current_target): Don't inherit or default
11933 to_can_run.
11934 (find_default_run_target): Check against delegate_can_run.
11935 * target.h (struct target_ops) <to_can_run>: Use
11936 TARGET_DEFAULT_RETURN.
11937
86a0854a
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target-delegates.c: Rebuild.
11941 * target.c (target_disconnect): Unconditionally delegate.
11942 * target.h (struct target_ops) <to_disconnect>: Use
11943 TARGET_DEFAULT_NORETURN.
11944
ee97f592
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * record.c (record_stop): Unconditionally delegate.
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_stop_recording): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_stop_recording>: Use
11951 TARGET_DEFAULT_IGNORE.
11952
6dc7fcf4
TT
119532014-02-19 Tom Tromey <tromey@redhat.com>
11954
11955 * target-delegates.c: Rebuild.
11956 * target.c (target_enable_btrace): Unconditionally delegate.
11957 * target.h (struct target_ops) <to_enable_btrace>: Use
11958 TARGET_DEFAULT_NORETURN.
11959
eb5b20d4
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (target_read_btrace): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_read_btrace>: Use
11965 TARGET_DEFAULT_NORETURN.
11966
9ace480d
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (target_teardown_btrace): Unconditionally delegate.
11971 * target.h (struct target_ops) <to_teardown_btrace>: Use
11972 TARGET_DEFAULT_NORETURN.
11973
8dc292d3
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target-delegates.c: Rebuild.
11977 * target.c (target_disable_btrace): Unconditionally delegate.
11978 * target.h (struct target_ops) <to_disable_btrace>: Use
11979 TARGET_DEFAULT_NORETURN.
11980
58a5184e
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target-delegates.c: Rebuild.
11984 * target.c (default_search_memory): New function.
11985 (simple_search_memory): Update comment.
11986 (target_search_memory): Unconditionally delegate.
11987 * target.h (struct target_ops) <to_search_memory>: Use
11988 TARGET_DEFAULT_FUNC.
11989
8de71aab
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * auxv.c (default_auxv_parse): No longer static.
11993 (target_auxv_parse): Unconditionally delegate.
11994 * auxv.h (default_auxv_parse): Declare.
11995 * target-delegates.c: Rebuild.
11996 * target.c: Include auxv.h.
11997 * target.h (struct target_ops) <to_auxv_parse>: Use
11998 TARGET_DEFAULT_FUNC.
11999
6b2c5a57
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_memory_map): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_memory_map>: Use
12005 TARGET_DEFAULT_RETURN.
12006
cbffc065
TT
120072014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target-delegates.c: Rebuild.
12010 * target.c (target_thread_alive): Unconditionally delegate.
12011 * target.h (struct target_ops) <to_thread_alive>: Use
12012 TARGET_DEFAULT_RETURN.
12013
f09e2107
TT
120142014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_save_record): Unconditionally delegate.
12018 * target.h (struct target_ops) <to_save_record>: Use
12019 TARGET_DEFAULT_NORETURN.
12020
07366925
TT
120212014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target-delegates.c: Rebuild.
12024 * target.c (target_delete_record): Unconditionally delegate.
12025 * target.h (struct target_ops) <to_delete_record>: Use
12026 TARGET_DEFAULT_NORETURN.
12027
dd2e9d25
TT
120282014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (target_record_is_replaying): Unconditionally
12032 delegate.
12033 * target.h (struct target_ops) <to_record_is_replaying>: Use
12034 TARGET_DEFAULT_RETURN.
12035
671e76cc
TT
120362014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (target_goto_record_begin): Unconditionally delegate.
12040 * target.h (struct target_ops) <to_goto_record_begin>: Use
12041 TARGET_DEFAULT_NORETURN.
12042
e9179bb3
TT
120432014-02-19 Tom Tromey <tromey@redhat.com>
12044
12045 * target-delegates.c: Rebuild.
12046 * target.c (target_goto_record_end): Unconditionally delegate.
12047 * target.h (struct target_ops) <to_goto_record_end>: Use
12048 TARGET_DEFAULT_NORETURN.
12049
05969c84
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target-delegates.c: Rebuild.
12053 * target.c (target_goto_record): Unconditionally delegate.
12054 * target.h (struct target_ops) <to_goto_record>: Use
12055 TARGET_DEFAULT_NORETURN.
12056
3679abfa
TT
120572014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target-delegates.c: Rebuild.
12060 * target.c (target_insn_history): Unconditionally delegate.
12061 * target.h (struct target_ops) <to_insn_history>: Use
12062 TARGET_DEFAULT_NORETURN.
12063
8444ab58
TT
120642014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target-delegates.c: Rebuild.
12067 * target.c (target_insn_history_from): Unconditionally delegate.
12068 * target.h (struct target_ops) <to_insn_history_from>: Use
12069 TARGET_DEFAULT_NORETURN.
12070
c29302cc
TT
120712014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * target-delegates.c: Rebuild.
12074 * target.c (target_insn_history_range): Unconditionally delegate.
12075 * target.h (struct target_ops) <to_insn_history_range>: Use
12076 TARGET_DEFAULT_NORETURN.
12077
170049d4
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target-delegates.c: Rebuild.
12081 * target.c (target_call_history): Unconditionally delegate.
12082 * target.h (struct target_ops) <to_call_history>: Use
12083 TARGET_DEFAULT_NORETURN.
12084
16fc27d6
TT
120852014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target-delegates.c: Rebuild.
12088 * target.c (target_call_history_from): Unconditionally delegate.
12089 * target.h (struct target_ops) <to_call_history_from>: Use
12090 TARGET_DEFAULT_NORETURN.
12091
115d9817
TT
120922014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (target_call_history_range): Unconditionally delegate.
12096 * target.h (struct target_ops) <to_call_history_range>: Use
12097 TARGET_DEFAULT_NORETURN.
12098
eb276a6b
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target-delegates.c: Rebuild.
12102 * target.c (target_verify_memory): Unconditionally delegate.
12103 * target.h (struct target_ops) <to_verify_memory>: Use
12104 TARGET_DEFAULT_NORETURN.
12105
9e538d0d
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (target_core_of_thread): Unconditionally delegate.
12110 * target.h (struct target_ops) <to_core_of_thread>: Use
12111 TARGET_DEFAULT_RETURN.
12112
f6fb2925
TT
121132014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target-delegates.c: Rebuild.
12116 * target.c (target_flash_done): Unconditionally delegate.
12117 * target.h (struct target_ops) <to_flash_done>: Use
12118 TARGET_DEFAULT_NORETURN.
12119
e8a6c6ac
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target-delegates.c: Rebuild.
12123 * target.c (target_flash_erase): Unconditionally delegate.
12124 * target.h (struct target_ops) <to_flash_erase>: Use
12125 TARGET_DEFAULT_NORETURN.
12126
7e35c012
TT
121272014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * target-delegates.c: Rebuild.
12130 * target.c (target_get_section_table): Unconditionally delegate.
12131 * target.h (struct target_ops) <to_get_section_table>: Use
12132 TARGET_DEFAULT_RETURN.
12133
770234d3
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target-delegates.c: Rebuild.
12137 * target.c (target_pid_to_str): Unconditionally delegate.
12138 (init_dummy_target): Don't initialize to_pid_to_str.
12139 (default_pid_to_str): Rename from dummy_pid_to_str.
12140 * target.h (struct target_ops) <to_pid_to_str>: Use
12141 TARGET_DEFAULT_FUNC.
12142
09b0dc2b
TT
121432014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target-delegates.c: Rebuild.
12146 * target.c (target_find_new_threads): Unconditionally delegate.
12147 * target.h (struct target_ops) <to_find_new_threads>: Use
12148 TARGET_DEFAULT_RETURN.
12149
7d4f8efa
TT
121502014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target-delegates.c: Rebuild.
12153 * target.c (target_program_signals): Unconditionally delegate.
12154 * target.h (struct target_ops) <to_program_signals>: Use
12155 TARGET_DEFAULT_IGNORE.
12156
035cad7f
TT
121572014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target-delegates.c: Rebuild.
12160 * target.c (target_pass_signals): Unconditionally delegate.
12161 * target.h (struct target_ops) <to_pass_signals>: Use
12162 TARGET_DEFAULT_IGNORE.
12163
8d657035
TT
121642014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target-delegates.c: Rebuild.
12167 * target.c (default_mourn_inferior): New function.
12168 (target_mourn_inferior): Unconditionally delegate.
12169 * target.h (struct target_ops) <to_mourn_inferior>: Use
12170 TARGET_DEFAULT_FUNC.
12171
098dba18
TT
121722014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target-delegates.c: Rebuild.
12175 * target.c (default_follow_fork): New function.
12176 (target_follow_fork): Unconditionally delegate.
12177 * target.h (struct target_ops) <to_follow_fork>: Use
12178 TARGET_DEFAULT_FUNC.
12179
423a4807
TT
121802014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target-delegates.c: Rebuild.
12183 * target.c (target_kill): Unconditionally delegate.
12184 * target.h (struct target_ops) <to_kill>: Use
12185 TARGET_DEFAULT_NORETURN.
12186
6c7e5e5c
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (target_masked_watch_num_registers): Unconditionally
12191 delegate.
12192 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12193 Use TARGET_DEFAULT_RETURN.
12194
8b1c364c
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target-delegates.c: Rebuild.
12198 * target.c (target_remove_mask_watchpoint): Unconditionally
12199 delegate.
12200 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12201 TARGET_DEFAULT_RETURN.
12202
cd4ae029
TT
122032014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target-delegates.c: Rebuild.
12206 * target.c (target_insert_mask_watchpoint): Unconditionally
12207 delegate.
12208 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12209 TARGET_DEFAULT_RETURN.
12210
a134316b
TT
122112014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target-delegates.c: Rebuild.
12214 * target.c (target_ranged_break_num_registers): Unconditionally
12215 delegate.
12216 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12217 Use TARGET_DEFAULT_RETURN.
12218
ad5989bd
TT
122192014-02-19 Tom Tromey <tromey@redhat.com>
12220
12221 * target-delegates.c: Rebuild.
12222 * target.c (target_fetch_registers): Unconditionally delegate.
12223 * target.h (struct target_ops) <to_fetch_registers>: Use
12224 TARGET_DEFAULT_NORETURN.
12225
46ee7e8d
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_stop.
12231 * target.h (struct target_ops) <to_stop>: Use
12232 TARGET_DEFAULT_IGNORE.
12233
843f59ed
TT
122342014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_can_run_breakpoint_commands.
12239 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12240 Use TARGET_DEFAULT_RETURN.
12241
ccfde2a0
TT
122422014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_supports_evaluation_of_breakpoint_conditions.
12247 * target.h (struct target_ops)
12248 <to_supports_evaluation_of_breakpoint_conditions>: Use
12249 TARGET_DEFAULT_RETURN.
12250
0de91722
TT
122512014-02-19 Tom Tromey <tromey@redhat.com>
12252
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_augmented_libraries_svr4_read.
12256 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12257 Use TARGET_DEFAULT_RETURN.
12258
9a7d8b48
TT
122592014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12263 to_can_use_agent.
12264 * target.h (struct target_ops) <to_can_use_agent>: Use
12265 TARGET_DEFAULT_RETURN.
12266
d9db5b21
TT
122672014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12271 to_use_agent.
12272 * target.h (struct target_ops) <to_use_agent>: Use
12273 TARGET_DEFAULT_NORETURN.
12274
92155eeb
TT
122752014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12279 to_traceframe_info.
12280 (return_null): Remove.
12281 * target.h (struct target_ops) <to_traceframe_info>: Use
12282 TARGET_DEFAULT_RETURN.
12283
d6522a22
TT
122842014-02-19 Tom Tromey <tromey@redhat.com>
12285
12286 * target-delegates.c: Rebuild.
12287 * target.c (update_current_target): Don't inherit or default
12288 to_static_tracepoint_markers_by_strid.
12289 * target.h (struct target_ops)
12290 <to_static_tracepoint_markers_by_strid>: Use
12291 TARGET_DEFAULT_NORETURN.
12292
4c3e4425
TT
122932014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_static_tracepoint_marker_at.
12298 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12299 Use TARGET_DEFAULT_RETURN.
12300
dcd6917f
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_set_permissions.
12306 * target.h (struct target_ops) <to_set_permissions>: Use
12307 TARGET_DEFAULT_IGNORE.
12308
22bcceee
TT
123092014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_get_tib_address.
12314 * target.h (struct target_ops) <to_get_tib_address>: Use
12315 TARGET_DEFAULT_NORETURN.
12316
8586ccaa
TT
123172014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12321 to_set_trace_notes.
12322 * target.h (struct target_ops) <to_set_trace_notes>: Use
12323 TARGET_DEFAULT_RETURN.
12324
91df8d1d
TT
123252014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't initialize
12329 to_set_trace_buffer_size.
12330 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12331 TARGET_DEFAULT_IGNORE.
12332
8d526939
TT
123332014-02-19 Tom Tromey <tromey@redhat.com>
12334
12335 * target-delegates.c: Rebuild.
12336 * target.c (update_current_target): Don't inherit or default
12337 to_set_circular_trace_buffer.
12338 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12339 TARGET_DEFAULT_IGNORE.
12340
0bcfeddf
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target-delegates.c: Rebuild.
12344 * target.c (update_current_target): Don't inherit or default
12345 to_set_disconnected_tracing.
12346 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12347 TARGET_DEFAULT_IGNORE.
12348
9249843f
TT
123492014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target-delegates.c: Rebuild.
12352 * target.c (update_current_target): Don't inherit or default
12353 to_get_min_fast_tracepoint_insn_len.
12354 (return_minus_one): Remove.
12355 * target.h (struct target_ops)
12356 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12357
ace92e7d
TT
123582014-02-19 Tom Tromey <tromey@redhat.com>
12359
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_get_raw_trace_data.
12363 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12364 TARGET_DEFAULT_NORETURN.
12365
08120467
TT
123662014-02-19 Tom Tromey <tromey@redhat.com>
12367
12368 * target-delegates.c: Rebuild.
12369 * target.c (update_current_target): Don't inherit or default
12370 to_upload_trace_state_variables.
12371 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12372 Use TARGET_DEFAULT_RETURN.
12373
1e949b00
TT
123742014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_upload_tracepoints.
12379 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12380 TARGET_DEFAULT_RETURN.
12381
a2e6c147
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_save_trace_data.
12387 * target.h (struct target_ops) <to_save_trace_data>: Use
12388 TARGET_DEFAULT_NORETURN.
12389
959bcd0b
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12394 to_get_trace_state_variable_value.
12395 * target.h (struct target_ops)
12396 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12397
afc94e66
TT
123982014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * target-delegates.c: Rebuild.
12401 * target.c (update_current_target): Don't inherit or default
12402 to_trace_find.
12403 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12404
e51c07ea
TT
124052014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target-delegates.c: Rebuild.
12408 * target.c (update_current_target): Don't inherit or default
12409 to_trace_stop.
12410 * target.h (struct target_ops) <to_trace_stop>: Use
12411 TARGET_DEFAULT_NORETURN.
12412
6fea14cd
TT
124132014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target-delegates.c: Rebuild.
12416 * target.c (update_current_target): Don't inherit or default
12417 to_get_tracepoint_status.
12418 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12419 TARGET_DEFAULT_NORETURN.
12420
4072d4ff
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target-delegates.c: Rebuild.
12424 * target.c (update_current_target): Don't inherit or default
12425 to_get_trace_status.
12426 * target.h (struct target_ops) <to_get_trace_status>: Use
12427 TARGET_DEFAULT_RETURN.
12428
25da2e80
TT
124292014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12433 to_trace_start.
12434 * target.h (struct target_ops) <to_trace_start>: Use
12435 TARGET_DEFAULT_NORETURN.
12436
86dd181d
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_trace_set_readonly_regions.
12442 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12443 Use TARGET_DEFAULT_NORETURN.
12444
05c41993
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_disable_tracepoint.
12450 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12451 TARGET_DEFAULT_NORETURN.
12452
151f70f1
TT
124532014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_enable_tracepoint.
12458 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12459 TARGET_DEFAULT_NORETURN.
12460
94eb98b9
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_download_trace_state_variable.
12466 * target.h (struct target_ops) <to_download_trace_state_variable>:
12467 Use TARGET_DEFAULT_NORETURN.
12468
719acc4a
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target-delegates.c: Rebuild.
12472 * target.c (update_current_target): Don't inherit or default
12473 to_can_download_tracepoint.
12474 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12475 TARGET_DEFAULT_RETURN.
12476
9a980a22
TT
124772014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * target-delegates.c: Rebuild.
12480 * target.c (update_current_target): Don't inherit or default
12481 to_download_tracepoint.
12482 * target.h (struct target_ops) <to_download_tracepoint>: Use
12483 TARGET_DEFAULT_NORETURN.
12484
5536135b
TT
124852014-02-19 Tom Tromey <tromey@redhat.com>
12486
12487 * target-delegates.c: Rebuild.
12488 * target.c (update_current_target): Don't inherit or default
12489 to_trace_init.
12490 * target.h (struct target_ops) <to_trace_init>: Use
12491 TARGET_DEFAULT_RETURN.
12492
9409d39e
TT
124932014-02-19 Tom Tromey <tromey@redhat.com>
12494
12495 * target-delegates.c: Rebuild.
12496 * target.c (update_current_target): Don't inherit or default
12497 to_supports_string_tracing.
12498 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12499 TARGET_DEFAULT_RETURN.
12500
aab1b22d
TT
125012014-02-19 Tom Tromey <tromey@redhat.com>
12502
12503 * target-delegates.c: Rebuild.
12504 * target.c (update_current_target): Don't inherit or default
12505 to_supports_enable_disable_tracepoint.
12506 * target.h (struct target_ops)
12507 <to_supports_enable_disable_tracepoint>: Use
12508 TARGET_DEFAULT_RETURN.
12509
a7304748
TT
125102014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_supports_multi_process.
12515 * target.h (struct target_ops) <to_supports_multi_process>: Use
12516 TARGET_DEFAULT_RETURN.
12517
4229b31d
TT
125182014-02-19 Tom Tromey <tromey@redhat.com>
12519
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12522 to_get_ada_task_ptid.
12523 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12524 TARGET_DEFAULT_FUNC.
12525
43eba180
TT
125262014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * target-delegates.c: Rebuild.
12529 * target.c (update_current_target): Don't inherit or default
12530 to_thread_architecture.
12531 * target.h (struct target_ops) <to_thread_architecture>: Use
12532 TARGET_DEFAULT_FUNC.
12533
fe31bf5b
TT
125342014-02-19 Tom Tromey <tromey@redhat.com>
12535
12536 * target-delegates.c: Rebuild.
12537 * target.c (update_current_target): Don't inherit or default
12538 to_execution_direction.
12539 * target.h (struct target_ops) <to_execution_direction>: Use
12540 TARGET_DEFAULT_FUNC.
12541
53e1cfc7
TT
125422014-02-19 Tom Tromey <tromey@redhat.com>
12543
12544 * target-delegates.c: Rebuild.
12545 * target.c (update_current_target): Don't inherit or default
12546 to_can_execute_reverse.
12547 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12548 TARGET_DEFAULT_RETURN.
12549 (target_can_execute_reverse): Unconditionally delegate.
12550
9bb9d61d
TT
125512014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * target-delegates.c: Rebuild.
12554 * target.c (update_current_target): Don't inherit or default
12555 to_goto_bookmark.
12556 (dummy_goto_bookmark): Remove.
12557 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12558 * target.h (struct target_ops) <to_goto_bookmark>: Use
12559 TARGET_DEFAULT_NORETURN.
12560
3dbafbbb
TT
125612014-02-19 Tom Tromey <tromey@redhat.com>
12562
12563 * target-delegates.c: Rebuild.
12564 * target.c (update_current_target): Don't inherit or default
12565 to_get_bookmark.
12566 (dummy_get_bookmark): Remove.
12567 (init_dummy_target): Don't inherit or default to_get_bookmark.
12568 * target.h (struct target_ops) <to_get_bookmark>: Use
12569 TARGET_DEFAULT_NORETURN
12570
16f796b1
TT
125712014-02-19 Tom Tromey <tromey@redhat.com>
12572
12573 * target-delegates.c: Rebuild.
12574 * target.c (update_current_target): Don't inherit or default
12575 to_make_corefile_notes.
12576 (init_dummy_target): Don't initialize to_make_corefile_notes.
12577 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12578 TARGET_DEFAULT_FUNC.
12579
0b5a2719
TT
125802014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_find_memory_regions.
12585 (init_dummy_target): Don't initialize to_find_memory_regions.
12586 * target.h (struct target_ops) <to_find_memory_regions>: Use
12587 TARGET_DEFAULT_FUNC.
12588
d9cb0195
TT
125892014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target-delegates.c: Rebuild.
12592 * target.c (update_current_target): Don't inherit or default
12593 to_log_command.
12594 * target.h (struct target_ops) <to_log_command>: Use
12595 TARGET_DEFAULT_IGNORE.
12596 (target_log_command): Unconditionally delegate.
12597
830ca330
TT
125982014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target-delegates.c: Rebuild.
12601 * target.c (update_current_target): Don't inherit or default
12602 to_pid_to_exec_file.
12603 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12604 TARGET_DEFAULT_RETURN.
12605
825828fc
TT
126062014-02-19 Tom Tromey <tromey@redhat.com>
12607
12608 * target-delegates.c: Rebuild.
12609 * target.c (update_current_target): Don't inherit or default
12610 to_thread_name.
12611 (target_thread_name): Unconditionally delegate.
12612 * target.h (struct target_ops) <to_thread_name>: Use
12613 TARGET_DEFAULT_RETURN.
12614
4a7e6dda
TT
126152014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12619 to_extra_thread_info.
12620 * target.h (struct target_ops) <to_extra_thread_info>: Use
12621 TARGET_DEFAULT_RETURN.
12622
0db88c1d
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target-delegates.c: Rebuild.
12626 * target.c (update_current_target): Don't inherit or default
12627 to_has_exited.
12628 * target.h (struct target_ops) <to_has_exited>: Use
12629 TARGET_DEFAULT_RETURN..
12630
6a9fa051
TT
126312014-02-19 Tom Tromey <tromey@redhat.com>
12632
12633 * target-delegates.c: Rebuild.
12634 * target.c (update_current_target): Don't inherit or default
12635 to_set_syscall_catchpoint.
12636 (return_one): Remove.
12637 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12638 TARGET_DEFAULT_RETURN.
12639
62f64d7a
TT
126402014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_insert_exec_catchpoint.
12645 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12646 TARGET_DEFAULT_RETURN.
12647
cda0f38c
TT
126482014-01-08 Tom Tromey <tromey@redhat.com>
12649
12650 * target-delegates.c: Rebuild.
12651 * target.c (update_current_target): Don't inherit or default
12652 to_insert_exec_catchpoint.
12653 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12654 TARGET_DEFAULT_RETURN.
12655
95c3375e
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target-delegates.c: Rebuild.
12659 * target.c (update_current_target): Don't inherit or default
12660 to_remove_vfork_catchpoint.
12661 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12662 TARGET_DEFAULT_RETURN.
12663
7e18a8dc
TT
126642014-02-19 Tom Tromey <tromey@redhat.com>
12665
12666 * target-delegates.c: Rebuild.
12667 * target.c (update_current_target): Don't inherit or default
12668 to_insert_vfork_catchpoint.
12669 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12670 TARGET_DEFAULT_RETURN.
12671
e1a21fb7
TT
126722014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target-delegates.c: Rebuild.
12675 * target.c (update_current_target): Don't inherit or default
12676 to_remove_fork_catchpoint.
12677 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12678 TARGET_DEFAULT_RETURN.
12679
5958ebeb
TT
126802014-02-19 Tom Tromey <tromey@redhat.com>
12681
12682 * target-delegates.c: Rebuild.
12683 * target.c (update_current_target): Don't inherit or default
12684 to_insert_fork_catchpoint.
12685 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12686 TARGET_DEFAULT_RETURN.
12687
340ba4bf
TT
126882014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target-delegates.c: Rebuild.
12691 * target.c (update_current_target): Don't inherit or default
12692 to_post_startup_inferior.
12693 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12694 TARGET_DEFAULT_IGNORE.
12695
7634da87
TT
126962014-02-19 Tom Tromey <tromey@redhat.com>
12697
12698 * target-delegates.c: Rebuild.
12699 * target.c (update_current_target): Don't inherit or default
12700 to_load.
12701 * target.h (struct target_ops) <to_load>: Use
12702 TARGET_DEFAULT_NORETURN.
12703
e19e919f
TT
127042014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target-delegates.c: Rebuild.
12707 * target.c (update_current_target): Don't inherit or default
12708 to_terminal_info.
12709 * target.h (struct target_ops) <to_terminal_info>: Use
12710 TARGET_DEFAULT_FUNC.
12711
c6ea8f79
TT
127122014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target-delegates.c: Rebuild.
12715 * target.c (update_current_target): Don't inherit or default
12716 to_terminal_save_ours.
12717 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12718 TARGET_DEFAULT_IGNORE.
12719
e4a733f1
TT
127202014-02-19 Tom Tromey <tromey@redhat.com>
12721
12722 * target-delegates.c: Rebuild.
12723 * target.c (update_current_target): Don't inherit or default
12724 to_terminal_ours.
12725 * target.h (struct target_ops) <to_terminal_ours>: Use
12726 TARGET_DEFAULT_IGNORE.
12727
74fcbef9
TT
127282014-02-19 Tom Tromey <tromey@redhat.com>
12729
12730 * target-delegates.c: Rebuild.
12731 * target.c (update_current_target): Don't inherit or default
12732 to_terminal_ours_for_output.
12733 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12734 TARGET_DEFAULT_IGNORE.
12735
ddeaacc9
TT
127362014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target-delegates.c: Rebuild.
12739 * target.c (update_current_target): Don't inherit or default
12740 to_terminal_inferior.
12741 * target.h (struct target_ops) <to_terminal_inferior>: Use
12742 TARGET_DEFAULT_IGNORE.
12743
0343661d
TT
127442014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target-delegates.c: Rebuild.
12747 * target.c (update_current_target): Don't inherit or default
12748 to_terminal_init.
12749 * target.h (struct target_ops) <to_terminal_init>: Use
12750 TARGET_DEFAULT_IGNORE.
12751
77cdffe9
TT
127522014-02-19 Tom Tromey <tromey@redhat.com>
12753
12754 * target-delegates.c: Rebuild.
12755 * target.c (update_current_target): Don't inherit or default
12756 to_can_accel_watchpoint_condition.
12757 * target.h (struct target_ops)
12758 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12759
d03655e4
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target-delegates.c: Rebuild.
12763 * target.c (update_current_target): Don't inherit or default
12764 to_region_ok_for_hw_watchpoint.
12765 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12766 Use TARGET_DEFAULT_FUNC.
12767
65f160a9
TT
127682014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * target-delegates.c: Rebuild.
12771 * target.c (update_current_target): Don't inherit or default
12772 to_watchpoint_addr_within_range.
12773 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12774 Use TARGET_DEFAULT_FUNC.
12775
61dd109f
TT
127762014-02-19 Tom Tromey <tromey@redhat.com>
12777
12778 * target-delegates.c: Rebuild.
12779 * target.c (update_current_target): Don't inherit or default
12780 to_remove_watchpoint.
12781 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12782 TARGET_DEFAULT_NORETURN.
12783
016facd4
TT
127842014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * target-delegates.c: Rebuild.
12787 * target.c (update_current_target): Don't inherit or default
12788 to_insert_watchpoint.
12789 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12790 TARGET_DEFAULT_RETURN.
12791
418dabac
TT
127922014-02-19 Tom Tromey <tromey@redhat.com>
12793
12794 * target-delegates.c: Rebuild.
12795 * target.c (update_current_target): Don't inherit or default
12796 to_remove_hw_breakpoint.
12797 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12798 TARGET_DEFAULT_RETURN.
12799
61b371f9
TT
128002014-02-19 Tom Tromey <tromey@redhat.com>
12801
12802 * target-delegates.c: Rebuild.
12803 * target.c (update_current_target): Don't inherit or default
12804 to_insert_hw_breakpoint.
12805 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12806 TARGET_DEFAULT_RETURN.
12807
52b51d06
TT
128082014-02-19 Tom Tromey <tromey@redhat.com>
12809
12810 * target-delegates.c: Rebuild.
12811 * target.c (update_current_target): Don't inherit or default
12812 to_can_use_hw_breakpoint.
12813 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12814 TARGET_DEFAULT_RETURN.
12815
f86e59b2
TT
128162014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * target-delegates.c: Rebuild.
12819 * target.c (update_current_target): Don't inherit or default
12820 to_files_info.
12821 * target.h (struct target_ops) <to_files_info>: Use
12822 TARGET_DEFAULT_IGNORE.
12823
6c628163
TT
128242014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target-delegates.c: Rebuild.
12827 * target.c (update_current_target): Don't inherit or default
12828 to_store.
12829 * target.h (struct target_ops) <to_store>: Use
12830 TARGET_DEFAULT_NORETURN.
12831
bebd3233
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target-delegates.c: Rebuild.
12835 * target.c (update_current_target): Don't inherit or default
12836 to_post_attach.
12837 * target.h (struct target_ops) <to_post_attach>: Use
12838 TARGET_DEFAULT_IGNORE.
12839
a53f3625
TT
128402014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * target-delegates.c: Rebuild.
12843 * target.c (update_current_target): Don't inherit or default
12844 to_rcmd.
12845 (default_rcmd): New function.
12846 (do_monitor_command): Unconditionally delegate.
12847 * target.h (struct target_ops) <to_rmcd>: Use
12848 TARGET_DEFAULT_FUNC.
12849
e9a29200
TT
128502014-02-19 Tom Tromey <tromey@redhat.com>
12851
12852 * target-delegates.c: Rebuild.
12853 * target.c (init_dummy_target): Don't initialize to_attach.
12854 (target_attach): Unconditionally delegate.
12855 * target.h (struct target_ops) <to_attach>: Use
12856 TARGET_DEFAULT_FUNC.
12857
09da0d0a
TT
128582014-02-19 Tom Tromey <tromey@redhat.com>
12859
12860 * target-delegates.c: Rebuild.
12861 * target.c (target_detach): Unconditionally delegate.
12862 (init_dummy_target): Don't initialize to_detach.
12863 * target.h (struct target_ops) <to_detach>: Use
12864 TARGET_DEFAULT_IGNORE.
12865
5436ff03
TT
128662014-02-19 Tom Tromey <tromey@redhat.com>
12867
12868 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12869 Add argument.
12870 (target_augmented_libraries_svr4_read): Add argument.
12871 * target.c (update_current_target): Update.
12872 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12873 argument.
12874
f0d960ea
TT
128752014-02-19 Tom Tromey <tromey@redhat.com>
12876
12877 * target.h (struct target_ops) <to_call_history_range>: Add
12878 argument.
12879 * target.c (target_call_history_range): Add argument.
12880 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12881 argument.
12882 (record_btrace_call_history_from): Update.
12883
ec0aea04
TT
128842014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_call_history_from>: Add
12887 argument.
12888 * target.c (target_call_history_from): Add argument.
12889 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12890 argument.
12891
5df2fcba
TT
128922014-02-19 Tom Tromey <tromey@redhat.com>
12893
12894 * target.h (struct target_ops) <to_call_history>: Add argument.
12895 * target.c (target_call_history): Add argument.
12896 * record-btrace.c (record_btrace_call_history): Add 'self'
12897 argument.
12898
4e99c6b7
TT
128992014-02-19 Tom Tromey <tromey@redhat.com>
12900
12901 * target.h (struct target_ops) <to_insn_history_range>: Add
12902 argument.
12903 * target.c (target_insn_history_range): Add argument.
12904 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12905 argument.
12906 (record_btrace_insn_history_from): Update.
12907
9abc3ff3
TT
129082014-02-19 Tom Tromey <tromey@redhat.com>
12909
12910 * target.h (struct target_ops) <to_insn_history_from>: Add
12911 argument.
12912 * target.c (target_insn_history_from): Add argument.
12913 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12914 argument.
12915
7a6c5609
TT
129162014-02-19 Tom Tromey <tromey@redhat.com>
12917
12918 * target.h (struct target_ops) <to_insn_history>: Add argument.
12919 * target.c (target_insn_history): Add argument.
12920 * record-btrace.c (record_btrace_insn_history): Add 'self'
12921 argument.
12922
606183ac
TT
129232014-02-19 Tom Tromey <tromey@redhat.com>
12924
12925 * target.h (struct target_ops) <to_goto_record>: Add argument.
12926 * target.c (target_goto_record): Add argument.
12927 * record-full.c (record_full_goto): Add 'self' argument.
12928 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12929
307a1b91
TT
129302014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12933 * target.c (target_goto_record_end): Add argument.
12934 * record-full.c (record_full_goto_end): Add 'self' argument.
12935 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12936
08475817
TT
129372014-02-19 Tom Tromey <tromey@redhat.com>
12938
12939 * target.h (struct target_ops) <to_goto_record_begin>: Add
12940 argument.
12941 * target.c (target_goto_record_begin): Add argument.
12942 * record-full.c (record_full_goto_begin): Add 'self' argument.
12943 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12944 argument.
12945
1c63c994
TT
129462014-02-19 Tom Tromey <tromey@redhat.com>
12947
12948 * target.h (struct target_ops) <to_record_is_replaying>: Add
12949 argument.
12950 * target.c (target_record_is_replaying): Add argument.
12951 * record-full.c (record_full_is_replaying): Add 'self' argument.
12952 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12953 argument.
12954 (record_btrace_xfer_partial, record_btrace_store_registers)
12955 (record_btrace_prepare_to_store, record_btrace_resume)
12956 (record_btrace_wait, record_btrace_decr_pc_after_break)
12957 (record_btrace_find_new_threads, record_btrace_thread_alive):
12958 Update.
12959
d1b55219
TT
129602014-02-19 Tom Tromey <tromey@redhat.com>
12961
12962 * target.h (struct target_ops) <to_delete_record>: Add argument.
12963 * target.c (target_delete_record): Add argument.
12964 * record-full.c (record_full_delete): Add 'self' argument.
12965
1390f529
TT
129662014-02-19 Tom Tromey <tromey@redhat.com>
12967
12968 * target.h (struct target_ops) <to_save_record>: Add argument.
12969 * target.c (target_save_record): Add argument.
12970 * record-full.c (record_full_save): Add 'self' argument.
12971 (record_full_save): Add 'self' argument.
12972
630d6a4a
TT
129732014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * target.h (struct target_ops) <to_info_record>: Add argument.
12976 * target.c (target_info_record): Add argument.
12977 * record.c (info_record_command): Add argument.
12978 * record-full.c (record_full_info): Add 'self' argument.
12979 * record-btrace.c (record_btrace_info): Add 'self' argument.
12980
c6cd7c02
TT
129812014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12984 * target.c (target_stop_recording): Add argument.
12985 * record.c (record_stop): Add argument.
12986 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12987 argument.
12988
39c49f83
TT
129892014-02-19 Tom Tromey <tromey@redhat.com>
12990
12991 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12992 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12993 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12994 argument.
12995 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12996 (_initialize_amd64_linux_nat): Use it.
12997 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12998 (_initialize_i386_linux_nat): Use it.
12999
1777056d
TT
130002014-02-19 Tom Tromey <tromey@redhat.com>
13001
13002 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13003 * target.c (target_teardown_btrace): Add argument.
13004 * remote.c (remote_teardown_btrace): Add 'self' argument.
13005 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13006 argument.
13007 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13008 argument.
13009
25e95349
TT
130102014-02-19 Tom Tromey <tromey@redhat.com>
13011
13012 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13013 * target.c (target_disable_btrace): Add argument.
13014 * remote.c (remote_disable_btrace): Add 'self' argument.
13015 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13016 argument.
13017 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13018 argument.
13019
e3c49f88
TT
130202014-02-19 Tom Tromey <tromey@redhat.com>
13021
13022 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13023 * target.c (target_enable_btrace): Add argument.
13024 * remote.c (remote_enable_btrace): Add 'self' argument.
13025 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13026 argument.
13027 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13028 argument.
13029
fe38f897
TT
130302014-02-19 Tom Tromey <tromey@redhat.com>
13031
13032 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13033 (target_can_use_agent): Add argument.
13034 * target.c (update_current_target): Update.
13035 * remote.c (remote_can_use_agent): Add 'self' argument.
13036 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13037
2c152180
TT
130382014-02-19 Tom Tromey <tromey@redhat.com>
13039
13040 * target.h (struct target_ops) <to_use_agent>: Add argument.
13041 (target_use_agent): Add argument.
13042 * target.c (update_current_target): Update.
13043 * remote.c (remote_use_agent): Add 'self' argument.
13044 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13045
a893e81f
TT
130462014-02-19 Tom Tromey <tromey@redhat.com>
13047
13048 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13049 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13050 (target_traceframe_info): Add argument.
13051 * target.c (update_current_target): Update.
13052 * remote.c (remote_traceframe_info): Add 'self' argument.
13053 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13054
c686c57f
TT
130552014-02-19 Tom Tromey <tromey@redhat.com>
13056
13057 * target.h (target_static_tracepoint_markers_by_strid): Add
13058 argument.
13059 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13060 'self' argument.
13061 * target.c (update_current_target): Update.
13062 * remote.c (struct target_ops)
13063 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13064 * linux-nat.c (struct target_ops)
13065 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13066
61fc905d
TT
130672014-02-19 Tom Tromey <tromey@redhat.com>
13068
13069 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13070 Add argument.
13071 (target_static_tracepoint_marker_at): Add argument.
13072 * target.c (update_current_target): Update.
13073 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13074 argument.
13075
c378d69d
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13079 (target_set_permissions): Add argument.
13080 * target.c (update_current_target): Update.
13081 * remote.c (remote_set_permissions): Add 'self' argument.
13082 (remote_start_remote): Update.
13083
bd7ae0f5
TT
130842014-02-19 Tom Tromey <tromey@redhat.com>
13085
13086 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13087 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13088 (target_get_tib_address): Add argument.
13089 * target.c (update_current_target): Update.
13090 * remote.c (remote_get_tib_address): Add 'self' argument.
13091
d9e68a2c
TT
130922014-02-19 Tom Tromey <tromey@redhat.com>
13093
13094 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13095 (target_set_trace_notes): Add argument.
13096 * target.c (update_current_target): Update.
13097 * remote.c (remote_set_trace_notes): Add 'self' argument.
13098
4da384be
TT
130992014-02-19 Tom Tromey <tromey@redhat.com>
13100
13101 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13102 argument.
13103 (target_set_trace_buffer_size): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13106
736d5b1f
TT
131072014-02-19 Tom Tromey <tromey@redhat.com>
13108
13109 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13110 argument.
13111 (target_set_circular_trace_buffer): Add argument.
13112 * target.c (update_current_target): Update.
13113 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13114 argument.
13115
37b25738
TT
131162014-02-19 Tom Tromey <tromey@redhat.com>
13117
13118 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13119 argument.
13120 (target_set_disconnected_tracing): Add argument.
13121 * target.c (update_current_target): Update.
13122 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13123
0e67620a
TT
131242014-02-19 Tom Tromey <tromey@redhat.com>
13125
13126 * target.h (struct target_ops)
13127 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13128 (target_get_min_fast_tracepoint_insn_len): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13131 argument.
13132
88ee6f45
TT
131332014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13136 argument.
13137 (target_get_raw_trace_data): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13140
181e3713
TT
131412014-02-19 Tom Tromey <tromey@redhat.com>
13142
13143 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13144 Add argument.
13145 (target_upload_trace_state_variables): Add argument.
13146 * target.c (update_current_target): Update.
13147 * remote.c (remote_upload_trace_state_variables): Add 'self'
13148 argument.
13149 (remote_start_remote): Update.
13150
ab6617cc
TT
131512014-02-19 Tom Tromey <tromey@redhat.com>
13152
13153 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13154 argument.
13155 (target_upload_tracepoints): Add argument.
13156 * target.c (update_current_target): Update.
13157 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13158 (remote_start_remote): Update.
13159
dc3decaf
TT
131602014-02-19 Tom Tromey <tromey@redhat.com>
13161
13162 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13163 (target_save_trace_data): Add argument.
13164 * target.c (update_current_target): Update.
13165 * remote.c (remote_save_trace_data): Add 'self' argument.
13166
4011015b
TT
131672014-02-19 Tom Tromey <tromey@redhat.com>
13168
13169 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13170 argument.
13171 * target.h (struct target_ops)
13172 <to_get_trace_state_variable_value>: Add argument.
13173 (target_get_trace_state_variable_value): Add argument.
13174 * target.c (update_current_target): Update.
13175 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13176 argument.
13177 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13178
bd4c6793
TT
131792014-02-19 Tom Tromey <tromey@redhat.com>
13180
13181 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13182 * target.h (struct target_ops) <to_trace_find>: Add argument.
13183 (target_trace_find): Add argument.
13184 * target.c (update_current_target): Update.
13185 * remote.c (remote_trace_find): Add 'self' argument.
13186 * ctf.c (ctf_trace_find): Add 'self' argument.
13187
74499f1b
TT
131882014-02-19 Tom Tromey <tromey@redhat.com>
13189
13190 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13191 (target_trace_stop): Add argument.
13192 * target.c (update_current_target): Update.
13193 * remote.c (remote_trace_stop): Add 'self' argument.
13194
db90e85c
TT
131952014-02-19 Tom Tromey <tromey@redhat.com>
13196
13197 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13198 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13199 argument.
13200 (target_get_tracepoint_status): Add argument.
13201 * target.c (update_current_target): Update.
13202 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13203
8bd200f1
TT
132042014-02-19 Tom Tromey <tromey@redhat.com>
13205
13206 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13207 * target.h (struct target_ops) <to_get_trace_status>: Add
13208 argument.
13209 (target_get_trace_status): Add argument.
13210 * target.c (update_current_target): Update.
13211 * remote.c (remote_get_trace_status): Add 'self' argument.
13212 (remote_start_remote, remote_can_download_tracepoint): Update.
13213 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13214
e2d1aae3
TT
132152014-02-19 Tom Tromey <tromey@redhat.com>
13216
13217 * target.h (struct target_ops) <to_trace_start>: Add argument.
13218 (target_trace_start): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_trace_start): Add 'self' argument.
13221
583f9a86
TT
132222014-02-19 Tom Tromey <tromey@redhat.com>
13223
13224 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13225 Add argument.
13226 (target_trace_set_readonly_regions): Add argument.
13227 * target.c (update_current_target): Update.
13228 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13229 argument.
13230
780b049c
TT
132312014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13234 argument.
13235 (target_disable_tracepoint): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13238
46670d57
TT
132392014-02-19 Tom Tromey <tromey@redhat.com>
13240
13241 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13242 argument.
13243 (target_enable_tracepoint): Add argument.
13244 * target.c (update_current_target): Update.
13245 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13246
559d2b81
TT
132472014-02-19 Tom Tromey <tromey@redhat.com>
13248
13249 * target.h (struct target_ops) <to_download_trace_state_variable>:
13250 Add argument.
13251 (target_download_trace_state_variable): Add argument.
13252 * target.c (update_current_target): Update.
13253 * remote.c (remote_download_trace_state_variable): Add 'self'
13254 argument.
13255
a52a8357
TT
132562014-02-19 Tom Tromey <tromey@redhat.com>
13257
13258 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13259 argument.
13260 (target_can_download_tracepoint): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13263
548f7808
TT
132642014-02-19 Tom Tromey <tromey@redhat.com>
13265
13266 * target.h (struct target_ops) <to_download_tracepoint>: Add
13267 argument.
13268 (target_download_tracepoint): Add argument.
13269 * target.c (update_current_target): Update.
13270 * remote.c (remote_download_tracepoint): Add 'self' argument.
13271
ecae04e1
TT
132722014-02-19 Tom Tromey <tromey@redhat.com>
13273
13274 * target.h (struct target_ops) <to_trace_init>: Add argument.
13275 (target_trace_init): Add argument.
13276 * target.c (update_current_target): Update.
13277 * remote.c (remote_trace_init): Add 'self' argument.
13278
fab5aa7c
TT
132792014-02-19 Tom Tromey <tromey@redhat.com>
13280
13281 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13282 * target.c (target_fileio_readlink): Add argument.
13283 * remote.c (remote_hostio_readlink): Add 'self' argument.
13284 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13285
dbbca37d
TT
132862014-02-19 Tom Tromey <tromey@redhat.com>
13287
13288 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13289 * target.c (target_fileio_unlink): Add argument.
13290 * remote.c (remote_hostio_unlink): Add 'self' argument.
13291 (remote_file_delete): Update.
13292 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13293
df39ea25
TT
132942014-02-19 Tom Tromey <tromey@redhat.com>
13295
13296 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13297 * target.c (target_fileio_close): Add argument.
13298 * remote.c (remote_hostio_close): Add 'self' argument.
13299 (remote_hostio_close_cleanup): Update.
13300 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13301 Update.
13302 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13303
a3be983c
TT
133042014-02-19 Tom Tromey <tromey@redhat.com>
13305
13306 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13307 * target.c (target_fileio_pread): Add argument.
13308 * remote.c (remote_hostio_pread): Add 'self' argument.
13309 (remote_bfd_iovec_pread, remote_file_get): Update.
13310 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13311
0d866f62
TT
133122014-02-19 Tom Tromey <tromey@redhat.com>
13313
13314 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13315 * target.c (target_fileio_pwrite): Add argument.
13316 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13317 (remote_file_put): Update.
13318 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13319
cd897586
TT
133202014-02-19 Tom Tromey <tromey@redhat.com>
13321
13322 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13323 * target.c (target_fileio_open): Add argument.
13324 * remote.c (remote_hostio_open): Add 'self' argument.
13325 (remote_bfd_iovec_open): Add 'self' argument.
13326 (remote_file_put): Add 'self' argument.
13327 (remote_file_get): Add 'self' argument.
13328 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13329
78eff0ec
TT
133302014-02-19 Tom Tromey <tromey@redhat.com>
13331
13332 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13333 Add argument.
13334 (target_can_run_breakpoint_commands): Add argument.
13335 * target.c (update_current_target): Update.
13336 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13337 argument.
13338 (remote_insert_breakpoint): Add 'self' argument.
13339 (remote_insert_hw_breakpoint): Add 'self' argument.
13340 (remote_can_run_breakpoint_commands): Add 'self' argument.
13341
efcc2da7
TT
133422014-02-19 Tom Tromey <tromey@redhat.com>
13343
13344 * target.h (struct target_ops)
13345 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13346 (target_supports_evaluation_of_breakpoint_conditions): Add
13347 argument.
13348 * target.c (update_current_target): Update.
13349 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13350 argument.
13351 (remote_insert_breakpoint): Add 'self' argument.
13352 (remote_insert_hw_breakpoint): Add 'self' argument.
13353 (remote_supports_cond_breakpoints): Add 'self' argument.
13354
6de37a3a
TT
133552014-02-19 Tom Tromey <tromey@redhat.com>
13356
13357 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13358 argument.
13359 (target_supports_string_tracing): Add argument.
13360 * target.c (update_current_target): Update.
13361 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13362
2bfc0540
TT
133632014-02-19 Tom Tromey <tromey@redhat.com>
13364
13365 * target.h (struct target_ops)
13366 <to_supports_disable_randomization>: Add argument.
13367 * target.c (find_default_supports_disable_randomization): Add
13368 argument.
13369 (target_supports_disable_randomization): Add argument.
13370 (find_default_supports_disable_randomization): Add 'self'
13371 argument.
13372 * remote.c (extended_remote_supports_disable_randomization): Add
13373 'self' argument.
13374 (remote_supports_disable_randomization): Add 'self' argument.
13375 (extended_remote_create_inferior): Update.
13376 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13377 'self' argument.
13378
7d178d6a
TT
133792014-02-19 Tom Tromey <tromey@redhat.com>
13380
13381 * target.h (struct target_ops)
13382 <to_supports_enable_disable_tracepoint>: Add argument.
13383 (target_supports_enable_disable_tracepoint): Add argument.
13384 * target.c (update_current_target): Update.
13385 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13386 argument.
13387
86ce2668
TT
133882014-02-19 Tom Tromey <tromey@redhat.com>
13389
13390 * target.h (struct target_ops) <to_supports_multi_process>: Add
13391 argument.
13392 (target_supports_multi_process): Add argument.
13393 * target.c (update_current_target): Update.
13394 * remote.c (remote_supports_multi_process): Add 'self' argument.
13395 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13396 argument.
13397 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13398 argument.
13399
4c612759
TT
134002014-02-19 Tom Tromey <tromey@redhat.com>
13401
13402 * target.h (struct target_ops) <to_execution_direction>: Add
13403 argument.
13404 (target_execution_direction): Add argument.
13405 * target.c (default_execution_direction): Add 'self' argument.
13406 * record-full.c (record_full_execution_direction): Add 'self'
13407 argument.
13408
19db3e69
TT
134092014-02-19 Tom Tromey <tromey@redhat.com>
13410
13411 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13412 argument.
13413 (target_can_execute_reverse): Add argument.
13414 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13415 * record-full.c (record_full_can_execute_reverse): Add 'self'
13416 argument.
13417 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13418 argument.
13419
1e6b91a4
TT
134202014-02-19 Tom Tromey <tromey@redhat.com>
13421
13422 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13423 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13424 argument.
13425 (target_get_ada_task_ptid): Add argument.
13426 * target.c (update_current_target): Update.
13427 (default_get_ada_task_ptid): Add 'self' argument.
13428 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13429 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13430 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13431 argument.
13432 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13433 argument.
13434 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13435 argument.
13436 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13437 argument.
13438 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13439 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13440 argument.
13441
3c80fb48
TT
134422014-02-19 Tom Tromey <tromey@redhat.com>
13443
13444 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13445 (target_goto_bookmark): Add argument.
13446 * target.c (dummy_goto_bookmark): Add 'self' argument.
13447 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13448
dd0e2830
TT
134492014-02-19 Tom Tromey <tromey@redhat.com>
13450
13451 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13452 (target_get_bookmark): Add argument.
13453 * target.c (dummy_get_bookmark): Add 'self' argument.
13454 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13455
fc6691b2
TT
134562014-02-19 Tom Tromey <tromey@redhat.com>
13457
13458 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13459 argument.
13460 (target_make_corefile_notes): Add argument.
13461 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13462 * procfs.c (procfs_make_note_section): Add 'self' argument.
13463 (procfs_make_note_section): Add 'self' argument.
13464 (procfs_make_note_section): Add 'self' argument.
13465 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13466 argument.
13467 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13468 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13469 * exec.c (exec_make_note_section): Add 'self' argument.
13470 (exec_make_note_section): Add 'self' argument.
13471
2e73927c
TT
134722014-02-19 Tom Tromey <tromey@redhat.com>
13473
13474 * target.h (struct target_ops) <to_find_memory_regions>: Add
13475 argument.
13476 (target_find_memory_regions): Add argument.
13477 * target.c (dummy_find_memory_regions): Add 'self' argument.
13478 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13479 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13480 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13481 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13482 * exec. (exec_do_find_memory_regions): New global.
13483 (exec_set_find_memory_regions): Rewrite.
13484 (exec_find_memory_regions): New function.
13485 (init_exec_ops): Use exec_find_memory_regions.
13486
2a9a2795
TT
134872014-02-19 Tom Tromey <tromey@redhat.com>
13488
13489 * target.h (struct target_ops) <to_supports_non_stop>: Add
13490 argument.
13491 * target.c (find_default_supports_non_stop): Add argument.
13492 (target_supports_non_stop): Add argument.
13493 (find_default_supports_non_stop): Add 'self' argument.
13494 * remote.c (remote_supports_non_stop): Add 'self' argument.
13495 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13496
4ab76ea3
TT
134972014-02-19 Tom Tromey <tromey@redhat.com>
13498
13499 * target.h (struct target_ops) <to_log_command>: Add argument.
13500 (target_log_command): Add argument.
13501 * serial.h (serial_log_command): Add 'self' argument.
13502 * serial.c (serial_log_command): Add 'self' argument.
13503
8dd27370
TT
135042014-02-19 Tom Tromey <tromey@redhat.com>
13505
13506 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13507 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13508 argument.
13509 (target_pid_to_exec_file): Add argument.
13510 * target.c (debug_to_pid_to_exec_file): Add argument.
13511 (update_current_target): Update.
13512 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13513 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13514 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13515 (linux_handle_extended_wait): Update.
13516 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13517 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13518 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13519 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13520
1aac633b
TT
135212014-02-19 Tom Tromey <tromey@redhat.com>
13522
13523 * target.h (struct target_ops) <to_rcmd>: Add argument.
13524 (target_rcmd): Add argument.
13525 * target.c (debug_to_rcmd): Add argument.
13526 (update_current_target, do_monitor_command): Update.
13527 * remote.c (remote_rcmd): Add 'self' argument.
13528 * monitor.c (monitor_rcmd): Add 'self' argument.
13529
1eab8a48
TT
135302014-02-19 Tom Tromey <tromey@redhat.com>
13531
13532 * windows-nat.c (windows_stop): Add 'self' argument.
13533 * target.h (struct target_ops) <to_stop>: Add argument.
13534 * target.c (target_stop): Add argument.
13535 (debug_to_stop): Add argument.
13536 (update_current_target): Update.
13537 * remote.c (remote_stop): Add 'self' argument.
13538 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13539 (gdbsim_cntrl_c): Update.
13540 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13541 * procfs.c (procfs_stop): Add 'self' argument.
13542 * nto-procfs.c (procfs_stop): Add 'self' argument.
13543 * monitor.c (monitor_stop): Add 'self' argument.
13544 (monitor_open): Update.
13545 * linux-nat.c (linux_nat_stop): Add argument.
13546 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13547 * gnu-nat.c (gnu_stop): Add 'self' argument.
13548 * darwin-nat.c (darwin_stop): Add 'self' argument.
13549
503a628d
TT
135502014-02-19 Tom Tromey <tromey@redhat.com>
13551
13552 * target.h (struct target_ops) <to_thread_name>: Add argument.
13553 * target.c (target_thread_name): Add argument.
13554 (update_current_target): Update.
13555 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13556
c15906d8
TT
135572014-02-19 Tom Tromey <tromey@redhat.com>
13558
13559 * target.h (struct target_ops) <to_extra_thread_info>: Add
13560 argument.
13561 (target_extra_thread_info): Add argument.
13562 * target.c (update_current_target): Update.
13563 * remote.c (remote_threads_extra_info): Add 'self' argument.
13564 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13565 argument.
13566 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13567 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13568 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13569 argument.
13570 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13571 argument.
13572 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13573 argument.
13574 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13575 argument.
13576
daf5e9b6
TT
135772014-02-19 Tom Tromey <tromey@redhat.com>
13578
13579 * target.h (struct target_ops) <to_program_signals>: Add argument.
13580 * target.c (target_program_signals): Add argument.
13581 * remote.c (remote_program_signals): Add 'self' argument.
13582
94bedb42
TT
135832014-02-19 Tom Tromey <tromey@redhat.com>
13584
13585 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13586 * target.c (target_pass_signals): Add argument.
13587 * remote.c (remote_pass_signals): Add 'self' argument.
13588 (remote_start_remote): Update.
13589 * procfs.c (procfs_pass_signals): Add 'self' argument.
13590 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13591 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13592 (linux_nat_create_inferior, linux_nat_attach): Update.
13593
da82bd6b
TT
135942014-02-19 Tom Tromey <tromey@redhat.com>
13595
13596 * windows-nat.c (windows_can_run): Add 'self' argument.
13597 * target.h (struct target_ops) <to_can_run>: Add argument.
13598 (target_can_run): Add argument.
13599 * target.c (debug_to_can_run): Add argument.
13600 (update_current_target): Update.
13601 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13602 * inf-child.c (inf_child_can_run): Add 'self' argument.
13603 * go32-nat.c (go32_can_run): Add 'self' argument.
13604
d796e1d6
TT
136052014-02-19 Tom Tromey <tromey@redhat.com>
13606
13607 * target.h (struct target_ops) <to_has_exited>: Add argument.
13608 (target_has_exited): Add argument.
13609 * target.c (debug_to_has_exited): Add argument.
13610 (update_current_target): Update.
13611
ff214e67
TT
136122014-02-19 Tom Tromey <tromey@redhat.com>
13613
13614 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13615 argument.
13616 (target_set_syscall_catchpoint): Add argument.
13617 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13618 argument.
13619 * target.c (update_current_target): Update.
13620
758e29d2
TT
136212014-02-19 Tom Tromey <tromey@redhat.com>
13622
13623 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13624 argument.
13625 (target_remove_exec_catchpoint): Add argument.
13626 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13627 (update_current_target): Update.
13628 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13629 argument.
13630
ba025e51
TT
136312014-02-19 Tom Tromey <tromey@redhat.com>
13632
13633 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13634 argument.
13635 (target_insert_exec_catchpoint): Add argument.
13636 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13637 (update_current_target): Update.
13638 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13639 argument.
13640
e98cf0cd
TT
136412014-02-19 Tom Tromey <tromey@redhat.com>
13642
13643 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13644 argument.
13645 (target_remove_vfork_catchpoint): Add argument.
13646 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13647 (update_current_target): Update.
13648 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13649 argument.
13650
3ecc7da0
TT
136512014-02-19 Tom Tromey <tromey@redhat.com>
13652
13653 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13654 argument.
13655 (target_insert_vfork_catchpoint): Add argument.
13656 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13657 (update_current_target): Update.
13658 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13659 argument.
13660
973fc227
TT
136612014-02-19 Tom Tromey <tromey@redhat.com>
13662
13663 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13664 argument.
13665 (target_remove_fork_catchpoint): Add argument.
13666 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13667 (update_current_target): Update.
13668 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13669 argument.
13670
a863b201
TT
136712014-02-19 Tom Tromey <tromey@redhat.com>
13672
13673 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13674 argument.
13675 (target_insert_fork_catchpoint): Add argument.
13676 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13677 (update_current_target): Update.
13678 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13679 argument.
13680
2e97a79e
TT
136812014-02-19 Tom Tromey <tromey@redhat.com>
13682
13683 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13684 argument.
13685 (target_post_startup_inferior): Add argument.
13686 * target.c (debug_to_post_startup_inferior): Add argument.
13687 (update_current_target): Update.
13688 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13689 argument.
13690 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13691 argument.
13692 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13693 argument.
13694 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13695 argument.
13696 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13697 'self' argument.
13698 (super_post_startup_inferior): Likewise.
13699 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13700 'self' argument.
13701 (super_post_startup_inferior): Likewise.
13702 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13703 Add 'self' argument.
13704 (super_post_startup_inferior): Likewise.
13705
71a9f134
TT
137062014-02-19 Tom Tromey <tromey@redhat.com>
13707
13708 * target.h (struct target_ops) <to_load>: Add argument.
13709 * target.c (target_load): Add argument.
13710 (debug_to_load): Add argument.
13711 (update_current_target): Update.
13712 * remote.c (remote_load): Add 'self' argument.
13713 * remote-sim.c (gdbsim_load): Add 'self' argument.
13714 * remote-mips.c (mips_load): Add 'self' argument.
13715 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13716 * monitor.c (monitor_load): Add 'self' argument.
13717 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13718
0a4f40a2
TT
137192014-02-19 Tom Tromey <tromey@redhat.com>
13720
13721 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13722 (target_terminal_info): Add argument.
13723 * target.c (debug_to_terminal_info): Add argument.
13724 (default_terminal_info): Likewise.
13725 * inflow.c (child_terminal_info): Add 'self' argument.
13726 * inferior.h (child_terminal_info): Add 'self' argument.
13727 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13728
ae3bd431
TT
137292014-02-19 Tom Tromey <tromey@redhat.com>
13730
13731 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13732 argument.
13733 (target_terminal_save_ours): Add argument.
13734 * target.c (debug_to_terminal_save_ours): Add argument.
13735 (update_current_target): Update.
13736 * inflow.c (terminal_save_ours): Add 'self' argument.
13737 * inferior.h (terminal_save_ours): Add 'self' argument.
13738
e3594fd1
TT
137392014-02-19 Tom Tromey <tromey@redhat.com>
13740
13741 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13742 (target_terminal_ours): Add argument.
13743 * target.c (debug_to_terminal_ours): Add argument.
13744 (update_current_target): Update.
13745 * remote.c (remote_terminal_ours): Add 'self' argument.
13746 (remote_close): Update.
13747 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13748 * inflow.c (terminal_ours): Add 'self' argument.
13749 * inferior.h (terminal_ours): Add 'self' argument.
13750 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13751
2e1e1a19
TT
137522014-02-19 Pedro Alves <palves@redhat.com>
13753 Tom Tromey <tromey@redhat.com>
13754
13755 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13756 argument.
13757 (target_terminal_ours_for_output): Add argument.
13758 * target.c (debug_to_terminal_ours_for_output): Add argument.
13759 (update_current_target): Update.
13760 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13761 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13762 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13763
d2f640d4
TT
137642014-02-19 Tom Tromey <tromey@redhat.com>
13765
13766 * target.h (struct target_ops) <to_terminal_inferior>: Add
13767 argument.
13768 * target.c (target_terminal_inferior): Add argument.
13769 (update_current_target): Update.
13770 * remote.c (remote_terminal_inferior): Add 'self' argument.
13771 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13772 * inflow.c (terminal_inferior): Add 'self' argument.
13773 * inferior.h (terminal_inferior): Add 'self' argument.
13774 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13775 (go32_terminal_inferior): Add 'self' argument.
13776
c42bf286
TT
137772014-02-19 Tom Tromey <tromey@redhat.com>
13778
13779 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13780 (target_terminal_init): Add argument.
13781 * target.c (debug_to_terminal_init): Add argument.
13782 (update_current_target): Update.
13783 * inflow.c (terminal_init_inferior): Add 'self' argument.
13784 * inferior.h (terminal_init_inferior): Add 'self' argument.
13785 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13786 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13787
c3a5ff89
TT
137882014-02-19 Tom Tromey <tromey@redhat.com>
13789
13790 * target.h (struct target_ops)
13791 <to_can_accel_watchpoint_condition>: Add argument.
13792 (target_can_accel_watchpoint_condition): Add argument.
13793 * target.c (debug_to_can_accel_watchpoint_condition): Add
13794 argument.
13795 (update_current_target): Update.
13796 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13797 'self' argument.
13798
31568a15
TT
137992014-02-19 Tom Tromey <tromey@redhat.com>
13800
13801 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13802 Add argument.
13803 (target_region_ok_for_hw_watchpoint): Add argument.
13804 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13805 (default_region_ok_for_hw_watchpoint): Add argument.
13806 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13807 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13808 argument.
13809 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13810 argument.
13811 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13812 argument.
13813 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13814 'self' argument.
13815 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13816 'self' argument.
13817 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13818 'self' argument.
13819 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13820 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13821 'self' argument.
13822 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13823 Add 'self' argument.
13824
7bb99c53
TT
138252014-02-19 Tom Tromey <tromey@redhat.com>
13826
13827 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13828 argument.
13829 (target_insert_watchpoint): Add argument.
13830 * target.c (debug_to_insert_watchpoint): Add argument.
13831 (update_current_target): Update.
13832 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13833 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13834 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13835 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13836 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13837 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13838 argument.
13839 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13840 (procfs_insert_hw_watchpoint): Add 'self' argument.
13841 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13842 argument.
13843 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13844 argument.
13845 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13846 argument.
13847 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13848 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13849 argument.
13850 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13851 'self' argument.
13852
11b5219a
TT
138532014-02-19 Tom Tromey <tromey@redhat.com>
13854
13855 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13856 argument.
13857 (target_remove_watchpoint): Add argument.
13858 * target.c (debug_to_remove_watchpoint): Add argument.
13859 (update_current_target): Update.
13860 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13861 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13862 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13863 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13864 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13865 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13866 argument.
13867 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13868 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13869 argument.
13870 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13871 argument.
13872 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13873 argument.
13874 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13875 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13876 argument.
13877 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13878 'self' argument.
13879
a64dc96c
TT
138802014-02-19 Tom Tromey <tromey@redhat.com>
13881
13882 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13883 argument.
13884 (target_remove_hw_breakpoint): Add argument.
13885 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13886 (update_current_target): Update.
13887 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13888 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13889 argument.
13890 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13891 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13892 argument.
13893 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13894 'self' argument.
13895
23a26771
TT
138962014-02-19 Tom Tromey <tromey@redhat.com>
13897
13898 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13899 argument.
13900 (target_insert_hw_breakpoint): Add argument.
13901 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13902 (update_current_target): Update.
13903 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13904 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13905 argument.
13906 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13907 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13908 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13909 argument.
13910 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13911 'self' argument.
13912
5461485a
TT
139132014-02-19 Tom Tromey <tromey@redhat.com>
13914
13915 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13916 argument.
13917 (target_can_use_hardware_watchpoint): Add argument.
13918 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13919 (update_current_target): Update.
13920 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13921 argument.
13922 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13923 argument.
13924 * remote.c (remote_check_watch_resources): Add 'self' argument.
13925 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13926 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13927 argument.
13928 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13929 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13930 argument.
13931 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13932 argument.
13933 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13934 argument.
13935 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13936 argument.
13937 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13938 argument.
13939 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13940 argument.
13941 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13942 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13943 argument.
13944 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13945 'self' argument.
13946
f045800c
TT
139472014-02-19 Tom Tromey <tromey@redhat.com>
13948
13949 * target.h (struct target_ops) <to_post_attach>: Add argument.
13950 (target_post_attach): Add argument.
13951 * target.c (debug_to_post_attach): Add argument.
13952 (update_current_target): Update.
13953 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13954 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13955 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13956 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13957 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13958
de90e03d
TT
139592014-02-19 Tom Tromey <tromey@redhat.com>
13960
13961 * windows-nat.c (windows_close): Add 'self' argument.
13962 * tracepoint.c (tfile_close): Add 'self' argument.
13963 * target.h (struct target_ops) <to_close>: Add argument.
13964 * target.c (target_close): Add argument.
13965 (update_current_target): Update.
13966 * remote.c (remote_close): Add 'self' argument.
13967 * remote-sim.c (gdbsim_close): Add 'self' argument.
13968 * remote-mips.c (mips_close): Add 'self' argument.
13969 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13970 * record-full.c (record_full_close): Add 'self' argument.
13971 * record-btrace.c (record_btrace_close): Add 'self' argument.
13972 * monitor.h (monitor_close): Add 'self' argument.
13973 * monitor.c (monitor_close): Add 'self' argument.
13974 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13975 * linux-nat.c (linux_nat_close): Add argument.
13976 * go32-nat.c (go32_close): Add 'self' argument.
13977 * exec.c (exec_close_1): Add 'self' argument.
13978 * ctf.c (ctf_close): Add 'self' argument.
13979 * corelow.c (core_close): Add 'self' argument.
13980 (core_close_cleanup): Update.
13981 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13982 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13983
9dd130a0
TT
139842014-02-19 Tom Tromey <tromey@redhat.com>
13985
13986 * remote.c (remote_load): New function.
13987 (init_remote_ops): Use it.
13988
46917d26
TT
139892014-02-19 Tom Tromey <tromey@redhat.com>
13990
13991 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13992 argument.
13993 * common/linux-btrace.h (linux_supports_btrace): Update.
13994 * remote.c (remote_supports_btrace): Add "self" argument.
13995 * target-delegates.c: Rebuild.
13996 * target.c (target_supports_btrace): Remove.
13997 * target.h (struct target_ops) <to_supports_btrace>: Add
13998 target_ops argument.
13999 (target_supports_btrace): New define.
14000
6b84065d
TT
140012014-02-19 Tom Tromey <tromey@redhat.com>
14002
14003 * record-full.c (record_full_beneath_to_resume_ops)
14004 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14005 (record_full_beneath_to_wait)
14006 (record_full_beneath_to_store_registers_ops)
14007 (record_full_beneath_to_store_registers)
14008 (record_full_beneath_to_xfer_partial_ops)
14009 (record_full_beneath_to_xfer_partial)
14010 (record_full_beneath_to_insert_breakpoint_ops)
14011 (record_full_beneath_to_insert_breakpoint)
14012 (record_full_beneath_to_remove_breakpoint_ops)
14013 (record_full_beneath_to_remove_breakpoint)
14014 (record_full_beneath_to_stopped_by_watchpoint)
14015 (record_full_beneath_to_stopped_data_address)
14016 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14017 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14018 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14019 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14020 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14021 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14022 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14023 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14024 (record_full_resume, record_full_wait_1)
14025 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14026 (record_full_store_registers, record_full_xfer_partial)
14027 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14028 (record_full_async, record_full_core_xfer_partial): Use target
14029 delegation.
14030 * target-delegates.c: Rebuild.
14031 * target.c (current_xfer_partial): Remove.
14032 (update_current_target): Do not INHERIT or de_fault
14033 to_insert_breakpoint, to_remove_breakpoint,
14034 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14035 to_is_async_p, to_async. Do not set to_xfer_partial field.
14036 (default_xfer_partial): Simplify.
14037 (current_xfer_partial): Remove.
14038 (target_wait, target_resume): Simplify.
14039 (find_default_can_async_p, find_default_is_async_p): Update.
14040 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14041 to_xfer_partial, to_stopped_by_watchpoint,
14042 to_stopped_data_address.
14043 (target_store_registers): Simplify.
14044 (forward_target_remove_breakpoint)
14045 (forward_target_insert_breakpoint): Remove.
14046 (target_remove_breakpoint, target_insert_breakpoint)
14047 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14048 * target.h (struct target_ops) <to_resume, to_wait,
14049 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14050 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14051 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14052 markup.
14053 (forward_target_remove_breakpoint)
14054 (forward_target_insert_breakpoint): Remove.
14055 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14056 directly.
14057 (record_btrace_insert_breakpoint): Delegate directly.
14058
1101cb7b
TT
140592014-02-19 Tom Tromey <tromey@redhat.com>
14060
14061 PR build/7701:
14062 * target-delegates.c: New file.
14063 * target.c: Include target-delegates.c.
14064 (init_dummy_target): Call install_dummy_methods.
14065 (complete_target_initialization): Call install_delegators.
14066 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14067 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14068 * make-target-delegates: New file.
14069
8b06beed
TT
140702014-02-19 Tom Tromey <tromey@redhat.com>
14071
14072 * record.c (find_record_target): Use find_target_at.
14073 * target.c (find_target_at): New function.
14074 * target.h (find_target_at): Declare.
14075
6a109b6b
TT
140762014-02-19 Tom Tromey <tromey@redhat.com>
14077
14078 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14079 Add 'ops' argument.
14080 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14081 'ops' argument.
14082 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14083 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14084 'ops' argument.
14085 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14086 argument.
14087 * linux-nat.c (save_sigtrap): Update.
14088 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14089 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14090 (linux_nat_close): Update.
14091 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14092 argument.
14093 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14094 argument.
14095 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14096 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14097 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14098 (tmp_to_async): Add 'ops' argument.
14099 (record_full_stopped_by_watchpoint, record_full_async)
14100 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14101 argument.
14102 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14103 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14104 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14105 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14106 (remote_is_async_p, remote_async): Add 'ops' argument.
14107 (remote_stopped_data_address): Update.
14108 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14109 * target.c (update_current_target)
14110 (find_default_can_async_p, find_default_is_async_p): Update.
14111 (init_dummy_target): Update.
14112 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14113 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14114 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14115 (target_can_async_p, target_is_async_p, target_async)
14116 (target_stopped_by_watchpoint): Update.
14117
e095146b
YQ
141182014-02-19 Yao Qi <yao@codesourcery.com>
14119
14120 PR gdb/16220
14121 * gdbarch.sh: Remove startup_gdbarch.
14122 * gdbarch.c: Regenerated.
14123 * gdbarch.h: Likewise.
14124
bc3c6b36
KB
141252014-02-17 Kevin Buettner <kevinb@redhat.com>
14126
14127 * rl78-tdep.c (rl78_g10_register_name): New function.
14128 (rl78_return_value): Add g10 support.
14129 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14130 g10.
14131
98dc0167 141322014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
14133
14134 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14135 (SUBDIR_GUILE_SRCS): Ditto.
14136 (scm-gsmob.o): Ditto.
14137
842c05cd
YQ
141382014-02-17 Yao Qi <yao@codesourcery.com>
14139
14140 * gnu-nat.c (ILL_RPC): Declare defined function.
14141
25c0bd04
YQ
141422014-02-17 Yao Qi <yao@codesourcery.com>
14143
14144 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14145 mach_msg_type_number_t.
14146 (gnu_write_inferior): Likewise.
14147
a9a758e3
YQ
141482014-02-17 Yao Qi <yao@codesourcery.com>
14149
14150 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14151 in format string.
14152 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14153 (inf_validate_procs, inf_signal): Likewise.
14154 (S_exception_raise_request): Likewise.
14155 (do_mach_notify_dead_name): Likewise.
14156 (steal_exc_port): Likewise.
14157 (gnu_read_inferior): Change 'copy_count''s type to
14158 mach_msg_type_number_t.
14159 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14160 format string.
14161
bae8023e
TS
141622014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14163
c82f56d9
TS
14164 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14165 flag. Adjust all users; in particular...
14166 (gnu_wait): ..., don't decrement its value in here...
14167 (gnu_create_inferior): ..., and instead set the flag in here,
14168 around the startup_inferior call, and call that one with
14169 START_INFERIOR_TRAPS_EXPECTED.
14170
3398af6a
TS
14171 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14172 (ILL_RPC): ... new macro.
14173 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14174 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14175 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14176 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14177 functions with ILL_RPC macro.
14178 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14179 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14180 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14181 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14182 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14183 (S_proc_getlogin_reply, S_proc_getsid_reply)
14184 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14185 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14186 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14187 (S_proc_getnports_reply, S_proc_is_important_reply)
14188 (S_proc_get_code_reply): New stub functions, generated with
14189 ILL_RPC macro.
14190
d47642c9
TS
14191 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14192 collected the type check structures.
14193
bae8023e
TS
14194 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14195
8a55ffb0
DE
141962014-02-14 Doug Evans <dje@google.com>
14197
14198 * target.c (target_write_partial): Fix result type.
14199
c2853f3d
JM
142002014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14201
14202 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14203 the proper offsets to access fpregset_t.
14204
ac61d2db
SA
142052014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14206
14207 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14208 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14209 * h8300-tdep.c (setmachinelist): Remove global.
14210 * hppa-tdep.c (hppa_sigtramp): Remove global.
14211 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14212 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14213 * ravenscar-thread.c (update_target_observer): Remove global.
14214 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14215
9d2d0b8b
TT
142162014-02-12 Tom Tromey <tromey@redhat.com>
14217
14218 * common/rsp-low.c: Update comments.
14219 * common/rsp-low.h: Update comments.
14220
a7191e8b
TT
142212014-02-12 Tom Tromey <tromey@redhat.com>
14222
14223 * common/rsp-low.c (convert_ascii_to_int): Remove.
14224 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14225
ff0e980e
TT
142262014-02-12 Tom Tromey <tromey@redhat.com>
14227
14228 * common/rsp-low.h (unhexify): Don't declare.
14229 * common/rsp-low.c (unhexify): Remove.
14230
e9371aff
TT
142312014-02-12 Tom Tromey <tromey@redhat.com>
14232
14233 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14234 * common/rsp-low.c (convert_int_to_ascii): Remove.
14235
971dc0b8
TT
142362014-02-12 Tom Tromey <tromey@redhat.com>
14237
14238 * common/rsp-low.h (hexify): Don't declare.
14239 * common/rsp-low.c (hexify): Remove.
14240
0a822afb
TT
142412014-02-12 Tom Tromey <tromey@redhat.com>
14242
14243 * common/rsp-low.c (hexify): Never take strlen of argument.
14244
9f1b45b0
TT
142452014-02-12 Tom Tromey <tromey@redhat.com>
14246
14247 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14248 * remote.c (extended_remote_run, remote_rcmd)
14249 (remote_download_trace_state_variable, remote_save_trace_data)
14250 (remote_set_trace_notes): Update.
14251 * tracepoint.c (encode_source_string, tfile_write_status)
14252 (tfile_write_uploaded_tsv): Update.
14253
9c3d6531
TT
142542014-02-12 Tom Tromey <tromey@redhat.com>
14255
14256 * tracepoint.c: Include rsp-low.h.
14257 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14258 * remote.c: Include rsp-low.h.
14259 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14260 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14261 (remote_unescape_input): Move to common/rsp-low.c.
14262 * common/rsp-low.h: New file.
14263 * common/rsp-low.c: New file.
14264 * Makefile.in (SFILES): Add common/rsp-low.c.
14265 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14266 (COMMON_OBS): Add rsp-low.o.
14267 (rsp-low.o): New target.
14268
01fd3ea5
TT
142692014-02-12 Tom Tromey <tromey@redhat.com>
14270
14271 * utils.h: Include print-utils.h.
14272 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14273 (int_string, core_addr_to_string, core_addr_to_string_nz)
14274 (hex_string, hex_string_custom): Don't declare.
14275 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14276 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14277 (hex_string_custom, int_string, core_addr_to_string)
14278 (core_addr_to_string_nz, host_address_to_string): Move to
14279 common/print-utils.c.
14280 * common/print-utils.h: New file.
14281 * common/print-utils.c: New file
14282 * Makefile.in (SFILES): Add common/print-utils.c.
14283 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14284 (COMMON_OBS): Add print-utils.o.
14285 (print-utils.o): New target.
14286
9fb50108
TT
142872014-02-12 Tom Tromey <tromey@redhat.com>
14288
14289 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14290
0548b5db
MK
142912014-02-12 Mark Kettenis <kettenis@gnu.org>
14292
14293 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14294
493443a4
MK
142952014-02-12 Mark Kettenis <kettenis@gnu.org>
14296
14297 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14298 if a PT_IO ptrace request returns sucessfully but indicates that 0
14299 bytes were transferred.
14300
706d0883
PA
143012014-02-12 Pedro Alves <palves@redhat.com>
14302 Kevin Buettner <kevinb@redhat.com>
14303
14304 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14305 TYPE_INSTANCE_FLAG_CODE_SPACE.
14306
5caa2f0b
PA
143072014-02-12 Pedro Alves <palves@redhat.com>
14308
14309 * h8300-tdep.c (pseudo_from_raw_register)
14310 (raw_from_pseudo_register): New functions.
14311 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14312 them.
14313
76fd5f74
PA
143142014-02-12 Pedro Alves <palves@redhat.com>
14315
14316 * h8300-tdep.c (h8300_register_sim_regno): New function.
14317 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14318 gdbarch_register_sim_regno hook.
14319
8f008406
SA
143202014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14321
14322 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14323
195abc10
SA
143242014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14325
14326 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14327
93ffa5b9
MK
143282014-02-12 Mark Kettenis <kettenis@gnu.org>
14329
14330 * obsd-tdep.h (obsd_init_abi): New prototype.
14331 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14332 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14333 (obsd_init_abi): New functions.
14334 * i386obsd-tdep.c: Include "obsd-tdep.h".
14335 (i386obsd_init_abi): Call obsd_init_abi.
14336 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14337 (amd64obsd_init_abi): Call obsd_init_abi.
14338 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14339 obsd-tdep.c to gdb_target_obs.
14340
49caec94
JM
143412014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14342
14343 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14344 double float arguments to 16-byte in the argument slots.
14345
e1402065
DE
143462014-02-11 Doug Evans <xdje42@gmail.com>
14347
14348 * configure.ac: Don't crash if pkg-config is not found and guile
14349 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14350 in guile checks.
14351 * configure: Regenerate.
14352
edcc890f
YQ
143532014-02-11 Yao Qi <yao@codesourcery.com>
14354
14355 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14356 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14357 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14358 * gnu-nat.c (gnu_xfer_memory): Likewise.
14359 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14360 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14361 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14362 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14363
9b409511
YQ
143642014-02-11 Yao Qi <yao@codesourcery.com>
14365
14366 * target.h (enum target_xfer_error): Rename to ...
14367 (enum target_xfer_status): ... it. New. All users updated.
14368 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14369 New.
14370 (TARGET_XFER_STATUS_ERROR_P): New macro.
14371 (target_xfer_error_to_string): Remove declaration.
14372 (target_xfer_status_to_string): Declare.
14373 (target_xfer_partial_ftype): Adjust it.
14374 (struct target_ops) <to_xfer_partial>: Return
14375 target_xfer_status. Add argument xfered_len. Update
14376 comments.
14377 * target.c (target_xfer_error_to_string): Rename to ...
14378 (target_xfer_status_to_string): ... it. New. All callers
14379 updated.
14380 (target_read_live_memory): Likewise. Call target_xfer_partial
14381 instead of target_read.
14382 (memory_xfer_live_readonly_partial): Return
14383 target_xfer_status. Add argument xfered_len.
14384 (raw_memory_xfer_partial): Likewise.
14385 (memory_xfer_partial_1): Likewise.
14386 (memory_xfer_partial): Likewise.
14387 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14388 properly. Update debug message.
14389 (default_xfer_partial, current_xfer_partial): Likewise.
14390 (target_write_partial): Likewise.
14391 (target_read_partial): Likewise. All callers updated.
14392 (read_whatever_is_readable): Likewise.
14393 (target_write_with_progress): Likewise.
14394 (target_read_alloc_1): Likewise.
14395
14396 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14397 * auxv.c (procfs_xfer_auxv): Likewise.
14398 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14399 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14400 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14401 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14402 * corefile.c (read_memory): Adjust.
14403 * corelow.c (core_xfer_partial): Likewise.
14404 * ctf.c (ctf_xfer_partial): Likewise.
14405 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14406 updated.
14407 (darwin_xfer_partial): Likewise.
14408 * exec.c (section_table_xfer_memory_partial): Likewise. All
14409 callers updated.
14410 (exec_xfer_partial): Likewise.
14411 * exec.h (section_table_xfer_memory_partial): Update
14412 declaration.
14413 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14414 negative.
14415 (gnu_xfer_partial): Likewise.
14416 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14417 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14418 (ia64_hpux_xfer_solib_got): Likewise.
14419 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14420 type of 'partial_len' to ULONGEST.
14421 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14422 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14423 (linux_nat_xfer_partial): Likewise.
14424 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14425 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14426 * monitor.c (monitor_xfer_memory): Likewise.
14427 (monitor_xfer_partial): Likewise.
14428 * procfs.c (procfs_xfer_partial): Likewise.
14429 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14430 * record-full.c (record_full_xfer_partial): Likewise.
14431 (record_full_core_xfer_partial): Likewise.
14432 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14433 (gdbsim_xfer_partial): Likewise.
14434 * remote.c (remote_write_bytes_aux): Likewise. All callers
14435 updated.
14436 (remote_write_bytes, remote_read_bytes): Likewise. All
14437 callers updated.
14438 (remote_flash_erase): Likewise. All callers updated.
14439 (remote_write_qxfer): Likewise. All callers updated.
14440 (remote_read_qxfer): Likewise. All callers updated.
14441 (remote_xfer_partial): Likewise.
14442 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14443 (rs6000_xfer_shared_libraries): Likewise.
14444 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14445 (sol_thread_xfer_partial): Likewise.
14446 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14447 (sparc_xfer_partial): Likewise.
14448 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14449 updated.
14450 (spu_xfer_partial): Likewise.
14451 * spu-multiarch.c (spu_xfer_partial): Likewise.
14452 * tracepoint.c (tfile_xfer_partial): Likewise.
14453 * windows-nat.c (windows_xfer_memory): Likewise.
14454 (windows_xfer_shared_libraries): Likewise.
14455 (windows_xfer_partial): Likewise.
14456 * valprint.c: Replace 'target_xfer_error' with
14457 'target_xfer_status' in comments.
14458
a8e63083
JB
144592014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14460
14461 Checked in by Joel Brobecker <brobecker@adacore.com>.
14462 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14463
e86b67d3
JB
144642014-02-11 Joel Brobecker <brobecker@adacore.com>
14465
14466 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14467 function parameters.
14468
4b7d1f7f
WN
144692014-02-10 Will Newton <will.newton@linaro.org>
14470
14471 * elfread.c (elf_rel_plt_read): Look for a .got section if
14472 looking up .got.plt fails.
14473 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14474 on address passed to elf_gnu_ifunc_record_cache.
14475 (elf_gnu_ifunc_resolve_addr): Likewise.
14476 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14477
961842b2
JM
144782014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14479
14480 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14481 (X_RETTURN): New macro.
14482 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14483
14484 * sparc64-tdep.c (sparc64_init_abi): Hook
14485 sparc_in_function_epilogue_p.
14486
3f03e7b1
GB
144872014-02-10 Gary Benson <gbenson@redhat.com>
14488
14489 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14490 Rename name_matcher to symbol_matcher.
14491
96f861ef
GB
144922014-02-10 Gary Benson <gbenson@redhat.com>
14493
14494 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14495 Use expand_symtabs_file_matcher_ftype and
14496 expand_symtabs_symbol_matcher_ftype.
14497
ee01b665
JB
144982014-02-10 Joel Brobecker <brobecker@adacore.com>
14499
14500 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14501 (struct ada_symbol_cache): New.
14502 (ada_free_symbol_cache): Forward declare.
14503 (struct ada_pspace_data): New.
14504 (ada_pspace_data_handle): New static global.
14505 (get_ada_pspace_data, ada_pspace_data_cleanup)
14506 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14507 (cache_space, cache): Delete, now folded inside struct
14508 ada_pspace_data.
14509 (ada_get_symbol_cache): New function.
14510 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14511 implementation.
14512 (_initialize_ada_language): Remove initialization of cache_space.
14513 Move call to observer_attach_inferior_exit up, grouping it
14514 with the other observer registrations inside this function.
14515 Rename command to be more general. Add call to
14516 register_program_space_data_with_cleanup.
14517
143adbbf
JB
145182014-02-10 Joel Brobecker <brobecker@adacore.com>
14519
14520 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14521 ada_new_objfile_observer.
14522 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14523 (_initialize_tasks): Update uses of ada_new_objfile_observer
14524 and ada_tasks_normal_stop_observer.
14525
aa4fb036
JB
145262014-02-10 Joel Brobecker <brobecker@adacore.com>
14527
14528 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14529 returned by the 'Length attribute to integer.
14530
9dee8cc6
JB
145312014-02-10 Joel Brobecker <brobecker@adacore.com>
14532
14533 * ada-lang.c (_initialize_ada_language): Initialize
14534 cache_space obstack.
14535
3d9434b5
JB
145362014-02-10 Joel Brobecker <brobecker@adacore.com>
14537
14538 * ada-lang.c (HASH_SIZE): New macro.
14539 (struct cache_entry): New type.
14540 (cache_space, cache): New static globals.
14541 (ada_clear_symbol_cache, find_entry): New functions.
14542 (lookup_cached_symbol, cache_symbol): Implement.
14543 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14544 (_initialize_ada_language): Attach ada_new_objfile_observer
14545 and ada_free_objfile_observer.
14546
f0c5f9b2
JB
145472014-02-10 Joel Brobecker <brobecker@adacore.com>
14548
14549 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14550 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14551 struct block * parameter.
14552 (ada_lookup_symbol_list_worker): Constify local variable "block".
14553 Remove cast which is no longer necessary.
14554
ed3ef339
DE
145552014-02-10 Doug Evans <xdje42@gmail.com>
14556
14557 Add Guile as an extension language.
14558 * NEWS: Mention Guile scripting.
14559 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14560 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14561 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14562 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14563 (CLIBS): Add GUILE_LIBS.
14564 (install-guile): New rule.
14565 (guile.o): New rule.
14566 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14567 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14568 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14569 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14570 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14571 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14572 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14573 * configure.ac: New option --with-guile.
14574 * configure: Regenerate.
14575 * config.in: Regenerate.
14576 * auto-load.c: Remove #include "python/python.h". Add #include
14577 "gdb/section-scripts.h".
14578 (source_section_scripts): Handle Guile scripts.
14579 (_initialize_auto_load): Add name of Guile objfile script to
14580 scripts-directory help text.
14581 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14582 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14583 (struct breakpoint): New member scm_bp_object.
14584 * defs.h (enum command_control_type): New value guile_control.
14585 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14586 "extension.h".
14587 (show_user): Update comment.
14588 (_initialize_cli_cmds): Update help text for "show user". Update help
14589 text for max-user-call-depth.
14590 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14591 "extension.h".
14592 (multi_line_command_p): Add guile_control.
14593 (print_command_lines): Handle guile_control.
14594 (execute_control_command, recurse_read_control_structure): Ditto.
14595 (process_next_line): Recognize "guile" commands.
14596 * disasm.c (gdb_disassemble_info): Make non-static.
14597 * disasm.h: #include "dis-asm.h".
14598 (struct gdbarch): Add forward decl.
14599 (gdb_disassemble_info): Declare.
14600 * extension.c: #include "guile/guile.h".
14601 (extension_languages): Add guile.
14602 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14603 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14604 * gdbtypes.c (get_unsigned_type_max): New function.
14605 (get_signed_type_minmax): New function.
14606 * gdbtypes.h (get_unsigned_type_max): Declare.
14607 (get_signed_type_minmax): Declare.
14608 * guile/README: New file.
14609 * guile/guile-internal.h: New file.
14610 * guile/guile.c: New file.
14611 * guile/guile.h: New file.
14612 * guile/scm-arch.c: New file.
14613 * guile/scm-auto-load.c: New file.
14614 * guile/scm-block.c: New file.
14615 * guile/scm-breakpoint.c: New file.
14616 * guile/scm-disasm.c: New file.
14617 * guile/scm-exception.c: New file.
14618 * guile/scm-frame.c: New file.
14619 * guile/scm-gsmob.c: New file.
14620 * guile/scm-iterator.c: New file.
14621 * guile/scm-lazy-string.c: New file.
14622 * guile/scm-math.c: New file.
14623 * guile/scm-objfile.c: New file.
14624 * guile/scm-ports.c: New file.
14625 * guile/scm-pretty-print.c: New file.
14626 * guile/scm-safe-call.c: New file.
14627 * guile/scm-string.c: New file.
14628 * guile/scm-symbol.c: New file.
14629 * guile/scm-symtab.c: New file.
14630 * guile/scm-type.c: New file.
14631 * guile/scm-utils.c: New file.
14632 * guile/scm-value.c: New file.
14633 * guile/lib/gdb.scm: New file.
14634 * guile/lib/gdb/boot.scm: New file.
14635 * guile/lib/gdb/experimental.scm: New file.
14636 * guile/lib/gdb/init.scm: New file.
14637 * guile/lib/gdb/iterator.scm: New file.
14638 * guile/lib/gdb/printing.scm: New file.
14639 * guile/lib/gdb/types.scm: New file.
14640 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14641 (VPATH): Add $(GUILE_SRCDIR).
14642 (GUILE_DIR): New variable.
14643 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14644 (all): Add stamp-guile dependency.
14645 (stamp-guile): New rule.
14646 (clean-guile, install-guile, uninstall-guile): New rules.
14647 (install-only): Add install-guile dependency.
14648 (uninstall): Add uninstall-guile dependency.
14649 (clean): Add clean-guile dependency.
14650
ac020ec5
DE
146512014-02-09 Doug Evans <xdje42@gmail.com>
14652
14653 Revert this patch (which I approved, mea culpa).
14654
14655 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14656
14657 * Makefile.in (all-lib): Remove.
14658 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14659
2a081c59
JK
146602014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14661
14662 Fix Python stack corruption.
14663 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14664 gdb_py_longest.
14665
0a6bd22d
MK
146662014-02-08 Mark Kettenis <kettenis@gnu.org>
14667
14668 * Makefile.in (all-lib): Remove.
14669 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14670
1a860409
DE
146712014-02-07 Doug Evans <dje@google.com>
14672
14673 * extension-priv.h (extension_language_script_ops): Add comment.
14674 (extension_language_ops): Add comment.
caf5a491 14675 (active_ext_lang_state): Fix typo in comment.
1a860409 14676
d137e6dc
PA
146772014-02-07 Pedro Alves <palves@redhat.com>
14678
0dcb32c3 14679 PR breakpoints/16292
d137e6dc
PA
14680 * infrun.c (handle_signal_stop) <signal arrives while stepping
14681 over a breakpoint>: Switch back to the stepping thread.
14682
ce6d0892
YQ
146832014-02-07 Yao Qi <yao@codesourcery.com>
14684
14685 * target.c (target_xfer_partial): Return zero if LEN is zero.
14686
2ed4b548
YQ
146872014-02-07 Yao Qi <yao@codesourcery.com>
14688
14689 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14690 (ld_so_xfer_auxv): Likewise.
14691 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14692 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14693 * corelow.c (core_xfer_partial): Likewise.
14694 * ctf.c (ctf_xfer_partial): Likewise.
14695 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14696 (darwin_xfer_partial): Likewise.
14697 * exec.c (exec_xfer_partial): Likewise.
14698 * gnu-nat.c (gnu_xfer_partial): Likewise.
14699 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14700 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14701 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14702 * linux-nat.c (linux_xfer_siginfo): Likewise.
14703 (linux_proc_xfer_spu): Likewise.
14704 * procfs.c (procfs_xfer_partial): Likewise.
14705 * record-full.c (record_full_xfer_partial): Likewise.
14706 (record_full_core_xfer_partial): Likewise.
14707 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14708 * remote.c (remote_write_qxfer): Likewise.
14709 (remote_write_qxfer, remote_read_qxfer): Likewise.
14710 (remote_xfer_partial): Likewise.
14711 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14712 (rs6000_xfer_shared_libraries): Likewise.
14713 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14714 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14715 (spu_xfer_partial): Likewise.
14716 * target.c (memory_xfer_partial_1): Likewise.
14717 * tracepoint.c (tfile_xfer_partial): Likewise.
14718 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14719 (windows_xfer_partial): Likewise.
14720
c09f20e4
YQ
147212014-02-07 Yao Qi <yao@codesourcery.com>
14722
14723 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14724 comments.
14725 (core_xfer_shared_libraries_aix): Likewise.
14726 * gdbarch.c, gdbarch.h: Regenerated.
14727 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14728 ULONGEST. Change 'len_avail' type to ULONGEST.
14729 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14730 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14731 declaration.
14732 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14733
8635b3bf
YQ
147342014-02-07 Yao Qi <yao@codesourcery.com>
14735
14736 * corefile.c (memory_error): Get 'exception' from ERR and pass
14737 'exception' to throw_error.
14738
6dddc817
DE
147392014-02-06 Doug Evans <xdje42@gmail.com>
14740
14741 * configure.ac (libpython checking): Remove all but python.o from
14742 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14743 * configure: Regenerate.
14744
14745 * Makefile.in (SFILES): Add extension.c.
14746 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14747 (COMMON_OBS): Add extension.o.
14748 * extension.h: New file.
14749 * extension-priv.h: New file.
14750 * extension.c: New file.
14751
14752 * python/python-internal.h: #include "extension.h".
14753 (gdbpy_auto_load_enabled): Declare.
14754 (gdbpy_apply_val_pretty_printer): Declare.
14755 (gdbpy_apply_frame_filter): Declare.
14756 (gdbpy_preserve_values): Declare.
14757 (gdbpy_breakpoint_cond_says_stop): Declare.
14758 (gdbpy_breakpoint_has_cond): Declare.
14759 (void source_python_script_for_objfile): Delete.
14760 * python/python.c: #include "extension-priv.h".
14761 Delete inclusion of "observer.h".
14762 (extension_language_python): Moved here and renamed from
14763 script_language_python in py-auto-load.c.
14764 Redefined to be of type extension_language_defn.
14765 (python_extension_script_ops): New global.
14766 (python_extension_ops): New global.
14767 (struct python_env): New member previous_active.
14768 (restore_python_env): Call restore_active_ext_lang.
14769 (ensure_python_env): Call set_active_ext_lang.
14770 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14771 New arg extlang.
14772 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14773 New arg extlang.
14774 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14775 New arg extlang.
14776 (gdbpy_eval_from_control_command): Renamed from
14777 eval_python_from_control_command, made static. New arg extlang.
14778 (gdbpy_source_script) Renamed from source_python_script, made static.
14779 New arg extlang.
14780 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14781 result to int. New arg extlang.
14782 (gdbpy_source_objfile_script): Renamed from
14783 source_python_script_for_objfile, made static. New arg extlang.
14784 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14785 static. New args extlang, extlang_printers. Change result type to
14786 "void".
14787 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14788 static. New arg extlang. Rename arg printers to extlang_printers
14789 and change type to ext_lang_type_printers *.
14790 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14791 static. Replace argument arg with extlang, extlang_printers.
14792 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14793 (!HAVE_PYTHON, source_python_script): Delete.
14794 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14795 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14796 (!HAVE_PYTHON, start_type_printers): Delete.
14797 (!HAVE_PYTHON, apply_type_printers): Delete.
14798 (!HAVE_PYTHON, free_type_printers): Delete.
14799 (_initialize_python): Delete call to observer_attach_before_prompt.
14800 (finalize_python): Set/restore active extension language.
14801 (gdbpy_finish_initialization) Renamed from
14802 finish_python_initialization, made static. New arg extlang.
14803 (gdbpy_initialized): New function.
14804 * python/python.h: #include "extension.h". Delete #include
14805 "value.h", "mi/mi-cmds.h".
14806 (extension_language_python): Declare.
14807 (GDBPY_AUTO_FILE_NAME): Delete.
14808 (enum py_bt_status): Moved to extension.h and renamed to
14809 ext_lang_bt_status.
14810 (enum frame_filter_flags): Moved to extension.h.
14811 (enum py_frame_args): Moved to extension.h and renamed to
14812 ext_lang_frame_args.
14813 (finish_python_initialization): Delete.
14814 (eval_python_from_control_command): Delete.
14815 (source_python_script): Delete.
14816 (apply_val_pretty_printer): Delete.
14817 (apply_frame_filter): Delete.
14818 (preserve_python_values): Delete.
14819 (gdbpy_script_language_defn): Delete.
14820 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14821 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14822
14823 * auto-load.c: #include "extension.h".
14824 (GDB_AUTO_FILE_NAME): Delete.
14825 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14826 (script_language_gdb): Delete, moved to extension.c and renamed to
14827 extension_language_gdb.
14828 (source_gdb_script_for_objfile): Delete.
14829 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14830 (loaded_script): Change type of language member to
14831 struct extension_language_defn *.
14832 (init_loaded_scripts_info): Initialize
14833 unsupported_script_warning_printed.
14834 (maybe_add_script): Make static. Change type of language arg to
14835 struct extension_language_defn *.
14836 (clear_section_scripts): Reset unsupported_script_warning_printed.
14837 (auto_load_objfile_script_1): Rewrite to use extension language API.
14838 (auto_load_objfile_script): Make public. Remove support-compiled-in
14839 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14840 (source_section_scripts): Rewrite to use extension language API.
14841 (load_auto_scripts_for_objfile): Rewrite to use
14842 auto_load_scripts_for_objfile.
14843 (collect_matching_scripts_data): Change type of language member to
14844 struct extension_language_defn *.
14845 (auto_load_info_scripts): Change type of language arg to
14846 struct extension_language_defn *.
14847 (unsupported_script_warning_print): New function.
14848 (script_not_found_warning_print): Make static.
14849 (_initialize_auto_load): Rewrite construction of scripts-directory
14850 help.
14851 * auto-load.h (struct objfile): Add forward decl.
14852 (struct script_language): Delete.
14853 (struct auto_load_pspace_info): Add forward decl.
14854 (struct extension_language_defn): Add forward decl.
14855 (maybe_add_script): Delete.
14856 (auto_load_objfile_script): Declare.
14857 (script_not_found_warning_print): Delete.
14858 (auto_load_info_scripts): Update prototype.
14859 (auto_load_gdb_scripts_enabled): Declare.
14860 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14861 auto_load_python_scripts_enabled and made public.
14862 (script_language_python): Delete, moved to python.c.
14863 (gdbpy_script_language_defn): Delete.
14864 (info_auto_load_python_scripts): Update to use
14865 extension_language_python.
14866
14867 * breakpoint.c (condition_command): Replace call to
14868 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14869 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14870 with call to breakpoint_ext_lang_cond_says_stop.
14871 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14872 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14873 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14874 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14875 New arg slang.
14876 (local_setattro): Print name of extension language with existing
14877 stop condition.
14878
14879 * valprint.c (val_print, value_print): Update to call
14880 apply_ext_lang_val_pretty_printer.
14881 * cp-valprint.c (cp_print_value): Update call to
14882 apply_ext_lang_val_pretty_printer.
14883 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14884 (gdbpy_apply_val_pretty_printer): Renamed from
14885 apply_val_pretty_printer. New arg extlang.
14886 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14887
14888 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14889 extension language API.
14890 * cli/cli-script.c (execute_control_command): Update to call
14891 eval_ext_lang_from_control_command.
14892
14893 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14894 enum ext_lang_bt_status values. Update call to
14895 apply_ext_lang_frame_filter.
14896 (mi_cmd_stack_list_locals): Ditto.
14897 (mi_cmd_stack_list_args): Ditto.
14898 (mi_cmd_stack_list_variables): Ditto.
14899 * mi/mi-main.c: Delete #include "python/python-internal.h".
14900 Add #include "extension.h".
14901 (mi_cmd_list_features): Replace reference to python internal variable
14902 gdb_python_initialized with call to ext_lang_initialized_p.
14903
14904 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14905 Update to use enum ext_lang_frame_args. Update to call
14906 apply_ext_lang_frame_filter.
14907 * python/py-framefilter.c (extract_sym): Update to use enum
14908 ext_lang_bt_status.
14909 (extract_value, py_print_type, py_print_value): Ditto.
14910 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14911 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14912 (py_print_frame): Ditto.
14913 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14914 New arg extlang. Update to use enum ext_lang_bt_status.
14915
14916 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14917 finish_python_initialization. Replace with call to
14918 finish_ext_lang_initialization.
14919
14920 * typeprint.c (do_free_global_table): Update to call
14921 free_ext_lang_type_printers.
14922 (create_global_typedef_table): Update to call
14923 start_ext_lang_type_printers.
14924 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14925 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14926 (type_print_options): Change type of global_printers from "void *"
14927 to "struct ext_lang_type_printers *".
14928
14929 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14930 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14931 (gdbpy_preserve_values): Renamed from preserve_python_values.
14932 New arg extlang.
14933 (!HAVE_PYTHON, preserve_python_values): Delete.
14934
14935 * utils.c (quit_flag): Delete, moved to extension.c.
14936 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14937 extension.c.
14938
14939 * eval.c: Delete #include "python/python.h".
14940 * main.c: Delete #include "python/python.h".
14941
14942 * defs.h: Update comment.
14943
6af79985
JB
149442014-02-06 Joel Brobecker <brobecker@adacore.com>
14945
14946 GDB 7.7 released.
14947
12c5175d
MK
149482014-02-05 Mark Kettenis <kettenis@gnu.org>
14949
14950 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14951 defined.
14952
8dc5b319
YQ
149532014-02-05 Yao Qi <yao@codesourcery.com>
14954
14955 * remote.c (remote_pass_signals): Remove local 'buf' and use
14956 rs->buf.
14957 (remote_program_signals): Likewise.
14958
de7b2893
YQ
149592014-02-05 Yao Qi <yao@codesourcery.com>
14960
14961 * ctf.c: Include "inferior.h" and "gdbthread.h".
14962 (CTF_PID): A new macro.
14963 (ctf_open): Call inferior_appeared and add_thread_silent.
14964 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14965 (ctf_thread_alive): New function.
14966 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14967
66d032ac
YQ
149682014-02-05 Yao Qi <yao@codesourcery.com>
14969
14970 Revert this patch:
14971
14972 2013-05-24 Yao Qi <yao@codesourcery.com>
14973
14974 * tracepoint.c (TFILE_PID): Remove.
14975 (tfile_open): Don't add thread and inferior.
14976 (tfile_close): Don't set 'inferior_ptid'. Don't call
14977 exit_inferior_silent.
14978 (tfile_thread_alive): Remove.
14979 (init_tfile_ops): Don't set field 'to_thread_alive' of
14980 tfile_ops.
14981
f4ccffad
CE
149822014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14983
14984 * remote.c (remote_start_remote): Call remote_check_symbols even
14985 if only symbol-file (not file) has been given.
14986
591a12a1
UW
149872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14988
14989 * gdbarch.sh (skip_entrypoint): New callback.
14990 * gdbarch.c, gdbarch.h: Regenerate.
14991 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14992 * infrun.c (fill_in_stop_func): Likewise.
14993 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14994 (ppc_elfv2_elf_make_msymbol_special): New function.
14995 (ppc_elfv2_skip_entrypoint): Likewise.
14996 (ppc_linux_init_abi): Install them for ELFv2.
14997
cc0e89c5
UW
149982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14999
15000 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15001 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15002 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15003 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
15004 structures returned in GPRs.
15005
52f548e4
UW
150062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15007
15008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15009 offset to the stack parameter list for the ELFv2 ABI.
15010
d4094b6a
UW
150112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15012
15013 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15014 set_gdbarch_convert_from_func_ptr_addr and
15015 set_gdbarch_elf_make_msymbol_special for ELFv1.
15016 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15017 function descriptors on ELFv1.
15018 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15019 set up r12 at function entry.
15020
cd453cd0
UW
150212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15022
15023 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15024 (struct gdbarch_tdep): New member elf_abi.
15025
15026 * rs6000-tdep.c: Include "elf/ppc64.h".
15027 (rs6000_gdbarch_init): Detect ELF ABI version.
15028
0ff3e01f
UW
150292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15030
15031 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15032 within a register pair holding a DFP 128-bit value on little-endian.
15033 (ppc64_sysv_abi_return_value_base): Likewise.
15034 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15035 (dfp_pseudo_register_write): Likewise.
15036
5b757e5d
UW
150372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15038
15039 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15040 offset on little-endian when passing _Decimal32.
15041 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15042
084ee545
UW
150432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15044
15045 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15046 of the overlapped FP register within the VSX register on little-
15047 endian platforms.
15048 (efpr_pseudo_register_write): Likewise.
15049
d63167af
UW
150502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15051
15052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15053 offset on little-endian when passing small structures.
15054
e765b44c
UW
150552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15056
15057 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15058 (struct ppc64_sysv_argpos): New data structure.
15059 (ppc64_sysv_abi_push_float): Remove.
15060 (ppc64_sysv_abi_push_val): New function.
15061 (ppc64_sysv_abi_push_integer): Likewise.
15062 (ppc64_sysv_abi_push_freg): Likewise.
15063 (ppc64_sysv_abi_push_vreg): Likewise.
15064 (ppc64_sysv_abi_push_param): Likewise.
15065 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15066 (ppc64_sysv_abi_return_value_base): New function.
15067 (ppc64_sysv_abi_return_value): Refactor to use it.
15068
36c24d95
UW
150692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15070
15071 * NEWS: Document new target powerpc64le-*-linux*.
15072
26fd9228
MK
150732014-02-04 Mark Kettenis <kettenis@gnu.org>
15074
15075 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15076 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15077 core dumps.
15078 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15079 register set used in ELF core dumps. Add floating-point register set.
15080
c5bb7362
KB
150812014-02-03 Kevin Buettner <kevinb@redhat.com>
15082
74228e77 15083 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
15084 dwarf2_to_gdb[] table using symbolic constants. Adjust
15085 penultimate entry from number representing the PC register
15086 to symbolic constant representing the MDR register. Add
15087 constant for the PC register to the end of the table.
15088
af09351e
MK
150892014-02-03 Mark Kettenis <kettenis@gnu.org>
15090
15091 * bsd-kvm.c: Include <sys/param.h>
15092
8507e05d
MK
150932014-02-03 Mark Kettenis <kettenis@gnu.org>
15094
15095 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15096
ae56bfb8
JB
150972014-01-31 Joel Brobecker <brobecker@adacore.com>
15098
15099 * ada-lang.h (clear_ada_sym_cache): Delete.
15100
718ee4dc
UW
151012014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
15102
15103 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15104
401e27fd
JM
151052014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15106
15107 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15108 the sigreturn register save area only if the syscall is
15109 sigreturn.
15110
a7c88acd
JB
151112014-01-29 Joel Brobecker <brobecker@adacore.com>
15112
15113 * valops.c (value_slice): Minor reformatting.
15114
fa0079ea
UW
151152014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
15116
15117 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15118
c6044dd1
JB
151192014-01-28 Joel Brobecker <brobecker@adacore.com>
15120
15121 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15122 New static globals.
15123 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15124 (ada_ignore_descriptive_types_p): New static global.
15125 (find_parallel_type_by_descriptive_type): Return immediately
15126 if ada_ignore_descriptive_types_p is set.
15127 (_initialize_ada_language): Register new commands "maintenance
15128 set ada", "maintenance show ada", "maintenance set ada
15129 ignore-descriptive-types" and "maintenance show ada
15130 ignore-descriptive-types".
15131 * NEWS: Add entry for new "maint ada set/show
15132 ignore-descriptive-types" commands.
15133
568e808b
MM
151342014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15135
15136 * record-btrace.c (record_btrace_close): Call btrace_teardown
15137 for all threads.
15138
467d141b
JB
151392014-01-27 Joel Brobecker <brobecker@adacore.com>
15140
15141 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15142 "ui-out.h".
15143
fb151210
JB
151442014-01-27 Joel Brobecker <brobecker@adacore.com>
15145
15146 * ada-typeprint (type_is_full_subrange_of_target_type):
15147 New function.
15148 (print_range): Add parameter bounds_prefered_p. If not set,
15149 try printing range types using the name of their base type.
15150 (print_range_type): Add parameter bounds_prefered_p.
15151 Use it in call to print_range.
15152 (print_array_type, ada_print_type): Update calls to print_range
15153 and print_range_type.
15154
aba02109
JB
151552014-01-27 Joel Brobecker <brobecker@adacore.com>
15156
15157 * ada-typeprint.c (print_array_type, print_choices, print_range)
15158 (print_range_bound, print_dynamic_range_bound, print_range_type):
15159 Remove declaration.
15160
e62e21fd
JB
151612014-01-27 Joel Brobecker <brobecker@adacore.com>
15162
15163 * ada-typeprint.c (print_range): Add missing empty line
15164 after local declaration.
15165
859cf5d1
JB
151662014-01-27 Joel Brobecker <brobecker@adacore.com>
15167
15168 * ada-valprint.c (print_optional_low_bound): Get index_type's
15169 target type for as long as it is a TYPE_CODE_RANGE.
15170
25790f6f
JB
151712014-01-27 Joel Brobecker <brobecker@adacore.com>
15172
15173 * procfs.c (procfs_make_note_section): Remove assertion and
15174 associated comment.
15175
6b6aa828
YQ
151762014-01-24 Yao Qi <yao@codesourcery.com>
15177
15178 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15179 * corelow.c (get_core_siginfo): Likewise.
15180
5d6df423
YQ
151812014-01-24 Yao Qi <yao@codesourcery.com>
15182
15183 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15184 ULONGEST. Don't check 'len' is negative.
15185 (remote_write_bytes): Change type of 'len' to ULONGEST.
15186
83b645b8
TT
151872014-01-23 Tom Tromey <tromey@redhat.com>
15188
15189 PR python/16485:
15190 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15191 Handle exception from frame.block.
15192 (FrameVars.fetch_frame_locals): Likewise.
15193
0740f8d8
TT
151942014-01-23 Tom Tromey <tromey@redhat.com>
15195
15196 PR python/16487:
15197 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15198 on a NULL pointer. Move "goto error" to correct place.
15199
21909fa1
TT
152002014-01-23 Tom Tromey <tromey@redhat.com>
15201
15202 PR python/16491:
15203 * python/py-framefilter.c (apply_frame_filter): Call
15204 ensure_python_env after computing gdbarch.
15205
17fde6d0
YQ
152062014-01-23 Yao Qi <yao@codesourcery.com>
15207
15208 * target.c (raw_memory_xfer_partial): Change argument type
15209 from void * to gdb_byte *.
15210 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15211
87ce2a04
DE
152122014-01-22 Doug Evans <dje@google.com>
15213
15214 New gdbserver option --debug-format=timestamp.
15215 * NEWS: Mention it.
15216
237b092b
AA
152172014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15218
15219 * syscalls/s390x-linux.xml: New file.
15220 * syscalls/s390-linux.xml: New file.
15221 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15222 (XML_SYSCALL_FILENAME_S390X): Likewise.
15223 (op_svc): New enum value for SVC opcode.
15224 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15225 (s390_linux_get_syscall_number): New function.
15226 (s390_gdbarch_init): Register '*get_syscall_number' and the
15227 syscall xml file name.
15228 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15229 "s390-linux.xml" and "s390x-linux.xml".
15230 * NEWS: Announce new feature.
15231
54bff650
BS
152322014-01-22 Baruch Siach <baruch@tkos.co.il>
15233
15234 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15235
14e361d7
PA
152362014-01-22 Pedro Alves <palves@redhat.com>
15237
15238 * xtensa-config.c: Include defs.h.
15239
46bbb3ed
JB
152402014-01-22 Joel Brobecker <brobecker@adacore.com>
15241
15242 * common/common-utils.h: Add "ARI:" comment beside __func__
15243 reference.
15244
3a80edfc
JB
152452014-01-22 Joel Brobecker <brobecker@adacore.com>
15246
15247 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15248 documentation a bit.
15249
4869db5e
RM
152502014-01-21 Roland McGrath <mcgrathr@google.com>
15251
15252 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15253 * configure: Regenerate.
15254 * aclocal.m4: Regenerate.
15255 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15256 New substituted variables.
15257 (install-strip): New target.
15258 (INSTALL_SCRIPT): New substituted variable.
15259 (FLAGS_TO_PASS): Add it.
15260 (install-only): Use $(INSTALL_SCRIPT) rather than
15261 $(INSTALL_PROGRAM) for gcore.
15262
9ea4267d
TT
152632014-01-20 Tom Tromey <tromey@redhat.com>
15264
15265 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15266 together.
15267
1f2bdf09
TT
152682014-01-20 Tom Tromey <tromey@redhat.com>
15269
15270 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15271 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15272 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15273 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15274 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15275 (struct cmd_list_element) <flags>: Remove.
15276 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15277 doc_allocated>: New fields.
15278 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15279 bitfields.
15280 * maint.c (maintenance_do_deprecate): Update.
15281 * top.c (execute_command): Update.
15282
e671835b
BS
152832014-01-20 Baruch Siach <baruch@tkos.co.il>
15284
15285 * xtensa-linux-nat.c: Include asm/ptrace.h.
15286
50367cd2
IB
152872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15288
15289 * Makefile.in (SFILES): Add d-support.c.
15290 (COMMON_OBS): Add d-support.o.
15291 * d-lang.h (d_parse_symbol): Add comment, now defined in
15292 d-support.c.
15293 * d-lang.c (parse_call_convention)
15294 (parse_attributes, parse_function_types)
15295 (parse_function_args, parse_type, parse_identifier)
15296 (call_convention_p, d_parse_symbol): Move functions to ...
15297 * d-support.c: ... New file.
15298
ec9f644a
IB
152992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15300
15301 * d-lang.h (d_parse_symbol): Add declaration.
15302 * d-lang.c (extract_identifiers)
15303 (extract_type_info): Remove functions.
15304 (parse_call_convention, parse_attributes)
15305 (parse_function_types, parse_function_args)
15306 (parse_type, parse_identifier, call_convention_p)
15307 (d_parse_symbol): New functions.
15308 (d_demangle): Use d_parse_symbol to demangle D symbols.
15309
94b1b47e
IB
153102014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15311
15312 * d-lang.h (struct builtin_d_type): New data type.
15313 (builtin_d_type): Add declaration.
15314 * d-lang.c (d_language_arch_info, build_d_types)
15315 (builtin_d_type): New functions.
15316 (enum d_primitive_types): New data type.
15317 (d_language_defn): Change c_language_arch_info to
15318 d_language_arch_info.
15319 (d_type_data): New static variable.
15320 (_initialize_d_language): Initialize d_type_data.
15321
63778547
IB
153222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15323
15324 * d-lang.h (d_main_name): Add declaration.
15325 * d-lang.c (d_main_name): New function.
15326 * symtab.c (find_main_name): Add call to d_main_name.
15327
3271ba66
IB
153282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15329
15330 * d-lang.c (d_language_defn): Change macro_expansion_c to
15331 macro_expansion_no.
15332
d36b3012
IB
153332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15334
15335 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15336
c90a6fb7
SDJ
153372014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15338
15339 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15340 gdb_exception" declaration.
15341 * remote.c (getpkt_or_notif_sane): Likewise.
15342
749234e5
DE
153432014-01-17 Doug Evans <dje@google.com>
15344
15345 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15346 function, contents of dirnames_to_char_ptr_vec_append moved here.
15347 (delim_string_to_char_ptr_vec): New function.
15348 (dirnames_to_char_ptr_vec_append): Rewrite.
15349 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15350
df049a58
DE
153512014-01-17 Doug Evans <dje@google.com>
15352
15353 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15354 and moved here ...
15355 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15356 #include "common-utils.h".
15357 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15358 * common/vec.h (VEC_ASSERT_PASS): Update.
15359 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15360 (MACH_CHECK_ERROR): Update.
15361
69f97648
SM
153622014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15363
15364 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15365 comments.
15366 * gdbarch.h: Regenerate.
15367
98b1cfdc
TT
153682014-01-16 Tom Tromey <tromey@redhat.com>
15369
15370 * value.c (struct value) <regnum>: Move earlier.
15371
77a19445
TT
153722014-01-16 Tom Tromey <tromey@redhat.com>
15373
15374 * remote.c (extended_remote_create_inferior): Rename from
15375 extended_remote_create_inferior_1. Add "ops" argument. Remove
15376 old implementation.
15377
62261490
PA
153782014-01-16 Pedro Alves <palves@redhat.com>
15379
15380 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15381 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15382 the backchain.
15383
4d65956b
DE
153842014-01-16 Doug Evans <dje@google.com>
15385
15386 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15387
52834460
MM
153882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15389
15390 * btrace.h (btrace_thread_flag): New.
15391 (struct btrace_thread_info) <flags>: New.
15392 * record-btrace.c (record_btrace_resume_thread)
15393 (record_btrace_find_thread_to_move, btrace_step_no_history)
15394 (btrace_step_stopped, record_btrace_start_replaying)
15395 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15396 (record_btrace_find_resume_thread): New.
15397 (record_btrace_resume, record_btrace_wait): Extend.
15398 (record_btrace_can_execute_reverse): New.
15399 (record_btrace_open): Fail in non-stop mode.
15400 (record_btrace_set_replay): Split into this, ...
15401 (record_btrace_stop_replaying): ... this, ...
15402 (record_btrace_clear_histories): ... and this.
15403 (init_record_btrace_ops): Init to_can_execute_reverse.
15404 * NEWS: Announce it.
15405
118e6252
MM
154062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15407
15408 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15409 (forward_target_decr_pc_after_break)
15410 (target_decr_pc_after_break): New.
15411 * target.c (forward_target_decr_pc_after_break)
15412 (target_decr_pc_after_break): New.
15413 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15414 instead of gdbarch_decr_pc_after_break.
15415 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15416 instead of gdbarch_decr_pc_after_break.
15417 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15418 instead of gdbarch_decr_pc_after_break.
15419 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15420 instead of gdbarch_decr_pc_after_break.
15421 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15422 instead of gdbarch_decr_pc_after_break.
15423 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15424 instead of gdbarch_decr_pc_after_break.
15425
6e07b1d2
MM
154262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15427
15428 * btrace.c: Include regcache.h.
15429 (btrace_add_pc): New.
15430 (btrace_enable): Call btrace_add_pc.
15431 (btrace_is_empty): New.
15432 * btrace.h (btrace_is_empty): New.
15433 * record-btrace.c (require_btrace, record_btrace_info): Call
15434 btrace_is_empty.
15435
969c39fb
MM
154362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15437
15438 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15439 Support delta reads.
15440 (linux_disable_btrace): Change return type.
15441 * common/linux-btrace.h (linux_read_btrace): Change parameters
15442 and return type to allow error reporting. Update users.
15443 (linux_disable_btrace): Change return type. Update users.
15444 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15445 New.
15446 (btrace_error): New.
15447 (btrace_block) <begin>: Comment on BEGIN == 0.
15448 * btrace.c (btrace_compute_ftrace): Start from the end of
15449 the current trace.
15450 (btrace_stitch_trace, btrace_clear_history): New.
15451 (btrace_fetch): Read delta trace, return if replaying.
15452 (btrace_clear): Move clear history code to btrace_clear_history.
15453 (parse_xml_btrace): Throw an error if parsing failed.
15454 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15455 and return type to allow error reporting.
15456 (target_read_btrace): Change parameters and return type to allow
15457 error reporting.
15458 * target.c (target_read_btrace): Update.
15459 * remote.c (remote_read_btrace): Support delta reads. Pass
15460 errors on.
15461 * NEWS: Announce it.
15462
0b722aec
MM
154632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15464
15465 * record.h (record_btrace_frame_unwind)
15466 (record_btrace_tailcall_frame_unwind): New declarations.
15467 * dwarf2-frame: Include record.h
15468 (dwarf2_frame_cfa): Throw an error for btrace frames.
15469 * record-btrace.c: Include hashtab.h.
15470 (btrace_get_bfun_name): New.
15471 (btrace_call_history): Call btrace_get_bfun_name.
15472 (struct btrace_frame_cache): New.
15473 (bfcache): New.
15474 (bfcache_hash, bfcache_eq, bfcache_new): New.
15475 (btrace_get_frame_function): New.
15476 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15477 (record_btrace_frame_this_id): Compute own id.
15478 (record_btrace_frame_prev_register): Provide PC, throw_error
15479 for all other registers.
15480 (record_btrace_frame_sniffer): Detect btrace frames.
15481 (record_btrace_tailcall_frame_sniffer): New.
15482 (record_btrace_frame_dealloc_cache): New.
15483 (record_btrace_frame_unwind): Add new functions.
15484 (record_btrace_tailcall_frame_unwind): New.
15485 (_initialize_record_btrace): Allocate cache.
15486 * btrace.c (btrace_clear): Call reinit_frame_cache.
15487 * NEWS: Announce it.
15488
066ce621
MM
154892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15490
15491 * record-btrace.c (record_btrace_set_replay)
15492 (record_btrace_goto_begin, record_btrace_goto_end)
15493 (record_btrace_goto): New.
15494 (init_record_btrace_ops): Initialize them.
15495 * NEWS: Announce it.
15496
e2887aa3
MM
154972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15498
15499 * record-btrace.c (record_btrace_find_new_threads)
15500 (record_btrace_thread_alive): New.
15501 (init_record_btrace_ops): Initialize to_find_new_threads and
15502 to_thread_alive.
15503
b2f4cfde
MM
155042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15505
15506 * record-btrace.c (record_btrace_resume): New.
15507 (record_btrace_wait): New.
15508 (init_record_btrace_ops): Initialize to_wait and to_resume.
15509
633785ff
MM
155102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15511
15512 * record-btrace.c (record_btrace_xfer_partial)
15513 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15514 (record_btrace_allow_memory_access): New.
15515 (init_record_btrace_ops): Initialize new methods.
15516 * target.c (raw_memory_xfer_partial): Bail out if target reports
15517 that this memory is not available.
15518
3db08215
MM
155192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15520
15521 * target.h (target_ops) <to_insert_breakpoint>
15522 <to_remove_breakpoint>: Add target_ops parameter.
15523 (forward_target_insert_breakpoint): New.
15524 (forward_target_remove_breakpoint): New.
15525 (memory_remove_breakpoint, memory_insert_breakpoint):
15526 Add target_ops parameter.
15527 * target.c (target_insert_breakpoint): Split into this and ...
15528 (forward_target_insert_breakpoint): ... this.
15529 (target_remove_breakpoint): Split into this and ...
15530 (forward_target_remove_breakpoint): ... this.
15531 (debug_to_insert_breakpoint): Add target_ops parameter.
15532 Call forward_target_insert_breakpoint.
15533 (debug_to_remove_breakpoint): Add target_ops parameter.
15534 Call forward_target_remove_breakpoint.
15535 (update_current_target): Do not inherit or default to_insert_breakpoint
15536 and to_remove_breakpoint.
15537 * corelow.c (ignore): Add target_ops parameter.
15538 * exec.c (ignore): Add target_ops parameter.
15539 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15540 Add target_ops parameter.
15541 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15542 Add target_ops parameter.
15543 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15544 Add target_ops parameter.
15545 * record-full.c (record_full_beneath_to_insert_breakpoint)
15546 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15547 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15548 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15549 (record_full_core_remove_breakpoint): Add target_ops parameter.
15550 Update users.
15551 (record_full_beneath_to_insert_breakpoint_ops)
15552 (record_full_beneath_to_remove_breakpoint_ops)
15553 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15554 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15555 tmp_to_remove_breakpoint_ops,
15556 record_full_beneath_to_insert_breakpoint_ops, and
15557 record_full_beneath_to_remove_breakpoint_ops.
15558 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15559 (m32r_remove_breakpoint): Add target_ops parameter.
15560 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15561 Add target_ops parameter.
15562 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15563 Add target_ops parameter.
15564
cecac1ab
MM
155652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15566 Markus Metzger <markus.t.metzger@intel.com>
15567
15568 * record-btrace.c: Include frame-unwind.h.
15569 (record_btrace_frame_unwind_stop_reason)
15570 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15571 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15572 New.
15573 (init_record_btrace_ops): Install it.
15574
824344ca
MM
155752014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15576
15577 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15578 get_prev_frame_1.
15579
32261e52
MM
155802014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15581
15582 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15583 earlier.
15584
ea001bdc
MM
155852014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15586
15587 * frame-unwind.c: Include target.h.
15588 (frame_unwind_try_unwinder): New function with code from ...
15589 (frame_unwind_find_by_frame): ... here. New variable
15590 unwinder_from_target, call also target_get_unwinder)
15591 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15592 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15593 * target.h (struct target_ops): New fields to_get_unwinder and
15594 to_get_tailcall_unwinder.
15595 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15596
1f3ef581
MM
155972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15598
15599 * record-btrace.c (record_btrace_fetch_registers)
15600 (record_btrace_store_registers)
15601 (record_btrace_to_prepare_to_store): New.
15602 (init_record_btrace_ops): Add the above.
15603
f32dbf8c
MM
156042014-01-16 Tom Tromey <tromey@redhat.com>
15605
15606 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15607 * target.h (struct target_ops) <to_prepare_to_store>: Add
15608 argument.
15609 (target_prepare_to_store): Add argument.
15610 * target.c (debug_to_prepare_to_store): Add argument.
15611 (update_current_target): Update.
15612 * remote.c (remote_prepare_to_store): Add 'self' argument.
15613 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15614 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15615 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15616 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15617 argument.
15618 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15619 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15620 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15621 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15622 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15623
07bbe694
MM
156242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15625
15626 * btrace.h (replay) <replay>: New.
15627 (btrace_is_replaying): New.
15628 * btrace.c (btrace_clear): Free replay iterator.
15629 (btrace_is_replaying): New.
15630 * record-btrace.c (record_btrace_is_replaying): New.
15631 (record_btrace_info): Print insn number if replaying.
15632 (record_btrace_insn_history): Start at replay position.
15633 (record_btrace_call_history): Start at replay position.
15634 (init_record_btrace_ops): Init to_record_is_replaying.
15635
0688d04e
MM
156362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15637
15638 * record-btrace.c (record_btrace_insn_history_range): Include
15639 end.
15640 (record_btrace_insn_history_from): Adjust range.
15641 (record_btrace_call_history_range): Include
15642 end.
15643 (record_btrace_call_history_from): Adjust range.
15644 * NEWS: Announce changes.
15645
8710b709
MM
156462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15647
15648 * record.h (enum record_print_flag)
15649 <record_print_indent_calls>: New.
15650 * record.c (get_call_history_modifiers): Recognize /c modifier.
15651 (_initialize_record): Document /c modifier.
15652 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15653 Reorder fields. Optionally indent the function name. Update
15654 all users.
15655 * NEWS: Announce changes.
15656
d0fa7535
MM
156572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15658
15659 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15660
5de9129b
MM
156612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15662
15663 * btrace.c (ftrace_new_function): Start counting at one.
15664 * record-btrace.c (record_btrace_info): Adjust number of calls
15665 and insns.
15666 * NEWS: Announce it.
15667
7acbe133
MM
156682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15669
15670 * record-btrace.c (btrace_call_history_insn_range): Print
15671 insn range as [begin, end].
15672
23a7fe75
MM
156732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15674
15675 * btrace.h (struct btrace_func_link): New.
15676 (enum btrace_function_flag): New.
15677 (struct btrace_inst): Rename to ...
15678 (struct btrace_insn): ...this. Update all users.
15679 (struct btrace_func) <ibegin, iend>: Remove.
15680 (struct btrace_func_link): New.
15681 (struct btrace_func): Rename to ...
15682 (struct btrace_function): ...this. Update all users.
15683 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15684 (number, level, flags>: New.
15685 (struct btrace_insn_iterator): Rename to ...
15686 (struct btrace_insn_history): ...this.
15687 Update all users.
15688 (struct btrace_insn_iterator, btrace_call_iterator): New.
15689 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15690 (struct btrace_target_info) <begin, end, level>
15691 <insn_history, call_history>: New.
15692 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15693 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15694 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15695 (btrace_call_number, btrace_call_begin, btrace_call_end)
15696 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15697 (btrace_find_function_by_number, btrace_set_insn_history)
15698 (btrace_set_call_history): New.
15699 * btrace.c (btrace_init_insn_iterator)
15700 (btrace_init_func_iterator, compute_itrace): Remove.
15701 (ftrace_print_function_name, ftrace_print_filename)
15702 (ftrace_skip_file): Change
15703 parameter to const.
15704 (ftrace_init_func): Remove.
15705 (ftrace_debug): Use new btrace_function fields.
15706 (ftrace_function_switched): Also consider gaining and
15707 losing symbol information).
15708 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15709 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15710 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15711 New.
15712 (ftrace_new_function): Move. Remove debug print.
15713 (ftrace_update_lines, ftrace_update_insns): New.
15714 (ftrace_update_function): Check for call, ret, and jump.
15715 (compute_ftrace): Renamed to ...
15716 (btrace_compute_ftrace): ...this. Rewritten to compute call
15717 stack.
15718 (btrace_fetch, btrace_clear): Updated.
15719 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15720 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15721 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15722 (btrace_call_number, btrace_call_begin, btrace_call_end)
15723 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15724 (btrace_find_function_by_number, btrace_set_insn_history)
15725 (btrace_set_call_history): New.
15726 * record-btrace.c (require_btrace): Use new btrace thread
15727 info fields.
15728 (record_btrace_info, btrace_insn_history)
15729 (record_btrace_insn_history, record_btrace_insn_history_range):
15730 Use new btrace thread info fields and new iterator.
15731 (btrace_func_history_src_line): Rename to ...
15732 (btrace_call_history_src_line): ...this. Use new btrace
15733 thread info fields.
15734 (btrace_func_history): Rename to ...
15735 (btrace_call_history): ...this. Use new btrace thread info
15736 fields and new iterator.
15737 (record_btrace_call_history, record_btrace_call_history_range):
15738 Use new btrace thread info fields and new iterator.
15739
8372a7cb
MM
157402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15741
15742 * frame.h (frame_id_build_unavailable_stack_special): New.
15743 * frame.c (frame_id_build_unavailable_stack_special): New.
15744
c2170eef
MM
157452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15746
15747 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15748 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15749 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15750 to gdbarch.
15751 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15752 (i386_insn_is_jump, i386_jmp_p): New.
15753 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15754 insn_is_jump to gdbarch.
15755 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15756 * gdbarch.h: Regenerated.
15757 * gdbarch.c: Regenerated.
15758 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15759 (default_insn_is_jump): New.
15760 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15761 (default_insn_is_jump): New.
15762
864089d2
MM
157632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15764
15765 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15766 Change to ...
15767 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15768 (btrace_read_type) <btrace_read_new>: Change to ...
15769 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15770
ed9edfb5
MM
157712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15772
15773 * common/linux-btrace.c (linux_read_btrace): Free trace from
15774 previous iteration.
15775
fbcbc3fd
DE
157762014-01-15 Doug Evans <dje@google.com>
15777
15778 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15779 uint32_t.
15780
3d548a53
TT
157812014-01-15 Tom Tromey <tromey@redhat.com>
15782
15783 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15784 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15785 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15786 (set_objfile_main_name): New function.
15787 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15788 language_of_main>: New fields.
15789 (set_objfile_main_name): Declare.
15790 * symtab.c (find_main_name): Loop over objfiles to find the main
15791 name and language.
15792 (set_main_name): Now static.
15793 (get_main_info): Add comment.
15794 * symtab.h (set_main_name): Don't declare.
15795
32ac0d11
TT
157962014-01-15 Tom Tromey <tromey@redhat.com>
15797
15798 * symtab.c (main_progspace_key): New global.
15799 (struct main_info): New.
15800 (name_of_main, language_of_main): Remove.
15801 (get_main_info, main_info_cleanup): New function.
15802 (set_main_name, main_name, main_language): Use get_main_info.
15803 (_initialize_symtab): Initialize main_progspace_key.
15804
9e6c82ad
TT
158052014-01-15 Tom Tromey <tromey@redhat.com>
15806
15807 * dbxread.c (process_one_symbol): Update.
15808 * dwarf2read.c (read_partial_die): Update.
15809 * symfile.c (set_initial_language): Call main_language.
15810 * symtab.c (language_of_main): Now static.
15811 (set_main_name): Add 'lang' parameter.
15812 (find_main_name): Update.
15813 (main_language): New function.
15814 (symtab_observer_executable_changed): Update.
15815 * symtab.h (set_main_name): Update.
15816 (language_of_main): Remove.
15817 (main_language): Declare.
15818
6ef55de7
TT
158192014-01-15 Tom Tromey <tromey@redhat.com>
15820
15821 * symfile.c (init_entry_point_info): Use new "initialized" field.
15822 Update.
15823 * objfiles.h (struct entry_point) <initialized>: New field.
15824 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15825 (struct objfile) <ei>: ...here. Remove.
15826 * objfiles.c (entry_point_address_query): Update.
15827
53eddfa6
TT
158282014-01-15 Tom Tromey <tromey@redhat.com>
15829
15830 * objfiles.c (entry_point_address_query): Relocate entry point
15831 address.
15832 (objfile_relocate1): Do not relocate entry point address.
15833 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15834 <the_bfd_section_index>: New field.
15835 * symfile.c (init_entry_point_info): Find the entry point's
15836 section.
15837
d56e56aa
TT
158382014-01-15 Tom Tromey <tromey@redhat.com>
15839
15840 * solib-frv.c (enable_break): Use entry_point_address_query.
15841
33a97bbe
OJ
158422014-01-15 Omair Javaid <omair.javaid@linaro.org>
15843
15844 * NEWS: Add note on improved process record-replay on
15845 arm*-linux* targets.
15846
c6ec2b30
OJ
158472014-01-15 Omair Javaid <omair.javaid@linaro.org>
15848
15849 * arm-tdep.c (enum arm_record_result): New enum.
15850 (arm_record_unsupported_insn): New function.
15851 (arm_record_coproc_data_proc): Removed.
15852 (thumb2_record_ld_st_multiple): New function.
15853 (thumb2_record_ld_st_dual_ex_tbb): New function.
15854 (thumb2_record_data_proc_sreg_mimm): New function.
15855 (thumb2_record_ps_dest_generic): New function.
15856 (thumb2_record_branch_misc_cntrl): New function.
15857 (thumb2_record_str_single_data): New function.
15858 (thumb2_record_ld_mem_hints): New function.
15859 (thumb2_record_ld_word): New function.
15860 (thumb2_record_lmul_lmla_div): New function.
15861 (thumb2_record_decode_insn_handler): New function.
15862 (decode_insn): Add thumb32 instruction handlers.
15863
97dfe206
OJ
158642014-01-15 Omair Javaid <omair.javaid@linaro.org>
15865
15866 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15867 (struct arm_linux_record_tdep): Declare.
15868 (arm_canonicalize_syscall): New function.
15869 (arm_all_but_pc_registers_record): New function.
15870 (arm_linux_syscall_record): New function.
15871 (arm_linux_init_abi): Add syscall recording constructs.
15872 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15873 decoding. (arm_record_coproc_data_proc): Update arm syscall
15874 decoding.
15875 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15876 <arm_syscall_record>: New field.
15877 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15878 gdb_target_obs.
15879
9904a494
OJ
158802014-01-15 Omair Javaid <omair.javaid@linaro.org>
15881
15882 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15883 register for push instruction recording.
15884
f969241e
OJ
158852014-01-15 Omair Javaid <omair.javaid@linaro.org>
15886
15887 * arm-tdep.c (thumb_record_misc): Update to correct logical
15888 error while recording ldm, ldmia and pop instructions.
15889
bfbbec00
OJ
158902014-01-15 Omair Javaid <omair.javaid@linaro.org>
15891
15892 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15893
e40adcc9
PA
158942014-01-15 Pedro Alves <palves@redhat.com>
15895
15896 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15897 (go32_resume, go32_fetch_registers, store_register)
15898 (go32_store_registers, go32_prepare_to_store)
15899 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15900 (go32_create_inferior, go32_can_run, go32_terminal_init)
15901 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15902 declarations.
15903
b0a16e66
TT
159042014-01-15 Tom Tromey <tromey@redhat.com>
15905
15906 * target.h (async_callback_ftype): New typedef.
15907 (struct target_ops) <to_async>: Use it.
15908
bf7105a4
JB
159092014-01-15 Joel Brobecker <brobecker@adacore.com>
15910
15911 * python/py-value.c (get_field_type): Remove unnecessary curly
15912 braces for single-statement if block.
15913
a8f35c2e
JB
159142014-01-15 Joel Brobecker <brobecker@adacore.com>
15915
15916 * python/py-type.c (convert_field): Add missing empty line
15917 after declarations.
15918
bb4142cf
DE
159192014-01-14 Doug Evans <dje@google.com>
15920
15921 * symfile.h (expand_symtabs_matching): Renamed from
15922 expand_partial_symbol_names. Update prototype.
15923 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15924 * symfile.c (expand_symtabs_matching): Renamed from
15925 expand_partial_symbol_names. New args file_matcher, kind.
15926 Rename arg fun to symbol_matcher.
15927 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15928 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15929 ada_expand_partial_symbol_name.
15930 (ada_make_symbol_completion_list): Update to call
15931 expand_symtabs_matching.
15932 (ada_add_global_exceptions): Call expand_symtabs_matching.
15933 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15934 call map_symbol_filenames.
15935 * symtab.c (sources_info): Update to call map_symbol_filenames.
15936 (search_symbols): Call expand_symtabs_matching.
15937 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15938 (default_make_symbol_completion_list_break_on): Update to call
15939 expand_symtabs_matching.
15940 (make_source_files_completion_list): Update to call
15941 map_symbol_filenames.
15942
206f2a57
DE
159432014-01-14 Doug Evans <dje@google.com>
15944
15945 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15946 (expand_symtabs_symbol_matcher_ftype): New typedef.
15947 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15948 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15949 * symfile.c (expand_partial_symbol_names): Update to use
15950 expand_symtabs_symbol_matcher_ftype.
15951 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15952 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15953 Arg name_matcher renamed to symbol_matcher.
15954 * psymtab.c (recursively_search_psymtabs): Update to use
15955 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15956 sym_matcher.
15957 (expand_symtabs_matching_via_partial): Update to use
15958 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15959 Arg name_matcher renamed to symbol_matcher.
15960
540c2971
DE
159612014-01-14 Doug Evans <dje@google.com>
15962
15963 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15964 (map_partial_symbol_filenames): Ditto.
15965 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15966 (map_partial_symbol_filenames): Ditto.
15967 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15968 (map_partial_symbol_filenames): Ditto.
15969 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15970 (map_partial_symbol_filenames): Ditto.
15971 * symtab.c: Delete #include "psymtab.h".
15972
8213266a
PA
159732014-01-14 Pedro Alves <palves@redhat.com>
15974 Tom Tromey <tromey@redhat.com>
15975
15976 * infrun.c (use_displaced_stepping): Use find_record_target
15977 instead of RECORD_IS_USED.
15978 (adjust_pc_after_break): Use record_full_is_used instead of
15979 RECORD_IS_USED.
15980 * record-btrace.c (record_btrace_open): Call record_preopen
15981 instead of checking RECORD_IS_USED.
15982 * record-full.c (record_full_shortname)
15983 (record_full_core_shortname): New globals.
15984 (record_full_is_used): New function.
15985 (find_full_open): Call record_preopen instead of checking
15986 RECORD_IS_USED.
15987 (init_record_full_ops): Set the target's shortname to
15988 record_full_shortname.
15989 (init_record_full_core_ops): Set the target's shortname to
15990 record_full_core_shortname.
15991 * record-full.h (record_full_is_used): Declare.
15992 * record.c (find_record_target): Make extern.
15993 (record_preopen): New function.
15994 * record.h (RECORD_IS_USED): Delete macro.
15995 (find_record_target, record_preopen): Declare functions.
15996
7ec1862d
YQ
159972014-01-14 Yao Qi <yao@codesourcery.com>
15998
15999 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16000 'len''s type to ULONGEST.
16001 (core_xfer_shared_libraries_aix): Likewise.
16002 * gdbarch.c, gdbarch.h: Regenerated.
16003 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16004 Change type of 'len' to ULONGEST.
16005 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16006 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16007
dea80a27
YQ
160082014-01-14 Yao Qi <yao@codesourcery.com>
16009
16010 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16011 type of 'len' to ULONGEST.
16012 (linux_xfer_osdata_processgroups): Likewise.
16013 (linux_xfer_osdata_threads): Likewise.
16014 (linux_xfer_osdata_fds): Likewise.
16015 (linux_xfer_osdata_isockets): Likewise.
16016 (linux_xfer_osdata_shm): Likewise.
16017 (linux_xfer_osdata_sem): Likewise.
16018 (linux_xfer_osdata_msg): Likewise.
16019 (linux_common_xfer_osdata): Likewise.
16020 (struct osdata_type) <getter>: Likewise.
16021 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16022 the declaration.
16023
b55e14c7
YQ
160242014-01-14 Yao Qi <yao@codesourcery.com>
16025
16026 * target.h (target_xfer_partial_ftype): Update.
16027 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16028 ULONGEST.
16029 * aix-thread.c (aix_thread_xfer_partial): Change type of
16030 argument 'len' to ULONGEST.
16031 * auxv.c (procfs_xfer_auxv): Likewise.
16032 (ld_so_xfer_auxv): Likewise.
16033 (memory_xfer_auxv): Likewise.
16034 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16035 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16036 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16037 * corelow.c (core_xfer_partial): Likewise.
16038 * ctf.c (ctf_xfer_partial): Likewise.
16039 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16040 '%u'.
16041 (darwin_read_dyld_info): Likewise.
16042 (darwin_xfer_partial): Likewise.
16043 * exec.c (section_table_xfer_memory_partial): Likewise.
16044 (exec_xfer_partial): Likewise.
16045 * exec.h (section_table_xfer_memory_partial): Update
16046 declaration.
16047 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16048 instead of plongest.
16049 (gnu_xfer_partial): Likewise.
16050 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16051 (ia64_hpux_xfer_solib_got): Likewise.
16052 (ia64_hpux_xfer_partial): Likewise.
16053 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16054 * inf-ptrace.c (inf_ptrace_xfer_partial):
16055 * inf-ttrace.c (inf_ttrace_xfer_partial):
16056 * linux-nat.c (linux_xfer_siginfo): Likewise.
16057 (linux_nat_xfer_partial): Likewise.
16058 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16059 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16060 * monitor.c (monitor_xfer_memory): Likewise.
16061 (monitor_xfer_partial): Likewise.
16062 * procfs.c (procfs_xfer_partial): Likewise.
16063 * record-full.c (record_full_xfer_partial): Likewise.
16064 (record_full_core_xfer_partial): Likewise.
16065 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16066 instead of plongest.
16067 (gdbsim_xfer_partial): Likewise.
16068 * remote.c (remote_xfer_partial): Likewise.
16069 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16070 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16071 declaration.
16072 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16073 (rs6000_xfer_shared_libraries): Likewise.
16074 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16075 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16076 (sparc_xfer_partial): Likewise.
16077 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16078 (spu_xfer_partial): Likewise.
16079 * spu-multiarch.c (spu_xfer_partial): Likewise.
16080 * target.c (target_read_live_memory): Likewise.
16081 (memory_xfer_live_readonly_partial): Likewise.
16082 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16083 (target_xfer_partial, default_xfer_partial): Likewise.
16084 (current_xfer_partial): Likewise.
16085 * tracepoint.c (tfile_xfer_partial): Likewise.
16086 * windows-nat.c (windows_xfer_memory): Likewise. Call
16087 pulongest instead of plongest.
16088 (windows_xfer_partial): Likewise.
16089 (windows_xfer_shared_libraries): Likewise.
16090
05804640
YQ
160912014-01-14 Yao Qi <yao@codesourcery.com>
16092
16093 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16094 target_xfer_partial_ftype.
16095
b5b08fb4
SC
160962014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16097
16098 PR python/15464
16099 PR python/16113
16100 * valops.c (value_struct_elt_bitpos): New function
16101 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16102 object to 'None' if the field name is an empty string ("").
16103 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16104 attribute to look for a field when 'name' is 'None'.
16105 (get_field_type): New function
16106
13aaf454
DE
161072014-01-13 Doug Evans <dje@google.com>
16108
16109 PR symtab/16426
16110 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16111 (try_open_dwop_file): Ditto.
16112 * gdb_bfd.c: #include "vec.h".
16113 (bfdp): New typedef.
16114 (struct gdb_bfd_data): New member included_bfds.
16115 (gdb_bfd_unref): Unref all included bfds.
16116 (gdb_bfd_record_inclusion): New function.
16117 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16118
c2cec97c
TT
161192014-01-13 Tom Tromey <tromey@redhat.com>
16120
16121 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16122
78e5999d
TT
161232014-01-13 Tom Tromey <tromey@redhat.com>
16124
16125 * defs.h (use_windows): Remove.
16126 * gdb.c (main): Update.
16127 * main.c (captured_main, gdb_main): Update.
16128 * main.h (struct captured_main_args) <use_windows>: Remove.
16129 * top.c (use_windows): Remove.
16130
f2052bbe
TT
161312014-01-13 Tom Tromey <tromey@redhat.com>
16132
16133 * defs.h (deprecated_flush_hook): Remove.
16134
fde4f8ed
JK
161352014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16136
16137 PR threads/16216
16138 * linux-thread-db.c (try_thread_db_load): Add parameter
16139 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16140 (try_thread_db_load_from_pdir_1): Move it there from here.
16141 (try_thread_db_load_from_sdir): Update caller.
16142 (try_thread_db_load_from_dir): Move it there from here.
16143
bdf61915
PP
161442014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16145
16146 * regformats/regdat.sh: Always rewrite the register file.
16147
f71e1a8d
PA
161482014-01-13 Pedro Alves <palves@redhat.com>
16149
16150 * Makefile.in (CHECK_HEADERS): New variable.
16151 (check-headers:): New rule.
16152
42c85435
TT
161532014-01-13 Tom Tromey <tromey@redhat.com>
16154
16155 * cli/cli-setshow.c (do_set_command): Update.
16156 * defs.h (deprecated_set_hook): Remove.
16157 * top.c (deprecated_set_hook): Remove.
16158
f8de5129
PA
161592014-01-13 Pedro Alves <palves@redhat.com>
16160
16161 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16162 the tracepoint if the PC is a pseudo-register.
16163
fc270c35
TT
161642014-01-13 Tom Tromey <tromey@redhat.com>
16165
16166 * defs.h (XCALLOC): Remove.
16167 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16168 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16169 * dwarf2loc.c (allocate_piece_closure): Likewise.
16170 * elfread.c (elf_symfile_segments): Likewise.
16171 (elf_symfile_segments): Likewise.
16172 * gdbtypes.c (copy_type_recursive): Likewise.
16173 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16174 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16175 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16176 XCALLOC.
16177 * mt-tdep.c (mt_gdbarch_init): Likewise.
16178 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16179 XCALLOC.
16180 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16181 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16182 * registry.c (registry_alloc_data): Likewise.
16183 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16184 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16185 * serial.c (serial_fdopen_ops): Likewise.
16186 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16187 XCALLOC.
16188 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16189 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16190 not XCALLOC.
16191
70ba0933
TT
161922014-01-13 Tom Tromey <tromey@redhat.com>
16193
16194 * defs.h (XMALLOC): Remove.
16195 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16196 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16197 * cli-out.c (struct ui_out *): Likewise.
16198 * cli/cli-dump.c (add_dump_command): Likewise.
16199 (add_dump_command): Likewise.
16200 * complaints.c (get_complaints): Likewise.
16201 (find_complaint): Likewise.
16202 * dwarf2-frame.c (execute_cfa_program): Likewise.
16203 * dwarf2read.c (abbrev_table_read_table): Likewise.
16204 * gdbarch.sh: Likewise.
16205 * gdbarch.c: Rebuild.
16206 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16207 * interps.c (interp_new): Likewise.
16208 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16209 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16210 * mi/mi-console.c (mi_console_file_new): Likewise.
16211 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16212 * mi/mi-out.c (mi_out_new): Likewise.
16213 * mi/mi-parse.c (mi_parse): Likewise.
16214 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16215 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16216 * observer.c (xalloc_observer_list_node): Likewise.
16217 * regcache.c (regcache_xmalloc_1): Likewise.
16218 * reggroups.c (reggroup_new): Likewise.
16219 (_initialize_reggroup): Likewise.
16220 * registry.c (register_data_with_cleanup): Likewise.
16221 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16222 * ser-base.c (serial_ttystate): Likewise.
16223 * ser-mingw.c (make_pipe_state): Likewise.
16224 * ser-pipe.c (pipe_open): Likewise.
16225 * serial.c (serial_open): Likewise.
16226 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16227 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16228 (tui_alloc_win_info): Likewise.
16229 (tui_add_content_elements): Likewise.
16230 * tui/tui-file.c (tui_file_new): Likewise.
16231 * tui/tui-out.c (tui_out_new): Likewise.
16232 * ui-file.c (mem_file_new): Likewise.
16233 * ui-out.c (push_level): Likewise.
16234 (make_cleanup_ui_out_end): Likewise.
16235 (append_header_to_list): Likewise.
16236 (ui_out_new): Likewise.
16237 * user-regs.c (user_reg_add_builtin): Likewise.
16238
41bf6aca
TT
162392014-01-13 Tom Tromey <tromey@redhat.com>
16240
16241 * defs.h (XZALLOC): Remove.
16242 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16243 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16244 (get_ada_tasks_inferior_data): Likewise.
16245 * auto-load.c (get_auto_load_pspace_data): Likewise.
16246 * auxv.c (get_auxv_inferior_data): Likewise.
16247 * bfd-target.c (target_bfd_reopen): Likewise.
16248 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16249 (deprecated_insert_raw_breakpoint): Likewise.
16250 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16251 * corelow.c (core_open): Likewise.
16252 * darwin-nat.c (darwin_check_new_threads): Likewise.
16253 (darwin_attach_pid): Likewise.
16254 * dummy-frame.c (dummy_frame_push): Likewise.
16255 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16256 * dwarf2loc.c (allocate_piece_closure): Likewise.
16257 * elfread.c (elf_symfile_segments): Likewise.
16258 * eval.c (ptrmath_type_p): Likewise.
16259 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16260 * gdbtypes.c (alloc_type_arch): Likewise.
16261 (alloc_type_instance): Likewise.
16262 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16263 * inf-child.c (inf_child_can_use_agent): Likewise.
16264 * inflow.c (get_inflow_inferior_data): Likewise.
16265 * infrun.c (save_infcall_suspend_state): Likewise.
16266 * jit.c (jit_reader_load): Likewise.
16267 (get_jit_objfile_data): Likewise.
16268 (get_jit_program_space_data): Likewise.
16269 (jit_object_open_impl): Likewise.
16270 (jit_symtab_open_impl): Likewise.
16271 (jit_block_open_impl): Likewise.
16272 (jit_frame_sniffer): Likewise.
16273 * linux-fork.c (add_fork): Likewise.
16274 * maint.c (make_command_stats_cleanup): Likewise.
16275 * objfiles.c (get_objfile_pspace_data): Likewise.
16276 * opencl-lang.c (struct lval_closure): Likewise.
16277 * osdata.c (osdata_start_osdata): Likewise.
16278 * progspace.c (new_address_space): Likewise.
16279 (add_program_space): Likewise.
16280 * remote-sim.c (get_sim_inferior_data): Likewise.
16281 * sh-tdep.c (sh_gdbarch_init): Likewise.
16282 * skip.c (Ignore): Likewise.
16283 (skip_delete_command): Likewise.
16284 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16285 (library_list_start_library): Likewise.
16286 (solib_aix_current_sos): Likewise.
16287 * solib-darwin.c (get_darwin_info): Likewise.
16288 (darwin_current_sos): Likewise.
16289 * solib-dsbt.c (get_dsbt_info): Likewise.
16290 * solib-ia64-hpux.c (new_so_list): Likewise.
16291 (ia64_hpux_get_solib_linkage_addr): Likewise.
16292 * solib-spu.c (append_ocl_sos): Likewise.
16293 (spu_current_sos): Likewise.
16294 * solib-svr4.c (get_svr4_info): Likewise.
16295 (svr4_keep_data_in_core): Likewise.
16296 (library_list_start_library): Likewise.
16297 (svr4_default_sos): Likewise.
16298 (svr4_read_so_list): Likewise.
16299 * solib-target.c (library_list_start_library): Likewise.
16300 (solib_target_current_sos): Likewise.
16301 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16302 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16303 * symfile.c (default_symfile_segments): Likewise.
16304 * target-descriptions.c (tdesc_data_init): Likewise.
16305 (tdesc_create_reg): Likewise.
16306 (struct tdesc_type *): Likewise.
16307 (tdesc_create_vector): Likewise.
16308 (tdesc_set_struct_size): Likewise.
16309 (struct tdesc_type *): Likewise.
16310 (tdesc_free_feature): Likewise.
16311 (tdesc_create_feature): Likewise.
16312 * windows-nat.c (windows_add_thread): Likewise.
16313 (windows_make_so): Likewise.
16314 * xml-support.c (gdb_xml_body_text): Likewise.
16315 (gdb_xml_create_parser_and_cleanup): Likewise.
16316 (xml_process_xincludes): Likewise.
16317 * xml-syscall.c (allocate_syscalls_info): Likewise.
16318 (syscall_create_syscall_desc): Likewise.
16319
5acfdbae
SDJ
163202014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16321
16322 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16323 function, with code from i386_stap_parse_special_token.
16324 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16325 (i386_stap_parse_special_token): Move code to the two functions
16326 above; simplify it.
16327
0000e5cc
PA
163282014-01-09 Pedro Alves <palves@redhat.com>
16329 Hui Zhu <hui@codesourcery.com>
16330
16331 PR gdb/16101
16332 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16333 bp_err_string. Don't mark the location shlib_disabled if the
16334 error thrown wasn't a generic or memory error. Catch errors
16335 thrown while inserting breakpoints in overlayed code. Output
16336 error message of software breakpoints.
16337 * remote.c (remote_insert_breakpoint): If this breakpoint has
16338 target-side commands but this stub doesn't support Z0 packets,
16339 throw NOT_SUPPORTED_ERROR error.
16340 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16341 * target.h (target_insert_breakpoint): Extend comment.
16342 (target_insert_hw_breakpoint): Add comment.
16343
b7ea362b
PA
163442014-01-08 Pedro Alves <palves@redhat.com>
16345
16346 * remote.c (remote_add_thread): Add threads silently if starting
16347 up.
16348 (remote_notice_new_inferior): If in all-stop, and starting up,
16349 don't call notice_new_inferior.
16350 (get_current_thread): New function, factored out from ...
16351 (add_current_inferior_and_thread): ... this. Adjust.
16352 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16353 found any thread, then select the remote's current thread as GDB's
16354 current thread too.
16355
b7bba001
JB
163562014-01-08 Joel Brobecker <brobecker@adacore.com>
16357
16358 * NEWS: Create a new section for the next release branch.
16359 Rename the section of the current branch, now that it has
16360 been cut.
16361
16dfbded
JB
163622014-01-08 Joel Brobecker <brobecker@adacore.com>
16363
16364 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16365 * version.in: Bump version to 7.7.50.DATE-cvs.
16366
22c90ac1
YQ
163672014-01-08 Yao Qi <yao@codesourcery.com>
16368
16369 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16370 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16371 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16372
d64ad97c
YQ
163732014-01-08 Yao Qi <yao@codesourcery.com>
16374
16375 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16376 return value of bfd_get_filename to symbol_file_add_from_bfd.
16377
f93ba80c
PM
163782014-01-08 Pierre Muller <muller@sourceware.org>
16379
16380 Fix PR16201.
16381 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16382 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16383 to prim_record_mininal_symbol_and_info.
16384 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16385 in call to prim_record_minimal_symbol_and_info.
16386 (read_pe_exported_syms): Set index field of section_data.
16387
a4d9ba85
AP
163882014-01-07 Andrew Pinski <apinski@cavium.com>
16389
16390 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16391 * features/aarch64.c: Regenerate.
16392
1b67eb02
AS
163932014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16394
16395 * target.c (return_null): Define.
16396 (update_current_target): Use it instead of return_zero for
16397 functions that return a pointer.
16398
5e3f4fab
EBM
163992014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16400
16401 * source.c (add_path): Fix check for duplicated paths in the previously
16402 included paths.
16403
e2616788
HK
164042014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16405
16406 * ada-lang.c: Remove duplicated include statements.
16407 * alphabsd-nat.c: Ditto.
16408 * amd64-darwin-tdep.c: Ditto.
16409 * amd64fbsd-nat.c: Ditto.
16410 * auto-load.c: Ditto.
16411 * ax-gdb.c: Ditto.
16412 * breakpoint.c: Ditto.
16413 * dbxread.c: Ditto.
16414 * fork-child.c: Ditto.
16415 * gdb_usleep.c: Ditto.
16416 * i386-darwin-tdep.c: Ditto.
16417 * i386fbsd-nat.c: Ditto.
16418 * infcmd.c: Ditto.
16419 * inferior.c: Ditto.
16420 * jv-lang.c: Ditto.
16421 * linux-nat.c: Ditto.
16422 * linux-tdep.c: Ditto.
16423 * m68kbsd-nat.c: Ditto.
16424 * m68klinux-nat.c: Ditto.
16425 * microblaze-tdep.c: Ditto.
16426 * mips-linux-tdep.c: Ditto.
16427 * mn10300-tdep.c: Ditto.
16428 * nto-tdep.c: Ditto.
16429 * opencl-lang.c: Ditto.
16430 * osdata.c: Ditto.
16431 * printcmd.c: Ditto.
16432 * regcache.c: Ditto.
16433 * remote-m32r-sdi.c: Ditto.
16434 * remote.c: Ditto.
16435 * symfile.c: Ditto.
16436 * symtab.c: Ditto.
16437 * tilegx-linux-nat.c: Ditto.
16438 * tilegx-tdep.c: Ditto.
16439 * tracepoint.c: Ditto.
16440 * valops.c: Ditto.
16441 * vaxbsd-nat.c: Ditto.
16442 * windows-nat.c: Ditto.
16443 * xtensa-tdep.c: Ditto.
16444
bd1f7788
YQ
164452014-01-07 Yao Qi <yao@codesourcery.com>
16446
16447 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16448
79301218
JB
164492014-01-07 Yao Qi <yao@codesourcery.com>
16450 Joel Brobecker <brobecker@adacore.com>
16451
16452 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16453 (pdc_write_regs): Likewise.
16454 (fetch_regs_kernel_thread): Likewise.
16455 (store_regs_kernel_thread): Likewise.
16456
164572014-01-07 Joel Brobecker <brobecker@adacore.com>
16458
16459 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16460 tagged type objects to their actual type.
16461
8e355c5d
JB
164622014-01-07 Joel Brobecker <brobecker@adacore.com>
16463
16464 * ada-valprint.c (print_field_values): Add "language" parameter.
16465 Update calls to print_field_values and print_variant_part.
16466 Pass new parameter "language" in call to val_print instead
16467 of "current_language". Replace call to ada_val_print by call
16468 to val_print.
16469 (print_variant_part): Add "language" parameter.
16470 (ada_val_print_struct_union): Update call to print_field_values.
16471
4fbf5aa5
JB
164722014-01-07 Joel Brobecker <brobecker@adacore.com>
16473
16474 * ada-valprint.c (ui_memcpy): Delete.
16475 (ada_print_floating): Update documentation. Add empty line
16476 between between function documentation and implementation.
16477 Delete variable "buffer". Use ui_file_xstrdup in place of
16478 ui_file_put. Minor adjustments following this change.
16479
71855601
JB
164802014-01-07 Joel Brobecker <brobecker@adacore.com>
16481
16482 * ada-valprint.c (ada_val_print_string): New function,
16483 extracted from ada_val_print_array.
16484 (ada_val_print_array): Replace extracted code by call
16485 to ada_val_print_string followed by a return. Move
16486 "else" branch to the function's top block.
16487
4eb27a30
JB
164882014-01-07 Joel Brobecker <brobecker@adacore.com>
16489
16490 * ada-valprint.c (ada_val_print_array): Move implementation
16491 down. Rename parameter "offset" and "val" into "offset_aligned"
16492 and "original_value" respectively. Add parameter "offset".
16493
34b27950
JB
164942014-01-07 Joel Brobecker <brobecker@adacore.com>
16495
16496 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16497 re-organizing the code. Change the "???" message printed
16498 when target type is a TYPE_CODE_UNDEF into
16499 "<ref to undefined type>".
16500
079e4591
JB
165012014-01-07 Joel Brobecker <brobecker@adacore.com>
16502
16503 * ada-valprint.c (print_record): Delete, implementation inlined...
16504 (ada_val_print_struct_union): ... here. Remove call to
16505 ada_check_typedef in inlined implementation.
16506
8004dfd1
JB
165072014-01-07 Joel Brobecker <brobecker@adacore.com>
16508
16509 * ada-valprint.c (ada_val_print_gnat_array): New function,
16510 extracted from ada_val_print_1;
16511 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16512 (ada_val_print_flt, ada_val_print_struct_union)
16513 (ada_val_print_ref): Likewise.
16514 (ada_val_print_1): Delete variables i and elttype.
16515 Replace extracted-out code by call to corresponding
16516 new functions.
16517
760a2db0
JB
165182014-01-07 Joel Brobecker <brobecker@adacore.com>
16519
16520 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16521
3a92c861
JB
165222014-01-07 Joel Brobecker <brobecker@adacore.com>
16523
16524 * ada-valprint.c (ada_val_print_1): Replace calls to
16525 ada_val_print_1 by calls to val_print.
16526
cd1630f9
JB
165272014-01-07 Joel Brobecker <brobecker@adacore.com>
16528
16529 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16530 Update calls to self accordingly. Replace calls to c_val_print
16531 by calls to val_print.
16532
bdf779a0
JB
165332014-01-07 Joel Brobecker <brobecker@adacore.com>
16534
16535 * ada-valprint.c (print_record): Delete declaration.
16536 (adjust_type_signedness, ada_val_print_1): Likewise.
16537 (ada_val_print): Move function implementation down.
16538 (print_variant_part, print_field_values, print_record):
16539 Move function implementation up.
16540
c0d48811
JB
165412014-01-07 Joel Brobecker <brobecker@adacore.com>
16542
16543 * python/py-type.c (typy_get_name): New function.
16544 (type_object_getset): Add entry for attribute "name".
16545 * NEWS: Add entry mentioning this new attribute.
16546
c26e9cbb
YQ
165472014-01-07 Yao Qi <yao@codesourcery.com>
16548
16549 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16550 statement.
16551
0cc6f43d
YQ
165522014-01-07 Yao Qi <yao@codesourcery.com>
16553
16554 * gnu-nat.c (info_port_rights): Add qualifier const to
16555 argument args.
16556
eec03155
YQ
165572014-01-07 Yao Qi <yao@codesourcery.com>
16558
16559 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16560
f04a82ef
YQ
165612014-01-07 Yao Qi <yao@codesourcery.com>
16562
16563 * gnu-nat.c (make_inf) Update declaration.
16564 (make_inf): Make it static.
16565 (inf_set_traced): Likewise.
16566 (inf_port_to_thread, inf_task_died_status): Likewise.
16567
d57dda0a
YQ
165682014-01-07 Yao Qi <yao@codesourcery.com>
16569
16570 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16571
3aa8c969
YQ
165722014-01-07 Yao Qi <yao@codesourcery.com>
16573
16574 * gnu-nat.c (_initialize_gnu_nat): Declare.
16575
94123b4f
YQ
165762014-01-07 Yao Qi <yao@codesourcery.com>
16577
16578 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16579 'enum bfd_endian'.
16580 (struct gdbarch_info) <byte_order>: Change type to
16581 'enum bfd_endian'.
16582 <byte_order_for_code>: Likewise.
16583 * gdbarch.c, gdbarch.h: Regenerated.
16584
dc81d70a
TT
165852014-01-06 Sasha Smundak <asmundak@google.com>
16586
16587 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16588
cc2f3c35
TT
165892014-01-06 Tom Tromey <tromey@redhat.com>
16590
16591 * doublest.c (convert_doublest_to_floatformat): Use const, not
16592 CONST.
16593 * somread.c (som_symtab_read): Likewise.
16594
adcf2eed
HZ
165952014-01-07 Hui Zhu <hui@codesourcery.com>
16596
16597 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16598 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16599 (gdb_bfd_fopen): Ditto.
16600 (gdb_bfd_openr): Ditto.
16601 (gdb_bfd_openw): Ditto.
16602 (gdb_bfd_openr_iovec): Ditto.
16603 (gdb_bfd_fdopenr): Ditto.
16604 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16605 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16606 with xstrdup.
16607 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16608 with xstrdup.
16609 * symfile-mem.c (symbol_file_add_from_memory): Removed
16610 gdb_bfd_stash_filename.
16611
50722198
DE
166122014-01-03 Doug Evans <dje@google.com>
16613
16614 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16615 output.
16616
2fa4b862
JB
166172014-01-01 Joel Brobecker <brobecker@adacore.com>
16618
16619 Update year range in copyright notice of all files.
16620
28498c42
JB
166212014-01-01 Joel Brobecker <brobecker@adacore.com>
16622
16623 * top.c (print_gdb_version): Set copyright year to 2014.
16624
7b6e1046
JB
166252014-01-01 Joel Brobecker <brobecker@adacore.com>
16626
16627 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16628
df96af55 16629For older changes see ChangeLog-2013.
c906108c
SS
16630\f
16631Local Variables:
16632mode: change-log
16633left-margin: 8
16634fill-column: 74
16635version-control: never
57da7796 16636coding: utf-8
c906108c 16637End:
This page took 2.397358 seconds and 4 git commands to generate.