8967bc571ac76efc1d9e7b465f5609f633f4ed9f
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4 field.
5 (struct gdb_bfd_cache_search): Likewise.
6 (eq_bfd): Compare the size, inode, and device id fields.
7 (gdb_bfd_open): Initialise the size, inode, and device id fields.
8 (gdb_bfd_ref): Likewise.
9 (gdb_bfd_unref): Likewise.
10
11 2015-08-18 Pedro Alves <palves@redhat.com>
12
13 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
14 target implements to_always_non_stop_p, call it.
15 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
16 (x86_linux_create_target): Install it as to_always_non_stop_p
17 method.
18
19 2015-08-17 Doug Evans <dje@google.com>
20
21 * ui-out.c (default_ui_out_impl): Add comment.
22
23 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
24
25 * d-exp.y (type_aggregate_p): New function.
26 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
27 (classify_inner_name): Likewise.
28 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
29
30 2015-08-15 Doug Evans <xdje42@gmail.com>
31
32 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
33 updated.
34 (add_psymbol_to_list): Ditto.
35
36 2015-08-15 Doug Evans <xdje42@gmail.com>
37
38 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
39 updated. Call end_psymtab_common.
40 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
41 end_psymtab_common.
42 (build_type_psymtabs_reader): Ditto.
43 * psympriv.h (sort_pst_symbols): Delete.
44 (end_psymtab_common): Declare.
45 * psymtab.c (sort_pst_symbols): Make static.
46 (end_psymtab_common): New function.
47 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
48
49 2015-08-15 Doug Evans <xdje42@gmail.com>
50
51 * defs.h (LANGUAGE_BITS): Define.
52 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
53 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
54 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
55 (minimal_symbol_type): Add nr_minsym_types.
56 (MINSYM_TYPE_BITS): Define.
57 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
58 (domain_enum_tag): Add NR_DOMAINS.
59 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
60 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
61
62 2015-08-15 Doug Evans <xdje42@gmail.com>
63
64 * objfiles.h: Whitespace cleanup.
65 * psympriv.h: Whitespace cleanup.
66 * psymtab.c: Whitespace/coding convention cleanup.
67
68 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
69
70 * inferior.c (detach_inferior_command): Don't call
71 any_thread_of_process when pid is 0.
72 (kill_inferior_command): Likewise.
73
74 2015-08-14 Doug Evans <xdje42@gmail.com>
75
76 PR gdb/11833
77 * NEWS: Document new /s modifier for the disassemble command.
78 * cli/cli-cmds.c (disassemble_command): Add support for /s.
79 (_initialize_cli_cmds): Update online docs of disassemble command.
80 * disasm.c: #include "source.h".
81 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
82 All uses updated.
83 (dis_line_entry): New struct.
84 (hash_dis_line_entry, eq_dis_line_entry): New functions.
85 (allocate_dis_line_table): New functions.
86 (maybe_add_dis_line_entry, line_has_code_p): New functions.
87 (dump_insns): New arg end_pc. All callers updated.
88 (do_mixed_source_and_assembly_deprecated): Renamed from
89 do_mixed_source_and_assembly. All callers updated.
90 (do_mixed_source_and_assembly): New function.
91 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
92 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
93 DISASSEMBLY_SOURCE. All uses updated.
94 (DISASSEMBLY_SOURCE): New macro.
95 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
96
97 2015-08-14 Keith Seitz <keiths@redhat.com>
98
99 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
100 `typename' to `type_name' to avoid C++ reserved word.
101
102 2015-08-14 Keith Seitz <keiths@redhat.com>
103
104 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
105 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
106 silence ARI errors.
107
108 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
109
110 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
111 xstrprintf instead of malloc and sprintf.
112 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
113 (lex_one_token): Likewise.
114
115 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
116
117 * solib-svr4.c (read_program_header): Add base_addr argument to
118 report the runtime address of the segment.
119 (find_program_interpreter): Update read_program_header call to pass
120 a NULL pointer for the new argument.
121 (scan_dyntag): Add ptr_addr argument to report the runtime address
122 of the tag payload.
123 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
124 read_program_header to get the base address of the dynamic segment.
125 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
126 read_program_header.
127 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
128
129 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
130
131 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
132
133 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
134
135 * d-exp.y (%union): Add voidval.
136 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
137 name in the lexing stage.
138 (PostfixExpression): Move symbol completion handling in grammar here
139 from PrimaryExpression.
140 (PrimaryExpression): Move routines to handle resolving identifier
141 tokens in the grammar here from push_expression_name.
142 (IdentifierExp): Remove the handling of alternating '.' and identifier
143 tokens.
144 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
145 (BasicType): Remove C-style typename rules.
146 (d_type_from_name, d_module_from_name, push_variable)
147 (push_fieldnames, push_type_name, push_module_name)
148 (push_expression_name): Remove.
149 (lex_one_token): Rename from yylex. Replace pstate with par_state.
150 (token_and_value): New type.
151 (token_fifo, popping, name_obstack): New globals.
152 (classify_name): New function.
153 (classify_inner_name): Likewise.
154 (yylex): Likewise.
155 (d_parse): Initialize token_fifo, popping and name_obstack.
156
157 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
158
159 * Makefile.in (SFILES): Add d-namespace.c.
160 (COMMON_OBS): Add d-namespace.o.
161 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
162 la_lookup_symbol_nonlocal callback function pointer.
163 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
164 (d_lookup_nested_symbol): New declaration.
165 * d-namespace.c: New file.
166
167 2015-08-13 Pedro Alves <palves@redhat.com>
168
169 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
170 cleanup after the decref cleanup, not before.
171
172 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
173
174 * ada-lang.c: Include namespace.h
175 (aux_add_nonlocal_symbols): Fix a function name in comment.
176 (ada_add_block_renamings): New.
177 (add_nonlocal_symbols): Add global renamings handling.
178 (ada_lookup_symbol_list_worker): Move the symbol lookup part
179 to...
180 (ada_add_all_symbols): ... this new function.
181 (ada_add_block_symbols): Try to match the input name against the
182 "using directives list", perform a recursive symbol lookup on
183 the matched declarations.
184 * block.h (struct block): Move the_namespace to top-level as
185 namespace_info. Remove the language_specific field.
186 (BLOCK_NAMESPACE): Update access to the namespace_info field.
187 * buildsym.h (using_directives): Rename into...
188 (local_using_directives): ... this.
189 (global_using_directives): New.
190 (struct context_stack): Rename the using_directives field into
191 local_using_directives.
192 * buildsym.c (finish_block_internal): Deal with the proper
193 using directives repository (local or global).
194 (prepare_for_building): Reset local_using_directives. Assert
195 that there is no pending global using directive.
196 (reset_symtab_globals): Reset global_using_directives and
197 local_using_directives.
198 (end_symtab_get_static_block): Don't ignore symtabs that have
199 only using directives.
200 (push_context): Update references to local_using_directives.
201 (buildsym_init): Do not reset using_directives.
202 * cp-support.c: Include namespace.h.
203 * cp-support.h (struct using_direct): Move to namespace.h.
204 (cp_add_using_directives): Move to namespace.h.
205 * cp-namespace.c: Include namespace.h
206 (cp_add_using_directive): Move to namespace.c, rename it to
207 add_using_directive, add a "using_directives" argument and use
208 it as the pending using directives repository. All callers
209 updated.
210 * dwarf2read.c (using_directives): New.
211 (read_import_statement): Call using_directives.
212 (read_func_scope): Update references to local_using_directives.
213 (read_lexical_block_scope): Likewise.
214 (read_namespace): Update the heading comment, call
215 using_directives.
216 * namespace.h: New file.
217 * namespace.c: New file.
218 * Makefile.in (SFILES): Add namespace.c.
219 (COMMON_OBS): Add namespace.o
220
221 2015-08-12 Joel Brobecker <brobecker@adacore.com>
222
223 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
224 compute RETADDR.
225
226 2015-08-12 Keith Seitz <keiths@redhat.com>
227
228 * break-catch-throw.c (re_set_exception_catchpoint) Rename
229 reserved C++ keyword "explicit" to "explicit_loc".
230 * breakpoint.c (create_overlay_event_breakpoint)
231 (create_longjmp_master_breakpoint)
232 (create_std_terminate_master_breakpoint)
233 (create_exception_master_breakpoint, update_static_tracepoint):
234 Rename reserved C++ keyword "explicit" to "explicit_loc".
235 * completer.c (collect_explicit_location_matches)
236 (explicit_location_completer): Rename reserved C++ keyword
237 "explicit" to "explicit_loc".
238 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
239 (canonicalize_linespec, create_sals_line_offset)
240 (convert_linespec_to_sals, convert_explicit_location_to_sals)
241 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
242 "explicit" to "explicit_loc".
243 * location.c (struct event_location) <explicit>: Rename to
244 "explicit_loc".
245 (initialize_explicit_location, new_explicit_location)
246 (explicit_location_to_string_internal, explicit_location_to_linespec):
247 Rename reserved C++ keyword "explicit" to "explicit_loc".
248 * location.h (explicit_location_to_string)
249 (explicit_location_to_linespec, initialize_explicit_location)
250 (new_explicit_location): Rename reserved C++ keyword "explicit"
251 to "explicit_loc".
252 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
253 keyword "explicit" to "explicit_loc".
254
255 2015-08-12 Keith Seitz <keiths@redhat.com>
256
257 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
258 and only call decode_line_1 when it is non-NULL.
259
260 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
261
262 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
263 location address is not meaningful.
264 (breakpoint_address_is_meaningful): Update comment.
265
266 2015-08-11 Keith Seitz <keiths@redhat.com>
267
268 * NEWS: Mention explicit locations.
269 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
270 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
271 (_initialize_breakpoint): Update documentation for
272 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
273
274 2015-08-11 Keith Seitz <keiths@redhat.com>
275
276 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
277 explicit locations, options "--source", "--function",
278 "--label", and "--line".
279
280 2015-08-11 Keith Seitz <keiths@redhat.com>
281
282 * completer.c: Include location.h.
283 (enum match_type): New enum.
284 (location_completer): Rename to ...
285 (linespec_completer): ... this.
286 (collect_explicit_location_matches, backup_text_ptr)
287 (explicit_location_completer): New functions.
288 (location_completer): "New" function; handle linespec
289 and explicit location completions.
290 (complete_line_internal): Remove all location completer-specific
291 handling.
292 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
293 (find_toplevel_char): Export.
294 (linespec_parse_line_offset): Export.
295 Issue error if STRING is not numerical.
296 (gdb_get_linespec_parser_quote_characters): New function.
297 * linespec.h (linespec_parse_line_offset): Declare.
298 (get_gdb_linespec_parser_quote_characters): Declare.
299 (is_ada_operator): Declare.
300 (find_toplevel_char): Declare.
301 (linespec_lexer_lex_keyword): Declare.
302 * location.c (explicit_to_event_location): New function.
303 (explicit_location_lex_one): New function.
304 (string_to_explicit_location): New function.
305 (string_to_event_location): Handle explicit locations.
306 * location.h (explicit_to_event_location): Declare.
307 (string_to_explicit_location): Declare.
308
309 2015-08-11 Keith Seitz <keiths@redhat.com>
310
311 * break-catch-throw.c (re_set_exception_catchpoint): Convert
312 linespec into explicit location.
313 * breakpoint.c (create_overlay_breakpoint)
314 (create_longjmp_master_breakpoint)
315 (create_std_terminate_master_breakpoint)
316 (create_exception_master_breakpoint): Convert linespec into explicit
317 location.
318 (update_static_tracepoint): Convert linespec into explicit location.
319 * linespec.c (enum offset_relative_sign, struct line_offset): Move
320 location.h.
321 (struct linespec) <expression, expr_pc, source_filename>
322 <function_name, label_name, line_offset>: Replace with ...
323 <explicit>: ... this.
324 <is_linespec>: New member.
325 (PARSER_EXPLICIT): New accessor macro.
326 (undefined_label_error): New function.
327 (source_file_not_found_error): New function.
328 (linespec_parse_basic): The parser result is now an explicit location.
329 Use PARSER_EXPLICIT to access it.
330 Use undefined_label_error.
331 (canonicalize_linespec): Convert canonical linespec into explicit
332 location.
333 Move string representation of location to explicit_location_to_linespec
334 and use it and explicit_location_to_string to save string
335 representations of the canonical location.
336 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
337 explicit location. Update all references.
338 (convert_explicit_location_to_sals): New function.
339 (parse_linespec): Use PARSER_EXPLICIT to access the parser
340 result's explicit location.
341 (linespec_state_constructor): Initialize is_linespec.
342 Use PARSER_EXPLICIT.
343 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
344 result.
345 (event_location_to_sals): For linespec locations, set is_linespec.
346 Handle explicit locations.
347 (decode_objc): 'ls' contains an explicit location now. Update all
348 references.
349 (symtabs_from_filename): Use source_file_not_found_error.
350 * location.c (struct event_location.u) <explicit>: New member.
351 (initialize_explicit_location): New function.
352 (initialize_event_location): Initialize explicit locations.
353 (new_explicit_location, get_explicit_location)
354 (get_explicit_location_const): New functions.
355 (explicit_to_string_internal): New function; most of contents moved
356 from canonicalize_linespec.
357 (explicit_location_to_string): New function.
358 (explicit_location_to_linespec): New function.
359 (copy_event_location, delete_event_location)
360 (event_location_to_string_const, event_location_empty_p): Handle
361 explicit locations.
362 * location.h (enum offset_relative_sign, struct line_offset): Move
363 here from linespec.h.
364 (enum event_location_type): Add EXPLICIT_LOCATION.
365 (struct explicit_location): New structure.
366 (explicit_location_to_string): Declare.
367 (explicit_location_to_linespec): Declare.
368 (new_explicit_location, get_explicit_locationp
369 (get_explicit_location_const, initialize_explicit_location): Declare.
370
371 2015-08-11 Keith Seitz <keiths@redhat.com>
372
373 * break-catch-throw.c (re_set_exception_catchpoint): Convert
374 linespec for stap probe to probe location.
375 * breakpoint.c (create_longjmp_master_breakpoint)
376 (create_exception_master_breakpoint): Likewise.
377 (break_command_1): Remove local variable `arg_cp'.
378 Check location type to set appropriate breakpoint ops methods.
379 (trace_command): Likewise.
380 * linespec.c (event_location_to_sals): Assert on probe locations.
381 * location.c (EL_PROBE): Add macro definition.
382 (new_probe_location, get_probe_location): New functions.
383 (copy_event_location, delete_event_location, event_location_to_string)
384 (string_to_event_location, event_location_empty_p): Handle probe
385 locations.
386 * location.h (enum event_location_type): Add PROBE_LOCATION.
387 (new_probe_location, get_probe_location): Declare.
388 * probe.c (parse_probes): Assert that LOCATION is a probe location.
389 Convert linespec into probe location.
390
391 2015-08-11 Keith Seitz <keiths@redhat.com>
392
393 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
394 Convert linespec to address location.
395 * linespec.c (canonicalize_linespec): Do not handle address
396 locations here.
397 (convert_address_location_to_sals): New function; contents moved
398 from ...
399 (convert_linespc_to_sals): ... here.
400 (parse_linespec): Remove address locations from linespec grammar.
401 Remove handling of address locations.
402 (linespec_lex_to_end): Remove handling of address linespecs.
403 (event_location_to_sals): Handle ADDRESS_LOCATION.
404 (linespec_expression_to_pc): Export.
405 * linespec.h (linespec_expression_to_pc): Add declaration.
406 * location.c (struct event_location.u) <address>: New member.
407 (new_address_location, get_address_location): New functions.
408 (copy_event_location, delete_event_location, event_location_to_string)
409 (string_to_event_location, event_location_empty_p): Handle address
410 locations.
411 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
412 (new_address_location, get_address_location): Declare.
413 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
414 to address location.
415 * spu-tdep.c (spu_catch_start): Likewise.
416
417 2015-08-11 Keith Seitz <keiths@redhat.com>
418
419 * ax-gdb.c: Include location.h.
420 (agent_command_1) Use linespec location instead of address
421 string.
422 * break-catch-throw.c: Include location.h.
423 (re_set_exception_catchpoint): Use linespec locations instead
424 of address strings.
425 * breakpoint.c: Include location.h.
426 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
427 (create_std_terminate_master_breakpoint)
428 (create_exception_master_breakpoint, update_breakpoints_after_exec):
429 Use linespec location instead of address string.
430 (print_breakpoint_location): Use locations and
431 event_location_to_string.
432 Print extra_string for pending locations for non-MI streams.
433 (print_one_breakpoint_location): Use locations and
434 event_location_to_string.
435 (init_raw_breakpoint_without_location): Initialize b->location.
436 (create_thread_event_breakpoint): Use linespec location instead of
437 address string.
438 (init_breakpoint_sal): Likewise.
439 Only save extra_string if it is non-NULL and not the empty string.
440 Use event_location_to_string instead of `addr_string'.
441 Constify `p' and `endp'.
442 Use skip_spaces_const/skip_space_const instead of non-const versions.
443 Copy the location into the breakpoint.
444 If LOCATION is NULL, save the breakpoint address as a linespec location
445 instead of an address string.
446 (create_breakpoint_sal): Change `addr_string' parameter to a struct
447 event_location. All uses updated.
448 (create_breakpoints_sal): Likewise for local variable `addr_string'.
449 (parse_breakpoint_sals): Use locations instead of address strings.
450 Remove check for empty linespec with conditional.
451 Refactor.
452 (decode_static_tracepoint_spec): Make argument const and update
453 function.
454 (create_breakpoint): Change `arg' to a struct event_location and
455 rename.
456 Remove `copy_arg' and `addr_start'.
457 If EXTRA_STRING is empty, set it to NULL.
458 Don't populate `canonical' for pending breakpoints.
459 Pass `extra_string' to find_condition_and_thread.
460 Clear `extra_string' if `rest' was NULL.
461 Do not error with "garbage after location" if setting a dprintf
462 breakpoint.
463 Copy the location into the breakpoint instead of an address string.
464 (break_command_1): Use string_to_event_location and pass this to
465 create_breakpoint instead of an address string.
466 Check against `arg_cp' for a probe linespec.
467 (dprintf_command): Use string_to_event_location and pass this to
468 create_breakpoint instead of an address string.
469 Throw an exception if no format string was specified.
470 (print_recreate_ranged_breakpoint): Use event_location_to_string
471 instead of address strings.
472 (break_range_command, until_break_command)
473 (init_ada_exception_breakpoint): Use locations instead
474 of address strings.
475 (say_where): Print out extra_string for pending locations.
476 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
477 the breakpoint.
478 (base_breakpoint_create_sals_from_location): Use struct event_location
479 instead of address string.
480 Remove `addr_start' and `copy_arg' parameters.
481 (base_breakpoint_decode_location): Use struct event_location instead of
482 address string.
483 (bkpt_re_set): Use locations instead of address strings.
484 Use event_location_empty_p to check for unset location.
485 (bkpt_print_recreate): Use event_location_to_string instead of
486 an address string.
487 Print out extra_string for pending locations.
488 (bkpt_create_sals_from_location, bkpt_decode_location)
489 (bkpt_probe_create_sals_from_location): Use struct event_location
490 instead of address string.
491 (bkpt_probe_decode_location): Use struct event_location instead of
492 address string.
493 (tracepoint_print_recreate): Use event_location_to_string to
494 recreate the tracepoint.
495 (tracepoint_create_sals_from_location, tracepoint_decode_location)
496 (tracepoint_probe_create_sals_from_location)
497 (tracepoint_probe_decode_location): Use struct event_location
498 instead of address string.
499 (dprintf_print_recreate): Use event_location_to_string to recreate
500 the dprintf.
501 (dprintf_re_set): Remove check for valid/missing format string.
502 (strace_marker_create_sals_from_location)
503 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
504 (update_static_tracepoint): Use struct event_location instead of
505 address string.
506 (location_to_sals): Likewise.
507 Pass `extra_string' to find_condition_and_thread.
508 For newly resolved pending breakpoint locations, clear the location's
509 string representation.
510 Assert that the breakpoint's condition string is NULL when
511 condition_not_parsed.
512 (breakpoint_re_set_default, create_sals_from_location_default)
513 (decode_location_default, trace_command, ftrace_command)
514 (strace_command, create_tracepoint_from_upload): Use locations
515 instead of address strings.
516 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
517 Use struct event_location instead of address string.
518 Update all uses.
519 <decode_location>: Likewise.
520 (struct breakpoint) <addr_string>: Change to struct event_location
521 and rename `location'.
522 <addr_string_range_end>: Change to struct event_location and rename
523 `location_range_end'.
524 (create_breakpoint): Use struct event_location instead of address
525 string.
526 * cli/cli-cmds.c: Include location.h.
527 (edit_command, list_command): Use locations instead of address strings.
528 * elfread.c: Include location.h.
529 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
530 * guile/scm-breakpoint.c: Include location.h.
531 (bpscm_print_breakpoint_smob): Use event_location_to_string.
532 (gdbscm_register_breakpoint): Use locations instead of address
533 strings.
534 * linespec.c: Include location.h.
535 (struct ls_parser) <stream>: Change to const char *.
536 (PARSER_STREAM): Update.
537 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
538 keywords must be followed by whitespace.
539 (canonicalize_linespec): Save a linespec location into `canonical'.
540 Save a canonical linespec into `canonical'.
541 (parse_linespec): Change `argptr' to const char * and rename `arg'.
542 All uses updated.
543 Update function description.
544 (linespec_parser_new): Initialize `parser'.
545 Update initialization of parsing stream.
546 (event_location_to_sals): New function.
547 (decode_line_full): Change `argptr' to a struct event_location and
548 rename it `location'.
549 Use locations instead of address strings.
550 Call event_location_to_sals instead of parse_linespec.
551 (decode_line_1): Likewise.
552 (decode_line_with_current_source, decode_line_with_last_displayed)
553 Use locations instead of address strings.
554 (decode_objc): Likewise.
555 Change `argptr' to const char * and rename `arg'.
556 (destroy_linespec_result): Delete the linespec result's location
557 instead of freeing the address string.
558 * linespec.h (struct linespec_result) <addr_string>: Change to
559 struct event_location and rename to ...
560 <location>: ... this.
561 (decode_line_1, decode_line_full): Change `argptr' to struct
562 event_location. All callers updated.
563 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
564 (mi_cmd_break_insert_1): Use locations instead of address strings.
565 Throw an error if there was "garbage" at the end of the specified
566 linespec.
567 * probe.c: Include location.h.
568 (parse_probes): Change `argptr' to struct event_location.
569 Use event locations instead of address strings.
570 * probe.h (parse_probes): Change `argptr' to struct event_location.
571 * python/py-breakpoint.c: Include location.h.
572 (bppy_get_location): Constify local variable `str'.
573 Use event_location_to_string.
574 (bppy_init): Use locations instead of address strings.
575 * python/py-finishbreakpoint.c: Include location.h.
576 (bpfinishpy_init): Remove local variable `addr_str'.
577 Use locations instead of address strings.
578 * python/python.c: Include location.h.
579 (gdbpy_decode_line): Use locations instead of address strings.
580 * remote.c: Include location.h.
581 (remote_download_tracepoint): Use locations instead of address
582 strings.
583 * spu-tdep.c: Include location.h.
584 (spu_catch_start): Remove local variable `buf'.
585 Use locations instead of address strings.
586 * tracepoint.c: Include location.h.
587 (scope_info): Use locations instead of address strings.
588 (encode_source_string): Constify parameter `src'.
589 * tracepoint.h (encode_source_string): Likewise.
590
591 2015-08-11 Keith Seitz <keiths@redhat.com>
592
593 * Makefile.in (SFILES): Add location.c.
594 (HFILES_NO_SRCDIR): Add location.h.
595 (COMMON_OBS): Add location.o.
596 * linespec.c (linespec_lex_to_end): New function.
597 * linespec.h (linespec_lex_to_end): Declare.
598 * location.c: New file.
599 * location.h: New file.
600
601 2015-08-11 Keith Seitz <keiths@redhat.com>
602
603 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
604 Renamed to create_sals_from_location.
605 <decode_linespec>: Renamed to decode_location.
606 Update all callers.
607 * breakpoint.c (create_sals_from_address_default): Renamed to ...
608 (create_sals_from_location_default): ... this.
609 (addr_string_to_sals): Renamed to ...
610 (location_to_sals): ... this.
611 (decode_linespec_default): Renamed to ...
612 (decode_location_default): ... this.
613 (base_breakpoint_create_sals_from_address): Renamed to ...
614 (base_breakpoint_create_sals_from_location): ... this.
615 (bkpt_create_sals_from_address): Renamed to ...
616 (bkpt_create_sals_from_location): ... this.
617 (bkpt_decode_linespec): Renamed to ...
618 (bkpt_decode_location): ... this.
619 (bkpt_probe_create_sals_from_address): Renamed to ...
620 (bkpt_probe_create_sals_from_location): ... this.
621 (tracepoint_create_sals_from_address): Renamed to ...
622 (tracepoint_create_sals_from_location): ... this.
623 (tracepoint_decode_linespec): Renamed to ...
624 (tracepoint_decode_location): ... this.
625 (tracepoint_probe_create_sals_from_address): Renamed to ...
626 (tracepoint_probe_create_sals_from_location): ... this.
627 (tracepoint_probe_decode_linespec): Renamed to ...
628 (tracepoint_probe_decode_location): ... this.
629 (strace_marker_create_sals_from_address): Renamed to ...
630 (strace_marker_create_sals_from_location): ... this.
631 (decode_linespec_default): Renamed to ...
632 (decode_location_default): ... this.
633
634 2015-08-10 Doug Evans <dje@google.com>
635 Keith Seitz <keiths@redhat.com>
636
637 PR gdb/17960
638 * symtab.c (make_file_symbol_completion_list_1): Renamed from
639 make_file_symbol_completion_list and made static.
640 (make_file_symbol_completion_list): New function.
641
642 2015-08-10 Joel Brobecker <brobecker@adacore.com>
643
644 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
645 trailing new-line at end of warning message.
646 (proceed): Add i18n marker to error messages.
647
648 2015-08-07 Pedro Alves <palves@redhat.com>
649
650 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
651
652 2015-08-07 Pedro Alves <palves@redhat.com>
653
654 * s390-linux-tdep.c (is_non_branch_ril)
655 (s390_displaced_step_copy_insn): New functions.
656 (s390_displaced_step_fixup): Update comment.
657 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
658 gdbarch_displaced_step_copy_insn hook.
659
660 2015-08-07 Pedro Alves <palves@redhat.com>
661
662 * infrun.c (displaced_step_prepare_throw): Return -1 if
663 gdbarch_displaced_step_copy_insn returns NULL. Update intro
664 comment.
665 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
666 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
667 in file.
668 (ppc_displaced_step_copy_insn): New function.
669 (ppc_displaced_step_fixup): Update comment.
670 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
671 gdbarch_displaced_step_copy_insn hook.
672 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
673 NULL return.
674 * gdbarch.h: Regenerate.
675
676 2015-08-07 Pedro Alves <palves@redhat.com>
677
678 * inferior.h (struct inferior) <displaced_stepping_failed>: New
679 field.
680 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
681 Return false if dispaced stepping failed before.
682 (resume): Pass the current inferior to
683 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
684 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
685 displaced_stepping_failed flag, and fall back to an in-line
686 step-over.
687
688 2015-08-07 Pedro Alves <palves@redhat.com>
689
690 * darwin-nat.c (darwin_stop): Rename to ...
691 (darwin_interrupt): ... this.
692 (_initialize_darwin_inferior): Adjust.
693 * gnu-nat.c (gnu_stop): Delete.
694 (gnu_target): Don't install gnu_stop.
695 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
696 (inf_ptrace_interrupt): ... this.
697 (inf_ptrace_target): Adjust.
698 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
699 target_stop.
700 * linux-nat (linux_nat_stop): Rename to ...
701 (linux_nat_interrupt): ... this.
702 (linux_nat_stop): Reimplement.
703 (linux_nat_add_target): Install linux_nat_interrupt.
704 * nto-procfs.c (nto_interrupt_twice): Rename to ...
705 (nto_handle_sigint_twice): ... this.
706 (nto_interrupt): Rename to ...
707 (nto_handle_sigint): ... this. Call target_interrupt instead of
708 target_stop.
709 (procfs_wait): Adjust.
710 (procfs_stop): Rename to ...
711 (procfs_interrupt): ... this.
712 (init_procfs_targets): Adjust.
713 * procfs.c (procfs_stop): Rename to ...
714 (procfs_interrupt): ... this.
715 (procfs_target): Adjust.
716 * remote-m32r-sdi.c (m32r_stop): Rename to ...
717 (m32r_interrupt): ... this.
718 (init_m32r_ops): Adjust.
719 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
720 (gdbsim_interrupt_inferior): ... this.
721 (gdbsim_stop): Rename to ...
722 (gdbsim_interrupt): ... this.
723 (gdbsim_cntrl_c): Adjust.
724 (init_gdbsim_ops): Adjust.
725 * remote.c (sync_remote_interrupt): Adjust comments.
726 (remote_stop_as): Rename to ...
727 (remote_interrupt_as): ... this.
728 (remote_stop): Adjust comment.
729 (remote_interrupt): New function.
730 (init_remote_ops): Install remote_interrupt.
731 * target.c (target_interrupt): New function.
732 * target.h (struct target_ops) <to_interrupt>: New field.
733 (target_interrupt): New declaration.
734 * windows-nat.c (windows_stop): Rename to ...
735 (windows_interrupt): ... this.
736 * target-delegates.c: Regenerate.
737
738 2015-08-07 Pedro Alves <palves@redhat.com>
739
740 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
741 threads" as alternative to "switching back to stepped thread".
742
743 2015-08-07 Pedro Alves <palves@redhat.com>
744
745 * NEWS: Mention "maint set/show target-non-stop".
746 * breakpoint.c (update_global_location_list): Check
747 target_is_non_stop_p instead of non_stop.
748 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
749 * infrun.c (show_can_use_displaced_stepping)
750 (can_use_displaced_stepping_p, start_step_over_inferior):
751 Likewise.
752 (internal_resume_ptid): New function.
753 (resume): Use it.
754 (proceed): Check target_is_non_stop_p instead of non_stop. If in
755 all-stop mode but the target is always in non-stop mode, start all
756 the other threads that are implicitly resumed too.
757 (for_each_just_stopped_thread, fetch_inferior_event)
758 (adjust_pc_after_break, stop_all_threads): Check
759 target_is_non_stop_p instead of non_stop.
760 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
761 with the target always in non-stop mode.
762 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
763 instead of non_stop.
764 (switch_back_to_stepped_thread): Check target_is_non_stop_p
765 instead of non_stop.
766 (keep_going_stepped_thread): Use internal_resume_ptid.
767 (stop_waiting): If in all-stop mode, and the target is in non-stop
768 mode, stop all threads.
769 (keep_going_pass): Likewise, when starting a new in-line step-over
770 sequence.
771 * linux-nat.c (get_pending_status, select_event_lwp)
772 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
773 target_is_non_stop_p instead of non_stop.
774 (linux_nat_always_non_stop_p): New function.
775 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
776 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
777 * target-delegates.c: Regenerate.
778 * target.c (target_is_non_stop_p): New function.
779 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
780 (maint_set_target_non_stop_command)
781 (maint_show_target_non_stop_command): New functions.
782 (_initilize_target): Install "maint set/show target-non-stop"
783 commands.
784 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
785 (target_non_stop_enabled): New declaration.
786 (target_is_non_stop_p): New declaration.
787
788 2015-08-07 Pedro Alves <pedro@codesourcery.com>
789
790 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
791 has a pending status, return true.
792 * gdbthread.h: Include target/waitstatus.h.
793 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
794 stop_pc>: New fields.
795 (struct thread_info) <resumed>: New field.
796 (set_resumed): Declare.
797 * infrun.c: Include "event-loop.h".
798 (infrun_async_inferior_event_token, infrun_is_async): New globals.
799 (infrun_async): New function.
800 (clear_step_over_info): Add debug output.
801 (displaced_step_in_progress_any_inferior): New function.
802 (displaced_step_fixup): New returns int.
803 (start_step_over): Handle in-line step-overs too. Assert the
804 thread is marked resumed.
805 (resume_cleanups): Clear the thread's resumed flag.
806 (resume): Set the thread's resumed flag. Return early if the
807 thread has a pending status. Allow stepping a breakpoint with no
808 signal.
809 (proceed): Adjust to check 'resumed' instead of 'executing'.
810 (clear_proceed_status_thread): If the thread has a pending status,
811 and that status is a finished step, discard the pending status.
812 (clear_proceed_status): Don't clear step_over_info here.
813 (random_pending_event_thread, do_target_wait): New functions.
814 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
815 do_target_wait.
816 (wait_one): New function.
817 (THREAD_STOPPED_BY): New macro.
818 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
819 (thread_stopped_by_hw_breakpoint): New functions.
820 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
821 functions.
822 (handle_inferior_event): Also call set_resumed(false) on all
823 threads implicitly stopped by the event.
824 (restart_threads, resumed_thread_with_pending_status): New
825 functions.
826 (finish_step_over): If we were doing an in-line step-over before,
827 and no longer are after trying to start a new step-over, restart
828 all threads. If we have multiple threads with pending events,
829 save the current event and go through the event loop again.
830 (handle_signal_stop): Return early if finish_step_over returns
831 false.
832 <random signal>: If we get a signal while stepping over a
833 breakpoint in-line in non-stop mode, restart all threads. Clear
834 step_over_info before delivering the signal.
835 (keep_going_stepped_thread): Use internal_error instead of
836 gdb_assert. Mark the thread as resumed.
837 (keep_going_pass_signal): Assert the thread isn't already resumed.
838 If some other thread is doing an in-line step-over, defer the
839 resume. If we just started a new in-line step-over, stop all
840 threads. Don't clear step_over_info.
841 (infrun_async_inferior_event_handler): New function.
842 (_initialize_infrun): Create async event handler with
843 infrun_async_inferior_event_handler as callback.
844 (infrun_async): New declaration.
845 * target.c (target_async): New function.
846 * target.h (target_async): Declare macro and readd as function
847 declaration.
848 * target/waitstatus.h (enum target_stop_reason)
849 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
850 * thread.c (new_thread): Clear the new waitstatus field.
851 (set_resumed): New function.
852
853 2015-08-07 Pedro Alves <palves@redhat.com>
854
855 * infrun.c (keep_going_stepped_thread): New function, factored out
856 from ...
857 (switch_back_to_stepped_thread): ... here.
858
859 2015-08-07 Pedro Alves <palves@redhat.com>
860
861 * infrun.c (currently_stepping): Extend intro comment.
862 * target.h (target_resume): Extend intro comment.
863
864 2015-08-07 Pedro Alves <palves@redhat.com>
865
866 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
867 of inferior_ptid. If the stepped thread vanished, return 0
868 instead of resuming here. Use reset_ecs. Print the prev_pc and
869 the current stop_pc in log message. Clear trap_expected if the
870 thread advanced. Don't pass currently_stepping to
871 do_target_resume.
872
873 2015-08-07 Pedro Alves <palves@redhat.com>
874
875 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
876 * infrun.c (struct execution_control_state): Move higher up in the
877 file.
878 (reset_ecs): New function.
879 (start_step_over): Now returns int. Rewrite to use
880 keep_going_pass_signal instead of manually starting a displaced step.
881 (resume): Don't call set_running here. If displaced stepping
882 can't start now, clear trap_expected.
883 (find_thread_needs_step_over): Delete function.
884 (proceed): Set up finish_thread_state_cleanup. Call set_running.
885 If the current thread needs a step over, push it in the step-over
886 chain. Don't set insert breakpoints nor call resume directly
887 here. Instead rewrite to use start_step_over and
888 keep_going_pass_signal.
889 (finish_step_over): New function.
890 (handle_signal_stop): Call finish_step_over instead of
891 start_step_over.
892 (switch_back_to_stepped_thread): If the event thread needs another
893 step-over do that first. Use start_step_over.
894 (keep_going_pass_signal): New function, factored out from ...
895 (keep_going): ... here.
896 (_initialize_infrun): Comment moved here.
897 * thread.c (set_running_thread): New function.
898 (set_running, finish_thread_state): Use set_running_thread.
899
900 2015-08-07 Pedro Alves <palves@redhat.com>
901
902 * gdbthread.h (struct thread_info) <step_over_prev,
903 step_over_next>: New fields.
904 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
905 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
906 declarations.
907 * infrun.c (struct displaced_step_request): Delete.
908 (struct displaced_step_inferior_state) <step_request_queue>:
909 Delete field.
910 (displaced_step_prepare): Assert that trap_expected is set. Use
911 thread_step_over_chain_enqueue. Split starting a new displaced
912 step to ...
913 (start_step_over): ... this new function.
914 (resume): Assert the thread isn't waiting for a step over already.
915 (proceed): Assert the thread isn't waiting for a step over
916 already.
917 (infrun_thread_stop_requested): Adjust to remove threads from the
918 embedded step-over chain.
919 (handle_inferior_event) <fork/vfork>: Call start_step_over after
920 displaced_step_fixup.
921 (handle_signal_stop): Call start_step_over after
922 displaced_step_fixup.
923 * infrun.h (step_over_queue_head): New declaration.
924 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
925 (thread_step_over_chain_next, thread_is_in_step_over_chain)
926 (thread_step_over_chain_enqueue)
927 (thread_step_over_chain_remove): New functions.
928 (delete_thread_1): Remove thread from the step-over chain.
929
930 2015-08-07 Pedro Alves <palves@redhat.com>
931
932 * infrun.c (thread_still_needs_step_over): Rename to ...
933 (thread_still_needs_step_over_bp): ... this.
934 (enum step_over_what): New.
935 (thread_still_needs_step_over): Reimplement.
936
937 2015-08-07 Pedro Alves <palves@redhat.com>
938
939 * remote.c (remote_wait_as): If not waiting for a stop reply,
940 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
941 requested, don't block waiting forever.
942
943 2015-08-07 Pedro Alves <pedro@codesourcery.com>
944
945 * infrun.c (adjust_pc_after_break): Now takes thread_info and
946 waitstatus pointers instead of an ecs. Adjust.
947 (handle_inferior_event): Adjust caller.
948
949 2015-08-07 Pedro Alves <palves@redhat.com>
950
951 * infrun.c (handle_inferior_event): If we get
952 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
953 mode, mark all threads of the exiting process as not-executing.
954 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
955 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
956 exiting process, if inferior_ptid still points at a process.
957 * thread.c (struct current_thread_cleanup) <next>: New field.
958 (current_thread_cleanup_chain): New global.
959 (restore_current_thread_ptid_changed): New function.
960 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
961 current_thread_cleanup_chain list.
962 (make_cleanup_restore_current_thread): Add the cleanup data to the
963 current_thread_cleanup_chain list.
964 (_initialize_thread): Install restore_current_thread_ptid_changed
965 as thread_ptid_changed observer.
966
967 2015-08-07 Joel Brobecker <brobecker@adacore.com>
968
969 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
970 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
971 smaller than expected.
972
973 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 * stack.c (get_frame_language): Moved ...
976 * frame.c (get_frame_language): ... to here.
977 * language.h (get_frame_language): Declaration moved to frame.h.
978 * frame.h: Add language.h include, for language enum.
979 (get_frame_language): Declaration moved from language.h.
980 * language.c: Add frame.h include.
981 * top.c: Add frame.h include.
982 * symtab.h (struct obj_section): Declare.
983 (struct cmd_list_element): Declare.
984
985 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * language.c (show_language_command): Find selected frame before
988 asking for the language of that frame.
989 (set_language_command): Likewise.
990 * language.h (get_frame_language): Add frame parameter.
991 * stack.c (get_frame_language): Add frame parameter, assert
992 parameter is not NULL, update comment and reindent.
993 * top.c (check_frame_language_change): Pass the selected frame
994 into get_frame_language.
995
996 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
997
998 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
999 (pt_btrace_insn_flags): New.
1000 (ftrace_add_pt): Call pt_btrace_insn_flags.
1001 * btrace.h (btrace_insn_flag): New.
1002 (btrace_insn) <flags>: New.
1003 * record-btrace.c (btrace_insn_history): Print insn prefix.
1004 * NEWS: Announce it.
1005
1006 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
1007
1008 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
1009 * configure: Regenerate.
1010
1011 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
1012
1013 * Makefile.in (LIBICONV): Define.
1014 (CLIBS): Add LIBICONV.
1015 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
1016 * configure: Regenerate.
1017
1018 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
1019 Pedro Alves <palves@redhat.com>
1020
1021 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
1022 (arm_set_abi): Likewise.
1023 * ax-general.c (ax_print): Likewise.
1024 * c-exp.y (exp : string_exp): Likewise.
1025 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
1026 (do_compile_dwarf_expr_to_c): Likewise.
1027 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
1028 Likewise.
1029 * dwarf2expr.c (execute_stack_op): Likewise.
1030 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1031 (disassemble_dwarf_expression): Likewise.
1032 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
1033 (read_array_order): Likewise.
1034 (abbrev_table_read_table): Likewise.
1035 (read_attribute_value): Likewise.
1036 (skip_unknown_opcode): Likewise.
1037 (dwarf_decode_macro_bytes): Likewise.
1038 (dwarf_decode_macros): Likewise.
1039 * eval.c (value_f90_subarray): Likewise.
1040 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
1041 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
1042 * infrun.c (handle_command): Likewise.
1043 * memory-map.c (memory_map_start_memory): Likewise.
1044 * osabi.c (set_osabi): Likewise.
1045 * parse.c (operator_length_standard): Likewise.
1046 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
1047 single return point.
1048 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1049 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1050 (gdbpy_lookup_global_symbol): Likewise.
1051 * record-full.c (record_full_restore): Likewise.
1052 * regcache.c (regcache_register_status): Likewise.
1053 (regcache_raw_read): Likewise.
1054 (regcache_cooked_read): Likewise.
1055 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1056 * symtab.c (initialize_ordinary_address_classes): Likewise.
1057 * target-debug.h (target_debug_print_signals): Likewise.
1058 * utils.c (do_restore_current_language): Likewise.
1059
1060 2015-08-06 Clem Dickey <clemd@acm.org>
1061
1062 PR python/17136
1063 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
1064
1065 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
1066
1067 * complaints.c (enum complaint_series): Add newlines and remove
1068 out of date comment.
1069 (struct complaints) <series>: Change type to enum
1070 complaint_series and remove out of date comment.
1071 (symfile_complaint_hook): Use equivalent enum value
1072 ISOLATED_MESSAGE instead of 0.
1073
1074 2015-08-06 Pedro Alves <palves@redhat.com>
1075
1076 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
1077 returned > 0.
1078
1079 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
1080
1081 * common/agent.c (symbol_list) <required>: Remove.
1082
1083 2015-08-06 Pedro Alves <palves@redhat.com>
1084
1085 * target/waitstatus.h (enum target_stop_reason)
1086 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
1087
1088 2015-08-05 Pedro Alves <palves@redhat.com>
1089 Joel Brobecker <brobecker@adacore.com>
1090
1091 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
1092 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
1093 case where BS->STOP is not set.
1094
1095 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
1096
1097 * nat/gdb_thread_db.h: Add copyright header.
1098 Protect against multiple inclusion.
1099
1100 2015-08-05 Yao Qi <yao.qi@linaro.org>
1101
1102 * aarch64-linux-nat.c (get_thread_id): Remove.
1103 (debug_reg_change_callback): Call ptid_get_lwp instead of
1104 get_thread_id.
1105 (fetch_gregs_from_thread): Likewise.
1106 (store_gregs_to_thread): Likewise.
1107 (fetch_fpregs_from_thread): Likewise.
1108 (store_fpregs_to_thread): Likewise.
1109 (aarch64_linux_get_debug_reg_capacity): Likewise.
1110 * arm-linux-nat.c (get_thread_id): Remove.
1111 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
1112 * xtensa-linux-nat.c (get_thread_id): Remove.
1113 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
1114 * arm-linux-nat.c (get_thread_id): Remove.
1115 (GET_THREAD_ID): Remove.
1116 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
1117 (store_fpregs, fetch_regs, store_regs): Likewise.
1118 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1119 (fetch_vfp_regs, store_vfp_regs): Likewise.
1120 (arm_linux_read_description): Likewise.
1121 (arm_linux_get_hwbp_cap): Likewise.
1122 * xtensa-linux-nat.c (get_thread_id): Remove.
1123 (GET_THREAD_ID): Remove.
1124 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
1125 GET_THREAD_ID.
1126
1127 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
1128
1129 * python/py-linetable.c: Fix case of Linetable to LineTable
1130 in docstrings and code comments.
1131 * python/py-symtab.c: Same.
1132
1133 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 * infcmd.c (signal_command): Call do_cleanups for args_chain.
1136
1137 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1138
1139 PR gdb/18767
1140 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
1141 use.
1142
1143 2015-08-04 Pedro Alves <palves@redhat.com>
1144
1145 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
1146 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
1147 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
1148 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
1149 (td_thr_validate_ftype, td_thr_get_info_ftype)
1150 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
1151 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
1152 New typedefs.
1153 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
1154 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
1155 local macros and use them instead of verbose_dlsym and dlsym
1156 calls.
1157
1158 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
1159
1160 * nios2-tdep.h: Include opcode/nios2.h here.
1161 (NIOS2_CDX_OPCODE_SIZE): New.
1162 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
1163 * nios2-tdep.c: Don't include opcode/nios2.h here.
1164 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
1165 4-byte read fails.
1166 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
1167 (nios2_match_addi, nios2_match_orhi): Likewise.
1168 (nios2_match_stw, nios2_match_ldw): Likewise.
1169 (nios2_match_rdctl): Likewise.
1170 (nios2_match_stwm, nios2_match_ldwm): New.
1171 (nios2_match_branch): Add cases for R2 encodings.
1172 (nios2_match_jmpi, nios2_match_calli): Likewise.
1173 (nios2_match_jmpr, nios2_match_callr): Likewise.
1174 (nios2_match_break, nios2_match_trap): Likewise.
1175 (nios2_in_epilogue_p): Add R2 support.
1176 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
1177 prologues.
1178 (nios2_breakpoint_from_pc): Handle R2 instructions.
1179 (nios2_get_next_pc): Likewise. Adjust call to
1180 tdep->syscall_next_pc.
1181 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
1182 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
1183 instruction field macros instead of literal hex values.
1184 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
1185 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
1186 Use size field from OP instead of assuming all instructions
1187 are the same size.
1188 (nios2_linux_init_abi): Register appropriate unwinder for mach.
1189
1190 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
1191
1192 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
1193 variable warning with some compilers.
1194
1195 2015-08-03 Yao Qi <yao.qi@linaro.org>
1196
1197 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
1198 in comment. Replace "rw" with "type".
1199 (arm_linux_remove_watchpoint): Change type of "rw" to
1200 "enum target_hw_bp_type".
1201
1202 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
1203
1204 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
1205 lookup_symbol.
1206 * ft32-tdep.c (ft32_skip_prologue): Likewise.
1207 * moxie-tdep.c (moxie_skip_prologue): Likewise.
1208 * mt-tdep.c (mt_skip_prologue): Likewise.
1209 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1210
1211 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
1212
1213 * ada-exp.y (write_object_renaming): Replace struct
1214 ada_symbol_info with struct block_symbol. Update field
1215 references accordingly.
1216 (block_lookup, select_possible_type_sym): Likewise.
1217 (find_primitive_type): Likewise. Also update call to
1218 ada_lookup_symbol to extract the symbol itself.
1219 (write_var_or_type, write_name_assoc): Likewise.
1220 * ada-lang.h (struct ada_symbol_info): Remove.
1221 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
1222 struct block_symbol.
1223 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
1224 (ada_lookup_symbol): Return struct block_symbol instead of a
1225 mere symbol.
1226 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
1227 with struct block_symbol.
1228 (resolve_subexp, ada_resolve_function, sort_choices,
1229 user_select_syms, is_nonfunction, add_defn_to_vec,
1230 num_defns_collected, defns_collected,
1231 symbols_are_identical_enums, remove_extra_symbols,
1232 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
1233 ada_lookup_symbol_list, ada_iterate_over_symbols,
1234 ada_lookup_encoded_symbol, get_var_value): Likewise.
1235 (ada_lookup_symbol): Return a block_symbol instead of a mere
1236 symbol. Replace struct ada_symbol_info with struct
1237 block_symbol.
1238 (ada_lookup_symbol_nonlocal): Likewise.
1239 (standard_lookup): Make block passing explicit through
1240 lookup_symbol_in_language.
1241 * ada-tasks.c (get_tcb_types_info): Update the calls to
1242 lookup_symbol_in_language to extract the mere symbol out of the
1243 returned value.
1244 (ada_tasks_inferior_data_sniffer): Likewise.
1245 * ax-gdb.c (gen_static_field): Likewise for the call to
1246 lookup_symbol.
1247 (gen_maybe_namespace_elt): Deal with struct block_symbol from
1248 lookup functions.
1249 (gen_expr): Likewise.
1250 * c-exp.y: Likewise. Remove uses of block_found.
1251 (lex_one_token, classify_inner_name, c_print_token): Likewise.
1252 (classify_name): Likewise. Rename the "sym" local variable to
1253 "bsym".
1254 * c-valprint.c (print_unpacked_pointer): Likewise.
1255 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
1256 "sym" parameter from struct symbol * to struct block_symbol.
1257 Use it to remove uses of block_found. Deal with struct
1258 block_symbol from lookup functions.
1259 (gcc_convert_symbol): Likewise. Update the call to
1260 convert_symbol_sym.
1261 * compile/compile-object-load.c (compile_object_load): Deal with
1262 struct block_symbol from lookup functions.
1263 * cp-namespace.c (cp_lookup_nested_symbol_1,
1264 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
1265 cp_search_static_and_baseclasses,
1266 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
1267 cp_lookup_symbol_imports_or_template,
1268 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
1269 lookup_namespace_scope, cp_lookup_nonlocal,
1270 find_symbol_in_baseclass): Return struct block_symbol instead of
1271 mere symbols and deal with struct block_symbol from lookup
1272 functions.
1273 * cp-support.c (inspect_type, replace_typedefs,
1274 cp_lookup_rtti_type): Deal with struct block_symbol from
1275 lookup functions.
1276 * cp-support.h (cp_lookup_symbol_nonlocal,
1277 cp_lookup_symbol_from_namespace,
1278 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
1279 Return struct block_symbol instead of mere symbols.
1280 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
1281 push_module_name):
1282 Deal with struct block_symbol from lookup functions. Remove
1283 uses of block_found.
1284 * eval.c (evaluate_subexp_standard): Update call to
1285 cp_lookup_symbol_namespace.
1286 * f-exp.y: Deal with struct block_symbol from lookup functions.
1287 Remove uses of block_found.
1288 (yylex): Likewise.
1289 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
1290 lookup_enum, lookup_template_type, check_typedef): Deal with
1291 struct block_symbol from lookup functions.
1292 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
1293 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
1294 (gdbscm_lookup_global_symbol): Likewise.
1295 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
1296 * go-exp.y: Likewise. Remove uses of block_found.
1297 (package_name_p, classify_packaged_name, classify_name):
1298 Likewise.
1299 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1300 * jv-exp.y (push_variable): Likewise.
1301 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
1302 * language.c (language_bool_type): Likewise.
1303 * language.h (struct language_defn): Update
1304 la_lookup_symbol_nonlocal to return a struct block_symbol rather
1305 than a mere symbol.
1306 * linespec.c (find_label_symbols): Deal with struct block_symbol
1307 from lookup functions.
1308 * m2-exp.y: Likewise. Remove uses of block_found.
1309 (yylex): Likewise.
1310 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1311 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
1312 * p-exp.y: Likewise. Remove uses of block_found.
1313 (yylex): Likewise.
1314 * p-valprint.c (pascal_val_print): Likewise.
1315 * parse.c (write_dollar_variable): Likewise. Remove uses of
1316 block_found.
1317 * parser-defs.h (struct symtoken): Turn the SYM field into a
1318 struct block_symbol.
1319 * printcmd.c (address_info): Deal with struct block_symbol from
1320 lookup functions.
1321 * python/py-frame.c (frapy_read_var): Likewise.
1322 * python/py-symbol.c (gdbpy_lookup_symbol,
1323 gdbpy_lookup_global_symbol): Likewise.
1324 * skip.c (skip_function_command): Likewise.
1325 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
1326 block_symbol instead of a mere symbol.
1327 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
1328 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1329 * solib.c (solib_global_lookup): Likewise.
1330 * solist.h (solib_global_lookup): Likewise.
1331 (struct target_so_ops): Update lookup_lib_global_symbol to
1332 return a struct block_symbol rather than a mere symbol.
1333 * source.c (select_source_symtab): Deal with struct block_symbol
1334 from lookup functions.
1335 * stack.c (print_frame_args, iterate_over_block_arg_vars):
1336 Likewise.
1337 * symfile.c (set_initial_language): Likewise.
1338 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
1339 block_symbol.
1340 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
1341 (struct symbol_cache_slot): Turn the FOUND field into a struct
1342 block_symbol.
1343 (block_found): Remove.
1344 (eq_symbol_entry): Update to deal with struct block_symbol in
1345 cache slots.
1346 (symbol_cache_lookup): Return a struct block_symbol rather than
1347 a mere symbol.
1348 (symbol_cache_mark_found): Add a BLOCK parameter to fill
1349 appropriately the cache slots. Update callers.
1350 (symbol_cache_dump): Update cache slots handling to the type
1351 change.
1352 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
1353 lookup_symbol_aux, lookup_local_symbol,
1354 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
1355 lookup_symbol_in_objfile_symtabs,
1356 lookup_symbol_in_objfile_from_linkage_name,
1357 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
1358 lookup_symbol_in_static_block, lookup_static_symbol,
1359 lookup_global_symbol):
1360 Return a struct block_symbol rather than a mere symbol. Deal
1361 with struct block_symbol from other lookup functions. Remove
1362 uses of block_found.
1363 (lookup_symbol_in_block): Remove uses of block_found.
1364 (struct global_sym_lookup_data): Turn the RESULT field into a
1365 struct block_symbol.
1366 (lookup_symbol_global_iterator_cb): Update references to the
1367 RESULT field.
1368 (search_symbols): Deal with struct block_symbol from lookup
1369 functions.
1370 * symtab.h (struct block_symbol): New structure.
1371 (block_found): Remove.
1372 (lookup_symbol_in_language, lookup_symbol,
1373 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
1374 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
1375 lookup_global_symbol_from_objfile): Return a struct block_symbol
1376 rather than just a mere symbol. Update comments to remove
1377 mentions of block_found.
1378 * valops.c (find_function_in_inferior,
1379 value_struct_elt_for_reference, value_maybe_namespace_elt,
1380 value_of_this): Deal with struct block_symbol from lookup
1381 functions.
1382 * value.c (value_static_field, value_fn_field): Likewise.
1383
1384 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
1385
1386 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
1387 instead of integer.
1388
1389 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
1390 Pedro Alves <palves@redhat.com>
1391
1392 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
1393 type or value instead of integer.
1394 (aarch64_linux_insert_watchpoint): Likewise.
1395 (aarch64_linux_remove_watchpoint): Likewise.
1396 * ada-lang.c (ada_op_print_tab): Likewise.
1397 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
1398 (amd64_linux_syscall_record_common): Likewise.
1399 * arch-utils.c (target_byte_order_user): Likewise.
1400 (default_byte_order): Likewise.
1401 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
1402 (arm_linux_get_hwbp_type): Likewise.
1403 (arm_linux_hw_watchpoint_initialize): Likewise.
1404 (arm_linux_insert_watchpoint): Likewise.
1405 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
1406 (arm_linux_syscall_record): Likewise.
1407 * breakpoint.c (update_watchpoint): Likewise.
1408 (breakpoint_here_p): Likewise.
1409 (bpstat_print): Likewise.
1410 (enable_breakpoint_disp): Likewise.
1411 * c-lang.c (c_op_print_tab): Likewise.
1412 * cli/cli-decode.c (add_info_alias): Likewise.
1413 * d-lang.c (d_op_print_tab): Likewise.
1414 * eval.c (evaluate_subexp_standard): Likewise.
1415 * f-exp.y (dot_ops): Likewise.
1416 (f77_keywords): Likewise.
1417 * f-lang.c (f_op_print_tab): Likewise.
1418 * go-lang.c (go_op_print_tab): Likewise.
1419 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
1420 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
1421 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
1422 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
1423 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
1424 (struct scm_from_stringn_data): Likewise.
1425 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
1426 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1427 (ia64_linux_remove_watchpoint): Likewise.
1428 (ia64_linux_can_use_hw_breakpoint): Likewise.
1429 * infrun.c (print_stop_event): Likewise.
1430 * jv-lang.c (java_op_print_tab): Likewise.
1431 * linux-nat.c (linux_proc_xfer_partial): Likewise.
1432 * linux-nat.h (struct lwp_info): Likewise.
1433 * linux-thread-db.c (enable_thread_event): Likewise.
1434 * m2-lang.c (m2_op_print_tab): Likewise.
1435 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
1436 (mi_cmd_stack_list_variables): Likewise.
1437 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
1438 * mi/mi-out.c (mi_table_begin): Likewise.
1439 (mi_table_header): Likewise.
1440 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
1441 (mips_linux_insert_watchpoint): Likewise.
1442 (mips_linux_remove_watchpoint): Likewise.
1443 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
1444 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
1445 (mips_linux_watch_type_to_irw): Likewise.
1446 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
1447 (procfs_insert_hw_watchpoint): Likewise.
1448 (procfs_remove_hw_watchpoint): Likewise.
1449 (procfs_hw_watchpoint): Likewise.
1450 (procfs_can_use_hw_breakpoint): Likewise.
1451 (procfs_remove_hw_watchpoint): Likewise.
1452 (procfs_insert_hw_watchpoint): Likewise.
1453 * p-lang.c (pascal_op_print_tab): Likewise.
1454 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
1455 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
1456 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
1457 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
1458 (procfs_insert_watchpoint): Likewise.
1459 (procfs_remove_watchpoint): Likewise.
1460 * psymtab.c (recursively_search_psymtabs): Likewise.
1461 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
1462 (m32r_insert_watchpoint): Likewise.
1463 * remote-mips.c (mips_can_use_watchpoint): Likewise.
1464 (mips_insert_watchpoint): Likewise.
1465 (mips_remove_watchpoint): Likewise.
1466 * remote.c (watchpoint_to_Z_packet): Likewise.
1467 (remote_insert_watchpoint): Likewise.
1468 (remote_remove_watchpoint): Likewise.
1469 (remote_check_watch_resources): Likewise.
1470 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1471 (s390_remove_watchpoint): Likewise.
1472 (s390_can_use_hw_breakpoint): Likewise.
1473 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1474 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
1475 * target.h (struct target_ops): Likewise.
1476 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1477 * ui-out.c (struct ui_out_hdr): Likewise.
1478 (append_header_to_list): Likewise.
1479 (get_next_header): Likewise.
1480 (verify_field): Likewise.
1481 (ui_out_begin): Likewise.
1482 (ui_out_field_int): Likewise.
1483 (ui_out_field_fmt_int): Likewise.
1484 (ui_out_field_skip): Likewise.
1485 (ui_out_field_string): Likewise.
1486 (ui_out_field_fmt): Likewise.
1487 * varobj.c (new_variable): Likewise.
1488 * x86-nat.c (x86_insert_watchpoint): Likewise.
1489 (x86_remove_watchpoint): Likewise.
1490 (x86_can_use_hw_breakpoint): Likewise.
1491 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
1492 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
1493 previously anonymous enumeration type..
1494 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
1495 value.
1496 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
1497 (target_debug_print_enum_bptype): New.
1498 * target-delegates.c: Regenerate.
1499
1500 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
1501
1502 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
1503 already says and disallow non-stack memory writes in the prologue.
1504
1505 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
1506
1507 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
1508 reflect how current GCC emits stack overflow checks. Match
1509 both trap and break instructions for backward compatbility.
1510 Disallow other trap and break instructions in the prologue.
1511
1512 2015-07-30 Pedro Alves <palves@redhat.com>
1513
1514 PR threads/18600
1515 * linux-nat.c (wait_lwp): Report to the core when thread group
1516 leader exits.
1517
1518 2015-07-30 Pedro Alves <palves@redhat.com>
1519 Simon Marchi <simon.marchi@ericsson.com>
1520
1521 PR threads/18600
1522 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
1523 mark the new thread as resumed. Remove STOPPING parameter.
1524 (wait_lwp): Adjust call to linux_handle_extended_wait.
1525 (linux_nat_filter_event): Adjust call to
1526 linux_handle_extended_wait.
1527 (resume_stopped_resumed_lwps): Add debug output.
1528
1529 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
1530
1531 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
1532 isize argument.
1533 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
1534 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
1535 gdbarch_fast_tracepoint_valid_at.
1536 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
1537 * gdbarch.h: Regenerate.
1538 * gdbarch.c: Regenerate.
1539 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
1540 argument. Do not set it.
1541 * remote.c (remote_download_tracepoint): Adjust call to
1542 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
1543 the instruction length.
1544
1545 2015-07-30 Yao Qi <yao.qi@linaro.org>
1546
1547 * arm-tdep.h (enum gdb_regnum): Move it to ...
1548 * arch/arm.h: ... here. New file.
1549 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
1550
1551 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
1552
1553 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
1554 Change its type to int *.
1555 (decode_br): Rename link argument to is_blr. Change its type to
1556 int *.
1557 (decode_cb): Rename op argument to is_cbnz. Change its type to
1558 int *.
1559 (decode_tb): Rename op argument to is_tbnz. Change its type to
1560 int *. Set is_tbnz to either 1 or 0.
1561 (aarch64_analyze_prologue): Change type of is_link to int. Add
1562 new variables is_cbnz and is_tbnz. Adjust call to
1563 aarch64_decode_cb and aarch64_decode_tb.
1564
1565 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
1566
1567 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
1568 parameter.
1569 (mips_linux_new_thread): Likewise.
1570 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
1571
1572 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
1573
1574 * top.c: Include "tui/tui.h".
1575 (undo_terminal_modifications_before_exit): New static function.
1576 (quit_force): Use it.
1577
1578 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
1579
1580 * target.c (terminal_state): Initialize to terminal_is_ours.
1581
1582 2015-07-29 Yao Qi <yao.qi@linaro.org>
1583
1584 PR record/18691
1585 * dcache.c (dcache_read_memory_partial): Call
1586 raw_memory_xfer_partial.
1587 * target.c (raw_memory_xfer_partial): Make it non-static.
1588 * target.h (raw_memory_xfer_partial): Declare.
1589
1590 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
1591
1592 * c-valprint.c (c_val_print_array): Consider addressable memory
1593 unit size.
1594 (c_val_print_ptr): Likewise.
1595 (c_val_print_int): Likewise.
1596 * findvar.c (read_frame_register_value): Likewise.
1597 * valarith.c (find_size_for_pointer_math): Likewise.
1598 (value_ptrdiff): Likewise.
1599 (value_subscripted_rvalue): Likewise.
1600 * valops.c (read_value_memory): Likewise (and rename variables).
1601 (value_assign): Likewise.
1602 (value_repeat): Likewise.
1603 (value_array): Likewise.
1604 (value_slice): Likewise.
1605 * valprint.c (generic_val_print_ptr): Likewise.
1606 (generic_val_print_enum): Likewise.
1607 (generic_val_print_bool): Likewise.
1608 (generic_val_print_int): Likewise.
1609 (generic_val_print_char): Likewise.
1610 (generic_val_print_float): Likewise.
1611 (generic_val_print_decfloat): Likewise.
1612 (generic_val_print_complex): Likewise.
1613 (val_print_scalar_formatted): Likewise.
1614 (val_print_array_elements): Likewise.
1615 * value.c (set_value_parent): Likewise.
1616 (value_contents_copy_raw): Likewise.
1617 (set_internalvar_component): Likewise.
1618 (value_primitive_field): Likewise.
1619 (value_fetch_lazy): Likewise.
1620 * value.h (read_value_memory): Update comment.
1621
1622 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
1623
1624 * value.c (get_value_arch): New function.
1625 * value.h (get_value_arch): New declaration.
1626
1627 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
1628
1629 * value.c (struct value): Update comments.
1630
1631 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
1632
1633 * gdbtypes.c (type_length_units): New function.
1634 * gdbtypes.h (type_length_units): New declaration.
1635 (struct type) <length>: Update comment.
1636
1637 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1638
1639 * valprint.c (generic_val_print): Factor out complex
1640 printing code to ...
1641 (generic_val_print_complex): ... this new function.
1642
1643 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1644
1645 * valprint.c (generic_val_print): Factor out decfloat
1646 printing code to ...
1647 (generic_val_print_decfloat): ... this new function.
1648
1649 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1650
1651 * valprint.c (generic_val_print): Factor out float
1652 printing code to ...
1653 (generic_val_print_float): ... this new function.
1654
1655 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1656
1657 * valprint.c (generic_val_print): Factor out char
1658 printing code to ...
1659 (generic_val_print_char): ... this new function.
1660
1661 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1662
1663 * valprint.c (generic_val_print): Factor out integer
1664 printing code to ...
1665 (generic_val_print_int): ... this new function.
1666
1667 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1668
1669 * valprint.c (generic_val_print): Factor out bool
1670 printing code to ...
1671 (generic_val_print_bool): ... this new function.
1672
1673 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1674
1675 * valprint.c (generic_val_print): Factor out function/method
1676 printing code to ...
1677 (generic_val_print_func): ... this new function.
1678
1679 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1680
1681 * valprint.c (generic_val_print): Factor out flags
1682 printing code to ...
1683 (generic_val_print_flags): ... this new function.
1684
1685 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1686
1687 * valprint.c (generic_val_print): Factor out enum
1688 printing code to ...
1689 (generic_val_print_enum): ... this new function.
1690
1691 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1692
1693 * valprint.c (generic_val_print): Factor out reference
1694 printing code to ...
1695 (generic_val_print_ref): ... this new function.
1696
1697 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1698
1699 * valprint.c (generic_val_print): Factor out memberptr
1700 printing code to ...
1701 (generic_val_print_memberptr): ... this new function.
1702
1703 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1704
1705 * valprint.c (generic_val_print): Factor out pointer
1706 printing code to ...
1707 (generic_val_print_ptr): ... this new function.
1708
1709 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1710
1711 * valprint.c (generic_val_print): Factor out array
1712 printing code to ...
1713 (generic_val_print_array): ... this new function.
1714
1715 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
1716
1717 * valprint.c (generic_val_print): Factor out
1718 print_unpacked_pointer code to ...
1719 (print_unpacked_pointer): ... this new function.
1720
1721 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
1722
1723 * event-top.c (handle_sigterm): Don't inspect
1724 target_can_async_p. Always set the quit flag and always mark
1725 the async signal handler.
1726
1727 2015-07-27 Yao Qi <yao.qi@linaro.org>
1728
1729 * Makefile.in (REMOTE_EXAMPLES): Remove it.
1730
1731 2015-07-25 Kevin Buettner <kevinb@redhat.com>
1732
1733 * remote.c (read_ptid): Return null_ptid when no thread id
1734 is found.
1735 (remote_current_thread): Add log warning for malformed
1736 qC reply.
1737 (remote_start_remote): Add log warning when current thread
1738 not found.
1739
1740 2015-07-24 Pedro Alves <palves@redhat.com>
1741
1742 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
1743 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
1744 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
1745
1746 2015-07-24 Pedro Alves <palves@redhat.com>
1747
1748 PR gdb/18717
1749 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
1750 is resumed, and extend the debug log.
1751
1752 2015-07-24 Pedro Alves <palves@redhat.com>
1753
1754 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
1755
1756 2015-07-24 Pedro Alves <palves@redhat.com>
1757
1758 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
1759 sys/ptrace.h.
1760 * alpha-linux-nat.c: Likewise.
1761 * amd64-linux-nat.c: Likewise.
1762 * arm-linux-nat.c: Likewise.
1763 * hppa-linux-nat.c: Likewise.
1764 * i386-linux-nat.c: Likewise.
1765 * ia64-linux-nat.c: Likewise.
1766 * linux-fork.c: Likewise.
1767 * linux-nat.c: Likewise.
1768 * m32r-linux-nat.c: Likewise.
1769 * m68klinux-nat.c: Likewise.
1770 * mips-linux-nat.c: Likewise.
1771 * nat/linux-btrace.c: Likewise.
1772 * nat/linux-ptrace.c: Likewise.
1773 * nat/linux-ptrace.h
1774 * nat/mips-linux-watch.c: Likewise.
1775 * nat/x86-linux-dregs.c: Likewise.
1776 * ppc-linux-nat.c: Likewise.
1777 * s390-linux-nat.c: Likewise.
1778 * spu-linux-nat.c: Likewise.
1779 * tilegx-linux-nat.c: Likewise.
1780 * x86-linux-nat.c: Likewise.
1781 * xtensa-linux-nat.c: Likewise.
1782
1783 2015-07-24 Pedro Alves <palves@redhat.com>
1784
1785 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
1786 __ptrace_request as first parameter type instead of int.
1787 (PTRACE_TYPE_ARG1): Define.
1788 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
1789 that casts first argument to PTRACE_TYPE_ARG1.
1790 * config.in: Regenerate.
1791 * configure: Regenerate.
1792
1793 2015-07-24 Pedro Alves <palves@redhat.com>
1794
1795 * gdb_ptrace.h: Move ...
1796 * nat/gdb_ptrace.h: ... here.
1797 * inf-ptrace.c: Adjust.
1798
1799 2015-07-24 Pedro Alves <palves@redhat.com>
1800
1801 * acinclude.m4: Include ptrace.m4.
1802 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
1803 * ptrace.m4: ... to this new file.
1804
1805 2015-07-23 Doug Evans <dje@google.com>
1806
1807 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
1808 (load_cu): Handle dummy CUs.
1809 (dw2_do_instantiate_symtab, process_queuef): Ditto.
1810 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
1811
1812 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
1813
1814 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
1815 documentation to say that it returns a list rather than
1816 a FrozenSet.
1817 (linetable_object_methods): Update the docstring of the
1818 "source_line" entry.
1819
1820 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
1821
1822 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
1823 type to the recursive call instead of the original (maybe
1824 TYPE_CODE_TYPEDEF) type.
1825
1826 2015-07-23 Yao Qi <yao.qi@linaro.org>
1827
1828 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
1829 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
1830 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
1831
1832 2015-07-21 Yao Qi <yao.qi@linaro.org>
1833
1834 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
1835 Move it to nat/aarch64-linux-hw-point.c.
1836 (aarch64_linux_child_post_startup_inferior): Update.
1837 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
1838 New function.
1839 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
1840 Declare it.
1841
1842 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
1843
1844 * common/btrace-common.c (btrace_data_append): Change case label.
1845
1846 2015-07-20 Yao Qi <yao.qi@linaro.org>
1847
1848 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
1849 Re-indent the code.
1850 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
1851 "unsigned long long".
1852
1853 2015-07-18 Kevin Buettner <kevinb@redhat.com>
1854
1855 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
1856 to be set for SEC_ALLOC sections too.
1857
1858 2015-07-17 Yao Qi <yao.qi@linaro.org>
1859
1860 * Makefile.in (HFILES_NO_SRCDIR): Add
1861 nat/aarch64-linux-hw-point.h.
1862 (aarch64-linux-hw-point.o): New rule.
1863 * nat/aarch64-linux-hw-point.h: New file.
1864 * nat/aarch64-linux-hw-point.c: New file.
1865 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
1866 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
1867 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
1868 (AARCH64_HWP_ALIGNMENT): Likewise.
1869 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
1870 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
1871 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
1872 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
1873 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
1874 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
1875 (struct aarch64_debug_reg_state): Likewise.
1876 (struct arch_lwp_info): Likewise.
1877 (aarch64_linux_set_debug_regs): Likewise.
1878 (aarch64_notify_debug_reg_change): Remove static.
1879 (aarch64_align_watchpoint): Likewise.
1880 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
1881 (aarch64_watchpoint_length): Likewise.
1882 (aarch64_point_encode_ctrl_reg): Likewise
1883 (aarch64_point_is_aligned): Likewise.
1884 (aarch64_dr_state_insert_one_point): Likewise.
1885 (aarch64_dr_state_remove_one_point): Likewise.
1886 (aarch64_handle_breakpoint): Likewise.
1887 (aarch64_handle_aligned_watchpoint): Likewise.
1888 (aarch64_handle_unaligned_watchpoint): Likewise.
1889 (aarch64_handle_watchpoint): Likewise.
1890 * config/aarch64/linux.mh (NAT_FILE): Add
1891 aarch64-linux-hw-point.o.
1892
1893 2015-07-17 Yao Qi <yao.qi@linaro.org>
1894
1895 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
1896 state and don't call aarch64_get_debug_reg_state. All callers
1897 update.
1898 (aarch64_linux_insert_hw_breakpoint): Call
1899 aarch64_get_debug_reg_state earlier.
1900 (aarch64_linux_remove_hw_breakpoint): Likewise.
1901 (aarch64_handle_aligned_watchpoint): Add argument state and
1902 don't call aarch64_get_debug_reg_state. All callers update.
1903 (aarch64_handle_unaligned_watchpoint): Likewise.
1904 (aarch64_handle_watchpoint): Add argument state.
1905 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
1906 earlier.
1907 (aarch64_linux_remove_watchpoint): Likewise.
1908
1909 2015-07-17 Yao Qi <yao.qi@linaro.org>
1910
1911 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
1912 debug_printf.
1913 (aarch64_handle_unaligned_watchpoint): Likewise.
1914
1915 2015-07-17 Yao Qi <yao.qi@linaro.org>
1916
1917 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
1918 argument type's type to 'enum target_hw_bp_type'.
1919 (aarch64_dr_state_remove_one_point): Likewise.
1920 (aarch64_handle_breakpoint): Likewise.
1921 (aarch64_linux_insert_hw_breakpoint): Likewise.
1922 (aarch64_linux_remove_hw_breakpoint): Likewise.
1923 (aarch64_handle_aligned_watchpoint): Likewise.
1924
1925 2015-07-17 Yao Qi <yao.qi@linaro.org>
1926
1927 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
1928 ptid_get_pid instead of get_thread_id.
1929
1930 2015-07-17 Yao Qi <yao.qi@linaro.org>
1931
1932 * remote.c (get_current_thread): Initialise ptid to null_ptid.
1933 (add_current_inferior_and_thread): Don't initialise ptid.
1934
1935 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
1936
1937 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
1938 unavailable if invalid.
1939
1940 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 Revert the previous 6 commits:
1943 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1944 Move gdb_regex* to common/
1945 Prepare linux_find_memory_regions_full & co. for move
1946 Move linux_find_memory_regions_full & co.
1947 gdbserver build-id attribute generator
1948 Validate symbol file using build-id
1949
1950 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1951 Jan Kratochvil <jan.kratochvil@redhat.com>
1952
1953 Validate symbol file using build-id.
1954 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
1955 and 'show validate-build-id'. Add build-id attribute.
1956 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
1957 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
1958 * solib-frv.c (_initialize_frv_solib): Ditto.
1959 * solib-spu.c (set_spu_solib_ops): Ditto.
1960 * solib-svr4.c: Include rsp-low.h.
1961 (NOTE_GNU_BUILD_ID_NAME): New define.
1962 (svr4_validate): New function.
1963 (svr4_copy_library_list): Duplicate field build_id.
1964 (library_list_start_library): Parse 'build-id' attribute.
1965 (svr4_library_attributes): Add 'build-id' attribute.
1966 (_initialize_svr4_solib): Assign validate value.
1967 * solib-target.c (solib.h): Include.
1968 (_initialize_solib_target): Assign validate value.
1969 * solib.c (validate_build_id, show_validate_build_id): New.
1970 (solib_map_sections): Use ops->validate.
1971 (clear_so): Free build_id.
1972 (default_solib_validate): New function.
1973 (_initialize_solib): Add "validate-build-id".
1974 * solib.h (default_solib_validate): New declaration.
1975 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
1976 (target_so_ops): New field 'validate'.
1977
1978 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1979 Jan Kratochvil <jan.kratochvil@redhat.com>
1980
1981 gdbserver build-id attribute generator.
1982 * features/library-list-svr4.dtd (library-list-svr4): New
1983 'build-id' attribute.
1984
1985 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1986 Jan Kratochvil <jan.kratochvil@redhat.com>
1987
1988 Move linux_find_memory_regions_full & co.
1989 * linux-tdep.c (nat/linux-maps.h): Include.
1990 (gdb_regex.h): Remove the include.
1991 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
1992 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
1993 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
1994 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
1995 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
1996 and target/target.h.
1997 (struct smaps_vmflags, read_mapping, decode_vmflags)
1998 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
1999 (linux_find_memory_regions_full): Move from linux-tdep.c.
2000 * nat/linux-maps.h (read_mapping): New declaration.
2001 (linux_find_memory_region_ftype, enum filterflags): Moved from
2002 linux-tdep.c.
2003 (linux_find_memory_regions_full): New declaration.
2004 * target.c (target/target-utils.h): Include.
2005 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
2006 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
2007 definitions to target/target-utils.c.
2008 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
2009 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
2010 from target.c.
2011 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
2012 (read_alloc): New declaration.
2013 (read_stralloc_func_ftype): New typedef.
2014 (read_stralloc): New declaration.
2015 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
2016
2017 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2018 Jan Kratochvil <jan.kratochvil@redhat.com>
2019
2020 Prepare linux_find_memory_regions_full & co. for move.
2021 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
2022 (linux_find_memory_regions_full): Change signature and prepare
2023 for moving to linux-maps.
2024 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
2025 (linux_find_memory_regions_thunk): New.
2026 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
2027 (linux_find_memory_regions_gdb): New.
2028 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
2029 (linux_make_mappings_corefile_notes): Use
2030 linux_find_memory_regions_gdb.
2031 * target.c (read_alloc_pread_ftype): New typedef.
2032 (target_fileio_read_alloc_1_pread): New function.
2033 (read_alloc): Refactor from target_fileio_read_alloc_1.
2034 (read_stralloc_func_ftype): New typedef.
2035 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
2036 (read_stralloc): Refactored from target_fileio_read_stralloc.
2037 (target_fileio_read_stralloc): New implementation, use read_stralloc.
2038
2039 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
2042 common/gdb_regex.h.
2043 (COMMON_OBS): Add gdb_regex.o.
2044 (gdb_regex.o): New.
2045 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
2046 --without-included-regex and USE_INCLUDED_REGEX.
2047 * common/gdb_regex.c: New file from utils.c functions.
2048 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
2049 file wrapping define name.
2050 * configure: Rebuilt.
2051 * configure.ac (gdb_use_included_regex, --without-included-regex)
2052 (USE_INCLUDED_REGEX): Move them to common/common.m4.
2053 * gdb_regex.h: Move it to common/gdb_regex.h.
2054 * utils.c: Remove include gdb_regex.h.
2055 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
2056 (compile_rx_or_error): Move them to common/gdb_regex.c.
2057
2058 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2059 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
2062 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
2063 common/target-utils.h.
2064 (COMMON_OBS): Add target-utils.o.
2065 (linux-maps.o, target-utils.o): New.
2066 * target/target-utils.c: New file.
2067 * target/target-utils.h: New file.
2068 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
2069 * config/i386/linux64.mh (NATDEPFILES): Ditto.
2070 * nat/linux-maps.c: New file.
2071 * nat/linux-maps.h: New file.
2072
2073 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
2074 Pedro Alves <palves@redhat.com>
2075
2076 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
2077 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
2078 (perf_event_read_bts): Change the type of SIZE and READ.
2079 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
2080 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
2081 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
2082 mmap page.
2083 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
2084 buffer size to UINT_MAX.
2085 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
2086 DATA_TAIL.
2087 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
2088 <last_head>: Change type.
2089 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
2090 * common/btrace-common.c (btrace_data_append): Change the type of
2091 SIZE.
2092 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
2093 check.
2094
2095 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
2096
2097 * gdbtypes.h (CHECK_TYPEDEF): Remove.
2098 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
2099 with check_typedef.
2100 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
2101 (ada_array_length): Likewise.
2102 (find_parallel_type_by_descriptive_type): Likewise.
2103 (ada_check_typedef): Likewise.
2104 * arm-tdep.c (arm_return_in_memory): Likewise.
2105 * ax-gdb.c (gen_trace_static_fields): Likewise.
2106 (gen_struct_ref_recursive): Likewise.
2107 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
2108 (variable: block COLONCOLON name): Likewise.
2109 (qualified_name: TYPENAME COLONCOLON name): Likewise.
2110 * c-lang.c (classify_type): Likewise.
2111 * c-typeprint.c (c_print_type): Likewise.
2112 (c_print_typedef): Likewise.
2113 (c_type_print_base): Likewise.
2114 * c-valprint.c (c_val_print): Likewise.
2115 * compile/compile-c-types.c (convert_type): Likewise.
2116 * compile/compile-object-load.c (get_out_value_type): Likewise.
2117 * completer.c (add_struct_fields): Likewise.
2118 (expression_completer): Likewise.
2119 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
2120 (cp_lookup_nested_symbol_1): Likewise.
2121 (cp_lookup_nested_symbol): Likewise.
2122 * cp-valprint.c (cp_print_value_fields): Likewise.
2123 (cp_print_static_field): Likewise.
2124 * d-valprint.c (d_val_print): Likewise.
2125 * eval.c (evaluate_subexp_standard): Likewise.
2126 (evaluate_subexp_for_sizeof): Likewise.
2127 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
2128 * f-typeprint.c (f_type_print_base): Likewise.
2129 * f-valprint.c (f_val_print): Likewise.
2130 * gdbtypes.c (get_discrete_bounds): Likewise.
2131 (create_array_type_with_stride): Likewise.
2132 (type_name_no_tag_or_error): Likewise.
2133 (lookup_struct_elt_type): Likewise.
2134 (get_unsigned_type_max): Likewise.
2135 (internal_type_vptr_fieldno): Likewise.
2136 (set_type_vptr_fieldno): Likewise.
2137 (internal_type_vptr_basetype): Likewise.
2138 (set_type_vptr_basetype): Likewise.
2139 (get_vptr_fieldno): Likewise.
2140 (is_integral_type): Likewise.
2141 (is_scalar_type): Likewise.
2142 (is_scalar_type_recursive): Likewise.
2143 (distance_to_ancestor): Likewise.
2144 (is_unique_ancestor_worker): Likewise.
2145 (check_types_equal): Likewise.
2146 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2147
2148 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
2149
2150 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
2151 also test for language_d.
2152 (dwarf2_compute_name): Likewise.
2153 (read_func_scope): Likewise.
2154 (read_structure_type): Likewise.
2155 (new_symbol_full): Likewise.
2156 (determine_prefix): Likewise.
2157 (read_import_statement): Use dot as the separator for language_d.
2158 (typename_concat): Likewise, but don't prefix the D main function.
2159
2160 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
2161
2162 * nat/linux-namespaces.c (setns): Rename from this ...
2163 (do_setns): ... to this. Support calling setns if it exists.
2164 (mnsh_handle_setns): Call do_setns.
2165
2166 2015-07-13 Yao Qi <yao.qi@linaro.org>
2167
2168 * exec.c (exec_file_attach): Add period at the end of error
2169 message.
2170
2171 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * tui/tui-win.c (window_name_completer): New function.
2174 (focus_completer): Call window_name_completer. All old content
2175 moved into window_name_completer.
2176 (winheight_completer): New function.
2177 (_initialize_tui_win): Rename variable. Add completer to
2178 winheight command. Update doc string on winheight.
2179
2180 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
2181
2182 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
2183 all nios2 mach variants.
2184
2185 2015-07-10 Kevin Buettner <kevinb@redhat.com>
2186
2187 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
2188 of target_read_memory.
2189
2190 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
2193 string copy.
2194 (parse_scrolling_args): Likewise.
2195
2196 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
2199 names in this function.
2200
2201 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * tui/tui-data.h (SRC_NAME): Convert to lower case.
2204 (CMD_NAME): Likewise.
2205 (DATA_NAME): Likewise.
2206 (DISASSEM_NAME): Likewise.
2207 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
2208 (tui_set_win_height): Likewise.
2209 (parse_scrolling_args): Likewise.
2210
2211 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
2212
2213 * record-btrace.c (record_btrace_goto_begin)
2214 (record_btrace_goto_end, record_btrace_goto): Move call to
2215 print_stack_frame ...
2216 (record_btrace_set_replay): ... here. Set stop_pc.
2217 * record-full.c (record_full_goto_entry): Set stop_pc.
2218
2219 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2220
2221 * NEWS: Mention support for tracepoints on aarch64-linux.
2222
2223 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2224
2225 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
2226 function. Return 1.
2227 (the_low_target): Install it.
2228
2229 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2230
2231 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
2232 * gdb.trace/collection.exp: Likewise.
2233 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
2234 * gdb.trace/mi-trace-unavailable.exp: Likewise.
2235 * gdb.trace/report.exp: Likewise.
2236 * gdb.trace/trace-break.exp: Likewise.
2237 * gdb.trace/unavailable.exp: Likewise.
2238 * gdb.trace/while-dyn.exp: Likewise.
2239
2240 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2241
2242 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
2243 (aarch64_gen_return_address): New function.
2244 (aarch64_gdbarch_init): Hook it.
2245
2246 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2247
2248 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
2249 swallow NOT_AVAILABLE_ERROR.
2250 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
2251 available_p is not set.
2252 (aarch64_stub_frame_unwind_stop_reason): New function.
2253 (aarch64_stub_unwind): Install it.
2254
2255 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2256
2257 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
2258 field.
2259 (aarch64_make_prologue_cache_1): New function, factored out from
2260 aarch64_make_prologue_cache. Do not allocate cache. Set
2261 available_p.
2262 (aarch64_make_prologue_cache): Reimplement wrapping
2263 aarch64_make_prologue_cache_1, and swallowing
2264 NOT_AVAILABLE_ERROR.
2265 (aarch64_prologue_frame_unwind_stop_reason): New function.
2266 Return UNWIND_UNAVAILABLE if available_p is not set.
2267 (aarch64_prologue_unwind): Install it.
2268 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
2269 checks into aarch64_prologue_frame_unwind_stop_reason. Call
2270 frame_id_build_unavailable_stack if available_p is not set.
2271
2272 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2273
2274 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
2275 fields.
2276 (aarch64_scan_prologue): Set prev_pc.
2277 (aarch64_make_prologue_cache): Set func.
2278 (aarch64_make_stub_cache): Set prev_pc.
2279 (aarch64_prologue_this_id): Remove local variables id, pc and
2280 func. Read prev_pc and func from cache.
2281 (aarch64_stub_this_id): Read prev_pc from cache.
2282
2283 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2284
2285 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
2286 argument this_cache. Remove unused local variables reg and
2287 unwound_fp. Return early if this_cache is already set. Set
2288 this_cache.
2289 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
2290
2291 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
2292
2293 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
2294 New argument this_cache. Return early if this_cache is already
2295 set. Set this_cache.
2296 (aarch64_prologue_this_id): Update call to
2297 aarch64_make_prologue_cache.
2298 (aarch64_prologue_prev_register): Likewise.
2299 (aarch64_normal_frame_base): Likewise.
2300
2301 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2302
2303 * c-valprint.c (c_val_print): Factor out memberptr printing code
2304 from c_val_print to ...
2305 (c_val_print_memberptr): ... this new function.
2306
2307 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2308
2309 * c-valprint.c (c_val_print): Factor out int printing code to ...
2310 (c_val_print_int): ... this new function.
2311
2312 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2313
2314 * c-valprint.c (c_val_print): Factor out struct and union
2315 printing code to ...
2316 (c_val_print_struct): ... this new function ...
2317 (c_val_print_union): ... and this new function.
2318
2319 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2320
2321 * c-valprint.c (c_val_print): Factor out pointer printing code
2322 to ...
2323 (c_val_print_ptr): ... this new function.
2324
2325 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2326
2327 * c-valprint.c (c_valprint): Factor our array printing code from
2328 c_val_print to ...
2329 (c_val_print_array): ... this new function.
2330
2331 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2332
2333 * c-valprint.c (c_val_print): Factor out pointer printing code
2334 to ...
2335 (print_unpacked_pointer): ... this new function.
2336
2337 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
2338
2339 * c-valprint.c (c_val_print): Remove an assignment to i and move
2340 its declaration.
2341
2342 2015-07-09 Yao Qi <yao.qi@linaro.org>
2343
2344 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
2345 argument ptid. Update comments. Caller update.
2346
2347 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
2348
2349 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
2350 mnt packets.
2351
2352 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
2353
2354 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
2355
2356 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
2357
2358 * progspace.c (delete_program_space): Add missing spaces.
2359
2360 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
2361
2362 * inferior.c (delete_inferior_1): Rename to ...
2363 (delete_inferior): ..., remove 'silent' parameter, delete
2364 program space when unused and remove call to prune_program_spaces.
2365 Remove the old, unused, delete_inferior.
2366 (delete_inferior_silent): Remove.
2367 (prune_inferiors): Change call from delete_inferior_1 to
2368 delete_inferior and remove 'silent' parameter. Remove call to
2369 prune_program_spaces.
2370 (remove_inferior_command): Idem.
2371 * inferior.h (delete_inferior_1): Rename to...
2372 (delete_inferior): ..., remove 'silent' parameter and remove the
2373 original delete_inferior.
2374 (delete_inferior_silent): Remove.
2375 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
2376 delete_inferior_1 to delete_inferior and remove 'silent'
2377 parameter.
2378 * progspace.c (prune_program_spaces): Remove.
2379 (pspace_empty_p): Rename to...
2380 (program_space_empty_p): ... and make non-static.
2381 (delete_program_space): New.
2382 * progspace.h (prune_program_spaces): Remove declaration.
2383 (program_space_empty_p): New declaration.
2384 (delete_program_space): New declaration.
2385 * monitor.c (monitor_close): Replace call to
2386 delete_thread_silent and delete_inferior_silent with
2387 discard_all_inferiors.
2388
2389 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
2390
2391 * defs.h (deprecated_register_changed_hook): Remove prototype.
2392 * interps.c (clear_iterpreter_hooks): Remove reference to
2393 deprecated_register_changed_hook.
2394 * top.c (deprecated_register_changed_hook): Remove prototype.
2395 * valops.c (value_assign): Remove reference to
2396 deprecated_register_changed_hook.
2397 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
2398 Add comment documenting the function.
2399 (tui_register_changed_observer): Define.
2400 (tui_install_hooks): Remove reference to
2401 deprecated_register_changed_hook. Set
2402 tui_register_changed_observer.
2403 (tui_remove_hooks): Remove reference to
2404 deprecated_register_changed_hook. Unset
2405 tui_register_changed_observer.
2406
2407 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2408
2409 PR compile/18484
2410 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
2411
2412 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
2413
2414 PR exp/18617
2415 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
2416
2417 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
2418
2419 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
2420
2421 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
2422
2423 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
2424 Use safe_strerror() instead of strerror().
2425
2426 2015-07-07 Yao Qi <yao.qi@linaro.org>
2427
2428 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
2429 * features/arm-with-m-fpa-layout.c: Regenerated.
2430 * features/arm-with-m-vfp-d16.xml: Likewise.
2431 * features/arm-with-m-vfp-d16.c: Regenerated.
2432 * features/arm-with-m.xml: Likewise.
2433 * features/arm-with-m.c: Regenerated.
2434 * features/arm-with-neon.xml: Likewise.
2435 * features/arm-with-neon.c: Regenerated.
2436 * features/arm-with-vfpv2.xml: Likewise.
2437 * features/arm-with-vfpv2.c: Regenerated.
2438 * features/arm-with-vfpv3.xml: Likewise.
2439 * features/arm-with-vfpv3.c: Regenerated.
2440
2441 2015-07-07 Yao Qi <yao.qi@linaro.org>
2442
2443 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
2444 arm-linux-nat.c.
2445 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
2446 elf/external.h.
2447 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
2448 if target is 32-bit.
2449 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
2450 if target is 32-bit.
2451 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
2452 if target is 32-bit.
2453 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
2454 if target is 32-bit.
2455 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
2456 (aarch64_linux_read_description): Return the right target
2457 description.
2458 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
2459 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
2460 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
2461 arm-linux-tdep.o.
2462
2463 2015-07-07 Yao Qi <yao.qi@linaro.org>
2464
2465 * aarch32-linux-nat.c: New file.
2466 * aarch32-linux-nat.h: New file.
2467 * arm-linux-nat.c: Include aarch32-linux-nat.h.
2468 (fetch_regs): Move code to aarch32-linux-nat.c. Call
2469 aarch32_gp_regcache_supply.
2470 (store_regs): Move code to aarch32-linux-nat.c. Call
2471 aarch32_gp_regcache_collect.
2472 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
2473 aarch32_vfp_regcache_supply.
2474 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
2475 aarch32_vfp_regcache_collect.
2476 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
2477
2478 2015-07-07 Yao Qi <yao.qi@linaro.org>
2479
2480 * arm-linux-nat.c (store_fpregister): Remove.
2481 (store_register): Likewise.
2482 (fetch_fpregister): Likewise.
2483 (fetch_register): Likewise.
2484 (arm_linux_store_inferior_registers): Call store_regs and
2485 store_fpregs instead.
2486 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
2487 fetch_regs instead.
2488
2489 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
2492 and focus commands.
2493
2494 2015-07-06 Joel Brobecker <brobecker@adacore.com>
2495
2496 * NEWS: Create a new section for the next release branch.
2497 Rename the section of the current branch, now that it has
2498 been cut.
2499
2500 2015-07-06 Joel Brobecker <brobecker@adacore.com>
2501
2502 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
2503 * version.in: Bump version to 7.10.50.DATE-cvs.
2504
2505 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
2506
2507 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
2508 breakpoints in a special way.
2509 (remove_breakpoint): Likewise.
2510 (mark_breakpoints_out): Likewise.
2511
2512 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * doc/gdb.texinfo (TUI): Add comma after @xref.
2515
2516 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
2519 instead of casting the structure type.
2520
2521 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
2522
2523 * valops.c (search_struct_field): Remove OFFSET parameter.
2524 (value_cast_structs): Adjust calls to search_struct_field.
2525 (value_struct_elt): Same.
2526 (find_overload_match): Same.
2527
2528 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
2529
2530 * value.c (value_fetch_lazy): Update comment, change return
2531 value to void.
2532 * value.h (value_fetch_lazy): Change return value to void.
2533
2534 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
2537 (tui_win_name): Make parameter and result const.
2538 * tui/tui-data.h (tui_win_name): Make parameter and result const.
2539
2540 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
2541
2542 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
2543 use printf_unfiltered.
2544 (set_mpx_cmd): Add missing trailing space to command string
2545 literal.
2546 (_initialize_i386_tdep): Give the "mpx" prefix command its
2547 correct name.
2548
2549 2015-07-02 Kevin Buettner <kevinb@redhat.com>
2550
2551 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
2552 (enum rx_frame_type): New.
2553 (struct rx_prologue): Add new field `frame_type'.
2554 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
2555 parameter in the prologue struct. Add code for recording
2556 locations of PC and PSW for fast interrupt and exception frames.
2557 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
2558 (rx_analyze_frame_prologue): Add `frame_type' parameter.
2559 (rx_frame_type): New function.
2560 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
2561 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
2562 `this_cache'.
2563 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
2564 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
2565 RX_FRAME_TYPE_FAST_INTERRUPT.
2566 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
2567 (rx_frame_sniffer, rx_exception_sniffer): New functions.
2568 (rx_frame_unwind): Use rx_frame_sniffer instead of
2569 default_frame_sniffer.
2570 (rx_frame_unwind): New unwinder.
2571 (rx_gdbarch_init): Register new unwinder.
2572
2573 2015-07-02 Kevin Buettner <kevinb@redhat.com>
2574
2575 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
2576 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
2577 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
2578 and RX_FPSW_REGNUM.
2579 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
2580
2581 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 Fix GCC false warning.
2584 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
2585
2586 2015-07-02 Yao Qi <yao.qi@linaro.org>
2587
2588 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
2589 typo in the debugging message.
2590
2591 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
2592
2593 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
2594 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
2595 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
2596 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
2597 (btrace_maint_clear): New.
2598 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
2599 (pt_print_packet, btrace_maint_decode_pt)
2600 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
2601 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
2602 (maint_btrace_packet_history_cmd)
2603 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2604 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
2605 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
2606 (maint_info_btrace_cmd, _initialize_btrace): New.
2607 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
2608 (btrace_maint_packet_history, btrace_maint_info): New.
2609 (btrace_thread_info) <maint>: New.
2610 * NEWS: Announce it.
2611
2612 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
2613
2614 * btrace.c (btrace_fetch): Append the new trace data.
2615 (btrace_clear): Clear the stored trace data.
2616 * btrace.h (btrace_thread_info) <data>: New.
2617 * common/btrace-common.h (btrace_data_clear)
2618 (btrace_data_append): New.
2619 * common/btrace-common.c (btrace_data_clear)
2620 (btrace_data_append): New.
2621
2622 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
2623
2624 * nat/linux-btrace.c (linux_enable_bts): Check for
2625 PERF_ATTR_SIZE_VER5.
2626 Check for data_offset and data_size fields. Use them.
2627
2628 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
2629
2630 * NEWS: Announce new commands "record btrace pt" and "record pt".
2631 Announce new options "set|show record btrace pt buffer-size".
2632 * btrace.c: Include "rsp-low.h".
2633 Include "inttypes.h".
2634 (btrace_add_pc): Add forward declaration.
2635 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
2636 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
2637 (btrace_compute_ftrace_pt): New.
2638 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
2639 (check_xml_btrace_version): Update version check.
2640 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
2641 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
2642 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
2643 (btrace_pt_children): New.
2644 (btrace_children): Add support for "pt".
2645 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
2646 (btrace_conf_children): Add support for "pt".
2647 * btrace.h: Include "intel-pt.h".
2648 (btrace_pt_error): New.
2649 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
2650 (btrace_data_empty): Support BTRACE_FORMAT_PT.
2651 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
2652 (struct btrace_config_pt): New.
2653 (struct btrace_config)<pt>: New.
2654 (struct btrace_data_pt_config, struct btrace_data_pt): New.
2655 (struct btrace_data)<pt>: New.
2656 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
2657 (pt): New.
2658 * features/btrace.dtd (btrace)<pt>: New.
2659 (pt, pt-config, cpu): New.
2660 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
2661 (perf_event_pt_event_type, kernel_supports_pt)
2662 (linux_supports_pt): New.
2663 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
2664 (linux_enable_bts): Free tinfo on error.
2665 (linux_enable_pt): New.
2666 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
2667 (linux_disable_pt): New.
2668 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
2669 (linux_fill_btrace_pt_config, linux_read_pt): New.
2670 (linux_read_btrace): Support BTRACE_FORMAT_PT.
2671 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
2672 (struct btrace_target_info)<pt>: New.
2673 * record-btrace.c (set_record_btrace_pt_cmdlist)
2674 (show_record_btrace_pt_cmdlist): New.
2675 (record_btrace_print_pt_conf): New.
2676 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
2677 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
2678 (cmd_record_btrace_pt_start): New.
2679 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
2680 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
2681 (_initialize_record_btrace): Add new commands.
2682 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
2683 (remote_protocol_features): Add "Qbtrace:pt".
2684 Add "Qbtrace-conf:pt:size".
2685 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
2686 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
2687 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
2688 (_initialize_remote): Add new commands.
2689
2690 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
2691
2692 * configure.ac: check for libipt
2693 * configure: Regenerate.
2694 * config.in: Regenerate.
2695 * Makefile.in (LIBIPT): New.
2696 (CLIBS): Add $LIBIPT.
2697 * NEWS: document new configure options
2698
2699 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2700
2701 * compile/compile-object-load.c (compile_object_load): Replace debug
2702 message "lookup undefined ELF symbol" by 3 more specific messages.
2703
2704 2015-07-01 Kevin Buettner <kevinb@redhat.com>
2705
2706 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
2707 (rl78_register_type): Add case for RL78_PSW_REGNUM.
2708 (rl78_gdbarch_init): Initialize rl78_psw_type.
2709
2710 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
2711
2712 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
2713 Update commentary. Always refresh the registers when frame
2714 information has changed.
2715 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
2716 Change return type to int. Return 1 if frame information has
2717 changed, 0 otherwise.
2718 (tui_before_prompt): Update commentary.
2719 * tui/tui-stack.h (tui_show_frame_info): Change return type to
2720 int.
2721
2722 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
2723
2724 PR tui/13378
2725 * frame.c (select_frame): Remove reference to
2726 deprecated_selected_frame_level_changed_hook.
2727 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
2728 declaration.
2729 * stack.c (deprecated_selected_frame_level_changed_hook):
2730 Likewise.
2731 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
2732 Rename to ...
2733 (tui_refresh_frame_and_register_information): ... this. Bail
2734 out if there is no stack. Don't update register information
2735 unless registers_too_p is true.
2736 (tui_print_frame_info_listing_hook): Rename to ...
2737 (tui_dummy_print_frame_info_listing_hook): ... this.
2738 (tui_before_prompt): New function.
2739 (tui_normal_stop): New function.
2740 (tui_before_prompt_observer): New observer.
2741 (tui_normal_stop_observer): New observer.
2742 (tui_install_hooks): Set
2743 deprecated_print_frame_info_listing_hook to
2744 tui_dummy_print_frame_info_listing_hook. Register
2745 tui_before_prompt_observer to call tui_before_prompt and
2746 tui_normal_stop_observer to call tui_normal_stop. Remove
2747 reference to deprecated_selected_frame_level_changed_hook.
2748 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
2749 and tui_normal_stop_observer. Remove reference to
2750 deprecated_selected_frame_level_changed_hook.
2751
2752 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
2753
2754 PR tui/13378
2755 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
2756 return an int instead of void. Return whether the locator
2757 window has changed.
2758 (tui_show_frame_info): If the locator info has not changed, then
2759 bail out early to avoid refreshing the windows.
2760
2761 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
2762
2763 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
2764 LOCATOR_WIN to tui_alloc_content.
2765
2766 2015-06-30 Yao Qi <yao.qi@linaro.org>
2767
2768 PR tdep/18605
2769 * arm-tdep.c (arm_get_next_pc_raw): Break for media
2770 instructions.
2771
2772 2015-06-29 Kevin Buettner <kevinb@redhat.com>
2773
2774 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
2775 (rx_dwarf_reg_to_regnum): New function.
2776 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
2777 unwinding.
2778
2779 2015-06-29 Pedro Alves <palves@redhat.com>
2780
2781 PR threads/18127
2782 * infcall.c (run_inferior_call): On infcall success, if the thread
2783 was marked stopped before, reset it back to stopped.
2784 * infrun.c (resume): Don't suppress the set_running calls when
2785 doing an infcall.
2786 (normal_stop): Only discard the finish_thread_state cleanup if the
2787 infcall succeeded.
2788
2789 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
2790
2791 * MAINTAINERS (Write After Approval): Update my email address.
2792
2793 2015-06-26 Keith Seitz <keiths@redhat.com>
2794 Doug Evans <dje@google.com>
2795
2796 PR 16253
2797 * block.c (block_lookup_symbol): For non-function blocks,
2798 continue to search for a symbol with an exact domain match
2799 Otherwise, return any previously found "best domain" symbol.
2800 (block_lookup_symbol_primary): Likewise.
2801
2802 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
2803
2804 * NEWS: Mention the new option "history remove-duplicates".
2805 * top.c (history_remove_duplicates): New static variable.
2806 (show_history_remove_duplicates): New static function.
2807 (gdb_add_history): Conditionally remove duplicate history
2808 entries.
2809 (init_main): Add "history remove-duplicates" option.
2810
2811 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
2812
2813 * tui/tui-win.c (focus_completer): New static function.
2814 (_initialize_tui_win): Set the completion function of the
2815 "focus" command to focus_completer.
2816
2817 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2818
2819 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
2820 and language_asm..
2821 * symtab.c (find_function_start_sal): Likewise.
2822
2823 2015-06-25 Gary Benson <gbenson@redhat.com>
2824
2825 * solib.c (solib_find_1): Set local variable sysroot to NULL if
2826 it is the empty string after trailing slashes have been stripped.
2827
2828 2015-06-25 Gary Benson <gbenson@redhat.com>
2829
2830 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
2831 * infrun.c (follow_exec): Likewise.
2832 * remote.c (remote_filesystem_is_local): Likewise.
2833 * solib.c (solib_find_1): Likewise.
2834
2835 2015-06-24 Keith Seitz <keiths@redhat.com>
2836
2837 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
2838 return value from lrealpath.
2839
2840 2015-06-24 Mike Frysinger <vapier@gentoo.org>
2841
2842 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
2843
2844 2015-06-24 Mike Frysinger <vapier@gentoo.org>
2845
2846 * remote-sim.c: Include gdb_bfd.h.
2847 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
2848 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
2849
2850 2015-06-24 Yao Qi <yao.qi@linaro.org>
2851
2852 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
2853 set_gdbarch_get_siginfo_type.
2854 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
2855 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
2856 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2857 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
2858 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
2859 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2860 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
2861 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
2862 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
2863 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
2864
2865 2015-06-24 Gary Benson <gbenson@redhat.com>
2866
2867 * common/buffer.c (stdint.h): Do not include.
2868 * common/print-utils.c (stdint.h): Likewise.
2869 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
2870 * compile/compile-c-types.c (gdb_assert.h): Likewise.
2871 * ft32-tdep.c (gdb_assert.h): Likewise.
2872 * guile/scm-utils.c (stdint.h): Likewise.
2873 * i386-linux-tdep.c (stdint.h): Likewise.
2874 * i386-tdep.c (stdint.h): Likewise.
2875 * nat/linux-btrace.c (stdint.h): Likewise.
2876 * nat/linux-btrace.h (stdint.h): Likewise.
2877 * nat/linux-ptrace.c (stdint.h): Likewise.
2878 * nat/mips-linux-watch.h (stdint.h): Likewise.
2879 * ppc-linux-nat.c (stdint.h): Likewise.
2880 * python/python-internal.h (stdint.h): Likewise.
2881 * stub-termcap.c (stdlib.h): Likewise.
2882 * target/target.h (stdint.h): Likewise.
2883 * xtensa-linux-nat.c (stdint.h): Likewise.
2884
2885 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
2886
2887 * top.c (init_history): Look at errno after calling strtol to
2888 properly map large GDBHISTSIZE values to infinity.
2889
2890 2015-06-23 Doug Evans <dje@google.com>
2891
2892 * inferior.h (struct inferior_suspend_state): Delete, unused.
2893 All references deleted.
2894
2895 2015-06-23 Mike Frysinger <vapier@gentoo.org>
2896
2897 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
2898 (microblaze_push_dummy_call): Likewise.
2899 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
2900 and set_gdbarch_push_dummy_call.
2901
2902 2015-06-23 Yao Qi <yao.qi@linaro.org>
2903
2904 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2905 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
2906 (amd64_linux_store_inferior_registers): Likewise.
2907 * arm-linux-nat.c (fetch_fpregister): Likewise.
2908 (fetch_fpregs, store_fpregister): Likewise.
2909 (store_fpregister, store_fpregs): Likewise.
2910 (fetch_register, fetch_regs): Likewise.
2911 (store_register, store_regs): Likewise.
2912 (fetch_vfp_regs, store_vfp_regs): Likewise.
2913 (arm_linux_read_description): Check have_ptrace_getregset is
2914 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
2915 or TRIBOOL_FALSE.
2916 * i386-linux-nat.c (fetch_xstateregs): Check
2917 have_ptrace_getregset is not TRIBOOL_TRUE.
2918 (store_xstateregs): Likewise.
2919 * linux-nat.c (have_ptrace_getregset): Change its type to
2920 enum tribool.
2921 * linux-nat.h (tribool): New enum.
2922 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
2923 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
2924
2925 2015-06-19 Doug Evans <dje@google.com>
2926
2927 * NEWS: Mention Sun's version of stabs is no longer supported.
2928 * elfread.c (free_elfinfo): Delete. All uses updated.
2929 (elfstab_offset_sections): Delete. All uses updated.
2930 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
2931 * psympriv.h (partial_symtab) <section_offsets>: Delete.
2932 All uses updated.
2933 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
2934 All callers updated.
2935
2936 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
2937
2938 * common/rsp-low.c (needs_escaping): New.
2939 (remote_escape_output): Add unit_size parameter. Refactor to
2940 support multi-byte addressable units. Rename parameters.
2941 * common/rsp-low.h (remote_escape_output): Add unit_size
2942 parameter and rename others. Update doc.
2943 * remote.c (align_for_efficient_write): New.
2944 (remote_write_bytes_aux): Add unit_size parameter and use it.
2945 Rename some variables. Update doc.
2946 (remote_xfer_partial): Get unit size and use it.
2947 (remote_read_bytes_1): Add unit_size parameter and use it.
2948 Rename some variables. Update doc.
2949 (remote_write_bytes): Same.
2950 (remote_xfer_live_readonly_partial): Same.
2951 (remote_read_bytes): Same.
2952 (remote_flash_write): Update call to remote_write_bytes_aux.
2953 (remote_write_qxfer): Update call to remote_escape_output.
2954 (remote_search_memory): Same.
2955 (remote_hostio_pwrite): Same.
2956
2957 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
2958
2959 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
2960 locations as inserted.
2961 Update and expand comment about permanent locations.
2962 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
2963 Move comment to add_location_to_breakpoint.
2964 (update_global_location_list): Don't error out if a permanent
2965 breakpoint is not marked inserted.
2966 Don't error out if a non-permanent breakpoint location is inserted on
2967 top of a permanent breakpoint.
2968
2969 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
2970
2971 * breakpoint.c (make_breakpoint_permanent): Remove unused
2972 function.
2973 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
2974
2975 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2976
2977 PR gdb/16999
2978 * NEWS: Mention new GDBHISTSIZE behavior.
2979 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
2980 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
2981
2982 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2983
2984 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
2985 * top.c (init_history): Read from GDBHISTSIZE instead of
2986 HISTSIZE.
2987 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
2988
2989 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2990
2991 * top.c (gdb_safe_append_history): Do not call
2992 history_truncate_file if the history is not stifled.
2993
2994 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2995
2996 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
2997 * syscalls/s390x-linux.xml: Likewise.
2998
2999 2015-06-16 Michael Eager <eager@eagercon.com>
3000
3001 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
3002
3003 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
3004
3005 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
3006 target_terminal_ours_for_output() before calling
3007 tui_show_frame_info(), and restore the original terminal
3008 settings afterwards.
3009
3010 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
3011
3012 * arm-linux-nat.c: Include nat/linux-ptrace.h.
3013
3014 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
3015
3016 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
3017 memory unit size.
3018 (mi_cmd_data_write_memory_bytes): Same.
3019
3020 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
3021
3022 * corefile.c (write_memory): Update doc.
3023 * gdbcore.h (write_memory): Same.
3024
3025 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3026
3027 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
3028 (dump_mapping_p): Use it for parameter filterflags.
3029 (linux_find_memory_regions_full): Use it for variable filterflags.
3030
3031 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
3032 Jan Kratochvil <jan.kratochvil@redhat.com>
3033
3034 Merge multiple hex conversions.
3035 * monitor.c: Include rsp-low.h.
3036 (fromhex): Remove definition.
3037
3038 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
3039 Jan Kratochvil <jan.kratochvil@redhat.com>
3040
3041 Move utility functions to common/.
3042 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
3043 Move defs to common/common-utils.c.
3044 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
3045 (skip_to_space_const): Move decls to common/common-utils.h.
3046 * common/common-defs.h: Move include of common-types.h before
3047 common-utils.h.
3048 * common/common-utils.c: Include host-defs.h and ctype.h.
3049 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
3050 from utils.c.
3051 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
3052 cli/cli-utils.c.
3053 * common/common-utils.h (strtoulst): Move decl from utils.h.
3054 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
3055 Move from cli/cli-utils.h.
3056 * common/host-defs.h: Include limits.h.
3057 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
3058 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
3059 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
3060 common/common-utils.h.
3061 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
3062 (strtoulst): Move to common/common-utils.c.
3063 * utils.h (strtoulst): Moved decl to common/common-utils.h.
3064
3065 2015-06-15 Yao Qi <yao.qi@linaro.org>
3066
3067 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
3068
3069 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
3070
3071 * build-id.c: Don't include elf-bfd.h.
3072 (build_id_bfd_get): Use bfd_build_id.
3073 (build_id_verify): Ditto.
3074 * build-id.h: Ditto.
3075 (find_separate_debug_file_by_buildid): Ditto.
3076 * python/py-objfile.c: Don't include elf-bfd.h.
3077 (objfpy_get_build_id) Use bfd_build_id.
3078 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
3079 * coffread.c: Include build-id.h.
3080 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
3081
3082 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
3083
3084 * windows-nat.c (do_windows_fetch_inferior_registers)
3085 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
3086 conditional with __CYGWIN__.
3087
3088 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
3089
3090 * completer.c: Add arch-utils.h include.
3091 (enum reg_completer_targets): New enum.
3092 (reg_or_group_completer_1): New function containing old
3093 reg_or_group_completer, add and use new parameter to control what
3094 is completed on. Use get_current_arch rather than architecture of
3095 currently selected frame.
3096 (reg_or_group_completer): Call new reg_or_group_completer_1.
3097 (reggroup_completer): Call new reg_or_group_completer_1.
3098 * completer.h (reggroup_completer): Add declaration.
3099 * tui/tui-regs.c: Add 'completer.h' include.
3100 (tui_reg_next_command): Renamed to...
3101 (tui_reg_next): ...this. Adjust parameters and return rather than
3102 display new group.
3103 (tui_reg_prev_command): Renamed to...
3104 (tui_reg_prev): ...this. Adjust parameters and return rather than
3105 display new group.
3106 (tui_reg_float_command): Delete.
3107 (tui_reg_general_command): Delete.
3108 (tui_reg_system_command): Delete.
3109 (tui_reg_command): Rewrite to perform switching of register group.
3110 Add header comment.
3111 (tuireglist): Remove.
3112 (tui_reggroup_completer): New function.
3113 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
3114 creation of 'tui reg' command.
3115 * NEWS: Add comment about 'tui reg' changes.
3116
3117 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
3118
3119 * target.c (target_read): Consider addressable unit size when
3120 reading from a memory object.
3121 (read_memory_robust): Same.
3122 (read_whatever_is_readable): Same.
3123 (target_write_with_progress): Consider addressable unit size
3124 when writing to a memory object.
3125 * target.h (target_read): Update documentation.
3126 (target_write): Add documentation.
3127
3128 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
3129
3130 * arch-utils.h (default_addressable_memory_unit_size): New.
3131 * arch-utils.c (default_addressable_memory_unit_size): New.
3132 * gdbarch.sh (addressable_memory_unit_size): New.
3133 * gdbarch.h: Re-generate.
3134 * gdbarch.c: Re-generate.
3135
3136 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
3137
3138 * target.c (target_read): Rename variables and use
3139 TARGET_XFER_E_IO.
3140 (target_read_with_progress): Same.
3141 (read_memory_robust): Constify parameters and rename
3142 variables.
3143 (read_whatever_is_readable): Constify parameters,
3144 rename variables, adjust formatting.
3145 * target.h (read_memory_robust): Constify parameters.
3146
3147 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3148
3149 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
3150 synthetic (non-AltiVec) vector types.
3151 (ppc64_sysv_abi_return_value): Likewise.
3152
3153 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
3154
3155 PR breakpoints/16465
3156 * breakpoint.c (create_breakpoint): Save extra_string for
3157 pending breakpoints.
3158
3159 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
3160
3161 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
3162 and bt_mask to CORE_ADDR.
3163
3164 2015-06-11 Gary Benson <gbenson@redhat.com>
3165
3166 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
3167 (mnsh_recv_message): Likewise.
3168
3169 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
3170
3171 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
3172 long long int and plongest instead of %ll.
3173
3174 2015-06-11 Gary Benson <gbenson@redhat.com>
3175
3176 * nat/linux-namespaces.c (gdb_wait.h): New include.
3177 (sys/wait.h): Do not include.
3178
3179 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
3180
3181 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
3182 end_sequence is true.
3183
3184 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 Code cleanup.
3187 * solib-target.c (library_list_start_list): Use explicit NULL
3188 comparison.
3189
3190 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3191
3192 * solib-target.c (library_list_start_list): Do not dereference
3193 variable version in its initialization. Make the VERSION check handle
3194 NULL.
3195 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
3196
3197 2015-06-10 Gary Benson <gbenson@redhat.com>
3198
3199 * NEWS: Announce support for direct access of executable and
3200 shared library files when attaching to inferiors in containers
3201 on GNU/Linux systems.
3202
3203 2015-06-10 Gary Benson <gbenson@redhat.com>
3204
3205 * remote.c (struct remote_state) <fs_pid>: New field.
3206 (new_remote_state): Initialize the above.
3207 (PACKET_vFile_setfs): New enum value.
3208 (remote_hostio_set_filesystem): New function.
3209 (remote_hostio_open): Call the above.
3210 (remote_hostio_unlink): Likewise.
3211 (remote_hostio_readlink): Likewise.
3212 (_initialize_remote): Register new "set/show remote
3213 hostio-setfs-packet" command.
3214 * NEWS: Announce new vFile:setfs packet.
3215
3216 2015-06-10 Gary Benson <gbenson@redhat.com>
3217
3218 * linux-nat.c (nat/linux-namespaces.h): New include.
3219 (fileio.h): Likewise.
3220 (linux_nat_filesystem_is_local): New function.
3221 (linux_nat_fileio_pid_of): Likewise.
3222 (linux_nat_fileio_open): Likewise.
3223 (linux_nat_fileio_readlink): Likewise.
3224 (linux_nat_fileio_unlink): Likewise.
3225 (linux_nat_add_target): Initialize to_filesystem_is_local,
3226 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
3227 (_initialize_linux_nat): New "set/show debug linux-namespaces"
3228 commands.
3229 * NEWS: Mention new "set/show debug linux-namespaces" commands.
3230
3231 2015-06-10 Gary Benson <gbenson@redhat.com>
3232
3233 * target.h (struct inferior): New forward declaration.
3234 (struct target_ops) <to_filesystem_is_local>: Update comment.
3235 (struct target_ops) <to_fileio_open>: New argument inf.
3236 Update comment. All implementations updated.
3237 (struct target_ops) <to_fileio_unlink>: Likewise.
3238 (struct target_ops) <to_fileio_readlink>: Likewise.
3239 (target_filesystem_is_local): Update comment.
3240 (target_fileio_open): New argument inf. Update comment.
3241 (target_fileio_unlink): Likewise.
3242 (target_fileio_readlink): Likewise.
3243 (target_fileio_read_alloc): Likewise.
3244 (target_fileio_read_stralloc): Likewise.
3245 * target.c (target_fileio_open): New argument inf.
3246 Pass inf to implementation. Update debug printing.
3247 (target_fileio_unlink): Likewise.
3248 (target_fileio_readlink): Likewise.
3249 (target_fileio_read_alloc_1): New argument inf. Pass inf
3250 to target_fileio_open.
3251 (target_fileio_read_alloc): New argument inf. Pass inf to
3252 target_fileio_read_alloc_1.
3253 (target_fileio_read_stralloc): Likewise.
3254 * gdb_bfd.c (inferior.h): New include.
3255 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
3256 argument with new argument "inferior". Pass inferior to
3257 target_fileio_open.
3258 (gdb_bfd_open): Supply inferior argument to
3259 gdb_bfd_iovec_fileio_open.
3260 * linux-tdep.c (linux_info_proc): Supply inf argument to
3261 relevant target_fileio calls.
3262 (linux_find_memory_regions_full): Likewise.
3263 (linux_fill_prpsinfo): Likewise.
3264 * remote.c (remote_filesystem_is_local): Supply inf
3265 argument to remote_hostio_open.
3266 (remote_file_put): Likewise.
3267 (remote_file_get): Likewise.
3268 (remote_file_delete): Supply inf argument to
3269 remote_hostio_unlink.
3270
3271 2015-06-10 Gary Benson <gbenson@redhat.com>
3272
3273 * inf-child.c (inf_child_fileio_open): Replace comment.
3274 (inf_child_fileio_pwrite): Likewise.
3275 (inf_child_fileio_pread): Likewise.
3276 (inf_child_fileio_fstat): Insert blank line before comment.
3277 (inf_child_fileio_close): Replace comment.
3278 (inf_child_fileio_unlink): Likewise.
3279 (inf_child_fileio_readlink): Likewise.
3280 * remote.c (remote_hostio_open): Likewise.
3281 (remote_hostio_pread): Likewise.
3282 (remote_hostio_pwrite): Likewise.
3283 (remote_hostio_close): Likewise.
3284 (remote_hostio_unlink): Likewise.
3285 (remote_hostio_readlink): Likewise.
3286 (remote_hostio_fstat): Likewise.
3287 (remote_filesystem_is_local): Likewise.
3288 * target.c (target_fileio_open): Likewise.
3289 (target_fileio_pwrite): Likewise.
3290 (target_fileio_pread): Likewise.
3291 (target_fileio_fstat): Insert blank line before comment.
3292 (target_fileio_close): Replace comment.
3293 (target_fileio_unlink): Likewise.
3294 (target_fileio_readlink): Likewise.
3295 (target_fileio_read_alloc): Likewise.
3296 (target_fileio_read_stralloc): Likewise.
3297
3298 2015-06-10 Gary Benson <gbenson@redhat.com>
3299
3300 * linux-thread-db.c (nat/linux-namespaces.h): New include.
3301 (check_pid_namespace_match): Use linux_ns_same rather than
3302 linux_proc_pid_get_ns to spot PID namespace mismatches.
3303 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
3304 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
3305
3306 2015-06-10 Gary Benson <gbenson@redhat.com>
3307
3308 * configure.ac (AC_CHECK_FUNCS): Add setns.
3309 * config.in: Regenerate.
3310 * configure: Likewise.
3311 * nat/linux-namespaces.h: New file.
3312 * nat/linux-namespaces.c: Likewise.
3313 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
3314 (linux-namespaces.o): New rule.
3315 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
3316 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3317 * config/arm/linux.mh (NATDEPFILES): Likewise.
3318 * config/i386/linux.mh (NATDEPFILES): Likewise.
3319 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3320 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3321 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3322 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3323 * config/mips/linux.mh (NATDEPFILES): Likewise.
3324 * config/pa/linux.mh (NATDEPFILES): Likewise.
3325 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3326 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3327 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3328 * config/s390/linux.mh (NATDEPFILES): Likewise.
3329 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3330 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3331 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3332 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3333
3334 2015-06-10 Gary Benson <gbenson@redhat.com>
3335
3336 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
3337 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
3338 (make_cleanup_close): Likewise.
3339 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
3340 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
3341 (make_cleanup_close): Likewise.
3342
3343 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
3344
3345 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
3346 from SuspendThread().
3347
3348 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
3349
3350 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
3351 from OutputDebugString.
3352
3353 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
3354 Mircea Gherzan <mircea.gherzan@intel.com>
3355
3356 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
3357 MPX_BT_MASK_32): New macros.
3358 (i386_mpx_set_bounds): New function that implements
3359 the command "set-mpx-bound".
3360 (i386_mpx_enabled): Helper function to test MPX availability.
3361 (i386_mpx_bd_base): Helper function to calculate the base directory
3362 address.
3363 (i386_mpx_get_bt_entry): Helper function to access a bound
3364 table entry.
3365 (i386_mpx_print_bounds): Effectively display bound information.
3366 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
3367 "show mpx".
3368 (_initialize_i386_tdep):
3369 Add "bound" to the commands "show mpx" and "set mpx" commands.
3370 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
3371 and "show mpx" commands.
3372 * NEWS: List new commands for MPX support.
3373
3374 2015-06-09 Gary Benson <gbenson@redhat.com>
3375
3376 * common/fileio.h (fileio_to_host_mode): New declaration.
3377 * common/fileio.c (fileio_to_host_mode): New Function.
3378 * inf-child.c (inf_child_fileio_open): Process mode argument
3379 with fileio_to_host_mode.
3380
3381 2015-06-09 Gary Benson <gbenson@redhat.com>
3382
3383 * common/fileio.c (fileio_mode_pack): Fix preprocessor
3384 conditional.
3385
3386 2015-06-05 Gary Benson <gbenson@redhat.com>
3387
3388 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
3389 * remote.c (remote_filesystem_is_local): ...here.
3390
3391 2015-06-04 Yao Qi <yao.qi@linaro.org>
3392
3393 * gdbarch.c: Regenerate it.
3394
3395 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3396
3397 * arch-utils.c (default_infcall_munmap): New.
3398 * arch-utils.h (default_infcall_munmap): New declaration.
3399 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
3400 (munmap_list_free, munmap_listp_free_cleanup): New.
3401 (struct setup_sections_data): Add field munmap_list_headp.
3402 (setup_sections): Call munmap_list_add.
3403 (compile_object_load): New variable munmap_list_head, initialize
3404 setup_sections_data.munmap_list_headp, return munmap_list_head.
3405 * compile/compile-object-load.h (struct munmap_list): New declaration.
3406 (struct compile_module): Add field munmap_list_head.
3407 (munmap_list_free): New declaration.
3408 * compile/compile-object-run.c (struct do_module_cleanup): Add field
3409 munmap_list_head.
3410 (do_module_cleanup): Call munmap_list_free.
3411 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
3412 * gdbarch.c: Regenerate.
3413 * gdbarch.h: Regenerate.
3414 * gdbarch.sh (infcall_munmap): New.
3415 * linux-tdep.c (linux_infcall_munmap): New.
3416 (linux_init_abi): Install it.
3417
3418 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
3419
3420 PR gdb/15564
3421 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
3422
3423 2015-06-02 Yao Qi <yao.qi@linaro.org>
3424
3425 * i386-linux-nat.c: Include linux-nat.h.
3426
3427 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
3428 Jan Kratochvil <jan.kratochvil@redhat.com>
3429
3430 PR symtab/18392
3431 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
3432 assertion.
3433 * dwarf2loc.c (chain_candidate): Likewise.
3434
3435 2015-06-01 Yao Qi <yao.qi@linaro.org>
3436
3437 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
3438 (store_vfp_regs): Use PTRACE_SETREGSET.
3439
3440 2015-06-01 Yao Qi <yao.qi@linaro.org>
3441
3442 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
3443 (fetch_fpregs): Likewise.
3444 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
3445 (store_fpregs): Likewise.
3446
3447 2015-06-01 Yao Qi <yao.qi@linaro.org>
3448
3449 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
3450 (fetch_regs): Likewise.
3451 (store_regs): Use PTRACE_SETREGSET.
3452 (store_register): Likewise.
3453
3454 2015-06-01 Yao Qi <yao.qi@linaro.org>
3455
3456 * arm-linux-nat.c (arm_linux_read_description): Check whether
3457 kernel supports PTRACE_GETREGSET.
3458
3459 2015-06-01 Yao Qi <yao.qi@linaro.org>
3460
3461 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
3462 * linux-nat.c: ... here.
3463 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
3464 to ...
3465 * linux-nat.h: ... here.
3466
3467 2015-06-01 Yao Qi <yao.qi@linaro.org>
3468
3469 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
3470 * i386-linux-nat.c: Likewise.
3471 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
3472 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
3473 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
3474 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
3475 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
3476
3477 2015-05-30 Eli Zaretskii <eliz@gnu.org>
3478
3479 * go32-nat.c (go32_xfer_memory): Fix the return value to be
3480 compatible to what read_child and write_child return. This
3481 unbreaks that DJGPP build of GDB which was broken since v7.7.
3482
3483 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
3484
3485 * MAINTAINERS (Write After Approval): Add Martin Galvan.
3486
3487 2015-05-29 Roland McGrath <mcgrathr@google.com>
3488
3489 PR gdb/18464
3490 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
3491 rather than internal_error for an unrecognized value.
3492
3493 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
3494
3495 * xtensa-tdep.c (xtensa_pseudo_register_read)
3496 (xtensa_pseudo_register_write): Don't alias last pseudo register
3497 to a1.
3498
3499 2015-05-28 Don Breazeal <donb@codesourcery.com>
3500
3501 * infrun.c (follow_fork_inferior): Ensure the use of
3502 process-style ptids (pid,0,0) in verbose/debug "Detaching"
3503 messages.
3504
3505 2015-05-28 Doug Evans <dje@google.com>
3506
3507 * dwarf2read.c (record_line_ftype): Remove, duplicate.
3508
3509 2015-05-28 Yao Qi <yao.qi@linaro.org>
3510
3511 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
3512 (arm_linux_fetch_inferior_registers): Use
3513 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
3514 (arm_linux_store_inferior_registers): Likewise.
3515 (arm_linux_read_description): Don't set
3516 arm_linux_has_wmmx_registers.
3517 * arm-tdep.c (arm_gdbarch_init): Set
3518 tdep->have_wmmx_registers according target descriptions.
3519 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
3520 field.
3521
3522 2015-05-28 Yao Qi <yao.qi@linaro.org>
3523
3524 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
3525 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
3526 instead of arm_linux_vfp_register_count.
3527 (store_vfp_regs): Likewise.
3528 (arm_linux_fetch_inferior_registers): Likewise.
3529 (arm_linux_store_inferior_registers): Likewise.
3530 (arm_linux_read_description): Don't set
3531 arm_linux_vfp_register_count.
3532 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
3533 Adjust.
3534 * arm-tdep.c (arm_gdbarch_init): Add assert on
3535 vfp_register_count.
3536 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
3537 field to vfp_register_count. All users updated.
3538
3539 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
3540
3541 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
3542 ELFOSABI_GNU binaries.
3543
3544 2015-05-27 Doug Evans <dje@google.com>
3545
3546 * dwarf2read.c (lnp_state_machine): New typedef.
3547 (lnp_reader_state): New typedef.
3548 (dwarf_record_line_1): Renamed from dwarf_record_line.
3549 All callers updated.
3550 (dwarf_record_line): New function.
3551 (init_lnp_state_machine): New function.
3552 (check_line_address): Replace p_record_line parameter with state.
3553 All callers updated.
3554 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
3555 Update to record state in lnp_state_machine.
3556
3557 2015-05-27 Doug Evans <dje@google.com>
3558
3559 * dwarf2read.c (record_line_ftype): New typedef.
3560 (check_line_address): New function.
3561 (dwarf_decode_lines_1): Call it.
3562
3563 2015-05-27 Doug Evans <dje@google.com>
3564
3565 * NEWS: Mention "set debug dwarf-line".
3566 * dwarf2read.c (dwarf_line_debug): New static global.
3567 (add_include_dir): Add debug dwarf-line support.
3568 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
3569 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
3570
3571 2015-05-27 Doug Evans <dje@google.com>
3572
3573 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
3574 All callers updated.
3575 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
3576 * cp-support.h (cp_lookup_nested_symbol): Update.
3577
3578 2015-05-27 Doug Evans <dje@google.com>
3579
3580 PR symtab/18258
3581 * block.c (block_find_symbol): New function.
3582 (block_find_non_opaque_type): Ditto.
3583 (block_find_non_opaque_type_preferred): Ditto.
3584 * block.h (block_symbol_matcher_ftype): New typedef.
3585 (block_find_symbol): Declare.
3586 (block_find_non_opaque_type): Ditto.
3587 (block_find_non_opaque_type_preferred): Ditto.
3588 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
3589 * psymtab.c (psym_lookup_symbol): Ditto.
3590 * symtab.c (basic_lookup_transparent_type_1): New function.
3591 (basic_lookup_transparent_type): Call it.
3592
3593 2015-05-27 Yao Qi <yao.qi@linaro.org>
3594
3595 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
3596 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
3597
3598 2015-05-27 Yao Qi <yao.qi@linaro.org>
3599
3600 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
3601 before operator &&.
3602 (aarch64_record_load_store): Likewise.
3603
3604 2015-05-26 Doug Evans <dje@google.com>
3605
3606 PR c++/18141, c++/18417.
3607 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
3608 a typedef.
3609
3610 2015-05-26 Doug Evans <dje@google.com>
3611
3612 * NEWS: Add entries for command renamings.
3613 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
3614 All uses updated.
3615 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
3616 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
3617 All uses updated.
3618 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
3619 All callers updated. Fix spelling of DWARF in help text.
3620 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
3621 All uses updated.
3622 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
3623 All uses updated.
3624 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
3625 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
3626 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
3627 All uses updated.
3628 (show_dwarf_always_disassemble): Renamed from
3629 show_dwarf2_always_disassemble. All callers updated.
3630 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
3631 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
3632 "set/show dwarf max-cache-age". Rename
3633 "set/show dwarf2 always-disassemble" to
3634 "set/show dwarf always-disassemble". Rename
3635 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
3636 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
3637
3638 2015-05-26 Doug Evans <dje@google.com>
3639
3640 PR python/18438
3641 * python/py-lazy-string.c (stpy_convert_to_value): Use
3642 gdbpy_gdb_memory_error not PyExc_MemoryError.
3643 (gdbpy_create_lazy_string_object): Ditto.
3644
3645 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
3646
3647 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
3648
3649 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * tui/tui-regs.c (tui_reg_prev_command): New function.
3652 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
3653 * reggroups.c (reggroup_prev): New function.
3654 * reggroups.h (reggroup_prev): Add declaration. Update comment.
3655
3656 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
3657 Yao Qi <yao.qi@linaro.org>
3658
3659 * aarch64-linux-tdep.c: Include linux-record.h and
3660 record-full.h.
3661 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
3662 (aarch64_syscall): New enum.
3663 (aarch64_canonicalize_syscall): New function.
3664 (aarch64_all_but_pc_registers_record): New function.
3665 (aarch64_linux_syscall_record): New function.
3666 (aarch64_linux_init_abi): Install AArch64 process record
3667 handler. Update to handle syscall recording.
3668 * aarch64-tdep.c: Include record.h and record-full.h.
3669 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
3670 (struct aarch64_mem_r): Define.
3671 (aarch64_record_result): New enum.
3672 (struct insn_decode_record): Define.
3673 (insn_decode_record): New typedef.
3674 (aarch64_record_data_proc_reg): New function.
3675 (aarch64_record_data_proc_imm): New function.
3676 (aarch64_record_branch_except_sys): New function.
3677 (aarch64_record_load_store): New function.
3678 (aarch64_record_data_proc_simd_fp): New function.
3679 (aarch64_record_asimd_load_store): New function.
3680 (aarch64_record_decode_insn_handler): New function.
3681 (deallocate_reg_mem): New function.
3682 (aarch64_process_record): New function.
3683 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
3684 New field.
3685 (aarch64_process_record): New extern declaration.
3686 * configure.tgt: Add linux-record.o to gdb_target_obs.
3687 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
3688
3689 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
3690
3691 * NEWS: Add a note on process record-replay support on aarch64*-linux*
3692 targets.
3693
3694 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
3695
3696 * amd64-tdep.c: Replace in_function_epilogue_p with
3697 stack_frame_destroyed_p throughout.
3698 * arch-utils.c: Ditto.
3699 * arch-utils.h: Ditto.
3700 * arm-tdep.c: Ditto.
3701 * breakpoint.c: Ditto.
3702 * gdbarch.sh: Ditto.
3703 * hppa-tdep.c: Ditto.
3704 * i386-tdep.c: Ditto.
3705 * mips-tdep.c: Ditto.
3706 * nios2-tdep.c: Ditto.
3707 * rs6000-tdep.c: Ditto.
3708 * s390-linux-tdep.c: Ditto.
3709 * score-tdep.c: Ditto.
3710 * sh-tdep.c: Ditto.
3711 * sparc-tdep.c: Ditto.
3712 * sparc-tdep.h: Ditto.
3713 * sparc64-tdep.c: Ditto.
3714 * spu-tdep.c: Ditto.
3715 * tic6x-tdep.c: Ditto.
3716 * tilegx-tdep.c: Ditto.
3717 * xstormy16-tdep.c: Ditto.
3718 * gdbarch.c, gdbarch.h: Re-generated.
3719
3720 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3721
3722 * NEWS: Mention 'tui enable' and 'tui disable'.
3723 * tui/tui.c (tui_enable_command): New function.
3724 (tui_disable_command): New function.
3725 (_initialize_tui): New function.
3726
3727 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
3730
3731 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
3734 buf_ptr is freed.
3735
3736 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
3739 into ...
3740 (tui_set_layout_for_display_command): ...here, before calling
3741 tui_set_layout. Only set the layout if gdb has not already
3742 entered the TUI_FAILURE state.
3743
3744 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * tui/tui-layout.c (layout_completer): New function.
3747 (_initialize_tui_layout): Set completer on layout command.
3748
3749 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * tui/tui-layout.c (tui_set_layout): Remove
3752 tui_register_display_type parameter. Remove all checking of this
3753 parameter, and reindent function. Update header comment.
3754 (tui_set_layout_for_display_command): Rename to...
3755 (tui_set_layout_by_name): ...this, and don't check for different
3756 register class types, don't pass a tui_register_display_type to
3757 tui_set_layout. Update header comment.
3758 (layout_names): Remove register set specific names.
3759 * tui/tui-layout.h (tui_set_layout): Remove
3760 tui_register_display_type parameter.
3761 * tui/tui.c (tui_rl_change_windows): Don't pass a
3762 tui_register_display_type to tui_set_layout.
3763 (tui_rl_delete_other_windows): Likewise.
3764 (tui_enable): Likewise.
3765 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
3766 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
3767 (TUI_GENERAL_REGS_NAME): Remove.
3768 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
3769 (TUI_SPECIAL_REGS_NAME): Remove.
3770 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
3771 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
3772 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
3773 (enum tui_register_display_type): Remove.
3774 (struct tui_layout_def): Remove regs_display_type and
3775 float_regs_display_type fields.
3776 (struct tui_data_info): Remove regs_display_type field.
3777 (tui_layout_command): Use new name for
3778 tui_set_layout_for_display_command.
3779 * tui/tui-data.c (layout_def): Don't initialise removed fields.
3780 (tui_clear_win_detail): Don't initialise removed fields of
3781 win_info.
3782 * tui/tui-regs.c (tui_show_registers): Use new name for
3783 tui_set_layout_for_display_command.
3784 * tui/tui.h (tui_set_layout_for_display_command): Rename
3785 declaration to...
3786 (tui_set_layout_by_name): ...this.
3787 * printcmd.c (display_command): Remove tui related layout call,
3788 and reindent.
3789
3790 2015-05-20 Joel Brobecker <brobecker@adacore.com>
3791
3792 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
3793 (handle_inferior_event): New function.
3794
3795 2015-05-20 Joel Brobecker <brobecker@adacore.com>
3796
3797 * ada-lang.c (to_fixed_array_type): Rename local variable
3798 typename into type_name.
3799
3800 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3801
3802 Fix ASAN crash for gdb.compile/compile.exp.
3803 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
3804
3805 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3806
3807 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
3808 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
3809 * compile/compile-object-load.c (setup_sections, compile_object_load):
3810 Likewise.
3811 * compile/compile.c (compile_to_object): Likewise.
3812
3813 2015-05-16 Doug Evans <xdje42@gmail.com>
3814
3815 * NEWS: Mention support for unbuffered Guile memory ports.
3816 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
3817 (ioscm_lseek_address): Improve overflow calculation.
3818 (gdbscm_memory_port_fill_input): Add assert.
3819 (gdbscm_memory_port_write): Handle unbuffered ports.
3820 Handle large writes identical to Guile's fport_write.
3821 (gdbscm_memory_port_seek): Fix seeking past end check.
3822 (gdbscm_memory_port_close): Handle closing unbuffered port.
3823 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
3824 (ioscm_init_memory_port): Handle unbuffered ports.
3825 (ioscm_reinit_memory_port): Ditto.
3826 (ioscm_init_memory_port): Update size calculation.
3827 (gdbscm_open_memory): Support zero sized ports.
3828
3829 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3830
3831 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
3832 variable compiler warnings.
3833
3834 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3835
3836 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
3837
3838 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3839 Phil Muldoon <pmuldoon@redhat.com>
3840
3841 * NEWS (Changes since GDB 7.9): Add compile print.
3842 * compile/compile-c-support.c (add_code_header, add_code_footer)
3843 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
3844 COMPILE_I_PRINT_VALUE_SCOPE.
3845 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
3846 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
3847 New.
3848 * compile/compile-object-load.c: Include block.h.
3849 (get_out_value_type): New function.
3850 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
3851 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
3852 OUT_VALUE_TYPE.
3853 * compile/compile-object-load.h (struct compile_module): Add fields
3854 out_value_addr and out_value_type.
3855 * compile/compile-object-run.c: Include valprint.h and compile.h.
3856 (struct do_module_cleanup): Add fields out_value_addr and
3857 out_value_type.
3858 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
3859 COMPILE_I_PRINT_VALUE_SCOPE.
3860 (compile_object_run): Propagate out_value_addr and out_value_type.
3861 Pass OUT_VALUE_ADDR.
3862 * compile/compile.c: Include valprint.h.
3863 (compile_print_value, compile_print_command): New functions.
3864 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
3865 (_initialize_compile): Update compile code help text. Install
3866 compile_print_command.
3867 * compile/compile.h (compile_print_value): New prototype.
3868 * defs.h (enum compile_i_scope_types): Add
3869 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
3870
3871 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3872
3873 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
3874 Rely on its parameter count.
3875 (compile_object_load): Replace lookup_minimal_symbol_text by
3876 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
3877 return value.
3878 * compile/compile-object-load.h (struct compile_module): Replace
3879 func_addr by func_sym.
3880 * compile/compile-object-run.c: Include block.h.
3881 (compile_object_run): Reset module variable after it is freed. Use
3882 FUNC_SYM instead of FUNC_ADDR. Rely on it.
3883
3884 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3885
3886 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
3887 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
3888 (c_compute_program): Call generate_register_struct after typedefs.
3889 * compile/compile-loc2c.c (push, pushf_register_address)
3890 (pushf_register): Cast to GCC_UINTPTR.
3891 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
3892 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
3893 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
3894 * compile/compile.c (_initialize_compile): Enable warnings for
3895 COMPILE_ARGS.
3896
3897 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3898
3899 * cli/cli-script.c (execute_control_command): Update
3900 eval_compile_command caller.
3901 * compile/compile-object-load.c (compile_object_load): Add parameters
3902 scope and scope_data. Set them.
3903 * compile/compile-object-load.h (struct compile_module): Add fields
3904 scope and scope_data.
3905 (compile_object_load): Add parameters scope and scope_data.
3906 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
3907 scope and scope_data.
3908 (compile_object_run): Propagate the fields scope and scope_data.
3909 * compile/compile.c (compile_file_command, compile_code_command):
3910 Update eval_compile_command callers.
3911 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
3912 * compile/compile.h (eval_compile_command): Add parameter scope_data.
3913 * defs.h (struct command_line): Add field scope_data.
3914
3915 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3916
3917 * printcmd.c (struct format_data): Move it to valprint.h.
3918 (print_command_parse_format, print_value): New functions from ...
3919 (print_command_1): ... here. Call them.
3920 * valprint.h (struct format_data): Move it here from printcmd.c.
3921 (print_command_parse_format, print_value): New declarations.
3922
3923 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3924
3925 * compile/compile-object-load.c (compile_object_load): Add
3926 COMPILE_DEBUG message.
3927
3928 2015-05-15 Jerome Guitton <guitton@adacore.com>
3929
3930 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
3931 index to get element instead of enum value.
3932 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
3933 of index to compute length, but enum values to compute bounds.
3934 (ada_array_length): Use enum position of index instead of enum value.
3935 (pos_atr): Move position computation to...
3936 (ada_evaluate_subexp): Use enum values to compute bounds.
3937 * gdbtypes.c (discrete_position): ...this new function.
3938 * gdbtypes.h (discrete_position): New function declaration.
3939 * valprint.c (val_print_array_elements): Call discrete_position
3940 to handle array indexed by non-contiguous enumeration types.
3941
3942 2015-05-15 Jerome Guitton <guitton@adacore.com>
3943
3944 * ada-lang.c (find_parallel_type_by_descriptive_type):
3945 Go through typedefs during lookup.
3946 (to_fixed_array_type): Add support for non-bit packed arrays
3947 as variable-length fields.
3948
3949 2015-05-15 Pedro Alves <palves@redhat.com>
3950 Simon Marchi <simon.marchi@ericsson.com>
3951
3952 * event-loop.c (gdb_notifier) <next_file_handler,
3953 next_poll_fds_index>: New fields.
3954 (get_next_file_handler_to_handle_and_advance): New function.
3955 (delete_file_handler): If deleting the next file handler to
3956 handle, advance to the next file handler.
3957 (gdb_wait_for_event): Bail early if no event fired. Poll file
3958 handlers in round-robin fashion.
3959
3960 2015-05-15 Pedro Alves <palves@redhat.com>
3961
3962 * linux-tdep.c (linux_find_memory_regions_full): Rename local
3963 'private' to 'priv'.
3964
3965 2015-05-15 Pedro Alves <palves@redhat.com>
3966
3967 * nat/linux-nat.h: Include "target/waitstatus.h".
3968
3969 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
3970
3971 * python/py-unwind.c (struct reg_info): Move out of ...
3972 (struct cached_frame_info): ... this scope.
3973 (pending_frame_object_type, unwind_info_object_type): Make extern.
3974
3975 2015-05-15 Joel Brobecker <brobecker@adacore.com>
3976
3977 * ada-lang.c (ada_value_primitive_packed_val): Make sure
3978 accumSize is never negative.
3979
3980 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
3981
3982 * tui/tui-command.c: Remove include of <ctype.h>.
3983 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
3984
3985 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
3986
3987 * dwarf2read.c (die_needs_namespace): Return 1 for
3988 DW_TAG_inlined_subroutine.
3989
3990 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3991
3992 * regcache.c (regcache_cpy_no_passthrough): New declaration.
3993 (regcache_cpy_no_passthrough): Make it static, add function comment.
3994 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
3995 (regcache_cpy_no_passthrough): Remove declaration.
3996
3997 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3998
3999 * gdbthread.h (struct thread_control_state): Update comment for
4000 proceed_to_finish.
4001 * infcall.c (run_inferior_call): Update comment about
4002 proceed_to_finish.
4003 * infcmd.c (get_return_value): Update comment about stop_registers.
4004 (finish_forward): Update comment about proceed_to_finish.
4005 * infrun.c (stop_registers): Remove.
4006 (clear_proceed_status, normal_stop): Remove stop_registers handling.
4007 * infrun.h (stop_registers): Remove.
4008
4009 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4010
4011 * infcall.c (struct dummy_frame_context_saver)
4012 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
4013 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4014 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4015 New.
4016 (call_function_by_hand_dummy): Move discard_cleanups of
4017 inf_status_cleanup before dummy_frame_push. Call
4018 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
4019 Use dummy_frame_context_saver_get_regs instead of stop_registers.
4020 * infcall.h (struct dummy_frame_context_saver)
4021 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4022 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4023 New declarations.
4024 * infcmd.c: Include infcall.h.
4025 (get_return_value): Add parameter ctx_saver, use it instead of
4026 stop_registers.
4027 (print_return_value): Add parameter ctx_saver, pass it.
4028 (struct finish_command_continuation_args): Add field ctx_saver.
4029 (finish_command_continuation): Update print_return_value caller.
4030 (finish_command_continuation_free_arg): Free also ctx_saver.
4031 (finish_forward): Call dummy_frame_context_saver_setup.
4032 * inferior.h (struct dummy_frame_context_saver): New declaration.
4033 (get_return_value): Add parameter ctx_saver.
4034 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
4035 get_return_value caller.
4036
4037 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4038
4039 * dummy-frame.c (struct dummy_frame_dtor_list): New.
4040 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
4041 (remove_dummy_frame): Process dtor_list.
4042 (pop_dummy_frame): Process dtor_list.
4043 (register_dummy_frame_dtor): Maintain dtor_list.
4044 (find_dummy_frame_dtor): Handle dtor_list.
4045 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
4046 Update comments.
4047
4048 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
4050 * compile/compile-object-run.c (do_module_cleanup): Add parameter
4051 registers_valid.
4052 (compile_object_run): Update do_module_cleanup caller.
4053 * dummy-frame.c: Include infcall.h.
4054 (struct dummy_frame): Update dtor comment.
4055 (remove_dummy_frame): Call dtor.
4056 (pop_dummy_frame): Update dtor caller.
4057 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
4058 registers_valid.
4059
4060 2015-05-13 Joel Brobecker <brobecker@adacore.com>
4061
4062 GDB 7.9.1 released.
4063
4064 2015-05-13 Joel Brobecker <brobecker@adacore.com>
4065
4066 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
4067 Xmethods now being able to specify a result type to that new
4068 sectioin.
4069
4070 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
4071
4072 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
4073 first before resizing the window.
4074 * tui/tui.c (tui_enable): Likewise.
4075
4076 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4077
4078 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
4079 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
4080 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
4081 dummy_dtor parameter.
4082 * infcall.h: Include dummy-frame.h.
4083 (call_function_by_hand_dummy_dtor_ftype): Remove.
4084 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
4085 parameter.
4086
4087 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
4088
4089 PR gdb/17820
4090 * top.c (history_size_setshow_var): Change type to signed.
4091 Initialize to -2. Update documentation.
4092 (set_readline_history_size): Define.
4093 (set_history_size_command): Use it. Remove logic for handling
4094 out-of-range sizes.
4095 (init_history): Use set_readline_history_size(). Test for a
4096 value of -2 instead of 0 when determining whether to set a
4097 default history size.
4098 (init_main): Decode the argument of the "size" command as a
4099 zuinteger_unlimited.
4100
4101 2015-05-12 Doug Evans <dje@google.com>
4102
4103 * dwarf2read.c (struct file_entry): Tweak comments.
4104 (get_debug_line_section): Tweak comments.
4105
4106 2015-05-12 Don Breazeal <donb@codesourcery.com>
4107
4108 * NEWS: Announce fork support in the RSP and support
4109 for fork debugging in extended mode.
4110
4111 2015-05-12 Don Breazeal <donb@codesourcery.com>
4112
4113 * remote.c (remote_insert_fork_catchpoint): New function.
4114 (remote_remove_fork_catchpoint): New function.
4115 (remote_insert_vfork_catchpoint): New function.
4116 (remote_remove_vfork_catchpoint): New function.
4117 (pending_fork_parent_callback): New function.
4118 (remove_new_fork_child): New function.
4119 (remote_update_thread_list): Call remote_notif_get_pending_events
4120 and remove_new_fork_child.
4121 (extended_remote_kill): Kill fork child when killing the
4122 parent before follow_fork completes.
4123 (init_extended_remote_ops): Initialize target vector with
4124 new fork catchpoint functions.
4125
4126 2015-05-12 Don Breazeal <donb@codesourcery.com>
4127
4128 * remote.c (remove_vfork_event_p): New function.
4129 (remote_follow_fork): Add vfork event type to event checking.
4130 (remote_parse_stop_reply): New stop reasons "vfork" and
4131 "vforkdone" for RSP 'T' Stop Reply Packet.
4132
4133 2015-05-12 Don Breazeal <donb@codesourcery.com>
4134
4135 * linux-nat.c (linux_nat_ptrace_options): New function.
4136 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
4137 Call linux_nat_ptrace_options and use different argument to
4138 linux_enable_event_reporting.
4139 (_initialize_linux_nat): Delete call to
4140 linux_ptrace_set_additional_flags.
4141 * nat/linux-ptrace.c (current_ptrace_options): Rename to
4142 supported_ptrace_options.
4143 (additional_flags): Delete variable.
4144 (linux_check_ptrace_features): Use supported_ptrace_options.
4145 (linux_test_for_tracesysgood, linux_test_for_tracefork):
4146 Likewise, and remove additional_flags check.
4147 (linux_enable_event_reporting): Change 'attached' argument to
4148 'options'. Use supported_ptrace_options.
4149 (ptrace_supports_feature): Change comment. Use
4150 supported_ptrace_options.
4151 (linux_ptrace_set_additional_flags): Delete function.
4152 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4153 Delete function prototype.
4154 * remote.c (remote_fork_event_p): New function.
4155 (remote_detach_pid): New function.
4156 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
4157 if doing detach-on-fork.
4158 (remote_follow_fork): New function.
4159 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
4160 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
4161 (init_extended_remote_ops): Initialize to_follow_fork.
4162
4163 2015-05-12 Don Breazeal <donb@codesourcery.com>
4164
4165 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
4166 from static to extern.
4167 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
4168 * remote.c (anonymous enum): <PACKET_fork_event_feature,
4169 * PACKET_vfork_event_feature>: New enumeration constants.
4170 (remote_protocol_features): Add table entries for new packets.
4171 (remote_query_supported): Add new feature queries to qSupported
4172 packet.
4173
4174 2015-05-12 Gary Benson <gbenson@redhat.com>
4175
4176 * remote.c (remote_add_inferior): Call exec_file_locate_attach
4177 for fake PIDs as well as real ones.
4178 (remote_pid_to_exec_file): Send empty annex if PID is fake.
4179
4180 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
4181
4182 * NEWS (Python Scripting): Mention the new gdb.Value methods.
4183 * python/py-value.c (valpy_reference_value): New function.
4184 (valpy_const_value): Likewise.
4185 (value_object_methods): Add new methods.
4186 * value.c (make_cv_value): New function.
4187 * value.h (make_cv_value): Declare.
4188
4189 2015-05-08 Yao Qi <yao@codesourcery.com>
4190 Sandra Loosemore <sandra@codesourcery.com>
4191
4192 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
4193 to 'lh->include_dirs' before accessing to it.
4194 (psymtab_include_file_name): Likewise.
4195 (dwarf_decode_lines_1): Likewise.
4196 (dwarf_decode_lines): Likewise.
4197 (file_file_name): Likewise.
4198
4199 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
4200
4201 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
4202 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
4203 (nios2_linux_rt_sigreturn_init): Adjust base address of
4204 register save area.
4205
4206 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
4207
4208 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
4209 "trap 31" as the breakpoint instruction on all targets.
4210
4211 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 * infcmd.c (print_return_value): Remove unused declaration.
4214
4215 2015-05-08 Joel Brobecker <brobecker@adacore.com>
4216
4217 * dwarf2read.c (attr_to_dynamic_prop)
4218 <DW_AT_data_member_location>: Use read_type_die isntead of
4219 get_die_type.
4220
4221 2015-05-08 Joel Brobecker <brobecker@adacore.com>
4222
4223 * ada-lang.c (ada_convert_actual): Add handling of formals
4224 passed inside an aligner type.
4225
4226 2015-05-08 Joel Brobecker <brobecker@adacore.com>
4227
4228 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
4229
4230 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
4231
4232 PR python/18291
4233 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
4234 Print xmethod matcher status.
4235
4236 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
4237
4238 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
4239 register in the regcache when treating the PSWM register, and vice
4240 versa.
4241
4242 2015-05-07 Gary Benson <gbenson@redhat.com>
4243
4244 * linux-thread-db.c (struct thread_db_info)
4245 <td_ta_map_id2thr_p>: Remove field.
4246 (try_thread_db_load_1): Remove initialization for the above.
4247
4248 2015-05-07 Gary Benson <gbenson@redhat.com>
4249
4250 * linux-thread-db.c (struct thread_db_info)
4251 <td_thr_validate_p>: Remove field.
4252 (try_thread_db_load_1): Remove initialization for the above.
4253
4254 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4255
4256 * compile/compile-object-load.c (compile_object_load): Support
4257 mst_text_gnu_ifunc.
4258
4259 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4260
4261 * compile/compile.c (compile_to_object): Make the cmd_string parameter
4262 const. Use new variables for the const compatibility.
4263 (eval_compile_command): Make the cmd_string parameter const.
4264 * compile/compile.h (eval_compile_command): Make the cmd_string
4265 parameter const.
4266
4267 2015-05-06 Joel Brobecker <brobecker@adacore.com>
4268
4269 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
4270 comment.
4271 * top.c (deprecated_init_ui_hook): Delete.
4272 (gdb_init): Remove handling of deprecated_init_ui_hook.
4273 * interps.c (clear_interpreter_hooks): Remove handling of
4274 deprecated_init_ui_hook.
4275 * main.c (captured_main): Update comment.
4276
4277 2015-05-06 Joel Brobecker <brobecker@adacore.com>
4278
4279 * solib.c (_initialize_solib): Add "info dll" alias creation.
4280 * windows-nat.c (set_windows_aliases): Delete.
4281 (_initialize_windows_nat): Remove deprecated_init_ui_hook
4282 assignment.
4283 * NEWS: Add news entry about "info dll" now being available
4284 on all platforms.
4285
4286 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4287
4288 * ada-lang.c (value_assign_to_component): Reformat and improve
4289 documentation. Remove all trailing spaces.
4290
4291 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4292
4293 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4294 Stop counting inlined frames as soon as an out-of-line function
4295 is found.
4296
4297 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
4298
4299 * dwarf2read.c (inherit_abstract_dies): Skip
4300 DW_TAG_GNU_call_site dies while inheriting children of an
4301 abstract DIE into a scope.
4302 (read_lexical_block_scope): Inherit abstract DIE's for
4303 lexical scopes.
4304
4305 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4306
4307 * ada-valprint.c (val_print_packed_array_elements): Delete
4308 variable "len". Add a type-length check when comparing two
4309 consecutive elements of the array. Use the element's actual
4310 length in call to value_contents_eq.
4311 * ada-lang.c (ada_value_primitive_packed_val): Always return
4312 a value whose type has been resolved.
4313
4314 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4315
4316 * ada-lang.c (ada_value_primitive_packed_val): Recompute
4317 BIT_SIZE and LEN if the size of the resolved type is smaller
4318 than BIT_SIZE * HOST_CHAR_BIT.
4319
4320 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4321
4322 * ada-lang.c (ada_value_primitive_packed_val): Use a more
4323 correct address in call to value_at. Adjust call to
4324 value_address accordingly.
4325
4326 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4327
4328 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
4329 to print it.
4330
4331 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4332
4333 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
4334 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
4335 pinfo->valaddr.
4336 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
4337 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
4338 (resolve_dynamic_type_internal): Set pinfo.valaddr.
4339 Add handling of addr_stack->valaddr.
4340 (resolve_dynamic_type): Add "valaddr" parameter.
4341 Set pinfo.valaddr field.
4342 * ada-lang.c (ada_discrete_type_high_bound): Update call to
4343 resolve_dynamic_type.
4344 (ada_discrete_type_low_bound): Likewise.
4345 * findvar.c (default_read_var_value): Likewise.
4346 * value.c (value_from_contents_and_address): Likewise.
4347
4348 2015-05-05 Joel Brobecker <brobecker@adacore.com>
4349
4350 * gdbtypes.c (resolve_dynamic_array): Use
4351 create_array_type_with_stride instead of create_array_type.
4352
4353 2015-04-30 DJ Delorie <dj@redhat.com>
4354
4355 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
4356 rl78_decode_opcode
4357
4358 2015-04-29 Doug Evans <dje@google.com>
4359
4360 PR python/18285
4361 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
4362 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
4363 EVAL_AVOID_SIDE_EFFECTS for xmethods.
4364 * extension-priv.h (struct extension_language_ops)
4365 <get_xmethod_result_type>: New member.
4366 * extension.c (get_xmethod_result_type): New function.
4367 * extension.h (get_xmethod_result_type): Declare.
4368 * python/py-xmethods.c (get_result_type_method_name): New static
4369 global.
4370 (py_get_result_type_method_name): Ditto.
4371 (gdbpy_get_xmethod_result_type): New function.
4372 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
4373 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
4374 * python/python.c (python_extension_ops): Add
4375 gdbpy_get_xmethod_result_type.
4376 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
4377 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
4378 xmethods.
4379 (value_x_unop): Ditto.
4380 * value.c (result_type_of_xmethod): New function.
4381 * value.h (result_type_of_xmethod): Declare.
4382
4383 2015-04-29 Gary Benson <gbenson@redhat.com>
4384
4385 * solib.c (solib_find_1): Allow fd argument to be NULL.
4386 (exec_file_find): Update comment.
4387 (solib_find): Likewise.
4388 * exec.c (exec_file_locate_attach): Use NULL as fd
4389 argument to exec_file_find to avoid having to close
4390 the opened file.
4391 * infrun.c (follow_exec): Likewise.
4392
4393 2015-04-28 Doug Evans <dje@google.com>
4394
4395 PR python/18299
4396 * python/lib/gdb/printing.py (register_pretty_printer): Handle
4397 name or __name__ attributes. Handle gdb module as first argument.
4398
4399 2015-04-28 Doug Evans <dje@google.com>
4400
4401 PR python/18089
4402 * python/py-prettyprint.c (print_children): Verify result of children
4403 iterator. Provide better error message.
4404 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
4405 * python/python.c (gdbpy_print_python_errors_p): New function.
4406
4407 2015-04-28 Doug Evans <dje@google.com>
4408
4409 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
4410
4411 2015-04-28 Sasha Smundak <asmundak@google.com>
4412
4413 * NEWS: Mention gdb.Type.optimized_out method.
4414 * python/py-type.c (typy_optimized_out): New function.
4415
4416 2015-04-28 John Baldwin <jhb@FreeBSD.org>
4417
4418 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4419
4420 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
4421
4422 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
4423 (initialize_utils): Move call of init_page_info() to ...
4424 * top.c (gdb_init): ... here.
4425
4426 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
4427
4428 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
4429 (tui_sigwinch_handler): Still update our idea of
4430 the terminal's width and height even when TUI is not active.
4431
4432 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
4433
4434 * utils.h (set_screen_width_and_height): Declare.
4435 * utils.c (set_screen_width_and_height): Define.
4436 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
4437
4438 2015-04-28 Gary Benson <gbenson@redhat.com>
4439
4440 * infrun.c (solist.h): New include.
4441 (follow_exec): Use exec_file_find to prefix execd_pathname
4442 with gdb_sysroot.
4443
4444 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
4445
4446 * tui/tui-source.c (tui_set_source_content): Avoid calling
4447 strcpy() when offset is 0.
4448
4449 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
4450
4451 PR gdb/18155
4452 * tui/tui-data.c (tui_free_window): Don't free the locator
4453 window when passed an SRC_WIN or a DISASSEM_WIN.
4454
4455 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
4456
4457 * tui/tui-data.h (struct tui_win_element): Forward-declare.
4458 (tui_win_content): Move declaration.
4459 (struct tui_gen_win_info): Give 'content' field the
4460 type tui_win_content.
4461 * tui/tui-data.c (init_content_element): Remove redundant and
4462 erroneous casts.
4463 (tui_add_content_elements): Remove erroneous cast.
4464 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
4465 casts.
4466 (tui_get_begin_asm_address): Likewise.
4467 * tui/tui-regs.c (tui_show_registers): Likewise.
4468 (tui_show_register_group): Likewise.
4469 (tui_display_registers_from): Likewise.
4470 (tui_check_register_values): Likewise.
4471 * tui/tui-source.c (tui_set_source_content): Likewise.
4472 (tui_set_source_content_nil): Likewise.
4473 (tui_source_is_displayed): Likewise.
4474 * tui/tui-stack.c (tui_show_locator_content): Likewise.
4475 (tui_set_locator_fullname): Likewise.
4476 (tui_set_locator_info): Likewise.
4477 (tui_show_frame_info): Likewise.
4478 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
4479 (tui_show_source_line): Likewise.
4480 (tui_horizontal_source_scroll): Likewise.
4481 (tui_update_breakpoint_info): Likewise.
4482 (tui_set_exec_info_content): Likewise.
4483 (tui_show_exec_info_content): Likewise.
4484 (tui_alloc_source_buffer): Likewise.
4485 (tui_line_is_displayed): Likewise.
4486 (tui_addr_is_displayed): Likewise.
4487
4488 2015-04-27 John Baldwin <jhb@FreeBSD.org>
4489
4490 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
4491 event if PL_FLAG_EXEC is set.
4492 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
4493 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
4494 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
4495 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
4496 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
4497
4498 2015-04-27 John Baldwin <jhb@FreeBSD.org>
4499
4500 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
4501 [TDP_RFPPWAIT] New variable fbsd_pending_children.
4502 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
4503 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
4504 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
4505 [PT_LWPINFO] (fbsd_wait): New function.
4506 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
4507 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
4508 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
4509 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
4510 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
4511 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
4512 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
4513 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
4514 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
4515 "fbsd_wait".
4516 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
4517 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
4518 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
4519 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
4520 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
4521 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
4522 Set "to_post_attach" to "fbsd_post_attach".
4523
4524 2015-04-27 John Baldwin <jhb@FreeBSD.org>
4525
4526 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
4527 (fbsd_find_memory_regions): Mark static.
4528 (fbsd_nat_add_target): New function.
4529 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
4530 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
4531 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
4532 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
4533 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
4534 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
4535
4536 2015-04-27 Gary Benson <gbenson@redhat.com>
4537
4538 * objfiles.c (allocate_objfile): Do not attempt to expand name
4539 if name is a "target:" filename.
4540 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
4541 to load auto-load scripts for objfiles with "target:" filenames.
4542
4543 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4544
4545 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
4546 (enum s390_vector_abi_kind): New enum.
4547 (struct gdbarch_tdep)<vector_abi>: New field.
4548 (s390_effective_inner_type): Add parameter min_size. Stop
4549 unwrapping if the inner type is smaller than min_size.
4550 (s390_function_arg_float): Adjust call to
4551 s390_effective_inner_type.
4552 (s390_function_arg_vector): New function.
4553 (s390_function_arg_integer): Adjust comment.
4554 (struct s390_arg_state)<vr>: New field.
4555 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
4556 arguments according to vector ABI when appropriate.
4557 (s390_push_dummy_call): Initialize the argument state's field
4558 'vr'. Adjust calls to s390_handle_arg.
4559 (s390_register_return_value): Handle vector return values.
4560 (s390_return_value): Apply the "register" return value convention
4561 to a vector when appropriate.
4562 (s390_gdbarch_init): Initialize tdep->vector_abi.
4563 * NEWS: Announce S390 vector ABI support.
4564
4565 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4566
4567 * s390-linux-tdep.c (s390_return_value_convention): Remove
4568 function. Inline its logic...
4569 (s390_return_value): ...here. Instead, move the handling of the
4570 "register" return value convention...
4571 (s390_register_return_value): ...here. New function.
4572
4573 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4574
4575 * s390-linux-tdep.c
4576 (is_float_singleton): Remove function. Move the "singleton" part
4577 of the logic...
4578 (s390_effective_inner_type): ...here. New function.
4579 (is_float_like): Remove function. Inline its logic...
4580 (s390_function_arg_float): ...here.
4581 (is_pointer_like, is_integer_like, is_struct_like): Remove
4582 functions. Inline their logic...
4583 (s390_function_arg_integer): ...here.
4584 (s390_function_arg_pass_by_reference): Remove function.
4585 (extend_simple_arg): Remove function.
4586 (alignment_of): Remove function.
4587 (struct s390_arg_state): New structure.
4588 (s390_handle_arg): New function.
4589 (s390_push_dummy_call): Move parameter placement logic to the new
4590 function s390_handle_arg. Call it for calculating the stack area
4591 sizes first, and again for actually writing the parameters.
4592
4593 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4594
4595 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
4596 false if the argument is zero.
4597
4598 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
4599
4600 * ada-lang.c (template_to_static_fixed_type): Return input type
4601 when it is already fixed. Cache the input type itself when not
4602 creating a static fixed copy. Make it explicit that we never
4603 molestate the input type.
4604 * gdbtypes.c (resolve_dynamic_struct): Reset the
4605 TYPE_TARGET_TYPE field for resolved copies.
4606
4607 2015-04-27 Joel Brobecker <brobecker@adacore.com>
4608
4609 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
4610 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
4611 (template_to_static_fixed_type): Call ada_check_typedef only
4612 when necessary.
4613
4614 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
4615
4616 * cli/cli-dump.c (srec_dump_command): Add internationalization
4617 mark ups.
4618 (ihex_dump_command): Likewise.
4619 (tekhex_dump_command): Likewise.
4620 (binary_dump_command): Likewise.
4621 (binary_append_command): Likewise.
4622
4623 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * cli/cli-dump.c (verilog_cmdlist): New variable.
4626 (dump_verilog_memory): New function.
4627 (dump_verilog_value): New function.
4628 (verilog_dump_command): New function.
4629 (_initialize_cli_dump): Add new commands to support verilog dump
4630 format.
4631 * NEWS: Add entry for "dump verilog".
4632
4633 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
4634
4635 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
4636 descriptive type when there is none.
4637
4638 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
4639
4640 * tui/tui-win.c (tui_async_resize_screen): Call
4641 rl_resize_terminal().
4642
4643 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
4644
4645 * windows-nat.c (handle_output_debug_string): Don't change
4646 current_event.dwThreadId.
4647 (get_windows_debug_event): Use thread_id, rather than relying on
4648 current_event.dwThreadId being changed.
4649
4650 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
4651
4652 * windows-nat.c (windows_continue): Report an error if
4653 ContinueDebugEvent() fails.
4654
4655 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
4656
4657 * windows-nat.c (windows_resume): Fix misspelling in debug output.
4658
4659 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
4660
4661 * windows-nat.c (get_windows_debug_event): Replace retval with
4662 thread_id throughout. Update stale comment.
4663
4664 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
4665
4666 * windows-nat.c (get_windows_debug_event): Don't use ternary
4667 conditional operator.
4668
4669 2015-04-21 Pierre Muller <muller@sourceware.org>
4670
4671 PR pascal/17815
4672 p-exp.y (yylex): Reorganize code to return the matched pattern
4673 for a field of this.
4674
4675 2015-04-21 Gary Benson <gbenson@redhat.com>
4676
4677 * common/fileio.h (fileio_to_host_openflags): New declaration.
4678 * common/fileio.c (fcntl.h): New include.
4679 (fileio_to_host_openflags): New function, factored out from...
4680 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
4681 Single use updated.
4682
4683 2015-04-21 Kevin Buettner <kevinb@redhat.com>
4684
4685 * rl78-tdep.c (RL78_SP_ADDR): Define.
4686 (opc_reg_to_gdb_regnum): New static function.
4687 (rl78_analyze_prologue): Recognize instructions forming slightly
4688 more interesting prologues.
4689
4690 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
4691
4692 Revert:
4693 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4694 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
4695 TYPE_CODE_REF types so that they are not considered as dynamic
4696 depending on the referenced type.
4697 (resolve_dynamic_type_internal): Likewise.
4698
4699 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
4700
4701 Revert:
4702 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4703 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
4704 "top_level" parameter.
4705 (resolve_dynamic_type_internal): Remove the unused "top_level"
4706 parameter. Update call to is_dynamic_type_internal.
4707 (is_dynamic_type): Update call to is_dynamic_type_internal.
4708 (resolve_dynamic_range): Update call to
4709 resolve_dynamic_type_internal.
4710 (resolve_dynamic_union): Likewise.
4711 (resolve_dynamic_struct): Likewise.
4712 (resolve_dynamic_type): Likewise.
4713
4714 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
4715
4716 * breakpoint.c (update_dprintf_command_list): Remove duplicated
4717 xmalloc.
4718
4719 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
4720
4721 * reply_mig_hack.awk: Robustify parsing.
4722
4723 * reply_mig_hack.awk: Don't bother to declare an intermediate
4724 function pointer variable.
4725
4726 2015-04-17 Doug Evans <dje@google.com>
4727
4728 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
4729 to "exec_displacement" to avoid confusion with inner use of the name.
4730
4731 2015-04-17 Pedro Alves <palves@redhat.com>
4732
4733 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
4734 if HW point of TYPE isn't supported.
4735
4736 2015-04-17 Yao Qi <yao.qi@linaro.org>
4737 Pedro Alves <palves@redhat.com>
4738
4739 * target.h (target_can_use_hardware_watchpoint): Update comments.
4740 Remove trailing ";".
4741
4742 2015-04-17 Gary Benson <gbenson@redhat.com>
4743
4744 * remote.c (remote_add_inferior): New argument try_open_exec.
4745 If nonzero, attempt to open the inferior's executable file as
4746 the main executable if no main executable is open already.
4747 All callers updated.
4748 * NEWS: Mention that GDB now supports automatic location and
4749 retrieval of executable + files from remote targets.
4750
4751 2015-04-17 Gary Benson <gbenson@redhat.com>
4752
4753 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
4754 * remote.c (PACKET_qXfer_exec_file): Likewise.
4755 (remote_protocol_features): Register the
4756 "qXfer:exec-file:read" feature.
4757 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
4758 (remote_pid_to_exec_file): New function.
4759 (init_remote_ops): Initialize to_pid_to_exec_file.
4760 (_initialize_remote): Register new "set/show remote
4761 pid-to-exec-file-packet" command.
4762 * NEWS: Announce new qXfer:exec-file:read packet.
4763
4764 2015-04-17 Gary Benson <gbenson@redhat.com>
4765
4766 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
4767 New declaration.
4768 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
4769 New function, factored out from...
4770 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
4771
4772 2015-04-17 Gary Benson <gbenson@redhat.com>
4773
4774 * exec.c (solist.h): New include.
4775 (exec_file_locate_attach): Prefix absolute executable
4776 paths with gdb_sysroot if set.
4777 * NEWS: Mention that executable paths may be prepended
4778 with sysroot.
4779
4780 2015-04-17 Gary Benson <gbenson@redhat.com>
4781
4782 * solist.h (exec_file_find): New declaration.
4783 * solib.c (solib_find_1): New function, factored out from...
4784 (solib_find): ...here.
4785 (exec_file_find): New function.
4786
4787 2015-04-17 Gary Benson <gbenson@redhat.com>
4788
4789 * gdbcore.h (exec_file_locate_attach): New declaration.
4790 * exec.c (exec_file_locate_attach): New function, factored
4791 out from...
4792 * infcmd.c (attach_command_post_wait): ...here.
4793
4794 2015-04-17 Mike Frysinger <vapier@gentoo.org>
4795
4796 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
4797
4798 2015-04-16 Yao Qi <yao.qi@linaro.org>
4799
4800 * infrun.c (maybe_software_singlestep): Declare.
4801 (displaced_step_fixup): Call maybe_software_singlestep.
4802
4803 2015-04-15 Doug Evans <dje@google.com>
4804
4805 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
4806
4807 2015-04-15 Doug Evans <dje@google.com>
4808
4809 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
4810
4811 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
4812
4813 * python/lib/gdb/command/unwinders.py: Add parentheses.
4814
4815 2015-04-15 Yao Qi <yao.qi@linaro.org>
4816
4817 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
4818
4819 2015-04-15 Yao Qi <yao.qi@linaro.org>
4820
4821 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
4822
4823 2015-04-15 Yao Qi <yao.qi@linaro.org>
4824
4825 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4826 dsc->insn_size instead of 4.
4827
4828 2015-04-14 Gary Benson <gbenson@redhat.com>
4829
4830 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
4831 * minidebug.c (lzma_stat): Likewise.
4832 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
4833 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
4834
4835 2015-04-13 Stan Shebs <stanshebs@google.com>
4836
4837 * MAINTAINERS: Update my email address.
4838
4839 2015-04-13 John Baldwin <jhb@FreeBSD.org>
4840
4841 * amd64-tdep.c (amd64_target_description): New function.
4842 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
4843 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
4844 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
4845 x86 extended save area.
4846 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
4847 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
4848 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
4849 (_initialize_amd64fbsd_nat): Set "to_read_description" to
4850 "amd64fbsd_read_description".
4851 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
4852 (amd64fbsd_supply_xstateregset): New function.
4853 (amd64fbsd_collect_xstateregset): New function.
4854 Add "amd64fbsd_xstateregset".
4855 (amd64fbsd_iterate_over_regset_sections): New function.
4856 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
4857 "I386_FBSD_XSAVE_XCR0_OFFSET".
4858 Add "iterate_over_regset_sections" gdbarch method.
4859 Add "core_read_description" gdbarch method.
4860 * i386-tdep.c (i386_target_description): New function.
4861 * i386-tdep.h: Export i386_target_description and tdesc_i386.
4862 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
4863 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
4864 x86 extended save area.
4865 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
4866 * i386bsd-nat.h: Export i386bsd_xsave_len.
4867 * i386fbsd-nat.c (i386fbsd_read_description): New function.
4868 (_initialize_i386fbsd_nat): Set "to_read_description" to
4869 "i386fbsd_read_description".
4870 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
4871 (i386fbsd_core_read_description): New function.
4872 (i386fbsd_supply_xstateregset): New function.
4873 (i386fbsd_collect_xstateregset): New function.
4874 Add "i386fbsd_xstateregset".
4875 (i386fbsd_iterate_over_regset_sections): New function.
4876 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
4877 "I386_FBSD_XSAVE_XCR0_OFFSET".
4878 Add "iterate_over_regset_sections" gdbarch method.
4879 Add "core_read_description" gdbarch method.
4880 * i386fbsd-tdep.h: New file.
4881
4882 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4883
4884 * NEWS (Changes since GDB 7.9): Add removed -xdb.
4885 * breakpoint.c (command_line_is_silent): Remove xdb_commands
4886 conditional.
4887 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
4888 and lb.
4889 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
4890 va.
4891 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
4892 conditional.
4893 * defs.h (xdb_commands): Remove declaration.
4894 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
4895 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
4896 * infcmd.c (run_no_args_command, go_command): Remove.
4897 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
4898 * infrun.c (xdb_handle_command): Remove.
4899 (_initialize_infrun): Remove xdb_commands for lz and z.
4900 * main.c (xdb_commands): Remove variable.
4901 (captured_main): Remove "xdb" from long_options.
4902 (print_gdb_help): Remove --xdb from help.
4903 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
4904 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
4905 * stack.c (backtrace_full_command, args_plus_locals_info)
4906 (current_frame_command): Remove.
4907 (_initialize_stack): Remove xdb_commands for t, T and l.
4908 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
4909 * thread.c (_initialize_thread): Remove xdb_commands condition.
4910 * tui/tui-layout.c (tui_toggle_layout_command)
4911 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
4912 (_initialize_tui_layout): Remove xdb_commands for td and ts.
4913 * tui/tui-regs.c (tui_scroll_regs_forward_command)
4914 (tui_scroll_regs_backward_command): Remove.
4915 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
4916 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
4917 (_initialize_tui_win): Remove xdb_commands for U and w.
4918 * utils.c (pagination_on_command, pagination_off_command): Remove.
4919 (initialize_utils): Remove xdb_commands for am and sm.
4920
4921 2015-04-10 Pedro Alves <palves@redhat.com>
4922
4923 * infrun.c (displaced_step_fixup): Switch to the event ptid
4924 earlier. If the thread stopped for a watchpoint and the
4925 target/arch has non-continuable watchpoints, cancel the displaced
4926 step.
4927 (resume): Don't start a displaced step if in-line step-over info
4928 is valid.
4929
4930 2015-04-10 Pedro Alves <palves@redhat.com>
4931
4932 * infrun.c (displaced_step_in_progress): New function.
4933 (do_target_resume): Advise target to report all signals if
4934 displaced stepping.
4935
4936 2015-04-10 Pedro Alves <palves@redhat.com>
4937
4938 PR gdb/18216
4939 * infrun.c (process_event_stop_test): Don't assume a step-resume
4940 is set if tp->stepped_breakpoint is true.
4941
4942 2015-04-10 Yao Qi <yao.qi@linaro.org>
4943
4944 * arm-tdep.c (install_alu_reg): Update comment.
4945 (thumb_copy_alu_reg): Remove local variable rn. Update
4946 debugging message. Use r2 instead of r1 in the modified
4947 instruction.
4948
4949 2015-04-10 Pedro Alves <palves@redhat.com>
4950
4951 PR gdb/13858
4952 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
4953 linux_displaced_step_location as gdbarch_displaced_step_location
4954 hook.
4955 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4956 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4957 * linux-tdep.c (linux_displaced_step_location): New function,
4958 based on ppc_linux_displaced_step_location.
4959 * linux-tdep.h (linux_displaced_step_location): New declaration.
4960 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
4961 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
4962 Delete.
4963 (ppc_linux_init_abi): Install linux_displaced_step_location as
4964 gdbarch_displaced_step_location hook, even without Cell/B.E..
4965 (_initialize_ppc_linux_tdep): Don't install
4966 ppc_linux_inferior_created as inferior_created observer.
4967 * s390-linux-tdep.c (s390_gdbarch_init): Install
4968 linux_displaced_step_location as gdbarch_displaced_step_location
4969 hook.
4970
4971 2015-04-09 Gary Benson <gbenson@redhat.com>
4972
4973 * common/common-remote-fileio.h: Rename to...
4974 * common/fileio.h: ...this. Update all references.
4975 (remote_fileio_to_fio_error): Rename to...
4976 (host_to_fileio_error): ...this.
4977 (remote_fileio_to_be): Rename to...
4978 (host_to_bigendian): ...this. Update all callers.
4979 (remote_fileio_to_fio_uint): Rename to...
4980 (host_to_fileio_uint): ...this. Update all callers.
4981 (remote_fileio_to_fio_time): Rename to...
4982 (host_to_fileio_time): ...this. Update all callers.
4983 (remote_fileio_to_fio_stat): Rename to...
4984 (host_to_fileio_stat): ...this.
4985 Update all references.
4986 * common/common-remote-fileio.c: Rename to...
4987 * common/fileio.c: ...this. Update all references.
4988 (remote_fileio_to_fio_error): Rename to...
4989 (host_to_fileio_error): ...this. Update all callers.
4990 (remote_fileio_mode_to_target): Rename to...
4991 (fileio_mode_pack): ...this. Update all callers.
4992 (remote_fileio_to_fio_mode): Rename to...
4993 (host_to_fileio_mode): ...this. Update all callers.
4994 (remote_fileio_to_fio_ulong): Rename to...
4995 (host_to_fileio_ulong): ...this. Update all callers.
4996 (remote_fileio_to_fio_stat): Rename to...
4997 (host_to_fileio_stat): ...this. Update all callers.
4998
4999 2015-04-09 Andy Wingo <wingo@igalia.com>
5000
5001 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
5002 (frame_functions): Bind gdbscm_frame_read_register to
5003 frame-read-register.
5004 * guile/lib/gdb.scm (frame-read-register): Export.
5005
5006 2015-04-09 Gary Benson <gbenson@redhat.com>
5007
5008 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
5009 New declaration.
5010 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
5011 New function, factored out the named functions below.
5012 * inf-child.c (gdb/fileio.h): Remove include.
5013 (common-remote-fileio.h): New include.
5014 (inf_child_errno_to_fileio_error): Remove function. Update
5015 all callers to use remote_fileio_to_fio_error.
5016 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
5017
5018 2015-04-09 Andy Wingo <wingo@igalia.com>
5019
5020 * MAINTAINERS (Write After Approval): Add Andy Wingo.
5021
5022 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
5023
5024 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
5025 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
5026 * configure: Regenerated.
5027
5028 2015-04-09 Pedro Alves <palves@redhat.com>
5029
5030 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
5031 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
5032 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
5033 * gnulib/import/Makefile.am: Update.
5034 * gnulib/import/Makefile.in: Update.
5035 * gnulib/import/m4/gnulib-cache.m4: Update.
5036 * gnulib/import/m4/gnulib-comp.m4: Update.
5037 * gnulib/import/m4/strtok_r.m4: New file.
5038 * gnulib/import/strtok_r.c: New file.
5039
5040 2015-04-09 Pedro Alves <palves@redhat.com>
5041
5042 * gnulib/update-gnulib.sh (aclocal version check): Filter out
5043 "called too early to check prototype".
5044
5045 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
5046
5047 PR python/16699
5048 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
5049 use a caching mechanism. Adjust comments and code to reflect
5050 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
5051 (cmdpy_completer_handle_brkchars): Adjust call to
5052 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
5053 (cmdpy_completer): Likewise.
5054
5055 2015-04-08 Yao Qi <yao.qi@linaro.org>
5056
5057 * spu-tdep.c (spu_gdbarch_init): Don't call
5058 set_gdbarch_cannot_step_breakpoint.
5059
5060 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
5061
5062 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
5063
5064 2015-04-07 Pedro Alves <palves@redhat.com>
5065
5066 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
5067 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
5068 (delete_exited_threads): New declaration.
5069 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
5070 * linux-nat.c (linux_nat_update_thread_list): New function.
5071 (linux_nat_add_target): Install it.
5072 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
5073 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
5074 (delete_exited_threads): New function.
5075
5076 2015-04-07 Pedro Alves <pedro@codesourcery.com>
5077
5078 * infrun.c (resume) <displaced stepping debug output>: Get the
5079 leader thread's regcache, not resume_ptid's.
5080
5081 2015-04-06 Doug Evans <xdje42@gmail.com>
5082
5083 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
5084 VAR_DOMAIN.
5085 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
5086 Include symbol domain in debugging output.
5087
5088 2015-04-06 Pedro Alves <palves@redhat.com>
5089 Bernd Edlinger <bernd.edlinger@hotmail.de>
5090
5091 * configure.ac: Remove the mingw32-specific stub-termcap.o
5092 fallback, and instead fallback to the stub termcap on all hosts.
5093 * configure: Regenerate.
5094 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
5095 symbols.
5096
5097 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5098
5099 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
5100 "top_level" parameter.
5101 (resolve_dynamic_type_internal): Remove the unused "top_level"
5102 parameter. Update call to is_dynamic_type_internal.
5103 (is_dynamic_type): Update call to is_dynamic_type_internal.
5104 (resolve_dynamic_range): Update call to
5105 resolve_dynamic_type_internal.
5106 (resolve_dynamic_union): Likewise.
5107 (resolve_dynamic_struct): Likewise.
5108 (resolve_dynamic_type): Likewise.
5109
5110 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5111
5112 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
5113 TYPE_CODE_REF types so that they are not considered as dynamic
5114 depending on the referenced type.
5115 (resolve_dynamic_type_internal): Likewise.
5116
5117 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
5118
5119 * Makefile.in (top_srcdir): New.
5120 * configure: Regenerated.
5121
5122 2015-04-02 Gary Benson <gbenson@redhat.com>
5123
5124 * NEWS: Announce the new default sysroot of "target:".
5125
5126 2015-04-02 Gary Benson <gbenson@redhat.com>
5127
5128 * main.c (captured_main): Set gdb_sysroot to "target:"
5129 if not otherwise set.
5130
5131 2015-04-02 Gary Benson <gbenson@redhat.com>
5132
5133 * exec.c (exec_file_attach): Support "target:" filenames.
5134
5135 2015-04-02 Gary Benson <gbenson@redhat.com>
5136
5137 * solib.c (solib_find): Strip "target:" prefix from sysroot
5138 if accessing local files.
5139
5140 2015-04-02 Gary Benson <gbenson@redhat.com>
5141
5142 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
5143 checks and error messages.
5144
5145 2015-04-02 Gary Benson <gbenson@redhat.com>
5146
5147 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
5148 (remote_filename_p): Remove declaration.
5149 (remote_bfd_open): Likewise.
5150 * remote.c (remote_bfd_iovec_open): Remove function.
5151 (remote_bfd_iovec_close): Likewise.
5152 (remote_bfd_iovec_pread): Likewise.
5153 (remote_bfd_iovec_stat): Likewise.
5154 (remote_filename_p): Likewise.
5155 (remote_bfd_open): Likewise.
5156 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
5157 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
5158 (gdb_bfd_open_maybe_remote): Remove function.
5159 (symfile_bfd_open): Replace remote filename check with
5160 target filename check.
5161 (reread_symbols): Use gdb_bfd_open.
5162 * build-id.c (gdbcore.h): New include.
5163 (build_id_to_debug_bfd): Use gdb_bfd_open.
5164 * infcmd.c (attach_command_post_wait): Remove remote filename
5165 check.
5166 * solib.c (solib_find): Replace remote-specific handling with
5167 target-specific handling. Update comments where necessary.
5168 (solib_bfd_open): Replace remote-specific handling with
5169 target-specific handling.
5170 (gdb_sysroot_changed): New function.
5171 (_initialize_solib): Call the above when gdb_sysroot changes.
5172 * windows-tdep.c (gdbcore.h): New include.
5173 (windows_xfer_shared_library): Use gdb_bfd_open.
5174
5175 2015-04-02 Gary Benson <gbenson@redhat.com>
5176
5177 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
5178 (is_target_filename): New declaration.
5179 (gdb_bfd_has_target_filename): Likewise.
5180 (gdb_bfd_open): Update documentation comment.
5181 * gdb_bfd.c (target.h): New include.
5182 (gdb/fileio.h): Likewise.
5183 (is_target_filename): New function.
5184 (gdb_bfd_has_target_filename): Likewise.
5185 (fileio_errno_to_host): Likewise.
5186 (gdb_bfd_iovec_fileio_open): Likewise.
5187 (gdb_bfd_iovec_fileio_pread): Likewise.
5188 (gdb_bfd_iovec_fileio_close): Likewise.
5189 (gdb_bfd_iovec_fileio_fstat): Likewise.
5190 (gdb_bfd_open): Use target fileio to access paths prefixed
5191 with "target:" where necessary.
5192
5193 2015-04-02 Gary Benson <gbenson@redhat.com>
5194
5195 * target.h (struct target_ops) <to_filesystem_is_local>:
5196 New field.
5197 (target_filesystem_is_local): New macro.
5198 * target-delegates.c: Regenerate.
5199 * remote.c (remote_filesystem_is_local): New function.
5200 (init_remote_ops): Initialize to_filesystem_is_local.
5201
5202 2015-04-02 Gary Benson <gbenson@redhat.com>
5203
5204 * target.h (struct target_ops) <to_fileio_fstat>: New field.
5205 (target_fileio_fstat): New declaration.
5206 * target.c (target_fileio_fstat): New function.
5207 * inf-child.c (inf_child_fileio_fstat): Likewise.
5208 (inf_child_target): Initialize to_fileio_fstat.
5209 * remote.c (init_remote_ops): Likewise.
5210
5211 2015-04-01 Sasha Smundak <asmundak@google.com>
5212
5213 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
5214 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
5215 (py-unwind.o): New recipe.
5216 * NEWS: mention Python frame unwinding.
5217 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
5218 gdb/unwinder.py and gdb/command/unwinder.py
5219 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
5220 list.
5221 (execute_unwinders): New function.
5222 * python/lib/gdb/command/unwinders.py: New file.
5223 * python/lib/gdb/unwinder.py: New file.
5224 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
5225 (objfpy_dealloc): Decrement frame_unwinders reference count.
5226 (objfpy_initialize): Create frame_unwinders list.
5227 (objfpy_get_frame_unwinders): New function.
5228 (objfpy_set_frame_unwinders): Ditto.
5229 (objfile_getset): Add frame_unwinders attribute to Objfile.
5230 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
5231 (pspy_dealloc): Decrement frame_unwinders reference count.
5232 (pspy_initialize): Create frame_unwinders list.
5233 (pspy_get_frame_unwinders): New function.
5234 (pspy_set_frame_unwinders): Ditto.
5235 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
5236 * python/py-unwind.c: New file.
5237 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
5238 (objpy_get_frame_unwinders): New prototype.
5239 (gdbpy_initialize_unwind): New prototype.
5240 * python/python.c (gdbpy_apply_type_printers): Call
5241 gdbpy_initialize_unwind.
5242
5243 2015-04-01 Pedro Alves <palves@redhat.com>
5244
5245 * infrun.c (resume): Check currently_stepping after clearing
5246 stepped_breakpoint, not before.
5247
5248 2015-04-01 Pedro Alves <palves@redhat.com>
5249
5250 * infrun.c (print_target_wait_results): Print all the ptid
5251 elements.
5252
5253 2015-04-01 Pedro Alves <palves@redhat.com>
5254
5255 * infrun.c (keep_going): Also discard cleanups if inserting
5256 breakpoints fails.
5257
5258 2015-04-01 Pedro Alves <palves@redhat.com>
5259
5260 * infrun.c (wait_for_inferior): Install the
5261 finish_thread_state_cleanup cleanup across the whole function, not
5262 just around handle_inferior_event.
5263
5264 2015-04-01 Pedro Alves <palves@redhat.com>
5265
5266 * infrun.c (resume) <step past permanent breakpoint>: Use
5267 do_target_resume.
5268
5269 2015-04-01 Pedro Alves <palves@redhat.com>
5270
5271 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
5272
5273 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
5274
5275 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
5276
5277 2015-04-01 Pedro Alves <palves@redhat.com>
5278
5279 * linux-thread-db.c (record_thread): Readd the thread to gdb's
5280 list if it was marked exited.
5281
5282 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
5283
5284 * configure: Regenerated.
5285
5286 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
5287 Jan Kratochvil <jan.kratochvil@redhat.com>
5288 Oleg Nesterov <oleg@redhat.com>
5289
5290 PR corefiles/16092
5291 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
5292 New enum identifying the various options of the coredump_filter
5293 file.
5294 (struct smaps_vmflags): New struct.
5295 (use_coredump_filter): New variable.
5296 (decode_vmflags): New function.
5297 (mapping_is_anonymous_p): Likewise.
5298 (dump_mapping_p): Likewise.
5299 (linux_find_memory_regions_full): New variables
5300 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
5301 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
5302 parsing of its information. Implement memory mapping filtering
5303 based on its contents.
5304 (show_use_coredump_filter): New function.
5305 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
5306 * NEWS: Mention the possibility of using the
5307 '/proc/PID/coredump_filter' file when generating a corefile.
5308 Mention new command 'set use-coredump-filter'.
5309
5310 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
5311
5312 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
5313 read_memory_unsigned_integer.
5314
5315 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
5316
5317 * Makefile.in (ZLIB): New.
5318 (ZLIBINC): Likewise.
5319 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
5320 (CLIBS): Add $(ZLIB).
5321 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
5322 Add -lz to LIBS.
5323 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
5324 * top.c (print_gdb_configuration): Remove --with-zlib and
5325 --without-zlib.
5326 * config.in: Regenerated.
5327 * configure: Likewise.
5328
5329 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5330
5331 * NEWS: Mention info os cpus support.
5332 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
5333 (struct osdata_type): Add cpus entry, reorder the entries in
5334 alphabetical order.
5335
5336 2015-03-31 Matthias Klose <doko@ubuntu.com>
5337
5338 * compile/compile.c (compile_to_object): Allow triplets with or
5339 without vendor set.
5340
5341 2015-03-30 Doug Evans <dje@google.com>
5342
5343 PR c++/18141
5344 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
5345 klass in VAR_DOMAIN.
5346
5347 2015-03-30 Gary Benson <gbenson@redhat.com>
5348
5349 * remote.c (remote_mourn_1): Remove function. Update all callers
5350 to use remote_mourn.
5351 (extended_remote_mourn_1): Remove function. Update all callers
5352 to use extended_remote_mourn.
5353 (extended_remote_attach_1): Remove function. Update all callers
5354 to use extended_remote_attach.
5355
5356 2015-03-28 James Bowman <james.bowman@ftdichip.com>
5357
5358 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
5359 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
5360 (ALLDEPFILES): Add ft32-tdep.c.
5361 * configure.tgt: Add FT32 entry.
5362 * ft32-tdep.c: New file, FT32 target-dependent code.
5363 * ft32-tdep.h: New file, FT32 target-dependent code.
5364
5365 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5366
5367 Revert:
5368 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5369 Code cleanup.
5370 * printcmd.c (print_command_1): Move expr variable scope.
5371
5372 2015-03-27 Joel Brobecker <brobecker@adacore.com>
5373
5374 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
5375
5376 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
5377
5378 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
5379 sections.
5380
5381 2015-03-26 Joel Brobecker <brobecker@adacore.com>
5382
5383 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
5384 exception raised while parsing the probe arguments.
5385 Force parsing to be done using the C language parser.
5386 * expression.h (parse_expression_with_language): Declare.
5387 * parse.c (parse_expression_with_language): New function.
5388
5389 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
5390
5391 * MAINTAINERS (Write After Approval): Add "Jon Turney".
5392
5393 2015-03-26 Andy Wingo <wingo@igalia.com>
5394
5395 PR symtab/18148
5396 * dwarf2read.c (struct partial_die_info): Add has_const_value
5397 member.
5398 (add_partial_symbol): Don't punt on symbols that have const_value
5399 attributes.
5400 (read_partial_die): Detect DW_AT_const_value.
5401
5402 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5403
5404 Code cleanup.
5405 * printcmd.c (print_command_1): Move expr variable scope.
5406
5407 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5408
5409 Code cleanup.
5410 * printcmd.c (validate_format): Make the parameter cmdname const.
5411
5412 2015-03-26 Don Breazeal <donb@codesourcery.com>
5413
5414 * remote.c (_initialize_remote): Update comment.
5415
5416 2015-03-26 Pedro Alves <palves@redhat.com>
5417 Jon TURNEY <jon.turney@dronecode.org.uk>
5418
5419 * coffread.c (coff_symfile_read): When constructing the name of an
5420 import stub symbol from import symbol for amd64, only skip the
5421 char after _imp_ if the target is underscored (like i386) and the
5422 char is indeed the target's leading char.
5423
5424 2015-03-25 Pedro Alves <palves@redhat.com>
5425
5426 * target.h <to_async>: Replace 'callback' and 'context' parameters
5427 with boolean 'enable' parameter.
5428 (target_async): Replace CALLBACK and CONTEXT parameters with
5429 boolean ENABLE parameter.
5430 * inf-loop.c (inferior_event_handler): Adjust.
5431 * linux-nat.c (linux_nat_attach, linux_nat_resume)
5432 (linux_nat_resume): Adjust.
5433 (async_client_callback, async_client_context): Delete.
5434 (handle_target_event): Call inferior_event_handler directly.
5435 (linux_nat_async): Replace 'callback' and 'context' parameters
5436 with boolean 'enable' parameter. Adjust. Remove references to
5437 async_client_callback and async_client_context.
5438 (linux_nat_close): Adjust.
5439 * record-btrace.c (record_btrace_async): Replace 'callback' and
5440 'context' parameters with boolean 'enable' parameter. Adjust.
5441 (record_btrace_resume): Adjust.
5442 * record-full.c (record_full_async): Replace 'callback' and
5443 'context' parameters with boolean 'enable' parameter. Adjust.
5444 (record_full_resume, record_full_core_resume): Adjust.
5445 * remote.c (struct remote_state) <async_client_callback,
5446 async_client_context>: Delete fields.
5447 (remote_start_remote, extended_remote_attach_1, remote_resume)
5448 (extended_remote_create_inferior): Adjust.
5449 (remote_async_serial_handler): Call inferior_event_handler
5450 directly.
5451 (remote_async): Replace 'callback' and 'context' parameters with
5452 boolean 'enable' parameter. Adjust.
5453 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
5454 Adjust.
5455 * target-delegates.c: Regenerate.
5456
5457 2015-03-25 Gary Benson <gbenson@redhat.com>
5458 Pedro Alves <palves@redhat.com>
5459
5460 * target.c (fileio_ft_t): New typedef, define object vector.
5461 (fileio_fhandles): New static variable.
5462 (is_closed_fileio_fh): New macro.
5463 (lowest_closed_fd): New static variable.
5464 (acquire_fileio_fd): New function.
5465 (release_fileio_fd): Likewise.
5466 (fileio_fd_to_fh): New macro.
5467 (target_fileio_open): Wrap the file descriptor on success.
5468 (target_fileio_pwrite): Updated to use wrapped file descriptor.
5469 (target_fileio_pread): Likewise.
5470 (target_fileio_close): Likewise.
5471
5472 2015-03-24 Pedro Alves <palves@redhat.com>
5473
5474 * thread.c (thread_apply_all_command): Take exited threads into
5475 account.
5476
5477 2015-03-24 Pedro Alves <palves@redhat.com>
5478
5479 * infrun.c (resume, proceed): Mention
5480 switch_back_to_stepped_thread, not switch_back_to_stepping.
5481
5482 2015-03-24 Pedro Alves <palves@redhat.com>
5483
5484 * infrun.c (user_visible_resume_ptid): Rewrite going from
5485 most-locked to unlocked instead of the opposite. Move comment ...
5486 * infrun.h (user_visible_resume_ptid): ... here.
5487
5488 2015-03-24 Pedro Alves <palves@redhat.com>
5489
5490 * linux-nat.c (linux_nat_resume): Output debug logs before trying
5491 to resume the event lwp. Use the lwp's ptid instead of the passed
5492 in (maybe wildcard) ptid.
5493 (stop_wait_callback): Tweak debug log output.
5494 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
5495 TRAP_TRACE.
5496 (linux_nat_filter_event): In debug output, distinguish a
5497 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
5498 before trying to resume the lwp.
5499
5500 2015-03-24 Joel Brobecker <brobecker@adacore.com>
5501
5502 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
5503 pointer indirection.
5504 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
5505 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
5506
5507 2015-03-24 Joel Brobecker <brobecker@adacore.com>
5508
5509 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
5510 Renames DYN_ATTR_DATA_LOCATION.
5511 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
5512 DYN_ATTR_DATA_LOCATION.
5513 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
5514 instead of DYN_ATTR_DATA_LOCATION.
5515
5516 2015-03-24 Pedro Alves <palves@redhat.com>
5517
5518 * breakpoint.c (until_break_command): Adjust call to proceed.
5519 * gdbthread.h (struct thread_control_state) <stepping_command>:
5520 New field.
5521 * infcall.c (run_inferior_call): Adjust call to proceed.
5522 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
5523 Adjust calls to proceed.
5524 (set_step_frame): Set the current thread's step_start_function
5525 here.
5526 (step_once): Adjust calls to proceed.
5527 (jump_command, signal_command, until_next_command)
5528 (finish_backward, finish_forward, proceed_after_attach_callback)
5529 (attach_command_post_wait): Adjust calls to proceed.
5530 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
5531 (do_target_resume): New function, factored out from ...
5532 (resume): ... here. Remove 'step' parameter. Instead, check
5533 currently_stepping to determine whether the thread should be
5534 single-stepped.
5535 (proceed): Remove 'step' parameter and don't set the thread's
5536 step_start_function here. Adjust call to 'resume'.
5537 (handle_inferior_event): Adjust calls to 'resume'.
5538 (switch_back_to_stepped_thread): Use do_target_resume instead of
5539 'resume'.
5540 (keep_going): Adjust calls to 'resume'.
5541 * infrun.h (proceed): Remove 'step' parameter.
5542 (resume): Likewise.
5543 * windows-nat.c (do_initial_windows_stuff): Adjust call to
5544 'resume'.
5545 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
5546
5547 2015-03-24 Pedro Alves <palves@redhat.com>
5548
5549 * gdbthread.h (struct thread_control_state) <stepping_command>:
5550 New field.
5551 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
5552 the thread's stepping_command field.
5553 * infrun.c (resume): Check the thread's stepping_command flag to
5554 determine which threads should be resumed. Rename 'entry_step'
5555 local to user_step.
5556 (clear_proceed_status_thread): Clear 'stepping_command'.
5557 (schedlock_applies): Change parameter type to struct thread_info
5558 pointer. Adjust.
5559 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
5560 (switch_back_to_stepped_thread): Adjust calls to
5561 'schedlock_applies'.
5562 (_initialize_infrun): Adjust "set scheduler-locking step" help.
5563
5564 2015-03-24 Pedro Alves <palves@redhat.com>
5565
5566 * infrun.c (step_start_function): Delete and ...
5567 * gdbthread.h (struct thread_control_state) <step_start_function>:
5568 ... now a field here.
5569 * infrun.c (clear_proceed_status_thread): Clear the thread's
5570 step_start_function.
5571 (proceed, process_event_stop_test, print_stop_event): Adjust.
5572
5573 2015-03-24 Pedro Alves <palves@redhat.com>
5574
5575 * infrun.c (proceed): No longer handle negative step.
5576
5577 2015-03-24 Gary Benson <gbenson@redhat.com>
5578
5579 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
5580 (x86_linux_prepare_to_resume): Likewise.
5581 * x86-linux-nat.c (x86_linux_new_thread):
5582 Moved to nat/x86-linux.c.
5583 (x86_linux_prepare_to_resume): Likewise.
5584 * nat/x86-linux.c (x86_linux_new_thread): New function.
5585 (x86_linux_prepare_to_resume): Likewise.
5586
5587 2015-03-24 Gary Benson <gbenson@redhat.com>
5588
5589 * nat/x86-linux-dregs.h: New file.
5590 * nat/x86-linux-dregs.c: Likewise.
5591 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
5592 (x86-linux-dregs.o): New rule.
5593 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
5594 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5595 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
5596 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
5597 (x86_linux_dr_get): Likewise.
5598 (x86_linux_dr_set): Likewise.
5599 (x86_linux_dr_get_addr): Likewise.
5600 (x86_linux_dr_get_control): Likewise.
5601 (x86_linux_dr_get_status): Likewise.
5602 (update_debug_registers_callback): Likewise.
5603 (x86_linux_dr_set_control): Likewise.
5604 (x86_linux_dr_set_addr): Likewise.
5605 (x86_linux_update_debug_registers): Likewise.
5606
5607 2015-03-24 Gary Benson <gbenson@redhat.com>
5608
5609 * x86-linux-nat.c (x86_linux_update_debug_registers):
5610 New function, factored out from...
5611 (x86_linux_prepare_to_resume): ...this.
5612
5613 2015-03-24 Gary Benson <gbenson@redhat.com>
5614
5615 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
5616 (x86_linux_dr_set): Likewise.
5617 (x86_linux_dr_get_addr): Likewise.
5618 (x86_linux_dr_get_control): Likewise.
5619 (x86_linux_dr_get_status): Likewise.
5620 (update_debug_registers_callback): Likewise.
5621 (x86_linux_dr_set_control): Likewise.
5622 (x86_linux_dr_set_addr): Likewise.
5623 (x86_linux_prepare_to_resume): Likewise.
5624 (x86_linux_new_thread): Likewise.
5625
5626 2015-03-24 Gary Benson <gbenson@redhat.com>
5627
5628 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
5629 (x86_linux_new_thread): Rename argument.
5630
5631 2015-03-24 Gary Benson <gbenson@redhat.com>
5632
5633 * nat/x86-linux.h: New file.
5634 * nat/x86-linux.c: Likewise.
5635 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
5636 (x86-linux.o): New rule.
5637 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
5638 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5639 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
5640 (lwp_set_arch_private_info): New declaration.
5641 (lwp_arch_private_info): Likewise.
5642 * linux-nat.c (lwp_set_arch_private_info): New function.
5643 (lwp_arch_private_info): Likewise.
5644 * x86-linux-nat.c: Include nat/x86-linux.h.
5645 (arch_lwp_info): Removed structure.
5646 (update_debug_registers_callback):
5647 Use lwp_set_debug_registers_changed.
5648 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
5649 and lwp_set_debug_registers_changed.
5650 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
5651
5652 2015-03-24 Gary Benson <gbenson@redhat.com>
5653
5654 * nat/linux-nat.h (ptid_of_lwp): New declaration.
5655 (lwp_is_stopped): Likewise.
5656 (lwp_stop_reason): Likewise.
5657 * linux-nat.c (ptid_of_lwp): New function.
5658 (lwp_is_stopped): Likewise.
5659 (lwp_is_stopped_by_watchpoint): Likewise.
5660 * x86-linux-nat.c (update_debug_registers_callback):
5661 Use lwp_is_stopped.
5662 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
5663 lwp_stop_reason.
5664
5665 2015-03-24 Gary Benson <gbenson@redhat.com>
5666
5667 * linux-nat.h (linux_stop_lwp): Move declaration to...
5668 * nat/linux-nat.h (linux_stop_lwp): New declaration.
5669
5670 2015-03-24 Gary Benson <gbenson@redhat.com>
5671
5672 * linux-nat.h: Include nat/linux-nat.h.
5673 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
5674 * nat/linux-nat.h (struct lwp_info): New forward declaration.
5675 (iterate_over_lwps_ftype): New typedef.
5676 (iterate_over_lwps): New declaration.
5677 * linux-nat.h (iterate_over_lwps): Update comment. Use
5678 iterate_over_lwps_ftype. Update callback return value check.
5679
5680 2015-03-24 Gary Benson <gbenson@redhat.com>
5681
5682 * x86-nat.h (x86_debug_reg_state): Move declaration to...
5683 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
5684
5685 2015-03-24 Gary Benson <gbenson@redhat.com>
5686
5687 * nat/linux-nat.h (current_lwp_ptid): New declaration.
5688 * linux-nat.c (current_lwp_ptid): New function.
5689 * x86-linux-nat.c: Include nat/linux-nat.h.
5690 (x86_linux_dr_get_addr): Use current_lwp_ptid.
5691 (x86_linux_dr_get_control): Likewise.
5692 (x86_linux_dr_get_status): Likewise.
5693 (x86_linux_dr_set_control): Likewise.
5694 (x86_linux_dr_set_addr): Likewise.
5695
5696 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
5697
5698 PR breakpoints/16466
5699 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
5700
5701 2015-03-23 Joel Brobecker <brobecker@adacore.com>
5702
5703 * ser-mingw.c (ser_windows_setparity): Fix indentation.
5704 * ser-unix.c (hardwire_setparity): Likewise.
5705
5706 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
5707
5708 * NEWS: Mention set/show serial parity command.
5709 * monitor.c (monitor_open): Call serial_setparity.
5710 * remote.c (remote_open_1): Likewise.
5711 * ser-base.c (ser_base_serparity): New function.
5712 * ser-base.h (ser_base_setparity): Add declaration.
5713 * ser-go32.c (dos_ops): Set "setparity" field.
5714 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
5715 state.Parity.
5716 (ser_windows_setparity): New function.
5717 (hardwire_ops): Add ser_windows_setparity.
5718 (tty_ops): Add NULL for setparity field.
5719 (pipe_ops): Add ser_base_setparity.
5720 (tcp_ops): Likewise.
5721 * ser-pipe.c (pipe_ops): Likewise.
5722 * ser-tcp.c (tcp_ops): Likewise.
5723 * ser-unix.c (hardwire_setparity): Add declaration.
5724 (hardwire_raw): Don't reset PARENB flag.
5725 (hardwire_setparity): New function.
5726 (hardwire_ops): Add hardwire_setparity.
5727 * serial.c (serial_setparity): New function.
5728 (serial_parity): New global.
5729 (parity_none, parity_odd, parity_even, parity_enums, parity):
5730 New static globals.
5731 (set_parity): New function.
5732 (_initialize_serial): Add set/show serial parity commands.
5733 * serial.h (GDBPARITY_NONE): Define.
5734 (GDBPARITY_ODD): Define.
5735 (GDBPARITY_EVEN): Define.
5736 (serial_setparity) Add declaration.
5737 (struct serial_ops): Add setparity field.
5738 * target.h (serial_parity): Add declaration.
5739
5740 2015-03-23 Keith Seitz <keiths@redhat.com>
5741
5742 * linespec.c (linespec_lexer_lex_keyword): Update comment.
5743
5744 2015-03-23 Keith Seitz <keiths@redhat.com>
5745
5746 * breakpoint.c (parse_breakpoint_sals): Use
5747 linespec_lexer_lex_keyword to ascertain if the user specified
5748 a NULL location.
5749 * linespec.c [IF_KEYWORD_INDEX]: Define.
5750 (linespec_lexer_lex_keyword): Export.
5751 (struct ls_parser) <keyword_ok>: Remove.
5752 A keyword is only a keyword if not followed by another keyword.
5753 (linespec_lexer_lex_one): Remove keyword_ok handling.
5754 Add comment explaining why the parsing stream is not advanced
5755 when a keyword is seen.
5756 (parse_linespec): Remove parser->keyword_ok.
5757 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
5758
5759 2015-03-23 Keith Seitz <keiths@redhat.com>
5760
5761 PR gdb/18021
5762 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
5763 if we find a static method with DW_AT_vtable_elem_location.
5764
5765 2015-03-21 Eli Zaretskii <eliz@gnu.org>
5766
5767 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
5768 before the second loop, to avoid undefined behavior. Reported by
5769 Anton Blanchard <anton@samba.org>.
5770
5771 2015-03-20 Keven Boell <keven.boell@intel.com>
5772
5773 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
5774 data_location usage to linked list.
5775 (resolve_dynamic_type_internal): Adapt data_location to
5776 linked list.
5777 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
5778 (copy_type_recursive, copy_type): Add copy of linked list.
5779 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
5780 (struct dynamic_prop_list): New struct.
5781 * dwarf2read.c (set_die_type): Set data_location data.
5782
5783 2015-03-20 Pedro Alves <palves@redhat.com>
5784
5785 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
5786 inner block and make it const.
5787 * machoread.c (get_archive_prefix_len): Make "lparen" const.
5788
5789 2015-03-20 Pedro Alves <palves@redhat.com>
5790
5791 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
5792 * breakpoint.h (set_breakpoint_condition): Update declaration.
5793
5794 2015-03-20 Pedro Alves <palves@redhat.com>
5795
5796 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
5797
5798 2015-03-20 Pedro Alves <palves@redhat.com>
5799
5800 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
5801
5802 2015-03-20 Pedro Alves <palves@redhat.com>
5803
5804 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
5805
5806 2015-03-20 Pedro Alves <palves@redhat.com>
5807
5808 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
5809 (nto_init_solib_absolute_prefix): Likewise.
5810
5811 2015-03-20 Pedro Alves <palves@redhat.com>
5812
5813 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
5814 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
5815
5816 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5817
5818 * config/djgpp/README: Remove gdb.hp.
5819
5820 2015-03-20 Yao Qi <yao.qi@linaro.org>
5821
5822 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
5823 set_gdbarch_cannot_step_breakpoint.
5824
5825 2015-03-19 Pedro Alves <palves@redhat.com>
5826
5827 * linux-nat.c (linux_resume_one_lwp): Rename to ...
5828 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
5829 instead call perror_with_name.
5830 (check_ptrace_stopped_lwp_gone): New function.
5831 (linux_resume_one_lwp): Reimplement as wrapper around
5832 linux_resume_one_lwp_throw that swallows errors if the LWP is
5833 gone.
5834 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
5835 swallows errors if the LWP is gone. Use
5836 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
5837
5838 2015-03-19 Pedro Alves <palves@redhat.com>
5839
5840 * linux-nat.c (status_callback): Return early if the LWP has no
5841 status pending.
5842
5843 2015-03-19 Pedro Alves <palves@redhat.com>
5844
5845 * linux-nat.c (select_event_lwp_callback): Update comment to no
5846 longer mention SIGTRAP.
5847
5848 2015-03-18 Tristan Gingold <gingold@adacore.com>
5849
5850 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
5851 redirection code to ...
5852 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
5853 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
5854
5855 2015-03-18 Gary Benson <gbenson@redhat.com>
5856
5857 (remote_protocol_features): Remove the "vFile:fstat" feature.
5858 (remote_hostio_fstat): Probe for "vFile:fstat" support.
5859
5860 2015-03-11 Yao Qi <yao.qi@linaro.org>
5861
5862 PR tdep/18107
5863 * aarch64-linux-tdep.c: Include xml-syscall.h
5864 (aarch64_linux_get_syscall_number): New function.
5865 (aarch64_linux_init_abi): Call
5866 set_gdbarch_get_syscall_number.
5867 * syscalls/aarch64-linux.xml: New file.
5868
5869 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
5870
5871 * ser-base.h (ser_base_setstopbits): Change second argument name
5872 from "rate" to "num".
5873
5874 2015-03-17 Gary Benson <gbenson@redhat.com>
5875 Luke Allardyce <lukeallardyce@gmail.com>
5876
5877 PR gdb/18131
5878 * common/common-remote-fileio.h (sys/stat.h): New include.
5879 (stuct stat): Remove forward declaration.
5880
5881 2015-03-16 John Baldwin <jhb@FreeBSD.org>
5882
5883 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
5884 before writing core register notes.
5885
5886 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
5887 Pedro Alves <palves@redhat.com>
5888
5889 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
5890 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
5891 (tgoto): Wrap with extern "C".
5892
5893 2015-03-16 Pedro Alves <palves@redhat.com>
5894 Yuanhui Zhang <asmwarrior@gmail.com>
5895
5896 * stub-termcap.c (tputs): Change prototype.
5897
5898 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
5899 Pedro Alves <palves@redhat.com>
5900
5901 * windows-nat.c (struct thread_info_struct): Rename to ...
5902 (struct windows_thread_info_struct): ... this.
5903 (thread_info): Rename to ...
5904 (windows_thread_info): ... this.
5905 All users updated.
5906
5907 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5908 Pedro Alves <palves@redhat.com>
5909
5910 * NEWS: New Removed targets and native configurations.
5911
5912 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5913
5914 Remove HPUX.
5915 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
5916 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
5917 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
5918 ia64-hpux-tdep.h, solib-ia64-hpux.h.
5919 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
5920 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
5921 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
5922 hppa-hpux-tdep.c.
5923 * config/ia64/hpux.mh: Remove file.
5924 * config/pa/hpux.mh: Remove file.
5925 * configure: Rebuilt.
5926 * configure.ac (dlgetmodinfo, somread.o): Remove.
5927 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
5928 (ia64-*-hpux*): Remove its float format exception.
5929 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
5930 * hppa-hpux-nat.c: Remove file.
5931 * hppa-hpux-tdep.c: Remove file.
5932 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
5933 Move them here from hppa-tdep.h
5934 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
5935 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
5936 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
5937 Move them to hppa-tdep.c.
5938 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
5939 declarations.
5940 * ia64-hpux-nat.c: Remove file.
5941 * ia64-hpux-tdep.c: Remove file.
5942 * ia64-hpux-tdep.h: Remove file.
5943 * inf-ttrace.c: Remove file.
5944 * inf-ttrace.h: Remove file.
5945 * solib-ia64-hpux.c: Remove file.
5946 * solib-ia64-hpux.h: Remove file.
5947 * solib-pa64.c: Remove file.
5948 * solib-pa64.h: Remove file.
5949 * solib-som.c: Remove file.
5950 * solib-som.h: Remove file.
5951 * somread.c: Remove file.
5952
5953 2015-03-13 John Baldwin <jhb@FreeBSD.org>
5954
5955 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
5956 * config.in: Regenerate.
5957 * configure: Regenerate.
5958 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
5959 define.
5960 (fbsd_find_memory_regions): Use kinfo_getvmmap to
5961 enumerate memory regions if present.
5962
5963 2015-03-13 John Baldwin <jhb@FreeBSD.org>
5964
5965 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
5966 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
5967 expressions.
5968 (i386fbsd_sigtramp_p): Likewise.
5969
5970 2015-03-12 John Baldwin <jhb@FreeBSD.org>
5971
5972 * MAINTAINERS (Write After Approval): Add John Baldwin.
5973
5974 2015-03-12 Gary Benson <gbenson@redhat.com>
5975
5976 * solib.c (_initialize_solib): Make "set/show sysroot" use
5977 add_setshow_optional_filename_cmd so it can be restored to
5978 empty after being set.
5979
5980 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
5981
5982 * Makefile.in (SFILES): New source break-catch-syscall.c.
5983 (COMMON_OBS): New object break-catch-syscall.o.
5984 * break-catch-syscall.c: New file.
5985 * breakpoint.c: Remove inclusion of "xml-syscall.h".
5986 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
5987 (struct syscall_catchpoint): Likewise.
5988 (dtor_catch_syscall): Likewise.
5989 (catch_syscall_inferior_data): Likewise.
5990 (struct catch_syscall_inferior_data): Likewise.
5991 (get_catch_syscall_inferior_data): Likewise.
5992 (catch_syscall_inferior_data_cleanup): Likewise.
5993 (insert_catch_syscall): Likewise.
5994 (remove_catch_syscall): Likewise.
5995 (breakpoint_hit_catch_syscall): Likewise.
5996 (print_it_catch_syscall): Likewise.
5997 (print_one_catch_syscall): Likewise.
5998 (print_mention_catch_syscall): Likewise.
5999 (print_recreate_catch_syscall): Likewise.
6000 (catch_syscall_breakpoint_ops): Likewise.
6001 (syscall_catchpoint_p): Likewise.
6002 (create_syscall_event_catchpoint): Likewise.
6003 (catch_syscall_split_args): Likewise.
6004 (catch_syscall_command_1): Likewise.
6005 (is_syscall_catchpoint_enabled): Likewise.
6006 (catch_syscall_enabled): Likewise.
6007 (catching_syscall_number): Likewise.
6008 (catch_syscall_completer): Likewise.
6009 (clear_syscall_counts): Likewise.
6010 (initialize_breakpoint_ops): Move initialization of syscall
6011 catchpoints to break-catch-syscall.c.
6012 (_initialize_breakpoint): Move code related to syscall catchpoints
6013 to break-catch-syscall.c.
6014
6015 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
6016
6017 * breakpoint.c (breakpoint_find_if): New function.
6018 * breakpoint.h (breakpoint_find_if): New prototype.
6019
6020 2015-03-11 Gary Benson <gbenson@redhat.com>
6021
6022 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
6023 * remote-fileio.c (remote_fileio_to_host_uint): New function.
6024 (remote_fileio_to_host_ulong): Likewise.
6025 (remote_fileio_to_host_mode): Likewise.
6026 (remote_fileio_to_host_time): Likewise.
6027 (remote_fileio_to_host_stat): Likewise.
6028 * remote.c (PACKET_vFile_fstat): New enum value.
6029 (remote_protocol_features): Register the "vFile:fstat" feature.
6030 (remote_hostio_fstat): New function.
6031 (remote_bfd_iovec_stat): Use the above.
6032 (_initialize_remote): Register new "set/show remote
6033 hostio-fstat-packet" command.
6034 * symfile.c (separate_debug_file_exists): Update comment.
6035 * NEWS: Announce new vFile:fstat packet.
6036
6037 2015-03-11 Gary Benson <gbenson@redhat.com>
6038
6039 * common/common-remote-fileio.h: New file.
6040 * common/common-remote-fileio.c: Likewise.
6041 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6042 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
6043 (COMMON_OBS): Add common-remote-fileio.o.
6044 (common-remote-fileio.o): New rule.
6045 * remote-fileio.h (common-remote-fileio.h): New include.
6046 * remote-fileio.c (gdb/fileio.h): Do not include.
6047 (remote_fileio_to_be): Moved to common-remote-fileio.h.
6048 (remote_fileio_to_fio_uint): Likewise.
6049 (remote_fileio_to_fio_time): Likewise.
6050 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
6051 (remote_fileio_to_fio_mode): Likewise.
6052 (remote_fileio_to_fio_ulong): Likewise.
6053 (remote_fileio_to_fio_stat): Likewise.
6054
6055 2015-03-11 Andy Wingo <wingo@igalia.com>
6056
6057 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
6058 we were checking the cached type, not the cached dynamic type.
6059
6060 2015-03-11 Andy Wingo <wingo@igalia.com>
6061
6062 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
6063 other strings, as these are on the GC'd heap, and will be
6064 collected along with the smob.
6065
6066 2015-03-11 Andy Wingo <wingo@igalia.com>
6067
6068 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
6069 (objfile_functions): Bind gdbscm_objfile_progspace to
6070 objfile-progspace.
6071 * guile/lib/gdb.scm: Add objfile-progspace to exports.
6072
6073 2015-03-11 Andy Wingo <wingo@igalia.com>
6074
6075 * guile/guile.c (_initialize_guile): Disable automatic
6076 finalization, if Guile offers us that possibility.
6077 * guile/guile.c (call_initialize_gdb_module):
6078 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
6079 finalizers in appropriate places.
6080 * configure.ac (AC_TRY_LIBGUILE): Add a check for
6081 scm_set_automatic_finalization_enabled.
6082 * configure: Regenerated.
6083
6084 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
6085
6086 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
6087 SAL, if possible.
6088
6089 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
6090
6091 * s390-linux-nat.c (struct arch_lwp_info): New.
6092 (s390_fix_watch_points): Rename to...
6093 (s390_prepare_to_resume): ...this. Skip the PER info update
6094 unless the watch points have changed.
6095 (s390_refresh_per_info, s390_new_thread): New functions.
6096 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
6097 s390_fix_watch_points.
6098 (s390_remove_watchpoint): Likewise.
6099 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
6100 Register s390_prepare_to_resume.
6101
6102 2015-03-09 Pedro Alves <palves@redhat.com>
6103
6104 Revert:
6105 2015-03-07 Pedro Alves <palves@redhat.com>
6106 * common/gdb_socket.h: New file.
6107 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
6108 sys/socket.h.
6109 (net_open): Use union gdb_sockaddr_u.
6110
6111 2015-03-07 Pedro Alves <palves@redhat.com>
6112
6113 * configure.ac (build_warnings): Move -Wmissing-prototypes
6114 -Wdeclaration-after-statement -Wmissing-parameter-type
6115 -Wold-style-declaration -Wold-style-definition to the C-specific
6116 set.
6117 * configure: Regenerate.
6118
6119 2015-03-07 Pedro Alves <palves@redhat.com>
6120
6121 * common/gdb_socket.h: New file.
6122 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
6123 sys/socket.h.
6124 (net_open): Use union gdb_sockaddr_u.
6125
6126 2015-03-07 Pedro Alves <palves@redhat.com>
6127
6128 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
6129 (exceptions_state_mc_action_iter)
6130 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
6131 Don't define.
6132 [__cplusplus] (try_scope_depth): New global.
6133 [__cplusplus] (exception_try_scope_entry)
6134 (exception_try_scope_exit, gdb_exception_sliced_copy)
6135 (exception_rethrow): New functions.
6136 (throw_exception): In C++ mode, throw
6137 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
6138 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
6139 (throw_it): In C++ mode, use try_scope_depth.
6140 * common/common-exceptions.h [!__cplusplus]
6141 (exceptions_state_mc_action_iter)
6142 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
6143 Don't declare.
6144 [__cplusplus] (exception_try_scope_entry)
6145 (exception_try_scope_exit, exception_rethrow): Declare.
6146 [__cplusplus] (struct exception_try_scope): New struct.
6147 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
6148 C++ exceptions.
6149 (struct gdb_exception_RETURN_MASK_ALL)
6150 (struct gdb_exception_RETURN_MASK_ERROR)
6151 (struct gdb_exception_RETURN_MASK_QUIT): New types.
6152
6153 2015-03-07 Pedro Alves <palves@redhat.com>
6154
6155 * main.c (handle_command_errors): Remove volatile qualifier from
6156 parameter.
6157
6158 2015-03-07 Pedro Alves <palves@redhat.com>
6159
6160 * breakpoint.c (save_breakpoints): Adjust to avoid code between
6161 TRY and CATCH.
6162 * gdbtypes.c (safe_parse_type): Remove empty line.
6163 (types_deeply_equal):
6164 * guile/scm-frame.c (gdbscm_frame_name):
6165 * linux-thread-db.c (find_new_threads_once):
6166 * python/py-breakpoint.c (bppy_get_commands):
6167 * record-btrace.c (record_btrace_insert_breakpoint)
6168 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
6169 (record_btrace_start_replaying): Adjust to avoid code between TRY
6170 and CATCH.
6171
6172 2015-03-07 Pedro Alves <palves@redhat.com>
6173
6174 * common/common-exceptions.c (struct catcher) <exception>: No
6175 longer a pointer to volatile exception. Now an exception value.
6176 <mask>: Delete field.
6177 (exceptions_state_mc_init): Remove all parameters. Adjust.
6178 (exceptions_state_mc): No longer pop the catcher here.
6179 (exceptions_state_mc_catch): New function.
6180 (throw_exception): Adjust.
6181 * common/common-exceptions.h (exceptions_state_mc_init): Remove
6182 all parameters.
6183 (exceptions_state_mc_catch): Declare.
6184 (TRY_CATCH): Rename to ...
6185 (TRY): ... this. Remove EXCEPTION and MASK parameters.
6186 (CATCH, END_CATCH): New.
6187 All callers adjusted.
6188
6189 2015-03-07 Tom Tromey <tromey@redhat.com>
6190
6191 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
6192
6193 2015-03-07 Pedro Alves <palves@redhat.com>
6194
6195 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6196 (amd64_epilogue_frame_cache): Normal exception handling code.
6197 * break-catch-throw.c (check_status_exception_catchpoint)
6198 (re_set_exception_catchpoint): Ditto.
6199 * cli/cli-interp.c (safe_execute_command):
6200 * cli/cli-script.c (script_from_file): Ditto.
6201 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
6202 Ditto.
6203 * compile/compile-object-run.c (compile_object_run): Ditto.
6204 * cp-abi.c (baseclass_offset): Ditto.
6205 * cp-valprint.c (cp_print_value): Ditto.
6206 * exceptions.c (catch_exceptions_with_msg):
6207 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
6208 * frame.c (get_frame_address_in_block_if_available): Ditto.
6209 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6210 (i386_sigtramp_frame_cache): Ditto.
6211 * infcmd.c (post_create_inferior): Ditto.
6212 * linespec.c (parse_linespec, find_linespec_symbols):
6213 * p-valprint.c (pascal_object_print_value): Ditto.
6214 * parse.c (parse_expression_for_completion): Ditto.
6215 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6216 * remote.c (remote_get_noisy_reply): Ditto.
6217 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
6218 * solib-svr4.c (solib_svr4_r_map): Ditto.
6219
6220 2015-03-06 Gary Benson <gbenson@redhat.com>
6221
6222 * common/common-utils.h (startswith): New inline function.
6223 All places where this logic was used updated to use the above.
6224
6225 2015-03-05 Pedro Alves <palves@redhat.com>
6226
6227 PR gdb/18002
6228 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
6229 after reading the breakpoint's shadow memory.
6230
6231 2015-03-05 Mark Kettenis <kettenis@gnu.org>
6232
6233 * hppabsd-nat.c: Remove file.
6234 * hppaobsd-nat.c: New file.
6235 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
6236 hppaobsd-nat.c.
6237 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
6238 hppaobsd-nat.o.
6239
6240 2015-03-04 Pedro Alves <palves@redhat.com>
6241
6242 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
6243 (target_decr_pc_after_break): Delete declaration.
6244 * target.c (default_target_decr_pc_after_break)
6245 (target_decr_pc_after_break): Delete.
6246 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
6247 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
6248 * linux-thread-db.c (check_event): Likewise.
6249 * infrun.c (adjust_pc_after_break): Likewise.
6250 * darwin-nat.c (cancel_breakpoint): Likewise.
6251 * aix-thread.c (aix_thread_wait): Likewise.
6252 * target-delegates.c: Regenerate.
6253
6254 2015-03-04 Pedro Alves <palves@redhat.com>
6255
6256 * linux-nat.c (save_sigtrap): Check for breakpoints before
6257 checking watchpoints.
6258 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6259 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
6260 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
6261 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
6262 (linux_nat_stopped_by_sw_breakpoint)
6263 (linux_nat_supports_stopped_by_sw_breakpoint)
6264 (linux_nat_stopped_by_hw_breakpoint)
6265 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
6266 (linux_nat_wait_1): Don't re-increment the PC if relying on
6267 SIGTRAP's siginfo->si_code.
6268 (linux_nat_add_target): Install new target methods.
6269 * linux-thread-db.c (check_event): Don't account for breakpoint PC
6270 offset if the target already adjusted the PC.
6271 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
6272 (GDB_ARCH_TRAP_BRKPT): New.
6273 (TRAP_HWBKPT): Define if not already defined.
6274
6275 2015-03-04 Pedro Alves <palves@redhat.com>
6276
6277 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
6278 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
6279 Delete field.
6280 <stop_reason>: New field.
6281 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
6282 (packet_set_cmd_state): New function.
6283 (remote_protocol_features): Register the "swbreak" and "hwbreak"
6284 features.
6285 (remote_query_supported): If not disabled with the corresponding
6286 "set remote foo-packet" command, report support for the swbreak
6287 and hwbreak features.
6288 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
6289 field.
6290 <stop_reason>: New field.
6291 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
6292 (remote_wait_as): Adjust.
6293 (remote_stopped_by_sw_breakpoint)
6294 (remote_supports_stopped_by_sw_breakpoint)
6295 (remote_stopped_by_hw_breakpoint)
6296 (remote_supports_stopped_by_hw_breakpoint): New functions.
6297 (remote_stopped_by_watchpoint): New function.
6298 (init_remote_ops): Install them.
6299 (_initialize_remote): Register new "set/show remote
6300 swbreak-feature-packet" and "set/show remote
6301 swbreak-feature-packet" commands.
6302
6303 2015-03-04 Pedro Alves <palves@redhat.com>
6304
6305 * btrace.h: Include target/waitstatus.h.
6306 (struct btrace_thread_info) <stop_reason>: New field.
6307 * record-btrace.c (record_btrace_step_thread): Use
6308 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
6309 (record_btrace_decr_pc_after_break): Delete.
6310 (record_btrace_stopped_by_sw_breakpoint)
6311 (record_btrace_supports_stopped_by_sw_breakpoint)
6312 (record_btrace_stopped_by_hw_breakpoint)
6313 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
6314 (init_record_btrace_ops): Install them.
6315 * record-full.c (record_full_hw_watchpoint): Delete and replace
6316 with ...
6317 (record_full_stop_reason): ... this throughout.
6318 (record_full_exec_insn): Adjust.
6319 (record_full_wait_1): Adjust. No longer re-increment the PC.
6320 (record_full_wait_1): Adjust. Use
6321 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
6322 (record_full_stopped_by_watchpoint): Adjust.
6323 (record_full_stopped_by_sw_breakpoint)
6324 (record_full_supports_stopped_by_sw_breakpoint)
6325 (record_full_supports_stopped_by_sw_breakpoint)
6326 (record_full_stopped_by_hw_breakpoint)
6327 (record_full_supports_stopped_by_hw_breakpoint): New functions.
6328 (init_record_full_ops, init_record_full_core_ops): Install them.
6329 * record.c (record_check_stopped_by_breakpoint): New function.
6330 * record.h: Include target/waitstatus.h.
6331 (record_check_stopped_by_breakpoint): New declaration.
6332
6333 2015-03-04 Pedro Alves <palves@redhat.com>
6334
6335 enum lwp_stop_reason -> enum target_stop_reason
6336 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
6337 (linux_nat_stopped_by_watchpoint, status_callback)
6338 (linux_nat_wait_1): Adjust.
6339 * linux-nat.h (enum lwp_stop_reason): Delete.
6340 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6341 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
6342 * target/waitstatus.h (enum target_stop_reason): New.
6343
6344 2015-03-04 Pedro Alves <palves@redhat.com>
6345
6346 * breakpoint.c (need_moribund_for_location_type): New function.
6347 (bpstat_stop_status): Don't skipping checking moribund locations
6348 of breakpoint types which the target tell caused a stop.
6349 (program_breakpoint_here_p): New function, factored out from ...
6350 (bp_loc_is_permanent): ... this.
6351 (update_global_location_list): Don't create a moribund location if
6352 the target supports reporting stops of the type of the removed
6353 breakpoint.
6354 * breakpoint.h (program_breakpoint_here_p): New declaration.
6355 * infrun.c (adjust_pc_after_break): Return early if the target has
6356 already adjusted the PC. Add comments.
6357 (handle_signal_stop): If nothing explains a signal, and the target
6358 tells us the stop was caused by a software breakpoint, check if
6359 there's a breakpoint instruction in the memory. If so, adjust the
6360 PC before presenting the stop to the user. Otherwise, ignore the
6361 trap. If nothing explains a signal, and the target tells us the
6362 stop was caused by a hardware breakpoint, ignore the trap.
6363 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
6364 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
6365 to_supports_stopped_by_hw_breakpoint>: New fields.
6366 (target_stopped_by_sw_breakpoint)
6367 (target_supports_stopped_by_sw_breakpoint)
6368 (target_stopped_by_hw_breakpoint)
6369 (target_supports_stopped_by_hw_breakpoint): Define.
6370 * target-delegates.c: Regenerate.
6371
6372 2015-03-04 Pedro Alves <palves@redhat.com>
6373
6374 * infrun.c (follow_fork_inferior): Use the whole of the
6375 inferior_ptid and pending_follow.related_pid ptids instead of
6376 building ptids from the process components. Adjust verbose output
6377 to use target_pid_to_str.
6378 * linux-nat.c (linux_child_follow_fork): Use the whole of the
6379 inferior_ptid and pending_follow.related_pid ptids instead of
6380 building ptids from the process components.
6381
6382 2015-03-04 Mark Kettenis <kettenis@gnu.org>
6383
6384 * inf-ptrace.c [PT_GET_PROCESS_STATE]
6385 (inf_ptrace_insert_fork_catchpoint): New function.
6386 (inf_ptrace_remove_fork_catchpoint): New function.
6387 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
6388
6389 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6390
6391 * s390-linux-tdep.c (s390_register_name): Return empty string
6392 instead of NULL for registers that shouldn't be visible.
6393
6394 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6395
6396 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
6397 XML file for 64-bit targets.
6398
6399 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * target.h (find_default_create_inferior): Remove declaration.
6402 (find_default_attach): Likewise.
6403
6404 2015-03-03 Pedro Alves <palves@redhat.com>
6405
6406 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
6407 Use ptid_get_pid to get the overall process id when resuming all
6408 threads.
6409
6410 2015-03-03 Pedro Alves <palves@redhat.com>
6411
6412 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
6413 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
6414 * inf-ptrace.c (get_ptrace_pid): New function.
6415 (inf_ptrace_resume): Use it.
6416 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
6417 to the lower layer.
6418
6419 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6420
6421 * nat/linux-btrace.c: Include sys/utsname.h.
6422 (linux_determine_kernel_ptr_bits): New.
6423 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
6424 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
6425 ptr_bits.
6426
6427 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6428
6429 * btrace.c (ftrace_update_function): Treat return as tailcall for
6430 "_dl_runtime_resolve".
6431
6432 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
6433
6434 * btrace.h (btrace_function) <lbegin, lend>: Remove.
6435 * btrace.c (ftrace_debug): Do not print the line range.
6436 (ftrace_skip_file, ftrace_update_lines): Remove.
6437 (ftrace_new_function): Remove lbegin and lend initialization.
6438 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
6439 * record-btrace.c (btrace_compute_src_line_range): New.
6440 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
6441
6442 2015-03-02 Pedro Alves <palves@redhat.com>
6443
6444 * infrun.c (follow_exec): Delete all threads of the process except
6445 the event thread. Extended comments.
6446
6447 2015-03-02 Joel Brobecker <brobecker@adacore.com>
6448
6449 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
6450
6451 2015-03-02 Joel Brobecker <brobecker@adacore.com>
6452
6453 * utils.h: Remove <stdbool.h> #include.
6454 (producer_is_gcc): Change return type to "int".
6455 * utils.c (producer_is_gcc): Change return type to int.
6456 Return 1 instead of true, and 0 instead of false.
6457 Adjust function documentation accordingly.
6458
6459 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6460
6461 * s390-linux-nat.c (have_regset_vxrs): New static variable.
6462 (s390_linux_fetch_inferior_registers): Handle vector registers, if
6463 present.
6464 (s390_linux_store_inferior_registers): Likewise.
6465 (s390_get_hwcap): Remove function. Embed its logic...
6466 (s390_read_description): ...here. Yield a target description with
6467 vector registers if applicable.
6468 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
6469 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
6470 "features/s390x-tevx-linux64.c".
6471 (struct gdbarch_tdep) <v0_full_regnum>: New field.
6472 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
6473 for "GNU/Linux-specific registers".
6474 (s390_dwarf_reg_r0l): New enum value.
6475 (s390_dwarf_reg_to_regnum): Support vector registers.
6476 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
6477 of GPR lower halves.
6478 (regnum_is_vxr_full): New function.
6479 (s390_register_name): New function.
6480 (s390_pseudo_register_name): Handle v0-v15, which are composed of
6481 f0-f15 and v0l-v15l.
6482 (s390_pseudo_register_type): Likewise.
6483 (s390_pseudo_register_read): Likewise.
6484 (s390_pseudo_register_write): Likewise.
6485 (s390_value_from_register): Account for the fact that values are
6486 placed left-justified in vector registers.
6487 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
6488 the vector reggroup and omit them from the general reggroup.
6489 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
6490 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
6491 (s390_iterate_over_regset_sections): Add iterations for the two
6492 new vector regsets.
6493 (s390_core_read_description): Yield a target description with
6494 vector registers if applicable.
6495 (s390_gdbarch_init): Handle target descriptions with vector
6496 registers. Add "register_name" gdbarch method.
6497 (_initialize_s390_tdep): Call new tdesc initialization functions.
6498 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
6499 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
6500 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
6501 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
6502 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
6503 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
6504 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
6505 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
6506 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
6507 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
6508 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
6509 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
6510 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
6511 (S390_NUM_REGS): Adjust value.
6512 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
6513 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6514 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
6515 * NEWS: Announce S/390 vector register support.
6516
6517 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6518
6519 * features/s390-tevx-linux64.xml: New file.
6520 * features/s390-vx-linux64.xml: New file.
6521 * features/s390-vx.xml: New file.
6522 * features/s390x-tevx-linux64.xml: New file.
6523 * features/s390x-vx-linux64.xml: New file.
6524 * features/Makefile (WHICH): Add s390-vx-linux64,
6525 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
6526 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
6527 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
6528 macros.
6529 * features/s390-tevx-linux64.c: New generated file.
6530 * features/s390-vx-linux64.c: Likewise.
6531 * features/s390x-tevx-linux64.c: Likewise.
6532 * features/s390x-vx-linux64.c: Likewise.
6533 * regformats/s390-tevx-linux64.dat: Likewise.
6534 * regformats/s390-vx-linux64.dat: Likewise.
6535 * regformats/s390x-tevx-linux64.dat: Likewise.
6536 * regformats/s390x-vx-linux64.dat: Likewise.
6537
6538 2015-02-28 Doug Evans <xdje42@gmail.com>
6539
6540 * symtab.h (struct symtab) <next>: Fix comment.
6541
6542 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
6543
6544 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
6545 python_GdbMethods.
6546
6547 2015-02-27 Pedro Alves <palves@redhat.com>
6548
6549 * dtrace-probe.c (dtrace_probe_ops): Make extern.
6550
6551 2015-02-27 Pedro Alves <palves@redhat.com>
6552
6553 * common/common-exceptions.h (exception_none): Declare.
6554 * common/common-exceptions.c (exception_none): Moved from
6555 exceptions.c.
6556 (exceptions_state_mc_init): Use exception_none.
6557 * exceptions.c (exception_none): Move to
6558 common/common-exceptions.c.
6559 * exceptions.h (exception_none): Move to
6560 common/common-exceptions.h.
6561
6562 2015-02-27 Pedro Alves <palves@redhat.com>
6563
6564 * main.c (catch_command_errors, catch_command_errors_const):
6565 Remove 'mask' argument. Adjust.
6566 (captured_main): Adjust callers.
6567
6568 2015-02-27 Pedro Alves <palves@redhat.com>
6569
6570 * python/python-internal.h: Include "extension-priv.h".
6571
6572 2015-02-27 Pedro Alves <palves@redhat.com>
6573
6574 * breakpoint.h (enum print_stop_action): Move further up in the
6575 file.
6576
6577 2015-02-27 Pedro Alves <palves@redhat.com>
6578
6579 * gdbarch.sh: Include regcache.h.
6580 * gdbarch.h: Regenerate.
6581
6582 2015-02-27 Pedro Alves <palves@redhat.com>
6583
6584 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
6585 Remove duplicate const.
6586 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
6587 duplicate const.
6588
6589 2015-02-27 Pedro Alves <palves@redhat.com>
6590
6591 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
6592 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
6593 * features/feature_to_c.sh: Tag the generated xml_builtin array
6594 with extern const in C++ mode.
6595
6596 2015-02-27 Tom Tromey <tromey@redhat.com>
6597
6598 * minidebug.c (struct lzma_stream): Rename to ...
6599 (struct gdb_lzma_stream): ... this.
6600 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
6601
6602 2015-02-27 Pedro Alves <palves@redhat.com>
6603
6604 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
6605 function.
6606 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6607 (mi_cmd_stack_list_variables): Use it.
6608
6609 2015-02-27 Pedro Alves <palves@redhat.com>
6610
6611 * x86-linux-nat.c (u_debugreg_offset): New function.
6612 (x86_linux_dr_get, x86_linux_dr_set): Use it.
6613
6614 2015-02-27 Pedro Alves <palves@redhat.com>
6615
6616 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
6617 declaration.
6618 Include break-common.h.
6619
6620 2015-02-27 Tom Tromey <tromey@redhat.com>
6621 Pedro Alves <palves@redhat.com>
6622
6623 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
6624 local used to iterate over enums.
6625 * completer.c (signal_completer): Likewise.
6626 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
6627 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6628 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
6629 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
6630 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
6631 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
6632 * tui-wingeneral.c (tui_refresh_all): Likewise.
6633
6634 2015-02-27 Pedro Alves <palves@redhat.com>
6635
6636 * target.h: Include "infrun.h".
6637
6638 2015-02-27 Pedro Alves <palves@redhat.com>
6639
6640 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
6641
6642 2015-02-27 Pedro Alves <palves@redhat.com>
6643
6644 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
6645 (IPA_SYM): Use it.
6646 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
6647
6648 2015-02-27 Pedro Alves <palves@redhat.com>
6649
6650 * cli-out.c (_rl_erase_entire_line): Move declaration out of
6651 cli_mld_erase_entire_line, and make it extern "C".
6652 * common/common-defs.h (EXTERN_C): New.
6653 * completer.c (_rl_completion_prefix_display_length)
6654 (_rl_print_completions_horizontally, QSFUNC): Move declarations
6655 out of gdb_display_match_list_1.
6656 (_rl_qsort_string_compare): Move declaration out of
6657 gdb_display_match_list_1, and make it extern "C".
6658 * defs.h (re_comp): Use EXTERN_C.
6659 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
6660 and make it extern "C".
6661 (monstartup): Move declaration out of maintenance_set_profile_cmd,
6662 and make it extern "C".
6663 (main): Move declaration out of maintenance_set_profile_cmd.
6664 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
6665 EXTERN_C.
6666
6667 2015-02-27 Pedro Alves <palves@redhat.com>
6668
6669 * python/python.c (GdbMethods): Rename to ...
6670 (python_GdbMethods): ... this and make extern.
6671 (GdbModuleDef): Rename to ...
6672 (python_GdbModuleDef): ... this and make extern.
6673
6674 2015-02-27 Pedro Alves <palves@redhat.com>
6675
6676 * record-btrace.c (set_record_btrace_cmdlist)
6677 (show_record_btrace_cmdlist): Remove redefinitions.
6678
6679 2015-02-27 Tom Tromey <tromey@redhat.com>
6680 Pedro Alves <palves@redhat.com>
6681
6682 * dwarf2-frame.c (enum cfa_how_kind, struct
6683 dwarf2_frame_state_reg_info): Move out of struct
6684 dwarf2_frame_state.
6685 * dwarf2read.c (struct tu_stats): Move out of struct
6686 dwarf2_per_objfile.
6687 (struct file_entry): Move out of struct line_header.
6688 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
6689 typedef_field_list): Move out of struct field_info.
6690 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
6691 Move out of struct dynamic_prop.
6692 (union type_owner, union field_location, struct field, struct
6693 range_bounds, union type_specific): Move out of struct main_type.
6694 (struct fn_fieldlist, struct fn_field, struct typedef_field)
6695 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
6696 (struct call_site_target, union call_site_parameter_u, struct
6697 call_site_parameter): Move out of struct call_site.
6698 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
6699 m32c_prologue.
6700 (enum srcdest_kind): Move out of struct srcdest.
6701 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
6702 * prologue-value.h (enum prologue_value_kind): Move out of struct
6703 prologue_value.
6704 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
6705 gdbarch_tdep.
6706 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
6707 out of struct field_info.
6708 * symfile.h (struct other_sections): Move out of struct
6709 section_addr_info.
6710 * symtab.c (struct symbol_cache_slot): Move out struct
6711 block_symbol_cache.
6712 * target-descriptions.c (enum tdesc_type_kind): Move out of
6713 typedef struct tdesc_type.
6714 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
6715 struct tui_line_or_address.
6716 * value.c (enum internalvar_kind, union internalvar_data): Move
6717 out of struct internalvar.
6718 * xtensa-tdep.h (struct ctype_cache): Move out of struct
6719 gdbarch_tdep.
6720
6721 2015-02-27 Tom Tromey <tromey@redhat.com>
6722 Pedro Alves <palves@redhat.com>
6723
6724 Rename symbols whose names are reserved C++ keywords throughout.
6725
6726 2015-02-27 Pedro Alves <palves@redhat.com>
6727
6728 * Makefile.in (COMPILER): New, get it from autoconf.
6729 (COMPILE.pre, CC_LD): Use COMPILER.
6730 (CXX): Get from autoconf instead.
6731 (CXX_FOR_TARGET): Default to g++ instead of gcc.
6732 * acinclude.m4: Include build-with-cxx.m4.
6733 * build-with-cxx.m4: New file.
6734 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
6735 Disable -Werror by default if building in C++ mode.
6736 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
6737 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
6738 Run supported-warning-flags tests with the C++ compiler.
6739 Save/restore CXXFLAGS too.
6740 * configure: Regenerate.
6741
6742 2015-02-27 Pedro Alves <palves@redhat.com>
6743
6744 * libiberty.m4: New file.
6745 * acinclude.m4: Include libiberty.m4.
6746 * configure.ac: Call libiberty_INIT.
6747 * config.in, configure: Regenerate.
6748
6749 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6750
6751 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
6752 31-bit targets, but 64-bit targets as well.
6753 (s390_gnu_triplet_regexp): New function.
6754 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
6755 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
6756 method.
6757
6758 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
6759
6760 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
6761 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
6762 from CONTEXT_DEBUGGER.
6763
6764 2015-02-26 Doug Evans <dje@google.com>
6765
6766 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
6767 CHECK_TYPEDEF.
6768 (set_type_vptr_fieldno): Ditto.
6769 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
6770 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
6771
6772 2015-02-26 Pedro Alves <palves@redhat.com>
6773
6774 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
6775 * complaints.c (vcomplaint): Pass argument FMT directly to
6776 printf-like functions instead of complaint->fmt.
6777 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
6778 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
6779 * compile/compile-loc2c.c (pushf, unary, binary): Add
6780 ATTRIBUTE_PRINTF.
6781 (do_compile_dwarf_expr_to_c): Pass string literal as format string
6782 to pushf.
6783 (BINARY): Pass string literal as format string to 'binary'.
6784 * compile/compile-object-load.c (link_callbacks_einfo): Add
6785 ATTRIBUTE_PRINTF.
6786 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
6787
6788 2015-02-26 Pedro Alves <palves@redhat.com>
6789
6790 * windows-termcap.c: Rename to ...
6791 * stub-termcap.c: ... this. Adjust header line.
6792 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
6793 windows-termcap.c.
6794 * configure: Regenerate.
6795 * configure.ac: Refer to stub-termcap.o instead of
6796 windows-termcap.o.
6797 * gdb_curses.h: Mention stub-termcap.c instead of
6798 windows-termcap.c.
6799
6800 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
6803 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
6804
6805 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
6806
6807 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
6808
6809 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
6812 bfd_canonicalize_symtab.
6813
6814 2015-02-25 John Baldwin <jhb@FreeBSD.org>
6815
6816 * amd64fbsd-nat.c: Include sys/user.h.
6817 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
6818 instead of KERN_PS_STRINGS to locate the signal trampoline.
6819 * i386fbsd-nat.c: Include sys/user.h.
6820 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
6821 instead of KERN_PS_STRINGS to locate the signal trampoline.
6822 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
6823 (amd64fbsd_sigtramp_p): New.
6824 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
6825 longer set default values.
6826 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
6827 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
6828 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
6829 (i386fbsd_freebsd4_sigtramp_start)
6830 (i386fbsd_freebsd4_sigtramp_middle)
6831 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
6832 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
6833 (i386fbsd_sigtramp_p): New.
6834 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
6835 longer set default values.
6836 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
6837
6838 2015-02-25 John Baldwin <jhb@freebsd.org>
6839
6840 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
6841 get_frame_register instead of frame_unwind_register_unsigned.
6842
6843 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 PR build/18033
6846 * compile/compile-c-support.c (c_compute_program): Change // comment.
6847 * compile/compile-object-load.c (setup_sections): Change // comment.
6848
6849 2015-02-26 Joel Brobecker <brobecker@adacore.com>
6850
6851 PR build/18033:
6852 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
6853
6854 2015-02-23 Pedro Alves <palves@redhat.com>
6855
6856 * remote.c (skip_to_semicolon): New function.
6857 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
6858 special case the stop reasons that look like hex numbers
6859 upfront. Instead handle real register numbers after matching
6860 all the known stop reasons.
6861
6862 2015-02-21 Doug Evans <dje@google.com>
6863
6864 PR c++/17976, symtab/17821
6865 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
6866 is_in_anonymous. All callers updated.
6867 (find_symbol_in_baseclass): Ditto.
6868 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
6869 for symbols in an anonymous namespace.
6870 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
6871 DW_AT_name directly.
6872 (dwarf2_name): Convert missing namespace name to
6873 CP_ANONYMOUS_NAMESPACE_STR.
6874
6875 2015-02-20 Pedro Alves <palves@redhat.com>
6876
6877 * linux-nat.c (linux_handle_extended_wait): Call
6878 thread_db_notice_clone whenever a new clone LWP is detected.
6879 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
6880 functions.
6881 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
6882 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
6883 (linux_unstop_all_lwps): Declare.
6884 * linux-thread-db.c (struct thread_get_info_inout): Delete.
6885 (thread_get_info_callback): Delete.
6886 (thread_from_lwp): Use td_thr_get_info and record_thread.
6887 (thread_db_attach_lwp): Delete.
6888 (thread_db_notice_clone): New function.
6889 (try_thread_db_load_1): If /proc is mounted and shows the
6890 process'es task list, walk over all LWPs and call thread_from_lwp
6891 instead of relying on td_ta_thr_iter.
6892 (attach_thread): Don't call check_thread_signals here. Split the
6893 tail part of the function (which adds the thread to the core GDB
6894 thread list) to ...
6895 (record_thread): ... this function. Call check_thread_signals
6896 here.
6897 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
6898 call thread_from_lwp.
6899 (thread_db_update_thread_list): Rename to ...
6900 (thread_db_update_thread_list_org): ... this.
6901 (thread_db_update_thread_list): New function.
6902 (thread_db_find_thread_from_tid): Delete.
6903 (thread_db_get_ada_task_ptid): Simplify.
6904 * nat/linux-procfs.c: Include <sys/stat.h>.
6905 (linux_proc_task_list_dir_exists): New function.
6906 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
6907
6908 2015-02-20 Pedro Alves <palves@redhat.com>
6909
6910 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
6911 main LWP. Handle the case of waitpid returning 0 if we're already
6912 attached to the LWP. Don't set the LWP's last_resume_kind to
6913 resume_stop if we already knew about the LWP.
6914 (linux_nat_filter_event): Add debug logs.
6915
6916 2015-02-20 Pedro Alves <palves@redhat.com>
6917
6918 * target.h (forward_target_decr_pc_after_break): Delete
6919 declaration.
6920
6921 2015-02-20 Pedro Alves <palves@redhat.com>
6922
6923 PR threads/18006
6924 * linux-thread-db.c (thread_get_info_callback): Return early if
6925 the thread's lwp id is -1.
6926
6927 2015-02-20 Joel Brobecker <brobecker@adacore.com>
6928
6929 GDB 7.9 released.
6930
6931 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
6932
6933 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
6934 (dtrace_get_probes) Change type of variable 'dof'.
6935
6936 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6937
6938 PR breakpoints/16812
6939 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
6940 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
6941 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
6942
6943 2015-02-19 David Taylor <dtaylor@emc.com>
6944
6945 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
6946
6947 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
6948
6949 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
6950 function.
6951 (tui_putc): Don't call tui_handle_resize_during_io.
6952 (tui_getc): Likewise.
6953 (tui_mld_getc): Likewise.
6954 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
6955 (tui_sigwinch_token): New static variable.
6956 (tui_initialize_win): Adjust documentation. Set
6957 tui_sigwinch_token.
6958 (tui_async_resize_screen): New asynchronous callback.
6959 (tui_sigwinch_handler): Adjust documentation. Asynchronously
6960 invoke tui_async_resize_screen.
6961
6962 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
6963
6964 * configure: Regenerated.
6965 * configure.ac: Use GDB_AC_TRANSFORM.
6966 * Makefile.in (aclocal_m4_deps): Added transform.m4.
6967 * acinclude.m4: sinclude transform.m4.
6968 * transform.m4: New file.
6969 (GDB_AC_TRANSFORM): New macro.
6970
6971 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6972
6973 * NEWS: Announce the support for DTrace SDT probes.
6974
6975 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6976
6977 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
6978 (amd64_dtrace_parse_probe_argument): New function.
6979 (amd64_dtrace_probe_is_enabled): Likewise.
6980 (amd64_dtrace_enable_probe): Likewise.
6981 (amd64_dtrace_disable_probe): Likewise.
6982 (amd64_linux_init_abi): Register the
6983 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
6984 `gdbarch_dtrace_disable_probe' and
6985 `gdbarch_dtrace_probe_is_enabled' hooks.
6986 (amd64_dtrace_disabled_probe_sequence_1): New constant.
6987 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
6988 (amd64_dtrace_enable_probe_sequence): Likewise.
6989 (amd64_dtrace_disable_probe_sequence): Likewise.
6990
6991 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6992
6993 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
6994 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
6995 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
6996 handle ELF files.
6997 * Makefile.in (SFILES): dtrace-probe.c added.
6998 * configure: Regenerate.
6999 * dtrace-probe.c: New file.
7000 (SHT_SUNW_dof): New constant.
7001 (dtrace_probe_type): New enum.
7002 (dtrace_probe_arg): New struct.
7003 (dtrace_probe_arg_s): New typedef.
7004 (struct dtrace_probe_enabler): New struct.
7005 (dtrace_probe_enabler_s): New typedef.
7006 (dtrace_probe): New struct.
7007 (dtrace_probe_is_linespec): New function.
7008 (dtrace_dof_sect_type): New enum.
7009 (dtrace_dof_dofh_ident): Likewise.
7010 (dtrace_dof_encoding): Likewise.
7011 (DTRACE_DOF_ENCODE_LSB): Likewise.
7012 (DTRACE_DOF_ENCODE_MSB): Likewise.
7013 (dtrace_dof_hdr): New struct.
7014 (dtrace_dof_sect): Likewise.
7015 (dtrace_dof_provider): Likewise.
7016 (dtrace_dof_probe): Likewise.
7017 (DOF_UINT): New macro.
7018 (DTRACE_DOF_PTR): Likewise.
7019 (DTRACE_DOF_SECT): Likewise.
7020 (dtrace_process_dof_probe): New function.
7021 (dtrace_process_dof): Likewise.
7022 (dtrace_build_arg_exprs): Likewise.
7023 (dtrace_get_arg): Likewise.
7024 (dtrace_get_probes): Likewise.
7025 (dtrace_get_probe_argument_count): Likewise.
7026 (dtrace_can_evaluate_probe_arguments): Likewise.
7027 (dtrace_evaluate_probe_argument): Likewise.
7028 (dtrace_compile_to_ax): Likewise.
7029 (dtrace_probe_destroy): Likewise.
7030 (dtrace_gen_info_probes_table_header): Likewise.
7031 (dtrace_gen_info_probes_table_values): Likewise.
7032 (dtrace_probe_is_enabled): Likewise.
7033 (dtrace_probe_ops): New variable.
7034 (info_probes_dtrace_command): New function.
7035 (_initialize_dtrace_probe): Likewise.
7036 (dtrace_type_name): Likewise.
7037
7038 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7039
7040 * gdbarch.sh (dtrace_parse_probe_argument): New.
7041 (dtrace_probe_is_enabled): Likewise.
7042 (dtrace_enable_probe): Likewise.
7043 (dtrace_disable_probe): Likewise.
7044 * gdbarch.c: Regenerate.
7045 * gdbarch.h: Regenerate.
7046
7047 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7048
7049 * stap-probe.c (stap_probe_ops): Add NULLs in the static
7050 stap_probe_ops for `enable_probe' and `disable_probe'.
7051 * probe.c (enable_probes_command): New function.
7052 (disable_probes_command): Likewise.
7053 (_initialize_probe): Define the cli commands `enable probe' and
7054 `disable probe'.
7055 (parse_probe_linespec): New function.
7056 (info_probes_for_ops): Use parse_probe_linespec.
7057 * probe.h (probe_ops): New hooks `enable_probe' and
7058 `disable_probe'.
7059
7060 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7061
7062 * probe.c (compute_probe_arg): Moved from stap-probe.c
7063 (compile_probe_arg): Likewise.
7064 (probe_funcs): Likewise.
7065 * stap-probe.c (compute_probe_arg): Moved to probe.c.
7066 (compile_probe_arg): Likewise.
7067 (probe_funcs): Likewise.
7068
7069 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7070
7071 * probe.c (print_ui_out_not_applicables): New function.
7072 (exists_probe_with_pops): Likewise.
7073 (info_probes_for_ops): Do not include column headers for probe
7074 types for which no probe has been actually found on any object.
7075 Also invoke `print_ui_out_not_applicables' in order to match the
7076 column rows with the header when probes of several types are
7077 listed.
7078 Print the "Type" column.
7079 * probe.h (probe_ops): Added a new probe operation `type_name'.
7080 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
7081 (stap_type_name): New function.
7082
7083 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
7084
7085 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
7086 (key_is_command_char): Delete.
7087
7088 2015-02-17 Pedro Alves <palves@redhat.com>
7089
7090 * tui/tui.c (tui_enable): Resize windows before anything
7091 might show a window.
7092
7093 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
7094
7095 PR gdb/17984
7096 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
7097 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
7098 call.
7099 * aarch64-tdep.h (tdesc_aarch64): Declare.
7100
7101 2015-02-12 Mark Wielaard <mjw@redhat.com>
7102
7103 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
7104
7105 2015-02-13 Doug Evans <dje@google.com>
7106
7107 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
7108 anonymous_namespace to is_in_anonymous for consistency with the rest
7109 of the file.
7110 (cp_lookup_bare_symbol): Fix typo in comment.
7111 (cp_search_static_and_baseclasses): Ditto.
7112 (search_symbol_list): Use vertical space in comment better.
7113 (reset_directive_searched): Ditto. Fix typo.
7114 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
7115
7116 2015-02-13 Yao Qi <yao.qi@arm.com>
7117
7118 * MAINTAINERS: Update my email address.
7119
7120 2015-02-12 Doug Evans <dje@google.com>
7121
7122 * symtab.c (completion_list_add_name): Fix memory leak.
7123
7124 2015-02-12 Doug Evans <dje@google.com>
7125
7126 * completer.c (complete_line): Remove incorrect comment.
7127
7128 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7129
7130 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
7131 (py_print_frame): Use RETURN_MASK_ERROR.
7132
7133 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
7136 function comment. Wrap all function that can throw in cleanups.
7137 (gdbpy_apply_frame_filter): Wrap all function that can throw in
7138 cleanups.
7139
7140 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7141
7142 * python/py-framefilter.c (py_print_frame): Substitute goto error.
7143 Remove the error label.
7144
7145 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7146
7147 * python/py-framefilter.c (py_print_frame): Put conditional code paths
7148 with goto first, indent the former else codepath left. Put variable
7149 'elided' to a new inner block.
7150
7151 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7152
7153 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
7154
7155 2015-02-11 Pedro Alves <palves@redhat.com>
7156
7157 * xcoffread.c (within_function): Delete.
7158
7159 2015-02-11 Tom Tromey <tromey@redhat.com>
7160 Pedro Alves <palves@redhat.com>
7161
7162 * breakpoint.c (base_breakpoint_ops): Delete.
7163 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
7164 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
7165 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
7166 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
7167 * python/py-arch.c (arch_object_type): Make extern.
7168 * python/py-block.c (block_syms_iterator_object_type): Make extern.
7169 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
7170 * python/py-cmd.c (cmdpy_object_type): Make extern.
7171 * python/py-continueevent.c (continue_event_object_type)
7172 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
7173 parameter. Update all callers.
7174 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
7175 * python/py-exitedevent.c (exited_event_object_type): Make extern.
7176 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
7177 * python/py-function.c (fnpy_object_type): Make extern.
7178 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
7179 * python/py-infevents.c (call_pre_event_object_type)
7180 (inferior_call_post_event_object_type).
7181 (memory_changed_event_object_type): Make extern.
7182 * python/py-infthread.c (thread_object_type): Make extern.
7183 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
7184 * python/py-linetable.c (linetable_entry_object_type)
7185 (linetable_object_type, ltpy_iterator_object_type): Make extern.
7186 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7187 (clear_objfiles_event_object_type): Make extern.
7188 * python/py-objfile.c (objfile_object_type): Make extern.
7189 * python/py-param.c (parmpy_object_type): Make extern.
7190 * python/py-progspace.c (pspace_object_type): Make extern.
7191 * python/py-signalevent.c (signal_event_object_type): Make extern.
7192 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
7193 * python/py-type.c (type_object_type, field_object_type)
7194 (type_iterator_object_type): Make extern.
7195 * python/python.c (python_extension_script_ops)
7196 (python_extension_ops): Make extern.
7197 * stap-probe.c (stap_probe_ops): Make extern.
7198
7199 2015-02-11 Pedro Alves <pedro@codesourcery.com>
7200
7201 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
7202 because the event thread is not the current thread.
7203
7204 2015-02-11 Doug Evans <xdje42@gmail.com>
7205
7206 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
7207 been initialized yet, return NULL.
7208
7209 2015-02-11 Doug Evans <dje@google.com>
7210
7211 * symfile.h (new_symfile_objfile): Delete.
7212 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
7213 All callers updated.
7214
7215 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
7216
7217 * tui/tui-io.c (tui_handle_resize_during_io): Call
7218 tui_update_gdb_sizes() after resizing the screen.
7219 * tui/tui.c (tui_enable): Resize the terminal before
7220 calling tui_update_gdb_sizes().
7221
7222 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
7223
7224 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
7225 line before printing a newline.
7226
7227 2015-02-11 Mark Wielaard <mjw@redhat.com>
7228
7229 * utils.c (producer_is_gcc): Return true or false.
7230
7231 2015-02-10 Mark Wielaard <mjw@redhat.com>
7232
7233 * utils.h (producer_is_gcc): Change return type to bool. Add major
7234 argument.
7235 * utils.c (producer_is_gcc): Likewise.
7236 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
7237 * dwarf2read.c (check_producer): Likewise.
7238
7239 2015-02-10 Pedro Alves <palves@redhat.com>
7240
7241 * infrun.c (displaced_step_fixup): Switch to the event thread
7242 before calling gdbarch_displaced_step_fixup.
7243
7244 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
7245
7246 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
7247
7248 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
7249
7250 * ada-varobj.c (ada_name_of_child): Constify parent.
7251 (ada_path_expr_of_child): Same.
7252 (ada_value_of_child): Same.
7253 (ada_type_of_child): Same.
7254 * c-varobj.c (c_is_path_expr_parent): Same.
7255 (c_describe_child): Same.
7256 (c_name_of_child): Same.
7257 (c_value_of_child): Same.
7258 (c_type_of_child): Same.
7259 (cplus_number_of_children): Same.
7260 (cplus_describe_child): Constify var.
7261 (cplus_name_of_child): Constify parent.
7262 (cplus_value_of_child): Same.
7263 (cplus_type_of_child): Same.
7264 * jv-varobj.c (java_name_of_child): Same.
7265 (java_value_of_child): Same.
7266 (java_type_of_child): Same.
7267 * varobj.c (value_of_child): Same.
7268 (varobj_default_is_path_expr_parent): Constify var, parent and return
7269 value.
7270 (varobj_get_path_expr): Constify var, modify path_expr through
7271 mutable_var.
7272 (install_new_value): Constify parent.
7273 (value_of_child): Constify parent.
7274 * varobj.h (struct varobj): Constify parent.
7275 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
7276 type_of_child.
7277 (varobj_get_path_expr): Constify var.
7278 (varobj_get_path_expr_parent): Constify var and return value.
7279
7280 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
7281
7282 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
7283 (arm_prologue_this_id): Move PC and SP limit checks to
7284 arm_prologue_unwind_stop_reason.
7285 (arm_prologue_unwind) <stop_reason> : Set to
7286 arm_prologue_unwind_stop_reason.
7287
7288 2015-02-09 Mark Wielaard <mjw@redhat.com>
7289
7290 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
7291 DW_LANG_Fortran08 as language_fortran.
7292
7293 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
7294
7295 PR remote/17946
7296 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
7297 of pointer against char.
7298
7299 2015-02-09 Mark Wielaard <mjw@redhat.com>
7300
7301 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
7302 (c_type_print_modifier): Likewise.
7303 * dwarf2read.c (read_tag_atomic_type): New function.
7304 (read_type_die_1): Handle DW_TAG_atomic_type.
7305 * gdbtypes.c (make_atomic_type): New function.
7306 (recursive_dump_type): Handle TYPE_ATOMIC.
7307 * gdbtypes.h (enum type_flag_values): Renumber.
7308 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
7309 (TYPE_ATOMIC): New macro.
7310 (make_atomic_type): Declare.
7311
7312 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7313
7314 * btrace.c (ftrace_find_call): Skip gaps.
7315 (ftrace_new_function): Initialize level.
7316 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
7317 (ftrace_new_switch): Update
7318 level computation.
7319 (ftrace_new_gap): New.
7320 (ftrace_update_function): Create new function after gap.
7321 (btrace_compute_ftrace_bts): Create gap on error.
7322 (btrace_stitch_bts): Update parameters. Clear trace if it
7323 becomes empty.
7324 (btrace_stitch_trace): Update parameters. Update callers.
7325 (btrace_clear): Reset the number of gaps.
7326 (btrace_insn_get): Return NULL if the iterator points to a gap.
7327 (btrace_insn_number): Return zero if the iterator points to a gap.
7328 (btrace_insn_end): Allow gaps at the end.
7329 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
7330 (btrace_find_insn_by_number): Assert that the found iterator does
7331 not point to a gap.
7332 (btrace_call_next, btrace_call_prev): Assert that the last function
7333 is not a gap.
7334 * btrace.h (btrace_bts_error): New.
7335 (btrace_function): Update comment.
7336 (btrace_function) <insn, insn_offset, number>: Update comment.
7337 (btrace_function) <errcode>: New.
7338 (btrace_thread_info) <ngaps>: New.
7339 (btrace_thread_info) <replay>: Update comment.
7340 (btrace_insn_get): Update comment.
7341 * record-btrace.c (btrace_ui_out_decode_error): New.
7342 (record_btrace_info): Print number of gaps.
7343 (btrace_insn_history, btrace_call_history): Call
7344 btrace_ui_out_decode_error for gaps.
7345 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
7346
7347 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7348
7349 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
7350 * nat/linux-btrace.c: (btrace_this_cpu): New.
7351 (cpu_supports_bts): Call btrace_this_cpu.
7352 (intel_supports_bts): Add cpu parameter.
7353
7354 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7355
7356 * btrace.h (btrace_insn_class): New.
7357 (btrace_insn) <size, iclass>: New.
7358 * btrace.c (ftrace_find_call): Update parameters. Update users.
7359 Use instruction classification.
7360 (ftrace_new_return): Update parameters. Update users.
7361 (ftrace_update_function): Update parameters. Update users. Use
7362 instruction classification.
7363 (ftrace_update_insns): Update parameters. Update users.
7364 (ftrace_classify_insn): New.
7365 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
7366 TRY_CATCH around call to gdb_insn_length.
7367
7368 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7369
7370 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
7371 Update parameters. Update users.
7372
7373 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7374
7375 * btrace.c (parse_xml_btrace_conf_bts): Add size.
7376 (btrace_conf_bts_attributes): New.
7377 (btrace_conf_children): Add attributes.
7378 * common/btrace-common.h (btrace_config_bts): New.
7379 (btrace_config)<bts>: New.
7380 (btrace_config): Update comment.
7381 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
7382 Use config.
7383 * features/btrace-conf.dtd: Increment version. Add size
7384 attribute to bts element.
7385 * record-btrace.c (set_record_btrace_bts_cmdlist,
7386 show_record_btrace_bts_cmdlist): New.
7387 (record_btrace_adjust_size, record_btrace_print_bts_conf,
7388 record_btrace_print_conf, cmd_set_record_btrace_bts,
7389 cmd_show_record_btrace_bts): New.
7390 (record_btrace_info): Call record_btrace_print_conf.
7391 (_initialize_record_btrace): Add commands.
7392 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
7393 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
7394 (btrace_sync_conf): Synchronize bts size.
7395 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
7396 * NEWS: Announce new commands and new packets.
7397
7398 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7399
7400 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
7401 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
7402 (x86_linux_btrace_conf): New.
7403 (x86_linux_create_target): Initialize to_btrace_conf.
7404 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
7405 Check format. Split into this and ...
7406 (linux_enable_bts): ... this.
7407 (linux_btrace_conf): New.
7408 (perf_event_skip_record): Renamed into ...
7409 (perf_event_skip_bts_record): ... this. Updated users.
7410 (linux_disable_btrace): Split into this and ...
7411 (linux_disable_bts): ... this.
7412 (linux_read_btrace): Check format.
7413 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
7414 (linux_btrace_conf): New.
7415 (btrace_target_info)<ptid>: Moved.
7416 (btrace_target_info)<conf>: New.
7417 (btrace_target_info): Split into this and ...
7418 (btrace_tinfo_bts): ... this. Updated users.
7419 * btrace.c (btrace_enable): Update parameters.
7420 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
7421 (btrace_conf_children, btrace_conf_attributes)
7422 (btrace_conf_elements): New.
7423 * btrace.h (btrace_enable): Update parameters.
7424 (btrace_conf, parse_xml_btrace_conf): New.
7425 * common/btrace-common.h (btrace_config): New.
7426 * feature/btrace-conf.dtd: New.
7427 * record-btrace.c (record_btrace_conf): New.
7428 (record_btrace_cmdlist): New.
7429 (record_btrace_enable_warn, record_btrace_open): Pass
7430 &record_btrace_conf.
7431 (record_btrace_info): Print recording format.
7432 (cmd_record_btrace_bts_start): New.
7433 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
7434 (_initialize_record_btrace): Add "record btrace bts" subcommand.
7435 Add "record bts" alias command.
7436 * remote.c (remote_state)<btrace_config>: New.
7437 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
7438 (remote_protocol_features): Add qXfer:btrace-conf:read.
7439 (remote_open_1): Call remote_btrace_reset.
7440 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
7441 (btrace_target_info)<conf>: New.
7442 (btrace_sync_conf, btrace_read_config): New.
7443 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
7444 btrace_read_conf.
7445 (remote_btrace_conf): New.
7446 (init_remote_ops): Initialize to_btrace_conf.
7447 (_initialize_remote): Add qXfer:btrace-conf packet.
7448 * target.c (target_enable_btrace): Update parameters.
7449 (target_btrace_conf): New.
7450 * target.h (target_enable_btrace): Update parameters.
7451 (target_btrace_conf): New.
7452 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
7453 (target_ops)<to_enable_btrace>: Update parameters and comment.
7454 (target_ops)<to_btrace_conf>: New.
7455 * target-delegates: Regenerate.
7456 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
7457 (target_debug_print_const_struct_btrace_target_info_p): New.
7458 * NEWS: Announce new command and new packet.
7459
7460 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7461
7462 * nat/linux-btrace.h (perf_event_buffer): New.
7463 (btrace_target_info) <buffer, size, data_head>: Replace with ...
7464 <bts>: ... this.
7465 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
7466 (perf_event_buffer_size, perf_event_buffer_begin)
7467 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
7468 Updated users.
7469 (perf_event_new_data): New.
7470
7471 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7472
7473 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
7474 * record-btrace.c (record_btrace_open): Remove call to
7475 target_supports_btrace.
7476 * remote.c (remote_supports_btrace): Update parameters.
7477 * target.c (target_supports_btrace): Update parameters.
7478 * target.h (to_supports_btrace, target_supports_btrace): Update
7479 parameters.
7480 * target-delegates.c: Regenerate.
7481 * target-debug.h (target_debug_print_enum_btrace_format): New.
7482 * nat/linux-btrace.c
7483 (kernel_supports_btrace): Rename into ...
7484 (kernel_supports_bts): ... this. Update users. Update warning text.
7485 (intel_supports_btrace): Rename into ...
7486 (intel_supports_bts): ... this. Update users.
7487 (cpu_supports_btrace): Rename into ...
7488 (cpu_supports_bts): ... this. Update users.
7489 (linux_supports_btrace): Update parameters. Split into this and ...
7490 (linux_supports_bts): ... this.
7491 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
7492
7493 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7494
7495 * Makefile.in (SFILES): Add common/btrace-common.c.
7496 (COMMON_OBS): Add common/btrace-common.o.
7497 (btrace-common.o): Add build rules.
7498 * btrace.c (parse_xml_btrace): Update parameters.
7499 (parse_xml_btrace_block): Set format field.
7500 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
7501 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
7502 (btrace_compute_ftrace): Split into this and...
7503 (btrace_compute_ftrace_bts): ...this.
7504 (btrace_stitch_trace): Split into this and...
7505 (btrace_stitch_bts): ...this.
7506 * btrace.h (parse_xml_btrace): Update parameters.
7507 (make_cleanup_btrace_data): New.
7508 * common/btrace-common.c: New.
7509 * common/btrace-common.h: Include common-defs.h.
7510 (btrace_block_s): Update comment.
7511 (btrace_format): New.
7512 (btrace_format_string): New.
7513 (btrace_data_bts): New.
7514 (btrace_data): New.
7515 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
7516 * remote.c (remote_read_btrace): Update parameters.
7517 * target.c (target_read_btrace): Update parameters.
7518 * target.h (target_read_btrace): Update parameters.
7519 (target_ops)<to_read_btrace>: Update parameters.
7520 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
7521 * target-delegates.c: Regenerate.
7522 * target-debug (target_debug_print_struct_btrace_data_p): New.
7523 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
7524 (linux_read_bts): ...this.
7525 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
7526
7527 2015-02-06 Doug Evans <dje@google.com>
7528
7529 * remote-m32r-sdi.c: Include symfile.h.
7530
7531 2015-02-06 Doug Evans <dje@google.com>
7532
7533 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
7534 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
7535 to here.
7536
7537 2015-02-06 Pedro Alves <palves@redhat.com>
7538
7539 * linux-thread-db.c (find_new_threads_callback): Add debug output.
7540
7541 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
7542
7543 PR gdb/15678
7544 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
7545 (enable_count_command): Check args for NULL value.
7546
7547 2015-02-05 Doug Evans <xdje42@gmail.com>
7548
7549 * guile/scm-frame.c: Fix spelling errors in a comment.
7550
7551 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7552
7553 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
7554 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
7555 return type.
7556
7557 2015-02-04 Pedro Alves <palves@redhat.com>
7558
7559 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
7560 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
7561 returns true.
7562 (resume_stopped_resumed_lwps): Don't check whether the thread is
7563 marked as executing.
7564 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
7565
7566 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7567
7568 * regset.h (struct regset): Add flags field.
7569 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
7570 * corelow.c (get_core_register_section): Add warning if the size
7571 exceeds the requested size and the regset does not have the
7572 REGSET_VARIABLE_SIZE flag set.
7573 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
7574 flag.
7575 * armbsd-tdep.c (armbsd_gregset): Likewise.
7576 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7577 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
7578 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
7579 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
7580
7581 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7582
7583 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
7584 For ".reg-xstate", explicitly specify the requested section size
7585 via X86_XSTATE_SIZE instead of just 0 on input and
7586 X86_XSTATE_MAX_SIZE on output.
7587 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
7588 Likewise.
7589
7590 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7591
7592 PR corefiles/17808:
7593 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
7594 function type, particularly its SIZE parameter.
7595 * gdbarch.h: Regenerate.
7596 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
7597 actual against required size using ">=" instead of "==".
7598 (amd64_collect_fpregset): Likewise.
7599 * i386-tdep.c (i386_supply_gregset): Likewise.
7600 (i386_collect_gregset): Likewise.
7601 (i386_supply_fpregset): Likewise.
7602 (i386_collect_fpregset): Likewise.
7603 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
7604 (mips_fill_gregset_wrapper): Likewise.
7605 (mips_supply_fpregset_wrapper): Likewise.
7606 (mips_fill_fpregset_wrapper): Likewise.
7607 (mips64_supply_gregset_wrapper): Likewise.
7608 (mips64_fill_gregset_wrapper): Likewise.
7609 (mips64_supply_fpregset_wrapper): Likewise.
7610 (mips64_fill_fpregset_wrapper): Likewise.
7611 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
7612 (am33_supply_fpregset_method): Likewise.
7613 (am33_collect_gregset_method): Likewise.
7614 (am33_collect_fpregset_method): Likewise.
7615
7616 2015-02-04 Doug Evans <dje@google.com>
7617 Pedro Alves <palves@redhat.com>
7618 Eli Zaretskii <eliz@gnu.org>
7619
7620 PR tui/17810
7621 * tui/tui-command.c (tui_refresh_cmd_win): New function.
7622 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
7623 * tui/tui-file.c: #include tui/tui-command.h.
7624 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
7625 (tui_file_flush): Refresh command window if stream is gdb_stdout.
7626 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
7627
7628 2015-02-04 Pedro Alves <palves@redhat.com>
7629
7630 Fix build breakage.
7631 * event-loop.c (gdb_do_one_event): Add default switch case.
7632
7633 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 Filter out inferior gcc option -fpreprocessed.
7636 * compile/compile.c (filter_args): New function.
7637 (get_args): Use it.
7638
7639 2015-02-03 Pedro Alves <palves@redhat.com>
7640
7641 * event-loop.c: Don't declare nor define a queue type for
7642 gdb_event_p.
7643 (event_queue): Delete.
7644 (create_event, create_file_event, gdb_event_xfree)
7645 (initialize_event_loop, process_event): Delete.
7646 (gdb_do_one_event): Return as soon as one event is handled.
7647 (handle_file_event): Change prototype. Used the passed in
7648 file_handler pointer and ready_mask instead of looping over all
7649 file handlers.
7650 (gdb_wait_for_event): Update the poll/select timeouts before
7651 blocking. Run event handlers directly instead of queueing events.
7652 Return as soon as one event is handled.
7653 (struct async_event_handler_data): Delete.
7654 (invoke_async_event_handler): Delete.
7655 (check_async_event_handlers): Change return type to int. Run
7656 event handlers directly instead of queueing events. Return as
7657 soon as one event is handled.
7658 (handle_timer_event): Delete.
7659 (update_wait_timeout): New function, factored out from
7660 poll_timers.
7661 (poll_timers): Reimplement.
7662 * event-loop.h (initialize_event_loop): Delete declaration.
7663 * top.c (gdb_init): Don't call initialize_event_loop.
7664
7665 2015-02-03 Pedro Alves <palves@redhat.com>
7666
7667 * event-loop.c (clear_async_event_handler): New function.
7668 * event-loop.h (clear_async_event_handler): New declaration.
7669 * record-btrace.c (record_btrace_async): New function.
7670 (init_record_btrace_ops): Install record_btrace_async.
7671 * record-full.c (record_full_async): New function.
7672 (record_full_resume): Don't mark the async event source here.
7673 (init_record_full_ops): Install record_full_async.
7674 (record_full_core_resume): Don't mark the async event source here.
7675 (init_record_full_core_ops): Install record_full_async.
7676 * remote.c (remote_async): Mark and clear the async stop reply
7677 queue event-loop token as appropriate.
7678
7679 2015-02-03 Pedro Alves <palves@redhat.com>
7680
7681 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
7682 target_is_async_p instead of target_can_async.
7683 (linux_nat_wait): Use target_is_async_p instead of
7684 target_can_async. Don't enable async here.
7685 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
7686 target_is_async_p instead of target_can_async.
7687
7688 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
7689
7690 * varobj.h (lang_varobj_ops): Mention which return values need
7691 to be freed.
7692
7693 2015-02-02 Joel Brobecker <brobecker@adacore.com>
7694
7695 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
7696
7697 2015-02-02 Joel Brobecker <brobecker@adacore.com>
7698
7699 PR gdb/17856:
7700 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
7701 results found in the cache.
7702
7703 2015-02-02 Joel Brobecker <brobecker@adacore.com>
7704
7705 PR gdb/17854:
7706 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
7707 when allocating a new one.
7708
7709 2015-02-01 Tom Tromey <tom@tromey.com>
7710
7711 * MAINTAINERS: Remove myself.
7712
7713 2015-01-31 Doug Evans <xdje42@gmail.com>
7714
7715 * dwarf2read.c (process_structure_scope): Update setting of
7716 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
7717 * gdbtypes.c (internal_type_vptr_fieldno): New function.
7718 (set_type_vptr_fieldno): New function.
7719 (internal_type_vptr_basetype): New function.
7720 (set_type_vptr_basetype): New function.
7721 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
7722 TYPE_VPTR_BASETYPE.
7723 (allocate_cplus_struct_type): Initialize vptr_fieldno.
7724 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
7725 (print_cplus_stuff): ... moved here.
7726 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
7727 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
7728 moved to ...
7729 (struct cplus_struct_type): ... here. All uses updated.
7730 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
7731 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
7732 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
7733 * stabsread.c (read_tilde_fields): Update setting of
7734 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
7735
7736 2015-01-31 Doug Evans <xdje42@gmail.com>
7737
7738 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
7739 to self_p.
7740 (cp_print_class_member): Rename local domain to self_type.
7741 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
7742 domain_type to self_type.
7743 (set_die_type) <need_gnat_info>: Handle
7744 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
7745 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
7746 TYPE_SPECIFIC_SELF_TYPE.
7747 * gdbtypes.c (internal_type_self_type): New function.
7748 (set_type_self_type): New function.
7749 (smash_to_memberptr_type): Rename parameter domain to self_type.
7750 Update setting of TYPE_SELF_TYPE.
7751 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
7752 (smash_to_method_type): Rename parameter domain to self_type.
7753 Update setting of TYPE_SELF_TYPE.
7754 (check_stub_method): Call smash_to_method_type.
7755 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
7756 (copy_type_recursive): Ditto.
7757 * gdbtypes.h (enum type_specific_kind): New value
7758 TYPE_SPECIFIC_SELF_TYPE.
7759 (struct main_type) <type_specific>: New member self_type.
7760 (struct cplus_struct_type) <fn_field.type>: Update comment.
7761 (TYPE_SELF_TYPE): Rewrite.
7762 (internal_type_self_type, set_type_self_type): Declare.
7763 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
7764 self_type.
7765 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
7766 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
7767 TYPE_TARGET_TYPE.
7768 * stabsread.c (read_member_functions): Mark methods with
7769 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
7770 TYPE_SELF_TYPE.
7771
7772 2015-01-31 Doug Evans <xdje42@gmail.com>
7773
7774 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
7775 All uses updated.
7776
7777 2015-01-31 Doug Evans <xdje42@gmail.com>
7778
7779 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
7780 or unions. Return zero if union.
7781 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
7782 (gnuv3_rtti_type): Pass already-check_typedef'd value to
7783 gnuv3_get_vtable.
7784 (compute_vtable_size): Assert only passed structs.
7785 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
7786
7787 2015-01-31 Doug Evans <xdje42@gmail.com>
7788
7789 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
7790 kinds.
7791
7792 2015-01-31 Gary Benson <gbenson@redhat.com>
7793 Doug Evans <dje@google.com>
7794
7795 PR cli/9007
7796 PR cli/11920
7797 PR cli/15548
7798 * cli/cli-cmds.c (complete_command): Notify user if max-completions
7799 reached.
7800 * common/common-exceptions.h (enum errors)
7801 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
7802 * completer.h (get_max_completions_reached_message): New declaration.
7803 (max_completions): Likewise.
7804 (completion_tracker_t): New typedef.
7805 (new_completion_tracker): New declaration.
7806 (make_cleanup_free_completion_tracker): Likewise.
7807 (maybe_add_completion_enum): New enum.
7808 (maybe_add_completion): New declaration.
7809 (throw_max_completions_reached_error): Likewise.
7810 * completer.c (max_completions): New global variable.
7811 (new_completion_tracker): New function.
7812 (free_completion_tracker): Likewise.
7813 (make_cleanup_free_completion_tracker): Likewise.
7814 (maybe_add_completions): Likewise.
7815 (throw_max_completions_reached_error): Likewise.
7816 (complete_line): Remove duplicates and limit result to max_completions
7817 entries.
7818 (get_max_completions_reached_message): New function.
7819 (gdb_display_match_list): Handle max_completions.
7820 (_initialize_completer): New declaration and function.
7821 * symtab.c: Include completer.h.
7822 (completion_tracker): New static variable.
7823 (completion_list_add_name): Call maybe_add_completion.
7824 (default_make_symbol_completion_list_break_on_1): Renamed from
7825 default_make_symbol_completion_list_break_on. Maintain
7826 completion_tracker across calls to completion_list_add_name.
7827 (default_make_symbol_completion_list_break_on): New function.
7828 * top.c (init_main): Set rl_completion_display_matches_hook.
7829 * tui/tui-io.c: Include completer.h.
7830 (tui_old_rl_display_matches_hook): New static global.
7831 (tui_rl_display_match_list): Notify user if max-completions reached.
7832 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
7833 * NEWS (New Options): Mention set/show max-completions.
7834
7835 2015-01-31 Gary Benson <gbenson@redhat.com>
7836
7837 * symtab.c (struct add_name_data) <code>: New field.
7838 Updated comments.
7839 (add_symtab_completions): New function.
7840 (symtab_expansion_callback): Likewise.
7841 (default_make_symbol_completion_list_break_on): Set datum.code.
7842 Move minimal symbol scan before calling expand_symtabs_matching.
7843 Scan known primary symtabs for externs and statics before calling
7844 expand_symtabs_matching. Pass symtab_expansion_callback as
7845 expansion_notify argument to expand_symtabs_matching. Do not scan
7846 primary symtabs for externs and statics after calling
7847 expand_symtabs_matching.
7848
7849 2015-01-31 Gary Benson <gbenson@redhat.com>
7850
7851 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
7852 (struct quick_symbol_functions) <expand_symtabs_matching>:
7853 New argument expansion_notify. All uses updated.
7854 (expand_symtabs_matching): New argument expansion_notify.
7855 All uses updated.
7856 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7857 Also print expansion notify.
7858 * symtab.c (expand_symtabs_matching_via_partial): Call
7859 expansion_notify whenever a partial symbol table is expanded.
7860 * dwarf2read.c (dw2_expand_symtabs_matching): Call
7861 expansion_notify whenever a symbol table is instantiated.
7862
7863 2015-01-31 Doug Evans <xdje42@gmail.com>
7864
7865 * cli-out.c: #include completer.h, readline/readline.h.
7866 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
7867 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
7868 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
7869 * cli-out.h (cli_display_match_list): Declare.
7870 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
7871 (ELLIPSIS_LEN): Ditto.
7872 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
7873 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
7874 (gdb_fnprint, gdb_print_filename): Ditto.
7875 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
7876 (gdb_display_match_list): Ditto.
7877 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
7878 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
7879 (mld_beep_ftype, mld_read_key_ftype): Ditto.
7880 (match_list_displayer): New struct.
7881 (gdb_display_match_list): Declare.
7882 * top.c (init_main): Set rl_completion_display_matches_hook.
7883 * tui/tui-io.c: #include completer.h.
7884 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
7885 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
7886 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
7887 (tui_mld_getc, tui_mld_read_key): Ditto.
7888 (tui_rl_display_match_list): Rewrite.
7889 (tui_handle_resize_during_io): New arg for_completion. All callers
7890 updated.
7891
7892 2015-01-31 Doug Evans <xdje42@gmail.com>
7893
7894 Add symbol lookup cache.
7895 * NEWS: Document new options and commands.
7896 * symtab.c (symbol_cache_key): New static global.
7897 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
7898 (SYMBOL_LOOKUP_FAILED): New macro.
7899 (symbol_cache_slot_state): New enum.
7900 (block_symbol_cache): New struct.
7901 (symbol_cache): New struct.
7902 (new_symbol_cache_size, symbol_cache_size): New static globals.
7903 (hash_symbol_entry, eq_symbol_entry): New functions.
7904 (symbol_cache_byte_size, resize_symbol_cache): New functions.
7905 (make_symbol_cache, free_symbol_cache): New functions.
7906 (get_symbol_cache, symbol_cache_cleanup): New function.
7907 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
7908 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
7909 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
7910 (symbol_cache_flush, symbol_cache_dump): New functions.
7911 (maintenance_print_symbol_cache): New function.
7912 (maintenance_flush_symbol_cache): New function.
7913 (symbol_cache_stats): New function.
7914 (maintenance_print_symbol_cache_statistics): New function.
7915 (symtab_new_objfile_observer): New function.
7916 (symtab_free_objfile_observer): New function.
7917 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
7918 (_initialize_symtab): Init symbol_cache_key. New parameter
7919 maint symbol-cache-size. New maint commands print symbol-cache,
7920 print symbol-cache-statistics, flush-symbol-cache.
7921 Install new_objfile, free_objfile observers.
7922
7923 2015-01-31 Joel Brobecker <brobecker@adacore.com>
7924
7925 PR symtab/17855
7926 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
7927 to end.
7928
7929 2015-01-31 Doug Evans <xdje42@gmail.com>
7930
7931 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
7932 * auto-load.c: #include ctype.h.
7933 (struct auto_load_pspace_info): Replace member loaded_scripts with
7934 new members loaded_script_files, loaded_script_texts.
7935 (auto_load_pspace_data_cleanup): Update.
7936 (init_loaded_scripts_info): Update.
7937 (get_auto_load_pspace_data_for_loading): Update.
7938 (maybe_add_script_file): Renamed from maybe_add_script. All callers
7939 updated.
7940 (maybe_add_script_text): New function.
7941 (clear_section_scripts): Update.
7942 (source_script_file, execute_script_contents): New functions.
7943 (source_section_scripts): Add support for
7944 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
7945 (print_scripts): New function.
7946 (auto_load_info_scripts): Also print inlined scripts.
7947 (maybe_print_unsupported_script_warning): Renamed from
7948 unsupported_script_warning_print. All callers updated.
7949 (maybe_print_script_not_found_warning): Renamed from
7950 script_not_found_warning_print. All callers updated.
7951 * extension-priv.h (struct extension_language_script_ops): New member
7952 objfile_script_executor.
7953 * extension.c (ext_lang_objfile_script_executor): New function.
7954 * extension.h (objfile_script_executor_func): New typedef.
7955 (ext_lang_objfile_script_executor): Declare.
7956 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
7957 * guile/guile.c (guile_extension_script_ops): Update.
7958 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
7959 * python/python.c (python_extension_script_ops): Update.
7960 (gdbpy_execute_objfile_script): New function.
7961
7962 2015-01-31 Eli Zaretskii <eliz@gnu.org>
7963
7964 * tui/tui-io.c (tui_expand_tabs): New function.
7965 (tui_puts, tui_redisplay_readline): Expand TABs into the
7966 appropriate number of spaces.
7967 * tui/tui-regs.c: Include tui-io.h.
7968 (tui_register_format): Call tui_expand_tabs to expand TABs into
7969 the appropriate number of spaces.
7970 * tui/tui-io.h: Add prototype for tui_expand_tabs.
7971
7972 2015-01-30 Doug Evans <dje@google.com>
7973
7974 * NEWS: "info source" command now display producer string if present.
7975 * source.c (source_info): Print producer string if present.
7976
7977 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7978
7979 * varobj.c (varobj_delete): Fix comment.
7980
7981 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7982
7983 * varobj.c (create_child): Modify comment.
7984
7985 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7986
7987 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
7988 parameter.
7989 (ada_name_of_variable): Same.
7990 (ada_path_expr_of_child): Same.
7991 (ada_value_of_variable): Same.
7992 (ada_value_is_changeable_p): Same.
7993 (ada_value_has_mutated): Same.
7994 * c-varobj.c (varobj_is_anonymous_child): Same.
7995 (c_is_path_expr_parent): Same.
7996 (c_number_of_children): Same.
7997 (c_name_of_variable): Same.
7998 (c_path_expr_of_child): Same.
7999 (get_type): Same.
8000 (c_value_of_variable): Same.
8001 (cplus_number_of_children): Same.
8002 (cplus_name_of_variable): Same.
8003 (cplus_path_expr_of_child): Same.
8004 (cplus_value_of_variable): Same.
8005 * jv-varobj.c (java_number_of_children): Same.
8006 (java_name_of_variable): Same.
8007 (java_path_expr_of_child): Same.
8008 (java_value_of_variable): Same.
8009 * varobj.c (number_of_children): Same.
8010 (name_of_variable): Same.
8011 (is_root_p): Same.
8012 (varobj_ensure_python_env): Same.
8013 (varobj_get_objname): Same.
8014 (varobj_get_expression): Same.
8015 (varobj_get_display_format): Same.
8016 (varobj_get_display_hint): Same.
8017 (varobj_has_more): Same.
8018 (varobj_get_thread_id): Same.
8019 (varobj_get_frozen): Same.
8020 (dynamic_varobj_has_child_method): Same.
8021 (varobj_get_gdb_type): Same.
8022 (is_path_expr_parent): Same.
8023 (varobj_default_is_path_expr_parent): Same.
8024 (varobj_get_language): Same.
8025 (varobj_get_attributes): Same.
8026 (varobj_is_dynamic_p): Same.
8027 (varobj_get_child_range): Same.
8028 (varobj_value_has_mutated): Same.
8029 (varobj_get_value_type): Same.
8030 (number_of_children): Same.
8031 (name_of_variable): Same.
8032 (check_scope): Same.
8033 (varobj_editable_p): Same.
8034 (varobj_value_is_changeable_p): Same.
8035 (varobj_floating_p): Same.
8036 (varobj_default_value_is_changeable_p): Same.
8037
8038 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8039
8040 * varobj.c (varobj_get_path_expr): Set var->path_expr.
8041 * c-varobj.c (c_path_expr_of_child): Set local var instead of
8042 child->path_expr.
8043 (cplus_path_expr_of_child): Same.
8044
8045 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8046
8047 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
8048 result.
8049 (mi_cmd_var_info_expression): Same.
8050 * varobj.c (varobj_get_expression): Mention in the comment that
8051 the result must by freed by the caller.
8052
8053 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8054
8055 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
8056 varobj_get_type.
8057 (varobj_update_one): Same.
8058 * varobj.c (update_type_if_necessary): Free curr_type_str and
8059 new_type_str.
8060 (varobj_get_type): Specify in comment that the result needs to be
8061 freed by the caller.
8062
8063 2015-01-29 Doug Evans <dje@google.com>
8064
8065 PR symtab/17890
8066 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
8067
8068 2015-01-25 Mark Wielaard <mjw@redhat.com>
8069
8070 * dwarf2read.c (checkproducer): Call producer_is_gcc.
8071 * utils.c (producer_is_gcc_ge_4): Likewise.
8072 (producer_is_gcc): New function.
8073 * utils.h (producer_is_gcc): New declaration.
8074
8075 2015-01-29 Joel Brobecker <brobecker@adacore.com>
8076
8077 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
8078 kind.
8079 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
8080 parameter by "addr_stack" parameter.
8081 (resolve_dynamic_range): Replace "addr" parameter by
8082 "stack_addr" parameter. Update function documentation.
8083 Update code accordingly.
8084 (resolve_dynamic_array, resolve_dynamic_union)
8085 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
8086 (resolve_dynamic_type): Update code, following the changes made
8087 to resolve_dynamic_type_internal's interface.
8088 * dwarf2loc.h (struct property_addr_info): New.
8089 (dwarf2_evaluate_property): Replace "address" parameter
8090 by "addr_stack" parameter. Adjust function documentation.
8091 (struct dwarf2_offset_baton): New.
8092 (struct dwarf2_property_baton): Update documentation of
8093 field "referenced_type" to be more general. New field
8094 "offset_info" in union data field.
8095 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
8096 parameter by "addr_stack" parameter. Adjust code accordingly.
8097 Add support for PROP_ADDR_OFFSET properties.
8098 * dwarf2read.c (attr_to_dynamic_prop): Add support for
8099 DW_AT_data_member_location attributes as well. Use case
8100 statements instead of if/else condition.
8101
8102 2015-01-29 Joel Brobecker <brobecker@adacore.com>
8103
8104 * ada-varobj.c (ada_varobj_get_array_number_of_children):
8105 Return zero if PARENT_VALUE is NULL and parent_type's
8106 range type is dynamic.
8107
8108 2015-01-29 Joel Brobecker <brobecker@adacore.com>
8109
8110 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
8111 nonzero if the type's subtype is dynamic.
8112 (resolve_dynamic_range): Also resolve the range's subtype.
8113
8114 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
8115
8116 Pushed by Joel Brobecker <brobecker@adacore.com>.
8117 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
8118
8119 2015-01-27 Doug Evans <dje@google.com>
8120
8121 * NEWS: Mention gdb.Objfile.username.
8122 * python/py-objfile.c (objfpy_get_username): New function.
8123 (objfile_getset): Add "username".
8124
8125 2015-01-24 Mark Wielaard <mjw@redhat.com>
8126
8127 * stack.c (return_command): Markup warning message with _.
8128
8129 2015-01-24 Doug Evans <xdje42@gmail.com>
8130
8131 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
8132
8133 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8134
8135 Fix 100x slowdown regression on DWZ files.
8136 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
8137 (struct line_header): Add offset and offset_in_dwz.
8138 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
8139 (free_line_header_voidp): New declaration.
8140 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
8141 functions.
8142 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
8143 (handle_DW_AT_stmt_list): Use line_header_hash.
8144 (free_line_header_voidp): New function.
8145 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
8146 (dwarf_decode_lines): New parameter decode_mapping, use it.
8147 (dwarf2_free_objfile): Free line_header_hash.
8148
8149 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
8150
8151 PR gdb/17416
8152 * valops.c (value_rtti_indirect_type): Catch exception thrown by
8153 value_ind.
8154
8155 2015-01-15 Mark Wielaard <mjw@redhat.com>
8156
8157 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
8158 DW_AT_noreturn.
8159 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
8160 calling_convention an 8 bit bit field.
8161 (TYPE_NO_RETURN): New macro.
8162 * infcmd.c (finish_command): Query if function does not return
8163 normally.
8164 * stack.c (return_command): Likewise.
8165
8166 2015-01-23 Pedro Alves <palves@redhat.com>
8167
8168 * linux-nat.c (linux_is_async_p): New macro.
8169 (linux_nat_is_async_p):
8170 (linux_nat_terminal_inferior): Check whether the target can async
8171 instead of whether it is already async.
8172 (linux_nat_terminal_ours): Don't check whether the target is
8173 async.
8174 (linux_async_pipe): Use linux_is_async_p.
8175
8176 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8177
8178 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
8179 '-ascending'.
8180 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
8181 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
8182 Sort tp_array using tp_array_compar.
8183 (_initialize_thread): Extend thread_apply_all_command help.
8184
8185 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8186
8187 * corelow.c (core_open): Call also thread_command.
8188 * gdbthread.h (thread_command): New prototype moved from ...
8189 * thread.c (thread_command): ... here.
8190 (thread_command): Make it global.
8191
8192 2015-01-22 Pedro Alves <palves@redhat.com>
8193
8194 * configure.ac [*mingw32*]: Check $curses_found instead of
8195 $prefer_curses.
8196 * configure: Regenerate.
8197 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
8198 HAVE_NCURSES_NCURSES_H checks.
8199
8200 2015-01-22 Eli Zaretskii <eliz@gnu.org>
8201
8202 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
8203 fails with the 1st arg NULL, try again with "unknown". Don't test
8204 the "cup" capability: it isn't supported by the Windows port of
8205 ncurses, but the Windows console driver is still capable of
8206 supporting TUI.
8207
8208 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8209
8210 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
8211
8212 2015-01-22 Eli Zaretskii <eliz@gnu.org>
8213
8214 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
8215 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
8216 reason that "make TAGS" is broken.
8217
8218 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
8219
8220 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
8221 and check additional store instructions.
8222
8223 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
8224
8225 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
8226
8227 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
8228
8229 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
8230 ppc_canonicalize_syscall, ppc_linux_syscall_record,
8231 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
8232 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
8233 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
8234 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
8235 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
8236 ppc_process_record_op19, ppc_process_record_op31,
8237 ppc_process_record_op59, ppc_process_record_op60,
8238 ppc_process_record_op63): Likewise.
8239
8240 2015-01-20 Joel Brobecker <brobecker@adacore.com>
8241
8242 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
8243 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
8244 strerror.
8245
8246 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
8247
8248 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
8249 ppc_process_record_op31, ppc_process_record_op59,
8250 ppc_process_record_op60, ppc_process_record_op63,
8251 ppc_process_record): Fix -Wformat warning.
8252 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
8253 Remove unused variables.
8254
8255 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
8256
8257 * MAINTAINERS (Write After Approval): Add "Chen Gang".
8258
8259 2015-01-19 Eli Zaretskii <eliz@gnu.org>
8260
8261 * configure.ac [*mingw32*]: Only add windows-termcap.o to
8262 CONFIG_OBS if not building with a curses library.
8263 * configure: Regenerate.
8264
8265 * windows-termcap.c: Include defs.h. Make the whole body empty if
8266 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
8267 HAVE_NCURSES_NCURSES_H is defined.
8268
8269 2015-01-19 Joel Brobecker <brobecker@adacore.com>
8270
8271 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
8272 from end of line to start of next line.
8273
8274 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
8275
8276 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
8277 Scan PLT stub backward for reverse debugging.
8278 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
8279
8280 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
8281 Ulrich Weigand <uweigand@de.ibm.com>
8282
8283 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
8284 gdb_target_obs.
8285 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
8286 record.
8287 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
8288 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
8289 (ppc_linux_init_abi): Set process_record, process_record_signal.
8290 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
8291 ppc_linux_record_tdep to gdbarch_tdep.
8292 (ppc_process_record): New declaration.
8293 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
8294 ppc_process_record_op19, ppc_process_record_op31,
8295 ppc_process_record_op59, ppc_process_record_op60,
8296 ppc_process_record_op63, ppc_process_record): New functions.
8297
8298 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
8299
8300 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
8301 rs6000_in_function_epilogue_frame_p and add an argument
8302 for frame_info.
8303 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
8304 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
8305 New functions.
8306 (rs6000_epilogue_frame_unwind): New.
8307 (rs6000_gdbarch_init): Append epilogue unwinder.
8308
8309 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8310
8311 * nat/linux-personality.c: Replace "#ifndef
8312 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
8313 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
8314 systems.
8315
8316 2015-01-16 Eli Zaretskii <eliz@gnu.org>
8317
8318 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
8319 functions.
8320 (_initialize_tui_win) <border-kind, border-mode>:
8321 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
8322 (tui_set_tab_width_command): Fix the commentary.
8323
8324 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
8325
8326 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
8327 Doc fix.
8328 (tui_set_tab_width_command): Delete and recreate the source and
8329 the disassembly windows, to show the effect of the changed tab
8330 size immediately.
8331
8332 * tui/tui-data.h (LINE_PREFIX): Make shorter
8333 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
8334 "Thread NNNNN.XXXX" thread ID notation on Windows.
8335
8336 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8337
8338 Fix gcc-5 compilation.
8339 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
8340
8341 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8342
8343 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
8344 (linux-personality.o): New rule.
8345 * common/common-defs.h: Include <stdint.h>.
8346 * config/aarch64/linux.mh (NATDEPFILES): Include
8347 linux-personality.o.
8348 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8349 * config/arm/linux.mh (NATDEPFILES): Likewise.
8350 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8351 * config/i386/linux.mh (NATDEPFILES): Likewise.
8352 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8353 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8354 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8355 * config/mips/linux.mh (NATDEPFILES): Likewise.
8356 * config/pa/linux.mh (NATDEPFILES): Likewise.
8357 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8358 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8359 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8360 * config/s390/linux.mh (NATDEPFILES): Likewise.
8361 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8362 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8363 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8364 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8365 * defs.h: Remove #include <stdint.h> (moved to
8366 common/common-defs.h).
8367 * linux-nat.c: Include nat/linux-personality.h. Remove #include
8368 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
8369 nat/linux-personality.c).
8370 (linux_nat_create_inferior): Remove code to disable address space
8371 randomization (moved to nat/linux-personality.c). Create cleanup
8372 to disable address space randomization.
8373 * nat/linux-personality.c: New file.
8374 * nat/linux-personality.h: Likewise.
8375
8376 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8377
8378 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
8379 common/posix-strerror.c.
8380 (posix-strerror.o): New rule.
8381 (mingw-strerror.o): Likewise.
8382 * common/common-utils.h (safe_strerror): Move prototype to here,
8383 from utils.h.
8384 * common/common.host: New file.
8385 * common/mingw-strerror.c: Likewise.
8386 * common/posix-strerror.c: Likewise.
8387 * configure: Regenerated.
8388 * configure.ac: Source common/common.host. Add variable
8389 common_host_obs to gdb_host_obs.
8390 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
8391 gdb/common/posix-strerror.c when warning about the use of
8392 strerror.
8393 * mingw-hdep.c (safe_strerror): Remove definition; move it to
8394 common/mingw-strerror.c.
8395 * posix-hdep.c (safe_strerror): Remove definition; move it to
8396 common/posix-hdep.c.
8397 * utils.h (safe_strerror): Remove prototype; move to
8398 common/common-utils.h.
8399
8400 2015-01-15 Joel Brobecker <brobecker@adacore.com>
8401
8402 GDB 7.8.2 released.
8403
8404 2015-01-15 Joel Brobecker <brobecker@adacore.com>
8405
8406 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
8407 ___XA type if the array has already been fixed.
8408
8409 2015-01-14 Yao Qi <yao@codesourcery.com>
8410
8411 * Makefile.in (ppc-linux.o): New rule.
8412 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
8413 * configure.ac: AC_CHECK_FUNCS(getauxval).
8414 * config.in: Re-generated.
8415 * configure: Re-generated.
8416 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
8417 Declare.
8418 * nat/ppc-linux.c: New file.
8419 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
8420 Call ppc64_64bit_inferior_p.
8421
8422 2015-01-14 Yao Qi <yao@codesourcery.com>
8423
8424 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
8425 nat/ppc-linux.h.
8426 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
8427 (PPC_FEATURE_HAS_DFP): Likewise.
8428 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8429 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8430 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8431 Include "nat/ppc-linux.h".
8432 * nat/ppc-linux.h: New file.
8433 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
8434
8435 2015-01-14 Pedro Alves <palves@redhat.com>
8436
8437 PR gdb/17525
8438 * breakpoint.c: Include "interps.h".
8439 (bpstat_do_actions_1): Also check whether the interpreter is
8440 async.
8441
8442 2015-01-14 Pedro Alves <palves@redhat.com>
8443
8444 PR cli/17828
8445 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
8446 reinstall if the interpreter is sync.
8447
8448 2015-01-13 Doug Evans <dje@google.com>
8449
8450 * objfiles.c (objfile_filename): New function.
8451 * objfiles.h (objfile_filename): Declare it.
8452 (objfile_name): Add function comment.
8453 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
8454 bfd file name (which may be realpath'd), and the original name.
8455
8456 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8457
8458 * NEWS: Create a new section for the next release branch.
8459 Rename the section of the current branch, now that it has
8460 been cut.
8461
8462 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8463
8464 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
8465 * version.in: Bump version to 7.9.50.DATE-cvs.
8466
8467 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8468
8469 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
8470 Remove trailing new-line in argument of call to warning.
8471
8472 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8473
8474 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
8475 new-line in argument of call to "warning".
8476
8477 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8478
8479 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
8480 in static block, then try searching for primitive types.
8481
8482 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
8483
8484 * top.h (gdb_add_history): Declare.
8485 * top.c (command_count): New variable.
8486 (gdb_add_history): New function.
8487 (gdb_safe_append_history): New static function.
8488 (quit_force): Call it.
8489 (command_line_input): Use gdb_add_history instead of
8490 add_history.
8491 * event-top.c (command_line_handler): Likewise.
8492
8493 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
8494
8495 PR gdb/17046
8496 * darwin-nat.c: Replace <machine/setjmp.h> #include by
8497 <setjmp.h> #include.
8498
8499 2015-01-11 Doug Evans <xdje42@gmail.com>
8500
8501 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
8502
8503 2015-01-11 Doug Evans <xdje42@gmail.com>
8504
8505 PR gdb/15830
8506 * NEWS: The "maint demangle" command is renamed as "demangle".
8507 * demangle.c: #include cli/cli-utils.h, language.h.
8508 (demangle_command): New function.
8509 (_initialize_demangle): Add new command "demangle".
8510 * maint.c (maintenance_demangle): Stub out.
8511 (_initialize_maint_cmds): Update help text for "maint demangle",
8512 and mark as deprecated.
8513
8514 2015-01-11 Mark Kettenis <kettenis@gnu.org>
8515
8516 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
8517 inferior_thread is a function.
8518
8519 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
8520
8521 * Makefile.in (.y.c): Don't munge yacc's #line
8522 directives.
8523
8524 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
8525
8526 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
8527 to prompt for input.
8528 * tui/tui-hooks.c (tui_query_hook): Remove.
8529 (tui_install_hooks): Don't set deprecated_query_hook.
8530 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
8531 height calculation. Always update the command window's cur_line.
8532
8533 2015-01-09 Pedro Alves <palves@redhat.com>
8534
8535 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
8536 function.
8537 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
8538 declaration.
8539 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
8540 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
8541 stop_reason.
8542 (check_stopped_by_watchpoint): New function.
8543 (save_sigtrap): Reimplement.
8544 (linux_nat_stopped_by_watchpoint): Adjust.
8545 (linux_nat_lp_status_is_event): Delete.
8546 (stop_wait_callback): Only call save_sigtrap after storing the
8547 pending status.
8548 (status_callback): If the thread had been stopped for a breakpoint
8549 that has since been removed, discard the event and resume the LWP.
8550 (count_events_callback, select_event_lwp_callback): Use
8551 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
8552 (cancel_breakpoint): Rename to ...
8553 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8554 stopped for a software breakpoint or hardware breakpoint.
8555 (select_event_lwp): Only give preference to the stepping LWP in
8556 all-stop mode. Adjust comments.
8557 (stop_and_resume_callback): Remove references to new_pending_p.
8558 (linux_nat_filter_event): Likewise. Leave exit events of the
8559 leader thread pending here. Handle signal short circuiting here.
8560 Only call save_sigtrap after storing the pending waitstatus.
8561 (linux_nat_wait_1): Remove 'retry' label. Remove references to
8562 new_pending. Don't handle leaving events the caller is not
8563 interested in pending here, nor handle signal short-circuiting
8564 here. Also give equal priority to all LWPs that have had events
8565 in non-stop mode. If reporting a software breakpoint event,
8566 unadjust the LWP's PC.
8567 * linux-nat.h (enum lwp_stop_reason): New.
8568 (struct lwp_info) <stop_pc>: New field.
8569 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
8570 (struct lwp_info) <stop_reason>: New field.
8571 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8572
8573 2015-01-09 Pedro Alves <palves@redhat.com>
8574
8575 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
8576 Set the LWP's 'resumed' flag.
8577
8578 2015-01-09 Pedro Alves <palves@redhat.com>
8579
8580 * linux-nat.c (linux_resume_one_lwp): New function.
8581 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
8582 (linux_nat_resume): Use lwp_status_pending_p and
8583 linux_resume_one_lwp.
8584 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
8585 (linux_handle_extended_wait): Use linux_resume_one_lwp.
8586 (status_callback, running_callback): Use lwp_status_pending_p.
8587 (lwp_status_pending_p): New function.
8588 (stop_and_resume_callback): Use lwp_status_pending_p.
8589 (linux_nat_filter_event): Use linux_resume_one_lwp.
8590 (linux_nat_wait_1): Always use status_callback to look for an LWP
8591 with a pending status. Use linux_resume_one_lwp.
8592 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
8593 linux_resume_one_lwp.
8594
8595 2015-01-09 Pedro Alves <palves@redhat.com>
8596
8597 * breakpoint.c (bp_location_inserted_here_p): New function,
8598 factored out from ...
8599 (breakpoint_inserted_here_p): ... here. Use
8600 ALL_BP_LOCATIONS_AT_ADDR.
8601 (software_breakpoint_inserted_here_p): Use
8602 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
8603
8604 2014-01-09 Pedro Alves <palves@redhat.com>
8605
8606 Skip enabling event reporting if the kernel supports
8607 PTRACE_EVENT_CLONE.
8608 * linux-thread-db.c: Include "nat/linux-ptrace.h".
8609 (thread_db_use_events): New function.
8610 (try_thread_db_load_1): Check thread_db_use_events before enabling
8611 event reporting.
8612 (update_thread_state): New function.
8613 (attach_thread): Use it. Check thread_db_use_events before
8614 enabling event reporting.
8615 (thread_db_detach): Check thread_db_use_events before disabling
8616 event reporting.
8617 (find_new_threads_callback): Check thread_db_use_events before
8618 enabling event reporting. Update the thread's state if not using
8619 libthread_db events.
8620
8621 2015-01-09 Pedro Alves <palves@redhat.com>
8622
8623 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
8624 about to wait for is > 0.
8625 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
8626 the kernel thread ID is -1.
8627
8628 2015-01-09 Pedro Alves <palves@redhat.com>
8629
8630 * linux-nat.c (attach_proc_task_lwp_callback): New function.
8631 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
8632 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
8633 ptrace option flags.
8634 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
8635 field.
8636 * nat/linux-procfs.c: Include <dirent.h>.
8637 (linux_proc_get_int): New parameter "warn". Handle it.
8638 (linux_proc_get_tgid): Adjust.
8639 (linux_proc_get_tracerpid): Rename to ...
8640 (linux_proc_get_tracerpid_nowarn): ... this.
8641 (linux_proc_pid_get_state): New function, factored out from
8642 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
8643 and handle it.
8644 (linux_proc_pid_is_gone): New function.
8645 (linux_proc_pid_is_stopped): Adjust.
8646 (linux_proc_pid_is_zombie_maybe_warn)
8647 (linux_proc_pid_is_zombie_nowarn): New functions.
8648 (linux_proc_pid_is_zombie): Use
8649 linux_proc_pid_is_zombie_maybe_warn.
8650 (linux_proc_attach_tgid_threads): New function.
8651 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
8652 (linux_proc_get_tracerpid): Rename to ...
8653 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
8654 (linux_proc_pid_is_gone): New declaration.
8655 (linux_proc_pid_is_zombie): Update comment.
8656 (linux_proc_pid_is_zombie_nowarn): New declaration.
8657 (linux_proc_attach_lwp_func): New typedef.
8658 (linux_proc_attach_tgid_threads): New declaration.
8659 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
8660 use nowarn functions.
8661 (linux_ptrace_attach_fail_reason_string): Move here from
8662 gdbserver/linux-low.c and rename.
8663 (ptrace_supports_feature): If the current ptrace options are not
8664 known yet, check them now, instead of asserting.
8665 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
8666 Declare.
8667
8668 2015-01-09 Pedro Alves <palves@redhat.com>
8669
8670 * linux-thread-db.c (thread_db_find_new_threads_silently)
8671 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
8672 (find_new_threads_once): Print debug output on gdb_stdlog.
8673
8674 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
8675 Pedro Alves <palves@redhat.com>
8676
8677 * compile/compile.c: Include "gdb_wait.h".
8678 (do_rmdir): Check return value, and free 'zap'.
8679
8680 2015-01-08 Pedro Alves <palves@redhat.com>
8681 Yao Qi <yao@codesourcery.com>
8682
8683 * dwarf2loc.c (indirect_pieced_value): Don't call
8684 gdb_sign_extend. Call extract_signed_integer instead.
8685 * utils.c (gdb_sign_extend): Remove.
8686 * utils.h (gdb_sign_extend): Remove declaration.
8687
8688 2015-01-07 Pierre Muller <muller@sourceware.org>
8689
8690 PR symtab/17811
8691 * stabsread.c (define_symbol): Set language for C++ special symbols.
8692
8693 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
8694
8695 * inflow.c (initial_gdb_ttystate): Tweak comment.
8696
8697 2015-01-07 Joel Brobecker <brobecker@adacore.com>
8698
8699 * inflow.c (set_initial_gdb_ttystate): Add empty line after
8700 comment documenting function.
8701
8702 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
8703
8704 * terminal.h (set_initial_gdb_ttystate): Declare.
8705 * inflow.c (initial_gdb_ttystate): New static variable.
8706 (set_initial_gdb_ttystate): New setter.
8707 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
8708 instead of our current terminal state.
8709 * top.c (gdb_init): Call set_initial_gdb_ttystate.
8710
8711 2015-01-07 Joel Brobecker <brobecker@adacore.com>
8712
8713 * guile/scm-type.c (tyscm_array_1): Add comment.
8714 * python/py-type.c (typy_array_1): Add comment.
8715
8716 2015-01-06 Joel Brobecker <brobecker@adacore.com>
8717
8718 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
8719 error if N2 is equal to N1 - 1.
8720
8721 2015-01-06 Joel Brobecker <brobecker@adacore.com>
8722
8723 * python/py-type.c (typy_array_1): Do not raise negative-length
8724 exception if N2 is equal to N1 - 1.
8725
8726 2015-01-03 Doug Evans <xdje42@gmail.com>
8727
8728 * c-exp.y: Whitespace cleanup.
8729 (classify_inner_name): Remove extra ;.
8730
8731 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
8732
8733 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
8734 offset signed.
8735
8736 2015-01-02 Doug Evans <dje@google.com>
8737
8738 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
8739
8740 2015-01-02 Doug Evans <dje@google.com>
8741
8742 * symtab.h (struct symbol): Fix typo in comment.
8743
8744 2015-01-01 Joel Brobecker <brobecker@adacore.com>
8745
8746 Update year range in copyright notice of all files.
8747
8748 2015-01-01 Joel Brobecker <brobecker@adacore.com>
8749
8750 * top.c (print_gdb_version): Update copyright year to 2015.
8751
8752 2015-01-01 Joel Brobecker <brobecker@adacore.com>
8753
8754 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
8755
8756 For older changes see ChangeLog-2014.
8757 \f
8758 Local Variables:
8759 mode: change-log
8760 left-margin: 8
8761 fill-column: 74
8762 version-control: never
8763 coding: utf-8
8764 End:
This page took 0.225375 seconds and 3 git commands to generate.