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