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