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