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