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